yunlin 1.0.40 → 1.0.41
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/dist/index.js +1 -1
- package/dist/price.js +1 -1
- package/dist/room.js +1 -1
- package/dist/roomOld.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a053a,_0x4f767b){var _0xf0523e=a0_0x5b6b,_0x40684e=_0x1a053a();while(!![]){try{var _0x1bea41=parseInt(_0xf0523e(0x1ea))/0x1+-parseInt(_0xf0523e(0x1ee))/0x2*(-parseInt(_0xf0523e(0x1eb))/0x3)+-parseInt(_0xf0523e(0x1ef))/0x4+parseInt(_0xf0523e(0x1ec))/0x5+-parseInt(_0xf0523e(0x1ed))/0x6+parseInt(_0xf0523e(0x1f1))/0x7*(parseInt(_0xf0523e(0x1f2))/0x8)+-parseInt(_0xf0523e(0x1f3))/0x9*(parseInt(_0xf0523e(0x1f0))/0xa);if(_0x1bea41===_0x4f767b)break;else _0x40684e['push'](_0x40684e['shift']());}catch(_0x9c5c32){_0x40684e['push'](_0x40684e['shift']());}}}(a0_0x2c5d,0x9b2df));import a0_0x595c10 from'./utils';import a0_0xb2a914 from'./price';import a0_0x10aeae from'./test';function a0_0x5b6b(_0x4e8da1,_0x56a6bd){var _0x2c5d38=a0_0x2c5d();return a0_0x5b6b=function(_0x5b6bde,_0x27e182){_0x5b6bde=_0x5b6bde-0x1ea;var _0x3a1df2=_0x2c5d38[_0x5b6bde];return _0x3a1df2;},a0_0x5b6b(_0x4e8da1,_0x56a6bd);}import a0_0x524644 from'./room';import a0_0x5eafb8 from'./roomOld';function a0_0x2c5d(){var _0x1899da=['184530QoKTAp','14lcQnVK','4666648IYLgLp','747gowPVG','595706tTXBYU','63UdTFLU','5441835VmBfDp','6298206stSbIj','120716hOnITR','3605352VOahHK'];a0_0x2c5d=function(){return _0x1899da;};return a0_0x2c5d();}export default{'test':a0_0x10aeae,'utils':a0_0x595c10,'price':a0_0xb2a914,'room':a0_0x524644,'roomOld':a0_0x5eafb8};
|
package/dist/price.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x17bc36,_0x1db9e7){const _0x2ff7a9=a1_0x502b,_0x20575f=_0x17bc36();while(!![]){try{const _0x49b83e=parseInt(_0x2ff7a9(0x135))/0x1*(-parseInt(_0x2ff7a9(0x12e))/0x2)+parseInt(_0x2ff7a9(0x10b))/0x3*(parseInt(_0x2ff7a9(0x11f))/0x4)+-parseInt(_0x2ff7a9(0xfb))/0x5*(-parseInt(_0x2ff7a9(0x113))/0x6)+parseInt(_0x2ff7a9(0x11b))/0x7*(parseInt(_0x2ff7a9(0x11c))/0x8)+parseInt(_0x2ff7a9(0xf5))/0x9+-parseInt(_0x2ff7a9(0xf3))/0xa*(-parseInt(_0x2ff7a9(0x13f))/0xb)+-parseInt(_0x2ff7a9(0x123))/0xc;if(_0x49b83e===_0x1db9e7)break;else _0x20575f['push'](_0x20575f['shift']());}catch(_0x57b731){_0x20575f['push'](_0x20575f['shift']());}}}(a1_0x439e,0xbd4f5));function handleCosting(_0x560f3d,_0x4ba800='',_0x197586={},_0x2829ec,_0x376881){const _0x1f9e3a=a1_0x502b;let _0x82f062=[];const _0x3cdfd7=_0x1f9e3a(0x131),_0x20cf04={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x197586=typeof _0x197586===_0x1f9e3a(0x127)&&!Array['isArray'](_0x197586)&&_0x197586!==null?_0x197586:{};const _0xa277b1={..._0x20cf04,..._0x197586},_0xfdf070=Object[_0x1f9e3a(0x125)](_0x20cf04);Object[_0x1f9e3a(0x125)](_0x197586)[_0x1f9e3a(0x134)](_0x285a0f=>{const _0x368b05=_0x1f9e3a;!_0xfdf070[_0x368b05(0xfd)](_0x285a0f)&&console['warn'](_0x368b05(0xed)+_0x285a0f);});let _0x5e9df7=_0xa277b1[_0x1f9e3a(0x119)]||'-',_0x4809b0=_0xa277b1['dp']||0x2;const _0x1221eb=(_0x37321b,_0x2e32f7=_0x4809b0)=>{const _0x2ed134=_0x1f9e3a;if(typeof _0x37321b!==_0x2ed134(0xfe)&&isNaN(Number(_0x37321b)))return console[_0x2ed134(0x128)]('ftd\x20函数接收到无效的数字输入:\x20'+_0x37321b),_0x37321b;if(isNaN(_0x2e32f7)||_0x2e32f7<0x0)return _0x37321b;let _0x4554de=Number(_0x37321b);if(!isFinite(_0x4554de))return _0x37321b;return _0x2e32f7=Math[_0x2ed134(0x12b)](0x0,Math['floor'](_0x2e32f7)),_0x4554de[_0x2ed134(0x138)](_0x2e32f7);},_0x4e362a=(_0x3f6840,_0x2b32ae)=>{const _0x35ff92=_0x1f9e3a;if(_0x2b32ae&&typeof _0x2b32ae===_0x35ff92(0x127)&&!Array[_0x35ff92(0x120)](_0x2b32ae))for(const _0x1d6836 in _0x3f6840){_0x3f6840['hasOwnProperty'](_0x1d6836)&&_0x2b32ae[_0x35ff92(0x136)](_0x1d6836)&&(_0x3f6840[_0x1d6836]=_0x2b32ae[_0x1d6836]);}else console[_0x35ff92(0x128)]((_0x35ff92(0x112)+JSON[_0x35ff92(0x100)](_0x2b32ae,null,0x2)+'\x0a\x09\x09\x09正确参数:'+JSON['stringify'](_0x3f6840,null,0x2))[_0x35ff92(0x126)]());return _0x3f6840;};let _0x58aab4={'people':_0x1f9e3a(0x101),'service':_0x1f9e3a(0x11d),'trip':_0x1f9e3a(0xf1),'other':_0x1f9e3a(0xf7),'reduction':_0x1f9e3a(0xf6),'totalprice':'總計','airtax':_0x1f9e3a(0xfc)},_0x548f9f={'adult':'成人','child':'兒童','childusebed':_0x1f9e3a(0x108),'infant':'嬰兒','half':'拼房','tip':'小費','elder':'遊客優惠','vip':_0x1f9e3a(0x12d),'promotion':'促銷','insure':'保險費用','coupon':_0x1f9e3a(0x102),'point':'積分','tax':'稅金','viprecharge':_0x1f9e3a(0x10c),'r':'人','t':'天'};_0x58aab4=_0x4e362a(_0x58aab4,_0x2829ec),_0x548f9f=_0x4e362a(_0x548f9f,_0x376881);const _0x575fa6=_0x560f3d[_0x1f9e3a(0x105)](_0x431db4=>_0x431db4[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x133));if(_0x575fa6[_0x1f9e3a(0x11a)]){let _0x342a65={'title':_0x58aab4['people'],'type':'base','list':[]};_0x575fa6['map'](_0x222d20=>{const _0x3e642b=_0x1f9e3a;_0x342a65[_0x3e642b(0x107)]['push']({'title':_0x548f9f[_0x222d20[_0x3e642b(0x11e)]],'info':_0x4ba800+_0x1221eb(_0x222d20[_0x3e642b(0x130)])+_0x3cdfd7+_0x222d20['nRs'],'nRs':_0x222d20[_0x3e642b(0xff)],'unit':_0x222d20[_0x3e642b(0x130)],'cb':_0x222d20[_0x3e642b(0x132)],'type':_0x3e642b(0x133)});}),_0x82f062[_0x1f9e3a(0x124)](_0x342a65);}const _0x5ac4cc=_0x560f3d['filter'](_0x466c86=>_0x466c86[_0x1f9e3a(0x13d)]=='service');if(_0x5ac4cc[_0x1f9e3a(0x11a)]){let _0x3f7f1c={'title':_0x58aab4['service'],'type':'service','list':[]};_0x5ac4cc[_0x1f9e3a(0xf4)](_0x1d21cb=>{const _0x11f9c6=_0x1f9e3a;_0x3f7f1c[_0x11f9c6(0x107)]['push']({'title':_0x1d21cb[_0x11f9c6(0x122)]+('['+_0x1d21cb[_0x11f9c6(0x10e)]+']'),'info':_0x4ba800+_0x1221eb(_0x1d21cb[_0x11f9c6(0x114)])+_0x3cdfd7+_0x1d21cb[_0x11f9c6(0xf8)],'nRs':_0x1d21cb[_0x11f9c6(0xf8)],'unit':_0x1d21cb[_0x11f9c6(0x114)],'cb':_0x1d21cb[_0x11f9c6(0x110)],'type':_0x11f9c6(0x139)});}),_0x82f062[_0x1f9e3a(0x124)](_0x3f7f1c);}const _0x437864=_0x560f3d[_0x1f9e3a(0x105)](_0x464d7a=>_0x464d7a[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x104));if(_0x437864[_0x1f9e3a(0x11a)]){let _0x457e95={'title':_0x58aab4[_0x1f9e3a(0x104)],'type':'trip','list':[]};_0x437864[_0x1f9e3a(0xf4)](_0x56b28f=>{const _0x1d54e2=_0x1f9e3a;_0x56b28f[_0x1d54e2(0x10d)]!='0'&&_0x457e95[_0x1d54e2(0x107)][_0x1d54e2(0x124)]({'title':_0x56b28f[_0x1d54e2(0x122)]+('['+_0x548f9f[_0x1d54e2(0xf0)]+']'),'info':_0x4ba800+_0x1221eb(_0x56b28f[_0x1d54e2(0x121)])+_0x3cdfd7+_0x56b28f[_0x1d54e2(0x10d)],'nRs':_0x56b28f[_0x1d54e2(0x10d)],'unit':_0x56b28f[_0x1d54e2(0x121)],'cb':_0x56b28f[_0x1d54e2(0x129)],'type':_0x1d54e2(0x104)}),_0x56b28f['childnum']!='0'&&_0x457e95[_0x1d54e2(0x107)]['push']({'title':_0x56b28f[_0x1d54e2(0x122)]+('['+_0x548f9f['child']+']'),'info':_0x4ba800+_0x1221eb(_0x56b28f['childprice'])+_0x3cdfd7+_0x56b28f[_0x1d54e2(0x13e)],'nRs':_0x56b28f[_0x1d54e2(0x13e)],'unit':_0x56b28f[_0x1d54e2(0x12f)],'cb':_0x56b28f[_0x1d54e2(0x111)],'type':_0x1d54e2(0x104)});}),_0x82f062[_0x1f9e3a(0x124)](_0x457e95);}let _0x33f064=[];const _0x2260fe=_0x560f3d['filter'](_0x1ea112=>_0x1ea112[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x115));_0x2260fe[_0x1f9e3a(0x11a)]&&_0x2260fe[_0x1f9e3a(0xf4)](_0x24f225=>{const _0x49f679=_0x1f9e3a,_0x352722=_0x24f225[_0x49f679(0x122)][_0x49f679(0x137)]('|')||[''];_0x33f064[_0x49f679(0x124)]({'title':_0x548f9f['elder']+('['+_0x352722[0x0]+']'),'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0x24f225[_0x49f679(0x118)]),'unit':_0x24f225[_0x49f679(0x118)],'cb':_0x24f225[_0x49f679(0x118)],'type':_0x49f679(0x115)});});const _0x3e729f=_0x560f3d['filter'](_0x50aa62=>_0x50aa62[_0x1f9e3a(0x13d)]==_0x1f9e3a(0xef));_0x3e729f['length']&&_0x3e729f[_0x1f9e3a(0xf4)](_0x248ac1=>{const _0x41672b=_0x1f9e3a;_0x33f064[_0x41672b(0x124)]({'title':_0x548f9f['vip']+('['+_0x248ac1[_0x41672b(0x122)]+']'),'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0x248ac1[_0x41672b(0x118)]),'unit':_0x248ac1['money'],'cb':_0x248ac1[_0x41672b(0x118)],'type':_0x41672b(0x106)});});const _0xc9a388=_0x560f3d[_0x1f9e3a(0x105)](_0x226d54=>_0x226d54[_0x1f9e3a(0x13d)]=='promotion');_0xc9a388['length']&&_0xc9a388[_0x1f9e3a(0xf4)](_0x2036ed=>{const _0x4e4ccb=_0x1f9e3a;_0x33f064[_0x4e4ccb(0x124)]({'title':_0x548f9f['promotion'],'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0x2036ed['money']),'unit':_0x2036ed[_0x4e4ccb(0x118)],'cb':_0x2036ed[_0x4e4ccb(0x118)],'type':_0x4e4ccb(0x13c)});});_0x33f064[_0x1f9e3a(0x11a)]&&_0x82f062[_0x1f9e3a(0x124)]({'title':_0x58aab4[_0x1f9e3a(0x12a)],'type':_0x1f9e3a(0x12a),'list':_0x33f064});const _0x4fb055=_0x560f3d[_0x1f9e3a(0x105)](_0x2099ce=>_0x2099ce[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x109));if(_0x4fb055[_0x1f9e3a(0x11a)]){let _0x56868c={'title':_0x58aab4[_0x1f9e3a(0x109)],'type':_0x1f9e3a(0x109),'list':[]};_0x4fb055[_0x1f9e3a(0xf4)](_0x2e2103=>{const _0x132264=_0x1f9e3a;_0x56868c[_0x132264(0x107)]['push']({'title':_0x548f9f[_0x2e2103[_0x132264(0x116)]],'info':_0x4ba800+_0x1221eb(_0x2e2103[_0x132264(0x114)])+_0x3cdfd7+_0x2e2103['sl'],'nRs':_0x2e2103['sl'],'unit':_0x2e2103[_0x132264(0x114)],'cb':_0x2e2103['unitpricewb'],'type':_0x2e2103[_0x132264(0x116)]});}),_0x82f062[_0x1f9e3a(0x124)](_0x56868c);}const _0x2354af=[_0x1f9e3a(0x133),_0x1f9e3a(0x139),'trip','elder','vipdiscounted',_0x1f9e3a(0x13c),'airtax'],_0x35ed61=_0x560f3d['filter'](_0x54ad53=>!_0x2354af[_0x1f9e3a(0xfd)](_0x54ad53['strLx']));let _0x28b483={'title':_0x58aab4[_0x1f9e3a(0x103)],'type':_0x1f9e3a(0x103),'list':[]};for(var _0x2e09e3=0x0;_0x2e09e3<_0x35ed61[_0x1f9e3a(0x11a)];_0x2e09e3++){const _0xa1ec7f=_0x35ed61[_0x2e09e3];_0xa1ec7f['strLx']=='viprecharge'&&_0x28b483[_0x1f9e3a(0x107)]['push']({'title':_0x548f9f[_0x1f9e3a(0x12c)]+('['+_0xa1ec7f['name']+']'),'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0x118)]),'unit':_0xa1ec7f[_0x1f9e3a(0x118)],'type':_0xa1ec7f[_0x1f9e3a(0x13d)]}),_0xa1ec7f[_0x1f9e3a(0x13d)]=='insure'&&_0x28b483[_0x1f9e3a(0x107)]['push']({'title':_0x548f9f[_0x1f9e3a(0x13b)]+('['+_0xa1ec7f[_0x1f9e3a(0x122)]+']'),'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0x140)])+_0x3cdfd7+_0xa1ec7f[_0x1f9e3a(0xec)]+_0x548f9f['r'],'nRs':_0xa1ec7f[_0x1f9e3a(0xec)],'unit':_0xa1ec7f[_0x1f9e3a(0x140)],'cb':_0xa1ec7f[_0x1f9e3a(0x140)],'type':_0x1f9e3a(0x13b)}),(_0xa1ec7f['strLx']=='coupon'||_0xa1ec7f[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x10f))&&_0x28b483['list'][_0x1f9e3a(0x124)]({'title':_0x548f9f[_0xa1ec7f[_0x1f9e3a(0x13d)]],'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0x118)]),'unit':_0xa1ec7f[_0x1f9e3a(0x118)],'type':_0xa1ec7f[_0x1f9e3a(0x13d)]}),_0xa1ec7f[_0x1f9e3a(0x13d)]=='tip'&&_0xa277b1[_0x1f9e3a(0xf9)]&&_0x28b483[_0x1f9e3a(0x107)][_0x1f9e3a(0x124)]({'title':_0x548f9f[_0xa1ec7f[_0x1f9e3a(0x13d)]],'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0xf2)])+_0x3cdfd7+_0xa1ec7f['tipuser']+_0x548f9f['r']+_0x3cdfd7+_0xa1ec7f['tipday']+_0x548f9f['t'],'nRs':_0xa1ec7f['tipuser'],'count':_0xa1ec7f[_0x1f9e3a(0x13a)],'unit':_0xa1ec7f[_0x1f9e3a(0xf2)],'type':_0xa1ec7f[_0x1f9e3a(0x13d)]}),_0xa1ec7f['strLx']==_0x1f9e3a(0xee)&&_0x28b483[_0x1f9e3a(0x107)][_0x1f9e3a(0x124)]({'title':_0x548f9f[_0xa1ec7f[_0x1f9e3a(0x13d)]],'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0xfa)]),'unit':_0xa1ec7f['totaltax'],'type':_0xa1ec7f['strLx']});}_0x28b483[_0x1f9e3a(0x107)][_0x1f9e3a(0x11a)]&&_0x82f062[_0x1f9e3a(0x124)](_0x28b483);const _0x16bc06=_0x560f3d[_0x1f9e3a(0x105)](_0x137999=>_0x137999['strLx']==_0x1f9e3a(0x10a));return _0x16bc06['length']&&_0x82f062[_0x1f9e3a(0x124)]({'title':_0x58aab4[_0x1f9e3a(0x10a)],'type':'totalprice','list':[{'title':_0x58aab4[_0x1f9e3a(0x10a)],'info':_0x4ba800+_0x1221eb(_0x16bc06[0x0][_0x1f9e3a(0x117)])}]}),_0x82f062;}function a1_0x439e(){const _0x386ad3=['trip','filter','vip','list','兒童[占床]','airtax','totalprice','15xIfzxX','會員充值','adultnum','itemname','point','baseprice','basechildprice','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','9193794DWFjPt','unitprice','elder','rylx','price','money','couponSign','length','1384859ghbulB','40XiLZMg','附加服務','strJgbm','850668okproG','isArray','adultprice','name','47206152euKhwZ','push','keys','trim','object','error','baseadultprice','reduction','max','viprecharge','會員減免','8FlXKAg','childprice','fLsjUnit','\x20*\x20','fJcbzlsjUnit','base','forEach','32101GPSBtg','hasOwnProperty','split','toFixed','service','tipday','insure','promotion','strLx','childnum','88vFPKDk','unit','users','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','tax','vipdiscounted','adult','附加行程','tip','1366520uzyznj','map','1436652dIDTMo','減免費用','其他費用','num','isShowTip','totaltax','5HWTzqx','機場稅','includes','number','nRs','stringify','人員費用','優惠券','other'];a1_0x439e=function(){return _0x386ad3;};return a1_0x439e();}function a1_0x502b(_0x14038a,_0x390d76){const _0x439ef5=a1_0x439e();return a1_0x502b=function(_0x502b99,_0x4f0e26){_0x502b99=_0x502b99-0xec;let _0x4a25a9=_0x439ef5[_0x502b99];return _0x4a25a9;},a1_0x502b(_0x14038a,_0x390d76);}export default{'handleCosting':handleCosting};
|
|
1
|
+
(function(_0x2881be,_0x20fa97){const _0xc2567b=a1_0x4f75,_0x2b40f0=_0x2881be();while(!![]){try{const _0x1ad126=parseInt(_0xc2567b(0x1cf))/0x1*(parseInt(_0xc2567b(0x1ef))/0x2)+parseInt(_0xc2567b(0x1cc))/0x3+-parseInt(_0xc2567b(0x1e0))/0x4+parseInt(_0xc2567b(0x1f2))/0x5+-parseInt(_0xc2567b(0x1d1))/0x6+-parseInt(_0xc2567b(0x1f5))/0x7*(-parseInt(_0xc2567b(0x1d8))/0x8)+-parseInt(_0xc2567b(0x1bf))/0x9;if(_0x1ad126===_0x20fa97)break;else _0x2b40f0['push'](_0x2b40f0['shift']());}catch(_0x462b6f){_0x2b40f0['push'](_0x2b40f0['shift']());}}}(a1_0x4580,0xf3ecd));function a1_0x4580(){const _0x2e5fc7=['object','basechildprice','push','vipdiscounted','遊客優惠','num','2988188Vmvhcl','reduction','users','tipday','other','list','會員減免','promotion','name','childprice','warn','trim','totalprice','vip','itemname','342ZDXVlt','keys','strJgbm','9817275CbYVdf','tipuser','forEach','14eeGhXm','viprecharge','child','includes','isShowTip','adultprice','\x20*\x20','unit','baseprice','baseadultprice','price','split','airtax','ftd\x20函数接收到无效的数字输入:\x20','adultnum','fLsjUnit','service','totaltax','childnum','strLx','elder','length','tip','保險費用','unitpricewb','8426988SSqsKo','people','point','error','money','\x0a\x09\x09\x09正确参数:','rylx','base','unitprice','兒童[占床]','stringify','insure','map','789468izERZx','人員費用','number','3358gvFtHN','附加行程','6787890uWlQka','hasOwnProperty','tax','會員充值','floor','filter','優惠券','4051928pEMEUL','trip'];a1_0x4580=function(){return _0x2e5fc7;};return a1_0x4580();}function handleCosting(_0x38378d,_0x4fc1e6='',_0x168609={},_0x3e7ef6,_0x305438){const _0x494973=a1_0x4f75;let _0x5894ac=[];const _0x5d87c9=_0x494973(0x1fb),_0x358077={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x168609=typeof _0x168609===_0x494973(0x1da)&&!Array['isArray'](_0x168609)&&_0x168609!==null?_0x168609:{};const _0x4604b3={..._0x358077,..._0x168609},_0x30dda9=Object[_0x494973(0x1f0)](_0x358077);Object[_0x494973(0x1f0)](_0x168609)[_0x494973(0x1f4)](_0x1b10c7=>{const _0x471441=_0x494973;!_0x30dda9[_0x471441(0x1f8)](_0x1b10c7)&&console[_0x471441(0x1ea)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x1b10c7);});let _0x272fbc=_0x4604b3['couponSign']||'-',_0x3c635f=_0x4604b3['dp']||0x2;const _0xf5b934=(_0x3445f8,_0x169de0=_0x3c635f)=>{const _0x37755d=_0x494973;if(typeof _0x3445f8!==_0x37755d(0x1ce)&&isNaN(Number(_0x3445f8)))return console[_0x37755d(0x1c2)](_0x37755d(0x1b3)+_0x3445f8),_0x3445f8;if(isNaN(_0x169de0)||_0x169de0<0x0)return _0x3445f8;let _0xb212e2=Number(_0x3445f8);if(!isFinite(_0xb212e2))return _0x3445f8;return _0x169de0=Math['max'](0x0,Math[_0x37755d(0x1d5)](_0x169de0)),_0xb212e2['toFixed'](_0x169de0);},_0x4b1e0e=(_0x107563,_0x2a33b6)=>{const _0xf72ca4=_0x494973;if(_0x2a33b6&&typeof _0x2a33b6===_0xf72ca4(0x1da)&&!Array['isArray'](_0x2a33b6))for(const _0x1a1dbf in _0x107563){_0x107563['hasOwnProperty'](_0x1a1dbf)&&_0x2a33b6[_0xf72ca4(0x1d2)](_0x1a1dbf)&&(_0x107563[_0x1a1dbf]=_0x2a33b6[_0x1a1dbf]);}else console[_0xf72ca4(0x1c2)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0xf72ca4(0x1c9)](_0x2a33b6,null,0x2)+_0xf72ca4(0x1c4)+JSON['stringify'](_0x107563,null,0x2))[_0xf72ca4(0x1eb)]());return _0x107563;};let _0x19e8bd={'people':_0x494973(0x1cd),'service':'附加服務','trip':_0x494973(0x1d0),'other':'其他費用','reduction':'減免費用','totalprice':'總計','airtax':'機場稅'},_0x59f307={'adult':'成人','child':'兒童','childusebed':_0x494973(0x1c8),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x494973(0x1de),'vip':_0x494973(0x1e6),'promotion':'促銷','insure':_0x494973(0x1bd),'coupon':_0x494973(0x1d7),'point':'積分','tax':'稅金','viprecharge':_0x494973(0x1d4),'r':'人','t':'天'};_0x19e8bd=_0x4b1e0e(_0x19e8bd,_0x3e7ef6),_0x59f307=_0x4b1e0e(_0x59f307,_0x305438);const _0x1caf5c=_0x38378d['filter'](_0x1755b9=>_0x1755b9[_0x494973(0x1b9)]==_0x494973(0x1c6));if(_0x1caf5c[_0x494973(0x1bb)]){let _0x3647cb={'title':_0x19e8bd[_0x494973(0x1c0)],'type':_0x494973(0x1c6),'list':[]};_0x1caf5c[_0x494973(0x1cb)](_0x2dffc1=>{const _0x2cef4f=_0x494973;_0x3647cb[_0x2cef4f(0x1e5)][_0x2cef4f(0x1dc)]({'title':_0x59f307[_0x2dffc1[_0x2cef4f(0x1f1)]],'info':_0x4fc1e6+_0xf5b934(_0x2dffc1[_0x2cef4f(0x1b5)])+_0x5d87c9+_0x2dffc1['nRs'],'nRs':_0x2dffc1['nRs'],'unit':_0x2dffc1[_0x2cef4f(0x1b5)],'cb':_0x2dffc1['fJcbzlsjUnit'],'type':_0x2cef4f(0x1c6)});}),_0x5894ac[_0x494973(0x1dc)](_0x3647cb);}const _0x22ba36=_0x38378d[_0x494973(0x1d6)](_0x17dde9=>_0x17dde9['strLx']==_0x494973(0x1b6));if(_0x22ba36[_0x494973(0x1bb)]){let _0x322bb5={'title':_0x19e8bd['service'],'type':_0x494973(0x1b6),'list':[]};_0x22ba36[_0x494973(0x1cb)](_0x2d0ad1=>{const _0x25d8e4=_0x494973;_0x322bb5['list']['push']({'title':_0x2d0ad1['name']+('['+_0x2d0ad1[_0x25d8e4(0x1ee)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x2d0ad1[_0x25d8e4(0x1c7)])+_0x5d87c9+_0x2d0ad1['num'],'nRs':_0x2d0ad1[_0x25d8e4(0x1df)],'unit':_0x2d0ad1[_0x25d8e4(0x1c7)],'cb':_0x2d0ad1[_0x25d8e4(0x1fd)],'type':'service'});}),_0x5894ac[_0x494973(0x1dc)](_0x322bb5);}const _0xdd0193=_0x38378d[_0x494973(0x1d6)](_0x2cf641=>_0x2cf641[_0x494973(0x1b9)]==_0x494973(0x1d9));if(_0xdd0193[_0x494973(0x1bb)]){let _0x471aac={'title':_0x19e8bd[_0x494973(0x1d9)],'type':_0x494973(0x1d9),'list':[]};_0xdd0193['map'](_0x366b52=>{const _0x213dd0=_0x494973;_0x366b52[_0x213dd0(0x1b4)]!='0'&&_0x471aac[_0x213dd0(0x1e5)][_0x213dd0(0x1dc)]({'title':_0x366b52[_0x213dd0(0x1e8)]+('['+_0x59f307['adult']+']'),'info':_0x4fc1e6+_0xf5b934(_0x366b52[_0x213dd0(0x1fa)])+_0x5d87c9+_0x366b52['adultnum'],'nRs':_0x366b52['adultnum'],'unit':_0x366b52['adultprice'],'cb':_0x366b52[_0x213dd0(0x1fe)],'type':'trip'}),_0x366b52[_0x213dd0(0x1b8)]!='0'&&_0x471aac[_0x213dd0(0x1e5)][_0x213dd0(0x1dc)]({'title':_0x366b52[_0x213dd0(0x1e8)]+('['+_0x59f307[_0x213dd0(0x1f7)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x366b52['childprice'])+_0x5d87c9+_0x366b52['childnum'],'nRs':_0x366b52[_0x213dd0(0x1b8)],'unit':_0x366b52[_0x213dd0(0x1e9)],'cb':_0x366b52[_0x213dd0(0x1db)],'type':_0x213dd0(0x1d9)});}),_0x5894ac[_0x494973(0x1dc)](_0x471aac);}let _0x1c58e6=[];const _0x100141=_0x38378d[_0x494973(0x1d6)](_0x2bfbb1=>_0x2bfbb1[_0x494973(0x1b9)]==_0x494973(0x1ba));_0x100141[_0x494973(0x1bb)]&&_0x100141[_0x494973(0x1cb)](_0x22cf6d=>{const _0x20f448=_0x494973,_0x3f9fb2=_0x22cf6d[_0x20f448(0x1e8)][_0x20f448(0x1b1)]('|')||[''];_0x1c58e6[_0x20f448(0x1dc)]({'title':_0x59f307[_0x20f448(0x1ba)]+('['+_0x3f9fb2[0x0]+']'),'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x22cf6d[_0x20f448(0x1c3)]),'unit':_0x22cf6d[_0x20f448(0x1c3)],'cb':_0x22cf6d[_0x20f448(0x1c3)],'type':_0x20f448(0x1ba)});});const _0x4303bd=_0x38378d[_0x494973(0x1d6)](_0x4931b8=>_0x4931b8[_0x494973(0x1b9)]==_0x494973(0x1dd));_0x4303bd[_0x494973(0x1bb)]&&_0x4303bd[_0x494973(0x1cb)](_0x5fd3e1=>{const _0x3a6579=_0x494973;_0x1c58e6[_0x3a6579(0x1dc)]({'title':_0x59f307['vip']+('['+_0x5fd3e1[_0x3a6579(0x1e8)]+']'),'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x5fd3e1[_0x3a6579(0x1c3)]),'unit':_0x5fd3e1[_0x3a6579(0x1c3)],'cb':_0x5fd3e1[_0x3a6579(0x1c3)],'type':_0x3a6579(0x1ed)});});const _0x8c194a=_0x38378d[_0x494973(0x1d6)](_0x3b86a6=>_0x3b86a6[_0x494973(0x1b9)]==_0x494973(0x1e7));_0x8c194a[_0x494973(0x1bb)]&&_0x8c194a[_0x494973(0x1cb)](_0x3d13d0=>{const _0xbdc3b9=_0x494973;_0x1c58e6[_0xbdc3b9(0x1dc)]({'title':_0x59f307[_0xbdc3b9(0x1e7)],'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x3d13d0['money']),'unit':_0x3d13d0['money'],'cb':_0x3d13d0[_0xbdc3b9(0x1c3)],'type':'promotion'});});_0x1c58e6[_0x494973(0x1bb)]&&_0x5894ac[_0x494973(0x1dc)]({'title':_0x19e8bd[_0x494973(0x1e1)],'type':_0x494973(0x1e1),'list':_0x1c58e6});const _0x44d493=_0x38378d['filter'](_0x4a2181=>_0x4a2181[_0x494973(0x1b9)]==_0x494973(0x1b2));if(_0x44d493[_0x494973(0x1bb)]){let _0x2ed171={'title':_0x19e8bd[_0x494973(0x1b2)],'type':'airtax','list':[]};_0x44d493[_0x494973(0x1cb)](_0x19e721=>{const _0xf302e=_0x494973;_0x2ed171[_0xf302e(0x1e5)][_0xf302e(0x1dc)]({'title':_0x59f307[_0x19e721[_0xf302e(0x1c5)]],'info':_0x4fc1e6+_0xf5b934(_0x19e721[_0xf302e(0x1c7)])+_0x5d87c9+_0x19e721['sl'],'nRs':_0x19e721['sl'],'unit':_0x19e721[_0xf302e(0x1c7)],'cb':_0x19e721[_0xf302e(0x1be)],'type':_0x19e721[_0xf302e(0x1c5)]});}),_0x5894ac[_0x494973(0x1dc)](_0x2ed171);}const _0x26a23a=[_0x494973(0x1c6),_0x494973(0x1b6),_0x494973(0x1d9),_0x494973(0x1ba),_0x494973(0x1dd),'promotion',_0x494973(0x1b2)],_0x33cf28=_0x38378d[_0x494973(0x1d6)](_0x4d5e37=>!_0x26a23a[_0x494973(0x1f8)](_0x4d5e37['strLx']));let _0x181527={'title':_0x19e8bd[_0x494973(0x1e4)],'type':'other','list':[]};for(var _0x5a852c=0x0;_0x5a852c<_0x33cf28[_0x494973(0x1bb)];_0x5a852c++){const _0x351d45=_0x33cf28[_0x5a852c];_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1f6)&&_0x181527[_0x494973(0x1e5)][_0x494973(0x1dc)]({'title':_0x59f307[_0x494973(0x1f6)]+('['+_0x351d45[_0x494973(0x1e8)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x351d45[_0x494973(0x1c3)]),'unit':_0x351d45['money'],'type':_0x351d45[_0x494973(0x1b9)]}),_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1ca)&&_0x181527['list'][_0x494973(0x1dc)]({'title':_0x59f307[_0x494973(0x1ca)]+('['+_0x351d45[_0x494973(0x1e8)]+']'),'info':_0x4fc1e6+_0xf5b934(_0x351d45['unit'])+_0x5d87c9+_0x351d45['users']+_0x59f307['r'],'nRs':_0x351d45[_0x494973(0x1e2)],'unit':_0x351d45['unit'],'cb':_0x351d45[_0x494973(0x1fc)],'type':_0x494973(0x1ca)}),(_0x351d45['strLx']=='coupon'||_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1c1))&&_0x181527[_0x494973(0x1e5)]['push']({'title':_0x59f307[_0x351d45['strLx']],'info':_0x4fc1e6+_0x272fbc+_0xf5b934(_0x351d45[_0x494973(0x1c3)]),'unit':_0x351d45['money'],'type':_0x351d45[_0x494973(0x1b9)]}),_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1bc)&&_0x4604b3[_0x494973(0x1f9)]&&_0x181527[_0x494973(0x1e5)][_0x494973(0x1dc)]({'title':_0x59f307[_0x351d45[_0x494973(0x1b9)]],'info':_0x4fc1e6+_0xf5b934(_0x351d45[_0x494973(0x1bc)])+_0x5d87c9+_0x351d45[_0x494973(0x1f3)]+_0x59f307['r']+_0x5d87c9+_0x351d45[_0x494973(0x1e3)]+_0x59f307['t'],'nRs':_0x351d45['tipuser'],'count':_0x351d45[_0x494973(0x1e3)],'unit':_0x351d45[_0x494973(0x1bc)],'type':_0x351d45[_0x494973(0x1b9)]}),_0x351d45[_0x494973(0x1b9)]==_0x494973(0x1d3)&&_0x181527[_0x494973(0x1e5)][_0x494973(0x1dc)]({'title':_0x59f307[_0x351d45[_0x494973(0x1b9)]],'info':_0x4fc1e6+_0xf5b934(_0x351d45['totaltax']),'unit':_0x351d45[_0x494973(0x1b7)],'type':_0x351d45[_0x494973(0x1b9)]});}_0x181527[_0x494973(0x1e5)]['length']&&_0x5894ac[_0x494973(0x1dc)](_0x181527);const _0x2430be=_0x38378d[_0x494973(0x1d6)](_0x5cd085=>_0x5cd085[_0x494973(0x1b9)]==_0x494973(0x1ec));return _0x2430be[_0x494973(0x1bb)]&&_0x5894ac[_0x494973(0x1dc)]({'title':_0x19e8bd[_0x494973(0x1ec)],'type':_0x494973(0x1ec),'list':[{'title':_0x19e8bd['totalprice'],'info':_0x4fc1e6+_0xf5b934(_0x2430be[0x0][_0x494973(0x1b0)])}]}),_0x5894ac;}function a1_0x4f75(_0x1908cc,_0x471f87){const _0x458095=a1_0x4580();return a1_0x4f75=function(_0x4f7581,_0x4d32f0){_0x4f7581=_0x4f7581-0x1b0;let _0xf7c145=_0x458095[_0x4f7581];return _0xf7c145;},a1_0x4f75(_0x1908cc,_0x471f87);}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40614b,_0x2fd563){const _0x115062=a2_0x375c,_0x4fa05e=_0x40614b();while(!![]){try{const _0x229ca4=-parseInt(_0x115062(0x12f))/0x1+-parseInt(_0x115062(0x131))/0x2*(-parseInt(_0x115062(0x126))/0x3)+-parseInt(_0x115062(0x123))/0x4+-parseInt(_0x115062(0x121))/0x5+-parseInt(_0x115062(0x125))/0x6*(parseInt(_0x115062(0x124))/0x7)+-parseInt(_0x115062(0x134))/0x8+-parseInt(_0x115062(0x11b))/0x9*(-parseInt(_0x115062(0x127))/0xa);if(_0x229ca4===_0x2fd563)break;else _0x4fa05e['push'](_0x4fa05e['shift']());}catch(_0x2b64a9){_0x4fa05e['push'](_0x4fa05e['shift']());}}}(a2_0x3460,0x5440e));function getRoomCount(_0x108065,_0x3e4b88){const _0x3a7e2a=a2_0x375c,_0x1c8369=Array[_0x3a7e2a(0x129)](_0x108065);if(!_0x1c8369)_0x108065=[_0x108065];let _0x5f3eae=[];return _0x108065[_0x3a7e2a(0x11a)](_0x1cec1a=>{const _0x3b2c54=_0x3a7e2a;let _0x224a47=![];if(!_0x1cec1a[_0x3b2c54(0x12a)]){let _0x4d8d08=_0x1cec1a[_0x3b2c54(0x11c)];if(_0x1cec1a[_0x3b2c54(0x130)]||!_0x3e4b88[_0x3b2c54(0x138)])_0x4d8d08+=_0x1cec1a[_0x3b2c54(0x122)];const _0x5babbc=_0x3e4b88[_0x3b2c54(0x133)][_0x3b2c54(0x12e)](_0x5b0660=>Number(_0x5b0660[_0x3b2c54(0x11d)])===_0x4d8d08);if(!_0x5babbc)_0x224a47=!![];else{let _0x968cc0=_0x1cec1a['adultNum']+_0x1cec1a[_0x3b2c54(0x122)]+_0x1cec1a[_0x3b2c54(0x132)];_0x968cc0>_0x5babbc[_0x3b2c54(0x12c)]&&(_0x224a47=!![]);}}_0x5f3eae['push'](_0x224a47);}),_0x1c8369?_0x5f3eae:_0x5f3eae[0x0];}function getRoomConfig(_0x5b02b3){const _0x3ea8f5=a2_0x375c;let _0x501d05=_0x5b02b3['some'](_0xc4b2de=>_0xc4b2de[_0x3ea8f5(0x11d)]==='childUseBed'),_0x5ea8e1=_0x5b02b3[_0x3ea8f5(0x137)](_0x41d114=>_0x41d114[_0x3ea8f5(0x11d)]===_0x3ea8f5(0x128));const _0x3b8b00=_0x5b02b3['some'](_0x40c2ef=>_0x40c2ef[_0x3ea8f5(0x11d)]==='infant'),_0x46d308=_0x5b02b3[_0x3ea8f5(0x137)](_0x205347=>_0x205347[_0x3ea8f5(0x11d)]==='child'),_0x351baf=_0x5b02b3['map'](_0x36ed8a=>{const _0x1f7150=_0x3ea8f5;return{'strCode':_0x36ed8a[_0x1f7150(0x11d)],'nMaxIn':_0x36ed8a[_0x1f7150(0x12c)]};});if(_0x5ea8e1){const _0x435a2b=_0x5b02b3['some'](_0x27ce38=>_0x27ce38[_0x3ea8f5(0x11d)]=='2');_0x5ea8e1=_0x5ea8e1&&_0x435a2b;}if(_0x501d05)_0x501d05=_0x501d05&&_0x46d308;return{'childUseBed':_0x501d05,'isAlotment':_0x5ea8e1,'infant':_0x3b8b00,'child':_0x46d308,'list':_0x351baf};}function isRoomPiece(_0x29fdd7,_0x58dd55){const _0x55aae4=a2_0x375c;return _0x58dd55&&_0x29fdd7[_0x55aae4(0x11c)]===0x1&&_0x29fdd7[_0x55aae4(0x122)]===0x0&&_0x29fdd7[_0x55aae4(0x132)]===0x0;}function a2_0x375c(_0x310a6c,_0x5a3078){const _0x3460d3=a2_0x3460();return a2_0x375c=function(_0x375c88,_0x7736d3){_0x375c88=_0x375c88-0x11a;let _0x45cd48=_0x3460d3[_0x375c88];return _0x45cd48;},a2_0x375c(_0x310a6c,_0x5a3078);}function a2_0x3460(){const _0x3b182b=['some','child','forEach','279GLTRRH','adultNum','strCode','map','infant','filter','2947140YYNpGV','childrenNum','492432qcBjmx','7iwgfNX','1837878uXDYgl','12PTLqwu','633470HMuqlK','isAlotment','isArray','isalotment','length','nMaxIn','push','find','250913jFvgby','childUseBed','70976kvHOXC','infantNum','list','3926760IimdNx','max','fd7834c4-4eb7-4f49-bb92-23f6badbcce8'];a2_0x3460=function(){return _0x3b182b;};return a2_0x3460();}function getRoomItemRange(_0x316e43,_0x49b218,_0x10e1f1={'child':'儿童','infant':'婴儿'}){const _0x55417b=a2_0x375c;if(!_0x49b218[_0x55417b(0x12b)])return{'childList':[],'infantList':[]};const _0x165967=Math[_0x55417b(0x135)](..._0x49b218[_0x55417b(0x11e)](_0x2feb4b=>Number(_0x2feb4b[_0x55417b(0x12c)]))),_0xfcda19=_0x165967-_0x316e43['adultNum']-_0x316e43['infantNum'];let _0xea450a=_0x165967-_0x316e43[_0x55417b(0x11c)]-_0x316e43['childrenNum'];if(_0xea450a>0x2)_0xea450a=0x2;const _0x3ec4f0=(_0x4c2f4e,_0x3ad290)=>{const _0x1c7b67=_0x55417b,_0x2d8418=[];_0x2d8418['push']({'value':0x0,'label':'0\x20'+_0x3ad290});for(let _0x34a955=0x0;_0x34a955<_0x4c2f4e;_0x34a955++){_0x2d8418[_0x1c7b67(0x12d)]({'value':_0x34a955+0x1,'label':''+(_0x34a955+0x1)+_0x3ad290});}return _0x2d8418;};return{'childList':_0x3ec4f0(_0xfcda19,_0x10e1f1[_0x55417b(0x138)]),'infantList':_0x3ec4f0(_0xea450a,_0x10e1f1[_0x55417b(0x11f)])};}function getAdultRange(_0x17d3ea,_0x19db2f='成人'){const _0x4b0a8e=a2_0x375c;let _0x1ce44c=Math[_0x4b0a8e(0x135)](..._0x17d3ea[_0x4b0a8e(0x11e)](_0x9a30e2=>Number(_0x9a30e2['strCode']))[_0x4b0a8e(0x120)](_0x1423da=>!isNaN(_0x1423da)));if(!_0x1ce44c)_0x1ce44c=0x4;let _0x38a596=[];for(var _0x36dd25=0x1;_0x36dd25<_0x1ce44c+0x1;_0x36dd25++){_0x38a596[_0x4b0a8e(0x12d)]({'value':_0x36dd25,'label':''+_0x36dd25+_0x19db2f});}return _0x38a596;}const getTotalPeople=_0x4c0c9e=>{const _0x270bd2=_0x4c0c9e['reduce']((_0x3e29ed,_0x385405)=>{const _0x4f5804=a2_0x375c;return _0x3e29ed+(_0x385405[_0x4f5804(0x11c)]||0x0)+(_0x385405[_0x4f5804(0x122)]||0x0)+(_0x385405[_0x4f5804(0x132)]||0x0);},0x0);return _0x270bd2;},getRoomType=_0x5a8f5c=>{const _0x23f98a=a2_0x375c;return _0x5a8f5c===_0x23f98a(0x136);};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
|
package/dist/roomOld.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3bb5e2,_0x5d4e49){const _0x549350=a3_0x4cbd,_0x2c6d55=_0x3bb5e2();while(!![]){try{const _0x51ee9b=-parseInt(_0x549350(0x1aa))/0x1+-parseInt(_0x549350(0x1ba))/0x2*(-parseInt(_0x549350(0x1b7))/0x3)+parseInt(_0x549350(0x1bd))/0x4+-parseInt(_0x549350(0x1a4))/0x5*(-parseInt(_0x549350(0x1bb))/0x6)+parseInt(_0x549350(0x1c2))/0x7*(parseInt(_0x549350(0x1a5))/0x8)+-parseInt(_0x549350(0x1ae))/0x9*(parseInt(_0x549350(0x1ad))/0xa)+-parseInt(_0x549350(0x1a8))/0xb;if(_0x51ee9b===_0x5d4e49)break;else _0x2c6d55['push'](_0x2c6d55['shift']());}catch(_0xdeb1de){_0x2c6d55['push'](_0x2c6d55['shift']());}}}(a3_0x5f52,0x2b5cd));function getRoomCount(_0x5b011b,_0x69dd7a){const _0x4e157c=a3_0x4cbd,_0x637e77=Array[_0x4e157c(0x1a9)](_0x5b011b);if(!_0x637e77)_0x5b011b=[_0x5b011b];let _0x1e6533=[];return _0x5b011b[_0x4e157c(0x1b5)](_0x5b7e01=>{const _0x3df288=_0x4e157c;let _0x297149=![];if(!_0x5b7e01[_0x3df288(0x1b2)]){let _0x4aa38f=_0x5b7e01['adultnum'];if(_0x5b7e01[_0x3df288(0x1be)]||!_0x69dd7a['child'])_0x4aa38f+=_0x5b7e01['childrennum'];const _0x3a983f=_0x69dd7a[_0x3df288(0x1c1)][_0x3df288(0x1ab)](_0x3e9fc7=>Number(_0x3e9fc7[_0x3df288(0x1b4)])===_0x4aa38f);if(!_0x3a983f)_0x297149=!![];else{let _0x186c5f=_0x5b7e01[_0x3df288(0x1b9)]+_0x5b7e01['childrennum']+_0x5b7e01[_0x3df288(0x1af)];_0x186c5f>_0x3a983f[_0x3df288(0x1ac)]&&(_0x297149=!![]);}}_0x1e6533[_0x3df288(0x1b3)](_0x297149);}),_0x637e77?_0x1e6533:_0x1e6533[0x0];}function a3_0x5f52(){const _0x26a70a=['1097644lCyqvs','childusebed','map','childrennum','list','112777PbdAGN','5EbNYzK','16jurdXq','max','half','4652901JdcNMC','isArray','24803bhmeRQ','find','nMaxIn','120FrJTLp','144954lDqqZk','infantnum','filter','some','isalotment','push','strCode','forEach','infant','39dktReX','child','adultnum','43520vAopkL','1374996Xtyjpt','length'];a3_0x5f52=function(){return _0x26a70a;};return a3_0x5f52();}function getRoomConfig(_0x1704d1){const _0x4a8b08=a3_0x4cbd;let _0xaa8ede=_0x1704d1[_0x4a8b08(0x1b1)](_0x418947=>_0x418947[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1be)),_0x3a16c4=_0x1704d1['some'](_0x272b25=>_0x272b25[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1a7));const _0x4730b0=_0x1704d1[_0x4a8b08(0x1b1)](_0x560c41=>_0x560c41[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1b6)),_0x386575=_0x1704d1[_0x4a8b08(0x1b1)](_0x17ac01=>_0x17ac01[_0x4a8b08(0x1b4)]===_0x4a8b08(0x1b8)),_0x88e547=_0x1704d1['map'](_0x37b9eb=>{const _0x1ffb38=_0x4a8b08;return{'strCode':_0x37b9eb[_0x1ffb38(0x1b4)],'nMaxIn':_0x37b9eb[_0x1ffb38(0x1ac)]};});if(_0x3a16c4){const _0x5a02ac=_0x1704d1[_0x4a8b08(0x1b1)](_0xf9716=>_0xf9716[_0x4a8b08(0x1b4)]=='2');_0x3a16c4=_0x3a16c4&&_0x5a02ac;}if(_0xaa8ede)_0xaa8ede=_0xaa8ede&&_0x386575;return{'childusebed':_0xaa8ede,'half':_0x3a16c4,'infant':_0x4730b0,'child':_0x386575,'list':_0x88e547};}function isRoomPiece(_0x15fdca,_0x2e73bd){const _0x4f477c=a3_0x4cbd;return _0x2e73bd&&_0x15fdca[_0x4f477c(0x1b9)]===0x1&&_0x15fdca[_0x4f477c(0x1c0)]===0x0&&_0x15fdca[_0x4f477c(0x1af)]===0x0;}function getRoomItemRange(_0x301291,_0x2a2f91,_0x140c80={'child':'儿童','infant':'婴儿'}){const _0x505ae6=a3_0x4cbd;if(!_0x2a2f91[_0x505ae6(0x1bc)])return{'childList':[],'infantList':[]};const _0x291fdf=Math['max'](..._0x2a2f91[_0x505ae6(0x1bf)](_0x2bc143=>Number(_0x2bc143[_0x505ae6(0x1ac)]))),_0x57fcba=_0x291fdf-_0x301291['adultnum']-_0x301291[_0x505ae6(0x1af)];let _0x434e7c=_0x291fdf-_0x301291[_0x505ae6(0x1b9)]-_0x301291[_0x505ae6(0x1c0)];if(_0x434e7c>0x2)_0x434e7c=0x2;const _0x1d7225=(_0x3273eb,_0x27fed1)=>{const _0x19a942=_0x505ae6,_0xa0972d=[];_0xa0972d['push']({'value':0x0,'label':'0\x20'+_0x27fed1});for(let _0x3d8e38=0x0;_0x3d8e38<_0x3273eb;_0x3d8e38++){_0xa0972d[_0x19a942(0x1b3)]({'value':_0x3d8e38+0x1,'label':''+(_0x3d8e38+0x1)+_0x27fed1});}return _0xa0972d;};return{'childList':_0x1d7225(_0x57fcba,_0x140c80[_0x505ae6(0x1b8)]),'infantList':_0x1d7225(_0x434e7c,_0x140c80['infant'])};}function a3_0x4cbd(_0x2a6c26,_0x1ce1d8){const _0x5f52e7=a3_0x5f52();return a3_0x4cbd=function(_0x4cbd1d,_0x32bbe9){_0x4cbd1d=_0x4cbd1d-0x1a4;let _0x2c267d=_0x5f52e7[_0x4cbd1d];return _0x2c267d;},a3_0x4cbd(_0x2a6c26,_0x1ce1d8);}function getAdultRange(_0x58758d,_0x16db5d='成人'){const _0x25f64=a3_0x4cbd;let _0x380c29=Math[_0x25f64(0x1a6)](..._0x58758d['map'](_0x3808e9=>Number(_0x3808e9['strCode']))[_0x25f64(0x1b0)](_0x3846c6=>!isNaN(_0x3846c6)));if(!_0x380c29)_0x380c29=0x4;let _0xf820a5=[];for(var _0xe231d5=0x1;_0xe231d5<_0x380c29+0x1;_0xe231d5++){_0xf820a5[_0x25f64(0x1b3)]({'value':_0xe231d5,'label':''+_0xe231d5+_0x16db5d});}return _0xf820a5;}const getTotalPeople=_0x37e30d=>{const _0x14cecf=_0x37e30d['reduce']((_0x1c0d55,_0x5a0352)=>{const _0x462b13=a3_0x4cbd;return _0x1c0d55+(_0x5a0352[_0x462b13(0x1b9)]||0x0)+(_0x5a0352['childrennum']||0x0)+(_0x5a0352['infantnum']||0x0);},0x0);return _0x14cecf;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x74d0be,_0x324f23){const _0x2ab0cb=a4_0x3c83,_0x3554a8=_0x74d0be();while(!![]){try{const _0x3e9c3d=parseInt(_0x2ab0cb(0x19d))/0x1*(parseInt(_0x2ab0cb(0x19b))/0x2)+-parseInt(_0x2ab0cb(0x183))/0x3*(parseInt(_0x2ab0cb(0x19c))/0x4)+parseInt(_0x2ab0cb(0x19a))/0x5*(-parseInt(_0x2ab0cb(0x186))/0x6)+-parseInt(_0x2ab0cb(0x1a4))/0x7*(-parseInt(_0x2ab0cb(0x197))/0x8)+-parseInt(_0x2ab0cb(0x184))/0x9*(parseInt(_0x2ab0cb(0x1a2))/0xa)+parseInt(_0x2ab0cb(0x18d))/0xb*(parseInt(_0x2ab0cb(0x181))/0xc)+-parseInt(_0x2ab0cb(0x195))/0xd*(parseInt(_0x2ab0cb(0x18e))/0xe);if(_0x3e9c3d===_0x324f23)break;else _0x3554a8['push'](_0x3554a8['shift']());}catch(_0x514ae6){_0x3554a8['push'](_0x3554a8['shift']());}}}(a4_0x7d14,0x80bd5));function email(_0x250a37){const _0x3d3cb3=a4_0x3c83;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x3d3cb3(0x196)](_0x250a37);}function mobile(_0x2159fd){const _0x2e5ed2=a4_0x3c83;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x2e5ed2(0x196)](_0x2159fd);}function isValidPhoneNumber(_0x3d9e4a){const _0x102759=a4_0x3c83;if(_0x3d9e4a[_0x102759(0x192)]('-')){const [_0x5e3e2a,_0x32df24]=_0x3d9e4a[_0x102759(0x199)]('-');if(_0x5e3e2a==='86')return/^\d{11}$/['test'](_0x32df24)&&_0x32df24[_0x102759(0x1a1)]('1');else return _0x5e3e2a===_0x102759(0x182)?/^\d{8}$/[_0x102759(0x196)](_0x32df24)&&['5','6','9','8'][_0x102759(0x192)](_0x32df24[_0x102759(0x1a5)](0x0)):/^\d+$/[_0x102759(0x196)](_0x32df24);}else return/^\d+$/['test'](_0x3d9e4a);}function url(_0x416aa2){const _0x46375b=a4_0x3c83;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x46375b(0x196)](_0x416aa2);}function date(_0x19ee0b){const _0x283796=a4_0x3c83;if(!_0x19ee0b)return![];if(number(_0x19ee0b))_0x19ee0b=+_0x19ee0b;return!/Invalid|NaN/[_0x283796(0x196)](new Date(_0x19ee0b)[_0x283796(0x188)]());}function dateISO(_0x388b9a){const _0x2ddcdc=a4_0x3c83;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2ddcdc(0x196)](_0x388b9a);}function isNumber(_0x20d4b9){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x20d4b9);}function isString(_0xd6b8d3){const _0x2d768e=a4_0x3c83;return typeof _0xd6b8d3===_0x2d768e(0x18b);}function digits(_0x537a69){const _0x12b421=a4_0x3c83;return/^\d+$/[_0x12b421(0x196)](_0x537a69);}function idCard(_0xed85f9){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'](_0xed85f9);}function carNo(_0x2520be){const _0x45fd3e=a4_0x3c83,_0x27e4ad=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x21f55f=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x2520be[_0x45fd3e(0x18c)]===0x7)return _0x21f55f[_0x45fd3e(0x196)](_0x2520be);if(_0x2520be[_0x45fd3e(0x18c)]===0x8)return _0x27e4ad[_0x45fd3e(0x196)](_0x2520be);return![];}function amount(_0x4250e3){const _0x428fb6=a4_0x3c83;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x428fb6(0x196)](_0x4250e3);}function a4_0x3c83(_0x295888,_0x6c3883){const _0x7d147b=a4_0x7d14();return a4_0x3c83=function(_0x3c8360,_0x46724c){_0x3c8360=_0x3c8360-0x181;let _0xe6557b=_0x7d147b[_0x3c8360];return _0xe6557b;},a4_0x3c83(_0x295888,_0x6c3883);}function chinese(_0x3dfcf9){const _0x3c9fae=a4_0x3c83,_0x454ac0=/^[\u4e00-\u9fa5]+$/gi;return _0x454ac0[_0x3c9fae(0x196)](_0x3dfcf9);}function letter(_0x478a61){const _0x5ab682=a4_0x3c83;return/^[a-zA-Z]*$/[_0x5ab682(0x196)](_0x478a61);}function enOrNum(_0xd7455f){const _0x1ee613=/^[0-9a-zA-Z]*$/g;return _0x1ee613['test'](_0xd7455f);}function contains(_0x560f1a,_0x34ff3b){return _0x560f1a['indexOf'](_0x34ff3b)>=0x0;}function range(_0x4104a3,_0x497a02){return _0x4104a3>=_0x497a02[0x0]&&_0x4104a3<=_0x497a02[0x1];}function rangeLength(_0x399c1e,_0x5e4deb){const _0x1f2d58=a4_0x3c83;return _0x399c1e[_0x1f2d58(0x18c)]>=_0x5e4deb[0x0]&&_0x399c1e[_0x1f2d58(0x18c)]<=_0x5e4deb[0x1];}function landline(_0xd6f6eb){const _0xbcaf9f=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0xbcaf9f['test'](_0xd6f6eb);}function empty(_0x5c75d9){const _0x1acc8c=a4_0x3c83;switch(typeof _0x5c75d9){case _0x1acc8c(0x189):return!![];case'string':if(_0x5c75d9[_0x1acc8c(0x1a3)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x1acc8c(0x18c)]==0x0)return!![];break;case _0x1acc8c(0x19e):if(!_0x5c75d9)return!![];break;case _0x1acc8c(0x194):if(_0x5c75d9===0x0||isNaN(_0x5c75d9))return!![];break;case'object':if(_0x5c75d9===null||_0x5c75d9['length']===0x0)return!![];for(const _0x2b3050 in _0x5c75d9){return![];}return!![];}return![];}function jsonString(_0xd64018){const _0x13a500=a4_0x3c83;if(typeof _0xd64018===_0x13a500(0x18b))try{const _0x3fb91e=JSON[_0x13a500(0x19f)](_0xd64018);if(typeof _0x3fb91e===_0x13a500(0x193)&&_0x3fb91e)return!![];return![];}catch(_0x1feae3){return![];}return![];}function array(_0x5efcc6){const _0x58bc51=a4_0x3c83;if(typeof Array[_0x58bc51(0x1a6)]===_0x58bc51(0x185))return Array[_0x58bc51(0x1a6)](_0x5efcc6);return Object[_0x58bc51(0x191)][_0x58bc51(0x188)][_0x58bc51(0x187)](_0x5efcc6)===_0x58bc51(0x18a);}function object(_0x5d55f3){const _0x272ab4=a4_0x3c83;return Object[_0x272ab4(0x191)][_0x272ab4(0x188)]['call'](_0x5d55f3)===_0x272ab4(0x198);}function code(_0x3b843c,_0xfb94a8=0x6){const _0x117316=a4_0x3c83;return new RegExp(_0x117316(0x190)+_0xfb94a8+'}$')['test'](_0x3b843c);}function func(_0x54c8e5){return typeof _0x54c8e5==='function';}function promise(_0x3b717b){const _0x3427af=a4_0x3c83;return object(_0x3b717b)&&func(_0x3b717b[_0x3427af(0x18f)])&&func(_0x3b717b['catch']);}function a4_0x7d14(){const _0x19ec3b=['string','length','918181xwWciR','9932566YPKEFI','then','^\x5cd{','prototype','includes','object','number','13VuqXhj','test','32cWnDwe','[object\x20Object]','split','55pWyrrj','14KgiWVG','212IjhnsH','127031obWPsj','boolean','parse','[object\x20RegExp]','startsWith','10krmMBO','replace','962241znMyil','charAt','isArray','144lMONdK','852','29130UiuLKv','2114847QFFWXK','function','247812LVpzhR','call','toString','undefined','[object\x20Array]'];a4_0x7d14=function(){return _0x19ec3b;};return a4_0x7d14();}function image(_0x180601){const _0x336470=a4_0x3c83,_0x13cdd1=_0x180601[_0x336470(0x199)]('?')[0x0],_0x228a70=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x228a70[_0x336470(0x196)](_0x13cdd1);}function video(_0x55c81c){const _0x149516=a4_0x3c83,_0x49fd70=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x49fd70[_0x149516(0x196)](_0x55c81c);}function regExp(_0x35c30a){const _0x250de4=a4_0x3c83;return _0x35c30a&&Object[_0x250de4(0x191)][_0x250de4(0x188)][_0x250de4(0x187)](_0x35c30a)===_0x250de4(0x1a0);}function isNumeric(_0x5dec3c,_0x2ce0ca=0x0){const _0x5c403a=a4_0x3c83;if(typeof _0x5dec3c===_0x5c403a(0x194))_0x5dec3c=_0x5dec3c[_0x5c403a(0x188)]();if(typeof _0x5dec3c!==_0x5c403a(0x18b))return![];switch(_0x2ce0ca){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x5dec3c);case 0x2:return/^-\d+(\.\d+)?$/[_0x5c403a(0x196)](_0x5dec3c);case 0x3:return/^-?\d+$/[_0x5c403a(0x196)](_0x5dec3c);case 0x4:return/^\d+$/[_0x5c403a(0x196)](_0x5dec3c);case 0x5:return/^-\d+$/['test'](_0x5dec3c);default:return/^-?\d*\.?\d*$/[_0x5c403a(0x196)](_0x5dec3c)&&!_0x5dec3c[_0x5c403a(0x1a1)]('.')&&!_0x5dec3c['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 a5_0x4a0a5e=a5_0x5345;(function(_0x47a486,_0x4894e0){const _0x14b8fc=a5_0x5345,_0x2cdca9=_0x47a486();while(!![]){try{const _0x52a749=parseInt(_0x14b8fc(0xd9))/0x1+-parseInt(_0x14b8fc(0xe3))/0x2*(parseInt(_0x14b8fc(0xcd))/0x3)+-parseInt(_0x14b8fc(0xcb))/0x4*(parseInt(_0x14b8fc(0xc8))/0x5)+parseInt(_0x14b8fc(0xdd))/0x6+parseInt(_0x14b8fc(0xb5))/0x7*(-parseInt(_0x14b8fc(0xd0))/0x8)+parseInt(_0x14b8fc(0xc7))/0x9+-parseInt(_0x14b8fc(0xdc))/0xa;if(_0x52a749===_0x4894e0)break;else _0x2cdca9['push'](_0x2cdca9['shift']());}catch(_0x3ede34){_0x2cdca9['push'](_0x2cdca9['shift']());}}}(a5_0x4433,0x88627));function fmtNum(_0x270c7c){const _0x5ef19d=a5_0x5345;if(_0x270c7c==0x0)return'0';if(!_0x270c7c)return'';let _0x8c1e1c=typeof _0x270c7c===_0x5ef19d(0xae)?parseFloat(_0x270c7c):_0x270c7c;if(isNaN(_0x8c1e1c))return'';return _0x8c1e1c['toLocaleString'](_0x5ef19d(0xeb),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x5ee8c7,_0x28260f=![]){const _0xfb1229=a5_0x5345;let _0x420e7a={'surname':'','givenName':''};if(_0x28260f){const _0x34ff89=_0x5ee8c7[_0xfb1229(0xc6)](',')?_0x5ee8c7[_0xfb1229(0xd6)](','):_0x5ee8c7['split'](/\s+/);_0x34ff89[_0xfb1229(0xb3)]>=0x2&&(_0x420e7a[_0xfb1229(0xda)]=_0x34ff89[0x0]['trim'](),_0x420e7a['givenName']=_0x34ff89[0x1][_0xfb1229(0xb8)]());}else{const _0x5668f7=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x466dc7=0x0;_0x466dc7<_0x5668f7[_0xfb1229(0xb3)];_0x466dc7++){const _0xefbd7e=_0x5668f7[_0x466dc7];if(_0x5ee8c7['startsWith'](_0xefbd7e))return _0x420e7a[_0xfb1229(0xda)]=_0xefbd7e,_0x420e7a[_0xfb1229(0xb1)]=_0x5ee8c7[_0xfb1229(0xe7)](_0xefbd7e[_0xfb1229(0xb3)])[_0xfb1229(0xb8)](),_0x420e7a;}const _0x4a161d=_0x5ee8c7[_0xfb1229(0xd6)]('\x20');if(_0x4a161d[_0xfb1229(0xb3)]===0x1){const _0x2afde8=_0x5ee8c7[_0xfb1229(0xec)](/[\u4e00-\u9fa5]/);_0x420e7a[_0xfb1229(0xda)]=_0x2afde8?_0x2afde8[0x0]:'',_0x420e7a[_0xfb1229(0xb1)]=_0x5ee8c7[_0xfb1229(0xaa)](_0x420e7a[_0xfb1229(0xda)],'')['trim']();}else _0x420e7a['surname']=_0x4a161d[0x0],_0x420e7a[_0xfb1229(0xb1)]=_0x4a161d['slice'](0x1)['join']('\x20');}return _0x420e7a;}function modifyKeys(_0x4a78bb,_0x441ad4={'strCode':'code','strFjbh':a5_0x4a0a5e(0xdf),'strGuid':a5_0x4a0a5e(0xea),'strValue':a5_0x4a0a5e(0xee)}){const _0x4acbe2=a5_0x4a0a5e;if(!_0x4a78bb[_0x4acbe2(0xb3)]||_0x4a78bb===null)return[];const _0x5497a9=_0x4a78bb[_0x4acbe2(0xc5)](_0x4b7738=>{const _0x405773=_0x4acbe2,_0xc21e18={};for(const _0x32261a in _0x4b7738){_0x441ad4[_0x405773(0xd5)](_0x32261a)?_0xc21e18[_0x441ad4[_0x32261a]]=_0x4b7738[_0x32261a]:_0xc21e18[_0x32261a]=_0x4b7738[_0x32261a];}return _0xc21e18;});return _0x5497a9;}function sliceArray(_0x465507,_0x2543cd,_0x38828b){const _0x475e96=a5_0x4a0a5e;if(_0x2543cd<=0x0)return console[_0x475e96(0xbb)](_0x475e96(0xd7)),[];return _0x38828b?_0x465507['slice'](0x0,_0x2543cd):_0x465507[_0x475e96(0xce)](-_0x2543cd);}function findDataByData(_0x295cd3,_0xb1b10c,_0x49aeeb){const _0x2200d3=a5_0x4a0a5e,_0x2a868c=_0x295cd3[_0x2200d3(0xba)](_0xd7076c=>_0xd7076c[_0x49aeeb]===_0xb1b10c);return _0x2a868c||null;}function splitArray(_0x5ca189,_0x167076){const _0x4b3158=a5_0x4a0a5e,_0x44fe25=[];for(let _0xebf6ac=0x0;_0xebf6ac<_0x5ca189['length'];_0xebf6ac+=_0x167076){_0x44fe25[_0x4b3158(0xb4)](_0x5ca189[_0x4b3158(0xce)](_0xebf6ac,_0xebf6ac+_0x167076));}return _0x44fe25;}function getProxyType(_0x51d9f0){const _0x50ca98=a5_0x4a0a5e;return Object['prototype']['toString'][_0x50ca98(0xb7)](_0x51d9f0)[_0x50ca98(0xce)](0x8,-0x1);}let timeout=null;function debounce(_0x147ab2,_0x5904f5=0x1f4,_0x3a3744=![]){const _0x3c3b9f=a5_0x4a0a5e;if(timeout!==null)clearTimeout(timeout);if(_0x3a3744){const _0x2ab7ab=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5904f5);if(_0x2ab7ab)typeof _0x147ab2===_0x3c3b9f(0xd1)&&_0x147ab2();}else timeout=setTimeout(()=>{const _0x428ff0=_0x3c3b9f;typeof _0x147ab2===_0x428ff0(0xd1)&&_0x147ab2();},_0x5904f5);}function urlEncode(_0x2c5219={}){const _0xbce9d2=a5_0x4a0a5e,_0x37ea9c=[];for(const _0x3a1248 in _0x2c5219){const _0x470ff7=_0x2c5219[_0x3a1248];if(!_0x470ff7)continue;isArray(_0x470ff7)?_0x470ff7[_0xbce9d2(0xe8)](_0x5478f0=>{_0x37ea9c['push'](_0x3a1248+'='+_0x5478f0);}):_0x37ea9c[_0xbce9d2(0xb4)](_0x3a1248+'='+_0x470ff7);}return _0x37ea9c[_0xbce9d2(0xb6)]('&');}function dateFormat(_0x5261e3,_0x28cea9){const _0x6aeb1=a5_0x4a0a5e,_0x2b5cac=new Date(_0x28cea9),_0x22caad={'Y+':_0x2b5cac[_0x6aeb1(0xed)]()[_0x6aeb1(0xc3)](),'m+':(_0x2b5cac[_0x6aeb1(0xe5)]()+0x1)['toString'](),'d+':_0x2b5cac[_0x6aeb1(0xe2)]()[_0x6aeb1(0xc3)](),'H+':_0x2b5cac[_0x6aeb1(0xd4)]()[_0x6aeb1(0xc3)](),'M+':_0x2b5cac[_0x6aeb1(0xbf)]()[_0x6aeb1(0xc3)](),'S+':_0x2b5cac['getSeconds']()[_0x6aeb1(0xc3)]()};let _0x342b72;for(let _0x4005c6 in _0x22caad){_0x342b72=new RegExp('('+_0x4005c6+')')[_0x6aeb1(0xde)](_0x5261e3);_0x342b72&&(_0x5261e3=_0x5261e3[_0x6aeb1(0xaa)](_0x342b72[0x1],_0x342b72[0x1][_0x6aeb1(0xb3)]==0x1?_0x22caad[_0x4005c6]:_0x22caad[_0x4005c6][_0x6aeb1(0xc2)](_0x342b72[0x1]['length'],'0')));;};return _0x5261e3;}function formatDate(_0x5c5405,_0x464a71=a5_0x4a0a5e(0xd3),_0x94eb7c={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x5c519e=a5_0x4a0a5e,_0x1dbe22=new Date(_0x5c5405),_0x208cce=_0x1dbe22[_0x5c519e(0xed)](),_0x231ecf=_0x1dbe22['getMonth']()+0x1,_0x5d72c6=_0x1dbe22[_0x5c519e(0xe2)](),_0x55e946=_0x231ecf<0xa?'0'+_0x231ecf:_0x231ecf,_0x2cf181=_0x5d72c6<0xa?'0'+_0x5d72c6:_0x5d72c6;let _0x5e9b83=_0x464a71[_0x5c519e(0xaa)]('YYYY',_0x208cce)[_0x5c519e(0xaa)]('MM',_0x55e946)[_0x5c519e(0xaa)]('DD',_0x2cf181);return _0x5e9b83=_0x5e9b83[_0x5c519e(0xaa)](/-MM/g,_0x94eb7c[_0x5c519e(0xdb)])[_0x5c519e(0xaa)](/-DD/g,_0x94eb7c['dayTitle'])[_0x5c519e(0xaa)](_0x5c519e(0xc9)+_0x94eb7c[_0x5c519e(0xc1)],'')['replace']('MM'+_0x94eb7c[_0x5c519e(0xdb)],'')['replace']('DD'+_0x94eb7c[_0x5c519e(0xad)],''),_0x5e9b83;}function compareDates(_0x5f489a,_0x278f66){const _0x2bd3c3=a5_0x4a0a5e;_0x5f489a=new Date(_0x5f489a);!_0x278f66?_0x278f66=new Date():_0x278f66=new Date(_0x278f66);_0x5f489a['setHours'](0x0,0x0,0x0,0x0),_0x278f66[_0x2bd3c3(0xe1)](0x0,0x0,0x0,0x0);var _0x5842d0=_0x5f489a['getTime'](),_0x1fc3a6=_0x278f66[_0x2bd3c3(0xe0)]();if(_0x5842d0<_0x1fc3a6)return-0x1;else return _0x5842d0>_0x1fc3a6?0x1:0x0;}function getDaysBetween(_0x229d0a,_0x2f616d){const _0x5af4d0=a5_0x4a0a5e,_0x56b390=new Date(_0x229d0a),_0x1b5237=new Date(_0x2f616d),_0x4c9b3c=Math[_0x5af4d0(0xb9)](_0x56b390['getTime']()-_0x1b5237[_0x5af4d0(0xe0)]()),_0x294ab3=Math[_0x5af4d0(0xbc)](_0x4c9b3c/(0x3e8*0x3c*0x3c*0x18));return _0x294ab3+0x1;}function chineseNumeral(_0x509360){const _0x1b8dfd=a5_0x4a0a5e,_0x231e62=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x5a98d6=['','拾','佰','仟'],_0x40e969=['','万','亿','兆'];let _0x23e948=Math['floor'](_0x509360),_0x4eaf79=Math['round']((_0x509360-_0x23e948)*0x64),_0x2facb='';for(let _0x4fe058=0x0;_0x23e948>0x0;_0x4fe058++){let _0x1d07e5='',_0x39c128=_0x23e948%0x2710;_0x23e948=Math[_0x1b8dfd(0xbc)](_0x23e948/0x2710);for(let _0x341ce5=0x0;_0x39c128>0x0;_0x341ce5++){let _0x5c85b8=_0x39c128%0xa;_0x1d07e5=(_0x5c85b8?_0x231e62[_0x5c85b8]+_0x5a98d6[_0x341ce5]:'')+_0x1d07e5,_0x39c128=Math[_0x1b8dfd(0xbc)](_0x39c128/0xa);}_0x2facb=_0x1d07e5+(_0x1d07e5?_0x40e969[_0x4fe058]:_0x40e969[_0x4fe058]&&!_0x2facb[_0x1b8dfd(0xc6)]('零')?'零':'')+_0x2facb;}_0x2facb+=_0x2facb?'元':'零元';if(_0x4eaf79>0x0){let _0x27389b=Math['floor'](_0x4eaf79/0xa),_0x471539=_0x4eaf79%0xa;_0x2facb+=(_0x27389b?_0x231e62[_0x27389b]+'角':'')+(_0x471539?_0x231e62[_0x471539]+'分':'');}else _0x2facb+='整';return _0x2facb[_0x1b8dfd(0xaa)](/零{2,}/g,'零')[_0x1b8dfd(0xaa)](/零元/,'元');}function getMonthDate(_0x4387b6){const _0x1646e0=a5_0x4a0a5e;(!_0x4387b6||_0x4387b6[_0x1646e0(0xb8)]()==='')&&(_0x4387b6=new Date()[_0x1646e0(0xed)]()+'-'+(new Date()[_0x1646e0(0xe5)]()+0x1));let _0x1f3052=[],[_0x3e5289,_0x41f6d1]=_0x4387b6[_0x1646e0(0xd6)]('-')[_0x1646e0(0xc5)](Number),_0x4c1649=new Date(_0x3e5289,_0x41f6d1,0x0),_0xbcf5eb=_0x4c1649['getDate']();for(let _0xe28d0c=0x1;_0xe28d0c<=_0xbcf5eb;_0xe28d0c++){let _0x36d815=_0xe28d0c<0xa?'0'+_0xe28d0c:''+_0xe28d0c,_0x3cd798=_0x41f6d1<0xa?'0'+_0x41f6d1:''+_0x41f6d1;_0x1f3052[_0x1646e0(0xb4)]({'date':_0x3e5289+'-'+_0x3cd798+'-'+_0x36d815,'disable':!![]});}return _0x1f3052;}function a5_0x5345(_0x10a79a,_0x1591e1){const _0x443332=a5_0x4433();return a5_0x5345=function(_0x534598,_0x29a6c8){_0x534598=_0x534598-0xaa;let _0x37a988=_0x443332[_0x534598];return _0x37a988;},a5_0x5345(_0x10a79a,_0x1591e1);}function getToday(_0x10b08d){const _0x540101=a5_0x4a0a5e;var _0x1665fa=new Date(),_0x335235=String(_0x1665fa[_0x540101(0xe2)]())[_0x540101(0xc2)](0x2,'0'),_0x3619aa=String(_0x1665fa[_0x540101(0xe5)]()+0x1)['padStart'](0x2,'0'),_0x49ca30=_0x1665fa['getFullYear']();return _0x1665fa=_0x49ca30+'-'+_0x3619aa+'-'+_0x335235,_0x1665fa;}function resetObject(_0x2b6e91){const _0x39b24c=a5_0x4a0a5e;let _0x543731=JSON[_0x39b24c(0xc0)](JSON[_0x39b24c(0xe4)](_0x2b6e91));for(const _0x416f19 in _0x543731){if(typeof _0x543731[_0x416f19]===_0x39b24c(0xb0))_0x543731[_0x416f19]=0x0;else{if(typeof _0x543731[_0x416f19]===_0x39b24c(0xc4))_0x543731[_0x416f19]=![];else{if(Array[_0x39b24c(0xbe)](_0x543731[_0x416f19]))_0x543731[_0x416f19]=[];else typeof _0x543731[_0x416f19]===_0x39b24c(0xca)&&_0x543731[_0x416f19]!==null?resetObject(_0x543731[_0x416f19]):_0x543731[_0x416f19]='';}}}return _0x543731;}function preciseOperation(_0x5d83f6,_0x21e2b9,_0x53c168,_0x4affca=0xf4240){const _0x2a3aa4=a5_0x4a0a5e;if(isNaN(_0x5d83f6)||isNaN(_0x21e2b9))return NaN;if(!isFinite(_0x5d83f6)||!isFinite(_0x21e2b9))return NaN;let _0x5661ca=BigInt(Math[_0x2a3aa4(0xef)](_0x5d83f6*_0x4affca)),_0x3882b3=BigInt(Math[_0x2a3aa4(0xef)](_0x21e2b9*_0x4affca)),_0x4350d5;switch(_0x53c168){case 0x1:_0x4350d5=_0x5661ca+_0x3882b3;break;case 0x2:_0x4350d5=_0x5661ca-_0x3882b3;break;case 0x3:_0x4350d5=_0x5661ca*_0x3882b3;break;case 0x4:if(_0x3882b3===0x0n)throw new Error(_0x2a3aa4(0xd8));_0x4350d5=_0x5661ca/_0x3882b3;break;default:throw new Error(_0x2a3aa4(0xe9));}return Number(_0x4350d5)/_0x4affca;}function preciseSum(_0x239973){const _0x1c9481=a5_0x4a0a5e;let _0x4c75b0=0x0;for(const _0x5d1d69 of _0x239973){let _0x4b0a06=0x0;if(typeof _0x5d1d69==='string'){const _0x2118e4=parseFloat(_0x5d1d69);!isNaN(_0x2118e4)&&(_0x4b0a06=_0x2118e4);}else typeof _0x5d1d69===_0x1c9481(0xb0)&&(_0x4b0a06=_0x5d1d69);_0x4c75b0=preciseOperation(_0x4c75b0,_0x4b0a06,0x1);}return _0x4c75b0;}function getRelativeDate(_0x20ee2a,_0x14602c=0x0){const _0x28c226=a5_0x4a0a5e,_0x4e765a=new Date(_0x20ee2a);_0x4e765a[_0x28c226(0xac)](_0x4e765a[_0x28c226(0xe2)]()+_0x14602c);const _0x2133f6=_0x4e765a['getFullYear'](),_0x497d50=(_0x4e765a[_0x28c226(0xe5)]()+0x1)[_0x28c226(0xc3)]()[_0x28c226(0xc2)](0x2,'0'),_0x6c6b62=_0x4e765a[_0x28c226(0xe2)]()['toString']()[_0x28c226(0xc2)](0x2,'0');return _0x2133f6+'-'+_0x497d50+'-'+_0x6c6b62;}function validateFields(_0x2b5a44,_0x129dfc,_0x5c2df1=''){for(let _0x347869 of _0x129dfc){if(_0x2b5a44[_0x347869]===_0x5c2df1)return!![];}return![];}function mergeObjects(_0x213a40,_0x681a2){const _0x368a1d=a5_0x4a0a5e;for(const _0xc09374 in _0x213a40){_0x681a2[_0x368a1d(0xd5)](_0xc09374)&&(_0x213a40[_0xc09374]=_0x681a2[_0xc09374]);}return _0x213a40;}const formatToDecimal=(_0x5a6684,_0x402f9d=0x2)=>{const _0x3f9aff=a5_0x4a0a5e;if(isNaN(_0x402f9d)||_0x402f9d<0x0)return _0x5a6684;let _0x2fc692=Number(_0x5a6684);if(!isFinite(_0x2fc692))return _0x5a6684;return _0x402f9d=Math[_0x3f9aff(0xaf)](0x0,Math[_0x3f9aff(0xbc)](_0x402f9d)),_0x2fc692[_0x3f9aff(0xbd)](_0x402f9d);};function findKeysEndingWith(_0x3c6315,_0x12faf7=a5_0x4a0a5e(0xcf)){const _0x160811=a5_0x4a0a5e;let _0xc76fb2=[];for(var _0x163a9a in _0x3c6315){if(_0x3c6315[_0x160811(0xd5)](_0x163a9a)){if(_0x163a9a[_0x160811(0xe6)](_0x12faf7))_0xc76fb2[_0x160811(0xb4)](_0x163a9a);}}return _0xc76fb2;}function guid(_0x1713d7=0x20,_0x30bf64=!![],_0xc5fe67=null){const _0x1dd1e0=a5_0x4a0a5e,_0x50c662=_0x1dd1e0(0xd2)['split'](''),_0x550c20=[];_0xc5fe67=_0xc5fe67||_0x50c662[_0x1dd1e0(0xb3)];if(_0x1713d7){for(let _0x20b027=0x0;_0x20b027<_0x1713d7;_0x20b027++)_0x550c20[_0x20b027]=_0x50c662[0x0|Math[_0x1dd1e0(0xcc)]()*_0xc5fe67];}else{let _0x476c89;_0x550c20[0x8]=_0x550c20[0xd]=_0x550c20[0x12]=_0x550c20[0x17]='-',_0x550c20[0xe]='4';for(let _0x106ace=0x0;_0x106ace<0x24;_0x106ace++){!_0x550c20[_0x106ace]&&(_0x476c89=0x0|Math['random']()*0x10,_0x550c20[_0x106ace]=_0x50c662[_0x106ace==0x13?_0x476c89&0x3|0x8:_0x476c89]);}}if(_0x30bf64)return _0x550c20[_0x1dd1e0(0xab)](),'u'+_0x550c20[_0x1dd1e0(0xb6)]('');return _0x550c20[_0x1dd1e0(0xb6)]('');}function a5_0x4433(){const _0x18b8f1=['YYYY','object','698396NEMXZj','random','906QsFWBk','slice','_qh','600680qAEgzI','function','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','YYYY-MM-DD','getHours','hasOwnProperty','split','Quantity\x20should\x20be\x20greater\x20than\x200.','除数不能为0','743503clumVD','surname','monthTitle','2725540vyKzGh','6549144veJJEH','exec','fjbh','getTime','setHours','getDate','2082WYfzts','stringify','getMonth','endsWith','substring','forEach','无效的操作符,操作符应为1、2、3或4','value','en-US','match','getFullYear','label','round','replace','shift','setDate','dayTitle','string','max','number','givenName','both','length','push','84oOjTsF','join','call','trim','abs','find','error','floor','toFixed','isArray','getMinutes','parse','yearTitle','padStart','toString','boolean','map','includes','3475431izHpWX','5YuHJfH'];a5_0x4433=function(){return _0x18b8f1;};return a5_0x4433();}function trim(_0x404d23,_0x5c6175=a5_0x4a0a5e(0xb2)){const _0x2cd746=a5_0x4a0a5e;_0x404d23=String(_0x404d23);if(_0x5c6175==_0x2cd746(0xb2))return _0x404d23[_0x2cd746(0xaa)](/^\s+|\s+$/g,'');if(_0x5c6175=='left')return _0x404d23[_0x2cd746(0xaa)](/^\s*/,'');if(_0x5c6175=='right')return _0x404d23[_0x2cd746(0xaa)](/(\s*$)/g,'');if(_0x5c6175=='all')return _0x404d23[_0x2cd746(0xaa)](/\s+/g,'');return _0x404d23;}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};
|
|
1
|
+
const a5_0x107532=a5_0x34b2;(function(_0x3a18e9,_0x4e8a5b){const _0x337f02=a5_0x34b2,_0x1bfd4c=_0x3a18e9();while(!![]){try{const _0xcf9b57=-parseInt(_0x337f02(0x126))/0x1*(parseInt(_0x337f02(0x12d))/0x2)+-parseInt(_0x337f02(0x13d))/0x3+parseInt(_0x337f02(0x139))/0x4+parseInt(_0x337f02(0x143))/0x5*(-parseInt(_0x337f02(0x12c))/0x6)+-parseInt(_0x337f02(0x13c))/0x7+parseInt(_0x337f02(0x141))/0x8*(parseInt(_0x337f02(0x14f))/0x9)+parseInt(_0x337f02(0x13e))/0xa;if(_0xcf9b57===_0x4e8a5b)break;else _0x1bfd4c['push'](_0x1bfd4c['shift']());}catch(_0x26ff0e){_0x1bfd4c['push'](_0x1bfd4c['shift']());}}}(a5_0x4502,0xabdae));function fmtNum(_0x3698fc){const _0x4f9cfa=a5_0x34b2;if(_0x3698fc==0x0)return'0';if(!_0x3698fc)return'';let _0x14dd84=typeof _0x3698fc===_0x4f9cfa(0x132)?parseFloat(_0x3698fc):_0x3698fc;if(isNaN(_0x14dd84))return'';return _0x14dd84['toLocaleString'](_0x4f9cfa(0x128),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x58f641,_0x50260c=![]){const _0x4ab5de=a5_0x34b2;let _0xaf5669={'surname':'','givenName':''};if(_0x50260c){const _0x571cc2=_0x58f641[_0x4ab5de(0x123)](',')?_0x58f641['split'](','):_0x58f641[_0x4ab5de(0x120)](/\s+/);_0x571cc2['length']>=0x2&&(_0xaf5669[_0x4ab5de(0x133)]=_0x571cc2[0x0]['trim'](),_0xaf5669[_0x4ab5de(0x11e)]=_0x571cc2[0x1][_0x4ab5de(0x11d)]());}else{const _0xdc96ec=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x25e053=0x0;_0x25e053<_0xdc96ec[_0x4ab5de(0x114)];_0x25e053++){const _0x5cc9c3=_0xdc96ec[_0x25e053];if(_0x58f641[_0x4ab5de(0x117)](_0x5cc9c3))return _0xaf5669[_0x4ab5de(0x133)]=_0x5cc9c3,_0xaf5669[_0x4ab5de(0x11e)]=_0x58f641[_0x4ab5de(0x136)](_0x5cc9c3[_0x4ab5de(0x114)])[_0x4ab5de(0x11d)](),_0xaf5669;}const _0x4ffb80=_0x58f641[_0x4ab5de(0x120)]('\x20');if(_0x4ffb80[_0x4ab5de(0x114)]===0x1){const _0x7dab90=_0x58f641[_0x4ab5de(0x12b)](/[\u4e00-\u9fa5]/);_0xaf5669['surname']=_0x7dab90?_0x7dab90[0x0]:'',_0xaf5669[_0x4ab5de(0x11e)]=_0x58f641['replace'](_0xaf5669[_0x4ab5de(0x133)],'')['trim']();}else _0xaf5669[_0x4ab5de(0x133)]=_0x4ffb80[0x0],_0xaf5669['givenName']=_0x4ffb80[_0x4ab5de(0x10d)](0x1)[_0x4ab5de(0x115)]('\x20');}return _0xaf5669;}function modifyKeys(_0x3743f0,_0x25f3ec={'strCode':a5_0x107532(0x11f),'strFjbh':a5_0x107532(0x127),'strGuid':a5_0x107532(0x116),'strValue':a5_0x107532(0x124)}){const _0x31a98f=a5_0x107532;if(!_0x3743f0[_0x31a98f(0x114)]||_0x3743f0===null)return[];const _0x5c71c8=_0x3743f0[_0x31a98f(0x129)](_0x5327ac=>{const _0x59447f=_0x31a98f,_0x33ea11={};for(const _0x5bb7f2 in _0x5327ac){_0x25f3ec[_0x59447f(0x10f)](_0x5bb7f2)?_0x33ea11[_0x25f3ec[_0x5bb7f2]]=_0x5327ac[_0x5bb7f2]:_0x33ea11[_0x5bb7f2]=_0x5327ac[_0x5bb7f2];}return _0x33ea11;});return _0x5c71c8;}function sliceArray(_0x4bdfe1,_0x2aaf85,_0x3cbcd4){const _0x4cc201=a5_0x107532;if(_0x2aaf85<=0x0)return console['error'](_0x4cc201(0x147)),[];return _0x3cbcd4?_0x4bdfe1[_0x4cc201(0x10d)](0x0,_0x2aaf85):_0x4bdfe1[_0x4cc201(0x10d)](-_0x2aaf85);}function findDataByData(_0x566fbf,_0x51095e,_0x383f8a){const _0x219352=a5_0x107532,_0x268133=_0x566fbf[_0x219352(0x144)](_0xe622a2=>_0xe622a2[_0x383f8a]===_0x51095e);return _0x268133||null;}function splitArray(_0x307d41,_0x38b975){const _0x53ee4b=a5_0x107532,_0x489b6a=[];for(let _0x5d7241=0x0;_0x5d7241<_0x307d41[_0x53ee4b(0x114)];_0x5d7241+=_0x38b975){_0x489b6a[_0x53ee4b(0x14e)](_0x307d41['slice'](_0x5d7241,_0x5d7241+_0x38b975));}return _0x489b6a;}function getProxyType(_0x3ebfbe){const _0x479924=a5_0x107532;return Object[_0x479924(0x134)]['toString'][_0x479924(0x125)](_0x3ebfbe)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x301c6f,_0x517346=0x1f4,_0x3eb6f6=![]){const _0x49aeda=a5_0x107532;if(timeout!==null)clearTimeout(timeout);if(_0x3eb6f6){const _0x299843=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x517346);if(_0x299843)typeof _0x301c6f===_0x49aeda(0x12f)&&_0x301c6f();}else timeout=setTimeout(()=>{const _0x1560bf=_0x49aeda;typeof _0x301c6f===_0x1560bf(0x12f)&&_0x301c6f();},_0x517346);}function urlEncode(_0x13d037={}){const _0x46a862=a5_0x107532,_0x5c0d9a=[];for(const _0xb5f65c in _0x13d037){const _0x5c6b2c=_0x13d037[_0xb5f65c];if(!_0x5c6b2c)continue;isArray(_0x5c6b2c)?_0x5c6b2c[_0x46a862(0x118)](_0x15d4dc=>{const _0x24b873=_0x46a862;_0x5c0d9a[_0x24b873(0x14e)](_0xb5f65c+'='+_0x15d4dc);}):_0x5c0d9a[_0x46a862(0x14e)](_0xb5f65c+'='+_0x5c6b2c);}return _0x5c0d9a[_0x46a862(0x115)]('&');}function dateFormat(_0x1423d8,_0x3a7fbd){const _0x2092eb=a5_0x107532,_0x1d219c=new Date(_0x3a7fbd),_0xc25146={'Y+':_0x1d219c[_0x2092eb(0x11c)]()['toString'](),'m+':(_0x1d219c['getMonth']()+0x1)[_0x2092eb(0x13f)](),'d+':_0x1d219c[_0x2092eb(0x131)]()[_0x2092eb(0x13f)](),'H+':_0x1d219c[_0x2092eb(0x150)]()['toString'](),'M+':_0x1d219c[_0x2092eb(0x113)]()[_0x2092eb(0x13f)](),'S+':_0x1d219c[_0x2092eb(0x151)]()[_0x2092eb(0x13f)]()};let _0x5176be;for(let _0x5a0a67 in _0xc25146){_0x5176be=new RegExp('('+_0x5a0a67+')')[_0x2092eb(0x142)](_0x1423d8);_0x5176be&&(_0x1423d8=_0x1423d8[_0x2092eb(0x138)](_0x5176be[0x1],_0x5176be[0x1][_0x2092eb(0x114)]==0x1?_0xc25146[_0x5a0a67]:_0xc25146[_0x5a0a67][_0x2092eb(0x146)](_0x5176be[0x1]['length'],'0')));;};return _0x1423d8;}function formatDate(_0x1cf7f8,_0x484278='YYYY-MM-DD',_0x26f371={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x21801d=a5_0x107532,_0x121519=new Date(_0x1cf7f8),_0x548b27=_0x121519[_0x21801d(0x11c)](),_0x12f250=_0x121519[_0x21801d(0x10e)]()+0x1,_0xe57d40=_0x121519[_0x21801d(0x131)](),_0xbee0ef=_0x12f250<0xa?'0'+_0x12f250:_0x12f250,_0x4571a5=_0xe57d40<0xa?'0'+_0xe57d40:_0xe57d40;let _0x30b81b=_0x484278[_0x21801d(0x138)](_0x21801d(0x13b),_0x548b27)[_0x21801d(0x138)]('MM',_0xbee0ef)[_0x21801d(0x138)]('DD',_0x4571a5);return _0x30b81b=_0x30b81b[_0x21801d(0x138)](/-MM/g,_0x26f371['monthTitle'])[_0x21801d(0x138)](/-DD/g,_0x26f371['dayTitle'])[_0x21801d(0x138)](_0x21801d(0x13b)+_0x26f371[_0x21801d(0x130)],'')[_0x21801d(0x138)]('MM'+_0x26f371['monthTitle'],'')[_0x21801d(0x138)]('DD'+_0x26f371[_0x21801d(0x12e)],''),_0x30b81b;}function a5_0x4502(){const _0x5306eb=['find','getTime','padStart','Quantity\x20should\x20be\x20greater\x20than\x200.','parse','floor','number','toFixed','setHours','_qh','push','9QvsjdI','getHours','getSeconds','除数不能为0','slice','getMonth','hasOwnProperty','boolean','left','random','getMinutes','length','join','value','startsWith','forEach','无效的操作符,操作符应为1、2、3或4','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','stringify','getFullYear','trim','givenName','code','split','both','shift','includes','label','call','255113BcCBmP','fjbh','en-US','map','right','match','423126sIBjhM','2ObIDOQ','dayTitle','function','yearTitle','getDate','string','surname','prototype','object','substring','max','replace','2466608luveqz','round','YYYY','4294668tIVKtG','271896yUzdjW','5286480KxiOFT','toString','endsWith','6399768gMiQfT','exec','20utiSrV'];a5_0x4502=function(){return _0x5306eb;};return a5_0x4502();}function a5_0x34b2(_0x449eb9,_0xc5fa50){const _0x4502a9=a5_0x4502();return a5_0x34b2=function(_0x34b211,_0x1d7701){_0x34b211=_0x34b211-0x10c;let _0x27fe9c=_0x4502a9[_0x34b211];return _0x27fe9c;},a5_0x34b2(_0x449eb9,_0xc5fa50);}function compareDates(_0x1d5968,_0x4e1201){const _0x188420=a5_0x107532;_0x1d5968=new Date(_0x1d5968);!_0x4e1201?_0x4e1201=new Date():_0x4e1201=new Date(_0x4e1201);_0x1d5968[_0x188420(0x14c)](0x0,0x0,0x0,0x0),_0x4e1201[_0x188420(0x14c)](0x0,0x0,0x0,0x0);var _0x5aaed2=_0x1d5968[_0x188420(0x145)](),_0x4160ae=_0x4e1201[_0x188420(0x145)]();if(_0x5aaed2<_0x4160ae)return-0x1;else return _0x5aaed2>_0x4160ae?0x1:0x0;}function getDaysBetween(_0x564ce5,_0x2c566f){const _0x34b7d4=a5_0x107532,_0x4023ac=new Date(_0x564ce5),_0x56ebef=new Date(_0x2c566f),_0x25fa46=Math['abs'](_0x4023ac['getTime']()-_0x56ebef['getTime']()),_0xa77c40=Math[_0x34b7d4(0x149)](_0x25fa46/(0x3e8*0x3c*0x3c*0x18));return _0xa77c40+0x1;}function chineseNumeral(_0x265e6a){const _0xffc45a=a5_0x107532,_0x591b3b=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x20509d=['','拾','佰','仟'],_0x2e6f6a=['','万','亿','兆'];let _0x3ff2b9=Math[_0xffc45a(0x149)](_0x265e6a),_0x1e2685=Math[_0xffc45a(0x13a)]((_0x265e6a-_0x3ff2b9)*0x64),_0x9add4a='';for(let _0x351bed=0x0;_0x3ff2b9>0x0;_0x351bed++){let _0x10e980='',_0x27d7ec=_0x3ff2b9%0x2710;_0x3ff2b9=Math['floor'](_0x3ff2b9/0x2710);for(let _0x22b40e=0x0;_0x27d7ec>0x0;_0x22b40e++){let _0x1ac991=_0x27d7ec%0xa;_0x10e980=(_0x1ac991?_0x591b3b[_0x1ac991]+_0x20509d[_0x22b40e]:'')+_0x10e980,_0x27d7ec=Math[_0xffc45a(0x149)](_0x27d7ec/0xa);}_0x9add4a=_0x10e980+(_0x10e980?_0x2e6f6a[_0x351bed]:_0x2e6f6a[_0x351bed]&&!_0x9add4a[_0xffc45a(0x123)]('零')?'零':'')+_0x9add4a;}_0x9add4a+=_0x9add4a?'元':'零元';if(_0x1e2685>0x0){let _0x2bd610=Math[_0xffc45a(0x149)](_0x1e2685/0xa),_0x52dff8=_0x1e2685%0xa;_0x9add4a+=(_0x2bd610?_0x591b3b[_0x2bd610]+'角':'')+(_0x52dff8?_0x591b3b[_0x52dff8]+'分':'');}else _0x9add4a+='整';return _0x9add4a['replace'](/零{2,}/g,'零')[_0xffc45a(0x138)](/零元/,'元');}function getMonthDate(_0x2c94b3){const _0x2c10d1=a5_0x107532;(!_0x2c94b3||_0x2c94b3['trim']()==='')&&(_0x2c94b3=new Date()[_0x2c10d1(0x11c)]()+'-'+(new Date()[_0x2c10d1(0x10e)]()+0x1));let _0x48a0a8=[],[_0x160a6e,_0x526aaf]=_0x2c94b3[_0x2c10d1(0x120)]('-')[_0x2c10d1(0x129)](Number),_0x5630da=new Date(_0x160a6e,_0x526aaf,0x0),_0x1133d7=_0x5630da[_0x2c10d1(0x131)]();for(let _0x236019=0x1;_0x236019<=_0x1133d7;_0x236019++){let _0x5f2ede=_0x236019<0xa?'0'+_0x236019:''+_0x236019,_0x10408c=_0x526aaf<0xa?'0'+_0x526aaf:''+_0x526aaf;_0x48a0a8[_0x2c10d1(0x14e)]({'date':_0x160a6e+'-'+_0x10408c+'-'+_0x5f2ede,'disable':!![]});}return _0x48a0a8;}function getToday(_0x338870){const _0x453762=a5_0x107532;var _0x44a112=new Date(),_0x4db6be=String(_0x44a112[_0x453762(0x131)]())[_0x453762(0x146)](0x2,'0'),_0x2a84c0=String(_0x44a112[_0x453762(0x10e)]()+0x1)[_0x453762(0x146)](0x2,'0'),_0x10ab2b=_0x44a112[_0x453762(0x11c)]();return _0x44a112=_0x10ab2b+'-'+_0x2a84c0+'-'+_0x4db6be,_0x44a112;}function resetObject(_0x3fce41){const _0x1b0ea4=a5_0x107532;let _0x487ed0=JSON[_0x1b0ea4(0x148)](JSON[_0x1b0ea4(0x11b)](_0x3fce41));for(const _0xc105c0 in _0x487ed0){if(typeof _0x487ed0[_0xc105c0]===_0x1b0ea4(0x14a))_0x487ed0[_0xc105c0]=0x0;else{if(typeof _0x487ed0[_0xc105c0]===_0x1b0ea4(0x110))_0x487ed0[_0xc105c0]=![];else{if(Array['isArray'](_0x487ed0[_0xc105c0]))_0x487ed0[_0xc105c0]=[];else typeof _0x487ed0[_0xc105c0]===_0x1b0ea4(0x135)&&_0x487ed0[_0xc105c0]!==null?resetObject(_0x487ed0[_0xc105c0]):_0x487ed0[_0xc105c0]='';}}}return _0x487ed0;}function preciseOperation(_0x3f2f42,_0x331a65,_0x156f36,_0x2b8504=0xf4240){const _0x2f359f=a5_0x107532;if(isNaN(_0x3f2f42)||isNaN(_0x331a65))return NaN;if(!isFinite(_0x3f2f42)||!isFinite(_0x331a65))return NaN;let _0x57c4e5=BigInt(Math[_0x2f359f(0x13a)](_0x3f2f42*_0x2b8504)),_0x20e534=BigInt(Math[_0x2f359f(0x13a)](_0x331a65*_0x2b8504)),_0x4b4061;switch(_0x156f36){case 0x1:_0x4b4061=_0x57c4e5+_0x20e534;break;case 0x2:_0x4b4061=_0x57c4e5-_0x20e534;break;case 0x3:_0x4b4061=_0x57c4e5*_0x20e534;break;case 0x4:if(_0x20e534===0x0n)throw new Error(_0x2f359f(0x10c));_0x4b4061=_0x57c4e5/_0x20e534;break;default:throw new Error(_0x2f359f(0x119));}return Number(_0x4b4061)/_0x2b8504;}function preciseSum(_0x12411c){const _0x28274a=a5_0x107532;let _0x367cb7=0x0;for(const _0x10a761 of _0x12411c){let _0x54dacc=0x0;if(typeof _0x10a761==='string'){const _0x3d6138=parseFloat(_0x10a761);!isNaN(_0x3d6138)&&(_0x54dacc=_0x3d6138);}else typeof _0x10a761===_0x28274a(0x14a)&&(_0x54dacc=_0x10a761);_0x367cb7=preciseOperation(_0x367cb7,_0x54dacc,0x1);}return _0x367cb7;}function getRelativeDate(_0x368ece,_0x19675b=0x0){const _0x93c092=a5_0x107532,_0x30f3d1=new Date(_0x368ece);_0x30f3d1['setDate'](_0x30f3d1[_0x93c092(0x131)]()+_0x19675b);const _0x4520d6=_0x30f3d1[_0x93c092(0x11c)](),_0x3b2ffb=(_0x30f3d1['getMonth']()+0x1)[_0x93c092(0x13f)]()[_0x93c092(0x146)](0x2,'0'),_0xe603ff=_0x30f3d1[_0x93c092(0x131)]()[_0x93c092(0x13f)]()[_0x93c092(0x146)](0x2,'0');return _0x4520d6+'-'+_0x3b2ffb+'-'+_0xe603ff;}function validateFields(_0x1dad03,_0x39d2ff,_0x29fa86=''){for(let _0x5719c0 of _0x39d2ff){if(_0x1dad03[_0x5719c0]===_0x29fa86)return!![];}return![];}function mergeObjects(_0x2bf3a1,_0x428125){for(const _0x477897 in _0x2bf3a1){_0x428125['hasOwnProperty'](_0x477897)&&(_0x2bf3a1[_0x477897]=_0x428125[_0x477897]);}return _0x2bf3a1;}const formatToDecimal=(_0x569eac,_0x4f0ecd=0x2)=>{const _0x54789d=a5_0x107532;if(isNaN(_0x4f0ecd)||_0x4f0ecd<0x0)return _0x569eac;let _0x59fcff=Number(_0x569eac);if(!isFinite(_0x59fcff))return _0x569eac;return _0x4f0ecd=Math[_0x54789d(0x137)](0x0,Math['floor'](_0x4f0ecd)),_0x59fcff[_0x54789d(0x14b)](_0x4f0ecd);};function findKeysEndingWith(_0xf12d58,_0x5be60c=a5_0x107532(0x14d)){const _0x14e118=a5_0x107532;let _0x25983c=[];for(var _0x310f54 in _0xf12d58){if(_0xf12d58[_0x14e118(0x10f)](_0x310f54)){if(_0x310f54[_0x14e118(0x140)](_0x5be60c))_0x25983c[_0x14e118(0x14e)](_0x310f54);}}return _0x25983c;}function guid(_0x552eb5=0x20,_0x17bb00=!![],_0x23ef4f=null){const _0x5546ec=a5_0x107532,_0x50bda9=_0x5546ec(0x11a)[_0x5546ec(0x120)](''),_0x11ada5=[];_0x23ef4f=_0x23ef4f||_0x50bda9['length'];if(_0x552eb5){for(let _0x3d79f1=0x0;_0x3d79f1<_0x552eb5;_0x3d79f1++)_0x11ada5[_0x3d79f1]=_0x50bda9[0x0|Math['random']()*_0x23ef4f];}else{let _0x225753;_0x11ada5[0x8]=_0x11ada5[0xd]=_0x11ada5[0x12]=_0x11ada5[0x17]='-',_0x11ada5[0xe]='4';for(let _0x39b6e2=0x0;_0x39b6e2<0x24;_0x39b6e2++){!_0x11ada5[_0x39b6e2]&&(_0x225753=0x0|Math[_0x5546ec(0x112)]()*0x10,_0x11ada5[_0x39b6e2]=_0x50bda9[_0x39b6e2==0x13?_0x225753&0x3|0x8:_0x225753]);}}if(_0x17bb00)return _0x11ada5[_0x5546ec(0x122)](),'u'+_0x11ada5[_0x5546ec(0x115)]('');return _0x11ada5[_0x5546ec(0x115)]('');}function trim(_0x5959b0,_0x3f9aed=a5_0x107532(0x121)){const _0x447e53=a5_0x107532;_0x5959b0=String(_0x5959b0);if(_0x3f9aed=='both')return _0x5959b0[_0x447e53(0x138)](/^\s+|\s+$/g,'');if(_0x3f9aed==_0x447e53(0x111))return _0x5959b0[_0x447e53(0x138)](/^\s*/,'');if(_0x3f9aed==_0x447e53(0x12a))return _0x5959b0[_0x447e53(0x138)](/(\s*$)/g,'');if(_0x3f9aed=='all')return _0x5959b0['replace'](/\s+/g,'');return _0x5959b0;}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};
|