yunlin 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a0_0xaef7(){var _0xe9ff55=['3011061cvmuOs','77692UEJFhi','3620050JogTWI','429744fRyoEf','16fDxvhN','2912007DDkINR','64704YbwarH','1990968EmCSwG'];a0_0xaef7=function(){return _0xe9ff55;};return a0_0xaef7();}(function(_0x439944,_0x1eb2e6){var _0x30d601=a0_0x5b98,_0x344c27=_0x439944();while(!![]){try{var _0x4a1f02=-parseInt(_0x30d601(0x1bc))/0x1+parseInt(_0x30d601(0x1b6))/0x2+parseInt(_0x30d601(0x1bb))/0x3+-parseInt(_0x30d601(0x1ba))/0x4+parseInt(_0x30d601(0x1b5))/0x5+-parseInt(_0x30d601(0x1b9))/0x6+parseInt(_0x30d601(0x1b8))/0x7*(-parseInt(_0x30d601(0x1b7))/0x8);if(_0x4a1f02===_0x1eb2e6)break;else _0x344c27['push'](_0x344c27['shift']());}catch(_0x2f55a4){_0x344c27['push'](_0x344c27['shift']());}}}(a0_0xaef7,0x8003d));function a0_0x5b98(_0x42d09a,_0x8c2688){var _0xaef776=a0_0xaef7();return a0_0x5b98=function(_0x5b9853,_0x48983d){_0x5b9853=_0x5b9853-0x1b5;var _0x20e930=_0xaef776[_0x5b9853];return _0x20e930;},a0_0x5b98(_0x42d09a,_0x8c2688);}import a0_0x3552cf from'./utils';import a0_0x280090 from'./price';import a0_0x1c5dfd from'./test';import a0_0x31e7aa from'./room';import a0_0x1b51db from'./roomOld';import a0_0xd0f37 from'./system';export default{'test':a0_0x1c5dfd,'utils':a0_0x3552cf,'price':a0_0x280090,'room':a0_0x31e7aa,'roomOld':a0_0x1b51db,'system':a0_0xd0f37};
1
+ (function(_0x4bc9bb,_0x526e62){var _0x30ccb5=a0_0x23d5,_0x297bd9=_0x4bc9bb();while(!![]){try{var _0x400127=-parseInt(_0x30ccb5(0x114))/0x1+-parseInt(_0x30ccb5(0x10f))/0x2*(parseInt(_0x30ccb5(0x112))/0x3)+parseInt(_0x30ccb5(0x118))/0x4+-parseInt(_0x30ccb5(0x110))/0x5*(-parseInt(_0x30ccb5(0x113))/0x6)+parseInt(_0x30ccb5(0x10e))/0x7*(parseInt(_0x30ccb5(0x117))/0x8)+-parseInt(_0x30ccb5(0x115))/0x9*(parseInt(_0x30ccb5(0x111))/0xa)+parseInt(_0x30ccb5(0x116))/0xb;if(_0x400127===_0x526e62)break;else _0x297bd9['push'](_0x297bd9['shift']());}catch(_0x332caa){_0x297bd9['push'](_0x297bd9['shift']());}}}(a0_0x351b,0x35e0c));import a0_0x3b6656 from'./utils';import a0_0x2b0622 from'./price';function a0_0x351b(){var _0xf0983e=['406TCBQZM','429826CYoUiP','982460osiRLy','4353970EOCfYH','3qVWbVz','6aGIGNb','11017KhbFcI','9ofXoBx','6369143XlZTZV','8224umIbQC','187528BJKkze'];a0_0x351b=function(){return _0xf0983e;};return a0_0x351b();}import a0_0x212c2b from'./test';import a0_0x348011 from'./room';function a0_0x23d5(_0x270acf,_0x1dfa6d){var _0x351b4f=a0_0x351b();return a0_0x23d5=function(_0x23d5e8,_0x5095d6){_0x23d5e8=_0x23d5e8-0x10e;var _0x53ba03=_0x351b4f[_0x23d5e8];return _0x53ba03;},a0_0x23d5(_0x270acf,_0x1dfa6d);}import a0_0x1d4656 from'./roomOld';import a0_0x3a4c1b from'./system';export default{'test':a0_0x212c2b,'utils':a0_0x3b6656,'price':a0_0x2b0622,'room':a0_0x348011,'roomOld':a0_0x1d4656,'system':a0_0x3a4c1b};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3b2273,_0x2d1d63){const _0x1ddbd4=a1_0x3e98,_0xf248d2=_0x3b2273();while(!![]){try{const _0xfdbec1=parseInt(_0x1ddbd4(0x1ca))/0x1*(parseInt(_0x1ddbd4(0x20e))/0x2)+-parseInt(_0x1ddbd4(0x1f8))/0x3+parseInt(_0x1ddbd4(0x21b))/0x4*(-parseInt(_0x1ddbd4(0x1e7))/0x5)+parseInt(_0x1ddbd4(0x1f0))/0x6+-parseInt(_0x1ddbd4(0x1ed))/0x7+parseInt(_0x1ddbd4(0x1e1))/0x8+parseInt(_0x1ddbd4(0x218))/0x9*(parseInt(_0x1ddbd4(0x1cf))/0xa);if(_0xfdbec1===_0x2d1d63)break;else _0xf248d2['push'](_0xf248d2['shift']());}catch(_0x127822){_0xf248d2['push'](_0xf248d2['shift']());}}}(a1_0x5230,0x70f9e));function a1_0x3e98(_0x37a0b6,_0x35fa99){const _0x5230a3=a1_0x5230();return a1_0x3e98=function(_0x3e98a1,_0x3f0ab9){_0x3e98a1=_0x3e98a1-0x1c8;let _0x24c911=_0x5230a3[_0x3e98a1];return _0x24c911;},a1_0x3e98(_0x37a0b6,_0x35fa99);}function handleCosting(_0x191d0c,_0xa21df7='',_0x59a772={},_0x5cdc51,_0x298cfa){const _0x1dc62b=a1_0x3e98;let _0x50a77e=[];const _0x1f16c1=_0x1dc62b(0x1d4),_0x417630={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x59a772=typeof _0x59a772===_0x1dc62b(0x1eb)&&!Array[_0x1dc62b(0x1e8)](_0x59a772)&&_0x59a772!==null?_0x59a772:{};const _0x42b300={..._0x417630,..._0x59a772},_0x4429b2=Object[_0x1dc62b(0x1e5)](_0x417630);Object[_0x1dc62b(0x1e5)](_0x59a772)['forEach'](_0x5cb935=>{const _0x2484ee=_0x1dc62b;!_0x4429b2['includes'](_0x5cb935)&&console['warn'](_0x2484ee(0x212)+_0x5cb935);});let _0x5abcb0=_0x42b300['couponSign']||'-',_0x50ad5a=_0x42b300['dp']||0x2;const _0x2779e1=(_0xc0fa3d,_0x5534ca=_0x50ad5a)=>{const _0x62a6a=_0x1dc62b;if(typeof _0xc0fa3d!==_0x62a6a(0x1d9)&&isNaN(Number(_0xc0fa3d)))return console[_0x62a6a(0x1d1)](_0x62a6a(0x1e2)+_0xc0fa3d),_0xc0fa3d;if(isNaN(_0x5534ca)||_0x5534ca<0x0)return _0xc0fa3d;let _0x1f2a0a=Number(_0xc0fa3d);if(!isFinite(_0x1f2a0a))return _0xc0fa3d;return _0x5534ca=Math[_0x62a6a(0x1cb)](0x0,Math[_0x62a6a(0x210)](_0x5534ca)),_0x1f2a0a[_0x62a6a(0x1c9)](_0x5534ca);},_0x1733c4=(_0x2d5dd1,_0x5afa6d)=>{const _0x496b23=_0x1dc62b;if(_0x5afa6d&&typeof _0x5afa6d==='object'&&!Array['isArray'](_0x5afa6d))for(const _0x215fcc in _0x2d5dd1){_0x2d5dd1[_0x496b23(0x205)](_0x215fcc)&&_0x5afa6d[_0x496b23(0x205)](_0x215fcc)&&(_0x2d5dd1[_0x215fcc]=_0x5afa6d[_0x215fcc]);}else console[_0x496b23(0x1d1)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON['stringify'](_0x5afa6d,null,0x2)+_0x496b23(0x1e6)+JSON['stringify'](_0x2d5dd1,null,0x2))['trim']());return _0x2d5dd1;};let _0x4790c4={'people':'人員費用','service':_0x1dc62b(0x20d),'trip':_0x1dc62b(0x213),'other':_0x1dc62b(0x1dd),'reduction':_0x1dc62b(0x1e9),'totalprice':'總計','airtax':'機場稅'},_0x244b94={'adult':'成人','child':'兒童','childusebed':_0x1dc62b(0x214),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x1dc62b(0x1ea),'vip':_0x1dc62b(0x1f9),'promotion':'促銷','insure':'保險費用','coupon':_0x1dc62b(0x1e3),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'};_0x4790c4=_0x1733c4(_0x4790c4,_0x5cdc51),_0x244b94=_0x1733c4(_0x244b94,_0x298cfa);const _0x58a5f9=_0x191d0c['filter'](_0x2ac87e=>_0x2ac87e['strLx']==_0x1dc62b(0x1fb));if(_0x58a5f9['length']){let _0x41468a={'title':_0x4790c4[_0x1dc62b(0x208)],'type':'base','list':[]};_0x58a5f9['map'](_0x328984=>{const _0xb915c0=_0x1dc62b;_0x41468a['list'][_0xb915c0(0x1ff)]({'title':_0x244b94[_0x328984[_0xb915c0(0x204)]],'info':_0xa21df7+_0x2779e1(_0x328984[_0xb915c0(0x207)])+_0x1f16c1+_0x328984[_0xb915c0(0x1cc)],'nRs':_0x328984[_0xb915c0(0x1cc)],'unit':_0x328984[_0xb915c0(0x207)],'cb':_0x328984[_0xb915c0(0x200)],'type':_0xb915c0(0x1fb)});}),_0x50a77e[_0x1dc62b(0x1ff)](_0x41468a);}const _0x1fcb5c=_0x191d0c['filter'](_0x4cef32=>_0x4cef32[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1ee));if(_0x1fcb5c[_0x1dc62b(0x21a)]){let _0x5dff29={'title':_0x4790c4[_0x1dc62b(0x1ee)],'type':_0x1dc62b(0x1ee),'list':[]};_0x1fcb5c['map'](_0x13d946=>{const _0x8ba3c0=_0x1dc62b;_0x5dff29[_0x8ba3c0(0x216)][_0x8ba3c0(0x1ff)]({'title':_0x13d946['name']+('['+_0x13d946[_0x8ba3c0(0x203)]+']'),'info':_0xa21df7+_0x2779e1(_0x13d946[_0x8ba3c0(0x1df)])+_0x1f16c1+_0x13d946[_0x8ba3c0(0x1fa)],'nRs':_0x13d946[_0x8ba3c0(0x1fa)],'unit':_0x13d946[_0x8ba3c0(0x1df)],'cb':_0x13d946[_0x8ba3c0(0x1d8)],'type':_0x8ba3c0(0x1ee)});}),_0x50a77e[_0x1dc62b(0x1ff)](_0x5dff29);}const _0x298afe=_0x191d0c[_0x1dc62b(0x202)](_0x36c30f=>_0x36c30f['strLx']=='trip');if(_0x298afe[_0x1dc62b(0x21a)]){let _0x88187a={'title':_0x4790c4['trip'],'type':_0x1dc62b(0x211),'list':[]};_0x298afe[_0x1dc62b(0x1cd)](_0x3c2c81=>{const _0x4cff42=_0x1dc62b;_0x3c2c81[_0x4cff42(0x20c)]!='0'&&_0x88187a[_0x4cff42(0x216)]['push']({'title':_0x3c2c81[_0x4cff42(0x1f7)]+('['+_0x244b94[_0x4cff42(0x201)]+']'),'info':_0xa21df7+_0x2779e1(_0x3c2c81[_0x4cff42(0x1ec)])+_0x1f16c1+_0x3c2c81[_0x4cff42(0x20c)],'nRs':_0x3c2c81[_0x4cff42(0x20c)],'unit':_0x3c2c81[_0x4cff42(0x1ec)],'cb':_0x3c2c81[_0x4cff42(0x20f)],'type':_0x4cff42(0x211)}),_0x3c2c81[_0x4cff42(0x1fc)]!='0'&&_0x88187a[_0x4cff42(0x216)][_0x4cff42(0x1ff)]({'title':_0x3c2c81[_0x4cff42(0x1f7)]+('['+_0x244b94[_0x4cff42(0x1e4)]+']'),'info':_0xa21df7+_0x2779e1(_0x3c2c81[_0x4cff42(0x1d3)])+_0x1f16c1+_0x3c2c81[_0x4cff42(0x1fc)],'nRs':_0x3c2c81[_0x4cff42(0x1fc)],'unit':_0x3c2c81['childunitprice'],'cb':_0x3c2c81[_0x4cff42(0x20b)],'type':_0x4cff42(0x211)});}),_0x50a77e[_0x1dc62b(0x1ff)](_0x88187a);}let _0x15325f=[];const _0x25c8c4=_0x191d0c[_0x1dc62b(0x202)](_0x11e30a=>_0x11e30a[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1f1));_0x25c8c4[_0x1dc62b(0x21a)]&&_0x25c8c4[_0x1dc62b(0x1cd)](_0x2f515a=>{const _0x4828e9=_0x1dc62b,_0x10900d=_0x2f515a[_0x4828e9(0x1f7)]['split']('|')||[''];_0x15325f[_0x4828e9(0x1ff)]({'title':_0x244b94[_0x4828e9(0x1f1)]+('['+_0x10900d[0x0]+']'),'info':_0xa21df7+_0x5abcb0+_0x2779e1(_0x2f515a[_0x4828e9(0x1db)]),'unit':_0x2f515a[_0x4828e9(0x1db)],'cb':_0x2f515a[_0x4828e9(0x1db)],'type':'elder'});});const _0x3a277a=_0x191d0c[_0x1dc62b(0x202)](_0x378925=>_0x378925['strLx']==_0x1dc62b(0x1d2));_0x3a277a['length']&&_0x3a277a[_0x1dc62b(0x1cd)](_0x4ccc3c=>{const _0x398db6=_0x1dc62b;_0x15325f[_0x398db6(0x1ff)]({'title':_0x244b94[_0x398db6(0x215)]+('['+_0x4ccc3c['name']+']'),'info':_0xa21df7+_0x5abcb0+_0x2779e1(_0x4ccc3c[_0x398db6(0x1db)]),'unit':_0x4ccc3c['money'],'cb':_0x4ccc3c['money'],'type':_0x398db6(0x215)});});const _0x34bc08=_0x191d0c[_0x1dc62b(0x202)](_0xe9cecd=>_0xe9cecd[_0x1dc62b(0x1fd)]=='promotion');_0x34bc08[_0x1dc62b(0x21a)]&&_0x34bc08['map'](_0x19b9fd=>{const _0x2cc5b5=_0x1dc62b;_0x15325f[_0x2cc5b5(0x1ff)]({'title':_0x244b94[_0x2cc5b5(0x209)],'info':_0xa21df7+_0x5abcb0+_0x2779e1(_0x19b9fd['money']),'unit':_0x19b9fd[_0x2cc5b5(0x1db)],'cb':_0x19b9fd[_0x2cc5b5(0x1db)],'type':'promotion'});});_0x15325f[_0x1dc62b(0x21a)]&&_0x50a77e[_0x1dc62b(0x1ff)]({'title':_0x4790c4['reduction'],'type':_0x1dc62b(0x1ce),'list':_0x15325f});const _0x5d54e5=_0x191d0c[_0x1dc62b(0x202)](_0x5e7962=>_0x5e7962[_0x1dc62b(0x1fd)]=='airtax');if(_0x5d54e5[_0x1dc62b(0x21a)]){let _0x5b306b={'title':_0x4790c4['airtax'],'type':'airtax','list':[]};_0x5d54e5[_0x1dc62b(0x1cd)](_0xb2e429=>{const _0x53e0b3=_0x1dc62b;_0x5b306b[_0x53e0b3(0x216)]['push']({'title':_0x244b94[_0xb2e429[_0x53e0b3(0x1fe)]],'info':_0xa21df7+_0x2779e1(_0xb2e429[_0x53e0b3(0x1df)])+_0x1f16c1+_0xb2e429['sl'],'nRs':_0xb2e429['sl'],'unit':_0xb2e429['unitprice'],'cb':_0xb2e429[_0x53e0b3(0x1f5)],'type':_0xb2e429[_0x53e0b3(0x1fe)]});}),_0x50a77e[_0x1dc62b(0x1ff)](_0x5b306b);}const _0x49eb87=[_0x1dc62b(0x1fb),_0x1dc62b(0x1ee),_0x1dc62b(0x211),_0x1dc62b(0x1f1),_0x1dc62b(0x1d2),_0x1dc62b(0x209),_0x1dc62b(0x1d5)],_0x1a1727=_0x191d0c['filter'](_0x562520=>!_0x49eb87[_0x1dc62b(0x219)](_0x562520[_0x1dc62b(0x1fd)]));let _0x4b2e80={'title':_0x4790c4['other'],'type':_0x1dc62b(0x1f4),'list':[]};for(var _0x4ce72c=0x0;_0x4ce72c<_0x1a1727[_0x1dc62b(0x21a)];_0x4ce72c++){const _0x1bf62d=_0x1a1727[_0x4ce72c];_0x1bf62d[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1da)&&_0x4b2e80[_0x1dc62b(0x216)][_0x1dc62b(0x1ff)]({'title':_0x244b94['viprecharge']+('['+_0x1bf62d['name']+']'),'info':_0xa21df7+_0x2779e1(_0x1bf62d[_0x1dc62b(0x1db)]),'unit':_0x1bf62d[_0x1dc62b(0x1db)],'type':_0x1bf62d['strLx']}),_0x1bf62d['strLx']==_0x1dc62b(0x1f3)&&_0x4b2e80[_0x1dc62b(0x216)][_0x1dc62b(0x1ff)]({'title':_0x244b94[_0x1dc62b(0x1f3)]+('['+_0x1bf62d['name']+']'),'info':_0xa21df7+_0x2779e1(_0x1bf62d[_0x1dc62b(0x206)])+_0x1f16c1+_0x1bf62d[_0x1dc62b(0x1f2)]+_0x244b94['r'],'nRs':_0x1bf62d[_0x1dc62b(0x1f2)],'unit':_0x1bf62d[_0x1dc62b(0x206)],'cb':_0x1bf62d['unit'],'type':_0x1dc62b(0x1f3)}),(_0x1bf62d[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1ef)||_0x1bf62d[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1d6))&&_0x4b2e80['list'][_0x1dc62b(0x1ff)]({'title':_0x1bf62d[_0x1dc62b(0x20a)]||_0x244b94[_0x1bf62d[_0x1dc62b(0x1fd)]],'info':_0xa21df7+_0x5abcb0+_0x2779e1(_0x1bf62d[_0x1dc62b(0x1db)]),'unit':_0x1bf62d[_0x1dc62b(0x1db)],'cb':_0x1bf62d['points']||0x0,'type':_0x1bf62d[_0x1dc62b(0x1fd)]}),_0x1bf62d[_0x1dc62b(0x1fd)]==_0x1dc62b(0x217)&&_0x42b300[_0x1dc62b(0x1dc)]&&_0x4b2e80['list'][_0x1dc62b(0x1ff)]({'title':_0x244b94[_0x1bf62d[_0x1dc62b(0x1fd)]],'info':_0xa21df7+_0x2779e1(_0x1bf62d[_0x1dc62b(0x217)])+_0x1f16c1+_0x1bf62d[_0x1dc62b(0x1c8)]+_0x244b94['r']+_0x1f16c1+_0x1bf62d[_0x1dc62b(0x1d0)]+_0x244b94['t'],'nRs':_0x1bf62d['tipuser'],'count':_0x1bf62d[_0x1dc62b(0x1d0)],'unit':_0x1bf62d[_0x1dc62b(0x217)],'type':_0x1bf62d[_0x1dc62b(0x1fd)]}),_0x1bf62d[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1d7)&&_0x4b2e80['list'][_0x1dc62b(0x1ff)]({'title':_0x244b94[_0x1bf62d[_0x1dc62b(0x1fd)]],'info':_0xa21df7+_0x2779e1(_0x1bf62d[_0x1dc62b(0x1de)]),'unit':_0x1bf62d[_0x1dc62b(0x1de)],'type':_0x1bf62d['strLx']});}_0x4b2e80[_0x1dc62b(0x216)][_0x1dc62b(0x21a)]&&_0x50a77e['push'](_0x4b2e80);const _0x52627f=_0x191d0c['filter'](_0x728a37=>_0x728a37[_0x1dc62b(0x1fd)]==_0x1dc62b(0x1f6));return _0x52627f[_0x1dc62b(0x21a)]&&_0x50a77e[_0x1dc62b(0x1ff)]({'title':_0x4790c4[_0x1dc62b(0x1f6)],'type':_0x1dc62b(0x1f6),'list':[{'title':_0x4790c4[_0x1dc62b(0x1f6)],'info':_0xa21df7+_0x2779e1(_0x52627f[0x0][_0x1dc62b(0x1e0)])}]}),_0x50a77e;}export default{'handleCosting':handleCosting};function a1_0x5230(){const _0x351178=['1360884mbRFmm','service','coupon','1573362cZFQqL','elder','users','insure','other','unitpricewb','totalprice','name','2613159DfpdXl','會員減免','num','base','childnum','strLx','rylx','push','fJcbzlsjUnit','adult','filter','itemname','strJgbm','hasOwnProperty','unit','fLsjUnit','people','promotion','couponmc','basechildprice','adultnum','附加服務','4048QWIOhq','baseadultprice','floor','trip','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','附加行程','兒童[占床]','vip','list','tip','3117447sESLtF','includes','length','16zopvEc','tipuser','toFixed','347nFUoDq','max','nRs','map','reduction','30KqUsMB','tipday','error','vipdiscounted','childunitprice','\x20*\x20','airtax','point','tax','baseprice','number','viprecharge','money','isShowTip','其他費用','totaltax','unitprice','price','1607928AuKKOP','ftd\x20函数接收到无效的数字输入:\x20','優惠券','child','keys','\x0a\x09\x09\x09正确参数:','845600CBkNXP','isArray','減免費用','遊客優惠','object','adultunitprice'];a1_0x5230=function(){return _0x351178;};return a1_0x5230();}
1
+ (function(_0x516ac6,_0x50e231){const _0x9329d7=a1_0x1dc9,_0x2e0aff=_0x516ac6();while(!![]){try{const _0x531aa3=parseInt(_0x9329d7(0x12e))/0x1+parseInt(_0x9329d7(0x14d))/0x2*(parseInt(_0x9329d7(0x128))/0x3)+parseInt(_0x9329d7(0x103))/0x4*(-parseInt(_0x9329d7(0x101))/0x5)+parseInt(_0x9329d7(0x14b))/0x6*(parseInt(_0x9329d7(0x11f))/0x7)+parseInt(_0x9329d7(0x145))/0x8*(parseInt(_0x9329d7(0x122))/0x9)+-parseInt(_0x9329d7(0x121))/0xa*(-parseInt(_0x9329d7(0x102))/0xb)+parseInt(_0x9329d7(0xfa))/0xc*(-parseInt(_0x9329d7(0x10c))/0xd);if(_0x531aa3===_0x50e231)break;else _0x2e0aff['push'](_0x2e0aff['shift']());}catch(_0x35219f){_0x2e0aff['push'](_0x2e0aff['shift']());}}}(a1_0x1ed2,0x42eb5));function a1_0x1ed2(){const _0x47c238=['isArray','25oZgTkf','88ntjOMr','138508FkBzvZ','會員充值','strLx','tipuser','fLsjUnit','error','num','promotion','isShowTip','182lXwjxw','會員減免','push','insure','fJcbzlsjUnit','\x0a\x09\x09\x09正确参数:','money','people','list','adultnum','減免費用','totaltax','keys','nRs','point','附加行程','map','優惠券','forEach','3646937TmwOoo','filter','276860KIYQjy','2769363fxjEks','max','trim','basechildprice','unitprice','service','1338411SaiPqg','tip','附加服務','hasOwnProperty','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','trip','256595pDpXgc','coupon','vipdiscounted','strJgbm','base','viprecharge','baseadultprice','points','changeprice','includes','人員費用','name','unitpricewb','childunitprice','totalprice','stringify','遊客優惠','object','adultunitprice','vip','tipday','unit','child','8EuoMQM','commission','elder','rylx','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','adult','6iXkHcx','couponSign','2XohHYF','users','length','split','other','baseprice','1119156XKLSTu','price','ftd\x20函数接收到无效的数字输入:\x20','airtax','reduction','childnum'];a1_0x1ed2=function(){return _0x47c238;};return a1_0x1ed2();}function handleCosting(_0x13810c,_0x5ae13a='',_0x581dd6={},_0x312fd4,_0x596aef){const _0x4077fb=a1_0x1dc9;let _0x368053=[];const _0x3d877f='\x20*\x20',_0x6e34e9={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x581dd6=typeof _0x581dd6===_0x4077fb(0x13f)&&!Array[_0x4077fb(0x100)](_0x581dd6)&&_0x581dd6!==null?_0x581dd6:{};const _0xb0850a={..._0x6e34e9,..._0x581dd6},_0x3c0454=Object[_0x4077fb(0x118)](_0x6e34e9);Object[_0x4077fb(0x118)](_0x581dd6)[_0x4077fb(0x11e)](_0x425621=>{const _0x54e583=_0x4077fb;!_0x3c0454[_0x54e583(0x137)](_0x425621)&&console['warn'](_0x54e583(0x149)+_0x425621);});let _0x4ec100=_0xb0850a[_0x4077fb(0x14c)]||'-',_0x42a64c=_0xb0850a['dp']||0x2;const _0x667748=(_0x1a9b94,_0x1b0c92=_0x42a64c)=>{const _0x5870ec=_0x4077fb;if(typeof _0x1a9b94!=='number'&&isNaN(Number(_0x1a9b94)))return console[_0x5870ec(0x108)](_0x5870ec(0xfc)+_0x1a9b94),_0x1a9b94;if(isNaN(_0x1b0c92)||_0x1b0c92<0x0)return _0x1a9b94;let _0x16b3b9=Number(_0x1a9b94);if(!isFinite(_0x16b3b9))return _0x1a9b94;return _0x1b0c92=Math[_0x5870ec(0x123)](0x0,Math['floor'](_0x1b0c92)),_0x16b3b9['toFixed'](_0x1b0c92);},_0x31d7c5=(_0x2ef489,_0x1f1c27)=>{const _0x4fc6c4=_0x4077fb;if(_0x1f1c27&&typeof _0x1f1c27===_0x4fc6c4(0x13f)&&!Array['isArray'](_0x1f1c27))for(const _0x4e2102 in _0x2ef489){_0x2ef489['hasOwnProperty'](_0x4e2102)&&_0x1f1c27[_0x4fc6c4(0x12b)](_0x4e2102)&&(_0x2ef489[_0x4e2102]=_0x1f1c27[_0x4e2102]);}else console[_0x4fc6c4(0x108)]((_0x4fc6c4(0x12c)+JSON['stringify'](_0x1f1c27,null,0x2)+_0x4fc6c4(0x111)+JSON[_0x4fc6c4(0x13d)](_0x2ef489,null,0x2))[_0x4fc6c4(0x124)]());return _0x2ef489;};let _0x56d9fd={'people':_0x4077fb(0x138),'service':_0x4077fb(0x12a),'trip':_0x4077fb(0x11b),'other':'其他費用','reduction':_0x4077fb(0x116),'totalprice':'總計','airtax':'機場稅'},_0x6ca283={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x4077fb(0x13e),'vip':_0x4077fb(0x10d),'promotion':'促銷','insure':'保險費用','coupon':_0x4077fb(0x11d),'point':'積分','tax':'稅金','viprecharge':_0x4077fb(0x104),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x56d9fd=_0x31d7c5(_0x56d9fd,_0x312fd4),_0x6ca283=_0x31d7c5(_0x6ca283,_0x596aef);const _0x368c82=_0x13810c[_0x4077fb(0x120)](_0xa7fbac=>_0xa7fbac[_0x4077fb(0x105)]==_0x4077fb(0x132));if(_0x368c82[_0x4077fb(0x14f)]){let _0x428d16={'title':_0x56d9fd[_0x4077fb(0x113)],'type':_0x4077fb(0x132),'list':[]};_0x368c82[_0x4077fb(0x11c)](_0x3578a4=>{const _0x19428f=_0x4077fb;_0x428d16[_0x19428f(0x114)][_0x19428f(0x10e)]({'title':_0x6ca283[_0x3578a4[_0x19428f(0x131)]],'info':_0x5ae13a+_0x667748(_0x3578a4['fLsjUnit'])+_0x3d877f+_0x3578a4[_0x19428f(0x119)],'nRs':_0x3578a4[_0x19428f(0x119)],'unit':_0x3578a4[_0x19428f(0x107)],'cb':_0x3578a4[_0x19428f(0x110)],'type':_0x19428f(0x132)});}),_0x368053['push'](_0x428d16);}const _0xddbd67=_0x13810c['filter'](_0x21c641=>_0x21c641[_0x4077fb(0x105)]==_0x4077fb(0x127));if(_0xddbd67[_0x4077fb(0x14f)]){let _0x4fc78f={'title':_0x56d9fd[_0x4077fb(0x127)],'type':_0x4077fb(0x127),'list':[]};_0xddbd67[_0x4077fb(0x11c)](_0x37a114=>{const _0xa32a73=_0x4077fb;_0x4fc78f['list'][_0xa32a73(0x10e)]({'title':_0x37a114['name']+('['+_0x37a114['itemname']+']'),'info':_0x5ae13a+_0x667748(_0x37a114[_0xa32a73(0x126)])+_0x3d877f+_0x37a114[_0xa32a73(0x109)],'nRs':_0x37a114['num'],'unit':_0x37a114[_0xa32a73(0x126)],'cb':_0x37a114[_0xa32a73(0xf9)],'type':_0xa32a73(0x127)});}),_0x368053[_0x4077fb(0x10e)](_0x4fc78f);}const _0xf71f80=_0x13810c[_0x4077fb(0x120)](_0x50437a=>_0x50437a['strLx']==_0x4077fb(0x12d));if(_0xf71f80['length']){let _0x50af7f={'title':_0x56d9fd[_0x4077fb(0x12d)],'type':_0x4077fb(0x12d),'list':[]};_0xf71f80['map'](_0x208d5e=>{const _0x45704b=_0x4077fb;_0x208d5e[_0x45704b(0x115)]!='0'&&_0x50af7f[_0x45704b(0x114)]['push']({'title':_0x208d5e[_0x45704b(0x139)]+('['+_0x6ca283[_0x45704b(0x14a)]+']'),'info':_0x5ae13a+_0x667748(_0x208d5e[_0x45704b(0x140)])+_0x3d877f+_0x208d5e[_0x45704b(0x115)],'nRs':_0x208d5e[_0x45704b(0x115)],'unit':_0x208d5e[_0x45704b(0x140)],'cb':_0x208d5e[_0x45704b(0x134)],'type':_0x45704b(0x12d)}),_0x208d5e[_0x45704b(0xff)]!='0'&&_0x50af7f[_0x45704b(0x114)][_0x45704b(0x10e)]({'title':_0x208d5e[_0x45704b(0x139)]+('['+_0x6ca283[_0x45704b(0x144)]+']'),'info':_0x5ae13a+_0x667748(_0x208d5e['childunitprice'])+_0x3d877f+_0x208d5e[_0x45704b(0xff)],'nRs':_0x208d5e[_0x45704b(0xff)],'unit':_0x208d5e[_0x45704b(0x13b)],'cb':_0x208d5e[_0x45704b(0x125)],'type':_0x45704b(0x12d)});}),_0x368053['push'](_0x50af7f);}let _0x47d552=[];const _0xe4cb23=_0x13810c[_0x4077fb(0x120)](_0x515938=>_0x515938[_0x4077fb(0x105)]==_0x4077fb(0x147));_0xe4cb23[_0x4077fb(0x14f)]&&_0xe4cb23[_0x4077fb(0x11c)](_0xb39358=>{const _0x2ee220=_0x4077fb,_0xab6ef7=_0xb39358['name'][_0x2ee220(0x150)]('|')||[''];_0x47d552[_0x2ee220(0x10e)]({'title':_0x6ca283[_0x2ee220(0x147)]+('['+_0xab6ef7[0x0]+']'),'info':_0x5ae13a+_0x4ec100+_0x667748(_0xb39358['money']),'unit':_0xb39358[_0x2ee220(0x112)],'cb':_0xb39358[_0x2ee220(0x112)],'type':_0x2ee220(0x147)});});const _0x3fc8b0=_0x13810c[_0x4077fb(0x120)](_0x1fcb50=>_0x1fcb50[_0x4077fb(0x105)]==_0x4077fb(0x130));_0x3fc8b0[_0x4077fb(0x14f)]&&_0x3fc8b0['map'](_0x8650e6=>{const _0x3bc25b=_0x4077fb;_0x47d552[_0x3bc25b(0x10e)]({'title':_0x6ca283['vip']+('['+_0x8650e6[_0x3bc25b(0x139)]+']'),'info':_0x5ae13a+_0x4ec100+_0x667748(_0x8650e6[_0x3bc25b(0x112)]),'unit':_0x8650e6[_0x3bc25b(0x112)],'cb':_0x8650e6[_0x3bc25b(0x112)],'type':_0x3bc25b(0x141)});});const _0x2ebdf5=_0x13810c[_0x4077fb(0x120)](_0xb184fe=>_0xb184fe['strLx']==_0x4077fb(0x10a));_0x2ebdf5[_0x4077fb(0x14f)]&&_0x2ebdf5[_0x4077fb(0x11c)](_0x22984f=>{const _0x30e980=_0x4077fb;_0x47d552[_0x30e980(0x10e)]({'title':_0x6ca283['promotion'],'info':_0x5ae13a+_0x4ec100+_0x667748(_0x22984f[_0x30e980(0x112)]),'unit':_0x22984f[_0x30e980(0x112)],'cb':_0x22984f[_0x30e980(0x112)],'type':_0x30e980(0x10a)});});_0x47d552[_0x4077fb(0x14f)]&&_0x368053[_0x4077fb(0x10e)]({'title':_0x56d9fd[_0x4077fb(0xfe)],'type':_0x4077fb(0xfe),'list':_0x47d552});const _0x2f7c61=_0x13810c[_0x4077fb(0x120)](_0x21ff95=>_0x21ff95[_0x4077fb(0x105)]==_0x4077fb(0xfd));if(_0x2f7c61['length']){let _0xbdd81={'title':_0x56d9fd[_0x4077fb(0xfd)],'type':_0x4077fb(0xfd),'list':[]};_0x2f7c61[_0x4077fb(0x11c)](_0x3bd68c=>{const _0x33ac89=_0x4077fb;_0xbdd81[_0x33ac89(0x114)][_0x33ac89(0x10e)]({'title':_0x6ca283[_0x3bd68c['rylx']],'info':_0x5ae13a+_0x667748(_0x3bd68c[_0x33ac89(0x126)])+_0x3d877f+_0x3bd68c['sl'],'nRs':_0x3bd68c['sl'],'unit':_0x3bd68c[_0x33ac89(0x126)],'cb':_0x3bd68c[_0x33ac89(0x13a)],'type':_0x3bd68c[_0x33ac89(0x148)]});}),_0x368053[_0x4077fb(0x10e)](_0xbdd81);}const _0x5f07b9=[_0x4077fb(0x132),_0x4077fb(0x127),'trip',_0x4077fb(0x147),'vipdiscounted',_0x4077fb(0x10a),'airtax'],_0x4a6449=_0x13810c[_0x4077fb(0x120)](_0x526840=>!_0x5f07b9[_0x4077fb(0x137)](_0x526840[_0x4077fb(0x105)]));let _0x2fdccf={'title':_0x56d9fd[_0x4077fb(0xf8)],'type':_0x4077fb(0xf8),'list':[]};for(var _0x2c287d=0x0;_0x2c287d<_0x4a6449[_0x4077fb(0x14f)];_0x2c287d++){const _0x38745e=_0x4a6449[_0x2c287d];_0x38745e['strLx']=='viprecharge'&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x4077fb(0x133)]+('['+_0x38745e[_0x4077fb(0x139)]+']'),'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0x112)]),'unit':_0x38745e[_0x4077fb(0x112)],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x10f)&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x4077fb(0x10f)]+('['+_0x38745e[_0x4077fb(0x139)]+']'),'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0x143)])+_0x3d877f+_0x38745e[_0x4077fb(0x14e)]+_0x6ca283['r'],'nRs':_0x38745e[_0x4077fb(0x14e)],'unit':_0x38745e[_0x4077fb(0x143)],'cb':_0x38745e[_0x4077fb(0x143)],'type':_0x4077fb(0x10f)}),(_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x12f)||_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x11a))&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x38745e['couponmc']||_0x6ca283[_0x38745e[_0x4077fb(0x105)]],'info':_0x5ae13a+_0x4ec100+_0x667748(_0x38745e[_0x4077fb(0x112)]),'unit':_0x38745e[_0x4077fb(0x112)],'cb':_0x38745e[_0x4077fb(0x135)]||0x0,'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]=='tip'&&_0xb0850a[_0x4077fb(0x10b)]&&_0x2fdccf['list'][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x38745e[_0x4077fb(0x105)]],'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0x129)])+_0x3d877f+_0x38745e[_0x4077fb(0x106)]+_0x6ca283['r']+_0x3d877f+_0x38745e[_0x4077fb(0x142)]+_0x6ca283['t'],'nRs':_0x38745e[_0x4077fb(0x106)],'count':_0x38745e[_0x4077fb(0x142)],'unit':_0x38745e['tip'],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x136)&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x4077fb(0x136)],'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0xfb)]),'unit':_0x38745e[_0x4077fb(0xfb)],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]==_0x4077fb(0x146)&&_0x2fdccf[_0x4077fb(0x114)][_0x4077fb(0x10e)]({'title':_0x6ca283['commission'],'info':_0x5ae13a+_0x667748(_0x38745e[_0x4077fb(0xfb)]),'unit':_0x38745e[_0x4077fb(0xfb)],'type':_0x38745e['strLx']}),_0x38745e[_0x4077fb(0x105)]=='tax'&&_0x2fdccf['list'][_0x4077fb(0x10e)]({'title':_0x6ca283[_0x38745e[_0x4077fb(0x105)]],'info':_0x5ae13a+_0x667748(_0x38745e['totaltax']),'unit':_0x38745e[_0x4077fb(0x117)],'type':_0x38745e[_0x4077fb(0x105)]});}_0x2fdccf['list']['length']&&_0x368053['push'](_0x2fdccf);const _0x8f9ade=_0x13810c[_0x4077fb(0x120)](_0x2c4adf=>_0x2c4adf['strLx']==_0x4077fb(0x13c));return _0x8f9ade['length']&&_0x368053[_0x4077fb(0x10e)]({'title':_0x56d9fd[_0x4077fb(0x13c)],'type':_0x4077fb(0x13c),'list':[{'title':_0x56d9fd[_0x4077fb(0x13c)],'info':_0x5ae13a+_0x667748(_0x8f9ade[0x0]['price'])}]}),_0x368053;}function a1_0x1dc9(_0x36e6f1,_0x1af142){const _0x1ed25c=a1_0x1ed2();return a1_0x1dc9=function(_0x1dc901,_0x21e48c){_0x1dc901=_0x1dc901-0xf8;let _0x446185=_0x1ed25c[_0x1dc901];return _0x446185;},a1_0x1dc9(_0x36e6f1,_0x1af142);}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2e0a1a,_0x294ba7){const _0x424d30=a2_0x370e,_0x1055f3=_0x2e0a1a();while(!![]){try{const _0x201d6a=parseInt(_0x424d30(0x15e))/0x1+parseInt(_0x424d30(0x163))/0x2*(parseInt(_0x424d30(0x165))/0x3)+-parseInt(_0x424d30(0x177))/0x4*(parseInt(_0x424d30(0x164))/0x5)+-parseInt(_0x424d30(0x173))/0x6+parseInt(_0x424d30(0x16d))/0x7*(parseInt(_0x424d30(0x175))/0x8)+parseInt(_0x424d30(0x16b))/0x9+-parseInt(_0x424d30(0x15d))/0xa*(-parseInt(_0x424d30(0x15c))/0xb);if(_0x201d6a===_0x294ba7)break;else _0x1055f3['push'](_0x1055f3['shift']());}catch(_0x1ad38e){_0x1055f3['push'](_0x1055f3['shift']());}}}(a2_0x45f3,0xef11b));function a2_0x45f3(){const _0x14737d=['infantNum','child','11447544LSWvII','length','127256sUdPQx','type','2337596EbuZfK','forEach','infant','reduce','some','1771gjAcqA','230kpXbnB','810466TBdOcc','d9319e13-3211-4958-ba32-d66aeac35d31','max','childrenNum','adultNum','2556202NGSexX','5urYdrV','3uMfuxX','push','list','map','nMaxIn','childUseBed','244665CLhilg','isAlotment','595roRdzX','isArray','filter','strCode'];a2_0x45f3=function(){return _0x14737d;};return a2_0x45f3();}function getRoomCount(_0xef0c02,_0x302a3c){const _0x5682c6=a2_0x370e,_0x1b8d03=Array[_0x5682c6(0x16e)](_0xef0c02);if(!_0x1b8d03)_0xef0c02=[_0xef0c02];let _0x4a6a9e=[];return _0xef0c02[_0x5682c6(0x178)](_0x2d5327=>{const _0x2f25e1=_0x5682c6;let _0x4289e8=![];if(!_0x2d5327['isalotment']){let _0x58718b=_0x2d5327[_0x2f25e1(0x162)];if(_0x2d5327[_0x2f25e1(0x16a)]||!_0x302a3c['child'])_0x58718b+=_0x2d5327[_0x2f25e1(0x161)];const _0x509657=_0x302a3c[_0x2f25e1(0x167)]['find'](_0x38ff98=>Number(_0x38ff98[_0x2f25e1(0x170)])===_0x58718b);if(!_0x509657)_0x4289e8=!![];else{let _0x5820d2=_0x2d5327[_0x2f25e1(0x162)]+_0x2d5327[_0x2f25e1(0x161)]+_0x2d5327['infantNum'];_0x5820d2>_0x509657[_0x2f25e1(0x169)]&&(_0x4289e8=!![]);}}_0x4a6a9e['push'](_0x4289e8);}),_0x1b8d03?_0x4a6a9e:_0x4a6a9e[0x0];}function getRoomConfig(_0x3da034){const _0x8b2449=a2_0x370e;let _0x1d0515=_0x3da034[_0x8b2449(0x15b)](_0x4df90b=>_0x4df90b[_0x8b2449(0x170)]===_0x8b2449(0x16a)),_0x3507e2=_0x3da034[_0x8b2449(0x15b)](_0x161244=>_0x161244['strCode']===_0x8b2449(0x16c));const _0x162bb6=_0x3da034['some'](_0x2ff647=>_0x2ff647[_0x8b2449(0x170)]===_0x8b2449(0x159)),_0x3f5002=_0x3da034[_0x8b2449(0x15b)](_0xfaac66=>_0xfaac66[_0x8b2449(0x170)]===_0x8b2449(0x172)),_0x16c4f3=_0x3da034['map'](_0x1b437a=>{const _0x206137=_0x8b2449;return{'strCode':_0x1b437a[_0x206137(0x170)],'nMaxIn':_0x1b437a[_0x206137(0x169)]};});if(_0x3507e2){const _0x5dfe93=_0x3da034[_0x8b2449(0x15b)](_0x7cdf63=>_0x7cdf63[_0x8b2449(0x170)]=='2');_0x3507e2=_0x3507e2&&_0x5dfe93;}if(_0x1d0515)_0x1d0515=_0x1d0515&&_0x3f5002;return{'childUseBed':_0x1d0515,'isAlotment':_0x3507e2,'infant':_0x162bb6,'child':_0x3f5002,'list':_0x16c4f3};}function isRoomPiece(_0x5adf6d,_0x350ac1){const _0x45d87a=a2_0x370e;return _0x350ac1&&_0x5adf6d['adultNum']===0x1&&_0x5adf6d[_0x45d87a(0x161)]===0x0&&_0x5adf6d[_0x45d87a(0x171)]===0x0;}function a2_0x370e(_0x285e1f,_0x562c64){const _0x45f32e=a2_0x45f3();return a2_0x370e=function(_0x370ed2,_0x5b4088){_0x370ed2=_0x370ed2-0x159;let _0x56aaa9=_0x45f32e[_0x370ed2];return _0x56aaa9;},a2_0x370e(_0x285e1f,_0x562c64);}function getRoomItemRange(_0x4156be,_0x13c6ae,_0x3e3710={'child':'儿童','infant':'婴儿'}){const _0x28f430=a2_0x370e;if(!_0x13c6ae[_0x28f430(0x174)])return{'childList':[],'infantList':[]};const _0xaecee5=Math[_0x28f430(0x160)](..._0x13c6ae[_0x28f430(0x168)](_0x43df2b=>Number(_0x43df2b[_0x28f430(0x169)]))),_0x3a2351=_0xaecee5-_0x4156be[_0x28f430(0x162)]-_0x4156be[_0x28f430(0x171)];let _0x2a122f=_0xaecee5-_0x4156be[_0x28f430(0x162)]-_0x4156be[_0x28f430(0x161)];if(_0x2a122f>0x2)_0x2a122f=0x2;const _0x22c2e0=(_0x4ca2a6,_0x2e7069)=>{const _0x26c5a6=_0x28f430,_0x43f706=[];_0x43f706[_0x26c5a6(0x166)]({'value':0x0,'label':'0\x20'+_0x2e7069});for(let _0x5bf777=0x0;_0x5bf777<_0x4ca2a6;_0x5bf777++){_0x43f706[_0x26c5a6(0x166)]({'value':_0x5bf777+0x1,'label':''+(_0x5bf777+0x1)+_0x2e7069});}return _0x43f706;};return{'childList':_0x22c2e0(_0x3a2351,_0x3e3710[_0x28f430(0x172)]),'infantList':_0x22c2e0(_0x2a122f,_0x3e3710['infant'])};}function getAdultRange(_0x2a1b00,_0x54ba5f='成人'){const _0x2ee9d5=a2_0x370e;let _0x1e17b6=Math[_0x2ee9d5(0x160)](..._0x2a1b00[_0x2ee9d5(0x168)](_0x124072=>Number(_0x124072[_0x2ee9d5(0x170)]))[_0x2ee9d5(0x16f)](_0x59e37e=>!isNaN(_0x59e37e)));if(!_0x1e17b6)_0x1e17b6=0x4;let _0x2819f4=[];for(var _0x1c8cf5=0x1;_0x1c8cf5<_0x1e17b6+0x1;_0x1c8cf5++){_0x2819f4['push']({'value':_0x1c8cf5,'label':''+_0x1c8cf5+_0x54ba5f});}return _0x2819f4;}const getTotalPeople=_0x7be8fd=>{const _0xf0d89d=a2_0x370e,_0xd9e5d2=_0x7be8fd[_0xf0d89d(0x15a)]((_0x200c5f,_0x5926a6)=>{const _0x43cb34=_0xf0d89d;return _0x200c5f+(_0x5926a6[_0x43cb34(0x162)]||0x0)+(_0x5926a6['childrenNum']||0x0)+(_0x5926a6['infantNum']||0x0);},0x0);return _0xd9e5d2;},getRoomType=(_0x188e4b,_0x376f03)=>{const _0x385ef0=a2_0x370e;if(_0x188e4b===_0x385ef0(0x176)||_0x188e4b===_0x385ef0(0x15f)||_0x376f03===0x1||_0x376f03==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
1
+ (function(_0x50eb31,_0x20b41d){const _0x3b0ad9=a2_0x3cd5,_0x2842cc=_0x50eb31();while(!![]){try{const _0x13f4c1=-parseInt(_0x3b0ad9(0xa1))/0x1*(parseInt(_0x3b0ad9(0xb4))/0x2)+parseInt(_0x3b0ad9(0x9c))/0x3*(-parseInt(_0x3b0ad9(0xb0))/0x4)+parseInt(_0x3b0ad9(0xb9))/0x5+-parseInt(_0x3b0ad9(0xb2))/0x6+-parseInt(_0x3b0ad9(0xa0))/0x7*(-parseInt(_0x3b0ad9(0xb8))/0x8)+parseInt(_0x3b0ad9(0xa8))/0x9+parseInt(_0x3b0ad9(0xa4))/0xa*(parseInt(_0x3b0ad9(0xa9))/0xb);if(_0x13f4c1===_0x20b41d)break;else _0x2842cc['push'](_0x2842cc['shift']());}catch(_0xa92848){_0x2842cc['push'](_0x2842cc['shift']());}}}(a2_0x1cb1,0x3f30d));function getRoomCount(_0x4c7674,_0x3df40a){const _0x6dc56d=a2_0x3cd5,_0x486b80=Array[_0x6dc56d(0xbb)](_0x4c7674);if(!_0x486b80)_0x4c7674=[_0x4c7674];let _0x217f99=[];return _0x4c7674[_0x6dc56d(0xb1)](_0x1ee9c4=>{const _0x5ede16=_0x6dc56d;let _0x27b626=![];if(!_0x1ee9c4['isalotment']){let _0x48a8f3=_0x1ee9c4['adultNum'];if(_0x1ee9c4[_0x5ede16(0xae)]||!_0x3df40a['child'])_0x48a8f3+=_0x1ee9c4[_0x5ede16(0xb6)];const _0x5b5c8f=_0x3df40a[_0x5ede16(0xad)][_0x5ede16(0x9e)](_0x354574=>Number(_0x354574[_0x5ede16(0xb5)])===_0x48a8f3);if(!_0x5b5c8f)_0x27b626=!![];else{let _0x3d7c52=_0x1ee9c4[_0x5ede16(0xb3)]+_0x1ee9c4[_0x5ede16(0xb6)]+_0x1ee9c4[_0x5ede16(0xba)];_0x3d7c52>_0x5b5c8f[_0x5ede16(0xaa)]&&(_0x27b626=!![]);}}_0x217f99[_0x5ede16(0xa6)](_0x27b626);}),_0x486b80?_0x217f99:_0x217f99[0x0];}function getRoomConfig(_0x2a5893){const _0x34e557=a2_0x3cd5;let _0x40b05=_0x2a5893[_0x34e557(0xa2)](_0x119b5f=>_0x119b5f[_0x34e557(0xb5)]==='childUseBed'),_0x3ccffb=_0x2a5893[_0x34e557(0xa2)](_0x5c7878=>_0x5c7878['strCode']==='isAlotment');const _0x372723=_0x2a5893['some'](_0x3c1775=>_0x3c1775[_0x34e557(0xb5)]==='infant'),_0x362c5=_0x2a5893[_0x34e557(0xa2)](_0x5638d2=>_0x5638d2[_0x34e557(0xb5)]===_0x34e557(0xab)),_0x2ba63a=_0x2a5893['map'](_0x4d44a4=>{const _0x1e5e1a=_0x34e557;return{'strCode':_0x4d44a4['strCode'],'nMaxIn':_0x4d44a4[_0x1e5e1a(0xaa)]};});if(_0x3ccffb){const _0x279a01=_0x2a5893[_0x34e557(0xa2)](_0x25ee12=>_0x25ee12[_0x34e557(0xb5)]=='2');_0x3ccffb=_0x3ccffb&&_0x279a01;}if(_0x40b05)_0x40b05=_0x40b05&&_0x362c5;return{'childUseBed':_0x40b05,'isAlotment':_0x3ccffb,'infant':_0x372723,'child':_0x362c5,'list':_0x2ba63a};}function isRoomPiece(_0x3b8e0d,_0x36c061){const _0x41d3f2=a2_0x3cd5;return _0x36c061&&_0x3b8e0d['adultNum']===0x1&&_0x3b8e0d['childrenNum']===0x0&&_0x3b8e0d[_0x41d3f2(0xba)]===0x0;}function a2_0x3cd5(_0x4cf2d9,_0x1ff0c0){const _0x1cb167=a2_0x1cb1();return a2_0x3cd5=function(_0x3cd5bc,_0x298ae4){_0x3cd5bc=_0x3cd5bc-0x9c;let _0x313855=_0x1cb167[_0x3cd5bc];return _0x313855;},a2_0x3cd5(_0x4cf2d9,_0x1ff0c0);}function getRoomItemRange(_0x13d358,_0xb2d4bc,_0x1e0f8a={'child':'儿童','infant':'婴儿'}){const _0x48f775=a2_0x3cd5;if(!_0xb2d4bc[_0x48f775(0xac)])return{'childList':[],'infantList':[]};const _0xa94293=Math[_0x48f775(0x9d)](..._0xb2d4bc['map'](_0x17ad7c=>Number(_0x17ad7c['nMaxIn']))),_0x57cfef=_0xa94293-_0x13d358[_0x48f775(0xb3)]-_0x13d358[_0x48f775(0xba)];let _0x35ca7b=_0xa94293-_0x13d358[_0x48f775(0xb3)]-_0x13d358[_0x48f775(0xb6)];if(_0x35ca7b>0x2)_0x35ca7b=0x2;const _0x19d0ac=(_0x50d861,_0x1958db)=>{const _0xbf3155=_0x48f775,_0x3aa9ad=[];_0x3aa9ad['push']({'value':0x0,'label':'0\x20'+_0x1958db});for(let _0x2861c8=0x0;_0x2861c8<_0x50d861;_0x2861c8++){_0x3aa9ad[_0xbf3155(0xa6)]({'value':_0x2861c8+0x1,'label':''+(_0x2861c8+0x1)+_0x1958db});}return _0x3aa9ad;};return{'childList':_0x19d0ac(_0x57cfef,_0x1e0f8a['child']),'infantList':_0x19d0ac(_0x35ca7b,_0x1e0f8a[_0x48f775(0xa3)])};}function getAdultRange(_0x2ffdca,_0x231cbe='成人'){const _0x116f5d=a2_0x3cd5;let _0x7b3942=Math[_0x116f5d(0x9d)](..._0x2ffdca[_0x116f5d(0xb7)](_0x3fe1e4=>Number(_0x3fe1e4[_0x116f5d(0xb5)]))[_0x116f5d(0xa7)](_0x5cd1e7=>!isNaN(_0x5cd1e7)));if(!_0x7b3942)_0x7b3942=0x4;let _0xebb764=[];for(var _0x2c5da0=0x1;_0x2c5da0<_0x7b3942+0x1;_0x2c5da0++){_0xebb764['push']({'value':_0x2c5da0,'label':''+_0x2c5da0+_0x231cbe});}return _0xebb764;}function a2_0x1cb1(){const _0x1ca70e=['147672HoDbLC','adultNum','52568bYbQAf','strCode','childrenNum','map','205752nXajWL','1473675CfFjhu','infantNum','isArray','1526739ZmtUsR','max','find','type','91RgIznD','10kRWbVl','some','infant','10toGWrA','reduce','push','filter','999621gAyJEA','3465473wWDJGT','nMaxIn','child','length','list','childUseBed','d9319e13-3211-4958-ba32-d66aeac35d31','4fVyvlP','forEach'];a2_0x1cb1=function(){return _0x1ca70e;};return a2_0x1cb1();}const getTotalPeople=_0x212ca0=>{const _0x3328cc=a2_0x3cd5,_0x3fe71a=_0x212ca0[_0x3328cc(0xa5)]((_0x46c172,_0x3726a7)=>{const _0x394815=_0x3328cc;return _0x46c172+(_0x3726a7[_0x394815(0xb3)]||0x0)+(_0x3726a7[_0x394815(0xb6)]||0x0)+(_0x3726a7[_0x394815(0xba)]||0x0);},0x0);return _0x3fe71a;},getRoomType=(_0x1be8fa,_0x31dbdb)=>{const _0x5ccffb=a2_0x3cd5;if(_0x1be8fa===_0x5ccffb(0x9f)||_0x1be8fa===_0x5ccffb(0xaf)||_0x31dbdb===0x1||_0x31dbdb==='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(_0x47f64c,_0x5b949d){const _0x583062=a3_0x3c89,_0x6ae9fe=_0x47f64c();while(!![]){try{const _0x2840ab=parseInt(_0x583062(0x8a))/0x1*(-parseInt(_0x583062(0x94))/0x2)+parseInt(_0x583062(0x89))/0x3*(parseInt(_0x583062(0x86))/0x4)+parseInt(_0x583062(0x9c))/0x5*(parseInt(_0x583062(0x90))/0x6)+-parseInt(_0x583062(0xa1))/0x7+parseInt(_0x583062(0x9e))/0x8*(-parseInt(_0x583062(0x9a))/0x9)+parseInt(_0x583062(0x83))/0xa*(-parseInt(_0x583062(0x9d))/0xb)+parseInt(_0x583062(0x87))/0xc*(parseInt(_0x583062(0x85))/0xd);if(_0x2840ab===_0x5b949d)break;else _0x6ae9fe['push'](_0x6ae9fe['shift']());}catch(_0x45f465){_0x6ae9fe['push'](_0x6ae9fe['shift']());}}}(a3_0x5463,0xd7dde));function getRoomCount(_0x2ad0cb,_0xfc85df){const _0x26f546=a3_0x3c89,_0x1f0912=Array[_0x26f546(0x8c)](_0x2ad0cb);if(!_0x1f0912)_0x2ad0cb=[_0x2ad0cb];let _0x43710a=[];return _0x2ad0cb[_0x26f546(0x98)](_0x2294d1=>{const _0x24dd43=_0x26f546;let _0x25c1ae=![];if(!_0x2294d1[_0x24dd43(0x97)]){let _0x1c127a=_0x2294d1[_0x24dd43(0x8d)];if(_0x2294d1[_0x24dd43(0x99)]||!_0xfc85df[_0x24dd43(0xa2)])_0x1c127a+=_0x2294d1[_0x24dd43(0x8e)];const _0x1c933a=_0xfc85df[_0x24dd43(0x91)]['find'](_0x2c14f9=>Number(_0x2c14f9[_0x24dd43(0x84)])===_0x1c127a);if(!_0x1c933a)_0x25c1ae=!![];else{let _0xb88523=_0x2294d1[_0x24dd43(0x8d)]+_0x2294d1[_0x24dd43(0x8e)]+_0x2294d1[_0x24dd43(0x96)];_0xb88523>_0x1c933a['nMaxIn']&&(_0x25c1ae=!![]);}}_0x43710a[_0x24dd43(0x8b)](_0x25c1ae);}),_0x1f0912?_0x43710a:_0x43710a[0x0];}function getRoomConfig(_0x1ffb38){const _0x485b54=a3_0x3c89;let _0x9f5c4e=_0x1ffb38[_0x485b54(0x8f)](_0x23115e=>_0x23115e[_0x485b54(0x84)]==='childusebed'),_0x30f2e1=_0x1ffb38['some'](_0x51e889=>_0x51e889['strCode']===_0x485b54(0xa0));const _0x1bad79=_0x1ffb38[_0x485b54(0x8f)](_0x56dc20=>_0x56dc20['strCode']===_0x485b54(0x92)),_0x1bb948=_0x1ffb38[_0x485b54(0x8f)](_0x26bf57=>_0x26bf57[_0x485b54(0x84)]===_0x485b54(0xa2)),_0x55a667=_0x1ffb38['map'](_0x26e49e=>{const _0x49f630=_0x485b54;return{'strCode':_0x26e49e['strCode'],'nMaxIn':_0x26e49e[_0x49f630(0x95)]};});if(_0x30f2e1){const _0x1f0ffa=_0x1ffb38[_0x485b54(0x8f)](_0x1ad3ab=>_0x1ad3ab['strCode']=='2');_0x30f2e1=_0x30f2e1&&_0x1f0ffa;}if(_0x9f5c4e)_0x9f5c4e=_0x9f5c4e&&_0x1bb948;return{'childusebed':_0x9f5c4e,'half':_0x30f2e1,'infant':_0x1bad79,'child':_0x1bb948,'list':_0x55a667};}function isRoomPiece(_0x4edb5c,_0x625737){const _0x27608a=a3_0x3c89;return _0x625737&&_0x4edb5c[_0x27608a(0x8d)]===0x1&&_0x4edb5c[_0x27608a(0x8e)]===0x0&&_0x4edb5c[_0x27608a(0x96)]===0x0;}function getRoomItemRange(_0x3a0e33,_0x390365,_0x40532f={'child':'儿童','infant':'婴儿'}){const _0x455e85=a3_0x3c89;if(!_0x390365[_0x455e85(0xa3)])return{'childList':[],'infantList':[]};const _0x2e87b9=Math[_0x455e85(0x88)](..._0x390365[_0x455e85(0x9b)](_0x7ff48c=>Number(_0x7ff48c['nMaxIn']))),_0x40dabc=_0x2e87b9-_0x3a0e33[_0x455e85(0x8d)]-_0x3a0e33['infantnum'];let _0x5a88d6=_0x2e87b9-_0x3a0e33['adultnum']-_0x3a0e33[_0x455e85(0x8e)];if(_0x5a88d6>0x2)_0x5a88d6=0x2;const _0x37731f=(_0x5c9355,_0x2e6bb8)=>{const _0x27f2e2=_0x455e85,_0x332fd4=[];_0x332fd4[_0x27f2e2(0x8b)]({'value':0x0,'label':'0\x20'+_0x2e6bb8});for(let _0x41825e=0x0;_0x41825e<_0x5c9355;_0x41825e++){_0x332fd4[_0x27f2e2(0x8b)]({'value':_0x41825e+0x1,'label':''+(_0x41825e+0x1)+_0x2e6bb8});}return _0x332fd4;};return{'childList':_0x37731f(_0x40dabc,_0x40532f[_0x455e85(0xa2)]),'infantList':_0x37731f(_0x5a88d6,_0x40532f[_0x455e85(0x92)])};}function a3_0x5463(){const _0x201c46=['949091yWKitK','8657480RvIBXJ','filter','half','9913211dhOaVF','child','length','10NtwiGi','strCode','6050798YsxHOt','6855676pBqGer','60AllOdP','max','3xttlmV','463NJqGAC','push','isArray','adultnum','childrennum','some','3724986UvuVxW','list','infant','reduce','5154fmMKTs','nMaxIn','infantnum','isalotment','forEach','childusebed','9uDTxQn','map','5EErzNx'];a3_0x5463=function(){return _0x201c46;};return a3_0x5463();}function getAdultRange(_0x332728,_0x11914d='成人'){const _0x4d643b=a3_0x3c89;let _0x1b052d=Math[_0x4d643b(0x88)](..._0x332728[_0x4d643b(0x9b)](_0x5d6ddc=>Number(_0x5d6ddc[_0x4d643b(0x84)]))[_0x4d643b(0x9f)](_0x12a709=>!isNaN(_0x12a709)));if(!_0x1b052d)_0x1b052d=0x4;let _0x30bdc9=[];for(var _0xf00687=0x1;_0xf00687<_0x1b052d+0x1;_0xf00687++){_0x30bdc9[_0x4d643b(0x8b)]({'value':_0xf00687,'label':''+_0xf00687+_0x11914d});}return _0x30bdc9;}const getTotalPeople=_0x232793=>{const _0x44685b=a3_0x3c89,_0x2e9257=_0x232793[_0x44685b(0x93)]((_0x3e91da,_0x7f1a8a)=>{const _0x4abfef=_0x44685b;return _0x3e91da+(_0x7f1a8a[_0x4abfef(0x8d)]||0x0)+(_0x7f1a8a['childrennum']||0x0)+(_0x7f1a8a[_0x4abfef(0x96)]||0x0);},0x0);return _0x2e9257;};function a3_0x3c89(_0x1b0ae9,_0x1b1bbb){const _0x546329=a3_0x5463();return a3_0x3c89=function(_0x3c89d3,_0x5b1f33){_0x3c89d3=_0x3c89d3-0x83;let _0x59e1ef=_0x546329[_0x3c89d3];return _0x59e1ef;},a3_0x3c89(_0x1b0ae9,_0x1b1bbb);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
1
+ (function(_0x2263c7,_0x4f0bdb){const _0x9f2197=a3_0x439f,_0x4705ec=_0x2263c7();while(!![]){try{const _0x3728f2=parseInt(_0x9f2197(0x102))/0x1+parseInt(_0x9f2197(0xfb))/0x2*(parseInt(_0x9f2197(0x10c))/0x3)+-parseInt(_0x9f2197(0x10f))/0x4+-parseInt(_0x9f2197(0xf8))/0x5*(-parseInt(_0x9f2197(0xff))/0x6)+parseInt(_0x9f2197(0xfe))/0x7+parseInt(_0x9f2197(0xfc))/0x8+-parseInt(_0x9f2197(0x101))/0x9;if(_0x3728f2===_0x4f0bdb)break;else _0x4705ec['push'](_0x4705ec['shift']());}catch(_0x557e28){_0x4705ec['push'](_0x4705ec['shift']());}}}(a3_0x13e7,0xf33a7));function a3_0x13e7(){const _0x5a8acb=['list','isalotment','4024MsHglQ','3122576EwNWHy','child','5261039vnbvMz','36354LQbHtT','reduce','16610445NCOXEe','607526yqOeQn','length','infantnum','strCode','half','adultnum','map','filter','childusebed','childrennum','2217OFcdss','some','infant','4219424xceguK','nMaxIn','push','find','max','545WSDrpT'];a3_0x13e7=function(){return _0x5a8acb;};return a3_0x13e7();}function getRoomCount(_0x513ad4,_0x43ee61){const _0x3267ea=Array['isArray'](_0x513ad4);if(!_0x3267ea)_0x513ad4=[_0x513ad4];let _0x12f370=[];return _0x513ad4['forEach'](_0x5eaada=>{const _0x368e14=a3_0x439f;let _0x3e6557=![];if(!_0x5eaada[_0x368e14(0xfa)]){let _0xfb7981=_0x5eaada[_0x368e14(0x107)];if(_0x5eaada[_0x368e14(0x10a)]||!_0x43ee61[_0x368e14(0xfd)])_0xfb7981+=_0x5eaada['childrennum'];const _0x1f4693=_0x43ee61[_0x368e14(0xf9)][_0x368e14(0xf6)](_0x20f419=>Number(_0x20f419[_0x368e14(0x105)])===_0xfb7981);if(!_0x1f4693)_0x3e6557=!![];else{let _0x11c501=_0x5eaada[_0x368e14(0x107)]+_0x5eaada['childrennum']+_0x5eaada[_0x368e14(0x104)];_0x11c501>_0x1f4693[_0x368e14(0x110)]&&(_0x3e6557=!![]);}}_0x12f370[_0x368e14(0x111)](_0x3e6557);}),_0x3267ea?_0x12f370:_0x12f370[0x0];}function getRoomConfig(_0x5f2670){const _0x4baf60=a3_0x439f;let _0x20d3c8=_0x5f2670['some'](_0x5c7c20=>_0x5c7c20[_0x4baf60(0x105)]===_0x4baf60(0x10a)),_0x96d424=_0x5f2670[_0x4baf60(0x10d)](_0x18cfa7=>_0x18cfa7['strCode']===_0x4baf60(0x106));const _0x1cd0e5=_0x5f2670['some'](_0xf7febe=>_0xf7febe[_0x4baf60(0x105)]===_0x4baf60(0x10e)),_0x160b96=_0x5f2670[_0x4baf60(0x10d)](_0x45645e=>_0x45645e[_0x4baf60(0x105)]==='child'),_0x456748=_0x5f2670[_0x4baf60(0x108)](_0x22247c=>{return{'strCode':_0x22247c['strCode'],'nMaxIn':_0x22247c['nMaxIn']};});if(_0x96d424){const _0x11c9d5=_0x5f2670['some'](_0x1e62b4=>_0x1e62b4['strCode']=='2');_0x96d424=_0x96d424&&_0x11c9d5;}if(_0x20d3c8)_0x20d3c8=_0x20d3c8&&_0x160b96;return{'childusebed':_0x20d3c8,'half':_0x96d424,'infant':_0x1cd0e5,'child':_0x160b96,'list':_0x456748};}function a3_0x439f(_0x24e34c,_0x309db0){const _0x13e7e0=a3_0x13e7();return a3_0x439f=function(_0x439f61,_0x2333da){_0x439f61=_0x439f61-0xf6;let _0x51a1dc=_0x13e7e0[_0x439f61];return _0x51a1dc;},a3_0x439f(_0x24e34c,_0x309db0);}function isRoomPiece(_0x438cd9,_0x508245){const _0x53277c=a3_0x439f;return _0x508245&&_0x438cd9[_0x53277c(0x107)]===0x1&&_0x438cd9[_0x53277c(0x10b)]===0x0&&_0x438cd9[_0x53277c(0x104)]===0x0;}function getRoomItemRange(_0x42df68,_0x391fea,_0x5223af={'child':'儿童','infant':'婴儿'}){const _0x2efca0=a3_0x439f;if(!_0x391fea[_0x2efca0(0x103)])return{'childList':[],'infantList':[]};const _0x2f476b=Math[_0x2efca0(0xf7)](..._0x391fea[_0x2efca0(0x108)](_0x1d478e=>Number(_0x1d478e['nMaxIn']))),_0x1dc1fc=_0x2f476b-_0x42df68[_0x2efca0(0x107)]-_0x42df68[_0x2efca0(0x104)];let _0x275ec6=_0x2f476b-_0x42df68[_0x2efca0(0x107)]-_0x42df68[_0x2efca0(0x10b)];if(_0x275ec6>0x2)_0x275ec6=0x2;const _0x333e35=(_0x4faf3b,_0x68a719)=>{const _0x20ea11=_0x2efca0,_0x97e575=[];_0x97e575[_0x20ea11(0x111)]({'value':0x0,'label':'0\x20'+_0x68a719});for(let _0x2c5159=0x0;_0x2c5159<_0x4faf3b;_0x2c5159++){_0x97e575['push']({'value':_0x2c5159+0x1,'label':''+(_0x2c5159+0x1)+_0x68a719});}return _0x97e575;};return{'childList':_0x333e35(_0x1dc1fc,_0x5223af[_0x2efca0(0xfd)]),'infantList':_0x333e35(_0x275ec6,_0x5223af['infant'])};}function getAdultRange(_0x3f9c0e,_0x1d2532='成人'){const _0x5e3b4b=a3_0x439f;let _0x311f11=Math['max'](..._0x3f9c0e['map'](_0x4d6248=>Number(_0x4d6248[_0x5e3b4b(0x105)]))[_0x5e3b4b(0x109)](_0x2cc375=>!isNaN(_0x2cc375)));if(!_0x311f11)_0x311f11=0x4;let _0x2737ca=[];for(var _0x382536=0x1;_0x382536<_0x311f11+0x1;_0x382536++){_0x2737ca[_0x5e3b4b(0x111)]({'value':_0x382536,'label':''+_0x382536+_0x1d2532});}return _0x2737ca;}const getTotalPeople=_0xdb5228=>{const _0x378a31=a3_0x439f,_0xf20bce=_0xdb5228[_0x378a31(0x100)]((_0x416aec,_0xc32d3d)=>{const _0x1726f0=_0x378a31;return _0x416aec+(_0xc32d3d[_0x1726f0(0x107)]||0x0)+(_0xc32d3d[_0x1726f0(0x10b)]||0x0)+(_0xc32d3d[_0x1726f0(0x104)]||0x0);},0x0);return _0xf20bce;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
package/dist/system.js CHANGED
@@ -1 +1 @@
1
- function a4_0x4aa8(_0xd102c7,_0x242388){const _0x63d89f=a4_0x63d8();return a4_0x4aa8=function(_0x4aa84f,_0x2f0d47){_0x4aa84f=_0x4aa84f-0x196;let _0x52e9c9=_0x63d89f[_0x4aa84f];return _0x52e9c9;},a4_0x4aa8(_0xd102c7,_0x242388);}const a4_0x139f94=a4_0x4aa8;function a4_0x63d8(){const _0x38f189=['strmz','strlxdh','13810SIeKeW','535GGhLqC','77712lvBHey','3553WftDqf','3237261GODMrq','join','50fogTBF','strhxz','7877724mOgceZ','trim','idNumber','strlxfs','strsfzh','45710XArgJV','strlastname','strzjhm','firstName','lastName','strxs','50644CuQwde','filter','981QaKPFB','strxm','161rJBWKe','507352KQBemx','strhzbh','strggtxz'];a4_0x63d8=function(){return _0x38f189;};return a4_0x63d8();}(function(_0x416827,_0x241cee){const _0x228f3f=a4_0x4aa8,_0x438bc3=_0x416827();while(!![]){try{const _0x3575d6=-parseInt(_0x228f3f(0x1a2))/0x1*(parseInt(_0x228f3f(0x19b))/0x2)+parseInt(_0x228f3f(0x199))/0x3+-parseInt(_0x228f3f(0x1a8))/0x4*(-parseInt(_0x228f3f(0x196))/0x5)+-parseInt(_0x228f3f(0x19d))/0x6+parseInt(_0x228f3f(0x1ac))/0x7*(-parseInt(_0x228f3f(0x1ad))/0x8)+parseInt(_0x228f3f(0x1aa))/0x9*(parseInt(_0x228f3f(0x1b2))/0xa)+-parseInt(_0x228f3f(0x198))/0xb*(-parseInt(_0x228f3f(0x197))/0xc);if(_0x3575d6===_0x241cee)break;else _0x438bc3['push'](_0x438bc3['shift']());}catch(_0xe60b52){_0x438bc3['push'](_0x438bc3['shift']());}}}(a4_0x63d8,0xb9f96));function getDocInfo(_0x2a69bf,_0x4719d2=a4_0x139f94(0x19f),_0x5e7bf8=![]){const _0x8a000d=a4_0x139f94;let _0x29ac54=_0x5e7bf8?'\x20':'';if(_0x4719d2===_0x8a000d(0x19f))return _0x2a69bf[_0x8a000d(0x1a1)]||_0x2a69bf[_0x8a000d(0x1ae)]||_0x2a69bf[_0x8a000d(0x19c)]||_0x2a69bf[_0x8a000d(0x1af)]||_0x2a69bf[_0x8a000d(0x1a4)]||'';if(_0x4719d2==='name'){if(_0x2a69bf[_0x8a000d(0x1ab)])return _0x2a69bf['strxm'];const _0x33fee4=_0x2a69bf['strfirstname']||_0x2a69bf[_0x8a000d(0x1a5)]||_0x2a69bf[_0x8a000d(0x1a7)]||'',_0x586399=_0x2a69bf[_0x8a000d(0x1a3)]||_0x2a69bf[_0x8a000d(0x1a6)]||_0x2a69bf[_0x8a000d(0x1b0)]||'';return[_0x33fee4,_0x586399][_0x8a000d(0x1a9)](Boolean)[_0x8a000d(0x19a)](_0x29ac54)[_0x8a000d(0x19e)]()||'';}if(_0x4719d2==='phone')return _0x2a69bf[_0x8a000d(0x1b1)]||_0x2a69bf[_0x8a000d(0x1a0)]||_0x2a69bf['strdhhm']||'';return'';}export default{'getDocInfo':getDocInfo};
1
+ function a4_0xc43e(_0x1b922f,_0x28a7c7){const _0x3c0511=a4_0x3c05();return a4_0xc43e=function(_0xc43e13,_0xb6a4a4){_0xc43e13=_0xc43e13-0x15c;let _0x28bc56=_0x3c0511[_0xc43e13];return _0x28bc56;},a4_0xc43e(_0x1b922f,_0x28a7c7);}const a4_0x6068eb=a4_0xc43e;(function(_0x31e895,_0x544292){const _0xc3ef3a=a4_0xc43e,_0x276004=_0x31e895();while(!![]){try{const _0x1091cf=-parseInt(_0xc3ef3a(0x167))/0x1+parseInt(_0xc3ef3a(0x175))/0x2*(-parseInt(_0xc3ef3a(0x174))/0x3)+parseInt(_0xc3ef3a(0x16b))/0x4*(parseInt(_0xc3ef3a(0x171))/0x5)+parseInt(_0xc3ef3a(0x170))/0x6*(parseInt(_0xc3ef3a(0x160))/0x7)+parseInt(_0xc3ef3a(0x161))/0x8+parseInt(_0xc3ef3a(0x15c))/0x9+-parseInt(_0xc3ef3a(0x163))/0xa*(-parseInt(_0xc3ef3a(0x16f))/0xb);if(_0x1091cf===_0x544292)break;else _0x276004['push'](_0x276004['shift']());}catch(_0x1f27e1){_0x276004['push'](_0x276004['shift']());}}}(a4_0x3c05,0x76923));function getDocInfo(_0x3611c5,_0x5a6800=a4_0x6068eb(0x15e),_0x12d1b1=![]){const _0x221bc0=a4_0x6068eb;let _0x1e8712=_0x12d1b1?'\x20':'';if(_0x5a6800==='idNumber')return _0x3611c5[_0x221bc0(0x168)]||_0x3611c5[_0x221bc0(0x164)]||_0x3611c5[_0x221bc0(0x16d)]||_0x3611c5[_0x221bc0(0x15f)]||_0x3611c5[_0x221bc0(0x173)]||'';if(_0x5a6800===_0x221bc0(0x16a)){if(_0x3611c5[_0x221bc0(0x16c)])return _0x3611c5['strxm'];const _0xdb6ffe=_0x3611c5[_0x221bc0(0x165)]||_0x3611c5[_0x221bc0(0x15d)]||_0x3611c5[_0x221bc0(0x177)]||'',_0x4bf5a6=_0x3611c5[_0x221bc0(0x16e)]||_0x3611c5[_0x221bc0(0x162)]||_0x3611c5['strmz']||'';return[_0xdb6ffe,_0x4bf5a6][_0x221bc0(0x172)](Boolean)['join'](_0x1e8712)[_0x221bc0(0x166)]()||'';}if(_0x5a6800==='phone')return _0x3611c5[_0x221bc0(0x169)]||_0x3611c5[_0x221bc0(0x176)]||_0x3611c5['strdhhm']||'';return'';}export default{'getDocInfo':getDocInfo};function a4_0x3c05(){const _0x44d26b=['6769992uUAMKP','lastName','813530vtxTuK','strhzbh','strfirstname','trim','766348TkWuQE','strsfzh','strlxdh','name','764mPjLws','strxm','strhxz','strlastname','11EHTeyd','76218eqnlkh','8890DVgTok','filter','strzjhm','940143xBDxdc','2oIifSr','strlxfs','strxs','854532MIILVC','firstName','idNumber','strggtxz','112EGqndE'];a4_0x3c05=function(){return _0x44d26b;};return a4_0x3c05();}
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2a878d,_0x10a04d){const _0xf0929a=a5_0xae29,_0x40c0ae=_0x2a878d();while(!![]){try{const _0x4fab68=parseInt(_0xf0929a(0xcc))/0x1+parseInt(_0xf0929a(0xeb))/0x2*(parseInt(_0xf0929a(0xea))/0x3)+-parseInt(_0xf0929a(0xcb))/0x4+-parseInt(_0xf0929a(0xe3))/0x5*(-parseInt(_0xf0929a(0xd7))/0x6)+-parseInt(_0xf0929a(0xd6))/0x7*(-parseInt(_0xf0929a(0xd9))/0x8)+parseInt(_0xf0929a(0xe8))/0x9+-parseInt(_0xf0929a(0xce))/0xa*(parseInt(_0xf0929a(0xdf))/0xb);if(_0x4fab68===_0x10a04d)break;else _0x40c0ae['push'](_0x40c0ae['shift']());}catch(_0x21428e){_0x40c0ae['push'](_0x40c0ae['shift']());}}}(a5_0x493d,0x7101b));function a5_0x493d(){const _0xca7e5a=['4135440FgFPdg','catch','length','string','replace','startsWith','then','test','5625361zRxlwl','6rDyoxA','number','8nNqTiW','function','call','^\x5cd{','prototype','toString','55kLHhUr','charAt','[object\x20Object]','includes','2185475fwOMyB','852','object','parse','isArray','7368129pGRsYR','[object\x20RegExp]','9WldeOG','529366MavjSK','1486068ERpzQP','48664YrYFvt','undefined'];a5_0x493d=function(){return _0xca7e5a;};return a5_0x493d();}function email(_0x53f727){const _0xb166d=a5_0xae29;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0xb166d(0xd5)](_0x53f727);}function mobile(_0x5a9f9f){const _0x3ac57d=a5_0xae29;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x3ac57d(0xd5)](_0x5a9f9f);}function isValidPhoneNumber(_0x3de1ab){const _0x3d4e25=a5_0xae29;if(_0x3de1ab[_0x3d4e25(0xe2)]('-')){const [_0x48bc4b,_0x100563]=_0x3de1ab['split']('-');if(_0x48bc4b==='86')return/^\d{11}$/[_0x3d4e25(0xd5)](_0x100563)&&_0x100563['startsWith']('1');else return _0x48bc4b===_0x3d4e25(0xe4)?/^\d{8}$/[_0x3d4e25(0xd5)](_0x100563)&&['5','6','9','8'][_0x3d4e25(0xe2)](_0x100563[_0x3d4e25(0xe0)](0x0)):/^\d+$/[_0x3d4e25(0xd5)](_0x100563);}else return/^\d+$/[_0x3d4e25(0xd5)](_0x3de1ab);}function url(_0x409f1e){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_!~*'().;?:@&=+$,%#-]+)+\/?)$/['test'](_0x409f1e);}function date(_0x5ea1b3){const _0x58a8a7=a5_0xae29;if(!_0x5ea1b3)return![];if(number(_0x5ea1b3))_0x5ea1b3=+_0x5ea1b3;return!/Invalid|NaN/[_0x58a8a7(0xd5)](new Date(_0x5ea1b3)[_0x58a8a7(0xde)]());}function dateISO(_0x241aca){const _0x4cef0e=a5_0xae29;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x4cef0e(0xd5)](_0x241aca);}function isNumber(_0x57d8bf){const _0x43a91d=a5_0xae29;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x43a91d(0xd5)](_0x57d8bf);}function isString(_0x1887fc){const _0x37d7ae=a5_0xae29;return typeof _0x1887fc===_0x37d7ae(0xd1);}function digits(_0x8c4949){const _0x5b7707=a5_0xae29;return/^\d+$/[_0x5b7707(0xd5)](_0x8c4949);}function idCard(_0x4236e8){const _0x58003c=a5_0xae29,_0x517999=/^[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)$/,_0xce85c3=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x517999['test'](_0x4236e8)||_0xce85c3[_0x58003c(0xd5)](_0x4236e8);}function carNo(_0x427f46){const _0x4a0710=a5_0xae29,_0x18d283=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x5bf01f=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x427f46['length']===0x7)return _0x5bf01f[_0x4a0710(0xd5)](_0x427f46);if(_0x427f46[_0x4a0710(0xd0)]===0x8)return _0x18d283[_0x4a0710(0xd5)](_0x427f46);return![];}function amount(_0x326c73){const _0x153163=a5_0xae29;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x153163(0xd5)](_0x326c73);}function chinese(_0x5cde0e){const _0x31e3b9=a5_0xae29,_0x29182d=/^[\u4e00-\u9fa5]+$/gi;return _0x29182d[_0x31e3b9(0xd5)](_0x5cde0e);}function letter(_0x36e81e){const _0x2ffb3b=a5_0xae29;return/^[a-zA-Z]*$/[_0x2ffb3b(0xd5)](_0x36e81e);}function enOrNum(_0xa6fc1a){const _0x1b98d0=a5_0xae29,_0x42300c=/^[0-9a-zA-Z]*$/g;return _0x42300c[_0x1b98d0(0xd5)](_0xa6fc1a);}function contains(_0x50150a,_0x25d408){return _0x50150a['indexOf'](_0x25d408)>=0x0;}function range(_0x37130d,_0x403db5){return _0x37130d>=_0x403db5[0x0]&&_0x37130d<=_0x403db5[0x1];}function rangeLength(_0x3ea067,_0x3d18e8){const _0x5bb359=a5_0xae29;return _0x3ea067[_0x5bb359(0xd0)]>=_0x3d18e8[0x0]&&_0x3ea067['length']<=_0x3d18e8[0x1];}function landline(_0x2150a8){const _0x458020=a5_0xae29,_0x13de91=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x13de91[_0x458020(0xd5)](_0x2150a8);}function empty(_0x5475c7){const _0x542294=a5_0xae29;switch(typeof _0x5475c7){case _0x542294(0xcd):return!![];case _0x542294(0xd1):if(_0x5475c7[_0x542294(0xd2)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x542294(0xd0)]==0x0)return!![];break;case'boolean':if(!_0x5475c7)return!![];break;case _0x542294(0xd8):if(_0x5475c7===0x0||isNaN(_0x5475c7))return!![];break;case _0x542294(0xe5):if(_0x5475c7===null||_0x5475c7['length']===0x0)return!![];for(const _0xa6ca9a in _0x5475c7){return![];}return!![];}return![];}function jsonString(_0x8b17fc){const _0x50a2d9=a5_0xae29;if(typeof _0x8b17fc==='string')try{const _0x18d757=JSON[_0x50a2d9(0xe6)](_0x8b17fc);if(typeof _0x18d757===_0x50a2d9(0xe5)&&_0x18d757)return!![];return![];}catch(_0x5c6d92){return![];}return![];}function array(_0x2a503a){const _0x2a7402=a5_0xae29;if(typeof Array[_0x2a7402(0xe7)]===_0x2a7402(0xda))return Array[_0x2a7402(0xe7)](_0x2a503a);return Object[_0x2a7402(0xdd)]['toString'][_0x2a7402(0xdb)](_0x2a503a)==='[object\x20Array]';}function object(_0x1339cb){const _0x552290=a5_0xae29;return Object[_0x552290(0xdd)][_0x552290(0xde)]['call'](_0x1339cb)===_0x552290(0xe1);}function code(_0x4716aa,_0x5f033a=0x6){const _0x3cf42c=a5_0xae29;return new RegExp(_0x3cf42c(0xdc)+_0x5f033a+'}$')[_0x3cf42c(0xd5)](_0x4716aa);}function func(_0x3d1a43){return typeof _0x3d1a43==='function';}function promise(_0x1fcf62){const _0xfa440b=a5_0xae29;return object(_0x1fcf62)&&func(_0x1fcf62[_0xfa440b(0xd4)])&&func(_0x1fcf62[_0xfa440b(0xcf)]);}function image(_0x1a9f80){const _0x1f013a=a5_0xae29,_0x4d9ed6=_0x1a9f80['split']('?')[0x0],_0x2b4f60=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2b4f60[_0x1f013a(0xd5)](_0x4d9ed6);}function a5_0xae29(_0x41c903,_0x14a3a7){const _0x493da6=a5_0x493d();return a5_0xae29=function(_0xae296f,_0x3e427b){_0xae296f=_0xae296f-0xcb;let _0x526ccc=_0x493da6[_0xae296f];return _0x526ccc;},a5_0xae29(_0x41c903,_0x14a3a7);}function video(_0x611d1f){const _0x17e4d5=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x17e4d5['test'](_0x611d1f);}function regExp(_0x55df3b){const _0x528329=a5_0xae29;return _0x55df3b&&Object['prototype'][_0x528329(0xde)]['call'](_0x55df3b)===_0x528329(0xe9);}function isNumeric(_0x12594c,_0x3438f1=0x0){const _0xcbbc60=a5_0xae29;if(typeof _0x12594c===_0xcbbc60(0xd8))_0x12594c=_0x12594c[_0xcbbc60(0xde)]();if(typeof _0x12594c!==_0xcbbc60(0xd1))return![];switch(_0x3438f1){case 0x1:return/^\d+(\.\d+)?$/[_0xcbbc60(0xd5)](_0x12594c);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x12594c);case 0x3:return/^-?\d+$/[_0xcbbc60(0xd5)](_0x12594c);case 0x4:return/^\d+$/[_0xcbbc60(0xd5)](_0x12594c);case 0x5:return/^-\d+$/['test'](_0x12594c);default:return/^-?\d*\.?\d*$/[_0xcbbc60(0xd5)](_0x12594c)&&!_0x12594c[_0xcbbc60(0xd3)]('.')&&!_0x12594c[_0xcbbc60(0xe2)]('--');}}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(_0x2f1659,_0x363274){const _0x192b7e=a5_0x7e32,_0x261903=_0x2f1659();while(!![]){try{const _0x32cced=parseInt(_0x192b7e(0x18a))/0x1*(-parseInt(_0x192b7e(0x18f))/0x2)+parseInt(_0x192b7e(0x18e))/0x3+parseInt(_0x192b7e(0x18d))/0x4+parseInt(_0x192b7e(0x188))/0x5+-parseInt(_0x192b7e(0x198))/0x6+-parseInt(_0x192b7e(0x182))/0x7+-parseInt(_0x192b7e(0x183))/0x8;if(_0x32cced===_0x363274)break;else _0x261903['push'](_0x261903['shift']());}catch(_0x1e07ab){_0x261903['push'](_0x261903['shift']());}}}(a5_0x15db,0xac809));function email(_0x2ed088){const _0x5cc10a=a5_0x7e32;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5cc10a(0x185)](_0x2ed088);}function mobile(_0x152171){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x152171);}function isValidPhoneNumber(_0x1b0fa0){const _0x15d48d=a5_0x7e32;if(_0x1b0fa0['includes']('-')){const [_0x4de29c,_0x2469ba]=_0x1b0fa0['split']('-');if(_0x4de29c==='86')return/^\d{11}$/[_0x15d48d(0x185)](_0x2469ba)&&_0x2469ba[_0x15d48d(0x19a)]('1');else return _0x4de29c==='852'?/^\d{8}$/[_0x15d48d(0x185)](_0x2469ba)&&['5','6','9','8'][_0x15d48d(0x19c)](_0x2469ba[_0x15d48d(0x193)](0x0)):/^\d+$/[_0x15d48d(0x185)](_0x2469ba);}else return/^\d+$/['test'](_0x1b0fa0);}function url(_0x30b190){const _0x495c7d=a5_0x7e32;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x495c7d(0x185)](_0x30b190);}function date(_0x3703e1){const _0x4264b0=a5_0x7e32;if(!_0x3703e1)return![];if(number(_0x3703e1))_0x3703e1=+_0x3703e1;return!/Invalid|NaN/[_0x4264b0(0x185)](new Date(_0x3703e1)[_0x4264b0(0x195)]());}function dateISO(_0x21ce9c){const _0x1ff381=a5_0x7e32;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x1ff381(0x185)](_0x21ce9c);}function a5_0x15db(){const _0x32a6ca=['then','includes','function','object','[object\x20Object]','2564786gslmOm','3245696kTACWO','string','test','length','^\x5cd{','2019275UDxMxd','call','7211VYVhQm','number','[object\x20Array]','1081664MVFMFH','3757461KxnfKX','94NOWqzS','prototype','replace','parse','charAt','catch','toString','undefined','split','654972WZQntZ','boolean','startsWith'];a5_0x15db=function(){return _0x32a6ca;};return a5_0x15db();}function isNumber(_0x67b3d0){const _0x3c497e=a5_0x7e32;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x3c497e(0x185)](_0x67b3d0);}function isString(_0x3161b5){const _0x55cde5=a5_0x7e32;return typeof _0x3161b5===_0x55cde5(0x184);}function digits(_0x246f1a){const _0x1991d8=a5_0x7e32;return/^\d+$/[_0x1991d8(0x185)](_0x246f1a);}function idCard(_0x31375d){const _0x4f68f6=a5_0x7e32,_0x2c56be=/^[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)$/,_0x41c18e=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x2c56be['test'](_0x31375d)||_0x41c18e[_0x4f68f6(0x185)](_0x31375d);}function carNo(_0x2b4a61){const _0x2b06cc=a5_0x7e32,_0x49ddf4=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x3488ed=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x2b4a61[_0x2b06cc(0x186)]===0x7)return _0x3488ed[_0x2b06cc(0x185)](_0x2b4a61);if(_0x2b4a61[_0x2b06cc(0x186)]===0x8)return _0x49ddf4['test'](_0x2b4a61);return![];}function amount(_0x48cc31){const _0x2d3a79=a5_0x7e32;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x2d3a79(0x185)](_0x48cc31);}function chinese(_0x5548c4){const _0x4e13a3=a5_0x7e32,_0x3e071a=/^[\u4e00-\u9fa5]+$/gi;return _0x3e071a[_0x4e13a3(0x185)](_0x5548c4);}function letter(_0x19f749){const _0x94b8e8=a5_0x7e32;return/^[a-zA-Z]*$/[_0x94b8e8(0x185)](_0x19f749);}function enOrNum(_0x55e20d){const _0x19350a=a5_0x7e32,_0x508dae=/^[0-9a-zA-Z]*$/g;return _0x508dae[_0x19350a(0x185)](_0x55e20d);}function contains(_0x5b6933,_0x169d1f){return _0x5b6933['indexOf'](_0x169d1f)>=0x0;}function range(_0x517190,_0x549106){return _0x517190>=_0x549106[0x0]&&_0x517190<=_0x549106[0x1];}function rangeLength(_0x55ca88,_0x2d78b1){const _0x1fe931=a5_0x7e32;return _0x55ca88[_0x1fe931(0x186)]>=_0x2d78b1[0x0]&&_0x55ca88[_0x1fe931(0x186)]<=_0x2d78b1[0x1];}function landline(_0x2d4098){const _0x123a29=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x123a29['test'](_0x2d4098);}function empty(_0x2bdb35){const _0x579577=a5_0x7e32;switch(typeof _0x2bdb35){case _0x579577(0x196):return!![];case _0x579577(0x184):if(_0x2bdb35[_0x579577(0x191)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x579577(0x186)]==0x0)return!![];break;case _0x579577(0x199):if(!_0x2bdb35)return!![];break;case _0x579577(0x18b):if(_0x2bdb35===0x0||isNaN(_0x2bdb35))return!![];break;case _0x579577(0x180):if(_0x2bdb35===null||_0x2bdb35['length']===0x0)return!![];for(const _0x4279a3 in _0x2bdb35){return![];}return!![];}return![];}function jsonString(_0x10b8ca){const _0x464d93=a5_0x7e32;if(typeof _0x10b8ca==='string')try{const _0x29751c=JSON[_0x464d93(0x192)](_0x10b8ca);if(typeof _0x29751c===_0x464d93(0x180)&&_0x29751c)return!![];return![];}catch(_0x4d89ff){return![];}return![];}function array(_0x3d0f2f){const _0x2b9b61=a5_0x7e32;if(typeof Array['isArray']==='function')return Array['isArray'](_0x3d0f2f);return Object[_0x2b9b61(0x190)][_0x2b9b61(0x195)]['call'](_0x3d0f2f)===_0x2b9b61(0x18c);}function object(_0x54d017){const _0x9c1cf2=a5_0x7e32;return Object[_0x9c1cf2(0x190)]['toString'][_0x9c1cf2(0x189)](_0x54d017)===_0x9c1cf2(0x181);}function code(_0x54b939,_0x11b902=0x6){const _0x8e4884=a5_0x7e32;return new RegExp(_0x8e4884(0x187)+_0x11b902+'}$')[_0x8e4884(0x185)](_0x54b939);}function func(_0x313ed6){const _0x195730=a5_0x7e32;return typeof _0x313ed6===_0x195730(0x17f);}function promise(_0x3c131d){const _0x4d6ac1=a5_0x7e32;return object(_0x3c131d)&&func(_0x3c131d[_0x4d6ac1(0x19b)])&&func(_0x3c131d[_0x4d6ac1(0x194)]);}function image(_0x4951a8){const _0x80ac66=a5_0x7e32,_0x29e20c=_0x4951a8[_0x80ac66(0x197)]('?')[0x0],_0x403fc9=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x403fc9[_0x80ac66(0x185)](_0x29e20c);}function video(_0x152583){const _0x17629d=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x17629d['test'](_0x152583);}function regExp(_0x59caa9){const _0x5e0ba2=a5_0x7e32;return _0x59caa9&&Object[_0x5e0ba2(0x190)]['toString'][_0x5e0ba2(0x189)](_0x59caa9)==='[object\x20RegExp]';}function a5_0x7e32(_0x414b77,_0x28883c){const _0x15db57=a5_0x15db();return a5_0x7e32=function(_0x7e321a,_0x67edf9){_0x7e321a=_0x7e321a-0x17f;let _0xb53c4e=_0x15db57[_0x7e321a];return _0xb53c4e;},a5_0x7e32(_0x414b77,_0x28883c);}function isNumeric(_0x2fa053,_0x24f3a5=0x0){const _0x41e332=a5_0x7e32;if(typeof _0x2fa053===_0x41e332(0x18b))_0x2fa053=_0x2fa053['toString']();if(typeof _0x2fa053!==_0x41e332(0x184))return![];switch(_0x24f3a5){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x2fa053);case 0x2:return/^-\d+(\.\d+)?$/[_0x41e332(0x185)](_0x2fa053);case 0x3:return/^-?\d+$/['test'](_0x2fa053);case 0x4:return/^\d+$/[_0x41e332(0x185)](_0x2fa053);case 0x5:return/^-\d+$/[_0x41e332(0x185)](_0x2fa053);default:return/^-?\d*\.?\d*$/[_0x41e332(0x185)](_0x2fa053)&&!_0x2fa053[_0x41e332(0x19a)]('.')&&!_0x2fa053['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 a6_0x1ade3f=a6_0x4787;(function(_0x3ef7ef,_0x20d693){const _0x595915=a6_0x4787,_0x33cf89=_0x3ef7ef();while(!![]){try{const _0x1364c5=parseInt(_0x595915(0x19d))/0x1*(parseInt(_0x595915(0x184))/0x2)+-parseInt(_0x595915(0x17c))/0x3*(-parseInt(_0x595915(0x16b))/0x4)+-parseInt(_0x595915(0x1ad))/0x5*(-parseInt(_0x595915(0x171))/0x6)+-parseInt(_0x595915(0x198))/0x7+parseInt(_0x595915(0x18b))/0x8*(-parseInt(_0x595915(0x1ac))/0x9)+-parseInt(_0x595915(0x190))/0xa*(parseInt(_0x595915(0x16f))/0xb)+parseInt(_0x595915(0x164))/0xc;if(_0x1364c5===_0x20d693)break;else _0x33cf89['push'](_0x33cf89['shift']());}catch(_0x3db00b){_0x33cf89['push'](_0x33cf89['shift']());}}}(a6_0x23f7,0x9ec99));function fmtNum(_0x2078ec,_0x40349c=!![]){const _0x2012a3=a6_0x4787;if(_0x2078ec==0x0)return _0x40349c?_0x2012a3(0x186):'0';if(!_0x2078ec)return'';let _0x1f072a=typeof _0x2078ec===_0x2012a3(0x1a9)?parseFloat(_0x2078ec):_0x2078ec;if(isNaN(_0x1f072a))return'';return _0x1f072a['toLocaleString']('en-US',{'minimumFractionDigits':_0x40349c?0x2:0x0,'maximumFractionDigits':_0x40349c?0x2:0x0});}function splitName(_0x3db899,_0x506745=![]){const _0x5d0b25=a6_0x4787;let _0x23477d={'surname':'','givenName':''};if(_0x506745){const _0xd7924e=_0x3db899[_0x5d0b25(0x1a1)](',')?_0x3db899[_0x5d0b25(0x16e)](','):_0x3db899[_0x5d0b25(0x16e)](/\s+/);_0xd7924e[_0x5d0b25(0x18e)]>=0x2&&(_0x23477d['surname']=_0xd7924e[0x0]['trim'](),_0x23477d[_0x5d0b25(0x1b5)]=_0xd7924e[0x1]['trim']());}else{const _0x50c835=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x257694=0x0;_0x257694<_0x50c835[_0x5d0b25(0x18e)];_0x257694++){const _0x48156f=_0x50c835[_0x257694];if(_0x3db899[_0x5d0b25(0x1af)](_0x48156f))return _0x23477d[_0x5d0b25(0x19e)]=_0x48156f,_0x23477d[_0x5d0b25(0x1b5)]=_0x3db899[_0x5d0b25(0x1b9)](_0x48156f[_0x5d0b25(0x18e)])[_0x5d0b25(0x1b3)](),_0x23477d;}const _0x39e808=_0x3db899[_0x5d0b25(0x16e)]('\x20');if(_0x39e808['length']===0x1){const _0x393835=_0x3db899[_0x5d0b25(0x1a2)](/[\u4e00-\u9fa5]/);_0x23477d[_0x5d0b25(0x19e)]=_0x393835?_0x393835[0x0]:'',_0x23477d[_0x5d0b25(0x1b5)]=_0x3db899[_0x5d0b25(0x1a8)](_0x23477d[_0x5d0b25(0x19e)],'')[_0x5d0b25(0x1b3)]();}else _0x23477d[_0x5d0b25(0x19e)]=_0x39e808[0x0],_0x23477d[_0x5d0b25(0x1b5)]=_0x39e808[_0x5d0b25(0x1a6)](0x1)[_0x5d0b25(0x19a)]('\x20');}return _0x23477d;}function timeFormat(_0x33f2e3=null,_0x13a4e9=a6_0x1ade3f(0x17d)){const _0x52b325=a6_0x1ade3f;let _0x2098dc;if(!_0x33f2e3)_0x2098dc=new Date();else{if(/^\d{10}$/[_0x52b325(0x189)](_0x33f2e3?.['toString']()[_0x52b325(0x1b3)]()))_0x2098dc=new Date(_0x33f2e3*0x3e8);else{if(typeof _0x33f2e3===_0x52b325(0x1a9)&&/^\d+$/[_0x52b325(0x189)](_0x33f2e3[_0x52b325(0x1b3)]()))_0x2098dc=new Date(Number(_0x33f2e3));else typeof _0x33f2e3==='string'&&_0x33f2e3[_0x52b325(0x1a1)]('-')&&!_0x33f2e3[_0x52b325(0x1a1)]('T')?_0x2098dc=new Date(_0x33f2e3[_0x52b325(0x1a8)](/-/g,'/')):_0x2098dc=new Date(_0x33f2e3);}}const _0xf563a3={'y':_0x2098dc[_0x52b325(0x182)]()[_0x52b325(0x168)](),'m':(_0x2098dc[_0x52b325(0x1a3)]()+0x1)[_0x52b325(0x168)]()[_0x52b325(0x199)](0x2,'0'),'d':_0x2098dc[_0x52b325(0x196)]()['toString']()[_0x52b325(0x199)](0x2,'0'),'h':_0x2098dc[_0x52b325(0x1ae)]()['toString']()[_0x52b325(0x199)](0x2,'0'),'M':_0x2098dc[_0x52b325(0x17f)]()[_0x52b325(0x168)]()['padStart'](0x2,'0'),'s':_0x2098dc[_0x52b325(0x187)]()[_0x52b325(0x168)]()['padStart'](0x2,'0')};for(const _0x464ffb in _0xf563a3){const [_0x3984f3]=new RegExp(_0x464ffb+'+')[_0x52b325(0x17b)](_0x13a4e9)||[];if(_0x3984f3){const _0x583d58=_0x464ffb==='y'&&_0x3984f3[_0x52b325(0x18e)]===0x2?0x2:0x0;_0x13a4e9=_0x13a4e9[_0x52b325(0x1a8)](_0x3984f3,_0xf563a3[_0x464ffb][_0x52b325(0x1a6)](_0x583d58));}}return _0x13a4e9;}function handleOCRData(_0x2b1402,_0x3a2924){const _0x56c1d1=a6_0x1ade3f,_0x411182=_0x3a4d3a=>{const _0x51059d=a6_0x4787,_0x4721a6=_0x3a4d3a[_0x51059d(0x1b9)](0x0,0x4),_0x3b296f=_0x3a4d3a['substring'](0x4,0x6),_0x33d099=_0x3a4d3a[_0x51059d(0x1b9)](0x6,0x8);return _0x4721a6+'-'+_0x3b296f+'-'+_0x33d099;};let _0x1848e1={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x2b1402===0x0||_0x2b1402===0x1||_0x2b1402===0x2){if(_0x3a2924['Sex']==='M')_0x1848e1['sex']='男';else _0x1848e1[_0x56c1d1(0x1b8)]='女';}debugger;_0x2b1402===0x0&&(_0x1848e1[_0x56c1d1(0x18d)]=_0x3a2924[_0x56c1d1(0x18a)],_0x1848e1[_0x56c1d1(0x19e)]=_0x3a2924[_0x56c1d1(0x17a)],_0x1848e1[_0x56c1d1(0x1b5)]=_0x3a2924[_0x56c1d1(0x174)],_0x1848e1[_0x56c1d1(0x173)]=_0x3a2924['ExpiryDate'],_0x1848e1[_0x56c1d1(0x17e)]=_0x3a2924[_0x56c1d1(0x176)],_0x1848e1[_0x56c1d1(0x1bd)]=_0x3a2924[_0x56c1d1(0x195)],_0x1848e1[_0x56c1d1(0x1a7)]=_0x3a2924[_0x56c1d1(0x16c)]);if(_0x2b1402===0x1){_0x1848e1[_0x56c1d1(0x18d)]=_0x3a2924['Name'],_0x1848e1[_0x56c1d1(0x19e)]=_0x3a2924[_0x56c1d1(0x1a0)],_0x1848e1[_0x56c1d1(0x1b5)]=_0x3a2924[_0x56c1d1(0x194)],_0x1848e1[_0x56c1d1(0x173)]=_0x3a2924['DateOfExpiration'],_0x1848e1[_0x56c1d1(0x17e)]=_0x3a2924['DateOfBirth'],_0x1848e1[_0x56c1d1(0x1bd)]=_0x3a2924[_0x56c1d1(0x195)],_0x1848e1['number']=_0x3a2924['ID'];if(!_0x3a2924[_0x56c1d1(0x1a0)]&&!_0x3a2924['GivenName']){const _0x522976=splitName(_0x3a2924[_0x56c1d1(0x18a)]);_0x1848e1[_0x56c1d1(0x19e)]=_0x522976[_0x56c1d1(0x19e)],_0x1848e1[_0x56c1d1(0x1b5)]=_0x522976['givenName'];}if(!_0x3a2924['EnglishName'])_0x1848e1[_0x56c1d1(0x1b0)]=_0x3a2924['Name'];}_0x2b1402===0x2&&(_0x1848e1[_0x56c1d1(0x18d)]=_0x3a2924[_0x56c1d1(0x166)],_0x1848e1[_0x56c1d1(0x1b0)]=_0x3a2924[_0x56c1d1(0x181)],_0x1848e1['birthDate']=_0x3a2924[_0x56c1d1(0x178)],_0x1848e1['number']=_0x3a2924['IdNum']);_0x2b1402===0x3&&(_0x1848e1[_0x56c1d1(0x18d)]=_0x3a2924[_0x56c1d1(0x18a)],_0x1848e1['sex']=_0x3a2924[_0x56c1d1(0x1a5)],_0x1848e1['expDate']=_0x3a2924['ValidDate'],_0x1848e1[_0x56c1d1(0x17e)]=_0x3a2924[_0x56c1d1(0x18c)],_0x1848e1[_0x56c1d1(0x1a7)]=_0x3a2924[_0x56c1d1(0x179)]);_0x2b1402===0x4&&(_0x1848e1['name']=_0x3a2924[_0x56c1d1(0x18a)],_0x1848e1['englishName']=_0x3a2924[_0x56c1d1(0x169)],_0x1848e1[_0x56c1d1(0x1b8)]=_0x3a2924[_0x56c1d1(0x1a5)],_0x1848e1['expDate']=_0x3a2924[_0x56c1d1(0x16a)],_0x1848e1[_0x56c1d1(0x17e)]=_0x3a2924[_0x56c1d1(0x178)],_0x1848e1['number']=_0x3a2924[_0x56c1d1(0x1b1)]);_0x2b1402===0x5&&(_0x1848e1[_0x56c1d1(0x18d)]=_0x3a2924[_0x56c1d1(0x18a)],_0x1848e1[_0x56c1d1(0x1b0)]=_0x3a2924[_0x56c1d1(0x169)],_0x1848e1[_0x56c1d1(0x1b8)]=_0x3a2924['Sex'],_0x1848e1['expDate']=_0x3a2924['ValidDate'],_0x1848e1['birthDate']=_0x3a2924['Birthday'],_0x1848e1[_0x56c1d1(0x1a7)]=_0x3a2924[_0x56c1d1(0x1b1)]);if(_0x2b1402===0x2||_0x2b1402===0x3||_0x2b1402===0x4||_0x2b1402===0x5){const _0xa54f2e=splitName(_0x1848e1[_0x56c1d1(0x18d)]);_0x1848e1[_0x56c1d1(0x19e)]=_0xa54f2e[_0x56c1d1(0x19e)],_0x1848e1[_0x56c1d1(0x1b5)]=_0xa54f2e[_0x56c1d1(0x1b5)];}if(_0x2b1402===0x2||_0x2b1402===0x4||_0x2b1402===0x5){const _0x22d0d9=splitName(_0x1848e1[_0x56c1d1(0x1b0)],!![]);_0x1848e1[_0x56c1d1(0x188)]=_0x22d0d9[_0x56c1d1(0x19e)],_0x1848e1[_0x56c1d1(0x191)]=_0x22d0d9[_0x56c1d1(0x1b5)];}if(_0x2b1402===0x0||_0x2b1402===0x1){if(_0x1848e1[_0x56c1d1(0x17e)]!=='')_0x1848e1[_0x56c1d1(0x17e)]=_0x411182(_0x1848e1[_0x56c1d1(0x17e)]);if(_0x1848e1[_0x56c1d1(0x173)]!=='')_0x1848e1['expDate']=_0x411182(_0x1848e1[_0x56c1d1(0x173)]);}if(_0x2b1402===0x2||_0x2b1402===0x3){if(_0x1848e1[_0x56c1d1(0x17e)]!=='')_0x1848e1[_0x56c1d1(0x17e)]=timeFormat(_0x1848e1[_0x56c1d1(0x17e)]);if(_0x1848e1[_0x56c1d1(0x173)]!=='')_0x1848e1[_0x56c1d1(0x173)]=timeFormat(_0x1848e1[_0x56c1d1(0x173)]);}if(_0x2b1402===0x4||_0x2b1402===0x5){if(_0x1848e1['birthDate']!=='')_0x1848e1['birthDate']=timeFormat(_0x1848e1[_0x56c1d1(0x17e)]);if(_0x1848e1[_0x56c1d1(0x173)]!==''){let _0x1cde72=_0x1848e1[_0x56c1d1(0x173)][_0x56c1d1(0x16e)]('-');_0x1848e1[_0x56c1d1(0x173)]=timeFormat(_0x1cde72[0x1]);}}return{'type':_0x2b1402,'data':_0x1848e1};}function modifyKeys(_0x3f7e4c,_0x890cdf={'strCode':a6_0x1ade3f(0x167),'strFjbh':'fjbh','strGuid':a6_0x1ade3f(0x185),'strValue':a6_0x1ade3f(0x1b4)}){const _0x2db4b5=a6_0x1ade3f;if(!_0x3f7e4c['length']||_0x3f7e4c===null)return[];const _0x101adc=_0x3f7e4c[_0x2db4b5(0x170)](_0x34173c=>{const _0x1991fa=_0x2db4b5,_0x41f363={};for(const _0x5436ca in _0x34173c){_0x890cdf[_0x1991fa(0x197)](_0x5436ca)?_0x41f363[_0x890cdf[_0x5436ca]]=_0x34173c[_0x5436ca]:_0x41f363[_0x5436ca]=_0x34173c[_0x5436ca];}return _0x41f363;});return _0x101adc;}function sliceArray(_0x46fb24,_0x2b8be9,_0x1f7ec4){const _0x2ea502=a6_0x1ade3f;if(_0x2b8be9<=0x0)return console[_0x2ea502(0x1aa)](_0x2ea502(0x16d)),[];return _0x1f7ec4?_0x46fb24[_0x2ea502(0x1a6)](0x0,_0x2b8be9):_0x46fb24[_0x2ea502(0x1a6)](-_0x2b8be9);}function findDataByData(_0x539d1e,_0x3c8364,_0x2ecdc8){const _0x1f9c97=a6_0x1ade3f,_0x40bc5d=_0x539d1e[_0x1f9c97(0x1ab)](_0x261c05=>_0x261c05[_0x2ecdc8]===_0x3c8364);return _0x40bc5d||null;}function splitArray(_0x27c946,_0x39f0b9){const _0x450222=a6_0x1ade3f,_0x7a6e63=[];for(let _0x4dbef9=0x0;_0x4dbef9<_0x27c946[_0x450222(0x18e)];_0x4dbef9+=_0x39f0b9){_0x7a6e63['push'](_0x27c946[_0x450222(0x1a6)](_0x4dbef9,_0x4dbef9+_0x39f0b9));}return _0x7a6e63;}function getProxyType(_0x25e0f3){const _0x13c866=a6_0x1ade3f;return Object[_0x13c866(0x19c)][_0x13c866(0x168)]['call'](_0x25e0f3)[_0x13c866(0x1a6)](0x8,-0x1);}function a6_0x23f7(){const _0x4ce09b=['YYYY-MM-DD','Sex','slice','number','replace','string','error','find','23967tYZhXQ','16370NhfPHJ','getHours','startsWith','englishName','Number','function','trim','label','givenName','setHours','forEach','sex','substring','floor','parse','abs','nationality','boolean','toFixed','dayTitle','yearTitle','23467644SQZbUg','left','CnName','code','toString','EnglishName','ValidDate','2488748bTYtys','PassportNo','Quantity\x20should\x20be\x20greater\x20than\x200.','split','594CnpDsI','map','888fXdRAB','push','expDate','FirstName','_qh','BirthDate','除数不能为0','Birthday','IdNum','FamilyName','exec','3vrwbcM','yyyy-mm-dd','birthDate','getMinutes','round','EnName','getFullYear','monthTitle','162cnutcA','value','0.00','getSeconds','surnameEn','test','Name','3088CAFasP','Birth','name','length','right','137180TrOran','givenNameEn','无效的操作符,操作符应为1、2、3或4','object','GivenName','Nationality','getDate','hasOwnProperty','6149052rZetFA','padStart','join','isArray','prototype','2903kkvjIS','surname','getTime','Surname','includes','match','getMonth'];a6_0x23f7=function(){return _0x4ce09b;};return a6_0x23f7();}let timeout=null;function debounce(_0x4bfd90,_0x125f1e=0x1f4,_0x1d1eb6=![]){const _0x43f97f=a6_0x1ade3f;if(timeout!==null)clearTimeout(timeout);if(_0x1d1eb6){const _0x532000=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x125f1e);if(_0x532000)typeof _0x4bfd90===_0x43f97f(0x1b2)&&_0x4bfd90();}else timeout=setTimeout(()=>{typeof _0x4bfd90==='function'&&_0x4bfd90();},_0x125f1e);}function urlEncode(_0x1065c8={}){const _0x158671=a6_0x1ade3f,_0x294582=[];for(const _0x4bcdf4 in _0x1065c8){const _0x592e3f=_0x1065c8[_0x4bcdf4];if(!_0x592e3f)continue;isArray(_0x592e3f)?_0x592e3f[_0x158671(0x1b7)](_0x1bfa2c=>{const _0x5c592a=_0x158671;_0x294582[_0x5c592a(0x172)](_0x4bcdf4+'='+_0x1bfa2c);}):_0x294582[_0x158671(0x172)](_0x4bcdf4+'='+_0x592e3f);}return _0x294582[_0x158671(0x19a)]('&');}function dateFormat(_0xdada65,_0x26e0ea){const _0x2babfe=a6_0x1ade3f,_0x221173=new Date(_0x26e0ea),_0x5197a0={'Y+':_0x221173[_0x2babfe(0x182)]()[_0x2babfe(0x168)](),'m+':(_0x221173[_0x2babfe(0x1a3)]()+0x1)['toString'](),'d+':_0x221173[_0x2babfe(0x196)]()[_0x2babfe(0x168)](),'H+':_0x221173[_0x2babfe(0x1ae)]()[_0x2babfe(0x168)](),'M+':_0x221173[_0x2babfe(0x17f)]()[_0x2babfe(0x168)](),'S+':_0x221173[_0x2babfe(0x187)]()[_0x2babfe(0x168)]()};let _0x38a23d;for(let _0x3f3a49 in _0x5197a0){_0x38a23d=new RegExp('('+_0x3f3a49+')')['exec'](_0xdada65);_0x38a23d&&(_0xdada65=_0xdada65[_0x2babfe(0x1a8)](_0x38a23d[0x1],_0x38a23d[0x1][_0x2babfe(0x18e)]==0x1?_0x5197a0[_0x3f3a49]:_0x5197a0[_0x3f3a49][_0x2babfe(0x199)](_0x38a23d[0x1]['length'],'0')));;};return _0xdada65;}function formatDate(_0x188a24,_0x5adc68=a6_0x1ade3f(0x1a4),_0x4c206a={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x3d7de3=a6_0x1ade3f,_0x4829c2=new Date(_0x188a24),_0x50ed46=_0x4829c2[_0x3d7de3(0x182)](),_0x46ba4b=_0x4829c2[_0x3d7de3(0x1a3)]()+0x1,_0x305eb2=_0x4829c2[_0x3d7de3(0x196)](),_0x3ad9e3=_0x46ba4b<0xa?'0'+_0x46ba4b:_0x46ba4b,_0x1f9bf2=_0x305eb2<0xa?'0'+_0x305eb2:_0x305eb2;let _0xa91b3c=_0x5adc68[_0x3d7de3(0x1a8)]('YYYY',_0x50ed46)[_0x3d7de3(0x1a8)]('MM',_0x3ad9e3)[_0x3d7de3(0x1a8)]('DD',_0x1f9bf2);return _0xa91b3c=_0xa91b3c[_0x3d7de3(0x1a8)](/-MM/g,_0x4c206a[_0x3d7de3(0x183)])[_0x3d7de3(0x1a8)](/-DD/g,_0x4c206a['dayTitle'])[_0x3d7de3(0x1a8)]('YYYY'+_0x4c206a[_0x3d7de3(0x163)],'')[_0x3d7de3(0x1a8)]('MM'+_0x4c206a[_0x3d7de3(0x183)],'')[_0x3d7de3(0x1a8)]('DD'+_0x4c206a[_0x3d7de3(0x1c0)],''),_0xa91b3c;}function compareDates(_0x3925e3,_0x59f565){const _0xa6e526=a6_0x1ade3f;_0x3925e3=new Date(_0x3925e3);!_0x59f565?_0x59f565=new Date():_0x59f565=new Date(_0x59f565);_0x3925e3[_0xa6e526(0x1b6)](0x0,0x0,0x0,0x0),_0x59f565['setHours'](0x0,0x0,0x0,0x0);var _0x2fede5=_0x3925e3[_0xa6e526(0x19f)](),_0x58431f=_0x59f565[_0xa6e526(0x19f)]();if(_0x2fede5<_0x58431f)return-0x1;else return _0x2fede5>_0x58431f?0x1:0x0;}function getDaysBetween(_0x50fc62,_0x6204f1){const _0x5a69da=a6_0x1ade3f,_0x16351d=new Date(_0x50fc62),_0x2ed737=new Date(_0x6204f1),_0x46da6f=Math[_0x5a69da(0x1bc)](_0x16351d[_0x5a69da(0x19f)]()-_0x2ed737[_0x5a69da(0x19f)]()),_0x9ad2b6=Math[_0x5a69da(0x1ba)](_0x46da6f/(0x3e8*0x3c*0x3c*0x18));return _0x9ad2b6+0x1;}function chineseNumeral(_0x23aaeb){const _0x293969=a6_0x1ade3f,_0x4fa4d6=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x579100=['','拾','佰','仟'],_0x376559=['','万','亿','兆'];let _0x22010b=Math[_0x293969(0x1ba)](_0x23aaeb),_0x5ed2ee=Math[_0x293969(0x180)]((_0x23aaeb-_0x22010b)*0x64),_0x218426='';for(let _0x53a94b=0x0;_0x22010b>0x0;_0x53a94b++){let _0x4c5d44='',_0xb522fc=_0x22010b%0x2710;_0x22010b=Math[_0x293969(0x1ba)](_0x22010b/0x2710);for(let _0xd86796=0x0;_0xb522fc>0x0;_0xd86796++){let _0x969c70=_0xb522fc%0xa;_0x4c5d44=(_0x969c70?_0x4fa4d6[_0x969c70]+_0x579100[_0xd86796]:'')+_0x4c5d44,_0xb522fc=Math[_0x293969(0x1ba)](_0xb522fc/0xa);}_0x218426=_0x4c5d44+(_0x4c5d44?_0x376559[_0x53a94b]:_0x376559[_0x53a94b]&&!_0x218426[_0x293969(0x1a1)]('零')?'零':'')+_0x218426;}_0x218426+=_0x218426?'元':'零元';if(_0x5ed2ee>0x0){let _0x2ecb84=Math['floor'](_0x5ed2ee/0xa),_0xb1467c=_0x5ed2ee%0xa;_0x218426+=(_0x2ecb84?_0x4fa4d6[_0x2ecb84]+'角':'')+(_0xb1467c?_0x4fa4d6[_0xb1467c]+'分':'');}else _0x218426+='整';return _0x218426[_0x293969(0x1a8)](/零{2,}/g,'零')[_0x293969(0x1a8)](/零元/,'元');}function getMonthDate(_0x114bc5){const _0x19f550=a6_0x1ade3f;(!_0x114bc5||_0x114bc5[_0x19f550(0x1b3)]()==='')&&(_0x114bc5=new Date()['getFullYear']()+'-'+(new Date()[_0x19f550(0x1a3)]()+0x1));let _0x3f91d2=[],[_0x1fb9b8,_0x41ea3f]=_0x114bc5[_0x19f550(0x16e)]('-')[_0x19f550(0x170)](Number),_0x15e2e2=new Date(_0x1fb9b8,_0x41ea3f,0x0),_0x414de1=_0x15e2e2[_0x19f550(0x196)]();for(let _0x356736=0x1;_0x356736<=_0x414de1;_0x356736++){let _0x2d9d3b=_0x356736<0xa?'0'+_0x356736:''+_0x356736,_0x5d3f75=_0x41ea3f<0xa?'0'+_0x41ea3f:''+_0x41ea3f;_0x3f91d2[_0x19f550(0x172)]({'date':_0x1fb9b8+'-'+_0x5d3f75+'-'+_0x2d9d3b,'disable':!![]});}return _0x3f91d2;}function getToday(_0x538044){const _0x52b164=a6_0x1ade3f;var _0x3e8dd9=new Date(),_0xb15155=String(_0x3e8dd9[_0x52b164(0x196)]())[_0x52b164(0x199)](0x2,'0'),_0x58222b=String(_0x3e8dd9[_0x52b164(0x1a3)]()+0x1)[_0x52b164(0x199)](0x2,'0'),_0xf35731=_0x3e8dd9[_0x52b164(0x182)]();return _0x3e8dd9=_0xf35731+'-'+_0x58222b+'-'+_0xb15155,_0x3e8dd9;}function resetObject(_0x5d452d){const _0x3e39eb=a6_0x1ade3f;let _0x368de9=JSON[_0x3e39eb(0x1bb)](JSON['stringify'](_0x5d452d));for(const _0x425de7 in _0x368de9){if(typeof _0x368de9[_0x425de7]===_0x3e39eb(0x1a7))_0x368de9[_0x425de7]=0x0;else{if(typeof _0x368de9[_0x425de7]===_0x3e39eb(0x1be))_0x368de9[_0x425de7]=![];else{if(Array[_0x3e39eb(0x19b)](_0x368de9[_0x425de7]))_0x368de9[_0x425de7]=[];else typeof _0x368de9[_0x425de7]===_0x3e39eb(0x193)&&_0x368de9[_0x425de7]!==null?resetObject(_0x368de9[_0x425de7]):_0x368de9[_0x425de7]='';}}}return _0x368de9;}function a6_0x4787(_0x36d1dd,_0x389e0f){const _0x23f718=a6_0x23f7();return a6_0x4787=function(_0x47878b,_0x1a5e5a){_0x47878b=_0x47878b-0x163;let _0x1a37ea=_0x23f718[_0x47878b];return _0x1a37ea;},a6_0x4787(_0x36d1dd,_0x389e0f);}function preciseOperation(_0x5cb6b4,_0x223f88,_0x54f1bc,_0x49aaa2=0xf4240){const _0x19318d=a6_0x1ade3f;if(isNaN(_0x5cb6b4)||isNaN(_0x223f88))return NaN;if(!isFinite(_0x5cb6b4)||!isFinite(_0x223f88))return NaN;let _0x15721b=BigInt(Math[_0x19318d(0x180)](_0x5cb6b4*_0x49aaa2)),_0x595890=BigInt(Math['round'](_0x223f88*_0x49aaa2)),_0x5e8429;switch(_0x54f1bc){case 0x1:_0x5e8429=_0x15721b+_0x595890;break;case 0x2:_0x5e8429=_0x15721b-_0x595890;break;case 0x3:_0x5e8429=_0x15721b*_0x595890;break;case 0x4:if(_0x595890===0x0n)throw new Error(_0x19318d(0x177));_0x5e8429=_0x15721b/_0x595890;break;default:throw new Error(_0x19318d(0x192));}return Number(_0x5e8429)/_0x49aaa2;}function preciseSum(_0x3e0d50){const _0x22acf4=a6_0x1ade3f;let _0x3fc6f3=0x0;for(const _0x540fff of _0x3e0d50){let _0x5200fb=0x0;if(typeof _0x540fff===_0x22acf4(0x1a9)){const _0x1dafad=parseFloat(_0x540fff);!isNaN(_0x1dafad)&&(_0x5200fb=_0x1dafad);}else typeof _0x540fff===_0x22acf4(0x1a7)&&(_0x5200fb=_0x540fff);_0x3fc6f3=preciseOperation(_0x3fc6f3,_0x5200fb,0x1);}return _0x3fc6f3;}function getRelativeDate(_0x4bde18,_0x11baac=0x0){const _0x334535=a6_0x1ade3f,_0x122997=new Date(_0x4bde18);_0x122997['setDate'](_0x122997[_0x334535(0x196)]()+_0x11baac);const _0x3217c7=_0x122997[_0x334535(0x182)](),_0x4ef804=(_0x122997[_0x334535(0x1a3)]()+0x1)[_0x334535(0x168)]()['padStart'](0x2,'0'),_0x3f102d=_0x122997[_0x334535(0x196)]()[_0x334535(0x168)]()['padStart'](0x2,'0');return _0x3217c7+'-'+_0x4ef804+'-'+_0x3f102d;}function validateFields(_0x2f6c1c,_0x4e07cb,_0x321b7f=''){for(let _0x4327fc of _0x4e07cb){if(_0x2f6c1c[_0x4327fc]===_0x321b7f)return!![];}return![];}function mergeObjects(_0x3a7316,_0x52e061){const _0x1735e8=a6_0x1ade3f;for(const _0x3507e2 in _0x3a7316){_0x52e061[_0x1735e8(0x197)](_0x3507e2)&&(_0x3a7316[_0x3507e2]=_0x52e061[_0x3507e2]);}return _0x3a7316;}const formatToDecimal=(_0x4869e2,_0x27cffe=0x2)=>{const _0x3ac1e2=a6_0x1ade3f;if(isNaN(_0x27cffe)||_0x27cffe<0x0)return _0x4869e2;let _0xbd68aa=Number(_0x4869e2);if(!isFinite(_0xbd68aa))return _0x4869e2;return _0x27cffe=Math['max'](0x0,Math[_0x3ac1e2(0x1ba)](_0x27cffe)),_0xbd68aa[_0x3ac1e2(0x1bf)](_0x27cffe);};function findKeysEndingWith(_0x517a80,_0x1e4a12=a6_0x1ade3f(0x175)){const _0x5d2975=a6_0x1ade3f;let _0x2be336=[];for(var _0x9af504 in _0x517a80){if(_0x517a80['hasOwnProperty'](_0x9af504)){if(_0x9af504['endsWith'](_0x1e4a12))_0x2be336[_0x5d2975(0x172)](_0x9af504);}}return _0x2be336;}function guid(_0x112a97=0x20,_0x4b0585=!![],_0x268703=null){const _0x5dd16b=a6_0x1ade3f,_0x1da901='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'[_0x5dd16b(0x16e)](''),_0x3d432c=[];_0x268703=_0x268703||_0x1da901['length'];if(_0x112a97){for(let _0x172d7f=0x0;_0x172d7f<_0x112a97;_0x172d7f++)_0x3d432c[_0x172d7f]=_0x1da901[0x0|Math['random']()*_0x268703];}else{let _0x3da6d1;_0x3d432c[0x8]=_0x3d432c[0xd]=_0x3d432c[0x12]=_0x3d432c[0x17]='-',_0x3d432c[0xe]='4';for(let _0x5235ff=0x0;_0x5235ff<0x24;_0x5235ff++){!_0x3d432c[_0x5235ff]&&(_0x3da6d1=0x0|Math['random']()*0x10,_0x3d432c[_0x5235ff]=_0x1da901[_0x5235ff==0x13?_0x3da6d1&0x3|0x8:_0x3da6d1]);}}if(_0x4b0585)return _0x3d432c['shift'](),'u'+_0x3d432c[_0x5dd16b(0x19a)]('');return _0x3d432c['join']('');}function trim(_0x4f2681,_0x37c9ce='both'){const _0x1a4df9=a6_0x1ade3f;_0x4f2681=String(_0x4f2681);if(_0x37c9ce=='both')return _0x4f2681[_0x1a4df9(0x1a8)](/^\s+|\s+$/g,'');if(_0x37c9ce==_0x1a4df9(0x165))return _0x4f2681['replace'](/^\s*/,'');if(_0x37c9ce==_0x1a4df9(0x18f))return _0x4f2681[_0x1a4df9(0x1a8)](/(\s*$)/g,'');if(_0x37c9ce=='all')return _0x4f2681['replace'](/\s+/g,'');return _0x4f2681;}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};
1
+ const a6_0x4dc164=a6_0x18eb;(function(_0x214b1e,_0x439743){const _0x22f1c4=a6_0x18eb,_0x3a9432=_0x214b1e();while(!![]){try{const _0x3a22d7=parseInt(_0x22f1c4(0x8f))/0x1*(parseInt(_0x22f1c4(0xca))/0x2)+parseInt(_0x22f1c4(0x9f))/0x3+-parseInt(_0x22f1c4(0x94))/0x4+-parseInt(_0x22f1c4(0x91))/0x5+-parseInt(_0x22f1c4(0xad))/0x6+parseInt(_0x22f1c4(0xc7))/0x7+-parseInt(_0x22f1c4(0xcc))/0x8*(-parseInt(_0x22f1c4(0x90))/0x9);if(_0x3a22d7===_0x439743)break;else _0x3a9432['push'](_0x3a9432['shift']());}catch(_0xe4cf8e){_0x3a9432['push'](_0x3a9432['shift']());}}}(a6_0x22f5,0xa5921));function fmtNum(_0x59deb6,_0x6350d0=!![]){const _0x103ca8=a6_0x18eb;if(_0x59deb6==0x0)return _0x6350d0?_0x103ca8(0xbb):'0';if(!_0x59deb6)return'';let _0x18aa80=typeof _0x59deb6===_0x103ca8(0xb0)?parseFloat(_0x59deb6):_0x59deb6;if(isNaN(_0x18aa80))return'';return _0x18aa80[_0x103ca8(0xbf)](_0x103ca8(0xb7),{'minimumFractionDigits':_0x6350d0?0x2:0x0,'maximumFractionDigits':_0x6350d0?0x2:0x0});}function splitName(_0x24c811,_0x2d5ea5=![]){const _0x2291a7=a6_0x18eb;let _0x545261={'surname':'','givenName':''};if(_0x2d5ea5){const _0x5c0035=_0x24c811['includes'](',')?_0x24c811[_0x2291a7(0x99)](','):_0x24c811['split'](/\s+/);_0x5c0035[_0x2291a7(0x84)]>=0x2&&(_0x545261['surname']=_0x5c0035[0x0][_0x2291a7(0x8d)](),_0x545261[_0x2291a7(0x88)]=_0x5c0035[0x1][_0x2291a7(0x8d)]());}else{const _0x51d66e=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x23f5fc=0x0;_0x23f5fc<_0x51d66e[_0x2291a7(0x84)];_0x23f5fc++){const _0x29e89e=_0x51d66e[_0x23f5fc];if(_0x24c811['startsWith'](_0x29e89e))return _0x545261['surname']=_0x29e89e,_0x545261[_0x2291a7(0x88)]=_0x24c811[_0x2291a7(0xc2)](_0x29e89e[_0x2291a7(0x84)])[_0x2291a7(0x8d)](),_0x545261;}const _0x51349d=_0x24c811['split']('\x20');if(_0x51349d[_0x2291a7(0x84)]===0x1){const _0x27fd5c=_0x24c811[_0x2291a7(0xb1)](/[\u4e00-\u9fa5]/);_0x545261[_0x2291a7(0x92)]=_0x27fd5c?_0x27fd5c[0x0]:'',_0x545261[_0x2291a7(0x88)]=_0x24c811[_0x2291a7(0xda)](_0x545261[_0x2291a7(0x92)],'')['trim']();}else _0x545261[_0x2291a7(0x92)]=_0x51349d[0x0],_0x545261[_0x2291a7(0x88)]=_0x51349d['slice'](0x1)[_0x2291a7(0x8e)]('\x20');}return _0x545261;}function timeFormat(_0x2a2a55=null,_0x44d83a=a6_0x4dc164(0xbc)){const _0x5688be=a6_0x4dc164;let _0x3ff189;if(!_0x2a2a55)_0x3ff189=new Date();else{if(/^\d{10}$/[_0x5688be(0xc1)](_0x2a2a55?.['toString']()[_0x5688be(0x8d)]()))_0x3ff189=new Date(_0x2a2a55*0x3e8);else{if(typeof _0x2a2a55===_0x5688be(0xb0)&&/^\d+$/[_0x5688be(0xc1)](_0x2a2a55[_0x5688be(0x8d)]()))_0x3ff189=new Date(Number(_0x2a2a55));else typeof _0x2a2a55==='string'&&_0x2a2a55[_0x5688be(0x9a)]('-')&&!_0x2a2a55[_0x5688be(0x9a)]('T')?_0x3ff189=new Date(_0x2a2a55[_0x5688be(0xda)](/-/g,'/')):_0x3ff189=new Date(_0x2a2a55);}}const _0x554215={'y':_0x3ff189[_0x5688be(0xc0)]()['toString'](),'m':(_0x3ff189[_0x5688be(0xb8)]()+0x1)[_0x5688be(0xde)]()['padStart'](0x2,'0'),'d':_0x3ff189[_0x5688be(0xab)]()['toString']()[_0x5688be(0x97)](0x2,'0'),'h':_0x3ff189['getHours']()[_0x5688be(0xde)]()[_0x5688be(0x97)](0x2,'0'),'M':_0x3ff189[_0x5688be(0xdb)]()[_0x5688be(0xde)]()[_0x5688be(0x97)](0x2,'0'),'s':_0x3ff189[_0x5688be(0xb6)]()[_0x5688be(0xde)]()[_0x5688be(0x97)](0x2,'0')};for(const _0x3ae649 in _0x554215){const [_0x1865dd]=new RegExp(_0x3ae649+'+')['exec'](_0x44d83a)||[];if(_0x1865dd){const _0x46641c=_0x3ae649==='y'&&_0x1865dd[_0x5688be(0x84)]===0x2?0x2:0x0;_0x44d83a=_0x44d83a['replace'](_0x1865dd,_0x554215[_0x3ae649][_0x5688be(0xb9)](_0x46641c));}}return _0x44d83a;}function handleOCRData(_0x18ed53,_0x55625c){const _0x309194=a6_0x4dc164,_0x230e20=_0x531d63=>{const _0x3a385c=a6_0x18eb,_0x3ca1f7=_0x531d63[_0x3a385c(0xc2)](0x0,0x4),_0x5e6401=_0x531d63[_0x3a385c(0xc2)](0x4,0x6),_0xcb7e67=_0x531d63[_0x3a385c(0xc2)](0x6,0x8);return _0x3ca1f7+'-'+_0x5e6401+'-'+_0xcb7e67;};let _0xc9697f={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x18ed53===0x0||_0x18ed53===0x1||_0x18ed53===0x2){if(_0x55625c[_0x309194(0xba)]==='M')_0xc9697f['sex']='男';else _0xc9697f['sex']='女';}debugger;_0x18ed53===0x0&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f[_0x309194(0x92)]=_0x55625c[_0x309194(0x95)],_0xc9697f[_0x309194(0x88)]=_0x55625c['FirstName'],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xd6)],_0xc9697f['birthDate']=_0x55625c['BirthDate'],_0xc9697f[_0x309194(0xa9)]=_0x55625c['Nationality'],_0xc9697f['number']=_0x55625c[_0x309194(0x89)]);if(_0x18ed53===0x1){_0xc9697f['name']=_0x55625c[_0x309194(0xae)],_0xc9697f['surname']=_0x55625c[_0x309194(0xc9)],_0xc9697f[_0x309194(0x88)]=_0x55625c[_0x309194(0xaf)],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xa6)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xa1)],_0xc9697f[_0x309194(0xa9)]=_0x55625c['Nationality'],_0xc9697f['number']=_0x55625c['ID'];if(!_0x55625c[_0x309194(0xc9)]&&!_0x55625c[_0x309194(0xaf)]){const _0x52d153=splitName(_0x55625c[_0x309194(0xae)]);_0xc9697f[_0x309194(0x92)]=_0x52d153[_0x309194(0x92)],_0xc9697f['givenName']=_0x52d153['givenName'];}if(!_0x55625c[_0x309194(0xd5)])_0xc9697f[_0x309194(0xa4)]=_0x55625c['Name'];}_0x18ed53===0x2&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c[_0x309194(0xa5)],_0xc9697f[_0x309194(0xa4)]=_0x55625c[_0x309194(0xa3)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xd2)],_0xc9697f['number']=_0x55625c[_0x309194(0x93)]);_0x18ed53===0x3&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f[_0x309194(0x8c)]=_0x55625c[_0x309194(0xba)],_0xc9697f['expDate']=_0x55625c[_0x309194(0xa7)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xdd)],_0xc9697f[_0x309194(0x9e)]=_0x55625c['IdNum']);_0x18ed53===0x4&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f['englishName']=_0x55625c[_0x309194(0xd5)],_0xc9697f[_0x309194(0x8c)]=_0x55625c[_0x309194(0xba)],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xa7)],_0xc9697f[_0x309194(0xc3)]=_0x55625c[_0x309194(0xd2)],_0xc9697f[_0x309194(0x9e)]=_0x55625c[_0x309194(0xcf)]);_0x18ed53===0x5&&(_0xc9697f[_0x309194(0xb3)]=_0x55625c['Name'],_0xc9697f['englishName']=_0x55625c['EnglishName'],_0xc9697f[_0x309194(0x8c)]=_0x55625c[_0x309194(0xba)],_0xc9697f[_0x309194(0x98)]=_0x55625c[_0x309194(0xa7)],_0xc9697f[_0x309194(0xc3)]=_0x55625c['Birthday'],_0xc9697f[_0x309194(0x9e)]=_0x55625c[_0x309194(0xcf)]);if(_0x18ed53===0x2||_0x18ed53===0x3||_0x18ed53===0x4||_0x18ed53===0x5){const _0x8ce598=splitName(_0xc9697f[_0x309194(0xb3)]);_0xc9697f[_0x309194(0x92)]=_0x8ce598[_0x309194(0x92)],_0xc9697f[_0x309194(0x88)]=_0x8ce598[_0x309194(0x88)];}if(_0x18ed53===0x2||_0x18ed53===0x4||_0x18ed53===0x5){const _0x199e4b=splitName(_0xc9697f['englishName'],!![]);_0xc9697f[_0x309194(0x8a)]=_0x199e4b[_0x309194(0x92)],_0xc9697f[_0x309194(0xa8)]=_0x199e4b['givenName'];}if(_0x18ed53===0x0||_0x18ed53===0x1){if(_0xc9697f['birthDate']!=='')_0xc9697f[_0x309194(0xc3)]=_0x230e20(_0xc9697f['birthDate']);if(_0xc9697f[_0x309194(0x98)]!=='')_0xc9697f['expDate']=_0x230e20(_0xc9697f[_0x309194(0x98)]);}if(_0x18ed53===0x2||_0x18ed53===0x3){if(_0xc9697f[_0x309194(0xc3)]!=='')_0xc9697f[_0x309194(0xc3)]=timeFormat(_0xc9697f[_0x309194(0xc3)]);if(_0xc9697f[_0x309194(0x98)]!=='')_0xc9697f[_0x309194(0x98)]=timeFormat(_0xc9697f[_0x309194(0x98)]);}if(_0x18ed53===0x4||_0x18ed53===0x5){if(_0xc9697f[_0x309194(0xc3)]!=='')_0xc9697f[_0x309194(0xc3)]=timeFormat(_0xc9697f[_0x309194(0xc3)]);if(_0xc9697f[_0x309194(0x98)]!==''){let _0x521aca=_0xc9697f[_0x309194(0x98)][_0x309194(0x99)]('-');_0xc9697f[_0x309194(0x98)]=timeFormat(_0x521aca[0x1]);}}return{'type':_0x18ed53,'data':_0xc9697f};}function modifyKeys(_0x202c27,_0x261e0a={'strCode':a6_0x4dc164(0x9c),'strFjbh':a6_0x4dc164(0xc8),'strGuid':a6_0x4dc164(0xb2),'strValue':a6_0x4dc164(0x85)}){const _0x285bcc=a6_0x4dc164;if(!_0x202c27[_0x285bcc(0x84)]||_0x202c27===null)return[];const _0xa50d3c=_0x202c27[_0x285bcc(0x9d)](_0x5bb8e3=>{const _0x541b5b=_0x285bcc,_0x17416a={};for(const _0x8c259c in _0x5bb8e3){_0x261e0a[_0x541b5b(0xd7)](_0x8c259c)?_0x17416a[_0x261e0a[_0x8c259c]]=_0x5bb8e3[_0x8c259c]:_0x17416a[_0x8c259c]=_0x5bb8e3[_0x8c259c];}return _0x17416a;});return _0xa50d3c;}function sliceArray(_0x1dd05e,_0x6d76ca,_0x526d1e){const _0x21d72f=a6_0x4dc164;if(_0x6d76ca<=0x0)return console[_0x21d72f(0x96)](_0x21d72f(0xc5)),[];return _0x526d1e?_0x1dd05e['slice'](0x0,_0x6d76ca):_0x1dd05e['slice'](-_0x6d76ca);}function findDataByData(_0x3bb230,_0x391cf0,_0x48a038){const _0x3f4e9e=_0x3bb230['find'](_0x2e2e3a=>_0x2e2e3a[_0x48a038]===_0x391cf0);return _0x3f4e9e||null;}function splitArray(_0x30d811,_0x3ec6ef){const _0x1d0cd8=a6_0x4dc164,_0x768667=[];for(let _0x144113=0x0;_0x144113<_0x30d811[_0x1d0cd8(0x84)];_0x144113+=_0x3ec6ef){_0x768667['push'](_0x30d811[_0x1d0cd8(0xb9)](_0x144113,_0x144113+_0x3ec6ef));}return _0x768667;}function getProxyType(_0x5bc263){const _0x1868e2=a6_0x4dc164;return Object[_0x1868e2(0xd4)][_0x1868e2(0xde)][_0x1868e2(0xcd)](_0x5bc263)[_0x1868e2(0xb9)](0x8,-0x1);}let timeout=null;function debounce(_0x1c784b,_0x44e4f0=0x1f4,_0x801e94=![]){const _0x20ce05=a6_0x4dc164;if(timeout!==null)clearTimeout(timeout);if(_0x801e94){const _0x45bd97=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x44e4f0);if(_0x45bd97)typeof _0x1c784b===_0x20ce05(0x8b)&&_0x1c784b();}else timeout=setTimeout(()=>{const _0x105b91=_0x20ce05;typeof _0x1c784b===_0x105b91(0x8b)&&_0x1c784b();},_0x44e4f0);}function urlEncode(_0x3d88a1={}){const _0x30c411=a6_0x4dc164,_0x931dfb=[];for(const _0x35f33e in _0x3d88a1){const _0x50e164=_0x3d88a1[_0x35f33e];if(!_0x50e164)continue;isArray(_0x50e164)?_0x50e164[_0x30c411(0xaa)](_0x17f11c=>{const _0x5bd3e0=_0x30c411;_0x931dfb[_0x5bd3e0(0xd8)](_0x35f33e+'='+_0x17f11c);}):_0x931dfb[_0x30c411(0xd8)](_0x35f33e+'='+_0x50e164);}return _0x931dfb[_0x30c411(0x8e)]('&');}function dateFormat(_0x49fdfa,_0x4a045c){const _0xe406b7=a6_0x4dc164,_0x5184c3=new Date(_0x4a045c),_0x414c30={'Y+':_0x5184c3[_0xe406b7(0xc0)]()[_0xe406b7(0xde)](),'m+':(_0x5184c3[_0xe406b7(0xb8)]()+0x1)[_0xe406b7(0xde)](),'d+':_0x5184c3[_0xe406b7(0xab)]()[_0xe406b7(0xde)](),'H+':_0x5184c3['getHours']()[_0xe406b7(0xde)](),'M+':_0x5184c3[_0xe406b7(0xdb)]()[_0xe406b7(0xde)](),'S+':_0x5184c3[_0xe406b7(0xb6)]()['toString']()};let _0x3c6980;for(let _0x1b2040 in _0x414c30){_0x3c6980=new RegExp('('+_0x1b2040+')')[_0xe406b7(0xd1)](_0x49fdfa);_0x3c6980&&(_0x49fdfa=_0x49fdfa[_0xe406b7(0xda)](_0x3c6980[0x1],_0x3c6980[0x1]['length']==0x1?_0x414c30[_0x1b2040]:_0x414c30[_0x1b2040]['padStart'](_0x3c6980[0x1][_0xe406b7(0x84)],'0')));;};return _0x49fdfa;}function formatDate(_0x443b88,_0x527cfd=a6_0x4dc164(0xc4),_0x503d67={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x4b1554=a6_0x4dc164,_0x476191=new Date(_0x443b88),_0x1e3367=_0x476191['getFullYear'](),_0x109b7d=_0x476191[_0x4b1554(0xb8)]()+0x1,_0x3b7784=_0x476191[_0x4b1554(0xab)](),_0x3681dc=_0x109b7d<0xa?'0'+_0x109b7d:_0x109b7d,_0x25de90=_0x3b7784<0xa?'0'+_0x3b7784:_0x3b7784;let _0x5a68f5=_0x527cfd['replace'](_0x4b1554(0xd9),_0x1e3367)[_0x4b1554(0xda)]('MM',_0x3681dc)[_0x4b1554(0xda)]('DD',_0x25de90);return _0x5a68f5=_0x5a68f5['replace'](/-MM/g,_0x503d67[_0x4b1554(0xcb)])['replace'](/-DD/g,_0x503d67['dayTitle'])['replace'](_0x4b1554(0xd9)+_0x503d67[_0x4b1554(0xb5)],'')[_0x4b1554(0xda)]('MM'+_0x503d67['monthTitle'],'')['replace']('DD'+_0x503d67['dayTitle'],''),_0x5a68f5;}function compareDates(_0x2b8aad,_0x5cc882){const _0xd664b0=a6_0x4dc164;_0x2b8aad=new Date(_0x2b8aad);!_0x5cc882?_0x5cc882=new Date():_0x5cc882=new Date(_0x5cc882);_0x2b8aad[_0xd664b0(0xdf)](0x0,0x0,0x0,0x0),_0x5cc882[_0xd664b0(0xdf)](0x0,0x0,0x0,0x0);var _0xcfb20f=_0x2b8aad[_0xd664b0(0x87)](),_0x4bb620=_0x5cc882[_0xd664b0(0x87)]();if(_0xcfb20f<_0x4bb620)return-0x1;else return _0xcfb20f>_0x4bb620?0x1:0x0;}function getDaysBetween(_0x244c79,_0x14051a){const _0x1f4ca2=a6_0x4dc164,_0x1d2bcc=new Date(_0x244c79),_0x5d6cfc=new Date(_0x14051a),_0x2aff5a=Math[_0x1f4ca2(0xd0)](_0x1d2bcc[_0x1f4ca2(0x87)]()-_0x5d6cfc[_0x1f4ca2(0x87)]()),_0x332a9d=Math[_0x1f4ca2(0x9b)](_0x2aff5a/(0x3e8*0x3c*0x3c*0x18));return _0x332a9d+0x1;}function chineseNumeral(_0x3663bf){const _0x1a7906=a6_0x4dc164,_0x1f1141=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x47f41b=['','拾','佰','仟'],_0x80a3e0=['','万','亿','兆'];let _0x7e6f62=Math[_0x1a7906(0x9b)](_0x3663bf),_0x50a6c6=Math[_0x1a7906(0xa0)]((_0x3663bf-_0x7e6f62)*0x64),_0x29e378='';for(let _0x4c2abf=0x0;_0x7e6f62>0x0;_0x4c2abf++){let _0x15a809='',_0x435aef=_0x7e6f62%0x2710;_0x7e6f62=Math[_0x1a7906(0x9b)](_0x7e6f62/0x2710);for(let _0x127d9e=0x0;_0x435aef>0x0;_0x127d9e++){let _0x3884f2=_0x435aef%0xa;_0x15a809=(_0x3884f2?_0x1f1141[_0x3884f2]+_0x47f41b[_0x127d9e]:'')+_0x15a809,_0x435aef=Math[_0x1a7906(0x9b)](_0x435aef/0xa);}_0x29e378=_0x15a809+(_0x15a809?_0x80a3e0[_0x4c2abf]:_0x80a3e0[_0x4c2abf]&&!_0x29e378['includes']('零')?'零':'')+_0x29e378;}_0x29e378+=_0x29e378?'元':'零元';if(_0x50a6c6>0x0){let _0x365f93=Math[_0x1a7906(0x9b)](_0x50a6c6/0xa),_0x31cede=_0x50a6c6%0xa;_0x29e378+=(_0x365f93?_0x1f1141[_0x365f93]+'角':'')+(_0x31cede?_0x1f1141[_0x31cede]+'分':'');}else _0x29e378+='整';return _0x29e378[_0x1a7906(0xda)](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x537817){const _0x1845bf=a6_0x4dc164;(!_0x537817||_0x537817[_0x1845bf(0x8d)]()==='')&&(_0x537817=new Date()[_0x1845bf(0xc0)]()+'-'+(new Date()[_0x1845bf(0xb8)]()+0x1));let _0x14f7fd=[],[_0x46aa80,_0x35d149]=_0x537817[_0x1845bf(0x99)]('-')['map'](Number),_0x36313c=new Date(_0x46aa80,_0x35d149,0x0),_0x4ba187=_0x36313c[_0x1845bf(0xab)]();for(let _0x5e3277=0x1;_0x5e3277<=_0x4ba187;_0x5e3277++){let _0x50295c=_0x5e3277<0xa?'0'+_0x5e3277:''+_0x5e3277,_0x28c46b=_0x35d149<0xa?'0'+_0x35d149:''+_0x35d149;_0x14f7fd[_0x1845bf(0xd8)]({'date':_0x46aa80+'-'+_0x28c46b+'-'+_0x50295c,'disable':!![]});}return _0x14f7fd;}function getToday(_0x48e775){const _0x58e1f3=a6_0x4dc164;var _0x195fc8=new Date(),_0x44a0e2=String(_0x195fc8[_0x58e1f3(0xab)]())[_0x58e1f3(0x97)](0x2,'0'),_0x42651a=String(_0x195fc8[_0x58e1f3(0xb8)]()+0x1)[_0x58e1f3(0x97)](0x2,'0'),_0xdcd081=_0x195fc8[_0x58e1f3(0xc0)]();return _0x195fc8=_0xdcd081+'-'+_0x42651a+'-'+_0x44a0e2,_0x195fc8;}function a6_0x18eb(_0x4e1c0b,_0x2a70a0){const _0x22f566=a6_0x22f5();return a6_0x18eb=function(_0x18ebbf,_0x43d44b){_0x18ebbf=_0x18ebbf-0x84;let _0x41888f=_0x22f566[_0x18ebbf];return _0x41888f;},a6_0x18eb(_0x4e1c0b,_0x2a70a0);}function resetObject(_0x31437b){const _0x54231f=a6_0x4dc164;let _0x5e5b59=JSON['parse'](JSON[_0x54231f(0xa2)](_0x31437b));for(const _0x188df5 in _0x5e5b59){if(typeof _0x5e5b59[_0x188df5]===_0x54231f(0x9e))_0x5e5b59[_0x188df5]=0x0;else{if(typeof _0x5e5b59[_0x188df5]===_0x54231f(0xb4))_0x5e5b59[_0x188df5]=![];else{if(Array[_0x54231f(0xe0)](_0x5e5b59[_0x188df5]))_0x5e5b59[_0x188df5]=[];else typeof _0x5e5b59[_0x188df5]===_0x54231f(0xdc)&&_0x5e5b59[_0x188df5]!==null?resetObject(_0x5e5b59[_0x188df5]):_0x5e5b59[_0x188df5]='';}}}return _0x5e5b59;}function preciseOperation(_0x1292ea,_0x1b03c1,_0xfc977c,_0x39b277=0xf4240){const _0x1cc446=a6_0x4dc164;if(isNaN(_0x1292ea)||isNaN(_0x1b03c1))return NaN;if(!isFinite(_0x1292ea)||!isFinite(_0x1b03c1))return NaN;let _0x1a0413=BigInt(Math[_0x1cc446(0xa0)](_0x1292ea*_0x39b277)),_0x136294=BigInt(Math[_0x1cc446(0xa0)](_0x1b03c1*_0x39b277)),_0x2a346e;switch(_0xfc977c){case 0x1:_0x2a346e=_0x1a0413+_0x136294;break;case 0x2:_0x2a346e=_0x1a0413-_0x136294;break;case 0x3:_0x2a346e=_0x1a0413*_0x136294;break;case 0x4:if(_0x136294===0x0n)throw new Error('除数不能为0');_0x2a346e=_0x1a0413/_0x136294;break;default:throw new Error(_0x1cc446(0xd3));}return Number(_0x2a346e)/_0x39b277;}function preciseSum(_0x52634f){const _0x15658c=a6_0x4dc164;let _0x4608d8=0x0;for(const _0x2b488b of _0x52634f){let _0x566ed3=0x0;if(typeof _0x2b488b===_0x15658c(0xb0)){const _0x21cd11=parseFloat(_0x2b488b);!isNaN(_0x21cd11)&&(_0x566ed3=_0x21cd11);}else typeof _0x2b488b===_0x15658c(0x9e)&&(_0x566ed3=_0x2b488b);_0x4608d8=preciseOperation(_0x4608d8,_0x566ed3,0x1);}return _0x4608d8;}function getRelativeDate(_0x1f6001,_0x454b1f=0x0){const _0x1606b3=a6_0x4dc164,_0x96af31=new Date(_0x1f6001);_0x96af31['setDate'](_0x96af31[_0x1606b3(0xab)]()+_0x454b1f);const _0x1156e3=_0x96af31[_0x1606b3(0xc0)](),_0x4ca31c=(_0x96af31[_0x1606b3(0xb8)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x1a981c=_0x96af31[_0x1606b3(0xab)]()[_0x1606b3(0xde)]()[_0x1606b3(0x97)](0x2,'0');return _0x1156e3+'-'+_0x4ca31c+'-'+_0x1a981c;}function validateFields(_0x495ec0,_0x5eebb4,_0x2c67c9=''){for(let _0xbca27b of _0x5eebb4){if(_0x495ec0[_0xbca27b]===_0x2c67c9)return!![];}return![];}function mergeObjects(_0x4fa563,_0x1a6aca){const _0x205e19=a6_0x4dc164;for(const _0x5119c8 in _0x4fa563){_0x1a6aca[_0x205e19(0xd7)](_0x5119c8)&&(_0x4fa563[_0x5119c8]=_0x1a6aca[_0x5119c8]);}return _0x4fa563;}const formatToDecimal=(_0x2ce194,_0x39e8ae=0x2)=>{const _0x18e40b=a6_0x4dc164;if(isNaN(_0x39e8ae)||_0x39e8ae<0x0)return _0x2ce194;let _0x505ebf=Number(_0x2ce194);if(!isFinite(_0x505ebf))return _0x2ce194;return _0x39e8ae=Math['max'](0x0,Math['floor'](_0x39e8ae)),_0x505ebf[_0x18e40b(0x86)](_0x39e8ae);};function findKeysEndingWith(_0x3e723e,_0x1337f3='_qh'){const _0x4a6167=a6_0x4dc164;let _0xe32119=[];for(var _0x5ebf05 in _0x3e723e){if(_0x3e723e['hasOwnProperty'](_0x5ebf05)){if(_0x5ebf05[_0x4a6167(0xbe)](_0x1337f3))_0xe32119[_0x4a6167(0xd8)](_0x5ebf05);}}return _0xe32119;}function a6_0x22f5(){const _0x4fe292=['toString','setHours','isArray','length','label','toFixed','getTime','givenName','PassportNo','surnameEn','function','sex','trim','join','13299zwLyvs','39933zmelIr','4464845mIEGJQ','surname','IdNum','1772512ktYqXt','FamilyName','error','padStart','expDate','split','includes','floor','code','map','number','3935082eaXjNM','round','DateOfBirth','stringify','EnName','englishName','CnName','DateOfExpiration','ValidDate','givenNameEn','nationality','forEach','getDate','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','5888784pznbIz','Name','GivenName','string','match','value','name','boolean','yearTitle','getSeconds','en-US','getMonth','slice','Sex','0.00','yyyy-mm-dd','both','endsWith','toLocaleString','getFullYear','test','substring','birthDate','YYYY-MM-DD','Quantity\x20should\x20be\x20greater\x20than\x200.','random','7379694ghjKWz','fjbh','Surname','42cauFtp','monthTitle','632sfacJl','call','right','Number','abs','exec','Birthday','无效的操作符,操作符应为1、2、3或4','prototype','EnglishName','ExpiryDate','hasOwnProperty','push','YYYY','replace','getMinutes','object','Birth'];a6_0x22f5=function(){return _0x4fe292;};return a6_0x22f5();}function guid(_0x2d3f43=0x20,_0x64d048=!![],_0x5336e7=null){const _0x5ad0c0=a6_0x4dc164,_0x1b5faf=_0x5ad0c0(0xac)['split'](''),_0x3215a5=[];_0x5336e7=_0x5336e7||_0x1b5faf[_0x5ad0c0(0x84)];if(_0x2d3f43){for(let _0x5a75db=0x0;_0x5a75db<_0x2d3f43;_0x5a75db++)_0x3215a5[_0x5a75db]=_0x1b5faf[0x0|Math[_0x5ad0c0(0xc6)]()*_0x5336e7];}else{let _0x4ec03a;_0x3215a5[0x8]=_0x3215a5[0xd]=_0x3215a5[0x12]=_0x3215a5[0x17]='-',_0x3215a5[0xe]='4';for(let _0x3e6295=0x0;_0x3e6295<0x24;_0x3e6295++){!_0x3215a5[_0x3e6295]&&(_0x4ec03a=0x0|Math[_0x5ad0c0(0xc6)]()*0x10,_0x3215a5[_0x3e6295]=_0x1b5faf[_0x3e6295==0x13?_0x4ec03a&0x3|0x8:_0x4ec03a]);}}if(_0x64d048)return _0x3215a5['shift'](),'u'+_0x3215a5[_0x5ad0c0(0x8e)]('');return _0x3215a5[_0x5ad0c0(0x8e)]('');}function trim(_0x1c78af,_0x336f9e=a6_0x4dc164(0xbd)){const _0x114e9b=a6_0x4dc164;_0x1c78af=String(_0x1c78af);if(_0x336f9e=='both')return _0x1c78af['replace'](/^\s+|\s+$/g,'');if(_0x336f9e=='left')return _0x1c78af['replace'](/^\s*/,'');if(_0x336f9e==_0x114e9b(0xce))return _0x1c78af[_0x114e9b(0xda)](/(\s*$)/g,'');if(_0x336f9e=='all')return _0x1c78af[_0x114e9b(0xda)](/\s+/g,'');return _0x1c78af;}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.48",
3
+ "version": "1.0.49",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {