mat-date 1.7.53 → 1.7.55

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/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4de0cd={};a0_0x4de0cd['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x4de0cd),exports['MDateUtil']=void 0x0;const a0_0x50e9ee=(_0x322980,_0x10b653=0x2)=>_0x322980['toString']()['padStart'](_0x10b653,'0');function a0_0x1574dd(_0x417990,_0x561ff1){try{return _0x417990();}catch(_0x554ce1){if(_0x561ff1)return _0x561ff1;throw new Error('UNKNOWN');}}function a0_0x150cde(_0x17fdac){try{if(_0x17fdac instanceof Date)return _0x17fdac['getTime']();if(typeof _0x17fdac==='number')return _0x17fdac;if(typeof _0x17fdac==='string')return new Date(_0x17fdac)['getTime']();if(_0x17fdac instanceof a0_0x5dc1b8)return _0x17fdac['toTime']();if(_0x17fdac['idkey']==='mdateutil')return _0x17fdac['toTime']();return 0x0;}catch(_0x315a0c){throw new Error('ERROR');}}function a0_0x349ebb(_0x3a1d70){function _0x4f1f52(_0x25e55d){const _0x4b9f13={};return _0x4b9f13['weekday']=_0x25e55d,a0_0x1574dd(()=>new Intl['DateTimeFormat'](_0x3a1d70['localCode'],_0x4b9f13)['format'](a0_0x150cde(_0x3a1d70)),'');}function _0x589982(){return _0x4f1f52('long');}function _0xdc19f4(){return _0x4f1f52('short');}function _0x286dd7(){return _0x4f1f52('narrow');}const _0x1ee9dc={};return _0x1ee9dc['ln']=_0x589982,_0x1ee9dc['sh']=_0xdc19f4,_0x1ee9dc['nr']=_0x286dd7,_0x1ee9dc;}function a0_0x323ee6(_0x30fc4f,_0x4c4c02,_0xb6a1c7,_0x2903b8){const _0x1e6e15=a0_0x150cde(_0x30fc4f),_0x5e1a20=a0_0x150cde(_0x4c4c02),_0x2b6119=a0_0x150cde(_0xb6a1c7),_0xb703c2=a0_0x150cde(_0x2903b8);return _0x2b6119<=_0x1e6e15&&_0xb703c2>=_0x1e6e15&&_0xb703c2<=_0x5e1a20||_0x2b6119>=_0x1e6e15&&_0x2b6119<=_0x5e1a20&&_0xb703c2>=_0x5e1a20||_0x2b6119>=_0x1e6e15&&_0x2b6119<=_0x5e1a20&&_0xb703c2<=_0x5e1a20||_0x2b6119<=_0x1e6e15&&_0xb703c2>=_0x5e1a20;}function a0_0x3de491(_0x1014f1){let _0x378da0=undefined,_0x1bf529=undefined,_0x1f3b9f=undefined,_0x3c4ba9=undefined;try{const _0x574fce=(_0x1014f1||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x378da0=_0x574fce['length']>=0x1?Number(_0x574fce[0x0]):undefined,_0x1bf529=_0x574fce['length']>=0x2?Number(_0x574fce[0x1]):undefined,_0x1f3b9f=_0x574fce['length']>=0x3?Number(_0x574fce[0x2]):undefined;}catch(_0x331459){}try{let _0x10f3f5=_0x1014f1||'',_0x4c6841=/\.\d{3}/g,_0x4edfa5=_0x10f3f5['match'](_0x4c6841)[0x0]['split']('.')['filter'](_0x483110=>Boolean(_0x483110));_0x3c4ba9=_0x4edfa5['length']>=0x1?Number(_0x4edfa5[0x0]):undefined;}catch(_0x44f953){}const _0x51cceb={};return _0x51cceb['h']=_0x378da0,_0x51cceb['m']=_0x1bf529,_0x51cceb['s']=_0x1f3b9f,_0x51cceb['ms']=_0x3c4ba9,_0x51cceb;}class a0_0x5dc1b8{['val']=new Date();static ['glCode']=undefined;['code']=undefined;['dyfrmt']=a0_0x349ebb(this);get['localCode'](){return this['code'];}static['new'](){return new a0_0x5dc1b8()['setCode'](a0_0x5dc1b8['glCode']);}static['setCode'](_0x56dd22){return a0_0x5dc1b8['glCode']=_0x56dd22,this;}static['seperator'](){return a0_0x1574dd(()=>new Date()['toLocaleDateString'](a0_0x5dc1b8['glCode'])['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x1574dd(()=>a0_0x5dc1b8['new']()['setTime'](this['toTime']()));}['setCode'](_0x259593){return this['code']=_0x259593,this;}['seperator'](){return a0_0x1574dd(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['zone'](){return a0_0x1574dd(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x8d2e90=this['code']){return a0_0x1574dd(()=>{return new Intl['Locale'](_0x8d2e90)?.['timeZones']||[];},null);}['region'](_0x5903e5=this['code']){return a0_0x1574dd(()=>{return new Intl['Locale'](_0x5903e5)['region'];},null);}['year'](){return this['val']['getFullYear']();}['month'](){return this['val']['getMonth']()+0x1;}['monthUtc'](){return this['val']['getMonth']();}['day'](){return this['val']['getDate']();}['hours'](){return this['val']['getHours']();}['min'](){return this['val']['getMinutes']();}['sec'](){return this['val']['getSeconds']();}['msec'](){return this['val']['getMilliseconds']();}['dayOfWeek'](){const _0x5dabdf=this['val']['getDay']();return _0x5dabdf?_0x5dabdf:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x473571){return this['val']['setFullYear'](_0x473571),this;}['setMonth'](_0x49e9e5){return this['val']['setMonth'](_0x49e9e5-0x1),this;}['setMonthUtc'](_0x54fa4d){return this['val']['setMonth'](_0x54fa4d),this;}['setDay'](_0x17d6fc){return this['val']['setDate'](_0x17d6fc),this;}['setHour'](_0x5dbc6c){return this['val']['setHours'](_0x5dbc6c),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x2ad351){return this['val']['setMinutes'](_0x2ad351),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x217df3){return this['val']['setSeconds'](_0x217df3),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x5a78b){return this['val']['setMilliseconds'](_0x5a78b),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x239655){return this['val']=new Date(_0x239655),this;}['setTime'](_0x4fda53){return this['val']=new Date(_0x4fda53),this;}['setDate'](_0x45dc26){return this['val']=new Date(_0x45dc26),this;}['setDateInputValue'](_0x5a91aa){return this['val']=new Date(_0x5a91aa?.['replace']('T','\x20')),this;}['setVal'](_0x1a3886){return a0_0x1574dd(()=>{return a0_0x5dc1b8['new']()['setTime'](a0_0x150cde(_0x1a3886));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x50e9ee(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x50e9ee(this['month']())+'-'+a0_0x50e9ee(this['day']());}['toTimeInput'](_0x4615ee=!![]){const _0x35932c=[];return _0x35932c['push'](a0_0x50e9ee(this['hours']())),_0x35932c['push'](a0_0x50e9ee(this['min']())),_0x4615ee&&_0x35932c['push'](a0_0x50e9ee(this['sec']())),_0x35932c['join'](':');}['toDateTimeInput'](_0x13fd85=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x13fd85);}['strDate'](){const _0x5bac49={};return _0x5bac49['month']='2-digit',_0x5bac49['day']='2-digit',_0x5bac49['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x5bac49);}['strDateLocal'](_0x57a333){return this['val']['toLocaleDateString'](this['code'],_0x57a333);}['strTime'](){return a0_0x50e9ee(this['hours']())+':'+a0_0x50e9ee(this['min']())+':'+a0_0x50e9ee(this['sec']());}['strTimeLocale'](_0x37f38f){return this['val']['toLocaleTimeString'](this['code'],_0x37f38f);}['strHHmm'](){return a0_0x50e9ee(this['hours']())+':'+a0_0x50e9ee(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0xd777ac){return this['val']['toLocaleString'](this['code'],_0xd777ac);}['strYears'](){return this['val']['getFullYear']()['toString']();}['strMounth'](){return a0_0x50e9ee(this['month'](),0x2);}['strDay'](){return a0_0x50e9ee(this['day'](),0x2);}['strHour'](){return a0_0x50e9ee(this['hours'](),0x2);}['strMin'](){return a0_0x50e9ee(this['min'](),0x2);}['strSec'](){return a0_0x50e9ee(this['sec'](),0x2);}['strMsec'](){return a0_0x50e9ee(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x2b8201){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x2b8201*0x18)),this;}['addHours'](_0x52e807){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x52e807)),this;}['addMins'](_0x4b4624){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x4b4624)),this;}['startOfDay'](){return this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setDate'](this['val'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x196935){return a0_0x1574dd(()=>{return this['cpy']()['toTime']()===a0_0x150cde(_0x196935);});}['gt'](_0x551b21){return a0_0x1574dd(()=>{return this['cpy']()['toTime']()>a0_0x150cde(_0x551b21);});}['gte'](_0x429444){return a0_0x1574dd(()=>{return this['cpy']()['toTime']()>=a0_0x150cde(_0x429444);});}['lt'](_0x3589ba){return a0_0x1574dd(()=>{return this['cpy']()['toTime']()<a0_0x150cde(_0x3589ba);});}['lte'](_0x42feef){return a0_0x1574dd(()=>{return this['cpy']()['toTime']()<=a0_0x150cde(_0x42feef);});}['btw'](_0x42d56d,_0x3877f7){return a0_0x1574dd(()=>{const _0x516459=a0_0x150cde(_0x42d56d),_0x1cfd69=a0_0x150cde(_0x3877f7),_0x5bd17b=this['cpy']()['toTime']();return _0x516459<_0x5bd17b&&_0x5bd17b<_0x1cfd69;});}['btweq'](_0x41ab79,_0x283a8d){return a0_0x1574dd(()=>{const _0x5034d2=a0_0x150cde(_0x41ab79),_0xee9e71=a0_0x150cde(_0x283a8d),_0x3e884a=this['cpy']()['toTime']();return _0x5034d2<=_0x3e884a&&_0x3e884a<=_0xee9e71;});}['btwEqStart'](_0x330993,_0x16f6da){return a0_0x1574dd(()=>{const _0x4e9e91=a0_0x150cde(_0x330993),_0x2c2ca9=a0_0x150cde(_0x16f6da),_0x3a266b=this['cpy']()['toTime']();return _0x4e9e91<=_0x3a266b&&_0x3a266b<_0x2c2ca9;});}['btwEqEnd'](_0x4c4164,_0x1369cb){return a0_0x1574dd(()=>{const _0x44c81c=a0_0x150cde(_0x4c4164),_0x1d086c=a0_0x150cde(_0x1369cb),_0x56acef=this['cpy']()['toTime']();return _0x44c81c<_0x56acef&&_0x56acef<=_0x1d086c;});}static['diffDays'](_0x415dc7,_0xdf9b28,_0x27fa05){return a0_0x1574dd(()=>{const _0x23e16b=a0_0x150cde(_0x415dc7),_0x2e3b6c=a0_0x150cde(_0xdf9b28);return _0x27fa05?Math['abs'](_0x23e16b-_0x2e3b6c)/0x36ee80/0x18:(_0x23e16b-_0x2e3b6c)/0x36ee80/0x18;});}static['diffHours'](_0x5d3027,_0x428aa6,_0x1ff84e){return a0_0x1574dd(()=>{const _0x3cef0b=a0_0x150cde(_0x5d3027),_0x2f89f1=a0_0x150cde(_0x428aa6);return _0x1ff84e?Math['abs'](_0x3cef0b-_0x2f89f1)/0x36ee80:(_0x3cef0b-_0x2f89f1)/0x36ee80;});}static['diffMins'](_0xd81e7e,_0x357d22,_0x4505f3){return a0_0x1574dd(()=>{const _0x2959e6=a0_0x150cde(_0xd81e7e),_0x1f4768=a0_0x150cde(_0x357d22);return _0x4505f3?Math['abs'](_0x2959e6-_0x1f4768)/0x3e8/0x3c:(_0x2959e6-_0x1f4768)/0x3e8/0x3c;});}static['diffSecs'](_0x196df1,_0x50f46c,_0x1d2206){return a0_0x1574dd(()=>{const _0x3010ca=a0_0x150cde(_0x196df1),_0x7a1e7a=a0_0x150cde(_0x50f46c);return _0x1d2206?Math['abs'](_0x3010ca-_0x7a1e7a)/0x3e8:(_0x3010ca-_0x7a1e7a)/0x3e8;});}static['s1'](_0x148b8b,_0x524c9a,_0x5b3047,_0x489453){return a0_0x1574dd(()=>a0_0x323ee6(_0x148b8b,_0x524c9a,_0x5b3047,_0x489453));}static['divideTime'](_0x2f54cf){return a0_0x1574dd(()=>a0_0x3de491(_0x2f54cf));}}exports['MDateUtil']=a0_0x5dc1b8;const a0_0x42cef7={};a0_0x42cef7['value']='mdateutil',a0_0x42cef7['writable']=![],a0_0x42cef7['enumerable']=!![],a0_0x42cef7['configurable']=![],Object['defineProperty'](a0_0x5dc1b8['prototype'],'idkey',a0_0x42cef7);
1
+ 'use strict';const a0_0x10f28a={};a0_0x10f28a['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x10f28a),exports['MDateUtil']=void 0x0;const a0_0x1fad9b=(_0x274dad,_0x2d26e3=0x2)=>_0x274dad['toString']()['padStart'](_0x2d26e3,'0');function a0_0x21229f(_0xac492b,_0x25ec8a){try{return _0xac492b();}catch(_0x4e2cb8){if(_0x25ec8a)return _0x25ec8a;throw new Error('UNKNOWN');}}function a0_0x9a0b81(_0x2382cf){try{if(_0x2382cf instanceof Date)return _0x2382cf['getTime']();if(typeof _0x2382cf==='number')return _0x2382cf;if(typeof _0x2382cf==='string')return new Date(_0x2382cf)['getTime']();if(_0x2382cf instanceof a0_0x40aa95)return _0x2382cf['toTime']();if(_0x2382cf['idkey']==='mdateutil')return _0x2382cf['toTime']();return 0x0;}catch(_0x4979fb){throw new Error('ERROR');}}function a0_0x13a906(_0x50eb05){function _0x31a919(_0x1a500){const _0x37c0dd={};return _0x37c0dd['weekday']=_0x1a500,a0_0x21229f(()=>new Intl['DateTimeFormat'](_0x50eb05['localCode'],_0x37c0dd)['format'](a0_0x9a0b81(_0x50eb05)),'');}function _0x50bd64(){return _0x31a919('long');}function _0x18f3f3(){return _0x31a919('short');}function _0x42426a(){return _0x31a919('narrow');}const _0x5b2918={};return _0x5b2918['ln']=_0x50bd64,_0x5b2918['sh']=_0x18f3f3,_0x5b2918['nr']=_0x42426a,_0x5b2918;}function a0_0x2ee2d9(_0x4bbfca,_0x2c454e,_0x13969a,_0x29ee39){const _0x49d4e2=a0_0x9a0b81(_0x4bbfca),_0x212b05=a0_0x9a0b81(_0x2c454e),_0x48f55c=a0_0x9a0b81(_0x13969a),_0x5c44d1=a0_0x9a0b81(_0x29ee39);return _0x48f55c<=_0x49d4e2&&_0x5c44d1>=_0x49d4e2&&_0x5c44d1<=_0x212b05||_0x48f55c>=_0x49d4e2&&_0x48f55c<=_0x212b05&&_0x5c44d1>=_0x212b05||_0x48f55c>=_0x49d4e2&&_0x48f55c<=_0x212b05&&_0x5c44d1<=_0x212b05||_0x48f55c<=_0x49d4e2&&_0x5c44d1>=_0x212b05;}function a0_0x3b3bbd(_0x395999){let _0x258a96=undefined,_0x5e6766=undefined,_0x2fc952=undefined,_0x49ba94=undefined;try{const _0x2c2c44=(_0x395999||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x258a96=_0x2c2c44['length']>=0x1?Number(_0x2c2c44[0x0]):undefined,_0x5e6766=_0x2c2c44['length']>=0x2?Number(_0x2c2c44[0x1]):undefined,_0x2fc952=_0x2c2c44['length']>=0x3?Number(_0x2c2c44[0x2]):undefined;}catch(_0x5cc880){}try{let _0x832a61=_0x395999||'',_0x47930c=/\.\d{3}/g,_0x3f6703=_0x832a61['match'](_0x47930c)[0x0]['split']('.')['filter'](_0x42e182=>Boolean(_0x42e182));_0x49ba94=_0x3f6703['length']>=0x1?Number(_0x3f6703[0x0]):undefined;}catch(_0xec16ff){}const _0x46724e={};return _0x46724e['h']=_0x258a96,_0x46724e['m']=_0x5e6766,_0x46724e['s']=_0x2fc952,_0x46724e['ms']=_0x49ba94,_0x46724e;}class a0_0x40aa95{['val']=new Date();static ['glCode']=undefined;['code']=undefined;['dyfrmt']=a0_0x13a906(this);get['localCode'](){return this['code'];}static['new'](){return new a0_0x40aa95()['setCode'](a0_0x40aa95['glCode']);}static['setCode'](_0x1224f3){return a0_0x40aa95['glCode']=_0x1224f3,this;}static['seperator'](){return a0_0x21229f(()=>new Date()['toLocaleDateString'](a0_0x40aa95['glCode'])['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x21229f(()=>a0_0x40aa95['new']()['setTime'](this['toTime']()));}['setCode'](_0x200ff6){return this['code']=_0x200ff6,this;}['seperator'](){return a0_0x21229f(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['zone'](){return a0_0x21229f(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x5578d4=this['code']){return a0_0x21229f(()=>{return new Intl['Locale'](_0x5578d4)?.['timeZones']||[];},null);}['region'](_0x540da3=this['code']){return a0_0x21229f(()=>{return new Intl['Locale'](_0x540da3)['region'];},null);}['year'](){return this['val']['getFullYear']();}['month'](){return this['val']['getMonth']()+0x1;}['monthUtc'](){return this['val']['getMonth']();}['day'](){return this['val']['getDate']();}['hours'](){return this['val']['getHours']();}['min'](){return this['val']['getMinutes']();}['sec'](){return this['val']['getSeconds']();}['msec'](){return this['val']['getMilliseconds']();}['dayOfWeek'](){const _0x3fe2c4=this['val']['getDay']();return _0x3fe2c4?_0x3fe2c4:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x4ace63){return this['val']['setFullYear'](_0x4ace63),this;}['setMonth'](_0xbc4f05){return this['val']['setMonth'](_0xbc4f05-0x1),this;}['setMonthUtc'](_0x275397){return this['val']['setMonth'](_0x275397),this;}['setDay'](_0x51cff3){return this['val']['setDate'](_0x51cff3),this;}['setHour'](_0xa5b9ea){return this['val']['setHours'](_0xa5b9ea),this;}['startOfHours'](){return this['setHour'](0x0),this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setHour'](0x17),this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x475173){return this['val']['setMinutes'](_0x475173),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x341051){return this['val']['setSeconds'](_0x341051),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x1a0f65){return this['val']['setMilliseconds'](_0x1a0f65),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x395ca2){return this['val']=new Date(_0x395ca2),this;}['setTime'](_0x4b9f7b){return this['val']=new Date(_0x4b9f7b),this;}['setDate'](_0x136a65){return this['val']=new Date(_0x136a65),this;}['setDateInputValue'](_0x4c7bdd){return this['val']=new Date(_0x4c7bdd?.['replace']('T','\x20')),this;}['setVal'](_0x50de8e){return a0_0x21229f(()=>{return a0_0x40aa95['new']()['setTime'](a0_0x9a0b81(_0x50de8e));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x1fad9b(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x1fad9b(this['month']())+'-'+a0_0x1fad9b(this['day']());}['toTimeInput'](_0x1ccfeb=!![]){const _0xb97b71=[];return _0xb97b71['push'](a0_0x1fad9b(this['hours']())),_0xb97b71['push'](a0_0x1fad9b(this['min']())),_0x1ccfeb&&_0xb97b71['push'](a0_0x1fad9b(this['sec']())),_0xb97b71['join'](':');}['toDateTimeInput'](_0x878085=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x878085);}['strDate'](){const _0x5b682b={};return _0x5b682b['month']='2-digit',_0x5b682b['day']='2-digit',_0x5b682b['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x5b682b);}['strDateLocal'](_0x51bb72){return this['val']['toLocaleDateString'](this['code'],_0x51bb72);}['strTime'](){return a0_0x1fad9b(this['hours']())+':'+a0_0x1fad9b(this['min']())+':'+a0_0x1fad9b(this['sec']());}['strTimeLocale'](_0x2a9319){return this['val']['toLocaleTimeString'](this['code'],_0x2a9319);}['strHHmm'](){return a0_0x1fad9b(this['hours']())+':'+a0_0x1fad9b(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x1a7306){return this['val']['toLocaleString'](this['code'],_0x1a7306);}['strYears'](){return this['val']['getFullYear']()['toString']();}['strMounth'](){return a0_0x1fad9b(this['month'](),0x2);}['strDay'](){return a0_0x1fad9b(this['day'](),0x2);}['strHour'](){return a0_0x1fad9b(this['hours'](),0x2);}['strMin'](){return a0_0x1fad9b(this['min'](),0x2);}['strSec'](){return a0_0x1fad9b(this['sec'](),0x2);}['strMsec'](){return a0_0x1fad9b(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x24f433){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x24f433*0x18)),this;}['addHours'](_0xe73abc){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0xe73abc)),this;}['addMins'](_0x2806b4){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x2806b4)),this;}['startOfDay'](){return this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setDate'](this['val'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x3f223a){return a0_0x21229f(()=>{return this['cpy']()['toTime']()===a0_0x9a0b81(_0x3f223a);});}['gt'](_0x485fa5){return a0_0x21229f(()=>{return this['cpy']()['toTime']()>a0_0x9a0b81(_0x485fa5);});}['gte'](_0x110c08){return a0_0x21229f(()=>{return this['cpy']()['toTime']()>=a0_0x9a0b81(_0x110c08);});}['lt'](_0x2bfb2d){return a0_0x21229f(()=>{return this['cpy']()['toTime']()<a0_0x9a0b81(_0x2bfb2d);});}['lte'](_0x372317){return a0_0x21229f(()=>{return this['cpy']()['toTime']()<=a0_0x9a0b81(_0x372317);});}['btw'](_0x191b57,_0x5beaf0){return a0_0x21229f(()=>{const _0x48b0a0=a0_0x9a0b81(_0x191b57),_0x3a55ef=a0_0x9a0b81(_0x5beaf0),_0x1325fb=this['cpy']()['toTime']();return _0x48b0a0<_0x1325fb&&_0x1325fb<_0x3a55ef;});}['btweq'](_0x40081d,_0x225d82){return a0_0x21229f(()=>{const _0x8c4bb5=a0_0x9a0b81(_0x40081d),_0xc18a90=a0_0x9a0b81(_0x225d82),_0x25fee4=this['cpy']()['toTime']();return _0x8c4bb5<=_0x25fee4&&_0x25fee4<=_0xc18a90;});}['btwEqStart'](_0x210471,_0x7c3679){return a0_0x21229f(()=>{const _0x436b5d=a0_0x9a0b81(_0x210471),_0x378b13=a0_0x9a0b81(_0x7c3679),_0xc5c3ee=this['cpy']()['toTime']();return _0x436b5d<=_0xc5c3ee&&_0xc5c3ee<_0x378b13;});}['btwEqEnd'](_0x1a2176,_0x32a3c5){return a0_0x21229f(()=>{const _0x506047=a0_0x9a0b81(_0x1a2176),_0x192b29=a0_0x9a0b81(_0x32a3c5),_0x388c2a=this['cpy']()['toTime']();return _0x506047<_0x388c2a&&_0x388c2a<=_0x192b29;});}static['diffDays'](_0x4d80f4,_0x9fc2b8,_0x5375ad){return a0_0x21229f(()=>{const _0x1660e8=a0_0x9a0b81(_0x4d80f4),_0x34f348=a0_0x9a0b81(_0x9fc2b8);return _0x5375ad?Math['abs'](_0x1660e8-_0x34f348)/0x36ee80/0x18:(_0x1660e8-_0x34f348)/0x36ee80/0x18;});}static['diffHours'](_0x231f7e,_0x2c8ccb,_0x32fd54){return a0_0x21229f(()=>{const _0x57a55f=a0_0x9a0b81(_0x231f7e),_0x237bb2=a0_0x9a0b81(_0x2c8ccb);return _0x32fd54?Math['abs'](_0x57a55f-_0x237bb2)/0x36ee80:(_0x57a55f-_0x237bb2)/0x36ee80;});}static['diffMins'](_0x27fe5c,_0x26fa59,_0x4343c2){return a0_0x21229f(()=>{const _0x444484=a0_0x9a0b81(_0x27fe5c),_0x48ca92=a0_0x9a0b81(_0x26fa59);return _0x4343c2?Math['abs'](_0x444484-_0x48ca92)/0x3e8/0x3c:(_0x444484-_0x48ca92)/0x3e8/0x3c;});}static['diffSecs'](_0x4d10bb,_0x5246d4,_0x1c6f9f){return a0_0x21229f(()=>{const _0x263f9d=a0_0x9a0b81(_0x4d10bb),_0x1a20f5=a0_0x9a0b81(_0x5246d4);return _0x1c6f9f?Math['abs'](_0x263f9d-_0x1a20f5)/0x3e8:(_0x263f9d-_0x1a20f5)/0x3e8;});}static['s1'](_0x44672e,_0x149761,_0x2450e9,_0x1b522b){return a0_0x21229f(()=>a0_0x2ee2d9(_0x44672e,_0x149761,_0x2450e9,_0x1b522b));}static['divideTime'](_0x20493c){return a0_0x21229f(()=>a0_0x3b3bbd(_0x20493c));}}exports['MDateUtil']=a0_0x40aa95;const a0_0x4fb14c={};a0_0x4fb14c['value']='mdateutil',a0_0x4fb14c['writable']=![],a0_0x4fb14c['enumerable']=!![],a0_0x4fb14c['configurable']=![],Object['defineProperty'](a0_0x40aa95['prototype'],'idkey',a0_0x4fb14c);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x2c9564=this&&this['__createBinding']||(Object['create']?function(_0x1a1b6b,_0x4a061c,_0x34ebf2,_0x16c528){if(_0x16c528===undefined)_0x16c528=_0x34ebf2;var _0x15dea7=Object['getOwnPropertyDescriptor'](_0x4a061c,_0x34ebf2);if(!_0x15dea7||('get'in _0x15dea7?!_0x4a061c['__esModule']:_0x15dea7['writable']||_0x15dea7['configurable'])){var _0x106da9={};_0x106da9['enumerable']=!![],_0x106da9['get']=function(){return _0x4a061c[_0x34ebf2];},_0x15dea7=_0x106da9;}Object['defineProperty'](_0x1a1b6b,_0x16c528,_0x15dea7);}:function(_0x5f433e,_0x51f949,_0xc91f13,_0x3b8c16){if(_0x3b8c16===undefined)_0x3b8c16=_0xc91f13;_0x5f433e[_0x3b8c16]=_0x51f949[_0xc91f13];}),a0_0x5980fd=this&&this['__exportStar']||function(_0x190c06,_0x47804e){for(var _0x57bd8f in _0x190c06)if(_0x57bd8f!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x47804e,_0x57bd8f))a0_0x2c9564(_0x47804e,_0x190c06,_0x57bd8f);},a0_0x549bf4={};a0_0x549bf4['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x549bf4),a0_0x5980fd(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x4f0a31=this&&this['__createBinding']||(Object['create']?function(_0x476322,_0x13517a,_0x459015,_0x4a8de7){if(_0x4a8de7===undefined)_0x4a8de7=_0x459015;var _0x2fbdab=Object['getOwnPropertyDescriptor'](_0x13517a,_0x459015);if(!_0x2fbdab||('get'in _0x2fbdab?!_0x13517a['__esModule']:_0x2fbdab['writable']||_0x2fbdab['configurable'])){var _0x15d4c6={};_0x15d4c6['enumerable']=!![],_0x15d4c6['get']=function(){return _0x13517a[_0x459015];},_0x2fbdab=_0x15d4c6;}Object['defineProperty'](_0x476322,_0x4a8de7,_0x2fbdab);}:function(_0x3333b8,_0x1f27de,_0x586fc5,_0x4438a9){if(_0x4438a9===undefined)_0x4438a9=_0x586fc5;_0x3333b8[_0x4438a9]=_0x1f27de[_0x586fc5];}),a0_0x55ad42=this&&this['__exportStar']||function(_0xc3d374,_0x3c3924){for(var _0x241c34 in _0xc3d374)if(_0x241c34!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3c3924,_0x241c34))a0_0x4f0a31(_0x3c3924,_0xc3d374,_0x241c34);},a0_0xe19ab={};a0_0xe19ab['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0xe19ab),a0_0x55ad42(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.7.53",
3
+ "version": "1.7.55",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",