yunlin 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/price.js +1 -0
- package/dist/room.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/func.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3db729,_0xe51095){var _0x520286=a0_0x39c9,_0x37f2ae=_0x3db729();while(!![]){try{var _0x475a19=-parseInt(_0x520286(0x161))/0x1+-parseInt(_0x520286(0x15a))/0x2*(parseInt(_0x520286(0x159))/0x3)+-parseInt(_0x520286(0x15b))/0x4*(parseInt(_0x520286(0x15c))/0x5)+parseInt(_0x520286(0x157))/0x6*(parseInt(_0x520286(0x15e))/0x7)+-parseInt(_0x520286(0x158))/0x8*(-parseInt(_0x520286(0x160))/0x9)+-parseInt(_0x520286(0x15f))/0xa*(parseInt(_0x520286(0x156))/0xb)+-parseInt(_0x520286(0x15d))/0xc*(-parseInt(_0x520286(0x155))/0xd);if(_0x475a19===_0xe51095)break;else _0x37f2ae['push'](_0x37f2ae['shift']());}catch(_0x41748e){_0x37f2ae['push'](_0x37f2ae['shift']());}}}(a0_0x4f73,0x71c28));import a0_0x3720c2 from'./utils';import a0_0x4c9bf8 from'./price';import a0_0x6effad from'./test';function a0_0x39c9(_0xddb7b6,_0x566350){var _0x4f7379=a0_0x4f73();return a0_0x39c9=function(_0x39c9d7,_0xe6c87a){_0x39c9d7=_0x39c9d7-0x155;var _0x2a1fa9=_0x4f7379[_0x39c9d7];return _0x2a1fa9;},a0_0x39c9(_0xddb7b6,_0x566350);}import a0_0x5cbc30 from'./room';export default{'test':a0_0x6effad,'utils':a0_0x3720c2,'price':a0_0x4c9bf8,'room':a0_0x5cbc30};function a0_0x4f73(){var _0x6cd279=['70932luRtIx','376vGnWOU','2467167dKpORS','2pETexH','3209116ksHySw','5FoZXsY','12afhopg','126sLuYdX','2648930PIdKAY','5301fzfRGI','406231dpRhBb','32776549FmYmcN','11AcgjPP'];a0_0x4f73=function(){return _0x6cd279;};return a0_0x4f73();}
|
package/dist/price.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a1_0x2ec395=a1_0x454b;function a1_0x38b5(){const _0x122ce4=['money','fLsjUnit','baseprice','length','6999hnvQns','人員費用','tipday','price','rylx','30ZKoNKJ','includes','374855vPqHrK','max','其他費用','baseadultprice','減免費用','viprecharge','other','toFixed','vipdiscounted','4223694FnsCew','promotion','coupon','map','airtax','1014676szDXVD','split','totaltax','base','itemname','round','basechildprice','6151775rmZSXW','vip','fJcbzlsjUnit','adultprice','childnum','reduction','8895537JIZIfV','\x20*\x20','優惠券','766znfGKE','push','unitprice','附加服務','insure','totalprice','tip','strJgbm','tipuser','strLx','name','trip','service','會員減免','child','nRs','unitpricewb','tax','保險費用','childprice','filter','num','遊客優惠','機場稅','floor','adultnum','兒童[占床]','unit','elder','people','9559600QAPGjP','32CXHPcy','附加行程','list'];a1_0x38b5=function(){return _0x122ce4;};return a1_0x38b5();}(function(_0x317d93,_0x41bacf){const _0x17d98b=a1_0x454b,_0x167d58=_0x317d93();while(!![]){try{const _0x4e535b=-parseInt(_0x17d98b(0x1c8))/0x1+parseInt(_0x17d98b(0x1d8))/0x2*(-parseInt(_0x17d98b(0x1b3))/0x3)+-parseInt(_0x17d98b(0x1ac))/0x4*(-parseInt(_0x17d98b(0x1ba))/0x5)+-parseInt(_0x17d98b(0x1c3))/0x6+parseInt(_0x17d98b(0x1cf))/0x7+-parseInt(_0x17d98b(0x1ab))/0x8+parseInt(_0x17d98b(0x1d5))/0x9*(parseInt(_0x17d98b(0x1b8))/0xa);if(_0x4e535b===_0x41bacf)break;else _0x167d58['push'](_0x167d58['shift']());}catch(_0x29b2de){_0x167d58['push'](_0x167d58['shift']());}}}(a1_0x38b5,0x9b6f2));function handleCosting(_0x474cf0,_0x33ff17='',_0x85a4aa='-',_0x54a844=0x2,_0x3ea7ec={'people':a1_0x2ec395(0x1b4),'service':a1_0x2ec395(0x190),'trip':a1_0x2ec395(0x1ad),'other':a1_0x2ec395(0x1bc),'reduction':a1_0x2ec395(0x1be),'totalprice':'總計','airtax':a1_0x2ec395(0x1a4)},_0x3d78b3={'adult':'成人','child':'兒童','childusebed':a1_0x2ec395(0x1a7),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a1_0x2ec395(0x1a3),'vip':a1_0x2ec395(0x19a),'promotion':'促銷','insure':a1_0x2ec395(0x19f),'coupon':a1_0x2ec395(0x1d7),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x59dc1e=a1_0x2ec395;let _0x1bf485=[];const _0x3409a4=_0x59dc1e(0x1d6),_0x256dee=(_0x3de75c,_0x5cb638=_0x54a844)=>{const _0x31dfeb=_0x59dc1e;if(_0x3de75c==null||isNaN(_0x5cb638)||_0x5cb638<0x0)return'';let _0x17961d=Number(_0x3de75c);if(!isFinite(_0x17961d))return'';return _0x5cb638=Math[_0x31dfeb(0x1bb)](0x0,Math[_0x31dfeb(0x1a5)](_0x5cb638)),_0x5cb638===0x0?Math[_0x31dfeb(0x1cd)](_0x17961d):Number(_0x17961d[_0x31dfeb(0x1c1)](_0x5cb638));},_0x189bd3=_0x474cf0[_0x59dc1e(0x1a1)](_0xce53f8=>_0xce53f8[_0x59dc1e(0x196)]==_0x59dc1e(0x1cb));if(_0x189bd3[_0x59dc1e(0x1b2)]){let _0x1a0d0d={'title':_0x3ea7ec[_0x59dc1e(0x1aa)],'type':_0x59dc1e(0x1cb),'list':[]};_0x189bd3[_0x59dc1e(0x1c6)](_0x1e019e=>{const _0x15e47f=_0x59dc1e;_0x1a0d0d[_0x15e47f(0x1ae)][_0x15e47f(0x1d9)]({'title':_0x3d78b3[_0x1e019e[_0x15e47f(0x194)]],'info':_0x33ff17+_0x1e019e['fLsjUnit']+_0x3409a4+_0x1e019e[_0x15e47f(0x19c)],'nRs':_0x1e019e[_0x15e47f(0x19c)],'unit':_0x1e019e[_0x15e47f(0x1b0)],'cb':_0x1e019e[_0x15e47f(0x1d1)],'type':'base'});}),_0x1bf485[_0x59dc1e(0x1d9)](_0x1a0d0d);}const _0x356d73=_0x474cf0[_0x59dc1e(0x1a1)](_0x3b0a36=>_0x3b0a36[_0x59dc1e(0x196)]=='service');if(_0x356d73['length']){let _0x36853f={'title':_0x3ea7ec[_0x59dc1e(0x199)],'type':_0x59dc1e(0x199),'list':[]};_0x356d73[_0x59dc1e(0x1c6)](_0xb53b58=>{const _0x333647=_0x59dc1e;_0x36853f['list'][_0x333647(0x1d9)]({'title':_0xb53b58[_0x333647(0x197)]+('['+_0xb53b58[_0x333647(0x1cc)]+']'),'info':_0x33ff17+_0xb53b58['unitprice']+_0x3409a4+_0xb53b58[_0x333647(0x1a2)],'nRs':_0xb53b58[_0x333647(0x1a2)],'unit':_0xb53b58[_0x333647(0x18f)],'cb':_0xb53b58[_0x333647(0x1b1)],'type':_0x333647(0x199)});}),_0x1bf485[_0x59dc1e(0x1d9)](_0x36853f);}const _0x24a870=_0x474cf0['filter'](_0x24209c=>_0x24209c[_0x59dc1e(0x196)]==_0x59dc1e(0x198));if(_0x24a870[_0x59dc1e(0x1b2)]){let _0x2e4d72={'title':_0x3ea7ec[_0x59dc1e(0x198)],'type':_0x59dc1e(0x198),'list':[]};_0x24a870['map'](_0x30a132=>{const _0x408355=_0x59dc1e;_0x30a132[_0x408355(0x1a6)]!='0'&&_0x2e4d72[_0x408355(0x1ae)][_0x408355(0x1d9)]({'title':_0x30a132[_0x408355(0x197)]+('['+_0x3d78b3['adult']+']'),'info':_0x33ff17+_0x30a132[_0x408355(0x1d2)]+_0x3409a4+_0x30a132[_0x408355(0x1a6)],'nRs':_0x30a132['adultnum'],'unit':_0x30a132[_0x408355(0x1d2)],'cb':_0x30a132[_0x408355(0x1bd)],'type':'trip'}),_0x30a132['childnum']!='0'&&_0x2e4d72[_0x408355(0x1ae)][_0x408355(0x1d9)]({'title':_0x30a132['name']+('['+_0x3d78b3[_0x408355(0x19b)]+']'),'info':_0x33ff17+_0x30a132[_0x408355(0x1a0)]+_0x3409a4+_0x30a132['childnum'],'nRs':_0x30a132[_0x408355(0x1d3)],'unit':_0x30a132[_0x408355(0x1a0)],'cb':_0x30a132[_0x408355(0x1ce)],'type':_0x408355(0x198)});}),_0x1bf485[_0x59dc1e(0x1d9)](_0x2e4d72);}let _0x59fbdd=[];const _0x34536b=_0x474cf0[_0x59dc1e(0x1a1)](_0xb024b8=>_0xb024b8[_0x59dc1e(0x196)]==_0x59dc1e(0x1a9));_0x34536b['length']&&_0x34536b[_0x59dc1e(0x1c6)](_0x21516e=>{const _0x599e18=_0x59dc1e,_0x4d12f0=_0x21516e[_0x599e18(0x197)][_0x599e18(0x1c9)]('|')||[''];_0x59fbdd['push']({'title':_0x3d78b3[_0x599e18(0x1a9)]+('['+_0x4d12f0[0x0]+']'),'info':_0x33ff17+_0x85a4aa+_0x21516e['money'],'unit':_0x21516e[_0x599e18(0x1af)],'cb':_0x21516e[_0x599e18(0x1af)],'type':_0x599e18(0x1a9)});});const _0x27a644=_0x474cf0[_0x59dc1e(0x1a1)](_0x4313cf=>_0x4313cf[_0x59dc1e(0x196)]==_0x59dc1e(0x1c2));_0x27a644[_0x59dc1e(0x1b2)]&&_0x27a644['map'](_0xee105b=>{const _0x283899=_0x59dc1e;_0x59fbdd[_0x283899(0x1d9)]({'title':_0x3d78b3[_0x283899(0x1d0)]+('['+_0xee105b[_0x283899(0x197)]+']'),'info':_0x33ff17+_0x85a4aa+_0xee105b['money'],'unit':_0xee105b[_0x283899(0x1af)],'cb':_0xee105b[_0x283899(0x1af)],'type':_0x283899(0x1d0)});});const _0xf8ed54=_0x474cf0['filter'](_0x4a7362=>_0x4a7362[_0x59dc1e(0x196)]==_0x59dc1e(0x1c4));_0xf8ed54[_0x59dc1e(0x1b2)]&&_0xf8ed54[_0x59dc1e(0x1c6)](_0x203896=>{const _0x26be7a=_0x59dc1e;_0x59fbdd[_0x26be7a(0x1d9)]({'title':_0x3d78b3['promotion'],'info':_0x33ff17+_0x85a4aa+_0x203896[_0x26be7a(0x1af)],'unit':_0x203896[_0x26be7a(0x1af)],'cb':_0x203896[_0x26be7a(0x1af)],'type':_0x26be7a(0x1c4)});});_0x59fbdd[_0x59dc1e(0x1b2)]&&_0x1bf485[_0x59dc1e(0x1d9)]({'title':_0x3ea7ec[_0x59dc1e(0x1d4)],'type':'reduction','list':_0x59fbdd});const _0x1515b9=_0x474cf0[_0x59dc1e(0x1a1)](_0x1b7779=>_0x1b7779['strLx']==_0x59dc1e(0x1c7));if(_0x1515b9[_0x59dc1e(0x1b2)]){let _0x491336={'title':_0x3ea7ec[_0x59dc1e(0x1c7)],'type':_0x59dc1e(0x1c7),'list':[]};_0x1515b9[_0x59dc1e(0x1c6)](_0xd102a=>{const _0x68f7e1=_0x59dc1e;_0x491336[_0x68f7e1(0x1ae)]['push']({'title':_0x3d78b3[_0xd102a[_0x68f7e1(0x1b7)]],'info':_0x33ff17+_0xd102a[_0x68f7e1(0x18f)]+_0x3409a4+_0xd102a['sl'],'nRs':_0xd102a['sl'],'unit':_0xd102a[_0x68f7e1(0x18f)],'cb':_0xd102a[_0x68f7e1(0x19d)],'type':_0xd102a[_0x68f7e1(0x1b7)]});}),_0x1bf485['push'](_0x491336);}const _0x148a70=[_0x59dc1e(0x1cb),_0x59dc1e(0x199),'trip','elder',_0x59dc1e(0x1c2),_0x59dc1e(0x1c4),_0x59dc1e(0x1c7)],_0x3343ef=_0x474cf0[_0x59dc1e(0x1a1)](_0x374b95=>!_0x148a70[_0x59dc1e(0x1b9)](_0x374b95[_0x59dc1e(0x196)]));let _0x2592f0={'title':_0x3ea7ec[_0x59dc1e(0x1c0)],'type':_0x59dc1e(0x1c0),'list':[]};for(var _0x3d2e85=0x0;_0x3d2e85<_0x3343ef[_0x59dc1e(0x1b2)];_0x3d2e85++){const _0x53f086=_0x3343ef[_0x3d2e85];_0x53f086['strLx']==_0x59dc1e(0x1bf)&&_0x2592f0[_0x59dc1e(0x1ae)]['push']({'title':_0x3d78b3[_0x59dc1e(0x1bf)]+('['+_0x53f086['name']+']'),'info':_0x33ff17+_0x53f086['money'],'unit':_0x53f086[_0x59dc1e(0x1af)],'type':_0x53f086['strLx']}),_0x53f086['strLx']==_0x59dc1e(0x191)&&_0x2592f0[_0x59dc1e(0x1ae)]['push']({'title':_0x3d78b3[_0x59dc1e(0x191)]+('['+_0x53f086[_0x59dc1e(0x197)]+']'),'info':_0x33ff17+_0x53f086['unit']+_0x3409a4+_0x53f086['users']+_0x3d78b3['r'],'nRs':_0x53f086['users'],'unit':_0x53f086[_0x59dc1e(0x1a8)],'cb':_0x53f086['unit'],'type':_0x59dc1e(0x191)}),(_0x53f086['strLx']==_0x59dc1e(0x1c5)||_0x53f086[_0x59dc1e(0x196)]=='point')&&_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1d9)]({'title':_0x3d78b3[_0x53f086[_0x59dc1e(0x196)]],'info':_0x33ff17+_0x85a4aa+_0x256dee(_0x53f086[_0x59dc1e(0x1af)],_0x54a844),'unit':_0x53f086['money'],'type':_0x53f086[_0x59dc1e(0x196)]}),_0x53f086['strLx']==_0x59dc1e(0x193)&&_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1d9)]({'title':_0x3d78b3[_0x53f086[_0x59dc1e(0x196)]],'info':_0x33ff17+_0x53f086[_0x59dc1e(0x193)]+_0x3409a4+_0x53f086[_0x59dc1e(0x195)]+_0x3d78b3['r']+_0x3409a4+_0x53f086[_0x59dc1e(0x1b5)]+_0x3d78b3['t'],'nRs':_0x53f086['tipuser'],'count':_0x53f086[_0x59dc1e(0x1b5)],'unit':_0x53f086['tip'],'type':_0x53f086[_0x59dc1e(0x196)]}),_0x53f086[_0x59dc1e(0x196)]==_0x59dc1e(0x19e)&&_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1d9)]({'title':_0x3d78b3[_0x53f086[_0x59dc1e(0x196)]],'info':_0x33ff17+_0x256dee(_0x53f086[_0x59dc1e(0x1ca)],_0x54a844),'unit':_0x53f086[_0x59dc1e(0x1ca)],'type':_0x53f086['strLx']});}_0x2592f0[_0x59dc1e(0x1ae)][_0x59dc1e(0x1b2)]&&_0x1bf485[_0x59dc1e(0x1d9)](_0x2592f0);const _0x671f00=_0x474cf0['filter'](_0x12a648=>_0x12a648[_0x59dc1e(0x196)]==_0x59dc1e(0x192));return _0x671f00[_0x59dc1e(0x1b2)]&&_0x1bf485[_0x59dc1e(0x1d9)]({'title':_0x3ea7ec['totalprice'],'type':_0x59dc1e(0x192),'list':[{'title':_0x3ea7ec['totalprice'],'info':_0x33ff17+_0x671f00[0x0][_0x59dc1e(0x1b6)]}]}),_0x1bf485;}function a1_0x454b(_0x48ebd6,_0x1b51ca){const _0x38b542=a1_0x38b5();return a1_0x454b=function(_0x454b7f,_0x2d64f3){_0x454b7f=_0x454b7f-0x18f;let _0x43a4db=_0x38b542[_0x454b7f];return _0x43a4db;},a1_0x454b(_0x48ebd6,_0x1b51ca);}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x36f8(_0x5c6d98,_0x69aed2){const _0x1f2f5e=a2_0x1f2f();return a2_0x36f8=function(_0x36f8b5,_0x11b4a1){_0x36f8b5=_0x36f8b5-0x120;let _0x5b8c90=_0x1f2f5e[_0x36f8b5];return _0x5b8c90;},a2_0x36f8(_0x5c6d98,_0x69aed2);}(function(_0x3d3031,_0x33a2dc){const _0x1e13a1=a2_0x36f8,_0x553709=_0x3d3031();while(!![]){try{const _0x254a1f=parseInt(_0x1e13a1(0x135))/0x1*(-parseInt(_0x1e13a1(0x12d))/0x2)+parseInt(_0x1e13a1(0x12b))/0x3+-parseInt(_0x1e13a1(0x136))/0x4+-parseInt(_0x1e13a1(0x123))/0x5+parseInt(_0x1e13a1(0x122))/0x6*(-parseInt(_0x1e13a1(0x12c))/0x7)+-parseInt(_0x1e13a1(0x137))/0x8+parseInt(_0x1e13a1(0x127))/0x9;if(_0x254a1f===_0x33a2dc)break;else _0x553709['push'](_0x553709['shift']());}catch(_0xe15346){_0x553709['push'](_0x553709['shift']());}}}(a2_0x1f2f,0x9c08a));function getRoomCount(_0x2a338b,_0x1f6e7a){const _0xdf006e=a2_0x36f8,_0x40ca06=Array['isArray'](_0x2a338b);if(!_0x40ca06)_0x2a338b=[_0x2a338b];let _0x1f021c=[];return _0x2a338b[_0xdf006e(0x125)](_0x2e5f78=>{const _0x2f0c60=_0xdf006e;let _0x5ae864=![];if(!_0x2e5f78['isalotment']){let _0x5182a7=_0x2e5f78[_0x2f0c60(0x129)];if(_0x2e5f78[_0x2f0c60(0x133)]||!_0x1f6e7a[_0x2f0c60(0x12a)])_0x5182a7+=_0x2e5f78[_0x2f0c60(0x128)];const _0x541ad0=_0x1f6e7a['list'][_0x2f0c60(0x138)](_0x1d6b88=>Number(_0x1d6b88[_0x2f0c60(0x132)])===_0x5182a7);if(!_0x541ad0)_0x5ae864=!![];else{let _0x3faa87=_0x2e5f78[_0x2f0c60(0x129)]+_0x2e5f78['childrennum']+_0x2e5f78[_0x2f0c60(0x12f)];_0x3faa87>_0x541ad0[_0x2f0c60(0x134)]&&(_0x5ae864=!![]);}}_0x1f021c[_0x2f0c60(0x12e)](_0x5ae864);}),_0x40ca06?_0x1f021c:_0x1f021c[0x0];}function getRoomConfig(_0x1545b4){const _0x21752d=a2_0x36f8;let _0x50ed6c=_0x1545b4[_0x21752d(0x120)](_0x59b0c7=>_0x59b0c7[_0x21752d(0x132)]==='childusebed'),_0x533829=_0x1545b4['some'](_0xd232b3=>_0xd232b3[_0x21752d(0x132)]===_0x21752d(0x130));const _0x4f16b0=_0x1545b4[_0x21752d(0x120)](_0x59ff91=>_0x59ff91['strCode']===_0x21752d(0x139)),_0x59c3aa=_0x1545b4[_0x21752d(0x120)](_0x1a2e3a=>_0x1a2e3a[_0x21752d(0x132)]==='child'),_0x27bb5b=_0x1545b4[_0x21752d(0x124)](_0x15b5f5=>{const _0x265db6=_0x21752d;return{'strCode':_0x15b5f5[_0x265db6(0x132)],'nMaxIn':_0x15b5f5[_0x265db6(0x134)]};});if(_0x533829){const _0x3808b7=_0x1545b4[_0x21752d(0x120)](_0x44934c=>_0x44934c[_0x21752d(0x132)]=='2');_0x533829=_0x533829&&_0x3808b7;}if(_0x50ed6c)_0x50ed6c=_0x50ed6c&&_0x59c3aa;return{'childusebed':_0x50ed6c,'half':_0x533829,'infant':_0x4f16b0,'child':_0x59c3aa,'list':_0x27bb5b};}function a2_0x1f2f(){const _0x109ffc=['strCode','childusebed','nMaxIn','204235TviUEn','4767636nOgDot','9390304fuyDlW','find','infant','some','length','4900098zvDjvZ','755435XIaKld','map','forEach','filter','26748972INDcbF','childrennum','adultnum','child','3614124ZkZRmT','7YVwEfq','2aLnpGX','push','infantnum','half','max'];a2_0x1f2f=function(){return _0x109ffc;};return a2_0x1f2f();}function isRoomPiece(_0x49c906,_0x54d415){const _0x481178=a2_0x36f8;return _0x54d415&&_0x49c906[_0x481178(0x129)]===0x1&&_0x49c906[_0x481178(0x128)]===0x0&&_0x49c906['infantnum']===0x0;}function getRoomItemRange(_0x6c10b8,_0x57b3d4,_0x20685a={'child':'兒童','infant':'嬰兒'}){const _0x23f969=a2_0x36f8;if(!_0x57b3d4[_0x23f969(0x121)])return{'list':[],'yelist':[]};const _0x5c2458=Math[_0x23f969(0x131)](..._0x57b3d4[_0x23f969(0x124)](_0x24f39f=>Number(_0x24f39f['nMaxIn']))),_0x93a7e=_0x5c2458-_0x6c10b8[_0x23f969(0x129)]-_0x6c10b8[_0x23f969(0x12f)];let _0x3ddd9c=_0x5c2458-_0x6c10b8[_0x23f969(0x129)]-_0x6c10b8[_0x23f969(0x128)];if(_0x3ddd9c>0x2)_0x3ddd9c=0x2;const _0x1ce4d1=(_0x482d91,_0x5e3458)=>{const _0x5c534a=_0x23f969,_0x3b4bc1=[];_0x3b4bc1[_0x5c534a(0x12e)]({'value':0x0,'text':'0\x20'+_0x5e3458});for(let _0x5b53e1=0x0;_0x5b53e1<_0x482d91;_0x5b53e1++){_0x3b4bc1[_0x5c534a(0x12e)]({'value':_0x5b53e1+0x1,'text':_0x5b53e1+0x1+'\x20'+_0x5e3458});}return _0x3b4bc1;};return{'list':_0x1ce4d1(_0x93a7e,_0x20685a[_0x23f969(0x12a)]),'yelist':_0x1ce4d1(_0x3ddd9c,_0x20685a['infant'])};}function getAdultRange(_0x3255e3,_0x1bb623='成人'){const _0x26bab8=a2_0x36f8;let _0x4eaee5=Math['max'](..._0x3255e3[_0x26bab8(0x124)](_0x205b41=>Number(_0x205b41['strCode']))[_0x26bab8(0x126)](_0x287bed=>!isNaN(_0x287bed)));if(!_0x4eaee5)_0x4eaee5=0x4;let _0x42959a=[];for(var _0xc409e2=0x1;_0xc409e2<_0x4eaee5+0x1;_0xc409e2++){_0x42959a['push']({'value':_0xc409e2,'text':_0xc409e2+'\x20'+_0x1bb623});}return _0x42959a;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x851596,_0x2814fc){const _0x53423b=a3_0x2a6f,_0x3793d6=_0x851596();while(!![]){try{const _0x1eda10=-parseInt(_0x53423b(0x11f))/0x1*(parseInt(_0x53423b(0x121))/0x2)+parseInt(_0x53423b(0x11d))/0x3+parseInt(_0x53423b(0x11b))/0x4*(-parseInt(_0x53423b(0x117))/0x5)+-parseInt(_0x53423b(0x115))/0x6+-parseInt(_0x53423b(0x12b))/0x7*(parseInt(_0x53423b(0x12e))/0x8)+-parseInt(_0x53423b(0x123))/0x9*(parseInt(_0x53423b(0x130))/0xa)+parseInt(_0x53423b(0x127))/0xb*(parseInt(_0x53423b(0x11a))/0xc);if(_0x1eda10===_0x2814fc)break;else _0x3793d6['push'](_0x3793d6['shift']());}catch(_0x3948d0){_0x3793d6['push'](_0x3793d6['shift']());}}}(a3_0xd3e4,0x677d3));function email(_0x28e222){const _0x3b787d=a3_0x2a6f;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x3b787d(0x11c)](_0x28e222);}function mobile(_0x6e7141){const _0x485c87=a3_0x2a6f;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x485c87(0x11c)](_0x6e7141);}function isValidPhoneNumber(_0x1d25bd){const _0x49b994=a3_0x2a6f;if(_0x1d25bd[_0x49b994(0x114)]('-')){const [_0x15c583,_0x3aee61]=_0x1d25bd[_0x49b994(0x122)]('-');if(_0x15c583==='86')return/^\d{11}$/['test'](_0x3aee61)&&_0x3aee61[_0x49b994(0x113)]('1');else return _0x15c583===_0x49b994(0x118)?/^\d{8}$/[_0x49b994(0x11c)](_0x3aee61)&&['5','6','9','8'][_0x49b994(0x114)](_0x3aee61['charAt'](0x0)):/^\d+$/['test'](_0x3aee61);}else return/^\d+$/[_0x49b994(0x11c)](_0x1d25bd);}function url(_0x4e564f){const _0x3f4f70=a3_0x2a6f;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x3f4f70(0x11c)](_0x4e564f);}function date(_0x3a3712){const _0x55206f=a3_0x2a6f;if(!_0x3a3712)return![];if(number(_0x3a3712))_0x3a3712=+_0x3a3712;return!/Invalid|NaN/['test'](new Date(_0x3a3712)[_0x55206f(0x11e)]());}function dateISO(_0x4c98ca){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x4c98ca);}function isNumber(_0x30ef27){const _0x4559af=a3_0x2a6f;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x4559af(0x11c)](_0x30ef27);}function isString(_0x25dce9){const _0x53360f=a3_0x2a6f;return typeof _0x25dce9===_0x53360f(0x110);}function digits(_0x3b244f){return/^\d+$/['test'](_0x3b244f);}function idCard(_0x15b920){const _0x3b1d19=a3_0x2a6f;return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/[_0x3b1d19(0x11c)](_0x15b920);}function carNo(_0x36bec2){const _0x55afeb=a3_0x2a6f,_0x35f39e=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x518b01=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x36bec2[_0x55afeb(0x12a)]===0x7)return _0x518b01[_0x55afeb(0x11c)](_0x36bec2);if(_0x36bec2[_0x55afeb(0x12a)]===0x8)return _0x35f39e[_0x55afeb(0x11c)](_0x36bec2);return![];}function amount(_0x38f685){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x38f685);}function chinese(_0x334cbe){const _0x2e09df=a3_0x2a6f,_0xc46ea5=/^[\u4e00-\u9fa5]+$/gi;return _0xc46ea5[_0x2e09df(0x11c)](_0x334cbe);}function letter(_0x2729c9){const _0x488e8e=a3_0x2a6f;return/^[a-zA-Z]*$/[_0x488e8e(0x11c)](_0x2729c9);}function enOrNum(_0x4862d4){const _0x40b2cd=/^[0-9a-zA-Z]*$/g;return _0x40b2cd['test'](_0x4862d4);}function contains(_0x2e978a,_0x509a6e){const _0x2c2e68=a3_0x2a6f;return _0x2e978a[_0x2c2e68(0x116)](_0x509a6e)>=0x0;}function range(_0xf44076,_0x177960){return _0xf44076>=_0x177960[0x0]&&_0xf44076<=_0x177960[0x1];}function rangeLength(_0x48056c,_0x133f8b){const _0x47272e=a3_0x2a6f;return _0x48056c[_0x47272e(0x12a)]>=_0x133f8b[0x0]&&_0x48056c[_0x47272e(0x12a)]<=_0x133f8b[0x1];}function landline(_0x39b4cc){const _0x12653c=a3_0x2a6f,_0x4953dd=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4953dd[_0x12653c(0x11c)](_0x39b4cc);}function a3_0xd3e4(){const _0x46acb2=['162PAcXsc','call','object','undefined','27214XtDNOf','prototype','[object\x20Object]','length','5754707IZjNAh','parse','[object\x20Array]','8faMdsF','replace','230280eFyTIF','string','number','isArray','startsWith','includes','3040506KixjtG','indexOf','1195450YofIxq','852','catch','14916zggDlV','12djSmCl','test','1630068jEpHEj','toString','1IjXVxL','[object\x20RegExp]','1468042tuLKZt','split'];a3_0xd3e4=function(){return _0x46acb2;};return a3_0xd3e4();}function a3_0x2a6f(_0x83f201,_0x12e8b5){const _0xd3e497=a3_0xd3e4();return a3_0x2a6f=function(_0x2a6f7e,_0x2e85d4){_0x2a6f7e=_0x2a6f7e-0x110;let _0x25ac89=_0xd3e497[_0x2a6f7e];return _0x25ac89;},a3_0x2a6f(_0x83f201,_0x12e8b5);}function empty(_0x32ac64){const _0x393526=a3_0x2a6f;switch(typeof _0x32ac64){case _0x393526(0x126):return!![];case _0x393526(0x110):if(_0x32ac64[_0x393526(0x12f)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x393526(0x12a)]==0x0)return!![];break;case'boolean':if(!_0x32ac64)return!![];break;case _0x393526(0x111):if(_0x32ac64===0x0||isNaN(_0x32ac64))return!![];break;case _0x393526(0x125):if(_0x32ac64===null||_0x32ac64['length']===0x0)return!![];for(const _0x28e2b9 in _0x32ac64){return![];}return!![];}return![];}function jsonString(_0x498c1e){const _0x33c24f=a3_0x2a6f;if(typeof _0x498c1e==='string')try{const _0x40b5b2=JSON[_0x33c24f(0x12c)](_0x498c1e);if(typeof _0x40b5b2==='object'&&_0x40b5b2)return!![];return![];}catch(_0x4998fe){return![];}return![];}function array(_0x3eb019){const _0x5c2ce0=a3_0x2a6f;if(typeof Array[_0x5c2ce0(0x112)]==='function')return Array[_0x5c2ce0(0x112)](_0x3eb019);return Object['prototype'][_0x5c2ce0(0x11e)][_0x5c2ce0(0x124)](_0x3eb019)===_0x5c2ce0(0x12d);}function object(_0x517a11){const _0x186cbe=a3_0x2a6f;return Object[_0x186cbe(0x128)][_0x186cbe(0x11e)][_0x186cbe(0x124)](_0x517a11)===_0x186cbe(0x129);}function code(_0x46d7da,_0x3c815c=0x6){const _0xc3da7c=a3_0x2a6f;return new RegExp('^\x5cd{'+_0x3c815c+'}$')[_0xc3da7c(0x11c)](_0x46d7da);}function func(_0x3f1e55){return typeof _0x3f1e55==='function';}function promise(_0x83c1ab){const _0x24a4fa=a3_0x2a6f;return object(_0x83c1ab)&&func(_0x83c1ab['then'])&&func(_0x83c1ab[_0x24a4fa(0x119)]);}function image(_0x4d48ac){const _0x3a67a7=a3_0x2a6f,_0x31a68d=_0x4d48ac['split']('?')[0x0],_0x20737b=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x20737b[_0x3a67a7(0x11c)](_0x31a68d);}function video(_0x5cdb86){const _0x3ef2bc=a3_0x2a6f,_0x3f092a=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x3f092a[_0x3ef2bc(0x11c)](_0x5cdb86);}function regExp(_0x1a1d96){const _0x524bb=a3_0x2a6f;return _0x1a1d96&&Object[_0x524bb(0x128)][_0x524bb(0x11e)][_0x524bb(0x124)](_0x1a1d96)===_0x524bb(0x120);}function isNumeric(_0x3263e1,_0x458822=0x0){const _0x5c556a=a3_0x2a6f;if(typeof _0x3263e1===_0x5c556a(0x111))_0x3263e1=_0x3263e1['toString']();if(typeof _0x3263e1!==_0x5c556a(0x110))return![];switch(_0x458822){case 0x1:return/^\d+(\.\d+)?$/[_0x5c556a(0x11c)](_0x3263e1);case 0x2:return/^-\d+(\.\d+)?$/[_0x5c556a(0x11c)](_0x3263e1);case 0x3:return/^-?\d+$/[_0x5c556a(0x11c)](_0x3263e1);case 0x4:return/^\d+$/['test'](_0x3263e1);case 0x5:return/^-\d+$/[_0x5c556a(0x11c)](_0x3263e1);default:return/^-?\d*\.?\d*$/['test'](_0x3263e1)&&!_0x3263e1[_0x5c556a(0x113)]('.')&&!_0x3263e1[_0x5c556a(0x114)]('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x1ce016=a4_0x58c5;(function(_0x485f44,_0x37e6b3){const _0x1ad7c0=a4_0x58c5,_0x2ae301=_0x485f44();while(!![]){try{const _0x4051d0=-parseInt(_0x1ad7c0(0xf9))/0x1+parseInt(_0x1ad7c0(0x11b))/0x2*(-parseInt(_0x1ad7c0(0xf4))/0x3)+parseInt(_0x1ad7c0(0x103))/0x4*(-parseInt(_0x1ad7c0(0x10d))/0x5)+parseInt(_0x1ad7c0(0x122))/0x6+parseInt(_0x1ad7c0(0x10a))/0x7*(-parseInt(_0x1ad7c0(0x10e))/0x8)+-parseInt(_0x1ad7c0(0x10b))/0x9*(parseInt(_0x1ad7c0(0x112))/0xa)+parseInt(_0x1ad7c0(0x106))/0xb;if(_0x4051d0===_0x37e6b3)break;else _0x2ae301['push'](_0x2ae301['shift']());}catch(_0x41ac6f){_0x2ae301['push'](_0x2ae301['shift']());}}}(a4_0x18a7,0xee70c));function fmtNum(_0x1522cf){const _0x28ba86=a4_0x58c5;if(_0x1522cf==0x0)return'0';if(!_0x1522cf)return'';let _0xca46d=typeof _0x1522cf===_0x28ba86(0x108)?parseFloat(_0x1522cf):_0x1522cf;if(isNaN(_0xca46d))return'';return _0xca46d[_0x28ba86(0x128)](_0x28ba86(0x126),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x361cc3,_0xccaef1=![]){const _0x114010=a4_0x58c5;let _0x32bd1e={'surname':'','givenName':''};if(_0xccaef1){const _0x2a0498=_0x361cc3[_0x114010(0x116)](',')?_0x361cc3[_0x114010(0x11c)](','):_0x361cc3['split'](/\s+/);_0x2a0498[_0x114010(0xf3)]>=0x2&&(_0x32bd1e[_0x114010(0xf8)]=_0x2a0498[0x0][_0x114010(0xf6)](),_0x32bd1e['givenName']=_0x2a0498[0x1][_0x114010(0xf6)]());}else{const _0x12ee88=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x5e3a2d=0x0;_0x5e3a2d<_0x12ee88[_0x114010(0xf3)];_0x5e3a2d++){const _0x3fd102=_0x12ee88[_0x5e3a2d];if(_0x361cc3[_0x114010(0xfc)](_0x3fd102))return _0x32bd1e['surname']=_0x3fd102,_0x32bd1e['givenName']=_0x361cc3[_0x114010(0x124)](_0x3fd102['length'])['trim'](),_0x32bd1e;}const _0x3e3c9f=_0x361cc3['split']('\x20');if(_0x3e3c9f['length']===0x1){const _0x7b8c7a=_0x361cc3[_0x114010(0x120)](/[\u4e00-\u9fa5]/);_0x32bd1e[_0x114010(0xf8)]=_0x7b8c7a?_0x7b8c7a[0x0]:'',_0x32bd1e[_0x114010(0x123)]=_0x361cc3[_0x114010(0x115)](_0x32bd1e[_0x114010(0xf8)],'')['trim']();}else _0x32bd1e['surname']=_0x3e3c9f[0x0],_0x32bd1e['givenName']=_0x3e3c9f[_0x114010(0x118)](0x1)[_0x114010(0x119)]('\x20');}return _0x32bd1e;}function modifyKeys(_0x4210ff,_0x2f943f={'strCode':a4_0x1ce016(0x11f),'strFjbh':a4_0x1ce016(0xfd),'strGuid':a4_0x1ce016(0xf7),'strValue':a4_0x1ce016(0x109)}){const _0x2060b4=a4_0x1ce016;if(!_0x4210ff[_0x2060b4(0xf3)]||_0x4210ff===null)return[];const _0x4cec7f=_0x4210ff[_0x2060b4(0x11a)](_0x441fc0=>{const _0x1d90ac={};for(const _0x96d1a4 in _0x441fc0){_0x2f943f['hasOwnProperty'](_0x96d1a4)?_0x1d90ac[_0x2f943f[_0x96d1a4]]=_0x441fc0[_0x96d1a4]:_0x1d90ac[_0x96d1a4]=_0x441fc0[_0x96d1a4];}return _0x1d90ac;});return _0x4cec7f;}function sliceArray(_0x163400,_0x491783,_0x150c0b){const _0x7969=a4_0x1ce016;if(_0x491783<=0x0)return console[_0x7969(0x10f)](_0x7969(0x125)),[];return _0x150c0b?_0x163400[_0x7969(0x118)](0x0,_0x491783):_0x163400[_0x7969(0x118)](-_0x491783);}function findDataByData(_0x20743a,_0x63ce12,_0x2d1199){const _0x2a9610=a4_0x1ce016,_0x36f4bb=_0x20743a[_0x2a9610(0x110)](_0x381e48=>_0x381e48[_0x2d1199]===_0x63ce12);return _0x36f4bb||null;}function splitArray(_0x101d51,_0x32ccaa){const _0x446b6f=a4_0x1ce016,_0x28e1ce=[];for(let _0x2a41fb=0x0;_0x2a41fb<_0x101d51[_0x446b6f(0xf3)];_0x2a41fb+=_0x32ccaa){_0x28e1ce[_0x446b6f(0x127)](_0x101d51[_0x446b6f(0x118)](_0x2a41fb,_0x2a41fb+_0x32ccaa));}return _0x28e1ce;}function getProxyType(_0x5af452){const _0x5340ee=a4_0x1ce016;return Object[_0x5340ee(0x101)]['toString'][_0x5340ee(0xfb)](_0x5af452)[_0x5340ee(0x118)](0x8,-0x1);}let timeout=null;function debounce(_0x4b8c10,_0x205c9e=0x1f4,_0x5df112=![]){const _0x168a70=a4_0x1ce016;if(timeout!==null)clearTimeout(timeout);if(_0x5df112){const _0x190fb6=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x205c9e);if(_0x190fb6)typeof _0x4b8c10===_0x168a70(0xfa)&&_0x4b8c10();}else timeout=setTimeout(()=>{const _0x5ff321=_0x168a70;typeof _0x4b8c10===_0x5ff321(0xfa)&&_0x4b8c10();},_0x205c9e);}function matchKeyValueInArray(_0x3109d9,_0x29479d,_0x180e0d){const _0x48effd=a4_0x1ce016;for(let _0x186f48=0x0;_0x186f48<_0x3109d9[_0x48effd(0xf3)];_0x186f48++){if(_0x3109d9[_0x186f48][_0x29479d]===_0x180e0d)return!![];}return![];}function urlEncode(_0x2edbd7={}){const _0x481b9b=a4_0x1ce016,_0x4a2401=[];for(const _0x51a41f in _0x2edbd7){const _0xffadf1=_0x2edbd7[_0x51a41f];if(!_0xffadf1)continue;isArray(_0xffadf1)?_0xffadf1[_0x481b9b(0x129)](_0x4b2cac=>{const _0x337861=_0x481b9b;_0x4a2401[_0x337861(0x127)](_0x51a41f+'='+_0x4b2cac);}):_0x4a2401[_0x481b9b(0x127)](_0x51a41f+'='+_0xffadf1);}return _0x4a2401[_0x481b9b(0x119)]('&');}function compareDates(_0x43e312,_0x254311){const _0x485831=a4_0x1ce016;_0x43e312=new Date(_0x43e312);!_0x254311?_0x254311=new Date():_0x254311=new Date(_0x254311);_0x43e312[_0x485831(0x11d)](0x0,0x0,0x0,0x0),_0x254311['setHours'](0x0,0x0,0x0,0x0);var _0x3cd99e=_0x43e312[_0x485831(0x111)](),_0x13120a=_0x254311[_0x485831(0x111)]();if(_0x3cd99e<_0x13120a)return-0x1;else return _0x3cd99e>_0x13120a?0x1:0x0;}function getDaysBetween(_0x49fd0f,_0x32a2ba){const _0x2455ca=a4_0x1ce016,_0x38d69c=new Date(_0x49fd0f),_0xb2af1=new Date(_0x32a2ba),_0x9a3aea=Math[_0x2455ca(0xf5)](_0x38d69c[_0x2455ca(0x111)]()-_0xb2af1['getTime']()),_0x2c11b2=Math[_0x2455ca(0x114)](_0x9a3aea/(0x3e8*0x3c*0x3c*0x18));return _0x2c11b2+0x1;}function chineseNumeral(_0x3c2960){const _0x1fa990=a4_0x1ce016,_0x100cdd=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4d2341=['','拾','佰','仟'],_0x2b7f05=['','万','亿','兆'];let _0x3e44e7=Math[_0x1fa990(0x114)](_0x3c2960),_0x330ab5=Math[_0x1fa990(0x117)]((_0x3c2960-_0x3e44e7)*0x64),_0x7f7b18='';for(let _0x198b00=0x0;_0x3e44e7>0x0;_0x198b00++){let _0x204573='',_0x1a72b0=_0x3e44e7%0x2710;_0x3e44e7=Math['floor'](_0x3e44e7/0x2710);for(let _0x37e90c=0x0;_0x1a72b0>0x0;_0x37e90c++){let _0x4f3ffa=_0x1a72b0%0xa;_0x204573=(_0x4f3ffa?_0x100cdd[_0x4f3ffa]+_0x4d2341[_0x37e90c]:'')+_0x204573,_0x1a72b0=Math['floor'](_0x1a72b0/0xa);}_0x7f7b18=_0x204573+(_0x204573?_0x2b7f05[_0x198b00]:_0x2b7f05[_0x198b00]&&!_0x7f7b18[_0x1fa990(0x116)]('零')?'零':'')+_0x7f7b18;}_0x7f7b18+=_0x7f7b18?'元':'零元';if(_0x330ab5>0x0){let _0x5cb7e1=Math['floor'](_0x330ab5/0xa),_0xc88f69=_0x330ab5%0xa;_0x7f7b18+=(_0x5cb7e1?_0x100cdd[_0x5cb7e1]+'角':'')+(_0xc88f69?_0x100cdd[_0xc88f69]+'分':'');}else _0x7f7b18+='整';return _0x7f7b18[_0x1fa990(0x115)](/零{2,}/g,'零')[_0x1fa990(0x115)](/零元/,'元');}function getMonthDate(_0x765a67){const _0x56f503=a4_0x1ce016;(!_0x765a67||_0x765a67[_0x56f503(0xf6)]()==='')&&(_0x765a67=new Date()[_0x56f503(0xf2)]()+'-'+(new Date()[_0x56f503(0x102)]()+0x1));let _0x530541=[],[_0x5072c7,_0x56c76a]=_0x765a67[_0x56f503(0x11c)]('-')[_0x56f503(0x11a)](Number),_0x4a3ac1=new Date(_0x5072c7,_0x56c76a,0x0),_0x288c7d=_0x4a3ac1['getDate']();for(let _0x5e5184=0x1;_0x5e5184<=_0x288c7d;_0x5e5184++){let _0x1b3d50=_0x5e5184<0xa?'0'+_0x5e5184:''+_0x5e5184,_0x372d2c=_0x56c76a<0xa?'0'+_0x56c76a:''+_0x56c76a;_0x530541[_0x56f503(0x127)]({'date':_0x5072c7+'-'+_0x372d2c+'-'+_0x1b3d50,'disable':!![]});}return _0x530541;}function getToday(_0x27fe1e){const _0x474eb5=a4_0x1ce016;var _0x135191=new Date(),_0x46b7aa=String(_0x135191[_0x474eb5(0x105)]())[_0x474eb5(0x100)](0x2,'0'),_0x21a6e6=String(_0x135191['getMonth']()+0x1)[_0x474eb5(0x100)](0x2,'0'),_0x218f62=_0x135191['getFullYear']();return _0x135191=_0x218f62+'-'+_0x21a6e6+'-'+_0x46b7aa,_0x135191;}function a4_0x58c5(_0x4f0ca5,_0x4d6d35){const _0x18a731=a4_0x18a7();return a4_0x58c5=function(_0x58c539,_0x125fea){_0x58c539=_0x58c539-0xf2;let _0x533c5c=_0x18a731[_0x58c539];return _0x533c5c;},a4_0x58c5(_0x4f0ca5,_0x4d6d35);}function resetObject(_0x18f4a6){const _0x4c4f4e=a4_0x1ce016;let _0x3d0727=JSON[_0x4c4f4e(0x11e)](JSON[_0x4c4f4e(0x121)](_0x18f4a6));for(const _0x1c4de3 in _0x3d0727){if(typeof _0x3d0727[_0x1c4de3]===_0x4c4f4e(0x107))_0x3d0727[_0x1c4de3]=0x0;else{if(typeof _0x3d0727[_0x1c4de3]===_0x4c4f4e(0x113))_0x3d0727[_0x1c4de3]=![];else{if(Array[_0x4c4f4e(0xff)](_0x3d0727[_0x1c4de3]))_0x3d0727[_0x1c4de3]=[];else typeof _0x3d0727[_0x1c4de3]==='object'&&_0x3d0727[_0x1c4de3]!==null?resetObject(_0x3d0727[_0x1c4de3]):_0x3d0727[_0x1c4de3]='';}}}return _0x3d0727;}function preciseOperation(_0x14f4de,_0x1f06dd,_0x321d32,_0x2784fd=0xf4240){const _0x7cad6c=a4_0x1ce016;if(isNaN(_0x14f4de)||isNaN(_0x1f06dd))return NaN;if(!isFinite(_0x14f4de)||!isFinite(_0x1f06dd))return NaN;let _0x3ab224=BigInt(Math[_0x7cad6c(0x117)](_0x14f4de*_0x2784fd)),_0x2a6aeb=BigInt(Math['round'](_0x1f06dd*_0x2784fd)),_0x5f2b0c;switch(_0x321d32){case 0x1:_0x5f2b0c=_0x3ab224+_0x2a6aeb;break;case 0x2:_0x5f2b0c=_0x3ab224-_0x2a6aeb;break;case 0x3:_0x5f2b0c=_0x3ab224*_0x2a6aeb;break;case 0x4:if(_0x2a6aeb===0x0n)throw new Error('除数不能为0');_0x5f2b0c=_0x3ab224/_0x2a6aeb;break;default:throw new Error(_0x7cad6c(0x10c));}return Number(_0x5f2b0c)/_0x2784fd;}function preciseSum(_0x1641d4){const _0x4161fa=a4_0x1ce016;let _0x2c5239=0x0;for(const _0x43677c of _0x1641d4){let _0x5cab0e=0x0;if(typeof _0x43677c===_0x4161fa(0x108)){const _0x6aa51d=parseFloat(_0x43677c);!isNaN(_0x6aa51d)&&(_0x5cab0e=_0x6aa51d);}else typeof _0x43677c==='number'&&(_0x5cab0e=_0x43677c);_0x2c5239=preciseOperation(_0x2c5239,_0x5cab0e,0x1);}return _0x2c5239;}function getRelativeDate(_0x3cba4c,_0x1eb7e2=0x0){const _0x55ddf7=a4_0x1ce016,_0x5579b5=new Date(_0x3cba4c);_0x5579b5['setDate'](_0x5579b5[_0x55ddf7(0x105)]()+_0x1eb7e2);const _0x1c7fe2=_0x5579b5[_0x55ddf7(0xf2)](),_0x557ad8=(_0x5579b5[_0x55ddf7(0x102)]()+0x1)[_0x55ddf7(0xfe)]()[_0x55ddf7(0x100)](0x2,'0'),_0x3241c4=_0x5579b5[_0x55ddf7(0x105)]()['toString']()[_0x55ddf7(0x100)](0x2,'0');return _0x1c7fe2+'-'+_0x557ad8+'-'+_0x3241c4;}function a4_0x18a7(){const _0x1b2f60=['3089300EhKMrn','3489656eemdXG','error','find','getTime','10bUaIiV','boolean','floor','replace','includes','round','slice','join','map','751844eooZlX','split','setHours','parse','code','match','stringify','396600rCumus','givenName','substring','Quantity\x20should\x20be\x20greater\x20than\x200.','en-US','push','toLocaleString','forEach','getFullYear','length','6xWPffR','abs','trim','value','surname','658865xakXzD','function','call','startsWith','fjbh','toString','isArray','padStart','prototype','getMonth','12dTbIeH','hasOwnProperty','getDate','56564321lKkipn','number','string','label','7NtSqXm','4780467heFmvf','无效的操作符,操作符应为1、2、3或4'];a4_0x18a7=function(){return _0x1b2f60;};return a4_0x18a7();}function validateFields(_0x330001,_0x1771a1,_0x23b298=''){for(let _0x20bf98 of _0x1771a1){if(_0x330001[_0x20bf98]===_0x23b298)return!![];}return![];}function mergeObjects(_0x56be58,_0x24ed7b){const _0x407726=a4_0x1ce016;for(const _0x23110b in _0x56be58){_0x24ed7b[_0x407726(0x104)](_0x23110b)&&(_0x56be58[_0x23110b]=_0x24ed7b[_0x23110b]);}return _0x56be58;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
|
1
|
+
const a4_0x541ce4=a4_0x2541;(function(_0x30acc1,_0x2a0bbd){const _0x413916=a4_0x2541,_0x219c39=_0x30acc1();while(!![]){try{const _0x1efe68=-parseInt(_0x413916(0x113))/0x1*(-parseInt(_0x413916(0xfb))/0x2)+-parseInt(_0x413916(0x10b))/0x3+parseInt(_0x413916(0x119))/0x4+-parseInt(_0x413916(0xef))/0x5+parseInt(_0x413916(0xeb))/0x6*(-parseInt(_0x413916(0x11c))/0x7)+-parseInt(_0x413916(0x10f))/0x8+-parseInt(_0x413916(0xff))/0x9*(-parseInt(_0x413916(0xf2))/0xa);if(_0x1efe68===_0x2a0bbd)break;else _0x219c39['push'](_0x219c39['shift']());}catch(_0x4b4976){_0x219c39['push'](_0x219c39['shift']());}}}(a4_0x234b,0x6eb5e));function fmtNum(_0x560aaf){const _0x474869=a4_0x2541;if(_0x560aaf==0x0)return'0';if(!_0x560aaf)return'';let _0x222682=typeof _0x560aaf===_0x474869(0xf4)?parseFloat(_0x560aaf):_0x560aaf;if(isNaN(_0x222682))return'';return _0x222682['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x8f8939,_0x4186be=![]){const _0x34358e=a4_0x2541;let _0x37aad6={'surname':'','givenName':''};if(_0x4186be){const _0x38f1dc=_0x8f8939[_0x34358e(0xe7)](',')?_0x8f8939[_0x34358e(0x117)](','):_0x8f8939[_0x34358e(0x117)](/\s+/);_0x38f1dc[_0x34358e(0x100)]>=0x2&&(_0x37aad6[_0x34358e(0xe9)]=_0x38f1dc[0x0][_0x34358e(0x10c)](),_0x37aad6[_0x34358e(0xec)]=_0x38f1dc[0x1][_0x34358e(0x10c)]());}else{const _0x206ba5=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x3f236c=0x0;_0x3f236c<_0x206ba5[_0x34358e(0x100)];_0x3f236c++){const _0x135aac=_0x206ba5[_0x3f236c];if(_0x8f8939[_0x34358e(0xee)](_0x135aac))return _0x37aad6[_0x34358e(0xe9)]=_0x135aac,_0x37aad6[_0x34358e(0xec)]=_0x8f8939[_0x34358e(0x109)](_0x135aac[_0x34358e(0x100)])['trim'](),_0x37aad6;}const _0xfbfafb=_0x8f8939[_0x34358e(0x117)]('\x20');if(_0xfbfafb[_0x34358e(0x100)]===0x1){const _0x276918=_0x8f8939[_0x34358e(0x108)](/[\u4e00-\u9fa5]/);_0x37aad6[_0x34358e(0xe9)]=_0x276918?_0x276918[0x0]:'',_0x37aad6['givenName']=_0x8f8939[_0x34358e(0x105)](_0x37aad6[_0x34358e(0xe9)],'')[_0x34358e(0x10c)]();}else _0x37aad6[_0x34358e(0xe9)]=_0xfbfafb[0x0],_0x37aad6[_0x34358e(0xec)]=_0xfbfafb[_0x34358e(0x115)](0x1)[_0x34358e(0x114)]('\x20');}return _0x37aad6;}function modifyKeys(_0x28ad94,_0x56a65f={'strCode':a4_0x541ce4(0xf9),'strFjbh':a4_0x541ce4(0x102),'strGuid':a4_0x541ce4(0x10a),'strValue':a4_0x541ce4(0x11b)}){const _0x200c7b=a4_0x541ce4;if(!_0x28ad94[_0x200c7b(0x100)]||_0x28ad94===null)return[];const _0x429586=_0x28ad94['map'](_0x1ebf31=>{const _0x33347e={};for(const _0x36ba8e in _0x1ebf31){_0x56a65f['hasOwnProperty'](_0x36ba8e)?_0x33347e[_0x56a65f[_0x36ba8e]]=_0x1ebf31[_0x36ba8e]:_0x33347e[_0x36ba8e]=_0x1ebf31[_0x36ba8e];}return _0x33347e;});return _0x429586;}function sliceArray(_0x373821,_0x4e3a30,_0x283ae4){const _0x372501=a4_0x541ce4;if(_0x4e3a30<=0x0)return console[_0x372501(0xf3)](_0x372501(0x10d)),[];return _0x283ae4?_0x373821[_0x372501(0x115)](0x0,_0x4e3a30):_0x373821[_0x372501(0x115)](-_0x4e3a30);}function findDataByData(_0x116917,_0x243dc7,_0x3a1a63){const _0x2e9e6a=a4_0x541ce4,_0x1f0664=_0x116917[_0x2e9e6a(0xf5)](_0x1c6378=>_0x1c6378[_0x3a1a63]===_0x243dc7);return _0x1f0664||null;}function splitArray(_0x4346e0,_0x56ff93){const _0xbcecfb=a4_0x541ce4,_0x3816c6=[];for(let _0x1905af=0x0;_0x1905af<_0x4346e0['length'];_0x1905af+=_0x56ff93){_0x3816c6['push'](_0x4346e0[_0xbcecfb(0x115)](_0x1905af,_0x1905af+_0x56ff93));}return _0x3816c6;}function getProxyType(_0x23fee3){const _0x177a0a=a4_0x541ce4;return Object[_0x177a0a(0xfe)][_0x177a0a(0xf7)][_0x177a0a(0xfa)](_0x23fee3)[_0x177a0a(0x115)](0x8,-0x1);}let timeout=null;function debounce(_0x9e96be,_0x1c568f=0x1f4,_0x11a776=![]){const _0x10b033=a4_0x541ce4;if(timeout!==null)clearTimeout(timeout);if(_0x11a776){const _0x130df2=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1c568f);if(_0x130df2)typeof _0x9e96be===_0x10b033(0xed)&&_0x9e96be();}else timeout=setTimeout(()=>{const _0x198a4d=_0x10b033;typeof _0x9e96be===_0x198a4d(0xed)&&_0x9e96be();},_0x1c568f);}function urlEncode(_0x4236a2={}){const _0x10793a=a4_0x541ce4,_0x9c0b7b=[];for(const _0x3df7d3 in _0x4236a2){const _0xf7542d=_0x4236a2[_0x3df7d3];if(!_0xf7542d)continue;isArray(_0xf7542d)?_0xf7542d[_0x10793a(0xf6)](_0x365152=>{const _0x1ff20c=_0x10793a;_0x9c0b7b[_0x1ff20c(0x101)](_0x3df7d3+'='+_0x365152);}):_0x9c0b7b[_0x10793a(0x101)](_0x3df7d3+'='+_0xf7542d);}return _0x9c0b7b[_0x10793a(0x114)]('&');}function compareDates(_0x280615,_0x34dd2d){const _0x5cd74f=a4_0x541ce4;_0x280615=new Date(_0x280615);!_0x34dd2d?_0x34dd2d=new Date():_0x34dd2d=new Date(_0x34dd2d);_0x280615['setHours'](0x0,0x0,0x0,0x0),_0x34dd2d[_0x5cd74f(0xea)](0x0,0x0,0x0,0x0);var _0x4bab93=_0x280615[_0x5cd74f(0xf8)](),_0xdfc700=_0x34dd2d[_0x5cd74f(0xf8)]();if(_0x4bab93<_0xdfc700)return-0x1;else return _0x4bab93>_0xdfc700?0x1:0x0;}function getDaysBetween(_0x370d35,_0x25a020){const _0x205365=a4_0x541ce4,_0x5f32a2=new Date(_0x370d35),_0x141d09=new Date(_0x25a020),_0xae920e=Math['abs'](_0x5f32a2[_0x205365(0xf8)]()-_0x141d09['getTime']()),_0x38e16a=Math[_0x205365(0xf0)](_0xae920e/(0x3e8*0x3c*0x3c*0x18));return _0x38e16a+0x1;}function chineseNumeral(_0x108063){const _0x4d2ff2=a4_0x541ce4,_0xf40537=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x548008=['','拾','佰','仟'],_0xe02b74=['','万','亿','兆'];let _0xcc8080=Math[_0x4d2ff2(0xf0)](_0x108063),_0x136143=Math[_0x4d2ff2(0x11d)]((_0x108063-_0xcc8080)*0x64),_0x4feecf='';for(let _0x3e0839=0x0;_0xcc8080>0x0;_0x3e0839++){let _0x3d66fa='',_0x1e26ed=_0xcc8080%0x2710;_0xcc8080=Math['floor'](_0xcc8080/0x2710);for(let _0x2383f0=0x0;_0x1e26ed>0x0;_0x2383f0++){let _0x12d59a=_0x1e26ed%0xa;_0x3d66fa=(_0x12d59a?_0xf40537[_0x12d59a]+_0x548008[_0x2383f0]:'')+_0x3d66fa,_0x1e26ed=Math[_0x4d2ff2(0xf0)](_0x1e26ed/0xa);}_0x4feecf=_0x3d66fa+(_0x3d66fa?_0xe02b74[_0x3e0839]:_0xe02b74[_0x3e0839]&&!_0x4feecf['includes']('零')?'零':'')+_0x4feecf;}_0x4feecf+=_0x4feecf?'元':'零元';if(_0x136143>0x0){let _0x3ba7fe=Math[_0x4d2ff2(0xf0)](_0x136143/0xa),_0x32d9bc=_0x136143%0xa;_0x4feecf+=(_0x3ba7fe?_0xf40537[_0x3ba7fe]+'角':'')+(_0x32d9bc?_0xf40537[_0x32d9bc]+'分':'');}else _0x4feecf+='整';return _0x4feecf[_0x4d2ff2(0x105)](/零{2,}/g,'零')[_0x4d2ff2(0x105)](/零元/,'元');}function getMonthDate(_0x20a901){const _0x655566=a4_0x541ce4;(!_0x20a901||_0x20a901[_0x655566(0x10c)]()==='')&&(_0x20a901=new Date()['getFullYear']()+'-'+(new Date()[_0x655566(0x110)]()+0x1));let _0x2eef4e=[],[_0x1f265a,_0x325593]=_0x20a901[_0x655566(0x117)]('-')[_0x655566(0xf1)](Number),_0xab6162=new Date(_0x1f265a,_0x325593,0x0),_0x717ab6=_0xab6162['getDate']();for(let _0x407d69=0x1;_0x407d69<=_0x717ab6;_0x407d69++){let _0x166863=_0x407d69<0xa?'0'+_0x407d69:''+_0x407d69,_0x56efe8=_0x325593<0xa?'0'+_0x325593:''+_0x325593;_0x2eef4e[_0x655566(0x101)]({'date':_0x1f265a+'-'+_0x56efe8+'-'+_0x166863,'disable':!![]});}return _0x2eef4e;}function a4_0x2541(_0x2603b6,_0x4a48d7){const _0x234b89=a4_0x234b();return a4_0x2541=function(_0x25415c,_0x681807){_0x25415c=_0x25415c-0xe7;let _0x44ed8b=_0x234b89[_0x25415c];return _0x44ed8b;},a4_0x2541(_0x2603b6,_0x4a48d7);}function getToday(_0x453382){const _0x1efa96=a4_0x541ce4;var _0x5cb66e=new Date(),_0xedaca9=String(_0x5cb66e[_0x1efa96(0xe8)]())[_0x1efa96(0xfc)](0x2,'0'),_0x2ed26b=String(_0x5cb66e[_0x1efa96(0x110)]()+0x1)[_0x1efa96(0xfc)](0x2,'0'),_0x3235cb=_0x5cb66e[_0x1efa96(0x10e)]();return _0x5cb66e=_0x3235cb+'-'+_0x2ed26b+'-'+_0xedaca9,_0x5cb66e;}function resetObject(_0x423726){const _0x3e8631=a4_0x541ce4;let _0x41ea3a=JSON[_0x3e8631(0xfd)](JSON[_0x3e8631(0x107)](_0x423726));for(const _0x47646b in _0x41ea3a){if(typeof _0x41ea3a[_0x47646b]===_0x3e8631(0x116))_0x41ea3a[_0x47646b]=0x0;else{if(typeof _0x41ea3a[_0x47646b]===_0x3e8631(0x118))_0x41ea3a[_0x47646b]=![];else{if(Array[_0x3e8631(0x111)](_0x41ea3a[_0x47646b]))_0x41ea3a[_0x47646b]=[];else typeof _0x41ea3a[_0x47646b]==='object'&&_0x41ea3a[_0x47646b]!==null?resetObject(_0x41ea3a[_0x47646b]):_0x41ea3a[_0x47646b]='';}}}return _0x41ea3a;}function a4_0x234b(){const _0x3f798c=['floor','map','920xSBnPS','error','string','find','forEach','toString','getTime','code','call','1376vTgtjF','padStart','parse','prototype','131418aDZbSq','length','push','fjbh','除数不能为0','max','replace','无效的操作符,操作符应为1、2、3或4','stringify','match','substring','value','201891CQYBCo','trim','Quantity\x20should\x20be\x20greater\x20than\x200.','getFullYear','5557784AQTwWi','getMonth','isArray','endsWith','923MoZuvu','join','slice','number','split','boolean','1507972qbwSEb','_qh','label','7fgCIri','round','includes','getDate','surname','setHours','3725838jOTLzk','givenName','function','startsWith','2594690sKcoKr'];a4_0x234b=function(){return _0x3f798c;};return a4_0x234b();}function preciseOperation(_0x2e994,_0x1f4732,_0x1c5218,_0x144f4c=0xf4240){const _0x154f29=a4_0x541ce4;if(isNaN(_0x2e994)||isNaN(_0x1f4732))return NaN;if(!isFinite(_0x2e994)||!isFinite(_0x1f4732))return NaN;let _0x135634=BigInt(Math[_0x154f29(0x11d)](_0x2e994*_0x144f4c)),_0x3d8350=BigInt(Math[_0x154f29(0x11d)](_0x1f4732*_0x144f4c)),_0xc19cf8;switch(_0x1c5218){case 0x1:_0xc19cf8=_0x135634+_0x3d8350;break;case 0x2:_0xc19cf8=_0x135634-_0x3d8350;break;case 0x3:_0xc19cf8=_0x135634*_0x3d8350;break;case 0x4:if(_0x3d8350===0x0n)throw new Error(_0x154f29(0x103));_0xc19cf8=_0x135634/_0x3d8350;break;default:throw new Error(_0x154f29(0x106));}return Number(_0xc19cf8)/_0x144f4c;}function preciseSum(_0x3baa95){const _0x19d491=a4_0x541ce4;let _0x57b09f=0x0;for(const _0x56c11a of _0x3baa95){let _0x167f72=0x0;if(typeof _0x56c11a===_0x19d491(0xf4)){const _0x54a138=parseFloat(_0x56c11a);!isNaN(_0x54a138)&&(_0x167f72=_0x54a138);}else typeof _0x56c11a===_0x19d491(0x116)&&(_0x167f72=_0x56c11a);_0x57b09f=preciseOperation(_0x57b09f,_0x167f72,0x1);}return _0x57b09f;}function getRelativeDate(_0x32fb27,_0x3275f2=0x0){const _0x157f1f=a4_0x541ce4,_0x364114=new Date(_0x32fb27);_0x364114['setDate'](_0x364114[_0x157f1f(0xe8)]()+_0x3275f2);const _0x3cb198=_0x364114['getFullYear'](),_0x47ddf9=(_0x364114[_0x157f1f(0x110)]()+0x1)[_0x157f1f(0xf7)]()[_0x157f1f(0xfc)](0x2,'0'),_0x4e4f05=_0x364114['getDate']()[_0x157f1f(0xf7)]()[_0x157f1f(0xfc)](0x2,'0');return _0x3cb198+'-'+_0x47ddf9+'-'+_0x4e4f05;}function validateFields(_0x47636f,_0x449669,_0x4f0a25=''){for(let _0x167c9b of _0x449669){if(_0x47636f[_0x167c9b]===_0x4f0a25)return!![];}return![];}function mergeObjects(_0xa71403,_0xf4df50){for(const _0x2d5894 in _0xa71403){_0xf4df50['hasOwnProperty'](_0x2d5894)&&(_0xa71403[_0x2d5894]=_0xf4df50[_0x2d5894]);}return _0xa71403;}function formatToDecimal(_0x426f3e,_0x5871fb=0x2){const _0x1afd63=a4_0x541ce4;if(_0x426f3e==null||isNaN(_0x5871fb)||_0x5871fb<0x0)return'';let _0x594ce4=Number(_0x426f3e);if(!isFinite(_0x594ce4))return'';return _0x5871fb=Math[_0x1afd63(0x104)](0x0,Math[_0x1afd63(0xf0)](_0x5871fb)),_0x5871fb===0x0?Math['round'](_0x594ce4):Number(_0x594ce4['toFixed'](_0x5871fb));}function findKeysEndingWith(_0x2fa879,_0x4f25e4=a4_0x541ce4(0x11a)){const _0x11f98d=a4_0x541ce4;let _0x79e2c1=[];for(var _0x35eab2 in _0x2fa879){if(_0x2fa879['hasOwnProperty'](_0x35eab2)){if(_0x35eab2[_0x11f98d(0x112)](_0x4f25e4))_0x79e2c1[_0x11f98d(0x101)](_0x35eab2);}}return _0x79e2c1;}export default{'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
package/package.json
CHANGED
package/dist/func.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a0_0x1b3cfe=a0_0x21c1;(function(_0x4f69fa,_0x1b9f33){const _0x2a9a31=a0_0x21c1,_0x53e7a3=_0x4f69fa();while(!![]){try{const _0x4fd22c=parseInt(_0x2a9a31(0xd0))/0x1+parseInt(_0x2a9a31(0xd9))/0x2+-parseInt(_0x2a9a31(0xf7))/0x3+parseInt(_0x2a9a31(0xe5))/0x4+-parseInt(_0x2a9a31(0x101))/0x5*(-parseInt(_0x2a9a31(0x103))/0x6)+-parseInt(_0x2a9a31(0xd6))/0x7*(-parseInt(_0x2a9a31(0xef))/0x8)+-parseInt(_0x2a9a31(0xee))/0x9;if(_0x4fd22c===_0x1b9f33)break;else _0x53e7a3['push'](_0x53e7a3['shift']());}catch(_0x2303d1){_0x53e7a3['push'](_0x53e7a3['shift']());}}}(a0_0x1579,0xc8011));function a0_0x1579(){const _0x4f7a56=['tipuser','其他費用','unit','tip','childprice','service','filter','保險費用','basechildprice','insure','984196ojZGMZ','unitprice','strLx','viprecharge','兒童[占床]','附加行程','減免費用','baseprice','money','29528730AiLMAY','9832quxGKc','fJcbzlsjUnit','name','push','other','promotion','vipdiscounted','fLsjUnit','1086636MTVMQH','reduction','adultprice','price','point','itemname','vip','totaltax','map','人員費用','5pZcLPP','airtax','3041238NwfFGg','people','機場稅','nRs','list','trip','users','length','base','遊客優惠','unitpricewb','childnum','\x20*\x20','adultnum','1322686JouoVZ','rylx','num','child','totalprice','tipday','5509UKKhio','會員充值','優惠券','2839136odUVxW','elder'];a0_0x1579=function(){return _0x4f7a56;};return a0_0x1579();}function handleCosting(_0x5847c9,_0x4296f3='',_0x144553='-',_0x8a64c9={'people':a0_0x1b3cfe(0x100),'service':'附加服務','trip':a0_0x1b3cfe(0xea),'other':a0_0x1b3cfe(0xdc),'reduction':a0_0x1b3cfe(0xeb),'totalprice':'總計','airtax':a0_0x1b3cfe(0x105)},_0x167b5a={'adult':'成人','child':'兒童','childusebed':a0_0x1b3cfe(0xe9),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x1b3cfe(0xcb),'vip':'會員減免','promotion':'促銷','insure':a0_0x1b3cfe(0xe2),'coupon':a0_0x1b3cfe(0xd8),'point':'積分','tax':'稅金','viprecharge':a0_0x1b3cfe(0xd7),'r':'人','t':'天'}){const _0x4660aa=a0_0x1b3cfe;let _0xcade4c=[];const _0x15cbb7=_0x4660aa(0xce),_0x4c4a98=_0x5847c9[_0x4660aa(0xe1)](_0x270f0b=>_0x270f0b[_0x4660aa(0xe7)]=='base');if(_0x4c4a98[_0x4660aa(0xc9)]){let _0x2382f1={'title':_0x8a64c9[_0x4660aa(0x104)],'type':_0x4660aa(0xca),'list':[]};_0x4c4a98[_0x4660aa(0xff)](_0x415671=>{const _0x43a654=_0x4660aa;_0x2382f1[_0x43a654(0x107)]['push']({'title':_0x167b5a[_0x415671['strJgbm']],'info':_0x4296f3+_0x415671['fLsjUnit']+_0x15cbb7+_0x415671[_0x43a654(0x106)],'nRs':_0x415671['nRs'],'unit':_0x415671[_0x43a654(0xf6)],'cb':_0x415671[_0x43a654(0xf0)],'type':_0x43a654(0xca)});}),_0xcade4c['push'](_0x2382f1);}const _0x2fa7ce=_0x5847c9[_0x4660aa(0xe1)](_0x3bc9e3=>_0x3bc9e3[_0x4660aa(0xe7)]=='service');if(_0x2fa7ce['length']){let _0x4d1cea={'title':_0x8a64c9['service'],'type':'service','list':[]};_0x2fa7ce[_0x4660aa(0xff)](_0x619e22=>{const _0x1b30c8=_0x4660aa;_0x4d1cea['list'][_0x1b30c8(0xf2)]({'title':_0x619e22[_0x1b30c8(0xf1)]+('['+_0x619e22[_0x1b30c8(0xfc)]+']'),'info':_0x4296f3+_0x619e22[_0x1b30c8(0xe6)]+_0x15cbb7+_0x619e22['num'],'nRs':_0x619e22[_0x1b30c8(0xd2)],'unit':_0x619e22[_0x1b30c8(0xe6)],'cb':_0x619e22[_0x1b30c8(0xec)],'type':_0x1b30c8(0xe0)});}),_0xcade4c['push'](_0x4d1cea);}const _0xf3818f=_0x5847c9[_0x4660aa(0xe1)](_0x5a37a5=>_0x5a37a5[_0x4660aa(0xe7)]==_0x4660aa(0x108));if(_0xf3818f['length']){let _0x416477={'title':_0x8a64c9[_0x4660aa(0x108)],'type':_0x4660aa(0x108),'list':[]};_0xf3818f[_0x4660aa(0xff)](_0x1faffd=>{const _0x15d172=_0x4660aa;_0x1faffd[_0x15d172(0xcf)]!='0'&&_0x416477[_0x15d172(0x107)]['push']({'title':_0x1faffd[_0x15d172(0xf1)]+('['+_0x167b5a['adult']+']'),'info':_0x4296f3+_0x1faffd[_0x15d172(0xf9)]+_0x15cbb7+_0x1faffd[_0x15d172(0xcf)],'nRs':_0x1faffd[_0x15d172(0xcf)],'unit':_0x1faffd['adultprice'],'cb':_0x1faffd['baseadultprice'],'type':_0x15d172(0x108)}),_0x1faffd[_0x15d172(0xcd)]!='0'&&_0x416477[_0x15d172(0x107)][_0x15d172(0xf2)]({'title':_0x1faffd[_0x15d172(0xf1)]+('['+_0x167b5a[_0x15d172(0xd3)]+']'),'info':_0x4296f3+_0x1faffd[_0x15d172(0xdf)]+_0x15cbb7+_0x1faffd[_0x15d172(0xcd)],'nRs':_0x1faffd['childnum'],'unit':_0x1faffd['childprice'],'cb':_0x1faffd[_0x15d172(0xe3)],'type':_0x15d172(0x108)});}),_0xcade4c[_0x4660aa(0xf2)](_0x416477);}let _0x48b3d2=[];const _0x1b55ab=_0x5847c9[_0x4660aa(0xe1)](_0x8e440d=>_0x8e440d[_0x4660aa(0xe7)]=='elder');_0x1b55ab[_0x4660aa(0xc9)]&&_0x1b55ab[_0x4660aa(0xff)](_0x4e0439=>{const _0x324941=_0x4660aa,_0x53e22e=_0x4e0439[_0x324941(0xf1)]['split']('|')||[''];_0x48b3d2[_0x324941(0xf2)]({'title':_0x167b5a[_0x324941(0xda)]+('['+_0x53e22e[0x0]+']'),'info':_0x4296f3+_0x144553+_0x4e0439[_0x324941(0xed)],'unit':_0x4e0439[_0x324941(0xed)],'cb':_0x4e0439[_0x324941(0xed)],'type':'elder'});});const _0x3ad8ec=_0x5847c9[_0x4660aa(0xe1)](_0x48dcf5=>_0x48dcf5['strLx']==_0x4660aa(0xf5));_0x3ad8ec[_0x4660aa(0xc9)]&&_0x3ad8ec[_0x4660aa(0xff)](_0x11d3d5=>{const _0x2af805=_0x4660aa;_0x48b3d2[_0x2af805(0xf2)]({'title':_0x167b5a[_0x2af805(0xfd)]+('['+_0x11d3d5[_0x2af805(0xf1)]+']'),'info':_0x4296f3+_0x144553+_0x11d3d5['money'],'unit':_0x11d3d5['money'],'cb':_0x11d3d5['money'],'type':'vip'});});const _0xbcadf1=_0x5847c9['filter'](_0x58f5d8=>_0x58f5d8[_0x4660aa(0xe7)]==_0x4660aa(0xf4));_0xbcadf1[_0x4660aa(0xc9)]&&_0xbcadf1['map'](_0x39d7c7=>{const _0x1fcc25=_0x4660aa;_0x48b3d2[_0x1fcc25(0xf2)]({'title':_0x167b5a['promotion'],'info':_0x4296f3+_0x144553+_0x39d7c7['money'],'unit':_0x39d7c7['money'],'cb':_0x39d7c7[_0x1fcc25(0xed)],'type':_0x1fcc25(0xf4)});});_0x48b3d2[_0x4660aa(0xc9)]&&_0xcade4c[_0x4660aa(0xf2)]({'title':_0x8a64c9[_0x4660aa(0xf8)],'type':_0x4660aa(0xf8),'list':_0x48b3d2});const _0x356fc2=_0x5847c9[_0x4660aa(0xe1)](_0x228fdc=>_0x228fdc[_0x4660aa(0xe7)]==_0x4660aa(0x102));if(_0x356fc2['length']){let _0xec2ac4={'title':_0x8a64c9[_0x4660aa(0x102)],'type':_0x4660aa(0x102),'list':[]};_0x356fc2[_0x4660aa(0xff)](_0x4b8b7b=>{const _0x3fe617=_0x4660aa;_0xec2ac4[_0x3fe617(0x107)][_0x3fe617(0xf2)]({'title':_0x167b5a[_0x4b8b7b['rylx']],'info':_0x4296f3+_0x4b8b7b[_0x3fe617(0xe6)]+_0x15cbb7+_0x4b8b7b['sl'],'nRs':_0x4b8b7b['sl'],'unit':_0x4b8b7b[_0x3fe617(0xe6)],'cb':_0x4b8b7b[_0x3fe617(0xcc)],'type':_0x4b8b7b[_0x3fe617(0xd1)]});}),_0xcade4c[_0x4660aa(0xf2)](_0xec2ac4);}const _0x23dbf3=[_0x4660aa(0xca),_0x4660aa(0xe0),_0x4660aa(0x108),_0x4660aa(0xda),_0x4660aa(0xf5),_0x4660aa(0xf4),_0x4660aa(0x102)],_0x266ded=_0x5847c9[_0x4660aa(0xe1)](_0x3ef3f4=>!_0x23dbf3['includes'](_0x3ef3f4[_0x4660aa(0xe7)]));let _0x4a7aa2={'title':_0x8a64c9[_0x4660aa(0xf3)],'type':'other','list':[]};for(var _0x21a39b=0x0;_0x21a39b<_0x266ded[_0x4660aa(0xc9)];_0x21a39b++){const _0x186f2b=_0x266ded[_0x21a39b];_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xe8)&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x4660aa(0xe8)]+('['+_0x186f2b[_0x4660aa(0xf1)]+']'),'info':_0x4296f3+_0x186f2b[_0x4660aa(0xed)],'unit':_0x186f2b[_0x4660aa(0xed)],'type':_0x186f2b['strLx']}),_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xe4)&&_0x4a7aa2['list'][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x4660aa(0xe4)]+('['+_0x186f2b[_0x4660aa(0xf1)]+']'),'info':_0x4296f3+_0x186f2b[_0x4660aa(0xdd)]+_0x15cbb7+_0x186f2b[_0x4660aa(0x109)]+_0x167b5a['r'],'nRs':_0x186f2b[_0x4660aa(0x109)],'unit':_0x186f2b[_0x4660aa(0xdd)],'cb':_0x186f2b[_0x4660aa(0xdd)],'type':_0x4660aa(0xe4)}),(_0x186f2b[_0x4660aa(0xe7)]=='coupon'||_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xfb))&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b['strLx']],'info':_0x4296f3+_0x144553+_0x186f2b[_0x4660aa(0xed)],'unit':_0x186f2b[_0x4660aa(0xed)],'type':_0x186f2b[_0x4660aa(0xe7)]}),_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xde)&&_0x4a7aa2['list'][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b[_0x4660aa(0xe7)]],'info':_0x4296f3+_0x186f2b[_0x4660aa(0xde)]+_0x15cbb7+_0x186f2b[_0x4660aa(0xdb)]+_0x167b5a['r']+_0x15cbb7+_0x186f2b[_0x4660aa(0xd5)]+_0x167b5a['t'],'nRs':_0x186f2b['tipuser'],'count':_0x186f2b[_0x4660aa(0xd5)],'unit':_0x186f2b[_0x4660aa(0xde)],'type':_0x186f2b[_0x4660aa(0xe7)]}),_0x186f2b[_0x4660aa(0xe7)]=='tax'&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b['strLx']],'info':_0x4296f3+_0x186f2b[_0x4660aa(0xfe)],'unit':_0x186f2b['totaltax'],'type':_0x186f2b[_0x4660aa(0xe7)]});}_0x4a7aa2['list']['length']&&_0xcade4c[_0x4660aa(0xf2)](_0x4a7aa2);const _0x1c95c8=_0x5847c9[_0x4660aa(0xe1)](_0x3542f4=>_0x3542f4[_0x4660aa(0xe7)]==_0x4660aa(0xd4));return _0x1c95c8['length']&&_0xcade4c['push']({'title':_0x8a64c9[_0x4660aa(0xd4)],'type':'totalprice','list':[{'title':_0x8a64c9[_0x4660aa(0xd4)],'info':_0x4296f3+_0x1c95c8[0x0][_0x4660aa(0xfa)]}]}),_0xcade4c;}function a0_0x21c1(_0x8f09d3,_0x3fc339){const _0x1579b3=a0_0x1579();return a0_0x21c1=function(_0x21c1df,_0xa195a0){_0x21c1df=_0x21c1df-0xc9;let _0x25341e=_0x1579b3[_0x21c1df];return _0x25341e;},a0_0x21c1(_0x8f09d3,_0x3fc339);}export default{'handleCosting':handleCosting};
|