@spacego/turbo-utils 0.0.1-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +30 -0
  2. package/lib/cjs/_virtual/_commonjsHelpers.js +1 -0
  3. package/lib/cjs/_virtual/dayjs.min.js +1 -0
  4. package/lib/cjs/_virtual/dayjs.min2.js +1 -0
  5. package/lib/cjs/calc/calc.js +1 -0
  6. package/lib/cjs/calc/index.js +1 -0
  7. package/lib/cjs/day/dayjs.js +1 -0
  8. package/lib/cjs/index.js +1 -0
  9. package/lib/cjs/is/is-empty.js +1 -0
  10. package/lib/cjs/is/is-equals.js +1 -0
  11. package/lib/cjs/is/is.js +1 -0
  12. package/lib/cjs/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js +1 -0
  13. package/lib/cjs/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +7 -0
  14. package/lib/cjs/utils/deep-clone.js +1 -0
  15. package/lib/cjs/utils/pick.js +1 -0
  16. package/lib/cjs/utils/query2params.js +1 -0
  17. package/lib/cjs/utils/util.js +1 -0
  18. package/lib/cjs/utils/uuid.js +1 -0
  19. package/lib/cjs/validator/validate.js +1 -0
  20. package/lib/cjs/validator/validator.js +1 -0
  21. package/lib/es/_virtual/_commonjsHelpers.js +6 -0
  22. package/lib/es/_virtual/dayjs.min.js +7 -0
  23. package/lib/es/_virtual/dayjs.min2.js +4 -0
  24. package/lib/es/calc/calc.js +49 -0
  25. package/lib/es/calc/index.js +13 -0
  26. package/lib/es/day/dayjs.js +105 -0
  27. package/lib/es/index.js +76 -0
  28. package/lib/es/is/is-empty.js +6 -0
  29. package/lib/es/is/is-equals.js +28 -0
  30. package/lib/es/is/is.js +58 -0
  31. package/lib/es/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js +282 -0
  32. package/lib/es/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
  33. package/lib/es/utils/deep-clone.js +11 -0
  34. package/lib/es/utils/pick.js +11 -0
  35. package/lib/es/utils/query2params.js +58 -0
  36. package/lib/es/utils/util.js +71 -0
  37. package/lib/es/utils/uuid.js +15 -0
  38. package/lib/es/validator/validate.js +22 -0
  39. package/lib/es/validator/validator.js +84 -0
  40. package/lib/types/calc/calc.d.ts +38 -0
  41. package/lib/types/calc/index.d.ts +18 -0
  42. package/lib/types/day/dayjs.d.ts +62 -0
  43. package/lib/types/day/index.d.ts +2 -0
  44. package/lib/types/index.d.ts +5 -0
  45. package/lib/types/is/index.d.ts +3 -0
  46. package/lib/types/is/is-empty.d.ts +14 -0
  47. package/lib/types/is/is-equals.d.ts +11 -0
  48. package/lib/types/is/is.d.ts +14 -0
  49. package/lib/types/utils/classnames.d.ts +19 -0
  50. package/lib/types/utils/deep-clone.d.ts +9 -0
  51. package/lib/types/utils/index.d.ts +6 -0
  52. package/lib/types/utils/pick.d.ts +11 -0
  53. package/lib/types/utils/query2params.d.ts +56 -0
  54. package/lib/types/utils/util.d.ts +71 -0
  55. package/lib/types/utils/uuid.d.ts +13 -0
  56. package/lib/types/validator/index.d.ts +2 -0
  57. package/lib/types/validator/validate.d.ts +46 -0
  58. package/lib/types/validator/validator.d.ts +71 -0
  59. package/package.json +53 -0
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @spacego/turbo-utils
2
+
3
+ `@spacego/turbo-utils` 是一个完全基于 `typescript` 的工具库,提供了一些常用的工具函数等。
4
+
5
+ ## ✨ Features
6
+
7
+ - Easy to learn and use.
8
+ - Contains common hooks and encapsulates common apis.
9
+ - Written in TypeScript with predictable static types.
10
+ - High performance.
11
+
12
+ ## 📦 Install
13
+
14
+ ```bash
15
+ $ npm install --save @spacego/turbo-utils
16
+ # or
17
+ $ pnpm add @spacego/turbo-utils `推荐`
18
+ # or
19
+ $ yarn add @spacego/turbo-utils
20
+ ```
21
+
22
+ ## 🔨 Usage
23
+
24
+ ```ts
25
+ import { padQuery, pick, deepClone, uuid ... } from '@spacego/turbo-utils';
26
+ ```
27
+
28
+ ## 🚀 API
29
+
30
+ ...
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.js"),r=require("../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js");var t=r.__require();const s=e.getDefaultExportFromCjs(t);exports.default=s;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js"),l={add:function(t,e){return new i.Decimal(t).add(new i.Decimal(e)).toNumber()},subtract:function(t,e){return new i.Decimal(t).sub(new i.Decimal(e)).toNumber()},multiply:function(t,e){return new i.Decimal(t).mul(new i.Decimal(e)).toNumber()},divide:function(t,e){return new i.Decimal(t).div(new i.Decimal(e)).toNumber()},saveCeilFloat:(t,e=2)=>l.divide(Math.ceil(l.multiply(t,Math.pow(10,e))),Math.pow(10,e)).toFixedNew(e)};exports.default=l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./calc.js"),i=require("../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js");Number.prototype.toFixedNew=function(t){let e=this;return e<0?(e=e*-1,(Math.round(o.default.multiply(e,Math.pow(10,t)))/Math.pow(10,t)*-1).toFixed(t)):(Math.round(o.default.multiply(e,Math.pow(10,t)))/Math.pow(10,t)).toFixed(t)};Number.prototype.countDecimals=function(){return Math.floor(this.valueOf())===this.valueOf()?0:this.toString().split(".")[1].length||0};exports.calc=o.default;exports.Decimal=i.Decimal;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../_virtual/dayjs.min.js");require("../calc/index.js");const c=require("../utils/util.js");function m(r){return r.replace(/\-/g,"/")}function d(r,e){const t=l.default(r);e===void 0&&(e="yyyy-MM-dd HH:mm:ss");const a={"M+":t.month()+1,"d+":t.date(),"h+":t.hour()%12===0?12:t.hour()%12,"H+":t.hour(),"m+":t.minute(),"s+":t.second(),"q+":Math.floor((t.month()+3)/3),S:t.millisecond()},o={0:"日",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六"};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.year()+"").substr(4-RegExp.$1.length))),/(E+)/.test(e)&&(e=e.replace(RegExp.$1,(RegExp.$1.length>1?RegExp.$1.length>2?"星期":"周":"")+o[t.day()+""]));for(const n in a)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,RegExp.$1.length===1?a[n]:("00"+a[n]).substr((""+a[n]).length)));return e}const i=["日","一","二","三","四","五","六"];function f(r){const e=l.default(r),t={y:e.year()+"",m:e.month()+1+"",d:e.date()+"",h:e.hour()+"",mm:e.minute()+"",ss:e.second()+"",w:i[e.day()]};for(const a in t)Object.hasOwnProperty.call(t,a)&&!["y","w"].includes(a)&&(t[a]=c.padZero(t[a]));return t}function g(r){const e=l.default(r).valueOf(),t=l.default().valueOf(),a=t-e;if(a<0)return"未来的时间";const o=[{label:"年",value:365*24*60*60*1e3},{label:"月",value:720*60*60*1e3},{label:"周",value:10080*60*1e3},{label:"天",value:1440*60*1e3},{label:"小时",value:3600*1e3},{label:"分钟",value:60*1e3},{label:"刚刚",value:10*1e3}];if(a<o[o.length-1].value)return"刚刚";for(const{label:n,value:u}of o.slice(0,-1)){const s=a/u;if(s>=1)return n==="天"&&s<2?s===1?"昨天":"今天":`${Math.floor(s)} ${n}前`}return"刚刚"}function D(r,e){if(!r)return"";const t=l.default(r),{m:a,d:o,w:n}=f(r);if(e){const u=l.default(e);return t.format("YYYY-MM-DD")===u.format("YYYY-MM-DD")?`${a}月${o}日 周${n} ${t.format("HH:mm")}-${u.format("HH:mm")}`:`${t.format("MM月DD日 HH:mm")} - ${u.format("MM月DD日 HH:mm")}`}else return`${a}月${o}日 周${n} ${t.format("HH:mm")}`}exports.WEEK_DAY=i;exports.formatActivityTime=D;exports.formatDate=d;exports.formatIosDate=m;exports.getDateDiff=g;exports.getDateParams=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./calc/index.js");const a=require("./day/dayjs.js"),o=require("./_virtual/dayjs.min.js"),e=require("./is/is.js"),l=require("./is/is-empty.js"),u=require("./is/is-equals.js"),t=require("./validator/validate.js"),i=require("./validator/validator.js"),d=require("./utils/deep-clone.js"),c=require("./utils/pick.js"),s=require("./utils/query2params.js"),r=require("./utils/util.js"),n=require("./utils/uuid.js"),m=require("./calc/calc.js"),p=require("./node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js");exports.WEEK_DAY=a.WEEK_DAY;exports.formatActivityTime=a.formatActivityTime;exports.formatDate=a.formatDate;exports.formatIosDate=a.formatIosDate;exports.getDateDiff=a.getDateDiff;exports.getDateParams=a.getDateParams;exports.dayjs=o.default;exports.isArray=e.isArray;exports.isBoolean=e.isBoolean;exports.isDate=e.isDate;exports.isFile=e.isFile;exports.isFunction=e.isFunction;exports.isMap=e.isMap;exports.isNull=e.isNull;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isPromise=e.isPromise;exports.isRegExp=e.isRegExp;exports.isSet=e.isSet;exports.isString=e.isString;exports.isUndefined=e.isUndefined;exports.isEmpty=l.default;exports.isEquals=u.default;exports.validate=t.validate;exports.validateRequire=t.validateRequire;exports.isCard=i.isCard;exports.isCurrency=i.isCurrency;exports.isEmail=i.isEmail;exports.isIdCard=i.isIdCard;exports.isMobile=i.isMobile;exports.isPassport=i.isPassport;exports.isUrl=i.isUrl;exports.maxLength=i.maxLength;exports.minLength=i.minLength;exports.regs=i.regs;exports.required=i.required;exports.validateType=i.validateType;exports.validation=i.validation;exports.deepClone=d.deepClone;exports.pick=c.pick;exports.filterParams=s.filterParams;exports.filterQuery=s.filterQuery;exports.filtrationEmpty=s.filtrationEmpty;exports.getUrlParam=s.getUrlParam;exports.json2params=s.json2params;exports.padQuery=s.padQuery;exports.params2json=s.params2json;exports.ObjectAssign=r.ObjectAssign;exports.browser=r.browser;exports.calculateDistance=r.calculateDistance;exports.encryptString=r.encryptString;exports.isClient=r.isClient;exports.isSSR=r.isSSR;exports.padZero=r.padZero;exports.thousands=r.thousands;exports.randomString=n.randomString;exports.uuid=n.uuid;exports.calc=m.default;exports.Decimal=p.Decimal;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(t){return!!(t==null||typeof t=="string"&&t.trim()===""||Array.isArray(t)&&t.length===0||typeof t=="object"&&Object.keys(t).length===0||typeof t=="number"&&t===0||typeof t>"u"||t instanceof Map&&t.size===0||t instanceof Set&&t.size===0)}exports.default=r;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function f(r,t){if(r===t)return!0;if(r===null||t===null)return!1;if(Array.isArray(r)&&Array.isArray(t)){if(r.length!==t.length)return!1;for(let e=0;e<r.length;e++)if(!f(r[e],t[e]))return!1;return!0}if(typeof r!="object"||typeof t!="object")return!1;const n=Object.getOwnPropertyNames(r),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){const s=n[e];if(!f(r[s],t[s]))return!1}return!0}exports.default=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return Object.prototype.toString.call(t)==="[object Number]"}function o(t){return Object.prototype.toString.call(t)==="[object String]"}function n(t){return Object.prototype.toString.call(t)==="[object Boolean]"}function r(t){return Object.prototype.toString.call(t)==="[object Null]"}function i(t){return Object.prototype.toString.call(t)==="[object Undefined]"}function c(t){return Object.prototype.toString.call(t)==="[object Object]"}function l(t){return Object.prototype.toString.call(t)==="[object Array]"}function u(t){return Object.prototype.toString.call(t)==="[object Function]"}function b(t){return Object.prototype.toString.call(t)==="[object Date]"}function p(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function s(t){return Object.prototype.toString.call(t)==="[object Promise]"}function j(t){return Object.prototype.toString.call(t)==="[object Set]"}function a(t){return Object.prototype.toString.call(t)==="[object Map]"}function g(t){return Object.prototype.toString.call(t)==="[object File]"}exports.isArray=l;exports.isBoolean=n;exports.isDate=b;exports.isFile=g;exports.isFunction=u;exports.isMap=a;exports.isNull=r;exports.isNumber=e;exports.isObject=c;exports.isPromise=s;exports.isRegExp=p;exports.isSet=j;exports.isString=o;exports.isUndefined=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../../../../_virtual/dayjs.min2.js");var G=C.__module.exports,V;function K(){return V||(V=1,(function(P,X){(function(A,k){P.exports=k()})(G,(function(){var A=1e3,k=6e4,U=36e5,I="millisecond",p="second",_="minute",w="hour",M="day",H="week",m="month",F="quarter",y="year",O="date",J="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var n=["th","st","nd","rd"],t=i%100;return"["+i+(n[(t-20)%10]||n[t]||n[0])+"]"}},q=function(i,n,t){var r=String(i);return!r||r.length>=n?i:""+Array(n+1-r.length).join(t)+i},R={s:q,z:function(i){var n=-i.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+q(r,2,"0")+":"+q(e,2,"0")},m:function i(n,t){if(n.date()<t.date())return-i(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),s=t-e<0,u=n.clone().add(r+(s?-1:1),m);return+(-(r+(t-e)/(s?e-u:u-e))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:m,y,w:H,d:M,D:O,h:w,m:_,s:p,ms:I,Q:F}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},x="en",D={};D[x]=Q;var Z="$isDayjsObject",N=function(i){return i instanceof L||!(!i||!i[Z])},j=function i(n,t,r){var e;if(!n)return x;if(typeof n=="string"){var s=n.toLowerCase();D[s]&&(e=s),t&&(D[s]=t,e=s);var u=n.split("-");if(!e&&u.length>1)return i(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(i,n){if(N(i))return i.clone();var t=typeof n=="object"?n:{};return t.date=i,t.args=arguments,new L(t)},a=R;a.l=j,a.i=N,a.w=function(i,n){return f(i,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=(function(){function i(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=i.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,s=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return s?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,s=!!a.u(r)||r,u=a.p(t),o=function(S,$){var v=a.w(e.$u?Date.UTC(e.$y,$,S):new Date(e.$y,$,S),e);return s?v:v.endOf(M)},c=function(S,$){return a.w(e.toDate()[S].apply(e.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,l=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case y:return s?o(1,0):o(31,11);case m:return s?o(1,d):o(0,d+1);case H:var g=this.$locale().weekStart||0,T=(h<g?h+7:h)-g;return o(s?l-T:l+(6-T),d);case M:case O:return c(b+"Hours",0);case w:return c(b+"Minutes",1);case _:return c(b+"Seconds",2);case p:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,s=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[y]=u+"FullYear",e[w]=u+"Hours",e[_]=u+"Minutes",e[p]=u+"Seconds",e[I]=u+"Milliseconds",e)[s],c=s===M?this.$D+(r-this.$W):r;if(s===m||s===y){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,s=this;t=Number(t);var u=a.p(r),o=function(d){var l=f(s);return a.w(l.date(l.date()+Math.round(d*t)),s)};if(u===m)return this.set(m,this.$M+t);if(u===y)return this.set(y,this.$y+t);if(u===M)return o(1);if(u===H)return o(7);var c=(e={},e[_]=k,e[w]=U,e[p]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var s=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,l=e.months,b=e.meridiem,g=function($,v,Y,W){return $&&($[v]||$(r,s))||Y[v].slice(0,W)},T=function($){return a.s(o%12||12,$,"0")},S=b||function($,v,Y){var W=$<12?"AM":"PM";return Y?W.toLowerCase():W};return s.replace(E,(function($,v){return v||(function(Y){switch(Y){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,l,3);case"MMMM":return g(l,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return S(o,c,!0);case"A":return S(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null})($)||u.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var s,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*k,d=this-c,l=function(){return a.m(u,c)};switch(o){case y:s=l()/12;break;case m:s=l();break;case F:s=l()/3;break;case H:s=(d-h)/6048e5;break;case M:s=(d-h)/864e5;break;case w:s=d/U;break;case _:s=d/k;break;case p:s=d/A;break;default:s=d}return e?s:a.a(s)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),s=j(t,r,!0);return s&&(e.$L=s),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},i})(),z=L.prototype;return f.prototype=z,[["$ms",I],["$s",p],["$m",_],["$H",w],["$W",M],["$M",m],["$y",y],["$D",O]].forEach((function(i){z[i[1]]=function(n){return this.$g(n,i[0],i[1])}})),f.extend=function(i,n){return i.$i||(i(n,L,f),i.$i=!0),f},f.locale=j,f.isDayjs=N,f.unix=function(i){return f(1e3*i)},f.en=D[x],f.Ls=D,f.p={},f}))})(C.__module)),C.__module.exports}exports.__require=K;
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});/*!
2
+ * decimal.js v10.6.0
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */var $=9e15,V=1e9,fe="0123456789abcdef",y="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ee="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ce={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$,maxE:$,crypto:!1},we,U,m=!0,ne="[DecimalError] ",H=ne+"Invalid argument: ",me=ne+"Precision limit exceeded",Ne=ne+"crypto unavailable",ve="[object Decimal]",L=Math.floor,C=Math.pow,Ae=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Le=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Fe=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Ee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_=1e7,w=7,Oe=9007199254740991,De=y.length-1,le=ee.length-1,d={toStringTag:ve};d.absoluteValue=d.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),p(e)};d.ceil=function(){return p(new this.constructor(this),this.e+1,2)};d.clampedTo=d.clamp=function(e,i){var n,r=this,s=r.constructor;if(e=new s(e),i=new s(i),!e.s||!i.s)return new s(NaN);if(e.gt(i))throw Error(H+i);return n=r.cmp(e),n<0?e:r.cmp(i)>0?i:new s(r)};d.comparedTo=d.cmp=function(e){var i,n,r,s,t=this,o=t.d,u=(e=new t.constructor(e)).d,c=t.s,f=e.s;if(!o||!u)return!c||!f?NaN:c!==f?c:o===u?0:!o^c<0?1:-1;if(!o[0]||!u[0])return o[0]?c:u[0]?-f:0;if(c!==f)return c;if(t.e!==e.e)return t.e>e.e^c<0?1:-1;for(r=o.length,s=u.length,i=0,n=r<s?r:s;i<n;++i)if(o[i]!==u[i])return o[i]>u[i]^c<0?1:-1;return r===s?0:r>s^c<0?1:-1};d.cosine=d.cos=function(){var e,i,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,i=r.rounding,r.precision=e+Math.max(n.e,n.sd())+w,r.rounding=1,n=Ie(r,Se(r,n)),r.precision=e,r.rounding=i,p(U==2||U==3?n.neg():n,e,i,!0)):new r(1):new r(NaN)};d.cubeRoot=d.cbrt=function(){var e,i,n,r,s,t,o,u,c,f,l=this,a=l.constructor;if(!l.isFinite()||l.isZero())return new a(l);for(m=!1,t=l.s*C(l.s*l,1/3),!t||Math.abs(t)==1/0?(n=S(l.d),e=l.e,(t=(e-n.length+1)%3)&&(n+=t==1||t==-2?"0":"00"),t=C(n,1/3),e=L((e+1)/3)-(e%3==(e<0?-1:2)),t==1/0?n="5e"+e:(n=t.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new a(n),r.s=l.s):r=new a(t.toString()),o=(e=a.precision)+3;;)if(u=r,c=u.times(u).times(u),f=c.plus(l),r=k(f.plus(l).times(u),f.plus(c),o+2,1),S(u.d).slice(0,o)===(n=S(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n=="9999"||!s&&n=="4999"){if(!s&&(p(u,e+1,0),u.times(u).times(u).eq(l))){r=u;break}o+=4,s=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(p(r,e+1,1),i=!r.times(r).times(r).eq(l));break}return m=!0,p(r,e,a.rounding,i)};d.decimalPlaces=d.dp=function(){var e,i=this.d,n=NaN;if(i){if(e=i.length-1,n=(e-L(this.e/w))*w,e=i[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};d.dividedBy=d.div=function(e){return k(this,new this.constructor(e))};d.dividedToIntegerBy=d.divToInt=function(e){var i=this,n=i.constructor;return p(k(i,new n(e),0,1,1),n.precision,n.rounding)};d.equals=d.eq=function(e){return this.cmp(e)===0};d.floor=function(){return p(new this.constructor(this),this.e+1,3)};d.greaterThan=d.gt=function(e){return this.cmp(e)>0};d.greaterThanOrEqualTo=d.gte=function(e){var i=this.cmp(e);return i==1||i===0};d.hyperbolicCosine=d.cosh=function(){var e,i,n,r,s,t=this,o=t.constructor,u=new o(1);if(!t.isFinite())return new o(t.s?1/0:NaN);if(t.isZero())return u;n=o.precision,r=o.rounding,o.precision=n+Math.max(t.e,t.sd())+4,o.rounding=1,s=t.d.length,s<32?(e=Math.ceil(s/3),i=(1/te(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),t=G(o,1,t.times(i),new o(1),!0);for(var c,f=e,l=new o(8);f--;)c=t.times(t),t=u.minus(c.times(l.minus(c.times(l))));return p(t,o.precision=n,o.rounding=r,!0)};d.hyperbolicSine=d.sinh=function(){var e,i,n,r,s=this,t=s.constructor;if(!s.isFinite()||s.isZero())return new t(s);if(i=t.precision,n=t.rounding,t.precision=i+Math.max(s.e,s.sd())+4,t.rounding=1,r=s.d.length,r<3)s=G(t,2,s,s,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,s=s.times(1/te(5,e)),s=G(t,2,s,s,!0);for(var o,u=new t(5),c=new t(16),f=new t(20);e--;)o=s.times(s),s=s.times(u.plus(o.times(c.times(o).plus(f))))}return t.precision=i,t.rounding=n,p(s,i,n,!0)};d.hyperbolicTangent=d.tanh=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+7,r.rounding=1,k(n.sinh(),n.cosh(),r.precision=e,r.rounding=i)):new r(n.s)};d.inverseCosine=d.acos=function(){var e=this,i=e.constructor,n=e.abs().cmp(1),r=i.precision,s=i.rounding;return n!==-1?n===0?e.isNeg()?T(i,r,s):new i(0):new i(NaN):e.isZero()?T(i,r+4,s).times(.5):(i.precision=r+6,i.rounding=1,e=new i(1).minus(e).div(e.plus(1)).sqrt().atan(),i.precision=r,i.rounding=s,e.times(2))};d.inverseHyperbolicCosine=d.acosh=function(){var e,i,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,i=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,m=!1,n=n.times(n).minus(1).sqrt().plus(n),m=!0,r.precision=e,r.rounding=i,n.ln()):new r(n)};d.inverseHyperbolicSine=d.asinh=function(){var e,i,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,m=!1,n=n.times(n).plus(1).sqrt().plus(n),m=!0,r.precision=e,r.rounding=i,n.ln())};d.inverseHyperbolicTangent=d.atanh=function(){var e,i,n,r,s=this,t=s.constructor;return s.isFinite()?s.e>=0?new t(s.abs().eq(1)?s.s/0:s.isZero()?s:NaN):(e=t.precision,i=t.rounding,r=s.sd(),Math.max(r,e)<2*-s.e-1?p(new t(s),e,i,!0):(t.precision=n=r-s.e,s=k(s.plus(1),new t(1).minus(s),n+e,1),t.precision=e+4,t.rounding=1,s=s.ln(),t.precision=e,t.rounding=i,s.times(.5))):new t(NaN)};d.inverseSine=d.asin=function(){var e,i,n,r,s=this,t=s.constructor;return s.isZero()?new t(s):(i=s.abs().cmp(1),n=t.precision,r=t.rounding,i!==-1?i===0?(e=T(t,n+4,r).times(.5),e.s=s.s,e):new t(NaN):(t.precision=n+6,t.rounding=1,s=s.div(new t(1).minus(s.times(s)).sqrt().plus(1)).atan(),t.precision=n,t.rounding=r,s.times(2)))};d.inverseTangent=d.atan=function(){var e,i,n,r,s,t,o,u,c,f=this,l=f.constructor,a=l.precision,h=l.rounding;if(f.isFinite()){if(f.isZero())return new l(f);if(f.abs().eq(1)&&a+4<=le)return o=T(l,a+4,h).times(.25),o.s=f.s,o}else{if(!f.s)return new l(NaN);if(a+4<=le)return o=T(l,a+4,h).times(.5),o.s=f.s,o}for(l.precision=u=a+10,l.rounding=1,n=Math.min(28,u/w+2|0),e=n;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(m=!1,i=Math.ceil(u/w),r=1,c=f.times(f),o=new l(f),s=f;e!==-1;)if(s=s.times(c),t=o.minus(s.div(r+=2)),s=s.times(c),o=t.plus(s.div(r+=2)),o.d[i]!==void 0)for(e=i;o.d[e]===t.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),m=!0,p(o,l.precision=a,l.rounding=h,!0)};d.isFinite=function(){return!!this.d};d.isInteger=d.isInt=function(){return!!this.d&&L(this.e/w)>this.d.length-2};d.isNaN=function(){return!this.s};d.isNegative=d.isNeg=function(){return this.s<0};d.isPositive=d.isPos=function(){return this.s>0};d.isZero=function(){return!!this.d&&this.d[0]===0};d.lessThan=d.lt=function(e){return this.cmp(e)<0};d.lessThanOrEqualTo=d.lte=function(e){return this.cmp(e)<1};d.logarithm=d.log=function(e){var i,n,r,s,t,o,u,c,f=this,l=f.constructor,a=l.precision,h=l.rounding,g=5;if(e==null)e=new l(10),i=!0;else{if(e=new l(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);i=e.eq(10)}if(n=f.d,f.s<0||!n||!n[0]||f.eq(1))return new l(n&&!n[0]?-1/0:f.s!=1?NaN:n?0:1/0);if(i)if(n.length>1)t=!0;else{for(s=n[0];s%10===0;)s/=10;t=s!==1}if(m=!1,u=a+g,o=B(f,u),r=i?ie(l,u+10):B(e,u),c=k(o,r,u,1),J(c.d,s=a,h))do if(u+=10,o=B(f,u),r=i?ie(l,u+10):B(e,u),c=k(o,r,u,1),!t){+S(c.d).slice(s+1,s+15)+1==1e14&&(c=p(c,a+1,0));break}while(J(c.d,s+=10,h));return m=!0,p(c,a,h)};d.minus=d.sub=function(e){var i,n,r,s,t,o,u,c,f,l,a,h,g=this,v=g.constructor;if(e=new v(e),!g.d||!e.d)return!g.s||!e.s?e=new v(NaN):g.d?e.s=-e.s:e=new v(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(f=g.d,h=e.d,u=v.precision,c=v.rounding,!f[0]||!h[0]){if(h[0])e.s=-e.s;else if(f[0])e=new v(g);else return new v(c===3?-0:0);return m?p(e,u,c):e}if(n=L(e.e/w),l=L(g.e/w),f=f.slice(),t=l-n,t){for(a=t<0,a?(i=f,t=-t,o=h.length):(i=h,n=l,o=f.length),r=Math.max(Math.ceil(u/w),o)+2,t>r&&(t=r,i.length=1),i.reverse(),r=t;r--;)i.push(0);i.reverse()}else{for(r=f.length,o=h.length,a=r<o,a&&(o=r),r=0;r<o;r++)if(f[r]!=h[r]){a=f[r]<h[r];break}t=0}for(a&&(i=f,f=h,h=i,e.s=-e.s),o=f.length,r=h.length-o;r>0;--r)f[o++]=0;for(r=h.length;r>t;){if(f[--r]<h[r]){for(s=r;s&&f[--s]===0;)f[s]=_-1;--f[s],f[r]+=_}f[r]-=h[r]}for(;f[--o]===0;)f.pop();for(;f[0]===0;f.shift())--n;return f[0]?(e.d=f,e.e=re(f,n),m?p(e,u,c):e):new v(c===3?-0:0)};d.modulo=d.mod=function(e){var i,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?p(new r(n),r.precision,r.rounding):(m=!1,r.modulo==9?(i=k(n,e.abs(),0,3,1),i.s*=e.s):i=k(n,e,0,r.modulo,1),i=i.times(e),m=!0,n.minus(i))};d.naturalExponential=d.exp=function(){return ae(this)};d.naturalLogarithm=d.ln=function(){return B(this)};d.negated=d.neg=function(){var e=new this.constructor(this);return e.s=-e.s,p(e)};d.plus=d.add=function(e){var i,n,r,s,t,o,u,c,f,l,a=this,h=a.constructor;if(e=new h(e),!a.d||!e.d)return!a.s||!e.s?e=new h(NaN):a.d||(e=new h(e.d||a.s===e.s?a:NaN)),e;if(a.s!=e.s)return e.s=-e.s,a.minus(e);if(f=a.d,l=e.d,u=h.precision,c=h.rounding,!f[0]||!l[0])return l[0]||(e=new h(a)),m?p(e,u,c):e;if(t=L(a.e/w),r=L(e.e/w),f=f.slice(),s=t-r,s){for(s<0?(n=f,s=-s,o=l.length):(n=l,r=t,o=f.length),t=Math.ceil(u/w),o=t>o?t+1:o+1,s>o&&(s=o,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for(o=f.length,s=l.length,o-s<0&&(s=o,n=l,l=f,f=n),i=0;s;)i=(f[--s]=f[s]+l[s]+i)/_|0,f[s]%=_;for(i&&(f.unshift(i),++r),o=f.length;f[--o]==0;)f.pop();return e.d=f,e.e=re(f,r),m?p(e,u,c):e};d.precision=d.sd=function(e){var i,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(H+e);return n.d?(i=ke(n.d),e&&n.e+1>i&&(i=n.e+1)):i=NaN,i};d.round=function(){var e=this,i=e.constructor;return p(new i(e),e.e+1,i.rounding)};d.sine=d.sin=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+Math.max(n.e,n.sd())+w,r.rounding=1,n=Te(r,Se(r,n)),r.precision=e,r.rounding=i,p(U>2?n.neg():n,e,i,!0)):new r(NaN)};d.squareRoot=d.sqrt=function(){var e,i,n,r,s,t,o=this,u=o.d,c=o.e,f=o.s,l=o.constructor;if(f!==1||!u||!u[0])return new l(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(m=!1,f=Math.sqrt(+o),f==0||f==1/0?(i=S(u),(i.length+c)%2==0&&(i+="0"),f=Math.sqrt(i),c=L((c+1)/2)-(c<0||c%2),f==1/0?i="5e"+c:(i=f.toExponential(),i=i.slice(0,i.indexOf("e")+1)+c),r=new l(i)):r=new l(f.toString()),n=(c=l.precision)+3;;)if(t=r,r=t.plus(k(o,t,n+2,1)).times(.5),S(t.d).slice(0,n)===(i=S(r.d)).slice(0,n))if(i=i.slice(n-3,n+1),i=="9999"||!s&&i=="4999"){if(!s&&(p(t,c+1,0),t.times(t).eq(o))){r=t;break}n+=4,s=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(p(r,c+1,1),e=!r.times(r).eq(o));break}return m=!0,p(r,c,l.rounding,e)};d.tangent=d.tan=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=k(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=i,p(U==2||U==4?n.neg():n,e,i,!0)):new r(NaN)};d.times=d.mul=function(e){var i,n,r,s,t,o,u,c,f,l=this,a=l.constructor,h=l.d,g=(e=new a(e)).d;if(e.s*=l.s,!h||!h[0]||!g||!g[0])return new a(!e.s||h&&!h[0]&&!g||g&&!g[0]&&!h?NaN:!h||!g?e.s/0:e.s*0);for(n=L(l.e/w)+L(e.e/w),c=h.length,f=g.length,c<f&&(t=h,h=g,g=t,o=c,c=f,f=o),t=[],o=c+f,r=o;r--;)t.push(0);for(r=f;--r>=0;){for(i=0,s=c+r;s>r;)u=t[s]+g[r]*h[s-r-1]+i,t[s--]=u%_|0,i=u/_|0;t[s]=(t[s]+i)%_|0}for(;!t[--o];)t.pop();return i?++n:t.shift(),e.d=t,e.e=re(t,n),m?p(e,a.precision,a.rounding):e};d.toBinary=function(e,i){return he(this,2,e,i)};d.toDecimalPlaces=d.toDP=function(e,i){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(O(e,0,V),i===void 0?i=r.rounding:O(i,0,8),p(n,e+n.e+1,i))};d.toExponential=function(e,i){var n,r=this,s=r.constructor;return e===void 0?n=R(r,!0):(O(e,0,V),i===void 0?i=s.rounding:O(i,0,8),r=p(new s(r),e+1,i),n=R(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n};d.toFixed=function(e,i){var n,r,s=this,t=s.constructor;return e===void 0?n=R(s):(O(e,0,V),i===void 0?i=t.rounding:O(i,0,8),r=p(new t(s),e+s.e+1,i),n=R(r,!1,e+r.e+1)),s.isNeg()&&!s.isZero()?"-"+n:n};d.toFraction=function(e){var i,n,r,s,t,o,u,c,f,l,a,h,g=this,v=g.d,N=g.constructor;if(!v)return new N(g);if(f=n=new N(1),r=c=new N(0),i=new N(r),t=i.e=ke(v)-g.e-1,o=t%w,i.d[0]=C(10,o<0?w+o:o),e==null)e=t>0?i:f;else{if(u=new N(e),!u.isInt()||u.lt(f))throw Error(H+u);e=u.gt(i)?t>0?i:f:u}for(m=!1,u=new N(S(v)),l=N.precision,N.precision=t=v.length*w*2;a=k(u,i,0,1,1),s=n.plus(a.times(r)),s.cmp(e)!=1;)n=r,r=s,s=f,f=c.plus(a.times(s)),c=s,s=i,i=u.minus(a.times(s)),u=s;return s=k(e.minus(n),r,0,1,1),c=c.plus(s.times(f)),n=n.plus(s.times(r)),c.s=f.s=g.s,h=k(f,r,t,1).minus(g).abs().cmp(k(c,n,t,1).minus(g).abs())<1?[f,r]:[c,n],N.precision=l,m=!0,h};d.toHexadecimal=d.toHex=function(e,i){return he(this,16,e,i)};d.toNearest=function(e,i){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),i=r.rounding}else{if(e=new r(e),i===void 0?i=r.rounding:O(i,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(m=!1,n=k(n,e,0,i,1).times(e),m=!0,p(n)):(e.s=n.s,n=e),n};d.toNumber=function(){return+this};d.toOctal=function(e,i){return he(this,8,e,i)};d.toPower=d.pow=function(e){var i,n,r,s,t,o,u=this,c=u.constructor,f=+(e=new c(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new c(C(+u,f));if(u=new c(u),u.eq(1))return u;if(r=c.precision,t=c.rounding,e.eq(1))return p(u,r,t);if(i=L(e.e/w),i>=e.d.length-1&&(n=f<0?-f:f)<=Oe)return s=Me(c,u,n,r),e.s<0?new c(1).div(s):p(s,r,t);if(o=u.s,o<0){if(i<e.d.length-1)return new c(NaN);if((e.d[i]&1)==0&&(o=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=o,u}return n=C(+u,f),i=n==0||!isFinite(n)?L(f*(Math.log("0."+S(u.d))/Math.LN10+u.e+1)):new c(n+"").e,i>c.maxE+1||i<c.minE-1?new c(i>0?o/0:0):(m=!1,c.rounding=u.s=1,n=Math.min(12,(i+"").length),s=ae(e.times(B(u,r+n)),r),s.d&&(s=p(s,r+5,1),J(s.d,r,t)&&(i=r+10,s=p(ae(e.times(B(u,i+n)),i),i+5,1),+S(s.d).slice(r+1,r+15)+1==1e14&&(s=p(s,r+1,0)))),s.s=o,m=!0,c.rounding=t,p(s,r,t))};d.toPrecision=function(e,i){var n,r=this,s=r.constructor;return e===void 0?n=R(r,r.e<=s.toExpNeg||r.e>=s.toExpPos):(O(e,1,V),i===void 0?i=s.rounding:O(i,0,8),r=p(new s(r),e,i),n=R(r,e<=r.e||r.e<=s.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n};d.toSignificantDigits=d.toSD=function(e,i){var n=this,r=n.constructor;return e===void 0?(e=r.precision,i=r.rounding):(O(e,1,V),i===void 0?i=r.rounding:O(i,0,8)),p(new r(n),e,i)};d.toString=function(){var e=this,i=e.constructor,n=R(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};d.truncated=d.trunc=function(){return p(new this.constructor(this),this.e+1,1)};d.valueOf=d.toJSON=function(){var e=this,i=e.constructor,n=R(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()?"-"+n:n};function S(e){var i,n,r,s=e.length-1,t="",o=e[0];if(s>0){for(t+=o,i=1;i<s;i++)r=e[i]+"",n=w-r.length,n&&(t+=b(n)),t+=r;o=e[i],r=o+"",n=w-r.length,n&&(t+=b(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return t+o}function O(e,i,n){if(e!==~~e||e<i||e>n)throw Error(H+e)}function J(e,i,n,r){var s,t,o,u;for(t=e[0];t>=10;t/=10)--i;return--i<0?(i+=w,s=0):(s=Math.ceil((i+1)/w),i%=w),t=C(10,w-i),u=e[s]%t|0,r==null?i<3?(i==0?u=u/100|0:i==1&&(u=u/10|0),o=n<4&&u==99999||n>3&&u==49999||u==5e4||u==0):o=(n<4&&u+1==t||n>3&&u+1==t/2)&&(e[s+1]/t/100|0)==C(10,i-2)-1||(u==t/2||u==0)&&(e[s+1]/t/100|0)==0:i<4?(i==0?u=u/1e3|0:i==1?u=u/100|0:i==2&&(u=u/10|0),o=(r||n<4)&&u==9999||!r&&n>3&&u==4999):o=((r||n<4)&&u+1==t||!r&&n>3&&u+1==t/2)&&(e[s+1]/t/1e3|0)==C(10,i-3)-1,o}function z(e,i,n){for(var r,s=[0],t,o=0,u=e.length;o<u;){for(t=s.length;t--;)s[t]*=i;for(s[0]+=fe.indexOf(e.charAt(o++)),r=0;r<s.length;r++)s[r]>n-1&&(s[r+1]===void 0&&(s[r+1]=0),s[r+1]+=s[r]/n|0,s[r]%=n)}return s.reverse()}function Ie(e,i){var n,r,s;if(i.isZero())return i;r=i.d.length,r<32?(n=Math.ceil(r/3),s=(1/te(4,n)).toString()):(n=16,s="2.3283064365386962890625e-10"),e.precision+=n,i=G(e,1,i.times(s),new e(1));for(var t=n;t--;){var o=i.times(i);i=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,i}var k=(function(){function e(r,s,t){var o,u=0,c=r.length;for(r=r.slice();c--;)o=r[c]*s+u,r[c]=o%t|0,u=o/t|0;return u&&r.unshift(u),r}function i(r,s,t,o){var u,c;if(t!=o)c=t>o?1:-1;else for(u=c=0;u<t;u++)if(r[u]!=s[u]){c=r[u]>s[u]?1:-1;break}return c}function n(r,s,t,o){for(var u=0;t--;)r[t]-=u,u=r[t]<s[t]?1:0,r[t]=u*o+r[t]-s[t];for(;!r[0]&&r.length>1;)r.shift()}return function(r,s,t,o,u,c){var f,l,a,h,g,v,N,F,q,D,E,P,j,Z,se,K,X,oe,I,Q,Y=r.constructor,ue=r.s==s.s?1:-1,A=r.d,M=s.d;if(!A||!A[0]||!M||!M[0])return new Y(!r.s||!s.s||(A?M&&A[0]==M[0]:!M)?NaN:A&&A[0]==0||!M?ue*0:ue/0);for(c?(g=1,l=r.e-s.e):(c=_,g=w,l=L(r.e/g)-L(s.e/g)),I=M.length,X=A.length,q=new Y(ue),D=q.d=[],a=0;M[a]==(A[a]||0);a++);if(M[a]>(A[a]||0)&&l--,t==null?(Z=t=Y.precision,o=Y.rounding):u?Z=t+(r.e-s.e)+1:Z=t,Z<0)D.push(1),v=!0;else{if(Z=Z/g+2|0,a=0,I==1){for(h=0,M=M[0],Z++;(a<X||h)&&Z--;a++)se=h*c+(A[a]||0),D[a]=se/M|0,h=se%M|0;v=h||a<X}else{for(h=c/(M[0]+1)|0,h>1&&(M=e(M,h,c),A=e(A,h,c),I=M.length,X=A.length),K=I,E=A.slice(0,I),P=E.length;P<I;)E[P++]=0;Q=M.slice(),Q.unshift(0),oe=M[0],M[1]>=c/2&&++oe;do h=0,f=i(M,E,I,P),f<0?(j=E[0],I!=P&&(j=j*c+(E[1]||0)),h=j/oe|0,h>1?(h>=c&&(h=c-1),N=e(M,h,c),F=N.length,P=E.length,f=i(N,E,F,P),f==1&&(h--,n(N,I<F?Q:M,F,c))):(h==0&&(f=h=1),N=M.slice()),F=N.length,F<P&&N.unshift(0),n(E,N,P,c),f==-1&&(P=E.length,f=i(M,E,I,P),f<1&&(h++,n(E,I<P?Q:M,P,c))),P=E.length):f===0&&(h++,E=[0]),D[a++]=h,f&&E[0]?E[P++]=A[K]||0:(E=[A[K]],P=1);while((K++<X||E[0]!==void 0)&&Z--);v=E[0]!==void 0}D[0]||D.shift()}if(g==1)q.e=l,we=v;else{for(a=1,h=D[0];h>=10;h/=10)a++;q.e=a+l*g-1,p(q,u?t+q.e+1:t,o,v)}return q}})();function p(e,i,n,r){var s,t,o,u,c,f,l,a,h,g=e.constructor;e:if(i!=null){if(a=e.d,!a)return e;for(s=1,u=a[0];u>=10;u/=10)s++;if(t=i-s,t<0)t+=w,o=i,l=a[h=0],c=l/C(10,s-o-1)%10|0;else if(h=Math.ceil((t+1)/w),u=a.length,h>=u)if(r){for(;u++<=h;)a.push(0);l=c=0,s=1,t%=w,o=t-w+1}else break e;else{for(l=u=a[h],s=1;u>=10;u/=10)s++;t%=w,o=t-w+s,c=o<0?0:l/C(10,s-o-1)%10|0}if(r=r||i<0||a[h+1]!==void 0||(o<0?l:l%C(10,s-o-1)),f=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(t>0?o>0?l/C(10,s-o):0:a[h-1])%10&1||n==(e.s<0?8:7)),i<1||!a[0])return a.length=0,f?(i-=e.e+1,a[0]=C(10,(w-i%w)%w),e.e=-i||0):a[0]=e.e=0,e;if(t==0?(a.length=h,u=1,h--):(a.length=h+1,u=C(10,w-t),a[h]=o>0?(l/C(10,s-o)%C(10,o)|0)*u:0),f)for(;;)if(h==0){for(t=1,o=a[0];o>=10;o/=10)t++;for(o=a[0]+=u,u=1;o>=10;o/=10)u++;t!=u&&(e.e++,a[0]==_&&(a[0]=1));break}else{if(a[h]+=u,a[h]!=_)break;a[h--]=0,u=1}for(t=a.length;a[--t]===0;)a.pop()}return m&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function R(e,i,n){if(!e.isFinite())return Ce(e);var r,s=e.e,t=S(e.d),o=t.length;return i?(n&&(r=n-o)>0?t=t.charAt(0)+"."+t.slice(1)+b(r):o>1&&(t=t.charAt(0)+"."+t.slice(1)),t=t+(e.e<0?"e":"e+")+e.e):s<0?(t="0."+b(-s-1)+t,n&&(r=n-o)>0&&(t+=b(r))):s>=o?(t+=b(s+1-o),n&&(r=n-s-1)>0&&(t=t+"."+b(r))):((r=s+1)<o&&(t=t.slice(0,r)+"."+t.slice(r)),n&&(r=n-o)>0&&(s+1===o&&(t+="."),t+=b(r))),t}function re(e,i){var n=e[0];for(i*=w;n>=10;n/=10)i++;return i}function ie(e,i,n){if(i>De)throw m=!0,n&&(e.precision=n),Error(me);return p(new e(y),i,1,!0)}function T(e,i,n){if(i>le)throw Error(me);return p(new e(ee),i,n,!0)}function ke(e){var i=e.length-1,n=i*w+1;if(i=e[i],i){for(;i%10==0;i/=10)n--;for(i=e[0];i>=10;i/=10)n++}return n}function b(e){for(var i="";e--;)i+="0";return i}function Me(e,i,n,r){var s,t=new e(1),o=Math.ceil(r/w+4);for(m=!1;;){if(n%2&&(t=t.times(i),pe(t.d,o)&&(s=!0)),n=L(n/2),n===0){n=t.d.length-1,s&&t.d[n]===0&&++t.d[n];break}i=i.times(i),pe(i.d,o)}return m=!0,t}function de(e){return e.d[e.d.length-1]&1}function qe(e,i,n){for(var r,s,t=new e(i[0]),o=0;++o<i.length;){if(s=new e(i[o]),!s.s){t=s;break}r=t.cmp(s),(r===n||r===0&&t.s===n)&&(t=s)}return t}function ae(e,i){var n,r,s,t,o,u,c,f=0,l=0,a=0,h=e.constructor,g=h.rounding,v=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(i==null?(m=!1,c=v):c=i,u=new h(.03125);e.e>-2;)e=e.times(u),a+=5;for(r=Math.log(C(2,a))/Math.LN10*2+5|0,c+=r,n=t=o=new h(1),h.precision=c;;){if(t=p(t.times(e),c,1),n=n.times(++l),u=o.plus(k(t,n,c,1)),S(u.d).slice(0,c)===S(o.d).slice(0,c)){for(s=a;s--;)o=p(o.times(o),c,1);if(i==null)if(f<3&&J(o.d,c-r,g,f))h.precision=c+=10,n=t=u=new h(1),l=0,f++;else return p(o,h.precision=v,g,m=!0);else return h.precision=v,o}o=u}}function B(e,i){var n,r,s,t,o,u,c,f,l,a,h,g=1,v=10,N=e,F=N.d,q=N.constructor,D=q.rounding,E=q.precision;if(N.s<0||!F||!F[0]||!N.e&&F[0]==1&&F.length==1)return new q(F&&!F[0]?-1/0:N.s!=1?NaN:F?0:N);if(i==null?(m=!1,l=E):l=i,q.precision=l+=v,n=S(F),r=n.charAt(0),Math.abs(t=N.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)N=N.times(e),n=S(N.d),r=n.charAt(0),g++;t=N.e,r>1?(N=new q("0."+n),t++):N=new q(r+"."+n.slice(1))}else return f=ie(q,l+2,E).times(t+""),N=B(new q(r+"."+n.slice(1)),l-v).plus(f),q.precision=E,i==null?p(N,E,D,m=!0):N;for(a=N,c=o=N=k(N.minus(1),N.plus(1),l,1),h=p(N.times(N),l,1),s=3;;){if(o=p(o.times(h),l,1),f=c.plus(k(o,new q(s),l,1)),S(f.d).slice(0,l)===S(c.d).slice(0,l))if(c=c.times(2),t!==0&&(c=c.plus(ie(q,l+2,E).times(t+""))),c=k(c,new q(g),l,1),i==null)if(J(c.d,l-v,D,u))q.precision=l+=v,f=o=N=k(a.minus(1),a.plus(1),l,1),h=p(N.times(N),l,1),s=u=1;else return p(c,q.precision=E,D,m=!0);else return q.precision=E,c;c=f,s+=2}}function Ce(e){return String(e.s*e.s/0)}function x(e,i){var n,r,s;for((n=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(n<0&&(n=r),n+=+i.slice(r+1),i=i.substring(0,r)):n<0&&(n=i.length),r=0;i.charCodeAt(r)===48;r++);for(s=i.length;i.charCodeAt(s-1)===48;--s);if(i=i.slice(r,s),i){if(s-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%w,n<0&&(r+=w),r<s){for(r&&e.d.push(+i.slice(0,r)),s-=w;r<s;)e.d.push(+i.slice(r,r+=w));i=i.slice(r),r=w-i.length}else r-=s;for(;r--;)i+="0";e.d.push(+i),m&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function _e(e,i){var n,r,s,t,o,u,c,f,l;if(i.indexOf("_")>-1){if(i=i.replace(/(\d)_(?=\d)/g,"$1"),Ee.test(i))return x(e,i)}else if(i==="Infinity"||i==="NaN")return+i||(e.s=NaN),e.e=NaN,e.d=null,e;if(Le.test(i))n=16,i=i.toLowerCase();else if(Ae.test(i))n=2;else if(Fe.test(i))n=8;else throw Error(H+i);for(t=i.search(/p/i),t>0?(c=+i.slice(t+1),i=i.substring(2,t)):i=i.slice(2),t=i.indexOf("."),o=t>=0,r=e.constructor,o&&(i=i.replace(".",""),u=i.length,t=u-t,s=Me(r,new r(n),t,t*2)),f=z(i,n,_),l=f.length-1,t=l;f[t]===0;--t)f.pop();return t<0?new r(e.s*0):(e.e=re(f,l),e.d=f,m=!1,o&&(e=k(e,s,u*4)),c&&(e=e.times(Math.abs(c)<54?C(2,c):W.pow(2,c))),m=!0,e)}function Te(e,i){var n,r=i.d.length;if(r<3)return i.isZero()?i:G(e,2,i,i);n=1.4*Math.sqrt(r),n=n>16?16:n|0,i=i.times(1/te(5,n)),i=G(e,2,i,i);for(var s,t=new e(5),o=new e(16),u=new e(20);n--;)s=i.times(i),i=i.times(t.plus(s.times(o.times(s).minus(u))));return i}function G(e,i,n,r,s){var t,o,u,c,f=e.precision,l=Math.ceil(f/w);for(m=!1,c=n.times(n),u=new e(r);;){if(o=k(u.times(c),new e(i++*i++),f,1),u=s?r.plus(o):r.minus(o),r=k(o.times(c),new e(i++*i++),f,1),o=u.plus(r),o.d[l]!==void 0){for(t=l;o.d[t]===u.d[t]&&t--;);if(t==-1)break}t=u,u=r,r=o,o=t}return m=!0,o.d.length=l+1,o}function te(e,i){for(var n=e;--i;)n*=e;return n}function Se(e,i){var n,r=i.s<0,s=T(e,e.precision,1),t=s.times(.5);if(i=i.abs(),i.lte(t))return U=r?4:1,i;if(n=i.divToInt(s),n.isZero())U=r?3:2;else{if(i=i.minus(n.times(s)),i.lte(t))return U=de(n)?r?2:3:r?4:1,i;U=de(n)?r?1:4:r?3:2}return i.minus(s).abs()}function he(e,i,n,r){var s,t,o,u,c,f,l,a,h,g=e.constructor,v=n!==void 0;if(v?(O(n,1,V),r===void 0?r=g.rounding:O(r,0,8)):(n=g.precision,r=g.rounding),!e.isFinite())l=Ce(e);else{for(l=R(e),o=l.indexOf("."),v?(s=2,i==16?n=n*4-3:i==8&&(n=n*3-2)):s=i,o>=0&&(l=l.replace(".",""),h=new g(1),h.e=l.length-o,h.d=z(R(h),10,s),h.e=h.d.length),a=z(l,10,s),t=c=a.length;a[--c]==0;)a.pop();if(!a[0])l=v?"0p+0":"0";else{if(o<0?t--:(e=new g(e),e.d=a,e.e=t,e=k(e,h,n,r,0,s),a=e.d,t=e.e,f=we),o=a[n],u=s/2,f=f||a[n+1]!==void 0,f=r<4?(o!==void 0||f)&&(r===0||r===(e.s<0?3:2)):o>u||o===u&&(r===4||f||r===6&&a[n-1]&1||r===(e.s<0?8:7)),a.length=n,f)for(;++a[--n]>s-1;)a[n]=0,n||(++t,a.unshift(1));for(c=a.length;!a[c-1];--c);for(o=0,l="";o<c;o++)l+=fe.charAt(a[o]);if(v){if(c>1)if(i==16||i==8){for(o=i==16?4:3,--c;c%o;c++)l+="0";for(a=z(l,s,i),c=a.length;!a[c-1];--c);for(o=1,l="1.";o<c;o++)l+=fe.charAt(a[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(t<0?"p":"p+")+t}else if(t<0){for(;++t;)l="0"+l;l="0."+l}else if(++t>c)for(t-=c;t--;)l+="0";else t<c&&(l=l.slice(0,t)+"."+l.slice(t))}l=(i==16?"0x":i==2?"0b":i==8?"0o":"")+l}return e.s<0?"-"+l:l}function pe(e,i){if(e.length>i)return e.length=i,!0}function Re(e){return new this(e).abs()}function Ze(e){return new this(e).acos()}function Ue(e){return new this(e).acosh()}function be(e,i){return new this(e).plus(i)}function Be(e){return new this(e).asin()}function He(e){return new this(e).asinh()}function Ve(e){return new this(e).atan()}function $e(e){return new this(e).atanh()}function Ge(e,i){e=new this(e),i=new this(i);var n,r=this.precision,s=this.rounding,t=r+4;return!e.s||!i.s?n=new this(NaN):!e.d&&!i.d?(n=T(this,t,1).times(i.s>0?.25:.75),n.s=e.s):!i.d||e.isZero()?(n=i.s<0?T(this,r,s):new this(0),n.s=e.s):!e.d||i.isZero()?(n=T(this,t,1).times(.5),n.s=e.s):i.s<0?(this.precision=t,this.rounding=1,n=this.atan(k(e,i,t,1)),i=T(this,t,1),this.precision=r,this.rounding=s,n=e.s<0?n.minus(i):n.plus(i)):n=this.atan(k(e,i,t,1)),n}function We(e){return new this(e).cbrt()}function Xe(e){return p(e=new this(e),e.e+1,2)}function Je(e,i,n){return new this(e).clamp(i,n)}function je(e){if(!e||typeof e!="object")throw Error(ne+"Object expected");var i,n,r,s=e.defaults===!0,t=["precision",1,V,"rounding",0,8,"toExpNeg",-$,0,"toExpPos",0,$,"maxE",0,$,"minE",-$,0,"modulo",0,9];for(i=0;i<t.length;i+=3)if(n=t[i],s&&(this[n]=ce[n]),(r=e[n])!==void 0)if(L(r)===r&&r>=t[i+1]&&r<=t[i+2])this[n]=r;else throw Error(H+n+": "+r);if(n="crypto",s&&(this[n]=ce[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(Ne);else this[n]=!1;else throw Error(H+n+": "+r);return this}function Ke(e){return new this(e).cos()}function Qe(e){return new this(e).cosh()}function Pe(e){var i,n,r;function s(t){var o,u,c,f=this;if(!(f instanceof s))return new s(t);if(f.constructor=s,ge(t)){f.s=t.s,m?!t.d||t.e>s.maxE?(f.e=NaN,f.d=null):t.e<s.minE?(f.e=0,f.d=[0]):(f.e=t.e,f.d=t.d.slice()):(f.e=t.e,f.d=t.d?t.d.slice():t.d);return}if(c=typeof t,c==="number"){if(t===0){f.s=1/t<0?-1:1,f.e=0,f.d=[0];return}if(t<0?(t=-t,f.s=-1):f.s=1,t===~~t&&t<1e7){for(o=0,u=t;u>=10;u/=10)o++;m?o>s.maxE?(f.e=NaN,f.d=null):o<s.minE?(f.e=0,f.d=[0]):(f.e=o,f.d=[t]):(f.e=o,f.d=[t]);return}if(t*0!==0){t||(f.s=NaN),f.e=NaN,f.d=null;return}return x(f,t.toString())}if(c==="string")return(u=t.charCodeAt(0))===45?(t=t.slice(1),f.s=-1):(u===43&&(t=t.slice(1)),f.s=1),Ee.test(t)?x(f,t):_e(f,t);if(c==="bigint")return t<0?(t=-t,f.s=-1):f.s=1,x(f,t.toString());throw Error(H+t)}if(s.prototype=d,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=je,s.clone=Pe,s.isDecimal=ge,s.abs=Re,s.acos=Ze,s.acosh=Ue,s.add=be,s.asin=Be,s.asinh=He,s.atan=Ve,s.atanh=$e,s.atan2=Ge,s.cbrt=We,s.ceil=Xe,s.clamp=Je,s.cos=Ke,s.cosh=Qe,s.div=Ye,s.exp=ze,s.floor=xe,s.hypot=ye,s.ln=ei,s.log=ii,s.log10=ri,s.log2=ni,s.max=ti,s.min=si,s.mod=oi,s.mul=ui,s.pow=fi,s.random=ci,s.round=li,s.sign=ai,s.sin=hi,s.sinh=di,s.sqrt=pi,s.sub=gi,s.sum=wi,s.tan=mi,s.tanh=Ni,s.trunc=vi,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<r.length;)e.hasOwnProperty(n=r[i++])||(e[n]=this[n]);return s.config(e),s}function Ye(e,i){return new this(e).div(i)}function ze(e){return new this(e).exp()}function xe(e){return p(e=new this(e),e.e+1,3)}function ye(){var e,i,n=new this(0);for(m=!1,e=0;e<arguments.length;)if(i=new this(arguments[e++]),i.d)n.d&&(n=n.plus(i.times(i)));else{if(i.s)return m=!0,new this(1/0);n=i}return m=!0,n.sqrt()}function ge(e){return e instanceof W||e&&e.toStringTag===ve||!1}function ei(e){return new this(e).ln()}function ii(e,i){return new this(e).log(i)}function ni(e){return new this(e).log(2)}function ri(e){return new this(e).log(10)}function ti(){return qe(this,arguments,-1)}function si(){return qe(this,arguments,1)}function oi(e,i){return new this(e).mod(i)}function ui(e,i){return new this(e).mul(i)}function fi(e,i){return new this(e).pow(i)}function ci(e){var i,n,r,s,t=0,o=new this(1),u=[];if(e===void 0?e=this.precision:O(e,1,V),r=Math.ceil(e/w),this.crypto)if(crypto.getRandomValues)for(i=crypto.getRandomValues(new Uint32Array(r));t<r;)s=i[t],s>=429e7?i[t]=crypto.getRandomValues(new Uint32Array(1))[0]:u[t++]=s%1e7;else if(crypto.randomBytes){for(i=crypto.randomBytes(r*=4);t<r;)s=i[t]+(i[t+1]<<8)+(i[t+2]<<16)+((i[t+3]&127)<<24),s>=214e7?crypto.randomBytes(4).copy(i,t):(u.push(s%1e7),t+=4);t=r/4}else throw Error(Ne);else for(;t<r;)u[t++]=Math.random()*1e7|0;for(r=u[--t],e%=w,r&&e&&(s=C(10,w-e),u[t]=(r/s|0)*s);u[t]===0;t--)u.pop();if(t<0)n=0,u=[0];else{for(n=-1;u[0]===0;n-=w)u.shift();for(r=1,s=u[0];s>=10;s/=10)r++;r<w&&(n-=w-r)}return o.e=n,o.d=u,o}function li(e){return p(e=new this(e),e.e+1,this.rounding)}function ai(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function hi(e){return new this(e).sin()}function di(e){return new this(e).sinh()}function pi(e){return new this(e).sqrt()}function gi(e,i){return new this(e).sub(i)}function wi(){var e=0,i=arguments,n=new this(i[e]);for(m=!1;n.s&&++e<i.length;)n=n.plus(i[e]);return m=!0,p(n,this.precision,this.rounding)}function mi(e){return new this(e).tan()}function Ni(e){return new this(e).tanh()}function vi(e){return p(e=new this(e),e.e+1,1)}d[Symbol.for("nodejs.util.inspect.custom")]=d.toString;d[Symbol.toStringTag]="Decimal";var W=d.constructor=Pe(ce);y=new W(y);ee=new W(ee);exports.Decimal=W;exports.default=W;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t){if(!t&&typeof t!="object")throw new Error("error arguments deepClone");const r=t.constructor===Array?[]:{};return Object.keys(t).forEach(e=>{t[e]&&typeof t[e]=="object"?r[e]=n(t[e]):r[e]=t[e]}),r}exports.deepClone=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,...o){const n={},c=o.reduce((t,r)=>Array.isArray(r)?t.concat(r):t.concat([r]),[]);for(const t of c){const r=t;r in e&&(n[r]=e[r])}return n}exports.pick=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./util.js");require("../calc/index.js");require("../_virtual/dayjs.min.js");const g=require("../is/is.js"),u=require("../is/is-empty.js");function a(e,t="&"){return u.default(e)?{}:decodeURIComponent(e).replace(/^\?/,"").split(t).reduce((r,d)=>{const[s,m]=d.split("=");if(s){const o=m??"";r[s]&&typeof r[s]=="string"?r[s]=[r[s],o]:r[s]?r[s].push(o):r[s]=o}return r},{})}function l(e,t="&"){return u.default(e)?"":Object.keys(e).map(n=>{const i=e[n];return Array.isArray(i)?i.map(r=>`${n}=${r}`).join(t):`${n}=${i}`}).join(t)}function h(e,t){const n=y.isClient?window:{location:{search:""}},i=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=(t||n.location.search).substr(1).match(i);return r!=null?unescape(r[2]):null}function f(e){return Object.keys(e).forEach(t=>{(u.default(e[t])||e[t]==="undefined")&&e[t]!==0&&delete e[t]}),e}function c(e,t=[]){const n=g.isString(e);if(u.default(e))return n?"":{};const i=n?a(e):e;return t.forEach(r=>{delete i[r]}),n?l(i):i}function p(e,t){if(u.default(e))return"";e=decodeURIComponent(e);const[n,i]=e.split("?"),r=f(Object.assign({},a(i),f(Object.assign({},t||{}))));return`${n}?${l(r)}`}function q(e,t=[]){if(u.default(e))return"";const[n,i=""]=e.split("?");return p(n,a(c(i,t)))}exports.filterParams=c;exports.filterQuery=q;exports.filtrationEmpty=f;exports.getUrlParam=h;exports.json2params=l;exports.padQuery=p;exports.params2json=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../calc/index.js");require("../_virtual/dayjs.min.js");const l=require("../is/is.js"),c=require("../is/is-empty.js"),p=typeof window>"u",m=typeof window<"u";function M(t,n,i){return c.default(t)||c.default(n)||Object.keys(t).forEach(e=>{n[e]!==void 0&&!(i!=null&&i.includes(e))&&(t[e]=n[e])}),t}function w(){var i,e;const t=(e=(i=navigator==null?void 0:navigator.userAgent)==null?void 0:i.toLowerCase)==null?void 0:e.call(i),n={ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),android:t.indexOf("android")>-1||t.indexOf("linux")>-1,iPad:t.indexOf("ipad")>-1,wechat:t.indexOf("micromessenger")>-1,aliPay:t.indexOf("alipay")>-1};return{...n,isMobile:n.android||n.ios||n.iPad}}function O(t,n=2){return t.toString().padStart(n,"0")}function y(t,n=[3,7],i="*",e){if(c.default(t))return"";if(typeof n=="number")return t.slice(0,n)+i.repeat(e||t.length-n);const[r,s]=n;return t.slice(0,r)+i.repeat(t.length-s)+t.slice(s)}const A=function(t,n=2,i=!0,e=","){const r=Number(t);if(l.isNumber(r)){let s="";if(l.isNumber(n))if(i)s=r.toFixed(n).toString();else{let a=String(r).split(".")[1];a=a?a.length:0,a>n&&(a=n),s=r.toFixed(a).toString()}else s=r.toString();const o=s.split(".");return o[0]=o[0].toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+(e||",")),o.join(".")}return t};function R(t,n){const e=S=>S*(Math.PI/180),r=e(t.latitude),s=e(t.longitude),o=e(n.latitude),a=e(n.longitude),f=o-r,g=a-s,d=Math.pow(Math.sin(f/2),2)+Math.cos(r)*Math.cos(o)*Math.pow(Math.sin(g/2),2),u=6371*(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))),h=u*1e3;return{km:Number(u.toFixed(2)),m:Math.round(h)}}exports.ObjectAssign=M;exports.browser=w;exports.calculateDistance=R;exports.encryptString=y;exports.isClient=m;exports.isSSR=p;exports.padZero=O;exports.thousands=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(){const t=[],n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let r=0;r<36;r++)t[r]=n.substr(Math.floor(Math.random()*n.length),1);return t[14]="4",t[19]=n.substr(t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}function a(t=32){const n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length;let o="";for(let e=0;e<t;e++)o+=n.charAt(Math.floor(Math.random()*r));return o}exports.randomString=a;exports.uuid=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./validator.js");function v(n,o){return new Promise(t=>{const s=[];n.some(e=>{e.type=e.type??"required";const i=o[e.key],a=!r.validateType[e.type](i,e.len);return a&&s.push(e),a})&&t({valid:!1,...s[0]}),t({valid:!0,msg:void 0,key:void 0})})}function d(n,o){const t=[];return n.some(u=>{const e=o[u.key],i=(!e||e==="undefined")&&e!==0;return i&&t.push(u),i})?{valid:!1,...t[0]}:{valid:!0}}exports.validate=v;exports.validateRequire=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={url:"^(http|https|ftp)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9-._?,'/\\+&amp;%$#=~])*[^.,)(s]$",email:"^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)+$",mobile:/^1[^12][0-9]{9}$/,tel:"^0\\d{2,3}-?\\d{7,8}$",idCard:/^\d{15}(\d{2}[A-Za-z0-9])?$/,card:/^\d{13,19}$/,passport:/(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)/,currency:"^\\d+(\\.\\d+)?$",qq:"^[1-9]d{4,8}$",number:"^[0-9]*$",positiveInt:"^[1-9]d*$",zip:"^[1-9]d{5}$",double:"^[-+]?d+(.d+)?$",english:"^[A-Za-z]+$",chinese:"^[Α-¥]+$",unSafe:"^(.{0,5})$|s",date:"(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)",name:/^[\u4e00-\u9fa5\ a-zA-Z]+$/};function t(r){return e=>typeof e=="string"?new RegExp(s[r]).test(e):!1}const o=r=>t("currency")(r),d=r=>t("url")(r),a=r=>t("email")(r),f=r=>t("mobile")(r),y=r=>t("number")(r),c=r=>t("idCard")(r),p=r=>t("card")(r),u=r=>t("passport")(r),l=r=>{if(typeof r>"u")return!1;if(typeof r=="string")return!!i(r);if(Array.isArray(r)){if(r.length===0)return!1;for(const e of r)if(typeof e!="number"&&!i(e))return!1}return!0},g=(r,e)=>{let n=0;return typeof r=="number"?n=String(r).length:(r instanceof Array||typeof r=="string")&&(n=r.length),e>0&&n<=e},m=(r,e)=>{let n=0;return typeof r=="number"?n=String(r).length:(r instanceof Array||typeof r=="string")&&(n=r.length),e>0&&n>=e},i=r=>r===null?"":String.prototype.trim.call(r),$={required:l,maxLength:g,minLength:m,isCurrency:o,isUrl:d,isEmail:a,isMobile:f,isNumber:y,isIdCard:c,isCard:p,isPassport:u};exports.isCard=p;exports.isCurrency=o;exports.isEmail=a;exports.isIdCard=c;exports.isMobile=f;exports.isPassport=u;exports.isUrl=d;exports.maxLength=g;exports.minLength=m;exports.regs=s;exports.required=l;exports.validateType=$;exports.validation=t;
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
4
+ export {
5
+ e as getDefaultExportFromCjs
6
+ };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
@@ -0,0 +1,49 @@
1
+ import { Decimal as n } from "../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
2
+ const r = {
3
+ /**
4
+ * 加法运算
5
+ * @param a 运算数1
6
+ * @param b 运算数2
7
+ * @example calc.add(0.1, 0.2) // 0.3
8
+ */
9
+ add: function(t, e) {
10
+ return new n(t).add(new n(e)).toNumber();
11
+ },
12
+ /**
13
+ * 减法运算
14
+ * @param a 运算数1
15
+ * @param b 运算数2
16
+ * @example calc.subtract(0.3, 0.2) // 0.1
17
+ */
18
+ subtract: function(t, e) {
19
+ return new n(t).sub(new n(e)).toNumber();
20
+ },
21
+ /**
22
+ * 乘法运算
23
+ * @param a 运算数1
24
+ * @param b 运算数2
25
+ * @example calc.multiply(0.1, 0.2) // 0.02
26
+ */
27
+ multiply: function(t, e) {
28
+ return new n(t).mul(new n(e)).toNumber();
29
+ },
30
+ /**
31
+ * 除法运算
32
+ * @param a 运算数1
33
+ * @param b 运算数2
34
+ * @example calc.divide(0.1, 0.2) // 0.5
35
+ */
36
+ divide: function(t, e) {
37
+ return new n(t).div(new n(e)).toNumber();
38
+ },
39
+ /**
40
+ * 向上保留小数
41
+ * @param value 数据
42
+ * @param num 保留小数位数 默认2位
43
+ * @example calc.ceilFloat(0.123456, 3) // 0.124
44
+ */
45
+ saveCeilFloat: (t, e = 2) => r.divide(Math.ceil(r.multiply(t, Math.pow(10, e))), Math.pow(10, e)).toFixedNew(e)
46
+ };
47
+ export {
48
+ r as default
49
+ };
@@ -0,0 +1,13 @@
1
+ import r from "./calc.js";
2
+ import { Decimal as p } from "../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
3
+ Number.prototype.toFixedNew = function(t) {
4
+ let o = this;
5
+ return o < 0 ? (o = o * -1, (Math.round(r.multiply(o, Math.pow(10, t))) / Math.pow(10, t) * -1).toFixed(t)) : (Math.round(r.multiply(o, Math.pow(10, t))) / Math.pow(10, t)).toFixed(t);
6
+ };
7
+ Number.prototype.countDecimals = function() {
8
+ return Math.floor(this.valueOf()) === this.valueOf() ? 0 : this.toString().split(".")[1].length || 0;
9
+ };
10
+ export {
11
+ p as Decimal,
12
+ r as calc
13
+ };
@@ -0,0 +1,105 @@
1
+ import l from "../_virtual/dayjs.min.js";
2
+ import "../calc/index.js";
3
+ import { padZero as i } from "../utils/util.js";
4
+ function p(o) {
5
+ return o.replace(/\-/g, "/");
6
+ }
7
+ function h(o, e) {
8
+ const t = l(o);
9
+ e === void 0 && (e = "yyyy-MM-dd HH:mm:ss");
10
+ const r = {
11
+ "M+": t.month() + 1,
12
+ // 月份
13
+ "d+": t.date(),
14
+ // 日
15
+ "h+": t.hour() % 12 === 0 ? 12 : t.hour() % 12,
16
+ // 小时
17
+ "H+": t.hour(),
18
+ // 小时
19
+ "m+": t.minute(),
20
+ // 分
21
+ "s+": t.second(),
22
+ // 秒
23
+ "q+": Math.floor((t.month() + 3) / 3),
24
+ // 季度
25
+ S: t.millisecond()
26
+ // 毫秒
27
+ }, a = {
28
+ 0: "日",
29
+ 1: "一",
30
+ 2: "二",
31
+ 3: "三",
32
+ 4: "四",
33
+ 5: "五",
34
+ 6: "六"
35
+ };
36
+ /(y+)/.test(e) && (e = e.replace(RegExp.$1, (t.year() + "").substr(4 - RegExp.$1.length))), /(E+)/.test(e) && (e = e.replace(
37
+ RegExp.$1,
38
+ (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "星期" : "周" : "") + a[t.day() + ""]
39
+ ));
40
+ for (const n in r)
41
+ new RegExp("(" + n + ")").test(e) && (e = e.replace(
42
+ RegExp.$1,
43
+ RegExp.$1.length === 1 ? r[n] : ("00" + r[n]).substr(("" + r[n]).length)
44
+ ));
45
+ return e;
46
+ }
47
+ const f = ["日", "一", "二", "三", "四", "五", "六"];
48
+ function c(o) {
49
+ const e = l(o), t = {
50
+ /* 年 */
51
+ y: e.year() + "",
52
+ /** 月 */
53
+ m: e.month() + 1 + "",
54
+ /** 日 */
55
+ d: e.date() + "",
56
+ /** 时 */
57
+ h: e.hour() + "",
58
+ /** 分 */
59
+ mm: e.minute() + "",
60
+ /** 秒 */
61
+ ss: e.second() + "",
62
+ /** 周 */
63
+ w: f[e.day()]
64
+ };
65
+ for (const r in t)
66
+ Object.hasOwnProperty.call(t, r) && !["y", "w"].includes(r) && (t[r] = i(t[r]));
67
+ return t;
68
+ }
69
+ function g(o) {
70
+ const e = l(o).valueOf(), t = l().valueOf(), r = t - e;
71
+ if (r < 0) return "未来的时间";
72
+ const a = [
73
+ { label: "年", value: 365 * 24 * 60 * 60 * 1e3 },
74
+ { label: "月", value: 720 * 60 * 60 * 1e3 },
75
+ { label: "周", value: 10080 * 60 * 1e3 },
76
+ { label: "天", value: 1440 * 60 * 1e3 },
77
+ { label: "小时", value: 3600 * 1e3 },
78
+ { label: "分钟", value: 60 * 1e3 },
79
+ { label: "刚刚", value: 10 * 1e3 }
80
+ ];
81
+ if (r < a[a.length - 1].value) return "刚刚";
82
+ for (const { label: n, value: u } of a.slice(0, -1)) {
83
+ const s = r / u;
84
+ if (s >= 1)
85
+ return n === "天" && s < 2 ? s === 1 ? "昨天" : "今天" : `${Math.floor(s)} ${n}前`;
86
+ }
87
+ return "刚刚";
88
+ }
89
+ function y(o, e) {
90
+ if (!o) return "";
91
+ const t = l(o), { m: r, d: a, w: n } = c(o);
92
+ if (e) {
93
+ const u = l(e);
94
+ return t.format("YYYY-MM-DD") === u.format("YYYY-MM-DD") ? `${r}月${a}日 周${n} ${t.format("HH:mm")}-${u.format("HH:mm")}` : `${t.format("MM月DD日 HH:mm")} - ${u.format("MM月DD日 HH:mm")}`;
95
+ } else
96
+ return `${r}月${a}日 周${n} ${t.format("HH:mm")}`;
97
+ }
98
+ export {
99
+ f as WEEK_DAY,
100
+ y as formatActivityTime,
101
+ h as formatDate,
102
+ p as formatIosDate,
103
+ g as getDateDiff,
104
+ c as getDateParams
105
+ };
@@ -0,0 +1,76 @@
1
+ import "./calc/index.js";
2
+ import { WEEK_DAY as t, formatActivityTime as a, formatDate as o, formatIosDate as s, getDateDiff as m, getDateParams as p } from "./day/dayjs.js";
3
+ import { default as l } from "./_virtual/dayjs.min.js";
4
+ import { isArray as d, isBoolean as u, isDate as x, isFile as c, isFunction as g, isMap as y, isNull as D, isNumber as E, isObject as S, isPromise as b, isRegExp as j, isSet as v, isString as C, isUndefined as P } from "./is/is.js";
5
+ import { default as h } from "./is/is-empty.js";
6
+ import { default as R } from "./is/is-equals.js";
7
+ import { validate as F, validateRequire as I } from "./validator/validate.js";
8
+ import { isCard as M, isCurrency as N, isEmail as O, isIdCard as Q, isMobile as T, isPassport as k, isUrl as w, maxLength as B, minLength as K, regs as W, required as Y, validateType as Z, validation as _ } from "./validator/validator.js";
9
+ import { deepClone as G } from "./utils/deep-clone.js";
10
+ import { pick as J } from "./utils/pick.js";
11
+ import { filterParams as X, filterQuery as $, filtrationEmpty as rr, getUrlParam as er, json2params as ir, padQuery as tr, params2json as ar } from "./utils/query2params.js";
12
+ import { ObjectAssign as sr, browser as mr, calculateDistance as pr, encryptString as fr, isClient as lr, isSSR as nr, padZero as dr, thousands as ur } from "./utils/util.js";
13
+ import { randomString as cr, uuid as gr } from "./utils/uuid.js";
14
+ import { default as Dr } from "./calc/calc.js";
15
+ import { Decimal as Sr } from "./node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
16
+ export {
17
+ Sr as Decimal,
18
+ sr as ObjectAssign,
19
+ t as WEEK_DAY,
20
+ mr as browser,
21
+ Dr as calc,
22
+ pr as calculateDistance,
23
+ l as dayjs,
24
+ G as deepClone,
25
+ fr as encryptString,
26
+ X as filterParams,
27
+ $ as filterQuery,
28
+ rr as filtrationEmpty,
29
+ a as formatActivityTime,
30
+ o as formatDate,
31
+ s as formatIosDate,
32
+ m as getDateDiff,
33
+ p as getDateParams,
34
+ er as getUrlParam,
35
+ d as isArray,
36
+ u as isBoolean,
37
+ M as isCard,
38
+ lr as isClient,
39
+ N as isCurrency,
40
+ x as isDate,
41
+ O as isEmail,
42
+ h as isEmpty,
43
+ R as isEquals,
44
+ c as isFile,
45
+ g as isFunction,
46
+ Q as isIdCard,
47
+ y as isMap,
48
+ T as isMobile,
49
+ D as isNull,
50
+ E as isNumber,
51
+ S as isObject,
52
+ k as isPassport,
53
+ b as isPromise,
54
+ j as isRegExp,
55
+ nr as isSSR,
56
+ v as isSet,
57
+ C as isString,
58
+ P as isUndefined,
59
+ w as isUrl,
60
+ ir as json2params,
61
+ B as maxLength,
62
+ K as minLength,
63
+ tr as padQuery,
64
+ dr as padZero,
65
+ ar as params2json,
66
+ J as pick,
67
+ cr as randomString,
68
+ W as regs,
69
+ Y as required,
70
+ ur as thousands,
71
+ gr as uuid,
72
+ F as validate,
73
+ I as validateRequire,
74
+ Z as validateType,
75
+ _ as validation
76
+ };
@@ -0,0 +1,6 @@
1
+ function t(r) {
2
+ return !!(r == null || typeof r == "string" && r.trim() === "" || Array.isArray(r) && r.length === 0 || typeof r == "object" && Object.keys(r).length === 0 || typeof r == "number" && r === 0 || typeof r > "u" || r instanceof Map && r.size === 0 || r instanceof Set && r.size === 0);
3
+ }
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1,28 @@
1
+ function s(r, t) {
2
+ if (r === t)
3
+ return !0;
4
+ if (r === null || t === null)
5
+ return !1;
6
+ if (Array.isArray(r) && Array.isArray(t)) {
7
+ if (r.length !== t.length)
8
+ return !1;
9
+ for (let e = 0; e < r.length; e++)
10
+ if (!s(r[e], t[e]))
11
+ return !1;
12
+ return !0;
13
+ }
14
+ if (typeof r != "object" || typeof t != "object")
15
+ return !1;
16
+ const n = Object.getOwnPropertyNames(r), o = Object.getOwnPropertyNames(t);
17
+ if (n.length !== o.length)
18
+ return !1;
19
+ for (let e = 0; e < n.length; e++) {
20
+ const f = n[e];
21
+ if (!s(r[f], t[f]))
22
+ return !1;
23
+ }
24
+ return !0;
25
+ }
26
+ export {
27
+ s as default
28
+ };
@@ -0,0 +1,58 @@
1
+ function o(t) {
2
+ return Object.prototype.toString.call(t) === "[object Number]";
3
+ }
4
+ function e(t) {
5
+ return Object.prototype.toString.call(t) === "[object String]";
6
+ }
7
+ function n(t) {
8
+ return Object.prototype.toString.call(t) === "[object Boolean]";
9
+ }
10
+ function r(t) {
11
+ return Object.prototype.toString.call(t) === "[object Null]";
12
+ }
13
+ function c(t) {
14
+ return Object.prototype.toString.call(t) === "[object Undefined]";
15
+ }
16
+ function i(t) {
17
+ return Object.prototype.toString.call(t) === "[object Object]";
18
+ }
19
+ function l(t) {
20
+ return Object.prototype.toString.call(t) === "[object Array]";
21
+ }
22
+ function u(t) {
23
+ return Object.prototype.toString.call(t) === "[object Function]";
24
+ }
25
+ function p(t) {
26
+ return Object.prototype.toString.call(t) === "[object Date]";
27
+ }
28
+ function b(t) {
29
+ return Object.prototype.toString.call(t) === "[object RegExp]";
30
+ }
31
+ function j(t) {
32
+ return Object.prototype.toString.call(t) === "[object Promise]";
33
+ }
34
+ function a(t) {
35
+ return Object.prototype.toString.call(t) === "[object Set]";
36
+ }
37
+ function g(t) {
38
+ return Object.prototype.toString.call(t) === "[object Map]";
39
+ }
40
+ function S(t) {
41
+ return Object.prototype.toString.call(t) === "[object File]";
42
+ }
43
+ export {
44
+ l as isArray,
45
+ n as isBoolean,
46
+ p as isDate,
47
+ S as isFile,
48
+ u as isFunction,
49
+ g as isMap,
50
+ r as isNull,
51
+ o as isNumber,
52
+ i as isObject,
53
+ j as isPromise,
54
+ b as isRegExp,
55
+ a as isSet,
56
+ e as isString,
57
+ c as isUndefined
58
+ };