sh-tools 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -3
- package/packages/utils/dom.js +41 -1
- package/lib/sh-tools.common.js +0 -37049
- package/lib/sh-tools.common.js.gz +0 -0
- package/lib/sh-tools.umd.js +0 -37060
- package/lib/sh-tools.umd.js.gz +0 -0
- package/lib/sh-tools.umd.min.js +0 -17
- package/lib/sh-tools.umd.min.js.gz +0 -0
- package/packages/api/smSecret/base64.js +0 -168
- package/packages/api/smSecret/hex.js +0 -92
- package/packages/api/smSecret/index.js +0 -13
- package/packages/api/smSecret/sm3.js +0 -276
- package/packages/api/smSecret/util.js +0 -92
package/lib/sh-tools.umd.min.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["sh-tools"]=t():e["sh-tools"]=t()})("undefined"!==typeof self?self:this,(()=>(()=>{var e={9189:(e,t,r)=>{var n=[r(7729),r(5315),r(4082),r(6946),r(389),r(4854),r(1220),r(9213),r(8516),r(8856),r(5622),r(7674)];for(var o in n){var a=n[o];for(var i in a)t[i]=t[i]||a[i]}},7729:(e,t,r)=>{var n=r(389),o=r(5622),a=r(4082),i=r(1220);function u(e,t){if(t)for(var r in t)e[r]=t[r];return e}t.BETADIST=o.BETA.DIST,t.BETAINV=o.BETA.INV,t.BINOMDIST=o.BINOM.DIST,t.CEILING=t.ISOCEILING=u(n.CEILING.MATH,n.CEILING),t.CEILINGMATH=n.CEILING.MATH,t.CEILINGPRECISE=n.CEILING.PRECISE,t.CHIDIST=o.CHISQ.DIST,t.CHIDISTRT=o.CHISQ.DIST.RT,t.CHIINV=o.CHISQ.INV,t.CHIINVRT=o.CHISQ.INV.RT,t.CHITEST=o.CHISQ.TEST,t.CONFIDENCE=u(o.CONFIDENCE.NORM,o.CONFIDENCE),t.COVAR=o.COVARIANCE.P,t.COVARIANCEP=o.COVARIANCE.P,t.COVARIANCES=o.COVARIANCE.S,t.CRITBINOM=o.BINOM.INV,t.EXPONDIST=o.EXPON.DIST,t.ERFCPRECISE=a.ERFC.PRECISE,t.ERFPRECISE=a.ERF.PRECISE,t.FDIST=o.F.DIST,t.FDISTRT=o.F.DIST.RT,t.FINVRT=o.F.INV.RT,t.FINV=o.F.INV,t.FLOOR=u(n.FLOOR.MATH,n.FLOOR),t.FLOORMATH=n.FLOOR.MATH,t.FLOORPRECISE=n.FLOOR.PRECISE,t.FTEST=o.F.TEST,t.GAMMADIST=o.GAMMA.DIST,t.GAMMAINV=o.GAMMA.INV,t.GAMMALNPRECISE=o.GAMMALN.PRECISE,t.HYPGEOMDIST=o.HYPGEOM.DIST,t.LOGINV=o.LOGNORM.INV,t.LOGNORMINV=o.LOGNORM.INV,t.LOGNORMDIST=o.LOGNORM.DIST,t.MODE=u(o.MODE.SNGL,o.MODE),t.MODEMULT=o.MODE.MULT,t.MODESNGL=o.MODE.SNGL,t.NEGBINOMDIST=o.NEGBINOM.DIST,t.NETWORKDAYSINTL=i.NETWORKDAYS.INTL,t.NORMDIST=o.NORM.DIST,t.NORMINV=o.NORM.INV,t.NORMSDIST=o.NORM.S.DIST,t.NORMSINV=o.NORM.S.INV,t.PERCENTILE=u(o.PERCENTILE.EXC,o.PERCENTILE),t.PERCENTILEEXC=o.PERCENTILE.EXC,t.PERCENTILEINC=o.PERCENTILE.INC,t.PERCENTRANK=u(o.PERCENTRANK.INC,o.PERCENTRANK),t.PERCENTRANKEXC=o.PERCENTRANK.EXC,t.PERCENTRANKINC=o.PERCENTRANK.INC,t.POISSON=u(o.POISSON.DIST,o.POISSON),t.POISSONDIST=o.POISSON.DIST,t.QUARTILE=u(o.QUARTILE.INC,o.QUARTILE),t.QUARTILEEXC=o.QUARTILE.EXC,t.QUARTILEINC=o.QUARTILE.INC,t.RANK=u(o.RANK.EQ,o.RANK),t.RANKAVG=o.RANK.AVG,t.RANKEQ=o.RANK.EQ,t.SKEWP=o.SKEW.P,t.STDEV=u(o.STDEV.S,o.STDEV),t.STDEVP=o.STDEV.P,t.STDEVS=o.STDEV.S,t.TDIST=o.T.DIST,t.TDISTRT=o.T.DIST.RT,t.TINV=o.T.INV,t.TTEST=o.T.TEST,t.VAR=u(o.VAR.S,o.VAR),t.VARP=o.VAR.P,t.VARS=o.VAR.S,t.WEIBULL=u(o.WEIBULL.DIST,o.WEIBULL),t.WEIBULLDIST=o.WEIBULL.DIST,t.WORKDAYINTL=i.WORKDAY.INTL,t.ZTEST=o.Z.TEST},5315:(e,t,r)=>{var n=r(9151),o=r(5622),a=r(389),i=r(5426),u=r(3981);function s(e){var t=[];return i.arrayEach(e,(function(e){e&&t.push(e)})),t}function f(e,t){for(var r={},n=1;n<e[0].length;++n)r[n]=!0;var o=t[0].length;for(n=1;n<t.length;++n)t[n].length>o&&(o=t[n].length);for(var a=1;a<e.length;++a)for(var i=1;i<e[a].length;++i){for(var s=!1,f=!1,c=0;c<t.length;++c){var l=t[c];if(!(l.length<o)){var p=l[0];if(e[a][0]===p){f=!0;for(var h=1;h<l.length;++h)if(!s){var d=void 0===l[h]||"*"===l[h];if(d)s=!0;else{var g=u.parse(l[h]+""),y=[u.createToken(e[a][i],u.TOKEN_TYPE_LITERAL)].concat(g);s=u.compute(y)}}}}}f&&(r[i]=r[i]&&s)}for(var m=[],v=0;v<e[0].length;++v)r[v]&&m.push(v-1);return m}t.FINDFIELD=function(e,t){var r=null;return i.arrayEach(e,(function(e,n){if(e[0]===t)return r=n,!1})),null==r?n.value:r},t.DAVERAGE=function(e,r,o){if(isNaN(r)&&"string"!==typeof r)return n.value;var a=f(e,o),u=[];if("string"===typeof r){var s=t.FINDFIELD(e,r);u=i.rest(e[s])}else u=i.rest(e[r]);var c=0;return i.arrayEach(a,(function(e){c+=u[e]})),0===a.length?n.div0:c/a.length},t.DCOUNT=function(e,r,a){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,a),s=[];if("string"===typeof r){var c=t.FINDFIELD(e,r);s=i.rest(e[c])}else s=i.rest(e[r]);var l=[];return i.arrayEach(u,(function(e){l.push(s[e])})),o.COUNT(l)},t.DCOUNTA=function(e,r,a){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,a),s=[];if("string"===typeof r){var c=t.FINDFIELD(e,r);s=i.rest(e[c])}else s=i.rest(e[r]);var l=[];return i.arrayEach(u,(function(e){l.push(s[e])})),o.COUNTA(l)},t.DGET=function(e,r,o){if(isNaN(r)&&"string"!==typeof r)return n.value;var a=f(e,o),u=[];if("string"===typeof r){var s=t.FINDFIELD(e,r);u=i.rest(e[s])}else u=i.rest(e[r]);return 0===a.length?n.value:a.length>1?n.num:u[a[0]]},t.DMAX=function(e,r,o){if(isNaN(r)&&"string"!==typeof r)return n.value;var a=f(e,o),u=[];if("string"===typeof r){var s=t.FINDFIELD(e,r);u=i.rest(e[s])}else u=i.rest(e[r]);var c=u[a[0]];return i.arrayEach(a,(function(e){c<u[e]&&(c=u[e])})),c},t.DMIN=function(e,r,o){if(isNaN(r)&&"string"!==typeof r)return n.value;var a=f(e,o),u=[];if("string"===typeof r){var s=t.FINDFIELD(e,r);u=i.rest(e[s])}else u=i.rest(e[r]);var c=u[a[0]];return i.arrayEach(a,(function(e){c>u[e]&&(c=u[e])})),c},t.DPRODUCT=function(e,r,o){if(isNaN(r)&&"string"!==typeof r)return n.value;var a=f(e,o),u=[];if("string"===typeof r){var c=t.FINDFIELD(e,r);u=i.rest(e[c])}else u=i.rest(e[r]);var l=[];i.arrayEach(a,(function(e){l.push(u[e])})),l=s(l);var p=1;return i.arrayEach(l,(function(e){p*=e})),p},t.DSTDEV=function(e,r,a){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,a),c=[];if("string"===typeof r){var l=t.FINDFIELD(e,r);c=i.rest(e[l])}else c=i.rest(e[r]);var p=[];return i.arrayEach(u,(function(e){p.push(c[e])})),p=s(p),o.STDEV.S(p)},t.DSTDEVP=function(e,r,a){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,a),c=[];if("string"===typeof r){var l=t.FINDFIELD(e,r);c=i.rest(e[l])}else c=i.rest(e[r]);var p=[];return i.arrayEach(u,(function(e){p.push(c[e])})),p=s(p),o.STDEV.P(p)},t.DSUM=function(e,r,o){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,o),s=[];if("string"===typeof r){var c=t.FINDFIELD(e,r);s=i.rest(e[c])}else s=i.rest(e[r]);var l=[];return i.arrayEach(u,(function(e){l.push(s[e])})),a.SUM(l)},t.DVAR=function(e,r,a){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,a),s=[];if("string"===typeof r){var c=t.FINDFIELD(e,r);s=i.rest(e[c])}else s=i.rest(e[r]);var l=[];return i.arrayEach(u,(function(e){l.push(s[e])})),o.VAR.S(l)},t.DVARP=function(e,r,a){if(isNaN(r)&&"string"!==typeof r)return n.value;var u=f(e,a),s=[];if("string"===typeof r){var c=t.FINDFIELD(e,r);s=i.rest(e[c])}else s=i.rest(e[r]);var l=[];return i.arrayEach(u,(function(e){l.push(s[e])})),o.VAR.P(l)}},1220:(e,t,r)=>{var n=r(9151),o=r(5426),a=new Date(Date.UTC(1900,0,1)),i=[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],u=[[],[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]],s=[[],[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 f(e){return 1===new Date(e,1,29).getMonth()}function c(e,t){return Math.ceil((t-e)/1e3/60/60/24)}function l(e){var t=e>-22038912e5?2:1;return Math.ceil((e-a)/864e5)+t}t.DATE=function(e,t,r){var a;return e=o.parseNumber(e),t=o.parseNumber(t),r=o.parseNumber(r),a=o.anyIsError(e,t,r)?n.value:e<0||t<0||r<0?n.num:new Date(e,t-1,r),a},t.DATEVALUE=function(e){var t,r=2;return"string"!==typeof e?n.value:(t=Date.parse(e),isNaN(t)?n.value:(t<=-22038912e5&&(r=1),Math.ceil((t-a)/864e5)+r))},t.DAY=function(e){var t=o.parseDate(e);return t instanceof Error?t:t.getDate()},t.DAYS=function(e,t){return e=o.parseDate(e),t=o.parseDate(t),e instanceof Error?e:t instanceof Error?t:l(e)-l(t)},t.DAYS360=function(e,t,r){if(r=o.parseBool(r),e=o.parseDate(e),t=o.parseDate(t),e instanceof Error)return e;if(t instanceof Error)return t;if(r instanceof Error)return r;var n,a,i=e.getMonth(),u=t.getMonth();if(r)n=31===e.getDate()?30:e.getDate(),a=31===t.getDate()?30:t.getDate();else{var s=new Date(e.getFullYear(),i+1,0).getDate(),f=new Date(t.getFullYear(),u+1,0).getDate();n=e.getDate()===s?30:e.getDate(),t.getDate()===f?n<30?(u++,a=1):a=30:a=t.getDate()}return 360*(t.getFullYear()-e.getFullYear())+30*(u-i)+(a-n)},t.EDATE=function(e,t){return e=o.parseDate(e),e instanceof Error?e:isNaN(t)?n.value:(t=parseInt(t,10),e.setMonth(e.getMonth()+t),l(e))},t.EOMONTH=function(e,t){return e=o.parseDate(e),e instanceof Error?e:isNaN(t)?n.value:(t=parseInt(t,10),l(new Date(e.getFullYear(),e.getMonth()+t+1,0)))},t.HOUR=function(e){return e=o.parseDate(e),e instanceof Error?e:e.getHours()},t.INTERVAL=function(e){if("number"!==typeof e&&"string"!==typeof e)return n.value;e=parseInt(e,10);var t=Math.floor(e/94608e4);e%=94608e4;var r=Math.floor(e/2592e3);e%=2592e3;var o=Math.floor(e/86400);e%=86400;var a=Math.floor(e/3600);e%=3600;var i=Math.floor(e/60);e%=60;var u=e;return t=t>0?t+"Y":"",r=r>0?r+"M":"",o=o>0?o+"D":"",a=a>0?a+"H":"",i=i>0?i+"M":"",u=u>0?u+"S":"","P"+t+r+o+"T"+a+i+u},t.ISOWEEKNUM=function(e){if(e=o.parseDate(e),e instanceof Error)return e;e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+1)/7)},t.MINUTE=function(e){return e=o.parseDate(e),e instanceof Error?e:e.getMinutes()},t.MONTH=function(e){return e=o.parseDate(e),e instanceof Error?e:e.getMonth()+1},t.NETWORKDAYS=function(e,t,r){return this.NETWORKDAYS.INTL(e,t,1,r)},t.NETWORKDAYS.INTL=function(e,t,r,a){if(e=o.parseDate(e),e instanceof Error)return e;if(t=o.parseDate(t),t instanceof Error)return t;if(r=void 0===r?s[1]:s[r],!(r instanceof Array))return n.value;void 0===a?a=[]:a instanceof Array||(a=[a]);for(var i=0;i<a.length;i++){var u=o.parseDate(a[i]);if(u instanceof Error)return u;a[i]=u}var f=(t-e)/864e5+1,c=f,l=e;for(i=0;i<f;i++){var p=(new Date).getTimezoneOffset()>0?l.getUTCDay():l.getDay(),h=!1;p!==r[0]&&p!==r[1]||(h=!0);for(var d=0;d<a.length;d++){var g=a[d];if(g.getDate()===l.getDate()&&g.getMonth()===l.getMonth()&&g.getFullYear()===l.getFullYear()){h=!0;break}}h&&c--,l.setDate(l.getDate()+1)}return c},t.NOW=function(){return new Date},t.SECOND=function(e){return e=o.parseDate(e),e instanceof Error?e:e.getSeconds()},t.TIME=function(e,t,r){return e=o.parseNumber(e),t=o.parseNumber(t),r=o.parseNumber(r),o.anyIsError(e,t,r)?n.value:e<0||t<0||r<0?n.num:(3600*e+60*t+r)/86400},t.TIMEVALUE=function(e){return e=o.parseDate(e),e instanceof Error?e:(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400},t.TODAY=function(){return new Date},t.WEEKDAY=function(e,t){if(e=o.parseDate(e),e instanceof Error)return e;void 0===t&&(t=1);var r=e.getDay();return u[t][r]},t.WEEKNUM=function(e,t){if(e=o.parseDate(e),e instanceof Error)return e;if(void 0===t&&(t=1),21===t)return this.ISOWEEKNUM(e);var r=i[t],n=new Date(e.getFullYear(),0,1),a=n.getDay()<r?1:0;return n-=24*Math.abs(n.getDay()-r)*60*60*1e3,Math.floor((e-n)/864e5/7+1)+a},t.WORKDAY=function(e,t,r){return this.WORKDAY.INTL(e,t,1,r)},t.WORKDAY.INTL=function(e,t,r,a){if(e=o.parseDate(e),e instanceof Error)return e;if(t=o.parseNumber(t),t instanceof Error)return t;if(t<0)return n.num;if(r=void 0===r?s[1]:s[r],!(r instanceof Array))return n.value;void 0===a?a=[]:a instanceof Array||(a=[a]);for(var i=0;i<a.length;i++){var u=o.parseDate(a[i]);if(u instanceof Error)return u;a[i]=u}var f=0;while(f<t){e.setDate(e.getDate()+1);var c=e.getDay();if(c!==r[0]&&c!==r[1]){for(var l=0;l<a.length;l++){var p=a[l];if(p.getDate()===e.getDate()&&p.getMonth()===e.getMonth()&&p.getFullYear()===e.getFullYear()){f--;break}}f++}}return e},t.YEAR=function(e){return e=o.parseDate(e),e instanceof Error?e:e.getFullYear()},t.YEARFRAC=function(e,t,r){if(e=o.parseDate(e),e instanceof Error)return e;if(t=o.parseDate(t),t instanceof Error)return t;r=r||0;var n=e.getDate(),a=e.getMonth()+1,i=e.getFullYear(),u=t.getDate(),s=t.getMonth()+1,l=t.getFullYear();switch(r){case 0:return 31===n&&31===u?(n=30,u=30):31===n?n=30:30===n&&31===u&&(u=30),(u+30*s+360*l-(n+30*a+360*i))/360;case 1:var p=function(e,t){var r=e.getFullYear(),n=new Date(r,2,1);if(f(r)&&e<n&&t>=n)return!0;var o=t.getFullYear(),a=new Date(o,2,1);return f(o)&&t>=a&&e<a},h=365;if(i===l||i+1===l&&(a>s||a===s&&n>=u))return(i===l&&f(i)||p(e,t)||1===s&&29===u)&&(h=366),c(e,t)/h;var d=l-i+1,g=(new Date(l+1,0,1)-new Date(i,0,1))/1e3/60/60/24,y=g/d;return c(e,t)/y;case 2:return c(e,t)/360;case 3:return c(e,t)/365;case 4:return(u+30*s+360*l-(n+30*a+360*i))/360}}},4082:(e,t,r)=>{var n=r(9151),o=r(8855),a=r(4854),i=r(5426),u=r(7914);function s(e){return/^[01]{1,10}$/.test(e)}t.BESSELI=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:u.besseli(e,t)},t.BESSELJ=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:u.besselj(e,t)},t.BESSELK=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:u.besselk(e,t)},t.BESSELY=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:u.bessely(e,t)},t.BIN2DEC=function(e){if(!s(e))return n.num;var t=parseInt(e,2),r=e.toString();return 10===r.length&&"1"===r.substring(0,1)?parseInt(r.substring(1),2)-512:t},t.BIN2HEX=function(e,t){if(!s(e))return n.num;var r=e.toString();if(10===r.length&&"1"===r.substring(0,1))return(0xfffffffe00+parseInt(r.substring(1),2)).toString(16);var o=parseInt(e,2).toString(16);return void 0===t?o:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=o.length?a.REPT("0",t-o.length)+o:n.num)},t.BIN2OCT=function(e,t){if(!s(e))return n.num;var r=e.toString();if(10===r.length&&"1"===r.substring(0,1))return(1073741312+parseInt(r.substring(1),2)).toString(8);var o=parseInt(e,2).toString(8);return void 0===t?o:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=o.length?a.REPT("0",t-o.length)+o:n.num)},t.BITAND=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?n.num:e&t},t.BITLSHIFT=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?n.num:t>=0?e<<t:e>>-t},t.BITOR=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?n.num:e|t},t.BITRSHIFT=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?n.num:t>=0?e>>t:e<<-t},t.BITXOR=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?n.num:e^t},t.COMPLEX=function(e,t,r){if(e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t))return e;if(r=void 0===r?"i":r,"i"!==r&&"j"!==r)return n.value;if(0===e&&0===t)return 0;if(0===e)return 1===t?r:t.toString()+r;if(0===t)return e.toString();var o=t>0?"+":"";return e.toString()+o+(1===t?r:t.toString()+r)},t.CONVERT=function(e,t,r){if(e=i.parseNumber(e),e instanceof Error)return e;for(var o,a=[["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],["ångström","Å",["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 ångström","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,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,7.58660370370369e-8],["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","°",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,2684519.538],["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],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",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ärke","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 ångström","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,2589988.110336],["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,0x1000000000000000,"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"]},s={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"]},f=null,c=null,l=t,p=r,h=1,d=1,g=0;g<a.length;g++)o=null===a[g][2]?[]:a[g][2],(a[g][1]===l||o.indexOf(l)>=0)&&(f=a[g]),(a[g][1]===p||o.indexOf(p)>=0)&&(c=a[g]);if(null===f){var y=u[t.substring(0,2)],m=s[t.substring(0,1)];"da"===t.substring(0,2)&&(m=["dekao",10,"da"]),y?(h=y[2],l=t.substring(2)):m&&(h=m[1],l=t.substring(m[2].length));for(var v=0;v<a.length;v++)o=null===a[v][2]?[]:a[v][2],(a[v][1]===l||o.indexOf(l)>=0)&&(f=a[v])}if(null===c){var b=u[r.substring(0,2)],E=s[r.substring(0,1)];"da"===r.substring(0,2)&&(E=["dekao",10,"da"]),b?(d=b[2],p=r.substring(2)):E&&(d=E[1],p=r.substring(E[2].length));for(var w=0;w<a.length;w++)o=null===a[w][2]?[]:a[w][2],(a[w][1]===p||o.indexOf(p)>=0)&&(c=a[w])}return null===f||null===c||f[3]!==c[3]?n.na:e*f[6]*h/(c[6]*d)},t.DEC2BIN=function(e,t){if(e=i.parseNumber(e),e instanceof Error)return e;if(!/^-?[0-9]{1,3}$/.test(e)||e<-512||e>511)return n.num;if(e<0)return"1"+a.REPT("0",9-(512+e).toString(2).length)+(512+e).toString(2);var r=parseInt(e,10).toString(2);return"undefined"===typeof t?r:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=r.length?a.REPT("0",t-r.length)+r:n.num)},t.DEC2HEX=function(e,t){if(e=i.parseNumber(e),e instanceof Error)return e;if(!/^-?[0-9]{1,12}$/.test(e)||e<-549755813888||e>549755813887)return n.num;if(e<0)return(1099511627776+e).toString(16);var r=parseInt(e,10).toString(16);return"undefined"===typeof t?r:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=r.length?a.REPT("0",t-r.length)+r:n.num)},t.DEC2OCT=function(e,t){if(e=i.parseNumber(e),e instanceof Error)return e;if(!/^-?[0-9]{1,9}$/.test(e)||e<-536870912||e>536870911)return n.num;if(e<0)return(1073741824+e).toString(8);var r=parseInt(e,10).toString(8);return"undefined"===typeof t?r:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=r.length?a.REPT("0",t-r.length)+r:n.num)},t.DELTA=function(e,t){return t=void 0===t?0:t,e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:e===t?1:0},t.ERF=function(e,t){return t=void 0===t?0:t,e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?n.value:o.erf(e)},t.ERF.PRECISE=function(){throw new Error("ERF.PRECISE is not implemented")},t.ERFC=function(e){return isNaN(e)?n.value:o.erfc(e)},t.ERFC.PRECISE=function(){throw new Error("ERFC.PRECISE is not implemented")},t.GESTEP=function(e,t){return t=t||0,e=i.parseNumber(e),i.anyIsError(t,e)?e:e>=t?1:0},t.HEX2BIN=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return n.num;var r=10===e.length&&"f"===e.substring(0,1).toLowerCase(),o=r?parseInt(e,16)-1099511627776:parseInt(e,16);if(o<-512||o>511)return n.num;if(r)return"1"+a.REPT("0",9-(512+o).toString(2).length)+(512+o).toString(2);var i=o.toString(2);return void 0===t?i:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=i.length?a.REPT("0",t-i.length)+i:n.num)},t.HEX2DEC=function(e){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return n.num;var t=parseInt(e,16);return t>=549755813888?t-1099511627776:t},t.HEX2OCT=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return n.num;var r=parseInt(e,16);if(r>536870911&&r<0xffe0000000)return n.num;if(r>=0xffe0000000)return(r-0xffc0000000).toString(8);var o=r.toString(8);return void 0===t?o:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=o.length?a.REPT("0",t-o.length)+o:n.num)},t.IMABS=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.value:Math.sqrt(Math.pow(r,2)+Math.pow(o,2))},t.IMAGINARY=function(e){if(void 0===e||!0===e||!1===e)return n.value;if(0===e||"0"===e)return 0;if(["i","j"].indexOf(e)>=0)return 1;e=e.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j");var t=e.indexOf("+"),r=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===r&&(r=e.indexOf("-",1));var o=e.substring(e.length-1,e.length),a="i"===o||"j"===o;return t>=0||r>=0?a?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?n.num:Number(e.substring(t+1,e.length-1)):isNaN(e.substring(0,r))||isNaN(e.substring(r+1,e.length-1))?n.num:-Number(e.substring(r+1,e.length-1)):n.num:a?isNaN(e.substring(0,e.length-1))?n.num:e.substring(0,e.length-1):isNaN(e)?n.num:0},t.IMARGUMENT=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.value:0===r&&0===o?n.div0:0===r&&o>0?Math.PI/2:0===r&&o<0?-Math.PI/2:0===o&&r>0?0:0===o&&r<0?-Math.PI:r>0?Math.atan(o/r):r<0&&o>=0?Math.atan(o/r)+Math.PI:Math.atan(o/r)-Math.PI},t.IMCONJUGATE=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",0!==o?t.COMPLEX(r,-o,a):e},t.IMCOS=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(r)*(Math.exp(o)+Math.exp(-o))/2,-Math.sin(r)*(Math.exp(o)-Math.exp(-o))/2,a)},t.IMCOSH=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(o)*(Math.exp(r)+Math.exp(-r))/2,Math.sin(o)*(Math.exp(r)-Math.exp(-r))/2,a)},t.IMCOT=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.value:t.IMDIV(t.IMCOS(e),t.IMSIN(e))},t.IMDIV=function(e,r){var o=t.IMREAL(e),a=t.IMAGINARY(e),u=t.IMREAL(r),s=t.IMAGINARY(r);if(i.anyIsError(o,a,u,s))return n.value;var f=e.substring(e.length-1),c=r.substring(r.length-1),l="i";if(("j"===f||"j"===c)&&(l="j"),0===u&&0===s)return n.num;var p=u*u+s*s;return t.COMPLEX((o*u+a*s)/p,(a*u-o*s)/p,l)},t.IMEXP=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);a="i"===a||"j"===a?a:"i";var u=Math.exp(r);return t.COMPLEX(u*Math.cos(o),u*Math.sin(o),a)},t.IMLN=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(r*r+o*o)),Math.atan(o/r),a)},t.IMLOG10=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(r*r+o*o))/Math.log(10),Math.atan(o/r)/Math.log(10),a)},t.IMLOG2=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(r*r+o*o))/Math.log(2),Math.atan(o/r)/Math.log(2),a)},t.IMPOWER=function(e,r){r=i.parseNumber(r);var o=t.IMREAL(e),a=t.IMAGINARY(e);if(i.anyIsError(r,o,a))return n.value;var u=e.substring(e.length-1);u="i"===u||"j"===u?u:"i";var s=Math.pow(t.IMABS(e),r),f=t.IMARGUMENT(e);return t.COMPLEX(s*Math.cos(r*f),s*Math.sin(r*f),u)},t.IMPRODUCT=function(){var e=arguments[0];if(!arguments.length)return n.value;for(var r=1;r<arguments.length;r++){var o=t.IMREAL(e),a=t.IMAGINARY(e),u=t.IMREAL(arguments[r]),s=t.IMAGINARY(arguments[r]);if(i.anyIsError(o,a,u,s))return n.value;e=t.COMPLEX(o*u-a*s,o*s+a*u)}return e},t.IMREAL=function(e){if(void 0===e||!0===e||!1===e)return n.value;if(0===e||"0"===e)return 0;if(["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(e)>=0)return 0;var t=e.indexOf("+"),r=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===r&&(r=e.indexOf("-",1));var o=e.substring(e.length-1,e.length),a="i"===o||"j"===o;return t>=0||r>=0?a?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?n.num:Number(e.substring(0,t)):isNaN(e.substring(0,r))||isNaN(e.substring(r+1,e.length-1))?n.num:Number(e.substring(0,r)):n.num:a?isNaN(e.substring(0,e.length-1))?n.num:0:isNaN(e)?n.num:e},t.IMSEC=function(e){if(!0===e||!1===e)return n.value;var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.value:t.IMDIV("1",t.IMCOS(e))},t.IMSECH=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.value:t.IMDIV("1",t.IMCOSH(e))},t.IMSIN=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.sin(r)*(Math.exp(o)+Math.exp(-o))/2,Math.cos(r)*(Math.exp(o)-Math.exp(-o))/2,a)},t.IMSINH=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(o)*(Math.exp(r)-Math.exp(-r))/2,Math.sin(o)*(Math.exp(r)+Math.exp(-r))/2,a)},t.IMSQRT=function(e){var r=t.IMREAL(e),o=t.IMAGINARY(e);if(i.anyIsError(r,o))return n.value;var a=e.substring(e.length-1);a="i"===a||"j"===a?a:"i";var u=Math.sqrt(t.IMABS(e)),s=t.IMARGUMENT(e);return t.COMPLEX(u*Math.cos(s/2),u*Math.sin(s/2),a)},t.IMCSC=function(e){if(!0===e||!1===e)return n.value;var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.num:t.IMDIV("1",t.IMSIN(e))},t.IMCSCH=function(e){if(!0===e||!1===e)return n.value;var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.num:t.IMDIV("1",t.IMSINH(e))},t.IMSUB=function(e,t){var r=this.IMREAL(e),o=this.IMAGINARY(e),a=this.IMREAL(t),u=this.IMAGINARY(t);if(i.anyIsError(r,o,a,u))return n.value;var s=e.substring(e.length-1),f=t.substring(t.length-1),c="i";return("j"===s||"j"===f)&&(c="j"),this.COMPLEX(r-a,o-u,c)},t.IMSUM=function(){if(!arguments.length)return n.value;for(var e=i.flatten(arguments),t=e[0],r=1;r<e.length;r++){var o=this.IMREAL(t),a=this.IMAGINARY(t),u=this.IMREAL(e[r]),s=this.IMAGINARY(e[r]);if(i.anyIsError(o,a,u,s))return n.value;t=this.COMPLEX(o+u,a+s)}return t},t.IMTAN=function(e){if(!0===e||!1===e)return n.value;var r=t.IMREAL(e),o=t.IMAGINARY(e);return i.anyIsError(r,o)?n.value:this.IMDIV(this.IMSIN(e),this.IMCOS(e))},t.OCT2BIN=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return n.num;var r=10===e.length&&"7"===e.substring(0,1),o=r?parseInt(e,8)-1073741824:parseInt(e,8);if(o<-512||o>511)return n.num;if(r)return"1"+a.REPT("0",9-(512+o).toString(2).length)+(512+o).toString(2);var i=o.toString(2);return"undefined"===typeof t?i:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=i.length?a.REPT("0",t-i.length)+i:n.num)},t.OCT2DEC=function(e){if(!/^[0-7]{1,10}$/.test(e))return n.num;var t=parseInt(e,8);return t>=536870912?t-1073741824:t},t.OCT2HEX=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return n.num;var r=parseInt(e,8);if(r>=536870912)return"ff"+(r+3221225472).toString(16);var o=r.toString(16);return void 0===t?o:isNaN(t)?n.value:t<0?n.num:(t=Math.floor(t),t>=o.length?a.REPT("0",t-o.length)+o:n.num)}},9213:(e,t,r)=>{var n=r(9151),o=r(1220),a=r(5426);function i(e){return e&&e.getTime&&!isNaN(e.getTime())}function u(e){return e instanceof Date?e:new Date(e)}t.ACCRINT=function(e,t,r,a,s,f,c){return e=u(e),t=u(t),r=u(r),i(e)&&i(t)&&i(r)?a<=0||s<=0||-1===[1,2,4].indexOf(f)||-1===[0,1,2,3,4].indexOf(c)||r<=e?n.num:(s=s||0,c=c||0,s*a*o.YEARFRAC(e,r,c)):n.value},t.ACCRINTM=function(){throw new Error("ACCRINTM is not implemented")},t.AMORDEGRC=function(){throw new Error("AMORDEGRC is not implemented")},t.AMORLINC=function(){throw new Error("AMORLINC is not implemented")},t.COUPDAYBS=function(){throw new Error("COUPDAYBS is not implemented")},t.COUPDAYS=function(){throw new Error("COUPDAYS is not implemented")},t.COUPDAYSNC=function(){throw new Error("COUPDAYSNC is not implemented")},t.COUPNCD=function(){throw new Error("COUPNCD is not implemented")},t.COUPNUM=function(){throw new Error("COUPNUM is not implemented")},t.COUPPCD=function(){throw new Error("COUPPCD is not implemented")},t.CUMIPMT=function(e,r,o,i,u,s){if(e=a.parseNumber(e),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,r,o))return n.value;if(e<=0||r<=0||o<=0)return n.num;if(i<1||u<1||i>u)return n.num;if(0!==s&&1!==s)return n.num;var f=t.PMT(e,r,o,0,s),c=0;1===i&&0===s&&(c=-o,i++);for(var l=i;l<=u;l++)c+=1===s?t.FV(e,l-2,f,o,1)-f:t.FV(e,l-1,f,o,0);return c*=e,c},t.CUMPRINC=function(e,r,o,i,u,s){if(e=a.parseNumber(e),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,r,o))return n.value;if(e<=0||r<=0||o<=0)return n.num;if(i<1||u<1||i>u)return n.num;if(0!==s&&1!==s)return n.num;var f=t.PMT(e,r,o,0,s),c=0;1===i&&(c=0===s?f+o*e:f,i++);for(var l=i;l<=u;l++)c+=s>0?f-(t.FV(e,l-2,f,o,1)-f)*e:f-t.FV(e,l-1,f,o,0)*e;return c},t.DB=function(e,t,r,o,i){if(i=void 0===i?12:i,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),a.anyIsError(e,t,r,o,i))return n.value;if(e<0||t<0||r<0||o<0)return n.num;if(-1===[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(i))return n.num;if(o>r)return n.num;if(t>=e)return 0;for(var u=(1-Math.pow(t/e,1/r)).toFixed(3),s=e*u*i/12,f=s,c=0,l=o===r?r-1:o,p=2;p<=l;p++)c=(e-f)*u,f+=c;return 1===o?s:o===r?(e-f)*u:c},t.DDB=function(e,t,r,o,i){if(i=void 0===i?2:i,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),a.anyIsError(e,t,r,o,i))return n.value;if(e<0||t<0||r<0||o<0||i<=0)return n.num;if(o>r)return n.num;if(t>=e)return 0;for(var u=0,s=0,f=1;f<=o;f++)s=Math.min(i/r*(e-u),e-t-u),u+=s;return s},t.DISC=function(){throw new Error("DISC is not implemented")},t.DOLLARDE=function(e,t){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return n.value;if(t<0)return n.num;if(t>=0&&t<1)return n.div0;t=parseInt(t,10);var r=parseInt(e,10);r+=e%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t;var o=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1);return r=Math.round(r*o)/o,r},t.DOLLARFR=function(e,t){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return n.value;if(t<0)return n.num;if(t>=0&&t<1)return n.div0;t=parseInt(t,10);var r=parseInt(e,10);return r+=e%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t,r},t.DURATION=function(){throw new Error("DURATION is not implemented")},t.EFFECT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?n.value:e<=0||t<1?n.num:(t=parseInt(t,10),Math.pow(1+e/t,t)-1)},t.FV=function(e,t,r,o,i){if(o=o||0,i=i||0,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),a.anyIsError(e,t,r,o,i))return n.value;var u;if(0===e)u=o+r*t;else{var s=Math.pow(1+e,t);u=1===i?o*s+r*(1+e)*(s-1)/e:o*s+r*(s-1)/e}return-u},t.FVSCHEDULE=function(e,t){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return n.value;for(var r=t.length,o=e,i=0;i<r;i++)o*=1+t[i];return o},t.INTRATE=function(){throw new Error("INTRATE is not implemented")},t.IPMT=function(e,r,o,i,u,s){if(u=u||0,s=s||0,e=a.parseNumber(e),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),u=a.parseNumber(u),s=a.parseNumber(s),a.anyIsError(e,r,o,i,u,s))return n.value;var f,c=t.PMT(e,o,i,u,s);return f=1===r?1===s?0:-i:1===s?t.FV(e,r-2,c,i,1)-c:t.FV(e,r-1,c,i,0),f*e},t.IRR=function(e,t){if(t=t||0,e=a.parseNumberArray(a.flatten(e)),t=a.parseNumber(t),a.anyIsError(e,t))return n.value;for(var r=function(e,t,r){for(var n=r+1,o=e[0],a=1;a<e.length;a++)o+=e[a]/Math.pow(n,(t[a]-t[0])/365);return o},o=function(e,t,r){for(var n=r+1,o=0,a=1;a<e.length;a++){var i=(t[a]-t[0])/365;o-=i*e[a]/Math.pow(n,i+1)}return o},i=[],u=!1,s=!1,f=0;f<e.length;f++)i[f]=0===f?0:i[f-1]+365,e[f]>0&&(u=!0),e[f]<0&&(s=!0);if(!u||!s)return n.num;t=void 0===t?.1:t;var c,l,p,h=t,d=1e-10,g=!0;do{p=r(e,i,h),c=h-p/o(e,i,h),l=Math.abs(c-h),h=c,g=l>d&&Math.abs(p)>d}while(g);return h},t.ISPMT=function(e,t,r,o){return e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,t,r,o)?n.value:o*e*(t/r-1)},t.MDURATION=function(){throw new Error("MDURATION is not implemented")},t.MIRR=function(e,r,o){if(e=a.parseNumberArray(a.flatten(e)),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,r,o))return n.value;for(var i=e.length,u=[],s=[],f=0;f<i;f++)e[f]<0?u.push(e[f]):s.push(e[f]);var c=-t.NPV(o,s)*Math.pow(1+o,i-1),l=t.NPV(r,u)*(1+r);return Math.pow(c/l,1/(i-1))-1},t.NOMINAL=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?n.value:e<=0||t<1?n.num:(t=parseInt(t,10),(Math.pow(e+1,1/t)-1)*t)},t.NPER=function(e,t,r,o,i){if(i=void 0===i?0:i,o=void 0===o?0:o,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),a.anyIsError(e,t,r,o,i))return n.value;var u=t*(1+e*i)-o*e,s=r*e+t*(1+e*i);return Math.log(u/s)/Math.log(1+e)},t.NPV=function(){var e=a.parseNumberArray(a.flatten(arguments));if(e instanceof Error)return e;for(var t=e[0],r=0,n=1;n<e.length;n++)r+=e[n]/Math.pow(1+t,n);return r},t.ODDFPRICE=function(){throw new Error("ODDFPRICE is not implemented")},t.ODDFYIELD=function(){throw new Error("ODDFYIELD is not implemented")},t.ODDLPRICE=function(){throw new Error("ODDLPRICE is not implemented")},t.ODDLYIELD=function(){throw new Error("ODDLYIELD is not implemented")},t.PDURATION=function(e,t,r){return e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),a.anyIsError(e,t,r)?n.value:e<=0?n.num:(Math.log(r)-Math.log(t))/Math.log(1+e)},t.PMT=function(e,t,r,o,i){if(o=o||0,i=i||0,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),a.anyIsError(e,t,r,o,i))return n.value;var u;if(0===e)u=(r+o)/t;else{var s=Math.pow(1+e,t);u=1===i?(o*e/(s-1)+r*e/(1-1/s))/(1+e):o*e/(s-1)+r*e/(1-1/s)}return-u},t.PPMT=function(e,r,o,i,u,s){return u=u||0,s=s||0,e=a.parseNumber(e),o=a.parseNumber(o),i=a.parseNumber(i),u=a.parseNumber(u),s=a.parseNumber(s),a.anyIsError(e,o,i,u,s)?n.value:t.PMT(e,o,i,u,s)-t.IPMT(e,r,o,i,u,s)},t.PRICE=function(){throw new Error("PRICE is not implemented")},t.PRICEDISC=function(){throw new Error("PRICEDISC is not implemented")},t.PRICEMAT=function(){throw new Error("PRICEMAT is not implemented")},t.PV=function(e,t,r,o,i){return o=o||0,i=i||0,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),a.anyIsError(e,t,r,o,i)?n.value:0===e?-r*t-o:((1-Math.pow(1+e,t))/e*r*(1+e*i)-o)/Math.pow(1+e,t)},t.RATE=function(e,t,r,o,i,u){if(u=void 0===u?.01:u,o=void 0===o?0:o,i=void 0===i?0:i,e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),i=a.parseNumber(i),u=a.parseNumber(u),a.anyIsError(e,t,r,o,i,u))return n.value;var s,f,c,l,p=1e-10,h=50,d=0,g=0,y=0,m=u;Math.abs(m)<p?s=r*(1+e*m)+t*(1+m*i)*e+o:(g=Math.exp(e*Math.log(1+m)),s=r*g+t*(1/m+i)*(g-1)+o),f=r+t*e+o,c=r*g+t*(1/m+i)*(g-1)+o,y=l=0,d=m;while(Math.abs(f-c)>p&&y<h)m=(c*l-f*d)/(c-f),l=d,d=m,Math.abs(m)<p?s=r*(1+e*m)+t*(1+m*i)*e+o:(g=Math.exp(e*Math.log(1+m)),s=r*g+t*(1/m+i)*(g-1)+o),f=c,c=s,++y;return m},t.RECEIVED=function(){throw new Error("RECEIVED is not implemented")},t.RRI=function(e,t,r){return e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),a.anyIsError(e,t,r)?n.value:0===e||0===t?n.num:Math.pow(r/t,1/e)-1},t.SLN=function(e,t,r){return e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),a.anyIsError(e,t,r)?n.value:0===r?n.num:(e-t)/r},t.SYD=function(e,t,r,o){return e=a.parseNumber(e),t=a.parseNumber(t),r=a.parseNumber(r),o=a.parseNumber(o),a.anyIsError(e,t,r,o)?n.value:0===r||o<1||o>r?n.num:(o=parseInt(o,10),(e-t)*(r-o+1)*2/(r*(r+1)))},t.TBILLEQ=function(e,t,r){return e=a.parseDate(e),t=a.parseDate(t),r=a.parseNumber(r),a.anyIsError(e,t,r)?n.value:r<=0||e>t||t-e>31536e6?n.num:365*r/(360-r*o.DAYS360(e,t,!1))},t.TBILLPRICE=function(e,t,r){return e=a.parseDate(e),t=a.parseDate(t),r=a.parseNumber(r),a.anyIsError(e,t,r)?n.value:r<=0||e>t||t-e>31536e6?n.num:100*(1-r*o.DAYS360(e,t,!1)/360)},t.TBILLYIELD=function(e,t,r){return e=a.parseDate(e),t=a.parseDate(t),r=a.parseNumber(r),a.anyIsError(e,t,r)?n.value:r<=0||e>t||t-e>31536e6?n.num:360*(100-r)/(r*o.DAYS360(e,t,!1))},t.VDB=function(){throw new Error("VDB is not implemented")},t.XNPV=function(e,t,r){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),r=a.parseDateArray(a.flatten(r)),a.anyIsError(e,t,r))return n.value;for(var i=0,u=0;u<t.length;u++)i+=t[u]/Math.pow(1+e,o.DAYS(r[u],r[0])/365);return i},t.YIELD=function(){throw new Error("YIELD is not implemented")},t.YIELDDISC=function(){throw new Error("YIELDDISC is not implemented")},t.YIELDMAT=function(){throw new Error("YIELDMAT is not implemented")}},8516:(e,t,r)=>{var n=r(9151);t.CELL=function(){throw new Error("CELL is not implemented")},t.ERROR={},t.ERROR.TYPE=function(e){switch(e){case n.nil:return 1;case n.div0:return 2;case n.value:return 3;case n.ref:return 4;case n.name:return 5;case n.num:return 6;case n.na:return 7;case n.data:return 8}return n.na},t.INFO=function(){throw new Error("INFO is not implemented")},t.ISBLANK=function(e){return null===e},t.ISBINARY=function(e){return/^[01]{1,10}$/.test(e)},t.ISERR=function(e){return[n.value,n.ref,n.div0,n.num,n.name,n.nil].indexOf(e)>=0||"number"===typeof e&&(isNaN(e)||!isFinite(e))},t.ISERROR=function(e){return t.ISERR(e)||e===n.na},t.ISEVEN=function(e){return!(1&Math.floor(Math.abs(e)))},t.ISFORMULA=function(){throw new Error("ISFORMULA is not implemented")},t.ISLOGICAL=function(e){return!0===e||!1===e},t.ISNA=function(e){return e===n.na},t.ISNONTEXT=function(e){return"string"!==typeof e},t.ISNUMBER=function(e){return"number"===typeof e&&!isNaN(e)&&isFinite(e)},t.ISODD=function(e){return!!(1&Math.floor(Math.abs(e)))},t.ISREF=function(){throw new Error("ISREF is not implemented")},t.ISTEXT=function(e){return"string"===typeof e},t.N=function(e){return this.ISNUMBER(e)?e:e instanceof Date?e.getTime():!0===e?1:!1===e?0:this.ISERROR(e)?e:0},t.NA=function(){return n.na},t.SHEET=function(){throw new Error("SHEET is not implemented")},t.SHEETS=function(){throw new Error("SHEETS is not implemented")},t.TYPE=function(e){return this.ISNUMBER(e)?1:this.ISTEXT(e)?2:this.ISLOGICAL(e)?4:this.ISERROR(e)?16:Array.isArray(e)?64:void 0}},6946:(e,t,r)=>{var n=r(9151),o=r(5426),a=r(8516);t.AND=function(){for(var e=o.flatten(arguments),t=!0,r=0;r<e.length;r++)e[r]||(t=!1);return t},t.CHOOSE=function(){if(arguments.length<2)return n.na;var e=arguments[0];return e<1||e>254||arguments.length<e+1?n.value:arguments[e]},t.FALSE=function(){return!1},t.IF=function(e,t,r){return e?t:r},t.IFERROR=function(e,t){return a.ISERROR(e)?t:e},t.IFNA=function(e,t){return e===n.na?t:e},t.NOT=function(e){return!e},t.OR=function(){for(var e=o.flatten(arguments),t=!1,r=0;r<e.length;r++)e[r]&&(t=!0);return t},t.TRUE=function(){return!0},t.XOR=function(){for(var e=o.flatten(arguments),t=0,r=0;r<e.length;r++)e[r]&&t++;return!!(1&Math.floor(Math.abs(t)))},t.SWITCH=function(){var e;if(arguments.length>0){var t=arguments[0],r=arguments.length-1,o=Math.floor(r/2),a=!1,i=r%2!==0,u=r%2===0?null:arguments[arguments.length-1];if(o)for(var s=0;s<o;s++)if(t===arguments[2*s+1]){e=arguments[2*s+2],a=!0;break}a||(e=i?u:n.na)}else e=n.value;return e}},8856:(e,t,r)=>{var n=r(9151),o=r(5426);t.MATCH=function(e,t,r){if(!e&&!t)return n.na;if(2===arguments.length&&(r=1),!(t instanceof Array))return n.na;if(-1!==r&&0!==r&&1!==r)return n.na;for(var o,a,i=0;i<t.length;i++)if(1===r){if(t[i]===e)return i+1;t[i]<e&&(a?t[i]>a&&(o=i+1,a=t[i]):(o=i+1,a=t[i]))}else if(0===r){if("string"===typeof e){if(e=e.replace(/\?/g,"."),t[i].toLowerCase().match(e.toLowerCase()))return i+1}else if(t[i]===e)return i+1}else if(-1===r){if(t[i]===e)return i+1;t[i]>e&&(a?t[i]<a&&(o=i+1,a=t[i]):(o=i+1,a=t[i]))}return o||n.na},t.VLOOKUP=function(e,t,r,o){if(!e||!t||!r)return n.na;o=o||!1;for(var a=0;a<t.length;a++){var i=t[a];if(!o&&i[0]===e||i[0]===e||o&&"string"===typeof i[0]&&-1!==i[0].toLowerCase().indexOf(e.toLowerCase()))return r<i.length+1?i[r-1]:n.ref}return n.na},t.HLOOKUP=function(e,t,r,a){if(!e||!t||!r)return n.na;a=a||!1;for(var i=o.transpose(t),u=0;u<i.length;u++){var s=i[u];if(!a&&s[0]===e||s[0]===e||a&&"string"===typeof s[0]&&-1!==s[0].toLowerCase().indexOf(e.toLowerCase()))return r<s.length+1?s[r-1]:n.ref}return n.na}},389:(e,t,r)=>{var n=r(5426),o=r(9151),a=r(5622),i=r(8516),u=r(3981);t.ABS=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.abs(e);return t},t.ACOS=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.acos(e);return isNaN(t)&&(t=o.num),t},t.ACOSH=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.log(e+Math.sqrt(e*e-1));return isNaN(t)&&(t=o.num),t},t.ACOT=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.atan(1/e);return t},t.ACOTH=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=.5*Math.log((e+1)/(e-1));return isNaN(t)&&(t=o.num),t},t.AGGREGATE=function(e,r,i,u){if(e=n.parseNumber(e),r=n.parseNumber(e),n.anyIsError(e,r))return o.value;switch(e){case 1:return a.AVERAGE(i);case 2:return a.COUNT(i);case 3:return a.COUNTA(i);case 4:return a.MAX(i);case 5:return a.MIN(i);case 6:return t.PRODUCT(i);case 7:return a.STDEV.S(i);case 8:return a.STDEV.P(i);case 9:return t.SUM(i);case 10:return a.VAR.S(i);case 11:return a.VAR.P(i);case 12:return a.MEDIAN(i);case 13:return a.MODE.SNGL(i);case 14:return a.LARGE(i,u);case 15:return a.SMALL(i,u);case 16:return a.PERCENTILE.INC(i,u);case 17:return a.QUARTILE.INC(i,u);case 18:return a.PERCENTILE.EXC(i,u);case 19:return a.QUARTILE.EXC(i,u)}},t.ARABIC=function(e){if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e))return o.value;var t=0;return e.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,(function(e){t+={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}[e]})),t},t.ASIN=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.asin(e);return isNaN(t)&&(t=o.num),t},t.ASINH=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.log(e+Math.sqrt(e*e+1))},t.ATAN=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.atan(e)},t.ATAN2=function(e,t){return e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:Math.atan2(e,t)},t.ATANH=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.log((1+e)/(1-e))/2;return isNaN(t)&&(t=o.num),t},t.BASE=function(e,t,r){if(r=r||0,e=n.parseNumber(e),t=n.parseNumber(t),r=n.parseNumber(r),n.anyIsError(e,t,r))return o.value;r=void 0===r?0:r;var a=e.toString(t);return new Array(Math.max(r+1-a.length,0)).join("0")+a},t.CEILING=function(e,r,a){if(r=void 0===r?1:Math.abs(r),a=a||0,e=n.parseNumber(e),r=n.parseNumber(r),a=n.parseNumber(a),n.anyIsError(e,r,a))return o.value;if(0===r)return 0;var i=-Math.floor(Math.log(r)/Math.log(10));return e>=0?t.ROUND(Math.ceil(e/r)*r,i):0===a?-t.ROUND(Math.floor(Math.abs(e)/r)*r,i):-t.ROUND(Math.ceil(Math.abs(e)/r)*r,i)},t.CEILING.MATH=t.CEILING,t.CEILING.PRECISE=t.CEILING,t.COMBIN=function(e,r){return e=n.parseNumber(e),r=n.parseNumber(r),n.anyIsError(e,r)?o.value:t.FACT(e)/(t.FACT(r)*t.FACT(e-r))},t.COMBINA=function(e,r){return e=n.parseNumber(e),r=n.parseNumber(r),n.anyIsError(e,r)?o.value:0===e&&0===r?1:t.COMBIN(e+r-1,e-1)},t.COS=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.cos(e)},t.COSH=function(e){return e=n.parseNumber(e),e instanceof Error?e:(Math.exp(e)+Math.exp(-e))/2},t.COT=function(e){return e=n.parseNumber(e),e instanceof Error?e:1/Math.tan(e)},t.COTH=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.exp(2*e);return(t+1)/(t-1)},t.CSC=function(e){return e=n.parseNumber(e),e instanceof Error?e:1/Math.sin(e)},t.CSCH=function(e){return e=n.parseNumber(e),e instanceof Error?e:2/(Math.exp(e)-Math.exp(-e))},t.DECIMAL=function(e,t){return arguments.length<1?o.value:parseInt(e,t)},t.DEGREES=function(e){return e=n.parseNumber(e),e instanceof Error?e:180*e/Math.PI},t.EVEN=function(e){return e=n.parseNumber(e),e instanceof Error?e:t.CEILING(e,-2,-1)},t.EXP=function(e){return arguments.length<1?o.na:"number"!==typeof e||arguments.length>1?o.error:(e=Math.exp(e),e)};var s=[];t.FACT=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var r=Math.floor(e);return 0===r||1===r?1:(s[r]>0||(s[r]=t.FACT(r-1)*r),s[r])},t.FACTDOUBLE=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var r=Math.floor(e);return r<=0?1:r*t.FACTDOUBLE(r-2)},t.FLOOR=function(e,r){if(e=n.parseNumber(e),r=n.parseNumber(r),n.anyIsError(e,r))return o.value;if(0===r)return 0;if(!(e>0&&r>0)&&!(e<0&&r<0))return o.num;r=Math.abs(r);var a=-Math.floor(Math.log(r)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/r)*r,a):-t.ROUND(Math.ceil(Math.abs(e)/r),a)},t.FLOOR.MATH=function(e,r,a){if(r=void 0===r?1:r,a=void 0===a?0:a,e=n.parseNumber(e),r=n.parseNumber(r),a=n.parseNumber(a),n.anyIsError(e,r,a))return o.value;if(0===r)return 0;r=r?Math.abs(r):1;var i=-Math.floor(Math.log(r)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/r)*r,i):0===a||void 0===a?-t.ROUND(Math.ceil(Math.abs(e)/r)*r,i):-t.ROUND(Math.floor(Math.abs(e)/r)*r,i)},t.FLOOR.PRECISE=t.FLOOR.MATH,t.GCD=function(){var e=n.parseNumberArray(n.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,r=e[0],o=r<0?-r:r,a=1;a<t;a++){var i=e[a],u=i<0?-i:i;while(o&&u)o>u?o%=u:u%=o;o+=u}return o},t.INT=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.floor(e)},t.ISO={CEILING:t.CEILING},t.LCM=function(){var e=n.parseNumberArray(n.flatten(arguments));if(e instanceof Error)return e;for(var t,r,o,a,i=1;void 0!==(o=e.pop());)while(o>1){if(o%2){for(t=3,r=Math.floor(Math.sqrt(o));t<=r&&o%t;t+=2);a=t<=r?t:o}else a=2;for(o/=a,i*=a,t=e.length;t;e[--t]%a===0&&1===(e[t]/=a)&&e.splice(t,1));}return i},t.LN=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.log(e)},t.LN10=function(){return Math.log(10)},t.LN2=function(){return Math.log(2)},t.LOG10E=function(){return Math.LOG10E},t.LOG2E=function(){return Math.LOG2E},t.LOG=function(e,t){return e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:(t=void 0===t?10:t,Math.log(e)/Math.log(t))},t.LOG10=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.log(e)/Math.log(10)},t.MOD=function(e,t){if(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t))return o.value;if(0===t)return o.div0;var r=Math.abs(e%t);return t>0?r:-r},t.MROUND=function(e,t){return e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:e*t<0?o.num:Math.round(e/t)*t},t.MULTINOMIAL=function(){var e=n.parseNumberArray(n.flatten(arguments));if(e instanceof Error)return e;for(var r=0,o=1,a=0;a<e.length;a++)r+=e[a],o*=t.FACT(e[a]);return t.FACT(r)/o},t.ODD=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.ceil(Math.abs(e));return t=1&t?t:t+1,e>0?t:-t},t.PI=function(){return Math.PI},t.E=function(){return Math.E},t.POWER=function(e,t){if(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t))return o.value;var r=Math.pow(e,t);return isNaN(r)?o.num:r},t.PRODUCT=function(){var e=n.parseNumberArray(n.flatten(arguments));if(e instanceof Error)return e;for(var t=1,r=0;r<e.length;r++)t*=e[r];return t},t.QUOTIENT=function(e,t){return e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:parseInt(e/t,10)},t.RADIANS=function(e){return e=n.parseNumber(e),e instanceof Error?e:e*Math.PI/180},t.RAND=function(){return Math.random()},t.RANDBETWEEN=function(e,t){return e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:e+Math.ceil((t-e+1)*Math.random())-1},t.ROMAN=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=String(e).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"],o="",a=3;while(a--)o=(r[+t.pop()+10*a]||"")+o;return new Array(+t.join("")+1).join("M")+o},t.ROUND=function(e,t){return e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:Math.round(e*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDDOWN=function(e,t){if(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t))return o.value;var r=e>0?1:-1;return r*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDUP=function(e,t){if(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t))return o.value;var r=e>0?1:-1;return r*Math.ceil(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.SEC=function(e){return e=n.parseNumber(e),e instanceof Error?e:1/Math.cos(e)},t.SECH=function(e){return e=n.parseNumber(e),e instanceof Error?e:2/(Math.exp(e)+Math.exp(-e))},t.SERIESSUM=function(e,t,r,a){if(e=n.parseNumber(e),t=n.parseNumber(t),r=n.parseNumber(r),a=n.parseNumberArray(a),n.anyIsError(e,t,r,a))return o.value;for(var i=a[0]*Math.pow(e,t),u=1;u<a.length;u++)i+=a[u]*Math.pow(e,t+u*r);return i},t.SIGN=function(e){return e=n.parseNumber(e),e instanceof Error?e:e<0?-1:0===e?0:1},t.SIN=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.sin(e)},t.SINH=function(e){return e=n.parseNumber(e),e instanceof Error?e:(Math.exp(e)-Math.exp(-e))/2},t.SQRT=function(e){return e=n.parseNumber(e),e instanceof Error?e:e<0?o.num:Math.sqrt(e)},t.SQRTPI=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.sqrt(e*Math.PI)},t.SQRT1_2=function(){return 1/Math.sqrt(2)},t.SQRT2=function(){return Math.sqrt(2)},t.SUBTOTAL=function(e,r){if(e=n.parseNumber(e),e instanceof Error)return e;switch(e){case 1:return a.AVERAGE(r);case 2:return a.COUNT(r);case 3:return a.COUNTA(r);case 4:return a.MAX(r);case 5:return a.MIN(r);case 6:return t.PRODUCT(r);case 7:return a.STDEV.S(r);case 8:return a.STDEV.P(r);case 9:return t.SUM(r);case 10:return a.VAR.S(r);case 11:return a.VAR.P(r);case 101:return a.AVERAGE(r);case 102:return a.COUNT(r);case 103:return a.COUNTA(r);case 104:return a.MAX(r);case 105:return a.MIN(r);case 106:return t.PRODUCT(r);case 107:return a.STDEV.S(r);case 108:return a.STDEV.P(r);case 109:return t.SUM(r);case 110:return a.VAR.S(r);case 111:return a.VAR.P(r)}},t.ADD=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:e+t)},t.MINUS=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:e-t)},t.DIVIDE=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:0===t?o.div0:e/t)},t.MULTIPLY=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.value:e*t)},t.GTE=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.error:e>=t)},t.LT=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.error:e<t)},t.LTE=function(e,t){return 2!==arguments.length?o.na:(e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t)?o.error:e<=t)},t.EQ=function(e,t){return 2!==arguments.length?o.na:e===t},t.NE=function(e,t){return 2!==arguments.length?o.na:e!==t},t.POW=function(e,r){return 2!==arguments.length?o.na:(e=n.parseNumber(e),r=n.parseNumber(r),n.anyIsError(e,r)?o.error:t.POWER(e,r))},t.SUM=function(){var e=0;return n.arrayEach(n.argsToArray(arguments),(function(r){if("number"===typeof r)e+=r;else if("string"===typeof r){var n=parseFloat(r);!isNaN(n)&&(e+=n)}else Array.isArray(r)&&(e+=t.SUM.apply(null,r))})),e},t.SUMIF=function(e,t){if(e=n.parseNumberArray(n.flatten(e)),e instanceof Error)return e;for(var r=0,o=void 0===t||"*"===t,a=o?null:u.parse(t+""),i=0;i<e.length;i++){var s=e[i];if(o)r+=s;else{var f=[u.createToken(s,u.TOKEN_TYPE_LITERAL)].concat(a);r+=u.compute(f)?s:0}}return r},t.SUMIFS=function(){var e=n.argsToArray(arguments),t=n.parseNumberArray(n.flatten(e.shift()));if(t instanceof Error)return t;for(var r=e,o=t.length,a=r.length,i=0,s=0;s<o;s++){for(var f=t[s],c=!1,l=0;l<a;l++){var p=r[l],h=void 0===p||"*"===p,d=!1;if(h)d=!0;else{var g=u.parse(p+""),y=[u.createToken(f,u.TOKEN_TYPE_LITERAL)].concat(g);d=u.compute(y)}if(!d){c=!1;break}c=!0}c&&(i+=f)}return i},t.SUMPRODUCT=function(){if(!arguments||0===arguments.length)return o.value;for(var e,t,r,a,i=arguments.length+1,u=0,s=0;s<arguments[0].length;s++)if(arguments[0][s]instanceof Array)for(var f=0;f<arguments[0][s].length;f++){for(e=1,t=1;t<i;t++){if(a=n.parseNumber(arguments[t-1][s][f]),a instanceof Error)return a;e*=a}u+=e}else{for(e=1,t=1;t<i;t++){if(r=n.parseNumber(arguments[t-1][s]),r instanceof Error)return r;e*=r}u+=e}return u},t.SUMSQ=function(){var e=n.parseNumberArray(n.flatten(arguments));if(e instanceof Error)return e;for(var t=0,r=e.length,o=0;o<r;o++)t+=i.ISNUMBER(e[o])?e[o]*e[o]:0;return t},t.SUMX2MY2=function(e,t){if(e=n.parseNumberArray(n.flatten(e)),t=n.parseNumberArray(n.flatten(t)),n.anyIsError(e,t))return o.value;for(var r=0,a=0;a<e.length;a++)r+=e[a]*e[a]-t[a]*t[a];return r},t.SUMX2PY2=function(e,t){if(e=n.parseNumberArray(n.flatten(e)),t=n.parseNumberArray(n.flatten(t)),n.anyIsError(e,t))return o.value;var r=0;e=n.parseNumberArray(n.flatten(e)),t=n.parseNumberArray(n.flatten(t));for(var a=0;a<e.length;a++)r+=e[a]*e[a]+t[a]*t[a];return r},t.SUMXMY2=function(e,t){if(e=n.parseNumberArray(n.flatten(e)),t=n.parseNumberArray(n.flatten(t)),n.anyIsError(e,t))return o.value;var r=0;e=n.flatten(e),t=n.flatten(t);for(var a=0;a<e.length;a++)r+=Math.pow(e[a]-t[a],2);return r},t.TAN=function(e){return e=n.parseNumber(e),e instanceof Error?e:Math.tan(e)},t.TANH=function(e){if(e=n.parseNumber(e),e instanceof Error)return e;var t=Math.exp(2*e);return(t-1)/(t+1)},t.TRUNC=function(e,t){if(t=void 0===t?0:t,e=n.parseNumber(e),t=n.parseNumber(t),n.anyIsError(e,t))return o.value;var r=e>0?1:-1;return r*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)}},7674:(e,t,r)=>{var n=r(5426),o=r(9151);t.UNIQUE=function(){for(var e=[],t=0;t<arguments.length;++t){for(var r=!1,n=arguments[t],o=0;o<e.length;++o)if(r=e[o]===n,r)break;r||e.push(n)}return e},t.FLATTEN=n.flatten,t.ARGS2ARRAY=function(){return Array.prototype.slice.call(arguments,0)},t.REFERENCE=function(e,t){if(!arguments.length)return o.error;try{for(var r=t.split("."),n=e,a=0;a<r.length;++a){var i=r[a];if("]"===i[i.length-1]){var u=i.indexOf("["),s=i.substring(u+1,i.length-1);n=n[i.substring(0,u)][s]}else n=n[i]}return n}catch(o){}},t.JOIN=function(e,t){return e.join(t)},t.NUMBERS=function(){var e=n.flatten(arguments);return e.filter((function(e){return"number"===typeof e}))}},5622:(e,t,r)=>{var n=r(389),o=r(4854),a=r(8855),i=r(5426),u=r(3981),s=r(9151),f=r(7674),c=2.5066282746310002;t.AVEDEV=function(){var e=i.parseNumberArray(i.flatten(arguments));return e instanceof Error?e:a.sum(a(e).subtract(a.mean(e)).abs()[0])/e.length},t.AVERAGE=function(){for(var e,t=i.numbers(i.flatten(arguments)),r=t.length,n=0,o=0,a=0;a<r;a++)n+=t[a],o+=1;return e=n/o,isNaN(e)&&(e=s.num),e},t.AVERAGEA=function(){for(var e,t=i.flatten(arguments),r=t.length,n=0,o=0,a=0;a<r;a++){var u=t[a];"number"===typeof u&&(n+=u),!0===u&&n++,null!==u&&o++}return e=n/o,isNaN(e)&&(e=s.num),e},t.AVERAGEIF=function(e,t,r){if(arguments.length<=1)return s.na;if(r=r||e,e=i.flatten(e),r=i.parseNumberArray(i.flatten(r)),r instanceof Error)return r;for(var n=0,o=0,a=void 0===t||"*"===t,f=a?null:u.parse(t+""),c=0;c<e.length;c++){var l=e[c];if(a)o+=r[c],n++;else{var p=[u.createToken(l,u.TOKEN_TYPE_LITERAL)].concat(f);u.compute(p)&&(o+=r[c],n++)}}return o/n},t.AVERAGEIFS=function(){for(var e=i.argsToArray(arguments),t=(e.length-1)/2,r=i.flatten(e[0]),n=0,o=0,a=0;a<r.length;a++){for(var s=!1,f=0;f<t;f++){var c=e[2*f+1][a],l=e[2*f+2],p=void 0===l||"*"===l,h=!1;if(p)h=!0;else{var d=u.parse(l+""),g=[u.createToken(c,u.TOKEN_TYPE_LITERAL)].concat(d);h=u.compute(g)}if(!h){s=!1;break}s=!0}s&&(o+=r[a],n++)}var y=o/n;return isNaN(y)?0:y},t.BETA={},t.BETA.DIST=function(e,t,r,n,o,u){return arguments.length<4?s.value:(o=void 0===o?0:o,u=void 0===u?1:u,e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),o=i.parseNumber(o),u=i.parseNumber(u),i.anyIsError(e,t,r,o,u)?s.value:(e=(e-o)/(u-o),n?a.beta.cdf(e,t,r):a.beta.pdf(e,t,r)))},t.BETA.INV=function(e,t,r,n,o){return n=void 0===n?0:n,o=void 0===o?1:o,e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),n=i.parseNumber(n),o=i.parseNumber(o),i.anyIsError(e,t,r,n,o)?s.value:a.beta.inv(e,t,r)*(o-n)+n},t.BINOM={},t.BINOM.DIST=function(e,t,r,n){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),n=i.parseNumber(n),i.anyIsError(e,t,r,n)?s.value:n?a.binomial.cdf(e,t,r):a.binomial.pdf(e,t,r)},t.BINOM.DIST.RANGE=function(e,t,r,o){if(o=void 0===o?r:o,e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),o=i.parseNumber(o),i.anyIsError(e,t,r,o))return s.value;for(var a=0,u=r;u<=o;u++)a+=n.COMBIN(e,u)*Math.pow(t,u)*Math.pow(1-t,e-u);return a},t.BINOM.INV=function(e,t,r){if(e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r))return s.value;var n=0;while(n<=e){if(a.binomial.cdf(n,e,t)>=r)return n;n++}},t.CHISQ={},t.CHISQ.DIST=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:r?a.chisquare.cdf(e,t):a.chisquare.pdf(e,t)},t.CHISQ.DIST.RT=function(e,t){return!e|!t?s.na:e<1||t>Math.pow(10,10)?s.num:"number"!==typeof e||"number"!==typeof t?s.value:1-a.chisquare.cdf(e,t)},t.CHISQ.INV=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:a.chisquare.inv(e,t)},t.CHISQ.INV.RT=function(e,t){return!e|!t?s.na:e<0||e>1||t<1||t>Math.pow(10,10)?s.num:"number"!==typeof e||"number"!==typeof t?s.value:a.chisquare.inv(1-e,t)},t.CHISQ.TEST=function(e,t){if(2!==arguments.length)return s.na;if(!(e instanceof Array)||!(t instanceof Array))return s.value;if(e.length!==t.length)return s.value;if(e[0]&&t[0]&&e[0].length!==t[0].length)return s.value;var r,n,o,a=e.length;for(n=0;n<a;n++)e[n]instanceof Array||(r=e[n],e[n]=[],e[n].push(r)),t[n]instanceof Array||(r=t[n],t[n]=[],t[n].push(r));var i=e[0].length,u=1===i?a-1:(a-1)*(i-1),f=0,c=Math.PI;for(n=0;n<a;n++)for(o=0;o<i;o++)f+=Math.pow(e[n][o]-t[n][o],2)/t[n][o];function l(e,t){var r=Math.exp(-.5*e);t%2===1&&(r*=Math.sqrt(2*e/c));var n=t;while(n>=2)r=r*e/n,n-=2;var o=r,a=t;while(o>1e-10*r)a+=2,o=o*e/a,r+=o;return 1-r}return Math.round(1e6*l(f,u))/1e6},t.COLUMN=function(e,t){return 2!==arguments.length?s.na:t<0?s.num:e instanceof Array&&"number"===typeof t?0!==e.length?a.col(e,t):void 0:s.value},t.COLUMNS=function(e){return 1!==arguments.length?s.na:e instanceof Array?0===e.length?0:a.cols(e):s.value},t.CONFIDENCE={},t.CONFIDENCE.NORM=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:a.normalci(1,e,t,r)[1]-1},t.CONFIDENCE.T=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:a.tci(1,e,t,r)[1]-1},t.CORREL=function(e,t){return e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t)?s.value:a.corrcoeff(e,t)},t.COUNT=function(){return i.numbers(i.flatten(arguments)).length},t.COUNTA=function(){var e=i.flatten(arguments);return e.length-t.COUNTBLANK(e)},t.COUNTIN=function(e,t){var r=0;e=i.flatten(e);for(var n=0;n<e.length;n++)e[n]===t&&r++;return r},t.COUNTBLANK=function(){for(var e,t=i.flatten(arguments),r=0,n=0;n<t.length;n++)e=t[n],null!==e&&""!==e||r++;return r},t.COUNTIF=function(e,t){e=i.flatten(e);var r=void 0===t||"*"===t;if(r)return e.length;for(var n=0,o=u.parse(t+""),a=0;a<e.length;a++){var s=e[a],f=[u.createToken(s,u.TOKEN_TYPE_LITERAL)].concat(o);u.compute(f)&&n++}return n},t.COUNTIFS=function(){for(var e=i.argsToArray(arguments),t=new Array(i.flatten(e[0]).length),r=0;r<t.length;r++)t[r]=!0;for(r=0;r<e.length;r+=2){var n=i.flatten(e[r]),o=e[r+1],a=void 0===o||"*"===o;if(!a)for(var s=u.parse(o+""),f=0;f<n.length;f++){var c=n[f],l=[u.createToken(c,u.TOKEN_TYPE_LITERAL)].concat(s);t[f]=t[f]&&u.compute(l)}}var p=0;for(r=0;r<t.length;r++)t[r]&&p++;return p},t.COUNTUNIQUE=function(){return f.UNIQUE.apply(null,i.flatten(arguments)).length},t.COVARIANCE={},t.COVARIANCE.P=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;for(var r=a.mean(e),n=a.mean(t),o=0,u=e.length,f=0;f<u;f++)o+=(e[f]-r)*(t[f]-n);return o/u},t.COVARIANCE.S=function(e,t){return e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t)?s.value:a.covariance(e,t)},t.DEVSQ=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t=a.mean(e),r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t,2);return r},t.EXPON={},t.EXPON.DIST=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:r?a.exponential.cdf(e,t):a.exponential.pdf(e,t)},t.F={},t.F.DIST=function(e,t,r,n){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:n?a.centralF.cdf(e,t,r):a.centralF.pdf(e,t,r)},t.F.DIST.RT=function(e,t,r){return 3!==arguments.length?s.na:e<0||t<1||r<1?s.num:"number"!==typeof e||"number"!==typeof t||"number"!==typeof r?s.value:1-a.centralF.cdf(e,t,r)},t.F.INV=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:e<=0||e>1?s.num:a.centralF.inv(e,t,r)},t.F.INV.RT=function(e,t,r){return 3!==arguments.length?s.na:e<0||e>1||t<1||t>Math.pow(10,10)||r<1||r>Math.pow(10,10)?s.num:"number"!==typeof e||"number"!==typeof t||"number"!==typeof r?s.value:a.centralF.inv(1-e,t,r)},t.F.TEST=function(e,t){if(!e||!t)return s.na;if(!(e instanceof Array)||!(t instanceof Array))return s.na;if(e.length<2||t.length<2)return s.div0;var r=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t,2);return r},o=n.SUM(e)/e.length,a=n.SUM(t)/t.length,i=r(e,o)/(e.length-1),u=r(t,a)/(t.length-1);return i/u},t.FISHER=function(e){return e=i.parseNumber(e),e instanceof Error?e:Math.log((1+e)/(1-e))/2},t.FISHERINV=function(e){if(e=i.parseNumber(e),e instanceof Error)return e;var t=Math.exp(2*e);return(t-1)/(t+1)},t.FORECAST=function(e,t,r){if(e=i.parseNumber(e),t=i.parseNumberArray(i.flatten(t)),r=i.parseNumberArray(i.flatten(r)),i.anyIsError(e,t,r))return s.value;for(var n=a.mean(r),o=a.mean(t),u=r.length,f=0,c=0,l=0;l<u;l++)f+=(r[l]-n)*(t[l]-o),c+=Math.pow(r[l]-n,2);var p=f/c,h=o-p*n;return h+p*e},t.FREQUENCY=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;for(var r=e.length,n=t.length,o=[],a=0;a<=n;a++){o[a]=0;for(var u=0;u<r;u++)0===a?e[u]<=t[0]&&(o[0]+=1):a<n?e[u]>t[a-1]&&e[u]<=t[a]&&(o[a]+=1):a===n&&e[u]>t[n-1]&&(o[n]+=1)}return o},t.GAMMA=function(e){return e=i.parseNumber(e),e instanceof Error?e:0===e||parseInt(e,10)===e&&e<0?s.num:a.gammafn(e)},t.GAMMA.DIST=function(e,t,r,n){return 4!==arguments.length?s.na:e<0||t<=0||r<=0||"number"!==typeof e||"number"!==typeof t||"number"!==typeof r?s.value:n?a.gamma.cdf(e,t,r,!0):a.gamma.pdf(e,t,r,!1)},t.GAMMA.INV=function(e,t,r){return 3!==arguments.length?s.na:e<0||e>1||t<=0||r<=0?s.num:"number"!==typeof e||"number"!==typeof t||"number"!==typeof r?s.value:a.gamma.inv(e,t,r)},t.GAMMALN=function(e){return e=i.parseNumber(e),e instanceof Error?e:a.gammaln(e)},t.GAMMALN.PRECISE=function(e){return 1!==arguments.length?s.na:e<=0?s.num:"number"!==typeof e?s.value:a.gammaln(e)},t.GAUSS=function(e){return e=i.parseNumber(e),e instanceof Error?e:a.normal.cdf(e,0,1)-.5},t.GEOMEAN=function(){var e=i.parseNumberArray(i.flatten(arguments));return e instanceof Error?e:a.geomean(e)},t.GROWTH=function(e,t,r,n){if(e=i.parseNumberArray(e),e instanceof Error)return e;var o;if(void 0===t)for(t=[],o=1;o<=e.length;o++)t.push(o);if(void 0===r)for(r=[],o=1;o<=e.length;o++)r.push(o);if(t=i.parseNumberArray(t),r=i.parseNumberArray(r),i.anyIsError(t,r))return s.value;void 0===n&&(n=!0);var a,u,f=e.length,c=0,l=0,p=0,h=0;for(o=0;o<f;o++){var d=t[o],g=Math.log(e[o]);c+=d,l+=g,p+=d*g,h+=d*d}c/=f,l/=f,p/=f,h/=f,n?(a=(p-c*l)/(h-c*c),u=l-a*c):(a=p/h,u=0);var y=[];for(o=0;o<r.length;o++)y.push(Math.exp(u+a*r[o]));return y},t.HARMEAN=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,r=0,n=0;n<t;n++)r+=1/e[n];return t/r},t.HYPGEOM={},t.HYPGEOM.DIST=function(e,t,r,o,a){if(e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),o=i.parseNumber(o),i.anyIsError(e,t,r,o))return s.value;function u(e,t,r,o){return n.COMBIN(r,e)*n.COMBIN(o-r,t-e)/n.COMBIN(o,t)}function f(e,t,r,n){for(var o=0,a=0;a<=e;a++)o+=u(a,t,r,n);return o}return a?f(e,t,r,o):u(e,t,r,o)},t.INTERCEPT=function(e,r){return e=i.parseNumberArray(e),r=i.parseNumberArray(r),i.anyIsError(e,r)?s.value:e.length!==r.length?s.na:t.FORECAST(0,e,r)},t.KURT=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t=a.mean(e),r=e.length,n=0,o=0;o<r;o++)n+=Math.pow(e[o]-t,4);return n/=Math.pow(a.stdev(e,!0),4),r*(r+1)/((r-1)*(r-2)*(r-3))*n-3*(r-1)*(r-1)/((r-2)*(r-3))},t.LARGE=function(e,t){return e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),i.anyIsError(e,t)?e:e.sort((function(e,t){return t-e}))[t-1]},t.LINEST=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;for(var r=a.mean(e),n=a.mean(t),o=t.length,u=0,f=0,c=0;c<o;c++)u+=(t[c]-n)*(e[c]-r),f+=Math.pow(t[c]-n,2);var l=u/f,p=r-l*n;return[l,p]},t.LOGEST=function(e,r){if(e=i.parseNumberArray(i.flatten(e)),r=i.parseNumberArray(i.flatten(r)),i.anyIsError(e,r))return s.value;for(var n=0;n<e.length;n++)e[n]=Math.log(e[n]);var o=t.LINEST(e,r);return o[0]=Math.round(1e6*Math.exp(o[0]))/1e6,o[1]=Math.round(1e6*Math.exp(o[1]))/1e6,o},t.LOGNORM={},t.LOGNORM.DIST=function(e,t,r,n){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:n?a.lognormal.cdf(e,t,r):a.lognormal.pdf(e,t,r)},t.LOGNORM.INV=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:a.lognormal.inv(e,t,r)},t.MAX=function(){var e=i.numbers(i.flatten(arguments));return 0===e.length?0:Math.max.apply(Math,e)},t.MAXA=function(){var e=i.arrayValuesToNumbers(i.flatten(arguments));return 0===e.length?0:Math.max.apply(Math,e)},t.MEDIAN=function(){var e=i.arrayValuesToNumbers(i.flatten(arguments)),t=a.median(e);return isNaN(t)&&(t=s.num),t},t.MIN=function(){var e=i.numbers(i.flatten(arguments));return 0===e.length?0:Math.min.apply(Math,e)},t.MINA=function(){var e=i.arrayValuesToNumbers(i.flatten(arguments));return 0===e.length?0:Math.min.apply(Math,e)},t.MODE={},t.MODE.MULT=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t,r=e.length,n={},o=[],a=0,u=0;u<r;u++)t=e[u],n[t]=n[t]?n[t]+1:1,n[t]>a&&(a=n[t],o=[]),n[t]===a&&(o[o.length]=t);return o},t.MODE.SNGL=function(){var e=i.parseNumberArray(i.flatten(arguments));return e instanceof Error?e:t.MODE.MULT(e).sort((function(e,t){return e-t}))[0]},t.NEGBINOM={},t.NEGBINOM.DIST=function(e,t,r,n){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:n?a.negbin.cdf(e,t,r):a.negbin.pdf(e,t,r)},t.NORM={},t.NORM.DIST=function(e,t,r,n){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:r<=0?s.num:n?a.normal.cdf(e,t,r):a.normal.pdf(e,t,r)},t.NORM.INV=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:a.normal.inv(e,t,r)},t.NORM.S={},t.NORM.S.DIST=function(e,t){return e=i.parseNumber(e),e instanceof Error?s.value:t?a.normal.cdf(e,0,1):a.normal.pdf(e,0,1)},t.NORM.S.INV=function(e){return e=i.parseNumber(e),e instanceof Error?s.value:a.normal.inv(e,0,1)},t.PEARSON=function(e,t){if(t=i.parseNumberArray(i.flatten(t)),e=i.parseNumberArray(i.flatten(e)),i.anyIsError(t,e))return s.value;for(var r=a.mean(e),n=a.mean(t),o=e.length,u=0,f=0,c=0,l=0;l<o;l++)u+=(e[l]-r)*(t[l]-n),f+=Math.pow(e[l]-r,2),c+=Math.pow(t[l]-n,2);return u/Math.sqrt(f*c)},t.PERCENTILE={},t.PERCENTILE.EXC=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),i.anyIsError(e,t))return s.value;e=e.sort((function(e,t){return e-t}));var r=e.length;if(t<1/(r+1)||t>1-1/(r+1))return s.num;var n=t*(r+1)-1,o=Math.floor(n);return i.cleanFloat(n===o?e[n]:e[o]+(n-o)*(e[o+1]-e[o]))},t.PERCENTILE.INC=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),i.anyIsError(e,t))return s.value;e=e.sort((function(e,t){return e-t}));var r=e.length,n=t*(r-1),o=Math.floor(n);return i.cleanFloat(n===o?e[n]:e[o]+(n-o)*(e[o+1]-e[o]))},t.PERCENTRANK={},t.PERCENTRANK.EXC=function(e,t,r){if(r=void 0===r?3:r,e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r))return s.value;e=e.sort((function(e,t){return e-t}));var n=f.UNIQUE.apply(null,e),o=e.length,a=n.length,u=Math.pow(10,r),c=0,l=!1,p=0;while(!l&&p<a)t===n[p]?(c=(e.indexOf(n[p])+1)/(o+1),l=!0):t>=n[p]&&(t<n[p+1]||p===a-1)&&(c=(e.indexOf(n[p])+1+(t-n[p])/(n[p+1]-n[p]))/(o+1),l=!0),p++;return Math.floor(c*u)/u},t.PERCENTRANK.INC=function(e,t,r){if(r=void 0===r?3:r,e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r))return s.value;e=e.sort((function(e,t){return e-t}));var n=f.UNIQUE.apply(null,e),o=e.length,a=n.length,u=Math.pow(10,r),c=0,l=!1,p=0;while(!l&&p<a)t===n[p]?(c=e.indexOf(n[p])/(o-1),l=!0):t>=n[p]&&(t<n[p+1]||p===a-1)&&(c=(e.indexOf(n[p])+(t-n[p])/(n[p+1]-n[p]))/(o-1),l=!0),p++;return Math.floor(c*u)/u},t.PERMUT=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:n.FACT(e)/n.FACT(e-t)},t.PERMUTATIONA=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:Math.pow(e,t)},t.PHI=function(e){return e=i.parseNumber(e),e instanceof Error?s.value:Math.exp(-.5*e*e)/c},t.POISSON={},t.POISSON.DIST=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:r?a.poisson.cdf(e,t):a.poisson.pdf(e,t)},t.PROB=function(e,t,r,n){if(void 0===r)return 0;if(n=void 0===n?r:n,e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),r=i.parseNumber(r),n=i.parseNumber(n),i.anyIsError(e,t,r,n))return s.value;if(r===n)return e.indexOf(r)>=0?t[e.indexOf(r)]:0;for(var o=e.sort((function(e,t){return e-t})),a=o.length,u=0,f=0;f<a;f++)o[f]>=r&&o[f]<=n&&(u+=t[e.indexOf(o[f])]);return u},t.QUARTILE={},t.QUARTILE.EXC=function(e,r){if(e=i.parseNumberArray(i.flatten(e)),r=i.parseNumber(r),i.anyIsError(e,r))return s.value;switch(r){case 1:return t.PERCENTILE.EXC(e,.25);case 2:return t.PERCENTILE.EXC(e,.5);case 3:return t.PERCENTILE.EXC(e,.75);default:return s.num}},t.QUARTILE.INC=function(e,r){if(e=i.parseNumberArray(i.flatten(e)),r=i.parseNumber(r),i.anyIsError(e,r))return s.value;switch(r){case 1:return t.PERCENTILE.INC(e,.25);case 2:return t.PERCENTILE.INC(e,.5);case 3:return t.PERCENTILE.INC(e,.75);default:return s.num}},t.RANK={},t.RANK.AVG=function(e,t,r){if(e=i.parseNumber(e),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;t=i.flatten(t),r=r||!1;var n=r?function(e,t){return e-t}:function(e,t){return t-e};t=t.sort(n);for(var o=t.length,a=0,u=0;u<o;u++)t[u]===e&&a++;return a>1?(2*t.indexOf(e)+a+1)/2:t.indexOf(e)+1},t.RANK.EQ=function(e,t,r){if(e=i.parseNumber(e),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;r=r||!1;var n=r?function(e,t){return e-t}:function(e,t){return t-e};return t=t.sort(n),t.indexOf(e)+1},t.ROW=function(e,t){return 2!==arguments.length?s.na:t<0?s.num:e instanceof Array&&"number"===typeof t?0!==e.length?a.row(e,t):void 0:s.value},t.ROWS=function(e){return 1!==arguments.length?s.na:e instanceof Array?0===e.length?0:a.rows(e):s.value},t.RSQ=function(e,r){return e=i.parseNumberArray(i.flatten(e)),r=i.parseNumberArray(i.flatten(r)),i.anyIsError(e,r)?s.value:Math.pow(t.PEARSON(e,r),2)},t.SKEW=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t=a.mean(e),r=e.length,n=0,o=0;o<r;o++)n+=Math.pow(e[o]-t,3);return r*n/((r-1)*(r-2)*Math.pow(a.stdev(e,!0),3))},t.SKEW.P=function(){var e=i.parseNumberArray(i.flatten(arguments));if(e instanceof Error)return e;for(var t=a.mean(e),r=e.length,n=0,o=0,u=0;u<r;u++)o+=Math.pow(e[u]-t,3),n+=Math.pow(e[u]-t,2);return o/=r,n/=r,o/Math.pow(n,1.5)},t.SLOPE=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;for(var r=a.mean(t),n=a.mean(e),o=t.length,u=0,f=0,c=0;c<o;c++)u+=(t[c]-r)*(e[c]-n),f+=Math.pow(t[c]-r,2);return u/f},t.SMALL=function(e,t){return e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),i.anyIsError(e,t)?e:e.sort((function(e,t){return e-t}))[t-1]},t.STANDARDIZE=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:(e-t)/r},t.STDEV={},t.STDEV.P=function(){var e=t.VAR.P.apply(this,arguments),r=Math.sqrt(e);return isNaN(r)&&(r=s.num),r},t.STDEV.S=function(){var e=t.VAR.S.apply(this,arguments),r=Math.sqrt(e);return r},t.STDEVA=function(){var e=t.VARA.apply(this,arguments),r=Math.sqrt(e);return r},t.STDEVPA=function(){var e=t.VARPA.apply(this,arguments),r=Math.sqrt(e);return isNaN(r)&&(r=s.num),r},t.STEYX=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumberArray(i.flatten(t)),i.anyIsError(e,t))return s.value;for(var r=a.mean(t),n=a.mean(e),o=t.length,u=0,f=0,c=0,l=0;l<o;l++)u+=Math.pow(e[l]-n,2),f+=(t[l]-r)*(e[l]-n),c+=Math.pow(t[l]-r,2);return Math.sqrt((u-f*f/c)/(o-2))},t.TRANSPOSE=function(e){return e?a.transpose(e):s.na},t.T=o.T,t.T.DIST=function(e,t,r){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:r?a.studentt.cdf(e,t):a.studentt.pdf(e,t)},t.T.DIST["2T"]=function(e,t){return 2!==arguments.length?s.na:e<0||t<1?s.num:"number"!==typeof e||"number"!==typeof t?s.value:2*(1-a.studentt.cdf(e,t))},t.T.DIST.RT=function(e,t){return 2!==arguments.length?s.na:e<0||t<1?s.num:"number"!==typeof e||"number"!==typeof t?s.value:1-a.studentt.cdf(e,t)},t.T.INV=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),i.anyIsError(e,t)?s.value:a.studentt.inv(e,t)},t.T.INV["2T"]=function(e,t){return e=i.parseNumber(e),t=i.parseNumber(t),e<=0||e>1||t<1?s.num:i.anyIsError(e,t)?s.value:Math.abs(a.studentt.inv(e/2,t))},t.T.TEST=function(e,r){if(e=i.parseNumberArray(i.flatten(e)),r=i.parseNumberArray(i.flatten(r)),i.anyIsError(e,r))return s.value;var n,o=a.mean(e),u=a.mean(r),f=0,c=0;for(n=0;n<e.length;n++)f+=Math.pow(e[n]-o,2);for(n=0;n<r.length;n++)c+=Math.pow(r[n]-u,2);f/=e.length-1,c/=r.length-1;var l=Math.abs(o-u)/Math.sqrt(f/e.length+c/r.length);return t.T.DIST["2T"](l,e.length+r.length-2)},t.TREND=function(e,r,n){if(e=i.parseNumberArray(i.flatten(e)),r=i.parseNumberArray(i.flatten(r)),n=i.parseNumberArray(i.flatten(n)),i.anyIsError(e,r,n))return s.value;var o=t.LINEST(e,r),a=o[0],u=o[1],f=[];return n.forEach((function(e){f.push(a*e+u)})),f},t.TRIMMEAN=function(e,t){if(e=i.parseNumberArray(i.flatten(e)),t=i.parseNumber(t),i.anyIsError(e,t))return s.value;var r=n.FLOOR(e.length*t,2)/2;return a.mean(i.initial(i.rest(e.sort((function(e,t){return e-t})),r),r))},t.VAR={},t.VAR.P=function(){for(var e,r=i.numbers(i.flatten(arguments)),n=r.length,o=0,a=t.AVERAGE(r),u=0;u<n;u++)o+=Math.pow(r[u]-a,2);return e=o/n,isNaN(e)&&(e=s.num),e},t.VAR.S=function(){for(var e=i.numbers(i.flatten(arguments)),r=e.length,n=0,o=t.AVERAGE(e),a=0;a<r;a++)n+=Math.pow(e[a]-o,2);return n/(r-1)},t.VARA=function(){for(var e=i.flatten(arguments),r=e.length,n=0,o=0,a=t.AVERAGEA(e),u=0;u<r;u++){var s=e[u];n+="number"===typeof s?Math.pow(s-a,2):!0===s?Math.pow(1-a,2):Math.pow(0-a,2),null!==s&&o++}return n/(o-1)},t.VARPA=function(){for(var e,r=i.flatten(arguments),n=r.length,o=0,a=0,u=t.AVERAGEA(r),f=0;f<n;f++){var c=r[f];o+="number"===typeof c?Math.pow(c-u,2):!0===c?Math.pow(1-u,2):Math.pow(0-u,2),null!==c&&a++}return e=o/a,isNaN(e)&&(e=s.num),e},t.WEIBULL={},t.WEIBULL.DIST=function(e,t,r,n){return e=i.parseNumber(e),t=i.parseNumber(t),r=i.parseNumber(r),i.anyIsError(e,t,r)?s.value:n?1-Math.exp(-Math.pow(e/r,t)):Math.pow(e,t-1)*Math.exp(-Math.pow(e/r,t))*t/Math.pow(r,t)},t.Z={},t.Z.TEST=function(e,r,n){if(e=i.parseNumberArray(i.flatten(e)),r=i.parseNumber(r),i.anyIsError(e,r))return s.value;n=n||t.STDEV.S(e);var o=e.length;return 1-t.NORM.S.DIST((t.AVERAGE(e)-r)/(n/Math.sqrt(o)),!0)}},4854:(e,t,r)=>{var n=r(5426),o=r(9151);t.ASC=function(){throw new Error("ASC is not implemented")},t.BAHTTEXT=function(){throw new Error("BAHTTEXT is not implemented")},t.CHAR=function(e){return e=n.parseNumber(e),e instanceof Error?e:String.fromCharCode(e)},t.CLEAN=function(e){e=e||"";var t=/[\0-\x1F]/g;return e.replace(t,"")},t.CODE=function(e){e=e||"";var t=e.charCodeAt(0);return isNaN(t)&&(t=o.na),t},t.CONCATENATE=function(){var e=n.flatten(arguments),t=0;while((t=e.indexOf(!0))>-1)e[t]="TRUE";var r=0;while((r=e.indexOf(!1))>-1)e[r]="FALSE";return e.join("")},t.DBCS=function(){throw new Error("DBCS is not implemented")},t.DOLLAR=function(){throw new Error("DOLLAR is not implemented")},t.EXACT=function(e,t){return 2!==arguments.length?o.na:e===t},t.FIND=function(e,t,r){return arguments.length<2?o.na:(r=void 0===r?0:r,t?t.indexOf(e,r-1)+1:null)},t.FIXED=function(){throw new Error("FIXED is not implemented")},t.HTML2TEXT=function(e){var t="";return e&&(e instanceof Array?e.forEach((function(e){""!==t&&(t+="\n"),t+=e.replace(/<(?:.|\n)*?>/gm,"")})):t=e.replace(/<(?:.|\n)*?>/gm,"")),t},t.LEFT=function(e,t){return t=void 0===t?1:t,t=n.parseNumber(t),t instanceof Error||"string"!==typeof e?o.value:e?e.substring(0,t):null},t.LEN=function(e){return 0===arguments.length?o.error:"string"===typeof e?e?e.length:0:e.length?e.length:o.value},t.LOWER=function(e){return"string"!==typeof e?o.value:e?e.toLowerCase():e},t.MID=function(e,t,r){if(t=n.parseNumber(t),r=n.parseNumber(r),n.anyIsError(t,r)||"string"!==typeof e)return r;var o=t-1,a=o+r;return e.substring(o,a)},t.NUMBERVALUE=function(e,t,r){return t="undefined"===typeof t?".":t,r="undefined"===typeof r?",":r,Number(e.replace(t,".").replace(r,""))},t.PRONETIC=function(){throw new Error("PRONETIC is not implemented")},t.PROPER=function(e){return void 0===e||0===e.length?o.value:(!0===e&&(e="TRUE"),!1===e&&(e="FALSE"),isNaN(e)&&"number"===typeof e?o.value:("number"===typeof e&&(e=""+e),e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))))},t.REGEXEXTRACT=function(e,t){if(arguments.length<2)return o.na;var r=e.match(new RegExp(t));return r?r[r.length>1?r.length-1:0]:null},t.REGEXMATCH=function(e,t,r){if(arguments.length<2)return o.na;var n=e.match(new RegExp(t));return r?n:!!n},t.REGEXREPLACE=function(e,t,r){return arguments.length<3?o.na:e.replace(new RegExp(t),r)},t.REPLACE=function(e,t,r,a){return t=n.parseNumber(t),r=n.parseNumber(r),n.anyIsError(t,r)||"string"!==typeof e||"string"!==typeof a?o.value:e.substr(0,t-1)+a+e.substr(t-1+r)},t.REPT=function(e,t){return t=n.parseNumber(t),t instanceof Error?t:new Array(t+1).join(e)},t.RIGHT=function(e,t){return t=void 0===t?1:t,t=n.parseNumber(t),t instanceof Error?t:e?e.substring(e.length-t):o.na},t.SEARCH=function(e,t,r){var n;return"string"!==typeof e||"string"!==typeof t?o.value:(r=void 0===r?0:r,n=t.toLowerCase().indexOf(e.toLowerCase(),r-1)+1,0===n?o.value:n)},t.SPLIT=function(e,t){return e.split(t)},t.SUBSTITUTE=function(e,t,r,n){if(arguments.length<2)return o.na;if(!(e&&t&&r))return e;if(void 0===n)return e.replace(new RegExp(t,"g"),r);var a=0,i=0;while(e.indexOf(t,a)>0)if(a=e.indexOf(t,a+1),i++,i===n)return e.substring(0,a)+r+e.substring(a+t.length)},t.T=function(e){return"string"===typeof e?e:""},t.TEXT=function(){throw new Error("TEXT is not implemented")},t.TRIM=function(e){return"string"!==typeof e?o.value:e.replace(/ +/g," ").trim()},t.UNICHAR=t.CHAR,t.UNICODE=t.CODE,t.UPPER=function(e){return"string"!==typeof e?o.value:e.toUpperCase()},t.VALUE=function(){throw new Error("VALUE is not implemented")}},5426:(e,t,r)=>{var n=r(9151);t.flattenShallow=function(e){return e&&e.reduce?e.reduce((function(e,t){var r=Array.isArray(e),n=Array.isArray(t);return r&&n?e.concat(t):r?(e.push(t),e):n?[e].concat(t):[e,t]})):e},t.isFlat=function(e){if(!e)return!1;for(var t=0;t<e.length;++t)if(Array.isArray(e[t]))return!1;return!0},t.flatten=function(){var e=t.argsToArray.apply(null,arguments);while(!t.isFlat(e))e=t.flattenShallow(e);return e},t.argsToArray=function(e){var r=[];return t.arrayEach(e,(function(e){r.push(e)})),r},t.numbers=function(){var e=this.flatten.apply(null,arguments);return e.filter((function(e){return"number"===typeof e}))},t.cleanFloat=function(e){var t=1e14;return Math.round(e*t)/t},t.parseBool=function(e){if("boolean"===typeof e)return e;if(e instanceof Error)return e;if("number"===typeof e)return 0!==e;if("string"===typeof e){var t=e.toUpperCase();if("TRUE"===t)return!0;if("FALSE"===t)return!1}return e instanceof Date&&!isNaN(e)||n.value},t.parseNumber=function(e){return void 0===e||""===e||isNaN(e)?n.value:parseFloat(e)},t.parseNumberArray=function(e){var r,o;if(!e||0===(r=e.length))return n.value;while(r--){if(o=t.parseNumber(e[r]),o===n.value)return o;e[r]=o}return e},t.parseMatrix=function(e){var r;if(!e||0===e.length)return n.value;for(var o=0;o<e.length;o++)if(r=t.parseNumberArray(e[o]),e[o]=r,r instanceof Error)return r;return e};var o=new Date(Date.UTC(1900,0,1));t.parseDate=function(e){if(!isNaN(e)){if(e instanceof Date)return new Date(e);var t=parseInt(e,10);return t<0?n.num:t<=60?new Date(o.getTime()+864e5*(t-1)):new Date(o.getTime()+864e5*(t-2))}return"string"!==typeof e||(e=new Date(e),isNaN(e))?n.value:e},t.parseDateArray=function(e){var t,r=e.length;while(r--){if(t=this.parseDate(e[r]),t===n.value)return t;e[r]=t}return e},t.anyIsError=function(){var e=arguments.length;while(e--)if(arguments[e]instanceof Error)return!0;return!1},t.arrayValuesToNumbers=function(e){var t,r=e.length;while(r--)if(t=e[r],"number"!==typeof t)if(!0!==t)if(!1!==t){if("string"===typeof t){var n=this.parseNumber(t);n instanceof Error?e[r]=0:e[r]=n}}else e[r]=0;else e[r]=1;return e},t.rest=function(e,t){return t=t||1,e&&"function"===typeof e.slice?e.slice(t):e},t.initial=function(e,t){return t=t||1,e&&"function"===typeof e.slice?e.slice(0,e.length-t):e},t.arrayEach=function(e,t){var r=-1,n=e.length;while(++r<n)if(!1===t(e[r],r,e))break;return e},t.transpose=function(e){return e?e[0].map((function(t,r){return e.map((function(e){return e[r]}))})):n.value}},3981:(e,t)=>{var r="=",n=[">",">=","<","<=","=","<>"],o="operator",a="literal",i=[o,a];function u(e,t){if(-1===i.indexOf(t))throw new Error("Unsupported token type: "+t);return{value:e,type:t}}function s(e){return"string"!==typeof e||/^\d+(\.\d+)?$/.test(e)&&(e=-1===e.indexOf(".")?parseInt(e,10):parseFloat(e)),e}function f(e){var t=e.length,r=[],n=0,o="",a="";while(n<t){var i=e.charAt(n);switch(i){case">":case"<":case"=":a+=i,o.length>0&&(r.push(o),o="");break;default:a.length>0&&(r.push(a),a=""),o+=i;break}n++}return o.length>0&&r.push(o),a.length>0&&r.push(a),r}function c(e){for(var t="",i=[],f=0;f<e.length;f++){var c=e[f];0===f&&n.indexOf(c)>=0?i.push(u(c,o)):t+=c}return t.length>0&&i.push(u(s(t),a)),i.length>0&&i[0].type!==o&&i.unshift(u(r,o)),i}function l(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];switch(i.type){case o:t=i.value;break;case a:r.push(i.value);break}}return p(r,t)}function p(e,t){var r=!1;switch(t){case">":r=e[0]>e[1];break;case">=":r=e[0]>=e[1];break;case"<":r=e[0]<e[1];break;case"<=":r=e[0]<=e[1];break;case"=":r=e[0]==e[1];break;case"<>":r=e[0]!=e[1];break}return r}t.TOKEN_TYPE_OPERATOR=o,t.TOKEN_TYPE_LITERAL=a,t.parse=function(e){return c(f(e))},t.createToken=u,t.compute=l},9151:(e,t)=>{t.nil=new Error("#NULL!"),t.div0=new Error("#DIV/0!"),t.value=new Error("#VALUE!"),t.ref=new Error("#REF!"),t.name=new Error("#NAME?"),t.num=new Error("#NUM!"),t.na=new Error("#N/A"),t.error=new Error("#ERROR!"),t.data=new Error("#GETTING_DATA")},9173:(e,t,r)=>{"use strict";var n=r(7252),o=r(7652);function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u,s,f=r(3830),c=f.codes,l=c.ERR_AMBIGUOUS_ARGUMENT,p=c.ERR_INVALID_ARG_TYPE,h=c.ERR_INVALID_ARG_VALUE,d=c.ERR_INVALID_RETURN_VALUE,g=c.ERR_MISSING_ARGS,y=r(9670),m=r(8529),v=m.inspect,b=r(8529).types,E=b.isPromise,w=b.isRegExp,N=Object.assign?Object.assign:r(218).assign,S=Object.is?Object.is:r(8650);new Map;function I(){var e=r(4846);u=e.isDeepEqual,s=e.isDeepStrictEqual}var A=!1,O=e.exports=_,M={};function R(e){if(e.message instanceof Error)throw e.message;throw new y(e)}function T(e,t,r,a,i){var u,s=arguments.length;if(0===s)u="Failed";else if(1===s)r=e,e=void 0;else{if(!1===A){A=!0;var f=n.emitWarning?n.emitWarning:o.warn.bind(o);f("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===s&&(a="!=")}if(r instanceof Error)throw r;var c={actual:e,expected:t,operator:void 0===a?"fail":a,stackStartFn:i||T};void 0!==r&&(c.message=r);var l=new y(c);throw u&&(l.message=u,l.generatedMessage=!0),l}function x(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new y({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=o,a}}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.apply(void 0,[_,t.length].concat(t))}function C(e,t,r){if(arguments.length<2)throw new g("actual","expected");void 0===u&&I(),s(e,t)&&R({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:C})}O.fail=T,O.AssertionError=y,O.ok=_,O.equal=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");t!=r&&R({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},O.notEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");t==r&&R({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&I(),u(t,r)||R({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&I(),u(t,r)&&R({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&I(),s(t,r)||R({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=C,O.strictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");S(t,r)||R({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");S(t,r)&&R({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var D=function e(t,r,n){var o=this;i(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"===typeof n[e]&&w(t[e])&&t[e].test(n[e])?o[e]=n[e]:o[e]=t[e])}))};function L(e,t,r,n,o,a){if(!(r in e)||!s(e[r],t[r])){if(!n){var i=new D(e,o),u=new D(t,o,e),f=new y({actual:i,expected:u,operator:"deepStrictEqual",stackStartFn:a});throw f.actual=e,f.expected=t,f.operator=a.name,f}R({actual:e,expected:t,message:n,operator:a.name,stackStartFn:a})}}function P(e,t,r,n){if("function"!==typeof t){if(w(t))return t.test(e);if(2===arguments.length)throw new p("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var o=new y({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var i=Object.keys(t);if(t instanceof Error)i.push("name","message");else if(0===i.length)throw new h("error",t,"may not be an empty object");return void 0===u&&I(),i.forEach((function(o){"string"===typeof e[o]&&w(t[o])&&t[o].test(e[o])||L(e,t,o,r,i,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function j(e){if("function"!==typeof e)throw new p("fn","Function",e);try{e()}catch(t){return t}return M}function k(e){return E(e)||null!==e&&"object"===a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function U(e){return Promise.resolve().then((function(){var t;if("function"===typeof e){if(t=e(),!k(t))throw new d("instance of Promise","promiseFn",t)}else{if(!k(e))throw new p("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return M})).catch((function(e){return e}))}))}function F(e,t,r,n){if("string"===typeof r){if(4===arguments.length)throw new p("error",["Object","Error","Function","RegExp"],r);if("object"===a(t)&&null!==t){if(t.message===r)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==a(r)&&"function"!==typeof r)throw new p("error",["Object","Error","Function","RegExp"],r);if(t===M){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var i="rejects"===e.name?"rejection":"exception";R({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(i).concat(o),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function B(e,t,r,n){if(t!==M){if("string"===typeof r&&(n=r,r=void 0),!r||P(t,r)){var o=n?": ".concat(n):".",a="doesNotReject"===e.name?"rejection":"exception";R({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.apply(void 0,[q,t.length].concat(t))}O.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];F.apply(void 0,[e,j(t)].concat(n))},O.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return U(t).then((function(t){return F.apply(void 0,[e,t].concat(n))}))},O.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];B.apply(void 0,[e,j(t)].concat(n))},O.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return U(t).then((function(t){return B.apply(void 0,[e,t].concat(n))}))},O.ifError=function e(t){if(null!==t&&void 0!==t){var r="ifError got unwanted exception: ";"object"===a(t)&&"string"===typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=v(t);var n=new y({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"===typeof o){var i=o.split("\n");i.shift();for(var u=n.stack.split("\n"),s=0;s<i.length;s++){var f=u.indexOf(i[s]);if(-1!==f){u=u.slice(0,f);break}}n.stack="".concat(u.join("\n"),"\n").concat(i.join("\n"))}throw n}},O.strict=N(q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},9670:(e,t,r)=>{"use strict";var n=r(7252);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function f(e,t){return!t||"object"!==v(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function p(e){var t="function"===typeof Map?new Map:void 0;return p=function(e){if(null===e||!g(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)},p(e)}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,r){return d=h()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=Function.bind.apply(e,n),a=new o;return r&&y(a,r.prototype),a},d.apply(null,arguments)}function g(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}var b=r(8529),E=b.inspect,w=r(3830),N=w.codes.ERR_INVALID_ARG_TYPE;function S(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function I(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;t=Math.floor(Math.log(t)/Math.log(2));while(t)e+=e,t--;return e+=e.substring(0,r-e.length),e}var A="",O="",M="",R="",T={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},x=10;function _(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function C(e){return E(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function D(e,t,r){var o="",a="",i=0,u="",s=!1,f=C(e),c=f.split("\n"),l=C(t).split("\n"),p=0,h="";if("strictEqual"===r&&"object"===v(e)&&"object"===v(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===c.length&&1===l.length&&c[0]!==l[0]){var d=c[0].length+l[0].length;if(d<=x){if(("object"!==v(e)||null===e)&&("object"!==v(t)||null===t)&&(0!==e||0!==t))return"".concat(T[r],"\n\n")+"".concat(c[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){var g=n.stderr&&n.stderr.isTTY?n.stderr.columns:80;if(d<g){while(c[0][p]===l[0][p])p++;p>2&&(h="\n ".concat(I(" ",p),"^"),p=0)}}}var y=c[c.length-1],m=l[l.length-1];while(y===m){if(p++<2?u="\n ".concat(y).concat(u):o=y,c.pop(),l.pop(),0===c.length||0===l.length)break;y=c[c.length-1],m=l[l.length-1]}var b=Math.max(c.length,l.length);if(0===b){var E=f.split("\n");if(E.length>30){E[26]="".concat(A,"...").concat(R);while(E.length>27)E.pop()}return"".concat(T.notIdentical,"\n\n").concat(E.join("\n"),"\n")}p>3&&(u="\n".concat(A,"...").concat(R).concat(u),s=!0),""!==o&&(u="\n ".concat(o).concat(u),o="");var w=0,N=T[r]+"\n".concat(O,"+ actual").concat(R," ").concat(M,"- expected").concat(R),_=" ".concat(A,"...").concat(R," Lines skipped");for(p=0;p<b;p++){var D=p-i;if(c.length<p+1)D>1&&p>2&&(D>4?(a+="\n".concat(A,"...").concat(R),s=!0):D>3&&(a+="\n ".concat(l[p-2]),w++),a+="\n ".concat(l[p-1]),w++),i=p,o+="\n".concat(M,"-").concat(R," ").concat(l[p]),w++;else if(l.length<p+1)D>1&&p>2&&(D>4?(a+="\n".concat(A,"...").concat(R),s=!0):D>3&&(a+="\n ".concat(c[p-2]),w++),a+="\n ".concat(c[p-1]),w++),i=p,a+="\n".concat(O,"+").concat(R," ").concat(c[p]),w++;else{var L=l[p],P=c[p],j=P!==L&&(!S(P,",")||P.slice(0,-1)!==L);j&&S(L,",")&&L.slice(0,-1)===P&&(j=!1,P+=","),j?(D>1&&p>2&&(D>4?(a+="\n".concat(A,"...").concat(R),s=!0):D>3&&(a+="\n ".concat(c[p-2]),w++),a+="\n ".concat(c[p-1]),w++),i=p,a+="\n".concat(O,"+").concat(R," ").concat(P),o+="\n".concat(M,"-").concat(R," ").concat(L),w+=2):(a+=o,o="",1!==D&&0!==p||(a+="\n ".concat(P),w++))}if(w>20&&p<b-2)return"".concat(N).concat(_,"\n").concat(a,"\n").concat(A,"...").concat(R).concat(o,"\n")+"".concat(A,"...").concat(R)}return"".concat(N).concat(s?_:"","\n").concat(a).concat(o).concat(u).concat(h)}var L=function(e){function t(e){var r;if(i(this,t),"object"!==v(e)||null===e)throw new N("options","Object",e);var o=e.message,a=e.operator,u=e.stackStartFn,s=e.actual,l=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=f(this,m(t).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(A="[34m",O="[32m",R="[39m",M="[31m"):(A="",O="",R="",M="")),"object"===v(s)&&null!==s&&"object"===v(l)&&null!==l&&"stack"in s&&s instanceof Error&&"stack"in l&&l instanceof Error&&(s=_(s),l=_(l)),"deepStrictEqual"===a||"strictEqual"===a)r=f(this,m(t).call(this,D(s,l,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var h=T[a],d=C(s).split("\n");if("notStrictEqual"===a&&"object"===v(s)&&null!==s&&(h=T.notStrictEqualObject),d.length>30){d[26]="".concat(A,"...").concat(R);while(d.length>27)d.pop()}r=1===d.length?f(this,m(t).call(this,"".concat(h," ").concat(d[0]))):f(this,m(t).call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n")))}else{var g=C(s),y="",b=T[a];"notDeepEqual"===a||"notEqual"===a?(g="".concat(T[a],"\n\n").concat(g),g.length>1024&&(g="".concat(g.slice(0,1021),"..."))):(y="".concat(C(l)),g.length>512&&(g="".concat(g.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===a||"equal"===a?g="".concat(b,"\n\n").concat(g,"\n\nshould equal\n\n"):y=" ".concat(a," ").concat(y)),r=f(this,m(t).call(this,"".concat(g).concat(y)))}return Error.stackTraceLimit=p,r.generatedMessage=!o,Object.defineProperty(c(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=s,r.expected=l,r.operator=a,Error.captureStackTrace&&Error.captureStackTrace(c(r),u),r.stack,r.name="AssertionError",f(r)}return l(t,e),s(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:E.custom,value:function(e,t){return E(this,o({},t,{customInspect:!1,depth:0}))}}]),t}(p(Error));e.exports=L},3830:(e,t,r)=>{"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}var c,l,p={};function h(e,t,r){function n(e,r,n){return"string"===typeof t?t:t(e,r,n)}r||(r=Error);var i=function(t){function r(t,i,s){var f;return o(this,r),f=a(this,u(r).call(this,n(t,i,s))),f.code=e,f}return s(r,t),r}(r);p[e]=i}function d(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function g(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function m(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",(function(e,t,o){var a,i;if(void 0===c&&(c=r(9173)),c("string"===typeof e,"'name' must be a string"),"string"===typeof t&&g(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",y(e," argument"))i="The ".concat(e," ").concat(a," ").concat(d(t,"type"));else{var u=m(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(u," ").concat(a," ").concat(d(t,"type"))}return i+=". Received type ".concat(n(o)),i}),TypeError),h("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r(8529));var o=l.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),h("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===c&&(c=r(9173)),c(t.length>0,"At least one arg needs to be specified");var o="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,a-1).join(", "),o+=", and ".concat(t[a-1]," arguments");break}return"".concat(o," must be specified")}),TypeError),e.exports.codes=p},4846:(e,t,r)=>{"use strict";function n(e,t){return i(e)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done);n=!0)if(r.push(i.value),t&&r.length===t)break}catch(s){o=!0,a=s}finally{try{n||null==u["return"]||u["return"]()}finally{if(o)throw a}}return r}function i(e){if(Array.isArray(e))return e}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var s=void 0!==/a/g.flags,f=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},c=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(8650),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:r(6061);function d(e){return e.call.bind(e)}var g=d(Object.prototype.hasOwnProperty),y=d(Object.prototype.propertyIsEnumerable),m=d(Object.prototype.toString),v=r(8529).types,b=v.isAnyArrayBuffer,E=v.isArrayBufferView,w=v.isDate,N=v.isMap,S=v.isRegExp,I=v.isSet,A=v.isNativeError,O=v.isBoxedPrimitive,M=v.isNumberObject,R=v.isStringObject,T=v.isBooleanObject,x=v.isBigIntObject,_=v.isSymbolObject,C=v.isFloat32Array,D=v.isFloat64Array;function L(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(L).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/function j(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}var k=void 0,U=!0,F=!1,B=0,q=1,V=2,G=3;function $(e,t){return s?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function H(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function Y(e,t){return e.byteLength===t.byteLength&&0===j(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function W(e,t){return e.byteLength===t.byteLength&&0===j(new Uint8Array(e),new Uint8Array(t))}function X(e,t){return M(e)?M(t)&&l(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):R(e)?R(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):x(e)?x(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):_(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function z(e,t,r,n){if(e===t)return 0!==e||(!r||l(e,t));if(r){if("object"!==u(e))return"number"===typeof e&&h(e)&&h(t);if("object"!==u(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==u(e))return(null===t||"object"!==u(t))&&e==t;if(null===t||"object"!==u(t))return!1}var o=m(e),a=m(t);if(o!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var i=P(e,k),s=P(t,k);return i.length===s.length&&Q(e,t,r,n,q,i)}if("[object Object]"===o&&(!N(e)&&N(t)||!I(e)&&I(t)))return!1;if(w(e)){if(!w(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(S(e)){if(!S(t)||!$(e,t))return!1}else if(A(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(E(e)){if(r||!C(e)&&!D(e)){if(!Y(e,t))return!1}else if(!H(e,t))return!1;var f=P(e,k),c=P(t,k);return f.length===c.length&&Q(e,t,r,n,B,f)}if(I(e))return!(!I(t)||e.size!==t.size)&&Q(e,t,r,n,V);if(N(e))return!(!N(t)||e.size!==t.size)&&Q(e,t,r,n,G);if(b(e)){if(!W(e,t))return!1}else if(O(e)&&!X(e,t))return!1}return Q(e,t,r,n,B)}function K(e,t){return t.filter((function(t){return y(e,t)}))}function Q(e,t,r,n,o,a){if(5===arguments.length){a=Object.keys(e);var i=Object.keys(t);if(a.length!==i.length)return!1}for(var u=0;u<a.length;u++)if(!g(t,a[u]))return!1;if(r&&5===arguments.length){var s=p(e);if(0!==s.length){var f=0;for(u=0;u<s.length;u++){var c=s[u];if(y(e,c)){if(!y(t,c))return!1;a.push(c),f++}else if(y(t,c))return!1}var l=p(t);if(s.length!==l.length&&K(t,l).length!==f)return!1}else{var h=p(t);if(0!==h.length&&0!==K(t,h).length)return!1}}if(0===a.length&&(o===B||o===q&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var d=n.val1.get(e);if(void 0!==d){var m=n.val2.get(t);if(void 0!==m)return d===m}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var v=ae(e,t,r,a,n,o);return n.val1.delete(e),n.val2.delete(t),v}function Z(e,t,r,n){for(var o=f(e),a=0;a<o.length;a++){var i=o[a];if(z(t,i,r,n))return e.delete(i),!0}return!1}function J(e){switch(u(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(h(e))return!1}return!0}function ee(e,t,r){var n=J(r);return null!=n?n:t.has(n)&&!e.has(n)}function te(e,t,r,n,o){var a=J(r);if(null!=a)return a;var i=t.get(a);return!(void 0===i&&!t.has(a)||!z(n,i,!1,o))&&(!e.has(a)&&z(n,i,!1,o))}function re(e,t,r,n){for(var o=null,a=f(e),i=0;i<a.length;i++){var s=a[i];if("object"===u(s)&&null!==s)null===o&&(o=new Set),o.add(s);else if(!t.has(s)){if(r)return!1;if(!ee(e,t,s))return!1;null===o&&(o=new Set),o.add(s)}}if(null!==o){for(var c=f(t),l=0;l<c.length;l++){var p=c[l];if("object"===u(p)&&null!==p){if(!Z(o,p,r,n))return!1}else if(!r&&!e.has(p)&&!Z(o,p,r,n))return!1}return 0===o.size}return!0}function ne(e,t,r,n,o,a){for(var i=f(e),u=0;u<i.length;u++){var s=i[u];if(z(r,s,o,a)&&z(n,t.get(s),o,a))return e.delete(s),!0}return!1}function oe(e,t,r,o){for(var a=null,i=c(e),s=0;s<i.length;s++){var f=n(i[s],2),l=f[0],p=f[1];if("object"===u(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var h=t.get(l);if(void 0===h&&!t.has(l)||!z(p,h,r,o)){if(r)return!1;if(!te(e,t,l,p,o))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var d=c(t),g=0;g<d.length;g++){var y=n(d[g],2),m=(l=y[0],y[1]);if("object"===u(l)&&null!==l){if(!ne(a,e,l,m,r,o))return!1}else if(!r&&(!e.has(l)||!z(e.get(l),m,!1,o))&&!ne(a,e,l,m,!1,o))return!1}return 0===a.size}return!0}function ae(e,t,r,n,o,a){var i=0;if(a===V){if(!re(e,t,r,o))return!1}else if(a===G){if(!oe(e,t,r,o))return!1}else if(a===q)for(;i<e.length;i++){if(!g(e,i)){if(g(t,i))return!1;for(var u=Object.keys(e);i<u.length;i++){var s=u[i];if(!g(t,s)||!z(e[s],t[s],r,o))return!1}return u.length===Object.keys(t).length}if(!g(t,i)||!z(e[i],t[i],r,o))return!1}for(i=0;i<n.length;i++){var f=n[i];if(!z(e[f],t[f],r,o))return!1}return!0}function ie(e,t){return z(e,t,F)}function ue(e,t){return z(e,t,U)}e.exports={isDeepEqual:ie,isDeepStrictEqual:ue}},2136:(e,t)=>{"use strict";t.byteLength=f,t.toByteArray=l,t.fromByteArray=d;for(var r=[],n=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,u=a.length;i<u;++i)r[i]=a[i],n[a.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function f(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function c(e,t,r){return 3*(t+r)/4-r}function l(e){var t,r,a=s(e),i=a[0],u=a[1],f=new o(c(e,i,u)),l=0,p=u>0?i-4:i;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],f[l++]=t>>16&255,f[l++]=t>>8&255,f[l++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[l++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[l++]=t>>8&255,f[l++]=255&t),f}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(p(n));return o.join("")}function d(e){for(var t,n=e.length,o=n%3,a=[],i=16383,u=0,s=n-o;u<s;u+=i)a.push(h(e,u,u+i>s?s:u+i));return 1===o?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7914:(e,t)=>{(function(e){"undefined"===typeof DO_NOT_EXPORT_BESSEL?e(t):e({})})((function(e){e.version="1.0.2";var t=Math;function r(e,t){for(var r=0,n=0;r<e.length;++r)n=t*n+e[r];return n}function n(e,t,r,n,o){if(0===t)return r;if(1===t)return n;for(var a=2/e,i=n,u=1;u<t;++u)i=n*u*a+o*r,r=n,n=i;return i}function o(e,t,r,o,a){return function(r,i){if(o){if(0===r)return 1==o?-1/0:1/0;if(r<0)return NaN}if(0===i)return e(r);if(1===i)return t(r);if(i<0)return NaN;i|=0;var u=e(r),s=t(r);return n(r,i,u,s,a)}}var a=function(){var e=.636619772,o=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),a=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),i=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),u=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function s(n){var s=0,f=0,c=0,l=n*n;if(n<8)f=r(o,l),c=r(a,l),s=f/c;else{var p=n-.785398164;l=64/l,f=r(i,l),c=r(u,l),s=t.sqrt(e/n)*(t.cos(p)*f-t.sin(p)*c*8/n)}return s}var f=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),l=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),p=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function h(n){var o=0,a=0,i=0,u=n*n,s=t.abs(n)-2.356194491;return Math.abs(n)<8?(a=n*r(f,u),i=r(c,u),o=a/i):(u=64/u,a=r(l,u),i=r(p,u),o=t.sqrt(e/t.abs(n))*(t.cos(s)*a-t.sin(s)*i*8/t.abs(n)),n<0&&(o=-o)),o}return function e(r,o){if(o=Math.round(o),!isFinite(r))return isNaN(r)?r:0;if(o<0)return(o%2?-1:1)*e(r,-o);if(r<0)return(o%2?-1:1)*e(-r,o);if(0===o)return s(r);if(1===o)return h(r);if(0===r)return 0;var a=0;if(r>o)a=n(r,o,s(r),h(r),-1);else{for(var i=2*t.floor((o+t.floor(t.sqrt(40*o)))/2),u=!1,f=0,c=0,l=1,p=0,d=2/r,g=i;g>0;g--)p=g*d*l-f,f=l,l=p,t.abs(l)>1e10&&(l*=1e-10,f*=1e-10,a*=1e-10,c*=1e-10),u&&(c+=l),u=!u,g==o&&(a=f);c=2*c-l,a/=c}return a}}(),i=function(){var e=.636619772,n=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),i=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),u=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse();function f(o){var f=0,c=0,l=0,p=o*o,h=o-.785398164;return o<8?(c=r(n,p),l=r(i,p),f=c/l+e*a(o,0)*t.log(o)):(p=64/p,c=r(u,p),l=r(s,p),f=t.sqrt(e/o)*(t.sin(h)*c+t.cos(h)*l*8/o)),f}var c=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),l=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function d(n){var o=0,i=0,u=0,s=n*n,f=n-2.356194491;return n<8?(i=n*r(c,s),u=r(l,s),o=i/u+e*(a(n,1)*t.log(n)-1/n)):(s=64/s,i=r(p,s),u=r(h,s),o=t.sqrt(e/n)*(t.sin(f)*i+t.cos(f)*u*8/n)),o}return o(f,d,"BESSELY",1,-1)}(),u=function(){var e=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),n=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse();function o(o){return o<=3.75?r(e,o*o/14.0625):t.exp(t.abs(o))/t.sqrt(t.abs(o))*r(n,3.75/t.abs(o))}var a=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),i=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse();function u(e){return e<3.75?e*r(a,e*e/14.0625):(e<0?-1:1)*t.exp(t.abs(e))/t.sqrt(t.abs(e))*r(i,3.75/t.abs(e))}return function e(r,n){if(n=Math.round(n),0===n)return o(r);if(1===n)return u(r);if(n<0)return NaN;if(0===t.abs(r))return 0;if(r==1/0)return 1/0;var a,i=0,s=2/t.abs(r),f=0,c=1,l=0,p=2*t.round((n+t.round(t.sqrt(40*n)))/2);for(a=p;a>0;a--)l=a*s*c+f,f=c,c=l,t.abs(c)>1e10&&(c*=1e-10,f*=1e-10,i*=1e-10),a==n&&(i=f);return i*=e(r,0)/c,r<0&&n%2?-i:i}}(),s=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),n=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();function a(o){return o<=2?-t.log(o/2)*u(o,0)+r(e,o*o/4):t.exp(-o)/t.sqrt(o)*r(n,2/o)}var i=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),s=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();function f(e){return e<=2?t.log(e/2)*u(e,1)+1/e*r(i,e*e/4):t.exp(-e)/t.sqrt(e)*r(s,2/e)}return o(a,f,"BESSELK",2,1)}();e.besselj=a,e.bessely=i,e.besseli=u,e.besselk=s}))},9520:(e,t,r)=>{"use strict";var n=r(7652);
|
|
8
|
-
/*!
|
|
9
|
-
* The buffer module from node.js, for the browser.
|
|
10
|
-
*
|
|
11
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
12
|
-
* @license MIT
|
|
13
|
-
*/const o=r(2136),a=r(9613),i="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;const u=2147483647;function s(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function f(e){if(e>u)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"===typeof e)return g(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ue(e,ArrayBuffer)||e&&ue(e.buffer,ArrayBuffer))return v(e,t,r);if("undefined"!==typeof SharedArrayBuffer&&(ue(e,SharedArrayBuffer)||e&&ue(e.buffer,SharedArrayBuffer)))return v(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const o=b(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,r){return p(e),e<=0?f(e):void 0!==t?"string"===typeof r?f(e).fill(t,r):f(e).fill(t):f(e)}function d(e){return p(e),f(e<0?0:0|E(e))}function g(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|N(e,t);let n=f(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function y(e){const t=e.length<0?0:0|E(e.length),r=f(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function m(e){if(ue(e,Uint8Array)){const t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return y(e)}function v(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function b(e){if(c.isBuffer(e)){const t=0|E(e.length),r=f(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!==typeof e.length||se(e.length)?f(0):y(e):"Buffer"===e.type&&Array.isArray(e.data)?y(e.data):void 0}function E(e){if(e>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),c.alloc(+e)}function N(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ue(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return re(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ae(e).length;default:if(o)return n?-1:re(e).length;t=(""+t).toLowerCase(),o=!0}}function S(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function I(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function A(e,t,r,n,o){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,se(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:O(e,t,r,n,o);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):O(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function O(e,t,r,n,o){let a,i=1,u=e.length,s=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,u/=2,s/=2,r/=2}function f(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){let n=-1;for(a=r;a<u;a++)if(f(e,a)===f(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===s)return n*i}else-1!==n&&(a-=a-n),n=-1}else for(r+s>u&&(r=u-s),a=r;a>=0;a--){let r=!0;for(let n=0;n<s;n++)if(f(e,a+n)!==f(t,n)){r=!1;break}if(r)return a}return-1}function M(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;const a=t.length;let i;for(n>a/2&&(n=a/2),i=0;i<n;++i){const n=parseInt(t.substr(2*i,2),16);if(se(n))return i;e[r+i]=n}return i}function R(e,t,r,n){return ie(re(t,e.length-r),e,r,n)}function T(e,t,r,n){return ie(ne(t),e,r,n)}function x(e,t,r,n){return ie(ae(t),e,r,n)}function _(e,t,r,n){return ie(oe(t,e.length-r),e,r,n)}function C(e,t,r){return 0===t&&r===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;while(o<r){const t=e[o];let a=null,i=t>239?4:t>223?3:t>191?2:1;if(o+i<=r){let r,n,u,s;switch(i){case 1:t<128&&(a=t);break;case 2:r=e[o+1],128===(192&r)&&(s=(31&t)<<6|63&r,s>127&&(a=s));break;case 3:r=e[o+1],n=e[o+2],128===(192&r)&&128===(192&n)&&(s=(15&t)<<12|(63&r)<<6|63&n,s>2047&&(s<55296||s>57343)&&(a=s));break;case 4:r=e[o+1],n=e[o+2],u=e[o+3],128===(192&r)&&128===(192&n)&&128===(192&u)&&(s=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&u,s>65535&&s<1114112&&(a=s))}}null===a?(a=65533,i=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=i}return P(n)}t.kMaxLength=u,c.TYPED_ARRAY_SUPPORT=s(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof n||"function"!==typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return h(e,t,r)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(ue(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),ue(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(ue(t,Uint8Array))o+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},c.byteLength=N,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)I(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)I(this,t,t+3),I(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)I(this,t,t+7),I(this,t+1,t+6),I(this,t+2,t+5),I(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):S.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,o){if(ue(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;let a=o-n,i=r-t;const u=Math.min(a,i),s=this.slice(n,o),f=e.slice(t,r);for(let c=0;c<u;++c)if(s[c]!==f[c]){a=s[c],i=f[c];break}return a<i?-1:i<a?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return A(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return A(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return R(this,e,t,r);case"ascii":case"latin1":case"binary":return T(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const L=4096;function P(e){const t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);let r="",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=L));return r}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function k(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function U(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let a=t;a<r;++a)o+=fe[e[a]];return o}function F(e,t,r){const n=e.slice(t,r);let o="";for(let a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function B(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,r,n,o,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function V(e,t,r,n,o){Q(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function G(e,t,r,n,o){Q(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function $(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,o){return t=+t,r>>>=0,o||$(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function Y(e,t,r,n,o){return t=+t,r>>>=0,o||$(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);let n=this[e],o=1,a=0;while(++a<t&&(o*=256))n+=this[e+a]*o;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);let n=this[e+--t],o=1;while(t>0&&(o*=256))n+=this[e+--t]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=ce((function(e){e>>>=0,Z(e,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=ce((function(e){e>>>=0,Z(e,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);let n=this[e],o=1,a=0;while(++a<t&&(o*=256))n+=this[e+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);let n=t,o=1,a=this[e+--n];while(n>0&&(o*=256))a+=this[e+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=ce((function(e){e>>>=0,Z(e,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=ce((function(e){e>>>=0,Z(e,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){const n=Math.pow(2,8*r)-1;q(this,e,t,r,n,0)}let o=1,a=0;this[t]=255&e;while(++a<r&&(o*=256))this[t+a]=e/o&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){const n=Math.pow(2,8*r)-1;q(this,e,t,r,n,0)}let o=r-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=ce((function(e,t=0){return V(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=ce((function(e,t=0){return G(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);q(this,e,t,r,n-1,-n)}let o=0,a=1,i=0;this[t]=255&e;while(++o<r&&(a*=256))e<0&&0===i&&0!==this[t+o-1]&&(i=1),this[t+o]=(e/a>>0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);q(this,e,t,r,n-1,-n)}let o=r-1,a=1,i=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===i&&0!==this[t+o+1]&&(i=1),this[t+o]=(e/a>>0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=ce((function(e,t=0){return V(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=ce((function(e,t=0){return G(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return Y(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return Y(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},c.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o<r;++o)this[o]=e;else{const a=c.isBuffer(e)?e:c.from(e,n),i=a.length;if(0===i)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%i]}return this};const W={};function X(e,t,r){W[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function K(e,t,r){Z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||J(t,e.length-(r+1))}function Q(e,t,r,n,o,a){if(e>r||e<t){const n="bigint"===typeof t?"n":"";let o;throw o=a>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(a+1)}${n}`:`>= -(2${n} ** ${8*(a+1)-1}${n}) and < 2 ** ${8*(a+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new W.ERR_OUT_OF_RANGE("value",o,e)}K(n,o,a)}function Z(e,t){if("number"!==typeof e)throw new W.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,r){if(Math.floor(e)!==e)throw Z(e,r),new W.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}X("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),X("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),X("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=z(String(r)):"bigint"===typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=z(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n}),RangeError);const ee=/[^+/0-9A-Za-z-_]/g;function te(e){if(e=e.split("=")[0],e=e.trim().replace(ee,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function re(e,t){let r;t=t||1/0;const n=e.length;let o=null;const a=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ne(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function oe(e,t){let r,n,o;const a=[];for(let i=0;i<e.length;++i){if((t-=2)<0)break;r=e.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n)}return a}function ae(e){return o.toByteArray(te(e))}function ie(e,t,r,n){let o;for(o=0;o<n;++o){if(o+r>=t.length||o>=e.length)break;t[o+r]=e[o]}return o}function ue(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function se(e){return e!==e}const fe=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function ce(e){return"undefined"===typeof BigInt?le:e}function le(){throw new Error("BigInt not supported")}},8463:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},926:(e,t,r)=>{"use strict";var n=r(1443),o=r(2245),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&a(e,".prototype.")>-1?o(r):r}},2245:(e,t,r)=>{"use strict";var n=r(6631),o=r(1443),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(i,a),s=o("%Object.getOwnPropertyDescriptor%",!0),f=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(f)try{f({},"a",{value:1})}catch(p){f=null}e.exports=function(e){var t=u(n,i,arguments);if(s&&f){var r=s(t,"length");r.configurable&&f(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var l=function(){return u(n,a,arguments)};f?f(e.exports,"apply",{value:l}):e.exports.apply=l},7652:(e,t,r)=>{var n=r(8529),o=r(9173);function a(){return(new Date).getTime()}var i,u=Array.prototype.slice,s={};i="undefined"!==typeof r.g&&r.g.console?r.g.console:"undefined"!==typeof window&&window.console?window.console:{};for(var f=[[d,"log"],[g,"info"],[y,"warn"],[m,"error"],[v,"time"],[b,"timeEnd"],[E,"trace"],[w,"dir"],[N,"assert"]],c=0;c<f.length;c++){var l=f[c],p=l[0],h=l[1];i[h]||(i[h]=p)}function d(){}function g(){i.log.apply(i,arguments)}function y(){i.log.apply(i,arguments)}function m(){i.warn.apply(i,arguments)}function v(e){s[e]=a()}function b(e){var t=s[e];if(!t)throw new Error("No such label: "+e);delete s[e];var r=a()-t;i.log(e+": "+r+"ms")}function E(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),i.error(e.stack)}function w(e){i.log(n.inspect(e)+"\n")}function N(e){if(!e){var t=u.call(arguments,1);o.ok(!1,n.format.apply(null,t))}}e.exports=i},2226:(e,t,r)=>{"use strict";var n=r(511),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,u=Object.defineProperty,s=function(e){return"function"===typeof e&&"[object Function]"===a.call(e)},f=r(5786)(),c=u&&f,l=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if(!s(n)||!n())return;c?u(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},p=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var u=0;u<a.length;u+=1)l(e,a[u],t[a[u]],r[a[u]])};p.supportsDescriptors=!!c,e.exports=p},218:e=>{"use strict";function t(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(void 0!==o&&null!==o)for(var a=Object.keys(Object(o)),i=0,u=a.length;i<u;i++){var s=a[i],f=Object.getOwnPropertyDescriptor(o,s);void 0!==f&&f.enumerable&&(r[s]=o[s])}}return r}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}e.exports={assign:t,polyfill:r}},1002:(e,t,r)=>{"use strict";var n,o=r(7652),a="object"===typeof Reflect?Reflect:null,i=a&&"function"===typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function u(e){o&&o.warn&&o.warn(e)}n=a&&"function"===typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function f(){f.init.call(this)}e.exports=f,e.exports.once=w,f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?f.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var o,a,i;if(l(r),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),i=a[t]),void 0===i)i=a[t]=r,++e._eventsCount;else if("function"===typeof i?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),o=p(e),o>0&&i.length>o&&!i.warned){i.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=i.length,u(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=d.bind(n);return o.listener=r,n.wrapFn=o,o}function y(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"===typeof o?r?[o.listener||o]:[o]:r?E(o):v(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function E(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function w(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,a),n(r)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}S(e,t,a,{once:!0}),"error"!==t&&N(e,o,{once:!0})}))}function N(e,t,r){"function"===typeof e.on&&S(e,"error",t,r)}function S(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(a){n.once&&e.removeEventListener(t,o),r(a)}))}}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),f.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},f.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},f.prototype.getMaxListeners=function(){return p(this)},f.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=o[e];if(void 0===s)return!1;if("function"===typeof s)i(s,this,t);else{var f=s.length,c=v(s,f);for(r=0;r<f;++r)i(c[r],this,t)}return!0},f.prototype.addListener=function(e,t){return h(this,e,t,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(e,t){return h(this,e,t,!0)},f.prototype.once=function(e,t){return l(t),this.on(e,g(this,e,t)),this},f.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,g(this,e,t)),this},f.prototype.removeListener=function(e,t){var r,n,o,a,i;if(l(t),n=this._events,void 0===n)return this;if(r=n[e],void 0===r)return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){i=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():b(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,a=Object.keys(r);for(n=0;n<a.length;++n)o=a[n],"removeListener"!==o&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},f.prototype.listeners=function(e){return y(this,e,!0)},f.prototype.rawListeners=function(e){return y(this,e,!1)},f.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},f.prototype.listenerCount=m,f.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},9101:(e,t,r)=>{"use strict";var n=r(2941),o=Object.prototype.toString,a=Object.prototype.hasOwnProperty,i=function(e,t,r){for(var n=0,o=e.length;n<o;n++)a.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},u=function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},s=function(e,t,r){for(var n in e)a.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},f=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===o.call(e)?i(e,t,a):"string"===typeof e?u(e,t,a):s(e,t,a)};e.exports=f},3349:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var a=this;if("function"!==typeof a||n.call(a)!==o)throw new TypeError(t+a);for(var i,u=r.call(arguments,1),s=function(){if(this instanceof i){var t=a.apply(this,u.concat(r.call(arguments)));return Object(t)===t?t:this}return a.apply(e,u.concat(r.call(arguments)))},f=Math.max(0,a.length-u.length),c=[],l=0;l<f;l++)c.push("$"+l);if(i=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),a.prototype){var p=function(){};p.prototype=a.prototype,i.prototype=new p,p.prototype=null}return i}},6631:(e,t,r)=>{"use strict";var n=r(3349);e.exports=Function.prototype.bind||n},1443:(e,t,r)=>{"use strict";var n,o=SyntaxError,a=Function,i=TypeError,u=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(_){s=null}var f=function(){throw new i},c=s?function(){try{return f}catch(e){try{return s(arguments,"callee").get}catch(t){return f}}}():f,l=r(5872)(),p=r(6484)(),h=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),d={},g="undefined"!==typeof Uint8Array&&h?h(Uint8Array):n,y={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&l&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&l&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&h?h(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":g,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(_){var m=h(h(_));y["%Error.prototype%"]=m}var v=function e(t){var r;if("%AsyncFunction%"===t)r=u("async function () {}");else if("%GeneratorFunction%"===t)r=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=u("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(r=h(o.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(6631),w=r(5347),N=E.call(Function.call,Array.prototype.concat),S=E.call(Function.apply,Array.prototype.splice),I=E.call(Function.call,String.prototype.replace),A=E.call(Function.call,String.prototype.slice),O=E.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,T=function(e){var t=A(e,0,1),r=A(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return I(e,M,(function(e,t,r,o){n[n.length]=r?I(o,R,"$1"):t||e})),n},x=function(e,t){var r,n=e;if(w(b,n)&&(r=b[n],n="%"+r[0]+"%"),w(y,n)){var a=y[n];if(a===d&&(a=v(n)),"undefined"===typeof a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=T(e),n=r.length>0?r[0]:"",a=x("%"+n+"%",t),u=a.name,f=a.value,c=!1,l=a.alias;l&&(n=l[0],S(r,N([0,1],l)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],g=A(d,0,1),m=A(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(c=!0),n+="."+d,u="%"+n+"%",w(y,u))f=y[u];else if(null!=f){if(!(d in f)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&p+1>=r.length){var v=s(f,d);h=!!v,f=h&&"get"in v&&!("originalValue"in v.get)?v.get:f[d]}else h=w(f,d),f=f[d];h&&!c&&(y[u]=f)}}return f}},853:(e,t,r)=>{"use strict";var n=r(1443),o=n("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(a){o=null}e.exports=o},5786:(e,t,r)=>{"use strict";var n=r(1443),o=n("%Object.defineProperty%",!0),a=function(){if(o)try{return o({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},6484:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},5872:(e,t,r)=>{"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(7071);e.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},7071:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},2897:(e,t,r)=>{"use strict";var n=r(7071);e.exports=function(){return n()&&!!Symbol.toStringTag}},5347:(e,t,r)=>{"use strict";var n=r(6631);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},3094:(e,t,r)=>{var n=r(9798),o=r(1241),a=e.exports;for(var i in n)n.hasOwnProperty(i)&&(a[i]=n[i]);function u(e){if("string"===typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=u(e),n.request.call(this,e,t)},a.get=function(e,t){return e=u(e),n.get.call(this,e,t)}},9613:(e,t)=>{
|
|
14
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
15
|
-
t.read=function(e,t,r,n,o){var a,i,u=8*o-n-1,s=(1<<u)-1,f=s>>1,c=-7,l=r?o-1:0,p=r?-1:1,h=e[t+l];for(l+=p,a=h&(1<<-c)-1,h>>=-c,c+=u;c>0;a=256*a+e[t+l],l+=p,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+e[t+l],l+=p,c-=8);if(0===a)a=1-f;else{if(a===s)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),a-=f}return(h?-1:1)*i*Math.pow(2,a-n)},t.write=function(e,t,r,n,o,a){var i,u,s,f=8*a-o-1,c=(1<<f)-1,l=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),t+=i+l>=1?p/s:p*Math.pow(2,1-l),t*s>=2&&(i++,s/=2),i+l>=c?(u=0,i=c):i+l>=1?(u=(t*s-1)*Math.pow(2,o),i+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),i=0));o>=8;e[r+h]=255&u,h+=d,u/=256,o-=8);for(i=i<<o|u,f+=o;f>0;e[r+h]=255&i,h+=d,i/=256,f-=8);e[r+h-d]|=128*g}},2605:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3305:(e,t,r)=>{"use strict";var n=r(2897)(),o=r(926),a=o("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},u=function(e){return!!i(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=u,e.exports=s?i:u},2941:e=>{"use strict";var t,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(b){b!==r&&(o=null)}else o=null;var a=/^\s*class\b/,i=function(e){try{var t=n.call(e);return a.test(t)}catch(r){return!1}},u=function(e){try{return!i(e)&&(n.call(e),!0)}catch(t){return!1}},s=Object.prototype.toString,f="[object Object]",c="[object Function]",l="[object GeneratorFunction]",p="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",g="function"===typeof Symbol&&!!Symbol.toStringTag,y=!(0 in[,]),m=function(){return!1};if("object"===typeof document){var v=document.all;s.call(v)===s.call(document.all)&&(m=function(e){if((y||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=s.call(e);return(t===p||t===h||t===d||t===f)&&null==e("")}catch(r){}return!1})}e.exports=o?function(e){if(m(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,t)}catch(n){if(n!==r)return!1}return!i(e)&&u(e)}:function(e){if(m(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(g)return u(e);if(i(e))return!1;var t=s.call(e);return!(t!==c&&t!==l&&!/^\[object HTML/.test(t))&&u(e)}},7736:(e,t,r)=>{"use strict";var n,o=Object.prototype.toString,a=Function.prototype.toString,i=/^\s*(?:function)?\*/,u=r(2897)(),s=Object.getPrototypeOf,f=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!==typeof e)return!1;if(i.test(a.call(e)))return!0;if(!u){var t=o.call(e);return"[object GeneratorFunction]"===t}if(!s)return!1;if("undefined"===typeof n){var r=f();n=!!r&&s(r)}return s(e)===n}},2281:e=>{"use strict";e.exports=function(e){return e!==e}},6061:(e,t,r)=>{"use strict";var n=r(2245),o=r(2226),a=r(2281),i=r(7307),u=r(1425),s=n(i(),Number);o(s,{getPolyfill:i,implementation:a,shim:u}),e.exports=s},7307:(e,t,r)=>{"use strict";var n=r(2281);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},1425:(e,t,r)=>{"use strict";var n=r(2226),o=r(7307);e.exports=function(){var e=o();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},9677:(e,t,r)=>{"use strict";var n=r(9101),o=r(7570),a=r(926),i=a("Object.prototype.toString"),u=r(2897)(),s=r(853),f="undefined"===typeof globalThis?r.g:globalThis,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},p=a("String.prototype.slice"),h={},d=Object.getPrototypeOf;u&&s&&d&&n(c,(function(e){var t=new f[e];if(Symbol.toStringTag in t){var r=d(t),n=s(r,Symbol.toStringTag);if(!n){var o=d(r);n=s(o,Symbol.toStringTag)}h[e]=n.get}}));var g=function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(o){}})),t};e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!u||!(Symbol.toStringTag in e)){var t=p(i(e),8,-1);return l(c,t)>-1}return!!s&&g(e)}},8855:function(e){(function(t,r){e.exports=r()})(0,(function(){var e=function(e,t){var r=Array.prototype.concat,n=Array.prototype.slice,o=Object.prototype.toString;function a(t,r){var n=t>r?t:r;return e.pow(10,17-~~(e.log(n>0?n:-n)*e.LOG10E))}var i=Array.isArray||function(e){return"[object Array]"===o.call(e)};function u(e){return"[object Function]"===o.call(e)}function s(e){return"number"===typeof e&&e-e===0}function f(e){return r.apply([],e)}function c(){return new c._init(arguments)}function l(){return 0}function p(){return 1}function h(e,t){return e===t?1:0}c.fn=c.prototype,c._init=function(e){if(i(e[0]))if(i(e[0][0])){u(e[1])&&(e[0]=c.map(e[0],e[1]));for(var t=0;t<e[0].length;t++)this[t]=e[0][t];this.length=e[0].length}else this[0]=u(e[1])?c.map(e[0],e[1]):e[0],this.length=1;else if(s(e[0]))this[0]=c.seq.apply(null,e),this.length=1;else{if(e[0]instanceof c)return c(e[0].toArray());this[0]=[],this.length=1}return this},c._init.prototype=c.prototype,c._init.constructor=c,c.utils={calcRdx:a,isArray:i,isFunction:u,isNumber:s,toVector:f},c._random_fn=e.random,c.setRandom=function(e){if("function"!==typeof e)throw new TypeError("fn is not a function");c._random_fn=e},c.extend=function(e){var t,r;if(1===arguments.length){for(r in e)c[r]=e[r];return this}for(t=1;t<arguments.length;t++)for(r in arguments[t])e[r]=arguments[t][r];return e},c.rows=function(e){return e.length||1},c.cols=function(e){return e[0].length||1},c.dimensions=function(e){return{rows:c.rows(e),cols:c.cols(e)}},c.row=function(e,t){return i(t)?t.map((function(t){return c.row(e,t)})):e[t]},c.rowa=function(e,t){return c.row(e,t)},c.col=function(e,t){if(i(t)){var r=c.arange(e.length).map((function(){return new Array(t.length)}));return t.forEach((function(t,n){c.arange(e.length).forEach((function(o){r[o][n]=e[o][t]}))})),r}for(var n=new Array(e.length),o=0;o<e.length;o++)n[o]=[e[o][t]];return n},c.cola=function(e,t){return c.col(e,t).map((function(e){return e[0]}))},c.diag=function(e){for(var t=c.rows(e),r=new Array(t),n=0;n<t;n++)r[n]=[e[n][n]];return r},c.antidiag=function(e){for(var t=c.rows(e)-1,r=new Array(t),n=0;t>=0;t--,n++)r[n]=[e[n][t]];return r},c.transpose=function(e){var t,r,n,o,a,u=[];for(i(e[0])||(e=[e]),r=e.length,n=e[0].length,a=0;a<n;a++){for(t=new Array(r),o=0;o<r;o++)t[o]=e[o][a];u.push(t)}return 1===u.length?u[0]:u},c.map=function(e,t,r){var n,o,a,u,s;for(i(e[0])||(e=[e]),o=e.length,a=e[0].length,u=r?e:new Array(o),n=0;n<o;n++)for(u[n]||(u[n]=new Array(a)),s=0;s<a;s++)u[n][s]=t(e[n][s],n,s);return 1===u.length?u[0]:u},c.cumreduce=function(e,t,r){var n,o,a,u,s;for(i(e[0])||(e=[e]),o=e.length,a=e[0].length,u=r?e:new Array(o),n=0;n<o;n++)for(u[n]||(u[n]=new Array(a)),a>0&&(u[n][0]=e[n][0]),s=1;s<a;s++)u[n][s]=t(u[n][s-1],e[n][s]);return 1===u.length?u[0]:u},c.alter=function(e,t){return c.map(e,t,!0)},c.create=function(e,t,r){var n,o,a=new Array(e);for(u(t)&&(r=t,t=e),n=0;n<e;n++)for(a[n]=new Array(t),o=0;o<t;o++)a[n][o]=r(n,o);return a},c.zeros=function(e,t){return s(t)||(t=e),c.create(e,t,l)},c.ones=function(e,t){return s(t)||(t=e),c.create(e,t,p)},c.rand=function(e,t){return s(t)||(t=e),c.create(e,t,c._random_fn)},c.identity=function(e,t){return s(t)||(t=e),c.create(e,t,h)},c.symmetric=function(e){var t,r,n=e.length;if(e.length!==e[0].length)return!1;for(t=0;t<n;t++)for(r=0;r<n;r++)if(e[r][t]!==e[t][r])return!1;return!0},c.clear=function(e){return c.alter(e,l)},c.seq=function(e,t,r,n){u(n)||(n=!1);var o,i=[],s=a(e,t),f=(t*s-e*s)/((r-1)*s),c=e;for(o=0;c<=t&&o<r;o++,c=(e*s+f*s*o)/s)i.push(n?n(c,o):c);return i},c.arange=function(e,r,n){var o,a=[];if(n=n||1,r===t&&(r=e,e=0),e===r||0===n)return[];if(e<r&&n<0)return[];if(e>r&&n>0)return[];if(n>0)for(o=e;o<r;o+=n)a.push(o);else for(o=e;o>r;o+=n)a.push(o);return a},c.slice=function(){function e(e,r,n,o){var a,i=[],u=e.length;if(r===t&&n===t&&o===t)return c.copy(e);if(r=r||0,n=n||e.length,r=r>=0?r:u+r,n=n>=0?n:u+n,o=o||1,r===n||0===o)return[];if(r<n&&o<0)return[];if(r>n&&o>0)return[];if(o>0)for(a=r;a<n;a+=o)i.push(e[a]);else for(a=r;a>n;a+=o)i.push(e[a]);return i}function r(t,r){var n,o;if(r=r||{},s(r.row)){if(s(r.col))return t[r.row][r.col];var a=c.rowa(t,r.row);return n=r.col||{},e(a,n.start,n.end,n.step)}if(s(r.col)){var i=c.cola(t,r.col);return o=r.row||{},e(i,o.start,o.end,o.step)}o=r.row||{},n=r.col||{};var u=e(t,o.start,o.end,o.step);return u.map((function(t){return e(t,n.start,n.end,n.step)}))}return r}(),c.sliceAssign=function(r,n,o){var a,i;if(s(n.row)){if(s(n.col))return r[n.row][n.col]=o;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||r[0].length,n.col.step=n.col.step||1,a=c.arange(n.col.start,e.min(r.length,n.col.end),n.col.step);var u=n.row;return a.forEach((function(e,t){r[u][e]=o[t]})),r}if(s(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||r.length,n.row.step=n.row.step||1,i=c.arange(n.row.start,e.min(r[0].length,n.row.end),n.row.step);var f=n.col;return i.forEach((function(e,t){r[e][f]=o[t]})),r}return o[0].length===t&&(o=[o]),n.row.start=n.row.start||0,n.row.end=n.row.end||r.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||r[0].length,n.col.step=n.col.step||1,i=c.arange(n.row.start,e.min(r.length,n.row.end),n.row.step),a=c.arange(n.col.start,e.min(r[0].length,n.col.end),n.col.step),i.forEach((function(e,t){a.forEach((function(n,a){r[e][n]=o[t][a]}))})),r},c.diagonal=function(e){var t=c.zeros(e.length,e.length);return e.forEach((function(e,r){t[r][r]=e})),t},c.copy=function(e){return e.map((function(e){return s(e)?e:e.map((function(e){return e}))}))};var d=c.prototype;return d.length=0,d.push=Array.prototype.push,d.sort=Array.prototype.sort,d.splice=Array.prototype.splice,d.slice=Array.prototype.slice,d.toArray=function(){return this.length>1?n.call(this):n.call(this)[0]},d.map=function(e,t){return c(c.map(this,e,t))},d.cumreduce=function(e,t){return c(c.cumreduce(this,e,t))},d.alter=function(e){return c.alter(this,e),this},function(e){for(var t=0;t<e.length;t++)(function(e){d[e]=function(t){var r,n=this;return t?(setTimeout((function(){t.call(n,d[e].call(n))})),this):(r=c[e](this),i(r)?c(r):r)}})(e[t])}("transpose clear symmetric rows cols dimensions diag antidiag".split(" ")),function(e){for(var t=0;t<e.length;t++)(function(e){d[e]=function(t,r){var n=this;return r?(setTimeout((function(){r.call(n,d[e].call(n,t))})),this):c(c[e](this,t))}})(e[t])}("row col".split(" ")),function(e){for(var t=0;t<e.length;t++)(function(e){d[e]=function(){return c(c[e].apply(null,arguments))}})(e[t])}("create zeros ones rand identity".split(" ")),c}(Math);return function(e,t){var r=e.utils.isFunction;function n(e,t){return e-t}function o(e,r,n){return t.max(r,t.min(e,n))}e.sum=function(e){var t=0,r=e.length;while(--r>=0)t+=e[r];return t},e.sumsqrd=function(e){var t=0,r=e.length;while(--r>=0)t+=e[r]*e[r];return t},e.sumsqerr=function(t){var r,n=e.mean(t),o=0,a=t.length;while(--a>=0)r=t[a]-n,o+=r*r;return o},e.sumrow=function(e){var t=0,r=e.length;while(--r>=0)t+=e[r];return t},e.product=function(e){var t=1,r=e.length;while(--r>=0)t*=e[r];return t},e.min=function(e){var t=e[0],r=0;while(++r<e.length)e[r]<t&&(t=e[r]);return t},e.max=function(e){var t=e[0],r=0;while(++r<e.length)e[r]>t&&(t=e[r]);return t},e.unique=function(e){for(var t={},r=[],n=0;n<e.length;n++)t[e[n]]||(t[e[n]]=!0,r.push(e[n]));return r},e.mean=function(t){return e.sum(t)/t.length},e.meansqerr=function(t){return e.sumsqerr(t)/t.length},e.geomean=function(r){var n=r.map(t.log),o=e.mean(n);return t.exp(o)},e.median=function(e){var t=e.length,r=e.slice().sort(n);return 1&t?r[t/2|0]:(r[t/2-1]+r[t/2])/2},e.cumsum=function(t){return e.cumreduce(t,(function(e,t){return e+t}))},e.cumprod=function(t){return e.cumreduce(t,(function(e,t){return e*t}))},e.diff=function(e){var t,r=[],n=e.length;for(t=1;t<n;t++)r.push(e[t]-e[t-1]);return r},e.rank=function(e){var t,r=[],o={};for(t=0;t<e.length;t++){var a=e[t];o[a]?o[a]++:(o[a]=1,r.push(a))}var i=r.sort(n),u={},s=1;for(t=0;t<i.length;t++){a=i[t];var f=o[a],c=s,l=s+f-1,p=(c+l)/2;u[a]=p,s+=f}return e.map((function(e){return u[e]}))},e.mode=function(e){var t,r=e.length,o=e.slice().sort(n),a=1,i=0,u=0,s=[];for(t=0;t<r;t++)o[t]===o[t+1]?a++:(a>i?(s=[o[t]],i=a,u=0):a===i&&(s.push(o[t]),u++),a=1);return 0===u?s[0]:s},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,r){return e.sumsqerr(t)/(t.length-(r?1:0))},e.pooledvariance=function(t){var r=t.reduce((function(t,r){return t+e.sumsqerr(r)}),0),n=t.reduce((function(e,t){return e+t.length}),0);return r/(n-t.length)},e.deviation=function(t){for(var r=e.mean(t),n=t.length,o=new Array(n),a=0;a<n;a++)o[a]=t[a]-r;return o},e.stdev=function(r,n){return t.sqrt(e.variance(r,n))},e.pooledstdev=function(r){return t.sqrt(e.pooledvariance(r))},e.meandev=function(r){for(var n=e.mean(r),o=[],a=r.length-1;a>=0;a--)o.push(t.abs(r[a]-n));return e.mean(o)},e.meddev=function(r){for(var n=e.median(r),o=[],a=r.length-1;a>=0;a--)o.push(t.abs(r[a]-n));return e.median(o)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var r=e.length,o=e.slice().sort(n);return[o[t.round(r/4)-1],o[t.round(r/2)-1],o[t.round(3*r/4)-1]]},e.quantiles=function(e,r,a,i){var u,s,f,c,l,p,h=e.slice().sort(n),d=[r.length],g=e.length;for("undefined"===typeof a&&(a=3/8),"undefined"===typeof i&&(i=3/8),u=0;u<r.length;u++)s=r[u],f=a+s*(1-a-i),c=g*s+f,l=t.floor(o(c,1,g-1)),p=o(c-l,0,1),d[u]=(1-p)*h[l-1]+p*h[l];return d},e.percentile=function(e,t,r){var o=e.slice().sort(n),a=t*(o.length+(r?1:-1))+(r?0:1),i=parseInt(a),u=a-i;return i+1<o.length?o[i-1]+u*(o[i]-o[i-1]):o[i-1]},e.percentileOfScore=function(e,t,r){var n,o,a=0,i=e.length,u=!1;for("strict"===r&&(u=!0),o=0;o<i;o++)n=e[o],(u&&n<t||!u&&n<=t)&&a++;return a/i},e.histogram=function(r,n){n=n||4;var o,a=e.min(r),i=(e.max(r)-a)/n,u=r.length,s=[];for(o=0;o<n;o++)s[o]=0;for(o=0;o<u;o++)s[t.min(t.floor((r[o]-a)/i),n-1)]+=1;return s},e.covariance=function(t,r){var n,o=e.mean(t),a=e.mean(r),i=t.length,u=new Array(i);for(n=0;n<i;n++)u[n]=(t[n]-o)*(r[n]-a);return e.sum(u)/(i-1)},e.corrcoeff=function(t,r){return e.covariance(t,r)/e.stdev(t,1)/e.stdev(r,1)},e.spearmancoeff=function(t,r){return t=e.rank(t),r=e.rank(r),e.corrcoeff(t,r)},e.stanMoment=function(r,n){for(var o=e.mean(r),a=e.stdev(r),i=r.length,u=0,s=0;s<i;s++)u+=t.pow((r[s]-o)/a,n);return u/r.length},e.skewness=function(t){return e.stanMoment(t,3)},e.kurtosis=function(t){return e.stanMoment(t,4)-3};var a=e.prototype;(function(t){for(var n=0;n<t.length;n++)(function(t){a[t]=function(n,o){var i=[],u=0,s=this;if(r(n)&&(o=n,n=!1),o)return setTimeout((function(){o.call(s,a[t].call(s,n))})),this;if(this.length>1){for(s=!0===n?this:this.transpose();u<s.length;u++)i[u]=e[t](s[u]);return i}return e[t](this[0],n)}})(t[n])})("cumsum cumprod".split(" ")),function(t){for(var n=0;n<t.length;n++)(function(t){a[t]=function(n,o){var i=[],u=0,s=this;if(r(n)&&(o=n,n=!1),o)return setTimeout((function(){o.call(s,a[t].call(s,n))})),this;if(this.length>1){for("sumrow"!==t&&(s=!0===n?this:this.transpose());u<s.length;u++)i[u]=e[t](s[u]);return!0===n?e[t](e.utils.toVector(i)):i}return e[t](this[0],n)}})(t[n])}("sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" ")),function(t){for(var n=0;n<t.length;n++)(function(t){a[t]=function(){var n,o=[],i=0,u=this,s=Array.prototype.slice.call(arguments);if(r(s[s.length-1])){n=s[s.length-1];var f=s.slice(0,s.length-1);return setTimeout((function(){n.call(u,a[t].apply(u,f))})),this}n=void 0;var c=function(r){return e[t].apply(u,[r].concat(s))};if(this.length>1){for(u=u.transpose();i<u.length;i++)o[i]=c(u[i]);return o}return c(this[0])}})(t[n])}("quantiles percentileOfScore".split(" "))}(e,Math),function(e,t){e.gammaln=function(e){var r,n,o,a=0,i=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],u=1.000000000190015;for(o=(n=r=e)+5.5,o-=(r+.5)*t.log(o);a<6;a++)u+=i[a]/++n;return t.log(2.5066282746310007*u/r)-o},e.loggam=function(e){var r,n,o,a,i,u,s,f=[.08333333333333333,-.002777777777777778,.0007936507936507937,-.0005952380952380952,.0008417508417508418,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059];if(r=e,s=0,1==e||2==e)return 0;for(e<=7&&(s=t.floor(7-e),r=e+s),n=1/(r*r),o=2*t.PI,i=f[9],u=8;u>=0;u--)i*=n,i+=f[u];if(a=i/r+.5*t.log(o)+(r-.5)*t.log(r)-r,e<=7)for(u=1;u<=s;u++)a-=t.log(r-1),r-=1;return a},e.gammafn=function(e){var r,n,o,a,i=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],u=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],s=!1,f=0,c=0,l=0,p=e;if(e>171.6243769536076)return 1/0;if(p<=0){if(a=p%1+36e-17,!a)return 1/0;s=(1&p?-1:1)*t.PI/t.sin(t.PI*a),p=1-p}for(o=p,n=p<1?p++:(p-=f=(0|p)-1)-1,r=0;r<8;++r)l=(l+i[r])*n,c=c*n+u[r];if(a=l/c+1,o<p)a/=o;else if(o>p)for(r=0;r<f;++r)a*=p,p++;return s&&(a=s/a),a},e.gammap=function(t,r){return e.lowRegGamma(t,r)*e.gammafn(t)},e.lowRegGamma=function(r,n){var o,a=e.gammaln(r),i=r,u=1/r,s=u,f=n+1-r,c=1/1e-30,l=1/f,p=l,h=1,d=-~(8.5*t.log(r>=1?r:1/r)+.4*r+17);if(n<0||r<=0)return NaN;if(n<r+1){for(;h<=d;h++)u+=s*=n/++i;return u*t.exp(-n+r*t.log(n)-a)}for(;h<=d;h++)o=-h*(h-r),f+=2,l=o*l+f,c=f+o/c,l=1/l,p*=l*c;return 1-p*t.exp(-n+r*t.log(n)-a)},e.factorialln=function(t){return t<0?NaN:e.gammaln(t+1)},e.factorial=function(t){return t<0?NaN:e.gammafn(t+1)},e.combination=function(r,n){return r>170||n>170?t.exp(e.combinationln(r,n)):e.factorial(r)/e.factorial(n)/e.factorial(r-n)},e.combinationln=function(t,r){return e.factorialln(t)-e.factorialln(r)-e.factorialln(t-r)},e.permutation=function(t,r){return e.factorial(t)/e.factorial(t-r)},e.betafn=function(r,n){if(!(r<=0||n<=0))return r+n>170?t.exp(e.betaln(r,n)):e.gammafn(r)*e.gammafn(n)/e.gammafn(r+n)},e.betaln=function(t,r){return e.gammaln(t)+e.gammaln(r)-e.gammaln(t+r)},e.betacf=function(e,r,n){var o,a,i,u,s=1e-30,f=1,c=r+n,l=r+1,p=r-1,h=1,d=1-c*e/l;for(t.abs(d)<s&&(d=s),d=1/d,u=d;f<=100;f++)if(o=2*f,a=f*(n-f)*e/((p+o)*(r+o)),d=1+a*d,t.abs(d)<s&&(d=s),h=1+a/h,t.abs(h)<s&&(h=s),d=1/d,u*=d*h,a=-(r+f)*(c+f)*e/((r+o)*(l+o)),d=1+a*d,t.abs(d)<s&&(d=s),h=1+a/h,t.abs(h)<s&&(h=s),d=1/d,i=d*h,u*=i,t.abs(i-1)<3e-7)break;return u},e.gammapinv=function(r,n){var o,a,i,u,s,f,c,l=0,p=n-1,h=1e-8,d=e.gammaln(n);if(r>=1)return t.max(100,n+100*t.sqrt(n));if(r<=0)return 0;for(n>1?(f=t.log(p),c=t.exp(p*(f-1)-d),s=r<.5?r:1-r,i=t.sqrt(-2*t.log(s)),o=(2.30753+.27061*i)/(1+i*(.99229+.04481*i))-i,r<.5&&(o=-o),o=t.max(.001,n*t.pow(1-1/(9*n)-o/(3*t.sqrt(n)),3))):(i=1-n*(.253+.12*n),o=r<i?t.pow(r/i,1/n):1-t.log(1-(r-i)/(1-i)));l<12;l++){if(o<=0)return 0;if(a=e.lowRegGamma(n,o)-r,i=n>1?c*t.exp(-(o-p)+p*(t.log(o)-f)):t.exp(-o+p*t.log(o)-d),u=a/i,o-=i=u/(1-.5*t.min(1,u*((n-1)/o-1))),o<=0&&(o=.5*(o+i)),t.abs(i)<h*o)break}return o},e.erf=function(e){var r,n,o,a,i=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],u=i.length-1,s=!1,f=0,c=0;for(e<0&&(e=-e,s=!0),r=2/(2+e),n=4*r-2;u>0;u--)o=f,f=n*f-c+i[u],c=o;return a=r*t.exp(-e*e+.5*(i[0]+n*f)-c),s?a-1:1-a},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(r){var n,o,a,i,u=0;if(r>=2)return-100;if(r<=0)return 100;for(i=r<1?r:2-r,a=t.sqrt(-2*t.log(i/2)),n=-.70711*((2.30753+.27061*a)/(1+a*(.99229+.04481*a))-a);u<2;u++)o=e.erfc(n)-i,n+=o/(1.1283791670955126*t.exp(-n*n)-n*o);return r<1?n:-n},e.ibetainv=function(r,n,o){var a,i,u,s,f,c,l,p,h,d,g,y=1e-8,m=n-1,v=o-1,b=0;if(r<=0)return 0;if(r>=1)return 1;for(n>=1&&o>=1?(u=r<.5?r:1-r,s=t.sqrt(-2*t.log(u)),l=(2.30753+.27061*s)/(1+s*(.99229+.04481*s))-s,r<.5&&(l=-l),p=(l*l-3)/6,h=2/(1/(2*n-1)+1/(2*o-1)),d=l*t.sqrt(p+h)/h-(1/(2*o-1)-1/(2*n-1))*(p+5/6-2/(3*h)),l=n/(n+o*t.exp(2*d))):(a=t.log(n/(n+o)),i=t.log(o/(n+o)),s=t.exp(n*a)/n,f=t.exp(o*i)/o,d=s+f,l=r<s/d?t.pow(n*d*r,1/n):1-t.pow(o*d*(1-r),1/o)),g=-e.gammaln(n)-e.gammaln(o)+e.gammaln(n+o);b<10;b++){if(0===l||1===l)return l;if(c=e.ibeta(l,n,o)-r,s=t.exp(m*t.log(l)+v*t.log(1-l)+g),f=c/s,l-=s=f/(1-.5*t.min(1,f*(m/l-v/(1-l)))),l<=0&&(l=.5*(l+s)),l>=1&&(l=.5*(l+s+1)),t.abs(s)<y*l&&b>0)break}return l},e.ibeta=function(r,n,o){var a=0===r||1===r?0:t.exp(e.gammaln(n+o)-e.gammaln(n)-e.gammaln(o)+n*t.log(r)+o*t.log(1-r));return!(r<0||r>1)&&(r<(n+1)/(n+o+2)?a*e.betacf(r,n,o)/n:1-a*e.betacf(1-r,o,n)/o)},e.randn=function(r,n){var o,a,i,u,s;if(n||(n=r),r)return e.create(r,n,(function(){return e.randn()}));do{o=e._random_fn(),a=1.7156*(e._random_fn()-.5),i=o-.449871,u=t.abs(a)+.386595,s=i*i+u*(.196*u-.25472*i)}while(s>.27597&&(s>.27846||a*a>-4*t.log(o)*o*o));return a/o},e.randg=function(r,n,o){var a,i,u,s,f,c,l=r;if(o||(o=n),r||(r=1),n)return c=e.zeros(n,o),c.alter((function(){return e.randg(r)})),c;r<1&&(r+=1),a=r-1/3,i=1/t.sqrt(9*a);do{do{f=e.randn(),s=1+i*f}while(s<=0);s*=s*s,u=e._random_fn()}while(u>1-.331*t.pow(f,4)&&t.log(u)>.5*f*f+a*(1-s+t.log(s)));if(r==l)return a*s;do{u=e._random_fn()}while(0===u);return t.pow(u,1/l)*a*s},function(t){for(var r=0;r<t.length;r++)(function(t){e.fn[t]=function(){return e(e.map(this,(function(r){return e[t](r)})))}})(t[r])}("gammaln gammafn factorial factorialln".split(" ")),function(t){for(var r=0;r<t.length;r++)(function(t){e.fn[t]=function(){return e(e[t].apply(null,arguments))}})(t[r])}("randn".split(" "))}(e,Math),function(e,t){function r(e,r,n,o){var a,i=0,u=1,s=1,f=1,c=0,l=0;while(t.abs((s-l)/s)>o)l=s,a=-(r+c)*(r+n+c)*e/(r+2*c)/(r+2*c+1),i=s+a*i,u=f+a*u,c+=1,a=c*(n-c)*e/(r+2*c-1)/(r+2*c),s=i+a*s,f=u+a*f,i/=f,u/=f,s/=f,f=1;return s/r}function n(e){return e/t.abs(e)}function o(r,n,o){var a=12,i=6,u=-30,s=-50,f=60,c=8,l=3,p=2,h=3,d=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],g=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],y=.5*r;if(y>=c)return 1;var m,v=2*e.normal.cdf(y,0,1,1,0)-1;v=v>=t.exp(s/o)?t.pow(v,o):0,m=r>l?p:h;for(var b=y,E=(c-y)/m,w=b+E,N=0,S=o-1,I=1;I<=m;I++){for(var A=0,O=.5*(w+b),M=.5*(w-b),R=1;R<=a;R++){var T,x;i<R?(T=a-R+1,x=d[T-1]):(T=R,x=-d[T-1]);var _=M*x,C=O+_,D=C*C;if(D>f)break;var L=2*e.normal.cdf(C,0,1,1,0),P=2*e.normal.cdf(C,r,1,1,0),j=.5*L-.5*P;j>=t.exp(u/S)&&(j=g[T-1]*t.exp(-.5*D)*t.pow(j,S),A+=j)}A*=2*M*o/t.sqrt(2*t.PI),N+=A,b=w,w+=E}return v+=N,v<=t.exp(u/n)?0:(v=t.pow(v,n),v>=1?1:v)}function a(e,r,n){var o=.322232421088,a=.099348462606,i=-1,u=.588581570495,s=-.342242088547,f=.531103462366,c=-.204231210125,l=.10353775285,p=-453642210148e-16,h=.0038560700634,d=.8832,g=.2368,y=1.214,m=1.208,v=1.4142,b=120,E=.5-.5*e,w=t.sqrt(t.log(1/(E*E))),N=w+((((w*p+c)*w+s)*w+i)*w+o)/((((w*h+l)*w+f)*w+u)*w+a);n<b&&(N+=(N*N*N+N)/n/4);var S=d-g*N;return n<b&&(S+=-y/n+m*N/n),N*(S*t.log(r-1)+v)}(function(t){for(var r=0;r<t.length;r++)(function(t){e[t]=function e(t,r,n){return this instanceof e?(this._a=t,this._b=r,this._c=n,this):new e(t,r,n)},e.fn[t]=function(r,n,o){var a=e[t](r,n,o);return a.data=this,a},e[t].prototype.sample=function(r){var n=this._a,o=this._b,a=this._c;return r?e.alter(r,(function(){return e[t].sample(n,o,a)})):e[t].sample(n,o,a)},function(r){for(var n=0;n<r.length;n++)(function(r){e[t].prototype[r]=function(n){var o=this._a,a=this._b,i=this._c;return n||0===n||(n=this.data),"number"!==typeof n?e.fn.map.call(n,(function(n){return e[t][r](n,o,a,i)})):e[t][r](n,o,a,i)}})(r[n])}("pdf cdf inv".split(" ")),function(r){for(var n=0;n<r.length;n++)(function(r){e[t].prototype[r]=function(){return e[t][r](this._a,this._b,this._c)}})(r[n])}("mean median mode variance".split(" "))})(t[r])})("beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" ")),e.extend(e.beta,{pdf:function(r,n,o){return r>1||r<0?0:1==n&&1==o?1:n<512&&o<512?t.pow(r,n-1)*t.pow(1-r,o-1)/e.betafn(n,o):t.exp((n-1)*t.log(r)+(o-1)*t.log(1-r)-e.betaln(n,o))},cdf:function(t,r,n){return t>1||t<0?1*(t>1):e.ibeta(t,r,n)},inv:function(t,r,n){return e.ibetainv(t,r,n)},mean:function(e,t){return e/(e+t)},median:function(t,r){return e.ibetainv(.5,t,r)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,r){var n=e.randg(t);return n/(n+e.randg(r))},variance:function(e,r){return e*r/(t.pow(e+r,2)*(e+r+1))}}),e.extend(e.centralF,{pdf:function(r,n,o){var a,i,u;return r<0?0:n<=2?0===r&&n<2?1/0:0===r&&2===n?1:1/e.betafn(n/2,o/2)*t.pow(n/o,n/2)*t.pow(r,n/2-1)*t.pow(1+n/o*r,-(n+o)/2):(a=n*r/(o+r*n),i=o/(o+r*n),u=n*i/2,u*e.binomial.pdf((n-2)/2,(n+o-2)/2,a))},cdf:function(t,r,n){return t<0?0:e.ibeta(r*t/(r*t+n),r/2,n/2)},inv:function(t,r,n){return n/(r*(1/e.ibetainv(t,r/2,n/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,r){var n=2*e.randg(t/2),o=2*e.randg(r/2);return n/t/(o/r)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,r,n){return n<0?0:n/(t.pow(e-r,2)+t.pow(n,2))/t.PI},cdf:function(e,r,n){return t.atan((e-r)/n)/t.PI+.5},inv:function(e,r,n){return r+n*t.tan(t.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(r,n){return e.randn()*t.sqrt(1/(2*e.randg(.5)))*n+r}}),e.extend(e.chisquare,{pdf:function(r,n){return r<0?0:0===r&&2===n?.5:t.exp((n/2-1)*t.log(r)-r/2-n/2*t.log(2)-e.gammaln(n/2))},cdf:function(t,r){return t<0?0:e.lowRegGamma(r/2,t/2)},inv:function(t,r){return 2*e.gammapinv(t,.5*r)},mean:function(e){return e},median:function(e){return e*t.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,r){return e<0?0:r*t.exp(-r*e)},cdf:function(e,r){return e<0?0:1-t.exp(-r*e)},inv:function(e,r){return-t.log(1-e)/r},mean:function(e){return 1/e},median:function(e){return 1/e*t.log(2)},mode:function(){return 0},sample:function(r){return-1/r*t.log(e._random_fn())},variance:function(e){return t.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(r,n,o){return r<0?0:0===r&&1===n?1/o:t.exp((n-1)*t.log(r)-r/o-e.gammaln(n)-n*t.log(o))},cdf:function(t,r,n){return t<0?0:e.lowRegGamma(r,t/n)},inv:function(t,r,n){return e.gammapinv(t,r)*n},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,r){return e.randg(t)*r},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(r,n,o){return r<=0?0:t.exp(-(n+1)*t.log(r)-o/r-e.gammaln(n)+n*t.log(o))},cdf:function(t,r,n){return t<=0?0:1-e.lowRegGamma(r,n/t)},inv:function(t,r,n){return n/e.gammapinv(1-t,r)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,r){return r/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,r,n){return 0===e&&1===r?n:1===e&&1===n?r:t.exp(t.log(r)+t.log(n)+(r-1)*t.log(e)+(n-1)*t.log(1-t.pow(e,r)))},cdf:function(e,r,n){return e<0?0:e>1?1:1-t.pow(1-t.pow(e,r),n)},inv:function(e,r,n){return t.pow(1-t.pow(1-e,1/n),1/r)},mean:function(t,r){return r*e.gammafn(1+1/t)*e.gammafn(r)/e.gammafn(1+1/t+r)},median:function(e,r){return t.pow(1-t.pow(2,-1/r),1/e)},mode:function(e,r){if(e>=1&&r>=1&&1!==e&&1!==r)return t.pow((e-1)/(e*r-1),1/e)},variance:function(){throw new Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,r,n){return e<=0?0:t.exp(-t.log(e)-.5*t.log(2*t.PI)-t.log(n)-t.pow(t.log(e)-r,2)/(2*n*n))},cdf:function(r,n,o){return r<0?0:.5+.5*e.erf((t.log(r)-n)/t.sqrt(2*o*o))},inv:function(r,n,o){return t.exp(-1.4142135623730951*o*e.erfcinv(2*r)+n)},mean:function(e,r){return t.exp(e+r*r/2)},median:function(e){return t.exp(e)},mode:function(e,r){return t.exp(e-r*r)},sample:function(r,n){return t.exp(e.randn()*n+r)},variance:function(e,r){return(t.exp(r*r)-1)*t.exp(2*e+r*r)}}),e.extend(e.noncentralt,{pdf:function(r,n,o){var a=1e-14;return t.abs(o)<a?e.studentt.pdf(r,n):t.abs(r)<a?t.exp(e.gammaln((n+1)/2)-o*o/2-.5*t.log(t.PI*n)-e.gammaln(n/2)):n/r*(e.noncentralt.cdf(r*t.sqrt(1+2/n),n+2,o)-e.noncentralt.cdf(r,n,o))},cdf:function(r,n,o){var a=1e-14,i=200;if(t.abs(o)<a)return e.studentt.cdf(r,n);var u=!1;r<0&&(u=!0,o=-o);var s=e.normal.cdf(-o,0,1),f=a+1,c=f,l=r*r/(r*r+n),p=0,h=t.exp(-o*o/2),d=t.exp(-o*o/2-.5*t.log(2)-e.gammaln(1.5))*o;while(p<i||c>a||f>a)c=f,p>0&&(h*=o*o/(2*p),d*=o*o/(2*(p+.5))),f=h*e.beta.cdf(l,p+.5,n/2)+d*e.beta.cdf(l,p+1,n/2),s+=.5*f,p++;return u?1-s:s}}),e.extend(e.normal,{pdf:function(e,r,n){return t.exp(-.5*t.log(2*t.PI)-t.log(n)-t.pow(e-r,2)/(2*n*n))},cdf:function(r,n,o){return.5*(1+e.erf((r-n)/t.sqrt(2*o*o)))},inv:function(t,r,n){return-1.4142135623730951*n*e.erfcinv(2*t)+r},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,r){return e.randn()*r+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,r,n){return e<r?0:n*t.pow(r,n)/t.pow(e,n+1)},cdf:function(e,r,n){return e<r?0:1-t.pow(r/e,n)},inv:function(e,r,n){return r/t.pow(1-e,1/n)},mean:function(e,r){if(!(r<=1))return r*t.pow(e,r)/(r-1)},median:function(e,r){return e*(r*t.SQRT2)},mode:function(e){return e},variance:function(e,r){if(!(r<=2))return e*e*r/(t.pow(r-1,2)*(r-2))}}),e.extend(e.studentt,{pdf:function(r,n){return n=n>1e100?1e100:n,1/(t.sqrt(n)*e.betafn(.5,n/2))*t.pow(1+r*r/n,-(n+1)/2)},cdf:function(r,n){var o=n/2;return e.ibeta((r+t.sqrt(r*r+n))/(2*t.sqrt(r*r+n)),o,o)},inv:function(r,n){var o=e.ibetainv(2*t.min(r,1-r),.5*n,.5);return o=t.sqrt(n*(1-o)/o),r>.5?o:-o},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(r){return e.randn()*t.sqrt(r/(2*e.randg(r/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,r,n){return e<0||r<0||n<0?0:n/r*t.pow(e/r,n-1)*t.exp(-t.pow(e/r,n))},cdf:function(e,r,n){return e<0?0:1-t.exp(-t.pow(e/r,n))},inv:function(e,r,n){return r*t.pow(-t.log(1-e),1/n)},mean:function(t,r){return t*e.gammafn(1+1/r)},median:function(e,r){return e*t.pow(t.log(2),1/r)},mode:function(e,r){return r<=1?0:e*t.pow((r-1)/r,1/r)},sample:function(r,n){return r*t.pow(-t.log(e._random_fn()),1/n)},variance:function(r,n){return r*r*e.gammafn(1+2/n)-t.pow(e.weibull.mean(r,n),2)}}),e.extend(e.uniform,{pdf:function(e,t,r){return e<t||e>r?0:1/(r-t)},cdf:function(e,t,r){return e<t?0:e<r?(e-t)/(r-t):1},inv:function(e,t,r){return t+e*(r-t)},mean:function(e,t){return.5*(e+t)},median:function(t,r){return e.mean(t,r)},mode:function(){throw new Error("mode is not yet implemented")},sample:function(t,r){return t/2+r/2+(r/2-t/2)*(2*e._random_fn()-1)},variance:function(e,r){return t.pow(r-e,2)/12}}),e.extend(e.binomial,{pdf:function(r,n,o){return 0===o||1===o?n*o===r?1:0:e.combination(n,r)*t.pow(o,r)*t.pow(1-o,n-r)},cdf:function(n,o,a){var i,u=1e-10;if(n<0)return 0;if(n>=o)return 1;if(a<0||a>1||o<=0)return NaN;n=t.floor(n);var s=a,f=n+1,c=o-n,l=f+c,p=t.exp(e.gammaln(l)-e.gammaln(c)-e.gammaln(f)+f*t.log(s)+c*t.log(1-s));return i=s<(f+1)/(l+2)?p*r(s,f,c,u):1-p*r(1-s,c,f,u),t.round(1/u*(1-i))/(1/u)}}),e.extend(e.negbin,{pdf:function(r,n,o){return r===r>>>0&&(r<0?0:e.combination(r+n-1,n-1)*t.pow(1-o,r)*t.pow(o,n))},cdf:function(t,r,n){var o=0,a=0;if(t<0)return 0;for(;a<=t;a++)o+=e.negbin.pdf(a,r,n);return o}}),e.extend(e.hypgeom,{pdf:function(r,n,o,a){if(r!==r|0)return!1;if(r<0||r<o-(n-a))return 0;if(r>a||r>o)return 0;if(2*o>n)return 2*a>n?e.hypgeom.pdf(n-o-a+r,n,n-o,n-a):e.hypgeom.pdf(a-r,n,n-o,a);if(2*a>n)return e.hypgeom.pdf(o-r,n,o,n-a);if(o<a)return e.hypgeom.pdf(r,n,a,o);for(var i=1,u=0,s=0;s<r;s++){while(i>1&&u<a)i*=1-o/(n-u),u++;i*=(a-s)*(o-s)/((s+1)*(n-o-a+s+1))}for(;u<a;u++)i*=1-o/(n-u);return t.min(1,t.max(0,i))},cdf:function(r,n,o,a){if(r<0||r<o-(n-a))return 0;if(r>=a||r>=o)return 1;if(2*o>n)return 2*a>n?e.hypgeom.cdf(n-o-a+r,n,n-o,n-a):1-e.hypgeom.cdf(a-r-1,n,n-o,a);if(2*a>n)return 1-e.hypgeom.cdf(o-r-1,n,o,n-a);if(o<a)return e.hypgeom.cdf(r,n,a,o);for(var i=1,u=1,s=0,f=0;f<r;f++){while(i>1&&s<a){var c=1-o/(n-s);u*=c,i*=c,s++}u*=(a-f)*(o-f)/((f+1)*(n-o-a+f+1)),i+=u}for(;s<a;s++)i*=1-o/(n-s);return t.min(1,t.max(0,i))}}),e.extend(e.poisson,{pdf:function(r,n){return n<0||r%1!==0||r<0?0:t.pow(n,r)*t.exp(-n)/e.factorial(r)},cdf:function(t,r){var n=[],o=0;if(t<0)return 0;for(;o<=t;o++)n.push(e.poisson.pdf(o,r));return e.sum(n)},mean:function(e){return e},variance:function(e){return e},sampleSmall:function(r){var n=1,o=0,a=t.exp(-r);do{o++,n*=e._random_fn()}while(n>a);return o-1},sampleLarge:function(r){var n,o,a,i,u,s,f,c,l,p,h=r;i=t.sqrt(h),u=t.log(h),f=.931+2.53*i,s=.02483*f-.059,c=1.1239+1.1328/(f-3.4),l=.9277-3.6224/(f-2);while(1){if(o=t.random()-.5,a=t.random(),p=.5-t.abs(o),n=t.floor((2*s/p+f)*o+h+.43),p>=.07&&a<=l)return n;if(!(n<0||p<.013&&a>p)&&t.log(a)+t.log(c)-t.log(s/(p*p)+f)<=n*u-h-e.loggam(n+1))return n}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,r,n){return r<=t||n<t||n>r?NaN:e<t||e>r?0:e<n?2*(e-t)/((r-t)*(n-t)):e===n?2/(r-t):2*(r-e)/((r-t)*(r-n))},cdf:function(e,r,n,o){return n<=r||o<r||o>n?NaN:e<=r?0:e>=n?1:e<=o?t.pow(e-r,2)/((n-r)*(o-r)):1-t.pow(n-e,2)/((n-r)*(n-o))},inv:function(e,r,n,o){return n<=r||o<r||o>n?NaN:e<=(o-r)/(n-r)?r+(n-r)*t.sqrt(e*((o-r)/(n-r))):r+(n-r)*(1-t.sqrt((1-e)*(1-(o-r)/(n-r))))},mean:function(e,t,r){return(e+t+r)/3},median:function(e,r,n){return n<=(e+r)/2?r-t.sqrt((r-e)*(r-n))/t.sqrt(2):n>(e+r)/2?e+t.sqrt((r-e)*(n-e))/t.sqrt(2):void 0},mode:function(e,t,r){return r},sample:function(r,n,o){var a=e._random_fn();return a<(o-r)/(n-r)?r+t.sqrt(a*(n-r)*(o-r)):n-t.sqrt((1-a)*(n-r)*(n-o))},variance:function(e,t,r){return(e*e+t*t+r*r-e*t-e*r-t*r)/18}}),e.extend(e.arcsine,{pdf:function(e,r,n){return n<=r?NaN:e<=r||e>=n?0:2/t.PI*t.pow(t.pow(n-r,2)-t.pow(2*e-r-n,2),-.5)},cdf:function(e,r,n){return e<r?0:e<n?2/t.PI*t.asin(t.sqrt((e-r)/(n-r))):1},inv:function(e,r,n){return r+(.5-.5*t.cos(t.PI*e))*(n-r)},mean:function(e,t){return t<=e?NaN:(e+t)/2},median:function(e,t){return t<=e?NaN:(e+t)/2},mode:function(){throw new Error("mode is not yet implemented")},sample:function(r,n){return(r+n)/2+(n-r)/2*t.sin(2*t.PI*e.uniform.sample(0,1))},variance:function(e,r){return r<=e?NaN:t.pow(r-e,2)/8}}),e.extend(e.laplace,{pdf:function(e,r,n){return n<=0?0:t.exp(-t.abs(e-r)/n)/(2*n)},cdf:function(e,r,n){return n<=0?0:e<r?.5*t.exp((e-r)/n):1-.5*t.exp(-(e-r)/n)},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},variance:function(e,t){return 2*t*t},sample:function(r,o){var a=e._random_fn()-.5;return r-o*n(a)*t.log(1-2*t.abs(a))}}),e.extend(e.tukey,{cdf:function(r,n,a){var i=1,u=n,s=16,f=8,c=-30,l=1e-14,p=100,h=800,d=5e3,g=25e3,y=1,m=.5,v=.25,b=.125,E=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],w=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(r<=0)return 0;if(a<2||i<1||u<2)return NaN;if(!Number.isFinite(r))return 1;if(a>g)return o(r,i,u);var N,S=.5*a,I=S*t.log(a)-a*t.log(2)-e.gammaln(S),A=S-1,O=.25*a;N=a<=p?y:a<=h?m:a<=d?v:b,I+=t.log(N);for(var M=0,R=1;R<=50;R++){for(var T=0,x=(2*R-1)*N,_=1;_<=s;_++){var C,D,L;if(f<_?(C=_-f-1,D=I+A*t.log(x+E[C]*N)-(E[C]*N+x)*O):(C=_-1,D=I+A*t.log(x-E[C]*N)+(E[C]*N-x)*O),D>=c){L=f<_?r*t.sqrt(.5*(E[C]*N+x)):r*t.sqrt(.5*(-E[C]*N+x));var P=o(L,i,u),j=P*w[C]*t.exp(D);T+=j}}if(R*N>=1&&T<=l)break;M+=T}if(T>l)throw new Error("tukey.cdf failed to converge");return M>1&&(M=1),M},inv:function(r,n,o){var i=1,u=n,s=1e-4,f=50;if(o<2||i<1||u<2)return NaN;if(r<0||r>1)return NaN;if(0===r)return 0;if(1===r)return 1/0;var c,l=a(r,u,o),p=e.tukey.cdf(l,n,o)-r;c=p>0?t.max(0,l-1):l+1;for(var h,d=e.tukey.cdf(c,n,o)-r,g=1;g<f;g++){h=c-d*(c-l)/(d-p),p=d,l=c,h<0&&(h=0,d=-r),d=e.tukey.cdf(h,n,o)-r,c=h;var y=t.abs(c-l);if(y<s)return h}throw new Error("tukey.inv failed to converge")}})}(e,Math),function(e,t){var r=Array.prototype.push,n=e.utils.isArray;function o(t){return n(t)||t instanceof e}e.extend({add:function(t,r){return o(r)?(o(r[0])||(r=[r]),e.map(t,(function(e,t,n){return e+r[t][n]}))):e.map(t,(function(e){return e+r}))},subtract:function(t,r){return o(r)?(o(r[0])||(r=[r]),e.map(t,(function(e,t,n){return e-r[t][n]||0}))):e.map(t,(function(e){return e-r}))},divide:function(t,r){return o(r)?(o(r[0])||(r=[r]),e.multiply(t,e.inv(r))):e.map(t,(function(e){return e/r}))},multiply:function(t,r){var n,a,i,u,s,f,c,l;if(void 0===t.length&&void 0===r.length)return t*r;if(s=t.length,f=t[0].length,c=e.zeros(s,i=o(r)?r[0].length:f),l=0,o(r)){for(;l<i;l++)for(n=0;n<s;n++){for(u=0,a=0;a<f;a++)u+=t[n][a]*r[a][l];c[n][l]=u}return 1===s&&1===l?c[0][0]:c}return e.map(t,(function(e){return e*r}))},outer:function(t,r){return e.multiply(t.map((function(e){return[e]})),[r])},dot:function(t,r){o(t[0])||(t=[t]),o(r[0])||(r=[r]);for(var n,a,i=1===t[0].length&&1!==t.length?e.transpose(t):t,u=1===r[0].length&&1!==r.length?e.transpose(r):r,s=[],f=0,c=i.length,l=i[0].length;f<c;f++){for(s[f]=[],n=0,a=0;a<l;a++)n+=i[f][a]*u[f][a];s[f]=n}return 1===s.length?s[0]:s},pow:function(r,n){return e.map(r,(function(e){return t.pow(e,n)}))},exp:function(r){return e.map(r,(function(e){return t.exp(e)}))},log:function(r){return e.map(r,(function(e){return t.log(e)}))},abs:function(r){return e.map(r,(function(e){return t.abs(e)}))},norm:function(e,r){var n=0,a=0;for(isNaN(r)&&(r=2),o(e[0])&&(e=e[0]);a<e.length;a++)n+=t.pow(t.abs(e[a]),r);return t.pow(n,1/r)},angle:function(r,n){return t.acos(e.dot(r,n)/(e.norm(r)*e.norm(n)))},aug:function(e,t){var n,o=[];for(n=0;n<e.length;n++)o.push(e[n].slice());for(n=0;n<o.length;n++)r.apply(o[n],t[n]);return o},inv:function(t){for(var r,n=t.length,o=t[0].length,a=e.identity(n,o),i=e.gauss_jordan(t,a),u=[],s=0;s<n;s++)for(u[s]=[],r=o;r<i[0].length;r++)u[s][r-o]=i[s][r];return u},det:function e(t){if(2===t.length)return t[0][0]*t[1][1]-t[0][1]*t[1][0];for(var r=0,n=0;n<t.length;n++){for(var o=[],a=1;a<t.length;a++){o[a-1]=[];for(var i=0;i<t.length;i++)i<n?o[a-1][i]=t[a][i]:i>n&&(o[a-1][i-1]=t[a][i])}var u=n%2?-1:1;r+=e(o)*t[0][n]*u}return r},gauss_elimination:function(r,n){var o,a,i,u,s=0,f=0,c=r.length,l=r[0].length,p=1,h=0,d=[];for(r=e.aug(r,n),o=r[0].length,s=0;s<c;s++){for(a=r[s][s],f=s,u=s+1;u<l;u++)a<t.abs(r[u][s])&&(a=r[u][s],f=u);if(f!=s)for(u=0;u<o;u++)i=r[s][u],r[s][u]=r[f][u],r[f][u]=i;for(f=s+1;f<c;f++)for(p=r[f][s]/r[s][s],u=s;u<o;u++)r[f][u]=r[f][u]-p*r[s][u]}for(s=c-1;s>=0;s--){for(h=0,f=s+1;f<=c-1;f++)h+=d[f]*r[s][f];d[s]=(r[s][o-1]-h)/r[s][s]}return d},gauss_jordan:function(r,n){var o,a,i,u=e.aug(r,n),s=u.length,f=u[0].length,c=0;for(a=0;a<s;a++){var l=a;for(i=a+1;i<s;i++)t.abs(u[i][a])>t.abs(u[l][a])&&(l=i);var p=u[a];for(u[a]=u[l],u[l]=p,i=a+1;i<s;i++)for(c=u[i][a]/u[a][a],o=a;o<f;o++)u[i][o]-=u[a][o]*c}for(a=s-1;a>=0;a--){for(c=u[a][a],i=0;i<a;i++)for(o=f-1;o>a-1;o--)u[i][o]-=u[a][o]*u[i][a]/c;for(u[a][a]/=c,o=s;o<f;o++)u[a][o]/=c}return u},triaUpSolve:function(t,r){var n,o=t[0].length,a=e.zeros(1,o)[0],i=!1;return void 0!=r[0].length&&(r=r.map((function(e){return e[0]})),i=!0),e.arange(o-1,-1,-1).forEach((function(i){n=e.arange(i+1,o).map((function(e){return a[e]*t[i][e]})),a[i]=(r[i]-e.sum(n))/t[i][i]})),i?a.map((function(e){return[e]})):a},triaLowSolve:function(t,r){var n,o=t[0].length,a=e.zeros(1,o)[0],i=!1;return void 0!=r[0].length&&(r=r.map((function(e){return e[0]})),i=!0),e.arange(o).forEach((function(o){n=e.arange(o).map((function(e){return t[o][e]*a[e]})),a[o]=(r[o]-e.sum(n))/t[o][o]})),i?a.map((function(e){return[e]})):a},lu:function(t){var r,n=t.length,o=e.identity(n),a=e.zeros(t.length,t[0].length);return e.arange(n).forEach((function(e){a[0][e]=t[0][e]})),e.arange(1,n).forEach((function(i){e.arange(i).forEach((function(n){r=e.arange(n).map((function(e){return o[i][e]*a[e][n]})),o[i][n]=(t[i][n]-e.sum(r))/a[n][n]})),e.arange(i,n).forEach((function(n){r=e.arange(i).map((function(e){return o[i][e]*a[e][n]})),a[i][n]=t[r.length][n]-e.sum(r)}))})),[o,a]},cholesky:function(r){var n,o=r.length,a=e.zeros(r.length,r[0].length);return e.arange(o).forEach((function(i){n=e.arange(i).map((function(e){return t.pow(a[i][e],2)})),a[i][i]=t.sqrt(r[i][i]-e.sum(n)),e.arange(i+1,o).forEach((function(t){n=e.arange(i).map((function(e){return a[i][e]*a[t][e]})),a[t][i]=(r[i][t]-e.sum(n))/a[i][i]}))})),a},gauss_jacobi:function(r,n,o,a){for(var i,u,s,f,c=0,l=0,p=r.length,h=[],d=[],g=[];c<p;c++)for(h[c]=[],d[c]=[],g[c]=[],l=0;l<p;l++)c>l?(h[c][l]=r[c][l],d[c][l]=g[c][l]=0):c<l?(d[c][l]=r[c][l],h[c][l]=g[c][l]=0):(g[c][l]=r[c][l],h[c][l]=d[c][l]=0);s=e.multiply(e.multiply(e.inv(g),e.add(h,d)),-1),u=e.multiply(e.inv(g),n),i=o,f=e.add(e.multiply(s,o),u),c=2;while(t.abs(e.norm(e.subtract(f,i)))>a)i=f,f=e.add(e.multiply(s,i),u),c++;return f},gauss_seidel:function(r,n,o,a){for(var i,u,s,f,c,l=0,p=r.length,h=[],d=[],g=[];l<p;l++)for(h[l]=[],d[l]=[],g[l]=[],i=0;i<p;i++)l>i?(h[l][i]=r[l][i],d[l][i]=g[l][i]=0):l<i?(d[l][i]=r[l][i],h[l][i]=g[l][i]=0):(g[l][i]=r[l][i],h[l][i]=d[l][i]=0);f=e.multiply(e.multiply(e.inv(e.add(g,h)),d),-1),s=e.multiply(e.inv(e.add(g,h)),n),u=o,c=e.add(e.multiply(f,o),s),l=2;while(t.abs(e.norm(e.subtract(c,u)))>a)u=c,c=e.add(e.multiply(f,u),s),l+=1;return c},SOR:function(r,n,o,a,i){for(var u,s,f,c,l,p=0,h=r.length,d=[],g=[],y=[];p<h;p++)for(d[p]=[],g[p]=[],y[p]=[],u=0;u<h;u++)p>u?(d[p][u]=r[p][u],g[p][u]=y[p][u]=0):p<u?(g[p][u]=r[p][u],d[p][u]=y[p][u]=0):(y[p][u]=r[p][u],d[p][u]=g[p][u]=0);c=e.multiply(e.inv(e.add(y,e.multiply(d,i))),e.subtract(e.multiply(y,1-i),e.multiply(g,i))),f=e.multiply(e.multiply(e.inv(e.add(y,e.multiply(d,i))),n),i),s=o,l=e.add(e.multiply(c,o),f),p=2;while(t.abs(e.norm(e.subtract(l,s)))>a)s=l,l=e.add(e.multiply(c,s),f),p++;return l},householder:function(r){for(var n,o,a,i,u,s=r.length,f=r[0].length,c=0,l=[],p=[];c<s-1;c++){for(n=0,i=c+1;i<f;i++)n+=r[i][c]*r[i][c];for(u=r[c+1][c]>0?-1:1,n=u*t.sqrt(n),o=t.sqrt((n*n-r[c+1][c]*n)/2),l=e.zeros(s,1),l[c+1][0]=(r[c+1][c]-n)/(2*o),a=c+2;a<s;a++)l[a][0]=r[a][c]/(2*o);p=e.subtract(e.identity(s,f),e.multiply(e.multiply(l,e.transpose(l)),2)),r=e.multiply(p,e.multiply(r,p))}return r},QR:function(){var r=e.sum,n=e.arange;function o(o){var a,i,u,s=o.length,f=o[0].length,c=e.zeros(f,f);for(o=e.copy(o),i=0;i<f;i++){for(c[i][i]=t.sqrt(r(n(s).map((function(e){return o[e][i]*o[e][i]})))),a=0;a<s;a++)o[a][i]=o[a][i]/c[i][i];for(u=i+1;u<f;u++)for(c[i][u]=r(n(s).map((function(e){return o[e][i]*o[e][u]}))),a=0;a<s;a++)o[a][u]=o[a][u]-o[a][i]*c[i][u]}return[o,c]}return o}(),lstsq:function(){function t(t){t=e.copy(t);var r=t.length,n=e.identity(r);return e.arange(r-1,-1,-1).forEach((function(r){e.sliceAssign(n,{row:r},e.divide(e.slice(n,{row:r}),t[r][r])),e.sliceAssign(t,{row:r},e.divide(e.slice(t,{row:r}),t[r][r])),e.arange(r).forEach((function(o){var a=e.multiply(t[o][r],-1),i=e.slice(t,{row:o}),u=e.multiply(e.slice(t,{row:r}),a);e.sliceAssign(t,{row:o},e.add(i,u));var s=e.slice(n,{row:o}),f=e.multiply(e.slice(n,{row:r}),a);e.sliceAssign(n,{row:o},e.add(s,f))}))})),n}function r(r,n){var o=!1;void 0===n[0].length&&(n=n.map((function(e){return[e]})),o=!0);var a=e.QR(r),i=a[0],u=a[1],s=r[0].length,f=e.slice(i,{col:{end:s}}),c=e.slice(u,{row:{end:s}}),l=t(c),p=e.transpose(f);void 0===p[0].length&&(p=[p]);var h=e.multiply(e.multiply(l,p),n);return void 0===h.length&&(h=[[h]]),o?h.map((function(e){return e[0]})):h}return r}(),jacobi:function(r){var n,o,a,i,u,s,f,c,l=1,p=r.length,h=e.identity(p,p),d=[];while(1===l){for(s=r[0][1],i=0,u=1,o=0;o<p;o++)for(a=0;a<p;a++)o!=a&&s<t.abs(r[o][a])&&(s=t.abs(r[o][a]),i=o,u=a);for(f=r[i][i]===r[u][u]?r[i][u]>0?t.PI/4:-t.PI/4:t.atan(2*r[i][u]/(r[i][i]-r[u][u]))/2,c=e.identity(p,p),c[i][i]=t.cos(f),c[i][u]=-t.sin(f),c[u][i]=t.sin(f),c[u][u]=t.cos(f),h=e.multiply(h,c),n=e.multiply(e.multiply(e.inv(c),r),c),r=n,l=0,o=1;o<p;o++)for(a=1;a<p;a++)o!=a&&t.abs(r[o][a])>.001&&(l=1)}for(o=0;o<p;o++)d.push(r[o][o]);return[h,d]},rungekutta:function(e,t,r,n,o,a){var i,u,s,f,c;if(2===a)while(n<=r)i=t*e(n,o),u=t*e(n+t,o+i),s=o+(i+u)/2,o=s,n+=t;if(4===a)while(n<=r)i=t*e(n,o),u=t*e(n+t/2,o+i/2),f=t*e(n+t/2,o+u/2),c=t*e(n+t,o+f),s=o+(i+2*u+2*f+c)/6,o=s,n+=t;return o},romberg:function(e,r,n,o){var a,i,u,s,f,c=0,l=(n-r)/2,p=[],h=[],d=[];while(c<o/2){for(f=e(r),u=r,s=0;u<=n;u+=l,s++)p[s]=u;for(a=p.length,u=1;u<a-1;u++)f+=(u%2!==0?4:2)*e(p[u]);f=l/3*(f+e(n)),d[c]=f,l/=2,c++}i=d.length,a=1;while(1!==i){for(u=0;u<i-1;u++)h[u]=(t.pow(4,a)*d[u+1]-d[u])/(t.pow(4,a)-1);i=h.length,d=h,h=[],a++}return d},richardson:function(e,r,n,o){function a(e,t){for(var r,n=0,o=e.length;n<o;n++)e[n]===t&&(r=n);return r}var i,u,s,f,c,l=t.abs(n-e[a(e,n)+1]),p=0,h=[],d=[];while(o>=l)i=a(e,n+o),u=a(e,n),h[p]=(r[i]-2*r[u]+r[2*u-i])/(o*o),o/=2,p++;f=h.length,s=1;while(1!=f){for(c=0;c<f-1;c++)d[c]=(t.pow(4,s)*h[c+1]-h[c])/(t.pow(4,s)-1);f=d.length,h=d,d=[],s++}return h},simpson:function(e,t,r,n){for(var o,a=(r-t)/n,i=e(t),u=[],s=t,f=0,c=1;s<=r;s+=a,f++)u[f]=s;for(o=u.length;c<o-1;c++)i+=(c%2!==0?4:2)*e(u[c]);return a/3*(i+e(r))},hermite:function(e,t,r,n){for(var o,a=e.length,i=0,u=0,s=[],f=[],c=[],l=[];u<a;u++){for(s[u]=1,o=0;o<a;o++)u!=o&&(s[u]*=(n-e[o])/(e[u]-e[o]));for(f[u]=0,o=0;o<a;o++)u!=o&&(f[u]+=1/(e[u]-e[o]));c[u]=(1-2*(n-e[u])*f[u])*(s[u]*s[u]),l[u]=(n-e[u])*(s[u]*s[u]),i+=c[u]*t[u]+l[u]*r[u]}return i},lagrange:function(e,t,r){for(var n,o,a=0,i=0,u=e.length;i<u;i++){for(o=t[i],n=0;n<u;n++)i!=n&&(o*=(r-e[n])/(e[i]-e[n]));a+=o}return a},cubic_spline:function(t,r,n){for(var o,a=t.length,i=0,u=[],s=[],f=[],c=[],l=[],p=[],h=[];i<a-1;i++)l[i]=t[i+1]-t[i];for(f[0]=0,i=1;i<a-1;i++)f[i]=3/l[i]*(r[i+1]-r[i])-3/l[i-1]*(r[i]-r[i-1]);for(i=1;i<a-1;i++)u[i]=[],s[i]=[],u[i][i-1]=l[i-1],u[i][i]=2*(l[i-1]+l[i]),u[i][i+1]=l[i],s[i][0]=f[i];for(c=e.multiply(e.inv(u),s),o=0;o<a-1;o++)p[o]=(r[o+1]-r[o])/l[o]-l[o]*(c[o+1][0]+2*c[o][0])/3,h[o]=(c[o+1][0]-c[o][0])/(3*l[o]);for(o=0;o<a;o++)if(t[o]>n)break;return o-=1,r[o]+(n-t[o])*p[o]+e.sq(n-t[o])*c[o]+(n-t[o])*e.sq(n-t[o])*h[o]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(t){var r,n,o=t.length,a=t[0].length,i=0,u=[],s=[],f=[],c=[],l=[],p=[],h=[],d=[],g=[],y=[];for(i=0;i<o;i++)u[i]=e.sum(t[i])/a;for(i=0;i<a;i++)for(h[i]=[],r=0;r<o;r++)h[i][r]=t[r][i]-u[r];for(h=e.transpose(h),i=0;i<o;i++)for(d[i]=[],r=0;r<o;r++)d[i][r]=e.dot([h[i]],[h[r]])/(a-1);for(f=e.jacobi(d),g=f[0],s=f[1],y=e.transpose(g),i=0;i<s.length;i++)for(r=i;r<s.length;r++)s[i]<s[r]&&(n=s[i],s[i]=s[r],s[r]=n,c=y[i],y[i]=y[r],y[r]=c);for(p=e.transpose(h),i=0;i<o;i++)for(l[i]=[],r=0;r<p.length;r++)l[i][r]=e.dot([y[i]],[p[r]]);return[t,s,y,l]}}),function(t){for(var r=0;r<t.length;r++)(function(t){e.fn[t]=function(r,n){var o=this;return n?(setTimeout((function(){n.call(o,e.fn[t].call(o,r))}),15),this):"number"===typeof e[t](this,r)?e[t](this,r):e(e[t](this,r))}})(t[r])}("add divide multiply subtract dot pow exp log abs norm angle".split(" "))}(e,Math),function(e,t){var r=[].slice,n=e.utils.isNumber,o=e.utils.isArray;function a(e,r,n,o){if(e>1||n>1||e<=0||n<=0)throw new Error("Proportions should be greater than 0 and less than 1");var a=(e*r+n*o)/(r+o),i=t.sqrt(a*(1-a)*(1/r+1/o));return(e-n)/i}e.extend({zscore:function(){var t=r.call(arguments);return n(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var n,a=r.call(arguments);return o(a[1])?(n=e.zscore(a[0],a[1],a[3]),1===a[2]?e.normal.cdf(-t.abs(n),0,1):2*e.normal.cdf(-t.abs(n),0,1)):a.length>2?(n=e.zscore(a[0],a[1],a[2]),1===a[3]?e.normal.cdf(-t.abs(n),0,1):2*e.normal.cdf(-t.abs(n),0,1)):(n=a[0],1===a[1]?e.normal.cdf(-t.abs(n),0,1):2*e.normal.cdf(-t.abs(n),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(r,n,o){var a=t.abs(this.zscore(r,o));return 1===n?e.normal.cdf(-a,0,1):2*e.normal.cdf(-a,0,1)}}),e.extend({tscore:function(){var n=r.call(arguments);return 4===n.length?(n[0]-n[1])/(n[2]/t.sqrt(n[3])):(n[0]-e.mean(n[1]))/(e.stdev(n[1],!0)/t.sqrt(n[1].length))},ttest:function(){var o,a=r.call(arguments);return 5===a.length?(o=t.abs(e.tscore(a[0],a[1],a[2],a[3])),1===a[4]?e.studentt.cdf(-o,a[3]-1):2*e.studentt.cdf(-o,a[3]-1)):n(a[1])?(o=t.abs(a[0]),1==a[2]?e.studentt.cdf(-o,a[1]-1):2*e.studentt.cdf(-o,a[1]-1)):(o=t.abs(e.tscore(a[0],a[1])),1==a[2]?e.studentt.cdf(-o,a[1].length-1):2*e.studentt.cdf(-o,a[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/t.sqrt(this.cols()))},ttest:function(r,n){return 1===n?1-e.studentt.cdf(t.abs(this.tscore(r)),this.cols()-1):2*e.studentt.cdf(-t.abs(this.tscore(r)),this.cols()-1)}}),e.extend({anovafscore:function(){var n,o,a,i,u,s,f,c,l=r.call(arguments);if(1===l.length){for(u=new Array(l[0].length),f=0;f<l[0].length;f++)u[f]=l[0][f];l=u}for(o=new Array,f=0;f<l.length;f++)o=o.concat(l[f]);for(a=e.mean(o),n=0,f=0;f<l.length;f++)n+=l[f].length*t.pow(e.mean(l[f])-a,2);for(n/=l.length-1,s=0,f=0;f<l.length;f++)for(i=e.mean(l[f]),c=0;c<l[f].length;c++)s+=t.pow(l[f][c]-i,2);return s/=o.length-l.length,n/s},anovaftest:function(){var t,o,a,i,u=r.call(arguments);if(n(u[0]))return 1-e.centralF.cdf(u[0],u[1],u[2]);var s=e.anovafscore(u);for(t=u.length-1,a=0,i=0;i<u.length;i++)a+=u[i].length;return o=a-t-1,1-e.centralF.cdf(s,t,o)},ftest:function(t,r,n){return 1-e.centralF.cdf(t,r,n)}}),e.extend(e.fn,{anovafscore:function(){return e.anovafscore(this.toArray())},anovaftes:function(){var t,r=0;for(t=0;t<this.length;t++)r+=this[t].length;return e.ftest(this.anovafscore(),this.length-1,r-this.length)}}),e.extend({qscore:function(){var o,a,i,u,s,f=r.call(arguments);return n(f[0])?(o=f[0],a=f[1],i=f[2],u=f[3],s=f[4]):(o=e.mean(f[0]),a=e.mean(f[1]),i=f[0].length,u=f[1].length,s=f[2]),t.abs(o-a)/(s*t.sqrt((1/i+1/u)/2))},qtest:function(){var t,n=r.call(arguments);3===n.length?(t=n[0],n=n.slice(1)):7===n.length?(t=e.qscore(n[0],n[1],n[2],n[3],n[4]),n=n.slice(5)):(t=e.qscore(n[0],n[1],n[2]),n=n.slice(3));var o=n[0],a=n[1];return 1-e.tukey.cdf(t,a,o-a)},tukeyhsd:function(t){for(var r=e.pooledstdev(t),n=t.map((function(t){return e.mean(t)})),o=t.reduce((function(e,t){return e+t.length}),0),a=[],i=0;i<t.length;++i)for(var u=i+1;u<t.length;++u){var s=e.qtest(n[i],n[u],t[i].length,t[u].length,r,o,t.length);a.push([[i,u],s])}return a}}),e.extend({normalci:function(){var n,o=r.call(arguments),a=new Array(2);return n=4===o.length?t.abs(e.normal.inv(o[1]/2,0,1)*o[2]/t.sqrt(o[3])):t.abs(e.normal.inv(o[1]/2,0,1)*e.stdev(o[2])/t.sqrt(o[2].length)),a[0]=o[0]-n,a[1]=o[0]+n,a},tci:function(){var n,o=r.call(arguments),a=new Array(2);return n=4===o.length?t.abs(e.studentt.inv(o[1]/2,o[3]-1)*o[2]/t.sqrt(o[3])):t.abs(e.studentt.inv(o[1]/2,o[2].length-1)*e.stdev(o[2],!0)/t.sqrt(o[2].length)),a[0]=o[0]-n,a[1]=o[0]+n,a},significant:function(e,t){return e<t}}),e.extend(e.fn,{normalci:function(t,r){return e.normalci(t,r,this.toArray())},tci:function(t,r){return e.tci(t,r,this.toArray())}}),e.extend(e.fn,{oneSidedDifferenceOfProportions:function(t,r,n,o){var i=a(t,r,n,o);return e.ztest(i,1)},twoSidedDifferenceOfProportions:function(t,r,n,o){var i=a(t,r,n,o);return e.ztest(i,2)}})}(e,Math),e.models=function(){function t(t){var n=t[0].length,o=e.arange(n).map((function(o){var a=e.arange(n).filter((function(e){return e!==o}));return r(e.col(t,o).map((function(e){return e[0]})),e.col(t,a))}));return o}function r(t,r){var n=t.length,o=r[0].length-1,a=n-o-1,i=e.lstsq(r,t),u=e.multiply(r,i.map((function(e){return[e]}))).map((function(e){return e[0]})),s=e.subtract(t,u),f=e.mean(t),c=e.sum(u.map((function(e){return Math.pow(e-f,2)}))),l=e.sum(t.map((function(e,t){return Math.pow(e-u[t],2)}))),p=c+l,h=c/p;return{exog:r,endog:t,nobs:n,df_model:o,df_resid:a,coef:i,predict:u,resid:s,ybar:f,SST:p,SSE:c,SSR:l,R2:h}}function n(r){var n=t(r.exog),o=Math.sqrt(r.SSR/r.df_resid),a=n.map((function(e){var t=e.SST,r=e.R2;return o/Math.sqrt(t*(1-r))})),i=r.coef.map((function(e,t){return(e-0)/a[t]})),u=i.map((function(t){var n=e.studentt.cdf(t,r.df_resid);return 2*(n>.5?1-n:n)})),s=e.studentt.inv(.975,r.df_resid),f=r.coef.map((function(e,t){var r=s*a[t];return[e-r,e+r]}));return{se:a,t:i,p:u,sigmaHat:o,interval95:f}}function o(t){var r=t.R2/t.df_model/((1-t.R2)/t.df_resid),n=function(t,r,n){return e.beta.cdf(t/(n/r+t),r/2,n/2)},o=1-n(r,t.df_model,t.df_resid);return{F_statistic:r,pvalue:o}}function a(e,t){var a=r(e,t),i=n(a),u=o(a),s=1-(1-a.R2)*((a.nobs-1)/a.df_resid);return a.t=i,a.f=u,a.adjust_R2=s,a}return{ols:a}}(),e.extend({buildxmatrix:function(){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++){var n=[1];t[r]=n.concat(arguments[r])}return e(t)},builddxmatrix:function(){for(var t=new Array(arguments[0].length),r=0;r<arguments[0].length;r++){var n=[1];t[r]=n.concat(arguments[0][r])}return e(t)},buildjxmatrix:function(t){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=t[n];return e.builddxmatrix(r)},buildymatrix:function(t){return e(t).transpose()},buildjymatrix:function(e){return e.transpose()},matrixmult:function(t,r){var n,o,a,i,u;if(t.cols()==r.rows()){if(r.rows()>1){for(i=[],n=0;n<t.rows();n++)for(i[n]=[],o=0;o<r.cols();o++){for(u=0,a=0;a<t.cols();a++)u+=t.toArray()[n][a]*r.toArray()[a][o];i[n][o]=u}return e(i)}for(i=[],n=0;n<t.rows();n++)for(i[n]=[],o=0;o<r.cols();o++){for(u=0,a=0;a<t.cols();a++)u+=t.toArray()[n][a]*r.toArray()[o];i[n][o]=u}return e(i)}},regress:function(t,r){var n=e.xtranspxinv(t),o=t.transpose(),a=e.matrixmult(e(n),o);return e.matrixmult(a,r)},regresst:function(t,r,n){var o=e.regress(t,r),a={anova:{}},i=e.jMatYBar(t,o);a.yBar=i;var u=r.mean();a.anova.residuals=e.residuals(r,i),a.anova.ssr=e.ssr(i,u),a.anova.msr=a.anova.ssr/(t[0].length-1),a.anova.sse=e.sse(r,i),a.anova.mse=a.anova.sse/(r.length-(t[0].length-1)-1),a.anova.sst=e.sst(r,u),a.anova.mst=a.anova.sst/(r.length-1),a.anova.r2=1-a.anova.sse/a.anova.sst,a.anova.r2<0&&(a.anova.r2=0),a.anova.fratio=a.anova.msr/a.anova.mse,a.anova.pvalue=e.anovaftest(a.anova.fratio,t[0].length-1,r.length-(t[0].length-1)-1),a.anova.rmse=Math.sqrt(a.anova.mse),a.anova.r2adj=1-a.anova.mse/a.anova.mst,a.anova.r2adj<0&&(a.anova.r2adj=0),a.stats=new Array(t[0].length);for(var s,f,c,l=e.xtranspxinv(t),p=0;p<o.length;p++)s=Math.sqrt(a.anova.mse*Math.abs(l[p][p])),f=Math.abs(o[p]/s),c=e.ttest(f,r.length-t[0].length-1,n),a.stats[p]=[o[p],s,f,c];return a.regress=o,a},xtranspx:function(t){return e.matrixmult(t.transpose(),t)},xtranspxinv:function(t){var r=e.matrixmult(t.transpose(),t),n=e.inv(r);return n},jMatYBar:function(t,r){var n=e.matrixmult(t,r);return new e(n)},residuals:function(t,r){return e.matrixsubtract(t,r)},ssr:function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t,2);return r},sse:function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t[n],2);return r},sst:function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t,2);return r},matrixsubtract:function(t,r){for(var n=new Array(t.length),o=0;o<t.length;o++){n[o]=new Array(t[o].length);for(var a=0;a<t[o].length;a++)n[o][a]=t[o][a]-r[o][a]}return e(n)}}),e.jStat=e,e}))},2787:(e,t,r)=>{var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&o&&"function"===typeof o.get?o.get:null,i=n&&Map.prototype.forEach,u="function"===typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=u&&s&&"function"===typeof s.get?s.get:null,c=u&&Set.prototype.forEach,l="function"===typeof WeakMap&&WeakMap.prototype,p=l?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,d=h?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,y=g?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,E=String.prototype.match,w=String.prototype.slice,N=String.prototype.replace,S=String.prototype.toUpperCase,I=String.prototype.toLowerCase,A=RegExp.prototype.test,O=Array.prototype.concat,M=Array.prototype.join,R=Array.prototype.slice,T=Math.floor,x="function"===typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"===typeof Symbol&&"object"===typeof Symbol.iterator,L="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function k(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var o=String(n),a=w.call(t,o.length+1);return N.call(o,r,"$&_")+"."+N.call(N.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return N.call(t,r,"$&_")}var U=r(4654),F=U.custom,B=K(F)?F:null;function q(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function V(e){return N.call(String(e),/"/g,""")}function G(e){return"[object Array]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function $(e){return"[object Date]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function H(e){return"[object RegExp]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function Y(e){return"[object Error]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function W(e){return"[object String]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function X(e){return"[object Number]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function z(e){return"[object Boolean]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function K(e){if(D)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}function Q(e){if(!e||"object"!==typeof e||!x)return!1;try{return x.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,o){var u=r||{};if(J(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!J(u,"customInspect")||u.customInspect;if("boolean"!==typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return fe(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return l?k(t,p):p}if("bigint"===typeof t){var h=String(t)+"n";return l?k(t,h):h}var d="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof n&&(n=0),n>=d&&d>0&&"object"===typeof t)return G(t)?"[Array]":"[Object]";var g=ge(u,n);if("undefined"===typeof o)o=[];else if(re(o,t)>=0)return"[Circular]";function y(t,r,a){if(r&&(o=R.call(o),o.push(r)),a){var i={depth:u.depth};return J(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),e(t,i,n+1,o)}return e(t,u,n+1,o)}if("function"===typeof t&&!H(t)){var v=te(t),b=me(t,y);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(b.length>0?" { "+M.call(b,", ")+" }":"")}if(K(t)){var E=D?N.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!==typeof t||D?E:le(E)}if(se(t)){for(var S="<"+I.call(String(t.nodeName)),A=t.attributes||[],T=0;T<A.length;T++)S+=" "+A[T].name+"="+q(V(A[T].value),"double",u);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="</"+I.call(String(t.nodeName))+">",S}if(G(t)){if(0===t.length)return"[]";var _=me(t,y);return g&&!de(_)?"["+ye(_,g)+"]":"[ "+M.call(_,", ")+" ]"}if(Y(t)){var F=me(t,y);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===F.length?"["+String(t)+"]":"{ ["+String(t)+"] "+M.call(F,", ")+" }":"{ ["+String(t)+"] "+M.call(O.call("[cause]: "+y(t.cause),F),", ")+" }"}if("object"===typeof t&&s){if(B&&"function"===typeof t[B]&&U)return U(t,{depth:d-n});if("symbol"!==s&&"function"===typeof t.inspect)return t.inspect()}if(ne(t)){var Z=[];return i&&i.call(t,(function(e,r){Z.push(y(r,t,!0)+" => "+y(e,t))})),he("Map",a.call(t),Z,g)}if(ie(t)){var ce=[];return c&&c.call(t,(function(e){ce.push(y(e,t))})),he("Set",f.call(t),ce,g)}if(oe(t))return pe("WeakMap");if(ue(t))return pe("WeakSet");if(ae(t))return pe("WeakRef");if(X(t))return le(y(Number(t)));if(Q(t))return le(y(x.call(t)));if(z(t))return le(m.call(t));if(W(t))return le(y(String(t)));if(!$(t)&&!H(t)){var ve=me(t,y),be=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ee=t instanceof Object?"":"null prototype",we=!be&&L&&Object(t)===t&&L in t?w.call(ee(t),8,-1):Ee?"Object":"",Ne=be||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Se=Ne+(we||Ee?"["+M.call(O.call([],we||[],Ee||[]),": ")+"] ":"");return 0===ve.length?Se+"{}":g?Se+"{"+ye(ve,g)+"}":Se+"{ "+M.call(ve,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return Z.call(e,t)}function ee(e){return v.call(e)}function te(e){if(e.name)return e.name;var t=E.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function re(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ne(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{f.call(e)}catch(t){return!0}return e instanceof Map}catch(r){}return!1}function oe(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(t){return!0}return e instanceof WeakMap}catch(r){}return!1}function ae(e){if(!y||!e||"object"!==typeof e)return!1;try{return y.call(e),!0}catch(t){}return!1}function ie(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}function ue(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakSet}catch(r){}return!1}function se(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function fe(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return fe(w.call(e,0,t.maxStringLength),t)+n}var o=N.call(N.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ce);return q(o,"single",t)}function ce(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function le(e){return"Object("+e+")"}function pe(e){return e+" { ? }"}function he(e,t,r,n){var o=n?ye(r,n):M.call(r,", ");return e+" ("+t+") {"+o+"}"}function de(e){for(var t=0;t<e.length;t++)if(re(e[t],"\n")>=0)return!1;return!0}function ge(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=M.call(Array(e.indent+1)," ")}return{base:r,prev:M.call(Array(t+1),r)}}function ye(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+M.call(e,","+r)+"\n"+t.prev}function me(e,t){var r=G(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=J(e,o)?t(e[o],e):""}var a,i="function"===typeof _?_(e):[];if(D){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var s in e)J(e,s)&&(r&&String(Number(s))===s&&s<e.length||D&&a["$"+s]instanceof Symbol||(A.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if("function"===typeof _)for(var f=0;f<i.length;f++)P.call(e,i[f])&&n.push("["+t(i[f])+"]: "+t(e[i[f]],e));return n}},3952:e=>{"use strict";var t=function(e){return e!==e};e.exports=function(e,r){return 0===e&&0===r?1/e===1/r:e===r||!(!t(e)||!t(r))}},8650:(e,t,r)=>{"use strict";var n=r(2226),o=r(2245),a=r(3952),i=r(1454),u=r(5953),s=o(i(),Object);n(s,{getPolyfill:i,implementation:a,shim:u}),e.exports=s},1454:(e,t,r)=>{"use strict";var n=r(3952);e.exports=function(){return"function"===typeof Object.is?Object.is:n}},5953:(e,t,r)=>{"use strict";var n=r(1454),o=r(2226);e.exports=function(){var e=n();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8173:(e,t,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=r(3309),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),f=u.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{l(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),d=function(e){if("undefined"===typeof window||!h)return l(e);try{return l(e)}catch(t){return!1}};n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===a.call(e),n=i(e),u=t&&"[object String]"===a.call(e),l=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=f&&r;if(u&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)l.push(String(h));if(n&&e.length>0)for(var g=0;g<e.length;++g)l.push(String(g));else for(var y in e)p&&"prototype"===y||!o.call(e,y)||l.push(String(y));if(s)for(var m=d(e),v=0;v<c.length;++v)m&&"constructor"===c[v]||!o.call(e,c[v])||l.push(c[v]);return l}}e.exports=n},511:(e,t,r)=>{"use strict";var n=Array.prototype.slice,o=r(3309),a=Object.keys,i=a?function(e){return a(e)}:r(8173),u=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?u(n.call(e)):u(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},3309:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7252:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function u(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}})();var s,f=[],c=!1,l=-1;function p(){c&&s&&(c=!1,s.length?f=s.concat(f):l=-1,f.length&&h())}function h(){if(!c){var e=i(p);c=!0;var t=f.length;while(t){s=f,f=[];while(++l<t)s&&s[l].run();l=-1,t=f.length}s=null,c=!1,u(e)}}function d(e,t){this.fun=e,this.array=t}function g(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new d(e,t)),1!==f.length||c||i(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5895:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},8875:(e,t,r)=>{"use strict";var n=r(8815),o=r(4865),a=r(5895);e.exports={formats:a,parse:o,stringify:n}},4865:(e,t,r)=>{"use strict";var n=r(7286),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},f="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",l=function(e,t){var r,l={__proto__:null},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=p.split(t.delimiter,h),g=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&(d[r]===c?y="utf-8":d[r]===f&&(y="iso-8859-1"),g=r,r=d.length);for(r=0;r<d.length;++r)if(r!==g){var m,v,b=d[r],E=b.indexOf("]="),w=-1===E?b.indexOf("="):E+1;-1===w?(m=t.decoder(b,i.decoder,y,"key"),v=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,w),i.decoder,y,"key"),v=n.maybeMap(s(b.slice(w+1),t),(function(e){return t.decoder(e,i.decoder,y,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===y&&(v=u(v)),b.indexOf("[]=")>-1&&(v=a(v)?[v]:v),o.call(l,m)?l[m]=n.combine(l[m],v):l[m]=v}return l},p=function(e,t,r,n){for(var o=n?t:s(t,r),a=e.length-1;a>=0;--a){var i,u=e[a];if("[]"===u&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var f="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(f,10);r.parseArrays||""!==f?!isNaN(c)&&u!==f&&String(c)===f&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=o):"__proto__"!==f&&(i[f]=o):i={0:o}}o=i}return o},h=function(e,t,r,n){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=r.depth>0&&i.exec(a),f=s?a.slice(0,s.index):a,c=[];if(f){if(!r.plainObjects&&o.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}var l=0;while(r.depth>0&&null!==(s=u.exec(a))&&l<r.depth){if(l+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+a.slice(s.index)+"]"),p(c,t,r,n)}},d=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?l(e,r):e,a=r.plainObjects?Object.create(null):{},i=Object.keys(o),u=0;u<i.length;++u){var s=i[u],f=h(s,o[s],r,"string"===typeof e);a=n.merge(a,f,r)}return!0===r.allowSparse?a:n.compact(a)}},8815:(e,t,r)=>{"use strict";var n=r(9818),o=r(7286),a=r(5895),i=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,f=Array.prototype.push,c=function(e,t){f.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,p=a["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},g={},y=function e(t,r,a,i,u,f,l,p,y,m,v,b,E,w,N,S){var I=t,A=S,O=0,M=!1;while(void 0!==(A=A.get(g))&&!M){var R=A.get(t);if(O+=1,"undefined"!==typeof R){if(R===O)throw new RangeError("Cyclic object value");M=!0}"undefined"===typeof A.get(g)&&(O=0)}if("function"===typeof p?I=p(r,I):I instanceof Date?I=v(I):"comma"===a&&s(I)&&(I=o.maybeMap(I,(function(e){return e instanceof Date?v(e):e}))),null===I){if(u)return l&&!w?l(r,h.encoder,N,"key",b):r;I=""}if(d(I)||o.isBuffer(I)){if(l){var T=w?r:l(r,h.encoder,N,"key",b);return[E(T)+"="+E(l(I,h.encoder,N,"value",b))]}return[E(r)+"="+E(String(I))]}var x,_=[];if("undefined"===typeof I)return _;if("comma"===a&&s(I))w&&l&&(I=o.maybeMap(I,l)),x=[{value:I.length>0?I.join(",")||null:void 0}];else if(s(p))x=p;else{var C=Object.keys(I);x=y?C.sort(y):C}for(var D=i&&s(I)&&1===I.length?r+"[]":r,L=0;L<x.length;++L){var P=x[L],j="object"===typeof P&&"undefined"!==typeof P.value?P.value:I[P];if(!f||null!==j){var k=s(I)?"function"===typeof a?a(D,P):D:D+(m?"."+P:"["+P+"]");S.set(t,O);var U=n();U.set(g,S),c(_,e(j,k,a,i,u,f,"comma"===a&&w&&s(I)?null:l,p,y,m,v,b,E,w,N,U))}}return _},m=function(e){if(!e)return h;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a["default"];if("undefined"!==typeof e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.formatters[r],o=h.filter;return("function"===typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,o,a=e,i=m(t);"function"===typeof i.filter?(o=i.filter,a=o("",a)):s(i.filter)&&(o=i.filter,r=o);var f,l=[];if("object"!==typeof a||null===a)return"";f=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=u[f];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===p&&t&&t.commaRoundTrip;r||(r=Object.keys(a)),i.sort&&r.sort(i.sort);for(var d=n(),g=0;g<r.length;++g){var v=r[g];i.skipNulls&&null===a[v]||c(l,y(a[v],v,p,h,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,d))}var b=l.join(i.delimiter),E=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),b.length>0?E+b:""}},7286:(e,t,r)=>{"use strict";var n=r(5895),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)"undefined"!==typeof r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},f=function e(t,r,n){if(!r)return t;if("object"!==typeof r){if(a(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var i=t;return a(t)&&!a(r)&&(i=s(t,n)),a(t)&&a(r)?(r.forEach((function(r,a){if(o.call(t,a)){var i=t[a];i&&"object"===typeof i&&r&&"object"===typeof r?t[a]=e(i,r,n):t.push(r)}else t[a]=r})),t):Object.keys(r).reduce((function(t,a){var i=r[a];return o.call(t,a)?t[a]=e(t[a],i,n):t[a]=i,t}),i)},c=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},l=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},p=function(e,t,r,o,a){if(0===e.length)return e;var u=e;if("symbol"===typeof e?u=Symbol.prototype.toString.call(e):"string"!==typeof e&&(u=String(e)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",f=0;f<u.length;++f){var c=u.charCodeAt(f);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===n.RFC1738&&(40===c||41===c)?s+=u.charAt(f):c<128?s+=i[c]:c<2048?s+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?s+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(f+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(f)),s+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return s},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var f=i[s],c=a[f];"object"===typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:f}),r.push(c))}return u(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},g=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},y=function(e,t){return[].concat(e,t)},m=function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)};e.exports={arrayToObject:s,assign:c,combine:y,compact:h,decode:l,encode:p,isBuffer:g,isRegExp:d,maybeMap:m,merge:f}},7629:(e,t,r)=>{
|
|
16
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
17
|
-
var n=r(9520),o=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=i),i.prototype=Object.create(o.prototype),a(o,i),i.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},i.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},i.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},9818:(e,t,r)=>{"use strict";var n=r(1443),o=r(926),a=r(2787),i=n("%TypeError%"),u=n("%WeakMap%",!0),s=n("%Map%",!0),f=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},y=function(e,t){var r=g(e,t);return r&&r.value},m=function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},v=function(e,t){return!!g(e,t)};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new i("Side channel does not contain "+a(e))},get:function(n){if(u&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(s){if(t)return p(t,n)}else if(r)return y(r,n)},has:function(n){if(u&&n&&("object"===typeof n||"function"===typeof n)){if(e)return l(e,n)}else if(s){if(t)return d(t,n)}else if(r)return v(r,n);return!1},set:function(n,o){u&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new u),c(e,n,o)):s?(t||(t=new s),h(t,n,o)):(r||(r={key:{},next:null}),m(r,n,o))}};return n}},9798:(e,t,r)=>{var n=r(9081),o=r(7312),a=r(4521),i=r(8463),u=r(1241),s=t;s.request=function(e,t){e="string"===typeof e?u.parse(e):a(e);var o=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||o,s=e.hostname||e.host,f=e.port,c=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?i+"//"+s:"")+(f?":"+f:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var l=new n(e);return t&&l.on("response",t),l},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.ClientRequest=n,s.IncomingMessage=o.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=i,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},1479:(e,t,r)=>{var n;function o(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function a(e){var t=o();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(r){}return!1}function i(e){return"function"===typeof e}t.fetch=i(r.g.fetch)&&i(r.g.ReadableStream),t.writableStream=i(r.g.WritableStream),t.abortController=i(r.g.AbortController),t.arraybuffer=t.fetch||a("arraybuffer"),t.msstream=!t.fetch&&a("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!o()&&i(o().overrideMimeType),n=null},9081:(e,t,r)=>{var n=r(9520)["Buffer"],o=r(7252),a=r(1479),i=r(2605),u=r(7312),s=r(9492),f=u.IncomingMessage,c=u.readyStates;function l(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var p=e.exports=function(e){var t,r=this;s.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=l(t,o),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};function h(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}i(p,s.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===d.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var u=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){u.push([t,e])})):u.push([t,r])})),"fetch"===e._mode){var s=null;if(a.abortController){var f=new AbortController;s=f.signal,e._fetchAbortController=f,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:u,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:s}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(p){return void o.nextTick((function(){e.emit("error",p)}))}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){l.setRequestHeader(e[0],e[1])})),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case c.LOADING:case c.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(i)}catch(p){return void o.nextTick((function(){e.emit("error",p)}))}}}},p.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),h(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new f(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},p.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},p.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},p.prototype.abort=p.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},p.prototype.end=function(e,t,r){var n=this;"function"===typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(n,e,t,r)},p.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},p.prototype.flushHeaders=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},7312:(e,t,r)=>{var n=r(7252),o=r(9520)["Buffer"],a=r(1479),i=r(2605),u=r(9492),s=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(e,t,r,i){var s=this;if(u.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){n.nextTick((function(){s.emit("close")}))})),"fetch"===r){if(s._fetchResponse=t,s.url=t.url,s.statusCode=t.status,s.statusMessage=t.statusText,t.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),a.writableStream){var f=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){s._destroyed?r():s.push(o.from(e))?t():s._resumeFetch=t}))},close:function(){i(!0),s._destroyed||s.push(null)},abort:function(e){i(!0),s._destroyed||s.emit("error",e)}});try{return void t.body.pipeTo(f).catch((function(e){i(!0),s._destroyed||s.emit("error",e)}))}catch(g){}}var c=t.body.getReader();function l(){c.read().then((function(e){s._destroyed||(i(e.done),e.done?s.push(null):(s.push(o.from(e.value)),l()))})).catch((function(e){i(!0),s._destroyed||s.emit("error",e)}))}l()}else{s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText;var p=e.getAllResponseHeaders().split(/\r?\n/);if(p.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!a.overrideMimeType){var h=s.rawHeaders["mime-type"];if(h){var d=h.match(/;\s*charset=([^;])(;|$)/);d&&(s._charset=d[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};i(f,u.Readable),f.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},f.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,a=null;switch(t._mode){case"text":if(a=n.responseText,a.length>t._pos){var i=a.substr(t._pos);if("x-user-defined"===t._charset){for(var u=o.alloc(i.length),f=0;f<i.length;f++)u[f]=255&i.charCodeAt(f);t.push(u)}else t.push(i,t._charset);t._pos=a.length}break;case"arraybuffer":if(n.readyState!==s.DONE||!n.response)break;a=n.response,t.push(o.from(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=n.response,n.readyState!==s.LOADING||!a)break;t.push(o.from(new Uint8Array(a)));break;case"ms-stream":if(a=n.response,n.readyState!==s.LOADING)break;var c=new r.g.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(o.from(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){e(!0),t.push(null)},c.readAsArrayBuffer(a);break}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},9046:e=>{"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function n(e,n,o){function a(e,t,r){return"string"===typeof n?n:n(e,t,r)}o||(o=Error);var i=function(e){function r(t,r,n){return e.call(this,a(t,r,n))||this}return t(r,e),r}(o);i.prototype.name=o.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function i(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function u(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,s;if("string"===typeof t&&a(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",i(e," argument"))s="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var f=u(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(f," ").concat(n," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof r),s}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=r},8612:(e,t,r)=>{"use strict";var n=r(7252),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=r(8447),i=r(8743);r(2605)(c,a);for(var u=o(i.prototype),s=0;s<u.length;s++){var f=u[s];c.prototype[f]||(c.prototype[f]=i.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3642:(e,t,r)=>{"use strict";e.exports=o;var n=r(9440);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(2605)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},8447:(e,t,r)=>{"use strict";var n,o=r(7252);e.exports=T,T.ReadableState=R;r(1002).EventEmitter;var a=function(e,t){return e.listeners(t).length},i=r(3429),u=r(9520).Buffer,s=("undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function f(e){return u.from(e)}function c(e){return u.isBuffer(e)||e instanceof s}var l,p=r(3646);l=p&&p.debuglog?p.debuglog("stream"):function(){};var h,d,g,y=r(6692),m=r(8584),v=r(8870),b=v.getHighWaterMark,E=r(9046).q,w=E.ERR_INVALID_ARG_TYPE,N=E.ERR_STREAM_PUSH_AFTER_EOF,S=E.ERR_METHOD_NOT_IMPLEMENTED,I=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(2605)(T,i);var A=m.errorOrDestroy,O=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function R(e,t,o){n=n||r(8612),e=e||{},"boolean"!==typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",o),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(9316).s),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function T(e){if(n=n||r(8612),!(this instanceof T))return new T(e);var t=this instanceof n;this._readableState=new R(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function x(e,t,r,n,o){l("readableAddChunk",t);var a,i=e._readableState;if(null===t)i.reading=!1,j(e,i);else if(o||(a=C(i,t)),a)A(e,a);else if(i.objectMode||t&&t.length>0)if("string"===typeof t||i.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=f(t)),n)i.endEmitted?A(e,new I):_(e,i,t,!0);else if(i.ended)A(e,new N);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?_(e,i,t,!1):F(e,i)):_(e,i,t,!1)}else n||(i.reading=!1,F(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),F(e,t)}function C(e,t){var r;return c(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=u.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},T.prototype.unshift=function(e){return x(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){h||(h=r(9316).s);var t=new h(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,o="";while(null!==n)o+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var D=1073741824;function L(e){return e>=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=L(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e,t){if(l("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?k(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,U(e)))}}function k(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(U,e))}function U(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function F(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(B,e,t))}function B(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var r=t.length;if(l("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,Y(e))}}function V(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function G(e){l("readable nexttick read 0"),e.read(0)}function $(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(H,e,t))}function H(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){var t=e._readableState;l("flow",t.flowing);while(t.flowing&&null!==e.read());}function W(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function X(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(z,t,e))}function z(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function K(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}T.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?X(this):k(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&X(this),null;var n,o=t.needReadable;return l("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&(o=!0,l("length less than watermark",o)),t.ended||t.reading?(o=!1,l("reading or ended",o)):o&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(r,t))),n=e>0?W(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&X(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(e){A(this,new S("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==o.stdout&&e!==o.stderr,u=i?f:v;function s(e,t){l("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function f(){l("onend"),e.end()}n.endEmitted?o.nextTick(u):r.once("end",u),e.on("unpipe",s);var c=q(r);e.on("drain",c);var p=!1;function h(){l("cleanup"),e.removeListener("close",y),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",g),e.removeListener("unpipe",s),r.removeListener("end",f),r.removeListener("end",v),r.removeListener("data",d),p=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c()}function d(t){l("ondata");var o=e.write(t);l("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==K(n.pipes,e))&&!p&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function g(t){l("onerror",t),v(),e.removeListener("error",g),0===a(e,"error")&&A(e,t)}function y(){e.removeListener("finish",m),v()}function m(){l("onfinish"),e.removeListener("close",y),v()}function v(){l("unpipe"),r.unpipe(e)}return r.on("data",d),M(e,"error",g),e.once("close",y),e.once("finish",m),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<o;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var i=K(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=i.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?k(this):n.reading||o.nextTick(G,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(V,this),r},T.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||o.nextTick(V,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,$(this,e)),e.paused=!1,this},T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){if(l("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!==o&&void 0!==o)&&(r.objectMode||o&&o.length)){var a=t.push(o);a||(n=!0,e.pause())}})),e)void 0===this[o]&&"function"===typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<O.length;a++)e.on(O[a],this.emit.bind(this,O[a]));return this._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(9528)),d(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(e,t){return void 0===g&&(g=r(5960)),g(T,e,t)})},9440:(e,t,r)=>{"use strict";e.exports=c;var n=r(9046).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=n.ERR_TRANSFORM_WITH_LENGTH_0,s=r(8612);function f(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush((function(t,r){p(e,t,r)}))}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new u;if(e._transformState.transforming)throw new i;return e.push(null)}r(2605)(c,s),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new o("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,(function(e){t(e)}))}},8743:(e,t,r)=>{"use strict";var n,o=r(7252);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){H(t,e)}}e.exports=R,R.WritableState=M;var i={deprecate:r(3948)},u=r(3429),s=r(9520).Buffer,f=("undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return s.from(e)}function l(e){return s.isBuffer(e)||e instanceof f}var p,h=r(8584),d=r(8870),g=d.getHighWaterMark,y=r(9046).q,m=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,b=y.ERR_MULTIPLE_CALLBACK,E=y.ERR_STREAM_CANNOT_PIPE,w=y.ERR_STREAM_DESTROYED,N=y.ERR_STREAM_NULL_VALUES,S=y.ERR_STREAM_WRITE_AFTER_END,I=y.ERR_UNKNOWN_ENCODING,A=h.errorOrDestroy;function O(){}function M(e,t,o){n=n||r(8612),e=e||{},"boolean"!==typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){j(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function R(e){n=n||r(8612);var t=this instanceof n;if(!t&&!p.call(R,this))return new R(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function T(e,t){var r=new S;A(e,r),o.nextTick(t,r)}function x(e,t,r,n){var a;return null===r?a=new N:"string"===typeof r||t.objectMode||(a=new m("chunk",["string","Buffer"],r)),!a||(A(e,a),o.nextTick(n,a),!1)}function _(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=s.from(t,r)),t}function C(e,t,r,n,o,a){if(!r){var i=_(t,n,o);n!==i&&(r=!0,o="buffer",n=i)}var u=t.objectMode?1:n.length;t.length+=u;var s=t.length<t.highWaterMark;if(s||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else D(e,t,!1,u,n,o,a);return s}function D(e,t,r,n,o,a,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(o,t.onwrite):e._write(o,a,t.onwrite),t.sync=!1}function L(e,t,r,n,a){--t.pendingcb,r?(o.nextTick(a,n),o.nextTick(G,e,t),e._writableState.errorEmitted=!0,A(e,n)):(a(n),e._writableState.errorEmitted=!0,A(e,n),G(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function j(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if("function"!==typeof a)throw new b;if(P(r),t)L(e,r,n,t,a);else{var i=B(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?o.nextTick(k,e,r,i,a):k(e,r,i,a)}}function k(e,t,r,n){r||U(e,t),t.pendingcb--,n(),G(e,t)}function U(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),i=t.corkedRequestsFree;i.entry=r;var u=0,s=!0;while(r)o[u]=r,r.isBuf||(s=!1),r=r.next,u+=1;o.allBuffers=s,D(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{while(r){var f=r.chunk,c=r.encoding,l=r.callback,p=t.objectMode?1:f.length;if(D(e,t,!1,p,f,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function B(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final((function(r){t.pendingcb--,r&&A(e,r),t.prefinished=!0,e.emit("prefinish"),G(e,t)}))}function V(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(q,e,t)))}function G(e,t){var r=B(t);if(r&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function $(e,t,r){t.ending=!0,G(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function H(e,t,r){var n=e.entry;e.entry=null;while(n){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}r(2605)(R,u),M.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===R&&(e&&e._writableState instanceof M)}})):p=function(e){return e instanceof this},R.prototype.pipe=function(){A(this,new E)},R.prototype.write=function(e,t,r){var n=this._writableState,o=!1,a=!n.objectMode&&l(e);return a&&!s.isBuffer(e)&&(e=c(e)),"function"===typeof t&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),"function"!==typeof r&&(r=O),n.ending?T(this,r):(a||x(this,n,e,r))&&(n.pendingcb++,o=C(this,n,a,e,t,r)),o},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},R.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new I(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,r){r(new v("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,r){var n=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||$(this,n,r),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=h.destroy,R.prototype._undestroy=h.undestroy,R.prototype._destroy=function(e,t){t(e)}},9528:(e,t,r)=>{"use strict";var n,o=r(7252);function a(e,t,r){return t=i(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var s=r(4372),f=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),p=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),g=Symbol("stream");function y(e,t){return{value:e,done:t}}function m(e){var t=e[f];if(null!==t){var r=e[g].read();null!==r&&(e[h]=null,e[f]=null,e[c]=null,t(y(r,!1)))}}function v(e){o.nextTick(m,e)}function b(e,t){return function(r,n){e.then((function(){t[p]?r(y(void 0,!0)):t[d](r,n)}),n)}}var E=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((n={get stream(){return this[g]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[p])return Promise.resolve(y(void 0,!0));if(this[g].destroyed)return new Promise((function(t,r){o.nextTick((function(){e[l]?r(e[l]):t(y(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(b(n,this));else{var a=this[g].read();if(null!==a)return Promise.resolve(y(a,!1));r=new Promise(this[d])}return this[h]=r,r}},a(n,Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var e=this;return new Promise((function(t,r){e[g].destroy(null,(function(e){e?r(e):t(y(void 0,!0))}))}))})),n),E),N=function(e){var t,r=Object.create(w,(t={},a(t,g,{value:e,writable:!0}),a(t,f,{value:null,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,p,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var n=r[g].read();n?(r[h]=null,r[f]=null,r[c]=null,e(y(n,!1))):(r[f]=e,r[c]=t)},writable:!0}),t));return r[h]=null,s(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[h]=null,r[f]=null,r[c]=null,t(e)),void(r[l]=e)}var n=r[f];null!==n&&(r[h]=null,r[f]=null,r[c]=null,n(y(void 0,!0))),r[p]=!0})),e.on("readable",v.bind(null,r)),r};e.exports=N},6692:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t=f(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function s(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=c(e,"string");return"symbol"===typeof t?t:String(t)}function c(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l=r(9520),p=l.Buffer,h=r(1408),d=h.inspect,g=d&&d.custom||"inspect";function y(e,t,r){p.prototype.copy.call(e,t,r)}e.exports=function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return p.alloc(0);var t=p.allocUnsafe(e>>>0),r=this.head,n=0;while(r)y(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;e-=n.length;while(t=t.next){var o=t.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=p.allocUnsafe(e),r=this.head,n=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),e-=a,0===e){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:g,value:function(e,t){return d(this,o(o({},t),{},{depth:0,customInspect:!1}))}}]),e}()},8584:(e,t,r)=>{"use strict";var n=r(7252);function o(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return o||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,e)):n.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(i,r):(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t?(n.nextTick(i,r),t(e)):n.nextTick(i,r)})),this)}function a(e,t){s(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function u(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function f(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:o,undestroy:u,errorOrDestroy:f}},4372:(e,t,r)=>{"use strict";var n=r(9046).q.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}function a(){}function i(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,r){if("function"===typeof t)return u(e,null,t);t||(t={}),r=o(r||a);var s=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||p()},l=e._writableState&&e._writableState.finished,p=function(){f=!1,l=!0,s||r.call(e)},h=e._readableState&&e._readableState.endEmitted,d=function(){s=!1,h=!0,f||r.call(e)},g=function(t){r.call(e,t)},y=function(){var t;return s&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):f&&!l?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},m=function(){e.req.on("finish",p)};return i(e)?(e.on("complete",p),e.on("abort",y),e.req?m():e.on("request",m)):f&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",d),e.on("finish",p),!1!==t.error&&e.on("error",g),e.on("close",y),function(){e.removeListener("complete",p),e.removeListener("abort",y),e.removeListener("request",m),e.req&&e.req.removeListener("finish",p),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",p),e.removeListener("end",d),e.removeListener("error",g),e.removeListener("close",y)}}e.exports=u},5960:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9181:(e,t,r)=>{"use strict";var n;function o(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var a=r(9046).q,i=a.ERR_MISSING_ARGS,u=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function f(e){return e.setHeader&&"function"===typeof e.abort}function c(e,t,a,i){i=o(i);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(4372)),n(e,{readable:t,writable:a},(function(e){if(e)return i(e);s=!0,i()}));var c=!1;return function(t){if(!s&&!c)return c=!0,f(e)?e.abort():"function"===typeof e.destroy?e.destroy():void i(t||new u("pipe"))}}function l(e){e()}function p(e,t){return e.pipe(t)}function h(e){return e.length?"function"!==typeof e[e.length-1]?s:e.pop():s}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=h(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var a=t.map((function(e,r){var i=r<t.length-1,u=r>0;return c(e,i,u,(function(e){n||(n=e),e&&a.forEach(l),i||(a.forEach(l),o(n))}))}));return t.reduce(p)}e.exports=d},8870:(e,t,r)=>{"use strict";var n=r(9046).q.ERR_INVALID_OPT_VALUE;function o(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function a(e,t,r,a){var i=o(t,a,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0){var u=a?r:"highWaterMark";throw new n(u,i)}return Math.floor(i)}return e.objectMode?16:16384}e.exports={getHighWaterMark:a}},3429:(e,t,r)=>{e.exports=r(1002).EventEmitter},9492:(e,t,r)=>{t=e.exports=r(8447),t.Stream=t,t.Readable=t,t.Writable=r(8743),t.Duplex=r(8612),t.Transform=r(9440),t.PassThrough=r(3642),t.finished=r(4372),t.pipeline=r(9181)},9316:(e,t,r)=>{"use strict";var n=r(7629).Buffer,o=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=a(e);if("string"!==typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function u(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=d,this.end=g,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=y,this.end=m,t=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function f(e,t,r){var n=t.length-1;if(n<r)return 0;var o=s(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=s(t[n]),o>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=s(t[n]),o>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function c(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function l(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function p(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function d(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=u,u.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},u.prototype.end=h,u.prototype.text=p,u.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3870:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;for(n;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var a=0,i=n.length;a<i;a++)n[a].fn!==t&&n[a].fn._!==t&&o.push(n[a]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},3543:function(e,t,r){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */e=r.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r.g&&r.g;a.global!==a&&a.window!==a&&a.self;var i,u=2147483647,s=36,f=1,c=26,l=38,p=700,h=72,d=128,g="-",y=/^xn--/,m=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=s-f,w=Math.floor,N=String.fromCharCode;function S(e){throw new RangeError(b[e])}function I(e,t){var r=e.length,n=[];while(r--)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(v,".");var o=e.split("."),a=I(o,t).join(".");return n+a}function O(e){var t,r,n=[],o=0,a=e.length;while(o<a)t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<a?(r=e.charCodeAt(o++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--)):n.push(t);return n}function M(e){return I(e,(function(e){var t="";return e>65535&&(e-=65536,t+=N(e>>>10&1023|55296),e=56320|1023&e),t+=N(e),t})).join("")}function R(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?w(e/p):e>>1,e+=w(e/t);e>E*c>>1;n+=s)e=w(e/E);return w(n+(E+1)*e/(e+l))}function _(e){var t,r,n,o,a,i,l,p,y,m,v=[],b=e.length,E=0,N=d,I=h;for(r=e.lastIndexOf(g),r<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&S("not-basic"),v.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<b;){for(a=E,i=1,l=s;;l+=s){if(o>=b&&S("invalid-input"),p=R(e.charCodeAt(o++)),(p>=s||p>w((u-E)/i))&&S("overflow"),E+=p*i,y=l<=I?f:l>=I+c?c:l-I,p<y)break;m=s-y,i>w(u/m)&&S("overflow"),i*=m}t=v.length+1,I=x(E-a,t,0==a),w(E/t)>u-N&&S("overflow"),N+=w(E/t),E%=t,v.splice(E++,0,N)}return M(v)}function C(e){var t,r,n,o,a,i,l,p,y,m,v,b,E,I,A,M=[];for(e=O(e),b=e.length,t=d,r=0,a=h,i=0;i<b;++i)v=e[i],v<128&&M.push(N(v));n=o=M.length,o&&M.push(g);while(n<b){for(l=u,i=0;i<b;++i)v=e[i],v>=t&&v<l&&(l=v);for(E=n+1,l-t>w((u-r)/E)&&S("overflow"),r+=(l-t)*E,t=l,i=0;i<b;++i)if(v=e[i],v<t&&++r>u&&S("overflow"),v==t){for(p=r,y=s;;y+=s){if(m=y<=a?f:y>=a+c?c:y-a,p<m)break;A=p-m,I=s-m,M.push(N(T(m+A%I,0))),p=w(A/I)}M.push(N(T(p,0))),a=x(r,E,n==o),r=0,++n}++r,++t}return M.join("")}function D(e){return A(e,(function(e){return y.test(e)?_(e.slice(4).toLowerCase()):e}))}function L(e){return A(e,(function(e){return m.test(e)?"xn--"+C(e):e}))}i={version:"1.4.1",ucs2:{decode:O,encode:M},decode:_,encode:C,toASCII:L,toUnicode:D},n=function(){return i}.call(t,r,t,e),void 0===n||(e.exports=n)}()},1241:(e,t,r)=>{"use strict";var n=r(3543);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(s),c=["'"].concat(f),l=["%","/","?",";","#"].concat(c),p=["/","?","#"],h=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(8875);function E(e,t,r){if(e&&"object"===typeof e&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}function w(e){return"string"===typeof e&&(e=E(e)),e instanceof o?e.format():o.prototype.format.call(e)}function N(e,t){return E(e,!1,!0).resolve(t)}function S(e,t){return e?E(e,!1,!0).resolveObject(t):t}o.prototype.parse=function(e,t,r){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),i=-1!==o&&o<e.indexOf("#")?"?":"#",s=e.split(i),f=/\\/g;s[0]=s[0].replace(f,"/"),e=s.join(i);var E=e;if(E=E.trim(),!r&&1===e.split("#").length){var w=u.exec(E);if(w)return this.path=E,this.href=E,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var N=a.exec(E);if(N){N=N[0];var S=N.toLowerCase();this.protocol=S,E=E.substr(N.length)}if(r||N||E.match(/^\/\/[^@/]+@[^@/]+/)){var I="//"===E.substr(0,2);!I||N&&m[N]||(E=E.substr(2),this.slashes=!0)}if(!m[N]&&(I||N&&!v[N])){for(var A,O,M=-1,R=0;R<p.length;R++){var T=E.indexOf(p[R]);-1!==T&&(-1===M||T<M)&&(M=T)}O=-1===M?E.lastIndexOf("@"):E.lastIndexOf("@",M),-1!==O&&(A=E.slice(0,O),E=E.slice(O+1),this.auth=decodeURIComponent(A)),M=-1;for(R=0;R<l.length;R++){T=E.indexOf(l[R]);-1!==T&&(-1===M||T<M)&&(M=T)}-1===M&&(M=E.length),this.host=E.slice(0,M),E=E.slice(M),this.parseHost(),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x)for(var _=this.hostname.split(/\./),C=(R=0,_.length);R<C;R++){var D=_[R];if(D&&!D.match(d)){for(var L="",P=0,j=D.length;P<j;P++)D.charCodeAt(P)>127?L+="x":L+=D[P];if(!L.match(d)){var k=_.slice(0,R),U=_.slice(R+1),F=D.match(g);F&&(k.push(F[1]),U.unshift(F[2])),U.length&&(E="/"+U.join(".")+E),this.hostname=k.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=n.toASCII(this.hostname));var B=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+B,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==E[0]&&(E="/"+E))}if(!y[S])for(R=0,C=c.length;R<C;R++){var V=c[R];if(-1!==E.indexOf(V)){var G=encodeURIComponent(V);G===V&&(G=escape(V)),E=E.split(V).join(G)}}var $=E.indexOf("#");-1!==$&&(this.hash=E.substr($),E=E.slice(0,$));var H=E.indexOf("?");if(-1!==H?(this.search=E.substr(H),this.query=E.substr(H+1),t&&(this.query=b.parse(this.query)),E=E.slice(0,H)):t&&(this.search="",this.query={}),E&&(this.pathname=E),v[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var Y=this.search||"";this.path=B+Y}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(a=b.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),i&&"?"!==i.charAt(0)&&(i="?"+i),r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),i=i.replace("#","%23"),t+o+r+i+n},o.prototype.resolve=function(e){return this.resolveObject(E(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"===typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var i=n[a];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),s=0;s<u.length;s++){var f=u[s];"protocol"!==f&&(r[f]=e[f])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!v[e.protocol]){for(var c=Object.keys(e),l=0;l<c.length;l++){var p=c[l];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{var h=(e.pathname||"").split("/");while(h.length&&!(e.host=h.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",g=r.search||"";r.path=d+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=b||y||r.host&&e.pathname,w=E,N=r.pathname&&r.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===N[0]?N[0]=r.host:N.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),E=E&&(""===h[0]||""===N[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,N=h;else if(h.length)N||(N=[]),N.pop(),N=N.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search){if(S){r.host=N.shift(),r.hostname=r.host;var I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");I&&(r.auth=I.shift(),r.hostname=I.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!N.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=N.slice(-1)[0],O=(r.host||e.host||N.length>1)&&("."===A||".."===A)||""===A,M=0,R=N.length;R>=0;R--)A=N[R],"."===A?N.splice(R,1):".."===A?(N.splice(R,1),M++):M&&(N.splice(R,1),M--);if(!E&&!w)for(;M--;M)N.unshift("..");!E||""===N[0]||N[0]&&"/"===N[0].charAt(0)||N.unshift(""),O&&"/"!==N.join("/").substr(-1)&&N.push("");var T=""===N[0]||N[0]&&"/"===N[0].charAt(0);if(S){r.hostname=T?"":N.length?N.shift():"",r.host=r.hostname;I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");I&&(r.auth=I.shift(),r.hostname=I.shift(),r.host=r.hostname)}return E=E||r.host&&N.length,E&&!T&&N.unshift(""),N.length>0?r.pathname=N.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=E,t.resolve=N,t.resolveObject=S,t.format=w,t.Url=o},3948:(e,t,r)=>{var n=r(7652);function o(e,t){if(a("noDeprecation"))return e;var r=!1;function o(){if(!r){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}return o}function a(e){try{if(!r.g.localStorage)return!1}catch(n){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=o},5164:e=>{e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},646:(e,t,r)=>{"use strict";var n=r(3305),o=r(7736),a=r(422),i=r(9677);function u(e){return e.call.bind(e)}var s="undefined"!==typeof BigInt,f="undefined"!==typeof Symbol,c=u(Object.prototype.toString),l=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),h=u(Boolean.prototype.valueOf);if(s)var d=u(BigInt.prototype.valueOf);if(f)var g=u(Symbol.prototype.valueOf);function y(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function m(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||q(e)}function b(e){return"Uint8Array"===a(e)}function E(e){return"Uint8ClampedArray"===a(e)}function w(e){return"Uint16Array"===a(e)}function N(e){return"Uint32Array"===a(e)}function S(e){return"Int8Array"===a(e)}function I(e){return"Int16Array"===a(e)}function A(e){return"Int32Array"===a(e)}function O(e){return"Float32Array"===a(e)}function M(e){return"Float64Array"===a(e)}function R(e){return"BigInt64Array"===a(e)}function T(e){return"BigUint64Array"===a(e)}function x(e){return"[object Map]"===c(e)}function _(e){return"undefined"!==typeof Map&&(x.working?x(e):e instanceof Map)}function C(e){return"[object Set]"===c(e)}function D(e){return"undefined"!==typeof Set&&(C.working?C(e):e instanceof Set)}function L(e){return"[object WeakMap]"===c(e)}function P(e){return"undefined"!==typeof WeakMap&&(L.working?L(e):e instanceof WeakMap)}function j(e){return"[object WeakSet]"===c(e)}function k(e){return j(e)}function U(e){return"[object ArrayBuffer]"===c(e)}function F(e){return"undefined"!==typeof ArrayBuffer&&(U.working?U(e):e instanceof ArrayBuffer)}function B(e){return"[object DataView]"===c(e)}function q(e){return"undefined"!==typeof DataView&&(B.working?B(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=i,t.isPromise=m,t.isArrayBufferView=v,t.isUint8Array=b,t.isUint8ClampedArray=E,t.isUint16Array=w,t.isUint32Array=N,t.isInt8Array=S,t.isInt16Array=I,t.isInt32Array=A,t.isFloat32Array=O,t.isFloat64Array=M,t.isBigInt64Array=R,t.isBigUint64Array=T,x.working="undefined"!==typeof Map&&x(new Map),t.isMap=_,C.working="undefined"!==typeof Set&&C(new Set),t.isSet=D,L.working="undefined"!==typeof WeakMap&&L(new WeakMap),t.isWeakMap=P,j.working="undefined"!==typeof WeakSet&&j(new WeakSet),t.isWeakSet=k,U.working="undefined"!==typeof ArrayBuffer&&U(new ArrayBuffer),t.isArrayBuffer=F,B.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&B(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=q;var V="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function G(e){return"[object SharedArrayBuffer]"===c(e)}function $(e){return"undefined"!==typeof V&&("undefined"===typeof G.working&&(G.working=G(new V)),G.working?G(e):e instanceof V)}function H(e){return"[object AsyncFunction]"===c(e)}function Y(e){return"[object Map Iterator]"===c(e)}function W(e){return"[object Set Iterator]"===c(e)}function X(e){return"[object Generator]"===c(e)}function z(e){return"[object WebAssembly.Module]"===c(e)}function K(e){return y(e,l)}function Q(e){return y(e,p)}function Z(e){return y(e,h)}function J(e){return s&&y(e,d)}function ee(e){return f&&y(e,g)}function te(e){return K(e)||Q(e)||Z(e)||J(e)||ee(e)}function re(e){return"undefined"!==typeof Uint8Array&&(F(e)||$(e))}t.isSharedArrayBuffer=$,t.isAsyncFunction=H,t.isMapIterator=Y,t.isSetIterator=W,t.isGeneratorObject=X,t.isWebAssemblyCompiledModule=z,t.isNumberObject=K,t.isStringObject=Q,t.isBooleanObject=Z,t.isBigIntObject=J,t.isSymbolObject=ee,t.isBoxedPrimitive=te,t.isAnyArrayBuffer=re,["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},8529:(e,t,r)=>{var n=r(7252),o=r(7652),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!A(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),u=n[r];r<o;u=n[++r])N(u)||!T(u)?a+=" "+u:a+=" "+c(u);return a},t.deprecate=function(e,r){if("undefined"!==typeof n&&!0===n.noDeprecation)return e;if("undefined"===typeof n)return function(){return t.deprecate(e,r).apply(this,arguments)};var a=!1;function i(){if(!a){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),a=!0}return e.apply(this,arguments)}return i};var u={},s=/^$/;if({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG){var f={NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+f+"$","i")}function c(e,r){var n={seen:[],stylize:p};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),M(n.showHidden)&&(n.showHidden=!1),M(n.depth)&&(n.depth=2),M(n.colors)&&(n.colors=!1),M(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),d(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function p(e,t){return e}function h(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}function d(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return A(o)||(o=d(e,o,n)),o}var a=g(e,r);if(a)return a;var i=Object.keys(r),u=h(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),_(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return y(r);if(0===i.length){if(C(r)){var s=r.name?": "+r.name:"";return e.stylize("[Function"+s+"]","special")}if(R(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return y(r)}var f,c="",l=!1,p=["{","}"];if(E(r)&&(l=!0,p=["[","]"]),C(r)){var w=r.name?": "+r.name:"";c=" [Function"+w+"]"}return R(r)&&(c=" "+RegExp.prototype.toString.call(r)),x(r)&&(c=" "+Date.prototype.toUTCString.call(r)),_(r)&&(c=" "+y(r)),0!==i.length||l&&0!=r.length?n<0?R(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=l?m(e,r,n,u,i):i.map((function(t){return v(e,r,n,u,t,l)})),e.seen.pop(),b(f,c,p)):p[0]+c+p[1]}function g(e,t){if(M(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return I(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):N(t)?e.stylize("null","null"):void 0}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,o){for(var a=[],i=0,u=t.length;i<u;++i)U(t,String(i))?a.push(v(e,t,r,n,String(i),!0)):a.push("");return o.forEach((function(o){o.match(/^\d+$/)||a.push(v(e,t,r,n,o,!0))})),a}function v(e,t,r,n,o,a){var i,u,s;if(s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},s.get?u=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(u=e.stylize("[Setter]","special")),U(n,o)||(i="["+o+"]"),u||(e.seen.indexOf(s.value)<0?(u=N(r)?d(e,s.value,null):d(e,s.value,r-1),u.indexOf("\n")>-1&&(u=a?u.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n"))):u=e.stylize("[Circular]","special")),M(i)){if(a&&o.match(/^\d+$/))return u;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+u}function b(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return n>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function E(e){return Array.isArray(e)}function w(e){return"boolean"===typeof e}function N(e){return null===e}function S(e){return null==e}function I(e){return"number"===typeof e}function A(e){return"string"===typeof e}function O(e){return"symbol"===typeof e}function M(e){return void 0===e}function R(e){return T(e)&&"[object RegExp]"===L(e)}function T(e){return"object"===typeof e&&null!==e}function x(e){return T(e)&&"[object Date]"===L(e)}function _(e){return T(e)&&("[object Error]"===L(e)||e instanceof Error)}function C(e){return"function"===typeof e}function D(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function L(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!u[e])if(s.test(e)){var r=n.pid;u[e]=function(){var n=t.format.apply(t,arguments);o.error("%s %d: %s",e,r,n)}}else u[e]=function(){};return u[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(646),t.isArray=E,t.isBoolean=w,t.isNull=N,t.isNullOrUndefined=S,t.isNumber=I,t.isString=A,t.isSymbol=O,t.isUndefined=M,t.isRegExp=R,t.types.isRegExp=R,t.isObject=T,t.isDate=x,t.types.isDate=x,t.isError=_,t.types.isNativeError=_,t.isFunction=C,t.isPrimitive=D,t.isBuffer=r(5164);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){o.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=r(2605),t._extend=function(e,t){if(!t||!T(t))return e;var r=Object.keys(t),n=r.length;while(n--)e[r[n]]=t[r[n]];return e};var F="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function q(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!==typeof o)throw new TypeError("The last argument must be of type Function");var a=this,i=function(){return o.apply(a,arguments)};e.apply(this,t).then((function(e){n.nextTick(i.bind(null,null,e))}),(function(e){n.nextTick(B.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(F&&e[F]){var t=e[F];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,F,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],a=0;a<arguments.length;a++)o.push(arguments[a]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(i){r(i)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),F&&Object.defineProperty(t,F,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=F,t.callbackify=q},422:(e,t,r)=>{"use strict";var n=r(9101),o=r(7570),a=r(2245),i=r(926),u=r(853),s=i("Object.prototype.toString"),f=r(2897)(),c="undefined"===typeof globalThis?r.g:globalThis,l=o(),p=i("String.prototype.slice"),h={__proto__:null},d=Object.getPrototypeOf;f&&u&&d&&n(l,(function(e){if("function"===typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=d(t),n=u(r,Symbol.toStringTag);if(!n){var o=d(r);n=u(o,Symbol.toStringTag)}h[e]=a(n.get)}}}));var g=function(e){var t=!1;return n(h,(function(r,n){if(!t)try{var o=r(e);o===n&&(t=o)}catch(a){}})),t},y=r(9677);e.exports=function(e){return!!y(e)&&(f&&Symbol.toStringTag in e?g(e):p(s(e),8,-1))}},3027:(e,t,r)=>{e.exports=r(6640)},2819:(e,t,r)=>{"use strict";var n=r(2903),o=r(2139),a=r(3388),i=r(6531);function u(e,t,r){var o=e.$fetch||self.fetch,a={_request:e,body:e.getBody()},u=e.signal;n.arrayEach("method,headers,signal,mode,cache,credentials,redirect,referrer,referrerPolicy,keepalive,integrity".split(","),(function(t){e[t]&&(a[t]=e[t])})),u&&u.aborted?r("ERR_A"):o(e.getUrl(),a).then((function(r){i.toResponse(r,e).then(t)}))["catch"]((function(e){r()}))}function s(e,t){if(!e.progress&&!e.timeout){if(e.$fetch)return t?o:u;if(n.IS_F)return n.IS_FAC?u:t?o:u}return o}function f(){return n.IS_N?a:n.IS_F?function(e){return s(e,e.signal).apply(this,arguments)}:o}var c=f();e.exports=c},3388:(e,t,r)=>{"use strict";var n=r(9520)["Buffer"],o=r(9798),a=r(3094),i=r(1241),u=r(2903),s=r(9369),f=r(6531);function c(e,t,r){var o,a=!1,f=e.agent,c=e.timeout,p=e.getBody(),h=i.parse(e.getUrl()),d=clearTimeout,g={},y={hostname:h.hostname,port:h.port,path:h.path,method:e.method,headers:g};f&&(y.agent=f),p&&(g["Content-Length"]=n.byteLength(p)),u.headersEach(e.headers,(function(e,t){g[t]=e}));var m=l(h).request(y,(function(i){var u=[],f=0;i.on("data",(function(e){var t=n.isBuffer(e)?e:n.from(e);u.push(t),f+=t.length})),i.on("end",(function(){if(!a){d(o);var r=n.concat(u,f);t(new s(r.toString("utf8"),{status:i.statusCode,statusText:i.statusMessage,headers:i.headers},e))}})),i.on("error",(function(e){d(o),m.aborted||a||r()}))}));m.on("error",(function(e){a||(d(o),r())})),p&&m.write(p),c&&(o=setTimeout((function(){a=!0,m.abort(),t({status:0,body:null})}),c)),m.end()}function l(e){return"https:"===e.protocol?a:o}function p(e,t,r){return u.isFn(e.$http)?e.$http(e,(function(){return c(e,t,r)}),(function(r){f.toResponse(r,e).then(t)}),(function(e){r()})):c(e,t,r)}e.exports=p},9055:(e,t,r)=>{"use strict";var n=r(2903),o=r(6531),a=0,i="undefined"===typeof window?"":window,u=i?i.document:"";function s(e,t,r){var s,c,l=!1,p=e.timeout,h=e.jsonpCallback,d=clearTimeout,g=e.script=u.createElement("script");if(h||(h=e.jsonpCallback="jsonp_xe_"+(new Date).getTime()+"_"+ ++a),n.isFn(e.$jsonp))return e.$jsonp(g,e).then((function(r){o.toResponse({status:200,body:r},e).then(t)}))["catch"]((function(){r()}));s=e.getUrl(),i[h]=function(r){l||(d(c),f(e,h),t({status:200,body:r}))},g.type="text/javascript",g.src=s+(-1===s.indexOf("?")?"?":"&")+e.jsonp+"="+h,g.onerror=function(){l||(d(c),f(e,h),r())},p&&(c=setTimeout((function(){l=!0,f(e,h),t({status:0,body:null})}),p)),u.body.appendChild(g)}function f(e,t,r){var n=e.script,o=u.body;n.parentNode===o&&o.removeChild(n);try{delete i[t]}catch(a){i[t]=r}}e.exports=s},2139:(e,t,r)=>{"use strict";var n=r(2903),o=r(6531);function a(e,t,r){var a,u,s,f,c=!1,p=e.getUrl(),h=e.timeout,d=e.credentials,g=e.$XMLHttpRequest||XMLHttpRequest,y=e.xhr=new g,m=e.progress,v=function(){try{t(o.getResponse(y[n.IS_A?"response":"responseText"],{status:y.status,statusText:y.statusText,headers:l(y)},e))}catch(r){t({status:0,body:null})}c=!0};if("same-origin"===e.mode&&n.isCrossOrigin(p))throw r(),n.createErr("Fetch API cannot load "+p+'. Request mode is "same-origin" but the URL\'s origin is not same as the request origin '+n.getOrigin(e)+".");y._request=e,void 0===y.onload?y.onreadystatechange=function(){4===y.readyState&&v()}:y.onload=v,y.ontimeout=v,y.onerror=function(){r()},e._noA=void 0===y.onabort,y.onabort=function(){c||(c=!0,r("ERR_A"))},m&&(a=m.onUploadProgress,u=m.onDownloadProgress,s=m.autoCompute,f=y.upload,a&&f&&(s?i(f,a,m):f.onprogress=a),u&&(s?i(y,u,m):y.onprogress=u)),y.open(e.method,p,!0),n.headersEach(e.headers,(function(e,t){y.setRequestHeader(t,e)})),h&&(y.timeout=h),n.IS_A&&(y.responseType="blob"),"include"===d?y.withCredentials=!0:"omit"===d&&(y.withCredentials=!1),y.send(e.getBody()),e.$abort&&y.abort()}function i(e,t,r){var o=(new Date).getTime(),a=[],i=n.IS_DP?r._progress:r,u=r.meanSpeed;if(i.value=0,i.time=o,e.onprogress=function(e){var n=(new Date).getTime(),o=i.time,s=i.loaded?i.loaded.value:0,f=e.total,l=e.loaded,p=(l-s)/(n-o)*1e3;e.lengthComputable&&(i.value=Math.round(l/f*100)),i.total=c(f,r),i.loaded=c(l,r),i.speed=c(p,r),i.time=n,i.remaining=Math.ceil((f-l)/p),a.push({total:f,loaded:l,speed:p,evnt:e}),u||t(e)},u)var s,f,l,p,h,d=setInterval((function(){if(i.value<100){if(f=a.length,f){for(h=0,p={},l=0;l<f;l++)p=a[0],h+=p.speed;s=h/f,i.speed=c(s,r),i.remaining=Math.ceil((p.total-p.loaded)/s),a=[],t(p.evnt)}}else clearInterval(d)}),u)}var u=["B","KB","MB","GB","TB"],s=1024,f=u.length;function c(e,t){for(var r="",n=e,o=0;o<f;o++){if(r=u[o],!(n>=s))break;n/=s}return{value:e,size:parseFloat(n.toFixed(t.fixed)),unit:r}}function l(e){var t,r={},o=n.trim(e.getAllResponseHeaders());return o&&n.arrayEach(o.split("\n"),(function(e){t=e.indexOf(":"),r[n.trim(e.slice(0,t))]=n.trim(e.slice(t+1))})),r}e.exports=a},3330:(e,t,r)=>{"use strict";var n=r(2903),o=r(2462),a=r(9400),i=r(4882),u=r(7003),s=r(9369),f=r(2819),c=r(9055),l=r(4781),p=r(6531),h=r(9480),d={ERR_A:"The user aborted a request",ERR_F:"Network request failed"};function g(e){var t=e.headers,r=e.body,o=e.method;r&&"GET"!==o&&"HEAD"!==o&&(n.isFData(r)||t.set("Content-Type",n.isURLSParams(r)||"form-data"===e.bodyType?"application/x-www-form-urlencoded":"application/json; charset=utf-8")),n.isCrossOrigin(e.getUrl())&&t.set("X-Requested-With","XMLHttpRequest")}function y(e){var t=n.assign({},l,{headers:n.assign({},l.headers)},e),r=new u(t);return new Promise((function(e,t){return g(r),h.requests(r).then((function(){(r.jsonp?c:f)(r,(function(n){h.toResolves(r,p.toResponse(n,r),e,t)}),(function(o){h.toRejects(r,n.createErr(d[o||"ERR_F"]),e,t)}))}))}))}y.interceptors=h.interceptors,y.serialize=n.serialize,y.Progress=o,y.AbortController=i,y.headers=a,y.request=u,y.response=s,y.use=function(e){e.install(y)},y.setup=function(e){n.assign(l,e)},e.exports=y},6640:(e,t,r)=>{"use strict";var n=r(3330),o=r(2903);function a(e,t,r){var n=o.assign({method:e},t,r);return n}function i(e){var t={};return o.headersEach(e.headers,(function(e,r){t[r]=e})),t}function u(e){return function(){return n(e.apply(this,arguments))}}function s(e,t,r,n,o){return e?{data:t,status:r,statusText:n,headers:o}:t}function f(e,t){return function(){var r=e.apply(this,arguments);return n(r)["catch"]((function(e){return Promise.reject(s(t,"","failed",e.message||e,{}),this)})).then((function(e){return new Promise((function(r,n){var o=e.ok?r:n;e.text().then((function(e){try{return JSON.parse(e)}catch(t){return e}}))["catch"]((function(e){return""})).then((function(r){o(s(t,r,e.status,e.statusText,i(e)))}))}),this)}))}}function c(e){return f(e,!0)}function l(e){return f(e)}function p(e){return Promise.all(e.map((function(e){return e instanceof Promise?e:o.isObj(e)?n(e):e})))}function h(e){return function(t,r){return a(e,{url:t},r)}}function d(e,t){return function(r,n,i){return a(e,o.assign({url:r,params:n},t),i)}}function g(e){return function(t,r,n){return a(e,{url:t,body:r},n)}}var y=h("HEAD"),m=h("DELETE"),v=d("GET",{jsonp:"callback"}),b=d("GET"),E=g("POST"),w=g("PUT"),N=g("PATCH"),S={doAll:p,ajax:n,fetch:u(h("GET")),fetchGet:u(b),fetchPost:u(E),fetchPut:u(w),fetchDelete:u(m),fetchPatch:u(N),fetchHead:u(y),fetchJsonp:u(v),doGet:c(b),doPost:c(E),doPut:c(w),doDelete:c(m),doPatch:c(N),doHead:c(y),doJsonp:c(v),getJSON:l(b),postJSON:l(E),putJSON:l(w),deleteJSON:l(m),patchJSON:l(N),headJSON:l(y),get:l(b),post:l(E),put:l(w),delete:l(m),patch:l(N),head:l(y),jsonp:l(v)};n.mixin=function(e){o.objectEach(e,(function(e,t){n[t]=o.isFn(e)?function(){var t=e.apply(n.$context,arguments);return n.$context=null,t}:e}))},o.assign(n,S),e.exports=n,e.exports["default"]=n},4781:e=>{"use strict";var t={method:"GET",mode:"cors",cache:"default",credentials:"same-origin",redirect:"follow",bodyType:"json-data",headers:{Accept:"application/json, text/plain, */*"}};e.exports=t},2903:(e,t,r)=>{"use strict";var n=r(7252),o=r(7652),a="undefined",i=encodeURIComponent,u=typeof window===a&&typeof n!==a,s=typeof AbortController!==a&&typeof AbortSignal!==a,f=typeof o===a?"":o,c="";function l(e){return!!e&&e.constructor===Object}function p(e){return!!e&&e.constructor===Array}function h(e,t){for(var r=e.length-1;r>=0;r--)if(t===e[r])return r;return-1}function d(e,t,r){for(var n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n,e)}function g(e,t,r){var n=[];return d(e,(function(e,o){var a=p(e);l(e)||a?n=n.concat(g(e,t+"["+o+"]",a)):n.push(i(t+"["+(r?"":o)+"]")+"="+i(null===e?"":e))})),n}function y(e){return e.origin||(u?"":c.origin||c.protocol+"//"+c.host)}u||(c=location);var m={IS_N:u,IS_F:!u&&!!self.fetch,IS_A:!(typeof Blob===a||typeof FormData===a||typeof FileReader===a),IS_FAC:s,IS_DP:Object.defineProperty&&{}.__defineGetter__,isFData:function(e){return typeof FormData!==a&&e instanceof FormData},isURLSParams:function(e){return typeof URLSearchParams!==a&&e instanceof URLSearchParams},isCrossOrigin:function(e){if(!u){var t=(""+e).match(/(\w+:)\/{2}((.*?)\/|(.*)$)/);if(t&&t.length>2)return t[1]!==c.protocol||t[2].split("/")[0]!==c.host}return!1},isStr:function(e){return"string"===typeof e},isObj:function(e){return e&&"object"===typeof e},isPlainObject:l,isFn:function(e){return"function"===typeof e},createErr:function(e){return new Error(e)},err:f.error?function(e){f.error(e)}:function(){},getOrigin:y,getBaseURL:function(e){if(e.baseURL)return e.baseURL;if(u)return"";var t=c.pathname,r=h(t,"/")+1;return y(e)+(r===t.length?t:t.substring(0,r))},objectEach:d,serialize:function(e){var t,r=[];return d(e,(function(e,n){void 0!==e&&(t=p(e),l(e)||t?r=r.concat(g(e,n,t)):r.push(i(n)+"="+i(null===e?"":e)))})),r.join("&").replace(/%20/g,"+")},assign:Object.assign||function(e){for(var t,r=arguments,n=1,o=r.length;n<o;n++)for(var a in t=r[n],t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e},trim:function(e){return(""+e).replace(/(^\s*)|(\s*$)/g,"")},includes:function(e,t){return h(e,t)>-1},arrayEach:function(e,t,r){for(var n=0,o=e.length;n<o;n++)t.call(r,e[n],n,e)},headersEach:function(e,t){e&&e.forEach&&e.forEach(t)}};e.exports=m},4882:(e,t,r)=>{"use strict";var n=r(2903),o=r(9154),a=[];function i(e){for(var t=0,r=a.length;t<r;t++)if(e===a[t][0])return t;return-1}function u(){this.signal=new o}o.prototype.install=function(e){var t=e.signal;if(t){var r=i(t);r>-1?a[r][1].push(e):a.push([t,[e]])}},u.prototype.abort=function(){var e=i(this.signal);if(e>-1){var t=a[e];n.arrayEach(t[1],(function(e){var r=t[0];e.abort(),n.IS_DP?r._store.aborted=!0:r.aborted=!0})),a.splice(e,1)}},e.exports=u},9154:(e,t,r)=>{"use strict";var n=r(2903);function o(){this.onaborted=null,n.IS_DP?this._store={aborted:!1}:this.aborted=!1}n.IS_DP&&Object.defineProperty(o.prototype,"aborted",{get:function(){return this._store.aborted}}),e.exports=o},9400:(e,t,r)=>{"use strict";var n=r(2903);function o(e){return(""+e).toLowerCase()}function a(e,t){var r=[];return n.objectEach(e,(function(e,n){r.push([n,e,[n,e]][t])})),r}function i(e,t,r){var n=e.$index++>=e.$list.length;return{done:n,value:n?r:t}}function u(e,t){this.$index=0,this.$list=a(e,t),this.next=function(){return i(this,this.$list[this.$index])}}function s(e){var t=this,r=function(e,r){t.set(r,e)};t._d={},n[e instanceof c?"headersEach":"objectEach"](e,r)}var f=s.prototype;f.set=function(e,t){this._d[o(e)]=t},f.get=function(e){var t=o(e);return this.has(t)?this._d[t]:null},f.append=function(e,t){var r=o(e),n=this._d;this.has(r)?n[r]=n[r]+", "+t:n[r]=""+t},f.has=function(e){return this._d.hasOwnProperty(o(e))},f.keys=function(){return new u(this._d,0)},f.values=function(){return new u(this._d,1)},f.entries=function(){return new u(this._d,2)},f["delete"]=function(e){delete this._d[o(e)]},f.forEach=function(e,t){n.objectEach(this._d,e,t)};var c="undefined"===typeof Headers?s:Headers;e.exports=c},6531:(e,t,r)=>{"use strict";var n=r(2903),o=r(9369);function a(e){return e&&"undefined"!==typeof Response&&e.constructor===Response}function i(e){return e&&e.constructor===o}function u(e){return n.isStr(e)?e:JSON.stringify(e)}function s(e,t,r){var a={status:t.status,statusText:t.statusText,headers:t.headers};return e=n.IS_A?e instanceof Blob?e:new Blob([u(e)]):u(e),new o(e,a,r)}function f(e,t){return a(e)?t.validateStatus?e.text().then((function(r){return s(r,e,t)})):Promise.resolve(e):Promise.resolve(i(e)?e:s(e.body,e,t))}var c={getResponse:s,isResponse:i,toResponse:f};e.exports=c},9480:(e,t,r)=>{"use strict";var n=r(2903),o=r(6531),a={resolves:[],rejects:[]},i={resolves:[],rejects:[]};function u(e,t){n.includes(e,t)||e.push(t)}function s(e){return function(t,r){t&&u(e.resolves,t),r&&u(e.rejects,r)}}function f(e){var t=Promise.resolve(e);return n.arrayEach(a.resolves,(function(e){t=t.then((function(t){return new Promise((function(r){e(t,(function(){r(t)}))}))}))["catch"](n.err)})),t}function c(e,t,r){var a=Promise.resolve(r);return n.arrayEach(e,(function(e){a=a.then((function(r){return new Promise((function(n){e(r,(function(e){n(e&&e.body&&e.status?o.toResponse(e,t):r)}),t)}))}))["catch"](n.err)})),a}var l={request:{use:s(a)},response:{use:s(i)}};function p(e,t,r,n){c(i.resolves,e,t).then(r)}function h(e,t,r,n){c(i.rejects,e,t).then((function(e){(o.isResponse(e)?r:n)(e)}))}var d={interceptors:l,requests:f,toResolves:p,toRejects:h};e.exports=d},2462:(e,t,r)=>{"use strict";var n=r(2903);function o(e){Object.assign(this,{autoCompute:!0,fixed:2,meanSpeed:0,onDownloadProgress:null,onUploadProgress:null},e,{_progress:{value:0,total:0,loaded:0}})}n.IS_DP&&n.arrayEach("time,speed,loaded,value,total,remaining".split(","),(function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._progress[e]}})})),e.exports=o},4731:(e,t,r)=>{"use strict";var n=r(2903);function o(e,t,r){this.locked=!1,this._getBody=function(){var t=this;return n.IS_DP?r._response.bodyUsed=!0:r.bodyUsed=!0,new Promise((function(r,o){t.locked?o(n.createErr("body stream already read")):(t.locked=!0,r(e))}))}}e.exports=o},7003:(e,t,r)=>{"use strict";var n=r(2903),o=r(9400);function a(e){n.assign(this,{url:"",body:"",params:"",signal:""},e),this.headers=new o(e.headers),this.method=this.method.toLocaleUpperCase(),this.bodyType=this.bodyType.toLowerCase();var t=this.signal;t&&t.install&&t.install(this)}var i=a.prototype,u=/(\w+:)\/{2}.+/;i.abort=function(){this.xhr&&(this.xhr.abort(),this._noA&&this.xhr.onabort()),this.$abort=!0},i.getUrl=function(){var e,t=this.url,r=this.params,o=n.getOrigin(this),a=this.transformParams,i=n.includes(["no-store","no-cache","reload"],this.cache)?{_t:(new Date).getTime()}:{};return t?(a&&(r=this.params=a(r||{},this)),r=!r||n.isFData(r)||n.isURLSParams(r)?n.serialize(i):n.isStr(r)?r:(this.paramsSerializer||n.serialize)(n.assign(i,r),this),r&&(t+=(-1===t.indexOf("?")?"?":"&")+r),u.test(t)?t:0===t.indexOf("//")?(e=o.match(u),(e?e[1]:n.IS_N?"":location.protocol)+t):0===t.indexOf("/")?o+t:n.getBaseURL(this).replace(/\/$/,"")+"/"+t):t},i.getBody=function(){var e=null,t=this.body,r=this.method,o=this.transformBody,a=this.stringifyBody;if(t){if("GET"===r||"HEAD"===r)throw n.createErr("Request with GET/HEAD method cannot have body");o&&(t=this.body=o(t,this)||t),e=a?a(t,this):n.isURLSParams(t)?t.toString():n.isFData(t)||n.isStr(t)?t:"form-data"===this.bodyType?n.serialize(t):JSON.stringify(t)}return e},e.exports=a},9369:(e,t,r)=>{"use strict";var n=r(2903),o=r(4731),a=r(9400);function i(e){return e.status>=200&&e.status<300}function u(e,t,r){this._body=e,this._request=r;var u=t.status,s=r.validateStatus||i,f=this._response={body:new o(e,r,this),bodyUsed:!1,url:r.url,status:u,statusText:t.statusText,redirected:302===u,headers:new a(t.headers||{}),type:"basic"};n.IS_DP?f.ok=s(this):(n.assign(this,f),this.ok=s(this))}var s=decodeURIComponent,f=u.prototype;function c(e,t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}n.IS_DP&&n.arrayEach("body,bodyUsed,url,headers,status,statusText,ok,redirected,type".split(","),(function(e){Object.defineProperty(f,e,{get:function(){return this._response[e]}})})),f.clone=function(){if(this.bodyUsed)throw n.createErr("Failed to execute 'clone' on 'Response': Response body is already used");return new u(this._body,this,this._request)},f.json=function(){return this.text().then((function(e){return JSON.parse(e)}))},f.text=function(){return this.body._getBody(this)},n.IS_A&&(f.text=function(){var e=this._request;return this.blob().then((function(t){var r=new FileReader,n=c(e,r);return r.readAsText(t),n}))},f.blob=function(){return this.body._getBody(this)},f.arrayBuffer=function(){var e=this._request;return this.blob().then((function(t){var r=new FileReader,n=c(e,r);return r.readAsArrayBuffer(t),n}))},f.formData=function(){return this.text().then((function(e){var t=new FormData;return n.arrayEach(n.trim(e).split("&"),(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(s(n),s(o))}})),t}))}),e.exports=u},7575:(e,t,r)=>{var n=r(8885),o=r(6394);function a(e,t){return n(o(e),o(t))}e.exports=a},5807:(e,t,r)=>{var n=r(2113);function o(e,t,r){var o=0,a=[];return function(){var i=arguments;o++,o<=e&&a.push(i[0]),o>=e&&t.apply(r,[a].concat(n(i)))}}e.exports=o},8046:e=>{function t(e,t,r){if(e)if(e.forEach)e.forEach(t,r);else for(var n=0,o=e.length;n<o;n++)t.call(r,e[n],n,e)}e.exports=t},9449:e=>{function t(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(t===e[r])return r}e.exports=t},6341:e=>{function t(e,t){if(e.lastIndexOf)return e.lastIndexOf(t);for(var r=e.length-1;r>=0;r--)if(t===e[r])return r;return-1}e.exports=t},5826:(e,t,r)=>{var n=r(8046),o=r(8817),a=r(1784),i=r(425),u=Object.assign;function s(e,t,r){for(var a,u=t.length,s=1;s<u;s++)a=t[s],n(o(t[s]),r?function(t){e[t]=i(a[t],r)}:function(t){e[t]=a[t]});return e}var f=function(e){if(e){var t=arguments;if(!0!==e)return u?u.apply(Object,t):s(e,t);if(t.length>1)return e=a(e[1])?[]:{},s(e,t,!0)}return e};e.exports=f},4523:(e,t,r)=>{var n=r(2113);function o(e,t,r){var o=0,a=[];return r=r||this,function(){var i=arguments;o++,o<e&&(a.push(i[0]),t.apply(r,[a].concat(n(i))))}}e.exports=o},3841:(e,t,r)=>{var n=r(2113);function o(e,t){var r=n(arguments,2);return function(){return e.apply(t,n(arguments).concat(r))}}e.exports=o},2246:(e,t,r)=>{var n=r(7252),o=r(7695),a=r(8311),i=r(6260),u=r(5826),s=r(8046);function f(e){try{var t="__xe_t";return e.setItem(t,1),e.removeItem(t),!0}catch(r){return!1}}function c(e){return navigator.userAgent.indexOf(e)>-1}function l(){var e,t,r,l=!1,p={isNode:!1,isMobile:l,isPC:!1,isDoc:!!a};return i||typeof n===o?(r=c("Edge"),t=c("Chrome"),l=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),p.isDoc&&(e=a.body||a.documentElement,s(["webkit","khtml","moz","ms","o"],(function(t){p["-"+t]=!!e[t+"MatchesSelector"]}))),u(p,{edge:r,firefox:c("Firefox"),msie:!r&&p["-ms"],safari:!t&&!r&&c("Safari"),isMobile:l,isPC:!l,isLocalStorage:f(i.localStorage),isSessionStorage:f(i.sessionStorage)})):p.isNode=!0,p}e.exports=l},6132:(e,t,r)=>{var n=r(9390),o=r(9139),a=r(4601),i=r(5338),u={};function s(e){if(e=n(e),u[e])return u[e];var t=e.length,r=e.replace(/([-]+)/g,(function(e,r,n){return n&&n+r.length<t?"-":""}));return t=r.length,r=r.replace(/([A-Z]+)/g,(function(e,r,n){var u=r.length;return r=i(r),n?u>2&&n+u<t?a(o(r,0,1))+o(r,1,u-1)+a(o(r,u-1,u)):a(o(r,0,1))+o(r,1,u):u>1&&n+u<t?o(r,0,u-1)+a(o(r,u-1,u)):r})).replace(/(-[a-zA-Z])/g,(function(e,t){return a(o(t,1,t.length))})),u[e]=r,r}e.exports=s},7466:(e,t,r)=>{var n=r(6146),o=n("ceil");e.exports=o},94:(e,t,r)=>{var n=r(1784);function o(e,t){var r,o=[],a=t>>0||1;if(n(e))if(a>=0&&e.length>a){r=0;while(r<e.length)o.push(e.slice(r,r+a)),r+=a}else o=e.length?[e]:e;return o}e.exports=o},3801:(e,t,r)=>{var n=r(9831),o=r(6162),a=r(8288),i=r(1784),u=r(2320),s=r(5826),f=r(429);function c(e,t,r){if(e){var c,l=arguments.length>1&&(u(t)||!a(t)),p=l?r:t;if(o(e))f(e,l?function(r,n){e[n]=t}:function(t,r){n(e,r)}),p&&s(e,p);else if(i(e)){if(l){c=e.length;while(c>0)c--,e[c]=t}else e.length=0;p&&e.push.apply(e,p)}}return e}e.exports=c},425:(e,t,r)=>{var n=r(8270),o=r(429),a=r(8046);function i(e,t){var r=e.__proto__.constructor;return t?new r(t):new r}function u(e,t){return t?s(e,t):e}function s(e,t){if(e)switch(n.call(e)){case"[object Object]":var r=Object.create(e.__proto__);return o(e,(function(e,n){r[n]=u(e,t)})),r;case"[object Date]":case"[object RegExp]":return i(e,e.valueOf());case"[object Array]":case"[object Arguments]":var s=[];return a(e,(function(e){s.push(u(e,t))})),s;case"[object Set]":var f=i(e);return f.forEach((function(e){f.add(u(e,t))})),f;case"[object Map]":var c=i(e);return c.forEach((function(e,r){c.set(r,u(e,t))})),c}return e}function f(e,t){return e?s(e,t):e}e.exports=f},2018:(e,t,r)=>{var n=r(8368),o=r(6785),a=r(7466),i=r(7887),u=r(8070),s=r(9390),f=r(4898),c=r(7237),l=r(5826);function p(e,t){var r,p,h,d,g,y=l({},n.commafyOptions,t),m=y.digits,v=u(e);return v?(r=(y.ceil?a:y.floor?i:o)(e,m),p=c(m?f(r,m):r).split("."),d=p[0],g=p[1],h=d&&r<0,h&&(d=d.substring(1,d.length))):(r=s(e).replace(/,/g,""),p=r?[r]:[],d=p[0]),p.length?(h?"-":"")+d.replace(new RegExp("(?=(?!(\\b))(.{"+(y.spaceNumber||3)+"})+$)","g"),y.separator||",")+(g?"."+g:""):r}e.exports=p},8541:(e,t,r)=>{var n=r(8368),o=r(8311),a=r(9519),i=r(7163),u=r(1784),s=r(8288),f=r(497),c=r(2240),l=r(5334),p=r(8817),h=r(5826),d=r(8046),g=r(3196),y=r(223),m=r(5016),v=r(991),b=r(2195);function E(e,t){var r=parseFloat(t),n=g(),o=y(n);switch(e){case"y":return y(m(n,r));case"M":return y(v(n,r));case"d":return y(b(n,r));case"h":case"H":return o+60*r*60*1e3;case"m":return o+60*r*1e3;case"s":return o+1e3*r}return o}function w(e){return(f(e)?e:new Date(e)).toUTCString()}function N(e,t,r){if(o){var l,p,g,y,m,v,b=[],N=arguments;return u(e)?b=e:N.length>1?b=[h({name:e,value:t},r)]:s(e)&&(b=[e]),b.length>0?(d(b,(function(e){l=h({},n.cookies,e),g=[],l.name&&(p=l.expires,g.push(i(l.name)+"="+i(s(l.value)?JSON.stringify(l.value):l.value)),p&&(p=isNaN(p)?p.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,(function(e,t,r){return w(E(r,t))})):/^[0-9]{11,13}$/.test(p)||f(p)?w(p):w(E("d",p)),l.expires=p),d(["expires","path","domain","secure"],(function(e){c(l[e])||g.push(l[e]&&"secure"===e?e:e+"="+l[e])}))),o.cookie=g.join("; ")})),!0):(y={},m=o.cookie,m&&d(m.split("; "),(function(e){v=e.indexOf("="),y[a(e.substring(0,v))]=a(e.substring(v+1)||"")})),1===N.length?y[e]:y)}return!1}function S(e){return l(M(),e)}function I(e){return N(e)}function A(e,t,r){return N(e,t,r),N}function O(e,t){N(e,"",h({expires:-1},n.cookies,t))}function M(){return p(N())}function R(){return N()}h(N,{has:S,set:A,setItem:A,get:I,getItem:I,remove:O,removeItem:O,keys:M,getJSON:R}),e.exports=N},9590:(e,t,r)=>{var n=r(1784);function o(e,t,r,o){if(n(e)&&e.copyWithin)return e.copyWithin(t,r,o);var a,i,u=t>>0,s=r>>0,f=e.length,c=arguments.length>3?o>>0:f;if(u<f&&(u=u>=0?u:f+u,u>=0&&(s=s>=0?s:f+s,c=c>=0?c:f+c,s<c)))for(a=0,i=e.slice(s,c);u<f;u++){if(i.length<=a)break;e[u]=i[a++]}return e}e.exports=o},5956:(e,t,r)=>{var n=r(167),o=r(429);function a(e,t,r){var a=n(e,t,r||this);return o(a,(function(e,t){a[t]=e.length})),a}e.exports=a},1667:(e,t,r)=>{"use strict";var n=r(8368),o=r(8046),a=r(6783),i=r(8520),u=r(5826),s=function(){};function f(){o(arguments,(function(e){a(e,(function(e,t){s[t]=i(e)?function(){var t=e.apply(s.$context,arguments);return s.$context=null,t}:e}))}))}function c(e){return u(n,e)}s.VERSION="3.5.11",s.mixin=f,s.setup=c,e.exports=s},615:e=>{function t(e,t,r){var n,o,a=r||{},i=!1,u=!1,s=0,f="boolean"===typeof r,c="leading"in a?a.leading:f,l="trailing"in a?a.trailing:!f,p=function(){u||(i=!0,s=0,e.apply(o,n))},h=function(){!0===c&&(s=0),u||i||!0!==l||p()},d=function(){var e=0!==s;return clearTimeout(s),n=null,o=null,s=0,e},g=function(){i=!1,n=arguments,o=this,0===s?!0===c&&p():clearTimeout(s),s=setTimeout(h,t)};return g.cancel=d,g}e.exports=t},6015:(e,t,r)=>{var n=r(2113);function o(e,t){var r=n(arguments,2),o=this;return setTimeout((function(){e.apply(o,r)}),t)}e.exports=o},741:(e,t,r)=>{var n=r(8817),o=r(2113),a=r(5334),i=r(8046),u=r(5826);function s(e,t){if(e&&t){var r=u.apply(this,[{}].concat(o(arguments,1))),s=n(r);i(n(e),(function(t){a(s,t)&&(e[t]=r[t])}))}return e}e.exports=s},5332:(e,t,r)=>{var n=r(3861),o=r(6394);function a(e,t){return n(o(e),o(t))}e.exports=a},6783:(e,t,r)=>{var n=r(1784),o=r(8046),a=r(429);function i(e,t,r){return e?(n(e)?o:a)(e,t,r):e}e.exports=i},7142:(e,t,r)=>{var n=r(1906),o=r(6783);function a(e,t,r,n,i,u,s,f){var c,l;o(t,(function(o,p){c=i.concat([""+p]),l=u.concat([o]),r.call(n,o,p,t,c,e,l),o&&s&&(c.push(s),a(o,o[s],r,n,c,l,s,f))}))}var i=n(a);e.exports=i},7863:(e,t,r)=>{var n=r(9390);function o(e,t,r){var o=n(e),a=arguments.length;return a>1&&(a>2?o.substring(0,r).indexOf(t)===r-1:o.indexOf(t)===o.length-1)}e.exports=o},5503:(e,t,r)=>{var n=r(8582),o=n("entries",2);e.exports=o},4517:(e,t,r)=>{var n=r(2320),o=r(2240);function a(e){return n(e)||o(e)}e.exports=a},7214:(e,t,r)=>{var n=r(9532),o=r(4631),a=o(n);e.exports=a},6261:(e,t,r)=>{var n=r(84),o=n("every",1,1,!1,!0);e.exports=o},7321:(e,t,r)=>{var n=r(6783);function o(e,t,r){var o=[];if(e&&t){if(e.filter)return e.filter(t,r);n(e,(function(n,a){t.call(r,n,a,e)&&o.push(n)}))}return o}e.exports=o},5624:(e,t,r)=>{var n=r(7142);function o(e,t,r,o){var a=[];return e&&t&&n(e,(function(e,r,n,i,u,s){t.call(o,e,r,n,i,u,s)&&a.push(e)}),r),a}e.exports=o},5293:(e,t,r)=>{var n=r(84),o=n("find",1,3,!0);e.exports=o},9110:(e,t,r)=>{var n=r(2845),o=n((function(e,t,r){for(var n=0,o=e.length;n<o;n++)if(t.call(r,e[n],n,e))return n;return-1}));e.exports=o},8267:(e,t,r)=>{var n=r(84),o=n("",0,2,!0);e.exports=o},8357:(e,t,r)=>{var n=r(1784),o=r(828);function a(e,t,r){if(e){n(e)||(e=o(e));for(var a=e.length-1;a>=0;a--)if(t.call(r,e[a],a,e))return e[a]}}e.exports=a},3141:(e,t,r)=>{var n=r(2845),o=n((function(e,t,r){for(var n=e.length-1;n>=0;n--)if(t.call(r,e[n],n,e))return n;return-1}));e.exports=o},1226:(e,t,r)=>{var n=r(1906);function o(e,t,r,n,a,i,u,s){var f,c,l,p,h,d;if(t)for(c=0,l=t.length;c<l;c++){if(f=t[c],p=a.concat([""+c]),h=i.concat([f]),r.call(n,f,c,t,p,e,h))return{index:c,item:f,path:p,items:t,parent:e,nodes:h};if(u&&f&&(d=o(f,f[u],r,n,p.concat([u]),h,u,s),d))return d}}var a=n(o);e.exports=a},1851:(e,t,r)=>{var n=r(828);function o(e){return n(e)[0]}e.exports=o},1839:(e,t,r)=>{var n=r(1784),o=r(8046);function a(e,t){var r=[];return o(e,(function(e){r=r.concat(n(e)?t?a(e,t):e:[e])})),r}function i(e,t){return n(e)?a(e,t):[]}e.exports=i},7887:(e,t,r)=>{var n=r(6146),o=n("floor");e.exports=o},8738:(e,t,r)=>{var n=r(1784),o=r(3074);function a(e,t,r){if(e)if(n(e)){for(var a=0,i=e.length;a<i;a++)if(!1===t.call(r,e[a],a,e))break}else for(var u in e)if(o(e,u)&&!1===t.call(r,e[u],u,e))break}e.exports=a},9187:(e,t,r)=>{var n=r(6618),o=r(1294),a=r(3074),i=r(2240),u=r(4517);function s(e,t,r){if(u(e))return r;var n=c(e,t);return i(n)?r:n}function f(e,t){var r=t?t.match(n):"";return r?r[1]?e[r[1]]?e[r[1]][r[2]]:void 0:e[r[2]]:e[t]}function c(e,t){if(e){var r,n,i,s=0;if(e[t]||a(e,t))return e[t];if(n=o(t),i=n.length,i)for(r=e;s<i;s++)if(r=f(r,n[s]),u(r))return s===i-1?r:void 0;return r}}e.exports=s},356:(e,t,r)=>{var n=r(1391),o=r(1035),a=r(4386);function i(){if(n){var e=n.pathname,t=a(e,"/")+1;return o()+(t===e.length?e:e.substring(0,t))}return""}e.exports=i},1409:(e,t,r)=>{var n=r(223),o=r(3196),a=r(9348),i=r(2671),u=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function s(e,t){var r,s,f,c,l,p,h={done:!1,time:0};if(e=a(e),t=t?a(t):o(),i(e)&&i(t)&&(r=n(e),s=n(t),r<s))for(c=h.time=s-r,h.done=!0,p=0,l=u.length;p<l;p++)f=u[p],c>=f[1]?p===l-1?h[f[0]]=c||0:(h[f[0]]=Math.floor(c/f[1]),c-=h[f[0]]*f[1]):h[f[0]]=0;return h}e.exports=s},4699:(e,t,r)=>{var n=r(4996),o=r(1456),a=r(1099),i=r(223),u=r(991),s=r(9348),f=r(2671);function c(e,t){return e=s(e),f(e)?Math.floor((i(u(e,t,a))-i(u(e,t,o)))/n)+1:NaN}e.exports=c},8706:(e,t,r)=>{var n=r(5016),o=r(9348),a=r(2671),i=r(8911);function u(e,t){return e=o(e),a(e)?i(n(e,t))?366:365:NaN}e.exports=u},6521:(e,t,r)=>{var n=r(2565),o=n((function(e){return new Date(e.getFullYear(),e.getMonth(),1)}));e.exports=o},9116:(e,t,r)=>{var n=r(1784),o=r(7098),a=r(6783);function i(e){var t=0;return o(e)||n(e)?e.length:(a(e,(function(){t++})),t)}e.exports=i},2709:(e,t,r)=>{var n=r(3615),o=r(497),a=r(1784),i=r(9627),u=r(1068),s=r(2320);function f(e){return s(e)?"null":n(e)?"symbol":o(e)?"date":a(e)?"array":i(e)?"regexp":u(e)?"error":typeof e}e.exports=f},2195:(e,t,r)=>{var n=r(1456),o=r(1099),a=r(6721),i=r(2623),u=r(7971),s=r(223),f=r(9348),c=r(2671);function l(e,t,r){if(e=f(e),c(e)&&!isNaN(t)){if(e.setDate(e.getDate()+a(t)),r===n)return new Date(i(e),u(e),e.getDate());if(r===o)return new Date(s(l(e,1,n))-1)}return e}e.exports=l},991:(e,t,r)=>{var n=r(1456),o=r(1099),a=r(4996),i=r(2623),u=r(223),s=r(7971),f=r(9348),c=r(2671),l=r(8070);function p(e,t,r){var h=t&&!isNaN(t)?t:0;if(e=f(e),c(e)){if(r===n)return new Date(i(e),s(e)+h,1);if(r===o)return new Date(u(p(e,h+1,n))-1);if(l(r)&&e.setDate(r),h){var d=e.getDate();if(e.setMonth(s(e)+h),d!==e.getDate())return e.setDate(1),new Date(u(e)-a)}}return e}e.exports=p},4984:(e,t,r)=>{var n=r(991),o=r(9348),a=r(2671);function i(e){var t=e.getMonth();return t<3?1:t<6?2:t<9?3:4}function u(e,t,r){var u,s=t&&!isNaN(t)?3*t:0;return e=o(e),a(e)?(u=3*(i(e)-1),e.setMonth(u),n(e,s,r)):e}e.exports=u},3393:(e,t,r)=>{var n=r(8368),o=r(4996),a=r(7135),i=r(223),u=r(9348),s=r(2671),f=r(8070);function c(e,t,r,c){if(e=u(e),s(e)){var l=f(r),p=f(c),h=i(e);if(l||p){var d=p?c:n.firstDayOfWeek,g=e.getDay(),y=l?r:g;if(g!==y){var m=0;d>g?m=-(7-d+g):d<g&&(m=d-g),h+=y>d?((0===y?7:y)-d+m)*o:y<d?(7-d+y+m)*o:m*o}}return t&&!isNaN(t)&&(h+=t*a),new Date(h)}return e}e.exports=c},5016:(e,t,r)=>{var n=r(1456),o=r(1099),a=r(2623),i=r(991),u=r(9348),s=r(2671);function f(e,t,r){var f;if(e=u(e),s(e)&&(t&&(f=t&&!isNaN(t)?t:0,e.setFullYear(a(e)+f)),r||!isNaN(r))){if(r===n)return new Date(a(e),0,1);if(r===o)return e.setMonth(11),i(e,0,o);e.setMonth(r)}return e}e.exports=f},3596:(e,t,r)=>{var n=r(4996),o=r(1456),a=r(4431),i=r(5016),u=r(9348),s=r(2671);function f(e){return e=u(e),s(e)?Math.floor((a(e)-a(i(e,0,o)))/n)+1:NaN}e.exports=f},2596:(e,t,r)=>{var n=r(2565),o=n((function(e){return new Date(e.getFullYear(),0,1)}));e.exports=o},167:(e,t,r)=>{var n=r(7077),o=r(8288),a=r(8520),i=r(6347),u=r(6783);function s(e){return function(){return n(e)}}function f(e,t,r){var n,f={};return e&&(t&&o(t)?t=s(t):a(t)||(t=i(t)),u(e,(function(o,a){n=t?t.call(r,o,a,e):o,f[n]?f[n].push(o):f[n]=[o]}))),f}e.exports=f},7449:(e,t,r)=>{var n=r(6618),o=r(1294),a=r(3074);function i(e,t){if(e){if(a(e,t))return!0;var r,i,u,s,f,c,l=o(t),p=0,h=l.length;for(f=e;p<h;p++){if(c=!1,r=l[p],s=r?r.match(n):"",s?(i=s[1],u=s[2],i?f[i]&&a(f[i],u)&&(c=!0,f=f[i][u]):a(f,u)&&(c=!0,f=f[u])):a(f,r)&&(c=!0,f=f[r]),!c)break;if(p===h-1)return!0}}return!1}e.exports=i},3074:e=>{function t(e,t){return!(!e||!e.hasOwnProperty)&&e.hasOwnProperty(t)}e.exports=t},2565:(e,t,r)=>{var n=r(8368),o=r(7135),a=r(8070),i=r(2671),u=r(3393),s=r(223);function f(e){return function(t,r){var f=a(r)?r:n.firstDayOfWeek,c=u(t,0,f,f);if(i(c)){var l=new Date(c.getFullYear(),c.getMonth(),c.getDate()),p=e(c),h=p.getDay();return h>f&&p.setDate(7-h+f+1),h<f&&p.setDate(f-h+1),Math.floor((s(l)-s(p))/o+1)}return NaN}}e.exports=f},8582:(e,t,r)=>{var n=r(6783);function o(e,t){var r=Object[e];return function(e){var o=[];if(e){if(r)return r(e);n(e,t>1?function(t){o.push([""+t,e[t]])}:function(){o.push(arguments[t])})}return o}}e.exports=o},6321:(e,t,r)=>{var n=r(8270);function o(e){return function(t){return"[object "+e+"]"===n.call(t)}}e.exports=o},3376:e=>{function t(e){return function(t){return typeof t===e}}e.exports=t},2821:(e,t,r)=>{var n=r(1784),o=r(7098),a=r(3074);function i(e,t){return function(r,i){if(r){if(r[e])return r[e](i);if(o(r)||n(r))return t(r,i);for(var u in r)if(a(r,u)&&i===r[u])return u}return-1}}e.exports=i},84:(e,t,r)=>{var n=r(3074),o=r(1784);function a(e,t,r,a,i){return function(u,s,f){if(u&&s){if(e&&u[e])return u[e](s,f);if(t&&o(u)){for(var c=0,l=u.length;c<l;c++)if(!!s.call(f,u[c],c,u)===a)return[!0,!1,c,u[c]][r]}else for(var p in u)if(n(u,p)&&!!s.call(f,u[p],p,u)===a)return[!0,!1,p,u[p]][r]}return i}}e.exports=a},6146:(e,t,r)=>{var n=r(8626),o=r(6394),a=r(7237);function i(e){return function(t,r){var i=o(t),u=i;if(i){r>>=0;var s=a(i),f=s.split("."),c=f[0],l=f[1]||"",p=l.substring(0,r+1),h=c+(p?"."+p:"");if(r>=l.length)return o(h);if(h=i,r>0){var d=Math.pow(10,r);u=Math[e](n(h,d))/d}else u=Math[e](h)}return u}}e.exports=i},4271:(e,t,r)=>{var n=r(8520),o=r(4517),a=r(9187),i=r(8046);function u(e){return function(t,r){var u,s;return t&&t.length?(i(t,(function(i,f){r&&(i=n(r)?r(i,f,t):a(i,r)),o(i)||!o(u)&&!e(u,i)||(s=f,u=i)})),t[s]):u}}e.exports=u},2061:(e,t,r)=>{var n=r(8520),o=r(1784),a=r(6783),i=r(9110);function u(e,t){return function(r,u){var s,f,c={},l=[],p=this,h=arguments,d=h.length;if(!n(u)){for(f=1;f<d;f++)s=h[f],l.push.apply(l,o(s)?s:[s]);u=0}return a(r,(function(n,o){((u?u.call(p,n,o,r):i(l,(function(e){return e===o}))>-1)?e:t)&&(c[o]=n)})),c}}e.exports=u},3656:e=>{function t(e){return function(t){if(t){var r=e(t);if(!isNaN(r))return r}return 0}}e.exports=t},1906:e=>{function t(e){return function(t,r,n,o){var a=n||{},i=a.children||"children";return e(null,t,r,o,[],[],i,a)}}e.exports=t},2845:(e,t,r)=>{var n=r(8520),o=r(7098),a=r(1784),i=r(3074);function u(e){return function(t,r,u){if(t&&n(r)){if(a(t)||o(t))return e(t,r,u);for(var s in t)if(i(t,s)&&r.call(u,t[s],s,t))return s}return-1}}e.exports=u},3296:e=>{function t(e,t){return e===t}e.exports=t},9831:e=>{function t(e,t){try{delete e[t]}catch(r){e[t]=void 0}}e.exports=t},3584:(e,t,r)=>{var n=r(8070),o=r(1784),a=r(7098),i=r(9627),u=r(497),s=r(7604),f=r(2240),c=r(8817),l=r(6261);function p(e,t,r,h,d,g,y){if(e===t)return!0;if(e&&t&&!n(e)&&!n(t)&&!a(e)&&!a(t)){if(i(e))return r(""+e,""+t,d,g,y);if(u(e)||s(e))return r(+e,+t,d,g,y);var m,v,b,E=o(e),w=o(t);if(E||w?E&&w:e.constructor===t.constructor)return v=c(e),b=c(t),h&&(m=h(e,t,d)),v.length===b.length&&(f(m)?l(v,(function(n,o){return n===b[o]&&p(e[n],t[b[o]],r,h,E||w?o:n,e,t)})):!!m)}return r(e,t,d,g,y)}e.exports=p},4631:(e,t,r)=>{var n=r(9390),o=r(8817);function a(e){var t=new RegExp("(?:"+o(e).join("|")+")","g");return function(r){return n(r).replace(t,(function(t){return e[t]}))}}e.exports=a},2623:e=>{function t(e){return e.getFullYear()}e.exports=t},7971:e=>{function t(e){return e.getMonth()}e.exports=t},223:e=>{function t(e){return e.getTime()}e.exports=t},1294:e=>{function t(e){return e?e.splice&&e.join?e:(""+e).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}e.exports=t},1035:(e,t,r)=>{var n=r(1391);function o(){return n?n.origin||n.protocol+"//"+n.host:""}e.exports=o},359:e=>{function t(e){return Date.UTC(e.y,e.M||0,e.d||1,e.H||0,e.m||0,e.s||0,e.S||0)}e.exports=t},6570:(e,t,r)=>{var n=r(2623),o=r(7971);function a(e){return new Date(n(e),o(e),e.getDate())}e.exports=a},4431:(e,t,r)=>{var n=r(223),o=r(6570);function a(e){return n(o(e))}e.exports=a},8626:(e,t,r)=>{var n=r(6999),o=r(7237);function a(e,t){var r=o(e),a=o(t);return parseInt(r.replace(".",""))*parseInt(a.replace(".",""))/Math.pow(10,n(r)+n(a))}e.exports=a},3196:e=>{function t(){return new Date}e.exports=t},8885:(e,t,r)=>{var n=r(6999),o=r(7237),a=r(71);function i(e,t){var r=o(e),i=o(t),u=Math.pow(10,Math.max(n(r),n(i)));return(a(e,u)+a(t,u))/u}e.exports=i},6999:e=>{function t(e){return(e.split(".")[1]||"").length}e.exports=t},3861:(e,t,r)=>{var n=r(6999),o=r(7237),a=r(71);function i(e,t){var r=o(e),i=o(t),u=n(r),s=n(i),f=s-u,c=f<0,l=Math.pow(10,c?Math.abs(f):f);return a(r.replace(".","")/i.replace(".",""),c?1/l:l)}e.exports=i},1507:e=>{function t(e,t){return e.substring(0,t)+"."+e.substring(t,e.length)}e.exports=t},5338:e=>{function t(e){return e.toLowerCase()}e.exports=t},3569:(e,t,r)=>{var n=r(6721);function o(e,t){if(e.repeat)return e.repeat(t);var r=isNaN(t)?[]:new Array(n(t));return r.join(e)+(r.length>0?e:"")}e.exports=o},9139:e=>{function t(e,t,r){return e.substring(t,r)}e.exports=t},4601:e=>{function t(e){return e.toUpperCase()}e.exports=t},2294:(e,t,r)=>{var n=r(1784),o=r(5334);function a(e,t){var r,a=0;if(n(e)&&n(t)){for(r=t.length;a<r;a++)if(!o(e,t[a]))return!1;return!0}return o(e,t)}e.exports=a},5334:(e,t,r)=>{var n=r(3074);function o(e,t){if(e){if(e.includes)return e.includes(t);for(var r in e)if(n(e,r)&&t===e[r])return!0}return!1}e.exports=o},4108:(e,t,r)=>{"use strict";var n=r(1667),o=r(5826),a=r(429),i=r(2133),u=r(9340),s=r(6130),f=r(9780),c=r(2889),l=r(6261),p=r(2294),h=r(8046),d=r(720),g=r(3631),y=r(6184),m=r(293),v=r(5374),b=r(1375),E=r(616),w=r(8257),N=r(2113),S=r(7321),I=r(8267),A=r(5334),O=r(5293),M=r(8357),R=r(117),T=r(9590),x=r(94),_=r(6046),C=r(5688),D=r(4163),L=r(1839),P=r(1650),j=r(6089),k=r(4689),U=r(902),F=r(1226),B=r(7142),q=r(5),V=r(5624),G=r(2478),$=r(9449),H=r(6341),Y=r(3074),W=r(1784),X=r(2320),z=r(4072),K=r(2240),Q=r(8520),Z=r(8288),J=r(7098),ee=r(6162),te=r(8911),re=r(497),ne=r(4517),oe=r(6783),ae=r(8738),ie=r(5964),ue=r(6645),se=r(4386),fe=r(8817),ce=r(828),le=r(425),pe=r(9116),he=r(3562),de=r(5232),ge=r(3801),ye=r(6174),me=r(8615),ve=r(1015),be=r(7604),Ee=r(8070),we=r(9627),Ne=r(1068),Se=r(6868),Ie=r(7077),Ae=r(3615),Oe=r(5383),Me=r(4150),Re=r(7072),Te=r(8736),xe=r(4956),_e=r(8308),Ce=r(721),De=r(6007),Le=r(1691),Pe=r(6349),je=r(3191),ke=r(9555),Ue=r(2709),Fe=r(47),Be=r(9110),qe=r(3141),Ve=r(2506),Ge=r(1856),$e=r(5503),He=r(4796),Ye=r(3779),We=r(1851),Xe=r(4567),ze=r(7449),Ke=r(9187),Qe=r(5665),Ze=r(167),Je=r(5956),et=r(9049),tt=r(741),rt=r(4320),nt=r(4707),ot=r(2092),at=r(2018),it=r(6785),ut=r(7466),st=r(7887),ft=r(4898),ct=r(9120),lt=r(6394),pt=r(7237),ht=r(7575),dt=r(9350),gt=r(71),yt=r(5332),mt=r(2134),vt=r(6832),bt=r(5016),Et=r(4984),wt=r(991),Nt=r(2195),St=r(9348),It=r(7207),At=r(9356),Ot=r(4531),Mt=r(2671),Rt=r(1744),Tt=r(3393),xt=r(3596),_t=r(2596),Ct=r(6521),Dt=r(8706),Lt=r(4699),Pt=r(1409),jt=r(3886),kt=r(3591),Ut=r(3015),Ft=r(163),Bt=r(1876),qt=r(4575),Vt=r(7214),Gt=r(660),$t=r(6132),Ht=r(1232),Yt=r(5983),Wt=r(7863),Xt=r(1790),zt=r(1362),Kt=r(9390),Qt=r(2359),Zt=r(6347),Jt=r(3841),er=r(3742),tr=r(5807),rr=r(4523),nr=r(9662),or=r(615),ar=r(6015),ir=r(4992),ur=r(3632),sr=r(6422),fr=r(356),cr=r(6379),lr=r(8541),pr=r(2246);o(n,{assign:o,objectEach:a,lastObjectEach:i,objectMap:u,merge:s,uniq:g,union:y,sortBy:v,orderBy:b,shuffle:E,sample:w,some:c,every:l,slice:N,filter:S,find:O,findLast:M,findKey:I,includes:A,arrayIndexOf:$,arrayLastIndexOf:H,map:f,reduce:R,copyWithin:T,chunk:x,zip:_,unzip:C,zipObject:D,flatten:L,toArray:m,includeArrays:p,pluck:P,invoke:j,arrayEach:h,lastArrayEach:d,toArrayTree:k,toTreeArray:U,findTree:F,eachTree:B,mapTree:q,filterTree:V,searchTree:G,hasOwnProp:Y,eqNull:ne,isNaN:z,isFinite:ye,isUndefined:K,isArray:W,isFloat:me,isInteger:ve,isFunction:Q,isBoolean:be,isString:J,isNumber:Ee,isRegExp:we,isObject:Z,isPlainObject:ee,isDate:re,isError:Ne,isTypeError:Se,isEmpty:Ie,isNull:X,isSymbol:Ae,isArguments:Oe,isElement:Me,isDocument:Re,isWindow:Te,isFormData:xe,isMap:_e,isWeakMap:Ce,isSet:De,isWeakSet:Le,isLeapYear:te,isMatch:Pe,isEqual:je,isEqualWith:ke,getType:Ue,uniqueId:Fe,getSize:pe,indexOf:ue,lastIndexOf:se,findIndexOf:Be,findLastIndexOf:qe,toStringJSON:Ve,toJSONString:Ge,keys:fe,values:ce,entries:$e,pick:He,omit:Ye,first:We,last:Xe,each:oe,forOf:ae,lastForOf:ie,lastEach:he,has:ze,get:Ke,set:Qe,groupBy:Ze,countBy:Je,clone:le,clear:ge,remove:de,range:et,destructuring:tt,random:rt,min:ot,max:nt,commafy:at,round:it,ceil:ut,floor:st,toFixed:ft,toNumber:lt,toNumberString:pt,toInteger:ct,add:ht,subtract:dt,multiply:gt,divide:yt,sum:mt,mean:vt,now:At,timestamp:Ot,isValidDate:Mt,isDateSame:Rt,toStringDate:St,toDateString:It,getWhatYear:bt,getWhatQuarter:Et,getWhatMonth:wt,getWhatWeek:Tt,getWhatDay:Nt,getYearDay:xt,getYearWeek:_t,getMonthWeek:Ct,getDayOfYear:Dt,getDayOfMonth:Lt,getDateDiff:Pt,trim:Ft,trimLeft:qt,trimRight:Bt,escape:Vt,unescape:Gt,camelCase:$t,kebabCase:Ht,repeat:Ut,padStart:kt,padEnd:jt,startsWith:Yt,endsWith:Wt,template:Xt,toFormatString:zt,toString:Kt,toValueString:Kt,noop:Qt,property:Zt,bind:Jt,once:er,after:tr,before:rr,throttle:nr,debounce:or,delay:ar,unserialize:ir,serialize:ur,parseUrl:sr,getBaseURL:fr,locat:cr,browse:pr,cookie:lr}),e.exports=n},6645:(e,t,r)=>{var n=r(2821),o=r(9449),a=n("indexOf",o);e.exports=a},6089:(e,t,r)=>{var n=r(9780),o=r(1784);function a(e,t){var r=0,n=t.length;while(e&&r<n)e=e[t[r++]];return n&&e?e:0}function i(e,t){for(var r,i=arguments,u=[],s=[],f=2,c=i.length;f<c;f++)u.push(i[f]);if(o(t)){for(c=t.length-1,f=0;f<c;f++)s.push(t[f]);t=t[c]}return n(e,(function(e){if(s.length&&(e=a(e,s)),r=e[t]||t,r&&r.apply)return r.apply(e,u)}))}e.exports=i},5383:(e,t,r)=>{var n=r(6321),o=n("Arguments");e.exports=o},1784:(e,t,r)=>{var n=r(6321),o=Array.isArray||n("Array");e.exports=o},7604:(e,t,r)=>{var n=r(3376),o=n("boolean");e.exports=o},497:(e,t,r)=>{var n=r(6321),o=n("Date");e.exports=o},1744:(e,t,r)=>{var n=r(7207);function o(e,t,r){return!(!e||!t)&&(e=n(e,r),"Invalid Date"!==e&&e===n(t,r))}e.exports=o},7072:(e,t,r)=>{var n=r(8311);function o(e){return!(!e||!n||9!==e.nodeType)}e.exports=o},4150:(e,t,r)=>{var n=r(7098),o=r(8070);function a(e){return!!(e&&n(e.nodeName)&&o(e.nodeType))}e.exports=a},7077:e=>{function t(e){for(var t in e)return!1;return!0}e.exports=t},3191:(e,t,r)=>{var n=r(3584),o=r(3296);function a(e,t){return n(e,t,o)}e.exports=a},9555:(e,t,r)=>{var n=r(3584),o=r(3296),a=r(8520),i=r(2240);function u(e,t,r){return a(r)?n(e,t,(function(e,t,n,a,u){var s=r(e,t,n,a,u);return i(s)?o(e,t):!!s}),r):n(e,t,o)}e.exports=u},1068:(e,t,r)=>{var n=r(6321),o=n("Error");e.exports=o},6174:(e,t,r)=>{var n=r(8070);function o(e){return n(e)&&isFinite(e)}e.exports=o},8615:(e,t,r)=>{var n=r(1784),o=r(1015),a=r(2320);function i(e){return!a(e)&&!isNaN(e)&&!n(e)&&!o(e)}e.exports=i},4956:(e,t,r)=>{var n=r(7695),o=typeof FormData!==n;function a(e){return o&&e instanceof FormData}e.exports=a},8520:(e,t,r)=>{var n=r(3376),o=n("function");e.exports=o},1015:(e,t,r)=>{var n=r(1784),o=r(2320),a=function(e){return!o(e)&&!isNaN(e)&&!n(e)&&e%1===0};e.exports=a},8911:(e,t,r)=>{var n=r(497),o=r(9348),a=r(3196);function i(e){var t,r=e?o(e):a();return!!n(r)&&(t=r.getFullYear(),t%4===0&&(t%100!==0||t%400===0))}e.exports=i},8308:(e,t,r)=>{var n=r(7695),o=typeof Map!==n;function a(e){return o&&e instanceof Map}e.exports=a},6349:(e,t,r)=>{var n=r(8817),o=r(9110),a=r(3191),i=r(2889),u=r(2294);function s(e,t){var r=n(e),s=n(t);return!s.length||(u(r,s)?i(s,(function(n){return o(r,(function(r){return r===n&&a(e[r],t[n])}))>-1})):a(e,t))}e.exports=s},4072:(e,t,r)=>{var n=r(8070);function o(e){return n(e)&&isNaN(e)}e.exports=o},2320:e=>{function t(e){return null===e}e.exports=t},8070:(e,t,r)=>{var n=r(3376),o=n("number");e.exports=o},8288:(e,t,r)=>{var n=r(3376),o=n("object");e.exports=o},6162:e=>{function t(e){return!!e&&e.constructor===Object}e.exports=t},9627:(e,t,r)=>{var n=r(6321),o=n("RegExp");e.exports=o},6007:(e,t,r)=>{var n=r(7695),o=typeof Set!==n;function a(e){return o&&e instanceof Set}e.exports=a},7098:(e,t,r)=>{var n=r(3376),o=n("string");e.exports=o},3615:(e,t,r)=>{var n=r(7695),o=typeof Symbol!==n;function a(e){return o&&Symbol.isSymbol?Symbol.isSymbol(e):"symbol"===typeof e}e.exports=a},6868:e=>{function t(e){return!!e&&e.constructor===TypeError}e.exports=t},2240:(e,t,r)=>{var n=r(7695),o=r(3376),a=o(n);e.exports=a},2671:(e,t,r)=>{var n=r(497),o=r(223);function a(e){return n(e)&&!isNaN(o(e))}e.exports=a},721:(e,t,r)=>{var n=r(7695),o=typeof WeakMap!==n;function a(e){return o&&e instanceof WeakMap}e.exports=a},1691:(e,t,r)=>{var n=r(7695),o=typeof WeakSet!==n;function a(e){return o&&e instanceof WeakSet}e.exports=a},8736:(e,t,r)=>{var n=r(6260);function o(e){return n&&!(!e||e!==e.window)}e.exports=o},1232:(e,t,r)=>{var n=r(9390),o=r(9139),a=r(5338),i={};function u(e){if(e=n(e),i[e])return i[e];if(/^[A-Z]+$/.test(e))return a(e);var t=e.replace(/^([a-z])([A-Z]+)([a-z]+)$/,(function(e,t,r,n){var i=r.length;return i>1?t+"-"+a(o(r,0,i-1))+"-"+a(o(r,i-1,i))+n:a(t+"-"+r+n)})).replace(/^([A-Z]+)([a-z]+)?$/,(function(e,t,r){var n=t.length;return a(o(t,0,n-1)+"-"+o(t,n-1,n)+(r||""))})).replace(/([a-z]?)([A-Z]+)([a-z]?)/g,(function(e,t,r,n,i){var u=r.length;return u>1&&(t&&(t+="-"),n)?(t||"")+a(o(r,0,u-1))+"-"+a(o(r,u-1,u))+n:(t||"")+(i?"-":"")+a(r)+(n||"")}));return t=t.replace(/([-]+)/g,(function(e,r,n){return n&&n+r.length<t.length?"-":""})),i[e]=t,t}e.exports=u},8817:(e,t,r)=>{var n=r(8582),o=n("keys",1);e.exports=o},4567:(e,t,r)=>{var n=r(828);function o(e){var t=n(e);return t[t.length-1]}e.exports=o},720:e=>{function t(e,t,r){for(var n=e.length-1;n>=0;n--)t.call(r,e[n],n,e)}e.exports=t},3562:(e,t,r)=>{var n=r(1784),o=r(720),a=r(2133);function i(e,t,r){return e?(n(e)?o:a)(e,t,r):e}e.exports=i},5964:(e,t,r)=>{var n=r(1784),o=r(3074);function a(e,t,r){var a,i;if(e)if(n(e)){for(a=e.length-1;a>=0;a--)if(!1===t.call(r,e[a],a,e))break}else for(i=o(e),a=i.length-1;a>=0;a--)if(!1===t.call(r,e[i[a]],i[a],e))break}e.exports=a},4386:(e,t,r)=>{var n=r(2821),o=r(6341),a=n("lastIndexOf",o);e.exports=a},2133:(e,t,r)=>{var n=r(720),o=r(8817);function a(e,t,r){n(o(e),(function(n){t.call(r,e[n],n,e)}))}e.exports=a},6379:(e,t,r)=>{var n=r(1391),o=r(6422);function a(){return n?o(n.href):{}}e.exports=a},9780:(e,t,r)=>{var n=r(6783);function o(e,t,r){var o=[];if(e&&arguments.length>1){if(e.map)return e.map(t,r);n(e,(function(){o.push(t.apply(r,arguments))}))}return o}e.exports=o},5:(e,t,r)=>{var n=r(1906),o=r(9780);function a(e,t,r,n,i,u,s,f){var c,l,p,h=f.mapChildren||s;return o(t,(function(o,d){return c=i.concat([""+d]),l=u.concat([o]),p=r.call(n,o,d,t,c,e,l),p&&o&&s&&o[s]&&(p[h]=a(o,o[s],r,n,c,l,s,f)),p}))}var i=n(a);e.exports=i},4707:(e,t,r)=>{var n=r(4271),o=n((function(e,t){return e<t}));e.exports=o},6832:(e,t,r)=>{var n=r(3861),o=r(9116),a=r(2134);function i(e,t,r){return n(a(e,t,r),o(e))}e.exports=i},6130:(e,t,r)=>{var n=r(1784),o=r(6162),a=r(6783);function i(e,t){return o(e)&&o(t)||n(e)&&n(t)?(a(t,(function(t,r){e[r]=i(e[r],t)})),e):t}var u=function(e){e||(e={});for(var t,r=arguments,n=r.length,o=1;o<n;o++)t=r[o],t&&i(e,t);return e};e.exports=u},2092:(e,t,r)=>{var n=r(4271),o=n((function(e,t){return e>t}));e.exports=o},71:(e,t,r)=>{var n=r(8626),o=r(6394);function a(e,t){var r=o(e),a=o(t);return n(r,a)}e.exports=a},2359:e=>{function t(){}e.exports=t},9356:(e,t,r)=>{var n=r(223),o=r(3196),a=Date.now||function(){return n(o())};e.exports=a},429:(e,t,r)=>{var n=r(3074);function o(e,t,r){if(e)for(var o in e)n(e,o)&&t.call(r,e[o],o,e)}e.exports=o},9340:(e,t,r)=>{var n=r(6783),o=r(8520),a=r(6347);function i(e,t,r){var i={};if(e){if(!t)return e;o(t)||(t=a(t)),n(e,(function(n,o){i[o]=t.call(r,n,o,e)}))}return i}e.exports=i},3779:(e,t,r)=>{var n=r(2061),o=n(0,1);e.exports=o},3742:(e,t,r)=>{var n=r(2113);function o(e,t){var r=!1,o=null,a=n(arguments,2);return function(){return r||(o=e.apply(t,n(arguments).concat(a)),r=!0),o}}e.exports=o},1375:(e,t,r)=>{var n=r(8046),o=r(293),a=r(9780),i=r(1784),u=r(8520),s=r(6162),f=r(2240),c=r(2320),l=r(4517),p=r(9187),h=r(6347),d="asc",g="desc";function y(e,t){return f(e)?1:c(e)?f(t)?-1:1:e&&e.localeCompare?e.localeCompare(t):e>t?1:-1}function m(e,t,r){return function(n,o){var a=n[e],i=o[e];return a===i?r?r(n,o):0:t.order===g?y(i,a):y(a,i)}}function v(e,t,r,o){var a=[];return r=i(r)?r:[r],n(r,(function(r,f){if(r){var c,l=r;i(r)?(l=r[0],c=r[1]):s(r)&&(l=r.field,c=r.order),a.push({field:l,order:c||d}),n(t,u(l)?function(t,r){t[f]=l.call(o,t.data,r,e)}:function(e){e[f]=l?p(e.data,l):e.data})}})),a}function b(e,t,r){if(e){if(l(t))return o(e).sort(y);var n,i=a(e,(function(e){return{data:e}})),u=v(e,i,t,r),s=u.length-1;while(s>=0)n=m(s,u[s],n),s--;return n&&(i=i.sort(n)),a(i,h("data"))}return[]}e.exports=b},3886:(e,t,r)=>{var n=r(9390),o=r(2240),a=r(3569);function i(e,t,r){var i=n(e);return t>>=0,r=o(r)?" ":""+r,i.padEnd?i.padEnd(t,r):t>i.length?(t-=i.length,t>r.length&&(r+=a(r,t/r.length)),i+r.slice(0,t)):i}e.exports=i},3591:(e,t,r)=>{var n=r(9390),o=r(2240),a=r(3569);function i(e,t,r){var i=n(e);return t>>=0,r=o(r)?" ":""+r,i.padStart?i.padStart(t,r):t>i.length?(t-=i.length,t>r.length&&(r+=a(r,t/r.length)),r.slice(0,t)+i):i}e.exports=i},6422:(e,t,r)=>{var n=r(1391),o=r(4992),a=r(1035);function i(e){return o(e.split("?")[1]||"")}function u(e){var t,r,o,u,s=""+e;return 0===s.indexOf("//")?s=(n?n.protocol:"")+s:0===s.indexOf("/")&&(s=a()+s),o=s.replace(/#.*/,"").match(/(\?.*)/),u={href:s,hash:"",host:"",hostname:"",protocol:"",port:"",search:o&&o[1]&&o[1].length>1?o[1]:""},u.path=s.replace(/^([a-z0-9.+-]*:)\/\//,(function(e,t){return u.protocol=t,""})).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,(function(e,t,n){return r=n||"",u.port=r.replace(":",""),u.hostname=t,u.host=t+r,"/"})).replace(/(#.*)/,(function(e,t){return u.hash=t.length>1?t:"",""})),t=u.hash.match(/#((.*)\?|(.*))/),u.pathname=u.path.replace(/(\?|#.*).*/,""),u.origin=u.protocol+"//"+u.host,u.hashKey=t&&(t[2]||t[1])||"",u.hashQuery=i(u.hash),u.searchQuery=i(u.search),u}e.exports=u},4796:(e,t,r)=>{var n=r(2061),o=n(1,0);e.exports=o},1650:(e,t,r)=>{var n=r(9780),o=r(6347);function a(e,t){return n(e,o(t))}e.exports=a},6347:(e,t,r)=>{var n=r(2320);function o(e,t){return function(r){return n(r)?t:r[e]}}e.exports=o},4320:e=>{function t(e,t){return e>=t?e:(e>>=0)+Math.round(Math.random()*((t||9)-e))}e.exports=t},9049:e=>{function t(e,t,r){var n,o,a=[],i=arguments;if(i.length<2&&(t=i[0],e=0),n=e>>0,o=t>>0,n<t)for(r=r>>0||1;n<o;n+=r)a.push(n);return a}e.exports=t},117:(e,t,r)=>{var n=r(8817);function o(e,t,r){if(e){var o,a,i=0,u=null,s=r,f=arguments.length>2,c=n(e);if(e.length&&e.reduce)return a=function(){return t.apply(u,arguments)},f?e.reduce(a,s):e.reduce(a);for(f&&(i=1,s=e[c[0]]),o=c.length;i<o;i++)s=t.call(u,s,e[c[i]],i,e);return s}}e.exports=o},5232:(e,t,r)=>{var n=r(9831),o=r(8520),a=r(1784),i=r(6783),u=r(8046),s=r(3562),f=r(3801),c=r(4517);function l(e){return function(t,r){return r===e}}function p(e,t,r){if(e){if(!c(t)){var p=[],h=[];return o(t)||(t=l(t)),i(e,(function(e,n,o){t.call(r,e,n,o)&&p.push(n)})),a(e)?s(p,(function(t,r){h.push(e[t]),e.splice(t,1)})):(h={},u(p,(function(t){h[t]=e[t],n(e,t)}))),h}return f(e)}return e}e.exports=p},3015:(e,t,r)=>{var n=r(9390),o=r(3569);function a(e,t){return o(n(e),t)}e.exports=a},6785:(e,t,r)=>{var n=r(6146),o=n("round");e.exports=o},8257:(e,t,r)=>{var n=r(616);function o(e,t){var r=n(e);return arguments.length<=1?r[0]:(t<r.length&&(r.length=t||0),r)}e.exports=o},2478:(e,t,r)=>{var n=r(1906),o=r(8046),a=r(5826);function i(e,t,r,n,u,s,f,c,l){var p,h,d,g,y,m=[],v=l.original,b=l.data,E=l.mapChildren||c;return o(r,(function(o,w){p=s.concat([""+w]),h=f.concat([o]),g=e||n.call(u,o,w,r,p,t,h),y=c&&o[c],g||y?(v?d=o:(d=a({},o),b&&(d[b]=o)),d[E]=i(g,o,o[c],n,u,p,h,c,l),(g||d[E].length)&&m.push(d)):g&&m.push(d)})),m}var u=n((function(e,t,r,n,o,a,u,s){return i(0,e,t,r,n,o,a,u,s)}));e.exports=u},3632:(e,t,r)=>{var n=r(7163),o=r(6783),a=r(1784),i=r(2320),u=r(2240),s=r(6162);function f(e,t,r){var u,c=[];return o(e,(function(e,o){u=a(e),s(e)||u?c=c.concat(f(e,t+"["+o+"]",u)):c.push(n(t+"["+(r?"":o)+"]")+"="+n(i(e)?"":e))})),c}function c(e){var t,r=[];return o(e,(function(e,o){u(e)||(t=a(e),s(e)||t?r=r.concat(f(e,o,t)):r.push(n(o)+"="+n(i(e)?"":e)))})),r.join("&").replace(/%20/g,"+")}e.exports=c},5665:(e,t,r)=>{var n=r(6721),o=r(1294),a=r(3074),i=/(.+)?\[(\d+)\]$/;function u(e,t,r,o,a){if(!e[t]){var u,s,f=t?t.match(i):null;if(r)s=a;else{var c=o?o.match(i):null;s=c&&!c[1]?new Array(n(c[2])+1):{}}return f?f[1]?(u=n(f[2]),e[f[1]]?r?e[f[1]][u]=s:e[f[1]][u]?s=e[f[1]][u]:e[f[1]][u]=s:(e[f[1]]=new Array(u+1),e[f[1]][u]=s)):e[f[2]]=s:e[t]=s,s}return r&&(e[t]=a),e[t]}function s(e,t,r){if(e)if(!e[t]&&!a(e,t)||f(t)){for(var n=e,i=o(t),s=i.length,c=0;c<s;c++)if(!f(i[c])){var l=c===s-1;n=u(n,i[c],l,l?null:i[c+1],r)}}else e[t]=r;return e}function f(e){return"__proto__"===e||"constructor"===e||"prototype"===e}e.exports=s},8368:e=>{"use strict";var t={cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};e.exports=t},616:(e,t,r)=>{var n=r(4320),o=r(828);function a(e){for(var t,r=[],a=o(e),i=a.length-1;i>=0;i--)t=i>0?n(0,i):0,r.push(a[t]),a.splice(t,1);return r}e.exports=a},2113:(e,t,r)=>{var n=r(6394);function o(e,t,r){var o=[],a=arguments.length;if(e){if(t=a>=2?n(t):0,r=a>=3?n(r):e.length,e.slice)return e.slice(t,r);for(;t<r;t++)o.push(e[t])}return o}e.exports=o},2889:(e,t,r)=>{var n=r(84),o=n("some",1,0,!0,!1);e.exports=o},5374:(e,t,r)=>{var n=r(1375),o=n;e.exports=o},5983:(e,t,r)=>{var n=r(9390);function o(e,t,r){var o=n(e);return 0===(1===arguments.length?o:o.substring(r)).indexOf(t)}e.exports=o},4996:e=>{var t=864e5;e.exports=t},9519:e=>{var t=decodeURIComponent;e.exports=t},8311:(e,t,r)=>{var n=r(7695),o=typeof document===n?0:document;e.exports=o},7163:e=>{var t=encodeURIComponent;e.exports=t},9532:e=>{var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};e.exports=t},6618:e=>{var t=/(.+)?\[(\d+)\]$/;e.exports=t},1391:(e,t,r)=>{var n=r(7695),o=typeof location===n?0:location;e.exports=o},8270:e=>{var t=Object.prototype.toString;e.exports=t},6721:e=>{var t=parseInt;e.exports=t},1456:e=>{var t="first";e.exports=t},1099:e=>{var t="last";e.exports=t},7695:e=>{var t="undefined";e.exports=t},7135:(e,t,r)=>{var n=r(4996),o=7*n;e.exports=o},6260:(e,t,r)=>{var n=r(7695),o=typeof window===n?0:window;e.exports=o},9350:(e,t,r)=>{var n=r(6999),o=r(7237),a=r(6394),i=r(4898);function u(e,t){var r=a(e),u=a(t),s=o(r),f=o(u),c=n(s),l=n(f),p=Math.pow(10,Math.max(c,l)),h=c>=l?c:l;return parseFloat(i((r*p-u*p)/p,h))}e.exports=u},2134:(e,t,r)=>{var n=r(8885),o=r(8520),a=r(6783),i=r(9187);function u(e,t,r){var u=0;return a(e,t?o(t)?function(){u=n(u,t.apply(r,arguments))}:function(e){u=n(u,i(e,t))}:function(e){u=n(u,e)}),u}e.exports=u},1790:(e,t,r)=>{var n=r(8368),o=r(9390),a=r(163),i=r(9187);function u(e,t,r){return o(e).replace((r||n).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,(function(e,r){return i(t,a(r))}))}e.exports=u},9662:e=>{function t(e,t,r){var n,o,a=r||{},i=!1,u=!1,s=0,f=!("leading"in a)||a.leading,c="trailing"in a&&a.trailing,l=function(){u||(i=!0,e.apply(o,n),s=setTimeout(p,t))},p=function(){s=0,u||i||!0!==c||l()},h=function(){var e=0!==s;return clearTimeout(s),n=null,o=null,i=!1,s=0,e},d=function(){n=arguments,o=this,i=!1,0===s&&(!0===f?l():!0===c&&(s=setTimeout(p,t)))};return d.cancel=h,d}e.exports=t},4531:(e,t,r)=>{var n=r(223),o=r(9356),a=r(9348),i=r(497),u=function(e,t){if(e){var r=a(e,t);return i(r)?n(r):r}return o()};e.exports=u},293:(e,t,r)=>{var n=r(9780);function o(e){return n(e,(function(e){return e}))}e.exports=o},4689:(e,t,r)=>{var n=r(8368),o=(r(9780),r(1375)),a=r(425),i=(r(5334),r(6783)),u=r(5232),s=r(5826);function f(e,t){i(e,(function(e){e.children&&!e.children.length&&u(e,t)}))}function c(e,t){var r,u,c,l=s({},n.treeOptions,t),p=l.strict,h=l.key,d=l.parentKey,g=l.children,y=l.mapChildren,m=l.sortKey,v=l.reverse,b=l.data,E=[],w={},N={};return m&&(e=o(a(e),m),v&&(e=e.reverse())),i(e,(function(e){r=e[h],N[r]=!0})),i(e,(function(e){r=e[h],b?(u={},u[b]=e):u=e,c=e[d],w[r]=w[r]||[],w[c]=w[c]||[],w[c].push(u),u[h]=r,u[d]=c,u[g]=w[r],y&&(u[y]=w[r]),(!p||p&&!c)&&(N[c]||E.push(u))})),p&&f(e,g),E}e.exports=c},7207:(e,t,r)=>{var n=r(8368),o=r(4601),a=r(2623),i=r(7971),u=r(9348),s=r(2596),f=r(3596),c=r(5826),l=r(2671),p=r(8520),h=r(3591);function d(e,t,r,n){var o=t[r];return o?p(o)?o(n,r,e):o[n]:n}var g=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function y(e,t,r){if(e){if(e=u(e),l(e)){var p=t||n.parseDateFormat||n.formatString,y=e.getHours(),m=y<12?"am":"pm",v=c({},n.parseDateRules||n.formatStringMatchs,r?r.formats:null),b=function(t,r){return(""+a(e)).substr(4-r)},E=function(t,r){return h(i(e)+1,r,"0")},w=function(t,r){return h(e.getDate(),r,"0")},N=function(e,t){return h(y,t,"0")},S=function(e,t){return h(y<=12?y:y-12,t,"0")},I=function(t,r){return h(e.getMinutes(),r,"0")},A=function(t,r){return h(e.getSeconds(),r,"0")},O=function(t,r){return h(e.getMilliseconds(),r,"0")},M=function(t,r){var n=e.getTimezoneOffset()/60*-1;return d(e,v,t,(n>=0?"+":"-")+h(n,2,"0")+(1===r?":":"")+"00")},R=function(t,o){return h(d(e,v,t,s(e,(r?r.firstDay:null)||n.firstDayOfWeek)),o,"0")},T=function(t,r){return h(d(e,v,t,f(e)),r,"0")},x={yyyy:b,yy:b,MM:E,M:E,dd:w,d:w,HH:N,H:N,hh:S,h:S,mm:I,m:I,ss:A,s:A,SSS:O,S:O,ZZ:M,Z:M,WW:R,W:R,DDD:T,D:T,a:function(t){return d(e,v,t,m)},A:function(t){return d(e,v,t,o(m))},e:function(t){return d(e,v,t,e.getDay())},E:function(t){return d(e,v,t,e.getDay())},q:function(t){return d(e,v,t,Math.floor((i(e)+3)/3))}};return p.replace(g,(function(e,t){return t||(x[e]?x[e](e,e.length):e)}))}return"Invalid Date"}return""}e.exports=y},4898:(e,t,r)=>{var n=r(6785),o=r(9390),a=r(3569),i=r(1507);function u(e,t){t>>=0;var r=o(n(e,t)),u=r.split("."),s=u[0],f=u[1]||"",c=t-f.length;return t?c>0?s+"."+f+a("0",c):s+i(f,Math.abs(c)):s}e.exports=u},1362:(e,t,r)=>{var n=r(1790);function o(e,t){return n(e,t,{tmplRE:/\{([.\w[\]\s]+)\}/g})}e.exports=o},9120:(e,t,r)=>{var n=r(6721),o=r(3656),a=o(n);e.exports=a},1856:(e,t,r)=>{var n=r(4517);function o(e){return n(e)?"":JSON.stringify(e)}e.exports=o},6394:(e,t,r)=>{var n=r(3656),o=n(parseFloat);e.exports=o},7237:(e,t,r)=>{var n=r(3569),o=r(1507);function a(e){var t=""+e,r=t.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(r){var a=e<0,i=a?"-":"",u=r[3]||"",s=r[5]||"",f=r[6]||"",c=r[7],l=r[8],p=l-f.length,h=l-u.length,d=l-s.length;return"+"===c?u?i+u+n("0",l):p>0?i+s+f+n("0",p):i+s+o(f,l):u?h>0?i+"0."+n("0",Math.abs(h))+u:i+o(u,h):d>0?i+"0."+n("0",Math.abs(d))+s+f:i+o(s,d)+f}return t}e.exports=a},9348:(e,t,r)=>{var n=r(6721),o=r(359),a=r(223),i=r(7098),u=r(497);function s(e){return"(\\d{"+e+"})"}function f(e){return e<10?100*e:e<100?10*e:e}function c(e){return isNaN(e)?e:n(e)}for(var l=s(2),p=s("1,2"),h=s("1,7"),d=s("3,4"),g=".{1}",y=g+p,m="(([zZ])|([-+]\\d{2}:?\\d{2}))",v=[d,y,y,y,y,y,g+h,m],b=[],E=v.length-1;E>=0;E--){for(var w="",N=0;N<E+1;N++)w+=v[N];b.push(new RegExp("^"+w+"$"))}function S(e){for(var t,r={},n=0,o=b.length;n<o;n++)if(t=e.match(b[n]),t){r.y=t[1],r.M=t[2],r.d=t[3],r.H=t[4],r.m=t[5],r.s=t[6],r.S=t[7],r.Z=t[8];break}return r}var I=[["yyyy",d],["yy",l],["MM",l],["M",p],["dd",l],["d",p],["HH",l],["H",p],["mm",l],["m",p],["ss",l],["s",p],["SSS",s(3)],["S",h],["Z",m]],A={},O=["\\[([^\\]]+)\\]"];for(N=0;N<I.length;N++){var M=I[N];A[M[0]]=M[1]+"?",O.push(M[0])}var R=new RegExp(O.join("|"),"g"),T={};function x(e,t){var r=T[t];if(!r){var n=[],o=t.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(R,(function(e,t){var r=e.charAt(0);return"["===r?t:(n.push(r),A[e])}));r=T[t]={_i:n,_r:new RegExp(o)}}var a={},i=e.match(r._r);if(i){for(var u=r._i,s=1,f=i.length;s<f;s++)a[u[s-1]]=i[s];return a}return a}function _(e){if(/^[zZ]/.test(e.Z))return new Date(o(e));var t=e.Z.match(/([-+])(\d{2}):?(\d{2})/);return t?new Date(o(e)-("-"===t[1]?-1:1)*n(t[2])*36e5+6e4*n(t[3])):new Date("")}function C(e,t){if(e){var r=u(e);if(r||!t&&/^[0-9]{11,15}$/.test(e))return new Date(r?a(e):n(e));if(i(e)){var o=t?x(e,t):S(e);if(o.y)return o.M&&(o.M=c(o.M)-1),o.S&&(o.S=f(c(o.S.substring(0,3)))),o.Z?_(o):new Date(o.y,o.M||0,o.d||1,o.H||0,o.m||0,o.s||0,o.S||0)}}return new Date("")}e.exports=C},2506:(e,t,r)=>{var n=r(6162),o=r(7098);function a(e){if(n(e))return e;if(o(e))try{return JSON.parse(e)}catch(t){}return{}}e.exports=a},902:(e,t,r)=>{var n=r(8368),o=r(6783),a=r(5826);function i(e,t,r){var n=r.children,a=r.data,u=r.clear;return o(t,(function(t){var o=t[n];a&&(t=t[a]),e.push(t),o&&o.length&&i(e,o,r),u&&delete t[n]})),e}function u(e,t){return i([],e,a({},n.treeOptions,t))}e.exports=u},9390:(e,t,r)=>{var n=r(4517),o=r(8070),a=r(7237);function i(e){return o(e)?a(e):""+(n(e)?"":e)}e.exports=i},163:(e,t,r)=>{var n=r(1876),o=r(4575);function a(e){return e&&e.trim?e.trim():n(o(e))}e.exports=a},4575:(e,t,r)=>{var n=r(9390);function o(e){return e&&e.trimLeft?e.trimLeft():n(e).replace(/^[\s\uFEFF\xA0]+/g,"")}e.exports=o},1876:(e,t,r)=>{var n=r(9390);function o(e){return e&&e.trimRight?e.trimRight():n(e).replace(/[\s\uFEFF\xA0]+$/g,"")}e.exports=o},660:(e,t,r)=>{var n=r(9532),o=r(4631),a=r(6783),i={};a(n,(function(e,t){i[n[t]]=t}));var u=o(i);e.exports=u},6184:(e,t,r)=>{var n=r(3631),o=r(293);function a(){for(var e=arguments,t=[],r=0,a=e.length;r<a;r++)t=t.concat(o(e[r]));return n(t)}e.exports=a},3631:(e,t,r)=>{var n=r(6783),o=r(5334),a=r(8520),i=r(6347);function u(e,t,r){var u=[];if(t){a(t)||(t=i(t));var s,f={};n(e,(function(n,o){s=t.call(r,n,o,e),f[s]||(f[s]=1,u.push(n))}))}else n(e,(function(e){o(u,e)||u.push(e)}));return u}e.exports=u},47:e=>{var t=0;function r(e){return[e,++t].join("")}e.exports=r},4992:(e,t,r)=>{var n=r(9519),o=r(8046),a=r(7098);function i(e){var t,r={};return e&&a(e)&&o(e.split("&"),(function(e){t=e.split("="),r[n(t[0])]=n(t[1]||"")})),r}e.exports=i},5688:(e,t,r)=>{var n=r(1650),o=r(4707);function a(e){var t,r,a,i=[];if(e&&e.length)for(t=0,r=o(e,(function(e){return e?e.length:0})),a=r?r.length:0;t<a;t++)i.push(n(e,t));return i}e.exports=a},828:(e,t,r)=>{var n=r(8582),o=n("values",0);e.exports=o},6046:(e,t,r)=>{var n=r(5688);function o(){return n(arguments)}e.exports=o},4163:(e,t,r)=>{var n=r(828),o=r(6783);function a(e,t){var r={};return t=t||[],o(n(e),(function(e,n){r[e]=t[n]})),r}e.exports=a},4521:e=>{e.exports=r;var t=Object.prototype.hasOwnProperty;function r(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)t.call(n,o)&&(e[o]=n[o])}return e}},4654:()=>{},1408:()=>{},3646:()=>{},7570:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"===typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"===typeof o[n[t]]&&(e[e.length]=n[t]);return e}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{r.p=""})();var n={};return(()=>{"use strict";if(r.r(n),r.d(n,{http:()=>s,utils:()=>ur}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var o=r(3027),a=r.n(o);let i={};class u{constructor(e={},t={}){this.instance=a(),this.options=e,this.gateWay=t,this.setOptions(e),this.interceptors()}setOptions(e){this.instance.setup(e)}#e(e){return this.options&&this.options?.setRequest&&"function"==typeof this.options.setRequest&&this.options.setRequest(e),e}#t(e){return this.options&&this.options?.setResponse&&"function"==typeof this.options.setResponse&&this.options.setResponse(e),e}request(e){return this.instance.ajax(e)}get(e,t,r){return this.instance.get(e,t,r)}post(e,t,r){return this.instance.post(e,t,r)}put(e,t,r){return this.instance.put(e,t,r)}delete(e,t,r){return this.instance.delete(e,t,r)}patch(e,t,r){return this.instance.patch(e,t,r)}head(e,t,r){return this.instance.head(e,t,r)}jsonp(e,t,r){return this.instance.jsonp(e,t,r)}interceptors(){this.instance.interceptors.request.use(((e,t)=>{if(this.gateWay&&this.gateWay[serveName]&&!e.origin){let t=e.url.split("/")[e.url.startsWith("/")?1:0];e.origin=this.gateWay[t]}this.#e(e),t()})),this.instance.interceptors.response.use(((e,t)=>{this.responseNext(e,t)}))}async responseNext(e,t){const{status:r,statusText:n,headers:o}=e,a=5;let u=null;try{u=await e.json()}catch(f){u=e.__response||{}}let s=u.error||u.msg||u.message||u.result||n||"系统错误";switch(r){case 0:i.error({title:"请求错误",desc:s,duration:a});break;case 200:break;case 401:return void i.error({title:"系统提示 401",desc:"未授权,请重新登录",duration:a});case 504:i.error({title:"系统提示 网络超时",desc:s,duration:a});break;default:i.error({title:`系统提示 ${r}`,desc:s,duration:a});break}this.#t(u),t({status:200,body:u})}}const s=u;var f=r(4108),c=r.n(f);function l(e){let t=new RegExp("({[a-zA-Z0-9_.]*})","ig"),r=String(e);return(r.match(t)||[]).map(((e,t)=>e.replace(/{|}/gi,"")))}function p(e,t){let r=l(e),n=String(e);return r.map(((e,r)=>{let o=c().get(t,e)||"";n=n.replace(new RegExp("{"+e+"}","ig"),o)})),n}function h(e=32){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",r=t.length;let n="";for(let o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}const d={randomStr:h,getFormatKeys:l,format:p,replaceNutrim(e){return String(e).replace(/null|undefined|(^\s*)|(\s*$)/gi,"")},replaceAll(e,t,r){return e.replace(new RegExp(t,"gm"),r)},filterTag(e){let t=this;return e=t.replaceAll(e,/&/gi,"&"),e=t.replaceAll(e,/</gi,"<"),e=t.replaceAll(e,/>/gi,">"),e=t.replaceAll(e," "," "),e},setWaterMark(e,t){class r{constructor(e,t){this.settings=Object.assign({container:document.body,id:"waterMark",showType:"canvas",x:0,y:100,xSpace:150,ySpace:100,color:"#cfcccc",alpha:.5,fontsize:"15px",angle:20,curTime:!1},t||{}),this.globalWidth=this.settings.container.clientWidth,this.globalHeight=this.settings.container.clientHeight,this.initCanvas(),this.draw(e),this.insertWaterMark()}initCanvas(){this.renderCanvas=document.createElement("canvas"),this.renderContext=this.renderCanvas.getContext("2d"),this.renderCanvas.width=this.globalWidth,this.renderCanvas.height=this.globalHeight,this.div=document.createElement("div"),this.oldData=this.renderContext.getImageData(0,0,this.globalWidth,this.globalHeight)}insertWaterMark(){const{type:e,id:t,alpha:r,container:n}=this.settings;this.WaterMarkEl=this.renderCanvas,"div"===e&&(this.WaterMarkEl=this.div,this.WaterMarkEl.style.backgroundImage="url("+this.renderCanvas.toDataURL("image/png")+")");const o=this.WaterMarkEl.style;o.position="absolute",o.opacity=r,o.top=o.left=0,o.zIndex="9999",o.width=this.globalWidth+"px",o.height=this.globalHeight+"px",o.pointerEvents="none",this.WaterMarkEl.id=t,n.append(this.WaterMarkEl)}draw(e,t){this.settings=Object.assign(this.settings,t||{});let{x:r,y:n,xSpace:o,ySpace:a,color:i,fontsize:u,angle:s,curTime:f}=this.settings,{globalWidth:c,globalHeight:l,renderContext:p}=this,h="";if(f){let e=new Date;h=e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,0)+"-"+String(e.getDate()).padStart(2,0)+" "+String(e.getHours()).padStart(2,0)+":"+String(e.getMinutes()).padStart(2,0)+":"+String(e.getSeconds()).padStart(2,0)}e=e?e+" "+h:h,p.clearRect(0,0,c,l),p.font=u+" microsoft yahei",p.fillStyle=i,p.textAlign="left",p.textBaseline="Middle";let d=p.measureText(e),g=d.width,y=Math.ceil(g/Math.tan(s)+50);for(let m=r;m<c;m+=o+g)for(let t=n;t<l;t+=a+y)p.save(),p.translate(m,t),p.rotate(0-s*Math.PI/180),p.fillText(e,0,0),p.restore()}inVisible(e,t,r,n="R"){var o,a,i=r.data;switch(n){case"R":o=0,a=3;break;case"G":o=1,a=2;break;case"B":o=2,a=1;break}for(var u=0;u<i.length;u++)u%4===o&&(0===t[u+a]&&i[u]%2===1?255===i[u]?i[u]--:i[u]++:0!==t[u+a]&&i[u]%2===0&&i[u]++);e.putImageData(r,0,0)}visible(e,t,r="R"){var n;switch(r){case"R":n=0,3;break;case"G":n=1,2;break;case"B":n=2,1;break}for(var o=t.data,a=0;a<o.length;a++){if(a%4===n&&o[a]%2===0)if(o[a]%2===0)o[a]=0;else{if(a%4===3)continue;o[a]=0}e.putImageData(t,0,0)}}}return new r(e,t)},removeWaterMark(e,t){const r=e||document.body;r.removeChild(document.getElementById(t||"waterMark"))}};var g,y=r(3870);function m(e){var t;return"number"===typeof e?t=e:"string"===typeof e&&(t=e.indexOf(".")>-1?parseFloat(e):parseInt(e,10)),t}function v(e){return-1*m(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E="ERROR",w="DIV/0",N="NAME",S="N/A",I="NULL",A="NUM",O="REF",M="VALUE",R=(g={},b(g,E,"#ERROR!"),b(g,w,"#DIV/0!"),b(g,N,"#NAME?"),b(g,S,"#N/A"),b(g,I,"#NULL!"),b(g,A,"#NUM!"),b(g,O,"#REF!"),b(g,M,"#VALUE!"),g);function T(e){var t;return e=(e+"").replace(/#|!|\?/g,""),R[e]&&(t=R[e]),t||null}function x(e){var t=!1;for(var r in R)if(Object.prototype.hasOwnProperty.call(R,r)&&R[r]===e){t=!0;break}return t}var _="+";function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.reduce((function(e,t){return e+m(t)}),m(e));if(isNaN(o))throw Error(M);return o}C.SYMBOL=_;var D="&";function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return e+t.toString()}),"")}L.SYMBOL=D;var P="/";function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.reduce((function(e,t){return e/m(t)}),m(e));if(o===1/0)throw Error(w);if(isNaN(o))throw Error(M);return o}j.SYMBOL=P;var k="=";function U(e,t){return e===t}U.SYMBOL=k;var F=r(9189),B=["ABS","ACCRINT","ACOS","ACOSH","ACOT","ACOTH","ADD","AGGREGATE","AND","ARABIC","ARGS2ARRAY","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETA.DIST","BETA.INV","BETADIST","BETAINV","BIN2DEC","BIN2HEX","BIN2OCT","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BINOMDIST","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CEILING","CEILINGMATH","CEILINGPRECISE","CHAR","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHOOSE","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUNTIN","COUNTUNIQUE","COVARIANCE.P","COVARIANCE.S","CSC","CSCH","CUMIPMT","CUMPRINC","DATE","DATEVALUE","DAY","DAYS","DAYS360","DB","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DIVIDE","DOLLARDE","DOLLARFR","E","EDATE","EFFECT","EOMONTH","EQ","ERF","ERFC","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","F.DIST","F.DIST.RT","F.INV","F.INV.RT","FACT","FACTDOUBLE","FALSE","FDIST","FDISTRT","FIND","FINV","FINVRT","FISHER","FISHERINV","FLATTEN","FLOOR","FORECAST","FREQUENCY","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMA.INV","GAMMADIST","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GROWTH","GTE","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HOUR","HTML2TEXT","HYPGEOM.DIST","HYPGEOMDIST","IF","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INT","INTERCEPT","INTERVAL","IPMT","IRR","ISBINARY","ISBLANK","ISEVEN","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISODD","ISOWEEKNUM","ISPMT","ISTEXT","JOIN","KURT","LARGE","LCM","LEFT","LEN","LINEST","LN","LOG","LOG10","LOGEST","LOGNORM.DIST","LOGNORM.INV","LOGNORMDIST","LOGNORMINV","LOWER","LT","LTE","MATCH","MAX","MAXA","MEDIAN","MID","MIN","MINA","MINUS","MINUTE","MIRR","MOD","MODE.MULT","MODE.SNGL","MODEMULT","MODESNGL","MONTH","MROUND","MULTINOMIAL","MULTIPLY","NE","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NOMINAL","NORM.DIST","NORM.INV","NORM.S.DIST","NORM.S.INV","NORMDIST","NORMINV","NORMSDIST","NORMSINV","NOT","NOW","NPER","NPV","NUMBERS","OCT2BIN","OCT2DEC","OCT2HEX","ODD","OR","PDURATION","PEARSON","PERCENTILEEXC","PERCENTILEINC","PERCENTRANKEXC","PERCENTRANKINC","PERMUT","PERMUTATIONA","PHI","PI","PMT","POISSON.DIST","POISSONDIST","POW","POWER","PPMT","PROB","PRODUCT","PROPER","PV","QUARTILE.EXC","QUARTILE.INC","QUARTILEEXC","QUARTILEINC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANKAVG","RANKEQ","RATE","REFERENCE","REGEXEXTRACT","REGEXMATCH","REGEXREPLACE","REPLACE","REPT","RIGHT","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","SEARCH","SEC","SECH","SECOND","SERIESSUM","SIGN","SIN","SINH","SKEW","SKEW.P","SKEWP","SLN","SLOPE","SMALL","SPLIT","SPLIT","SQRT","SQRTPI","STANDARDIZE","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STDEVS","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","T.DIST","T.DIST.2T","T.DIST.RT","T.INV","T.INV.2T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","TDIST","TDIST2T","TDISTRT","TIME","TIMEVALUE","TINV","TINV2T","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","UNICHAR","UNICODE","UNIQUE","UPPER","VAR.P","VAR.S","VARA","VARP","VARPA","VARS","WEEKDAY","WEEKNUM","WEIBULL.DIST","WEIBULLDIST","WORKDAY","XIRR","XNPV","XOR","YEAR","YEARFRAC"];const q=B;var V=q;function G(e){return function(){e=e.toUpperCase();var t,r=e.split("."),n=!1;if(1===r.length)F[r[0]]&&(n=!0,t=F[r[0]].apply(F,arguments));else{var o=r.length,a=0,i=F;while(a<o)if(i=i[r[a]],a++,!i){i=null;break}i&&(n=!0,t=i.apply(void 0,arguments))}if(!n)throw Error(N);return t}}G.isFactory=!0,G.SYMBOL=V;var $=">";function H(e,t){return e>t}H.SYMBOL=$;var Y=">=";function W(e,t){return e>=t}W.SYMBOL=Y;var X="<";function z(e,t){return e<t}z.SYMBOL=X;var K="<=";function Q(e,t){return e<=t}Q.SYMBOL=K;var Z="-";function J(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.reduce((function(e,t){return e-m(t)}),m(e));if(isNaN(o))throw Error(M);return o}J.SYMBOL=Z;var ee="*";function te(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.reduce((function(e,t){return e*m(t)}),m(e));if(isNaN(o))throw Error(M);return o}te.SYMBOL=ee;var re="<>";function ne(e,t){return e!==t}ne.SYMBOL=re;var oe="^";function ae(e,t){var r=Math.pow(m(e),m(t));if(isNaN(r))throw Error(M);return r}function ie(e){return ce(e)||fe(e)||se(e)||ue()}function ue(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function se(e,t){if(e){if("string"===typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,t):void 0}}function fe(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function ce(e){if(Array.isArray(e))return le(e)}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}ae.SYMBOL=oe;var pe=Object.create(null);function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e=e.toUpperCase(),!pe[e])throw Error(N);return pe[e].apply(pe,ie(t))}function de(e,t){Array.isArray(e)||(e=[e.toUpperCase()]),e.forEach((function(e){t.isFactory?pe[e]=t(e):pe[e]=t}))}de(C.SYMBOL,C),de(L.SYMBOL,L),de(j.SYMBOL,j),de(U.SYMBOL,U),de(ae.SYMBOL,ae),de(G.SYMBOL,G),de(H.SYMBOL,H),de(W.SYMBOL,W),de(z.SYMBOL,z),de(Q.SYMBOL,Q),de(te.SYMBOL,te),de(ne.SYMBOL,ne),de(J.SYMBOL,J);var ge=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},ye=[1,5],me=[1,8],ve=[1,6],be=[1,7],Ee=[1,9],we=[1,14],Ne=[1,15],Se=[1,16],Ie=[1,12],Ae=[1,13],Oe=[1,17],Me=[1,19],Re=[1,20],Te=[1,21],xe=[1,22],_e=[1,23],Ce=[1,24],De=[1,25],Le=[1,26],Pe=[1,27],je=[1,28],ke=[5,9,10,11,13,14,15,16,17,18,19,20,29,30],Ue=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,32],Fe=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,34],Be=[5,10,11,13,14,15,16,17,29,30],qe=[5,10,13,14,15,16,29,30],Ve=[5,10,11,13,14,15,16,17,18,19,29,30],Ge=[13,29,30],$e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,expression:4,EOF:5,variableSequence:6,number:7,STRING:8,"&":9,"=":10,"+":11,"(":12,")":13,"<":14,">":15,NOT:16,"-":17,"*":18,"/":19,"^":20,FUNCTION:21,expseq:22,cell:23,ABSOLUTE_CELL:24,RELATIVE_CELL:25,MIXED_CELL:26,":":27,ARRAY:28,";":29,",":30,VARIABLE:31,DECIMAL:32,NUMBER:33,"%":34,ERROR:35,$accept:0,$end:1},terminals_:{5:"EOF",8:"STRING",9:"&",10:"=",11:"+",12:"(",13:")",14:"<",15:">",16:"NOT",17:"-",18:"*",19:"/",20:"^",21:"FUNCTION",24:"ABSOLUTE_CELL",25:"RELATIVE_CELL",26:"MIXED_CELL",27:":",28:"ARRAY",29:";",30:",",31:"VARIABLE",32:"DECIMAL",33:"NUMBER",34:"%",35:"ERROR"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,4],[4,4],[4,4],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,3],[4,4],[4,1],[4,1],[4,2],[23,1],[23,1],[23,1],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[22,1],[22,1],[22,3],[22,3],[6,1],[6,3],[7,1],[7,3],[7,2],[2,1]],performAction:function(e,t,r,n,o,a,i){var u=a.length-1;switch(o){case 1:return a[u-1];case 2:this.$=n.callVariable(a[u][0]);break;case 3:this.$=n.toNumber(a[u]);break;case 4:this.$=n.trimEdges(a[u]);break;case 5:this.$=n.evaluateByOperator("&",[a[u-2],a[u]]);break;case 6:this.$=n.evaluateByOperator("=",[a[u-2],a[u]]);break;case 7:this.$=n.evaluateByOperator("+",[a[u-2],a[u]]);break;case 8:this.$=a[u-1];break;case 9:this.$=n.evaluateByOperator("<=",[a[u-3],a[u]]);break;case 10:this.$=n.evaluateByOperator(">=",[a[u-3],a[u]]);break;case 11:this.$=n.evaluateByOperator("<>",[a[u-3],a[u]]);break;case 12:this.$=n.evaluateByOperator("NOT",[a[u-2],a[u]]);break;case 13:this.$=n.evaluateByOperator(">",[a[u-2],a[u]]);break;case 14:this.$=n.evaluateByOperator("<",[a[u-2],a[u]]);break;case 15:this.$=n.evaluateByOperator("-",[a[u-2],a[u]]);break;case 16:this.$=n.evaluateByOperator("*",[a[u-2],a[u]]);break;case 17:this.$=n.evaluateByOperator("/",[a[u-2],a[u]]);break;case 18:this.$=n.evaluateByOperator("^",[a[u-2],a[u]]);break;case 19:var s=n.invertNumber(a[u]);this.$=s,isNaN(this.$)&&(this.$=0);break;case 20:s=n.toNumber(a[u]);this.$=s,isNaN(this.$)&&(this.$=0);break;case 21:this.$=n.callFunction(a[u-2]);break;case 22:this.$=n.callFunction(a[u-3],a[u-1]);break;case 26:case 27:case 28:this.$=n.cellValue(a[u]);break;case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:this.$=n.rangeValue(a[u-2],a[u]);break;case 38:case 42:this.$=[a[u]];break;case 39:this.$=n.trimEdges(e).split(",");break;case 40:case 41:a[u-2].push(a[u]),this.$=a[u-2];break;case 43:this.$=Array.isArray(a[u-2])?a[u-2]:[a[u-2]],this.$.push(a[u]);break;case 44:this.$=a[u];break;case 45:this.$=1*(a[u-2]+"."+a[u]);break;case 46:this.$=.01*a[u-1];break;case 47:this.$=n.throwError(a[u]);break}},table:[{2:11,3:1,4:2,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{1:[3]},{5:[1,18],9:Me,10:Re,11:Te,14:xe,15:_e,16:Ce,17:De,18:Le,19:Pe,20:je},ge(ke,[2,2],{32:[1,29]}),ge(ke,[2,3],{34:[1,30]}),ge(ke,[2,4]),{2:11,4:31,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:32,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:33,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{12:[1,34]},ge(ke,[2,23]),ge(ke,[2,24],{2:35,35:Oe}),ge(Ue,[2,42]),ge(Fe,[2,44],{32:[1,36]}),ge(ke,[2,26],{27:[1,37]}),ge(ke,[2,27],{27:[1,38]}),ge(ke,[2,28],{27:[1,39]}),ge([5,9,10,11,13,14,15,16,17,18,19,20,29,30,35],[2,47]),{1:[2,1]},{2:11,4:40,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:41,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:42,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:45,6:3,7:4,8:ye,10:[1,43],11:me,12:ve,15:[1,44],17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:47,6:3,7:4,8:ye,10:[1,46],11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:48,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:49,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:50,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:51,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:52,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{31:[1,53]},ge(Fe,[2,46]),{9:Me,10:Re,11:Te,13:[1,54],14:xe,15:_e,16:Ce,17:De,18:Le,19:Pe,20:je},ge(Be,[2,19],{9:Me,18:Le,19:Pe,20:je}),ge(Be,[2,20],{9:Me,18:Le,19:Pe,20:je}),{2:11,4:57,6:3,7:4,8:ye,11:me,12:ve,13:[1,55],17:be,21:Ee,22:56,23:10,24:we,25:Ne,26:Se,28:[1,58],31:Ie,33:Ae,35:Oe},ge(ke,[2,25]),{33:[1,59]},{24:[1,60],25:[1,61],26:[1,62]},{24:[1,63],25:[1,64],26:[1,65]},{24:[1,66],25:[1,67],26:[1,68]},ge(ke,[2,5]),ge([5,10,13,29,30],[2,6],{9:Me,11:Te,14:xe,15:_e,16:Ce,17:De,18:Le,19:Pe,20:je}),ge(Be,[2,7],{9:Me,18:Le,19:Pe,20:je}),{2:11,4:69,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:70,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},ge(qe,[2,14],{9:Me,11:Te,17:De,18:Le,19:Pe,20:je}),{2:11,4:71,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},ge(qe,[2,13],{9:Me,11:Te,17:De,18:Le,19:Pe,20:je}),ge([5,10,13,16,29,30],[2,12],{9:Me,11:Te,14:xe,15:_e,17:De,18:Le,19:Pe,20:je}),ge(Be,[2,15],{9:Me,18:Le,19:Pe,20:je}),ge(Ve,[2,16],{9:Me,20:je}),ge(Ve,[2,17],{9:Me,20:je}),ge([5,10,11,13,14,15,16,17,18,19,20,29,30],[2,18],{9:Me}),ge(Ue,[2,43]),ge(ke,[2,8]),ge(ke,[2,21]),{13:[1,72],29:[1,73],30:[1,74]},ge(Ge,[2,38],{9:Me,10:Re,11:Te,14:xe,15:_e,16:Ce,17:De,18:Le,19:Pe,20:je}),ge(Ge,[2,39]),ge(Fe,[2,45]),ge(ke,[2,29]),ge(ke,[2,30]),ge(ke,[2,31]),ge(ke,[2,32]),ge(ke,[2,33]),ge(ke,[2,34]),ge(ke,[2,35]),ge(ke,[2,36]),ge(ke,[2,37]),ge(qe,[2,9],{9:Me,11:Te,17:De,18:Le,19:Pe,20:je}),ge(qe,[2,11],{9:Me,11:Te,17:De,18:Le,19:Pe,20:je}),ge(qe,[2,10],{9:Me,11:Te,17:De,18:Le,19:Pe,20:je}),ge(ke,[2,22]),{2:11,4:75,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},{2:11,4:76,6:3,7:4,8:ye,11:me,12:ve,17:be,21:Ee,23:10,24:we,25:Ne,26:Se,31:Ie,33:Ae,35:Oe},ge(Ge,[2,40],{9:Me,10:Re,11:Te,14:xe,15:_e,16:Ce,17:De,18:Le,19:Pe,20:je}),ge(Ge,[2,41],{9:Me,10:Re,11:Te,14:xe,15:_e,16:Ce,17:De,18:Le,19:Pe,20:je})],defaultActions:{18:[2,1]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],o=[],a=this.table,i="",u=0,s=0,f=0,c=2,l=1,p=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(d.yy[g]=this.yy[g]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,"undefined"==typeof h.yylloc&&(h.yylloc={});var y=h.yylloc;o.push(y);var m=h.options&&h.options.ranges;function v(e){r.length=r.length-2*e,n.length=n.length-e,o.length=o.length-e}"function"===typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,E,w,N,S,I,A,O,M,R=function(){var e;return e=h.lex()||l,"number"!==typeof e&&(e=t.symbols_[e]||e),e},T={};while(1){if(w=r[r.length-1],this.defaultActions[w]?N=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=R()),N=a[w]&&a[w][b]),"undefined"===typeof N||!N.length||!N[0]){var x,_=function(e){for(var t=r.length-1,n=0;;){if(c.toString()in a[e])return n;if(0===e||t<2)return!1;t-=2,e=r[t],++n}},C="";if(f)E!==l&&(x=_(w));else{for(I in x=_(w),M=[],a[w])this.terminals_[I]&&I>c&&M.push("'"+this.terminals_[I]+"'");C=h.showPosition?"Parse error on line "+(u+1)+":\n"+h.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==l?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:h.match,token:this.terminals_[b]||b,line:h.yylineno,loc:y,expected:M,recoverable:!1!==x})}if(3==f){if(b===l||E===l)throw new Error(C||"Parsing halted while starting to recover from another error.");s=h.yyleng,i=h.yytext,u=h.yylineno,y=h.yylloc,b=R()}if(!1===x)throw new Error(C||"Parsing halted. No suitable error recovery rule available.");v(x),E=b==c?null:b,b=c,w=r[r.length-1],N=a[w]&&a[w][c],f=3}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(N[0]){case 1:r.push(b),n.push(h.yytext),o.push(h.yylloc),r.push(N[1]),b=null,E?(b=E,E=null):(s=h.yyleng,i=h.yytext,u=h.yylineno,y=h.yylloc,f>0&&f--);break;case 2:if(A=this.productions_[N[1]][1],T.$=n[n.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},m&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),S=this.performAction.apply(T,[i,s,u,d.yy,N[1],n,o].concat(p)),"undefined"!==typeof S)return S;A&&(r=r.slice(0,-1*A*2),n=n.slice(0,-1*A),o=o.slice(0,-1*A)),r.push(this.productions_[N[1]][0]),n.push(T.$),o.push(T._$),O=a[r[r.length-2]][r[r.length-1]],r.push(O);break;case 3:return!0}}return!0}},He=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),n=e[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in o)this[a]=o[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;a<o.length;a++)if(r=this._input.match(this.rules[o[a]]),r&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(e=this.test_match(r,o[a]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,o[n]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:break;case 1:return 8;case 2:return 8;case 3:return 21;case 4:return 35;case 5:return 24;case 6:return 26;case 7:return 26;case 8:return 25;case 9:return 21;case 10:return 31;case 11:return 31;case 12:return 33;case 13:return 28;case 14:return 9;case 15:return" ";case 16:return 32;case 17:return 27;case 18:return 29;case 19:return 30;case 20:return 18;case 21:return 19;case 22:return 17;case 23:return 11;case 24:return 20;case 25:return 12;case 26:return 13;case 27:return 15;case 28:return 14;case 29:return 16;case 30:return'"';case 31:return"'";case 32:return"!";case 33:return 10;case 34:return 34;case 35:return"#";case 36:return 5}},rules:[/^(?:\s+)/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/,/^(?:#[A-Z0-9\/]+(!|\?)?)/,/^(?:\$[A-Za-z]+\$[0-9]+)/,/^(?:\$[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z]+\$[0-9]+)/,/^(?:[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z\.]+(?=[(]))/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,/^(?:[A-Za-z_]+)/,/^(?:[0-9]+)/,/^(?:\[(.*)?\])/,/^(?:&)/,/^(?: )/,/^(?:[.])/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\()/,/^(?:\))/,/^(?:>)/,/^(?:<)/,/^(?:NOT\b)/,/^(?:")/,/^(?:')/,/^(?:!)/,/^(?:=)/,/^(?:%)/,/^(?:[#])/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],inclusive:!0}}};return e}();function Ye(){this.yy={}}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e=e.substring(t,e.length-t),e}function Xe(e,t){return Je(e)||Ze(e,t)||Ke(e,t)||ze()}function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ke(e,t){if(e){if("string"===typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qe(e,t):void 0}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ze(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done);n=!0)if(r.push(i.value),t&&r.length===t)break}catch(s){o=!0,a=s}finally{try{n||null==u["return"]||u["return"]()}finally{if(o)throw a}}return r}}function Je(e){if(Array.isArray(e))return e}function et(e){var t=parseInt(e,10);return t=isNaN(t)?-1:Math.max(t-1,-1),t}function tt(e){var t="";return e>=0&&(t="".concat(e+1)),t}$e.lexer=He,Ye.prototype=$e,$e.Parser=Ye;var rt="ABCDEFGHIJKLMNOPQRSTUVWXYZ",nt=rt.length;function ot(e){var t=0;if("string"===typeof e){e=e.toUpperCase();for(var r=0,n=e.length-1;r<e.length;r+=1,n-=1)t+=Math.pow(nt,n)*(rt.indexOf(e[r])+1)}return--t,t}function at(e){var t="";while(e>=0)t=String.fromCharCode(e%nt+97)+t,e=Math.floor(e/nt)-1;return t.toUpperCase()}var it=/^([$])?([A-Za-z]+)([$])?([0-9]+)$/;function ut(e){if("string"!==typeof e||!it.test(e))return[];var t=e.toUpperCase().match(it),r=Xe(t,5),n=r[1],o=r[2],a=r[3],i=r[4];return[{index:et(i),label:i,isAbsolute:"$"===a},{index:ot(o),label:o,isAbsolute:"$"===n}]}function st(e,t){var r=(e.isAbsolute?"$":"")+tt(e.index),n=(t.isAbsolute?"$":"")+at(t.index);return n+r}function ft(e){return ft="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ft(e)}function ct(e,t){return gt(e)||dt(e,t)||pt(e,t)||lt()}function lt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pt(e,t){if(e){if("string"===typeof e)return ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(e,t):void 0}}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dt(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done);n=!0)if(r.push(i.value),t&&r.length===t)break}catch(s){o=!0,a=s}finally{try{n||null==u["return"]||u["return"]()}finally{if(o)throw a}}return r}}function gt(e){if(Array.isArray(e))return e}function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vt(e,t,r){return t&&mt(e.prototype,t),r&&mt(e,r),e}function bt(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Et(e,t)}function Et(e,t){return Et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Et(e,t)}function wt(e){var t=It();return function(){var r,n=At(e);if(t){var o=At(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Nt(this,r)}}function Nt(e,t){return!t||"object"!==ft(t)&&"function"!==typeof t?St(e):t}function St(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function It(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}var Ot=function(e){bt(r,e);var t=wt(r);function r(){var e;return yt(this,r),e=t.call(this),e.parser=new Ye,e.parser.yy={toNumber:m,trimEdges:We,invertNumber:v,throwError:function(t){return e._throwError(t)},callVariable:function(t){return e._callVariable(t)},evaluateByOperator:he,callFunction:function(t,r){return e._callFunction(t,r)},cellValue:function(t){return e._callCellValue(t)},rangeValue:function(t,r){return e._callRangeValue(t,r)}},e.variables=Object.create(null),e.functions=Object.create(null),e.setVariable("TRUE",!0).setVariable("FALSE",!1).setVariable("NULL",null),e}return vt(r,[{key:"parse",value:function(e){var t=null,r=null;try{t=""===e?"":this.parser.parse(e)}catch(o){var n=T(o.message);r=n||T(E)}return t instanceof Error&&(r=T(t.message)||T(E),t=null),{error:r,result:t}}},{key:"setVariable",value:function(e,t){return this.variables[e]=t,this}},{key:"getVariable",value:function(e){return this.variables[e]}},{key:"_callVariable",value:function(e){var t=this.getVariable(e);if(this.emit("callVariable",e,(function(e){void 0!==e&&(t=e)})),void 0===t)throw Error(N);return t}},{key:"setFunction",value:function(e,t){return this.functions[e]=t,this}},{key:"getFunction",value:function(e){return this.functions[e]}},{key:"_callFunction",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.getFunction(e);return n&&(t=n(r)),this.emit("callFunction",e,r,(function(e){void 0!==e&&(t=e)})),void 0===t?he(e,r):t}},{key:"_callCellValue",value:function(e){e=e.toUpperCase();var t=ut(e),r=ct(t,2),n=r[0],o=r[1],a=void 0;return this.emit("callCellValue",{label:e,row:n,column:o},(function(e){a=e})),a}},{key:"_callRangeValue",value:function(e,t){e=e.toUpperCase(),t=t.toUpperCase();var r=ut(e),n=ct(r,2),o=n[0],a=n[1],i=ut(t),u=ct(i,2),s=u[0],f=u[1],c={},l={};o.index<=s.index?(c.row=o,l.row=s):(c.row=s,l.row=o),a.index<=f.index?(c.column=a,l.column=f):(c.column=f,l.column=a),c.label=st(c.row,c.column),l.label=st(l.row,l.column);var p=[];return this.emit("callRangeValue",c,l,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p=e})),p}},{key:"_throwError",value:function(e){if(x(e))throw Error(e);throw Error(E)}}]),r}(y);const Mt=Ot,Rt=new Mt,Tt={truncate(e,t){if(e<0){let r="-"+c().floor(String(e).replace("-",""),t);return Number(r)}return c().floor(e,t)},calculate(e,t){if(!e)return"";t&&c().isPlainObject(t)&&(e=d.format(e,t));let{result:r}=Rt.parse(e);return r}},xt={isPromise(e){return"Promise"===Object.prototype.toString.call(e).slice(8,-1)},isNone(e){return["",null,void 0].includes(e)}};var _t=r(7652);const Ct=new Map([["transparent","rgba(0,0,0,0)"],["black","#000000"],["silver","#C0C0C0"],["gray","#808080"],["white","#FFFFFF"],["maroon","#800000"],["red","#FF0000"],["purple","#800080"],["fuchsia","#FF00FF"],["green","#008000"],["lime","#00FF00"],["olive","#808000"],["yellow","#FFFF00"],["navy","#000080"],["blue","#0000FF"],["teal","#008080"],["aqua","#00FFFF"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"]]),Dt=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,Lt=/^(rgb|rgba|RGB|RGBA)/,Pt=/^(rgba|RGBA)/;function jt(e){const t=Dt.test(e),r=Lt.test(e);return t||r?e:(e=kt(e),e||(_t.error("Color: Invalid color!"),!1))}function kt(e){return e?!!Ct.has(e)&&Ct.get(e):(_t.error("getColorByKeywords: Missing parameters!"),!1)}function Ut(e){if(!e)return _t.error("getRgbValue: Missing parameters!"),!1;if(e=jt(e),!e)return!1;const t=Dt.test(e),r=Lt.test(e),n=e.toLowerCase();return t?Ft(n):r?Bt(n):void 0}function Ft(e){return e=e.replace("#",""),3===e.length&&(e=Array.from(e).map((e=>e+e)).join("")),e=e.split(""),new Array(3).fill(0).map(((t,r)=>parseInt(`0x${e[2*r]}${e[2*r+1]}`)))}function Bt(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map((e=>parseInt(e)))}function qt(e){if(!e)return _t.error("getRgbaValue: Missing parameters!"),!1;const t=Ut(e);return!!t&&(t.push(Vt(e)),t)}function Vt(e){if(!e)return _t.error("getOpacity: Missing parameters!"),!1;if(e=jt(e),!e)return!1;const t=Pt.test(e);return t?(e=e.toLowerCase(),Number(e.split(",").slice(-1)[0].replace(/[)|\s]/g,""))):1}function Gt(e,t){if(!e)return _t.error("toRgb: Missing parameters!"),!1;const r=Ut(e);if(!r)return!1;const n="number"===typeof t;return n?"rgba("+r.join(",")+`,${t})`:"rgb("+r.join(",")+")"}function $t(e){return e?Dt.test(e)?e:(e=Ut(e),!!e&&"#"+e.map((e=>Number(e).toString(16))).map((e=>"0"===e?"00":e)).join("")):(_t.error("toHex: Missing parameters!"),!1)}function Ht(e){if(!e)return _t.error("getColorFromRgbValue: Missing parameters!"),!1;const t=e.length;if(3!==t&&4!==t)return _t.error("getColorFromRgbValue: Value is illegal!"),!1;let r=3===t?"rgb(":"rgba(";return r+=e.join(",")+")",r}function Yt(e,t=0){if(!e)return _t.error("darken: Missing parameters!"),!1;let r=qt(e);return!!r&&(r=r.map(((e,r)=>3===r?e:e-Math.ceil(2.55*t))).map((e=>e<0?0:e)),Ht(r))}function Wt(e,t=0){if(!e)return _t.error("lighten: Missing parameters!"),!1;let r=qt(e);return!!r&&(r=r.map(((e,r)=>3===r?e:e+Math.ceil(2.55*t))).map((e=>e>255?255:e)),Ht(r))}function Xt(e,t=100){if(!e)return _t.error("fade: Missing parameters!"),!1;const r=Ut(e);if(!r)return!1;const n=[...r,t/100];return Ht(n)}const zt={fade:Xt,toHex:$t,toRgb:Gt,darken:Yt,lighten:Wt,getOpacity:Vt,getRgbValue:Ut,getRgbaValue:qt,getColorFromRgbValue:Ht},Kt=e=>{let t=e;while(t&&"HTML"!==t.tagName&&1===t.nodeType){const e=window.getComputedStyle(t).overflowY;if("scroll"===e||"auto"===e)return t;t=t.parentNode}return window},Qt=e=>e===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):e.scrollTop,Zt=e=>{const t=e.getBoundingClientRect(),r=document.body,n=e.clientTop||r.clientTop||0,o=e.clientLeft||r.clientLeft||0,a=window.pageYOffset||e.scrollTop,i=window.pageXOffset||e.scrollLeft;return{top:t.top+a-n,left:t.left+i-o}},Jt=(e,t)=>{const r=["msTransitionEnd","mozTransitionEnd","oTransitionEnd","webkitTransitionEnd","transitionend"],n={handleEvent(o){r.forEach((function(t){e.removeEventListener(t,n,!1)})),t.apply(e,arguments)}};r.forEach((function(t){e.addEventListener(t,n,!1)}))},er=(e,t)=>{if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},tr=(e,t)=>{if(e){for(var r=e.className,n=(t||"").split(" "),o=0,a=n.length;o<a;o++){var i=n[o];i&&(e.classList?e.classList.add(i):er(e,i)||(r+=" "+i))}e.classList||(e.className=r)}},rr=(e,t)=>{if(e&&t){for(var r=t.split(" "),n=" "+e.className+" ",o=0,a=r.length;o<a;o++){var i=r[o];i&&(e.classList?e.classList.remove(i):er(e,i)&&(n=n.replace(" "+i+" "," ")))}e.classList||(e.className=n?n.trim():n)}},nr={getScrollEventTarget:Kt,getScrollTop:Qt,getOffset:Zt,transitionEnd:Jt,hasClass:er,addClass:tr,removeClass:rr},or={toDateDiffText(e){let t=15444078e5,r=c().getDateDiff(e,t);return r.done?r.time<31536e6?r.time<2592e6?r.time<864e5?r.time<36e4?r.time<6e4?r.time<1e4?"刚刚":`${r.ss}秒之前`:`${r.mm}分钟之前`:`${r.HH}小时之前`:`${r.dd}天之前`:`${r.MM}个月之前`:`${r.yyyy}年之前`:"错误类型"},ioToFile(e,t="download",r="blob"){return new Promise(((r,n)=>{try{if("download"in document.createElement("a")){const r=document.createElement("a"),n=window.URL||window.webkitURL||window.moxURL;r.style.display="none",r.href=n.createObjectURL(e),r.download=t,r.click(),n.revokeObjectURL(r.href)}else navigator.msSaveBlob(e,t);r()}catch(o){n(o)}}))},toMoneyChies(e,t={}){let{upcase:r=!0}=t;var n,o,a,i=r?["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"]:["零","一","二","三","四","伍","六","七","八","九"],u=["","拾","佰","仟"],s=["","万","亿","兆"],f=["角","分","毫","厘"],c="整",l="元",p=1e15,h="";if(""===e)return e;if(e=parseFloat(e),e>=p)return"";if(0===e)return h=i[0]+l+c,h;if(e=e.toString(),-1===e.indexOf(".")?(n=e,o=""):(a=e.split("."),n=a[0],o=a[1].substr(0,4)),parseInt(n,10)>0){var d=0,g=n.length;for(let e=0;e<g;e++){let t=n.substr(e,1);var y=g-e-1,m=y/4,v=y%4;"0"===t?d++:(d>0&&(h+=i[0]),d=0,h+=i[parseInt(t)]+u[v]),0===v&&d<4&&(h+=s[m])}h+=l}if(""!==o)for(var b=o.length,E=0;E<b;E++){var w=o.substr(E,1);"0"!==w&&(h+=i[Number(w)]+f[E])}return""===h?h+=i[0]+l+c:""===o&&(h+=c),h},formatMoneyPad(e){let t=["亿","千","百","十","万","千","百","十","元"],r=["角","分","毫","厘"],n=String(e).split(".")[0]||"",o=String(e).split(".")[1]||"",a=n.padStart(t.length," "),i=o.padEnd(r.length,"0");return a+"."+i},formatRender(e,t,r,n,o,a){let i,u,s,f,{$vUtils:c,$vxePluginNames:l,rform:p}=a,{min:h,max:d,formula:g,digits:y,type:m,multiple:v,split:b,options:E,format:w,nodeKey:N,moneyUnit:S,commafy:I,openValue:A,openLabel:O,closeValue:M,closeLabel:R,bill:T}=o,x={date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",month:"yyyy-MM",week:"yyyy-MM-dd",year:"yyyy"};if("$vRowCell"===n){let e=r[t+"field"]||t;s=r[e+"RenderName"]||"$vInput"}else s=n;switch(s){case"$vInput":switch(g&&(e=c.calculate(g,r)),["integer","number","float"].includes(m)&&!c.isNone(e)&&(c.isNumber(+d)&&+e>+d?(e=+d,f=!0):c.isNumber(+h)&&+e<+h&&(e=+h,f=!0)),m){case"integer":i=e||0===e?c.toInteger(e):"";break;case"number":case"float":i=e||0===e?c.truncate(e,y):"";break;default:i=e;break}i=c.replaceNutrim(i),u=i;break;case"$vTime":w=w?w.replace("YYYY","yyyy").replace("DD","dd").replace("hh","HH"):x[m],c.isNumber(e)&&(e=String(e)),i=w?e?c.toDateString(e,w):"":e,i=c.replaceNutrim(i),c.isDate(e)&&c.set(r,t,i),u=i;break;case"$vTextArea":case"$vCheckbox":case"$vRadio":case"$vHref":i=c.replaceNutrim(e),u=i;break;case"$vSelect":if(v){let t=Array.isArray(e)?e:e?e.split(b).filter((e=>e&&"undefined"!==e)):[],r=t.map((e=>E.find((t=>String(t.value)===String(e))).label||""));u=r.join(b),i=t}else{let t=E.find((t=>String(t.value)===String(e)));u=t?t.label:"",i=e}break;case"$vTree":let n=t.endsWith("Id")?String(t).replace("Id",""):t;if(v){let t=Array.isArray(e)?e:e?e.split(b).filter((e=>e&&"undefined"!==e)):[];if(E&&E.length>0){let e=t.map((e=>E.find((t=>String(t[N])===String(e))).label||""));u=e.join(b)}i=t}else{if(E&&E.length>0){let t=E.find((t=>String(t[N])===String(e)));u=t?t.label:""}i=e?[e]:[]}if(w){let e=w.replace(/@/gi,n);u=c.format(e,r)}break;case"$vProgress":i=e||0===e?c.truncate(e,y):"",u=i;break;case"$vSwitch":i=c.replaceNutrim(e),String(i)===A?u=O:String(i)===M&&(u=R);break;case"$vMoney":g&&(e=c.calculate(g,r)),c.isNone(e)||(c.isNumber(+d)&&+e>+d?(e=+d,f=!0):c.isNumber(+h)&&+e<+h&&(e=+h,f=!0)),i=e||0===e?"integer"!==m?c.truncate(e,y):c.toInteger(e):"",i=c.replaceNutrim(i),u=""!==i?c.truncate(c.divide(i,S),y):"",I&&!T&&"0"!==T&&(u=c.commafy(u,{digits:y}));break;case"$vCheckgroup":let o=Array.isArray(e)?e:e?e.split(b).filter((e=>e&&"undefined"!==e)):[],a=o.map((e=>E.find((t=>String(t.value)===String(e))).label||""));u=a.join(b),i=o;break;case"$vRadiogroup":let s=E.find((t=>String(t.value)===String(e)));u=s?s.label:"",i=e;break;case"$vUpload":i=Array.isArray(e)?e:e.split(b).filter((e=>e&&"undefined"!==e));break;case"$vCode":i=e,u=e;break;default:break}return g&&c.set(r,t,i),{rvalue:i,rtext:u}}},ar={isValUsername(e){const t=/^\S*$/;return e?t.test(e)?e.length>16?new Error("请输入不超过16位用户账号"):!(e.length<6)||new Error("请输入大于6位用户账号"):new Error("用户名内不能包含空格"):new Error("用户名不能为空")},isValUserRealname(e){const t=/^[\u4e00-\u9fa5]*$/;return e?e.length<2?new Error("请输入大于2位用户姓名"):!!t.test(e)||new Error("姓名请输入汉字"):new Error("姓名不能为空")},isValPassword(e){const t=/^\S*$/;return e?t.test(e)?e.length>16?new Error("请输入不超过16位密码"):!(e.length<6)||new Error("请输入大于6位用户密码"):new Error("密码不能包含空格"):new Error("密码不能为空")},isValMobile(e){const t=/^1[0-9]{10}$/;return e?!!t.test(e)||new Error("请输入正确的联系方式"):new Error("联系方式不能为空")},isValQq(e){const t=/^[1-9][0-9]{4,10}$/;return e?!!t.test(e)||new Error("请输入正确的QQ号"):new Error("QQ号不能为空")},isValIdCode(e){const t=/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;return e?!!t.test(e)||new Error("请输入真实身份证!"):new Error("身份证号不能为空")},isValEmail(e){const t=/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;return e?!!t.test(e)||new Error("请输入正确的邮箱"):new Error("邮箱不能为空")},isValPostcode(e){const t=/^[0-9]{6}$/;return e?!!t.test(e)||new Error("请输入正确的邮编"):new Error("邮编不能为空")},isValMoney(e){const t=/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;return e?!!t.test(e)||new Error("请输入正确的金额!"):new Error("金额不能为空")},isValNumber(e){const t=/^[0-9]*[1-9][0-9]*$/;return e?!(!t.test(e)&&0!==Number(e))||new Error("请输入正整数"):new Error("请输入数字")},isValNumletter(e){const t=/^[0-9a-zA-Z]*$/;return e?!!t.test(e)||new Error("请输入数字或字母"):new Error("请输入")},isValChinese(e){const t=/^[\u4e00-\u9fa5]*$/;return e?!!t.test(e)||new Error("请输入汉字"):new Error("请输入")},isValEmpty(e){return!!e||new Error("请输入")}},ir={numberReg(){return{number:/^[0-9]*$/,numberX:/^\d{n}$/,numberMinx:/^\d{n,}$/,numberMn:/^\d{m,n}$/,numberFloat:/^(-)?\d+(\.\d{1,2})$/,numberC:/^(-|\+)?\d+(\.\d+)?$/,numberFloatZ:/^[0-9]+(\.[0-9]{2})?$/,numberZhengZ:/^\+?[1-9][0-9]*$/,numberZhengF:/^-[1-9]\d*$/,numberFix:/^(-?\d+)(\.\d+)?$/,numberFixZ:/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$/,numberFixF:/^-([1-9]\d*\.\d*|0\.\d*[1-9]\d*)$/}},stringReg(){return{stringChinese:/^[\u4e00-\u9fa5]{0,}$/i,stringEngNum:/^[A-Za-z0-9]+$/i,stringMn:/^.{3,20}$/i,stringEng:/^[A-Za-z]+$/i,stringEngUp:/^[A-Z]+$/i,stringEngLow:/^[a-z]+$/i}},mainReg(){return{email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,www:/^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/,url:/^http[s]{0,1}:\/\/.+$/,phone:/^1(?:3\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\d|9\d)\d{8}$/,tel:/^([0-9]{3,4}-)?[0-9]{7,8}$/,telphone:/^(1(?:3\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\d|9\d)\d{8})|(([0-9]{3,4}-)?[0-9]{7,8})$/,idcard:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,postcode:/^[1-9]\d{5}(?!\d)$/,qq:/^(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)$/,space:/(^\s*)|(\s*$)/g,spaceAll:/^\s+|\s+$/g}}};c().setup({}),c().mixin({...Tt,...d,...xt,...zt,...nr,...or,...ar,...ir});const ur=c()})(),n})()));
|