yunlin 1.0.34 → 1.0.36
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/LICENSE +21 -0
- package/README.md +2 -17
- package/dist/index.js +1 -1
- package/dist/price.js +1 -1
- package/dist/room.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 YC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Yunlin
|
|
2
|
-
> 一个常用工具类
|
|
3
2
|
|
|
4
3
|
[](https://badge.fury.io/js/yunlin)
|
|
4
|
+
[](https://npm-stat.com/charts.html?package=yunlin)
|
|
5
5
|
|
|
6
|
-
`yunlin`
|
|
6
|
+
`yunlin` 是一个实用工具库。
|
|
7
7
|
|
|
8
8
|
## 安装
|
|
9
9
|
|
|
@@ -13,19 +13,4 @@
|
|
|
13
13
|
npm install yunlin
|
|
14
14
|
```
|
|
15
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
16
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xff44f1,_0x5b172a){var _0x1ca6dd=a0_0xcc4d,_0x231ce1=_0xff44f1();while(!![]){try{var _0x2eb77a=-parseInt(_0x1ca6dd(0x178))/0x1+parseInt(_0x1ca6dd(0x177))/0x2+-parseInt(_0x1ca6dd(0x17c))/0x3+-parseInt(_0x1ca6dd(0x179))/0x4*(-parseInt(_0x1ca6dd(0x17b))/0x5)+parseInt(_0x1ca6dd(0x176))/0x6*(parseInt(_0x1ca6dd(0x17a))/0x7)+parseInt(_0x1ca6dd(0x17e))/0x8+parseInt(_0x1ca6dd(0x17d))/0x9;if(_0x2eb77a===_0x5b172a)break;else _0x231ce1['push'](_0x231ce1['shift']());}catch(_0x30e476){_0x231ce1['push'](_0x231ce1['shift']());}}}(a0_0x3cfc,0x9be09));import a0_0x1a46b3 from'./utils';function a0_0xcc4d(_0x39b35f,_0x3a7ccf){var _0x3cfcd4=a0_0x3cfc();return a0_0xcc4d=function(_0xcc4d64,_0xb57b3d){_0xcc4d64=_0xcc4d64-0x176;var _0x4c6a6e=_0x3cfcd4[_0xcc4d64];return _0x4c6a6e;},a0_0xcc4d(_0x39b35f,_0x3a7ccf);}import a0_0x5113cf from'./price';import a0_0x16b2b8 from'./test';import a0_0x24baaa from'./room';function a0_0x3cfc(){var _0x4a49ba=['2173914CjwyGs','5765724GBCNKR','1092536OVYFoI','21636tKAlHz','598622aGtryk','1189885dNiHkI','104lDeKMr','1120AefphT','172985xXUjAx'];a0_0x3cfc=function(){return _0x4a49ba;};return a0_0x3cfc();}export default{'test':a0_0x16b2b8,'utils':a0_0x1a46b3,'price':a0_0x5113cf,'room':a0_0x24baaa};
|
package/dist/price.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a1_0x2bdf66=a1_0x2435;function a1_0x48a0(){const _0x4d6351=['coupon','childnum','減免費用','5MZYESz','671thVQOP','push','4250vcqQZd','baseadultprice','base','757463rAWbBN','機場稅','insure','people','保險費用','adult','floor','adultprice','split','promotion','includes','trip','money','tipuser','childprice','tipday','length','other','reduction','unit','viprecharge','3fRZRsJ','fJcbzlsjUnit','人員費用','num','821040OkDwyK','19752lTDbmA','child','elder','list','unitprice','8829ltDIEA','name','totaltax','nRs','872796wyrogi','rylx','service','8gyUWyo','優惠券','遊客優惠','vipdiscounted','兒童[占床]','users','unitpricewb','931082DsIfLJ','89995lUIcyT','max','filter','vip','totalprice','strLx','map','tip','附加服務','itemname','adultnum','fLsjUnit','其他費用'];a1_0x48a0=function(){return _0x4d6351;};return a1_0x48a0();}(function(_0x59f8fb,_0xae407){const _0x31b1b8=a1_0x2435,_0x31a643=_0x59f8fb();while(!![]){try{const _0x4e1b50=parseInt(_0x31b1b8(0x106))/0x1+-parseInt(_0x31b1b8(0x105))/0x2*(parseInt(_0x31b1b8(0x131))/0x3)+parseInt(_0x31b1b8(0xfb))/0x4*(parseInt(_0x31b1b8(0x116))/0x5)+-parseInt(_0x31b1b8(0x135))/0x6+parseInt(_0x31b1b8(0x11c))/0x7*(parseInt(_0x31b1b8(0xfe))/0x8)+-parseInt(_0x31b1b8(0x13b))/0x9*(-parseInt(_0x31b1b8(0x119))/0xa)+parseInt(_0x31b1b8(0x117))/0xb*(parseInt(_0x31b1b8(0x136))/0xc);if(_0x4e1b50===_0xae407)break;else _0x31a643['push'](_0x31a643['shift']());}catch(_0x118d59){_0x31a643['push'](_0x31a643['shift']());}}}(a1_0x48a0,0x50e59));function handleCosting(_0x591dac,_0x10c7d3='',_0x1d2f0a='-',_0x46eeb2=0x2,_0xddfd98={'people':a1_0x2bdf66(0x133),'service':a1_0x2bdf66(0x10e),'trip':'附加行程','other':a1_0x2bdf66(0x112),'reduction':a1_0x2bdf66(0x115),'totalprice':'總計','airtax':a1_0x2bdf66(0x11d)},_0x2f1286={'adult':'成人','child':'兒童','childusebed':a1_0x2bdf66(0x102),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a1_0x2bdf66(0x100),'vip':'會員減免','promotion':'促銷','insure':a1_0x2bdf66(0x120),'coupon':a1_0x2bdf66(0xff),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x3778f8=a1_0x2bdf66;let _0x411eb0=[];const _0x1aa351='\x20*\x20',_0x6b2a6a=(_0x4c6cc8,_0x21cba1=_0x46eeb2)=>{const _0xef00f6=a1_0x2435;if(isNaN(_0x21cba1)||_0x21cba1<0x0)return _0x4c6cc8;let _0x411657=Number(_0x4c6cc8);if(!isFinite(_0x411657))return _0x4c6cc8;return _0x21cba1=Math[_0xef00f6(0x107)](0x0,Math[_0xef00f6(0x122)](_0x21cba1)),_0x411657['toFixed'](_0x21cba1);},_0x5c9d58=_0x591dac[_0x3778f8(0x108)](_0x41e4fb=>_0x41e4fb[_0x3778f8(0x10b)]=='base');if(_0x5c9d58[_0x3778f8(0x12c)]){let _0x3291c7={'title':_0xddfd98[_0x3778f8(0x11f)],'type':'base','list':[]};_0x5c9d58[_0x3778f8(0x10c)](_0x361aa0=>{const _0x49e53e=_0x3778f8;_0x3291c7['list'][_0x49e53e(0x118)]({'title':_0x2f1286[_0x361aa0['strJgbm']],'info':_0x10c7d3+_0x6b2a6a(_0x361aa0[_0x49e53e(0x111)])+_0x1aa351+_0x361aa0[_0x49e53e(0xfa)],'nRs':_0x361aa0['nRs'],'unit':_0x361aa0[_0x49e53e(0x111)],'cb':_0x361aa0[_0x49e53e(0x132)],'type':_0x49e53e(0x11b)});}),_0x411eb0[_0x3778f8(0x118)](_0x3291c7);}const _0x3bb1cf=_0x591dac['filter'](_0x33a245=>_0x33a245[_0x3778f8(0x10b)]=='service');if(_0x3bb1cf[_0x3778f8(0x12c)]){let _0x594d9c={'title':_0xddfd98[_0x3778f8(0xfd)],'type':_0x3778f8(0xfd),'list':[]};_0x3bb1cf[_0x3778f8(0x10c)](_0x462061=>{const _0x405715=_0x3778f8;_0x594d9c[_0x405715(0x139)][_0x405715(0x118)]({'title':_0x462061[_0x405715(0x13c)]+('['+_0x462061[_0x405715(0x10f)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x462061[_0x405715(0x13a)])+_0x1aa351+_0x462061[_0x405715(0x134)],'nRs':_0x462061[_0x405715(0x134)],'unit':_0x462061[_0x405715(0x13a)],'cb':_0x462061['baseprice'],'type':_0x405715(0xfd)});}),_0x411eb0[_0x3778f8(0x118)](_0x594d9c);}const _0x4df8f0=_0x591dac['filter'](_0x1106c2=>_0x1106c2['strLx']==_0x3778f8(0x127));if(_0x4df8f0[_0x3778f8(0x12c)]){let _0x305434={'title':_0xddfd98[_0x3778f8(0x127)],'type':_0x3778f8(0x127),'list':[]};_0x4df8f0['map'](_0x513706=>{const _0x438f74=_0x3778f8;_0x513706[_0x438f74(0x110)]!='0'&&_0x305434[_0x438f74(0x139)][_0x438f74(0x118)]({'title':_0x513706[_0x438f74(0x13c)]+('['+_0x2f1286[_0x438f74(0x121)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x513706[_0x438f74(0x123)])+_0x1aa351+_0x513706['adultnum'],'nRs':_0x513706[_0x438f74(0x110)],'unit':_0x513706['adultprice'],'cb':_0x513706[_0x438f74(0x11a)],'type':_0x438f74(0x127)}),_0x513706[_0x438f74(0x114)]!='0'&&_0x305434[_0x438f74(0x139)][_0x438f74(0x118)]({'title':_0x513706['name']+('['+_0x2f1286[_0x438f74(0x137)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x513706[_0x438f74(0x12a)])+_0x1aa351+_0x513706[_0x438f74(0x114)],'nRs':_0x513706['childnum'],'unit':_0x513706[_0x438f74(0x12a)],'cb':_0x513706['basechildprice'],'type':_0x438f74(0x127)});}),_0x411eb0['push'](_0x305434);}let _0x3560fc=[];const _0x38f97d=_0x591dac[_0x3778f8(0x108)](_0x46efc1=>_0x46efc1['strLx']==_0x3778f8(0x138));_0x38f97d['length']&&_0x38f97d[_0x3778f8(0x10c)](_0x13eefa=>{const _0x459d6e=_0x3778f8,_0x403d3f=_0x13eefa[_0x459d6e(0x13c)][_0x459d6e(0x124)]('|')||[''];_0x3560fc[_0x459d6e(0x118)]({'title':_0x2f1286[_0x459d6e(0x138)]+('['+_0x403d3f[0x0]+']'),'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x13eefa[_0x459d6e(0x128)]),'unit':_0x13eefa['money'],'cb':_0x13eefa[_0x459d6e(0x128)],'type':_0x459d6e(0x138)});});const _0x58bf1d=_0x591dac['filter'](_0x35ad3b=>_0x35ad3b[_0x3778f8(0x10b)]=='vipdiscounted');_0x58bf1d[_0x3778f8(0x12c)]&&_0x58bf1d[_0x3778f8(0x10c)](_0x269e6e=>{const _0x3446cf=_0x3778f8;_0x3560fc['push']({'title':_0x2f1286[_0x3446cf(0x109)]+('['+_0x269e6e[_0x3446cf(0x13c)]+']'),'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x269e6e[_0x3446cf(0x128)]),'unit':_0x269e6e['money'],'cb':_0x269e6e[_0x3446cf(0x128)],'type':_0x3446cf(0x109)});});const _0x33fa7a=_0x591dac[_0x3778f8(0x108)](_0x4f6d02=>_0x4f6d02[_0x3778f8(0x10b)]==_0x3778f8(0x125));_0x33fa7a[_0x3778f8(0x12c)]&&_0x33fa7a[_0x3778f8(0x10c)](_0x3f55f6=>{const _0x4d8165=_0x3778f8;_0x3560fc['push']({'title':_0x2f1286[_0x4d8165(0x125)],'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x3f55f6['money']),'unit':_0x3f55f6[_0x4d8165(0x128)],'cb':_0x3f55f6[_0x4d8165(0x128)],'type':_0x4d8165(0x125)});});_0x3560fc['length']&&_0x411eb0[_0x3778f8(0x118)]({'title':_0xddfd98[_0x3778f8(0x12e)],'type':'reduction','list':_0x3560fc});const _0x306fd7=_0x591dac[_0x3778f8(0x108)](_0x4d868a=>_0x4d868a['strLx']=='airtax');if(_0x306fd7['length']){let _0x5d2c84={'title':_0xddfd98['airtax'],'type':'airtax','list':[]};_0x306fd7[_0x3778f8(0x10c)](_0x1c8378=>{const _0x4e2baa=_0x3778f8;_0x5d2c84[_0x4e2baa(0x139)][_0x4e2baa(0x118)]({'title':_0x2f1286[_0x1c8378[_0x4e2baa(0xfc)]],'info':_0x10c7d3+_0x6b2a6a(_0x1c8378[_0x4e2baa(0x13a)])+_0x1aa351+_0x1c8378['sl'],'nRs':_0x1c8378['sl'],'unit':_0x1c8378['unitprice'],'cb':_0x1c8378[_0x4e2baa(0x104)],'type':_0x1c8378[_0x4e2baa(0xfc)]});}),_0x411eb0[_0x3778f8(0x118)](_0x5d2c84);}const _0x15addb=[_0x3778f8(0x11b),_0x3778f8(0xfd),_0x3778f8(0x127),_0x3778f8(0x138),_0x3778f8(0x101),_0x3778f8(0x125),'airtax'],_0x1f9888=_0x591dac[_0x3778f8(0x108)](_0x47651d=>!_0x15addb[_0x3778f8(0x126)](_0x47651d[_0x3778f8(0x10b)]));let _0x3278cc={'title':_0xddfd98['other'],'type':_0x3778f8(0x12d),'list':[]};for(var _0x288e21=0x0;_0x288e21<_0x1f9888[_0x3778f8(0x12c)];_0x288e21++){const _0x45d1aa=_0x1f9888[_0x288e21];_0x45d1aa[_0x3778f8(0x10b)]=='viprecharge'&&_0x3278cc['list'][_0x3778f8(0x118)]({'title':_0x2f1286[_0x3778f8(0x130)]+('['+_0x45d1aa[_0x3778f8(0x13c)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x128)]),'unit':_0x45d1aa[_0x3778f8(0x128)],'type':_0x45d1aa[_0x3778f8(0x10b)]}),_0x45d1aa[_0x3778f8(0x10b)]==_0x3778f8(0x11e)&&_0x3278cc[_0x3778f8(0x139)][_0x3778f8(0x118)]({'title':_0x2f1286[_0x3778f8(0x11e)]+('['+_0x45d1aa[_0x3778f8(0x13c)]+']'),'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x12f)])+_0x1aa351+_0x45d1aa[_0x3778f8(0x103)]+_0x2f1286['r'],'nRs':_0x45d1aa['users'],'unit':_0x45d1aa['unit'],'cb':_0x45d1aa[_0x3778f8(0x12f)],'type':_0x3778f8(0x11e)}),(_0x45d1aa['strLx']==_0x3778f8(0x113)||_0x45d1aa['strLx']=='point')&&_0x3278cc['list']['push']({'title':_0x2f1286[_0x45d1aa[_0x3778f8(0x10b)]],'info':_0x10c7d3+_0x1d2f0a+_0x6b2a6a(_0x45d1aa['money']),'unit':_0x45d1aa['money'],'type':_0x45d1aa[_0x3778f8(0x10b)]}),_0x45d1aa[_0x3778f8(0x10b)]==_0x3778f8(0x10d)&&_0x3278cc[_0x3778f8(0x139)][_0x3778f8(0x118)]({'title':_0x2f1286[_0x45d1aa[_0x3778f8(0x10b)]],'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x10d)])+_0x1aa351+_0x45d1aa[_0x3778f8(0x129)]+_0x2f1286['r']+_0x1aa351+_0x45d1aa[_0x3778f8(0x12b)]+_0x2f1286['t'],'nRs':_0x45d1aa['tipuser'],'count':_0x45d1aa[_0x3778f8(0x12b)],'unit':_0x45d1aa['tip'],'type':_0x45d1aa[_0x3778f8(0x10b)]}),_0x45d1aa[_0x3778f8(0x10b)]=='tax'&&_0x3278cc['list']['push']({'title':_0x2f1286[_0x45d1aa[_0x3778f8(0x10b)]],'info':_0x10c7d3+_0x6b2a6a(_0x45d1aa[_0x3778f8(0x13d)]),'unit':_0x45d1aa[_0x3778f8(0x13d)],'type':_0x45d1aa[_0x3778f8(0x10b)]});}_0x3278cc[_0x3778f8(0x139)]['length']&&_0x411eb0['push'](_0x3278cc);const _0x3955d5=_0x591dac[_0x3778f8(0x108)](_0x1bc2c7=>_0x1bc2c7[_0x3778f8(0x10b)]==_0x3778f8(0x10a));return _0x3955d5[_0x3778f8(0x12c)]&&_0x411eb0[_0x3778f8(0x118)]({'title':_0xddfd98['totalprice'],'type':_0x3778f8(0x10a),'list':[{'title':_0xddfd98[_0x3778f8(0x10a)],'info':_0x10c7d3+_0x6b2a6a(_0x3955d5[0x0]['price'])}]}),_0x411eb0;}function a1_0x2435(_0xbc52cf,_0x367f4b){const _0x48a00d=a1_0x48a0();return a1_0x2435=function(_0x243522,_0x1325d){_0x243522=_0x243522-0xfa;let _0x2fb67d=_0x48a00d[_0x243522];return _0x2fb67d;},a1_0x2435(_0xbc52cf,_0x367f4b);}export default{'handleCosting':handleCosting};
|
|
1
|
+
(function(_0x3aa503,_0x5d75b4){const _0x2c219d=a1_0x48fb,_0x27cfc4=_0x3aa503();while(!![]){try{const _0x21810d=-parseInt(_0x2c219d(0x19b))/0x1+parseInt(_0x2c219d(0x190))/0x2+-parseInt(_0x2c219d(0x1bd))/0x3+-parseInt(_0x2c219d(0x18d))/0x4*(-parseInt(_0x2c219d(0x191))/0x5)+-parseInt(_0x2c219d(0x1a6))/0x6*(-parseInt(_0x2c219d(0x183))/0x7)+parseInt(_0x2c219d(0x19e))/0x8+-parseInt(_0x2c219d(0x187))/0x9;if(_0x21810d===_0x5d75b4)break;else _0x27cfc4['push'](_0x27cfc4['shift']());}catch(_0x260246){_0x27cfc4['push'](_0x27cfc4['shift']());}}}(a1_0x55bc,0x95109));function a1_0x48fb(_0x230c45,_0x5f4d35){const _0x55bc2f=a1_0x55bc();return a1_0x48fb=function(_0x48fbe3,_0x1dd2c9){_0x48fbe3=_0x48fbe3-0x175;let _0x2b4841=_0x55bc2f[_0x48fbe3];return _0x2b4841;},a1_0x48fb(_0x230c45,_0x5f4d35);}function handleCosting(_0x4fc607,_0x8dad94='',_0x2713d2={},_0x42f083,_0x2f4901){const _0x2166e2=a1_0x48fb;let _0x3452cd=[];const _0x2b4cbd=_0x2166e2(0x17b),_0x272a8a={'couponSign':'-','dp':0x2};_0x2713d2=typeof _0x2713d2===_0x2166e2(0x178)&&!Array[_0x2166e2(0x18b)](_0x2713d2)&&_0x2713d2!==null?_0x2713d2:{};const _0x4916bc={..._0x272a8a,..._0x2713d2},_0x2bf40a=Object[_0x2166e2(0x185)](_0x272a8a);Object[_0x2166e2(0x185)](_0x2713d2)[_0x2166e2(0x175)](_0x94f66=>{const _0x346703=_0x2166e2;!_0x2bf40a['includes'](_0x94f66)&&console[_0x346703(0x179)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x94f66);});let _0x2507e5=_0x4916bc[_0x2166e2(0x19f)]||'-',_0x127fcb=_0x4916bc['dp']||0x2;const _0xf1d592=(_0x117ec4,_0x2d13c9=_0x127fcb)=>{const _0x1c429e=_0x2166e2;if(typeof _0x117ec4!==_0x1c429e(0x1c2)&&isNaN(Number(_0x117ec4)))return console[_0x1c429e(0x1be)](_0x1c429e(0x184)+_0x117ec4),_0x117ec4;if(isNaN(_0x2d13c9)||_0x2d13c9<0x0)return _0x117ec4;let _0x330c9c=Number(_0x117ec4);if(!isFinite(_0x330c9c))return _0x117ec4;return _0x2d13c9=Math[_0x1c429e(0x194)](0x0,Math[_0x1c429e(0x18c)](_0x2d13c9)),_0x330c9c[_0x1c429e(0x186)](_0x2d13c9);},_0x593227=(_0x143f3b,_0x1de126)=>{const _0x15aedf=_0x2166e2;if(_0x1de126&&typeof _0x1de126===_0x15aedf(0x178)&&!Array[_0x15aedf(0x18b)](_0x1de126))for(const _0x2d1952 in _0x143f3b){_0x143f3b[_0x15aedf(0x1b2)](_0x2d1952)&&_0x1de126[_0x15aedf(0x1b2)](_0x2d1952)&&(_0x143f3b[_0x2d1952]=_0x1de126[_0x2d1952]);}else console[_0x15aedf(0x1be)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x15aedf(0x1ae)](_0x1de126,null,0x2)+_0x15aedf(0x182)+JSON[_0x15aedf(0x1ae)](_0x143f3b,null,0x2))[_0x15aedf(0x176)]());return _0x143f3b;};let _0x21f9fc={'people':_0x2166e2(0x19c),'service':_0x2166e2(0x177),'trip':_0x2166e2(0x17f),'other':'其他費用','reduction':_0x2166e2(0x197),'totalprice':'總計','airtax':_0x2166e2(0x1bb)},_0x24cce6={'adult':'成人','child':'兒童','childusebed':_0x2166e2(0x19d),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x2166e2(0x18e),'vip':'會員減免','promotion':'促銷','insure':'保險費用','coupon':_0x2166e2(0x1a5),'point':'積分','tax':'稅金','viprecharge':_0x2166e2(0x1b8),'r':'人','t':'天'};_0x21f9fc=_0x593227(_0x21f9fc,_0x42f083),_0x24cce6=_0x593227(_0x24cce6,_0x2f4901);const _0x248f5=_0x4fc607[_0x2166e2(0x1c3)](_0x36ad2c=>_0x36ad2c[_0x2166e2(0x1ba)]==_0x2166e2(0x1a8));if(_0x248f5[_0x2166e2(0x1b4)]){let _0x212ec2={'title':_0x21f9fc['people'],'type':_0x2166e2(0x1a8),'list':[]};_0x248f5['map'](_0x51fad9=>{const _0xaf9545=_0x2166e2;_0x212ec2[_0xaf9545(0x17d)][_0xaf9545(0x1a3)]({'title':_0x24cce6[_0x51fad9[_0xaf9545(0x1c1)]],'info':_0x8dad94+_0xf1d592(_0x51fad9[_0xaf9545(0x193)])+_0x2b4cbd+_0x51fad9[_0xaf9545(0x1b7)],'nRs':_0x51fad9[_0xaf9545(0x1b7)],'unit':_0x51fad9['fLsjUnit'],'cb':_0x51fad9[_0xaf9545(0x1b0)],'type':'base'});}),_0x3452cd['push'](_0x212ec2);}const _0x3b79d4=_0x4fc607['filter'](_0x72ffc1=>_0x72ffc1['strLx']==_0x2166e2(0x1b6));if(_0x3b79d4[_0x2166e2(0x1b4)]){let _0x1db8c5={'title':_0x21f9fc[_0x2166e2(0x1b6)],'type':_0x2166e2(0x1b6),'list':[]};_0x3b79d4[_0x2166e2(0x189)](_0x475096=>{const _0x3ce36e=_0x2166e2;_0x1db8c5['list'][_0x3ce36e(0x1a3)]({'title':_0x475096[_0x3ce36e(0x1bc)]+('['+_0x475096[_0x3ce36e(0x1bf)]+']'),'info':_0x8dad94+_0xf1d592(_0x475096[_0x3ce36e(0x1a2)])+_0x2b4cbd+_0x475096['num'],'nRs':_0x475096[_0x3ce36e(0x188)],'unit':_0x475096[_0x3ce36e(0x1a2)],'cb':_0x475096['baseprice'],'type':_0x3ce36e(0x1b6)});}),_0x3452cd['push'](_0x1db8c5);}const _0xceb8bc=_0x4fc607[_0x2166e2(0x1c3)](_0x5db410=>_0x5db410['strLx']==_0x2166e2(0x1b5));if(_0xceb8bc[_0x2166e2(0x1b4)]){let _0x23ca01={'title':_0x21f9fc[_0x2166e2(0x1b5)],'type':_0x2166e2(0x1b5),'list':[]};_0xceb8bc['map'](_0x314fa3=>{const _0x43af5d=_0x2166e2;_0x314fa3[_0x43af5d(0x1ad)]!='0'&&_0x23ca01[_0x43af5d(0x17d)]['push']({'title':_0x314fa3[_0x43af5d(0x1bc)]+('['+_0x24cce6[_0x43af5d(0x1a1)]+']'),'info':_0x8dad94+_0xf1d592(_0x314fa3['adultprice'])+_0x2b4cbd+_0x314fa3[_0x43af5d(0x1ad)],'nRs':_0x314fa3['adultnum'],'unit':_0x314fa3[_0x43af5d(0x192)],'cb':_0x314fa3[_0x43af5d(0x1af)],'type':_0x43af5d(0x1b5)}),_0x314fa3[_0x43af5d(0x1b9)]!='0'&&_0x23ca01['list'][_0x43af5d(0x1a3)]({'title':_0x314fa3['name']+('['+_0x24cce6[_0x43af5d(0x196)]+']'),'info':_0x8dad94+_0xf1d592(_0x314fa3[_0x43af5d(0x198)])+_0x2b4cbd+_0x314fa3[_0x43af5d(0x1b9)],'nRs':_0x314fa3[_0x43af5d(0x1b9)],'unit':_0x314fa3[_0x43af5d(0x198)],'cb':_0x314fa3['basechildprice'],'type':_0x43af5d(0x1b5)});}),_0x3452cd[_0x2166e2(0x1a3)](_0x23ca01);}let _0xd32b57=[];const _0x12bbd8=_0x4fc607[_0x2166e2(0x1c3)](_0x12cb13=>_0x12cb13[_0x2166e2(0x1ba)]==_0x2166e2(0x1b1));_0x12bbd8[_0x2166e2(0x1b4)]&&_0x12bbd8[_0x2166e2(0x189)](_0x8a5dc4=>{const _0x22462d=_0x2166e2,_0x438202=_0x8a5dc4[_0x22462d(0x1bc)][_0x22462d(0x1ac)]('|')||[''];_0xd32b57[_0x22462d(0x1a3)]({'title':_0x24cce6[_0x22462d(0x1b1)]+('['+_0x438202[0x0]+']'),'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x8a5dc4['money']),'unit':_0x8a5dc4[_0x22462d(0x181)],'cb':_0x8a5dc4[_0x22462d(0x181)],'type':'elder'});});const _0x3637d0=_0x4fc607[_0x2166e2(0x1c3)](_0x37a3b5=>_0x37a3b5[_0x2166e2(0x1ba)]=='vipdiscounted');_0x3637d0[_0x2166e2(0x1b4)]&&_0x3637d0[_0x2166e2(0x189)](_0x3d2b38=>{const _0x2cbfaf=_0x2166e2;_0xd32b57[_0x2cbfaf(0x1a3)]({'title':_0x24cce6[_0x2cbfaf(0x18a)]+('['+_0x3d2b38[_0x2cbfaf(0x1bc)]+']'),'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x3d2b38['money']),'unit':_0x3d2b38[_0x2cbfaf(0x181)],'cb':_0x3d2b38[_0x2cbfaf(0x181)],'type':_0x2cbfaf(0x18a)});});const _0x1bf7fb=_0x4fc607[_0x2166e2(0x1c3)](_0xf15dd0=>_0xf15dd0['strLx']==_0x2166e2(0x195));_0x1bf7fb['length']&&_0x1bf7fb[_0x2166e2(0x189)](_0x1ede1b=>{const _0x183d3e=_0x2166e2;_0xd32b57[_0x183d3e(0x1a3)]({'title':_0x24cce6[_0x183d3e(0x195)],'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x1ede1b[_0x183d3e(0x181)]),'unit':_0x1ede1b[_0x183d3e(0x181)],'cb':_0x1ede1b[_0x183d3e(0x181)],'type':_0x183d3e(0x195)});});_0xd32b57[_0x2166e2(0x1b4)]&&_0x3452cd[_0x2166e2(0x1a3)]({'title':_0x21f9fc[_0x2166e2(0x1aa)],'type':'reduction','list':_0xd32b57});const _0xa8a70=_0x4fc607[_0x2166e2(0x1c3)](_0x981b13=>_0x981b13['strLx']=='airtax');if(_0xa8a70[_0x2166e2(0x1b4)]){let _0x4968c0={'title':_0x21f9fc[_0x2166e2(0x17e)],'type':_0x2166e2(0x17e),'list':[]};_0xa8a70[_0x2166e2(0x189)](_0x5293ff=>{const _0xeeddb3=_0x2166e2;_0x4968c0[_0xeeddb3(0x17d)][_0xeeddb3(0x1a3)]({'title':_0x24cce6[_0x5293ff[_0xeeddb3(0x1a9)]],'info':_0x8dad94+_0xf1d592(_0x5293ff[_0xeeddb3(0x1a2)])+_0x2b4cbd+_0x5293ff['sl'],'nRs':_0x5293ff['sl'],'unit':_0x5293ff[_0xeeddb3(0x1a2)],'cb':_0x5293ff['unitpricewb'],'type':_0x5293ff[_0xeeddb3(0x1a9)]});}),_0x3452cd[_0x2166e2(0x1a3)](_0x4968c0);}const _0x3bbb61=[_0x2166e2(0x1a8),'service','trip',_0x2166e2(0x1b1),'vipdiscounted','promotion',_0x2166e2(0x17e)],_0x5db973=_0x4fc607[_0x2166e2(0x1c3)](_0x3f04d9=>!_0x3bbb61[_0x2166e2(0x1a0)](_0x3f04d9[_0x2166e2(0x1ba)]));let _0x42be8f={'title':_0x21f9fc[_0x2166e2(0x1c0)],'type':_0x2166e2(0x1c0),'list':[]};for(var _0x1c9b05=0x0;_0x1c9b05<_0x5db973['length'];_0x1c9b05++){const _0xb37333=_0x5db973[_0x1c9b05];_0xb37333['strLx']==_0x2166e2(0x1ab)&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0x2166e2(0x1ab)]+('['+_0xb37333[_0x2166e2(0x1bc)]+']'),'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x181)]),'unit':_0xb37333[_0x2166e2(0x181)],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333[_0x2166e2(0x1ba)]==_0x2166e2(0x1b3)&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0x2166e2(0x1b3)]+('['+_0xb37333['name']+']'),'info':_0x8dad94+_0xf1d592(_0xb37333['unit'])+_0x2b4cbd+_0xb37333[_0x2166e2(0x17c)]+_0x24cce6['r'],'nRs':_0xb37333[_0x2166e2(0x17c)],'unit':_0xb37333[_0x2166e2(0x17a)],'cb':_0xb37333[_0x2166e2(0x17a)],'type':'insure'}),(_0xb37333[_0x2166e2(0x1ba)]==_0x2166e2(0x1a7)||_0xb37333[_0x2166e2(0x1ba)]=='point')&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0xb37333['strLx']],'info':_0x8dad94+_0x2507e5+_0xf1d592(_0xb37333[_0x2166e2(0x181)]),'unit':_0xb37333['money'],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333['strLx']=='tip'&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0xb37333[_0x2166e2(0x1ba)]],'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x19a)])+_0x2b4cbd+_0xb37333['tipuser']+_0x24cce6['r']+_0x2b4cbd+_0xb37333[_0x2166e2(0x199)]+_0x24cce6['t'],'nRs':_0xb37333[_0x2166e2(0x1a4)],'count':_0xb37333['tipday'],'unit':_0xb37333[_0x2166e2(0x19a)],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333[_0x2166e2(0x1ba)]=='tax'&&_0x42be8f[_0x2166e2(0x17d)]['push']({'title':_0x24cce6[_0xb37333[_0x2166e2(0x1ba)]],'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x180)]),'unit':_0xb37333[_0x2166e2(0x180)],'type':_0xb37333['strLx']});}_0x42be8f['list'][_0x2166e2(0x1b4)]&&_0x3452cd['push'](_0x42be8f);const _0x405073=_0x4fc607['filter'](_0x34aa7c=>_0x34aa7c[_0x2166e2(0x1ba)]=='totalprice');return _0x405073[_0x2166e2(0x1b4)]&&_0x3452cd[_0x2166e2(0x1a3)]({'title':_0x21f9fc['totalprice'],'type':_0x2166e2(0x18f),'list':[{'title':_0x21f9fc[_0x2166e2(0x18f)],'info':_0x8dad94+_0xf1d592(_0x405073[0x0]['price'])}]}),_0x3452cd;}export default{'handleCosting':handleCosting};function a1_0x55bc(){const _0x4ae16f=['totaltax','money','\x0a\x09\x09\x09正确参数:','28oBDfyP','ftd\x20函数接收到无效的数字输入:\x20','keys','toFixed','16044930GgZLRU','num','map','vip','isArray','floor','167644TuexYx','遊客優惠','totalprice','565780wCNXDL','135PgZZhk','adultprice','fLsjUnit','max','promotion','child','減免費用','childprice','tipday','tip','578271HToLcq','人員費用','兒童[占床]','7193384qsjDJr','couponSign','includes','adult','unitprice','push','tipuser','優惠券','1689678QExTnh','coupon','base','rylx','reduction','viprecharge','split','adultnum','stringify','baseadultprice','fJcbzlsjUnit','elder','hasOwnProperty','insure','length','trip','service','nRs','會員充值','childnum','strLx','機場稅','name','1405506yTthFX','error','itemname','other','strJgbm','number','filter','forEach','trim','附加服務','object','warn','unit','\x20*\x20','users','list','airtax','附加行程'];a1_0x55bc=function(){return _0x4ae16f;};return a1_0x55bc();}
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5249d2,_0x27ee9a){const _0x48043c=a2_0x3334,_0x6ee360=_0x5249d2();while(!![]){try{const _0x330ea9=parseInt(_0x48043c(0x105))/0x1*(-parseInt(_0x48043c(0x109))/0x2)+parseInt(_0x48043c(0x120))/0x3*(-parseInt(_0x48043c(0x114))/0x4)+parseInt(_0x48043c(0x108))/0x5+-parseInt(_0x48043c(0x116))/0x6*(parseInt(_0x48043c(0x113))/0x7)+parseInt(_0x48043c(0x11e))/0x8+-parseInt(_0x48043c(0x107))/0x9+-parseInt(_0x48043c(0x121))/0xa*(-parseInt(_0x48043c(0x11d))/0xb);if(_0x330ea9===_0x27ee9a)break;else _0x6ee360['push'](_0x6ee360['shift']());}catch(_0x5494bd){_0x6ee360['push'](_0x6ee360['shift']());}}}(a2_0x51eb,0x2f5c6));function getRoomCount(_0x31ebea,_0xcfa9f0){const _0x3a523f=a2_0x3334,_0x3693f1=Array[_0x3a523f(0x115)](_0x31ebea);if(!_0x3693f1)_0x31ebea=[_0x31ebea];let _0x407899=[];return _0x31ebea[_0x3a523f(0x10c)](_0x1bc361=>{const _0x34e809=_0x3a523f;let _0x44e4a9=![];if(!_0x1bc361[_0x34e809(0x118)]){let _0x5d7652=_0x1bc361[_0x34e809(0x10a)];if(_0x1bc361[_0x34e809(0x11b)]||!_0xcfa9f0[_0x34e809(0x122)])_0x5d7652+=_0x1bc361[_0x34e809(0x110)];const _0x104bb0=_0xcfa9f0[_0x34e809(0x11a)]['find'](_0x1c3e4d=>Number(_0x1c3e4d[_0x34e809(0x10e)])===_0x5d7652);if(!_0x104bb0)_0x44e4a9=!![];else{let _0x5c32b3=_0x1bc361[_0x34e809(0x10a)]+_0x1bc361[_0x34e809(0x110)]+_0x1bc361['infantnum'];_0x5c32b3>_0x104bb0[_0x34e809(0x111)]&&(_0x44e4a9=!![]);}}_0x407899[_0x34e809(0x10b)](_0x44e4a9);}),_0x3693f1?_0x407899:_0x407899[0x0];}function getRoomConfig(_0x2640ab){const _0x3b30b2=a2_0x3334;let _0x119996=_0x2640ab[_0x3b30b2(0x106)](_0x30dd3c=>_0x30dd3c[_0x3b30b2(0x10e)]===_0x3b30b2(0x11b)),_0x270aab=_0x2640ab[_0x3b30b2(0x106)](_0x4b79fd=>_0x4b79fd[_0x3b30b2(0x10e)]===_0x3b30b2(0x119));const _0x24fb42=_0x2640ab['some'](_0x273589=>_0x273589[_0x3b30b2(0x10e)]===_0x3b30b2(0x10d)),_0x2a3df2=_0x2640ab['some'](_0x5a9397=>_0x5a9397[_0x3b30b2(0x10e)]===_0x3b30b2(0x122)),_0xbc998c=_0x2640ab[_0x3b30b2(0x117)](_0x38cfd3=>{const _0x145246=_0x3b30b2;return{'strCode':_0x38cfd3[_0x145246(0x10e)],'nMaxIn':_0x38cfd3[_0x145246(0x111)]};});if(_0x270aab){const _0x48daba=_0x2640ab[_0x3b30b2(0x106)](_0x5d7b27=>_0x5d7b27['strCode']=='2');_0x270aab=_0x270aab&&_0x48daba;}if(_0x119996)_0x119996=_0x119996&&_0x2a3df2;return{'childusebed':_0x119996,'half':_0x270aab,'infant':_0x24fb42,'child':_0x2a3df2,'list':_0xbc998c};}function a2_0x51eb(){const _0x155335=['max','23518AmjLEf','2820032nwjwQj','filter','3jWoOSa','2850jMgknl','child','409QkYKYw','some','136476tytlbC','513240NjzSYq','1214QKpKdy','adultnum','push','forEach','infant','strCode','length','childrennum','nMaxIn','infantnum','154091evbxwI','1019428gHlHUm','isArray','96yNdLej','map','isalotment','half','list','childusebed'];a2_0x51eb=function(){return _0x155335;};return a2_0x51eb();}function isRoomPiece(_0x4975a7,_0x20bca9){const _0x470c27=a2_0x3334;return _0x20bca9&&_0x4975a7[_0x470c27(0x10a)]===0x1&&_0x4975a7[_0x470c27(0x110)]===0x0&&_0x4975a7[_0x470c27(0x112)]===0x0;}function getRoomItemRange(_0x231511,_0x3fac4d,_0x54e84e={'child':'兒童','infant':'嬰兒'}){const _0x18351b=a2_0x3334;if(!_0x3fac4d[_0x18351b(0x10f)])return{'list':[],'yelist':[]};const _0xd93e44=Math[_0x18351b(0x11c)](..._0x3fac4d[_0x18351b(0x117)](_0x5e2b30=>Number(_0x5e2b30['nMaxIn']))),_0x4382fa=_0xd93e44-_0x231511[_0x18351b(0x10a)]-_0x231511['infantnum'];let _0x3d550c=_0xd93e44-_0x231511[_0x18351b(0x10a)]-_0x231511[_0x18351b(0x110)];if(_0x3d550c>0x2)_0x3d550c=0x2;const _0x169df1=(_0x2689df,_0x118307)=>{const _0x228682=_0x18351b,_0x3df840=[];_0x3df840[_0x228682(0x10b)]({'value':0x0,'text':'0\x20'+_0x118307});for(let _0x4d02e3=0x0;_0x4d02e3<_0x2689df;_0x4d02e3++){_0x3df840['push']({'value':_0x4d02e3+0x1,'text':_0x4d02e3+0x1+'\x20'+_0x118307});}return _0x3df840;};return{'list':_0x169df1(_0x4382fa,_0x54e84e[_0x18351b(0x122)]),'yelist':_0x169df1(_0x3d550c,_0x54e84e['infant'])};}function a2_0x3334(_0x495e92,_0x55cf14){const _0x51eb16=a2_0x51eb();return a2_0x3334=function(_0x33345b,_0x2cdc58){_0x33345b=_0x33345b-0x105;let _0x247d98=_0x51eb16[_0x33345b];return _0x247d98;},a2_0x3334(_0x495e92,_0x55cf14);}function getAdultRange(_0x1526c3,_0x16e154='成人'){const _0x5ec510=a2_0x3334;let _0x5f2e20=Math[_0x5ec510(0x11c)](..._0x1526c3[_0x5ec510(0x117)](_0x95806f=>Number(_0x95806f['strCode']))[_0x5ec510(0x11f)](_0x4e3018=>!isNaN(_0x4e3018)));if(!_0x5f2e20)_0x5f2e20=0x4;let _0x415861=[];for(var _0x2c1fe8=0x1;_0x2c1fe8<_0x5f2e20+0x1;_0x2c1fe8++){_0x415861['push']({'value':_0x2c1fe8,'text':_0x2c1fe8+'\x20'+_0x16e154});}return _0x415861;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x370fa3,_0x51f4d6){const _0x51071f=a3_0x2e73,_0x54f2b7=_0x370fa3();while(!![]){try{const _0x41c488=-parseInt(_0x51071f(0x77))/0x1+-parseInt(_0x51071f(0x97))/0x2*(parseInt(_0x51071f(0x79))/0x3)+-parseInt(_0x51071f(0x8c))/0x4*(parseInt(_0x51071f(0x87))/0x5)+-parseInt(_0x51071f(0x8a))/0x6+-parseInt(_0x51071f(0x83))/0x7*(-parseInt(_0x51071f(0x92))/0x8)+parseInt(_0x51071f(0x86))/0x9+parseInt(_0x51071f(0x89))/0xa*(parseInt(_0x51071f(0x8d))/0xb);if(_0x41c488===_0x51f4d6)break;else _0x54f2b7['push'](_0x54f2b7['shift']());}catch(_0x1094a5){_0x54f2b7['push'](_0x54f2b7['shift']());}}}(a3_0x29fe,0x538a7));function email(_0x133120){const _0x45c54a=a3_0x2e73;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x45c54a(0x80)](_0x133120);}function a3_0x2e73(_0x52a47e,_0x30d5ae){const _0x29fea7=a3_0x29fe();return a3_0x2e73=function(_0x2e7357,_0x5ebd0a){_0x2e7357=_0x2e7357-0x76;let _0xd2b65c=_0x29fea7[_0x2e7357];return _0xd2b65c;},a3_0x2e73(_0x52a47e,_0x30d5ae);}function mobile(_0x3de062){const _0x1fa0fe=a3_0x2e73;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x1fa0fe(0x80)](_0x3de062);}function isValidPhoneNumber(_0x5c7743){const _0x4fefd5=a3_0x2e73;if(_0x5c7743[_0x4fefd5(0x94)]('-')){const [_0x27bce8,_0x28bba0]=_0x5c7743[_0x4fefd5(0x8e)]('-');if(_0x27bce8==='86')return/^\d{11}$/[_0x4fefd5(0x80)](_0x28bba0)&&_0x28bba0[_0x4fefd5(0x7e)]('1');else return _0x27bce8==='852'?/^\d{8}$/['test'](_0x28bba0)&&['5','6','9','8'][_0x4fefd5(0x94)](_0x28bba0[_0x4fefd5(0x88)](0x0)):/^\d+$/[_0x4fefd5(0x80)](_0x28bba0);}else return/^\d+$/[_0x4fefd5(0x80)](_0x5c7743);}function url(_0x393342){const _0x4ee758=a3_0x2e73;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4ee758(0x80)](_0x393342);}function date(_0x399bfe){const _0x40394e=a3_0x2e73;if(!_0x399bfe)return![];if(number(_0x399bfe))_0x399bfe=+_0x399bfe;return!/Invalid|NaN/['test'](new Date(_0x399bfe)[_0x40394e(0x81)]());}function dateISO(_0x35bfb6){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x35bfb6);}function isNumber(_0x2cbaad){const _0x206f2e=a3_0x2e73;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x206f2e(0x80)](_0x2cbaad);}function isString(_0x2839fc){const _0xf70dbe=a3_0x2e73;return typeof _0x2839fc===_0xf70dbe(0x7d);}function digits(_0xd3cdc4){const _0x2dd2cb=a3_0x2e73;return/^\d+$/[_0x2dd2cb(0x80)](_0xd3cdc4);}function idCard(_0x535541){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)$/['test'](_0x535541);}function carNo(_0x148d06){const _0x2421b0=a3_0x2e73,_0x4c125b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x259f92=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x148d06[_0x2421b0(0x8b)]===0x7)return _0x259f92['test'](_0x148d06);if(_0x148d06[_0x2421b0(0x8b)]===0x8)return _0x4c125b[_0x2421b0(0x80)](_0x148d06);return![];}function amount(_0x4ec42f){const _0x3465b0=a3_0x2e73;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x3465b0(0x80)](_0x4ec42f);}function a3_0x29fe(){const _0x5987b7=['string','startsWith','number','test','toString','parse','21jauqvK','[object\x20Array]','prototype','50562ljpcQl','892140hIezPK','charAt','149360HFkCTU','2733354CfVjAj','length','4mHnAJv','1122BMPhfE','split','undefined','[object\x20Object]','indexOf','589240GPfzNM','call','includes','object','then','1008vXtrEQ','function','220997abNwQy','isArray','3291OwYHnZ','^\x5cd{','boolean','catch'];a3_0x29fe=function(){return _0x5987b7;};return a3_0x29fe();}function chinese(_0x4c8f2f){const _0x5edc37=a3_0x2e73,_0x40b6e9=/^[\u4e00-\u9fa5]+$/gi;return _0x40b6e9[_0x5edc37(0x80)](_0x4c8f2f);}function letter(_0x15dce0){const _0x1a0ed6=a3_0x2e73;return/^[a-zA-Z]*$/[_0x1a0ed6(0x80)](_0x15dce0);}function enOrNum(_0x46ddf9){const _0x2d592b=/^[0-9a-zA-Z]*$/g;return _0x2d592b['test'](_0x46ddf9);}function contains(_0x15a374,_0x3c4565){const _0x5cec4b=a3_0x2e73;return _0x15a374[_0x5cec4b(0x91)](_0x3c4565)>=0x0;}function range(_0x432e67,_0x5c3888){return _0x432e67>=_0x5c3888[0x0]&&_0x432e67<=_0x5c3888[0x1];}function rangeLength(_0x5be0fb,_0x58b8ef){const _0x2db09a=a3_0x2e73;return _0x5be0fb['length']>=_0x58b8ef[0x0]&&_0x5be0fb[_0x2db09a(0x8b)]<=_0x58b8ef[0x1];}function landline(_0x8dc6ce){const _0x96f519=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x96f519['test'](_0x8dc6ce);}function empty(_0xbd4ed0){const _0x289034=a3_0x2e73;switch(typeof _0xbd4ed0){case _0x289034(0x8f):return!![];case _0x289034(0x7d):if(_0xbd4ed0['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0x289034(0x7b):if(!_0xbd4ed0)return!![];break;case _0x289034(0x7f):if(_0xbd4ed0===0x0||isNaN(_0xbd4ed0))return!![];break;case _0x289034(0x95):if(_0xbd4ed0===null||_0xbd4ed0[_0x289034(0x8b)]===0x0)return!![];for(const _0x195fdf in _0xbd4ed0){return![];}return!![];}return![];}function jsonString(_0x1c4e19){const _0x2e46d9=a3_0x2e73;if(typeof _0x1c4e19===_0x2e46d9(0x7d))try{const _0xcb663c=JSON[_0x2e46d9(0x82)](_0x1c4e19);if(typeof _0xcb663c===_0x2e46d9(0x95)&&_0xcb663c)return!![];return![];}catch(_0x41a296){return![];}return![];}function array(_0x164576){const _0x1e6651=a3_0x2e73;if(typeof Array['isArray']===_0x1e6651(0x76))return Array[_0x1e6651(0x78)](_0x164576);return Object[_0x1e6651(0x85)][_0x1e6651(0x81)]['call'](_0x164576)===_0x1e6651(0x84);}function object(_0x36bb25){const _0x230379=a3_0x2e73;return Object['prototype'][_0x230379(0x81)][_0x230379(0x93)](_0x36bb25)===_0x230379(0x90);}function code(_0x40fa24,_0x167bce=0x6){const _0x381f1d=a3_0x2e73;return new RegExp(_0x381f1d(0x7a)+_0x167bce+'}$')[_0x381f1d(0x80)](_0x40fa24);}function func(_0x2fd4cd){return typeof _0x2fd4cd==='function';}function promise(_0x381fe1){const _0x2754d0=a3_0x2e73;return object(_0x381fe1)&&func(_0x381fe1[_0x2754d0(0x96)])&&func(_0x381fe1[_0x2754d0(0x7c)]);}function image(_0x4ed577){const _0x32e0f2=a3_0x2e73,_0x23af36=_0x4ed577[_0x32e0f2(0x8e)]('?')[0x0],_0x11836b=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x11836b[_0x32e0f2(0x80)](_0x23af36);}function video(_0x178d08){const _0x55eb29=a3_0x2e73,_0x12c978=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x12c978[_0x55eb29(0x80)](_0x178d08);}function regExp(_0x2fd03d){const _0x3860aa=a3_0x2e73;return _0x2fd03d&&Object[_0x3860aa(0x85)][_0x3860aa(0x81)][_0x3860aa(0x93)](_0x2fd03d)==='[object\x20RegExp]';}function isNumeric(_0x422b85,_0x48e896=0x0){const _0x283396=a3_0x2e73;if(typeof _0x422b85===_0x283396(0x7f))_0x422b85=_0x422b85[_0x283396(0x81)]();if(typeof _0x422b85!=='string')return![];switch(_0x48e896){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x422b85);case 0x2:return/^-\d+(\.\d+)?$/[_0x283396(0x80)](_0x422b85);case 0x3:return/^-?\d+$/[_0x283396(0x80)](_0x422b85);case 0x4:return/^\d+$/['test'](_0x422b85);case 0x5:return/^-\d+$/['test'](_0x422b85);default:return/^-?\d*\.?\d*$/[_0x283396(0x80)](_0x422b85)&&!_0x422b85[_0x283396(0x7e)]('.')&&!_0x422b85[_0x283396(0x94)]('--');}}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 a4_0x2172d9=a4_0xe5d6;(function(_0x13f726,_0x2e8c43){const _0x2b0b17=a4_0xe5d6,_0x3e2162=_0x13f726();while(!![]){try{const _0x14479c=-parseInt(_0x2b0b17(0xd9))/0x1+-parseInt(_0x2b0b17(0xdf))/0x2*(parseInt(_0x2b0b17(0xe2))/0x3)+-parseInt(_0x2b0b17(0xf7))/0x4+parseInt(_0x2b0b17(0x106))/0x5*(-parseInt(_0x2b0b17(0xf5))/0x6)+-parseInt(_0x2b0b17(0xd7))/0x7*(parseInt(_0x2b0b17(0xfe))/0x8)+-parseInt(_0x2b0b17(0xe9))/0x9*(-parseInt(_0x2b0b17(0xfc))/0xa)+-parseInt(_0x2b0b17(0xe4))/0xb*(-parseInt(_0x2b0b17(0xe8))/0xc);if(_0x14479c===_0x2e8c43)break;else _0x3e2162['push'](_0x3e2162['shift']());}catch(_0x528d74){_0x3e2162['push'](_0x3e2162['shift']());}}}(a4_0x5428,0x20094));function fmtNum(_0xe956){const _0x1f7b0b=a4_0xe5d6;if(_0xe956==0x0)return'0';if(!_0xe956)return'';let _0x32f7ad=typeof _0xe956===_0x1f7b0b(0x10d)?parseFloat(_0xe956):_0xe956;if(isNaN(_0x32f7ad))return'';return _0x32f7ad[_0x1f7b0b(0xdb)](_0x1f7b0b(0x105),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x4533b9,_0x57dece=![]){const _0x4f0c2e=a4_0xe5d6;let _0x24e96b={'surname':'','givenName':''};if(_0x57dece){const _0x119895=_0x4533b9['includes'](',')?_0x4533b9[_0x4f0c2e(0xe5)](','):_0x4533b9['split'](/\s+/);_0x119895[_0x4f0c2e(0xf8)]>=0x2&&(_0x24e96b[_0x4f0c2e(0xdc)]=_0x119895[0x0][_0x4f0c2e(0xd6)](),_0x24e96b[_0x4f0c2e(0xef)]=_0x119895[0x1][_0x4f0c2e(0xd6)]());}else{const _0x57ac89=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2e35ff=0x0;_0x2e35ff<_0x57ac89[_0x4f0c2e(0xf8)];_0x2e35ff++){const _0x5332b6=_0x57ac89[_0x2e35ff];if(_0x4533b9[_0x4f0c2e(0xd8)](_0x5332b6))return _0x24e96b[_0x4f0c2e(0xdc)]=_0x5332b6,_0x24e96b[_0x4f0c2e(0xef)]=_0x4533b9[_0x4f0c2e(0xdd)](_0x5332b6[_0x4f0c2e(0xf8)])[_0x4f0c2e(0xd6)](),_0x24e96b;}const _0xd56ce6=_0x4533b9[_0x4f0c2e(0xe5)]('\x20');if(_0xd56ce6[_0x4f0c2e(0xf8)]===0x1){const _0x4d9e52=_0x4533b9[_0x4f0c2e(0x108)](/[\u4e00-\u9fa5]/);_0x24e96b[_0x4f0c2e(0xdc)]=_0x4d9e52?_0x4d9e52[0x0]:'',_0x24e96b[_0x4f0c2e(0xef)]=_0x4533b9[_0x4f0c2e(0xff)](_0x24e96b[_0x4f0c2e(0xdc)],'')[_0x4f0c2e(0xd6)]();}else _0x24e96b[_0x4f0c2e(0xdc)]=_0xd56ce6[0x0],_0x24e96b[_0x4f0c2e(0xef)]=_0xd56ce6[_0x4f0c2e(0x104)](0x1)[_0x4f0c2e(0xde)]('\x20');}return _0x24e96b;}function modifyKeys(_0x3d08b0,_0x5d0c6b={'strCode':a4_0x2172d9(0xe1),'strFjbh':a4_0x2172d9(0xf9),'strGuid':a4_0x2172d9(0x103),'strValue':a4_0x2172d9(0xea)}){const _0x658933=a4_0x2172d9;if(!_0x3d08b0[_0x658933(0xf8)]||_0x3d08b0===null)return[];const _0x40d911=_0x3d08b0[_0x658933(0x100)](_0x3d2e2e=>{const _0x2f1821=_0x658933,_0x567fa1={};for(const _0x297302 in _0x3d2e2e){_0x5d0c6b[_0x2f1821(0x10a)](_0x297302)?_0x567fa1[_0x5d0c6b[_0x297302]]=_0x3d2e2e[_0x297302]:_0x567fa1[_0x297302]=_0x3d2e2e[_0x297302];}return _0x567fa1;});return _0x40d911;}function sliceArray(_0x16833c,_0x5413a3,_0x40fee3){const _0x126679=a4_0x2172d9;if(_0x5413a3<=0x0)return console['error'](_0x126679(0xe7)),[];return _0x40fee3?_0x16833c[_0x126679(0x104)](0x0,_0x5413a3):_0x16833c[_0x126679(0x104)](-_0x5413a3);}function findDataByData(_0x5cc1a1,_0x294053,_0x2aa553){const _0x488260=_0x5cc1a1['find'](_0x8419dc=>_0x8419dc[_0x2aa553]===_0x294053);return _0x488260||null;}function splitArray(_0x5165fb,_0x2c1ac9){const _0x139999=a4_0x2172d9,_0x28d71b=[];for(let _0xc76067=0x0;_0xc76067<_0x5165fb[_0x139999(0xf8)];_0xc76067+=_0x2c1ac9){_0x28d71b[_0x139999(0xe6)](_0x5165fb['slice'](_0xc76067,_0xc76067+_0x2c1ac9));}return _0x28d71b;}function getProxyType(_0x16a368){const _0x341b12=a4_0x2172d9;return Object[_0x341b12(0x10b)][_0x341b12(0xed)]['call'](_0x16a368)[_0x341b12(0x104)](0x8,-0x1);}let timeout=null;function debounce(_0x4f9656,_0x268d34=0x1f4,_0x359e00=![]){if(timeout!==null)clearTimeout(timeout);if(_0x359e00){const _0x322184=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x268d34);if(_0x322184)typeof _0x4f9656==='function'&&_0x4f9656();}else timeout=setTimeout(()=>{typeof _0x4f9656==='function'&&_0x4f9656();},_0x268d34);}function a4_0xe5d6(_0x5e5db8,_0x49f39a){const _0x5428e3=a4_0x5428();return a4_0xe5d6=function(_0xe5d6c9,_0x41299d){_0xe5d6c9=_0xe5d6c9-0xd6;let _0x9607df=_0x5428e3[_0xe5d6c9];return _0x9607df;},a4_0xe5d6(_0x5e5db8,_0x49f39a);}function urlEncode(_0x33a60b={}){const _0x31530e=a4_0x2172d9,_0xab0a08=[];for(const _0x2f00ee in _0x33a60b){const _0x22ea7b=_0x33a60b[_0x2f00ee];if(!_0x22ea7b)continue;isArray(_0x22ea7b)?_0x22ea7b[_0x31530e(0xfb)](_0x1f8c7e=>{const _0x485d58=_0x31530e;_0xab0a08[_0x485d58(0xe6)](_0x2f00ee+'='+_0x1f8c7e);}):_0xab0a08[_0x31530e(0xe6)](_0x2f00ee+'='+_0x22ea7b);}return _0xab0a08[_0x31530e(0xde)]('&');}function compareDates(_0x287b37,_0x3fbacb){const _0x1c24bd=a4_0x2172d9;_0x287b37=new Date(_0x287b37);!_0x3fbacb?_0x3fbacb=new Date():_0x3fbacb=new Date(_0x3fbacb);_0x287b37[_0x1c24bd(0xe3)](0x0,0x0,0x0,0x0),_0x3fbacb[_0x1c24bd(0xe3)](0x0,0x0,0x0,0x0);var _0x1c29c3=_0x287b37['getTime'](),_0x1f3202=_0x3fbacb[_0x1c24bd(0x10e)]();if(_0x1c29c3<_0x1f3202)return-0x1;else return _0x1c29c3>_0x1f3202?0x1:0x0;}function getDaysBetween(_0x224065,_0x4f804c){const _0xb47dcf=a4_0x2172d9,_0x15cf69=new Date(_0x224065),_0x3ca0fc=new Date(_0x4f804c),_0x4c8c87=Math['abs'](_0x15cf69[_0xb47dcf(0x10e)]()-_0x3ca0fc[_0xb47dcf(0x10e)]()),_0xf18d92=Math[_0xb47dcf(0xec)](_0x4c8c87/(0x3e8*0x3c*0x3c*0x18));return _0xf18d92+0x1;}function chineseNumeral(_0x51b93b){const _0x521b36=a4_0x2172d9,_0x63d4b1=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1c48c4=['','拾','佰','仟'],_0x413c56=['','万','亿','兆'];let _0x39b220=Math[_0x521b36(0xec)](_0x51b93b),_0x251a82=Math[_0x521b36(0xf0)]((_0x51b93b-_0x39b220)*0x64),_0x4afd9b='';for(let _0x9bfe1c=0x0;_0x39b220>0x0;_0x9bfe1c++){let _0x433411='',_0x4c774f=_0x39b220%0x2710;_0x39b220=Math['floor'](_0x39b220/0x2710);for(let _0x4c8745=0x0;_0x4c774f>0x0;_0x4c8745++){let _0x3ce8e6=_0x4c774f%0xa;_0x433411=(_0x3ce8e6?_0x63d4b1[_0x3ce8e6]+_0x1c48c4[_0x4c8745]:'')+_0x433411,_0x4c774f=Math[_0x521b36(0xec)](_0x4c774f/0xa);}_0x4afd9b=_0x433411+(_0x433411?_0x413c56[_0x9bfe1c]:_0x413c56[_0x9bfe1c]&&!_0x4afd9b[_0x521b36(0x107)]('零')?'零':'')+_0x4afd9b;}_0x4afd9b+=_0x4afd9b?'元':'零元';if(_0x251a82>0x0){let _0x18476d=Math['floor'](_0x251a82/0xa),_0x25e51a=_0x251a82%0xa;_0x4afd9b+=(_0x18476d?_0x63d4b1[_0x18476d]+'角':'')+(_0x25e51a?_0x63d4b1[_0x25e51a]+'分':'');}else _0x4afd9b+='整';return _0x4afd9b[_0x521b36(0xff)](/零{2,}/g,'零')[_0x521b36(0xff)](/零元/,'元');}function getMonthDate(_0x227bcf){const _0x58def0=a4_0x2172d9;(!_0x227bcf||_0x227bcf[_0x58def0(0xd6)]()==='')&&(_0x227bcf=new Date()[_0x58def0(0xf6)]()+'-'+(new Date()[_0x58def0(0x101)]()+0x1));let _0x1941cb=[],[_0x39f60d,_0x82d4bd]=_0x227bcf[_0x58def0(0xe5)]('-')[_0x58def0(0x100)](Number),_0x9f8660=new Date(_0x39f60d,_0x82d4bd,0x0),_0x484cef=_0x9f8660['getDate']();for(let _0x2c1184=0x1;_0x2c1184<=_0x484cef;_0x2c1184++){let _0x154390=_0x2c1184<0xa?'0'+_0x2c1184:''+_0x2c1184,_0x398356=_0x82d4bd<0xa?'0'+_0x82d4bd:''+_0x82d4bd;_0x1941cb[_0x58def0(0xe6)]({'date':_0x39f60d+'-'+_0x398356+'-'+_0x154390,'disable':!![]});}return _0x1941cb;}function getToday(_0x3e9ad2){const _0x23dfd1=a4_0x2172d9;var _0x228fa0=new Date(),_0x32446f=String(_0x228fa0['getDate']())[_0x23dfd1(0xfd)](0x2,'0'),_0x4a2b0e=String(_0x228fa0['getMonth']()+0x1)['padStart'](0x2,'0'),_0x1b09eb=_0x228fa0['getFullYear']();return _0x228fa0=_0x1b09eb+'-'+_0x4a2b0e+'-'+_0x32446f,_0x228fa0;}function resetObject(_0xb70d2f){const _0x36b4d1=a4_0x2172d9;let _0x38c171=JSON[_0x36b4d1(0x10c)](JSON[_0x36b4d1(0xfa)](_0xb70d2f));for(const _0x553d32 in _0x38c171){if(typeof _0x38c171[_0x553d32]===_0x36b4d1(0x102))_0x38c171[_0x553d32]=0x0;else{if(typeof _0x38c171[_0x553d32]===_0x36b4d1(0xf2))_0x38c171[_0x553d32]=![];else{if(Array[_0x36b4d1(0xee)](_0x38c171[_0x553d32]))_0x38c171[_0x553d32]=[];else typeof _0x38c171[_0x553d32]===_0x36b4d1(0xf3)&&_0x38c171[_0x553d32]!==null?resetObject(_0x38c171[_0x553d32]):_0x38c171[_0x553d32]='';}}}return _0x38c171;}function preciseOperation(_0x2c5852,_0x2bf780,_0x456412,_0x4dcbd1=0xf4240){const _0x4196fc=a4_0x2172d9;if(isNaN(_0x2c5852)||isNaN(_0x2bf780))return NaN;if(!isFinite(_0x2c5852)||!isFinite(_0x2bf780))return NaN;let _0x402ccb=BigInt(Math[_0x4196fc(0xf0)](_0x2c5852*_0x4dcbd1)),_0x7508b5=BigInt(Math['round'](_0x2bf780*_0x4dcbd1)),_0x1323d3;switch(_0x456412){case 0x1:_0x1323d3=_0x402ccb+_0x7508b5;break;case 0x2:_0x1323d3=_0x402ccb-_0x7508b5;break;case 0x3:_0x1323d3=_0x402ccb*_0x7508b5;break;case 0x4:if(_0x7508b5===0x0n)throw new Error(_0x4196fc(0xf4));_0x1323d3=_0x402ccb/_0x7508b5;break;default:throw new Error(_0x4196fc(0xeb));}return Number(_0x1323d3)/_0x4dcbd1;}function preciseSum(_0x57d9c0){const _0x4cf936=a4_0x2172d9;let _0x9d0eaf=0x0;for(const _0x35f0e5 of _0x57d9c0){let _0x8a35d9=0x0;if(typeof _0x35f0e5===_0x4cf936(0x10d)){const _0x4dea57=parseFloat(_0x35f0e5);!isNaN(_0x4dea57)&&(_0x8a35d9=_0x4dea57);}else typeof _0x35f0e5===_0x4cf936(0x102)&&(_0x8a35d9=_0x35f0e5);_0x9d0eaf=preciseOperation(_0x9d0eaf,_0x8a35d9,0x1);}return _0x9d0eaf;}function getRelativeDate(_0x198f9c,_0x192d2a=0x0){const _0x5763c4=a4_0x2172d9,_0x2731a0=new Date(_0x198f9c);_0x2731a0[_0x5763c4(0xda)](_0x2731a0[_0x5763c4(0xe0)]()+_0x192d2a);const _0x89b12e=_0x2731a0[_0x5763c4(0xf6)](),_0x587ca6=(_0x2731a0[_0x5763c4(0x101)]()+0x1)[_0x5763c4(0xed)]()[_0x5763c4(0xfd)](0x2,'0'),_0x789312=_0x2731a0['getDate']()['toString']()[_0x5763c4(0xfd)](0x2,'0');return _0x89b12e+'-'+_0x587ca6+'-'+_0x789312;}function validateFields(_0x36fa63,_0x2e120,_0x24dc5a=''){for(let _0x496a30 of _0x2e120){if(_0x36fa63[_0x496a30]===_0x24dc5a)return!![];}return![];}function mergeObjects(_0x4dcd31,_0x27e85a){const _0x20f57f=a4_0x2172d9;for(const _0x36b302 in _0x4dcd31){_0x27e85a[_0x20f57f(0x10a)](_0x36b302)&&(_0x4dcd31[_0x36b302]=_0x27e85a[_0x36b302]);}return _0x4dcd31;}const formatToDecimal=(_0x1b4692,_0x3b4382=0x2)=>{const _0x5edade=a4_0x2172d9;if(isNaN(_0x3b4382)||_0x3b4382<0x0)return _0x1b4692;let _0xee70f2=Number(_0x1b4692);if(!isFinite(_0xee70f2))return _0x1b4692;return _0x3b4382=Math[_0x5edade(0xf1)](0x0,Math[_0x5edade(0xec)](_0x3b4382)),_0xee70f2['toFixed'](_0x3b4382);};function a4_0x5428(){const _0x3111b9=['max','boolean','object','除数不能为0','444396JjbOqo','getFullYear','449952zTTxpQ','length','fjbh','stringify','forEach','2770QyDZBz','padStart','15840BTGPRF','replace','map','getMonth','number','value','slice','en-US','5kJibJL','includes','match','endsWith','hasOwnProperty','prototype','parse','string','getTime','trim','329JAyYUc','startsWith','56854fLOUTP','setDate','toLocaleString','surname','substring','join','14PwdEyW','getDate','code','20838cZZqLY','setHours','4640383VVZumO','split','push','Quantity\x20should\x20be\x20greater\x20than\x200.','12ukHGes','3069vAmPOz','label','无效的操作符,操作符应为1、2、3或4','floor','toString','isArray','givenName','round'];a4_0x5428=function(){return _0x3111b9;};return a4_0x5428();}function findKeysEndingWith(_0x3e9ecc,_0x553631='_qh'){const _0x21b3a9=a4_0x2172d9;let _0x3fea6b=[];for(var _0x3ae38b in _0x3e9ecc){if(_0x3e9ecc[_0x21b3a9(0x10a)](_0x3ae38b)){if(_0x3ae38b[_0x21b3a9(0x109)](_0x553631))_0x3fea6b[_0x21b3a9(0xe6)](_0x3ae38b);}}return _0x3fea6b;}export default{'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'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_0x2d371c=a4_0x116d;(function(_0x402a17,_0x5b9cd4){const _0x36b746=a4_0x116d,_0x4ca3b0=_0x402a17();while(!![]){try{const _0x43e087=-parseInt(_0x36b746(0x172))/0x1+-parseInt(_0x36b746(0x171))/0x2*(parseInt(_0x36b746(0x173))/0x3)+-parseInt(_0x36b746(0x18c))/0x4+-parseInt(_0x36b746(0x164))/0x5+parseInt(_0x36b746(0x18f))/0x6+-parseInt(_0x36b746(0x189))/0x7*(parseInt(_0x36b746(0x169))/0x8)+parseInt(_0x36b746(0x16e))/0x9*(parseInt(_0x36b746(0x15d))/0xa);if(_0x43e087===_0x5b9cd4)break;else _0x4ca3b0['push'](_0x4ca3b0['shift']());}catch(_0x35f3de){_0x4ca3b0['push'](_0x4ca3b0['shift']());}}}(a4_0x2754,0xc5147));function fmtNum(_0x498f30){const _0x7ca6a=a4_0x116d;if(_0x498f30==0x0)return'0';if(!_0x498f30)return'';let _0x348579=typeof _0x498f30===_0x7ca6a(0x184)?parseFloat(_0x498f30):_0x498f30;if(isNaN(_0x348579))return'';return _0x348579['toLocaleString'](_0x7ca6a(0x170),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x53eb52,_0x2bc1f6=![]){const _0x4c48dc=a4_0x116d;let _0x1962a3={'surname':'','givenName':''};if(_0x2bc1f6){const _0x41a0ca=_0x53eb52[_0x4c48dc(0x179)](',')?_0x53eb52[_0x4c48dc(0x16f)](','):_0x53eb52[_0x4c48dc(0x16f)](/\s+/);_0x41a0ca[_0x4c48dc(0x190)]>=0x2&&(_0x1962a3['surname']=_0x41a0ca[0x0][_0x4c48dc(0x188)](),_0x1962a3[_0x4c48dc(0x174)]=_0x41a0ca[0x1][_0x4c48dc(0x188)]());}else{const _0x4cc18c=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x382aa8=0x0;_0x382aa8<_0x4cc18c[_0x4c48dc(0x190)];_0x382aa8++){const _0x370ed8=_0x4cc18c[_0x382aa8];if(_0x53eb52[_0x4c48dc(0x17b)](_0x370ed8))return _0x1962a3[_0x4c48dc(0x16a)]=_0x370ed8,_0x1962a3['givenName']=_0x53eb52[_0x4c48dc(0x15a)](_0x370ed8[_0x4c48dc(0x190)])[_0x4c48dc(0x188)](),_0x1962a3;}const _0x3129ec=_0x53eb52[_0x4c48dc(0x16f)]('\x20');if(_0x3129ec['length']===0x1){const _0x3a0928=_0x53eb52[_0x4c48dc(0x162)](/[\u4e00-\u9fa5]/);_0x1962a3[_0x4c48dc(0x16a)]=_0x3a0928?_0x3a0928[0x0]:'',_0x1962a3['givenName']=_0x53eb52[_0x4c48dc(0x168)](_0x1962a3[_0x4c48dc(0x16a)],'')[_0x4c48dc(0x188)]();}else _0x1962a3['surname']=_0x3129ec[0x0],_0x1962a3['givenName']=_0x3129ec[_0x4c48dc(0x17d)](0x1)[_0x4c48dc(0x16d)]('\x20');}return _0x1962a3;}function modifyKeys(_0x101ed7,_0x324032={'strCode':'code','strFjbh':a4_0x2d371c(0x163),'strGuid':a4_0x2d371c(0x157),'strValue':a4_0x2d371c(0x18a)}){const _0x3134f0=a4_0x2d371c;if(!_0x101ed7[_0x3134f0(0x190)]||_0x101ed7===null)return[];const _0x205473=_0x101ed7[_0x3134f0(0x178)](_0xfd4c10=>{const _0x2e6db3=_0x3134f0,_0x4f1e6d={};for(const _0x3e549d in _0xfd4c10){_0x324032[_0x2e6db3(0x176)](_0x3e549d)?_0x4f1e6d[_0x324032[_0x3e549d]]=_0xfd4c10[_0x3e549d]:_0x4f1e6d[_0x3e549d]=_0xfd4c10[_0x3e549d];}return _0x4f1e6d;});return _0x205473;}function sliceArray(_0x58621b,_0x322900,_0x286ee2){const _0x553e6c=a4_0x2d371c;if(_0x322900<=0x0)return console[_0x553e6c(0x15f)](_0x553e6c(0x17c)),[];return _0x286ee2?_0x58621b[_0x553e6c(0x17d)](0x0,_0x322900):_0x58621b[_0x553e6c(0x17d)](-_0x322900);}function findDataByData(_0x5a6abc,_0x20b2fa,_0x3187a5){const _0x4bc759=a4_0x2d371c,_0x113d85=_0x5a6abc[_0x4bc759(0x18b)](_0x33288c=>_0x33288c[_0x3187a5]===_0x20b2fa);return _0x113d85||null;}function splitArray(_0x14fae8,_0x4b0d9c){const _0x2c2119=a4_0x2d371c,_0x3e8ca9=[];for(let _0x30867d=0x0;_0x30867d<_0x14fae8[_0x2c2119(0x190)];_0x30867d+=_0x4b0d9c){_0x3e8ca9[_0x2c2119(0x175)](_0x14fae8[_0x2c2119(0x17d)](_0x30867d,_0x30867d+_0x4b0d9c));}return _0x3e8ca9;}function getProxyType(_0xfab32e){const _0xad6661=a4_0x2d371c;return Object[_0xad6661(0x159)][_0xad6661(0x160)][_0xad6661(0x185)](_0xfab32e)[_0xad6661(0x17d)](0x8,-0x1);}let timeout=null;function debounce(_0x3e4ecf,_0x1ce0e6=0x1f4,_0x5c6af1=![]){const _0x19b3b6=a4_0x2d371c;if(timeout!==null)clearTimeout(timeout);if(_0x5c6af1){const _0x35d378=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1ce0e6);if(_0x35d378)typeof _0x3e4ecf===_0x19b3b6(0x18d)&&_0x3e4ecf();}else timeout=setTimeout(()=>{const _0x30c4ba=_0x19b3b6;typeof _0x3e4ecf===_0x30c4ba(0x18d)&&_0x3e4ecf();},_0x1ce0e6);}function urlEncode(_0x47e321={}){const _0xc30eb3=a4_0x2d371c,_0x566a61=[];for(const _0x44d96f in _0x47e321){const _0x568ab3=_0x47e321[_0x44d96f];if(!_0x568ab3)continue;isArray(_0x568ab3)?_0x568ab3[_0xc30eb3(0x161)](_0x116df5=>{const _0x5b017d=_0xc30eb3;_0x566a61[_0x5b017d(0x175)](_0x44d96f+'='+_0x116df5);}):_0x566a61['push'](_0x44d96f+'='+_0x568ab3);}return _0x566a61[_0xc30eb3(0x16d)]('&');}function a4_0x116d(_0x3cbc43,_0x34a96c){const _0x275424=a4_0x2754();return a4_0x116d=function(_0x116dc5,_0xee62dd){_0x116dc5=_0x116dc5-0x150;let _0x52127a=_0x275424[_0x116dc5];return _0x52127a;},a4_0x116d(_0x3cbc43,_0x34a96c);}function dateFormat(_0x2c3c7f,_0x4488b7){const _0x240a63=a4_0x2d371c,_0xcf2806=new Date(_0x4488b7),_0x24ba40={'Y+':_0xcf2806[_0x240a63(0x167)]()[_0x240a63(0x160)](),'m+':(_0xcf2806[_0x240a63(0x183)]()+0x1)[_0x240a63(0x160)](),'d+':_0xcf2806[_0x240a63(0x15c)]()[_0x240a63(0x160)](),'H+':_0xcf2806['getHours']()[_0x240a63(0x160)](),'M+':_0xcf2806['getMinutes']()[_0x240a63(0x160)](),'S+':_0xcf2806[_0x240a63(0x158)]()[_0x240a63(0x160)]()};let _0x1abd0d;for(let _0x1cac34 in _0x24ba40){_0x1abd0d=new RegExp('('+_0x1cac34+')')[_0x240a63(0x153)](_0x2c3c7f);_0x1abd0d&&(_0x2c3c7f=_0x2c3c7f[_0x240a63(0x168)](_0x1abd0d[0x1],_0x1abd0d[0x1][_0x240a63(0x190)]==0x1?_0x24ba40[_0x1cac34]:_0x24ba40[_0x1cac34]['padStart'](_0x1abd0d[0x1][_0x240a63(0x190)],'0')));;};return _0x2c3c7f;}function formatDate(_0x5068be,_0x5d8e76='YYYY-MM-DD',_0x4a83eb={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x5a9138=a4_0x2d371c,_0x10185c=new Date(_0x5068be),_0x4995bf=_0x10185c[_0x5a9138(0x167)](),_0x316068=_0x10185c['getMonth']()+0x1,_0x4c2743=_0x10185c[_0x5a9138(0x15c)](),_0x1fff0b=_0x316068<0xa?'0'+_0x316068:_0x316068,_0x438902=_0x4c2743<0xa?'0'+_0x4c2743:_0x4c2743;let _0x4cb5ff=_0x5d8e76[_0x5a9138(0x168)](_0x5a9138(0x154),_0x4995bf)[_0x5a9138(0x168)]('MM',_0x1fff0b)['replace']('DD',_0x438902);return _0x4cb5ff=_0x4cb5ff[_0x5a9138(0x168)](/-MM/g,_0x4a83eb[_0x5a9138(0x17a)])[_0x5a9138(0x168)](/-DD/g,_0x4a83eb['dayTitle'])[_0x5a9138(0x168)]('YYYY'+_0x4a83eb[_0x5a9138(0x151)],'')[_0x5a9138(0x168)]('MM'+_0x4a83eb[_0x5a9138(0x17a)],'')[_0x5a9138(0x168)]('DD'+_0x4a83eb['dayTitle'],''),_0x4cb5ff;}function compareDates(_0x4c4525,_0x3606fd){const _0x2b84e4=a4_0x2d371c;_0x4c4525=new Date(_0x4c4525);!_0x3606fd?_0x3606fd=new Date():_0x3606fd=new Date(_0x3606fd);_0x4c4525['setHours'](0x0,0x0,0x0,0x0),_0x3606fd[_0x2b84e4(0x182)](0x0,0x0,0x0,0x0);var _0x1c53aa=_0x4c4525['getTime'](),_0x930553=_0x3606fd[_0x2b84e4(0x16b)]();if(_0x1c53aa<_0x930553)return-0x1;else return _0x1c53aa>_0x930553?0x1:0x0;}function getDaysBetween(_0x37ae6d,_0xee3057){const _0x56e4fb=a4_0x2d371c,_0x479845=new Date(_0x37ae6d),_0x19a749=new Date(_0xee3057),_0x576f70=Math['abs'](_0x479845[_0x56e4fb(0x16b)]()-_0x19a749[_0x56e4fb(0x16b)]()),_0x568441=Math[_0x56e4fb(0x187)](_0x576f70/(0x3e8*0x3c*0x3c*0x18));return _0x568441+0x1;}function chineseNumeral(_0x216c94){const _0x1d41d7=a4_0x2d371c,_0x590680=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4f9b70=['','拾','佰','仟'],_0x3815e=['','万','亿','兆'];let _0xeeff8f=Math[_0x1d41d7(0x187)](_0x216c94),_0x53183b=Math[_0x1d41d7(0x17f)]((_0x216c94-_0xeeff8f)*0x64),_0x3e8991='';for(let _0x232d85=0x0;_0xeeff8f>0x0;_0x232d85++){let _0x57c8c8='',_0x25408a=_0xeeff8f%0x2710;_0xeeff8f=Math[_0x1d41d7(0x187)](_0xeeff8f/0x2710);for(let _0x1ce047=0x0;_0x25408a>0x0;_0x1ce047++){let _0x3a646c=_0x25408a%0xa;_0x57c8c8=(_0x3a646c?_0x590680[_0x3a646c]+_0x4f9b70[_0x1ce047]:'')+_0x57c8c8,_0x25408a=Math[_0x1d41d7(0x187)](_0x25408a/0xa);}_0x3e8991=_0x57c8c8+(_0x57c8c8?_0x3815e[_0x232d85]:_0x3815e[_0x232d85]&&!_0x3e8991['includes']('零')?'零':'')+_0x3e8991;}_0x3e8991+=_0x3e8991?'元':'零元';if(_0x53183b>0x0){let _0x5cd802=Math[_0x1d41d7(0x187)](_0x53183b/0xa),_0x360714=_0x53183b%0xa;_0x3e8991+=(_0x5cd802?_0x590680[_0x5cd802]+'角':'')+(_0x360714?_0x590680[_0x360714]+'分':'');}else _0x3e8991+='整';return _0x3e8991[_0x1d41d7(0x168)](/零{2,}/g,'零')[_0x1d41d7(0x168)](/零元/,'元');}function getMonthDate(_0x9b1f77){const _0x292cd6=a4_0x2d371c;(!_0x9b1f77||_0x9b1f77[_0x292cd6(0x188)]()==='')&&(_0x9b1f77=new Date()[_0x292cd6(0x167)]()+'-'+(new Date()[_0x292cd6(0x183)]()+0x1));let _0x5223a0=[],[_0xf8a5c9,_0x1ce7c6]=_0x9b1f77[_0x292cd6(0x16f)]('-')[_0x292cd6(0x178)](Number),_0x39cdaf=new Date(_0xf8a5c9,_0x1ce7c6,0x0),_0x204eb8=_0x39cdaf[_0x292cd6(0x15c)]();for(let _0x577d03=0x1;_0x577d03<=_0x204eb8;_0x577d03++){let _0x4888d8=_0x577d03<0xa?'0'+_0x577d03:''+_0x577d03,_0x4516ff=_0x1ce7c6<0xa?'0'+_0x1ce7c6:''+_0x1ce7c6;_0x5223a0[_0x292cd6(0x175)]({'date':_0xf8a5c9+'-'+_0x4516ff+'-'+_0x4888d8,'disable':!![]});}return _0x5223a0;}function a4_0x2754(){const _0x4ae44a=['Quantity\x20should\x20be\x20greater\x20than\x200.','slice','shift','round','isArray','max','setHours','getMonth','string','call','setDate','floor','trim','1603wfRjId','label','find','5518004VFOnXK','function','除数不能为0','974496IcGHot','length','_qh','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','yearTitle','right','exec','YYYY','number','toFixed','value','getSeconds','prototype','substring','both','getDate','4088740bFsOpn','random','error','toString','forEach','match','fjbh','7217035tcpHlT','stringify','object','getFullYear','replace','19344fdvPuW','surname','getTime','padStart','join','135IfgmeA','split','en-US','2LDKYwl','919142whZbcL','3577545nEZusU','givenName','push','hasOwnProperty','endsWith','map','includes','monthTitle','startsWith'];a4_0x2754=function(){return _0x4ae44a;};return a4_0x2754();}function getToday(_0x33fc44){const _0x3d1d44=a4_0x2d371c;var _0xb1dbaa=new Date(),_0x330109=String(_0xb1dbaa[_0x3d1d44(0x15c)]())[_0x3d1d44(0x16c)](0x2,'0'),_0x4614c2=String(_0xb1dbaa[_0x3d1d44(0x183)]()+0x1)[_0x3d1d44(0x16c)](0x2,'0'),_0x2c67c1=_0xb1dbaa[_0x3d1d44(0x167)]();return _0xb1dbaa=_0x2c67c1+'-'+_0x4614c2+'-'+_0x330109,_0xb1dbaa;}function resetObject(_0x45da8f){const _0x20bfea=a4_0x2d371c;let _0x1ffc8e=JSON['parse'](JSON[_0x20bfea(0x165)](_0x45da8f));for(const _0xbadfce in _0x1ffc8e){if(typeof _0x1ffc8e[_0xbadfce]===_0x20bfea(0x155))_0x1ffc8e[_0xbadfce]=0x0;else{if(typeof _0x1ffc8e[_0xbadfce]==='boolean')_0x1ffc8e[_0xbadfce]=![];else{if(Array[_0x20bfea(0x180)](_0x1ffc8e[_0xbadfce]))_0x1ffc8e[_0xbadfce]=[];else typeof _0x1ffc8e[_0xbadfce]===_0x20bfea(0x166)&&_0x1ffc8e[_0xbadfce]!==null?resetObject(_0x1ffc8e[_0xbadfce]):_0x1ffc8e[_0xbadfce]='';}}}return _0x1ffc8e;}function preciseOperation(_0xb14ce3,_0x1769b4,_0x6a6be9,_0x3811c7=0xf4240){const _0x70e2e6=a4_0x2d371c;if(isNaN(_0xb14ce3)||isNaN(_0x1769b4))return NaN;if(!isFinite(_0xb14ce3)||!isFinite(_0x1769b4))return NaN;let _0xa493bd=BigInt(Math[_0x70e2e6(0x17f)](_0xb14ce3*_0x3811c7)),_0x43c341=BigInt(Math[_0x70e2e6(0x17f)](_0x1769b4*_0x3811c7)),_0x32b42c;switch(_0x6a6be9){case 0x1:_0x32b42c=_0xa493bd+_0x43c341;break;case 0x2:_0x32b42c=_0xa493bd-_0x43c341;break;case 0x3:_0x32b42c=_0xa493bd*_0x43c341;break;case 0x4:if(_0x43c341===0x0n)throw new Error(_0x70e2e6(0x18e));_0x32b42c=_0xa493bd/_0x43c341;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x32b42c)/_0x3811c7;}function preciseSum(_0x3cec5e){const _0x5da7c7=a4_0x2d371c;let _0x7e9f2f=0x0;for(const _0x55f992 of _0x3cec5e){let _0x3226d2=0x0;if(typeof _0x55f992==='string'){const _0x48f47a=parseFloat(_0x55f992);!isNaN(_0x48f47a)&&(_0x3226d2=_0x48f47a);}else typeof _0x55f992===_0x5da7c7(0x155)&&(_0x3226d2=_0x55f992);_0x7e9f2f=preciseOperation(_0x7e9f2f,_0x3226d2,0x1);}return _0x7e9f2f;}function getRelativeDate(_0x1f2db4,_0x58106f=0x0){const _0x1631d1=a4_0x2d371c,_0x517808=new Date(_0x1f2db4);_0x517808[_0x1631d1(0x186)](_0x517808[_0x1631d1(0x15c)]()+_0x58106f);const _0x27bcd5=_0x517808[_0x1631d1(0x167)](),_0x5ac993=(_0x517808[_0x1631d1(0x183)]()+0x1)['toString']()[_0x1631d1(0x16c)](0x2,'0'),_0x1acaba=_0x517808[_0x1631d1(0x15c)]()[_0x1631d1(0x160)]()[_0x1631d1(0x16c)](0x2,'0');return _0x27bcd5+'-'+_0x5ac993+'-'+_0x1acaba;}function validateFields(_0x2351a1,_0x438c74,_0x122f00=''){for(let _0x122535 of _0x438c74){if(_0x2351a1[_0x122535]===_0x122f00)return!![];}return![];}function mergeObjects(_0x1c46d2,_0x3ccea8){const _0x2fe06a=a4_0x2d371c;for(const _0x5711ec in _0x1c46d2){_0x3ccea8[_0x2fe06a(0x176)](_0x5711ec)&&(_0x1c46d2[_0x5711ec]=_0x3ccea8[_0x5711ec]);}return _0x1c46d2;}const formatToDecimal=(_0x3639a4,_0x3a8452=0x2)=>{const _0x41e70e=a4_0x2d371c;if(isNaN(_0x3a8452)||_0x3a8452<0x0)return _0x3639a4;let _0x2e7902=Number(_0x3639a4);if(!isFinite(_0x2e7902))return _0x3639a4;return _0x3a8452=Math[_0x41e70e(0x181)](0x0,Math[_0x41e70e(0x187)](_0x3a8452)),_0x2e7902[_0x41e70e(0x156)](_0x3a8452);};function findKeysEndingWith(_0x5964f8,_0x172bd4=a4_0x2d371c(0x191)){const _0xa90e9c=a4_0x2d371c;let _0x244d1b=[];for(var _0x939038 in _0x5964f8){if(_0x5964f8['hasOwnProperty'](_0x939038)){if(_0x939038[_0xa90e9c(0x177)](_0x172bd4))_0x244d1b[_0xa90e9c(0x175)](_0x939038);}}return _0x244d1b;}function guid(_0x10664b=0x20,_0x3209be=!![],_0x5306d4=null){const _0x3fc371=a4_0x2d371c,_0x24abf5=_0x3fc371(0x150)[_0x3fc371(0x16f)](''),_0x26504b=[];_0x5306d4=_0x5306d4||_0x24abf5[_0x3fc371(0x190)];if(_0x10664b){for(let _0x443bee=0x0;_0x443bee<_0x10664b;_0x443bee++)_0x26504b[_0x443bee]=_0x24abf5[0x0|Math[_0x3fc371(0x15e)]()*_0x5306d4];}else{let _0x3e172e;_0x26504b[0x8]=_0x26504b[0xd]=_0x26504b[0x12]=_0x26504b[0x17]='-',_0x26504b[0xe]='4';for(let _0x2788b7=0x0;_0x2788b7<0x24;_0x2788b7++){!_0x26504b[_0x2788b7]&&(_0x3e172e=0x0|Math['random']()*0x10,_0x26504b[_0x2788b7]=_0x24abf5[_0x2788b7==0x13?_0x3e172e&0x3|0x8:_0x3e172e]);}}if(_0x3209be)return _0x26504b[_0x3fc371(0x17e)](),'u'+_0x26504b[_0x3fc371(0x16d)]('');return _0x26504b['join']('');}function trim(_0x15d6c6,_0xf18a19=a4_0x2d371c(0x15b)){const _0x125415=a4_0x2d371c;_0x15d6c6=String(_0x15d6c6);if(_0xf18a19==_0x125415(0x15b))return _0x15d6c6[_0x125415(0x168)](/^\s+|\s+$/g,'');if(_0xf18a19=='left')return _0x15d6c6[_0x125415(0x168)](/^\s*/,'');if(_0xf18a19==_0x125415(0x152))return _0x15d6c6[_0x125415(0x168)](/(\s*$)/g,'');if(_0xf18a19=='all')return _0x15d6c6[_0x125415(0x168)](/\s+/g,'');return _0x15d6c6;}export default{'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|