yunlin 1.0.25 → 1.0.27
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/README.md +31 -1
- package/dist/func.js +1 -1
- package/dist/index.js +1 -1
- package/dist/room.js +1 -0
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
# Yunlin
|
|
2
|
+
> 一个常用工具类
|
|
3
|
+
|
|
4
|
+
[](https://badge.fury.io/js/yunlin)
|
|
5
|
+
|
|
6
|
+
`yunlin` 是一个实用工具库,提供了多种功能函数,如成本处理、姓名分割等。
|
|
7
|
+
|
|
8
|
+
## 安装
|
|
9
|
+
|
|
10
|
+
使用 npm 安装 `yunlin`:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install yunlin
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 使用示例
|
|
17
|
+
|
|
18
|
+
```javascript
|
|
19
|
+
import yl from 'yunlin';
|
|
20
|
+
|
|
21
|
+
// 处理成本计算
|
|
22
|
+
console.log('哎哟嚯', yl.func.handleCosting());
|
|
23
|
+
|
|
24
|
+
// 工具函数 - 分割姓名
|
|
25
|
+
console.log('分割姓名:', yl.utils.splitName('端木百惠慧')); // 输出: { surname: "端木", givenName: "百惠慧" }
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 贡献
|
|
29
|
+
|
|
30
|
+
欢迎提交问题和贡献代码!请查看 [贡献指南](CONTRIBUTING.md)。
|
|
31
|
+
|
package/dist/func.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0xeec4(){const _0x3eb820=['basechildprice','strJgbm','elder','insure','會員減免','adult','baseprice','970dhEMvO','遊客優惠','nRs','childnum','10TxjxQh','8IcpFir','vip','includes','機場稅','service','兒童[占床]','unitpricewb','122932apULHT','reduction','附加服務','split','promotion','filter','childprice','401610kUFhPH','price','2661921OGpZgg','adultprice','money','other','vipdiscounted','users','length','其他費用','totaltax','2147646OysJTc','tip','trip','airtax','保險費用','totalprice','map','strLx','adultnum','減免費用','附加行程','1177HBgpyo','320ChJBBX','unit','fLsjUnit','rylx','people','base','name','\x20*\x20','child','list','fJcbzlsjUnit','2355647fKYGbj','unitprice','tipuser','viprecharge','num','push','itemname','86630YiUPgR','tipday'];a0_0xeec4=function(){return _0x3eb820;};return a0_0xeec4();}const a0_0x430736=a0_0x39d3;(function(_0xd8fac1,_0x26ef03){const _0x52b3c8=a0_0x39d3,_0x33df6d=_0xd8fac1();while(!![]){try{const _0x49322f=-parseInt(_0x52b3c8(0x1eb))/0x1*(parseInt(_0x52b3c8(0x206))/0x2)+-parseInt(_0x52b3c8(0x219))/0x3+-parseInt(_0x52b3c8(0x212))/0x4*(parseInt(_0x52b3c8(0x20a))/0x5)+-parseInt(_0x52b3c8(0x1df))/0x6+-parseInt(_0x52b3c8(0x1f6))/0x7*(-parseInt(_0x52b3c8(0x20b))/0x8)+-parseInt(_0x52b3c8(0x21b))/0x9+parseInt(_0x52b3c8(0x1fd))/0xa*(parseInt(_0x52b3c8(0x1ea))/0xb);if(_0x49322f===_0x26ef03)break;else _0x33df6d['push'](_0x33df6d['shift']());}catch(_0x157671){_0x33df6d['push'](_0x33df6d['shift']());}}}(a0_0xeec4,0x3f490));function a0_0x39d3(_0x3a8b7b,_0x7d5e5c){const _0xeec4a5=a0_0xeec4();return a0_0x39d3=function(_0x39d3a7,_0x52081c){_0x39d3a7=_0x39d3a7-0x1db;let _0x17f3c1=_0xeec4a5[_0x39d3a7];return _0x17f3c1;},a0_0x39d3(_0x3a8b7b,_0x7d5e5c);}function handleCosting(_0x4fe896,_0x2d899d='',_0x3bbccc='-',_0x55666b={'people':'人員費用','service':a0_0x430736(0x214),'trip':a0_0x430736(0x1e9),'other':a0_0x430736(0x1dd),'reduction':a0_0x430736(0x1e8),'totalprice':'總計','airtax':a0_0x430736(0x20e)},_0x3a3928={'adult':'成人','child':'兒童','childusebed':a0_0x430736(0x210),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x430736(0x207),'vip':a0_0x430736(0x203),'promotion':'促銷','insure':a0_0x430736(0x1e3),'coupon':'優惠券','point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x323e61=a0_0x430736;let _0x45c597=[];const _0x5e4bb9=_0x323e61(0x1f2),_0x4cd23b=_0x4fe896[_0x323e61(0x217)](_0x4ee556=>_0x4ee556[_0x323e61(0x1e6)]==_0x323e61(0x1f0));if(_0x4cd23b['length']){let _0x5c3690={'title':_0x55666b[_0x323e61(0x1ef)],'type':_0x323e61(0x1f0),'list':[]};_0x4cd23b[_0x323e61(0x1e5)](_0x4a338e=>{const _0x23203b=_0x323e61;_0x5c3690[_0x23203b(0x1f4)][_0x23203b(0x1fb)]({'title':_0x3a3928[_0x4a338e[_0x23203b(0x200)]],'info':_0x2d899d+_0x4a338e[_0x23203b(0x1ed)]+_0x5e4bb9+_0x4a338e[_0x23203b(0x208)],'nRs':_0x4a338e[_0x23203b(0x208)],'unit':_0x4a338e[_0x23203b(0x1ed)],'cb':_0x4a338e[_0x23203b(0x1f5)],'type':_0x23203b(0x1f0)});}),_0x45c597[_0x323e61(0x1fb)](_0x5c3690);}const _0x2d3632=_0x4fe896[_0x323e61(0x217)](_0x200aeb=>_0x200aeb[_0x323e61(0x1e6)]==_0x323e61(0x20f));if(_0x2d3632[_0x323e61(0x1dc)]){let _0x5f4bde={'title':_0x55666b['service'],'type':_0x323e61(0x20f),'list':[]};_0x2d3632['map'](_0x52afab=>{const _0x2e4639=_0x323e61;_0x5f4bde[_0x2e4639(0x1f4)]['push']({'title':_0x52afab['name']+('['+_0x52afab[_0x2e4639(0x1fc)]+']'),'info':_0x2d899d+_0x52afab[_0x2e4639(0x1f7)]+_0x5e4bb9+_0x52afab[_0x2e4639(0x1fa)],'nRs':_0x52afab['num'],'unit':_0x52afab[_0x2e4639(0x1f7)],'cb':_0x52afab[_0x2e4639(0x205)],'type':'service'});}),_0x45c597['push'](_0x5f4bde);}const _0x3cfde3=_0x4fe896[_0x323e61(0x217)](_0x3a74aa=>_0x3a74aa[_0x323e61(0x1e6)]==_0x323e61(0x1e1));if(_0x3cfde3[_0x323e61(0x1dc)]){let _0x535790={'title':_0x55666b['trip'],'type':_0x323e61(0x1e1),'list':[]};_0x3cfde3['map'](_0x50ca2d=>{const _0x4517c0=_0x323e61;_0x50ca2d[_0x4517c0(0x1e7)]!='0'&&_0x535790[_0x4517c0(0x1f4)][_0x4517c0(0x1fb)]({'title':_0x50ca2d[_0x4517c0(0x1f1)]+('['+_0x3a3928[_0x4517c0(0x204)]+']'),'info':_0x2d899d+_0x50ca2d[_0x4517c0(0x21c)]+_0x5e4bb9+_0x50ca2d[_0x4517c0(0x1e7)],'nRs':_0x50ca2d['adultnum'],'unit':_0x50ca2d[_0x4517c0(0x21c)],'cb':_0x50ca2d['baseadultprice'],'type':'trip'}),_0x50ca2d['childnum']!='0'&&_0x535790[_0x4517c0(0x1f4)][_0x4517c0(0x1fb)]({'title':_0x50ca2d[_0x4517c0(0x1f1)]+('['+_0x3a3928[_0x4517c0(0x1f3)]+']'),'info':_0x2d899d+_0x50ca2d[_0x4517c0(0x218)]+_0x5e4bb9+_0x50ca2d[_0x4517c0(0x209)],'nRs':_0x50ca2d[_0x4517c0(0x209)],'unit':_0x50ca2d['childprice'],'cb':_0x50ca2d[_0x4517c0(0x1ff)],'type':_0x4517c0(0x1e1)});}),_0x45c597[_0x323e61(0x1fb)](_0x535790);}let _0x3ce6a3=[];const _0x5cfe8b=_0x4fe896[_0x323e61(0x217)](_0x1d24b3=>_0x1d24b3[_0x323e61(0x1e6)]==_0x323e61(0x201));_0x5cfe8b['length']&&_0x5cfe8b[_0x323e61(0x1e5)](_0x1bb55e=>{const _0x13b7b6=_0x323e61,_0x119cd3=_0x1bb55e[_0x13b7b6(0x1f1)][_0x13b7b6(0x215)]('|')||[''];_0x3ce6a3[_0x13b7b6(0x1fb)]({'title':_0x3a3928[_0x13b7b6(0x201)]+('['+_0x119cd3[0x0]+']'),'info':_0x2d899d+_0x3bbccc+_0x1bb55e[_0x13b7b6(0x21d)],'unit':_0x1bb55e[_0x13b7b6(0x21d)],'cb':_0x1bb55e[_0x13b7b6(0x21d)],'type':_0x13b7b6(0x201)});});const _0x5b6778=_0x4fe896[_0x323e61(0x217)](_0x26f0e4=>_0x26f0e4[_0x323e61(0x1e6)]=='vipdiscounted');_0x5b6778[_0x323e61(0x1dc)]&&_0x5b6778[_0x323e61(0x1e5)](_0x5e77e5=>{const _0x298a6f=_0x323e61;_0x3ce6a3[_0x298a6f(0x1fb)]({'title':_0x3a3928[_0x298a6f(0x20c)]+('['+_0x5e77e5['name']+']'),'info':_0x2d899d+_0x3bbccc+_0x5e77e5[_0x298a6f(0x21d)],'unit':_0x5e77e5['money'],'cb':_0x5e77e5[_0x298a6f(0x21d)],'type':'vip'});});const _0x18ff38=_0x4fe896[_0x323e61(0x217)](_0x3763f9=>_0x3763f9[_0x323e61(0x1e6)]==_0x323e61(0x216));_0x18ff38[_0x323e61(0x1dc)]&&_0x18ff38['map'](_0x17fc04=>{const _0x17c39c=_0x323e61;_0x3ce6a3['push']({'title':_0x3a3928[_0x17c39c(0x216)],'info':_0x2d899d+_0x3bbccc+_0x17fc04[_0x17c39c(0x21d)],'unit':_0x17fc04[_0x17c39c(0x21d)],'cb':_0x17fc04['money'],'type':_0x17c39c(0x216)});});_0x3ce6a3['length']&&_0x45c597[_0x323e61(0x1fb)]({'title':_0x55666b[_0x323e61(0x213)],'type':_0x323e61(0x213),'list':_0x3ce6a3});const _0x5e87d8=_0x4fe896['filter'](_0x3d330d=>_0x3d330d[_0x323e61(0x1e6)]==_0x323e61(0x1e2));if(_0x5e87d8[_0x323e61(0x1dc)]){let _0x5d92fc={'title':_0x55666b['airtax'],'type':_0x323e61(0x1e2),'list':[]};_0x5e87d8[_0x323e61(0x1e5)](_0x59be58=>{const _0x4dbce4=_0x323e61;_0x5d92fc[_0x4dbce4(0x1f4)]['push']({'title':_0x3a3928[_0x59be58[_0x4dbce4(0x1ee)]],'info':_0x2d899d+_0x59be58[_0x4dbce4(0x1f7)]+_0x5e4bb9+_0x59be58['sl'],'nRs':_0x59be58['sl'],'unit':_0x59be58['unitprice'],'cb':_0x59be58[_0x4dbce4(0x211)],'type':_0x59be58[_0x4dbce4(0x1ee)]});}),_0x45c597[_0x323e61(0x1fb)](_0x5d92fc);}const _0x39adaf=[_0x323e61(0x1f0),_0x323e61(0x20f),'trip',_0x323e61(0x201),_0x323e61(0x21f),'promotion',_0x323e61(0x1e2)],_0x5cdaa=_0x4fe896[_0x323e61(0x217)](_0x4ae5ef=>!_0x39adaf[_0x323e61(0x20d)](_0x4ae5ef['strLx']));let _0x334f48={'title':_0x55666b[_0x323e61(0x21e)],'type':_0x323e61(0x21e),'list':[]};for(var _0x421b22=0x0;_0x421b22<_0x5cdaa['length'];_0x421b22++){const _0x31ae48=_0x5cdaa[_0x421b22];_0x31ae48[_0x323e61(0x1e6)]==_0x323e61(0x1f9)&&_0x334f48[_0x323e61(0x1f4)][_0x323e61(0x1fb)]({'title':_0x3a3928[_0x323e61(0x1f9)]+('['+_0x31ae48[_0x323e61(0x1f1)]+']'),'info':_0x2d899d+_0x31ae48[_0x323e61(0x21d)],'unit':_0x31ae48[_0x323e61(0x21d)],'type':_0x31ae48['strLx']}),_0x31ae48[_0x323e61(0x1e6)]==_0x323e61(0x202)&&_0x334f48[_0x323e61(0x1f4)][_0x323e61(0x1fb)]({'title':_0x3a3928['insure']+('['+_0x31ae48[_0x323e61(0x1f1)]+']'),'info':_0x2d899d+_0x31ae48['unit']+_0x5e4bb9+_0x31ae48[_0x323e61(0x1db)]+_0x3a3928['r'],'nRs':_0x31ae48[_0x323e61(0x1db)],'unit':_0x31ae48[_0x323e61(0x1ec)],'cb':_0x31ae48[_0x323e61(0x1ec)],'type':_0x323e61(0x202)}),(_0x31ae48[_0x323e61(0x1e6)]=='coupon'||_0x31ae48[_0x323e61(0x1e6)]=='point')&&_0x334f48[_0x323e61(0x1f4)][_0x323e61(0x1fb)]({'title':_0x3a3928[_0x31ae48[_0x323e61(0x1e6)]],'info':_0x2d899d+_0x3bbccc+_0x31ae48['money'],'unit':_0x31ae48[_0x323e61(0x21d)],'type':_0x31ae48[_0x323e61(0x1e6)]}),_0x31ae48[_0x323e61(0x1e6)]==_0x323e61(0x1e0)&&_0x334f48[_0x323e61(0x1f4)][_0x323e61(0x1fb)]({'title':_0x3a3928[_0x31ae48[_0x323e61(0x1e6)]],'info':_0x2d899d+_0x31ae48[_0x323e61(0x1e0)]+_0x5e4bb9+_0x31ae48[_0x323e61(0x1f8)]+_0x3a3928['r']+_0x5e4bb9+_0x31ae48[_0x323e61(0x1fe)]+_0x3a3928['t'],'nRs':_0x31ae48[_0x323e61(0x1f8)],'count':_0x31ae48['tipday'],'unit':_0x31ae48[_0x323e61(0x1e0)],'type':_0x31ae48['strLx']}),_0x31ae48[_0x323e61(0x1e6)]=='tax'&&_0x334f48[_0x323e61(0x1f4)][_0x323e61(0x1fb)]({'title':_0x3a3928[_0x31ae48['strLx']],'info':_0x2d899d+_0x31ae48[_0x323e61(0x1de)],'unit':_0x31ae48[_0x323e61(0x1de)],'type':_0x31ae48[_0x323e61(0x1e6)]});}_0x334f48[_0x323e61(0x1f4)]['length']&&_0x45c597['push'](_0x334f48);const _0x211308=_0x4fe896[_0x323e61(0x217)](_0x330819=>_0x330819[_0x323e61(0x1e6)]==_0x323e61(0x1e4));return _0x211308['length']&&_0x45c597['push']({'title':_0x55666b['totalprice'],'type':_0x323e61(0x1e4),'list':[{'title':_0x55666b['totalprice'],'info':_0x2d899d+_0x211308[0x0][_0x323e61(0x21a)]}]}),_0x45c597;}export default{'handleCosting':handleCosting};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3646f0,_0x48c4a7){var _0x2f2797=a1_0x385b,_0x326b32=_0x3646f0();while(!![]){try{var _0x3144d7=parseInt(_0x2f2797(0x91))/0x1+parseInt(_0x2f2797(0x8b))/0x2+-parseInt(_0x2f2797(0x8d))/0x3*(-parseInt(_0x2f2797(0x8a))/0x4)+-parseInt(_0x2f2797(0x8f))/0x5*(-parseInt(_0x2f2797(0x8c))/0x6)+parseInt(_0x2f2797(0x89))/0x7+-parseInt(_0x2f2797(0x8e))/0x8+-parseInt(_0x2f2797(0x90))/0x9*(parseInt(_0x2f2797(0x92))/0xa);if(_0x3144d7===_0x48c4a7)break;else _0x326b32['push'](_0x326b32['shift']());}catch(_0x477f2d){_0x326b32['push'](_0x326b32['shift']());}}}(a1_0x3972,0x6f749));function a1_0x3972(){var _0x229c6a=['4510955YealVc','1732923gAqCQN','732799yUIsvV','110CqEKeZ','2885533epjdeC','20DnmcyU','1533738SqOlvD','6WOTNqS','199494HNhFgB','4576240tANNsF'];a1_0x3972=function(){return _0x229c6a;};return a1_0x3972();}import a1_0x2ed1c8 from'./utils';import a1_0xd7de48 from'./func';import a1_0x5f378a from'./test';import a1_0xf9cd14 from'./room';function a1_0x385b(_0xd07ca7,_0x1d31c5){var _0x39728f=a1_0x3972();return a1_0x385b=function(_0x385b20,_0x3379da){_0x385b20=_0x385b20-0x89;var _0x4ec949=_0x39728f[_0x385b20];return _0x4ec949;},a1_0x385b(_0xd07ca7,_0x1d31c5);}export default{'test':a1_0x5f378a,'utils':a1_0x2ed1c8,'func':a1_0xd7de48,'room':a1_0xf9cd14};
|
package/dist/room.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x23bbe2,_0x395809){const _0x41c61f=a2_0x536b,_0x522e5f=_0x23bbe2();while(!![]){try{const _0x447b41=-parseInt(_0x41c61f(0xc1))/0x1+-parseInt(_0x41c61f(0xb0))/0x2*(-parseInt(_0x41c61f(0xa9))/0x3)+parseInt(_0x41c61f(0xb2))/0x4*(-parseInt(_0x41c61f(0xb1))/0x5)+parseInt(_0x41c61f(0xc0))/0x6+parseInt(_0x41c61f(0xbc))/0x7+parseInt(_0x41c61f(0xb6))/0x8*(-parseInt(_0x41c61f(0xaa))/0x9)+parseInt(_0x41c61f(0xc3))/0xa*(parseInt(_0x41c61f(0xb8))/0xb);if(_0x447b41===_0x395809)break;else _0x522e5f['push'](_0x522e5f['shift']());}catch(_0x4598ad){_0x522e5f['push'](_0x522e5f['shift']());}}}(a2_0x5706,0x9a1be));function getRoomCount(_0xebcb46,_0x2dfc69){const _0xb94c15=a2_0x536b;!Array[_0xb94c15(0xbb)](_0xebcb46)&&(_0xebcb46=[_0xebcb46]);let _0x494fd1=[];return _0xebcb46['forEach'](_0x2af897=>{const _0x161fe1=_0xb94c15;let _0x1a264c=![];if(!_0x2af897[_0x161fe1(0xc2)]){let _0x177d65=_0x2af897[_0x161fe1(0xb5)];(_0x2af897[_0x161fe1(0xb9)]||!_0x2dfc69[_0x161fe1(0xbd)])&&(_0x177d65+=_0x2af897[_0x161fe1(0xaf)]);const _0x23fae4=_0x2dfc69['list'][_0x161fe1(0xac)](_0x42f13b=>Number(_0x42f13b[_0x161fe1(0xbf)])===_0x177d65);if(!_0x23fae4)_0x1a264c=!![];else{let _0x1ec678=_0x2af897[_0x161fe1(0xb5)]+_0x2af897[_0x161fe1(0xaf)]+_0x2af897['infantnum'];_0x1ec678>_0x23fae4['nMaxIn']&&(_0x1a264c=!![]);}}_0x494fd1[_0x161fe1(0xb4)](_0x1a264c);}),Array[_0xb94c15(0xbb)](_0xebcb46)&&_0xebcb46[_0xb94c15(0xad)]===0x1?_0x494fd1[0x0]:_0x494fd1;}function getRoomConfig(_0xb1634c){const _0x108f8b=a2_0x536b;let _0x3cc3bc=_0xb1634c[_0x108f8b(0xb3)](_0xb8b577=>_0xb8b577[_0x108f8b(0xbf)]===_0x108f8b(0xb9)),_0x5504d5=_0xb1634c[_0x108f8b(0xb3)](_0x12d57b=>_0x12d57b[_0x108f8b(0xbf)]===_0x108f8b(0xae));const _0x33c2df=_0xb1634c[_0x108f8b(0xb3)](_0x3ffeae=>_0x3ffeae[_0x108f8b(0xbf)]===_0x108f8b(0xb7)),_0x5d9742=_0xb1634c['some'](_0x852647=>_0x852647[_0x108f8b(0xbf)]===_0x108f8b(0xbd)),_0x4d196e=_0xb1634c['map'](_0x3055a3=>{const _0x2750d5=_0x108f8b;return{'strCode':_0x3055a3[_0x2750d5(0xbf)],'nMaxIn':_0x3055a3[_0x2750d5(0xc5)]};});if(_0x5504d5){const _0x4bee8d=_0xb1634c[_0x108f8b(0xb3)](_0x6ba111=>_0x6ba111[_0x108f8b(0xbf)]=='2');_0x5504d5=_0x5504d5&&_0x4bee8d;}if(_0x3cc3bc)_0x3cc3bc=_0x3cc3bc&&_0x5d9742;return{'childusebed':_0x3cc3bc,'half':_0x5504d5,'infant':_0x33c2df,'child':_0x5d9742,'list':_0x4d196e};}function isRoomPiece(_0x532aba,_0x9a4b7a){const _0x520a50=a2_0x536b;return _0x9a4b7a&&_0x532aba[_0x520a50(0xb5)]===0x1&&_0x532aba[_0x520a50(0xaf)]===0x0&&_0x532aba['infantnum']===0x0;}function a2_0x5706(){const _0x3d8e1a=['3366664NmjeJv','child','map','strCode','1967082UKiMfp','133797HWVRcj','isalotment','106160LStCQY','max','nMaxIn','69lUBdKY','14517euHluk','filter','find','length','half','childrennum','6178RGZwon','190yzaGhg','81556bLTugo','some','push','adultnum','1992rNkXKR','infant','1100SGCsUL','childusebed','infantnum','isArray'];a2_0x5706=function(){return _0x3d8e1a;};return a2_0x5706();}function getRoomItemRange(_0x2a3a49,_0x3fe57b,_0x56e35f={'child':'兒童','infant':'嬰兒'}){const _0x243da0=a2_0x536b;if(!_0x3fe57b[_0x243da0(0xad)])return{'list':[],'yelist':[]};const _0x2b8889=Math[_0x243da0(0xc4)](..._0x3fe57b[_0x243da0(0xbe)](_0x5755eb=>Number(_0x5755eb[_0x243da0(0xc5)]))),_0x324d4b=_0x2b8889-_0x2a3a49[_0x243da0(0xb5)]-_0x2a3a49[_0x243da0(0xba)];let _0x240e06=_0x2b8889-_0x2a3a49[_0x243da0(0xb5)]-_0x2a3a49[_0x243da0(0xaf)];if(_0x240e06>0x2)_0x240e06=0x2;const _0x1d2d57=(_0x124b67,_0x44b682)=>{const _0x4580ce=_0x243da0,_0x375cc1=[];_0x375cc1[_0x4580ce(0xb4)]({'value':0x0,'text':'0\x20'+_0x44b682});for(let _0x107941=0x0;_0x107941<_0x124b67;_0x107941++){_0x375cc1[_0x4580ce(0xb4)]({'value':_0x107941+0x1,'text':_0x107941+0x1+'\x20'+_0x44b682});}return _0x375cc1;};return{'list':_0x1d2d57(_0x324d4b,_0x56e35f[_0x243da0(0xbd)]),'yelist':_0x1d2d57(_0x240e06,_0x56e35f[_0x243da0(0xb7)])};}function a2_0x536b(_0x11650f,_0x146443){const _0x570625=a2_0x5706();return a2_0x536b=function(_0x536b23,_0x40c345){_0x536b23=_0x536b23-0xa9;let _0x573d22=_0x570625[_0x536b23];return _0x573d22;},a2_0x536b(_0x11650f,_0x146443);}function getAdultRange(_0x7b184a,_0x31c241='成人'){const _0xf51617=a2_0x536b,_0x492fbb=Math['max'](..._0x7b184a[_0xf51617(0xbe)](_0x3f0d3e=>Number(_0x3f0d3e[_0xf51617(0xbf)]))[_0xf51617(0xab)](_0x2ce6ff=>!isNaN(_0x2ce6ff)));if(!_0x492fbb)_0x492fbb=0x4;let _0x56a783=[];for(var _0x118923=0x1;_0x118923<_0x492fbb+0x1;_0x118923++){_0x56a783[_0xf51617(0xb4)]({'value':_0x118923,'text':_0x118923+'\x20'+_0x31c241});}return _0x56a783;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x266c35,_0x85d65e){const _0x10c8ee=a3_0x3df1,_0x5f0949=_0x266c35();while(!![]){try{const _0x3c4bc2=parseInt(_0x10c8ee(0x85))/0x1*(parseInt(_0x10c8ee(0x7a))/0x2)+parseInt(_0x10c8ee(0x84))/0x3*(-parseInt(_0x10c8ee(0x72))/0x4)+parseInt(_0x10c8ee(0x71))/0x5*(parseInt(_0x10c8ee(0x73))/0x6)+-parseInt(_0x10c8ee(0x6b))/0x7*(parseInt(_0x10c8ee(0x80))/0x8)+-parseInt(_0x10c8ee(0x78))/0x9+-parseInt(_0x10c8ee(0x8b))/0xa*(-parseInt(_0x10c8ee(0x74))/0xb)+-parseInt(_0x10c8ee(0x6d))/0xc*(-parseInt(_0x10c8ee(0x88))/0xd);if(_0x3c4bc2===_0x85d65e)break;else _0x5f0949['push'](_0x5f0949['shift']());}catch(_0x504527){_0x5f0949['push'](_0x5f0949['shift']());}}}(a3_0x42cc,0x5024b));function email(_0x45cb37){const _0x9d847c=a3_0x3df1;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x9d847c(0x7c)](_0x45cb37);}function mobile(_0x480196){const _0x819f97=a3_0x3df1;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x819f97(0x7c)](_0x480196);}function isValidPhoneNumber(_0x205ab5){const _0x36c625=a3_0x3df1;if(_0x205ab5[_0x36c625(0x86)]('-')){const [_0x2df1f4,_0x332015]=_0x205ab5[_0x36c625(0x6e)]('-');if(_0x2df1f4==='86')return/^\d{11}$/[_0x36c625(0x7c)](_0x332015)&&_0x332015[_0x36c625(0x81)]('1');else return _0x2df1f4===_0x36c625(0x77)?/^\d{8}$/[_0x36c625(0x7c)](_0x332015)&&['5','6','9','8'][_0x36c625(0x86)](_0x332015[_0x36c625(0x8a)](0x0)):/^\d+$/[_0x36c625(0x7c)](_0x332015);}else return/^\d+$/['test'](_0x205ab5);}function url(_0x2bb944){const _0x381fec=a3_0x3df1;return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x381fec(0x7c)](_0x2bb944);}function date(_0x1e2d83){if(!_0x1e2d83)return![];if(number(_0x1e2d83))_0x1e2d83=+_0x1e2d83;return!/Invalid|NaN/['test'](new Date(_0x1e2d83)['toString']());}function dateISO(_0x5e4c1d){const _0x53d5d9=a3_0x3df1;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x53d5d9(0x7c)](_0x5e4c1d);}function isNumber(_0x311836){const _0x1b02aa=a3_0x3df1;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x1b02aa(0x7c)](_0x311836);}function isString(_0x42bd35){const _0x3628fe=a3_0x3df1;return typeof _0x42bd35===_0x3628fe(0x7f);}function digits(_0x29372a){const _0x4273cc=a3_0x3df1;return/^\d+$/[_0x4273cc(0x7c)](_0x29372a);}function idCard(_0x429685){const _0x21005e=a3_0x3df1;return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/[_0x21005e(0x7c)](_0x429685);}function carNo(_0x283517){const _0x359d2d=a3_0x3df1,_0x367d17=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x53aaa1=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x283517['length']===0x7)return _0x53aaa1['test'](_0x283517);if(_0x283517[_0x359d2d(0x7d)]===0x8)return _0x367d17['test'](_0x283517);return![];}function amount(_0x14942c){const _0x2d6bc1=a3_0x3df1;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x2d6bc1(0x7c)](_0x14942c);}function chinese(_0xaabd4f){const _0x3548b0=a3_0x3df1,_0x37e737=/^[\u4e00-\u9fa5]+$/gi;return _0x37e737[_0x3548b0(0x7c)](_0xaabd4f);}function letter(_0x17adab){const _0x30e753=a3_0x3df1;return/^[a-zA-Z]*$/[_0x30e753(0x7c)](_0x17adab);}function enOrNum(_0x14b778){const _0xfa5e5c=a3_0x3df1,_0x2ccc5f=/^[0-9a-zA-Z]*$/g;return _0x2ccc5f[_0xfa5e5c(0x7c)](_0x14b778);}function contains(_0x341d4c,_0x54bec1){const _0x5efae4=a3_0x3df1;return _0x341d4c[_0x5efae4(0x6a)](_0x54bec1)>=0x0;}function a3_0x42cc(){const _0x13434e=['120424teMJhr','startsWith','then','replace','93387PdvQmN','354389YqdpgI','includes','[object\x20Array]','273rSKHrq','call','charAt','1530GmlPuC','prototype','indexOf','203RWPqpg','catch','47868paSFMZ','split','[object\x20RegExp]','[object\x20Object]','1491350OALHPI','8wAWSaZ','6EeNAHl','11000FGdYlL','function','object','852','561294xmqXXP','isArray','2scceNa','toString','test','length','number','string'];a3_0x42cc=function(){return _0x13434e;};return a3_0x42cc();}function range(_0x58a6b4,_0x5a4add){return _0x58a6b4>=_0x5a4add[0x0]&&_0x58a6b4<=_0x5a4add[0x1];}function rangeLength(_0xc2b208,_0x9ff729){const _0x51c63d=a3_0x3df1;return _0xc2b208[_0x51c63d(0x7d)]>=_0x9ff729[0x0]&&_0xc2b208[_0x51c63d(0x7d)]<=_0x9ff729[0x1];}function a3_0x3df1(_0x3622df,_0x44320e){const _0x42ccdd=a3_0x42cc();return a3_0x3df1=function(_0x3df105,_0x4adb46){_0x3df105=_0x3df105-0x6a;let _0x40dee1=_0x42ccdd[_0x3df105];return _0x40dee1;},a3_0x3df1(_0x3622df,_0x44320e);}function landline(_0x3d9807){const _0x3e83f1=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3e83f1['test'](_0x3d9807);}function empty(_0x57819d){const _0x1e4774=a3_0x3df1;switch(typeof _0x57819d){case'undefined':return!![];case _0x1e4774(0x7f):if(_0x57819d[_0x1e4774(0x83)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x1e4774(0x7d)]==0x0)return!![];break;case'boolean':if(!_0x57819d)return!![];break;case _0x1e4774(0x7e):if(_0x57819d===0x0||isNaN(_0x57819d))return!![];break;case'object':if(_0x57819d===null||_0x57819d[_0x1e4774(0x7d)]===0x0)return!![];for(const _0x2b3bd9 in _0x57819d){return![];}return!![];}return![];}function jsonString(_0x552641){const _0x164e6e=a3_0x3df1;if(typeof _0x552641===_0x164e6e(0x7f))try{const _0x267efe=JSON['parse'](_0x552641);if(typeof _0x267efe===_0x164e6e(0x76)&&_0x267efe)return!![];return![];}catch(_0x1b8678){return![];}return![];}function array(_0x8d9cb8){const _0x52fe18=a3_0x3df1;if(typeof Array[_0x52fe18(0x79)]===_0x52fe18(0x75))return Array[_0x52fe18(0x79)](_0x8d9cb8);return Object[_0x52fe18(0x8c)]['toString'][_0x52fe18(0x89)](_0x8d9cb8)===_0x52fe18(0x87);}function object(_0x502980){const _0x458756=a3_0x3df1;return Object[_0x458756(0x8c)]['toString']['call'](_0x502980)===_0x458756(0x70);}function code(_0x21c8d9,_0x20fe79=0x6){const _0x328f96=a3_0x3df1;return new RegExp('^\x5cd{'+_0x20fe79+'}$')[_0x328f96(0x7c)](_0x21c8d9);}function func(_0x441647){const _0x33681a=a3_0x3df1;return typeof _0x441647===_0x33681a(0x75);}function promise(_0x4d15c9){const _0x2f5c1d=a3_0x3df1;return object(_0x4d15c9)&&func(_0x4d15c9[_0x2f5c1d(0x82)])&&func(_0x4d15c9[_0x2f5c1d(0x6c)]);}function image(_0x2bfd42){const _0x52c5be=a3_0x3df1,_0x44adaa=_0x2bfd42[_0x52c5be(0x6e)]('?')[0x0],_0x3971dc=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x3971dc[_0x52c5be(0x7c)](_0x44adaa);}function video(_0x43535b){const _0x105052=a3_0x3df1,_0x5452f0=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x5452f0[_0x105052(0x7c)](_0x43535b);}function regExp(_0x87f946){const _0x48ae08=a3_0x3df1;return _0x87f946&&Object[_0x48ae08(0x8c)][_0x48ae08(0x7b)][_0x48ae08(0x89)](_0x87f946)===_0x48ae08(0x6f);}function isNumeric(_0x24c449,_0x42aba5=0x0){const _0x8773fc=a3_0x3df1;if(typeof _0x24c449===_0x8773fc(0x7e))_0x24c449=_0x24c449[_0x8773fc(0x7b)]();if(typeof _0x24c449!==_0x8773fc(0x7f))return![];switch(_0x42aba5){case 0x1:return/^\d+(\.\d+)?$/[_0x8773fc(0x7c)](_0x24c449);case 0x2:return/^-\d+(\.\d+)?$/[_0x8773fc(0x7c)](_0x24c449);case 0x3:return/^-?\d+$/[_0x8773fc(0x7c)](_0x24c449);case 0x4:return/^\d+$/['test'](_0x24c449);case 0x5:return/^-\d+$/[_0x8773fc(0x7c)](_0x24c449);default:return/^-?\d*\.?\d*$/['test'](_0x24c449)&&!_0x24c449['startsWith']('.')&&!_0x24c449['includes']('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x56ef6a=a3_0x1062;(function(_0x5476c0,_0x5793ef){const _0x1c41a2=a3_0x1062,_0x1c5c35=_0x5476c0();while(!![]){try{const _0x4812e7=parseInt(_0x1c41a2(0x1c3))/0x1+parseInt(_0x1c41a2(0x1cc))/0x2+-parseInt(_0x1c41a2(0x1ba))/0x3+parseInt(_0x1c41a2(0x1c7))/0x4*(parseInt(_0x1c41a2(0x1be))/0x5)+-parseInt(_0x1c41a2(0x1d9))/0x6+-parseInt(_0x1c41a2(0x1bc))/0x7+-parseInt(_0x1c41a2(0x1b0))/0x8;if(_0x4812e7===_0x5793ef)break;else _0x1c5c35['push'](_0x1c5c35['shift']());}catch(_0x1b348a){_0x1c5c35['push'](_0x1c5c35['shift']());}}}(a3_0x499e,0x3666d));function fmtNum(_0x3d6a2d){const _0x56d84a=a3_0x1062;if(_0x3d6a2d==0x0)return'0';if(!_0x3d6a2d)return'';let _0x18c2e3=typeof _0x3d6a2d===_0x56d84a(0x1b6)?parseFloat(_0x3d6a2d):_0x3d6a2d;if(isNaN(_0x18c2e3))return'';return _0x18c2e3[_0x56d84a(0x1d6)](_0x56d84a(0x1c8),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x2f776a,_0xa1c63e=![]){const _0x5ecf97=a3_0x1062;let _0x25ba34={'surname':'','givenName':''};if(_0xa1c63e){const _0x323279=_0x2f776a[_0x5ecf97(0x1ce)](',')?_0x2f776a['split'](','):_0x2f776a[_0x5ecf97(0x1d3)](/\s+/);_0x323279[_0x5ecf97(0x1c5)]>=0x2&&(_0x25ba34['surname']=_0x323279[0x0][_0x5ecf97(0x1d0)](),_0x25ba34['givenName']=_0x323279[0x1]['trim']());}else{const _0x43636a=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2a6f7b=0x0;_0x2a6f7b<_0x43636a[_0x5ecf97(0x1c5)];_0x2a6f7b++){const _0x351c36=_0x43636a[_0x2a6f7b];if(_0x2f776a[_0x5ecf97(0x1dd)](_0x351c36))return _0x25ba34[_0x5ecf97(0x1b9)]=_0x351c36,_0x25ba34[_0x5ecf97(0x1cf)]=_0x2f776a[_0x5ecf97(0x1d1)](_0x351c36[_0x5ecf97(0x1c5)])['trim'](),_0x25ba34;}const _0x5da35d=_0x2f776a[_0x5ecf97(0x1d3)]('\x20');if(_0x5da35d[_0x5ecf97(0x1c5)]===0x1){const _0x3edcc9=_0x2f776a[_0x5ecf97(0x1de)](/[\u4e00-\u9fa5]/);_0x25ba34[_0x5ecf97(0x1b9)]=_0x3edcc9?_0x3edcc9[0x0]:'',_0x25ba34['givenName']=_0x2f776a['replace'](_0x25ba34[_0x5ecf97(0x1b9)],'')[_0x5ecf97(0x1d0)]();}else _0x25ba34[_0x5ecf97(0x1b9)]=_0x5da35d[0x0],_0x25ba34['givenName']=_0x5da35d[_0x5ecf97(0x1cd)](0x1)[_0x5ecf97(0x1d2)]('\x20');}return _0x25ba34;}function modifyKeys(_0x2776aa,_0x45b168={'strCode':a3_0x56ef6a(0x1db),'strFjbh':'fjbh','strGuid':a3_0x56ef6a(0x1b7),'strValue':a3_0x56ef6a(0x1cb)}){const _0x2046b0=a3_0x56ef6a;if(!_0x2776aa[_0x2046b0(0x1c5)]||_0x2776aa===null)return[];const _0x55d3ab=_0x2776aa[_0x2046b0(0x1d4)](_0x1a89a2=>{const _0x38fe1c={};for(const _0x6de608 in _0x1a89a2){_0x45b168['hasOwnProperty'](_0x6de608)?_0x38fe1c[_0x45b168[_0x6de608]]=_0x1a89a2[_0x6de608]:_0x38fe1c[_0x6de608]=_0x1a89a2[_0x6de608];}return _0x38fe1c;});return _0x55d3ab;}function sliceArray(_0x211394,_0x4b4beb,_0x56bdb4){const _0x20ca91=a3_0x56ef6a;if(_0x4b4beb<=0x0)return console[_0x20ca91(0x1b8)](_0x20ca91(0x1bb)),[];return _0x56bdb4?_0x211394[_0x20ca91(0x1cd)](0x0,_0x4b4beb):_0x211394['slice'](-_0x4b4beb);}function findDataByData(_0x50c74e,_0xc47c4e,_0x57955e){const _0x55f856=a3_0x56ef6a,_0xfd77f5=_0x50c74e[_0x55f856(0x1c2)](_0x46a78a=>_0x46a78a[_0x57955e]===_0xc47c4e);return _0xfd77f5||null;}function splitArray(_0x5f27be,_0x468154){const _0x53074b=a3_0x56ef6a,_0x527c36=[];for(let _0x25aeb3=0x0;_0x25aeb3<_0x5f27be['length'];_0x25aeb3+=_0x468154){_0x527c36[_0x53074b(0x1da)](_0x5f27be['slice'](_0x25aeb3,_0x25aeb3+_0x468154));}return _0x527c36;}function getProxyType(_0x265f5b){const _0xca35a1=a3_0x56ef6a;return Object[_0xca35a1(0x1b3)][_0xca35a1(0x1b4)]['call'](_0x265f5b)[_0xca35a1(0x1cd)](0x8,-0x1);}let timeout=null;function a3_0x1062(_0x2598d6,_0x25cf42){const _0x499e6c=a3_0x499e();return a3_0x1062=function(_0x10628d,_0x4d76f8){_0x10628d=_0x10628d-0x1af;let _0x7fdbcb=_0x499e6c[_0x10628d];return _0x7fdbcb;},a3_0x1062(_0x2598d6,_0x25cf42);}function debounce(_0x514ce7,_0x118f2f=0x1f4,_0x312571=![]){const _0x271c21=a3_0x56ef6a;if(timeout!==null)clearTimeout(timeout);if(_0x312571){const _0x5cab60=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x118f2f);if(_0x5cab60)typeof _0x514ce7===_0x271c21(0x1d8)&&_0x514ce7();}else timeout=setTimeout(()=>{const _0x43753d=_0x271c21;typeof _0x514ce7===_0x43753d(0x1d8)&&_0x514ce7();},_0x118f2f);}function matchKeyValueInArray(_0x1681e0,_0x4cdb42,_0x477d9c){const _0x5c1693=a3_0x56ef6a;for(let _0x11a745=0x0;_0x11a745<_0x1681e0[_0x5c1693(0x1c5)];_0x11a745++){if(_0x1681e0[_0x11a745][_0x4cdb42]===_0x477d9c)return!![];}return![];}function urlEncode(_0x2acd18={}){const _0x2a308b=a3_0x56ef6a,_0x2fc0ff=[];for(const _0x365891 in _0x2acd18){const _0x30bc41=_0x2acd18[_0x365891];if(!_0x30bc41)continue;isArray(_0x30bc41)?_0x30bc41['forEach'](_0x389c03=>{_0x2fc0ff['push'](_0x365891+'='+_0x389c03);}):_0x2fc0ff[_0x2a308b(0x1da)](_0x365891+'='+_0x30bc41);}return _0x2fc0ff[_0x2a308b(0x1d2)]('&');}function compareDates(_0x3b3907,_0x37b4f3){const _0x20371d=a3_0x56ef6a;_0x3b3907=new Date(_0x3b3907);!_0x37b4f3?_0x37b4f3=new Date():_0x37b4f3=new Date(_0x37b4f3);_0x3b3907['setHours'](0x0,0x0,0x0,0x0),_0x37b4f3['setHours'](0x0,0x0,0x0,0x0);var _0x25366b=_0x3b3907[_0x20371d(0x1c1)](),_0x4f1a0f=_0x37b4f3[_0x20371d(0x1c1)]();if(_0x25366b<_0x4f1a0f)return-0x1;else return _0x25366b>_0x4f1a0f?0x1:0x0;}function getDaysBetween(_0x54d158,_0x549a79){const _0x3f2ef7=a3_0x56ef6a,_0x502ed3=new Date(_0x54d158),_0x3fcdcb=new Date(_0x549a79),_0x20fc25=Math['abs'](_0x502ed3[_0x3f2ef7(0x1c1)]()-_0x3fcdcb[_0x3f2ef7(0x1c1)]()),_0xdb5f3b=Math[_0x3f2ef7(0x1b2)](_0x20fc25/(0x3e8*0x3c*0x3c*0x18));return _0xdb5f3b+0x1;}function chineseNumeral(_0x2ef754){const _0x50acb0=a3_0x56ef6a,_0x2ec5f6=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x57a4cf=['','拾','佰','仟'],_0x4dbc8b=['','万','亿','兆'];let _0x4000d0=Math[_0x50acb0(0x1b2)](_0x2ef754),_0x2b21aa=Math[_0x50acb0(0x1c0)]((_0x2ef754-_0x4000d0)*0x64),_0x16c3ca='';for(let _0x43dc85=0x0;_0x4000d0>0x0;_0x43dc85++){let _0x3272e9='',_0x4575db=_0x4000d0%0x2710;_0x4000d0=Math[_0x50acb0(0x1b2)](_0x4000d0/0x2710);for(let _0x5a1faa=0x0;_0x4575db>0x0;_0x5a1faa++){let _0x39c143=_0x4575db%0xa;_0x3272e9=(_0x39c143?_0x2ec5f6[_0x39c143]+_0x57a4cf[_0x5a1faa]:'')+_0x3272e9,_0x4575db=Math[_0x50acb0(0x1b2)](_0x4575db/0xa);}_0x16c3ca=_0x3272e9+(_0x3272e9?_0x4dbc8b[_0x43dc85]:_0x4dbc8b[_0x43dc85]&&!_0x16c3ca[_0x50acb0(0x1ce)]('零')?'零':'')+_0x16c3ca;}_0x16c3ca+=_0x16c3ca?'元':'零元';if(_0x2b21aa>0x0){let _0x1ec9eb=Math[_0x50acb0(0x1b2)](_0x2b21aa/0xa),_0xd43d1b=_0x2b21aa%0xa;_0x16c3ca+=(_0x1ec9eb?_0x2ec5f6[_0x1ec9eb]+'角':'')+(_0xd43d1b?_0x2ec5f6[_0xd43d1b]+'分':'');}else _0x16c3ca+='整';return _0x16c3ca[_0x50acb0(0x1af)](/零{2,}/g,'零')[_0x50acb0(0x1af)](/零元/,'元');}function getMonthDate(_0x45b547){const _0x125ec6=a3_0x56ef6a;(!_0x45b547||_0x45b547[_0x125ec6(0x1d0)]()==='')&&(_0x45b547=new Date()[_0x125ec6(0x1dc)]()+'-'+(new Date()[_0x125ec6(0x1c9)]()+0x1));let _0x52e44d=[],[_0xb5af56,_0x5743aa]=_0x45b547[_0x125ec6(0x1d3)]('-')[_0x125ec6(0x1d4)](Number),_0x7bb2e=new Date(_0xb5af56,_0x5743aa,0x0),_0x34fc08=_0x7bb2e[_0x125ec6(0x1c4)]();for(let _0x3b3168=0x1;_0x3b3168<=_0x34fc08;_0x3b3168++){let _0x381fc7=_0x3b3168<0xa?'0'+_0x3b3168:''+_0x3b3168,_0x2120e6=_0x5743aa<0xa?'0'+_0x5743aa:''+_0x5743aa;_0x52e44d[_0x125ec6(0x1da)]({'date':_0xb5af56+'-'+_0x2120e6+'-'+_0x381fc7,'disable':!![]});}return _0x52e44d;}function getToday(_0x24302c){const _0x3a6362=a3_0x56ef6a;var _0x39684d=new Date(),_0x3e133d=String(_0x39684d['getDate']())[_0x3a6362(0x1bd)](0x2,'0'),_0x3ddf83=String(_0x39684d['getMonth']()+0x1)[_0x3a6362(0x1bd)](0x2,'0'),_0x5aa242=_0x39684d[_0x3a6362(0x1dc)]();return _0x39684d=_0x5aa242+'-'+_0x3ddf83+'-'+_0x3e133d,_0x39684d;}function resetObject(_0x4c03a1){const _0x5d28da=a3_0x56ef6a;let _0x53e26e=JSON[_0x5d28da(0x1d5)](JSON['stringify'](_0x4c03a1));for(const _0x4e25dd in _0x53e26e){if(typeof _0x53e26e[_0x4e25dd]==='number')_0x53e26e[_0x4e25dd]=0x0;else{if(typeof _0x53e26e[_0x4e25dd]===_0x5d28da(0x1ca))_0x53e26e[_0x4e25dd]=![];else{if(Array[_0x5d28da(0x1c6)](_0x53e26e[_0x4e25dd]))_0x53e26e[_0x4e25dd]=[];else typeof _0x53e26e[_0x4e25dd]===_0x5d28da(0x1bf)&&_0x53e26e[_0x4e25dd]!==null?resetObject(_0x53e26e[_0x4e25dd]):_0x53e26e[_0x4e25dd]='';}}}return _0x53e26e;}function preciseOperation(_0x44ce6a,_0x358748,_0x2bee74,_0x1e8b4b=0xf4240){const _0x1e7c52=a3_0x56ef6a;if(isNaN(_0x44ce6a)||isNaN(_0x358748))return NaN;if(!isFinite(_0x44ce6a)||!isFinite(_0x358748))return NaN;let _0xf137c0=BigInt(Math[_0x1e7c52(0x1c0)](_0x44ce6a*_0x1e8b4b)),_0xb4089=BigInt(Math['round'](_0x358748*_0x1e8b4b)),_0x8c5fcc;switch(_0x2bee74){case 0x1:_0x8c5fcc=_0xf137c0+_0xb4089;break;case 0x2:_0x8c5fcc=_0xf137c0-_0xb4089;break;case 0x3:_0x8c5fcc=_0xf137c0*_0xb4089;break;case 0x4:if(_0xb4089===0x0n)throw new Error(_0x1e7c52(0x1b5));_0x8c5fcc=_0xf137c0/_0xb4089;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x8c5fcc)/_0x1e8b4b;}function preciseSum(_0x44725b){const _0x98e59d=a3_0x56ef6a;let _0x46b2a9=0x0;for(const _0x311325 of _0x44725b){let _0x2f90d0=0x0;if(typeof _0x311325===_0x98e59d(0x1b6)){const _0x4f5af2=parseFloat(_0x311325);!isNaN(_0x4f5af2)&&(_0x2f90d0=_0x4f5af2);}else typeof _0x311325===_0x98e59d(0x1b1)&&(_0x2f90d0=_0x311325);_0x46b2a9=preciseOperation(_0x46b2a9,_0x2f90d0,0x1);}return _0x46b2a9;}function getRelativeDate(_0x131edd,_0x3a425d=0x0){const _0x315e28=a3_0x56ef6a,_0x14b183=new Date(_0x131edd);_0x14b183['setDate'](_0x14b183['getDate']()+_0x3a425d);const _0x327da0=_0x14b183[_0x315e28(0x1dc)](),_0x139b5e=(_0x14b183[_0x315e28(0x1c9)]()+0x1)[_0x315e28(0x1b4)]()[_0x315e28(0x1bd)](0x2,'0'),_0x4b229d=_0x14b183[_0x315e28(0x1c4)]()[_0x315e28(0x1b4)]()[_0x315e28(0x1bd)](0x2,'0');return _0x327da0+'-'+_0x139b5e+'-'+_0x4b229d;}function a3_0x499e(){const _0x41f199=['1831616XZzRXK','number','floor','prototype','toString','除数不能为0','string','value','error','surname','447066rbXDSI','Quantity\x20should\x20be\x20greater\x20than\x200.','1833755ENNaLs','padStart','590xwjVkf','object','round','getTime','find','428039BCdAsz','getDate','length','isArray','7604EVAdDE','en-US','getMonth','boolean','label','474498JQADcq','slice','includes','givenName','trim','substring','join','split','map','parse','toLocaleString','hasOwnProperty','function','161028kLfNBy','push','code','getFullYear','startsWith','match','replace'];a3_0x499e=function(){return _0x41f199;};return a3_0x499e();}function validateFields(_0x1860a8,_0x5c2a69,_0x1b4e1b=''){for(let _0x5f4f3a of _0x5c2a69){if(_0x1860a8[_0x5f4f3a]===_0x1b4e1b)return!![];}return![];}function mergeObjects(_0x42f81b,_0x5b0ab9){const _0x85358d=a3_0x56ef6a;for(const _0x396c1f in _0x42f81b){_0x5b0ab9[_0x85358d(0x1d7)](_0x396c1f)&&(_0x42f81b[_0x396c1f]=_0x5b0ab9[_0x396c1f]);}return _0x42f81b;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
|
1
|
+
const a4_0x373be4=a4_0x38c9;(function(_0x5b30bd,_0x192e81){const _0xcae845=a4_0x38c9,_0x3d98dd=_0x5b30bd();while(!![]){try{const _0x2e807b=-parseInt(_0xcae845(0x1f8))/0x1+-parseInt(_0xcae845(0x1f7))/0x2+parseInt(_0xcae845(0x1ef))/0x3*(-parseInt(_0xcae845(0x1d6))/0x4)+parseInt(_0xcae845(0x1e7))/0x5*(-parseInt(_0xcae845(0x1fd))/0x6)+-parseInt(_0xcae845(0x1df))/0x7*(-parseInt(_0xcae845(0x1f1))/0x8)+parseInt(_0xcae845(0x1fb))/0x9+parseInt(_0xcae845(0x1db))/0xa;if(_0x2e807b===_0x192e81)break;else _0x3d98dd['push'](_0x3d98dd['shift']());}catch(_0x3c4f80){_0x3d98dd['push'](_0x3d98dd['shift']());}}}(a4_0xb7d4,0x8b28a));function fmtNum(_0x25d290){const _0x4a3910=a4_0x38c9;if(_0x25d290==0x0)return'0';if(!_0x25d290)return'';let _0x3dce2d=typeof _0x25d290===_0x4a3910(0x1fa)?parseFloat(_0x25d290):_0x25d290;if(isNaN(_0x3dce2d))return'';return _0x3dce2d['toLocaleString'](_0x4a3910(0x1f4),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x2920a4,_0x134e21=![]){const _0x452e66=a4_0x38c9;let _0x47ae9c={'surname':'','givenName':''};if(_0x134e21){const _0x11c7ff=_0x2920a4[_0x452e66(0x200)](',')?_0x2920a4[_0x452e66(0x1d4)](','):_0x2920a4['split'](/\s+/);_0x11c7ff[_0x452e66(0x1e3)]>=0x2&&(_0x47ae9c[_0x452e66(0x1ec)]=_0x11c7ff[0x0][_0x452e66(0x1fe)](),_0x47ae9c['givenName']=_0x11c7ff[0x1]['trim']());}else{const _0x1c4a58=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x75a594=0x0;_0x75a594<_0x1c4a58[_0x452e66(0x1e3)];_0x75a594++){const _0x39f671=_0x1c4a58[_0x75a594];if(_0x2920a4[_0x452e66(0x1d5)](_0x39f671))return _0x47ae9c[_0x452e66(0x1ec)]=_0x39f671,_0x47ae9c[_0x452e66(0x201)]=_0x2920a4[_0x452e66(0x1f5)](_0x39f671[_0x452e66(0x1e3)])[_0x452e66(0x1fe)](),_0x47ae9c;}const _0x19712e=_0x2920a4['split']('\x20');if(_0x19712e[_0x452e66(0x1e3)]===0x1){const _0x36e6f1=_0x2920a4[_0x452e66(0x1da)](/[\u4e00-\u9fa5]/);_0x47ae9c[_0x452e66(0x1ec)]=_0x36e6f1?_0x36e6f1[0x0]:'',_0x47ae9c['givenName']=_0x2920a4[_0x452e66(0x1ea)](_0x47ae9c[_0x452e66(0x1ec)],'')[_0x452e66(0x1fe)]();}else _0x47ae9c[_0x452e66(0x1ec)]=_0x19712e[0x0],_0x47ae9c[_0x452e66(0x201)]=_0x19712e[_0x452e66(0x1f9)](0x1)[_0x452e66(0x1d8)]('\x20');}return _0x47ae9c;}function modifyKeys(_0x35a11f,_0x217d94={'strCode':a4_0x373be4(0x202),'strFjbh':'fjbh','strGuid':'value','strValue':a4_0x373be4(0x1e8)}){const _0x50f750=a4_0x373be4;if(!_0x35a11f[_0x50f750(0x1e3)]||_0x35a11f===null)return[];const _0xea3cc8=_0x35a11f[_0x50f750(0x1e5)](_0xc0de9c=>{const _0x574de9=_0x50f750,_0x2bfb36={};for(const _0x260e4c in _0xc0de9c){_0x217d94[_0x574de9(0x1fc)](_0x260e4c)?_0x2bfb36[_0x217d94[_0x260e4c]]=_0xc0de9c[_0x260e4c]:_0x2bfb36[_0x260e4c]=_0xc0de9c[_0x260e4c];}return _0x2bfb36;});return _0xea3cc8;}function sliceArray(_0x1988a9,_0x3cb815,_0x5e2fa9){const _0x1dfaf5=a4_0x373be4;if(_0x3cb815<=0x0)return console[_0x1dfaf5(0x1d1)]('Quantity\x20should\x20be\x20greater\x20than\x200.'),[];return _0x5e2fa9?_0x1988a9[_0x1dfaf5(0x1f9)](0x0,_0x3cb815):_0x1988a9[_0x1dfaf5(0x1f9)](-_0x3cb815);}function findDataByData(_0x88162e,_0x33e5f4,_0x3bd14e){const _0x10651c=_0x88162e['find'](_0x2f9155=>_0x2f9155[_0x3bd14e]===_0x33e5f4);return _0x10651c||null;}function splitArray(_0x28904f,_0x17c7cf){const _0x4b98f7=a4_0x373be4,_0x4b15e6=[];for(let _0x591482=0x0;_0x591482<_0x28904f[_0x4b98f7(0x1e3)];_0x591482+=_0x17c7cf){_0x4b15e6[_0x4b98f7(0x1dd)](_0x28904f[_0x4b98f7(0x1f9)](_0x591482,_0x591482+_0x17c7cf));}return _0x4b15e6;}function getProxyType(_0x56412f){const _0x3fa721=a4_0x373be4;return Object[_0x3fa721(0x1f6)][_0x3fa721(0x1d3)][_0x3fa721(0x1eb)](_0x56412f)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x1f3d7a,_0x3ca454=0x1f4,_0x3a5561=![]){const _0x302692=a4_0x373be4;if(timeout!==null)clearTimeout(timeout);if(_0x3a5561){const _0xebd29d=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x3ca454);if(_0xebd29d)typeof _0x1f3d7a===_0x302692(0x1ee)&&_0x1f3d7a();}else timeout=setTimeout(()=>{const _0x3b3ad5=_0x302692;typeof _0x1f3d7a===_0x3b3ad5(0x1ee)&&_0x1f3d7a();},_0x3ca454);}function matchKeyValueInArray(_0x3042e7,_0x113da0,_0x277365){for(let _0x380783=0x0;_0x380783<_0x3042e7['length'];_0x380783++){if(_0x3042e7[_0x380783][_0x113da0]===_0x277365)return!![];}return![];}function urlEncode(_0x55da21={}){const _0x25e68c=a4_0x373be4,_0x59955b=[];for(const _0x2ac8c7 in _0x55da21){const _0x487263=_0x55da21[_0x2ac8c7];if(!_0x487263)continue;isArray(_0x487263)?_0x487263[_0x25e68c(0x1f0)](_0x433e41=>{const _0x5b68be=_0x25e68c;_0x59955b[_0x5b68be(0x1dd)](_0x2ac8c7+'='+_0x433e41);}):_0x59955b['push'](_0x2ac8c7+'='+_0x487263);}return _0x59955b[_0x25e68c(0x1d8)]('&');}function compareDates(_0x46f84a,_0x40f8ae){const _0x6f3c33=a4_0x373be4;_0x46f84a=new Date(_0x46f84a);!_0x40f8ae?_0x40f8ae=new Date():_0x40f8ae=new Date(_0x40f8ae);_0x46f84a['setHours'](0x0,0x0,0x0,0x0),_0x40f8ae[_0x6f3c33(0x1dc)](0x0,0x0,0x0,0x0);var _0x2b8867=_0x46f84a[_0x6f3c33(0x1e0)](),_0x2b3f52=_0x40f8ae[_0x6f3c33(0x1e0)]();if(_0x2b8867<_0x2b3f52)return-0x1;else return _0x2b8867>_0x2b3f52?0x1:0x0;}function getDaysBetween(_0x16e1c6,_0x259719){const _0x4a476a=a4_0x373be4,_0x35ac7a=new Date(_0x16e1c6),_0xb07f86=new Date(_0x259719),_0x2b98a4=Math[_0x4a476a(0x1e1)](_0x35ac7a['getTime']()-_0xb07f86['getTime']()),_0x4ed1f3=Math[_0x4a476a(0x1e6)](_0x2b98a4/(0x3e8*0x3c*0x3c*0x18));return _0x4ed1f3+0x1;}function chineseNumeral(_0x3fc66b){const _0x24f629=a4_0x373be4,_0x3a2414=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1bf2f9=['','拾','佰','仟'],_0x138e23=['','万','亿','兆'];let _0x24ba27=Math[_0x24f629(0x1e6)](_0x3fc66b),_0x38e444=Math[_0x24f629(0x1f2)]((_0x3fc66b-_0x24ba27)*0x64),_0x3a088e='';for(let _0x296afe=0x0;_0x24ba27>0x0;_0x296afe++){let _0x6b81d9='',_0x59affb=_0x24ba27%0x2710;_0x24ba27=Math['floor'](_0x24ba27/0x2710);for(let _0x2148de=0x0;_0x59affb>0x0;_0x2148de++){let _0x3d5911=_0x59affb%0xa;_0x6b81d9=(_0x3d5911?_0x3a2414[_0x3d5911]+_0x1bf2f9[_0x2148de]:'')+_0x6b81d9,_0x59affb=Math['floor'](_0x59affb/0xa);}_0x3a088e=_0x6b81d9+(_0x6b81d9?_0x138e23[_0x296afe]:_0x138e23[_0x296afe]&&!_0x3a088e[_0x24f629(0x200)]('零')?'零':'')+_0x3a088e;}_0x3a088e+=_0x3a088e?'元':'零元';if(_0x38e444>0x0){let _0x40a9e3=Math[_0x24f629(0x1e6)](_0x38e444/0xa),_0x36f342=_0x38e444%0xa;_0x3a088e+=(_0x40a9e3?_0x3a2414[_0x40a9e3]+'角':'')+(_0x36f342?_0x3a2414[_0x36f342]+'分':'');}else _0x3a088e+='整';return _0x3a088e[_0x24f629(0x1ea)](/零{2,}/g,'零')[_0x24f629(0x1ea)](/零元/,'元');}function getMonthDate(_0x5d2908){const _0x4e2e27=a4_0x373be4;(!_0x5d2908||_0x5d2908[_0x4e2e27(0x1fe)]()==='')&&(_0x5d2908=new Date()['getFullYear']()+'-'+(new Date()['getMonth']()+0x1));let _0x68dff4=[],[_0x35770e,_0x446ce5]=_0x5d2908['split']('-')[_0x4e2e27(0x1e5)](Number),_0x273333=new Date(_0x35770e,_0x446ce5,0x0),_0x335150=_0x273333[_0x4e2e27(0x1f3)]();for(let _0x62fb3e=0x1;_0x62fb3e<=_0x335150;_0x62fb3e++){let _0x7f5ffa=_0x62fb3e<0xa?'0'+_0x62fb3e:''+_0x62fb3e,_0x5e6d7f=_0x446ce5<0xa?'0'+_0x446ce5:''+_0x446ce5;_0x68dff4['push']({'date':_0x35770e+'-'+_0x5e6d7f+'-'+_0x7f5ffa,'disable':!![]});}return _0x68dff4;}function getToday(_0x4f5cc5){const _0x533559=a4_0x373be4;var _0x403356=new Date(),_0x4ebe98=String(_0x403356[_0x533559(0x1f3)]())[_0x533559(0x1de)](0x2,'0'),_0x438106=String(_0x403356['getMonth']()+0x1)[_0x533559(0x1de)](0x2,'0'),_0x55a98a=_0x403356[_0x533559(0x1e9)]();return _0x403356=_0x55a98a+'-'+_0x438106+'-'+_0x4ebe98,_0x403356;}function resetObject(_0x5e5dbe){const _0x5e0e77=a4_0x373be4;let _0x2d0f1b=JSON[_0x5e0e77(0x1ed)](JSON[_0x5e0e77(0x1d2)](_0x5e5dbe));for(const _0x51aad1 in _0x2d0f1b){if(typeof _0x2d0f1b[_0x51aad1]===_0x5e0e77(0x203))_0x2d0f1b[_0x51aad1]=0x0;else{if(typeof _0x2d0f1b[_0x51aad1]===_0x5e0e77(0x1e4))_0x2d0f1b[_0x51aad1]=![];else{if(Array['isArray'](_0x2d0f1b[_0x51aad1]))_0x2d0f1b[_0x51aad1]=[];else typeof _0x2d0f1b[_0x51aad1]===_0x5e0e77(0x1ff)&&_0x2d0f1b[_0x51aad1]!==null?resetObject(_0x2d0f1b[_0x51aad1]):_0x2d0f1b[_0x51aad1]='';}}}return _0x2d0f1b;}function preciseOperation(_0xf72a83,_0x519d10,_0x5cdc3f,_0xd096f0=0xf4240){const _0x5391db=a4_0x373be4;if(isNaN(_0xf72a83)||isNaN(_0x519d10))return NaN;if(!isFinite(_0xf72a83)||!isFinite(_0x519d10))return NaN;let _0x50ca6d=BigInt(Math[_0x5391db(0x1f2)](_0xf72a83*_0xd096f0)),_0x26cb69=BigInt(Math['round'](_0x519d10*_0xd096f0)),_0x107b2c;switch(_0x5cdc3f){case 0x1:_0x107b2c=_0x50ca6d+_0x26cb69;break;case 0x2:_0x107b2c=_0x50ca6d-_0x26cb69;break;case 0x3:_0x107b2c=_0x50ca6d*_0x26cb69;break;case 0x4:if(_0x26cb69===0x0n)throw new Error('除数不能为0');_0x107b2c=_0x50ca6d/_0x26cb69;break;default:throw new Error(_0x5391db(0x1d9));}return Number(_0x107b2c)/_0xd096f0;}function preciseSum(_0x18f258){const _0x5e7de8=a4_0x373be4;let _0x1a58bc=0x0;for(const _0x145ad1 of _0x18f258){let _0x6eaa05=0x0;if(typeof _0x145ad1===_0x5e7de8(0x1fa)){const _0x5c8607=parseFloat(_0x145ad1);!isNaN(_0x5c8607)&&(_0x6eaa05=_0x5c8607);}else typeof _0x145ad1===_0x5e7de8(0x203)&&(_0x6eaa05=_0x145ad1);_0x1a58bc=preciseOperation(_0x1a58bc,_0x6eaa05,0x1);}return _0x1a58bc;}function getRelativeDate(_0x4edf53,_0x4458a3=0x0){const _0x10d349=a4_0x373be4,_0x2c1f82=new Date(_0x4edf53);_0x2c1f82[_0x10d349(0x1e2)](_0x2c1f82['getDate']()+_0x4458a3);const _0x1e3284=_0x2c1f82[_0x10d349(0x1e9)](),_0x268177=(_0x2c1f82[_0x10d349(0x1d7)]()+0x1)['toString']()[_0x10d349(0x1de)](0x2,'0'),_0x3fe0fd=_0x2c1f82[_0x10d349(0x1f3)]()[_0x10d349(0x1d3)]()['padStart'](0x2,'0');return _0x1e3284+'-'+_0x268177+'-'+_0x3fe0fd;}function a4_0x38c9(_0x27f3c4,_0x4147a6){const _0xb7d4cc=a4_0xb7d4();return a4_0x38c9=function(_0x38c978,_0x526e96){_0x38c978=_0x38c978-0x1d1;let _0x4aa23d=_0xb7d4cc[_0x38c978];return _0x4aa23d;},a4_0x38c9(_0x27f3c4,_0x4147a6);}function validateFields(_0x25c12d,_0x2c29d1,_0x23fee5=''){for(let _0x36afce of _0x2c29d1){if(_0x25c12d[_0x36afce]===_0x23fee5)return!![];}return![];}function mergeObjects(_0xadaee7,_0x228baf){for(const _0x4d6e74 in _0xadaee7){_0x228baf['hasOwnProperty'](_0x4d6e74)&&(_0xadaee7[_0x4d6e74]=_0x228baf[_0x4d6e74]);}return _0xadaee7;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};function a4_0xb7d4(){const _0x522d7f=['649578PcGaSh','trim','object','includes','givenName','code','number','error','stringify','toString','split','startsWith','166676ZRSByF','getMonth','join','无效的操作符,操作符应为1、2、3或4','match','21910840klwrEP','setHours','push','padStart','63rsGBkh','getTime','abs','setDate','length','boolean','map','floor','5CVcFiI','label','getFullYear','replace','call','surname','parse','function','24UgxhAP','forEach','55000YxAZCK','round','getDate','en-US','substring','prototype','2074042LiXhbw','733503eTGlJa','slice','string','4762566PxPTHS','hasOwnProperty'];a4_0xb7d4=function(){return _0x522d7f;};return a4_0xb7d4();}
|