yunlin 1.0.42 → 1.0.44

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(_0xf05723,_0x5e0c21){var _0x9297cf=a0_0x25f1,_0x12c309=_0xf05723();while(!![]){try{var _0x2c0c46=parseInt(_0x9297cf(0xff))/0x1*(-parseInt(_0x9297cf(0x10a))/0x2)+parseInt(_0x9297cf(0x107))/0x3+-parseInt(_0x9297cf(0x105))/0x4*(-parseInt(_0x9297cf(0x104))/0x5)+-parseInt(_0x9297cf(0x106))/0x6*(-parseInt(_0x9297cf(0x108))/0x7)+-parseInt(_0x9297cf(0x100))/0x8*(-parseInt(_0x9297cf(0x109))/0x9)+-parseInt(_0x9297cf(0x102))/0xa*(parseInt(_0x9297cf(0xfe))/0xb)+parseInt(_0x9297cf(0x101))/0xc*(parseInt(_0x9297cf(0x103))/0xd);if(_0x2c0c46===_0x5e0c21)break;else _0x12c309['push'](_0x12c309['shift']());}catch(_0x2f6f02){_0x12c309['push'](_0x12c309['shift']());}}}(a0_0x2780,0x89ce1));function a0_0x25f1(_0x2e4b46,_0x5bd12e){var _0x27804f=a0_0x2780();return a0_0x25f1=function(_0x25f14b,_0x56bc83){_0x25f14b=_0x25f14b-0xfe;var _0x563dcf=_0x27804f[_0x25f14b];return _0x563dcf;},a0_0x25f1(_0x2e4b46,_0x5bd12e);}import a0_0x58b341 from'./utils';import a0_0x11abd9 from'./price';import a0_0x230bba from'./test';import a0_0x4883b8 from'./room';function a0_0x2780(){var _0x164e63=['161574kVNPqD','119dFbgmd','792ZrPTti','2DYrKgV','8998jplTLH','704545qrejaJ','84368QoIMjW','24JyKpQD','11690SGLNch','2200939BIbcBU','3085XTEpYi','5604cYMuXA','14226oZOdee'];a0_0x2780=function(){return _0x164e63;};return a0_0x2780();}import a0_0x230ff1 from'./roomOld';export default{'test':a0_0x230bba,'utils':a0_0x58b341,'price':a0_0x11abd9,'room':a0_0x4883b8,'roomOld':a0_0x230ff1};
1
+ (function(_0x5be23c,_0x457a40){var _0x4faf37=a0_0x1c9e,_0x30bba5=_0x5be23c();while(!![]){try{var _0x52b648=-parseInt(_0x4faf37(0x171))/0x1+parseInt(_0x4faf37(0x176))/0x2+-parseInt(_0x4faf37(0x170))/0x3*(-parseInt(_0x4faf37(0x177))/0x4)+parseInt(_0x4faf37(0x178))/0x5*(-parseInt(_0x4faf37(0x173))/0x6)+-parseInt(_0x4faf37(0x172))/0x7+-parseInt(_0x4faf37(0x175))/0x8+-parseInt(_0x4faf37(0x174))/0x9*(-parseInt(_0x4faf37(0x179))/0xa);if(_0x52b648===_0x457a40)break;else _0x30bba5['push'](_0x30bba5['shift']());}catch(_0x42e353){_0x30bba5['push'](_0x30bba5['shift']());}}}(a0_0xdc3e,0x1c52e));import a0_0x1e6412 from'./utils';import a0_0x2c3c48 from'./price';import a0_0x3b6be3 from'./test';function a0_0x1c9e(_0x10ad85,_0xaefa21){var _0xdc3e3e=a0_0xdc3e();return a0_0x1c9e=function(_0x1c9efa,_0x4f1911){_0x1c9efa=_0x1c9efa-0x170;var _0x1c52b4=_0xdc3e3e[_0x1c9efa];return _0x1c52b4;},a0_0x1c9e(_0x10ad85,_0xaefa21);}function a0_0xdc3e(){var _0x495860=['52970SvZprk','3zRqbKi','34985LGjieC','599130FxJdFm','6svCLba','387eCjmLX','1781928zrNroT','413402eytvxs','508376VEPIty','511180gDoXHn'];a0_0xdc3e=function(){return _0x495860;};return a0_0xdc3e();}import a0_0x35dda3 from'./room';import a0_0xe8d378 from'./roomOld';import a0_0xde6b76 from'./system';export default{'test':a0_0x3b6be3,'utils':a0_0x1e6412,'price':a0_0x2c3c48,'room':a0_0x35dda3,'roomOld':a0_0xe8d378,'system':a0_0xde6b76};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- function a1_0x34ac(_0x4ca8a6,_0x15f4dc){const _0x524570=a1_0x5245();return a1_0x34ac=function(_0x34ac36,_0x45bf0f){_0x34ac36=_0x34ac36-0x136;let _0x47a43d=_0x524570[_0x34ac36];return _0x47a43d;},a1_0x34ac(_0x4ca8a6,_0x15f4dc);}(function(_0x3366d8,_0x2ee6aa){const _0x4d0182=a1_0x34ac,_0x1c3d27=_0x3366d8();while(!![]){try{const _0x15ae5b=-parseInt(_0x4d0182(0x157))/0x1*(-parseInt(_0x4d0182(0x178))/0x2)+parseInt(_0x4d0182(0x154))/0x3*(parseInt(_0x4d0182(0x16d))/0x4)+-parseInt(_0x4d0182(0x179))/0x5+parseInt(_0x4d0182(0x181))/0x6+-parseInt(_0x4d0182(0x176))/0x7*(-parseInt(_0x4d0182(0x175))/0x8)+parseInt(_0x4d0182(0x13b))/0x9*(-parseInt(_0x4d0182(0x18a))/0xa)+-parseInt(_0x4d0182(0x14f))/0xb;if(_0x15ae5b===_0x2ee6aa)break;else _0x1c3d27['push'](_0x1c3d27['shift']());}catch(_0x4f44e0){_0x1c3d27['push'](_0x1c3d27['shift']());}}}(a1_0x5245,0xf09a3));function a1_0x5245(){const _0x44678d=['1526220qtGPSb','附加服務','人員費用','max','nRs','reduction','totalprice','elder','forEach','1530MubdKC','baseadultprice','coupon','filter','附加行程','length','tipday','trim','51165KzYiMR','機場稅','name','itemname','viprecharge','push','number','insure','unitprice','其他費用','num','strLx','baseprice','tax','isArray','users','couponSign','toFixed','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','isShowTip','25145406pZjWXN','vipdiscounted','other','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','warn','6333REVxrG','保險費用','error','9DYpjcf','airtax','兒童[占床]','childprice','basechildprice','tip','promotion','totaltax','rylx','child','strJgbm','price','遊客優惠','trip','object','vip','adultprice','base','money','list','stringify','unitpricewb','3044DKFRtg','會員充值','會員減免','map','unit','childnum','優惠券','\x20*\x20','8VSKdgI','11168087gzpYNH','fLsjUnit','348198OGLhhK','4409575SDjZdd','adultnum','fJcbzlsjUnit','hasOwnProperty','tipuser','includes','keys','service'];a1_0x5245=function(){return _0x44678d;};return a1_0x5245();}function handleCosting(_0x2bb331,_0x4a5cc3='',_0x304e86={},_0x5188ac,_0x226df0){const _0x254566=a1_0x34ac;let _0x45eb22=[];const _0x3d7b04=_0x254566(0x174),_0x5211c3={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x304e86=typeof _0x304e86===_0x254566(0x165)&&!Array[_0x254566(0x149)](_0x304e86)&&_0x304e86!==null?_0x304e86:{};const _0x4bface={..._0x5211c3,..._0x304e86},_0x5d4a0d=Object[_0x254566(0x17f)](_0x5211c3);Object[_0x254566(0x17f)](_0x304e86)[_0x254566(0x189)](_0x43b5c7=>{const _0xc46d83=_0x254566;!_0x5d4a0d[_0xc46d83(0x17e)](_0x43b5c7)&&console[_0xc46d83(0x153)](_0xc46d83(0x152)+_0x43b5c7);});let _0x2fbc19=_0x4bface[_0x254566(0x14b)]||'-',_0x3fe9f0=_0x4bface['dp']||0x2;const _0x330ae3=(_0x21c961,_0x36a4b4=_0x3fe9f0)=>{const _0x4eb424=_0x254566;if(typeof _0x21c961!==_0x4eb424(0x141)&&isNaN(Number(_0x21c961)))return console['error']('ftd\x20函数接收到无效的数字输入:\x20'+_0x21c961),_0x21c961;if(isNaN(_0x36a4b4)||_0x36a4b4<0x0)return _0x21c961;let _0x24fba9=Number(_0x21c961);if(!isFinite(_0x24fba9))return _0x21c961;return _0x36a4b4=Math[_0x4eb424(0x184)](0x0,Math['floor'](_0x36a4b4)),_0x24fba9[_0x4eb424(0x14c)](_0x36a4b4);},_0x36e2e4=(_0x3cb0ab,_0x244f8e)=>{const _0x38b384=_0x254566;if(_0x244f8e&&typeof _0x244f8e===_0x38b384(0x165)&&!Array[_0x38b384(0x149)](_0x244f8e))for(const _0x1998b7 in _0x3cb0ab){_0x3cb0ab[_0x38b384(0x17c)](_0x1998b7)&&_0x244f8e[_0x38b384(0x17c)](_0x1998b7)&&(_0x3cb0ab[_0x1998b7]=_0x244f8e[_0x1998b7]);}else console[_0x38b384(0x156)]((_0x38b384(0x14d)+JSON[_0x38b384(0x16b)](_0x244f8e,null,0x2)+'\x0a\x09\x09\x09正确参数:'+JSON['stringify'](_0x3cb0ab,null,0x2))[_0x38b384(0x13a)]());return _0x3cb0ab;};let _0x58affd={'people':_0x254566(0x183),'service':_0x254566(0x182),'trip':_0x254566(0x137),'other':_0x254566(0x144),'reduction':'減免費用','totalprice':'總計','airtax':_0x254566(0x13c)},_0x220e04={'adult':'成人','child':'兒童','childusebed':_0x254566(0x159),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x254566(0x163),'vip':_0x254566(0x16f),'promotion':'促銷','insure':_0x254566(0x155),'coupon':_0x254566(0x173),'point':'積分','tax':'稅金','viprecharge':_0x254566(0x16e),'r':'人','t':'天'};_0x58affd=_0x36e2e4(_0x58affd,_0x5188ac),_0x220e04=_0x36e2e4(_0x220e04,_0x226df0);const _0x35d28c=_0x2bb331[_0x254566(0x136)](_0x48fb9b=>_0x48fb9b[_0x254566(0x146)]==_0x254566(0x168));if(_0x35d28c['length']){let _0x56ea26={'title':_0x58affd['people'],'type':_0x254566(0x168),'list':[]};_0x35d28c[_0x254566(0x170)](_0x5b9503=>{const _0x56a4c0=_0x254566;_0x56ea26[_0x56a4c0(0x16a)]['push']({'title':_0x220e04[_0x5b9503[_0x56a4c0(0x161)]],'info':_0x4a5cc3+_0x330ae3(_0x5b9503[_0x56a4c0(0x177)])+_0x3d7b04+_0x5b9503[_0x56a4c0(0x185)],'nRs':_0x5b9503[_0x56a4c0(0x185)],'unit':_0x5b9503[_0x56a4c0(0x177)],'cb':_0x5b9503[_0x56a4c0(0x17b)],'type':_0x56a4c0(0x168)});}),_0x45eb22[_0x254566(0x140)](_0x56ea26);}const _0xac7672=_0x2bb331['filter'](_0x559bc7=>_0x559bc7[_0x254566(0x146)]==_0x254566(0x180));if(_0xac7672[_0x254566(0x138)]){let _0x36ff56={'title':_0x58affd[_0x254566(0x180)],'type':_0x254566(0x180),'list':[]};_0xac7672[_0x254566(0x170)](_0x2cf3ca=>{const _0x47cb8e=_0x254566;_0x36ff56[_0x47cb8e(0x16a)]['push']({'title':_0x2cf3ca[_0x47cb8e(0x13d)]+('['+_0x2cf3ca[_0x47cb8e(0x13e)]+']'),'info':_0x4a5cc3+_0x330ae3(_0x2cf3ca[_0x47cb8e(0x143)])+_0x3d7b04+_0x2cf3ca[_0x47cb8e(0x145)],'nRs':_0x2cf3ca[_0x47cb8e(0x145)],'unit':_0x2cf3ca[_0x47cb8e(0x143)],'cb':_0x2cf3ca[_0x47cb8e(0x147)],'type':'service'});}),_0x45eb22[_0x254566(0x140)](_0x36ff56);}const _0x41303f=_0x2bb331[_0x254566(0x136)](_0x370bff=>_0x370bff[_0x254566(0x146)]==_0x254566(0x164));if(_0x41303f[_0x254566(0x138)]){let _0x46d967={'title':_0x58affd['trip'],'type':'trip','list':[]};_0x41303f[_0x254566(0x170)](_0x33e244=>{const _0x2f886b=_0x254566;_0x33e244[_0x2f886b(0x17a)]!='0'&&_0x46d967[_0x2f886b(0x16a)][_0x2f886b(0x140)]({'title':_0x33e244[_0x2f886b(0x13d)]+('['+_0x220e04['adult']+']'),'info':_0x4a5cc3+_0x330ae3(_0x33e244[_0x2f886b(0x167)])+_0x3d7b04+_0x33e244[_0x2f886b(0x17a)],'nRs':_0x33e244[_0x2f886b(0x17a)],'unit':_0x33e244[_0x2f886b(0x167)],'cb':_0x33e244[_0x2f886b(0x18b)],'type':_0x2f886b(0x164)}),_0x33e244[_0x2f886b(0x172)]!='0'&&_0x46d967[_0x2f886b(0x16a)]['push']({'title':_0x33e244[_0x2f886b(0x13d)]+('['+_0x220e04[_0x2f886b(0x160)]+']'),'info':_0x4a5cc3+_0x330ae3(_0x33e244[_0x2f886b(0x15a)])+_0x3d7b04+_0x33e244['childnum'],'nRs':_0x33e244[_0x2f886b(0x172)],'unit':_0x33e244[_0x2f886b(0x15a)],'cb':_0x33e244[_0x2f886b(0x15b)],'type':_0x2f886b(0x164)});}),_0x45eb22[_0x254566(0x140)](_0x46d967);}let _0xdaa2c8=[];const _0x492869=_0x2bb331['filter'](_0x12d30c=>_0x12d30c[_0x254566(0x146)]==_0x254566(0x188));_0x492869['length']&&_0x492869[_0x254566(0x170)](_0x1d2c99=>{const _0x21513b=_0x254566,_0x160374=_0x1d2c99['name']['split']('|')||[''];_0xdaa2c8[_0x21513b(0x140)]({'title':_0x220e04[_0x21513b(0x188)]+('['+_0x160374[0x0]+']'),'info':_0x4a5cc3+_0x2fbc19+_0x330ae3(_0x1d2c99['money']),'unit':_0x1d2c99[_0x21513b(0x169)],'cb':_0x1d2c99[_0x21513b(0x169)],'type':_0x21513b(0x188)});});const _0x14fbaa=_0x2bb331['filter'](_0x297a6e=>_0x297a6e[_0x254566(0x146)]=='vipdiscounted');_0x14fbaa[_0x254566(0x138)]&&_0x14fbaa[_0x254566(0x170)](_0x4c51db=>{const _0x4b5d7b=_0x254566;_0xdaa2c8[_0x4b5d7b(0x140)]({'title':_0x220e04['vip']+('['+_0x4c51db[_0x4b5d7b(0x13d)]+']'),'info':_0x4a5cc3+_0x2fbc19+_0x330ae3(_0x4c51db[_0x4b5d7b(0x169)]),'unit':_0x4c51db[_0x4b5d7b(0x169)],'cb':_0x4c51db[_0x4b5d7b(0x169)],'type':_0x4b5d7b(0x166)});});const _0x36641e=_0x2bb331['filter'](_0x1a625e=>_0x1a625e['strLx']==_0x254566(0x15d));_0x36641e['length']&&_0x36641e[_0x254566(0x170)](_0x39f8fa=>{const _0x5753f7=_0x254566;_0xdaa2c8[_0x5753f7(0x140)]({'title':_0x220e04[_0x5753f7(0x15d)],'info':_0x4a5cc3+_0x2fbc19+_0x330ae3(_0x39f8fa['money']),'unit':_0x39f8fa[_0x5753f7(0x169)],'cb':_0x39f8fa[_0x5753f7(0x169)],'type':'promotion'});});_0xdaa2c8[_0x254566(0x138)]&&_0x45eb22[_0x254566(0x140)]({'title':_0x58affd[_0x254566(0x186)],'type':_0x254566(0x186),'list':_0xdaa2c8});const _0x274b85=_0x2bb331[_0x254566(0x136)](_0x284e0b=>_0x284e0b['strLx']==_0x254566(0x158));if(_0x274b85[_0x254566(0x138)]){let _0x5878e1={'title':_0x58affd['airtax'],'type':_0x254566(0x158),'list':[]};_0x274b85['map'](_0x4b4825=>{const _0x431062=_0x254566;_0x5878e1['list'][_0x431062(0x140)]({'title':_0x220e04[_0x4b4825[_0x431062(0x15f)]],'info':_0x4a5cc3+_0x330ae3(_0x4b4825['unitprice'])+_0x3d7b04+_0x4b4825['sl'],'nRs':_0x4b4825['sl'],'unit':_0x4b4825[_0x431062(0x143)],'cb':_0x4b4825[_0x431062(0x16c)],'type':_0x4b4825[_0x431062(0x15f)]});}),_0x45eb22[_0x254566(0x140)](_0x5878e1);}const _0x28320a=['base',_0x254566(0x180),_0x254566(0x164),'elder',_0x254566(0x150),_0x254566(0x15d),_0x254566(0x158)],_0x4b532e=_0x2bb331['filter'](_0x5e025d=>!_0x28320a[_0x254566(0x17e)](_0x5e025d[_0x254566(0x146)]));let _0x171a97={'title':_0x58affd[_0x254566(0x151)],'type':_0x254566(0x151),'list':[]};for(var _0x328d43=0x0;_0x328d43<_0x4b532e[_0x254566(0x138)];_0x328d43++){const _0x2d1d42=_0x4b532e[_0x328d43];_0x2d1d42['strLx']==_0x254566(0x13f)&&_0x171a97[_0x254566(0x16a)][_0x254566(0x140)]({'title':_0x220e04[_0x254566(0x13f)]+('['+_0x2d1d42[_0x254566(0x13d)]+']'),'info':_0x4a5cc3+_0x330ae3(_0x2d1d42['money']),'unit':_0x2d1d42[_0x254566(0x169)],'type':_0x2d1d42[_0x254566(0x146)]}),_0x2d1d42[_0x254566(0x146)]==_0x254566(0x142)&&_0x171a97[_0x254566(0x16a)][_0x254566(0x140)]({'title':_0x220e04['insure']+('['+_0x2d1d42['name']+']'),'info':_0x4a5cc3+_0x330ae3(_0x2d1d42[_0x254566(0x171)])+_0x3d7b04+_0x2d1d42[_0x254566(0x14a)]+_0x220e04['r'],'nRs':_0x2d1d42[_0x254566(0x14a)],'unit':_0x2d1d42[_0x254566(0x171)],'cb':_0x2d1d42[_0x254566(0x171)],'type':_0x254566(0x142)}),(_0x2d1d42[_0x254566(0x146)]==_0x254566(0x18c)||_0x2d1d42['strLx']=='point')&&_0x171a97[_0x254566(0x16a)][_0x254566(0x140)]({'title':_0x220e04[_0x2d1d42[_0x254566(0x146)]],'info':_0x4a5cc3+_0x2fbc19+_0x330ae3(_0x2d1d42[_0x254566(0x169)]),'unit':_0x2d1d42[_0x254566(0x169)],'type':_0x2d1d42[_0x254566(0x146)]}),_0x2d1d42['strLx']==_0x254566(0x15c)&&_0x4bface[_0x254566(0x14e)]&&_0x171a97[_0x254566(0x16a)][_0x254566(0x140)]({'title':_0x220e04[_0x2d1d42[_0x254566(0x146)]],'info':_0x4a5cc3+_0x330ae3(_0x2d1d42[_0x254566(0x15c)])+_0x3d7b04+_0x2d1d42[_0x254566(0x17d)]+_0x220e04['r']+_0x3d7b04+_0x2d1d42[_0x254566(0x139)]+_0x220e04['t'],'nRs':_0x2d1d42[_0x254566(0x17d)],'count':_0x2d1d42[_0x254566(0x139)],'unit':_0x2d1d42[_0x254566(0x15c)],'type':_0x2d1d42[_0x254566(0x146)]}),_0x2d1d42[_0x254566(0x146)]==_0x254566(0x148)&&_0x171a97[_0x254566(0x16a)][_0x254566(0x140)]({'title':_0x220e04[_0x2d1d42['strLx']],'info':_0x4a5cc3+_0x330ae3(_0x2d1d42[_0x254566(0x15e)]),'unit':_0x2d1d42[_0x254566(0x15e)],'type':_0x2d1d42[_0x254566(0x146)]});}_0x171a97[_0x254566(0x16a)][_0x254566(0x138)]&&_0x45eb22[_0x254566(0x140)](_0x171a97);const _0x33725d=_0x2bb331[_0x254566(0x136)](_0x2acc16=>_0x2acc16[_0x254566(0x146)]==_0x254566(0x187));return _0x33725d[_0x254566(0x138)]&&_0x45eb22[_0x254566(0x140)]({'title':_0x58affd[_0x254566(0x187)],'type':_0x254566(0x187),'list':[{'title':_0x58affd[_0x254566(0x187)],'info':_0x4a5cc3+_0x330ae3(_0x33725d[0x0][_0x254566(0x162)])}]}),_0x45eb22;}export default{'handleCosting':handleCosting};
1
+ function a1_0x2832(){const _0x5866eb=['減免費用','max','3126870Liirua','baseadultprice','tipuser','adult','other','rylx','vipdiscounted','object','4XfRVrC','\x0a\x09\x09\x09正确参数:','15115659wttMXH','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','viprecharge','20XuqFlt','elder','number','money','promotion','287aIjMti','forEach','strJgbm','附加行程','其他費用','isArray','map','unit','人員費用','baseprice','機場稅','adultnum','優惠券','floor','tip','fLsjUnit','keys','vip','15HpAchc','base','name','9469801NoBUTn','airtax','itemname','12TGxtmS','unitprice','reduction','service','stringify','price','split','223378TgNbqe','people','childprice','filter','list','push','tipday','tax','basechildprice','adultprice','276616jzWzIv','error','includes','insure','4218675TFfmKK','couponSign','point','ftd\x20函数接收到无效的数字输入:\x20','num','trim','trip','\x20*\x20','length','遊客優惠','totaltax','toFixed','users','strLx','childnum','12jauvmU','nRs','fJcbzlsjUnit','totalprice','會員充值','保險費用','isShowTip','unitpricewb','2913305SulTTP'];a1_0x2832=function(){return _0x5866eb;};return a1_0x2832();}function a1_0x9cd3(_0x505f6a,_0x505274){const _0x28329f=a1_0x2832();return a1_0x9cd3=function(_0x9cd30c,_0x4a78ac){_0x9cd30c=_0x9cd30c-0x168;let _0x3084c2=_0x28329f[_0x9cd30c];return _0x3084c2;},a1_0x9cd3(_0x505f6a,_0x505274);}(function(_0x5e2e7a,_0x140352){const _0xf69941=a1_0x9cd3,_0x3faf73=_0x5e2e7a();while(!![]){try{const _0x46a0aa=parseInt(_0xf69941(0x18f))/0x1*(-parseInt(_0xf69941(0x19c))/0x2)+parseInt(_0xf69941(0x1aa))/0x3*(parseInt(_0xf69941(0x173))/0x4)+parseInt(_0xf69941(0x168))/0x5*(-parseInt(_0xf69941(0x195))/0x6)+parseInt(_0xf69941(0x17d))/0x7*(parseInt(_0xf69941(0x1a6))/0x8)+parseInt(_0xf69941(0x16b))/0x9+-parseInt(_0xf69941(0x178))/0xa*(-parseInt(_0xf69941(0x192))/0xb)+-parseInt(_0xf69941(0x1b9))/0xc*(parseInt(_0xf69941(0x175))/0xd);if(_0x46a0aa===_0x140352)break;else _0x3faf73['push'](_0x3faf73['shift']());}catch(_0x41e32e){_0x3faf73['push'](_0x3faf73['shift']());}}}(a1_0x2832,0xd935e));function handleCosting(_0xfc0af8,_0x40e1b6='',_0x3352ec={},_0x1f2ca5,_0x459463){const _0x12a08d=a1_0x9cd3;let _0x446299=[];const _0x3eb2ae=_0x12a08d(0x1b1),_0x9b7336={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x3352ec=typeof _0x3352ec===_0x12a08d(0x172)&&!Array[_0x12a08d(0x182)](_0x3352ec)&&_0x3352ec!==null?_0x3352ec:{};const _0x1a9a61={..._0x9b7336,..._0x3352ec},_0x43d22a=Object[_0x12a08d(0x18d)](_0x9b7336);Object['keys'](_0x3352ec)[_0x12a08d(0x17e)](_0x2f30a6=>{const _0x45af1a=_0x12a08d;!_0x43d22a[_0x45af1a(0x1a8)](_0x2f30a6)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x2f30a6);});let _0x4ca52b=_0x1a9a61[_0x12a08d(0x1ab)]||'-',_0x5e518f=_0x1a9a61['dp']||0x2;const _0x9ee8bb=(_0x57eeee,_0x3b2203=_0x5e518f)=>{const _0x5888af=_0x12a08d;if(typeof _0x57eeee!==_0x5888af(0x17a)&&isNaN(Number(_0x57eeee)))return console[_0x5888af(0x1a7)](_0x5888af(0x1ad)+_0x57eeee),_0x57eeee;if(isNaN(_0x3b2203)||_0x3b2203<0x0)return _0x57eeee;let _0x213c25=Number(_0x57eeee);if(!isFinite(_0x213c25))return _0x57eeee;return _0x3b2203=Math[_0x5888af(0x16a)](0x0,Math[_0x5888af(0x18a)](_0x3b2203)),_0x213c25[_0x5888af(0x1b5)](_0x3b2203);},_0x44ce0b=(_0x517cd3,_0xe1baa7)=>{const _0x17b1b6=_0x12a08d;if(_0xe1baa7&&typeof _0xe1baa7==='object'&&!Array[_0x17b1b6(0x182)](_0xe1baa7))for(const _0x373ff7 in _0x517cd3){_0x517cd3['hasOwnProperty'](_0x373ff7)&&_0xe1baa7['hasOwnProperty'](_0x373ff7)&&(_0x517cd3[_0x373ff7]=_0xe1baa7[_0x373ff7]);}else console[_0x17b1b6(0x1a7)]((_0x17b1b6(0x176)+JSON[_0x17b1b6(0x199)](_0xe1baa7,null,0x2)+_0x17b1b6(0x174)+JSON[_0x17b1b6(0x199)](_0x517cd3,null,0x2))[_0x17b1b6(0x1af)]());return _0x517cd3;};let _0xdc7df={'people':_0x12a08d(0x185),'service':'附加服務','trip':_0x12a08d(0x180),'other':_0x12a08d(0x181),'reduction':_0x12a08d(0x169),'totalprice':'總計','airtax':_0x12a08d(0x187)},_0x875e66={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x12a08d(0x1b3),'vip':'會員減免','promotion':'促銷','insure':_0x12a08d(0x1be),'coupon':_0x12a08d(0x189),'point':'積分','tax':'稅金','viprecharge':_0x12a08d(0x1bd),'r':'人','t':'天'};_0xdc7df=_0x44ce0b(_0xdc7df,_0x1f2ca5),_0x875e66=_0x44ce0b(_0x875e66,_0x459463);const _0xee7fd=_0xfc0af8[_0x12a08d(0x19f)](_0x274b7b=>_0x274b7b[_0x12a08d(0x1b7)]==_0x12a08d(0x190));if(_0xee7fd['length']){let _0x2dc2c0={'title':_0xdc7df[_0x12a08d(0x19d)],'type':_0x12a08d(0x190),'list':[]};_0xee7fd[_0x12a08d(0x183)](_0x453d83=>{const _0x2f0915=_0x12a08d;_0x2dc2c0[_0x2f0915(0x1a0)]['push']({'title':_0x875e66[_0x453d83[_0x2f0915(0x17f)]],'info':_0x40e1b6+_0x9ee8bb(_0x453d83['fLsjUnit'])+_0x3eb2ae+_0x453d83[_0x2f0915(0x1ba)],'nRs':_0x453d83[_0x2f0915(0x1ba)],'unit':_0x453d83[_0x2f0915(0x18c)],'cb':_0x453d83[_0x2f0915(0x1bb)],'type':_0x2f0915(0x190)});}),_0x446299[_0x12a08d(0x1a1)](_0x2dc2c0);}const _0x105f20=_0xfc0af8[_0x12a08d(0x19f)](_0x438cda=>_0x438cda[_0x12a08d(0x1b7)]==_0x12a08d(0x198));if(_0x105f20[_0x12a08d(0x1b2)]){let _0x3e7a01={'title':_0xdc7df[_0x12a08d(0x198)],'type':_0x12a08d(0x198),'list':[]};_0x105f20[_0x12a08d(0x183)](_0x56aa2a=>{const _0x4fc6bf=_0x12a08d;_0x3e7a01[_0x4fc6bf(0x1a0)][_0x4fc6bf(0x1a1)]({'title':_0x56aa2a['name']+('['+_0x56aa2a[_0x4fc6bf(0x194)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x56aa2a[_0x4fc6bf(0x196)])+_0x3eb2ae+_0x56aa2a[_0x4fc6bf(0x1ae)],'nRs':_0x56aa2a['num'],'unit':_0x56aa2a['unitprice'],'cb':_0x56aa2a[_0x4fc6bf(0x186)],'type':_0x4fc6bf(0x198)});}),_0x446299[_0x12a08d(0x1a1)](_0x3e7a01);}const _0x176b75=_0xfc0af8[_0x12a08d(0x19f)](_0x497ddf=>_0x497ddf[_0x12a08d(0x1b7)]=='trip');if(_0x176b75[_0x12a08d(0x1b2)]){let _0x4829d6={'title':_0xdc7df[_0x12a08d(0x1b0)],'type':_0x12a08d(0x1b0),'list':[]};_0x176b75[_0x12a08d(0x183)](_0x11553e=>{const _0x5dfc3b=_0x12a08d;_0x11553e[_0x5dfc3b(0x188)]!='0'&&_0x4829d6[_0x5dfc3b(0x1a0)][_0x5dfc3b(0x1a1)]({'title':_0x11553e[_0x5dfc3b(0x191)]+('['+_0x875e66[_0x5dfc3b(0x16e)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x11553e[_0x5dfc3b(0x1a5)])+_0x3eb2ae+_0x11553e[_0x5dfc3b(0x188)],'nRs':_0x11553e['adultnum'],'unit':_0x11553e['adultprice'],'cb':_0x11553e[_0x5dfc3b(0x16c)],'type':_0x5dfc3b(0x1b0)}),_0x11553e[_0x5dfc3b(0x1b8)]!='0'&&_0x4829d6[_0x5dfc3b(0x1a0)][_0x5dfc3b(0x1a1)]({'title':_0x11553e[_0x5dfc3b(0x191)]+('['+_0x875e66['child']+']'),'info':_0x40e1b6+_0x9ee8bb(_0x11553e[_0x5dfc3b(0x19e)])+_0x3eb2ae+_0x11553e['childnum'],'nRs':_0x11553e['childnum'],'unit':_0x11553e['childprice'],'cb':_0x11553e[_0x5dfc3b(0x1a4)],'type':'trip'});}),_0x446299['push'](_0x4829d6);}let _0x580514=[];const _0x4afa93=_0xfc0af8['filter'](_0x4af91c=>_0x4af91c[_0x12a08d(0x1b7)]==_0x12a08d(0x179));_0x4afa93['length']&&_0x4afa93[_0x12a08d(0x183)](_0x8e517e=>{const _0x33ab35=_0x12a08d,_0x4e9e63=_0x8e517e[_0x33ab35(0x191)][_0x33ab35(0x19b)]('|')||[''];_0x580514[_0x33ab35(0x1a1)]({'title':_0x875e66[_0x33ab35(0x179)]+('['+_0x4e9e63[0x0]+']'),'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x8e517e['money']),'unit':_0x8e517e[_0x33ab35(0x17b)],'cb':_0x8e517e[_0x33ab35(0x17b)],'type':_0x33ab35(0x179)});});const _0x145ea6=_0xfc0af8[_0x12a08d(0x19f)](_0x53af37=>_0x53af37[_0x12a08d(0x1b7)]==_0x12a08d(0x171));_0x145ea6[_0x12a08d(0x1b2)]&&_0x145ea6[_0x12a08d(0x183)](_0x3ef6d9=>{const _0x31e811=_0x12a08d;_0x580514[_0x31e811(0x1a1)]({'title':_0x875e66['vip']+('['+_0x3ef6d9[_0x31e811(0x191)]+']'),'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x3ef6d9[_0x31e811(0x17b)]),'unit':_0x3ef6d9[_0x31e811(0x17b)],'cb':_0x3ef6d9[_0x31e811(0x17b)],'type':_0x31e811(0x18e)});});const _0x28806c=_0xfc0af8[_0x12a08d(0x19f)](_0x9b62b9=>_0x9b62b9[_0x12a08d(0x1b7)]=='promotion');_0x28806c[_0x12a08d(0x1b2)]&&_0x28806c['map'](_0xb8e5e0=>{const _0x7c86d0=_0x12a08d;_0x580514['push']({'title':_0x875e66['promotion'],'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0xb8e5e0[_0x7c86d0(0x17b)]),'unit':_0xb8e5e0[_0x7c86d0(0x17b)],'cb':_0xb8e5e0[_0x7c86d0(0x17b)],'type':_0x7c86d0(0x17c)});});_0x580514[_0x12a08d(0x1b2)]&&_0x446299[_0x12a08d(0x1a1)]({'title':_0xdc7df[_0x12a08d(0x197)],'type':'reduction','list':_0x580514});const _0x55f95d=_0xfc0af8[_0x12a08d(0x19f)](_0x511e5c=>_0x511e5c[_0x12a08d(0x1b7)]=='airtax');if(_0x55f95d[_0x12a08d(0x1b2)]){let _0xb14bfb={'title':_0xdc7df[_0x12a08d(0x193)],'type':'airtax','list':[]};_0x55f95d[_0x12a08d(0x183)](_0x34972d=>{const _0x277b00=_0x12a08d;_0xb14bfb[_0x277b00(0x1a0)][_0x277b00(0x1a1)]({'title':_0x875e66[_0x34972d[_0x277b00(0x170)]],'info':_0x40e1b6+_0x9ee8bb(_0x34972d['unitprice'])+_0x3eb2ae+_0x34972d['sl'],'nRs':_0x34972d['sl'],'unit':_0x34972d[_0x277b00(0x196)],'cb':_0x34972d[_0x277b00(0x1c0)],'type':_0x34972d[_0x277b00(0x170)]});}),_0x446299[_0x12a08d(0x1a1)](_0xb14bfb);}const _0x56bfc5=['base',_0x12a08d(0x198),_0x12a08d(0x1b0),_0x12a08d(0x179),_0x12a08d(0x171),_0x12a08d(0x17c),_0x12a08d(0x193)],_0x5aa553=_0xfc0af8[_0x12a08d(0x19f)](_0x58ef70=>!_0x56bfc5[_0x12a08d(0x1a8)](_0x58ef70[_0x12a08d(0x1b7)]));let _0x1949df={'title':_0xdc7df[_0x12a08d(0x16f)],'type':'other','list':[]};for(var _0x1c3b36=0x0;_0x1c3b36<_0x5aa553[_0x12a08d(0x1b2)];_0x1c3b36++){const _0x15b5d8=_0x5aa553[_0x1c3b36];_0x15b5d8['strLx']==_0x12a08d(0x177)&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x12a08d(0x177)]+('['+_0x15b5d8[_0x12a08d(0x191)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x17b)]),'unit':_0x15b5d8[_0x12a08d(0x17b)],'type':_0x15b5d8['strLx']}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1a9)&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x12a08d(0x1a9)]+('['+_0x15b5d8[_0x12a08d(0x191)]+']'),'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x184)])+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x1b6)]+_0x875e66['r'],'nRs':_0x15b5d8[_0x12a08d(0x1b6)],'unit':_0x15b5d8[_0x12a08d(0x184)],'cb':_0x15b5d8[_0x12a08d(0x184)],'type':_0x12a08d(0x1a9)}),(_0x15b5d8[_0x12a08d(0x1b7)]=='coupon'||_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1ac))&&_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1a1)]({'title':_0x15b5d8['couponmc']||_0x875e66[_0x15b5d8[_0x12a08d(0x1b7)]],'info':_0x40e1b6+_0x4ca52b+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x17b)]),'unit':_0x15b5d8[_0x12a08d(0x17b)],'type':_0x15b5d8['strLx']}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x18b)&&_0x1a9a61[_0x12a08d(0x1bf)]&&_0x1949df['list'][_0x12a08d(0x1a1)]({'title':_0x875e66[_0x15b5d8['strLx']],'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x18b)])+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x16d)]+_0x875e66['r']+_0x3eb2ae+_0x15b5d8[_0x12a08d(0x1a2)]+_0x875e66['t'],'nRs':_0x15b5d8[_0x12a08d(0x16d)],'count':_0x15b5d8[_0x12a08d(0x1a2)],'unit':_0x15b5d8[_0x12a08d(0x18b)],'type':_0x15b5d8[_0x12a08d(0x1b7)]}),_0x15b5d8[_0x12a08d(0x1b7)]==_0x12a08d(0x1a3)&&_0x1949df['list']['push']({'title':_0x875e66[_0x15b5d8['strLx']],'info':_0x40e1b6+_0x9ee8bb(_0x15b5d8[_0x12a08d(0x1b4)]),'unit':_0x15b5d8[_0x12a08d(0x1b4)],'type':_0x15b5d8['strLx']});}_0x1949df[_0x12a08d(0x1a0)][_0x12a08d(0x1b2)]&&_0x446299['push'](_0x1949df);const _0x20d359=_0xfc0af8['filter'](_0x2cae05=>_0x2cae05[_0x12a08d(0x1b7)]==_0x12a08d(0x1bc));return _0x20d359[_0x12a08d(0x1b2)]&&_0x446299[_0x12a08d(0x1a1)]({'title':_0xdc7df[_0x12a08d(0x1bc)],'type':_0x12a08d(0x1bc),'list':[{'title':_0xdc7df[_0x12a08d(0x1bc)],'info':_0x40e1b6+_0x9ee8bb(_0x20d359[0x0][_0x12a08d(0x19a)])}]}),_0x446299;}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x465bda,_0x37bc9e){const _0x159207=a2_0x5254,_0x5a5798=_0x465bda();while(!![]){try{const _0x5ba9b6=-parseInt(_0x159207(0x14a))/0x1+-parseInt(_0x159207(0x13a))/0x2+parseInt(_0x159207(0x144))/0x3*(-parseInt(_0x159207(0x136))/0x4)+-parseInt(_0x159207(0x150))/0x5+parseInt(_0x159207(0x13c))/0x6*(parseInt(_0x159207(0x140))/0x7)+-parseInt(_0x159207(0x137))/0x8*(-parseInt(_0x159207(0x14e))/0x9)+-parseInt(_0x159207(0x145))/0xa*(-parseInt(_0x159207(0x141))/0xb);if(_0x5ba9b6===_0x37bc9e)break;else _0x5a5798['push'](_0x5a5798['shift']());}catch(_0x4df288){_0x5a5798['push'](_0x5a5798['shift']());}}}(a2_0x5169,0xba814));function getRoomCount(_0x3712c8,_0x284172){const _0x2894d1=a2_0x5254,_0x119bac=Array[_0x2894d1(0x146)](_0x3712c8);if(!_0x119bac)_0x3712c8=[_0x3712c8];let _0x54b1c9=[];return _0x3712c8[_0x2894d1(0x134)](_0x35bb57=>{const _0x4c493d=_0x2894d1;let _0x211f53=![];if(!_0x35bb57[_0x4c493d(0x14b)]){let _0x1da840=_0x35bb57[_0x4c493d(0x13e)];if(_0x35bb57[_0x4c493d(0x14c)]||!_0x284172['child'])_0x1da840+=_0x35bb57[_0x4c493d(0x133)];const _0x986f35=_0x284172['list'][_0x4c493d(0x14d)](_0x53d422=>Number(_0x53d422[_0x4c493d(0x139)])===_0x1da840);if(!_0x986f35)_0x211f53=!![];else{let _0x132250=_0x35bb57['adultNum']+_0x35bb57[_0x4c493d(0x133)]+_0x35bb57[_0x4c493d(0x13d)];_0x132250>_0x986f35['nMaxIn']&&(_0x211f53=!![]);}}_0x54b1c9[_0x4c493d(0x142)](_0x211f53);}),_0x119bac?_0x54b1c9:_0x54b1c9[0x0];}function getRoomConfig(_0x4c9f00){const _0x51d097=a2_0x5254;let _0x5a206c=_0x4c9f00[_0x51d097(0x13b)](_0x23baad=>_0x23baad[_0x51d097(0x139)]===_0x51d097(0x14c)),_0x37815f=_0x4c9f00[_0x51d097(0x13b)](_0x56f37f=>_0x56f37f[_0x51d097(0x139)]===_0x51d097(0x147));const _0x15e101=_0x4c9f00[_0x51d097(0x13b)](_0x1fc24b=>_0x1fc24b[_0x51d097(0x139)]===_0x51d097(0x135)),_0x4e9302=_0x4c9f00[_0x51d097(0x13b)](_0x58465e=>_0x58465e[_0x51d097(0x139)]===_0x51d097(0x148)),_0x11d56f=_0x4c9f00[_0x51d097(0x149)](_0x29d50e=>{const _0x522163=_0x51d097;return{'strCode':_0x29d50e[_0x522163(0x139)],'nMaxIn':_0x29d50e[_0x522163(0x138)]};});if(_0x37815f){const _0x1b67df=_0x4c9f00['some'](_0x330723=>_0x330723[_0x51d097(0x139)]=='2');_0x37815f=_0x37815f&&_0x1b67df;}if(_0x5a206c)_0x5a206c=_0x5a206c&&_0x4e9302;return{'childUseBed':_0x5a206c,'isAlotment':_0x37815f,'infant':_0x15e101,'child':_0x4e9302,'list':_0x11d56f};}function isRoomPiece(_0xd975e9,_0x1a988d){const _0x52bab2=a2_0x5254;return _0x1a988d&&_0xd975e9[_0x52bab2(0x13e)]===0x1&&_0xd975e9[_0x52bab2(0x133)]===0x0&&_0xd975e9[_0x52bab2(0x13d)]===0x0;}function a2_0x5169(){const _0x1fe822=['6651144YedURJ','nMaxIn','strCode','2703312VlilAU','some','6SoHIzR','infantNum','adultNum','filter','3607758elrFYg','44iBsSBK','push','d9319e13-3211-4958-ba32-d66aeac35d31','161067lkSaIE','10544990JvglUO','isArray','isAlotment','child','map','1355283gXUfQW','isalotment','childUseBed','find','9OZSAYw','length','5369145BHDlub','childrenNum','forEach','infant','76ngmQFs'];a2_0x5169=function(){return _0x1fe822;};return a2_0x5169();}function getRoomItemRange(_0x304350,_0x27f837,_0x1cdac6={'child':'儿童','infant':'婴儿'}){const _0xd2e6a9=a2_0x5254;if(!_0x27f837[_0xd2e6a9(0x14f)])return{'childList':[],'infantList':[]};const _0x4164ef=Math['max'](..._0x27f837['map'](_0x1f8ddb=>Number(_0x1f8ddb['nMaxIn']))),_0x47cacc=_0x4164ef-_0x304350['adultNum']-_0x304350[_0xd2e6a9(0x13d)];let _0x3ca35c=_0x4164ef-_0x304350[_0xd2e6a9(0x13e)]-_0x304350['childrenNum'];if(_0x3ca35c>0x2)_0x3ca35c=0x2;const _0x141292=(_0x48776b,_0x27ee26)=>{const _0x2b9dc7=_0xd2e6a9,_0x3a7ba4=[];_0x3a7ba4[_0x2b9dc7(0x142)]({'value':0x0,'label':'0\x20'+_0x27ee26});for(let _0x26904e=0x0;_0x26904e<_0x48776b;_0x26904e++){_0x3a7ba4['push']({'value':_0x26904e+0x1,'label':''+(_0x26904e+0x1)+_0x27ee26});}return _0x3a7ba4;};return{'childList':_0x141292(_0x47cacc,_0x1cdac6[_0xd2e6a9(0x148)]),'infantList':_0x141292(_0x3ca35c,_0x1cdac6[_0xd2e6a9(0x135)])};}function a2_0x5254(_0x56dc94,_0x23cbe0){const _0x51693f=a2_0x5169();return a2_0x5254=function(_0x52544b,_0x33d873){_0x52544b=_0x52544b-0x133;let _0x4ab62d=_0x51693f[_0x52544b];return _0x4ab62d;},a2_0x5254(_0x56dc94,_0x23cbe0);}function getAdultRange(_0x2e889f,_0xf245de='成人'){const _0x4c0ba1=a2_0x5254;let _0x182373=Math['max'](..._0x2e889f[_0x4c0ba1(0x149)](_0x3e65a4=>Number(_0x3e65a4['strCode']))[_0x4c0ba1(0x13f)](_0x4da30c=>!isNaN(_0x4da30c)));if(!_0x182373)_0x182373=0x4;let _0x2953f6=[];for(var _0x5e6f1f=0x1;_0x5e6f1f<_0x182373+0x1;_0x5e6f1f++){_0x2953f6[_0x4c0ba1(0x142)]({'value':_0x5e6f1f,'label':''+_0x5e6f1f+_0xf245de});}return _0x2953f6;}const getTotalPeople=_0x2ab6ae=>{const _0x51eb2e=_0x2ab6ae['reduce']((_0x3f08c2,_0x45b1ec)=>{const _0x51457e=a2_0x5254;return _0x3f08c2+(_0x45b1ec[_0x51457e(0x13e)]||0x0)+(_0x45b1ec[_0x51457e(0x133)]||0x0)+(_0x45b1ec[_0x51457e(0x13d)]||0x0);},0x0);return _0x51eb2e;},getRoomType=(_0x54b075,_0x2ec3b7)=>{const _0x25b83b=a2_0x5254;if(_0x54b075===_0x25b83b(0x143)||_0x2ec3b7===0x1||_0x2ec3b7==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
1
+ function a2_0x1800(){const _0x428e2d=['length','isAlotment','child','5080300NJJMgw','2106475WDHhVm','list','nMaxIn','55ERglFA','2397102GnWJMF','childrenNum','infantNum','isArray','713922xwhOAP','find','push','reduce','max','isalotment','343992Akcllq','filter','some','625482UYGuXw','adultNum','map','4321312KwawSi','strCode'];a2_0x1800=function(){return _0x428e2d;};return a2_0x1800();}(function(_0x154128,_0x37f38b){const _0x2589fa=a2_0x4f06,_0x44a813=_0x154128();while(!![]){try{const _0x21f8ff=parseInt(_0x2589fa(0x105))/0x1+parseInt(_0x2589fa(0x101))/0x2+parseInt(_0x2589fa(0x10e))/0x3+-parseInt(_0x2589fa(0xfc))/0x4+parseInt(_0x2589fa(0x100))/0x5*(parseInt(_0x2589fa(0x10b))/0x6)+-parseInt(_0x2589fa(0xfd))/0x7+-parseInt(_0x2589fa(0xf7))/0x8;if(_0x21f8ff===_0x37f38b)break;else _0x44a813['push'](_0x44a813['shift']());}catch(_0x44ef05){_0x44a813['push'](_0x44a813['shift']());}}}(a2_0x1800,0x9c5c7));function getRoomCount(_0x211e27,_0x2f9fdf){const _0x449ebd=a2_0x4f06,_0x418a3b=Array[_0x449ebd(0x104)](_0x211e27);if(!_0x418a3b)_0x211e27=[_0x211e27];let _0x5e71f2=[];return _0x211e27['forEach'](_0x563e41=>{const _0x1e0a2b=_0x449ebd;let _0x154fd9=![];if(!_0x563e41[_0x1e0a2b(0x10a)]){let _0x46bc04=_0x563e41[_0x1e0a2b(0x10f)];if(_0x563e41['childUseBed']||!_0x2f9fdf[_0x1e0a2b(0xfb)])_0x46bc04+=_0x563e41[_0x1e0a2b(0x102)];const _0xc0c11f=_0x2f9fdf[_0x1e0a2b(0xfe)][_0x1e0a2b(0x106)](_0x2cf4b1=>Number(_0x2cf4b1[_0x1e0a2b(0xf8)])===_0x46bc04);if(!_0xc0c11f)_0x154fd9=!![];else{let _0x256d5a=_0x563e41[_0x1e0a2b(0x10f)]+_0x563e41[_0x1e0a2b(0x102)]+_0x563e41[_0x1e0a2b(0x103)];_0x256d5a>_0xc0c11f[_0x1e0a2b(0xff)]&&(_0x154fd9=!![]);}}_0x5e71f2[_0x1e0a2b(0x107)](_0x154fd9);}),_0x418a3b?_0x5e71f2:_0x5e71f2[0x0];}function getRoomConfig(_0x4a824d){const _0x1ebea3=a2_0x4f06;let _0x140b02=_0x4a824d[_0x1ebea3(0x10d)](_0x1118dd=>_0x1118dd[_0x1ebea3(0xf8)]==='childUseBed'),_0xc827fc=_0x4a824d[_0x1ebea3(0x10d)](_0x2fb9dc=>_0x2fb9dc[_0x1ebea3(0xf8)]===_0x1ebea3(0xfa));const _0x139acc=_0x4a824d[_0x1ebea3(0x10d)](_0x194415=>_0x194415[_0x1ebea3(0xf8)]==='infant'),_0x4acc92=_0x4a824d[_0x1ebea3(0x10d)](_0x300689=>_0x300689[_0x1ebea3(0xf8)]===_0x1ebea3(0xfb)),_0x17998f=_0x4a824d[_0x1ebea3(0xf6)](_0x5d194b=>{const _0x5347cd=_0x1ebea3;return{'strCode':_0x5d194b[_0x5347cd(0xf8)],'nMaxIn':_0x5d194b[_0x5347cd(0xff)]};});if(_0xc827fc){const _0x5cd06c=_0x4a824d[_0x1ebea3(0x10d)](_0x31b6ae=>_0x31b6ae[_0x1ebea3(0xf8)]=='2');_0xc827fc=_0xc827fc&&_0x5cd06c;}if(_0x140b02)_0x140b02=_0x140b02&&_0x4acc92;return{'childUseBed':_0x140b02,'isAlotment':_0xc827fc,'infant':_0x139acc,'child':_0x4acc92,'list':_0x17998f};}function isRoomPiece(_0x31aee0,_0x46f151){const _0x278982=a2_0x4f06;return _0x46f151&&_0x31aee0[_0x278982(0x10f)]===0x1&&_0x31aee0[_0x278982(0x102)]===0x0&&_0x31aee0[_0x278982(0x103)]===0x0;}function a2_0x4f06(_0x475c31,_0x53f3e2){const _0x1800c8=a2_0x1800();return a2_0x4f06=function(_0x4f068c,_0x3b0ece){_0x4f068c=_0x4f068c-0xf6;let _0x51ac6c=_0x1800c8[_0x4f068c];return _0x51ac6c;},a2_0x4f06(_0x475c31,_0x53f3e2);}function getRoomItemRange(_0x7e9fb3,_0x3c44c6,_0x27a83a={'child':'儿童','infant':'婴儿'}){const _0x4ba98b=a2_0x4f06;if(!_0x3c44c6[_0x4ba98b(0xf9)])return{'childList':[],'infantList':[]};const _0x4d32ed=Math[_0x4ba98b(0x109)](..._0x3c44c6[_0x4ba98b(0xf6)](_0x398661=>Number(_0x398661[_0x4ba98b(0xff)]))),_0x484fb6=_0x4d32ed-_0x7e9fb3['adultNum']-_0x7e9fb3[_0x4ba98b(0x103)];let _0xebe474=_0x4d32ed-_0x7e9fb3[_0x4ba98b(0x10f)]-_0x7e9fb3[_0x4ba98b(0x102)];if(_0xebe474>0x2)_0xebe474=0x2;const _0x57fc23=(_0x3f738f,_0x30c789)=>{const _0xd3c6d5=_0x4ba98b,_0xac0eaf=[];_0xac0eaf[_0xd3c6d5(0x107)]({'value':0x0,'label':'0\x20'+_0x30c789});for(let _0x23502e=0x0;_0x23502e<_0x3f738f;_0x23502e++){_0xac0eaf[_0xd3c6d5(0x107)]({'value':_0x23502e+0x1,'label':''+(_0x23502e+0x1)+_0x30c789});}return _0xac0eaf;};return{'childList':_0x57fc23(_0x484fb6,_0x27a83a['child']),'infantList':_0x57fc23(_0xebe474,_0x27a83a['infant'])};}function getAdultRange(_0x5f4906,_0x31819f='成人'){const _0x2e00e1=a2_0x4f06;let _0x2dd46f=Math[_0x2e00e1(0x109)](..._0x5f4906['map'](_0x4e86d7=>Number(_0x4e86d7[_0x2e00e1(0xf8)]))[_0x2e00e1(0x10c)](_0x3c1731=>!isNaN(_0x3c1731)));if(!_0x2dd46f)_0x2dd46f=0x4;let _0x314df7=[];for(var _0x28de01=0x1;_0x28de01<_0x2dd46f+0x1;_0x28de01++){_0x314df7[_0x2e00e1(0x107)]({'value':_0x28de01,'label':''+_0x28de01+_0x31819f});}return _0x314df7;}const getTotalPeople=_0x478bf2=>{const _0x1f04ec=a2_0x4f06,_0x135679=_0x478bf2[_0x1f04ec(0x108)]((_0x28a4ac,_0x20bf63)=>{const _0xa25cdc=_0x1f04ec;return _0x28a4ac+(_0x20bf63[_0xa25cdc(0x10f)]||0x0)+(_0x20bf63[_0xa25cdc(0x102)]||0x0)+(_0x20bf63[_0xa25cdc(0x103)]||0x0);},0x0);return _0x135679;},getRoomType=(_0x1b75cd,_0x128825)=>{if(_0x1b75cd==='type'||_0x128825===0x1||_0x128825==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
package/dist/roomOld.js CHANGED
@@ -1 +1 @@
1
- (function(_0x12b218,_0x59087b){const _0xd4ae69=a3_0x3908,_0x29e766=_0x12b218();while(!![]){try{const _0x77c492=parseInt(_0xd4ae69(0x1d5))/0x1*(parseInt(_0xd4ae69(0x1c0))/0x2)+parseInt(_0xd4ae69(0x1d0))/0x3+-parseInt(_0xd4ae69(0x1c9))/0x4*(-parseInt(_0xd4ae69(0x1ce))/0x5)+parseInt(_0xd4ae69(0x1c7))/0x6+parseInt(_0xd4ae69(0x1d9))/0x7*(parseInt(_0xd4ae69(0x1d1))/0x8)+-parseInt(_0xd4ae69(0x1d3))/0x9*(-parseInt(_0xd4ae69(0x1ca))/0xa)+-parseInt(_0xd4ae69(0x1c4))/0xb;if(_0x77c492===_0x59087b)break;else _0x29e766['push'](_0x29e766['shift']());}catch(_0x207509){_0x29e766['push'](_0x29e766['shift']());}}}(a3_0xa66d,0x61707));function getRoomCount(_0x34fa8b,_0x410886){const _0x56d465=a3_0x3908,_0x20ce14=Array['isArray'](_0x34fa8b);if(!_0x20ce14)_0x34fa8b=[_0x34fa8b];let _0x50fb89=[];return _0x34fa8b[_0x56d465(0x1da)](_0x1a7755=>{const _0x1862cd=_0x56d465;let _0x2996df=![];if(!_0x1a7755[_0x1862cd(0x1be)]){let _0x3a84bb=_0x1a7755[_0x1862cd(0x1cf)];if(_0x1a7755['childusebed']||!_0x410886[_0x1862cd(0x1d7)])_0x3a84bb+=_0x1a7755[_0x1862cd(0x1cd)];const _0x2be84e=_0x410886[_0x1862cd(0x1d4)][_0x1862cd(0x1c5)](_0x586175=>Number(_0x586175[_0x1862cd(0x1cc)])===_0x3a84bb);if(!_0x2be84e)_0x2996df=!![];else{let _0x2a9470=_0x1a7755['adultnum']+_0x1a7755[_0x1862cd(0x1cd)]+_0x1a7755[_0x1862cd(0x1c8)];_0x2a9470>_0x2be84e[_0x1862cd(0x1db)]&&(_0x2996df=!![]);}}_0x50fb89[_0x1862cd(0x1d8)](_0x2996df);}),_0x20ce14?_0x50fb89:_0x50fb89[0x0];}function getRoomConfig(_0x5911b6){const _0x3dc48f=a3_0x3908;let _0x5d45c4=_0x5911b6[_0x3dc48f(0x1d6)](_0x4909da=>_0x4909da[_0x3dc48f(0x1cc)]===_0x3dc48f(0x1c3)),_0x437a52=_0x5911b6['some'](_0xd41bd6=>_0xd41bd6[_0x3dc48f(0x1cc)]===_0x3dc48f(0x1bf));const _0x2288b1=_0x5911b6[_0x3dc48f(0x1d6)](_0x333806=>_0x333806[_0x3dc48f(0x1cc)]===_0x3dc48f(0x1c1)),_0x508988=_0x5911b6[_0x3dc48f(0x1d6)](_0x2916fe=>_0x2916fe[_0x3dc48f(0x1cc)]===_0x3dc48f(0x1d7)),_0x6c15d2=_0x5911b6['map'](_0x594009=>{const _0x3effa0=_0x3dc48f;return{'strCode':_0x594009[_0x3effa0(0x1cc)],'nMaxIn':_0x594009[_0x3effa0(0x1db)]};});if(_0x437a52){const _0x52b72d=_0x5911b6['some'](_0x5616d5=>_0x5616d5[_0x3dc48f(0x1cc)]=='2');_0x437a52=_0x437a52&&_0x52b72d;}if(_0x5d45c4)_0x5d45c4=_0x5d45c4&&_0x508988;return{'childusebed':_0x5d45c4,'half':_0x437a52,'infant':_0x2288b1,'child':_0x508988,'list':_0x6c15d2};}function isRoomPiece(_0x14c8cd,_0x33bb0d){const _0x345863=a3_0x3908;return _0x33bb0d&&_0x14c8cd[_0x345863(0x1cf)]===0x1&&_0x14c8cd['childrennum']===0x0&&_0x14c8cd[_0x345863(0x1c8)]===0x0;}function getRoomItemRange(_0x47f7b7,_0x61ba0d,_0x1df603={'child':'儿童','infant':'婴儿'}){const _0x2afa0a=a3_0x3908;if(!_0x61ba0d[_0x2afa0a(0x1c6)])return{'childList':[],'infantList':[]};const _0x80cff=Math['max'](..._0x61ba0d[_0x2afa0a(0x1cb)](_0x194ea6=>Number(_0x194ea6['nMaxIn']))),_0x137008=_0x80cff-_0x47f7b7[_0x2afa0a(0x1cf)]-_0x47f7b7[_0x2afa0a(0x1c8)];let _0x44ac42=_0x80cff-_0x47f7b7[_0x2afa0a(0x1cf)]-_0x47f7b7[_0x2afa0a(0x1cd)];if(_0x44ac42>0x2)_0x44ac42=0x2;const _0x6093b9=(_0x114317,_0x1777c8)=>{const _0x4df07b=_0x2afa0a,_0x2e8eb8=[];_0x2e8eb8[_0x4df07b(0x1d8)]({'value':0x0,'label':'0\x20'+_0x1777c8});for(let _0x3b259b=0x0;_0x3b259b<_0x114317;_0x3b259b++){_0x2e8eb8['push']({'value':_0x3b259b+0x1,'label':''+(_0x3b259b+0x1)+_0x1777c8});}return _0x2e8eb8;};return{'childList':_0x6093b9(_0x137008,_0x1df603[_0x2afa0a(0x1d7)]),'infantList':_0x6093b9(_0x44ac42,_0x1df603[_0x2afa0a(0x1c1)])};}function getAdultRange(_0x59f7e0,_0x1ec41f='成人'){const _0x1c1990=a3_0x3908;let _0x156c5f=Math[_0x1c1990(0x1c2)](..._0x59f7e0['map'](_0x421da6=>Number(_0x421da6['strCode']))[_0x1c1990(0x1d2)](_0xd4508c=>!isNaN(_0xd4508c)));if(!_0x156c5f)_0x156c5f=0x4;let _0x297641=[];for(var _0x355d2f=0x1;_0x355d2f<_0x156c5f+0x1;_0x355d2f++){_0x297641['push']({'value':_0x355d2f,'label':''+_0x355d2f+_0x1ec41f});}return _0x297641;}function a3_0xa66d(){const _0x1801af=['forEach','nMaxIn','reduce','isalotment','half','116602ugZCqJ','infant','max','childusebed','30180876lucAQN','find','length','30756qJjAgY','infantnum','238732upidOm','45760sARdgE','map','strCode','childrennum','55hQnyPg','adultnum','1733694PDAzfY','8mluWke','filter','684LesvJf','list','13CBABrS','some','child','push','5583207DVUbpO'];a3_0xa66d=function(){return _0x1801af;};return a3_0xa66d();}const getTotalPeople=_0x3be097=>{const _0xa50c55=a3_0x3908,_0x3e3bbe=_0x3be097[_0xa50c55(0x1bd)]((_0x6737b,_0x12f1b1)=>{const _0x31c63e=_0xa50c55;return _0x6737b+(_0x12f1b1[_0x31c63e(0x1cf)]||0x0)+(_0x12f1b1[_0x31c63e(0x1cd)]||0x0)+(_0x12f1b1[_0x31c63e(0x1c8)]||0x0);},0x0);return _0x3e3bbe;};function a3_0x3908(_0x5092da,_0x334b29){const _0xa66d6e=a3_0xa66d();return a3_0x3908=function(_0x3908dd,_0x1c5298){_0x3908dd=_0x3908dd-0x1bd;let _0xb1e208=_0xa66d6e[_0x3908dd];return _0xb1e208;},a3_0x3908(_0x5092da,_0x334b29);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
1
+ (function(_0x2ad0f9,_0x40ac4c){const _0x3e7870=a3_0x5bad,_0x1dd14b=_0x2ad0f9();while(!![]){try{const _0x29dc46=-parseInt(_0x3e7870(0x1ad))/0x1*(parseInt(_0x3e7870(0x1b2))/0x2)+parseInt(_0x3e7870(0x1c9))/0x3+-parseInt(_0x3e7870(0x1c1))/0x4*(-parseInt(_0x3e7870(0x1b3))/0x5)+parseInt(_0x3e7870(0x1af))/0x6*(-parseInt(_0x3e7870(0x1bf))/0x7)+-parseInt(_0x3e7870(0x1b6))/0x8*(-parseInt(_0x3e7870(0x1c7))/0x9)+-parseInt(_0x3e7870(0x1b0))/0xa*(-parseInt(_0x3e7870(0x1b4))/0xb)+parseInt(_0x3e7870(0x1b9))/0xc*(parseInt(_0x3e7870(0x1c8))/0xd);if(_0x29dc46===_0x40ac4c)break;else _0x1dd14b['push'](_0x1dd14b['shift']());}catch(_0x1a66f2){_0x1dd14b['push'](_0x1dd14b['shift']());}}}(a3_0x5b1c,0xa11b1));function getRoomCount(_0x49bfde,_0x9c692c){const _0x25cdee=a3_0x5bad,_0x164440=Array[_0x25cdee(0x1bd)](_0x49bfde);if(!_0x164440)_0x49bfde=[_0x49bfde];let _0x5162cb=[];return _0x49bfde['forEach'](_0x431603=>{const _0x5d5e74=_0x25cdee;let _0x2a54af=![];if(!_0x431603[_0x5d5e74(0x1c2)]){let _0x4d1632=_0x431603['adultnum'];if(_0x431603['childusebed']||!_0x9c692c[_0x5d5e74(0x1c4)])_0x4d1632+=_0x431603['childrennum'];const _0x5c9100=_0x9c692c[_0x5d5e74(0x1b1)][_0x5d5e74(0x1b8)](_0x18ca33=>Number(_0x18ca33[_0x5d5e74(0x1bb)])===_0x4d1632);if(!_0x5c9100)_0x2a54af=!![];else{let _0x385426=_0x431603[_0x5d5e74(0x1c5)]+_0x431603[_0x5d5e74(0x1c0)]+_0x431603['infantnum'];_0x385426>_0x5c9100['nMaxIn']&&(_0x2a54af=!![]);}}_0x5162cb[_0x5d5e74(0x1ae)](_0x2a54af);}),_0x164440?_0x5162cb:_0x5162cb[0x0];}function getRoomConfig(_0x34a818){const _0x5af60d=a3_0x5bad;let _0x22a7e5=_0x34a818[_0x5af60d(0x1ba)](_0x23d278=>_0x23d278[_0x5af60d(0x1bb)]===_0x5af60d(0x1c6)),_0x531546=_0x34a818['some'](_0x25e1fa=>_0x25e1fa[_0x5af60d(0x1bb)]===_0x5af60d(0x1ac));const _0x2cc791=_0x34a818[_0x5af60d(0x1ba)](_0x1a48be=>_0x1a48be[_0x5af60d(0x1bb)]===_0x5af60d(0x1b5)),_0x3cae89=_0x34a818[_0x5af60d(0x1ba)](_0x5994cb=>_0x5994cb[_0x5af60d(0x1bb)]===_0x5af60d(0x1c4)),_0x1d10bc=_0x34a818[_0x5af60d(0x1b7)](_0x15982b=>{const _0x2de36e=_0x5af60d;return{'strCode':_0x15982b['strCode'],'nMaxIn':_0x15982b[_0x2de36e(0x1be)]};});if(_0x531546){const _0x2b03c5=_0x34a818['some'](_0x5500bb=>_0x5500bb['strCode']=='2');_0x531546=_0x531546&&_0x2b03c5;}if(_0x22a7e5)_0x22a7e5=_0x22a7e5&&_0x3cae89;return{'childusebed':_0x22a7e5,'half':_0x531546,'infant':_0x2cc791,'child':_0x3cae89,'list':_0x1d10bc};}function isRoomPiece(_0x2ec1dc,_0x53652c){const _0x539efb=a3_0x5bad;return _0x53652c&&_0x2ec1dc[_0x539efb(0x1c5)]===0x1&&_0x2ec1dc[_0x539efb(0x1c0)]===0x0&&_0x2ec1dc[_0x539efb(0x1ca)]===0x0;}function a3_0x5bad(_0x22600e,_0x514976){const _0x5b1c7f=a3_0x5b1c();return a3_0x5bad=function(_0x5bad4a,_0x4d6e18){_0x5bad4a=_0x5bad4a-0x1ac;let _0x12f744=_0x5b1c7f[_0x5bad4a];return _0x12f744;},a3_0x5bad(_0x22600e,_0x514976);}function getRoomItemRange(_0x52c88d,_0x466a87,_0x5de155={'child':'儿童','infant':'婴儿'}){const _0x24f3b3=a3_0x5bad;if(!_0x466a87[_0x24f3b3(0x1bc)])return{'childList':[],'infantList':[]};const _0x1b0477=Math['max'](..._0x466a87[_0x24f3b3(0x1b7)](_0x1320bb=>Number(_0x1320bb[_0x24f3b3(0x1be)]))),_0x6e881d=_0x1b0477-_0x52c88d['adultnum']-_0x52c88d[_0x24f3b3(0x1ca)];let _0x12c7c7=_0x1b0477-_0x52c88d['adultnum']-_0x52c88d[_0x24f3b3(0x1c0)];if(_0x12c7c7>0x2)_0x12c7c7=0x2;const _0xe627f6=(_0x2e1f74,_0x262124)=>{const _0xa54bc=_0x24f3b3,_0x507ffe=[];_0x507ffe[_0xa54bc(0x1ae)]({'value':0x0,'label':'0\x20'+_0x262124});for(let _0x5ef7ce=0x0;_0x5ef7ce<_0x2e1f74;_0x5ef7ce++){_0x507ffe[_0xa54bc(0x1ae)]({'value':_0x5ef7ce+0x1,'label':''+(_0x5ef7ce+0x1)+_0x262124});}return _0x507ffe;};return{'childList':_0xe627f6(_0x6e881d,_0x5de155[_0x24f3b3(0x1c4)]),'infantList':_0xe627f6(_0x12c7c7,_0x5de155[_0x24f3b3(0x1b5)])};}function getAdultRange(_0x23911d,_0x451552='成人'){const _0x336a34=a3_0x5bad;let _0x3e4601=Math[_0x336a34(0x1c3)](..._0x23911d[_0x336a34(0x1b7)](_0x57b67a=>Number(_0x57b67a[_0x336a34(0x1bb)]))['filter'](_0x5a6966=>!isNaN(_0x5a6966)));if(!_0x3e4601)_0x3e4601=0x4;let _0x4984d1=[];for(var _0x82db67=0x1;_0x82db67<_0x3e4601+0x1;_0x82db67++){_0x4984d1['push']({'value':_0x82db67,'label':''+_0x82db67+_0x451552});}return _0x4984d1;}const getTotalPeople=_0x29a154=>{const _0xa690e0=_0x29a154['reduce']((_0x2be22a,_0x585ac5)=>{const _0x125ce6=a3_0x5bad;return _0x2be22a+(_0x585ac5['adultnum']||0x0)+(_0x585ac5[_0x125ce6(0x1c0)]||0x0)+(_0x585ac5['infantnum']||0x0);},0x0);return _0xa690e0;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};function a3_0x5b1c(){const _0x3a318c=['2181118DHbzNY','10ZPzNEj','1040666Mrhoah','infant','109352ZJBzCR','map','find','72NkHUbT','some','strCode','length','isArray','nMaxIn','84SflQdv','childrennum','238780JUtjkK','isalotment','max','child','adultnum','childusebed','396NOEErn','1632423HGkODS','438660bxHlXw','infantnum','half','1sdlfnN','push','408042eYLNMS','100yEnmoJ','list'];a3_0x5b1c=function(){return _0x3a318c;};return a3_0x5b1c();}
package/dist/system.js ADDED
@@ -0,0 +1 @@
1
+ (function(_0x3cf846,_0x11444f){const _0x134a86=a4_0x1b85,_0xb6f6b=_0x3cf846();while(!![]){try{const _0x3c94f8=-parseInt(_0x134a86(0xd8))/0x1+-parseInt(_0x134a86(0xe1))/0x2*(parseInt(_0x134a86(0xec))/0x3)+-parseInt(_0x134a86(0xe2))/0x4*(-parseInt(_0x134a86(0xd7))/0x5)+-parseInt(_0x134a86(0xdd))/0x6*(parseInt(_0x134a86(0xe9))/0x7)+-parseInt(_0x134a86(0xdf))/0x8*(parseInt(_0x134a86(0xe8))/0x9)+parseInt(_0x134a86(0xe6))/0xa*(parseInt(_0x134a86(0xe4))/0xb)+-parseInt(_0x134a86(0xe7))/0xc*(-parseInt(_0x134a86(0xe3))/0xd);if(_0x3c94f8===_0x11444f)break;else _0xb6f6b['push'](_0xb6f6b['shift']());}catch(_0x47d86c){_0xb6f6b['push'](_0xb6f6b['shift']());}}}(a4_0x1daa,0x22778));function getDocInfo(_0x180e63,_0x55958c='idNumber',_0x2b5dfa=![]){const _0x479e5a=a4_0x1b85;let _0xbd64e5=_0x2b5dfa?'\x20':'';if(_0x55958c===_0x479e5a(0xe5))return _0x180e63['strsfzh']||_0x180e63[_0x479e5a(0xe0)]||_0x180e63[_0x479e5a(0xee)]||_0x180e63[_0x479e5a(0xde)]||_0x180e63[_0x479e5a(0xea)]||'';if(_0x55958c==='name'){if(_0x180e63[_0x479e5a(0xda)])return _0x180e63[_0x479e5a(0xda)];const _0x380ebd=_0x180e63[_0x479e5a(0xf1)]||_0x180e63['firstName']||_0x180e63[_0x479e5a(0xd9)]||'',_0x395cbb=_0x180e63['strlastname']||_0x180e63[_0x479e5a(0xed)]||_0x180e63[_0x479e5a(0xf0)]||'';return[_0x380ebd,_0x395cbb]['filter'](Boolean)['join'](_0xbd64e5)[_0x479e5a(0xef)]()||'';}if(_0x55958c==='phone')return _0x180e63[_0x479e5a(0xdb)]||_0x180e63[_0x479e5a(0xdc)]||_0x180e63[_0x479e5a(0xeb)]||'';return'';}function a4_0x1b85(_0x4c6400,_0x45eb09){const _0x1daaab=a4_0x1daa();return a4_0x1b85=function(_0x1b85b9,_0x3f24af){_0x1b85b9=_0x1b85b9-0xd7;let _0x316424=_0x1daaab[_0x1b85b9];return _0x316424;},a4_0x1b85(_0x4c6400,_0x45eb09);}function a4_0x1daa(){const _0x5e37b1=['strzjhm','strdhhm','1263ZcLHvM','lastName','strhxz','trim','strmz','strfirstname','20uKGoAS','268442mYPLUu','strxs','strxm','strlxdh','strlxfs','30unsyrV','strggtxz','48184xWCZwR','strhzbh','784jComJj','81672pxvfbC','104aFfLCy','2918762ptPeId','idNumber','10RtmPRW','534960UAVakN','117FBskym','70987qMtbUy'];a4_0x1daa=function(){return _0x5e37b1;};return a4_0x1daa();}export default{'getDocInfo':getDocInfo};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5e2a09,_0x5afc74){const _0x3b3faa=a4_0x4e99,_0x100ee7=_0x5e2a09();while(!![]){try{const _0x473127=parseInt(_0x3b3faa(0xc1))/0x1+parseInt(_0x3b3faa(0xcf))/0x2*(parseInt(_0x3b3faa(0xcc))/0x3)+parseInt(_0x3b3faa(0xc6))/0x4*(parseInt(_0x3b3faa(0xc8))/0x5)+parseInt(_0x3b3faa(0xcb))/0x6+parseInt(_0x3b3faa(0xd2))/0x7*(parseInt(_0x3b3faa(0xd5))/0x8)+-parseInt(_0x3b3faa(0xdc))/0x9*(-parseInt(_0x3b3faa(0xd8))/0xa)+-parseInt(_0x3b3faa(0xc3))/0xb*(parseInt(_0x3b3faa(0xbe))/0xc);if(_0x473127===_0x5afc74)break;else _0x100ee7['push'](_0x100ee7['shift']());}catch(_0x3da1f1){_0x100ee7['push'](_0x100ee7['shift']());}}}(a4_0x355d,0x77909));function email(_0x1f3710){const _0xa394c1=a4_0x4e99;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0xa394c1(0xbf)](_0x1f3710);}function a4_0x355d(){const _0xa431fd=['653444LAKnBC','^\x5cd{','replace','8aDdcGV','[object\x20RegExp]','1899835hUtaMP','object','852','4441572BxAXBn','15297MtLSgP','length','[object\x20Object]','360RpmbWb','isArray','indexOf','35goDpFy','call','number','149784ZrXmQt','function','then','9091830bXISOV','toString','split','parse','9IsTgfk','string','boolean','624sIZJdN','test','includes','157931NsEHpK','prototype'];a4_0x355d=function(){return _0xa431fd;};return a4_0x355d();}function a4_0x4e99(_0x229dd7,_0x2cbc60){const _0x355dad=a4_0x355d();return a4_0x4e99=function(_0x4e99f6,_0x575bf4){_0x4e99f6=_0x4e99f6-0xbe;let _0xade83d=_0x355dad[_0x4e99f6];return _0xade83d;},a4_0x4e99(_0x229dd7,_0x2cbc60);}function mobile(_0x21f3a6){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x21f3a6);}function isValidPhoneNumber(_0x230111){const _0x43d80a=a4_0x4e99;if(_0x230111[_0x43d80a(0xc0)]('-')){const [_0x2e73ff,_0x55a61e]=_0x230111[_0x43d80a(0xda)]('-');if(_0x2e73ff==='86')return/^\d{11}$/[_0x43d80a(0xbf)](_0x55a61e)&&_0x55a61e['startsWith']('1');else return _0x2e73ff===_0x43d80a(0xca)?/^\d{8}$/[_0x43d80a(0xbf)](_0x55a61e)&&['5','6','9','8']['includes'](_0x55a61e['charAt'](0x0)):/^\d+$/[_0x43d80a(0xbf)](_0x55a61e);}else return/^\d+$/[_0x43d80a(0xbf)](_0x230111);}function url(_0x2d99b1){const _0x21cfb5=a4_0x4e99;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x21cfb5(0xbf)](_0x2d99b1);}function date(_0xbb3c8f){const _0x149185=a4_0x4e99;if(!_0xbb3c8f)return![];if(number(_0xbb3c8f))_0xbb3c8f=+_0xbb3c8f;return!/Invalid|NaN/[_0x149185(0xbf)](new Date(_0xbb3c8f)[_0x149185(0xd9)]());}function dateISO(_0x188c25){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x188c25);}function isNumber(_0x7a6bda){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x7a6bda);}function isString(_0x2dae6e){const _0x4620a1=a4_0x4e99;return typeof _0x2dae6e===_0x4620a1(0xdd);}function digits(_0x4d713a){return/^\d+$/['test'](_0x4d713a);}function idCard(_0x3ab65e){const _0x5b46a4=a4_0x4e99;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)$/[_0x5b46a4(0xbf)](_0x3ab65e);}function carNo(_0x165646){const _0x19d9e3=a4_0x4e99,_0x1aaab0=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x264cdb=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x165646[_0x19d9e3(0xcd)]===0x7)return _0x264cdb[_0x19d9e3(0xbf)](_0x165646);if(_0x165646[_0x19d9e3(0xcd)]===0x8)return _0x1aaab0[_0x19d9e3(0xbf)](_0x165646);return![];}function amount(_0x590a68){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x590a68);}function chinese(_0x55e440){const _0x4686c3=/^[\u4e00-\u9fa5]+$/gi;return _0x4686c3['test'](_0x55e440);}function letter(_0x4f2a5d){return/^[a-zA-Z]*$/['test'](_0x4f2a5d);}function enOrNum(_0x112076){const _0x2f4951=a4_0x4e99,_0x57e4eb=/^[0-9a-zA-Z]*$/g;return _0x57e4eb[_0x2f4951(0xbf)](_0x112076);}function contains(_0x2b09d5,_0x1e9902){const _0x4a73be=a4_0x4e99;return _0x2b09d5[_0x4a73be(0xd1)](_0x1e9902)>=0x0;}function range(_0x2c33ee,_0x13b946){return _0x2c33ee>=_0x13b946[0x0]&&_0x2c33ee<=_0x13b946[0x1];}function rangeLength(_0x1608b8,_0x44ffc2){const _0x4bb79d=a4_0x4e99;return _0x1608b8[_0x4bb79d(0xcd)]>=_0x44ffc2[0x0]&&_0x1608b8['length']<=_0x44ffc2[0x1];}function landline(_0x700f0e){const _0x56edd4=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x56edd4['test'](_0x700f0e);}function empty(_0x284f3f){const _0x44cfda=a4_0x4e99;switch(typeof _0x284f3f){case'undefined':return!![];case'string':if(_0x284f3f[_0x44cfda(0xc5)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x44cfda(0xcd)]==0x0)return!![];break;case _0x44cfda(0xde):if(!_0x284f3f)return!![];break;case _0x44cfda(0xd4):if(_0x284f3f===0x0||isNaN(_0x284f3f))return!![];break;case _0x44cfda(0xc9):if(_0x284f3f===null||_0x284f3f['length']===0x0)return!![];for(const _0x1ab358 in _0x284f3f){return![];}return!![];}return![];}function jsonString(_0xfee45d){const _0x225465=a4_0x4e99;if(typeof _0xfee45d==='string')try{const _0x20200c=JSON[_0x225465(0xdb)](_0xfee45d);if(typeof _0x20200c===_0x225465(0xc9)&&_0x20200c)return!![];return![];}catch(_0x15f6ed){return![];}return![];}function array(_0x4c2fac){const _0x46f2eb=a4_0x4e99;if(typeof Array[_0x46f2eb(0xd0)]===_0x46f2eb(0xd6))return Array['isArray'](_0x4c2fac);return Object[_0x46f2eb(0xc2)][_0x46f2eb(0xd9)][_0x46f2eb(0xd3)](_0x4c2fac)==='[object\x20Array]';}function object(_0x394176){const _0x4a1ef=a4_0x4e99;return Object['prototype'][_0x4a1ef(0xd9)][_0x4a1ef(0xd3)](_0x394176)===_0x4a1ef(0xce);}function code(_0x588c70,_0x4ea6ef=0x6){const _0x300976=a4_0x4e99;return new RegExp(_0x300976(0xc4)+_0x4ea6ef+'}$')['test'](_0x588c70);}function func(_0x1c0aa9){const _0x2aab0d=a4_0x4e99;return typeof _0x1c0aa9===_0x2aab0d(0xd6);}function promise(_0x29caa5){const _0xeef8a4=a4_0x4e99;return object(_0x29caa5)&&func(_0x29caa5[_0xeef8a4(0xd7)])&&func(_0x29caa5['catch']);}function image(_0x57db5f){const _0x364898=a4_0x4e99,_0x468f58=_0x57db5f['split']('?')[0x0],_0x2bfd58=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2bfd58[_0x364898(0xbf)](_0x468f58);}function video(_0x4e024b){const _0x4c8416=a4_0x4e99,_0x1735f6=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x1735f6[_0x4c8416(0xbf)](_0x4e024b);}function regExp(_0x2c03d7){const _0x25db8d=a4_0x4e99;return _0x2c03d7&&Object[_0x25db8d(0xc2)][_0x25db8d(0xd9)]['call'](_0x2c03d7)===_0x25db8d(0xc7);}function isNumeric(_0x487e2d,_0x28c2ae=0x0){const _0x32bfc2=a4_0x4e99;if(typeof _0x487e2d===_0x32bfc2(0xd4))_0x487e2d=_0x487e2d['toString']();if(typeof _0x487e2d!==_0x32bfc2(0xdd))return![];switch(_0x28c2ae){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x487e2d);case 0x2:return/^-\d+(\.\d+)?$/[_0x32bfc2(0xbf)](_0x487e2d);case 0x3:return/^-?\d+$/['test'](_0x487e2d);case 0x4:return/^\d+$/[_0x32bfc2(0xbf)](_0x487e2d);case 0x5:return/^-\d+$/[_0x32bfc2(0xbf)](_0x487e2d);default:return/^-?\d*\.?\d*$/[_0x32bfc2(0xbf)](_0x487e2d)&&!_0x487e2d['startsWith']('.')&&!_0x487e2d['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};
1
+ (function(_0x5072fd,_0x915d9){const _0x41d15d=a5_0x3da9,_0x5880c8=_0x5072fd();while(!![]){try{const _0x15d9df=-parseInt(_0x41d15d(0x1bd))/0x1+-parseInt(_0x41d15d(0x1ae))/0x2*(parseInt(_0x41d15d(0x1c8))/0x3)+-parseInt(_0x41d15d(0x1c1))/0x4*(-parseInt(_0x41d15d(0x1ad))/0x5)+parseInt(_0x41d15d(0x1af))/0x6+parseInt(_0x41d15d(0x1be))/0x7*(parseInt(_0x41d15d(0x1bc))/0x8)+-parseInt(_0x41d15d(0x1bf))/0x9*(parseInt(_0x41d15d(0x1b3))/0xa)+parseInt(_0x41d15d(0x1b4))/0xb*(parseInt(_0x41d15d(0x1c3))/0xc);if(_0x15d9df===_0x915d9)break;else _0x5880c8['push'](_0x5880c8['shift']());}catch(_0x431d9a){_0x5880c8['push'](_0x5880c8['shift']());}}}(a5_0x4ab3,0x63e94));function email(_0x408160){const _0x54ed56=a5_0x3da9;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x54ed56(0x1b8)](_0x408160);}function mobile(_0x4c8f04){const _0x4ea735=a5_0x3da9;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x4ea735(0x1b8)](_0x4c8f04);}function isValidPhoneNumber(_0x5e6456){const _0x1e2840=a5_0x3da9;if(_0x5e6456['includes']('-')){const [_0x27b386,_0x5046b3]=_0x5e6456[_0x1e2840(0x1b5)]('-');if(_0x27b386==='86')return/^\d{11}$/[_0x1e2840(0x1b8)](_0x5046b3)&&_0x5046b3[_0x1e2840(0x1a8)]('1');else return _0x27b386==='852'?/^\d{8}$/[_0x1e2840(0x1b8)](_0x5046b3)&&['5','6','9','8'][_0x1e2840(0x1c6)](_0x5046b3[_0x1e2840(0x1a9)](0x0)):/^\d+$/[_0x1e2840(0x1b8)](_0x5046b3);}else return/^\d+$/['test'](_0x5e6456);}function url(_0x11a678){const _0x1c458e=a5_0x3da9;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x1c458e(0x1b8)](_0x11a678);}function date(_0x44c329){const _0x59620d=a5_0x3da9;if(!_0x44c329)return![];if(number(_0x44c329))_0x44c329=+_0x44c329;return!/Invalid|NaN/[_0x59620d(0x1b8)](new Date(_0x44c329)[_0x59620d(0x1b7)]());}function dateISO(_0x345380){const _0x2c99b0=a5_0x3da9;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2c99b0(0x1b8)](_0x345380);}function isNumber(_0x4544cf){const _0x5ba154=a5_0x3da9;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x5ba154(0x1b8)](_0x4544cf);}function isString(_0x45a2ed){const _0x12d085=a5_0x3da9;return typeof _0x45a2ed===_0x12d085(0x1bb);}function digits(_0x316dc8){const _0x696cbf=a5_0x3da9;return/^\d+$/[_0x696cbf(0x1b8)](_0x316dc8);}function idCard(_0x57e8c7){const _0x314dda=a5_0x3da9;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)$/[_0x314dda(0x1b8)](_0x57e8c7);}function carNo(_0x2bb1c7){const _0x27efa4=a5_0x3da9,_0x2ef037=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x560e37=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x2bb1c7[_0x27efa4(0x1b6)]===0x7)return _0x560e37[_0x27efa4(0x1b8)](_0x2bb1c7);if(_0x2bb1c7['length']===0x8)return _0x2ef037[_0x27efa4(0x1b8)](_0x2bb1c7);return![];}function amount(_0x399b1a){const _0x5a2099=a5_0x3da9;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x5a2099(0x1b8)](_0x399b1a);}function chinese(_0x109797){const _0x2d1ab2=a5_0x3da9,_0x22ea16=/^[\u4e00-\u9fa5]+$/gi;return _0x22ea16[_0x2d1ab2(0x1b8)](_0x109797);}function letter(_0x415ec4){return/^[a-zA-Z]*$/['test'](_0x415ec4);}function enOrNum(_0x245161){const _0x461ca1=a5_0x3da9,_0x214030=/^[0-9a-zA-Z]*$/g;return _0x214030[_0x461ca1(0x1b8)](_0x245161);}function contains(_0x5c3442,_0x52500a){const _0x1b1ed6=a5_0x3da9;return _0x5c3442[_0x1b1ed6(0x1c4)](_0x52500a)>=0x0;}function range(_0x11cac5,_0x59449b){return _0x11cac5>=_0x59449b[0x0]&&_0x11cac5<=_0x59449b[0x1];}function rangeLength(_0x3fbd09,_0x393908){const _0x3bc45e=a5_0x3da9;return _0x3fbd09[_0x3bc45e(0x1b6)]>=_0x393908[0x0]&&_0x3fbd09['length']<=_0x393908[0x1];}function landline(_0x512bb7){const _0x2026ff=a5_0x3da9,_0x57087c=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x57087c[_0x2026ff(0x1b8)](_0x512bb7);}function empty(_0x588c8d){const _0x264613=a5_0x3da9;switch(typeof _0x588c8d){case _0x264613(0x1c9):return!![];case _0x264613(0x1bb):if(_0x588c8d['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x264613(0x1b6)]==0x0)return!![];break;case _0x264613(0x1c0):if(!_0x588c8d)return!![];break;case _0x264613(0x1c5):if(_0x588c8d===0x0||isNaN(_0x588c8d))return!![];break;case _0x264613(0x1b9):if(_0x588c8d===null||_0x588c8d[_0x264613(0x1b6)]===0x0)return!![];for(const _0x405c65 in _0x588c8d){return![];}return!![];}return![];}function jsonString(_0x58f539){const _0x3f3a2d=a5_0x3da9;if(typeof _0x58f539===_0x3f3a2d(0x1bb))try{const _0xdbb0dc=JSON[_0x3f3a2d(0x1c2)](_0x58f539);if(typeof _0xdbb0dc==='object'&&_0xdbb0dc)return!![];return![];}catch(_0x566908){return![];}return![];}function array(_0x399418){const _0x41afda=a5_0x3da9;if(typeof Array[_0x41afda(0x1ac)]===_0x41afda(0x1b0))return Array[_0x41afda(0x1ac)](_0x399418);return Object[_0x41afda(0x1c7)][_0x41afda(0x1b7)][_0x41afda(0x1ab)](_0x399418)==='[object\x20Array]';}function object(_0x403fb2){const _0x36d4c0=a5_0x3da9;return Object[_0x36d4c0(0x1c7)][_0x36d4c0(0x1b7)]['call'](_0x403fb2)===_0x36d4c0(0x1b2);}function a5_0x3da9(_0x463b32,_0x43000a){const _0x4ab33e=a5_0x4ab3();return a5_0x3da9=function(_0x3da957,_0x532aba){_0x3da957=_0x3da957-0x1a8;let _0x30bd95=_0x4ab33e[_0x3da957];return _0x30bd95;},a5_0x3da9(_0x463b32,_0x43000a);}function code(_0x8cf25,_0x563cf7=0x6){const _0x39a0ab=a5_0x3da9;return new RegExp(_0x39a0ab(0x1ba)+_0x563cf7+'}$')[_0x39a0ab(0x1b8)](_0x8cf25);}function a5_0x4ab3(){const _0x3afd66=['1151244psNrkM','function','[object\x20RegExp]','[object\x20Object]','2402250swQGLT','22KyWRVH','split','length','toString','test','object','^\x5cd{','string','8rnapDD','596274ZCnQUj','3188850KZySdY','27pEJSXO','boolean','8Momvwj','parse','3367392IRxXlV','indexOf','number','includes','prototype','589227KTurdh','undefined','startsWith','charAt','catch','call','isArray','1784845aaklwL','2mGWDJa'];a5_0x4ab3=function(){return _0x3afd66;};return a5_0x4ab3();}function func(_0x279b24){const _0x1ec8ec=a5_0x3da9;return typeof _0x279b24===_0x1ec8ec(0x1b0);}function promise(_0x1b413f){const _0x547c4e=a5_0x3da9;return object(_0x1b413f)&&func(_0x1b413f['then'])&&func(_0x1b413f[_0x547c4e(0x1aa)]);}function image(_0x113d82){const _0x5631bc=a5_0x3da9,_0x4937d0=_0x113d82[_0x5631bc(0x1b5)]('?')[0x0],_0x425157=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x425157[_0x5631bc(0x1b8)](_0x4937d0);}function video(_0x22101a){const _0x221f92=a5_0x3da9,_0x8380d=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x8380d[_0x221f92(0x1b8)](_0x22101a);}function regExp(_0x5e014a){const _0x274392=a5_0x3da9;return _0x5e014a&&Object['prototype'][_0x274392(0x1b7)][_0x274392(0x1ab)](_0x5e014a)===_0x274392(0x1b1);}function isNumeric(_0x2af087,_0x26b872=0x0){const _0x3529f3=a5_0x3da9;if(typeof _0x2af087==='number')_0x2af087=_0x2af087[_0x3529f3(0x1b7)]();if(typeof _0x2af087!==_0x3529f3(0x1bb))return![];switch(_0x26b872){case 0x1:return/^\d+(\.\d+)?$/[_0x3529f3(0x1b8)](_0x2af087);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x2af087);case 0x3:return/^-?\d+$/[_0x3529f3(0x1b8)](_0x2af087);case 0x4:return/^\d+$/[_0x3529f3(0x1b8)](_0x2af087);case 0x5:return/^-\d+$/[_0x3529f3(0x1b8)](_0x2af087);default:return/^-?\d*\.?\d*$/['test'](_0x2af087)&&!_0x2af087[_0x3529f3(0x1a8)]('.')&&!_0x2af087['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_0x8b7660=a5_0x49b8;(function(_0x5b2496,_0x26aec7){const _0x4426da=a5_0x49b8,_0x75d5ae=_0x5b2496();while(!![]){try{const _0x426e83=parseInt(_0x4426da(0xa4))/0x1+-parseInt(_0x4426da(0x90))/0x2*(parseInt(_0x4426da(0xb6))/0x3)+parseInt(_0x4426da(0xac))/0x4*(parseInt(_0x4426da(0xc2))/0x5)+-parseInt(_0x4426da(0xaf))/0x6+parseInt(_0x4426da(0xc0))/0x7+-parseInt(_0x4426da(0x92))/0x8*(parseInt(_0x4426da(0x95))/0x9)+-parseInt(_0x4426da(0xae))/0xa*(-parseInt(_0x4426da(0x99))/0xb);if(_0x426e83===_0x26aec7)break;else _0x75d5ae['push'](_0x75d5ae['shift']());}catch(_0x49fa46){_0x75d5ae['push'](_0x75d5ae['shift']());}}}(a5_0x1fb8,0x51338));function fmtNum(_0x880f61){const _0xca1fd5=a5_0x49b8;if(_0x880f61==0x0)return'0';if(!_0x880f61)return'';let _0x53f76c=typeof _0x880f61==='string'?parseFloat(_0x880f61):_0x880f61;if(isNaN(_0x53f76c))return'';return _0x53f76c[_0xca1fd5(0x88)]('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x20d717,_0x1cc74c=![]){const _0x5df7c7=a5_0x49b8;let _0x135fb4={'surname':'','givenName':''};if(_0x1cc74c){const _0x377309=_0x20d717['includes'](',')?_0x20d717[_0x5df7c7(0xc1)](','):_0x20d717['split'](/\s+/);_0x377309[_0x5df7c7(0xa2)]>=0x2&&(_0x135fb4['surname']=_0x377309[0x0][_0x5df7c7(0xba)](),_0x135fb4['givenName']=_0x377309[0x1][_0x5df7c7(0xba)]());}else{const _0x4dbcf5=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x163518=0x0;_0x163518<_0x4dbcf5[_0x5df7c7(0xa2)];_0x163518++){const _0x30987b=_0x4dbcf5[_0x163518];if(_0x20d717[_0x5df7c7(0xbb)](_0x30987b))return _0x135fb4[_0x5df7c7(0xa6)]=_0x30987b,_0x135fb4[_0x5df7c7(0xa9)]=_0x20d717[_0x5df7c7(0x85)](_0x30987b[_0x5df7c7(0xa2)])[_0x5df7c7(0xba)](),_0x135fb4;}const _0x28dc0a=_0x20d717[_0x5df7c7(0xc1)]('\x20');if(_0x28dc0a['length']===0x1){const _0x4072a9=_0x20d717[_0x5df7c7(0xa7)](/[\u4e00-\u9fa5]/);_0x135fb4[_0x5df7c7(0xa6)]=_0x4072a9?_0x4072a9[0x0]:'',_0x135fb4[_0x5df7c7(0xa9)]=_0x20d717[_0x5df7c7(0xbd)](_0x135fb4[_0x5df7c7(0xa6)],'')[_0x5df7c7(0xba)]();}else _0x135fb4[_0x5df7c7(0xa6)]=_0x28dc0a[0x0],_0x135fb4[_0x5df7c7(0xa9)]=_0x28dc0a[_0x5df7c7(0x82)](0x1)[_0x5df7c7(0xb4)]('\x20');}return _0x135fb4;}function modifyKeys(_0x3cf771,_0x2a6f84={'strCode':a5_0x8b7660(0xb9),'strFjbh':a5_0x8b7660(0x8f),'strGuid':a5_0x8b7660(0x7f),'strValue':a5_0x8b7660(0x9d)}){const _0x2339d2=a5_0x8b7660;if(!_0x3cf771[_0x2339d2(0xa2)]||_0x3cf771===null)return[];const _0x4dde05=_0x3cf771[_0x2339d2(0x93)](_0x130ce3=>{const _0x49dd91={};for(const _0x7d50a4 in _0x130ce3){_0x2a6f84['hasOwnProperty'](_0x7d50a4)?_0x49dd91[_0x2a6f84[_0x7d50a4]]=_0x130ce3[_0x7d50a4]:_0x49dd91[_0x7d50a4]=_0x130ce3[_0x7d50a4];}return _0x49dd91;});return _0x4dde05;}function sliceArray(_0x4ee8c0,_0x2f6bfa,_0x298e42){const _0x5e1c9d=a5_0x8b7660;if(_0x2f6bfa<=0x0)return console[_0x5e1c9d(0xb0)]('Quantity\x20should\x20be\x20greater\x20than\x200.'),[];return _0x298e42?_0x4ee8c0[_0x5e1c9d(0x82)](0x0,_0x2f6bfa):_0x4ee8c0[_0x5e1c9d(0x82)](-_0x2f6bfa);}function findDataByData(_0x4adeb4,_0x269dfc,_0x1fb28e){const _0x1331e8=a5_0x8b7660,_0x3bd9f3=_0x4adeb4[_0x1331e8(0x80)](_0x2bfb3=>_0x2bfb3[_0x1fb28e]===_0x269dfc);return _0x3bd9f3||null;}function splitArray(_0x2dd66b,_0x47dd6e){const _0x953f96=a5_0x8b7660,_0x2ef6ec=[];for(let _0xbb886a=0x0;_0xbb886a<_0x2dd66b[_0x953f96(0xa2)];_0xbb886a+=_0x47dd6e){_0x2ef6ec[_0x953f96(0x7c)](_0x2dd66b['slice'](_0xbb886a,_0xbb886a+_0x47dd6e));}return _0x2ef6ec;}function getProxyType(_0x2b113c){const _0x59307c=a5_0x8b7660;return Object['prototype'][_0x59307c(0xc4)][_0x59307c(0x87)](_0x2b113c)[_0x59307c(0x82)](0x8,-0x1);}let timeout=null;function debounce(_0x456d35,_0x163224=0x1f4,_0x3eba88=![]){if(timeout!==null)clearTimeout(timeout);if(_0x3eba88){const _0x5310c9=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x163224);if(_0x5310c9)typeof _0x456d35==='function'&&_0x456d35();}else timeout=setTimeout(()=>{const _0x1a9fd1=a5_0x49b8;typeof _0x456d35===_0x1a9fd1(0x9f)&&_0x456d35();},_0x163224);}function urlEncode(_0x1d109c={}){const _0x4b290e=a5_0x8b7660,_0x43b284=[];for(const _0x5769fb in _0x1d109c){const _0xaff227=_0x1d109c[_0x5769fb];if(!_0xaff227)continue;isArray(_0xaff227)?_0xaff227[_0x4b290e(0xa3)](_0x48409e=>{_0x43b284['push'](_0x5769fb+'='+_0x48409e);}):_0x43b284['push'](_0x5769fb+'='+_0xaff227);}return _0x43b284[_0x4b290e(0xb4)]('&');}function dateFormat(_0x130339,_0x1454c6){const _0x45c28a=a5_0x8b7660,_0x170701=new Date(_0x1454c6),_0x1bf3c9={'Y+':_0x170701['getFullYear']()[_0x45c28a(0xc4)](),'m+':(_0x170701[_0x45c28a(0x8c)]()+0x1)[_0x45c28a(0xc4)](),'d+':_0x170701[_0x45c28a(0x7d)]()[_0x45c28a(0xc4)](),'H+':_0x170701[_0x45c28a(0xbe)]()[_0x45c28a(0xc4)](),'M+':_0x170701[_0x45c28a(0xb2)]()[_0x45c28a(0xc4)](),'S+':_0x170701[_0x45c28a(0x83)]()[_0x45c28a(0xc4)]()};let _0x16afac;for(let _0x3240eb in _0x1bf3c9){_0x16afac=new RegExp('('+_0x3240eb+')')[_0x45c28a(0x96)](_0x130339);_0x16afac&&(_0x130339=_0x130339[_0x45c28a(0xbd)](_0x16afac[0x1],_0x16afac[0x1]['length']==0x1?_0x1bf3c9[_0x3240eb]:_0x1bf3c9[_0x3240eb][_0x45c28a(0x86)](_0x16afac[0x1][_0x45c28a(0xa2)],'0')));;};return _0x130339;}function formatDate(_0x4faf8a,_0x183fb3=a5_0x8b7660(0x91),_0x3e7de1={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x37c39d=a5_0x8b7660,_0x5b957f=new Date(_0x4faf8a),_0x4538cb=_0x5b957f[_0x37c39d(0xaa)](),_0x555c30=_0x5b957f[_0x37c39d(0x8c)]()+0x1,_0x36f23f=_0x5b957f[_0x37c39d(0x7d)](),_0x1424cd=_0x555c30<0xa?'0'+_0x555c30:_0x555c30,_0x57dc1d=_0x36f23f<0xa?'0'+_0x36f23f:_0x36f23f;let _0x5e6a06=_0x183fb3[_0x37c39d(0xbd)](_0x37c39d(0xa5),_0x4538cb)[_0x37c39d(0xbd)]('MM',_0x1424cd)[_0x37c39d(0xbd)]('DD',_0x57dc1d);return _0x5e6a06=_0x5e6a06['replace'](/-MM/g,_0x3e7de1['monthTitle'])['replace'](/-DD/g,_0x3e7de1[_0x37c39d(0xb5)])[_0x37c39d(0xbd)]('YYYY'+_0x3e7de1[_0x37c39d(0xa1)],'')[_0x37c39d(0xbd)]('MM'+_0x3e7de1[_0x37c39d(0xa8)],'')[_0x37c39d(0xbd)]('DD'+_0x3e7de1[_0x37c39d(0xb5)],''),_0x5e6a06;}function compareDates(_0x103b1a,_0x18df25){const _0x1bb50a=a5_0x8b7660;_0x103b1a=new Date(_0x103b1a);!_0x18df25?_0x18df25=new Date():_0x18df25=new Date(_0x18df25);_0x103b1a['setHours'](0x0,0x0,0x0,0x0),_0x18df25[_0x1bb50a(0x94)](0x0,0x0,0x0,0x0);var _0x5e23e0=_0x103b1a['getTime'](),_0x51cd6d=_0x18df25[_0x1bb50a(0xbc)]();if(_0x5e23e0<_0x51cd6d)return-0x1;else return _0x5e23e0>_0x51cd6d?0x1:0x0;}function getDaysBetween(_0x3c043d,_0x40b8b1){const _0x29c420=a5_0x8b7660,_0x39fa03=new Date(_0x3c043d),_0x390371=new Date(_0x40b8b1),_0x3b8850=Math[_0x29c420(0xa0)](_0x39fa03['getTime']()-_0x390371[_0x29c420(0xbc)]()),_0x491fa1=Math['floor'](_0x3b8850/(0x3e8*0x3c*0x3c*0x18));return _0x491fa1+0x1;}function chineseNumeral(_0x3593b5){const _0x27a85a=a5_0x8b7660,_0x2f8efe=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x2832ca=['','拾','佰','仟'],_0x160177=['','万','亿','兆'];let _0xbc2d3c=Math[_0x27a85a(0x9a)](_0x3593b5),_0x1a1917=Math[_0x27a85a(0xb1)]((_0x3593b5-_0xbc2d3c)*0x64),_0x2ad7cd='';for(let _0x328b21=0x0;_0xbc2d3c>0x0;_0x328b21++){let _0x5282f6='',_0x12b5a2=_0xbc2d3c%0x2710;_0xbc2d3c=Math[_0x27a85a(0x9a)](_0xbc2d3c/0x2710);for(let _0xc45381=0x0;_0x12b5a2>0x0;_0xc45381++){let _0x343c5f=_0x12b5a2%0xa;_0x5282f6=(_0x343c5f?_0x2f8efe[_0x343c5f]+_0x2832ca[_0xc45381]:'')+_0x5282f6,_0x12b5a2=Math['floor'](_0x12b5a2/0xa);}_0x2ad7cd=_0x5282f6+(_0x5282f6?_0x160177[_0x328b21]:_0x160177[_0x328b21]&&!_0x2ad7cd['includes']('零')?'零':'')+_0x2ad7cd;}_0x2ad7cd+=_0x2ad7cd?'元':'零元';if(_0x1a1917>0x0){let _0x1ecf37=Math[_0x27a85a(0x9a)](_0x1a1917/0xa),_0xddf424=_0x1a1917%0xa;_0x2ad7cd+=(_0x1ecf37?_0x2f8efe[_0x1ecf37]+'角':'')+(_0xddf424?_0x2f8efe[_0xddf424]+'分':'');}else _0x2ad7cd+='整';return _0x2ad7cd[_0x27a85a(0xbd)](/零{2,}/g,'零')[_0x27a85a(0xbd)](/零元/,'元');}function getMonthDate(_0x412472){const _0x3e0aec=a5_0x8b7660;(!_0x412472||_0x412472[_0x3e0aec(0xba)]()==='')&&(_0x412472=new Date()[_0x3e0aec(0xaa)]()+'-'+(new Date()[_0x3e0aec(0x8c)]()+0x1));let _0x3a8268=[],[_0x593a37,_0x2bb26f]=_0x412472[_0x3e0aec(0xc1)]('-')[_0x3e0aec(0x93)](Number),_0x35a6f6=new Date(_0x593a37,_0x2bb26f,0x0),_0x52add2=_0x35a6f6['getDate']();for(let _0x5f5a1f=0x1;_0x5f5a1f<=_0x52add2;_0x5f5a1f++){let _0xa2c087=_0x5f5a1f<0xa?'0'+_0x5f5a1f:''+_0x5f5a1f,_0x254a14=_0x2bb26f<0xa?'0'+_0x2bb26f:''+_0x2bb26f;_0x3a8268['push']({'date':_0x593a37+'-'+_0x254a14+'-'+_0xa2c087,'disable':!![]});}return _0x3a8268;}function getToday(_0x26427a){const _0x4f4532=a5_0x8b7660;var _0x25dedd=new Date(),_0x37f070=String(_0x25dedd['getDate']())['padStart'](0x2,'0'),_0x1ed364=String(_0x25dedd[_0x4f4532(0x8c)]()+0x1)[_0x4f4532(0x86)](0x2,'0'),_0x22e13c=_0x25dedd['getFullYear']();return _0x25dedd=_0x22e13c+'-'+_0x1ed364+'-'+_0x37f070,_0x25dedd;}function resetObject(_0x57a020){const _0xa2a146=a5_0x8b7660;let _0x5908ee=JSON[_0xa2a146(0xbf)](JSON[_0xa2a146(0x84)](_0x57a020));for(const _0x29bcc2 in _0x5908ee){if(typeof _0x5908ee[_0x29bcc2]===_0xa2a146(0x97))_0x5908ee[_0x29bcc2]=0x0;else{if(typeof _0x5908ee[_0x29bcc2]===_0xa2a146(0xad))_0x5908ee[_0x29bcc2]=![];else{if(Array[_0xa2a146(0x98)](_0x5908ee[_0x29bcc2]))_0x5908ee[_0x29bcc2]=[];else typeof _0x5908ee[_0x29bcc2]===_0xa2a146(0xc3)&&_0x5908ee[_0x29bcc2]!==null?resetObject(_0x5908ee[_0x29bcc2]):_0x5908ee[_0x29bcc2]='';}}}return _0x5908ee;}function a5_0x1fb8(){const _0x1404ed=['fjbh','16CgnGmz','YYYY-MM-DD','856dKvaFs','map','setHours','53307evemfx','exec','number','isArray','253pNzAcz','floor','random','all','label','toFixed','function','abs','yearTitle','length','forEach','450419mRhcZJ','YYYY','surname','match','monthTitle','givenName','getFullYear','max','15420rdcohw','boolean','234540dvcqrN','2719164dNzLMP','error','round','getMinutes','无效的操作符,操作符应为1、2、3或4','join','dayTitle','82947cFYENa','right','除数不能为0','code','trim','startsWith','getTime','replace','getHours','parse','1237047Igdtmi','split','615WTJvFt','object','toString','push','getDate','hasOwnProperty','value','find','shift','slice','getSeconds','stringify','substring','padStart','call','toLocaleString','both','endsWith','left','getMonth','_qh','string'];a5_0x1fb8=function(){return _0x1404ed;};return a5_0x1fb8();}function preciseOperation(_0xa4337e,_0x39539e,_0x756e54,_0x2a6b79=0xf4240){const _0x1c25fe=a5_0x8b7660;if(isNaN(_0xa4337e)||isNaN(_0x39539e))return NaN;if(!isFinite(_0xa4337e)||!isFinite(_0x39539e))return NaN;let _0x36cf82=BigInt(Math[_0x1c25fe(0xb1)](_0xa4337e*_0x2a6b79)),_0x55c440=BigInt(Math[_0x1c25fe(0xb1)](_0x39539e*_0x2a6b79)),_0xc2473;switch(_0x756e54){case 0x1:_0xc2473=_0x36cf82+_0x55c440;break;case 0x2:_0xc2473=_0x36cf82-_0x55c440;break;case 0x3:_0xc2473=_0x36cf82*_0x55c440;break;case 0x4:if(_0x55c440===0x0n)throw new Error(_0x1c25fe(0xb8));_0xc2473=_0x36cf82/_0x55c440;break;default:throw new Error(_0x1c25fe(0xb3));}return Number(_0xc2473)/_0x2a6b79;}function preciseSum(_0x76a5e5){const _0x1e7c7a=a5_0x8b7660;let _0x4af0d2=0x0;for(const _0x1921bb of _0x76a5e5){let _0x2c7200=0x0;if(typeof _0x1921bb===_0x1e7c7a(0x8e)){const _0x246c82=parseFloat(_0x1921bb);!isNaN(_0x246c82)&&(_0x2c7200=_0x246c82);}else typeof _0x1921bb===_0x1e7c7a(0x97)&&(_0x2c7200=_0x1921bb);_0x4af0d2=preciseOperation(_0x4af0d2,_0x2c7200,0x1);}return _0x4af0d2;}function a5_0x49b8(_0x3c65a5,_0x13dacd){const _0x1fb8ee=a5_0x1fb8();return a5_0x49b8=function(_0x49b835,_0x4271d7){_0x49b835=_0x49b835-0x7c;let _0x4ccc0b=_0x1fb8ee[_0x49b835];return _0x4ccc0b;},a5_0x49b8(_0x3c65a5,_0x13dacd);}function getRelativeDate(_0x453938,_0x47a415=0x0){const _0x45e587=a5_0x8b7660,_0x3825b1=new Date(_0x453938);_0x3825b1['setDate'](_0x3825b1[_0x45e587(0x7d)]()+_0x47a415);const _0x4905c4=_0x3825b1[_0x45e587(0xaa)](),_0x371fab=(_0x3825b1['getMonth']()+0x1)['toString']()[_0x45e587(0x86)](0x2,'0'),_0x49acb7=_0x3825b1['getDate']()['toString']()[_0x45e587(0x86)](0x2,'0');return _0x4905c4+'-'+_0x371fab+'-'+_0x49acb7;}function validateFields(_0x171f01,_0x4b250c,_0x5310ae=''){for(let _0x4119d1 of _0x4b250c){if(_0x171f01[_0x4119d1]===_0x5310ae)return!![];}return![];}function mergeObjects(_0x2fdc9f,_0x2337b4){const _0x2c574e=a5_0x8b7660;for(const _0x317687 in _0x2fdc9f){_0x2337b4[_0x2c574e(0x7e)](_0x317687)&&(_0x2fdc9f[_0x317687]=_0x2337b4[_0x317687]);}return _0x2fdc9f;}const formatToDecimal=(_0x34629f,_0x3b559a=0x2)=>{const _0xa2d9fc=a5_0x8b7660;if(isNaN(_0x3b559a)||_0x3b559a<0x0)return _0x34629f;let _0x48310b=Number(_0x34629f);if(!isFinite(_0x48310b))return _0x34629f;return _0x3b559a=Math[_0xa2d9fc(0xab)](0x0,Math[_0xa2d9fc(0x9a)](_0x3b559a)),_0x48310b[_0xa2d9fc(0x9e)](_0x3b559a);};function findKeysEndingWith(_0x1e97e1,_0xfea667=a5_0x8b7660(0x8d)){const _0x575028=a5_0x8b7660;let _0x52f45e=[];for(var _0x2d0621 in _0x1e97e1){if(_0x1e97e1[_0x575028(0x7e)](_0x2d0621)){if(_0x2d0621[_0x575028(0x8a)](_0xfea667))_0x52f45e['push'](_0x2d0621);}}return _0x52f45e;}function guid(_0x4bc3f5=0x20,_0x59b184=!![],_0xa9287b=null){const _0x3aaf81=a5_0x8b7660,_0x52b52a='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'[_0x3aaf81(0xc1)](''),_0x2cb0ed=[];_0xa9287b=_0xa9287b||_0x52b52a[_0x3aaf81(0xa2)];if(_0x4bc3f5){for(let _0x42461c=0x0;_0x42461c<_0x4bc3f5;_0x42461c++)_0x2cb0ed[_0x42461c]=_0x52b52a[0x0|Math[_0x3aaf81(0x9b)]()*_0xa9287b];}else{let _0x770b5e;_0x2cb0ed[0x8]=_0x2cb0ed[0xd]=_0x2cb0ed[0x12]=_0x2cb0ed[0x17]='-',_0x2cb0ed[0xe]='4';for(let _0x32c732=0x0;_0x32c732<0x24;_0x32c732++){!_0x2cb0ed[_0x32c732]&&(_0x770b5e=0x0|Math['random']()*0x10,_0x2cb0ed[_0x32c732]=_0x52b52a[_0x32c732==0x13?_0x770b5e&0x3|0x8:_0x770b5e]);}}if(_0x59b184)return _0x2cb0ed[_0x3aaf81(0x81)](),'u'+_0x2cb0ed[_0x3aaf81(0xb4)]('');return _0x2cb0ed[_0x3aaf81(0xb4)]('');}function trim(_0x9bb019,_0x39b3e3='both'){const _0x4befbb=a5_0x8b7660;_0x9bb019=String(_0x9bb019);if(_0x39b3e3==_0x4befbb(0x89))return _0x9bb019['replace'](/^\s+|\s+$/g,'');if(_0x39b3e3==_0x4befbb(0x8b))return _0x9bb019['replace'](/^\s*/,'');if(_0x39b3e3==_0x4befbb(0xb7))return _0x9bb019[_0x4befbb(0xbd)](/(\s*$)/g,'');if(_0x39b3e3==_0x4befbb(0x9c))return _0x9bb019['replace'](/\s+/g,'');return _0x9bb019;}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 a6_0x3625e3=a6_0x2219;(function(_0x6f0a20,_0x4254e1){const _0x5dfa05=a6_0x2219,_0x48af7e=_0x6f0a20();while(!![]){try{const _0x1fad82=-parseInt(_0x5dfa05(0x212))/0x1+-parseInt(_0x5dfa05(0x1cd))/0x2*(parseInt(_0x5dfa05(0x1d8))/0x3)+-parseInt(_0x5dfa05(0x1fe))/0x4*(-parseInt(_0x5dfa05(0x1c7))/0x5)+parseInt(_0x5dfa05(0x1f4))/0x6*(-parseInt(_0x5dfa05(0x1cc))/0x7)+-parseInt(_0x5dfa05(0x1fd))/0x8*(-parseInt(_0x5dfa05(0x21f))/0x9)+parseInt(_0x5dfa05(0x1e3))/0xa+parseInt(_0x5dfa05(0x21e))/0xb;if(_0x1fad82===_0x4254e1)break;else _0x48af7e['push'](_0x48af7e['shift']());}catch(_0x9df004){_0x48af7e['push'](_0x48af7e['shift']());}}}(a6_0x1412,0x1992c));function a6_0x1412(){const _0x2ab517=['除数不能为0','getTime','parse','hasOwnProperty','Nationality','getHours','stringify','360gTMiAL','setHours','无效的操作符,操作符应为1、2、3或4','split','EnName','GivenName','value','number','fjbh','slice','right','1924590bjnfEn','match','trim','forEach','Birth','Surname','DateOfBirth','getMinutes','dayTitle','nationality','code','ExpiryDate','startsWith','EnglishName','getDate','endsWith','Quantity\x20should\x20be\x20greater\x20than\x200.','10158HHbKNH','string','getSeconds','BirthDate','YYYY','toLocaleString','includes','FamilyName','CnName','32knZgqW','10732lZEVEg','label','givenNameEn','givenName','object','sex','isArray','exec','toString','find','padStart','setDate','getFullYear','ValidDate','FirstName','max','Number','substring','DateOfExpiration','all','26419bHOfOx','boolean','Birthday','monthTitle','IdNum','getMonth','test','error','round','expDate','en-US','name','1260501xzgMma','15876KBJjqw','prototype','floor','birthDate','shift','surname','length','abs','call','both','Sex','_qh','surnameEn','englishName','25qZYrbi','function','Name','join','map','406DKOpsX','1636oUeQtJ','yyyy-mm-dd','push','replace'];a6_0x1412=function(){return _0x2ab517;};return a6_0x1412();}function fmtNum(_0x111d49){const _0x32dfaa=a6_0x2219;if(_0x111d49==0x0)return'0';if(!_0x111d49)return'';let _0x431c34=typeof _0x111d49===_0x32dfaa(0x1f5)?parseFloat(_0x111d49):_0x111d49;if(isNaN(_0x431c34))return'';return _0x431c34[_0x32dfaa(0x1f9)](_0x32dfaa(0x21c),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x107939,_0xfdd8f=![]){const _0x3df20c=a6_0x2219;let _0x4b8c96={'surname':'','givenName':''};if(_0xfdd8f){const _0x3c804a=_0x107939[_0x3df20c(0x1fa)](',')?_0x107939['split'](','):_0x107939[_0x3df20c(0x1db)](/\s+/);_0x3c804a[_0x3df20c(0x1bf)]>=0x2&&(_0x4b8c96[_0x3df20c(0x224)]=_0x3c804a[0x0][_0x3df20c(0x1e5)](),_0x4b8c96['givenName']=_0x3c804a[0x1][_0x3df20c(0x1e5)]());}else{const _0x2a3a27=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x53bd57=0x0;_0x53bd57<_0x2a3a27[_0x3df20c(0x1bf)];_0x53bd57++){const _0x4a4419=_0x2a3a27[_0x53bd57];if(_0x107939[_0x3df20c(0x1ef)](_0x4a4419))return _0x4b8c96[_0x3df20c(0x224)]=_0x4a4419,_0x4b8c96[_0x3df20c(0x201)]=_0x107939['substring'](_0x4a4419[_0x3df20c(0x1bf)])[_0x3df20c(0x1e5)](),_0x4b8c96;}const _0x5efb40=_0x107939[_0x3df20c(0x1db)]('\x20');if(_0x5efb40[_0x3df20c(0x1bf)]===0x1){const _0x298394=_0x107939[_0x3df20c(0x1e4)](/[\u4e00-\u9fa5]/);_0x4b8c96['surname']=_0x298394?_0x298394[0x0]:'',_0x4b8c96[_0x3df20c(0x201)]=_0x107939['replace'](_0x4b8c96[_0x3df20c(0x224)],'')['trim']();}else _0x4b8c96[_0x3df20c(0x224)]=_0x5efb40[0x0],_0x4b8c96[_0x3df20c(0x201)]=_0x5efb40['slice'](0x1)[_0x3df20c(0x1ca)]('\x20');}return _0x4b8c96;}function timeFormat(_0x4b05cd=null,_0x50cccb=a6_0x3625e3(0x1ce)){const _0x3ffefe=a6_0x3625e3;let _0x33280a;if(!_0x4b05cd)_0x33280a=new Date();else{if(/^\d{10}$/[_0x3ffefe(0x218)](_0x4b05cd?.['toString']()[_0x3ffefe(0x1e5)]()))_0x33280a=new Date(_0x4b05cd*0x3e8);else{if(typeof _0x4b05cd===_0x3ffefe(0x1f5)&&/^\d+$/[_0x3ffefe(0x218)](_0x4b05cd['trim']()))_0x33280a=new Date(Number(_0x4b05cd));else typeof _0x4b05cd===_0x3ffefe(0x1f5)&&_0x4b05cd[_0x3ffefe(0x1fa)]('-')&&!_0x4b05cd[_0x3ffefe(0x1fa)]('T')?_0x33280a=new Date(_0x4b05cd[_0x3ffefe(0x1d0)](/-/g,'/')):_0x33280a=new Date(_0x4b05cd);}}const _0x31b4e4={'y':_0x33280a['getFullYear']()[_0x3ffefe(0x206)](),'m':(_0x33280a[_0x3ffefe(0x217)]()+0x1)[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0'),'d':_0x33280a['getDate']()['toString']()['padStart'](0x2,'0'),'h':_0x33280a[_0x3ffefe(0x1d6)]()['toString']()['padStart'](0x2,'0'),'M':_0x33280a[_0x3ffefe(0x1ea)]()[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0'),'s':_0x33280a[_0x3ffefe(0x1f6)]()[_0x3ffefe(0x206)]()[_0x3ffefe(0x208)](0x2,'0')};for(const _0x25dcd5 in _0x31b4e4){const [_0x57efdb]=new RegExp(_0x25dcd5+'+')[_0x3ffefe(0x205)](_0x50cccb)||[];if(_0x57efdb){const _0x2ea4ae=_0x25dcd5==='y'&&_0x57efdb[_0x3ffefe(0x1bf)]===0x2?0x2:0x0;_0x50cccb=_0x50cccb[_0x3ffefe(0x1d0)](_0x57efdb,_0x31b4e4[_0x25dcd5]['slice'](_0x2ea4ae));}}return _0x50cccb;}function handleOCRData(_0x30892e,_0x440e72){const _0x202759=a6_0x3625e3,_0x498cf8=_0x4b81a6=>{const _0x1662a1=a6_0x2219,_0x118f1d=_0x4b81a6[_0x1662a1(0x20f)](0x0,0x4),_0x10d4c3=_0x4b81a6[_0x1662a1(0x20f)](0x4,0x6),_0x197e87=_0x4b81a6[_0x1662a1(0x20f)](0x6,0x8);return _0x118f1d+'-'+_0x10d4c3+'-'+_0x197e87;};let _0x1832cb={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x30892e===0x0||_0x30892e===0x1||_0x30892e===0x2){if(_0x440e72[_0x202759(0x1c3)]==='M')_0x1832cb['sex']='男';else _0x1832cb['sex']='女';}debugger;_0x30892e===0x0&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x224)]=_0x440e72[_0x202759(0x1fb)],_0x1832cb[_0x202759(0x201)]=_0x440e72[_0x202759(0x20c)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x1ee)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x1f7)],_0x1832cb['nationality']=_0x440e72[_0x202759(0x1d5)],_0x1832cb[_0x202759(0x1df)]=_0x440e72['PassportNo']);if(_0x30892e===0x1){_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x224)]=_0x440e72[_0x202759(0x1e8)],_0x1832cb[_0x202759(0x201)]=_0x440e72[_0x202759(0x1dd)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x210)],_0x1832cb['birthDate']=_0x440e72[_0x202759(0x1e9)],_0x1832cb[_0x202759(0x1ec)]=_0x440e72[_0x202759(0x1d5)],_0x1832cb[_0x202759(0x1df)]=_0x440e72['ID'];if(!_0x440e72[_0x202759(0x1e8)]&&!_0x440e72[_0x202759(0x1dd)]){const _0x395a0a=splitName(_0x440e72['Name']);_0x1832cb['surname']=_0x395a0a['surname'],_0x1832cb[_0x202759(0x201)]=_0x395a0a[_0x202759(0x201)];}if(!_0x440e72[_0x202759(0x1f0)])_0x1832cb[_0x202759(0x1c6)]=_0x440e72[_0x202759(0x1c9)];}_0x30892e===0x2&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1fc)],_0x1832cb['englishName']=_0x440e72[_0x202759(0x1dc)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb[_0x202759(0x1df)]=_0x440e72[_0x202759(0x216)]);_0x30892e===0x3&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x203)]=_0x440e72[_0x202759(0x1c3)],_0x1832cb['expDate']=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x1e7)],_0x1832cb['number']=_0x440e72[_0x202759(0x216)]);_0x30892e===0x4&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72[_0x202759(0x1c9)],_0x1832cb[_0x202759(0x1c6)]=_0x440e72[_0x202759(0x1f0)],_0x1832cb['sex']=_0x440e72[_0x202759(0x1c3)],_0x1832cb[_0x202759(0x21b)]=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb['number']=_0x440e72[_0x202759(0x20e)]);_0x30892e===0x5&&(_0x1832cb[_0x202759(0x21d)]=_0x440e72['Name'],_0x1832cb[_0x202759(0x1c6)]=_0x440e72['EnglishName'],_0x1832cb[_0x202759(0x203)]=_0x440e72[_0x202759(0x1c3)],_0x1832cb['expDate']=_0x440e72[_0x202759(0x20b)],_0x1832cb[_0x202759(0x222)]=_0x440e72[_0x202759(0x214)],_0x1832cb[_0x202759(0x1df)]=_0x440e72[_0x202759(0x20e)]);if(_0x30892e===0x2||_0x30892e===0x3||_0x30892e===0x4||_0x30892e===0x5){const _0x5c64b2=splitName(_0x1832cb[_0x202759(0x21d)]);_0x1832cb[_0x202759(0x224)]=_0x5c64b2['surname'],_0x1832cb[_0x202759(0x201)]=_0x5c64b2['givenName'];}if(_0x30892e===0x2||_0x30892e===0x4||_0x30892e===0x5){const _0x23807e=splitName(_0x1832cb[_0x202759(0x1c6)],!![]);_0x1832cb[_0x202759(0x1c5)]=_0x23807e[_0x202759(0x224)],_0x1832cb[_0x202759(0x200)]=_0x23807e[_0x202759(0x201)];}if(_0x30892e===0x0||_0x30892e===0x1){if(_0x1832cb['birthDate']!=='')_0x1832cb[_0x202759(0x222)]=_0x498cf8(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb['expDate']!=='')_0x1832cb[_0x202759(0x21b)]=_0x498cf8(_0x1832cb[_0x202759(0x21b)]);}if(_0x30892e===0x2||_0x30892e===0x3){if(_0x1832cb[_0x202759(0x222)]!=='')_0x1832cb['birthDate']=timeFormat(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb[_0x202759(0x21b)]!=='')_0x1832cb['expDate']=timeFormat(_0x1832cb[_0x202759(0x21b)]);}if(_0x30892e===0x4||_0x30892e===0x5){if(_0x1832cb[_0x202759(0x222)]!=='')_0x1832cb[_0x202759(0x222)]=timeFormat(_0x1832cb[_0x202759(0x222)]);if(_0x1832cb[_0x202759(0x21b)]!==''){let _0x32f4f2=_0x1832cb['expDate'][_0x202759(0x1db)]('-');_0x1832cb['expDate']=timeFormat(_0x32f4f2[0x1]);}}return{'type':_0x30892e,'data':_0x1832cb};}function modifyKeys(_0x307c02,_0x4b5947={'strCode':a6_0x3625e3(0x1ed),'strFjbh':a6_0x3625e3(0x1e0),'strGuid':a6_0x3625e3(0x1de),'strValue':a6_0x3625e3(0x1ff)}){const _0x3459f9=a6_0x3625e3;if(!_0x307c02[_0x3459f9(0x1bf)]||_0x307c02===null)return[];const _0x1fe738=_0x307c02[_0x3459f9(0x1cb)](_0x1ff070=>{const _0xf0da6b=_0x3459f9,_0x2fee13={};for(const _0x5d871a in _0x1ff070){_0x4b5947[_0xf0da6b(0x1d4)](_0x5d871a)?_0x2fee13[_0x4b5947[_0x5d871a]]=_0x1ff070[_0x5d871a]:_0x2fee13[_0x5d871a]=_0x1ff070[_0x5d871a];}return _0x2fee13;});return _0x1fe738;}function sliceArray(_0x4b192e,_0x2f9f5a,_0x3015c7){const _0x118065=a6_0x3625e3;if(_0x2f9f5a<=0x0)return console[_0x118065(0x219)](_0x118065(0x1f3)),[];return _0x3015c7?_0x4b192e['slice'](0x0,_0x2f9f5a):_0x4b192e['slice'](-_0x2f9f5a);}function findDataByData(_0x1d4409,_0x5ba7da,_0x4298ec){const _0x5513df=a6_0x3625e3,_0x9f2c05=_0x1d4409[_0x5513df(0x207)](_0x1f67a2=>_0x1f67a2[_0x4298ec]===_0x5ba7da);return _0x9f2c05||null;}function splitArray(_0x30a4bb,_0x52d10f){const _0x108290=a6_0x3625e3,_0x57310d=[];for(let _0x39ca9e=0x0;_0x39ca9e<_0x30a4bb[_0x108290(0x1bf)];_0x39ca9e+=_0x52d10f){_0x57310d[_0x108290(0x1cf)](_0x30a4bb[_0x108290(0x1e1)](_0x39ca9e,_0x39ca9e+_0x52d10f));}return _0x57310d;}function getProxyType(_0x344a07){const _0x30d72b=a6_0x3625e3;return Object[_0x30d72b(0x220)][_0x30d72b(0x206)][_0x30d72b(0x1c1)](_0x344a07)[_0x30d72b(0x1e1)](0x8,-0x1);}let timeout=null;function debounce(_0x34d297,_0x127b7b=0x1f4,_0x5218f5=![]){const _0x5dce28=a6_0x3625e3;if(timeout!==null)clearTimeout(timeout);if(_0x5218f5){const _0x4e54bf=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x127b7b);if(_0x4e54bf)typeof _0x34d297===_0x5dce28(0x1c8)&&_0x34d297();}else timeout=setTimeout(()=>{const _0x2c06fb=_0x5dce28;typeof _0x34d297===_0x2c06fb(0x1c8)&&_0x34d297();},_0x127b7b);}function urlEncode(_0x3c8ce8={}){const _0x2265ed=a6_0x3625e3,_0x29b480=[];for(const _0x241be0 in _0x3c8ce8){const _0x130cd8=_0x3c8ce8[_0x241be0];if(!_0x130cd8)continue;isArray(_0x130cd8)?_0x130cd8[_0x2265ed(0x1e6)](_0x4fcca2=>{const _0x3816e9=_0x2265ed;_0x29b480[_0x3816e9(0x1cf)](_0x241be0+'='+_0x4fcca2);}):_0x29b480[_0x2265ed(0x1cf)](_0x241be0+'='+_0x130cd8);}return _0x29b480[_0x2265ed(0x1ca)]('&');}function dateFormat(_0x5a746e,_0x33a732){const _0x28d850=a6_0x3625e3,_0x45d1f0=new Date(_0x33a732),_0x42ee38={'Y+':_0x45d1f0[_0x28d850(0x20a)]()[_0x28d850(0x206)](),'m+':(_0x45d1f0[_0x28d850(0x217)]()+0x1)[_0x28d850(0x206)](),'d+':_0x45d1f0['getDate']()['toString'](),'H+':_0x45d1f0[_0x28d850(0x1d6)]()[_0x28d850(0x206)](),'M+':_0x45d1f0[_0x28d850(0x1ea)]()[_0x28d850(0x206)](),'S+':_0x45d1f0['getSeconds']()[_0x28d850(0x206)]()};let _0x390f98;for(let _0x201222 in _0x42ee38){_0x390f98=new RegExp('('+_0x201222+')')[_0x28d850(0x205)](_0x5a746e);_0x390f98&&(_0x5a746e=_0x5a746e['replace'](_0x390f98[0x1],_0x390f98[0x1][_0x28d850(0x1bf)]==0x1?_0x42ee38[_0x201222]:_0x42ee38[_0x201222][_0x28d850(0x208)](_0x390f98[0x1][_0x28d850(0x1bf)],'0')));;};return _0x5a746e;}function formatDate(_0x377503,_0x22699e='YYYY-MM-DD',_0x4c2124={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4faf78=a6_0x3625e3,_0x5f81c0=new Date(_0x377503),_0x1e175a=_0x5f81c0[_0x4faf78(0x20a)](),_0x113ed0=_0x5f81c0['getMonth']()+0x1,_0x2a9207=_0x5f81c0[_0x4faf78(0x1f1)](),_0x284d18=_0x113ed0<0xa?'0'+_0x113ed0:_0x113ed0,_0x4a445f=_0x2a9207<0xa?'0'+_0x2a9207:_0x2a9207;let _0x47b107=_0x22699e[_0x4faf78(0x1d0)](_0x4faf78(0x1f8),_0x1e175a)['replace']('MM',_0x284d18)[_0x4faf78(0x1d0)]('DD',_0x4a445f);return _0x47b107=_0x47b107['replace'](/-MM/g,_0x4c2124['monthTitle'])[_0x4faf78(0x1d0)](/-DD/g,_0x4c2124[_0x4faf78(0x1eb)])[_0x4faf78(0x1d0)](_0x4faf78(0x1f8)+_0x4c2124['yearTitle'],'')['replace']('MM'+_0x4c2124[_0x4faf78(0x215)],'')[_0x4faf78(0x1d0)]('DD'+_0x4c2124[_0x4faf78(0x1eb)],''),_0x47b107;}function compareDates(_0x5c0255,_0x5e2e85){const _0x511498=a6_0x3625e3;_0x5c0255=new Date(_0x5c0255);!_0x5e2e85?_0x5e2e85=new Date():_0x5e2e85=new Date(_0x5e2e85);_0x5c0255[_0x511498(0x1d9)](0x0,0x0,0x0,0x0),_0x5e2e85['setHours'](0x0,0x0,0x0,0x0);var _0x31cd29=_0x5c0255[_0x511498(0x1d2)](),_0x131d6e=_0x5e2e85['getTime']();if(_0x31cd29<_0x131d6e)return-0x1;else return _0x31cd29>_0x131d6e?0x1:0x0;}function getDaysBetween(_0x5a2ecc,_0x838fb5){const _0x13b8c0=a6_0x3625e3,_0x271996=new Date(_0x5a2ecc),_0x478aba=new Date(_0x838fb5),_0x1ce3a2=Math[_0x13b8c0(0x1c0)](_0x271996[_0x13b8c0(0x1d2)]()-_0x478aba[_0x13b8c0(0x1d2)]()),_0x14e346=Math['floor'](_0x1ce3a2/(0x3e8*0x3c*0x3c*0x18));return _0x14e346+0x1;}function chineseNumeral(_0x249d64){const _0x231a83=a6_0x3625e3,_0x49903d=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x254971=['','拾','佰','仟'],_0x563326=['','万','亿','兆'];let _0x455296=Math[_0x231a83(0x221)](_0x249d64),_0x4aeda4=Math[_0x231a83(0x21a)]((_0x249d64-_0x455296)*0x64),_0x4faf83='';for(let _0x4c9913=0x0;_0x455296>0x0;_0x4c9913++){let _0x5cb2cd='',_0x233a39=_0x455296%0x2710;_0x455296=Math[_0x231a83(0x221)](_0x455296/0x2710);for(let _0x2bb02a=0x0;_0x233a39>0x0;_0x2bb02a++){let _0x27a66b=_0x233a39%0xa;_0x5cb2cd=(_0x27a66b?_0x49903d[_0x27a66b]+_0x254971[_0x2bb02a]:'')+_0x5cb2cd,_0x233a39=Math[_0x231a83(0x221)](_0x233a39/0xa);}_0x4faf83=_0x5cb2cd+(_0x5cb2cd?_0x563326[_0x4c9913]:_0x563326[_0x4c9913]&&!_0x4faf83[_0x231a83(0x1fa)]('零')?'零':'')+_0x4faf83;}_0x4faf83+=_0x4faf83?'元':'零元';if(_0x4aeda4>0x0){let _0x467b08=Math[_0x231a83(0x221)](_0x4aeda4/0xa),_0x208da7=_0x4aeda4%0xa;_0x4faf83+=(_0x467b08?_0x49903d[_0x467b08]+'角':'')+(_0x208da7?_0x49903d[_0x208da7]+'分':'');}else _0x4faf83+='整';return _0x4faf83[_0x231a83(0x1d0)](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x5adb99){const _0x1bb367=a6_0x3625e3;(!_0x5adb99||_0x5adb99[_0x1bb367(0x1e5)]()==='')&&(_0x5adb99=new Date()[_0x1bb367(0x20a)]()+'-'+(new Date()[_0x1bb367(0x217)]()+0x1));let _0x4868eb=[],[_0x11d778,_0x5d864c]=_0x5adb99[_0x1bb367(0x1db)]('-')['map'](Number),_0x1cddfa=new Date(_0x11d778,_0x5d864c,0x0),_0x59dce4=_0x1cddfa[_0x1bb367(0x1f1)]();for(let _0x31d657=0x1;_0x31d657<=_0x59dce4;_0x31d657++){let _0x1c8420=_0x31d657<0xa?'0'+_0x31d657:''+_0x31d657,_0x49f72c=_0x5d864c<0xa?'0'+_0x5d864c:''+_0x5d864c;_0x4868eb[_0x1bb367(0x1cf)]({'date':_0x11d778+'-'+_0x49f72c+'-'+_0x1c8420,'disable':!![]});}return _0x4868eb;}function getToday(_0x3905d4){const _0x33deb3=a6_0x3625e3;var _0x5d6171=new Date(),_0x4d1a53=String(_0x5d6171[_0x33deb3(0x1f1)]())['padStart'](0x2,'0'),_0x2356a0=String(_0x5d6171[_0x33deb3(0x217)]()+0x1)['padStart'](0x2,'0'),_0x15d457=_0x5d6171[_0x33deb3(0x20a)]();return _0x5d6171=_0x15d457+'-'+_0x2356a0+'-'+_0x4d1a53,_0x5d6171;}function resetObject(_0x177fd6){const _0x36292b=a6_0x3625e3;let _0x28418d=JSON[_0x36292b(0x1d3)](JSON[_0x36292b(0x1d7)](_0x177fd6));for(const _0x3f5b77 in _0x28418d){if(typeof _0x28418d[_0x3f5b77]===_0x36292b(0x1df))_0x28418d[_0x3f5b77]=0x0;else{if(typeof _0x28418d[_0x3f5b77]===_0x36292b(0x213))_0x28418d[_0x3f5b77]=![];else{if(Array[_0x36292b(0x204)](_0x28418d[_0x3f5b77]))_0x28418d[_0x3f5b77]=[];else typeof _0x28418d[_0x3f5b77]===_0x36292b(0x202)&&_0x28418d[_0x3f5b77]!==null?resetObject(_0x28418d[_0x3f5b77]):_0x28418d[_0x3f5b77]='';}}}return _0x28418d;}function preciseOperation(_0x52e8b,_0x2ea197,_0x5e511c,_0x4ded06=0xf4240){const _0x7b2c6d=a6_0x3625e3;if(isNaN(_0x52e8b)||isNaN(_0x2ea197))return NaN;if(!isFinite(_0x52e8b)||!isFinite(_0x2ea197))return NaN;let _0x577625=BigInt(Math['round'](_0x52e8b*_0x4ded06)),_0x2142e9=BigInt(Math['round'](_0x2ea197*_0x4ded06)),_0x5c0ea0;switch(_0x5e511c){case 0x1:_0x5c0ea0=_0x577625+_0x2142e9;break;case 0x2:_0x5c0ea0=_0x577625-_0x2142e9;break;case 0x3:_0x5c0ea0=_0x577625*_0x2142e9;break;case 0x4:if(_0x2142e9===0x0n)throw new Error(_0x7b2c6d(0x1d1));_0x5c0ea0=_0x577625/_0x2142e9;break;default:throw new Error(_0x7b2c6d(0x1da));}return Number(_0x5c0ea0)/_0x4ded06;}function preciseSum(_0x543983){const _0x4a601d=a6_0x3625e3;let _0x3577bb=0x0;for(const _0x209d2d of _0x543983){let _0x5c287d=0x0;if(typeof _0x209d2d===_0x4a601d(0x1f5)){const _0x454750=parseFloat(_0x209d2d);!isNaN(_0x454750)&&(_0x5c287d=_0x454750);}else typeof _0x209d2d==='number'&&(_0x5c287d=_0x209d2d);_0x3577bb=preciseOperation(_0x3577bb,_0x5c287d,0x1);}return _0x3577bb;}function getRelativeDate(_0x3dbf2a,_0x303a5e=0x0){const _0xe7a7d0=a6_0x3625e3,_0x201651=new Date(_0x3dbf2a);_0x201651[_0xe7a7d0(0x209)](_0x201651[_0xe7a7d0(0x1f1)]()+_0x303a5e);const _0xdbad97=_0x201651['getFullYear'](),_0x566a25=(_0x201651['getMonth']()+0x1)['toString']()[_0xe7a7d0(0x208)](0x2,'0'),_0x2e215b=_0x201651[_0xe7a7d0(0x1f1)]()[_0xe7a7d0(0x206)]()[_0xe7a7d0(0x208)](0x2,'0');return _0xdbad97+'-'+_0x566a25+'-'+_0x2e215b;}function a6_0x2219(_0x3f5614,_0x2a1ee3){const _0x141244=a6_0x1412();return a6_0x2219=function(_0x221943,_0x387bd9){_0x221943=_0x221943-0x1bf;let _0x5ab642=_0x141244[_0x221943];return _0x5ab642;},a6_0x2219(_0x3f5614,_0x2a1ee3);}function validateFields(_0x265a09,_0x4c7f4a,_0x51b5f3=''){for(let _0x32a919 of _0x4c7f4a){if(_0x265a09[_0x32a919]===_0x51b5f3)return!![];}return![];}function mergeObjects(_0x4de6eb,_0x2f096a){for(const _0x162381 in _0x4de6eb){_0x2f096a['hasOwnProperty'](_0x162381)&&(_0x4de6eb[_0x162381]=_0x2f096a[_0x162381]);}return _0x4de6eb;}const formatToDecimal=(_0x5ab6d8,_0xfa1584=0x2)=>{const _0x30826c=a6_0x3625e3;if(isNaN(_0xfa1584)||_0xfa1584<0x0)return _0x5ab6d8;let _0x8e55ee=Number(_0x5ab6d8);if(!isFinite(_0x8e55ee))return _0x5ab6d8;return _0xfa1584=Math[_0x30826c(0x20d)](0x0,Math[_0x30826c(0x221)](_0xfa1584)),_0x8e55ee['toFixed'](_0xfa1584);};function findKeysEndingWith(_0x588cef,_0x47be07=a6_0x3625e3(0x1c4)){const _0x5bef18=a6_0x3625e3;let _0x1c9f7d=[];for(var _0x3600ac in _0x588cef){if(_0x588cef['hasOwnProperty'](_0x3600ac)){if(_0x3600ac[_0x5bef18(0x1f2)](_0x47be07))_0x1c9f7d[_0x5bef18(0x1cf)](_0x3600ac);}}return _0x1c9f7d;}function guid(_0x1226a5=0x20,_0x53e32a=!![],_0x5b8808=null){const _0x28f361=a6_0x3625e3,_0x5e3158='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'[_0x28f361(0x1db)](''),_0x54b4f4=[];_0x5b8808=_0x5b8808||_0x5e3158[_0x28f361(0x1bf)];if(_0x1226a5){for(let _0x17cc91=0x0;_0x17cc91<_0x1226a5;_0x17cc91++)_0x54b4f4[_0x17cc91]=_0x5e3158[0x0|Math['random']()*_0x5b8808];}else{let _0x31bb42;_0x54b4f4[0x8]=_0x54b4f4[0xd]=_0x54b4f4[0x12]=_0x54b4f4[0x17]='-',_0x54b4f4[0xe]='4';for(let _0xd9104b=0x0;_0xd9104b<0x24;_0xd9104b++){!_0x54b4f4[_0xd9104b]&&(_0x31bb42=0x0|Math['random']()*0x10,_0x54b4f4[_0xd9104b]=_0x5e3158[_0xd9104b==0x13?_0x31bb42&0x3|0x8:_0x31bb42]);}}if(_0x53e32a)return _0x54b4f4[_0x28f361(0x223)](),'u'+_0x54b4f4[_0x28f361(0x1ca)]('');return _0x54b4f4[_0x28f361(0x1ca)]('');}function trim(_0x16b1b4,_0x233d32=a6_0x3625e3(0x1c2)){const _0x321c6a=a6_0x3625e3;_0x16b1b4=String(_0x16b1b4);if(_0x233d32==_0x321c6a(0x1c2))return _0x16b1b4['replace'](/^\s+|\s+$/g,'');if(_0x233d32=='left')return _0x16b1b4[_0x321c6a(0x1d0)](/^\s*/,'');if(_0x233d32==_0x321c6a(0x1e2))return _0x16b1b4[_0x321c6a(0x1d0)](/(\s*$)/g,'');if(_0x233d32==_0x321c6a(0x211))return _0x16b1b4[_0x321c6a(0x1d0)](/\s+/g,'');return _0x16b1b4;}export default{'handleOCRData':handleOCRData,'timeFormat':timeFormat,'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.42",
3
+ "version": "1.0.44",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {