yunlin 1.0.52 → 1.0.54

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(_0x296436,_0x4f90e5){var _0xb94203=a0_0x4747,_0x175fe2=_0x296436();while(!![]){try{var _0x2fe06f=-parseInt(_0xb94203(0x11f))/0x1+parseInt(_0xb94203(0x117))/0x2*(parseInt(_0xb94203(0x118))/0x3)+-parseInt(_0xb94203(0x11a))/0x4*(parseInt(_0xb94203(0x11d))/0x5)+parseInt(_0xb94203(0x11c))/0x6+parseInt(_0xb94203(0x119))/0x7+-parseInt(_0xb94203(0x11b))/0x8+-parseInt(_0xb94203(0x116))/0x9*(-parseInt(_0xb94203(0x11e))/0xa);if(_0x2fe06f===_0x4f90e5)break;else _0x175fe2['push'](_0x175fe2['shift']());}catch(_0x12a941){_0x175fe2['push'](_0x175fe2['shift']());}}}(a0_0xc546,0xc1c98));import a0_0x1a32ff from'./utils';function a0_0xc546(){var _0x4a2abc=['4961922brdowV','15jPfnkb','10uzpiPL','1322014BvIgri','19503513omfMTU','274sJbjeR','19758FqXhxt','4687214wGslPc','1335716sJaurj','11587000QlNqHh'];a0_0xc546=function(){return _0x4a2abc;};return a0_0xc546();}import a0_0x41aea3 from'./price';import a0_0x28ad04 from'./test';function a0_0x4747(_0x229490,_0xc4b61f){var _0xc54626=a0_0xc546();return a0_0x4747=function(_0x474794,_0x4e802b){_0x474794=_0x474794-0x116;var _0x36cbdf=_0xc54626[_0x474794];return _0x36cbdf;},a0_0x4747(_0x229490,_0xc4b61f);}import a0_0x4d447e from'./room';import a0_0x27f036 from'./roomOld';import a0_0x2e4214 from'./system';export default{'test':a0_0x28ad04,'utils':a0_0x1a32ff,'price':a0_0x41aea3,'room':a0_0x4d447e,'roomOld':a0_0x27f036,'system':a0_0x2e4214};
1
+ function a0_0x1449(){var _0x12da2a=['7875mxjksX','6040172tkuTUg','24687llreCc','78qewozM','15864WjyelS','1517612mDeDiw','370ZOKQwD','113460nyFDwP','9407230bfjUZw','88316150odIFjX'];a0_0x1449=function(){return _0x12da2a;};return a0_0x1449();}function a0_0x1a55(_0x550b91,_0x2ef4ab){var _0x144967=a0_0x1449();return a0_0x1a55=function(_0x1a55ad,_0x12c79d){_0x1a55ad=_0x1a55ad-0x11a;var _0x5d7049=_0x144967[_0x1a55ad];return _0x5d7049;},a0_0x1a55(_0x550b91,_0x2ef4ab);}(function(_0x59e03f,_0x3d292c){var _0xfd49e8=a0_0x1a55,_0x27e3fc=_0x59e03f();while(!![]){try{var _0x124058=-parseInt(_0xfd49e8(0x122))/0x1+-parseInt(_0xfd49e8(0x123))/0x2*(parseInt(_0xfd49e8(0x11f))/0x3)+-parseInt(_0xfd49e8(0x11e))/0x4+-parseInt(_0xfd49e8(0x11a))/0x5*(parseInt(_0xfd49e8(0x120))/0x6)+-parseInt(_0xfd49e8(0x11b))/0x7+parseInt(_0xfd49e8(0x121))/0x8*(-parseInt(_0xfd49e8(0x11d))/0x9)+parseInt(_0xfd49e8(0x11c))/0xa;if(_0x124058===_0x3d292c)break;else _0x27e3fc['push'](_0x27e3fc['shift']());}catch(_0x13b6b9){_0x27e3fc['push'](_0x27e3fc['shift']());}}}(a0_0x1449,0xdd940));import a0_0x1faf6d from'./utils';import a0_0x47e5e6 from'./price';import a0_0x3711f2 from'./test';import a0_0x383107 from'./room';import a0_0x4c282c from'./roomOld';import a0_0xdbb357 from'./system';export default{'test':a0_0x3711f2,'utils':a0_0x1faf6d,'price':a0_0x47e5e6,'room':a0_0x383107,'roomOld':a0_0x4c282c,'system':a0_0xdbb357};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x467607,_0xe385a1){const _0x4d139e=a1_0x3730,_0x11b655=_0x467607();while(!![]){try{const _0x1892c4=-parseInt(_0x4d139e(0xfb))/0x1*(parseInt(_0x4d139e(0x111))/0x2)+parseInt(_0x4d139e(0xcb))/0x3*(parseInt(_0x4d139e(0x103))/0x4)+-parseInt(_0x4d139e(0xff))/0x5*(-parseInt(_0x4d139e(0x112))/0x6)+parseInt(_0x4d139e(0x106))/0x7*(parseInt(_0x4d139e(0xd6))/0x8)+-parseInt(_0x4d139e(0xd5))/0x9*(parseInt(_0x4d139e(0x109))/0xa)+parseInt(_0x4d139e(0x10e))/0xb*(parseInt(_0x4d139e(0x10b))/0xc)+-parseInt(_0x4d139e(0xcd))/0xd*(parseInt(_0x4d139e(0xcc))/0xe);if(_0x1892c4===_0xe385a1)break;else _0x11b655['push'](_0x11b655['shift']());}catch(_0x10c965){_0x11b655['push'](_0x11b655['shift']());}}}(a1_0x5ed9,0xbbc5c));function handleCosting(_0x3b12b0,_0x51e2bb='',_0x4c01da={},_0x1bc278,_0x1ae422){const _0x1dfa57=a1_0x3730;let _0x2a1068=[];const _0x541466=_0x1dfa57(0xc4),_0x3d9e5c={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x4c01da=typeof _0x4c01da===_0x1dfa57(0xe8)&&!Array['isArray'](_0x4c01da)&&_0x4c01da!==null?_0x4c01da:{};const _0x46b5cb={..._0x3d9e5c,..._0x4c01da},_0x3c152f=Object[_0x1dfa57(0xd1)](_0x3d9e5c);Object['keys'](_0x4c01da)[_0x1dfa57(0xc8)](_0x5f4b54=>{const _0x53663b=_0x1dfa57;!_0x3c152f[_0x53663b(0xf4)](_0x5f4b54)&&console[_0x53663b(0xc3)](_0x53663b(0xd0)+_0x5f4b54);});let _0x325507=_0x46b5cb[_0x1dfa57(0x108)]||'-',_0x4a7a5a=_0x46b5cb['dp']||0x2;const _0x2ff0c8=(_0x61f7a7,_0x794f5e=_0x4a7a5a)=>{const _0x13b651=_0x1dfa57;if(typeof _0x61f7a7!=='number'&&isNaN(Number(_0x61f7a7)))return console[_0x13b651(0xea)](_0x13b651(0xe7)+_0x61f7a7),_0x61f7a7;if(isNaN(_0x794f5e)||_0x794f5e<0x0)return _0x61f7a7;let _0x5eac3c=Number(_0x61f7a7);if(!isFinite(_0x5eac3c))return _0x61f7a7;return _0x794f5e=Math['max'](0x0,Math[_0x13b651(0x114)](_0x794f5e)),_0x5eac3c[_0x13b651(0xfe)](_0x794f5e);},_0xf2fc4e=(_0xce0b02,_0x527f45)=>{const _0x1e7190=_0x1dfa57;if(_0x527f45&&typeof _0x527f45==='object'&&!Array[_0x1e7190(0x11d)](_0x527f45))for(const _0x549efd in _0xce0b02){_0xce0b02[_0x1e7190(0xe5)](_0x549efd)&&_0x527f45[_0x1e7190(0xe5)](_0x549efd)&&(_0xce0b02[_0x549efd]=_0x527f45[_0x549efd]);}else console[_0x1e7190(0xea)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x1e7190(0xd7)](_0x527f45,null,0x2)+_0x1e7190(0x119)+JSON[_0x1e7190(0xd7)](_0xce0b02,null,0x2))[_0x1e7190(0xf9)]());return _0xce0b02;};let _0x52e8fa={'people':_0x1dfa57(0xd9),'service':_0x1dfa57(0xd4),'trip':_0x1dfa57(0xeb),'other':_0x1dfa57(0x104),'reduction':_0x1dfa57(0xf5),'totalprice':'總計','airtax':_0x1dfa57(0xc7)},_0x185b4f={'adult':'成人','child':'兒童','childusebed':_0x1dfa57(0xd2),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x1dfa57(0xc1),'vip':_0x1dfa57(0x101),'promotion':'促銷','insure':_0x1dfa57(0x11a),'coupon':'優惠券','point':'積分','tax':'稅金','viprecharge':_0x1dfa57(0xf2),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x52e8fa=_0xf2fc4e(_0x52e8fa,_0x1bc278),_0x185b4f=_0xf2fc4e(_0x185b4f,_0x1ae422);const _0x570ee6=_0x3b12b0[_0x1dfa57(0xee)](_0x3bec65=>_0x3bec65['strLx']=='base');if(_0x570ee6[_0x1dfa57(0xe0)]){let _0x4ce375={'title':_0x52e8fa[_0x1dfa57(0xf3)],'type':'base','list':[]};_0x570ee6['map'](_0x2a798a=>{const _0x415459=_0x1dfa57;_0x4ce375['list'][_0x415459(0x11e)]({'title':_0x185b4f[_0x2a798a['strJgbm']],'subTitle':_0x2a798a[_0x415459(0xf8)],'date':_0x2a798a[_0x415459(0xfc)],'info':_0x51e2bb+_0x2ff0c8(_0x2a798a[_0x415459(0x107)])+_0x541466+_0x2a798a[_0x415459(0xe6)],'nRs':_0x2a798a[_0x415459(0xe6)],'unit':_0x2a798a[_0x415459(0x107)],'cb':_0x2a798a[_0x415459(0xc0)],'type':_0x415459(0xc2)});}),_0x2a1068['push'](_0x4ce375);}const _0x4e3c5c=_0x3b12b0[_0x1dfa57(0xee)](_0x506486=>_0x506486[_0x1dfa57(0xca)]==_0x1dfa57(0xed));if(_0x4e3c5c[_0x1dfa57(0xe0)]){let _0x59d4e6={'title':_0x52e8fa[_0x1dfa57(0xed)],'type':_0x1dfa57(0xed),'list':[]};_0x4e3c5c[_0x1dfa57(0xe1)](_0x8a7b30=>{const _0x120564=_0x1dfa57;_0x59d4e6['list'][_0x120564(0x11e)]({'title':_0x8a7b30[_0x120564(0x115)]+('['+_0x8a7b30[_0x120564(0x11b)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x8a7b30[_0x120564(0x110)])+_0x541466+_0x8a7b30[_0x120564(0x117)],'nRs':_0x8a7b30[_0x120564(0x117)],'unit':_0x8a7b30[_0x120564(0x110)],'cb':_0x8a7b30[_0x120564(0xe9)],'type':'service'});}),_0x2a1068[_0x1dfa57(0x11e)](_0x59d4e6);}const _0x3c82bf=_0x3b12b0[_0x1dfa57(0xee)](_0x122914=>_0x122914[_0x1dfa57(0xca)]==_0x1dfa57(0x10c));if(_0x3c82bf[_0x1dfa57(0xe0)]){let _0x4b31e3={'title':_0x52e8fa[_0x1dfa57(0x10c)],'type':_0x1dfa57(0x10c),'list':[]};_0x3c82bf[_0x1dfa57(0xe1)](_0x376a18=>{const _0x3f0c6e=_0x1dfa57;_0x376a18[_0x3f0c6e(0x116)]!='0'&&_0x4b31e3[_0x3f0c6e(0xef)][_0x3f0c6e(0x11e)]({'title':_0x376a18['name']+('['+_0x185b4f['adult']+']'),'info':_0x51e2bb+_0x2ff0c8(_0x376a18[_0x3f0c6e(0xc5)])+_0x541466+_0x376a18[_0x3f0c6e(0x116)],'nRs':_0x376a18['adultnum'],'unit':_0x376a18[_0x3f0c6e(0xc5)],'cb':_0x376a18[_0x3f0c6e(0xda)],'type':_0x3f0c6e(0x10c)}),_0x376a18[_0x3f0c6e(0xce)]!='0'&&_0x4b31e3[_0x3f0c6e(0xef)][_0x3f0c6e(0x11e)]({'title':_0x376a18[_0x3f0c6e(0x115)]+('['+_0x185b4f[_0x3f0c6e(0xfa)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x376a18[_0x3f0c6e(0x113)])+_0x541466+_0x376a18['childnum'],'nRs':_0x376a18[_0x3f0c6e(0xce)],'unit':_0x376a18[_0x3f0c6e(0x113)],'cb':_0x376a18[_0x3f0c6e(0xf1)],'type':_0x3f0c6e(0x10c)});}),_0x2a1068[_0x1dfa57(0x11e)](_0x4b31e3);}let _0x564089=[];const _0x46b70c=_0x3b12b0[_0x1dfa57(0xee)](_0x580296=>_0x580296['strLx']==_0x1dfa57(0x10f));_0x46b70c[_0x1dfa57(0xe0)]&&_0x46b70c[_0x1dfa57(0xe1)](_0x57c2fe=>{const _0x4876e1=_0x1dfa57,_0x55cfd3=_0x57c2fe[_0x4876e1(0x115)]['split']('|')||[''];_0x564089[_0x4876e1(0x11e)]({'title':_0x185b4f[_0x4876e1(0x10f)]+('['+_0x55cfd3[0x0]+']'),'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x57c2fe[_0x4876e1(0xd3)]),'unit':_0x57c2fe['money'],'cb':_0x57c2fe[_0x4876e1(0xd3)],'type':_0x4876e1(0x10f)});});const _0x16d904=_0x3b12b0[_0x1dfa57(0xee)](_0x590408=>_0x590408[_0x1dfa57(0xca)]==_0x1dfa57(0xe3));_0x16d904[_0x1dfa57(0xe0)]&&_0x16d904['map'](_0x2841a5=>{const _0xcfc3f6=_0x1dfa57;_0x564089[_0xcfc3f6(0x11e)]({'title':_0x185b4f[_0xcfc3f6(0x105)]+('['+_0x2841a5['name']+']'),'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x2841a5[_0xcfc3f6(0xd3)]),'unit':_0x2841a5['money'],'cb':_0x2841a5[_0xcfc3f6(0xd3)],'type':_0xcfc3f6(0x105)});});const _0x1a41a3=_0x3b12b0['filter'](_0x100ca7=>_0x100ca7[_0x1dfa57(0xca)]==_0x1dfa57(0xf0));_0x1a41a3[_0x1dfa57(0xe0)]&&_0x1a41a3['map'](_0x5e142e=>{const _0x2d07bb=_0x1dfa57;_0x564089[_0x2d07bb(0x11e)]({'title':_0x185b4f['promotion'],'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x5e142e[_0x2d07bb(0xd3)]),'unit':_0x5e142e[_0x2d07bb(0xd3)],'cb':_0x5e142e[_0x2d07bb(0xd3)],'type':_0x2d07bb(0xf0)});});_0x564089[_0x1dfa57(0xe0)]&&_0x2a1068[_0x1dfa57(0x11e)]({'title':_0x52e8fa[_0x1dfa57(0xd8)],'type':_0x1dfa57(0xd8),'list':_0x564089});const _0x486ca6=_0x3b12b0[_0x1dfa57(0xee)](_0x4d3ee1=>_0x4d3ee1[_0x1dfa57(0xca)]==_0x1dfa57(0x102));if(_0x486ca6[_0x1dfa57(0xe0)]){let _0x160a3c={'title':_0x52e8fa[_0x1dfa57(0x102)],'type':_0x1dfa57(0x102),'list':[]};_0x486ca6[_0x1dfa57(0xe1)](_0x3ad104=>{const _0x526186=_0x1dfa57;_0x160a3c[_0x526186(0xef)][_0x526186(0x11e)]({'title':_0x185b4f[_0x3ad104['rylx']],'info':_0x51e2bb+_0x2ff0c8(_0x3ad104['unitprice'])+_0x541466+_0x3ad104['sl'],'nRs':_0x3ad104['sl'],'unit':_0x3ad104[_0x526186(0x110)],'cb':_0x3ad104[_0x526186(0xec)],'type':_0x3ad104[_0x526186(0xde)]});}),_0x2a1068[_0x1dfa57(0x11e)](_0x160a3c);}const _0xf7a8a8=[_0x1dfa57(0xc2),'service',_0x1dfa57(0x10c),_0x1dfa57(0x10f),'vipdiscounted',_0x1dfa57(0xf0),_0x1dfa57(0x102)],_0x4c0f5b=_0x3b12b0[_0x1dfa57(0xee)](_0x5eec36=>!_0xf7a8a8[_0x1dfa57(0xf4)](_0x5eec36['strLx']));let _0x3dbd02={'title':_0x52e8fa[_0x1dfa57(0xfd)],'type':_0x1dfa57(0xfd),'list':[]};for(var _0x1f97a7=0x0;_0x1f97a7<_0x4c0f5b['length'];_0x1f97a7++){const _0x174d82=_0x4c0f5b[_0x1f97a7];_0x174d82['strLx']==_0x1dfa57(0xdd)&&_0x3dbd02[_0x1dfa57(0xef)]['push']({'title':_0x185b4f[_0x1dfa57(0xdd)]+('['+_0x174d82[_0x1dfa57(0x115)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0xd3)]),'unit':_0x174d82['money'],'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xdf)&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x1dfa57(0xdf)]+('['+_0x174d82[_0x1dfa57(0x115)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0xdb)])+_0x541466+_0x174d82[_0x1dfa57(0xdc)]+_0x185b4f['r'],'nRs':_0x174d82[_0x1dfa57(0xdc)],'unit':_0x174d82[_0x1dfa57(0xdb)],'cb':_0x174d82[_0x1dfa57(0xdb)],'type':_0x1dfa57(0xdf)}),(_0x174d82[_0x1dfa57(0xca)]=='coupon'||_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xc6))&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x174d82['couponmc']||_0x185b4f[_0x174d82['strLx']],'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x174d82[_0x1dfa57(0xd3)]),'unit':_0x174d82[_0x1dfa57(0xd3)],'cb':_0x174d82[_0x1dfa57(0xe2)]||0x0,'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]=='tip'&&_0x46b5cb[_0x1dfa57(0x100)]&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x174d82[_0x1dfa57(0xca)]],'info':_0x51e2bb+_0x2ff0c8(_0x174d82['tip'])+_0x541466+_0x174d82[_0x1dfa57(0x118)]+_0x185b4f['r']+_0x541466+_0x174d82[_0x1dfa57(0xe4)]+_0x185b4f['t'],'nRs':_0x174d82[_0x1dfa57(0x118)],'count':_0x174d82[_0x1dfa57(0xe4)],'unit':_0x174d82[_0x1dfa57(0x10d)],'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xc9)&&_0x3dbd02['list'][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x1dfa57(0xc9)],'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0x11c)]),'unit':_0x174d82['price'],'type':_0x174d82[_0x1dfa57(0xca)]}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xf6)&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x1dfa57(0xf6)],'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0x11c)]),'unit':_0x174d82['price'],'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0x10a)&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x174d82[_0x1dfa57(0xca)]],'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0xf7)]),'unit':_0x174d82[_0x1dfa57(0xf7)],'type':_0x174d82[_0x1dfa57(0xca)]});}_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0xe0)]&&_0x2a1068[_0x1dfa57(0x11e)](_0x3dbd02);const _0x432b29=_0x3b12b0[_0x1dfa57(0xee)](_0x1f50d7=>_0x1f50d7['strLx']==_0x1dfa57(0xcf));return _0x432b29[_0x1dfa57(0xe0)]&&_0x2a1068[_0x1dfa57(0x11e)]({'title':_0x52e8fa['totalprice'],'type':'totalprice','list':[{'title':_0x52e8fa['totalprice'],'info':_0x51e2bb+_0x2ff0c8(_0x432b29[0x0][_0x1dfa57(0x11c)])}]}),_0x2a1068;}export default{'handleCosting':handleCosting};function a1_0x3730(_0x350a6c,_0x3e6803){const _0x5ed9ae=a1_0x5ed9();return a1_0x3730=function(_0x3730e3,_0x204131){_0x3730e3=_0x3730e3-0xc0;let _0x4f6f2c=_0x5ed9ae[_0x3730e3];return _0x4f6f2c;},a1_0x3730(_0x350a6c,_0x3e6803);}function a1_0x5ed9(){const _0x58f08a=['附加行程','unitpricewb','service','filter','list','promotion','basechildprice','會員充值','people','includes','減免費用','commission','totaltax','strJglxtxt','trim','child','127817hpXWEw','dtRq','other','toFixed','1417195MynWJp','isShowTip','會員減免','airtax','140VbtlIp','其他費用','vip','1658167ENDEBE','fLsjUnit','couponSign','2884110cqGSex','tax','78564rNvYNN','trip','tip','1969ujfTEx','elder','unitprice','4viLrGL','18VMggIt','childunitprice','floor','name','adultnum','num','tipuser','\x0a\x09\x09\x09正确参数:','保險費用','itemname','price','isArray','push','fJcbzlsjUnit','遊客優惠','base','warn','\x20*\x20','adultunitprice','point','機場稅','forEach','changeprice','strLx','3759aZBqZE','22363432oyxpbY','13UBeZvA','childnum','totalprice','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','keys','兒童[占床]','money','附加服務','27nplBEA','48POpbRD','stringify','reduction','人員費用','baseadultprice','unit','users','viprecharge','rylx','insure','length','map','points','vipdiscounted','tipday','hasOwnProperty','nRs','ftd\x20函数接收到无效的数字输入:\x20','object','baseprice','error'];a1_0x5ed9=function(){return _0x58f08a;};return a1_0x5ed9();}
1
+ (function(_0x1815de,_0x4ca6cc){const _0x2fa726=a1_0x207f,_0x183565=_0x1815de();while(!![]){try{const _0x1afe6c=parseInt(_0x2fa726(0x96))/0x1*(-parseInt(_0x2fa726(0x85))/0x2)+parseInt(_0x2fa726(0xa7))/0x3*(parseInt(_0x2fa726(0x70))/0x4)+parseInt(_0x2fa726(0xb7))/0x5+-parseInt(_0x2fa726(0xad))/0x6*(-parseInt(_0x2fa726(0x80))/0x7)+-parseInt(_0x2fa726(0xbd))/0x8+-parseInt(_0x2fa726(0x8d))/0x9*(parseInt(_0x2fa726(0xb9))/0xa)+parseInt(_0x2fa726(0xc8))/0xb;if(_0x1afe6c===_0x4ca6cc)break;else _0x183565['push'](_0x183565['shift']());}catch(_0x3915ec){_0x183565['push'](_0x183565['shift']());}}}(a1_0x1a07,0xc2040));function a1_0x207f(_0x5a7316,_0x4da0f0){const _0x1a079a=a1_0x1a07();return a1_0x207f=function(_0x207f69,_0x1d0efe){_0x207f69=_0x207f69-0x6b;let _0x380414=_0x1a079a[_0x207f69];return _0x380414;},a1_0x207f(_0x5a7316,_0x4da0f0);}function a1_0x1a07(){const _0x3727a8=['points','baseadultprice','276502RcJnUM','includes','travelDays','tipuser','promotion','附加服務','tax','dtRq','11187zbDpDN','changeprice','base','error','兒童[占床]','name','unitpricewb','length','insure','5NetMqH','保險費用','vip','people','map','split','number','tip','keys','減免費用','basechildprice','num','nRs','50258004','vipdiscounted','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','viprecharge','9945zAaqZZ','object','warn','附加行程','couponSign','unit','6BhKwMn','point','totalprice','child','會員充值','trip','elder','Hotel01','push','floor','7311275Kuekdc','trim','11380XrGRRC','childusebed','max','forEach','10068416tcQIpP','rylx','other','childnum','tipday','人員費用','adultunitprice','list','adultnum','isArray','strLx','15062487sEWGBQ','\x20*\x20','strJgbm','airtax','fJcbzlsjUnit','unitprice','stringify','優惠券','1432LmbpwN','category','service','itemname','couponmc','totaltax','會員減免','filter','money','hasOwnProperty','\x0a\x09\x09\x09正确参数:','childunitprice','commission','users','price','reduction','984809SxOSmW','strJglxtxt','infant'];a1_0x1a07=function(){return _0x3727a8;};return a1_0x1a07();}function handleCosting(_0x5731d0,_0x391fd7='',_0x1134a2={},_0x532bc6,_0xf3108e){const _0x3cc2f3=a1_0x207f;let _0x406714=[];const _0xa779e5=_0x3cc2f3(0xc9),_0x2918ca={'couponSign':'-','dp':0x2,'isShowTip':!![],'category':_0x3cc2f3(0xa3),'travelDays':0x2};_0x1134a2=typeof _0x1134a2==='object'&&!Array[_0x3cc2f3(0xc6)](_0x1134a2)&&_0x1134a2!==null?_0x1134a2:{};const _0x16c832={..._0x2918ca,..._0x1134a2},_0x1996d9=Object[_0x3cc2f3(0x9e)](_0x2918ca);Object[_0x3cc2f3(0x9e)](_0x1134a2)[_0x3cc2f3(0xbc)](_0x5b5046=>{const _0x3a1c24=_0x3cc2f3;!_0x1996d9[_0x3a1c24(0x86)](_0x5b5046)&&console[_0x3a1c24(0xa9)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x5b5046);});let _0x2712c0=_0x16c832[_0x3cc2f3(0xab)]||'-',_0x1b0fa4=_0x16c832['dp']||0x2;const _0x38f490=(_0x6a9984,_0x215baa=_0x1b0fa4)=>{const _0x13d658=_0x3cc2f3;if(typeof _0x6a9984!==_0x13d658(0x9c)&&isNaN(Number(_0x6a9984)))return console[_0x13d658(0x90)]('ftd\x20函数接收到无效的数字输入:\x20'+_0x6a9984),_0x6a9984;if(isNaN(_0x215baa)||_0x215baa<0x0)return _0x6a9984;let _0xc53407=Number(_0x6a9984);if(!isFinite(_0xc53407))return _0x6a9984;return _0x215baa=Math[_0x13d658(0xbb)](0x0,Math[_0x13d658(0xb6)](_0x215baa)),_0xc53407['toFixed'](_0x215baa);},_0xc5c20e=(_0x1b006d,_0x78b2c9)=>{const _0x5ec2c9=_0x3cc2f3;if(_0x78b2c9&&typeof _0x78b2c9===_0x5ec2c9(0xa8)&&!Array['isArray'](_0x78b2c9))for(const _0x22fd7d in _0x1b006d){_0x1b006d['hasOwnProperty'](_0x22fd7d)&&_0x78b2c9[_0x5ec2c9(0x79)](_0x22fd7d)&&(_0x1b006d[_0x22fd7d]=_0x78b2c9[_0x22fd7d]);}else console[_0x5ec2c9(0x90)]((_0x5ec2c9(0xa5)+JSON[_0x5ec2c9(0x6e)](_0x78b2c9,null,0x2)+_0x5ec2c9(0x7a)+JSON[_0x5ec2c9(0x6e)](_0x1b006d,null,0x2))[_0x5ec2c9(0xb8)]());return _0x1b006d;};let _0x556c10={'people':_0x3cc2f3(0xc2),'service':_0x3cc2f3(0x8a),'trip':_0x3cc2f3(0xaa),'other':'其他費用','reduction':_0x3cc2f3(0x9f),'totalprice':'總計','airtax':'機場稅'},_0x3c6f08={'adult':'成人','child':'兒童','childusebed':_0x3cc2f3(0x91),'infant':'嬰兒','half':'拼房','tip':'小費','elder':'遊客優惠','vip':_0x3cc2f3(0x76),'promotion':'促銷','insure':_0x3cc2f3(0x97),'coupon':_0x3cc2f3(0x6f),'point':'積分','tax':'稅金','viprecharge':_0x3cc2f3(0xb1),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x556c10=_0xc5c20e(_0x556c10,_0x532bc6),_0x3c6f08=_0xc5c20e(_0x3c6f08,_0xf3108e);const _0x49cf4b=_0x5731d0['filter'](_0x80b4a2=>_0x80b4a2[_0x3cc2f3(0xc7)]==_0x3cc2f3(0x8f));if(_0x49cf4b[_0x3cc2f3(0x94)]){let _0x1b05df={'title':_0x556c10[_0x3cc2f3(0x99)],'type':'base','list':[]},_0x509ff8=![];const _0xf971d9=parseInt(_0x16c832[_0x3cc2f3(0x87)],0xa);_0x16c832['category']==_0x3cc2f3(0xa3)&&!isNaN(_0xf971d9)&&_0xf971d9>0x1&&(_0x509ff8=!![]),_0x49cf4b[_0x3cc2f3(0x9a)](_0x3fa89b=>{const _0x51d820=_0x3cc2f3;let _0xeea7b1=_0x3fa89b[_0x51d820(0x81)];if(_0x16c832[_0x51d820(0x71)]==_0x51d820(0xb4)&&_0x3fa89b['dtRq'])_0xeea7b1=_0x3fa89b[_0x51d820(0x81)]+'\x20['+_0x3fa89b[_0x51d820(0x8c)]+']';_0x509ff8&&((_0x3fa89b[_0x51d820(0xca)]=='adult'||_0x3fa89b[_0x51d820(0xca)]==_0x51d820(0xba)||_0x3fa89b[_0x51d820(0xca)]==_0x51d820(0xb0)||_0x3fa89b[_0x51d820(0xca)]==_0x51d820(0x82))&&(_0xeea7b1=_0x3fa89b[_0x51d820(0x81)]+'\x20['+_0x3c6f08[_0x3fa89b[_0x51d820(0xca)]]+']')),_0x1b05df['list']['push']({'title':_0x3c6f08[_0x3fa89b[_0x51d820(0xca)]],'subTitle':_0xeea7b1,'date':_0x3fa89b[_0x51d820(0x8c)],'info':_0x391fd7+_0x38f490(_0x3fa89b['fLsjUnit'])+_0xa779e5+_0x3fa89b[_0x51d820(0xa2)],'nRs':_0x3fa89b['nRs'],'unit':_0x3fa89b['fLsjUnit'],'cb':_0x3fa89b[_0x51d820(0x6c)],'type':_0x51d820(0x8f)});}),_0x406714[_0x3cc2f3(0xb5)](_0x1b05df);}const _0x33926b=_0x5731d0[_0x3cc2f3(0x77)](_0x318c17=>_0x318c17['strLx']==_0x3cc2f3(0x72));if(_0x33926b[_0x3cc2f3(0x94)]){let _0x2f40b0={'title':_0x556c10[_0x3cc2f3(0x72)],'type':_0x3cc2f3(0x72),'list':[]};_0x33926b['map'](_0xe4f404=>{const _0x1c60e7=_0x3cc2f3;_0x2f40b0['list'][_0x1c60e7(0xb5)]({'title':_0xe4f404[_0x1c60e7(0x92)]+('['+_0xe4f404[_0x1c60e7(0x73)]+']'),'info':_0x391fd7+_0x38f490(_0xe4f404[_0x1c60e7(0x6d)])+_0xa779e5+_0xe4f404[_0x1c60e7(0xa1)],'nRs':_0xe4f404[_0x1c60e7(0xa1)],'unit':_0xe4f404[_0x1c60e7(0x6d)],'cb':_0xe4f404['baseprice'],'type':_0x1c60e7(0x72)});}),_0x406714[_0x3cc2f3(0xb5)](_0x2f40b0);}const _0x3f2783=_0x5731d0[_0x3cc2f3(0x77)](_0x519f5f=>_0x519f5f[_0x3cc2f3(0xc7)]=='trip');if(_0x3f2783['length']){let _0x2fcd38={'title':_0x556c10[_0x3cc2f3(0xb2)],'type':_0x3cc2f3(0xb2),'list':[]};_0x3f2783[_0x3cc2f3(0x9a)](_0x406f48=>{const _0x454002=_0x3cc2f3;_0x406f48[_0x454002(0xc5)]!='0'&&_0x2fcd38['list'][_0x454002(0xb5)]({'title':_0x406f48[_0x454002(0x92)]+('['+_0x3c6f08['adult']+']'),'info':_0x391fd7+_0x38f490(_0x406f48[_0x454002(0xc3)])+_0xa779e5+_0x406f48[_0x454002(0xc5)],'nRs':_0x406f48['adultnum'],'unit':_0x406f48[_0x454002(0xc3)],'cb':_0x406f48[_0x454002(0x84)],'type':_0x454002(0xb2)}),_0x406f48[_0x454002(0xc0)]!='0'&&_0x2fcd38['list'][_0x454002(0xb5)]({'title':_0x406f48['name']+('['+_0x3c6f08[_0x454002(0xb0)]+']'),'info':_0x391fd7+_0x38f490(_0x406f48[_0x454002(0x7b)])+_0xa779e5+_0x406f48[_0x454002(0xc0)],'nRs':_0x406f48[_0x454002(0xc0)],'unit':_0x406f48[_0x454002(0x7b)],'cb':_0x406f48[_0x454002(0xa0)],'type':'trip'});}),_0x406714['push'](_0x2fcd38);}let _0x4684be=[];const _0x3d9298=_0x5731d0[_0x3cc2f3(0x77)](_0x25a38b=>_0x25a38b['strLx']=='elder');_0x3d9298[_0x3cc2f3(0x94)]&&_0x3d9298[_0x3cc2f3(0x9a)](_0x8dbfc0=>{const _0x59d3ee=_0x3cc2f3,_0x5b9281=_0x8dbfc0[_0x59d3ee(0x92)][_0x59d3ee(0x9b)]('|')||[''];_0x4684be[_0x59d3ee(0xb5)]({'title':_0x3c6f08[_0x59d3ee(0xb3)]+('['+_0x5b9281[0x0]+']'),'info':_0x391fd7+_0x2712c0+_0x38f490(_0x8dbfc0[_0x59d3ee(0x78)]),'unit':_0x8dbfc0[_0x59d3ee(0x78)],'cb':_0x8dbfc0[_0x59d3ee(0x78)],'type':_0x59d3ee(0xb3)});});const _0x1b3046=_0x5731d0[_0x3cc2f3(0x77)](_0x19ea2b=>_0x19ea2b[_0x3cc2f3(0xc7)]==_0x3cc2f3(0xa4));_0x1b3046[_0x3cc2f3(0x94)]&&_0x1b3046[_0x3cc2f3(0x9a)](_0x2601b1=>{const _0x5a37dd=_0x3cc2f3;_0x4684be['push']({'title':_0x3c6f08[_0x5a37dd(0x98)]+('['+_0x2601b1[_0x5a37dd(0x92)]+']'),'info':_0x391fd7+_0x2712c0+_0x38f490(_0x2601b1[_0x5a37dd(0x78)]),'unit':_0x2601b1['money'],'cb':_0x2601b1[_0x5a37dd(0x78)],'type':'vip'});});const _0x329c35=_0x5731d0[_0x3cc2f3(0x77)](_0x563ae7=>_0x563ae7[_0x3cc2f3(0xc7)]==_0x3cc2f3(0x89));_0x329c35[_0x3cc2f3(0x94)]&&_0x329c35[_0x3cc2f3(0x9a)](_0x5346e6=>{const _0x1920c4=_0x3cc2f3;_0x4684be[_0x1920c4(0xb5)]({'title':_0x3c6f08[_0x1920c4(0x89)],'info':_0x391fd7+_0x2712c0+_0x38f490(_0x5346e6[_0x1920c4(0x78)]),'unit':_0x5346e6[_0x1920c4(0x78)],'cb':_0x5346e6[_0x1920c4(0x78)],'type':_0x1920c4(0x89)});});_0x4684be[_0x3cc2f3(0x94)]&&_0x406714[_0x3cc2f3(0xb5)]({'title':_0x556c10[_0x3cc2f3(0x7f)],'type':_0x3cc2f3(0x7f),'list':_0x4684be});const _0x4fa16c=_0x5731d0[_0x3cc2f3(0x77)](_0x20bec4=>_0x20bec4[_0x3cc2f3(0xc7)]=='airtax');if(_0x4fa16c['length']){let _0x23f05d={'title':_0x556c10[_0x3cc2f3(0x6b)],'type':'airtax','list':[]};_0x4fa16c[_0x3cc2f3(0x9a)](_0x442a93=>{const _0x52be2d=_0x3cc2f3;_0x23f05d[_0x52be2d(0xc4)][_0x52be2d(0xb5)]({'title':_0x3c6f08[_0x442a93[_0x52be2d(0xbe)]],'info':_0x391fd7+_0x38f490(_0x442a93[_0x52be2d(0x6d)])+_0xa779e5+_0x442a93['sl'],'nRs':_0x442a93['sl'],'unit':_0x442a93['unitprice'],'cb':_0x442a93[_0x52be2d(0x93)],'type':_0x442a93[_0x52be2d(0xbe)]});}),_0x406714['push'](_0x23f05d);}const _0x3cf71d=[_0x3cc2f3(0x8f),_0x3cc2f3(0x72),_0x3cc2f3(0xb2),'elder',_0x3cc2f3(0xa4),'promotion',_0x3cc2f3(0x6b)],_0x1cb751=_0x5731d0['filter'](_0x3cc7b6=>!_0x3cf71d['includes'](_0x3cc7b6[_0x3cc2f3(0xc7)]));let _0x174aff={'title':_0x556c10['other'],'type':_0x3cc2f3(0xbf),'list':[]};for(var _0x5bcb82=0x0;_0x5bcb82<_0x1cb751[_0x3cc2f3(0x94)];_0x5bcb82++){const _0x239397=_0x1cb751[_0x5bcb82];_0x239397[_0x3cc2f3(0xc7)]==_0x3cc2f3(0xa6)&&_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0xb5)]({'title':_0x3c6f08[_0x3cc2f3(0xa6)]+('['+_0x239397[_0x3cc2f3(0x92)]+']'),'info':_0x391fd7+_0x38f490(_0x239397['money']),'unit':_0x239397[_0x3cc2f3(0x78)],'type':_0x239397['strLx']}),_0x239397[_0x3cc2f3(0xc7)]==_0x3cc2f3(0x95)&&_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0xb5)]({'title':_0x3c6f08[_0x3cc2f3(0x95)]+('['+_0x239397[_0x3cc2f3(0x92)]+']'),'info':_0x391fd7+_0x38f490(_0x239397[_0x3cc2f3(0xac)])+_0xa779e5+_0x239397[_0x3cc2f3(0x7d)]+_0x3c6f08['r'],'nRs':_0x239397[_0x3cc2f3(0x7d)],'unit':_0x239397[_0x3cc2f3(0xac)],'cb':_0x239397[_0x3cc2f3(0xac)],'type':_0x3cc2f3(0x95)}),(_0x239397[_0x3cc2f3(0xc7)]=='coupon'||_0x239397[_0x3cc2f3(0xc7)]==_0x3cc2f3(0xae))&&_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0xb5)]({'title':_0x239397[_0x3cc2f3(0x74)]||_0x3c6f08[_0x239397[_0x3cc2f3(0xc7)]],'info':_0x391fd7+_0x2712c0+_0x38f490(_0x239397[_0x3cc2f3(0x78)]),'unit':_0x239397[_0x3cc2f3(0x78)],'cb':_0x239397[_0x3cc2f3(0x83)]||0x0,'type':_0x239397[_0x3cc2f3(0xc7)]}),_0x239397[_0x3cc2f3(0xc7)]=='tip'&&_0x16c832['isShowTip']&&_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0xb5)]({'title':_0x3c6f08[_0x239397[_0x3cc2f3(0xc7)]],'info':_0x391fd7+_0x38f490(_0x239397[_0x3cc2f3(0x9d)])+_0xa779e5+_0x239397[_0x3cc2f3(0x88)]+_0x3c6f08['r']+_0xa779e5+_0x239397[_0x3cc2f3(0xc1)]+_0x3c6f08['t'],'nRs':_0x239397['tipuser'],'count':_0x239397[_0x3cc2f3(0xc1)],'unit':_0x239397['tip'],'type':_0x239397[_0x3cc2f3(0xc7)]}),_0x239397['strLx']==_0x3cc2f3(0x8e)&&_0x174aff[_0x3cc2f3(0xc4)]['push']({'title':_0x3c6f08['changeprice'],'info':_0x391fd7+_0x38f490(_0x239397['price']),'unit':_0x239397[_0x3cc2f3(0x7e)],'type':_0x239397[_0x3cc2f3(0xc7)]}),_0x239397[_0x3cc2f3(0xc7)]=='commission'&&_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0xb5)]({'title':_0x3c6f08[_0x3cc2f3(0x7c)],'info':_0x391fd7+_0x38f490(_0x239397[_0x3cc2f3(0x7e)]),'unit':_0x239397[_0x3cc2f3(0x7e)],'type':_0x239397[_0x3cc2f3(0xc7)]}),_0x239397[_0x3cc2f3(0xc7)]==_0x3cc2f3(0x8b)&&_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0xb5)]({'title':_0x3c6f08[_0x239397[_0x3cc2f3(0xc7)]],'info':_0x391fd7+_0x38f490(_0x239397[_0x3cc2f3(0x75)]),'unit':_0x239397[_0x3cc2f3(0x75)],'type':_0x239397[_0x3cc2f3(0xc7)]});}_0x174aff[_0x3cc2f3(0xc4)][_0x3cc2f3(0x94)]&&_0x406714['push'](_0x174aff);const _0x5a506d=_0x5731d0['filter'](_0x13e87e=>_0x13e87e[_0x3cc2f3(0xc7)]=='totalprice');return _0x5a506d['length']&&_0x406714[_0x3cc2f3(0xb5)]({'title':_0x556c10[_0x3cc2f3(0xaf)],'type':'totalprice','list':[{'title':_0x556c10[_0x3cc2f3(0xaf)],'info':_0x391fd7+_0x38f490(_0x5a506d[0x0][_0x3cc2f3(0x7e)])}]}),_0x406714;}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x37125a,_0x294dba){const _0xcd036e=a2_0x35b2,_0x347421=_0x37125a();while(!![]){try{const _0x3a9a2a=-parseInt(_0xcd036e(0x170))/0x1+-parseInt(_0xcd036e(0x176))/0x2*(-parseInt(_0xcd036e(0x173))/0x3)+-parseInt(_0xcd036e(0x172))/0x4+parseInt(_0xcd036e(0x160))/0x5+-parseInt(_0xcd036e(0x161))/0x6+-parseInt(_0xcd036e(0x178))/0x7+parseInt(_0xcd036e(0x16e))/0x8;if(_0x3a9a2a===_0x294dba)break;else _0x347421['push'](_0x347421['shift']());}catch(_0x443888){_0x347421['push'](_0x347421['shift']());}}}(a2_0x3b4b,0xdaca2));function a2_0x3b4b(){const _0x4515fb=['1894qeNkqC','isalotment','7733880AgexAi','some','isArray','isAlotment','forEach','4996780LYAdYP','2145792BYrDsD','push','map','infant','adultNum','filter','list','nMaxIn','max','strCode','childrenNum','find','infantNum','17090792AqeyEh','length','1241839fntZAB','child','5213124mUWGRv','5601BSwoxg','d9319e13-3211-4958-ba32-d66aeac35d31','childUseBed'];a2_0x3b4b=function(){return _0x4515fb;};return a2_0x3b4b();}function getRoomCount(_0x2b9147,_0x1d1fb8){const _0x1420af=a2_0x35b2,_0x302b4d=Array[_0x1420af(0x17a)](_0x2b9147);if(!_0x302b4d)_0x2b9147=[_0x2b9147];let _0x14f679=[];return _0x2b9147[_0x1420af(0x15f)](_0x3cc0fe=>{const _0x17ca69=_0x1420af;let _0x2e57d2=![];if(!_0x3cc0fe[_0x17ca69(0x177)]){let _0x49ec70=_0x3cc0fe[_0x17ca69(0x165)];if(_0x3cc0fe[_0x17ca69(0x175)]||!_0x1d1fb8[_0x17ca69(0x171)])_0x49ec70+=_0x3cc0fe[_0x17ca69(0x16b)];const _0x87c2fc=_0x1d1fb8[_0x17ca69(0x167)][_0x17ca69(0x16c)](_0x3db587=>Number(_0x3db587[_0x17ca69(0x16a)])===_0x49ec70);if(!_0x87c2fc)_0x2e57d2=!![];else{let _0x4f9fc5=_0x3cc0fe[_0x17ca69(0x165)]+_0x3cc0fe[_0x17ca69(0x16b)]+_0x3cc0fe[_0x17ca69(0x16d)];_0x4f9fc5>_0x87c2fc['nMaxIn']&&(_0x2e57d2=!![]);}}_0x14f679[_0x17ca69(0x162)](_0x2e57d2);}),_0x302b4d?_0x14f679:_0x14f679[0x0];}function getRoomConfig(_0x4471ab){const _0x29f2b6=a2_0x35b2;let _0x557b07=_0x4471ab[_0x29f2b6(0x179)](_0x408ac6=>_0x408ac6[_0x29f2b6(0x16a)]===_0x29f2b6(0x175)),_0x38f33d=_0x4471ab['some'](_0x5877dc=>_0x5877dc[_0x29f2b6(0x16a)]===_0x29f2b6(0x17b));const _0x506b33=_0x4471ab[_0x29f2b6(0x179)](_0xe99949=>_0xe99949['strCode']===_0x29f2b6(0x164)),_0x177a28=_0x4471ab['some'](_0x55dd2a=>_0x55dd2a[_0x29f2b6(0x16a)]===_0x29f2b6(0x171)),_0xc362e1=_0x4471ab['map'](_0x376157=>{const _0x1e2a41=_0x29f2b6;return{'strCode':_0x376157[_0x1e2a41(0x16a)],'nMaxIn':_0x376157[_0x1e2a41(0x168)]};});if(_0x38f33d){const _0x2073d8=_0x4471ab[_0x29f2b6(0x179)](_0x5396dc=>_0x5396dc[_0x29f2b6(0x16a)]=='2');_0x38f33d=_0x38f33d&&_0x2073d8;}if(_0x557b07)_0x557b07=_0x557b07&&_0x177a28;return{'childUseBed':_0x557b07,'isAlotment':_0x38f33d,'infant':_0x506b33,'child':_0x177a28,'list':_0xc362e1};}function isRoomPiece(_0x19ce05,_0x1d2e35){const _0xa85b24=a2_0x35b2;return _0x1d2e35&&_0x19ce05[_0xa85b24(0x165)]===0x1&&_0x19ce05[_0xa85b24(0x16b)]===0x0&&_0x19ce05[_0xa85b24(0x16d)]===0x0;}function getRoomItemRange(_0x32d870,_0x2eb3a4,_0x227c2d={'child':'儿童','infant':'婴儿'}){const _0x55e542=a2_0x35b2;if(!_0x2eb3a4[_0x55e542(0x16f)])return{'childList':[],'infantList':[]};const _0x4dd28d=Math[_0x55e542(0x169)](..._0x2eb3a4[_0x55e542(0x163)](_0x300c46=>Number(_0x300c46['nMaxIn']))),_0x4f9c7b=_0x4dd28d-_0x32d870[_0x55e542(0x165)]-_0x32d870[_0x55e542(0x16d)];let _0x2a71f9=_0x4dd28d-_0x32d870['adultNum']-_0x32d870[_0x55e542(0x16b)];if(_0x2a71f9>0x2)_0x2a71f9=0x2;const _0x234e4d=(_0x4d72ef,_0x2b56c4)=>{const _0x16c38a=_0x55e542,_0x68650e=[];_0x68650e[_0x16c38a(0x162)]({'value':0x0,'label':'0\x20'+_0x2b56c4});for(let _0x51a75c=0x0;_0x51a75c<_0x4d72ef;_0x51a75c++){_0x68650e[_0x16c38a(0x162)]({'value':_0x51a75c+0x1,'label':''+(_0x51a75c+0x1)+_0x2b56c4});}return _0x68650e;};return{'childList':_0x234e4d(_0x4f9c7b,_0x227c2d[_0x55e542(0x171)]),'infantList':_0x234e4d(_0x2a71f9,_0x227c2d[_0x55e542(0x164)])};}function getAdultRange(_0x107312,_0x391897='成人'){const _0x39a1cf=a2_0x35b2;let _0x29ce2f=Math[_0x39a1cf(0x169)](..._0x107312[_0x39a1cf(0x163)](_0xf8bd5b=>Number(_0xf8bd5b[_0x39a1cf(0x16a)]))[_0x39a1cf(0x166)](_0x41282a=>!isNaN(_0x41282a)));if(!_0x29ce2f)_0x29ce2f=0x4;let _0x1b203b=[];for(var _0x1f0cb0=0x1;_0x1f0cb0<_0x29ce2f+0x1;_0x1f0cb0++){_0x1b203b[_0x39a1cf(0x162)]({'value':_0x1f0cb0,'label':''+_0x1f0cb0+_0x391897});}return _0x1b203b;}const getTotalPeople=_0x5979ce=>{const _0x262f56=_0x5979ce['reduce']((_0xe0ae54,_0x3d56c1)=>{const _0x4e1a04=a2_0x35b2;return _0xe0ae54+(_0x3d56c1[_0x4e1a04(0x165)]||0x0)+(_0x3d56c1[_0x4e1a04(0x16b)]||0x0)+(_0x3d56c1[_0x4e1a04(0x16d)]||0x0);},0x0);return _0x262f56;},getRoomType=(_0x198d46,_0x29386b)=>{const _0xf32bc6=a2_0x35b2;if(_0x198d46==='type'||_0x198d46===_0xf32bc6(0x174)||_0x29386b===0x1||_0x29386b==='1')return![];return!![];};function a2_0x35b2(_0x4bc964,_0x3732cd){const _0x3b4bd1=a2_0x3b4b();return a2_0x35b2=function(_0x35b223,_0x347e0d){_0x35b223=_0x35b223-0x15f;let _0x35862b=_0x3b4bd1[_0x35b223];return _0x35862b;},a2_0x35b2(_0x4bc964,_0x3732cd);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
1
+ (function(_0x53dcd1,_0x1ac687){const _0x10e108=a2_0x2794,_0x4e5cb6=_0x53dcd1();while(!![]){try{const _0x387a9b=parseInt(_0x10e108(0x1b0))/0x1*(-parseInt(_0x10e108(0x1b7))/0x2)+-parseInt(_0x10e108(0x19d))/0x3*(-parseInt(_0x10e108(0x1a9))/0x4)+parseInt(_0x10e108(0x1b9))/0x5+-parseInt(_0x10e108(0x1a8))/0x6*(-parseInt(_0x10e108(0x1b3))/0x7)+parseInt(_0x10e108(0x19b))/0x8*(parseInt(_0x10e108(0x1ae))/0x9)+parseInt(_0x10e108(0x1b2))/0xa*(parseInt(_0x10e108(0x1a5))/0xb)+-parseInt(_0x10e108(0x19e))/0xc;if(_0x387a9b===_0x1ac687)break;else _0x4e5cb6['push'](_0x4e5cb6['shift']());}catch(_0x35fcb4){_0x4e5cb6['push'](_0x4e5cb6['shift']());}}}(a2_0x565d,0xf18c7));function getRoomCount(_0x2ae991,_0x1e415a){const _0x198ddf=a2_0x2794,_0x425890=Array[_0x198ddf(0x1a7)](_0x2ae991);if(!_0x425890)_0x2ae991=[_0x2ae991];let _0x5a5b96=[];return _0x2ae991[_0x198ddf(0x1a2)](_0x1454bc=>{const _0x2795e9=_0x198ddf;let _0x3f10c3=![];if(!_0x1454bc[_0x2795e9(0x1a1)]){let _0x15ccd0=_0x1454bc[_0x2795e9(0x19c)];if(_0x1454bc[_0x2795e9(0x1b5)]||!_0x1e415a['child'])_0x15ccd0+=_0x1454bc['childrenNum'];const _0x4fc194=_0x1e415a[_0x2795e9(0x1b8)][_0x2795e9(0x1b6)](_0x2548ef=>Number(_0x2548ef[_0x2795e9(0x1ba)])===_0x15ccd0);if(!_0x4fc194)_0x3f10c3=!![];else{let _0x329e8a=_0x1454bc[_0x2795e9(0x19c)]+_0x1454bc['childrenNum']+_0x1454bc[_0x2795e9(0x1aa)];_0x329e8a>_0x4fc194[_0x2795e9(0x19f)]&&(_0x3f10c3=!![]);}}_0x5a5b96['push'](_0x3f10c3);}),_0x425890?_0x5a5b96:_0x5a5b96[0x0];}function getRoomConfig(_0x3b71c0){const _0x34ea20=a2_0x2794;let _0x3d1c25=_0x3b71c0[_0x34ea20(0x1a3)](_0x141eea=>_0x141eea[_0x34ea20(0x1ba)]===_0x34ea20(0x1b5)),_0x4358e5=_0x3b71c0['some'](_0x355f62=>_0x355f62['strCode']===_0x34ea20(0x1ad));const _0xa64a55=_0x3b71c0[_0x34ea20(0x1a3)](_0x1d0feb=>_0x1d0feb[_0x34ea20(0x1ba)]===_0x34ea20(0x1b4)),_0xfc2f87=_0x3b71c0[_0x34ea20(0x1a3)](_0x3711e5=>_0x3711e5['strCode']===_0x34ea20(0x1af)),_0x16e0a7=_0x3b71c0[_0x34ea20(0x1bc)](_0x13621b=>{const _0x1b4065=_0x34ea20;return{'strCode':_0x13621b['strCode'],'nMaxIn':_0x13621b[_0x1b4065(0x19f)]};});if(_0x4358e5){const _0x5cb267=_0x3b71c0[_0x34ea20(0x1a3)](_0x1bfcea=>_0x1bfcea[_0x34ea20(0x1ba)]=='2');_0x4358e5=_0x4358e5&&_0x5cb267;}if(_0x3d1c25)_0x3d1c25=_0x3d1c25&&_0xfc2f87;return{'childUseBed':_0x3d1c25,'isAlotment':_0x4358e5,'infant':_0xa64a55,'child':_0xfc2f87,'list':_0x16e0a7};}function a2_0x2794(_0xf0cedd,_0x4ff4aa){const _0x565db4=a2_0x565d();return a2_0x2794=function(_0x279441,_0x929176){_0x279441=_0x279441-0x19b;let _0x3947af=_0x565db4[_0x279441];return _0x3947af;},a2_0x2794(_0xf0cedd,_0x4ff4aa);}function isRoomPiece(_0x55a277,_0x345f68){const _0x2534fb=a2_0x2794;return _0x345f68&&_0x55a277[_0x2534fb(0x19c)]===0x1&&_0x55a277['childrenNum']===0x0&&_0x55a277['infantNum']===0x0;}function getRoomItemRange(_0x18dbee,_0xfce2c4,_0x46e278={'child':'儿童','infant':'婴儿'}){const _0x1a3907=a2_0x2794;if(!_0xfce2c4['length'])return{'childList':[],'infantList':[]};const _0x78045c=Math[_0x1a3907(0x1b1)](..._0xfce2c4[_0x1a3907(0x1bc)](_0x3b1bdd=>Number(_0x3b1bdd[_0x1a3907(0x19f)]))),_0x44a9dc=_0x78045c-_0x18dbee[_0x1a3907(0x19c)]-_0x18dbee['infantNum'];let _0x33cf35=_0x78045c-_0x18dbee['adultNum']-_0x18dbee[_0x1a3907(0x1a0)];if(_0x33cf35>0x2)_0x33cf35=0x2;const _0x3acea3=(_0x22624b,_0x2b0784)=>{const _0x25217a=_0x1a3907,_0x1d844c=[];_0x1d844c['push']({'value':0x0,'label':'0\x20'+_0x2b0784});for(let _0x30f467=0x0;_0x30f467<_0x22624b;_0x30f467++){_0x1d844c[_0x25217a(0x1a4)]({'value':_0x30f467+0x1,'label':''+(_0x30f467+0x1)+_0x2b0784});}return _0x1d844c;};return{'childList':_0x3acea3(_0x44a9dc,_0x46e278['child']),'infantList':_0x3acea3(_0x33cf35,_0x46e278['infant'])};}function getAdultRange(_0x54888c,_0x25da5a='成人'){const _0xaa449b=a2_0x2794;let _0x267d36=Math[_0xaa449b(0x1b1)](..._0x54888c[_0xaa449b(0x1bc)](_0x12e576=>Number(_0x12e576[_0xaa449b(0x1ba)]))[_0xaa449b(0x1bb)](_0x7dfd86=>!isNaN(_0x7dfd86)));if(!_0x267d36)_0x267d36=0x4;let _0x147032=[];for(var _0x208d7b=0x1;_0x208d7b<_0x267d36+0x1;_0x208d7b++){_0x147032[_0xaa449b(0x1a4)]({'value':_0x208d7b,'label':''+_0x208d7b+_0x25da5a});}return _0x147032;}function a2_0x565d(){const _0x23ee1a=['infantNum','type','reduce','isAlotment','18513bHcQEx','child','1YJaFYD','max','30MNptOg','3080609Plagos','infant','childUseBed','find','805110IRfAaa','list','4510660Lrlvbo','strCode','filter','map','4168lyPCvq','adultNum','3447udffaZ','34333320sgNdVn','nMaxIn','childrenNum','isalotment','forEach','some','push','1818487uHmkDz','d9319e13-3211-4958-ba32-d66aeac35d31','isArray','6edbMEL','4676sGAOMm'];a2_0x565d=function(){return _0x23ee1a;};return a2_0x565d();}const getTotalPeople=_0x106fb5=>{const _0xa0194a=a2_0x2794,_0x825bd6=_0x106fb5[_0xa0194a(0x1ac)]((_0x300139,_0x46cde1)=>{const _0x23b341=_0xa0194a;return _0x300139+(_0x46cde1['adultNum']||0x0)+(_0x46cde1[_0x23b341(0x1a0)]||0x0)+(_0x46cde1[_0x23b341(0x1aa)]||0x0);},0x0);return _0x825bd6;},getRoomType=(_0x587f12,_0x2ed1c0)=>{const _0x4135ee=a2_0x2794;if(_0x587f12===_0x4135ee(0x1ab)||_0x587f12===_0x4135ee(0x1a6)||_0x2ed1c0===0x1||_0x2ed1c0==='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(_0x2c8d58,_0x1899f3){const _0xc9a850=a3_0x119e,_0x271dbd=_0x2c8d58();while(!![]){try{const _0x2bad7c=parseInt(_0xc9a850(0x86))/0x1+parseInt(_0xc9a850(0x91))/0x2+-parseInt(_0xc9a850(0x80))/0x3+parseInt(_0xc9a850(0x7b))/0x4*(-parseInt(_0xc9a850(0x7f))/0x5)+parseInt(_0xc9a850(0x79))/0x6+-parseInt(_0xc9a850(0x8b))/0x7+parseInt(_0xc9a850(0x78))/0x8;if(_0x2bad7c===_0x1899f3)break;else _0x271dbd['push'](_0x271dbd['shift']());}catch(_0x42d23c){_0x271dbd['push'](_0x271dbd['shift']());}}}(a3_0x4a6e,0xec252));function getRoomCount(_0x11431d,_0x2d4d3a){const _0x5907f2=a3_0x119e,_0x3ec1c1=Array[_0x5907f2(0x8f)](_0x11431d);if(!_0x3ec1c1)_0x11431d=[_0x11431d];let _0x5d837e=[];return _0x11431d['forEach'](_0x1a52b1=>{const _0x1812ef=_0x5907f2;let _0x29e6e1=![];if(!_0x1a52b1[_0x1812ef(0x8d)]){let _0x3e8b4b=_0x1a52b1[_0x1812ef(0x84)];if(_0x1a52b1[_0x1812ef(0x85)]||!_0x2d4d3a[_0x1812ef(0x8a)])_0x3e8b4b+=_0x1a52b1[_0x1812ef(0x90)];const _0x14a782=_0x2d4d3a[_0x1812ef(0x7e)][_0x1812ef(0x81)](_0x174ae6=>Number(_0x174ae6[_0x1812ef(0x7c)])===_0x3e8b4b);if(!_0x14a782)_0x29e6e1=!![];else{let _0x5b59f1=_0x1a52b1[_0x1812ef(0x84)]+_0x1a52b1[_0x1812ef(0x90)]+_0x1a52b1[_0x1812ef(0x88)];_0x5b59f1>_0x14a782['nMaxIn']&&(_0x29e6e1=!![]);}}_0x5d837e[_0x1812ef(0x7a)](_0x29e6e1);}),_0x3ec1c1?_0x5d837e:_0x5d837e[0x0];}function getRoomConfig(_0x3021f1){const _0x357237=a3_0x119e;let _0x1360b7=_0x3021f1[_0x357237(0x87)](_0x577e00=>_0x577e00['strCode']==='childusebed'),_0x195fc4=_0x3021f1[_0x357237(0x87)](_0x26c61a=>_0x26c61a['strCode']===_0x357237(0x83));const _0x29c0e6=_0x3021f1[_0x357237(0x87)](_0x5ce3a0=>_0x5ce3a0['strCode']==='infant'),_0x4ee3bb=_0x3021f1['some'](_0x55112b=>_0x55112b['strCode']===_0x357237(0x8a)),_0x42cd06=_0x3021f1[_0x357237(0x7d)](_0x5d94f0=>{const _0x96e73a=_0x357237;return{'strCode':_0x5d94f0[_0x96e73a(0x7c)],'nMaxIn':_0x5d94f0[_0x96e73a(0x8e)]};});if(_0x195fc4){const _0x28c3c7=_0x3021f1[_0x357237(0x87)](_0x214d98=>_0x214d98[_0x357237(0x7c)]=='2');_0x195fc4=_0x195fc4&&_0x28c3c7;}if(_0x1360b7)_0x1360b7=_0x1360b7&&_0x4ee3bb;return{'childusebed':_0x1360b7,'half':_0x195fc4,'infant':_0x29c0e6,'child':_0x4ee3bb,'list':_0x42cd06};}function a3_0x119e(_0x415e04,_0x4a87cf){const _0x4a6e9d=a3_0x4a6e();return a3_0x119e=function(_0x119eca,_0x499dce){_0x119eca=_0x119eca-0x78;let _0x59265c=_0x4a6e9d[_0x119eca];return _0x59265c;},a3_0x119e(_0x415e04,_0x4a87cf);}function a3_0x4a6e(){const _0x23fcdf=['map','list','460NDDvHJ','4255995bHTjMF','find','infant','half','adultnum','childusebed','1404920McUkZy','some','infantnum','filter','child','1952769pHpThr','max','isalotment','nMaxIn','isArray','childrennum','1571910gQQWQI','446872WqQaXH','3977760oQrXQm','push','10644BcJAok','strCode'];a3_0x4a6e=function(){return _0x23fcdf;};return a3_0x4a6e();}function isRoomPiece(_0x2311ab,_0x5ba5ef){const _0x52cbfc=a3_0x119e;return _0x5ba5ef&&_0x2311ab[_0x52cbfc(0x84)]===0x1&&_0x2311ab[_0x52cbfc(0x90)]===0x0&&_0x2311ab[_0x52cbfc(0x88)]===0x0;}function getRoomItemRange(_0x579f78,_0x54ec23,_0x3cbe30={'child':'儿童','infant':'婴儿'}){const _0x183920=a3_0x119e;if(!_0x54ec23['length'])return{'childList':[],'infantList':[]};const _0x11f023=Math[_0x183920(0x8c)](..._0x54ec23[_0x183920(0x7d)](_0x1953a4=>Number(_0x1953a4[_0x183920(0x8e)]))),_0x103860=_0x11f023-_0x579f78[_0x183920(0x84)]-_0x579f78[_0x183920(0x88)];let _0x3092a6=_0x11f023-_0x579f78[_0x183920(0x84)]-_0x579f78[_0x183920(0x90)];if(_0x3092a6>0x2)_0x3092a6=0x2;const _0x3f3642=(_0x5d9ceb,_0x21dac4)=>{const _0x579246=_0x183920,_0x3ffa32=[];_0x3ffa32[_0x579246(0x7a)]({'value':0x0,'label':'0\x20'+_0x21dac4});for(let _0x478072=0x0;_0x478072<_0x5d9ceb;_0x478072++){_0x3ffa32[_0x579246(0x7a)]({'value':_0x478072+0x1,'label':''+(_0x478072+0x1)+_0x21dac4});}return _0x3ffa32;};return{'childList':_0x3f3642(_0x103860,_0x3cbe30[_0x183920(0x8a)]),'infantList':_0x3f3642(_0x3092a6,_0x3cbe30[_0x183920(0x82)])};}function getAdultRange(_0x18e4ef,_0x516947='成人'){const _0x440015=a3_0x119e;let _0x2d95d4=Math['max'](..._0x18e4ef[_0x440015(0x7d)](_0x12c33d=>Number(_0x12c33d[_0x440015(0x7c)]))[_0x440015(0x89)](_0x195dd8=>!isNaN(_0x195dd8)));if(!_0x2d95d4)_0x2d95d4=0x4;let _0x2404b2=[];for(var _0x5038c8=0x1;_0x5038c8<_0x2d95d4+0x1;_0x5038c8++){_0x2404b2[_0x440015(0x7a)]({'value':_0x5038c8,'label':''+_0x5038c8+_0x516947});}return _0x2404b2;}const getTotalPeople=_0x5924af=>{const _0x5b46e0=_0x5924af['reduce']((_0x4955e6,_0x36cdc1)=>{const _0x4d0979=a3_0x119e;return _0x4955e6+(_0x36cdc1[_0x4d0979(0x84)]||0x0)+(_0x36cdc1[_0x4d0979(0x90)]||0x0)+(_0x36cdc1[_0x4d0979(0x88)]||0x0);},0x0);return _0x5b46e0;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
1
+ (function(_0x399e0f,_0x5e6346){const _0x298732=a3_0x19f2,_0xa665bb=_0x399e0f();while(!![]){try{const _0xdec3c2=parseInt(_0x298732(0xd4))/0x1+parseInt(_0x298732(0xcd))/0x2+-parseInt(_0x298732(0xcc))/0x3*(-parseInt(_0x298732(0xc3))/0x4)+parseInt(_0x298732(0xdd))/0x5*(parseInt(_0x298732(0xd0))/0x6)+-parseInt(_0x298732(0xca))/0x7*(-parseInt(_0x298732(0xce))/0x8)+-parseInt(_0x298732(0xd6))/0x9*(-parseInt(_0x298732(0xcf))/0xa)+-parseInt(_0x298732(0xd9))/0xb;if(_0xdec3c2===_0x5e6346)break;else _0xa665bb['push'](_0xa665bb['shift']());}catch(_0x43cc47){_0xa665bb['push'](_0xa665bb['shift']());}}}(a3_0x563d,0x8fdf7));function a3_0x19f2(_0x8a308d,_0xf6d7fe){const _0x563d90=a3_0x563d();return a3_0x19f2=function(_0x19f29c,_0x434ed2){_0x19f29c=_0x19f29c-0xc2;let _0x18b28d=_0x563d90[_0x19f29c];return _0x18b28d;},a3_0x19f2(_0x8a308d,_0xf6d7fe);}function getRoomCount(_0x45d0d6,_0x4c36f8){const _0x2835df=a3_0x19f2,_0x16506a=Array['isArray'](_0x45d0d6);if(!_0x16506a)_0x45d0d6=[_0x45d0d6];let _0x23b62e=[];return _0x45d0d6[_0x2835df(0xde)](_0x3ee65f=>{const _0x3a4927=_0x2835df;let _0x6b5aee=![];if(!_0x3ee65f['isalotment']){let _0x22b402=_0x3ee65f['adultnum'];if(_0x3ee65f[_0x3a4927(0xc8)]||!_0x4c36f8[_0x3a4927(0xda)])_0x22b402+=_0x3ee65f['childrennum'];const _0x434ad2=_0x4c36f8[_0x3a4927(0xc2)][_0x3a4927(0xcb)](_0x2b7689=>Number(_0x2b7689[_0x3a4927(0xc4)])===_0x22b402);if(!_0x434ad2)_0x6b5aee=!![];else{let _0x10d3aa=_0x3ee65f[_0x3a4927(0xc6)]+_0x3ee65f['childrennum']+_0x3ee65f[_0x3a4927(0xd3)];_0x10d3aa>_0x434ad2[_0x3a4927(0xd8)]&&(_0x6b5aee=!![]);}}_0x23b62e[_0x3a4927(0xd7)](_0x6b5aee);}),_0x16506a?_0x23b62e:_0x23b62e[0x0];}function getRoomConfig(_0x14f265){const _0xbdc700=a3_0x19f2;let _0xeaf79f=_0x14f265[_0xbdc700(0xd2)](_0x4ac71f=>_0x4ac71f[_0xbdc700(0xc4)]===_0xbdc700(0xc8)),_0x310fc7=_0x14f265[_0xbdc700(0xd2)](_0x1c9f9b=>_0x1c9f9b[_0xbdc700(0xc4)]===_0xbdc700(0xc9));const _0x48f1ee=_0x14f265[_0xbdc700(0xd2)](_0xe6e3a1=>_0xe6e3a1[_0xbdc700(0xc4)]===_0xbdc700(0xd1)),_0x58ed51=_0x14f265['some'](_0x1b02dd=>_0x1b02dd[_0xbdc700(0xc4)]===_0xbdc700(0xda)),_0x122f2c=_0x14f265[_0xbdc700(0xd5)](_0x1235d2=>{const _0x24bfbd=_0xbdc700;return{'strCode':_0x1235d2[_0x24bfbd(0xc4)],'nMaxIn':_0x1235d2[_0x24bfbd(0xd8)]};});if(_0x310fc7){const _0x41e188=_0x14f265[_0xbdc700(0xd2)](_0x55eadc=>_0x55eadc[_0xbdc700(0xc4)]=='2');_0x310fc7=_0x310fc7&&_0x41e188;}if(_0xeaf79f)_0xeaf79f=_0xeaf79f&&_0x58ed51;return{'childusebed':_0xeaf79f,'half':_0x310fc7,'infant':_0x48f1ee,'child':_0x58ed51,'list':_0x122f2c};}function isRoomPiece(_0x522bef,_0x39e208){const _0x52b3d3=a3_0x19f2;return _0x39e208&&_0x522bef[_0x52b3d3(0xc6)]===0x1&&_0x522bef['childrennum']===0x0&&_0x522bef['infantnum']===0x0;}function a3_0x563d(){const _0x1508c5=['childusebed','half','21aUjZnB','find','264HYGmYV','1919714aBnTDW','1732520gURWmf','139530dKSBAW','6QMJZrV','infant','some','infantnum','260745echRLl','map','171weCyGk','push','nMaxIn','28376997ZkzwCs','child','max','filter','1570250JcHHfQ','forEach','list','32708WDgIxu','strCode','reduce','adultnum','childrennum'];a3_0x563d=function(){return _0x1508c5;};return a3_0x563d();}function getRoomItemRange(_0x2bd383,_0x2cad4e,_0x40b401={'child':'儿童','infant':'婴儿'}){const _0x779219=a3_0x19f2;if(!_0x2cad4e['length'])return{'childList':[],'infantList':[]};const _0xf64d97=Math[_0x779219(0xdb)](..._0x2cad4e[_0x779219(0xd5)](_0x475d65=>Number(_0x475d65[_0x779219(0xd8)]))),_0x2c8e8c=_0xf64d97-_0x2bd383[_0x779219(0xc6)]-_0x2bd383[_0x779219(0xd3)];let _0x2619df=_0xf64d97-_0x2bd383[_0x779219(0xc6)]-_0x2bd383[_0x779219(0xc7)];if(_0x2619df>0x2)_0x2619df=0x2;const _0x1dbb0c=(_0xc9e66d,_0x375a7d)=>{const _0x15ff68=_0x779219,_0x4395f1=[];_0x4395f1[_0x15ff68(0xd7)]({'value':0x0,'label':'0\x20'+_0x375a7d});for(let _0x1bfe62=0x0;_0x1bfe62<_0xc9e66d;_0x1bfe62++){_0x4395f1[_0x15ff68(0xd7)]({'value':_0x1bfe62+0x1,'label':''+(_0x1bfe62+0x1)+_0x375a7d});}return _0x4395f1;};return{'childList':_0x1dbb0c(_0x2c8e8c,_0x40b401[_0x779219(0xda)]),'infantList':_0x1dbb0c(_0x2619df,_0x40b401[_0x779219(0xd1)])};}function getAdultRange(_0x12ae76,_0x661d4e='成人'){const _0x35b6dd=a3_0x19f2;let _0x516676=Math[_0x35b6dd(0xdb)](..._0x12ae76['map'](_0x4849cd=>Number(_0x4849cd[_0x35b6dd(0xc4)]))[_0x35b6dd(0xdc)](_0x2d76f6=>!isNaN(_0x2d76f6)));if(!_0x516676)_0x516676=0x4;let _0x425527=[];for(var _0x45cbd7=0x1;_0x45cbd7<_0x516676+0x1;_0x45cbd7++){_0x425527[_0x35b6dd(0xd7)]({'value':_0x45cbd7,'label':''+_0x45cbd7+_0x661d4e});}return _0x425527;}const getTotalPeople=_0x10e694=>{const _0x4ac921=a3_0x19f2,_0x26a8a3=_0x10e694[_0x4ac921(0xc5)]((_0x58f7c9,_0x107d7f)=>{const _0xebd62e=_0x4ac921;return _0x58f7c9+(_0x107d7f[_0xebd62e(0xc6)]||0x0)+(_0x107d7f[_0xebd62e(0xc7)]||0x0)+(_0x107d7f[_0xebd62e(0xd3)]||0x0);},0x0);return _0x26a8a3;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
package/dist/system.js CHANGED
@@ -1 +1 @@
1
- const a4_0x409871=a4_0x5295;(function(_0x27b04b,_0x283fda){const _0x348456=a4_0x5295,_0x20fccc=_0x27b04b();while(!![]){try{const _0x3662fd=parseInt(_0x348456(0x143))/0x1+parseInt(_0x348456(0x140))/0x2+parseInt(_0x348456(0x13f))/0x3+parseInt(_0x348456(0x12e))/0x4*(-parseInt(_0x348456(0x139))/0x5)+-parseInt(_0x348456(0x134))/0x6+-parseInt(_0x348456(0x13a))/0x7*(-parseInt(_0x348456(0x130))/0x8)+-parseInt(_0x348456(0x13d))/0x9;if(_0x3662fd===_0x283fda)break;else _0x20fccc['push'](_0x20fccc['shift']());}catch(_0x2834ee){_0x20fccc['push'](_0x20fccc['shift']());}}}(a4_0x631e,0xeed4a));function getDocInfo(_0x24d77d,_0x2a1fd7=a4_0x409871(0x144),_0x3c9661=![]){const _0x5a4eec=a4_0x409871;let _0x27a375=_0x3c9661?'\x20':'';if(_0x2a1fd7==='idNumber')return _0x24d77d[_0x5a4eec(0x132)]||_0x24d77d[_0x5a4eec(0x13b)]||_0x24d77d[_0x5a4eec(0x142)]||_0x24d77d['strggtxz']||_0x24d77d[_0x5a4eec(0x135)]||'';if(_0x2a1fd7==='name'){if(_0x24d77d[_0x5a4eec(0x138)])return _0x24d77d[_0x5a4eec(0x138)];const _0x17f909=_0x24d77d[_0x5a4eec(0x133)]||_0x24d77d['firstName']||_0x24d77d['strxs']||'',_0x24c021=_0x24d77d[_0x5a4eec(0x145)]||_0x24d77d['lastName']||_0x24d77d[_0x5a4eec(0x141)]||'';return[_0x17f909,_0x24c021][_0x5a4eec(0x12f)](Boolean)[_0x5a4eec(0x13e)](_0x27a375)[_0x5a4eec(0x136)]()||'';}if(_0x2a1fd7===_0x5a4eec(0x13c))return _0x24d77d[_0x5a4eec(0x131)]||_0x24d77d[_0x5a4eec(0x137)]||_0x24d77d['strdhhm']||'';return'';}function a4_0x5295(_0xb854c,_0x387397){const _0x631ea6=a4_0x631e();return a4_0x5295=function(_0x529579,_0x309c9d){_0x529579=_0x529579-0x12e;let _0x51bd1a=_0x631ea6[_0x529579];return _0x51bd1a;},a4_0x5295(_0xb854c,_0x387397);}function a4_0x631e(){const _0x2e0993=['3052612aEtzba','strmz','strhxz','595947ZzKZcU','idNumber','strlastname','4268SvuwDL','filter','3855248ZdHWVp','strlxdh','strsfzh','strfirstname','1244484VYRAod','strzjhm','trim','strlxfs','strxm','4215lHaSuv','21tyvJJx','strhzbh','phone','17174637HRxzsm','join','1276401BjxSxh'];a4_0x631e=function(){return _0x2e0993;};return a4_0x631e();}export default{'getDocInfo':getDocInfo};
1
+ const a4_0x49b0f6=a4_0x4b63;(function(_0x4cef1b,_0x30d589){const _0x153710=a4_0x4b63,_0x5a953f=_0x4cef1b();while(!![]){try{const _0xf09a4e=-parseInt(_0x153710(0x159))/0x1*(-parseInt(_0x153710(0x158))/0x2)+-parseInt(_0x153710(0x162))/0x3+parseInt(_0x153710(0x151))/0x4+parseInt(_0x153710(0x14f))/0x5*(-parseInt(_0x153710(0x164))/0x6)+-parseInt(_0x153710(0x165))/0x7+parseInt(_0x153710(0x160))/0x8+parseInt(_0x153710(0x157))/0x9;if(_0xf09a4e===_0x30d589)break;else _0x5a953f['push'](_0x5a953f['shift']());}catch(_0x1a0538){_0x5a953f['push'](_0x5a953f['shift']());}}}(a4_0x58c6,0x618bf));function a4_0x58c6(){const _0x301d8a=['3995lFwctm','strxs','phone','strxm','strsfzh','idNumber','lastName','5114760EKPVCd','strdhhm','102939ZXnBkQ','join','6zxhrXi','4014962ZSugns','2043355VVMMSy','strlxfs','930892gzivzD','strfirstname','strhzbh','strlxdh','filter','strlastname','4285062BLMLqG','34faBKDB'];a4_0x58c6=function(){return _0x301d8a;};return a4_0x58c6();}function getDocInfo(_0x35f14a,_0x2e6cf4=a4_0x49b0f6(0x15e),_0x441c44=![]){const _0x2044bb=a4_0x49b0f6;let _0x5e8b62=_0x441c44?'\x20':'';if(_0x2e6cf4===_0x2044bb(0x15e))return _0x35f14a[_0x2044bb(0x15d)]||_0x35f14a[_0x2044bb(0x153)]||_0x35f14a['strhxz']||_0x35f14a['strggtxz']||_0x35f14a['strzjhm']||'';if(_0x2e6cf4==='name'){if(_0x35f14a['strxm'])return _0x35f14a[_0x2044bb(0x15c)];const _0x5b990d=_0x35f14a[_0x2044bb(0x152)]||_0x35f14a['firstName']||_0x35f14a[_0x2044bb(0x15a)]||'',_0x4654d5=_0x35f14a[_0x2044bb(0x156)]||_0x35f14a[_0x2044bb(0x15f)]||_0x35f14a['strmz']||'';return[_0x5b990d,_0x4654d5][_0x2044bb(0x155)](Boolean)[_0x2044bb(0x163)](_0x5e8b62)['trim']()||'';}if(_0x2e6cf4===_0x2044bb(0x15b))return _0x35f14a[_0x2044bb(0x154)]||_0x35f14a[_0x2044bb(0x150)]||_0x35f14a[_0x2044bb(0x161)]||'';return'';}function a4_0x4b63(_0x73494,_0x2ad014){const _0x58c604=a4_0x58c6();return a4_0x4b63=function(_0x4b631c,_0x1b1a35){_0x4b631c=_0x4b631c-0x14f;let _0x550b3b=_0x58c604[_0x4b631c];return _0x550b3b;},a4_0x4b63(_0x73494,_0x2ad014);}export default{'getDocInfo':getDocInfo};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- function a5_0x2510(_0x5277f1,_0x541e52){const _0x5df0a1=a5_0x5df0();return a5_0x2510=function(_0x251012,_0x33cf63){_0x251012=_0x251012-0x10c;let _0x55262f=_0x5df0a1[_0x251012];return _0x55262f;},a5_0x2510(_0x5277f1,_0x541e52);}(function(_0x198d09,_0x47bcc8){const _0x38e7e3=a5_0x2510,_0x127fee=_0x198d09();while(!![]){try{const _0x235fbb=parseInt(_0x38e7e3(0x114))/0x1+parseInt(_0x38e7e3(0x12a))/0x2+-parseInt(_0x38e7e3(0x115))/0x3+-parseInt(_0x38e7e3(0x125))/0x4+parseInt(_0x38e7e3(0x118))/0x5*(parseInt(_0x38e7e3(0x121))/0x6)+-parseInt(_0x38e7e3(0x113))/0x7+-parseInt(_0x38e7e3(0x11a))/0x8;if(_0x235fbb===_0x47bcc8)break;else _0x127fee['push'](_0x127fee['shift']());}catch(_0x5a75f1){_0x127fee['push'](_0x127fee['shift']());}}}(a5_0x5df0,0x53635));function email(_0x303ec8){const _0x5802af=a5_0x2510;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5802af(0x11f)](_0x303ec8);}function mobile(_0x173a73){const _0x4dc092=a5_0x2510;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x4dc092(0x11f)](_0x173a73);}function isValidPhoneNumber(_0x4a8f27){const _0x4dfffe=a5_0x2510;if(_0x4a8f27[_0x4dfffe(0x129)]('-')){const [_0x56760d,_0x4081cd]=_0x4a8f27[_0x4dfffe(0x11b)]('-');if(_0x56760d==='86')return/^\d{11}$/[_0x4dfffe(0x11f)](_0x4081cd)&&_0x4081cd[_0x4dfffe(0x119)]('1');else return _0x56760d==='852'?/^\d{8}$/['test'](_0x4081cd)&&['5','6','9','8'][_0x4dfffe(0x129)](_0x4081cd[_0x4dfffe(0x11d)](0x0)):/^\d+$/[_0x4dfffe(0x11f)](_0x4081cd);}else return/^\d+$/[_0x4dfffe(0x11f)](_0x4a8f27);}function url(_0x47446a){const _0x137417=a5_0x2510;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x137417(0x11f)](_0x47446a);}function a5_0x5df0(){const _0x2aa88e=['422084Jbjvah','boolean','[object\x20Array]','toString','[object\x20Object]','parse','length','prototype','function','4089253dMdjuN','558436aRtLWk','59715aRxmhR','^\x5cd{','indexOf','35VSqUYj','startsWith','768432GcsRXi','split','number','charAt','then','test','[object\x20RegExp]','422130OpEAht','replace','isArray','string','881072RSaNMp','catch','object','call','includes'];a5_0x5df0=function(){return _0x2aa88e;};return a5_0x5df0();}function date(_0x2fe2b9){const _0x15b09b=a5_0x2510;if(!_0x2fe2b9)return![];if(number(_0x2fe2b9))_0x2fe2b9=+_0x2fe2b9;return!/Invalid|NaN/[_0x15b09b(0x11f)](new Date(_0x2fe2b9)[_0x15b09b(0x10d)]());}function dateISO(_0x1bfa88){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x1bfa88);}function isNumber(_0x2a44a6){const _0x555b99=a5_0x2510;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x555b99(0x11f)](_0x2a44a6);}function isString(_0x554fd0){const _0x40ab00=a5_0x2510;return typeof _0x554fd0===_0x40ab00(0x124);}function digits(_0x4c6094){const _0x49820a=a5_0x2510;return/^\d+$/[_0x49820a(0x11f)](_0x4c6094);}function idCard(_0x14bd37){const _0x2cca4e=a5_0x2510,_0x3a02f3=/^[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)$/,_0x5ca7c9=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x3a02f3[_0x2cca4e(0x11f)](_0x14bd37)||_0x5ca7c9['test'](_0x14bd37);}function carNo(_0x474ccf){const _0x177101=a5_0x2510,_0x72eeb8=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x54f9d6=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x474ccf[_0x177101(0x110)]===0x7)return _0x54f9d6['test'](_0x474ccf);if(_0x474ccf[_0x177101(0x110)]===0x8)return _0x72eeb8[_0x177101(0x11f)](_0x474ccf);return![];}function amount(_0x37917d){const _0x2a0dd=a5_0x2510;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x2a0dd(0x11f)](_0x37917d);}function chinese(_0x5cd6d0){const _0x4de905=/^[\u4e00-\u9fa5]+$/gi;return _0x4de905['test'](_0x5cd6d0);}function letter(_0x1d00b2){const _0x319ee3=a5_0x2510;return/^[a-zA-Z]*$/[_0x319ee3(0x11f)](_0x1d00b2);}function enOrNum(_0xee1e2c){const _0x45d593=a5_0x2510,_0x31b890=/^[0-9a-zA-Z]*$/g;return _0x31b890[_0x45d593(0x11f)](_0xee1e2c);}function contains(_0x21b80f,_0x1a21f3){const _0x2280c6=a5_0x2510;return _0x21b80f[_0x2280c6(0x117)](_0x1a21f3)>=0x0;}function range(_0x46158f,_0x2fe98d){return _0x46158f>=_0x2fe98d[0x0]&&_0x46158f<=_0x2fe98d[0x1];}function rangeLength(_0x2c57cd,_0x1859d3){const _0x221268=a5_0x2510;return _0x2c57cd[_0x221268(0x110)]>=_0x1859d3[0x0]&&_0x2c57cd['length']<=_0x1859d3[0x1];}function landline(_0x13de19){const _0x56f8bc=a5_0x2510,_0x4bae28=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4bae28[_0x56f8bc(0x11f)](_0x13de19);}function empty(_0x2968cb){const _0x299bbe=a5_0x2510;switch(typeof _0x2968cb){case'undefined':return!![];case'string':if(_0x2968cb[_0x299bbe(0x122)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x299bbe(0x110)]==0x0)return!![];break;case _0x299bbe(0x12b):if(!_0x2968cb)return!![];break;case _0x299bbe(0x11c):if(_0x2968cb===0x0||isNaN(_0x2968cb))return!![];break;case _0x299bbe(0x127):if(_0x2968cb===null||_0x2968cb[_0x299bbe(0x110)]===0x0)return!![];for(const _0x44b52b in _0x2968cb){return![];}return!![];}return![];}function jsonString(_0x262667){const _0x131e9c=a5_0x2510;if(typeof _0x262667===_0x131e9c(0x124))try{const _0x577627=JSON[_0x131e9c(0x10f)](_0x262667);if(typeof _0x577627===_0x131e9c(0x127)&&_0x577627)return!![];return![];}catch(_0x4e648a){return![];}return![];}function array(_0x26b9ec){const _0x3f96c8=a5_0x2510;if(typeof Array[_0x3f96c8(0x123)]===_0x3f96c8(0x112))return Array[_0x3f96c8(0x123)](_0x26b9ec);return Object[_0x3f96c8(0x111)][_0x3f96c8(0x10d)]['call'](_0x26b9ec)===_0x3f96c8(0x10c);}function object(_0x4a6a1c){const _0x4c9b6a=a5_0x2510;return Object['prototype'][_0x4c9b6a(0x10d)][_0x4c9b6a(0x128)](_0x4a6a1c)===_0x4c9b6a(0x10e);}function code(_0x17de09,_0x130e8a=0x6){const _0x45b719=a5_0x2510;return new RegExp(_0x45b719(0x116)+_0x130e8a+'}$')[_0x45b719(0x11f)](_0x17de09);}function func(_0x4f4598){return typeof _0x4f4598==='function';}function promise(_0x567c72){const _0x7e0c96=a5_0x2510;return object(_0x567c72)&&func(_0x567c72[_0x7e0c96(0x11e)])&&func(_0x567c72[_0x7e0c96(0x126)]);}function image(_0x48d0d7){const _0x57189f=a5_0x2510,_0x54cdd5=_0x48d0d7[_0x57189f(0x11b)]('?')[0x0],_0x2b8f96=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2b8f96[_0x57189f(0x11f)](_0x54cdd5);}function video(_0xb9f175){const _0x171fd2=a5_0x2510,_0x5a4af6=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x5a4af6[_0x171fd2(0x11f)](_0xb9f175);}function regExp(_0xd0b31d){const _0x331a62=a5_0x2510;return _0xd0b31d&&Object[_0x331a62(0x111)][_0x331a62(0x10d)][_0x331a62(0x128)](_0xd0b31d)===_0x331a62(0x120);}function isNumeric(_0x2bbf7d,_0x359d91=0x0){const _0x49c23b=a5_0x2510;if(typeof _0x2bbf7d===_0x49c23b(0x11c))_0x2bbf7d=_0x2bbf7d[_0x49c23b(0x10d)]();if(typeof _0x2bbf7d!=='string')return![];switch(_0x359d91){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x2bbf7d);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x2bbf7d);case 0x3:return/^-?\d+$/[_0x49c23b(0x11f)](_0x2bbf7d);case 0x4:return/^\d+$/[_0x49c23b(0x11f)](_0x2bbf7d);case 0x5:return/^-\d+$/['test'](_0x2bbf7d);default:return/^-?\d*\.?\d*$/[_0x49c23b(0x11f)](_0x2bbf7d)&&!_0x2bbf7d[_0x49c23b(0x119)]('.')&&!_0x2bbf7d[_0x49c23b(0x129)]('--');}}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(_0x326dbd,_0x29850b){const _0x5a704a=a5_0x33d4,_0x58417e=_0x326dbd();while(!![]){try{const _0x3b7369=-parseInt(_0x5a704a(0x1e7))/0x1*(parseInt(_0x5a704a(0x1f9))/0x2)+-parseInt(_0x5a704a(0x1eb))/0x3*(-parseInt(_0x5a704a(0x1e2))/0x4)+-parseInt(_0x5a704a(0x1e1))/0x5+parseInt(_0x5a704a(0x1df))/0x6+-parseInt(_0x5a704a(0x1f8))/0x7+parseInt(_0x5a704a(0x1f4))/0x8+-parseInt(_0x5a704a(0x1fd))/0x9*(parseInt(_0x5a704a(0x1f6))/0xa);if(_0x3b7369===_0x29850b)break;else _0x58417e['push'](_0x58417e['shift']());}catch(_0x4664b8){_0x58417e['push'](_0x58417e['shift']());}}}(a5_0x5d8f,0xeec4f));function email(_0x13b197){const _0x187a91=a5_0x33d4;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x187a91(0x1ee)](_0x13b197);}function mobile(_0x5c77d4){const _0x39b277=a5_0x33d4;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x39b277(0x1ee)](_0x5c77d4);}function isValidPhoneNumber(_0x22ccfe){const _0x33f1a3=a5_0x33d4;if(_0x22ccfe['includes']('-')){const [_0x27c866,_0x163e67]=_0x22ccfe[_0x33f1a3(0x1e4)]('-');if(_0x27c866==='86')return/^\d{11}$/[_0x33f1a3(0x1ee)](_0x163e67)&&_0x163e67[_0x33f1a3(0x1e6)]('1');else return _0x27c866===_0x33f1a3(0x1fe)?/^\d{8}$/['test'](_0x163e67)&&['5','6','9','8']['includes'](_0x163e67['charAt'](0x0)):/^\d+$/[_0x33f1a3(0x1ee)](_0x163e67);}else return/^\d+$/['test'](_0x22ccfe);}function url(_0x301f66){const _0x202dcb=a5_0x33d4;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x202dcb(0x1ee)](_0x301f66);}function date(_0x4dd985){const _0x25e7d4=a5_0x33d4;if(!_0x4dd985)return![];if(number(_0x4dd985))_0x4dd985=+_0x4dd985;return!/Invalid|NaN/[_0x25e7d4(0x1ee)](new Date(_0x4dd985)[_0x25e7d4(0x1ef)]());}function dateISO(_0x492819){const _0x1ae56a=a5_0x33d4;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x1ae56a(0x1ee)](_0x492819);}function isNumber(_0x405f96){const _0x45d247=a5_0x33d4;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x45d247(0x1ee)](_0x405f96);}function a5_0x33d4(_0x1e8a90,_0xb44c03){const _0x5d8f29=a5_0x5d8f();return a5_0x33d4=function(_0x33d408,_0x101f5d){_0x33d408=_0x33d408-0x1df;let _0x511fd7=_0x5d8f29[_0x33d408];return _0x511fd7;},a5_0x33d4(_0x1e8a90,_0xb44c03);}function isString(_0x27be6d){const _0x449b97=a5_0x33d4;return typeof _0x27be6d===_0x449b97(0x200);}function digits(_0x58316b){return/^\d+$/['test'](_0x58316b);}function idCard(_0x2a127e){const _0x50e63e=a5_0x33d4,_0x42e9f3=/^[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)$/,_0xe01353=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x42e9f3['test'](_0x2a127e)||_0xe01353[_0x50e63e(0x1ee)](_0x2a127e);}function carNo(_0xe6d337){const _0x4f8ec5=a5_0x33d4,_0xbb72d=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0xba6d37=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0xe6d337['length']===0x7)return _0xba6d37['test'](_0xe6d337);if(_0xe6d337[_0x4f8ec5(0x1e5)]===0x8)return _0xbb72d[_0x4f8ec5(0x1ee)](_0xe6d337);return![];}function amount(_0x40891a){const _0x549804=a5_0x33d4;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x549804(0x1ee)](_0x40891a);}function chinese(_0x429ba4){const _0x225b44=/^[\u4e00-\u9fa5]+$/gi;return _0x225b44['test'](_0x429ba4);}function letter(_0x530a6f){return/^[a-zA-Z]*$/['test'](_0x530a6f);}function enOrNum(_0xc8aa95){const _0x4eb18c=a5_0x33d4,_0x57244b=/^[0-9a-zA-Z]*$/g;return _0x57244b[_0x4eb18c(0x1ee)](_0xc8aa95);}function contains(_0x57d459,_0x37ab69){const _0x1ba355=a5_0x33d4;return _0x57d459[_0x1ba355(0x1e0)](_0x37ab69)>=0x0;}function range(_0x15e889,_0x2f3917){return _0x15e889>=_0x2f3917[0x0]&&_0x15e889<=_0x2f3917[0x1];}function rangeLength(_0x20269c,_0x4a365d){return _0x20269c['length']>=_0x4a365d[0x0]&&_0x20269c['length']<=_0x4a365d[0x1];}function landline(_0xaa60ea){const _0x3e7b45=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3e7b45['test'](_0xaa60ea);}function empty(_0x177d63){const _0x434bcd=a5_0x33d4;switch(typeof _0x177d63){case _0x434bcd(0x1f1):return!![];case'string':if(_0x177d63[_0x434bcd(0x1ec)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x434bcd(0x1e5)]==0x0)return!![];break;case _0x434bcd(0x1ff):if(!_0x177d63)return!![];break;case'number':if(_0x177d63===0x0||isNaN(_0x177d63))return!![];break;case _0x434bcd(0x1fa):if(_0x177d63===null||_0x177d63[_0x434bcd(0x1e5)]===0x0)return!![];for(const _0x37e215 in _0x177d63){return![];}return!![];}return![];}function jsonString(_0x294694){const _0x575a81=a5_0x33d4;if(typeof _0x294694===_0x575a81(0x200))try{const _0x3d66dd=JSON['parse'](_0x294694);if(typeof _0x3d66dd===_0x575a81(0x1fa)&&_0x3d66dd)return!![];return![];}catch(_0x5f2e3a){return![];}return![];}function array(_0x315575){const _0x26d1e4=a5_0x33d4;if(typeof Array[_0x26d1e4(0x1e3)]==='function')return Array[_0x26d1e4(0x1e3)](_0x315575);return Object[_0x26d1e4(0x1fc)][_0x26d1e4(0x1ef)][_0x26d1e4(0x1f5)](_0x315575)===_0x26d1e4(0x1ed);}function object(_0x3a9ccd){const _0x153b55=a5_0x33d4;return Object['prototype'][_0x153b55(0x1ef)][_0x153b55(0x1f5)](_0x3a9ccd)===_0x153b55(0x1f2);}function code(_0x1edc2f,_0x2c8185=0x6){const _0x2faeda=a5_0x33d4;return new RegExp(_0x2faeda(0x1e8)+_0x2c8185+'}$')[_0x2faeda(0x1ee)](_0x1edc2f);}function a5_0x5d8f(){const _0x320fc4=['2446556EcpRee','3135638GipsWH','object','[object\x20RegExp]','prototype','9AAVPXu','852','boolean','string','1528182SijDlY','indexOf','32755ZCFHvW','4LQkxOU','isArray','split','length','startsWith','1TIydFy','^\x5cd{','then','function','4207872ViYHJq','replace','[object\x20Array]','test','toString','includes','undefined','[object\x20Object]','catch','11404504uIhKeR','call','1810070MQRuun','number'];a5_0x5d8f=function(){return _0x320fc4;};return a5_0x5d8f();}function func(_0x182020){const _0x5dff1c=a5_0x33d4;return typeof _0x182020===_0x5dff1c(0x1ea);}function promise(_0x183ad8){const _0xedcfe3=a5_0x33d4;return object(_0x183ad8)&&func(_0x183ad8[_0xedcfe3(0x1e9)])&&func(_0x183ad8[_0xedcfe3(0x1f3)]);}function image(_0x5ac009){const _0x8100a8=a5_0x33d4,_0x5e52cb=_0x5ac009[_0x8100a8(0x1e4)]('?')[0x0],_0x1b31c8=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x1b31c8[_0x8100a8(0x1ee)](_0x5e52cb);}function video(_0x340a76){const _0x1c84d6=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x1c84d6['test'](_0x340a76);}function regExp(_0x373d62){const _0x41396a=a5_0x33d4;return _0x373d62&&Object[_0x41396a(0x1fc)][_0x41396a(0x1ef)][_0x41396a(0x1f5)](_0x373d62)===_0x41396a(0x1fb);}function isNumeric(_0x2fd66d,_0x31d6b5=0x0){const _0xdf053d=a5_0x33d4;if(typeof _0x2fd66d===_0xdf053d(0x1f7))_0x2fd66d=_0x2fd66d[_0xdf053d(0x1ef)]();if(typeof _0x2fd66d!==_0xdf053d(0x200))return![];switch(_0x31d6b5){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x2fd66d);case 0x2:return/^-\d+(\.\d+)?$/[_0xdf053d(0x1ee)](_0x2fd66d);case 0x3:return/^-?\d+$/[_0xdf053d(0x1ee)](_0x2fd66d);case 0x4:return/^\d+$/[_0xdf053d(0x1ee)](_0x2fd66d);case 0x5:return/^-\d+$/[_0xdf053d(0x1ee)](_0x2fd66d);default:return/^-?\d*\.?\d*$/['test'](_0x2fd66d)&&!_0x2fd66d[_0xdf053d(0x1e6)]('.')&&!_0x2fd66d[_0xdf053d(0x1f0)]('--');}}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_0xbb5ae3=a6_0x3a95;(function(_0x3d3060,_0x20074c){const _0x3c88bc=a6_0x3a95,_0x16c803=_0x3d3060();while(!![]){try{const _0x2fe438=-parseInt(_0x3c88bc(0x134))/0x1*(-parseInt(_0x3c88bc(0x18d))/0x2)+-parseInt(_0x3c88bc(0x145))/0x3*(-parseInt(_0x3c88bc(0x13d))/0x4)+-parseInt(_0x3c88bc(0x173))/0x5*(-parseInt(_0x3c88bc(0x146))/0x6)+parseInt(_0x3c88bc(0x13f))/0x7*(-parseInt(_0x3c88bc(0x142))/0x8)+-parseInt(_0x3c88bc(0x15d))/0x9*(-parseInt(_0x3c88bc(0x169))/0xa)+-parseInt(_0x3c88bc(0x130))/0xb+-parseInt(_0x3c88bc(0x14b))/0xc;if(_0x2fe438===_0x20074c)break;else _0x16c803['push'](_0x16c803['shift']());}catch(_0x1db4fe){_0x16c803['push'](_0x16c803['shift']());}}}(a6_0x54e5,0xe7c04));function fmtNum(_0x4a5b0e,_0x490fd1=!![]){const _0x1101d2=a6_0x3a95;if(_0x4a5b0e==0x0)return _0x490fd1?'0.00':'0';if(!_0x4a5b0e)return'';let _0x45f3df=typeof _0x4a5b0e===_0x1101d2(0x131)?parseFloat(_0x4a5b0e):_0x4a5b0e;if(isNaN(_0x45f3df))return'';return _0x45f3df[_0x1101d2(0x177)]('en-US',{'minimumFractionDigits':_0x490fd1?0x2:0x0,'maximumFractionDigits':_0x490fd1?0x2:0x0});}function splitName(_0x1fdc87,_0x2b91e3=![]){const _0x3b8711=a6_0x3a95;let _0x7490b5={'surname':'','givenName':''};if(_0x2b91e3){const _0x599130=_0x1fdc87['includes'](',')?_0x1fdc87['split'](','):_0x1fdc87[_0x3b8711(0x16d)](/\s+/);_0x599130[_0x3b8711(0x157)]>=0x2&&(_0x7490b5[_0x3b8711(0x140)]=_0x599130[0x0][_0x3b8711(0x180)](),_0x7490b5[_0x3b8711(0x17b)]=_0x599130[0x1][_0x3b8711(0x180)]());}else{const _0x5a2579=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2d6db9=0x0;_0x2d6db9<_0x5a2579[_0x3b8711(0x157)];_0x2d6db9++){const _0x46b30e=_0x5a2579[_0x2d6db9];if(_0x1fdc87['startsWith'](_0x46b30e))return _0x7490b5[_0x3b8711(0x140)]=_0x46b30e,_0x7490b5[_0x3b8711(0x17b)]=_0x1fdc87[_0x3b8711(0x160)](_0x46b30e['length'])['trim'](),_0x7490b5;}const _0x210024=_0x1fdc87[_0x3b8711(0x16d)]('\x20');if(_0x210024[_0x3b8711(0x157)]===0x1){const _0x425168=_0x1fdc87[_0x3b8711(0x147)](/[\u4e00-\u9fa5]/);_0x7490b5['surname']=_0x425168?_0x425168[0x0]:'',_0x7490b5[_0x3b8711(0x17b)]=_0x1fdc87[_0x3b8711(0x186)](_0x7490b5[_0x3b8711(0x140)],'')[_0x3b8711(0x180)]();}else _0x7490b5['surname']=_0x210024[0x0],_0x7490b5[_0x3b8711(0x17b)]=_0x210024[_0x3b8711(0x182)](0x1)[_0x3b8711(0x166)]('\x20');}return _0x7490b5;}function a6_0x54e5(){const _0x3f1ff2=['slice','dayTitle','无效的操作符,操作符应为1、2、3或4','Nationality','replace','exec','random','nationality','YYYY','forEach','DateOfBirth','157996KltOyK','yyyy-mm-dd','Name','stringify','EnName','parse','padStart','4458641VpQWnG','string','englishName','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','10fXjYwp','setDate','getMonth','hasOwnProperty','includes','EnglishName','find','getFullYear','number','12pUTKlY','Birthday','2766337NRGjNf','surname','round','16ZXzVVn','GivenName','PassportNo','1894191GQawBa','36FSmgGX','match','IdNum','getHours','abs','36453420LZiANr','fjbh','max','givenNameEn','test','sex','除数不能为0','toString','getTime','DateOfExpiration','birthDate','prototype','length','BirthDate','toFixed','endsWith','expDate','Sex','2470401kSjOVe','push','getMinutes','substring','Birth','map','FamilyName','isArray','surnameEn','join','monthTitle','Quantity\x20should\x20be\x20greater\x20than\x200.','50wKtRCA','Surname','name','floor','split','_qh','function','getDate','ExpiryDate','error','938445uUQhVb','label','code','Number','toLocaleString','ValidDate','call','getSeconds','givenName','both','all','value','right','trim','boolean'];a6_0x54e5=function(){return _0x3f1ff2;};return a6_0x54e5();}function timeFormat(_0x12292a=null,_0x4c1a95=a6_0xbb5ae3(0x18e)){const _0x4c7e7d=a6_0xbb5ae3;let _0x2fbae3;if(!_0x12292a)_0x2fbae3=new Date();else{if(/^\d{10}$/[_0x4c7e7d(0x14f)](_0x12292a?.[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x180)]()))_0x2fbae3=new Date(_0x12292a*0x3e8);else{if(typeof _0x12292a===_0x4c7e7d(0x131)&&/^\d+$/[_0x4c7e7d(0x14f)](_0x12292a[_0x4c7e7d(0x180)]()))_0x2fbae3=new Date(Number(_0x12292a));else typeof _0x12292a==='string'&&_0x12292a[_0x4c7e7d(0x138)]('-')&&!_0x12292a[_0x4c7e7d(0x138)]('T')?_0x2fbae3=new Date(_0x12292a[_0x4c7e7d(0x186)](/-/g,'/')):_0x2fbae3=new Date(_0x12292a);}}const _0x4c202c={'y':_0x2fbae3[_0x4c7e7d(0x13b)]()[_0x4c7e7d(0x152)](),'m':(_0x2fbae3['getMonth']()+0x1)[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x12f)](0x2,'0'),'d':_0x2fbae3['getDate']()['toString']()[_0x4c7e7d(0x12f)](0x2,'0'),'h':_0x2fbae3[_0x4c7e7d(0x149)]()[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x12f)](0x2,'0'),'M':_0x2fbae3['getMinutes']()['toString']()['padStart'](0x2,'0'),'s':_0x2fbae3[_0x4c7e7d(0x17a)]()[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x12f)](0x2,'0')};for(const _0x497e14 in _0x4c202c){const [_0x365f3e]=new RegExp(_0x497e14+'+')[_0x4c7e7d(0x187)](_0x4c1a95)||[];if(_0x365f3e){const _0x49922c=_0x497e14==='y'&&_0x365f3e[_0x4c7e7d(0x157)]===0x2?0x2:0x0;_0x4c1a95=_0x4c1a95['replace'](_0x365f3e,_0x4c202c[_0x497e14][_0x4c7e7d(0x182)](_0x49922c));}}return _0x4c1a95;}function handleOCRData(_0x2c9405,_0x5255df){const _0x1902fe=a6_0xbb5ae3,_0x31b2b0=_0x38b983=>{const _0x3d8052=a6_0x3a95,_0x2e946e=_0x38b983[_0x3d8052(0x160)](0x0,0x4),_0x3b6da6=_0x38b983[_0x3d8052(0x160)](0x4,0x6),_0x1a21ed=_0x38b983['substring'](0x6,0x8);return _0x2e946e+'-'+_0x3b6da6+'-'+_0x1a21ed;};let _0x520ac8={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x2c9405===0x0||_0x2c9405===0x1||_0x2c9405===0x2){if(_0x5255df[_0x1902fe(0x15c)]==='M')_0x520ac8['sex']='男';else _0x520ac8[_0x1902fe(0x150)]='女';}debugger;_0x2c9405===0x0&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df[_0x1902fe(0x18f)],_0x520ac8[_0x1902fe(0x140)]=_0x5255df[_0x1902fe(0x163)],_0x520ac8['givenName']=_0x5255df['FirstName'],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x171)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x158)],_0x520ac8[_0x1902fe(0x189)]=_0x5255df['Nationality'],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df[_0x1902fe(0x144)]);if(_0x2c9405===0x1){_0x520ac8[_0x1902fe(0x16b)]=_0x5255df['Name'],_0x520ac8[_0x1902fe(0x140)]=_0x5255df[_0x1902fe(0x16a)],_0x520ac8[_0x1902fe(0x17b)]=_0x5255df[_0x1902fe(0x143)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x154)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x18c)],_0x520ac8[_0x1902fe(0x189)]=_0x5255df[_0x1902fe(0x185)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df['ID'];if(!_0x5255df[_0x1902fe(0x16a)]&&!_0x5255df[_0x1902fe(0x143)]){const _0x46b5af=splitName(_0x5255df[_0x1902fe(0x18f)]);_0x520ac8[_0x1902fe(0x140)]=_0x46b5af[_0x1902fe(0x140)],_0x520ac8[_0x1902fe(0x17b)]=_0x46b5af[_0x1902fe(0x17b)];}if(!_0x5255df[_0x1902fe(0x139)])_0x520ac8[_0x1902fe(0x132)]=_0x5255df['Name'];}_0x2c9405===0x2&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df['CnName'],_0x520ac8['englishName']=_0x5255df[_0x1902fe(0x12d)],_0x520ac8['birthDate']=_0x5255df[_0x1902fe(0x13e)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df['IdNum']);_0x2c9405===0x3&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df[_0x1902fe(0x18f)],_0x520ac8['sex']=_0x5255df[_0x1902fe(0x15c)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x178)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x161)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df[_0x1902fe(0x148)]);_0x2c9405===0x4&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df[_0x1902fe(0x18f)],_0x520ac8['englishName']=_0x5255df[_0x1902fe(0x139)],_0x520ac8[_0x1902fe(0x150)]=_0x5255df[_0x1902fe(0x15c)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x178)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x13e)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df[_0x1902fe(0x176)]);_0x2c9405===0x5&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df['Name'],_0x520ac8[_0x1902fe(0x132)]=_0x5255df['EnglishName'],_0x520ac8['sex']=_0x5255df[_0x1902fe(0x15c)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x178)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x13e)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df['Number']);if(_0x2c9405===0x2||_0x2c9405===0x3||_0x2c9405===0x4||_0x2c9405===0x5){const _0x2ec692=splitName(_0x520ac8[_0x1902fe(0x16b)]);_0x520ac8[_0x1902fe(0x140)]=_0x2ec692[_0x1902fe(0x140)],_0x520ac8['givenName']=_0x2ec692['givenName'];}if(_0x2c9405===0x2||_0x2c9405===0x4||_0x2c9405===0x5){const _0x16aeda=splitName(_0x520ac8[_0x1902fe(0x132)],!![]);_0x520ac8[_0x1902fe(0x165)]=_0x16aeda[_0x1902fe(0x140)],_0x520ac8[_0x1902fe(0x14e)]=_0x16aeda['givenName'];}if(_0x2c9405===0x0||_0x2c9405===0x1){if(_0x520ac8['birthDate']!=='')_0x520ac8[_0x1902fe(0x155)]=_0x31b2b0(_0x520ac8[_0x1902fe(0x155)]);if(_0x520ac8[_0x1902fe(0x15b)]!=='')_0x520ac8[_0x1902fe(0x15b)]=_0x31b2b0(_0x520ac8[_0x1902fe(0x15b)]);}if(_0x2c9405===0x2||_0x2c9405===0x3){if(_0x520ac8[_0x1902fe(0x155)]!=='')_0x520ac8[_0x1902fe(0x155)]=timeFormat(_0x520ac8[_0x1902fe(0x155)]);if(_0x520ac8['expDate']!=='')_0x520ac8['expDate']=timeFormat(_0x520ac8[_0x1902fe(0x15b)]);}if(_0x2c9405===0x4||_0x2c9405===0x5){if(_0x520ac8[_0x1902fe(0x155)]!=='')_0x520ac8[_0x1902fe(0x155)]=timeFormat(_0x520ac8['birthDate']);if(_0x520ac8[_0x1902fe(0x15b)]!==''){let _0x3b3a78=_0x520ac8[_0x1902fe(0x15b)][_0x1902fe(0x16d)]('-');_0x520ac8[_0x1902fe(0x15b)]=timeFormat(_0x3b3a78[0x1]);}}return{'type':_0x2c9405,'data':_0x520ac8};}function modifyKeys(_0x39e80f,_0x3d2fa1={'strCode':a6_0xbb5ae3(0x175),'strFjbh':a6_0xbb5ae3(0x14c),'strGuid':a6_0xbb5ae3(0x17e),'strValue':a6_0xbb5ae3(0x174)}){const _0x4f95b1=a6_0xbb5ae3;if(!_0x39e80f[_0x4f95b1(0x157)]||_0x39e80f===null)return[];const _0x160a9b=_0x39e80f[_0x4f95b1(0x162)](_0x137646=>{const _0x16fde7=_0x4f95b1,_0x1cb232={};for(const _0x417f44 in _0x137646){_0x3d2fa1[_0x16fde7(0x137)](_0x417f44)?_0x1cb232[_0x3d2fa1[_0x417f44]]=_0x137646[_0x417f44]:_0x1cb232[_0x417f44]=_0x137646[_0x417f44];}return _0x1cb232;});return _0x160a9b;}function sliceArray(_0x536ed7,_0x4aa856,_0x12ca69){const _0x37064f=a6_0xbb5ae3;if(_0x4aa856<=0x0)return console[_0x37064f(0x172)](_0x37064f(0x168)),[];return _0x12ca69?_0x536ed7[_0x37064f(0x182)](0x0,_0x4aa856):_0x536ed7['slice'](-_0x4aa856);}function findDataByData(_0x1c54b1,_0x46edd7,_0x5bb478){const _0x4237e3=a6_0xbb5ae3,_0x587c94=_0x1c54b1[_0x4237e3(0x13a)](_0x4319a8=>_0x4319a8[_0x5bb478]===_0x46edd7);return _0x587c94||null;}function splitArray(_0x2e6942,_0x37856b){const _0x1d3fe6=a6_0xbb5ae3,_0x12553c=[];for(let _0x45f7ec=0x0;_0x45f7ec<_0x2e6942['length'];_0x45f7ec+=_0x37856b){_0x12553c[_0x1d3fe6(0x15e)](_0x2e6942[_0x1d3fe6(0x182)](_0x45f7ec,_0x45f7ec+_0x37856b));}return _0x12553c;}function getProxyType(_0x41dbda){const _0x4cef38=a6_0xbb5ae3;return Object[_0x4cef38(0x156)][_0x4cef38(0x152)][_0x4cef38(0x179)](_0x41dbda)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x58de47,_0x5e78b4=0x1f4,_0x412930=![]){const _0xc7f99a=a6_0xbb5ae3;if(timeout!==null)clearTimeout(timeout);if(_0x412930){const _0x4cb463=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5e78b4);if(_0x4cb463)typeof _0x58de47===_0xc7f99a(0x16f)&&_0x58de47();}else timeout=setTimeout(()=>{const _0x2c0f67=_0xc7f99a;typeof _0x58de47===_0x2c0f67(0x16f)&&_0x58de47();},_0x5e78b4);}function urlEncode(_0x21cebe={}){const _0x26f91a=a6_0xbb5ae3,_0x59fc07=[];for(const _0x25cd97 in _0x21cebe){const _0x49fef7=_0x21cebe[_0x25cd97];if(!_0x49fef7)continue;isArray(_0x49fef7)?_0x49fef7[_0x26f91a(0x18b)](_0x4aaf64=>{_0x59fc07['push'](_0x25cd97+'='+_0x4aaf64);}):_0x59fc07['push'](_0x25cd97+'='+_0x49fef7);}return _0x59fc07[_0x26f91a(0x166)]('&');}function dateFormat(_0x2733c5,_0x2d5dd5){const _0x3055a7=a6_0xbb5ae3,_0x1108c3=new Date(_0x2d5dd5),_0x1ecc4c={'Y+':_0x1108c3[_0x3055a7(0x13b)]()['toString'](),'m+':(_0x1108c3[_0x3055a7(0x136)]()+0x1)[_0x3055a7(0x152)](),'d+':_0x1108c3[_0x3055a7(0x170)]()[_0x3055a7(0x152)](),'H+':_0x1108c3[_0x3055a7(0x149)]()[_0x3055a7(0x152)](),'M+':_0x1108c3[_0x3055a7(0x15f)]()[_0x3055a7(0x152)](),'S+':_0x1108c3[_0x3055a7(0x17a)]()[_0x3055a7(0x152)]()};let _0x32bf8e;for(let _0x443a01 in _0x1ecc4c){_0x32bf8e=new RegExp('('+_0x443a01+')')[_0x3055a7(0x187)](_0x2733c5);_0x32bf8e&&(_0x2733c5=_0x2733c5[_0x3055a7(0x186)](_0x32bf8e[0x1],_0x32bf8e[0x1]['length']==0x1?_0x1ecc4c[_0x443a01]:_0x1ecc4c[_0x443a01][_0x3055a7(0x12f)](_0x32bf8e[0x1]['length'],'0')));;};return _0x2733c5;}function formatDate(_0x42295c,_0x57223e='YYYY-MM-DD',_0x456523={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x19411f=a6_0xbb5ae3,_0x3ec125=new Date(_0x42295c),_0x1dcd86=_0x3ec125[_0x19411f(0x13b)](),_0x38fa70=_0x3ec125[_0x19411f(0x136)]()+0x1,_0x25d960=_0x3ec125['getDate'](),_0x4edbe7=_0x38fa70<0xa?'0'+_0x38fa70:_0x38fa70,_0x3efe31=_0x25d960<0xa?'0'+_0x25d960:_0x25d960;let _0x3a8d02=_0x57223e[_0x19411f(0x186)]('YYYY',_0x1dcd86)[_0x19411f(0x186)]('MM',_0x4edbe7)[_0x19411f(0x186)]('DD',_0x3efe31);return _0x3a8d02=_0x3a8d02[_0x19411f(0x186)](/-MM/g,_0x456523[_0x19411f(0x167)])['replace'](/-DD/g,_0x456523[_0x19411f(0x183)])['replace'](_0x19411f(0x18a)+_0x456523['yearTitle'],'')[_0x19411f(0x186)]('MM'+_0x456523[_0x19411f(0x167)],'')[_0x19411f(0x186)]('DD'+_0x456523['dayTitle'],''),_0x3a8d02;}function compareDates(_0x10003a,_0x5f7c9b){const _0x493b21=a6_0xbb5ae3;_0x10003a=new Date(_0x10003a);!_0x5f7c9b?_0x5f7c9b=new Date():_0x5f7c9b=new Date(_0x5f7c9b);_0x10003a['setHours'](0x0,0x0,0x0,0x0),_0x5f7c9b['setHours'](0x0,0x0,0x0,0x0);var _0x4d7891=_0x10003a[_0x493b21(0x153)](),_0x8b190=_0x5f7c9b[_0x493b21(0x153)]();if(_0x4d7891<_0x8b190)return-0x1;else return _0x4d7891>_0x8b190?0x1:0x0;}function getDaysBetween(_0x19c73c,_0x49834c){const _0x332096=a6_0xbb5ae3,_0x4a64f0=new Date(_0x19c73c),_0x4adb43=new Date(_0x49834c),_0x33a9cc=Math[_0x332096(0x14a)](_0x4a64f0['getTime']()-_0x4adb43[_0x332096(0x153)]()),_0x4560a7=Math['floor'](_0x33a9cc/(0x3e8*0x3c*0x3c*0x18));return _0x4560a7+0x1;}function chineseNumeral(_0x1f9231){const _0x30775d=a6_0xbb5ae3,_0x5c5b55=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1912bf=['','拾','佰','仟'],_0x1907de=['','万','亿','兆'];let _0x317608=Math[_0x30775d(0x16c)](_0x1f9231),_0x1b15fd=Math[_0x30775d(0x141)]((_0x1f9231-_0x317608)*0x64),_0x221c1f='';for(let _0x42ecf8=0x0;_0x317608>0x0;_0x42ecf8++){let _0x30f0a1='',_0x3891cd=_0x317608%0x2710;_0x317608=Math[_0x30775d(0x16c)](_0x317608/0x2710);for(let _0x2356fd=0x0;_0x3891cd>0x0;_0x2356fd++){let _0x5a608b=_0x3891cd%0xa;_0x30f0a1=(_0x5a608b?_0x5c5b55[_0x5a608b]+_0x1912bf[_0x2356fd]:'')+_0x30f0a1,_0x3891cd=Math[_0x30775d(0x16c)](_0x3891cd/0xa);}_0x221c1f=_0x30f0a1+(_0x30f0a1?_0x1907de[_0x42ecf8]:_0x1907de[_0x42ecf8]&&!_0x221c1f[_0x30775d(0x138)]('零')?'零':'')+_0x221c1f;}_0x221c1f+=_0x221c1f?'元':'零元';if(_0x1b15fd>0x0){let _0x7e1c47=Math['floor'](_0x1b15fd/0xa),_0x23268e=_0x1b15fd%0xa;_0x221c1f+=(_0x7e1c47?_0x5c5b55[_0x7e1c47]+'角':'')+(_0x23268e?_0x5c5b55[_0x23268e]+'分':'');}else _0x221c1f+='整';return _0x221c1f['replace'](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x26fa4f){const _0x320634=a6_0xbb5ae3;(!_0x26fa4f||_0x26fa4f[_0x320634(0x180)]()==='')&&(_0x26fa4f=new Date()['getFullYear']()+'-'+(new Date()[_0x320634(0x136)]()+0x1));let _0x3fc3f2=[],[_0xd755ca,_0x31c809]=_0x26fa4f[_0x320634(0x16d)]('-')[_0x320634(0x162)](Number),_0x47526b=new Date(_0xd755ca,_0x31c809,0x0),_0x99d3ca=_0x47526b[_0x320634(0x170)]();for(let _0x507d41=0x1;_0x507d41<=_0x99d3ca;_0x507d41++){let _0x5c481c=_0x507d41<0xa?'0'+_0x507d41:''+_0x507d41,_0x5cdcb5=_0x31c809<0xa?'0'+_0x31c809:''+_0x31c809;_0x3fc3f2[_0x320634(0x15e)]({'date':_0xd755ca+'-'+_0x5cdcb5+'-'+_0x5c481c,'disable':!![]});}return _0x3fc3f2;}function getToday(_0x5edc7f){const _0x15a410=a6_0xbb5ae3;var _0x50fbc0=new Date(),_0x22d6c8=String(_0x50fbc0[_0x15a410(0x170)]())[_0x15a410(0x12f)](0x2,'0'),_0x4802d3=String(_0x50fbc0[_0x15a410(0x136)]()+0x1)[_0x15a410(0x12f)](0x2,'0'),_0x3ab582=_0x50fbc0[_0x15a410(0x13b)]();return _0x50fbc0=_0x3ab582+'-'+_0x4802d3+'-'+_0x22d6c8,_0x50fbc0;}function resetObject(_0x17ab0c){const _0x34bf31=a6_0xbb5ae3;let _0x7bd48b=JSON[_0x34bf31(0x12e)](JSON[_0x34bf31(0x12c)](_0x17ab0c));for(const _0x59fd75 in _0x7bd48b){if(typeof _0x7bd48b[_0x59fd75]===_0x34bf31(0x13c))_0x7bd48b[_0x59fd75]=0x0;else{if(typeof _0x7bd48b[_0x59fd75]===_0x34bf31(0x181))_0x7bd48b[_0x59fd75]=![];else{if(Array[_0x34bf31(0x164)](_0x7bd48b[_0x59fd75]))_0x7bd48b[_0x59fd75]=[];else typeof _0x7bd48b[_0x59fd75]==='object'&&_0x7bd48b[_0x59fd75]!==null?resetObject(_0x7bd48b[_0x59fd75]):_0x7bd48b[_0x59fd75]='';}}}return _0x7bd48b;}function preciseOperation(_0x5ccd14,_0x5a09fd,_0x3f6348,_0x58b1d8=0xf4240){const _0x54d8f8=a6_0xbb5ae3;if(isNaN(_0x5ccd14)||isNaN(_0x5a09fd))return NaN;if(!isFinite(_0x5ccd14)||!isFinite(_0x5a09fd))return NaN;let _0x114fee=BigInt(Math[_0x54d8f8(0x141)](_0x5ccd14*_0x58b1d8)),_0x3c6293=BigInt(Math[_0x54d8f8(0x141)](_0x5a09fd*_0x58b1d8)),_0x31c0dd;switch(_0x3f6348){case 0x1:_0x31c0dd=_0x114fee+_0x3c6293;break;case 0x2:_0x31c0dd=_0x114fee-_0x3c6293;break;case 0x3:_0x31c0dd=_0x114fee*_0x3c6293;break;case 0x4:if(_0x3c6293===0x0n)throw new Error(_0x54d8f8(0x151));_0x31c0dd=_0x114fee/_0x3c6293;break;default:throw new Error(_0x54d8f8(0x184));}return Number(_0x31c0dd)/_0x58b1d8;}function a6_0x3a95(_0x477506,_0x2bacd0){const _0x54e546=a6_0x54e5();return a6_0x3a95=function(_0x3a95d6,_0x491841){_0x3a95d6=_0x3a95d6-0x12c;let _0x2c6bca=_0x54e546[_0x3a95d6];return _0x2c6bca;},a6_0x3a95(_0x477506,_0x2bacd0);}function preciseSum(_0x12830c){const _0x491b4c=a6_0xbb5ae3;let _0x247011=0x0;for(const _0x3a93b9 of _0x12830c){let _0x1ae7c0=0x0;if(typeof _0x3a93b9===_0x491b4c(0x131)){const _0x24c6b6=parseFloat(_0x3a93b9);!isNaN(_0x24c6b6)&&(_0x1ae7c0=_0x24c6b6);}else typeof _0x3a93b9==='number'&&(_0x1ae7c0=_0x3a93b9);_0x247011=preciseOperation(_0x247011,_0x1ae7c0,0x1);}return _0x247011;}function getRelativeDate(_0x49664f,_0x681fb1=0x0){const _0x8f14c6=a6_0xbb5ae3,_0x5de71f=new Date(_0x49664f);_0x5de71f[_0x8f14c6(0x135)](_0x5de71f[_0x8f14c6(0x170)]()+_0x681fb1);const _0x330404=_0x5de71f[_0x8f14c6(0x13b)](),_0x529e3d=(_0x5de71f['getMonth']()+0x1)[_0x8f14c6(0x152)]()[_0x8f14c6(0x12f)](0x2,'0'),_0x274f86=_0x5de71f[_0x8f14c6(0x170)]()[_0x8f14c6(0x152)]()[_0x8f14c6(0x12f)](0x2,'0');return _0x330404+'-'+_0x529e3d+'-'+_0x274f86;}function validateFields(_0x3791a1,_0x5ba409,_0xdfede0=''){for(let _0x3157a7 of _0x5ba409){if(_0x3791a1[_0x3157a7]===_0xdfede0)return!![];}return![];}function mergeObjects(_0xb643d7,_0x33e495){const _0x6b1c96=a6_0xbb5ae3;for(const _0x2396ed in _0xb643d7){_0x33e495[_0x6b1c96(0x137)](_0x2396ed)&&(_0xb643d7[_0x2396ed]=_0x33e495[_0x2396ed]);}return _0xb643d7;}const formatToDecimal=(_0x26db1f,_0xabcda3=0x2)=>{const _0x1e5b28=a6_0xbb5ae3;if(isNaN(_0xabcda3)||_0xabcda3<0x0)return _0x26db1f;let _0x494195=Number(_0x26db1f);if(!isFinite(_0x494195))return _0x26db1f;return _0xabcda3=Math[_0x1e5b28(0x14d)](0x0,Math['floor'](_0xabcda3)),_0x494195[_0x1e5b28(0x159)](_0xabcda3);};function findKeysEndingWith(_0x5ed84d,_0x3b68b2=a6_0xbb5ae3(0x16e)){const _0x42dd0a=a6_0xbb5ae3;let _0x3bd04c=[];for(var _0x2d978c in _0x5ed84d){if(_0x5ed84d['hasOwnProperty'](_0x2d978c)){if(_0x2d978c[_0x42dd0a(0x15a)](_0x3b68b2))_0x3bd04c[_0x42dd0a(0x15e)](_0x2d978c);}}return _0x3bd04c;}function guid(_0x3b4313=0x20,_0x32569c=!![],_0x109767=null){const _0x406e9c=a6_0xbb5ae3,_0x395b5d=_0x406e9c(0x133)[_0x406e9c(0x16d)](''),_0x4a4dde=[];_0x109767=_0x109767||_0x395b5d[_0x406e9c(0x157)];if(_0x3b4313){for(let _0x4e59ef=0x0;_0x4e59ef<_0x3b4313;_0x4e59ef++)_0x4a4dde[_0x4e59ef]=_0x395b5d[0x0|Math[_0x406e9c(0x188)]()*_0x109767];}else{let _0x30f3f7;_0x4a4dde[0x8]=_0x4a4dde[0xd]=_0x4a4dde[0x12]=_0x4a4dde[0x17]='-',_0x4a4dde[0xe]='4';for(let _0x5209e8=0x0;_0x5209e8<0x24;_0x5209e8++){!_0x4a4dde[_0x5209e8]&&(_0x30f3f7=0x0|Math[_0x406e9c(0x188)]()*0x10,_0x4a4dde[_0x5209e8]=_0x395b5d[_0x5209e8==0x13?_0x30f3f7&0x3|0x8:_0x30f3f7]);}}if(_0x32569c)return _0x4a4dde['shift'](),'u'+_0x4a4dde[_0x406e9c(0x166)]('');return _0x4a4dde[_0x406e9c(0x166)]('');}function trim(_0x12c5a3,_0x41f5e3='both'){const _0x367e38=a6_0xbb5ae3;_0x12c5a3=String(_0x12c5a3);if(_0x41f5e3==_0x367e38(0x17c))return _0x12c5a3[_0x367e38(0x186)](/^\s+|\s+$/g,'');if(_0x41f5e3=='left')return _0x12c5a3[_0x367e38(0x186)](/^\s*/,'');if(_0x41f5e3==_0x367e38(0x17f))return _0x12c5a3[_0x367e38(0x186)](/(\s*$)/g,'');if(_0x41f5e3==_0x367e38(0x17d))return _0x12c5a3['replace'](/\s+/g,'');return _0x12c5a3;}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_0x299d0b=a6_0x42e7;(function(_0x1e6553,_0x315a84){const _0x8c407d=a6_0x42e7,_0x1a6203=_0x1e6553();while(!![]){try{const _0xb1c7d0=parseInt(_0x8c407d(0x228))/0x1+-parseInt(_0x8c407d(0x1fb))/0x2+-parseInt(_0x8c407d(0x205))/0x3*(-parseInt(_0x8c407d(0x20f))/0x4)+-parseInt(_0x8c407d(0x246))/0x5*(parseInt(_0x8c407d(0x1ed))/0x6)+-parseInt(_0x8c407d(0x204))/0x7+parseInt(_0x8c407d(0x203))/0x8+parseInt(_0x8c407d(0x236))/0x9*(parseInt(_0x8c407d(0x1f8))/0xa);if(_0xb1c7d0===_0x315a84)break;else _0x1a6203['push'](_0x1a6203['shift']());}catch(_0x30d7e7){_0x1a6203['push'](_0x1a6203['shift']());}}}(a6_0x38fb,0xbc0f9));function fmtNum(_0x55bdeb,_0x57598e=!![]){const _0x33d8b3=a6_0x42e7;if(_0x55bdeb==0x0)return _0x57598e?_0x33d8b3(0x227):'0';if(!_0x55bdeb)return'';let _0x4392d5=typeof _0x55bdeb==='string'?parseFloat(_0x55bdeb):_0x55bdeb;if(isNaN(_0x4392d5))return'';return _0x4392d5[_0x33d8b3(0x247)](_0x33d8b3(0x209),{'minimumFractionDigits':_0x57598e?0x2:0x0,'maximumFractionDigits':_0x57598e?0x2:0x0});}function splitName(_0x5d9244,_0x2f3132=![]){const _0x465afe=a6_0x42e7;let _0x2dc493={'surname':'','givenName':''};if(_0x2f3132){const _0x4795f3=_0x5d9244[_0x465afe(0x211)](',')?_0x5d9244[_0x465afe(0x225)](','):_0x5d9244[_0x465afe(0x225)](/\s+/);_0x4795f3[_0x465afe(0x231)]>=0x2&&(_0x2dc493[_0x465afe(0x1fe)]=_0x4795f3[0x0][_0x465afe(0x20b)](),_0x2dc493['givenName']=_0x4795f3[0x1][_0x465afe(0x20b)]());}else{const _0x567b96=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x56a2d3=0x0;_0x56a2d3<_0x567b96[_0x465afe(0x231)];_0x56a2d3++){const _0xce43d7=_0x567b96[_0x56a2d3];if(_0x5d9244[_0x465afe(0x207)](_0xce43d7))return _0x2dc493[_0x465afe(0x1fe)]=_0xce43d7,_0x2dc493[_0x465afe(0x224)]=_0x5d9244['substring'](_0xce43d7['length'])[_0x465afe(0x20b)](),_0x2dc493;}const _0x689c29=_0x5d9244[_0x465afe(0x225)]('\x20');if(_0x689c29[_0x465afe(0x231)]===0x1){const _0x38822e=_0x5d9244[_0x465afe(0x1fa)](/[\u4e00-\u9fa5]/);_0x2dc493['surname']=_0x38822e?_0x38822e[0x0]:'',_0x2dc493[_0x465afe(0x224)]=_0x5d9244['replace'](_0x2dc493['surname'],'')[_0x465afe(0x20b)]();}else _0x2dc493[_0x465afe(0x1fe)]=_0x689c29[0x0],_0x2dc493[_0x465afe(0x224)]=_0x689c29[_0x465afe(0x216)](0x1)['join']('\x20');}return _0x2dc493;}function timeFormat(_0x3fa7ef=null,_0x25e704=a6_0x299d0b(0x223)){const _0x3c9cd0=a6_0x299d0b;let _0x4dcea4;if(!_0x3fa7ef)_0x4dcea4=new Date();else{if(/^\d{10}$/[_0x3c9cd0(0x214)](_0x3fa7ef?.[_0x3c9cd0(0x1ef)]()[_0x3c9cd0(0x20b)]()))_0x4dcea4=new Date(_0x3fa7ef*0x3e8);else{if(typeof _0x3fa7ef===_0x3c9cd0(0x1fd)&&/^\d+$/['test'](_0x3fa7ef[_0x3c9cd0(0x20b)]()))_0x4dcea4=new Date(Number(_0x3fa7ef));else typeof _0x3fa7ef===_0x3c9cd0(0x1fd)&&_0x3fa7ef[_0x3c9cd0(0x211)]('-')&&!_0x3fa7ef[_0x3c9cd0(0x211)]('T')?_0x4dcea4=new Date(_0x3fa7ef['replace'](/-/g,'/')):_0x4dcea4=new Date(_0x3fa7ef);}}const _0x3c745e={'y':_0x4dcea4[_0x3c9cd0(0x230)]()[_0x3c9cd0(0x1ef)](),'m':(_0x4dcea4[_0x3c9cd0(0x217)]()+0x1)[_0x3c9cd0(0x1ef)]()[_0x3c9cd0(0x243)](0x2,'0'),'d':_0x4dcea4[_0x3c9cd0(0x1ec)]()[_0x3c9cd0(0x1ef)]()[_0x3c9cd0(0x243)](0x2,'0'),'h':_0x4dcea4[_0x3c9cd0(0x22f)]()[_0x3c9cd0(0x1ef)]()[_0x3c9cd0(0x243)](0x2,'0'),'M':_0x4dcea4[_0x3c9cd0(0x1ee)]()['toString']()[_0x3c9cd0(0x243)](0x2,'0'),'s':_0x4dcea4['getSeconds']()[_0x3c9cd0(0x1ef)]()[_0x3c9cd0(0x243)](0x2,'0')};for(const _0x420a6a in _0x3c745e){const [_0x4aebdc]=new RegExp(_0x420a6a+'+')[_0x3c9cd0(0x202)](_0x25e704)||[];if(_0x4aebdc){const _0x3e5698=_0x420a6a==='y'&&_0x4aebdc[_0x3c9cd0(0x231)]===0x2?0x2:0x0;_0x25e704=_0x25e704[_0x3c9cd0(0x21c)](_0x4aebdc,_0x3c745e[_0x420a6a][_0x3c9cd0(0x216)](_0x3e5698));}}return _0x25e704;}function handleOCRData(_0x1d1b0c,_0x4bdc42){const _0x3ddb6f=a6_0x299d0b,_0x42f2d3=_0x5a6251=>{const _0x110d9b=a6_0x42e7,_0x1d365f=_0x5a6251[_0x110d9b(0x21b)](0x0,0x4),_0x723c58=_0x5a6251[_0x110d9b(0x21b)](0x4,0x6),_0x256854=_0x5a6251[_0x110d9b(0x21b)](0x6,0x8);return _0x1d365f+'-'+_0x723c58+'-'+_0x256854;};let _0xee091f={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x1d1b0c===0x0||_0x1d1b0c===0x1||_0x1d1b0c===0x2){if(_0x4bdc42[_0x3ddb6f(0x240)]==='M')_0xee091f[_0x3ddb6f(0x23c)]='男';else _0xee091f[_0x3ddb6f(0x23c)]='女';}debugger;_0x1d1b0c===0x0&&(_0xee091f['name']=_0x4bdc42['Name'],_0xee091f[_0x3ddb6f(0x1fe)]=_0x4bdc42[_0x3ddb6f(0x234)],_0xee091f[_0x3ddb6f(0x224)]=_0x4bdc42[_0x3ddb6f(0x201)],_0xee091f['expDate']=_0x4bdc42[_0x3ddb6f(0x20d)],_0xee091f[_0x3ddb6f(0x237)]=_0x4bdc42[_0x3ddb6f(0x1f3)],_0xee091f[_0x3ddb6f(0x238)]=_0x4bdc42[_0x3ddb6f(0x23a)],_0xee091f[_0x3ddb6f(0x208)]=_0x4bdc42[_0x3ddb6f(0x20c)]);if(_0x1d1b0c===0x1){_0xee091f[_0x3ddb6f(0x219)]=_0x4bdc42[_0x3ddb6f(0x215)],_0xee091f[_0x3ddb6f(0x1fe)]=_0x4bdc42['Surname'],_0xee091f['givenName']=_0x4bdc42[_0x3ddb6f(0x239)],_0xee091f[_0x3ddb6f(0x244)]=_0x4bdc42[_0x3ddb6f(0x1f5)],_0xee091f[_0x3ddb6f(0x237)]=_0x4bdc42['DateOfBirth'],_0xee091f['nationality']=_0x4bdc42[_0x3ddb6f(0x23a)],_0xee091f[_0x3ddb6f(0x208)]=_0x4bdc42['ID'];if(!_0x4bdc42[_0x3ddb6f(0x233)]&&!_0x4bdc42[_0x3ddb6f(0x239)]){const _0x503883=splitName(_0x4bdc42[_0x3ddb6f(0x215)]);_0xee091f[_0x3ddb6f(0x1fe)]=_0x503883['surname'],_0xee091f[_0x3ddb6f(0x224)]=_0x503883['givenName'];}if(!_0x4bdc42['EnglishName'])_0xee091f[_0x3ddb6f(0x22c)]=_0x4bdc42['Name'];}_0x1d1b0c===0x2&&(_0xee091f[_0x3ddb6f(0x219)]=_0x4bdc42['CnName'],_0xee091f['englishName']=_0x4bdc42[_0x3ddb6f(0x21d)],_0xee091f[_0x3ddb6f(0x237)]=_0x4bdc42['Birthday'],_0xee091f[_0x3ddb6f(0x208)]=_0x4bdc42[_0x3ddb6f(0x222)]);_0x1d1b0c===0x3&&(_0xee091f[_0x3ddb6f(0x219)]=_0x4bdc42[_0x3ddb6f(0x215)],_0xee091f[_0x3ddb6f(0x23c)]=_0x4bdc42['Sex'],_0xee091f[_0x3ddb6f(0x244)]=_0x4bdc42[_0x3ddb6f(0x245)],_0xee091f[_0x3ddb6f(0x237)]=_0x4bdc42[_0x3ddb6f(0x232)],_0xee091f[_0x3ddb6f(0x208)]=_0x4bdc42[_0x3ddb6f(0x222)]);_0x1d1b0c===0x4&&(_0xee091f['name']=_0x4bdc42[_0x3ddb6f(0x215)],_0xee091f[_0x3ddb6f(0x22c)]=_0x4bdc42['EnglishName'],_0xee091f[_0x3ddb6f(0x23c)]=_0x4bdc42[_0x3ddb6f(0x240)],_0xee091f[_0x3ddb6f(0x244)]=_0x4bdc42[_0x3ddb6f(0x245)],_0xee091f[_0x3ddb6f(0x237)]=_0x4bdc42[_0x3ddb6f(0x213)],_0xee091f['number']=_0x4bdc42[_0x3ddb6f(0x1eb)]);_0x1d1b0c===0x5&&(_0xee091f[_0x3ddb6f(0x219)]=_0x4bdc42['Name'],_0xee091f[_0x3ddb6f(0x22c)]=_0x4bdc42[_0x3ddb6f(0x212)],_0xee091f[_0x3ddb6f(0x23c)]=_0x4bdc42[_0x3ddb6f(0x240)],_0xee091f['expDate']=_0x4bdc42[_0x3ddb6f(0x245)],_0xee091f[_0x3ddb6f(0x237)]=_0x4bdc42[_0x3ddb6f(0x213)],_0xee091f[_0x3ddb6f(0x208)]=_0x4bdc42[_0x3ddb6f(0x1eb)]);if(_0x1d1b0c===0x2||_0x1d1b0c===0x3||_0x1d1b0c===0x4||_0x1d1b0c===0x5){const _0x2c38c1=splitName(_0xee091f['name']);_0xee091f[_0x3ddb6f(0x1fe)]=_0x2c38c1['surname'],_0xee091f[_0x3ddb6f(0x224)]=_0x2c38c1[_0x3ddb6f(0x224)];}if(_0x1d1b0c===0x2||_0x1d1b0c===0x4||_0x1d1b0c===0x5){const _0x18eef9=splitName(_0xee091f['englishName'],!![]);_0xee091f['surnameEn']=_0x18eef9[_0x3ddb6f(0x1fe)],_0xee091f['givenNameEn']=_0x18eef9[_0x3ddb6f(0x224)];}if(_0x1d1b0c===0x0||_0x1d1b0c===0x1){if(_0xee091f[_0x3ddb6f(0x237)]!=='')_0xee091f[_0x3ddb6f(0x237)]=_0x42f2d3(_0xee091f[_0x3ddb6f(0x237)]);if(_0xee091f[_0x3ddb6f(0x244)]!=='')_0xee091f[_0x3ddb6f(0x244)]=_0x42f2d3(_0xee091f[_0x3ddb6f(0x244)]);}if(_0x1d1b0c===0x2||_0x1d1b0c===0x3){if(_0xee091f[_0x3ddb6f(0x237)]!=='')_0xee091f[_0x3ddb6f(0x237)]=timeFormat(_0xee091f[_0x3ddb6f(0x237)]);if(_0xee091f[_0x3ddb6f(0x244)]!=='')_0xee091f['expDate']=timeFormat(_0xee091f[_0x3ddb6f(0x244)]);}if(_0x1d1b0c===0x4||_0x1d1b0c===0x5){if(_0xee091f[_0x3ddb6f(0x237)]!=='')_0xee091f[_0x3ddb6f(0x237)]=timeFormat(_0xee091f['birthDate']);if(_0xee091f['expDate']!==''){let _0x112259=_0xee091f[_0x3ddb6f(0x244)][_0x3ddb6f(0x225)]('-');_0xee091f[_0x3ddb6f(0x244)]=timeFormat(_0x112259[0x1]);}}return{'type':_0x1d1b0c,'data':_0xee091f};}function modifyKeys(_0x3aeb1c,_0x413130={'strCode':a6_0x299d0b(0x235),'strFjbh':a6_0x299d0b(0x22d),'strGuid':'value','strValue':a6_0x299d0b(0x22e)}){if(!_0x3aeb1c['length']||_0x3aeb1c===null)return[];const _0x42251f=_0x3aeb1c['map'](_0x3e9cdf=>{const _0x2a6449=a6_0x42e7,_0x3817b2={};for(const _0x405661 in _0x3e9cdf){_0x413130[_0x2a6449(0x21e)](_0x405661)?_0x3817b2[_0x413130[_0x405661]]=_0x3e9cdf[_0x405661]:_0x3817b2[_0x405661]=_0x3e9cdf[_0x405661];}return _0x3817b2;});return _0x42251f;}function sliceArray(_0x35a17f,_0x5f18e8,_0x566f70){const _0x46b419=a6_0x299d0b;if(_0x5f18e8<=0x0)return console[_0x46b419(0x242)](_0x46b419(0x248)),[];return _0x566f70?_0x35a17f[_0x46b419(0x216)](0x0,_0x5f18e8):_0x35a17f[_0x46b419(0x216)](-_0x5f18e8);}function findDataByData(_0x3173dc,_0x234c17,_0x14da13){const _0x390836=a6_0x299d0b,_0x721dea=_0x3173dc[_0x390836(0x206)](_0x3bb040=>_0x3bb040[_0x14da13]===_0x234c17);return _0x721dea||null;}function splitArray(_0x217fd6,_0x2fd6f9){const _0x18a99a=a6_0x299d0b,_0x1bb58d=[];for(let _0x3a1014=0x0;_0x3a1014<_0x217fd6[_0x18a99a(0x231)];_0x3a1014+=_0x2fd6f9){_0x1bb58d['push'](_0x217fd6['slice'](_0x3a1014,_0x3a1014+_0x2fd6f9));}return _0x1bb58d;}function getProxyType(_0x44e4d6){const _0x5857d6=a6_0x299d0b;return Object[_0x5857d6(0x23e)][_0x5857d6(0x1ef)][_0x5857d6(0x21f)](_0x44e4d6)['slice'](0x8,-0x1);}let timeout=null;function a6_0x38fb(){const _0x524bd5=['toString','all','push','forEach','BirthDate','object','DateOfExpiration','max','getTime','10asOEbd','YYYY','match','2563712ERcZlp','abs','string','surname','random','right','FirstName','exec','996360sxHjbd','3277680sSCLno','982164SdfabX','find','startsWith','number','en-US','parse','trim','PassportNo','ExpiryDate','map','4IKCBgy','left','includes','EnglishName','Birthday','test','Name','slice','getMonth','dayTitle','name','endsWith','substring','replace','EnName','hasOwnProperty','call','function','shift','IdNum','yyyy-mm-dd','givenName','split','both','0.00','1268909QaQODN','除数不能为0','isArray','floor','englishName','fjbh','label','getHours','getFullYear','length','Birth','Surname','FamilyName','code','17266104Dakcpu','birthDate','nationality','GivenName','Nationality','round','sex','setHours','prototype','join','Sex','getSeconds','error','padStart','expDate','ValidDate','25hAEMlX','toLocaleString','Quantity\x20should\x20be\x20greater\x20than\x200.','setDate','monthTitle','Number','getDate','1342686mYBWAR','getMinutes'];a6_0x38fb=function(){return _0x524bd5;};return a6_0x38fb();}function debounce(_0xd4e2f4,_0x2e433f=0x1f4,_0x45f1db=![]){const _0x1f1843=a6_0x299d0b;if(timeout!==null)clearTimeout(timeout);if(_0x45f1db){const _0x389b5a=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x2e433f);if(_0x389b5a)typeof _0xd4e2f4===_0x1f1843(0x220)&&_0xd4e2f4();}else timeout=setTimeout(()=>{const _0x843a87=_0x1f1843;typeof _0xd4e2f4===_0x843a87(0x220)&&_0xd4e2f4();},_0x2e433f);}function urlEncode(_0x49f894={}){const _0xf11f52=a6_0x299d0b,_0x48a4b2=[];for(const _0x44893e in _0x49f894){const _0x32d0e3=_0x49f894[_0x44893e];if(!_0x32d0e3)continue;isArray(_0x32d0e3)?_0x32d0e3[_0xf11f52(0x1f2)](_0x878321=>{_0x48a4b2['push'](_0x44893e+'='+_0x878321);}):_0x48a4b2['push'](_0x44893e+'='+_0x32d0e3);}return _0x48a4b2[_0xf11f52(0x23f)]('&');}function dateFormat(_0x2ef216,_0xe4c77f){const _0xd16d8=a6_0x299d0b,_0x532171=new Date(_0xe4c77f),_0x1d7aa6={'Y+':_0x532171[_0xd16d8(0x230)]()[_0xd16d8(0x1ef)](),'m+':(_0x532171[_0xd16d8(0x217)]()+0x1)[_0xd16d8(0x1ef)](),'d+':_0x532171['getDate']()[_0xd16d8(0x1ef)](),'H+':_0x532171[_0xd16d8(0x22f)]()['toString'](),'M+':_0x532171[_0xd16d8(0x1ee)]()[_0xd16d8(0x1ef)](),'S+':_0x532171[_0xd16d8(0x241)]()[_0xd16d8(0x1ef)]()};let _0x590353;for(let _0x288ad8 in _0x1d7aa6){_0x590353=new RegExp('('+_0x288ad8+')')['exec'](_0x2ef216);_0x590353&&(_0x2ef216=_0x2ef216[_0xd16d8(0x21c)](_0x590353[0x1],_0x590353[0x1][_0xd16d8(0x231)]==0x1?_0x1d7aa6[_0x288ad8]:_0x1d7aa6[_0x288ad8][_0xd16d8(0x243)](_0x590353[0x1][_0xd16d8(0x231)],'0')));;};return _0x2ef216;}function formatDate(_0x4ba7fd,_0x14a53b='YYYY-MM-DD',_0x330bd1={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x3e3180=a6_0x299d0b,_0x40bec8=new Date(_0x4ba7fd),_0x5af0f0=_0x40bec8['getFullYear'](),_0xd726a6=_0x40bec8[_0x3e3180(0x217)]()+0x1,_0xbb5115=_0x40bec8[_0x3e3180(0x1ec)](),_0x4df421=_0xd726a6<0xa?'0'+_0xd726a6:_0xd726a6,_0x3d66c7=_0xbb5115<0xa?'0'+_0xbb5115:_0xbb5115;let _0x115e39=_0x14a53b[_0x3e3180(0x21c)](_0x3e3180(0x1f9),_0x5af0f0)[_0x3e3180(0x21c)]('MM',_0x4df421)[_0x3e3180(0x21c)]('DD',_0x3d66c7);return _0x115e39=_0x115e39[_0x3e3180(0x21c)](/-MM/g,_0x330bd1[_0x3e3180(0x1ea)])['replace'](/-DD/g,_0x330bd1[_0x3e3180(0x218)])[_0x3e3180(0x21c)](_0x3e3180(0x1f9)+_0x330bd1['yearTitle'],'')[_0x3e3180(0x21c)]('MM'+_0x330bd1[_0x3e3180(0x1ea)],'')['replace']('DD'+_0x330bd1[_0x3e3180(0x218)],''),_0x115e39;}function compareDates(_0x2703f3,_0x50c6e6){const _0x2379ff=a6_0x299d0b;_0x2703f3=new Date(_0x2703f3);!_0x50c6e6?_0x50c6e6=new Date():_0x50c6e6=new Date(_0x50c6e6);_0x2703f3[_0x2379ff(0x23d)](0x0,0x0,0x0,0x0),_0x50c6e6[_0x2379ff(0x23d)](0x0,0x0,0x0,0x0);var _0x1d5fa1=_0x2703f3[_0x2379ff(0x1f7)](),_0x1b465d=_0x50c6e6[_0x2379ff(0x1f7)]();if(_0x1d5fa1<_0x1b465d)return-0x1;else return _0x1d5fa1>_0x1b465d?0x1:0x0;}function getDaysBetween(_0x149937,_0x1e9261){const _0x465423=a6_0x299d0b,_0x529241=new Date(_0x149937),_0x502418=new Date(_0x1e9261),_0x1c3a8b=Math[_0x465423(0x1fc)](_0x529241[_0x465423(0x1f7)]()-_0x502418[_0x465423(0x1f7)]()),_0x1eb52a=Math['floor'](_0x1c3a8b/(0x3e8*0x3c*0x3c*0x18));return _0x1eb52a+0x1;}function chineseNumeral(_0x59647b){const _0x204903=a6_0x299d0b,_0x10d1af=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x44087e=['','拾','佰','仟'],_0x574b9b=['','万','亿','兆'];let _0x3013a6=Math[_0x204903(0x22b)](_0x59647b),_0x290cf9=Math[_0x204903(0x23b)]((_0x59647b-_0x3013a6)*0x64),_0x56340f='';for(let _0x2b2f20=0x0;_0x3013a6>0x0;_0x2b2f20++){let _0x128754='',_0x1836e1=_0x3013a6%0x2710;_0x3013a6=Math[_0x204903(0x22b)](_0x3013a6/0x2710);for(let _0x5a6165=0x0;_0x1836e1>0x0;_0x5a6165++){let _0x51a2c3=_0x1836e1%0xa;_0x128754=(_0x51a2c3?_0x10d1af[_0x51a2c3]+_0x44087e[_0x5a6165]:'')+_0x128754,_0x1836e1=Math['floor'](_0x1836e1/0xa);}_0x56340f=_0x128754+(_0x128754?_0x574b9b[_0x2b2f20]:_0x574b9b[_0x2b2f20]&&!_0x56340f[_0x204903(0x211)]('零')?'零':'')+_0x56340f;}_0x56340f+=_0x56340f?'元':'零元';if(_0x290cf9>0x0){let _0x2c081a=Math['floor'](_0x290cf9/0xa),_0x44875e=_0x290cf9%0xa;_0x56340f+=(_0x2c081a?_0x10d1af[_0x2c081a]+'角':'')+(_0x44875e?_0x10d1af[_0x44875e]+'分':'');}else _0x56340f+='整';return _0x56340f[_0x204903(0x21c)](/零{2,}/g,'零')[_0x204903(0x21c)](/零元/,'元');}function getMonthDate(_0x24de41){const _0x2a7d8d=a6_0x299d0b;(!_0x24de41||_0x24de41['trim']()==='')&&(_0x24de41=new Date()[_0x2a7d8d(0x230)]()+'-'+(new Date()[_0x2a7d8d(0x217)]()+0x1));let _0x4bc1ec=[],[_0xe7dc6c,_0x2cdb07]=_0x24de41[_0x2a7d8d(0x225)]('-')[_0x2a7d8d(0x20e)](Number),_0x5926ae=new Date(_0xe7dc6c,_0x2cdb07,0x0),_0x5c4f8d=_0x5926ae[_0x2a7d8d(0x1ec)]();for(let _0x341fba=0x1;_0x341fba<=_0x5c4f8d;_0x341fba++){let _0x4a3f41=_0x341fba<0xa?'0'+_0x341fba:''+_0x341fba,_0x44203b=_0x2cdb07<0xa?'0'+_0x2cdb07:''+_0x2cdb07;_0x4bc1ec['push']({'date':_0xe7dc6c+'-'+_0x44203b+'-'+_0x4a3f41,'disable':!![]});}return _0x4bc1ec;}function getToday(_0x53c066){const _0x1b830d=a6_0x299d0b;var _0x141509=new Date(),_0x187e57=String(_0x141509['getDate']())['padStart'](0x2,'0'),_0x9b321f=String(_0x141509[_0x1b830d(0x217)]()+0x1)['padStart'](0x2,'0'),_0x196134=_0x141509[_0x1b830d(0x230)]();return _0x141509=_0x196134+'-'+_0x9b321f+'-'+_0x187e57,_0x141509;}function resetObject(_0xc99008){const _0x5c87f8=a6_0x299d0b;let _0x14580f=JSON[_0x5c87f8(0x20a)](JSON['stringify'](_0xc99008));for(const _0x4c512 in _0x14580f){if(typeof _0x14580f[_0x4c512]===_0x5c87f8(0x208))_0x14580f[_0x4c512]=0x0;else{if(typeof _0x14580f[_0x4c512]==='boolean')_0x14580f[_0x4c512]=![];else{if(Array[_0x5c87f8(0x22a)](_0x14580f[_0x4c512]))_0x14580f[_0x4c512]=[];else typeof _0x14580f[_0x4c512]===_0x5c87f8(0x1f4)&&_0x14580f[_0x4c512]!==null?resetObject(_0x14580f[_0x4c512]):_0x14580f[_0x4c512]='';}}}return _0x14580f;}function preciseOperation(_0x2b6b86,_0x1ea59c,_0x232fa4,_0x2dbb12=0xf4240){const _0x525316=a6_0x299d0b;if(isNaN(_0x2b6b86)||isNaN(_0x1ea59c))return NaN;if(!isFinite(_0x2b6b86)||!isFinite(_0x1ea59c))return NaN;let _0x33dc4a=BigInt(Math[_0x525316(0x23b)](_0x2b6b86*_0x2dbb12)),_0x3c0368=BigInt(Math[_0x525316(0x23b)](_0x1ea59c*_0x2dbb12)),_0x3c4327;switch(_0x232fa4){case 0x1:_0x3c4327=_0x33dc4a+_0x3c0368;break;case 0x2:_0x3c4327=_0x33dc4a-_0x3c0368;break;case 0x3:_0x3c4327=_0x33dc4a*_0x3c0368;break;case 0x4:if(_0x3c0368===0x0n)throw new Error(_0x525316(0x229));_0x3c4327=_0x33dc4a/_0x3c0368;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x3c4327)/_0x2dbb12;}function a6_0x42e7(_0x12a29c,_0x391b54){const _0x38fb81=a6_0x38fb();return a6_0x42e7=function(_0x42e7b7,_0x500e8a){_0x42e7b7=_0x42e7b7-0x1ea;let _0x14f8b4=_0x38fb81[_0x42e7b7];return _0x14f8b4;},a6_0x42e7(_0x12a29c,_0x391b54);}function preciseSum(_0x1e8612){const _0x329a16=a6_0x299d0b;let _0x1de1c1=0x0;for(const _0x4f0e6f of _0x1e8612){let _0xea9aa1=0x0;if(typeof _0x4f0e6f==='string'){const _0x2c8bdb=parseFloat(_0x4f0e6f);!isNaN(_0x2c8bdb)&&(_0xea9aa1=_0x2c8bdb);}else typeof _0x4f0e6f===_0x329a16(0x208)&&(_0xea9aa1=_0x4f0e6f);_0x1de1c1=preciseOperation(_0x1de1c1,_0xea9aa1,0x1);}return _0x1de1c1;}function getRelativeDate(_0x162d07,_0x4de963=0x0){const _0x440c0f=a6_0x299d0b,_0x1d3af1=new Date(_0x162d07);_0x1d3af1[_0x440c0f(0x249)](_0x1d3af1[_0x440c0f(0x1ec)]()+_0x4de963);const _0x14194e=_0x1d3af1[_0x440c0f(0x230)](),_0x481ef9=(_0x1d3af1[_0x440c0f(0x217)]()+0x1)[_0x440c0f(0x1ef)]()['padStart'](0x2,'0'),_0x1e9782=_0x1d3af1[_0x440c0f(0x1ec)]()[_0x440c0f(0x1ef)]()[_0x440c0f(0x243)](0x2,'0');return _0x14194e+'-'+_0x481ef9+'-'+_0x1e9782;}function validateFields(_0x3477dc,_0x5cd021,_0x28a8a5=''){for(let _0x208d86 of _0x5cd021){if(_0x3477dc[_0x208d86]===_0x28a8a5)return!![];}return![];}function mergeObjects(_0x399dd4,_0x5c49e8){for(const _0x4e8c69 in _0x399dd4){_0x5c49e8['hasOwnProperty'](_0x4e8c69)&&(_0x399dd4[_0x4e8c69]=_0x5c49e8[_0x4e8c69]);}return _0x399dd4;}const formatToDecimal=(_0x2601bf,_0x74c70f=0x2)=>{const _0x81e188=a6_0x299d0b;if(isNaN(_0x74c70f)||_0x74c70f<0x0)return _0x2601bf;let _0x2e2ce1=Number(_0x2601bf);if(!isFinite(_0x2e2ce1))return _0x2601bf;return _0x74c70f=Math[_0x81e188(0x1f6)](0x0,Math['floor'](_0x74c70f)),_0x2e2ce1['toFixed'](_0x74c70f);};function findKeysEndingWith(_0x1aae6d,_0x114810='_qh'){const _0xf43dba=a6_0x299d0b;let _0x880458=[];for(var _0x4c95ed in _0x1aae6d){if(_0x1aae6d['hasOwnProperty'](_0x4c95ed)){if(_0x4c95ed[_0xf43dba(0x21a)](_0x114810))_0x880458[_0xf43dba(0x1f1)](_0x4c95ed);}}return _0x880458;}function guid(_0x86420b=0x20,_0x597021=!![],_0x29b169=null){const _0x2b0735=a6_0x299d0b,_0xa312ca='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'['split'](''),_0x5ba359=[];_0x29b169=_0x29b169||_0xa312ca[_0x2b0735(0x231)];if(_0x86420b){for(let _0x5ddd64=0x0;_0x5ddd64<_0x86420b;_0x5ddd64++)_0x5ba359[_0x5ddd64]=_0xa312ca[0x0|Math[_0x2b0735(0x1ff)]()*_0x29b169];}else{let _0x2e50af;_0x5ba359[0x8]=_0x5ba359[0xd]=_0x5ba359[0x12]=_0x5ba359[0x17]='-',_0x5ba359[0xe]='4';for(let _0x5308a1=0x0;_0x5308a1<0x24;_0x5308a1++){!_0x5ba359[_0x5308a1]&&(_0x2e50af=0x0|Math[_0x2b0735(0x1ff)]()*0x10,_0x5ba359[_0x5308a1]=_0xa312ca[_0x5308a1==0x13?_0x2e50af&0x3|0x8:_0x2e50af]);}}if(_0x597021)return _0x5ba359[_0x2b0735(0x221)](),'u'+_0x5ba359[_0x2b0735(0x23f)]('');return _0x5ba359['join']('');}function trim(_0x20b485,_0xe7b547=a6_0x299d0b(0x226)){const _0x5f443c=a6_0x299d0b;_0x20b485=String(_0x20b485);if(_0xe7b547=='both')return _0x20b485[_0x5f443c(0x21c)](/^\s+|\s+$/g,'');if(_0xe7b547==_0x5f443c(0x210))return _0x20b485[_0x5f443c(0x21c)](/^\s*/,'');if(_0xe7b547==_0x5f443c(0x200))return _0x20b485['replace'](/(\s*$)/g,'');if(_0xe7b547==_0x5f443c(0x1f0))return _0x20b485['replace'](/\s+/g,'');return _0x20b485;}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.52",
3
+ "version": "1.0.54",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {