yunlin 1.0.38 → 1.0.40

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 CHANGED
@@ -1 +1 @@
1
- function a0_0xc1d7(){var _0x1c182d=['17109gSzGkY','12SPgYOf','2126064yHZWXd','8048344yGLNAm','4972445jqgFsC','28mZXydc','1FyEEZX','6SXCAnA','416726DbrWOP','32220jXBmCB','5910xYEsiN','27661502mSKYHW'];a0_0xc1d7=function(){return _0x1c182d;};return a0_0xc1d7();}(function(_0x4a8e9a,_0x5ac8ab){var _0x54078a=a0_0x198c,_0x378ef7=_0x4a8e9a();while(!![]){try{var _0x11f7c1=-parseInt(_0x54078a(0x196))/0x1*(-parseInt(_0x54078a(0x198))/0x2)+parseInt(_0x54078a(0x197))/0x3*(-parseInt(_0x54078a(0x192))/0x4)+-parseInt(_0x54078a(0x194))/0x5+-parseInt(_0x54078a(0x18d))/0x6*(-parseInt(_0x54078a(0x195))/0x7)+parseInt(_0x54078a(0x193))/0x8+parseInt(_0x54078a(0x190))/0x9*(-parseInt(_0x54078a(0x18e))/0xa)+parseInt(_0x54078a(0x18f))/0xb*(parseInt(_0x54078a(0x191))/0xc);if(_0x11f7c1===_0x5ac8ab)break;else _0x378ef7['push'](_0x378ef7['shift']());}catch(_0x3ccb3d){_0x378ef7['push'](_0x378ef7['shift']());}}}(a0_0xc1d7,0x8b0d4));function a0_0x198c(_0x5570e0,_0x42306f){var _0xc1d736=a0_0xc1d7();return a0_0x198c=function(_0x198c8a,_0x2f2c35){_0x198c8a=_0x198c8a-0x18d;var _0x454ebb=_0xc1d736[_0x198c8a];return _0x454ebb;},a0_0x198c(_0x5570e0,_0x42306f);}import a0_0x871ca1 from'./utils';import a0_0x3b7e14 from'./price';import a0_0x4eadb4 from'./test';import a0_0x4376fc from'./room';export default{'test':a0_0x4eadb4,'utils':a0_0x871ca1,'price':a0_0x3b7e14,'room':a0_0x4376fc};
1
+ function a0_0x27aa(){var _0x394a1b=['44pundZD','118706lNouHj','2314235IXLCSJ','119912pGiGyf','210119nZnpce','3048NnrFef','2apqIxa','499210cpTOjU','132WsxZBs','339urvyJa','97034eUoOxq','135qAioyY','6GKQJjM'];a0_0x27aa=function(){return _0x394a1b;};return a0_0x27aa();}(function(_0x2c090b,_0x5e2d1c){var _0x561900=a0_0xe83a,_0x394ef4=_0x2c090b();while(!![]){try{var _0x5e1073=-parseInt(_0x561900(0xa7))/0x1*(-parseInt(_0x561900(0xa3))/0x2)+-parseInt(_0x561900(0xa6))/0x3*(parseInt(_0x561900(0xa2))/0x4)+parseInt(_0x561900(0xac))/0x5*(parseInt(_0x561900(0xa9))/0x6)+parseInt(_0x561900(0xab))/0x7+-parseInt(_0x561900(0xad))/0x8*(parseInt(_0x561900(0xa8))/0x9)+parseInt(_0x561900(0xa4))/0xa*(-parseInt(_0x561900(0xaa))/0xb)+parseInt(_0x561900(0xa5))/0xc*(parseInt(_0x561900(0xa1))/0xd);if(_0x5e1073===_0x5e2d1c)break;else _0x394ef4['push'](_0x394ef4['shift']());}catch(_0x1e1f28){_0x394ef4['push'](_0x394ef4['shift']());}}}(a0_0x27aa,0x3b927));import a0_0x2fe168 from'./utils';import a0_0xa1491f from'./price';function a0_0xe83a(_0xa0233,_0x2be3fd){var _0x27aa2e=a0_0x27aa();return a0_0xe83a=function(_0xe83a8e,_0x3214d1){_0xe83a8e=_0xe83a8e-0xa1;var _0x5bb619=_0x27aa2e[_0xe83a8e];return _0x5bb619;},a0_0xe83a(_0xa0233,_0x2be3fd);}import a0_0x51864f from'./test';import a0_0x215a14 from'./room';import a0_0x42e31a from'./roomOld';export default{'test':a0_0x51864f,'utils':a0_0x2fe168,'price':a0_0xa1491f,'room':a0_0x215a14,'roomOld':a0_0x42e31a};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- function a1_0xebd9(_0x5663cc,_0x133f58){const _0x1298f0=a1_0x1298();return a1_0xebd9=function(_0xebd910,_0x1a0eb2){_0xebd910=_0xebd910-0x10a;let _0x157f2f=_0x1298f0[_0xebd910];return _0x157f2f;},a1_0xebd9(_0x5663cc,_0x133f58);}function a1_0x1298(){const _0xfa37b7=['base','\x20*\x20','adult','name','附加服務','rylx','keys','max','money','childprice','isArray','childnum','length','push','2106816pLAXrm','adultnum','service','warn','兒童[占床]','filter','error','tax','10201873Wcnhhz','500625bfPamm','8XyZYvd','239346dmdhtk','totaltax','child','stringify','adultprice','8qEqfce','elder','price','vipdiscounted','people','trip','unitpricewb','vip','isShowTip','other','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','reduction','保險費用','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','forEach','fLsjUnit','split','人員費用','list','tip','552707wKoOFA','airtax','includes','users','機場稅','50BEVpqz','tipday','2810486IcUwck','附加行程','\x0a\x09\x09\x09正确参数:','會員充值','1000530ODublX','遊客優惠','unitprice','map','24OTURDs','tipuser','basechildprice','promotion','hasOwnProperty','unit','ftd\x20函数接收到无效的数字输入:\x20','point','viprecharge','strLx','2uxAieI','優惠券','object','coupon','floor','totalprice','toFixed','nRs','couponSign'];a1_0x1298=function(){return _0xfa37b7;};return a1_0x1298();}(function(_0x8d5fa7,_0x5cd032){const _0x3692b7=a1_0xebd9,_0x5d6840=_0x8d5fa7();while(!![]){try{const _0xab20d9=-parseInt(_0x3692b7(0x113))/0x1*(parseInt(_0x3692b7(0x12c))/0x2)+-parseInt(_0x3692b7(0x14c))/0x3*(parseInt(_0x3692b7(0x153))/0x4)+parseInt(_0x3692b7(0x11e))/0x5+-parseInt(_0x3692b7(0x143))/0x6+-parseInt(_0x3692b7(0x11a))/0x7*(parseInt(_0x3692b7(0x14d))/0x8)+parseInt(_0x3692b7(0x14e))/0x9*(parseInt(_0x3692b7(0x118))/0xa)+parseInt(_0x3692b7(0x14b))/0xb*(parseInt(_0x3692b7(0x122))/0xc);if(_0xab20d9===_0x5cd032)break;else _0x5d6840['push'](_0x5d6840['shift']());}catch(_0x8e0f84){_0x5d6840['push'](_0x5d6840['shift']());}}}(a1_0x1298,0x86007));function handleCosting(_0x4b985f,_0x29e86c='',_0x87855f={},_0x281aad,_0x5e6746){const _0x224018=a1_0xebd9;let _0x3c7c65=[];const _0x41f050=_0x224018(0x136),_0x326768={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x87855f=typeof _0x87855f==='object'&&!Array[_0x224018(0x13f)](_0x87855f)&&_0x87855f!==null?_0x87855f:{};const _0x28694e={..._0x326768,..._0x87855f},_0x1d4b1f=Object[_0x224018(0x13b)](_0x326768);Object['keys'](_0x87855f)[_0x224018(0x10d)](_0xb5d212=>{const _0x28b583=_0x224018;!_0x1d4b1f['includes'](_0xb5d212)&&console[_0x28b583(0x146)](_0x28b583(0x10c)+_0xb5d212);});let _0x3929ce=_0x28694e[_0x224018(0x134)]||'-',_0x551917=_0x28694e['dp']||0x2;const _0x307a36=(_0x296a6b,_0x3efc2a=_0x551917)=>{const _0x2bb634=_0x224018;if(typeof _0x296a6b!=='number'&&isNaN(Number(_0x296a6b)))return console[_0x2bb634(0x149)](_0x2bb634(0x128)+_0x296a6b),_0x296a6b;if(isNaN(_0x3efc2a)||_0x3efc2a<0x0)return _0x296a6b;let _0x227b01=Number(_0x296a6b);if(!isFinite(_0x227b01))return _0x296a6b;return _0x3efc2a=Math[_0x2bb634(0x13c)](0x0,Math[_0x2bb634(0x130)](_0x3efc2a)),_0x227b01[_0x2bb634(0x132)](_0x3efc2a);},_0x4c1c1d=(_0xf8ae37,_0x30adc8)=>{const _0x216b3b=_0x224018;if(_0x30adc8&&typeof _0x30adc8===_0x216b3b(0x12e)&&!Array[_0x216b3b(0x13f)](_0x30adc8))for(const _0x575c14 in _0xf8ae37){_0xf8ae37[_0x216b3b(0x126)](_0x575c14)&&_0x30adc8[_0x216b3b(0x126)](_0x575c14)&&(_0xf8ae37[_0x575c14]=_0x30adc8[_0x575c14]);}else console[_0x216b3b(0x149)]((_0x216b3b(0x15d)+JSON['stringify'](_0x30adc8,null,0x2)+_0x216b3b(0x11c)+JSON[_0x216b3b(0x151)](_0xf8ae37,null,0x2))['trim']());return _0xf8ae37;};let _0x28fd7c={'people':_0x224018(0x110),'service':_0x224018(0x139),'trip':_0x224018(0x11b),'other':'其他費用','reduction':'減免費用','totalprice':'總計','airtax':_0x224018(0x117)},_0x37a3ba={'adult':'成人','child':'兒童','childusebed':_0x224018(0x147),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x224018(0x11f),'vip':'會員減免','promotion':'促銷','insure':_0x224018(0x10b),'coupon':_0x224018(0x12d),'point':'積分','tax':'稅金','viprecharge':_0x224018(0x11d),'r':'人','t':'天'};_0x28fd7c=_0x4c1c1d(_0x28fd7c,_0x281aad),_0x37a3ba=_0x4c1c1d(_0x37a3ba,_0x5e6746);const _0x405f05=_0x4b985f[_0x224018(0x148)](_0x2637f5=>_0x2637f5['strLx']==_0x224018(0x135));if(_0x405f05['length']){let _0x3c6225={'title':_0x28fd7c[_0x224018(0x157)],'type':'base','list':[]};_0x405f05[_0x224018(0x121)](_0x501d21=>{const _0x2272c7=_0x224018;_0x3c6225['list'][_0x2272c7(0x142)]({'title':_0x37a3ba[_0x501d21['strJgbm']],'info':_0x29e86c+_0x307a36(_0x501d21[_0x2272c7(0x10e)])+_0x41f050+_0x501d21[_0x2272c7(0x133)],'nRs':_0x501d21[_0x2272c7(0x133)],'unit':_0x501d21[_0x2272c7(0x10e)],'cb':_0x501d21['fJcbzlsjUnit'],'type':_0x2272c7(0x135)});}),_0x3c7c65['push'](_0x3c6225);}const _0x38daef=_0x4b985f[_0x224018(0x148)](_0x22e731=>_0x22e731[_0x224018(0x12b)]=='service');if(_0x38daef[_0x224018(0x141)]){let _0x50c8af={'title':_0x28fd7c[_0x224018(0x145)],'type':_0x224018(0x145),'list':[]};_0x38daef[_0x224018(0x121)](_0x326ed7=>{const _0x702213=_0x224018;_0x50c8af[_0x702213(0x111)][_0x702213(0x142)]({'title':_0x326ed7[_0x702213(0x138)]+('['+_0x326ed7['itemname']+']'),'info':_0x29e86c+_0x307a36(_0x326ed7[_0x702213(0x120)])+_0x41f050+_0x326ed7['num'],'nRs':_0x326ed7['num'],'unit':_0x326ed7[_0x702213(0x120)],'cb':_0x326ed7['baseprice'],'type':'service'});}),_0x3c7c65[_0x224018(0x142)](_0x50c8af);}const _0x291acb=_0x4b985f[_0x224018(0x148)](_0x4424da=>_0x4424da[_0x224018(0x12b)]==_0x224018(0x158));if(_0x291acb[_0x224018(0x141)]){let _0x158887={'title':_0x28fd7c[_0x224018(0x158)],'type':_0x224018(0x158),'list':[]};_0x291acb['map'](_0x4e6435=>{const _0x5b7c72=_0x224018;_0x4e6435['adultnum']!='0'&&_0x158887['list'][_0x5b7c72(0x142)]({'title':_0x4e6435[_0x5b7c72(0x138)]+('['+_0x37a3ba[_0x5b7c72(0x137)]+']'),'info':_0x29e86c+_0x307a36(_0x4e6435[_0x5b7c72(0x152)])+_0x41f050+_0x4e6435[_0x5b7c72(0x144)],'nRs':_0x4e6435[_0x5b7c72(0x144)],'unit':_0x4e6435[_0x5b7c72(0x152)],'cb':_0x4e6435['baseadultprice'],'type':_0x5b7c72(0x158)}),_0x4e6435[_0x5b7c72(0x140)]!='0'&&_0x158887[_0x5b7c72(0x111)][_0x5b7c72(0x142)]({'title':_0x4e6435[_0x5b7c72(0x138)]+('['+_0x37a3ba[_0x5b7c72(0x150)]+']'),'info':_0x29e86c+_0x307a36(_0x4e6435[_0x5b7c72(0x13e)])+_0x41f050+_0x4e6435[_0x5b7c72(0x140)],'nRs':_0x4e6435['childnum'],'unit':_0x4e6435['childprice'],'cb':_0x4e6435[_0x5b7c72(0x124)],'type':_0x5b7c72(0x158)});}),_0x3c7c65[_0x224018(0x142)](_0x158887);}let _0x75c0e0=[];const _0x7fe6b4=_0x4b985f[_0x224018(0x148)](_0x228308=>_0x228308[_0x224018(0x12b)]=='elder');_0x7fe6b4['length']&&_0x7fe6b4['map'](_0x4e82e6=>{const _0x698a9a=_0x224018,_0x564da7=_0x4e82e6[_0x698a9a(0x138)][_0x698a9a(0x10f)]('|')||[''];_0x75c0e0[_0x698a9a(0x142)]({'title':_0x37a3ba[_0x698a9a(0x154)]+('['+_0x564da7[0x0]+']'),'info':_0x29e86c+_0x3929ce+_0x307a36(_0x4e82e6['money']),'unit':_0x4e82e6['money'],'cb':_0x4e82e6[_0x698a9a(0x13d)],'type':_0x698a9a(0x154)});});const _0x4818d3=_0x4b985f[_0x224018(0x148)](_0x380475=>_0x380475['strLx']==_0x224018(0x156));_0x4818d3[_0x224018(0x141)]&&_0x4818d3[_0x224018(0x121)](_0x109b27=>{const _0x5ecaaf=_0x224018;_0x75c0e0[_0x5ecaaf(0x142)]({'title':_0x37a3ba['vip']+('['+_0x109b27[_0x5ecaaf(0x138)]+']'),'info':_0x29e86c+_0x3929ce+_0x307a36(_0x109b27[_0x5ecaaf(0x13d)]),'unit':_0x109b27[_0x5ecaaf(0x13d)],'cb':_0x109b27[_0x5ecaaf(0x13d)],'type':_0x5ecaaf(0x15a)});});const _0xc6e2bf=_0x4b985f[_0x224018(0x148)](_0x12c017=>_0x12c017[_0x224018(0x12b)]==_0x224018(0x125));_0xc6e2bf[_0x224018(0x141)]&&_0xc6e2bf[_0x224018(0x121)](_0x24eae8=>{const _0x59e515=_0x224018;_0x75c0e0[_0x59e515(0x142)]({'title':_0x37a3ba[_0x59e515(0x125)],'info':_0x29e86c+_0x3929ce+_0x307a36(_0x24eae8[_0x59e515(0x13d)]),'unit':_0x24eae8[_0x59e515(0x13d)],'cb':_0x24eae8[_0x59e515(0x13d)],'type':_0x59e515(0x125)});});_0x75c0e0[_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)]({'title':_0x28fd7c['reduction'],'type':_0x224018(0x10a),'list':_0x75c0e0});const _0x4fe258=_0x4b985f[_0x224018(0x148)](_0x403f45=>_0x403f45[_0x224018(0x12b)]==_0x224018(0x114));if(_0x4fe258[_0x224018(0x141)]){let _0x415688={'title':_0x28fd7c[_0x224018(0x114)],'type':_0x224018(0x114),'list':[]};_0x4fe258[_0x224018(0x121)](_0x20b1f9=>{const _0x193eb6=_0x224018;_0x415688['list'][_0x193eb6(0x142)]({'title':_0x37a3ba[_0x20b1f9[_0x193eb6(0x13a)]],'info':_0x29e86c+_0x307a36(_0x20b1f9[_0x193eb6(0x120)])+_0x41f050+_0x20b1f9['sl'],'nRs':_0x20b1f9['sl'],'unit':_0x20b1f9[_0x193eb6(0x120)],'cb':_0x20b1f9[_0x193eb6(0x159)],'type':_0x20b1f9[_0x193eb6(0x13a)]});}),_0x3c7c65[_0x224018(0x142)](_0x415688);}const _0x22fda3=[_0x224018(0x135),_0x224018(0x145),_0x224018(0x158),_0x224018(0x154),_0x224018(0x156),_0x224018(0x125),_0x224018(0x114)],_0x2c18b6=_0x4b985f['filter'](_0x1ba656=>!_0x22fda3[_0x224018(0x115)](_0x1ba656[_0x224018(0x12b)]));let _0x2c988d={'title':_0x28fd7c[_0x224018(0x15c)],'type':_0x224018(0x15c),'list':[]};for(var _0x3d1104=0x0;_0x3d1104<_0x2c18b6['length'];_0x3d1104++){const _0x5cde47=_0x2c18b6[_0x3d1104];_0x5cde47[_0x224018(0x12b)]==_0x224018(0x12a)&&_0x2c988d['list'][_0x224018(0x142)]({'title':_0x37a3ba['viprecharge']+('['+_0x5cde47[_0x224018(0x138)]+']'),'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x13d)]),'unit':_0x5cde47[_0x224018(0x13d)],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]=='insure'&&_0x2c988d[_0x224018(0x111)][_0x224018(0x142)]({'title':_0x37a3ba['insure']+('['+_0x5cde47[_0x224018(0x138)]+']'),'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x127)])+_0x41f050+_0x5cde47[_0x224018(0x116)]+_0x37a3ba['r'],'nRs':_0x5cde47[_0x224018(0x116)],'unit':_0x5cde47[_0x224018(0x127)],'cb':_0x5cde47[_0x224018(0x127)],'type':'insure'}),(_0x5cde47[_0x224018(0x12b)]==_0x224018(0x12f)||_0x5cde47[_0x224018(0x12b)]==_0x224018(0x129))&&_0x2c988d[_0x224018(0x111)][_0x224018(0x142)]({'title':_0x37a3ba[_0x5cde47['strLx']],'info':_0x29e86c+_0x3929ce+_0x307a36(_0x5cde47[_0x224018(0x13d)]),'unit':_0x5cde47[_0x224018(0x13d)],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]==_0x224018(0x112)&&_0x28694e[_0x224018(0x15b)]&&_0x2c988d[_0x224018(0x111)]['push']({'title':_0x37a3ba[_0x5cde47[_0x224018(0x12b)]],'info':_0x29e86c+_0x307a36(_0x5cde47['tip'])+_0x41f050+_0x5cde47[_0x224018(0x123)]+_0x37a3ba['r']+_0x41f050+_0x5cde47[_0x224018(0x119)]+_0x37a3ba['t'],'nRs':_0x5cde47[_0x224018(0x123)],'count':_0x5cde47['tipday'],'unit':_0x5cde47['tip'],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]==_0x224018(0x14a)&&_0x2c988d[_0x224018(0x111)]['push']({'title':_0x37a3ba[_0x5cde47['strLx']],'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x14f)]),'unit':_0x5cde47['totaltax'],'type':_0x5cde47[_0x224018(0x12b)]});}_0x2c988d[_0x224018(0x111)][_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)](_0x2c988d);const _0x29db38=_0x4b985f['filter'](_0x242584=>_0x242584[_0x224018(0x12b)]==_0x224018(0x131));return _0x29db38[_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)]({'title':_0x28fd7c['totalprice'],'type':_0x224018(0x131),'list':[{'title':_0x28fd7c[_0x224018(0x131)],'info':_0x29e86c+_0x307a36(_0x29db38[0x0][_0x224018(0x155)])}]}),_0x3c7c65;}export default{'handleCosting':handleCosting};
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};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x43f1ea,_0x5ee67b){const _0x32df37=a2_0x5051,_0x439693=_0x43f1ea();while(!![]){try{const _0x174e91=-parseInt(_0x32df37(0x13a))/0x1*(parseInt(_0x32df37(0x140))/0x2)+parseInt(_0x32df37(0x139))/0x3*(parseInt(_0x32df37(0x125))/0x4)+parseInt(_0x32df37(0x137))/0x5*(-parseInt(_0x32df37(0x144))/0x6)+-parseInt(_0x32df37(0x13c))/0x7*(parseInt(_0x32df37(0x126))/0x8)+parseInt(_0x32df37(0x13b))/0x9*(-parseInt(_0x32df37(0x12c))/0xa)+parseInt(_0x32df37(0x13e))/0xb*(-parseInt(_0x32df37(0x12b))/0xc)+parseInt(_0x32df37(0x12a))/0xd*(parseInt(_0x32df37(0x13d))/0xe);if(_0x174e91===_0x5ee67b)break;else _0x439693['push'](_0x439693['shift']());}catch(_0x2aa54a){_0x439693['push'](_0x439693['shift']());}}}(a2_0x5d8c,0x264df));function getRoomCount(_0x5358f8,_0x3c9645){const _0x29bf87=a2_0x5051,_0x1bd339=Array[_0x29bf87(0x132)](_0x5358f8);if(!_0x1bd339)_0x5358f8=[_0x5358f8];let _0x3e1a0a=[];return _0x5358f8[_0x29bf87(0x141)](_0x2c544e=>{const _0x66f973=_0x29bf87;let _0x4db9ba=![];if(!_0x2c544e[_0x66f973(0x124)]){let _0x327ef6=_0x2c544e[_0x66f973(0x136)];if(_0x2c544e['childusebed']||!_0x3c9645[_0x66f973(0x12e)])_0x327ef6+=_0x2c544e[_0x66f973(0x133)];const _0x2d28fa=_0x3c9645[_0x66f973(0x12f)]['find'](_0xa5d6cf=>Number(_0xa5d6cf['strCode'])===_0x327ef6);if(!_0x2d28fa)_0x4db9ba=!![];else{let _0x1bf970=_0x2c544e['adultnum']+_0x2c544e[_0x66f973(0x133)]+_0x2c544e[_0x66f973(0x128)];_0x1bf970>_0x2d28fa[_0x66f973(0x135)]&&(_0x4db9ba=!![]);}}_0x3e1a0a[_0x66f973(0x143)](_0x4db9ba);}),_0x1bd339?_0x3e1a0a:_0x3e1a0a[0x0];}function getRoomConfig(_0x53f895){const _0x5d9260=a2_0x5051;let _0x20b328=_0x53f895[_0x5d9260(0x130)](_0x26dd30=>_0x26dd30[_0x5d9260(0x129)]===_0x5d9260(0x13f)),_0x16045e=_0x53f895[_0x5d9260(0x130)](_0x32e3f1=>_0x32e3f1['strCode']===_0x5d9260(0x127));const _0x33d1ed=_0x53f895['some'](_0x431146=>_0x431146[_0x5d9260(0x129)]===_0x5d9260(0x138)),_0x1bd8e0=_0x53f895[_0x5d9260(0x130)](_0x525f9f=>_0x525f9f[_0x5d9260(0x129)]===_0x5d9260(0x12e)),_0x1e87e8=_0x53f895['map'](_0x56e20c=>{const _0x6f1867=_0x5d9260;return{'strCode':_0x56e20c[_0x6f1867(0x129)],'nMaxIn':_0x56e20c[_0x6f1867(0x135)]};});if(_0x16045e){const _0x47d965=_0x53f895[_0x5d9260(0x130)](_0x1106d6=>_0x1106d6[_0x5d9260(0x129)]=='2');_0x16045e=_0x16045e&&_0x47d965;}if(_0x20b328)_0x20b328=_0x20b328&&_0x1bd8e0;return{'childusebed':_0x20b328,'half':_0x16045e,'infant':_0x33d1ed,'child':_0x1bd8e0,'list':_0x1e87e8};}function a2_0x5051(_0x54766e,_0x1435ee){const _0x5d8c8f=a2_0x5d8c();return a2_0x5051=function(_0x505178,_0x3ca494){_0x505178=_0x505178-0x124;let _0x4f63c8=_0x5d8c8f[_0x505178];return _0x4f63c8;},a2_0x5051(_0x54766e,_0x1435ee);}function isRoomPiece(_0x57eafe,_0x2fc1a5){const _0x485ad5=a2_0x5051;return _0x2fc1a5&&_0x57eafe[_0x485ad5(0x136)]===0x1&&_0x57eafe[_0x485ad5(0x133)]===0x0&&_0x57eafe[_0x485ad5(0x128)]===0x0;}function getRoomItemRange(_0x597ab0,_0x367b29,_0x2c2f9f={'child':'兒童','infant':'嬰兒'}){const _0x15e8a2=a2_0x5051;if(!_0x367b29[_0x15e8a2(0x142)])return{'childList':[],'infantList':[]};const _0x3a9fac=Math['max'](..._0x367b29[_0x15e8a2(0x134)](_0x408461=>Number(_0x408461['nMaxIn']))),_0x5e7cd2=_0x3a9fac-_0x597ab0[_0x15e8a2(0x136)]-_0x597ab0[_0x15e8a2(0x128)];let _0x1a89f6=_0x3a9fac-_0x597ab0[_0x15e8a2(0x136)]-_0x597ab0[_0x15e8a2(0x133)];if(_0x1a89f6>0x2)_0x1a89f6=0x2;const _0x1366eb=(_0x2ecfa0,_0x22c3a3)=>{const _0x40f950=_0x15e8a2,_0x18e5bd=[];_0x18e5bd[_0x40f950(0x143)]({'value':0x0,'text':'0\x20'+_0x22c3a3});for(let _0x2b65e5=0x0;_0x2b65e5<_0x2ecfa0;_0x2b65e5++){_0x18e5bd[_0x40f950(0x143)]({'value':_0x2b65e5+0x1,'text':_0x2b65e5+0x1+'\x20'+_0x22c3a3});}return _0x18e5bd;};return{'childList':_0x1366eb(_0x5e7cd2,_0x2c2f9f[_0x15e8a2(0x12e)]),'infantList':_0x1366eb(_0x1a89f6,_0x2c2f9f[_0x15e8a2(0x138)])};}function a2_0x5d8c(){const _0x5e9774=['map','nMaxIn','adultnum','73410EkAeBa','infant','3qvqchR','15524jYAgZu','27ssAlXT','8981cEOmxV','59402CwQcxG','11WirpSn','childusebed','36sRMjzW','forEach','length','push','48jrPxMm','isalotment','23176RfEgBg','336bbTFeq','half','infantnum','strCode','3133xVGTsJ','2903772ZvqiQL','595690nTtaHu','filter','child','list','some','max','isArray','childrennum'];a2_0x5d8c=function(){return _0x5e9774;};return a2_0x5d8c();}function getAdultRange(_0x55d496,_0x541d37='成人'){const _0x5cee7d=a2_0x5051;let _0x47a65f=Math[_0x5cee7d(0x131)](..._0x55d496['map'](_0xe837f0=>Number(_0xe837f0['strCode']))[_0x5cee7d(0x12d)](_0x367a15=>!isNaN(_0x367a15)));if(!_0x47a65f)_0x47a65f=0x4;let _0x33c6c5=[];for(var _0x4d93ab=0x1;_0x4d93ab<_0x47a65f+0x1;_0x4d93ab++){_0x33c6c5[_0x5cee7d(0x143)]({'value':_0x4d93ab,'text':_0x4d93ab+'\x20'+_0x541d37});}return _0x33c6c5;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ (function(_0x5c2bcd,_0x4634ab){const _0x3092e8=a2_0xef44,_0xd73646=_0x5c2bcd();while(!![]){try{const _0x430e0d=parseInt(_0x3092e8(0x193))/0x1+parseInt(_0x3092e8(0x19c))/0x2+-parseInt(_0x3092e8(0x198))/0x3*(-parseInt(_0x3092e8(0x1a6))/0x4)+-parseInt(_0x3092e8(0x1a9))/0x5*(parseInt(_0x3092e8(0x19d))/0x6)+-parseInt(_0x3092e8(0x194))/0x7+parseInt(_0x3092e8(0x192))/0x8+-parseInt(_0x3092e8(0x190))/0x9*(-parseInt(_0x3092e8(0x197))/0xa);if(_0x430e0d===_0x4634ab)break;else _0xd73646['push'](_0xd73646['shift']());}catch(_0x3f7607){_0xd73646['push'](_0xd73646['shift']());}}}(a2_0x3da2,0xb82ec));function getRoomCount(_0x477e1d,_0x20d58a){const _0x4ba6ac=a2_0xef44,_0x54632f=Array[_0x4ba6ac(0x1a2)](_0x477e1d);if(!_0x54632f)_0x477e1d=[_0x477e1d];let _0x5f0b98=[];return _0x477e1d[_0x4ba6ac(0x19b)](_0x5058f5=>{const _0x269319=_0x4ba6ac;let _0x2599c1=![];if(!_0x5058f5[_0x269319(0x1a7)]){let _0x222a38=_0x5058f5[_0x269319(0x19a)];if(_0x5058f5['childUseBed']||!_0x20d58a['child'])_0x222a38+=_0x5058f5['childrenNum'];const _0x3249d7=_0x20d58a['list'][_0x269319(0x1a3)](_0x311a00=>Number(_0x311a00[_0x269319(0x195)])===_0x222a38);if(!_0x3249d7)_0x2599c1=!![];else{let _0x2fe6c0=_0x5058f5[_0x269319(0x19a)]+_0x5058f5['childrenNum']+_0x5058f5['infantNum'];_0x2fe6c0>_0x3249d7['nMaxIn']&&(_0x2599c1=!![]);}}_0x5f0b98[_0x269319(0x1a1)](_0x2599c1);}),_0x54632f?_0x5f0b98:_0x5f0b98[0x0];}function getRoomConfig(_0x170ac5){const _0x1c5cf7=a2_0xef44;let _0x4d12a0=_0x170ac5[_0x1c5cf7(0x191)](_0x1b56a6=>_0x1b56a6[_0x1c5cf7(0x195)]===_0x1c5cf7(0x1a5)),_0x1bae95=_0x170ac5[_0x1c5cf7(0x191)](_0x2e4593=>_0x2e4593[_0x1c5cf7(0x195)]==='isAlotment');const _0x54b98f=_0x170ac5[_0x1c5cf7(0x191)](_0x26f11e=>_0x26f11e[_0x1c5cf7(0x195)]==='infant'),_0x9f8260=_0x170ac5[_0x1c5cf7(0x191)](_0xb3a444=>_0xb3a444['strCode']==='child'),_0x563f7a=_0x170ac5[_0x1c5cf7(0x1a0)](_0x1f1cdf=>{const _0x80a618=_0x1c5cf7;return{'strCode':_0x1f1cdf[_0x80a618(0x195)],'nMaxIn':_0x1f1cdf['nMaxIn']};});if(_0x1bae95){const _0x1432ef=_0x170ac5['some'](_0x3c77f3=>_0x3c77f3[_0x1c5cf7(0x195)]=='2');_0x1bae95=_0x1bae95&&_0x1432ef;}if(_0x4d12a0)_0x4d12a0=_0x4d12a0&&_0x9f8260;return{'childUseBed':_0x4d12a0,'isAlotment':_0x1bae95,'infant':_0x54b98f,'child':_0x9f8260,'list':_0x563f7a};}function isRoomPiece(_0x4022e4,_0x58ab9a){const _0x34d631=a2_0xef44;return _0x58ab9a&&_0x4022e4[_0x34d631(0x19a)]===0x1&&_0x4022e4[_0x34d631(0x1aa)]===0x0&&_0x4022e4[_0x34d631(0x19f)]===0x0;}function getRoomItemRange(_0x26c545,_0x538654,_0x4b347b={'child':'儿童','infant':'婴儿'}){const _0x20b72e=a2_0xef44;if(!_0x538654[_0x20b72e(0x19e)])return{'childList':[],'infantList':[]};const _0x4d3d76=Math[_0x20b72e(0x196)](..._0x538654[_0x20b72e(0x1a0)](_0x310054=>Number(_0x310054[_0x20b72e(0x1a8)]))),_0x585696=_0x4d3d76-_0x26c545[_0x20b72e(0x19a)]-_0x26c545['infantNum'];let _0x4361c8=_0x4d3d76-_0x26c545['adultNum']-_0x26c545['childrenNum'];if(_0x4361c8>0x2)_0x4361c8=0x2;const _0x58d668=(_0xc551f,_0x286725)=>{const _0x354901=[];_0x354901['push']({'value':0x0,'label':'0\x20'+_0x286725});for(let _0x3761f3=0x0;_0x3761f3<_0xc551f;_0x3761f3++){_0x354901['push']({'value':_0x3761f3+0x1,'label':''+(_0x3761f3+0x1)+_0x286725});}return _0x354901;};return{'childList':_0x58d668(_0x585696,_0x4b347b['child']),'infantList':_0x58d668(_0x4361c8,_0x4b347b[_0x20b72e(0x199)])};}function a2_0x3da2(){const _0x3aa212=['some','10938416cnHnws','200751ajSwnB','9140376gtoYgX','strCode','max','1170ZemcHp','6sYXOSB','infant','adultNum','forEach','1271336SFCNvQ','51396CoTjQZ','length','infantNum','map','push','isArray','find','reduce','childUseBed','476124RZfuSA','isalotment','nMaxIn','645Ioijsj','childrenNum','55647cbitxo'];a2_0x3da2=function(){return _0x3aa212;};return a2_0x3da2();}function getAdultRange(_0x1be82b,_0x1c9a33='成人'){const _0x1c2c8d=a2_0xef44;let _0x1a785f=Math[_0x1c2c8d(0x196)](..._0x1be82b[_0x1c2c8d(0x1a0)](_0x4d51a1=>Number(_0x4d51a1[_0x1c2c8d(0x195)]))['filter'](_0x5bf4c8=>!isNaN(_0x5bf4c8)));if(!_0x1a785f)_0x1a785f=0x4;let _0x266af8=[];for(var _0x2c6894=0x1;_0x2c6894<_0x1a785f+0x1;_0x2c6894++){_0x266af8['push']({'value':_0x2c6894,'label':''+_0x2c6894+_0x1c9a33});}return _0x266af8;}const getTotalPeople=_0x82918d=>{const _0x4ff6a0=a2_0xef44,_0x174ba0=_0x82918d[_0x4ff6a0(0x1a4)]((_0x2443a2,_0x336618)=>{const _0x2dd9f8=_0x4ff6a0;return _0x2443a2+(_0x336618['adultNum']||0x0)+(_0x336618[_0x2dd9f8(0x1aa)]||0x0)+(_0x336618[_0x2dd9f8(0x19f)]||0x0);},0x0);return _0x174ba0;};function a2_0xef44(_0x5f1334,_0x5e085e){const _0x3da213=a2_0x3da2();return a2_0xef44=function(_0xef44a7,_0x55cc71){_0xef44a7=_0xef44a7-0x190;let _0x56e7de=_0x3da213[_0xef44a7];return _0x56e7de;},a2_0xef44(_0x5f1334,_0x5e085e);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
@@ -0,0 +1 @@
1
+ function a3_0x3090(){const _0x560d5c=['childrennum','adultnum','878176gKjJPq','4EcMRCq','forEach','655986BkCjZz','nMaxIn','find','some','half','childusebed','max','strCode','isalotment','12DeAlyP','infant','length','35452roIbgI','1257326ZqwHgu','map','reduce','push','infantnum','761950mbPXyv','42663rwbIcP','1044414oGGKnI','child'];a3_0x3090=function(){return _0x560d5c;};return a3_0x3090();}(function(_0x11ac6d,_0x2c1884){const _0x698c54=a3_0xf2e8,_0x325b2f=_0x11ac6d();while(!![]){try{const _0x2146a6=-parseInt(_0x698c54(0x88))/0x1*(-parseInt(_0x698c54(0x7b))/0x2)+parseInt(_0x698c54(0x82))/0x3*(-parseInt(_0x698c54(0x78))/0x4)+parseInt(_0x698c54(0x81))/0x5+parseInt(_0x698c54(0x8a))/0x6+-parseInt(_0x698c54(0x7c))/0x7+parseInt(_0x698c54(0x87))/0x8+-parseInt(_0x698c54(0x83))/0x9;if(_0x2146a6===_0x2c1884)break;else _0x325b2f['push'](_0x325b2f['shift']());}catch(_0xe8e31d){_0x325b2f['push'](_0x325b2f['shift']());}}}(a3_0x3090,0x19686));function getRoomCount(_0x35444b,_0x3fb976){const _0x98011a=a3_0xf2e8,_0x516e3a=Array['isArray'](_0x35444b);if(!_0x516e3a)_0x35444b=[_0x35444b];let _0x1d90da=[];return _0x35444b[_0x98011a(0x89)](_0x3619e6=>{const _0x5747e9=_0x98011a;let _0x3c24c3=![];if(!_0x3619e6[_0x5747e9(0x77)]){let _0x5e9480=_0x3619e6['adultnum'];if(_0x3619e6[_0x5747e9(0x74)]||!_0x3fb976[_0x5747e9(0x84)])_0x5e9480+=_0x3619e6[_0x5747e9(0x85)];const _0x3b3100=_0x3fb976['list'][_0x5747e9(0x71)](_0x566c6f=>Number(_0x566c6f[_0x5747e9(0x76)])===_0x5e9480);if(!_0x3b3100)_0x3c24c3=!![];else{let _0x4b0b9c=_0x3619e6['adultnum']+_0x3619e6[_0x5747e9(0x85)]+_0x3619e6[_0x5747e9(0x80)];_0x4b0b9c>_0x3b3100[_0x5747e9(0x70)]&&(_0x3c24c3=!![]);}}_0x1d90da[_0x5747e9(0x7f)](_0x3c24c3);}),_0x516e3a?_0x1d90da:_0x1d90da[0x0];}function getRoomConfig(_0x44389d){const _0x58f078=a3_0xf2e8;let _0x11f57c=_0x44389d[_0x58f078(0x72)](_0x39f92f=>_0x39f92f['strCode']===_0x58f078(0x74)),_0x2d6605=_0x44389d[_0x58f078(0x72)](_0x332f57=>_0x332f57[_0x58f078(0x76)]===_0x58f078(0x73));const _0x550b1f=_0x44389d['some'](_0x295abb=>_0x295abb['strCode']===_0x58f078(0x79)),_0x50cd29=_0x44389d['some'](_0x23e3fb=>_0x23e3fb['strCode']===_0x58f078(0x84)),_0x2fedb5=_0x44389d[_0x58f078(0x7d)](_0x11e3fb=>{const _0x5e3554=_0x58f078;return{'strCode':_0x11e3fb[_0x5e3554(0x76)],'nMaxIn':_0x11e3fb[_0x5e3554(0x70)]};});if(_0x2d6605){const _0x42ba77=_0x44389d['some'](_0x47c4e5=>_0x47c4e5[_0x58f078(0x76)]=='2');_0x2d6605=_0x2d6605&&_0x42ba77;}if(_0x11f57c)_0x11f57c=_0x11f57c&&_0x50cd29;return{'childusebed':_0x11f57c,'half':_0x2d6605,'infant':_0x550b1f,'child':_0x50cd29,'list':_0x2fedb5};}function isRoomPiece(_0x5bf581,_0x52f89f){const _0x10e7e0=a3_0xf2e8;return _0x52f89f&&_0x5bf581[_0x10e7e0(0x86)]===0x1&&_0x5bf581[_0x10e7e0(0x85)]===0x0&&_0x5bf581[_0x10e7e0(0x80)]===0x0;}function getRoomItemRange(_0x36c4e1,_0xb08f74,_0x3a89e6={'child':'儿童','infant':'婴儿'}){const _0x2df5f1=a3_0xf2e8;if(!_0xb08f74[_0x2df5f1(0x7a)])return{'childList':[],'infantList':[]};const _0xc4a7fb=Math[_0x2df5f1(0x75)](..._0xb08f74['map'](_0x22d0e4=>Number(_0x22d0e4[_0x2df5f1(0x70)]))),_0x45c5bb=_0xc4a7fb-_0x36c4e1[_0x2df5f1(0x86)]-_0x36c4e1[_0x2df5f1(0x80)];let _0x16a592=_0xc4a7fb-_0x36c4e1['adultnum']-_0x36c4e1[_0x2df5f1(0x85)];if(_0x16a592>0x2)_0x16a592=0x2;const _0x1bedad=(_0x3f0ecf,_0x2388df)=>{const _0x31b3d5=_0x2df5f1,_0x53439c=[];_0x53439c['push']({'value':0x0,'label':'0\x20'+_0x2388df});for(let _0xf7c581=0x0;_0xf7c581<_0x3f0ecf;_0xf7c581++){_0x53439c[_0x31b3d5(0x7f)]({'value':_0xf7c581+0x1,'label':''+(_0xf7c581+0x1)+_0x2388df});}return _0x53439c;};return{'childList':_0x1bedad(_0x45c5bb,_0x3a89e6['child']),'infantList':_0x1bedad(_0x16a592,_0x3a89e6[_0x2df5f1(0x79)])};}function a3_0xf2e8(_0x3cda27,_0x197601){const _0x309019=a3_0x3090();return a3_0xf2e8=function(_0xf2e811,_0x9f4b7a){_0xf2e811=_0xf2e811-0x70;let _0x39d356=_0x309019[_0xf2e811];return _0x39d356;},a3_0xf2e8(_0x3cda27,_0x197601);}function getAdultRange(_0x49333d,_0x1c3fa1='成人'){const _0x22bb8a=a3_0xf2e8;let _0x12aea1=Math[_0x22bb8a(0x75)](..._0x49333d[_0x22bb8a(0x7d)](_0x256823=>Number(_0x256823[_0x22bb8a(0x76)]))['filter'](_0x4e8cb5=>!isNaN(_0x4e8cb5)));if(!_0x12aea1)_0x12aea1=0x4;let _0x3f2422=[];for(var _0x43c4fe=0x1;_0x43c4fe<_0x12aea1+0x1;_0x43c4fe++){_0x3f2422[_0x22bb8a(0x7f)]({'value':_0x43c4fe,'label':''+_0x43c4fe+_0x1c3fa1});}return _0x3f2422;}const getTotalPeople=_0x4d310b=>{const _0x3ab86d=a3_0xf2e8,_0x2a2925=_0x4d310b[_0x3ab86d(0x7e)]((_0x4709b3,_0x2b7402)=>{const _0x498b30=_0x3ab86d;return _0x4709b3+(_0x2b7402[_0x498b30(0x86)]||0x0)+(_0x2b7402[_0x498b30(0x85)]||0x0)+(_0x2b7402['infantnum']||0x0);},0x0);return _0x2a2925;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x203877,_0x146eb3){const _0x5e633e=a3_0x5cb3,_0x181541=_0x203877();while(!![]){try{const _0x19b7d0=-parseInt(_0x5e633e(0x108))/0x1+parseInt(_0x5e633e(0x102))/0x2+-parseInt(_0x5e633e(0x115))/0x3+parseInt(_0x5e633e(0xf9))/0x4*(-parseInt(_0x5e633e(0x10e))/0x5)+-parseInt(_0x5e633e(0x10b))/0x6*(-parseInt(_0x5e633e(0xfc))/0x7)+parseInt(_0x5e633e(0x101))/0x8*(parseInt(_0x5e633e(0xf7))/0x9)+-parseInt(_0x5e633e(0x114))/0xa*(parseInt(_0x5e633e(0xfa))/0xb);if(_0x19b7d0===_0x146eb3)break;else _0x181541['push'](_0x181541['shift']());}catch(_0x5f2ac8){_0x181541['push'](_0x181541['shift']());}}}(a3_0x5af5,0x89bbe));function email(_0x4ad840){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x4ad840);}function mobile(_0x4ebff0){const _0x51981e=a3_0x5cb3;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x51981e(0xf8)](_0x4ebff0);}function isValidPhoneNumber(_0x44eb22){const _0x5ee896=a3_0x5cb3;if(_0x44eb22[_0x5ee896(0x112)]('-')){const [_0x27e7c7,_0x3f42cc]=_0x44eb22[_0x5ee896(0xf5)]('-');if(_0x27e7c7==='86')return/^\d{11}$/['test'](_0x3f42cc)&&_0x3f42cc[_0x5ee896(0x107)]('1');else return _0x27e7c7===_0x5ee896(0x105)?/^\d{8}$/[_0x5ee896(0xf8)](_0x3f42cc)&&['5','6','9','8'][_0x5ee896(0x112)](_0x3f42cc[_0x5ee896(0x104)](0x0)):/^\d+$/[_0x5ee896(0xf8)](_0x3f42cc);}else return/^\d+$/[_0x5ee896(0xf8)](_0x44eb22);}function url(_0x5dbc12){const _0x4517fb=a3_0x5cb3;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4517fb(0xf8)](_0x5dbc12);}function a3_0x5af5(){const _0x2bc251=['18MPWqQg','test','2675716yubiFf','7117MpOzWR','isArray','357jvPApE','[object\x20RegExp]','length','string','parse','2917976SXdPTw','1051630vIrrwZ','number','charAt','852','indexOf','startsWith','186078DRsroE','function','^\x5cd{','115212ImbMeP','[object\x20Object]','replace','5yvAnuY','[object\x20Array]','toString','object','includes','undefined','3030mEJEeN','1858215jEBlVo','prototype','split','call'];a3_0x5af5=function(){return _0x2bc251;};return a3_0x5af5();}function date(_0x30da88){const _0x1544f4=a3_0x5cb3;if(!_0x30da88)return![];if(number(_0x30da88))_0x30da88=+_0x30da88;return!/Invalid|NaN/[_0x1544f4(0xf8)](new Date(_0x30da88)['toString']());}function dateISO(_0x2c348b){const _0x109b1a=a3_0x5cb3;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x109b1a(0xf8)](_0x2c348b);}function isNumber(_0x4c3a13){const _0x56a7d3=a3_0x5cb3;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x56a7d3(0xf8)](_0x4c3a13);}function isString(_0xda3b23){const _0x1c6bdc=a3_0x5cb3;return typeof _0xda3b23===_0x1c6bdc(0xff);}function digits(_0x14f1da){const _0x42d928=a3_0x5cb3;return/^\d+$/[_0x42d928(0xf8)](_0x14f1da);}function idCard(_0x440e5d){const _0x23383b=a3_0x5cb3;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)$/[_0x23383b(0xf8)](_0x440e5d);}function carNo(_0x1a7a0c){const _0x2dc1e4=a3_0x5cb3,_0x47f754=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x57498f=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x1a7a0c['length']===0x7)return _0x57498f[_0x2dc1e4(0xf8)](_0x1a7a0c);if(_0x1a7a0c[_0x2dc1e4(0xfe)]===0x8)return _0x47f754[_0x2dc1e4(0xf8)](_0x1a7a0c);return![];}function amount(_0x4165ad){const _0x4dd381=a3_0x5cb3;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x4dd381(0xf8)](_0x4165ad);}function chinese(_0x177fda){const _0x90f1b8=a3_0x5cb3,_0x5024cd=/^[\u4e00-\u9fa5]+$/gi;return _0x5024cd[_0x90f1b8(0xf8)](_0x177fda);}function letter(_0x30adbb){return/^[a-zA-Z]*$/['test'](_0x30adbb);}function a3_0x5cb3(_0x4dd89d,_0x14ad3b){const _0x5af525=a3_0x5af5();return a3_0x5cb3=function(_0x5cb336,_0x514b53){_0x5cb336=_0x5cb336-0xf5;let _0x48cee3=_0x5af525[_0x5cb336];return _0x48cee3;},a3_0x5cb3(_0x4dd89d,_0x14ad3b);}function enOrNum(_0x19afbe){const _0x4a63da=/^[0-9a-zA-Z]*$/g;return _0x4a63da['test'](_0x19afbe);}function contains(_0x346be5,_0x5bbd47){const _0x3a4a5f=a3_0x5cb3;return _0x346be5[_0x3a4a5f(0x106)](_0x5bbd47)>=0x0;}function range(_0x155b61,_0x4e7b21){return _0x155b61>=_0x4e7b21[0x0]&&_0x155b61<=_0x4e7b21[0x1];}function rangeLength(_0x384e56,_0xe59a17){const _0x437b69=a3_0x5cb3;return _0x384e56[_0x437b69(0xfe)]>=_0xe59a17[0x0]&&_0x384e56[_0x437b69(0xfe)]<=_0xe59a17[0x1];}function landline(_0x1673e0){const _0x120f2b=a3_0x5cb3,_0x4cf7cf=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4cf7cf[_0x120f2b(0xf8)](_0x1673e0);}function empty(_0x2925c2){const _0x393853=a3_0x5cb3;switch(typeof _0x2925c2){case _0x393853(0x113):return!![];case'string':if(_0x2925c2[_0x393853(0x10d)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x393853(0xfe)]==0x0)return!![];break;case'boolean':if(!_0x2925c2)return!![];break;case _0x393853(0x103):if(_0x2925c2===0x0||isNaN(_0x2925c2))return!![];break;case _0x393853(0x111):if(_0x2925c2===null||_0x2925c2[_0x393853(0xfe)]===0x0)return!![];for(const _0x50cf68 in _0x2925c2){return![];}return!![];}return![];}function jsonString(_0x4f1bee){const _0x131753=a3_0x5cb3;if(typeof _0x4f1bee===_0x131753(0xff))try{const _0x2ee709=JSON[_0x131753(0x100)](_0x4f1bee);if(typeof _0x2ee709===_0x131753(0x111)&&_0x2ee709)return!![];return![];}catch(_0x37bdb4){return![];}return![];}function array(_0x12259c){const _0x337716=a3_0x5cb3;if(typeof Array[_0x337716(0xfb)]===_0x337716(0x109))return Array['isArray'](_0x12259c);return Object['prototype'][_0x337716(0x110)][_0x337716(0xf6)](_0x12259c)===_0x337716(0x10f);}function object(_0x37b84a){const _0x34c824=a3_0x5cb3;return Object['prototype'][_0x34c824(0x110)][_0x34c824(0xf6)](_0x37b84a)===_0x34c824(0x10c);}function code(_0x357046,_0x52abc0=0x6){const _0x13ff2a=a3_0x5cb3;return new RegExp(_0x13ff2a(0x10a)+_0x52abc0+'}$')[_0x13ff2a(0xf8)](_0x357046);}function func(_0x2918c7){const _0x3593b9=a3_0x5cb3;return typeof _0x2918c7===_0x3593b9(0x109);}function promise(_0xe9bb9d){return object(_0xe9bb9d)&&func(_0xe9bb9d['then'])&&func(_0xe9bb9d['catch']);}function image(_0x5daad7){const _0x256e69=a3_0x5cb3,_0x1a98c2=_0x5daad7['split']('?')[0x0],_0x431bc5=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x431bc5[_0x256e69(0xf8)](_0x1a98c2);}function video(_0x21b4fa){const _0x28ef3f=a3_0x5cb3,_0x349ada=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x349ada[_0x28ef3f(0xf8)](_0x21b4fa);}function regExp(_0x1c9ee2){const _0x1af0b6=a3_0x5cb3;return _0x1c9ee2&&Object[_0x1af0b6(0x116)][_0x1af0b6(0x110)][_0x1af0b6(0xf6)](_0x1c9ee2)===_0x1af0b6(0xfd);}function isNumeric(_0x4eb3a0,_0x2549d6=0x0){const _0x124cbe=a3_0x5cb3;if(typeof _0x4eb3a0===_0x124cbe(0x103))_0x4eb3a0=_0x4eb3a0[_0x124cbe(0x110)]();if(typeof _0x4eb3a0!==_0x124cbe(0xff))return![];switch(_0x2549d6){case 0x1:return/^\d+(\.\d+)?$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x2:return/^-\d+(\.\d+)?$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x3:return/^-?\d+$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x4:return/^\d+$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x5:return/^-\d+$/[_0x124cbe(0xf8)](_0x4eb3a0);default:return/^-?\d*\.?\d*$/[_0x124cbe(0xf8)](_0x4eb3a0)&&!_0x4eb3a0[_0x124cbe(0x107)]('.')&&!_0x4eb3a0[_0x124cbe(0x112)]('--');}}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};
1
+ (function(_0x19deb0,_0x37e1d4){const _0x37a98c=a4_0x505f,_0xc532d1=_0x19deb0();while(!![]){try{const _0x5e1ead=parseInt(_0x37a98c(0x1fe))/0x1+parseInt(_0x37a98c(0x205))/0x2*(parseInt(_0x37a98c(0x203))/0x3)+parseInt(_0x37a98c(0x1fa))/0x4+-parseInt(_0x37a98c(0x1fb))/0x5+-parseInt(_0x37a98c(0x1f7))/0x6+-parseInt(_0x37a98c(0x20b))/0x7*(parseInt(_0x37a98c(0x208))/0x8)+-parseInt(_0x37a98c(0x1f1))/0x9;if(_0x5e1ead===_0x37e1d4)break;else _0xc532d1['push'](_0xc532d1['shift']());}catch(_0x39dc08){_0xc532d1['push'](_0xc532d1['shift']());}}}(a4_0xd400,0x6a384));function email(_0x228318){const _0x5f5218=a4_0x505f;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5f5218(0x1f6)](_0x228318);}function mobile(_0x5e9ee2){const _0x45be9f=a4_0x505f;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x45be9f(0x1f6)](_0x5e9ee2);}function isValidPhoneNumber(_0x4f3fd0){const _0xfc20f4=a4_0x505f;if(_0x4f3fd0[_0xfc20f4(0x1f4)]('-')){const [_0x2e1cb6,_0x5011b5]=_0x4f3fd0[_0xfc20f4(0x202)]('-');if(_0x2e1cb6==='86')return/^\d{11}$/[_0xfc20f4(0x1f6)](_0x5011b5)&&_0x5011b5[_0xfc20f4(0x1fc)]('1');else return _0x2e1cb6===_0xfc20f4(0x1ff)?/^\d{8}$/['test'](_0x5011b5)&&['5','6','9','8'][_0xfc20f4(0x1f4)](_0x5011b5['charAt'](0x0)):/^\d+$/['test'](_0x5011b5);}else return/^\d+$/[_0xfc20f4(0x1f6)](_0x4f3fd0);}function url(_0x1d5eed){const _0x4d3957=a4_0x505f;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4d3957(0x1f6)](_0x1d5eed);}function date(_0x2eace8){const _0xc855cf=a4_0x505f;if(!_0x2eace8)return![];if(number(_0x2eace8))_0x2eace8=+_0x2eace8;return!/Invalid|NaN/[_0xc855cf(0x1f6)](new Date(_0x2eace8)['toString']());}function dateISO(_0x1b060b){const _0x38703d=a4_0x505f;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x38703d(0x1f6)](_0x1b060b);}function isNumber(_0x452949){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x452949);}function isString(_0x3a7128){return typeof _0x3a7128==='string';}function digits(_0x49f9f5){const _0x4f4cee=a4_0x505f;return/^\d+$/[_0x4f4cee(0x1f6)](_0x49f9f5);}function idCard(_0x158565){const _0x24e956=a4_0x505f;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)$/[_0x24e956(0x1f6)](_0x158565);}function carNo(_0x97554f){const _0x724058=a4_0x505f,_0x2ccc8a=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x32b994=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x97554f[_0x724058(0x1f0)]===0x7)return _0x32b994[_0x724058(0x1f6)](_0x97554f);if(_0x97554f['length']===0x8)return _0x2ccc8a[_0x724058(0x1f6)](_0x97554f);return![];}function amount(_0x2bdb61){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x2bdb61);}function chinese(_0xb4744e){const _0x4e8a14=a4_0x505f,_0x595029=/^[\u4e00-\u9fa5]+$/gi;return _0x595029[_0x4e8a14(0x1f6)](_0xb4744e);}function letter(_0x2dfc42){const _0x22cb60=a4_0x505f;return/^[a-zA-Z]*$/[_0x22cb60(0x1f6)](_0x2dfc42);}function a4_0xd400(){const _0x3e2bbc=['2637550FBvbFf','startsWith','function','653526JSqtQE','852','string','toString','split','2172slZoGv','catch','1198feZhnc','[object\x20Array]','^\x5cd{','99040LxhrmN','[object\x20RegExp]','object','91nbOOft','then','call','length','1350531eiYddT','boolean','isArray','includes','indexOf','test','227718yxqWvg','parse','undefined','897344vvDWsY'];a4_0xd400=function(){return _0x3e2bbc;};return a4_0xd400();}function enOrNum(_0x44578f){const _0x26abc5=a4_0x505f,_0x242281=/^[0-9a-zA-Z]*$/g;return _0x242281[_0x26abc5(0x1f6)](_0x44578f);}function contains(_0x26568d,_0x20a4b4){const _0x167351=a4_0x505f;return _0x26568d[_0x167351(0x1f5)](_0x20a4b4)>=0x0;}function range(_0x4c476a,_0x5889a2){return _0x4c476a>=_0x5889a2[0x0]&&_0x4c476a<=_0x5889a2[0x1];}function rangeLength(_0x884a0c,_0x218ba5){const _0x58dd20=a4_0x505f;return _0x884a0c[_0x58dd20(0x1f0)]>=_0x218ba5[0x0]&&_0x884a0c[_0x58dd20(0x1f0)]<=_0x218ba5[0x1];}function landline(_0x22336b){const _0x276634=a4_0x505f,_0x3f1fbe=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3f1fbe[_0x276634(0x1f6)](_0x22336b);}function empty(_0x3fd2c1){const _0x369454=a4_0x505f;switch(typeof _0x3fd2c1){case _0x369454(0x1f9):return!![];case _0x369454(0x200):if(_0x3fd2c1['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x369454(0x1f0)]==0x0)return!![];break;case _0x369454(0x1f2):if(!_0x3fd2c1)return!![];break;case'number':if(_0x3fd2c1===0x0||isNaN(_0x3fd2c1))return!![];break;case _0x369454(0x20a):if(_0x3fd2c1===null||_0x3fd2c1[_0x369454(0x1f0)]===0x0)return!![];for(const _0x2a1b68 in _0x3fd2c1){return![];}return!![];}return![];}function jsonString(_0x1111a0){const _0x449004=a4_0x505f;if(typeof _0x1111a0==='string')try{const _0x160cd0=JSON[_0x449004(0x1f8)](_0x1111a0);if(typeof _0x160cd0===_0x449004(0x20a)&&_0x160cd0)return!![];return![];}catch(_0x2ddcdc){return![];}return![];}function array(_0x3a3399){const _0x23290b=a4_0x505f;if(typeof Array[_0x23290b(0x1f3)]==='function')return Array[_0x23290b(0x1f3)](_0x3a3399);return Object['prototype'][_0x23290b(0x201)][_0x23290b(0x1ef)](_0x3a3399)===_0x23290b(0x206);}function object(_0x47de6e){const _0x2609fd=a4_0x505f;return Object['prototype']['toString'][_0x2609fd(0x1ef)](_0x47de6e)==='[object\x20Object]';}function code(_0x402fe0,_0x1d6194=0x6){const _0x310a97=a4_0x505f;return new RegExp(_0x310a97(0x207)+_0x1d6194+'}$')[_0x310a97(0x1f6)](_0x402fe0);}function a4_0x505f(_0x174778,_0x4405b8){const _0xd40017=a4_0xd400();return a4_0x505f=function(_0x505f2a,_0x44ba9a){_0x505f2a=_0x505f2a-0x1ef;let _0x1c2a22=_0xd40017[_0x505f2a];return _0x1c2a22;},a4_0x505f(_0x174778,_0x4405b8);}function func(_0x5dfcf9){const _0x5b818d=a4_0x505f;return typeof _0x5dfcf9===_0x5b818d(0x1fd);}function promise(_0x19bfae){const _0x5201a1=a4_0x505f;return object(_0x19bfae)&&func(_0x19bfae[_0x5201a1(0x20c)])&&func(_0x19bfae[_0x5201a1(0x204)]);}function image(_0x5f3e52){const _0x4bc024=a4_0x505f,_0x5b21de=_0x5f3e52[_0x4bc024(0x202)]('?')[0x0],_0x514bd0=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x514bd0[_0x4bc024(0x1f6)](_0x5b21de);}function video(_0x56ddb6){const _0x31e680=a4_0x505f,_0x3c82e4=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x3c82e4[_0x31e680(0x1f6)](_0x56ddb6);}function regExp(_0x1ed502){const _0x3813f2=a4_0x505f;return _0x1ed502&&Object['prototype'][_0x3813f2(0x201)]['call'](_0x1ed502)===_0x3813f2(0x209);}function isNumeric(_0x3b5097,_0x8fd58c=0x0){const _0xa730eb=a4_0x505f;if(typeof _0x3b5097==='number')_0x3b5097=_0x3b5097[_0xa730eb(0x201)]();if(typeof _0x3b5097!==_0xa730eb(0x200))return![];switch(_0x8fd58c){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x3b5097);case 0x2:return/^-\d+(\.\d+)?$/[_0xa730eb(0x1f6)](_0x3b5097);case 0x3:return/^-?\d+$/[_0xa730eb(0x1f6)](_0x3b5097);case 0x4:return/^\d+$/[_0xa730eb(0x1f6)](_0x3b5097);case 0x5:return/^-\d+$/['test'](_0x3b5097);default:return/^-?\d*\.?\d*$/[_0xa730eb(0x1f6)](_0x3b5097)&&!_0x3b5097['startsWith']('.')&&!_0x3b5097[_0xa730eb(0x1f4)]('--');}}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_0x3438a6=a4_0x4f7a;(function(_0x5a91aa,_0x225f34){const _0x4da4ab=a4_0x4f7a,_0x34b529=_0x5a91aa();while(!![]){try{const _0x38d0de=-parseInt(_0x4da4ab(0x1f1))/0x1*(-parseInt(_0x4da4ab(0x1fb))/0x2)+-parseInt(_0x4da4ab(0x20f))/0x3+-parseInt(_0x4da4ab(0x1ff))/0x4+-parseInt(_0x4da4ab(0x21e))/0x5*(-parseInt(_0x4da4ab(0x1e7))/0x6)+parseInt(_0x4da4ab(0x1f8))/0x7*(-parseInt(_0x4da4ab(0x211))/0x8)+-parseInt(_0x4da4ab(0x1f7))/0x9+parseInt(_0x4da4ab(0x21a))/0xa*(parseInt(_0x4da4ab(0x203))/0xb);if(_0x38d0de===_0x225f34)break;else _0x34b529['push'](_0x34b529['shift']());}catch(_0x32d192){_0x34b529['push'](_0x34b529['shift']());}}}(a4_0x116c,0xb5571));function fmtNum(_0x261d45){const _0x28244f=a4_0x4f7a;if(_0x261d45==0x0)return'0';if(!_0x261d45)return'';let _0x1bc0c3=typeof _0x261d45===_0x28244f(0x209)?parseFloat(_0x261d45):_0x261d45;if(isNaN(_0x1bc0c3))return'';return _0x1bc0c3['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function a4_0x116c(){const _0x20b8c5=['substring','getTime','getHours','375976cKLQgJ','random','number','_qh','abs','split','9348849KxxWGU','707OtfuZs','includes','getSeconds','2rKXcdb','length','YYYY','padStart','201688cwkjwP','surname','push','prototype','7843QJDwIB','exec','dayTitle','YYYY-MM-DD','shift','fjbh','string','trim','floor','both','getFullYear','function','987756sIfHlI','slice','88904NzKzHe','givenName','toString','toFixed','map','error','join','round','call','28350xYLtog','boolean','hasOwnProperty','value','10BBcSpD','match','stringify','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getDate','getMonth','replace','无效的操作符,操作符应为1、2、3或4','object','2658858CGxTbZ','setDate','isArray','Quantity\x20should\x20be\x20greater\x20than\x200.','left','label','forEach'];a4_0x116c=function(){return _0x20b8c5;};return a4_0x116c();}function splitName(_0x47b8a0,_0x221561=![]){const _0x1e9ed9=a4_0x4f7a;let _0xfb86a0={'surname':'','givenName':''};if(_0x221561){const _0x3ba229=_0x47b8a0[_0x1e9ed9(0x1f9)](',')?_0x47b8a0[_0x1e9ed9(0x1f6)](','):_0x47b8a0[_0x1e9ed9(0x1f6)](/\s+/);_0x3ba229[_0x1e9ed9(0x1fc)]>=0x2&&(_0xfb86a0[_0x1e9ed9(0x200)]=_0x3ba229[0x0]['trim'](),_0xfb86a0[_0x1e9ed9(0x212)]=_0x3ba229[0x1][_0x1e9ed9(0x20a)]());}else{const _0x4351b1=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x53c1f2=0x0;_0x53c1f2<_0x4351b1[_0x1e9ed9(0x1fc)];_0x53c1f2++){const _0x128a4e=_0x4351b1[_0x53c1f2];if(_0x47b8a0['startsWith'](_0x128a4e))return _0xfb86a0[_0x1e9ed9(0x200)]=_0x128a4e,_0xfb86a0[_0x1e9ed9(0x212)]=_0x47b8a0[_0x1e9ed9(0x1ee)](_0x128a4e[_0x1e9ed9(0x1fc)])[_0x1e9ed9(0x20a)](),_0xfb86a0;}const _0x323b7d=_0x47b8a0[_0x1e9ed9(0x1f6)]('\x20');if(_0x323b7d['length']===0x1){const _0x422ca5=_0x47b8a0[_0x1e9ed9(0x21f)](/[\u4e00-\u9fa5]/);_0xfb86a0[_0x1e9ed9(0x200)]=_0x422ca5?_0x422ca5[0x0]:'',_0xfb86a0[_0x1e9ed9(0x212)]=_0x47b8a0[_0x1e9ed9(0x1e4)](_0xfb86a0['surname'],'')[_0x1e9ed9(0x20a)]();}else _0xfb86a0[_0x1e9ed9(0x200)]=_0x323b7d[0x0],_0xfb86a0[_0x1e9ed9(0x212)]=_0x323b7d[_0x1e9ed9(0x210)](0x1)[_0x1e9ed9(0x217)]('\x20');}return _0xfb86a0;}function modifyKeys(_0x11b6ec,_0x26b420={'strCode':'code','strFjbh':a4_0x3438a6(0x208),'strGuid':a4_0x3438a6(0x21d),'strValue':a4_0x3438a6(0x1ec)}){const _0x39e5ca=a4_0x3438a6;if(!_0x11b6ec['length']||_0x11b6ec===null)return[];const _0x33ee5c=_0x11b6ec[_0x39e5ca(0x215)](_0x5b3f5d=>{const _0x2f1098=_0x39e5ca,_0x51e2af={};for(const _0x2f0d36 in _0x5b3f5d){_0x26b420[_0x2f1098(0x21c)](_0x2f0d36)?_0x51e2af[_0x26b420[_0x2f0d36]]=_0x5b3f5d[_0x2f0d36]:_0x51e2af[_0x2f0d36]=_0x5b3f5d[_0x2f0d36];}return _0x51e2af;});return _0x33ee5c;}function sliceArray(_0x3f65fc,_0x35d5aa,_0x45ac22){const _0x1568ae=a4_0x3438a6;if(_0x35d5aa<=0x0)return console[_0x1568ae(0x216)](_0x1568ae(0x1ea)),[];return _0x45ac22?_0x3f65fc[_0x1568ae(0x210)](0x0,_0x35d5aa):_0x3f65fc[_0x1568ae(0x210)](-_0x35d5aa);}function findDataByData(_0x377bda,_0x56a2cb,_0x34d43c){const _0x2d476c=_0x377bda['find'](_0x3dcc6a=>_0x3dcc6a[_0x34d43c]===_0x56a2cb);return _0x2d476c||null;}function splitArray(_0x4cbfba,_0xe08f9e){const _0x29a5d8=a4_0x3438a6,_0x2c77a5=[];for(let _0x58ba05=0x0;_0x58ba05<_0x4cbfba['length'];_0x58ba05+=_0xe08f9e){_0x2c77a5[_0x29a5d8(0x201)](_0x4cbfba[_0x29a5d8(0x210)](_0x58ba05,_0x58ba05+_0xe08f9e));}return _0x2c77a5;}function a4_0x4f7a(_0x5e6aca,_0x4ee837){const _0x116cac=a4_0x116c();return a4_0x4f7a=function(_0x4f7abc,_0x2ffccc){_0x4f7abc=_0x4f7abc-0x1e3;let _0x2d52e6=_0x116cac[_0x4f7abc];return _0x2d52e6;},a4_0x4f7a(_0x5e6aca,_0x4ee837);}function getProxyType(_0x469dab){const _0x1b1724=a4_0x3438a6;return Object[_0x1b1724(0x202)][_0x1b1724(0x213)][_0x1b1724(0x219)](_0x469dab)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x5d7830,_0x5ded2b=0x1f4,_0x326c06=![]){const _0x49ab18=a4_0x3438a6;if(timeout!==null)clearTimeout(timeout);if(_0x326c06){const _0x4fc1fc=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5ded2b);if(_0x4fc1fc)typeof _0x5d7830===_0x49ab18(0x20e)&&_0x5d7830();}else timeout=setTimeout(()=>{typeof _0x5d7830==='function'&&_0x5d7830();},_0x5ded2b);}function urlEncode(_0x1bbef7={}){const _0x12376f=a4_0x3438a6,_0x5f3660=[];for(const _0x28f22e in _0x1bbef7){const _0x172c04=_0x1bbef7[_0x28f22e];if(!_0x172c04)continue;isArray(_0x172c04)?_0x172c04[_0x12376f(0x1ed)](_0x3a60ba=>{const _0x1c3d28=_0x12376f;_0x5f3660[_0x1c3d28(0x201)](_0x28f22e+'='+_0x3a60ba);}):_0x5f3660[_0x12376f(0x201)](_0x28f22e+'='+_0x172c04);}return _0x5f3660[_0x12376f(0x217)]('&');}function dateFormat(_0x4c7954,_0x1ae153){const _0x5c6bde=a4_0x3438a6,_0x34988b=new Date(_0x1ae153),_0x34e7a1={'Y+':_0x34988b[_0x5c6bde(0x20d)]()[_0x5c6bde(0x213)](),'m+':(_0x34988b['getMonth']()+0x1)[_0x5c6bde(0x213)](),'d+':_0x34988b[_0x5c6bde(0x222)]()[_0x5c6bde(0x213)](),'H+':_0x34988b[_0x5c6bde(0x1f0)]()[_0x5c6bde(0x213)](),'M+':_0x34988b['getMinutes']()[_0x5c6bde(0x213)](),'S+':_0x34988b[_0x5c6bde(0x1fa)]()[_0x5c6bde(0x213)]()};let _0x2a88e7;for(let _0xbefd9c in _0x34e7a1){_0x2a88e7=new RegExp('('+_0xbefd9c+')')[_0x5c6bde(0x204)](_0x4c7954);_0x2a88e7&&(_0x4c7954=_0x4c7954[_0x5c6bde(0x1e4)](_0x2a88e7[0x1],_0x2a88e7[0x1]['length']==0x1?_0x34e7a1[_0xbefd9c]:_0x34e7a1[_0xbefd9c][_0x5c6bde(0x1fe)](_0x2a88e7[0x1][_0x5c6bde(0x1fc)],'0')));;};return _0x4c7954;}function formatDate(_0x4c8194,_0x229a2f=a4_0x3438a6(0x206),_0x551a52={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x1184fe=a4_0x3438a6,_0x1c5c7a=new Date(_0x4c8194),_0x183206=_0x1c5c7a[_0x1184fe(0x20d)](),_0x12f166=_0x1c5c7a[_0x1184fe(0x1e3)]()+0x1,_0x385f62=_0x1c5c7a[_0x1184fe(0x222)](),_0x495dff=_0x12f166<0xa?'0'+_0x12f166:_0x12f166,_0x4fdaa4=_0x385f62<0xa?'0'+_0x385f62:_0x385f62;let _0x3f6835=_0x229a2f[_0x1184fe(0x1e4)](_0x1184fe(0x1fd),_0x183206)['replace']('MM',_0x495dff)[_0x1184fe(0x1e4)]('DD',_0x4fdaa4);return _0x3f6835=_0x3f6835[_0x1184fe(0x1e4)](/-MM/g,_0x551a52['monthTitle'])[_0x1184fe(0x1e4)](/-DD/g,_0x551a52[_0x1184fe(0x205)])[_0x1184fe(0x1e4)](_0x1184fe(0x1fd)+_0x551a52['yearTitle'],'')['replace']('MM'+_0x551a52['monthTitle'],'')[_0x1184fe(0x1e4)]('DD'+_0x551a52[_0x1184fe(0x205)],''),_0x3f6835;}function compareDates(_0x18c1e1,_0x5d42f6){const _0x354e99=a4_0x3438a6;_0x18c1e1=new Date(_0x18c1e1);!_0x5d42f6?_0x5d42f6=new Date():_0x5d42f6=new Date(_0x5d42f6);_0x18c1e1['setHours'](0x0,0x0,0x0,0x0),_0x5d42f6['setHours'](0x0,0x0,0x0,0x0);var _0x500a9c=_0x18c1e1[_0x354e99(0x1ef)](),_0x11b8bf=_0x5d42f6[_0x354e99(0x1ef)]();if(_0x500a9c<_0x11b8bf)return-0x1;else return _0x500a9c>_0x11b8bf?0x1:0x0;}function getDaysBetween(_0x464327,_0x13eeeb){const _0x4db88d=a4_0x3438a6,_0x2fd842=new Date(_0x464327),_0x1b40f2=new Date(_0x13eeeb),_0x45e819=Math[_0x4db88d(0x1f5)](_0x2fd842['getTime']()-_0x1b40f2[_0x4db88d(0x1ef)]()),_0x5a2af3=Math[_0x4db88d(0x20b)](_0x45e819/(0x3e8*0x3c*0x3c*0x18));return _0x5a2af3+0x1;}function chineseNumeral(_0x34271f){const _0x407c21=a4_0x3438a6,_0x28080c=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x3bb920=['','拾','佰','仟'],_0x1f544c=['','万','亿','兆'];let _0x1d0122=Math[_0x407c21(0x20b)](_0x34271f),_0x347df7=Math[_0x407c21(0x218)]((_0x34271f-_0x1d0122)*0x64),_0x144dfd='';for(let _0x3791fc=0x0;_0x1d0122>0x0;_0x3791fc++){let _0xd6c257='',_0x2b6ad8=_0x1d0122%0x2710;_0x1d0122=Math[_0x407c21(0x20b)](_0x1d0122/0x2710);for(let _0x303d4c=0x0;_0x2b6ad8>0x0;_0x303d4c++){let _0x594aec=_0x2b6ad8%0xa;_0xd6c257=(_0x594aec?_0x28080c[_0x594aec]+_0x3bb920[_0x303d4c]:'')+_0xd6c257,_0x2b6ad8=Math[_0x407c21(0x20b)](_0x2b6ad8/0xa);}_0x144dfd=_0xd6c257+(_0xd6c257?_0x1f544c[_0x3791fc]:_0x1f544c[_0x3791fc]&&!_0x144dfd['includes']('零')?'零':'')+_0x144dfd;}_0x144dfd+=_0x144dfd?'元':'零元';if(_0x347df7>0x0){let _0x3197e3=Math[_0x407c21(0x20b)](_0x347df7/0xa),_0x55b835=_0x347df7%0xa;_0x144dfd+=(_0x3197e3?_0x28080c[_0x3197e3]+'角':'')+(_0x55b835?_0x28080c[_0x55b835]+'分':'');}else _0x144dfd+='整';return _0x144dfd['replace'](/零{2,}/g,'零')[_0x407c21(0x1e4)](/零元/,'元');}function getMonthDate(_0x50f9ea){const _0x3bf6af=a4_0x3438a6;(!_0x50f9ea||_0x50f9ea[_0x3bf6af(0x20a)]()==='')&&(_0x50f9ea=new Date()[_0x3bf6af(0x20d)]()+'-'+(new Date()[_0x3bf6af(0x1e3)]()+0x1));let _0x26f0ec=[],[_0x146555,_0x17179]=_0x50f9ea['split']('-')[_0x3bf6af(0x215)](Number),_0x185265=new Date(_0x146555,_0x17179,0x0),_0x6001bc=_0x185265[_0x3bf6af(0x222)]();for(let _0xff49ec=0x1;_0xff49ec<=_0x6001bc;_0xff49ec++){let _0x50cf74=_0xff49ec<0xa?'0'+_0xff49ec:''+_0xff49ec,_0x57dde9=_0x17179<0xa?'0'+_0x17179:''+_0x17179;_0x26f0ec[_0x3bf6af(0x201)]({'date':_0x146555+'-'+_0x57dde9+'-'+_0x50cf74,'disable':!![]});}return _0x26f0ec;}function getToday(_0x47fdde){const _0x4d9edc=a4_0x3438a6;var _0x1fd17f=new Date(),_0x28df3f=String(_0x1fd17f[_0x4d9edc(0x222)]())['padStart'](0x2,'0'),_0x261ae7=String(_0x1fd17f[_0x4d9edc(0x1e3)]()+0x1)['padStart'](0x2,'0'),_0x1efd89=_0x1fd17f[_0x4d9edc(0x20d)]();return _0x1fd17f=_0x1efd89+'-'+_0x261ae7+'-'+_0x28df3f,_0x1fd17f;}function resetObject(_0x2d5c02){const _0x150f6a=a4_0x3438a6;let _0x2016ec=JSON['parse'](JSON[_0x150f6a(0x220)](_0x2d5c02));for(const _0x35bcec in _0x2016ec){if(typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x1f3))_0x2016ec[_0x35bcec]=0x0;else{if(typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x21b))_0x2016ec[_0x35bcec]=![];else{if(Array[_0x150f6a(0x1e9)](_0x2016ec[_0x35bcec]))_0x2016ec[_0x35bcec]=[];else typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x1e6)&&_0x2016ec[_0x35bcec]!==null?resetObject(_0x2016ec[_0x35bcec]):_0x2016ec[_0x35bcec]='';}}}return _0x2016ec;}function preciseOperation(_0x587947,_0x5590b4,_0x340699,_0x561b31=0xf4240){const _0x21bc17=a4_0x3438a6;if(isNaN(_0x587947)||isNaN(_0x5590b4))return NaN;if(!isFinite(_0x587947)||!isFinite(_0x5590b4))return NaN;let _0x539990=BigInt(Math[_0x21bc17(0x218)](_0x587947*_0x561b31)),_0xf6c76a=BigInt(Math['round'](_0x5590b4*_0x561b31)),_0x1522c3;switch(_0x340699){case 0x1:_0x1522c3=_0x539990+_0xf6c76a;break;case 0x2:_0x1522c3=_0x539990-_0xf6c76a;break;case 0x3:_0x1522c3=_0x539990*_0xf6c76a;break;case 0x4:if(_0xf6c76a===0x0n)throw new Error('除数不能为0');_0x1522c3=_0x539990/_0xf6c76a;break;default:throw new Error(_0x21bc17(0x1e5));}return Number(_0x1522c3)/_0x561b31;}function preciseSum(_0x224cbe){const _0x35a712=a4_0x3438a6;let _0x3deed6=0x0;for(const _0x424fd1 of _0x224cbe){let _0x45017d=0x0;if(typeof _0x424fd1===_0x35a712(0x209)){const _0x11d9a3=parseFloat(_0x424fd1);!isNaN(_0x11d9a3)&&(_0x45017d=_0x11d9a3);}else typeof _0x424fd1==='number'&&(_0x45017d=_0x424fd1);_0x3deed6=preciseOperation(_0x3deed6,_0x45017d,0x1);}return _0x3deed6;}function getRelativeDate(_0x4809bb,_0x1cfc86=0x0){const _0x243a0a=a4_0x3438a6,_0x36573b=new Date(_0x4809bb);_0x36573b[_0x243a0a(0x1e8)](_0x36573b['getDate']()+_0x1cfc86);const _0x2361bb=_0x36573b[_0x243a0a(0x20d)](),_0x44b77d=(_0x36573b[_0x243a0a(0x1e3)]()+0x1)[_0x243a0a(0x213)]()[_0x243a0a(0x1fe)](0x2,'0'),_0x33f75c=_0x36573b[_0x243a0a(0x222)]()[_0x243a0a(0x213)]()['padStart'](0x2,'0');return _0x2361bb+'-'+_0x44b77d+'-'+_0x33f75c;}function validateFields(_0x26e2e5,_0x489c09,_0x311883=''){for(let _0x3f45bb of _0x489c09){if(_0x26e2e5[_0x3f45bb]===_0x311883)return!![];}return![];}function mergeObjects(_0x3ff724,_0x5e4ae7){const _0x2c70fe=a4_0x3438a6;for(const _0x2beebd in _0x3ff724){_0x5e4ae7[_0x2c70fe(0x21c)](_0x2beebd)&&(_0x3ff724[_0x2beebd]=_0x5e4ae7[_0x2beebd]);}return _0x3ff724;}const formatToDecimal=(_0x13f697,_0x471fd0=0x2)=>{const _0x2b2494=a4_0x3438a6;if(isNaN(_0x471fd0)||_0x471fd0<0x0)return _0x13f697;let _0x136ef0=Number(_0x13f697);if(!isFinite(_0x136ef0))return _0x13f697;return _0x471fd0=Math['max'](0x0,Math[_0x2b2494(0x20b)](_0x471fd0)),_0x136ef0[_0x2b2494(0x214)](_0x471fd0);};function findKeysEndingWith(_0x47e20c,_0x5b9175=a4_0x3438a6(0x1f4)){const _0x45e0af=a4_0x3438a6;let _0x406204=[];for(var _0x65a2fa in _0x47e20c){if(_0x47e20c[_0x45e0af(0x21c)](_0x65a2fa)){if(_0x65a2fa['endsWith'](_0x5b9175))_0x406204[_0x45e0af(0x201)](_0x65a2fa);}}return _0x406204;}function guid(_0x15391a=0x20,_0x4fb588=!![],_0x2fd26a=null){const _0x2ae41d=a4_0x3438a6,_0x2b414b=_0x2ae41d(0x221)['split'](''),_0x2bfa27=[];_0x2fd26a=_0x2fd26a||_0x2b414b[_0x2ae41d(0x1fc)];if(_0x15391a){for(let _0x32caa6=0x0;_0x32caa6<_0x15391a;_0x32caa6++)_0x2bfa27[_0x32caa6]=_0x2b414b[0x0|Math[_0x2ae41d(0x1f2)]()*_0x2fd26a];}else{let _0xd98251;_0x2bfa27[0x8]=_0x2bfa27[0xd]=_0x2bfa27[0x12]=_0x2bfa27[0x17]='-',_0x2bfa27[0xe]='4';for(let _0x2a3230=0x0;_0x2a3230<0x24;_0x2a3230++){!_0x2bfa27[_0x2a3230]&&(_0xd98251=0x0|Math[_0x2ae41d(0x1f2)]()*0x10,_0x2bfa27[_0x2a3230]=_0x2b414b[_0x2a3230==0x13?_0xd98251&0x3|0x8:_0xd98251]);}}if(_0x4fb588)return _0x2bfa27[_0x2ae41d(0x207)](),'u'+_0x2bfa27['join']('');return _0x2bfa27['join']('');}function trim(_0xdd0d36,_0x52a5b4=a4_0x3438a6(0x20c)){const _0x1858fe=a4_0x3438a6;_0xdd0d36=String(_0xdd0d36);if(_0x52a5b4=='both')return _0xdd0d36[_0x1858fe(0x1e4)](/^\s+|\s+$/g,'');if(_0x52a5b4==_0x1858fe(0x1eb))return _0xdd0d36[_0x1858fe(0x1e4)](/^\s*/,'');if(_0x52a5b4=='right')return _0xdd0d36[_0x1858fe(0x1e4)](/(\s*$)/g,'');if(_0x52a5b4=='all')return _0xdd0d36[_0x1858fe(0x1e4)](/\s+/g,'');return _0xdd0d36;}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_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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {