mat-date 1.8.92 → 1.8.98

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_0xf0bbf9={};a0_0xf0bbf9['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0xf0bbf9),exports['MDateUtil']=void 0x0;const a0_0x5d12e9=require('@js-temporal/polyfill'),a0_0x17f77f=(_0x40f686,_0x55949a=0x2)=>_0x40f686['toString']()['padStart'](_0x55949a,'0');function a0_0x42422c(_0x256b11,_0x2eaa16){try{return _0x256b11();}catch(_0x5baaad){if(_0x2eaa16)return _0x2eaa16;throw new Error('UNKNOWN');}}function a0_0x147b28(_0x3041e8,_0x10f193){try{if(_0x3041e8 instanceof Date)return a0_0x5d12e9['Temporal']['Instant']['fromEpochMilliseconds'](_0x3041e8['getTime']())['toZonedDateTimeISO'](_0x10f193)['epochMilliseconds'];if(typeof _0x3041e8==='number')return _0x3041e8;if(typeof _0x3041e8==='string')return a0_0x5d12e9['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x3041e8)['getTime']())['toZonedDateTimeISO'](_0x10f193)['epochMilliseconds'];if(_0x3041e8 instanceof a0_0xe1de1)return _0x3041e8['toTime']();if(_0x3041e8['idkey']==='MDateUtil')return _0x3041e8['toTime']();return 0x0;}catch(_0x3fdb76){throw new Error('ERROR');}}function a0_0x250e0b(_0x4c3ed4){function _0x33aedb(_0x36ae72){const _0x4e120e={};return _0x4e120e['weekday']=_0x36ae72,a0_0x42422c(()=>new Intl['DateTimeFormat'](_0x4c3ed4['localCode'],_0x4e120e)['format'](a0_0x147b28(_0x4c3ed4,_0x4c3ed4['zone'])),'');}function _0x94c39b(){return _0x33aedb('long');}function _0x3574aa(){return _0x33aedb('short');}function _0x53612e(){return _0x33aedb('narrow');}const _0x17d92e={};return _0x17d92e['ln']=_0x94c39b,_0x17d92e['sh']=_0x3574aa,_0x17d92e['nr']=_0x53612e,_0x17d92e;}function a0_0x2429b0(_0x247b89){let _0x4dba80=undefined,_0x5b7b0f=undefined,_0x433d57=undefined,_0x43bcee=undefined;try{const _0x2f909b=(_0x247b89||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x4dba80=_0x2f909b['length']>=0x1?Number(_0x2f909b[0x0]):undefined,_0x5b7b0f=_0x2f909b['length']>=0x2?Number(_0x2f909b[0x1]):undefined,_0x433d57=_0x2f909b['length']>=0x3?Number(_0x2f909b[0x2]):undefined;}catch(_0xe98ffe){}try{let _0x2acb67=_0x247b89||'',_0x30626d=/\.\d{3}/g,_0x3b1d50=_0x2acb67['match'](_0x30626d)[0x0]['split']('.')['filter'](_0x21f864=>Boolean(_0x21f864));_0x43bcee=_0x3b1d50['length']>=0x1?Number(_0x3b1d50[0x0]):undefined;}catch(_0x4a035c){}const _0x1045df={};return _0x1045df['h']=_0x4dba80,_0x1045df['m']=_0x5b7b0f,_0x1045df['s']=_0x433d57,_0x1045df['ms']=_0x43bcee,_0x1045df;}let a0_0x33b52c=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x10d0fe=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0xe1de1{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x250e0b(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x410056){this['val']=this['val']['with']({'year':_0x410056['getFullYear'](),'month':_0x410056['getMonth']()+0x1,'day':_0x410056['getDate'](),'hour':_0x410056['getHours'](),'minute':_0x410056['getMinutes'](),'second':_0x410056['getSeconds'](),'millisecond':_0x410056['getMilliseconds']()});}['init'](){const _0xbd3037=new Date();return this['val']=a0_0x5d12e9['Temporal']['Instant']['from'](_0xbd3037['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x250e0b(this),this;}['toString'](){return'---';}static['new'](){return new a0_0xe1de1()['setCode'](a0_0x33b52c)['setZone'](a0_0x10d0fe)['init']();}static['setCode'](_0x3f3600){return a0_0x33b52c=_0x3f3600,this;}static['setZone'](_0x9e9fe4){return a0_0x10d0fe=_0x9e9fe4,this;}static['seperator'](){return a0_0x42422c(()=>new Date()['toLocaleDateString'](a0_0x33b52c)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x42422c(()=>a0_0xe1de1['new']()['setTime'](this['toTime']()));}['setCode'](_0x4ef2d8){return this['_code']=_0x4ef2d8,this;}['setZone'](_0x431a58){return this['_zone']=_0x431a58,this;}['seperator'](){return a0_0x42422c(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x42422c(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x2577da=this['_code']){return a0_0x42422c(()=>{return new Intl['Locale'](_0x2577da)?.['timeZones']||[];},null);}['region'](_0x5efd44=this['_code']){return a0_0x42422c(()=>{return new Intl['Locale'](_0x5efd44)['region'];},null);}['year'](){return this['val']['year'];}['month'](){return this['val']['month'];}['monthUtc'](){return this['val']['month']-0x1;}['day'](){return this['val']['day'];}['hours'](){return this['val']['hour'];}['min'](){return this['val']['minute'];}['sec'](){return this['val']['second'];}['msec'](){return this['val']['millisecond'];}['dayOfWeek'](){const _0x10a39d=this['val']['dayOfWeek'];return _0x10a39d?_0x10a39d:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x4463ff){const _0x44468f={};return _0x44468f['year']=_0x4463ff,this['val']=this['val']['with'](_0x44468f),this;}['setMonth'](_0x13abef){const _0x477cc0={};return _0x477cc0['month']=_0x13abef,this['val']=this['val']['with'](_0x477cc0),this;}['setMonthUtc'](_0x2db119){const _0x25e526={};return _0x25e526['month']=_0x2db119+0x1,this['val']=this['val']['with'](_0x25e526),this;}['setDay'](_0x3ac420){const _0x55ff0c={};return _0x55ff0c['day']=_0x3ac420,this['val']=this['val']['with'](_0x55ff0c),this;}['setHour'](_0x1f626d){const _0x372ffb={};return _0x372ffb['hour']=_0x1f626d,this['val']=this['val']['with'](_0x372ffb),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'](_0x2406af){const _0x1f00a9={};return _0x1f00a9['minute']=_0x2406af,this['val']=this['val']['with'](_0x1f00a9),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x4a52b8){const _0x3d2147={};return _0x3d2147['second']=_0x4a52b8,this['val']=this['val']['with'](_0x3d2147),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x140ab0){const _0x2ab5ef={};return _0x2ab5ef['millisecond']=_0x140ab0,this['val']=this['val']['with'](_0x2ab5ef),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x515197){const _0x387174=_0x515197?new Date(_0x515197?.['replace']('T','\x20')):new Date();return this['val']=a0_0x5d12e9['Temporal']['Instant']['from'](_0x387174['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x12a067){return this['val']=a0_0x5d12e9['Temporal']['Instant']['fromEpochMilliseconds'](_0x12a067||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x58377f){return this['setIsoDate'](_0x58377f?.['toISOString']()),this;}['setDateInputValue'](_0x1bd6bb){const _0x2ba90e=_0x1bd6bb?new Date(_0x1bd6bb?.['replace']('T','\x20')):new Date();return _0x2ba90e['getTime']()&&(this['val']=a0_0x5d12e9['Temporal']['Instant']['from'](_0x2ba90e?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x2ba90e)),this;}['setVal'](_0x21c4e5){return a0_0x42422c(()=>{return a0_0xe1de1['new']()['setTime'](a0_0x147b28(_0x21c4e5,this['zone']));});}['toIsoDate'](){return this['val']['toInstant']()['toString']();}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return new Date(this['val']['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x17f77f(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x17f77f(this['month']())+'-'+a0_0x17f77f(this['day']());}['toTimeInput'](_0x573b58=!![]){const _0x877f59=[];return _0x877f59['push'](a0_0x17f77f(this['hours']())),_0x877f59['push'](a0_0x17f77f(this['min']())),_0x573b58&&_0x877f59['push'](a0_0x17f77f(this['sec']())),_0x877f59['join'](':');}['toDateTimeInput'](_0x3c7d12=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x3c7d12);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x25c033={};return _0x25c033['month']='2-digit',_0x25c033['day']='2-digit',_0x25c033['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x25c033);}['strTime'](){return a0_0x17f77f(this['hours']())+':'+a0_0x17f77f(this['min']())+':'+a0_0x17f77f(this['sec']());}['strHHmm'](){return a0_0x17f77f(this['hours']())+':'+a0_0x17f77f(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x2de7db){return this['val']['toLocaleString'](this['_code'],_0x2de7db);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x17f77f(this['month'](),0x2);}['strDay'](){return a0_0x17f77f(this['day'](),0x2);}['strHour'](){return a0_0x17f77f(this['hours'](),0x2);}['strMin'](){return a0_0x17f77f(this['min'](),0x2);}['strSec'](){return a0_0x17f77f(this['sec'](),0x2);}['strMsec'](){return a0_0x17f77f(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x48d925){const _0x54f366={};return _0x54f366['days']=_0x48d925,this['val']=this['val']['add'](_0x54f366),this;}['addHours'](_0x474eb5){const _0x4a1f39={};return _0x4a1f39['hours']=_0x474eb5,this['val']=this['val']['add'](_0x4a1f39),this;}['addMins'](_0x47530f){const _0x116474={};return _0x116474['minutes']=_0x47530f,this['val']=this['val']['add'](_0x116474),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),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['setTime'](this['val']['epochMilliseconds'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x3ad9ca){return a0_0x42422c(()=>{return this['cpy']()['toTime']()===a0_0x147b28(_0x3ad9ca,this['zone']);});}['gt'](_0x5aa0a9){return a0_0x42422c(()=>{return this['cpy']()['toTime']()>a0_0x147b28(_0x5aa0a9,this['zone']);});}['gte'](_0x1a3569){return a0_0x42422c(()=>{return this['cpy']()['toTime']()>=a0_0x147b28(_0x1a3569,this['zone']);});}['lt'](_0x5b6052){return a0_0x42422c(()=>{return this['cpy']()['toTime']()<a0_0x147b28(_0x5b6052,this['zone']);});}['lte'](_0x1739b2){return a0_0x42422c(()=>{return this['cpy']()['toTime']()<=a0_0x147b28(_0x1739b2,this['zone']);});}['btw'](_0x2aebe2,_0x2455c9){return a0_0x42422c(()=>{const _0x41f472=a0_0x147b28(_0x2aebe2,this['zone']),_0x322cbc=a0_0x147b28(_0x2455c9,this['zone']),_0x36bba6=this['cpy']()['toTime']();return _0x41f472<_0x36bba6&&_0x36bba6<_0x322cbc;});}['btweq'](_0x4ed65b,_0x35e2ea){return a0_0x42422c(()=>{const _0x3c1d3c=a0_0x147b28(_0x4ed65b,this['zone']),_0xfed69f=a0_0x147b28(_0x35e2ea,this['zone']),_0x352060=this['cpy']()['toTime']();return _0x3c1d3c<=_0x352060&&_0x352060<=_0xfed69f;});}['btwEqStart'](_0x24d20d,_0x56e99c){return a0_0x42422c(()=>{const _0xe2f669=a0_0x147b28(_0x24d20d,this['zone']),_0xdfe4cb=a0_0x147b28(_0x56e99c,this['zone']),_0x255532=this['cpy']()['toTime']();return _0xe2f669<=_0x255532&&_0x255532<_0xdfe4cb;});}['btwEqEnd'](_0x2ebf1a,_0x4aea25){return a0_0x42422c(()=>{const _0x225841=a0_0x147b28(_0x2ebf1a,this['zone']),_0x3c14f1=a0_0x147b28(_0x4aea25,this['zone']),_0x43ecf2=this['cpy']()['toTime']();return _0x225841<_0x43ecf2&&_0x43ecf2<=_0x3c14f1;});}static['diffDays'](_0x8ac994,_0x1a96bf,_0x1bbab0){return a0_0x42422c(()=>{const _0x423c28=a0_0x147b28(_0x8ac994,a0_0x10d0fe),_0x4a6052=a0_0x147b28(_0x1a96bf,a0_0x10d0fe);return _0x1bbab0?Math['abs'](_0x423c28-_0x4a6052)/0x36ee80/0x18:(_0x423c28-_0x4a6052)/0x36ee80/0x18;});}static['diffHours'](_0xd02527,_0x19b37d,_0x25953d){return a0_0x42422c(()=>{const _0x4f127e=a0_0x147b28(_0xd02527,a0_0x10d0fe),_0x3f4d57=a0_0x147b28(_0x19b37d,a0_0x10d0fe);return _0x25953d?Math['abs'](_0x4f127e-_0x3f4d57)/0x36ee80:(_0x4f127e-_0x3f4d57)/0x36ee80;});}static['diffMins'](_0x1d39ae,_0xf585fd,_0xbd1927){return a0_0x42422c(()=>{const _0x1a6c5e=a0_0x147b28(_0x1d39ae,a0_0x10d0fe),_0xc7f40f=a0_0x147b28(_0xf585fd,a0_0x10d0fe);return _0xbd1927?Math['abs'](_0x1a6c5e-_0xc7f40f)/0x3e8/0x3c:(_0x1a6c5e-_0xc7f40f)/0x3e8/0x3c;});}static['diffSecs'](_0x25839e,_0x4b7140,_0x186702){return a0_0x42422c(()=>{const _0x40c110=a0_0x147b28(_0x25839e,a0_0x10d0fe),_0x1d48e7=a0_0x147b28(_0x4b7140,a0_0x10d0fe);return _0x186702?Math['abs'](_0x40c110-_0x1d48e7)/0x3e8:(_0x40c110-_0x1d48e7)/0x3e8;});}static['divideTime'](_0x573189){return a0_0x42422c(()=>a0_0x2429b0(_0x573189));}}exports['MDateUtil']=a0_0xe1de1;const a0_0x36c68e={};a0_0x36c68e['value']='MDateUtil',a0_0x36c68e['writable']=![],a0_0x36c68e['enumerable']=!![],a0_0x36c68e['configurable']=![],Object['defineProperty'](a0_0xe1de1['prototype'],'idkey',a0_0x36c68e);
1
+ 'use strict';const a0_0x49e868={};a0_0x49e868['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x49e868),exports['MDateUtil']=void 0x0;const a0_0x2b29eb=require('@js-temporal/polyfill'),a0_0x332223=(_0x8dfbd4,_0x1b5dc0=0x2)=>_0x8dfbd4['toString']()['padStart'](_0x1b5dc0,'0');function a0_0x100e85(_0x5b5e31,_0x1f9ca6){try{return _0x5b5e31();}catch(_0x533a6b){if(_0x1f9ca6)return _0x1f9ca6;throw new Error('UNKNOWN');}}function a0_0x2ed480(_0x331504,_0x350c69){try{if(_0x331504 instanceof Date)return a0_0x2b29eb['Temporal']['Instant']['fromEpochMilliseconds'](_0x331504['getTime']())['toZonedDateTimeISO'](_0x350c69)['epochMilliseconds'];if(typeof _0x331504==='number')return _0x331504;if(typeof _0x331504==='string')return a0_0x2b29eb['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x331504)['getTime']())['toZonedDateTimeISO'](_0x350c69)['epochMilliseconds'];if(_0x331504 instanceof a0_0x16f3f7)return _0x331504['toTime']();if(_0x331504['idkey']==='MDateUtil')return _0x331504['toTime']();return 0x0;}catch(_0x58c6f0){throw new Error('ERROR');}}function a0_0x32aa35(_0xf9b345){function _0x5ab5a8(_0x2812cb){const _0x14f369={};return _0x14f369['weekday']=_0x2812cb,a0_0x100e85(()=>new Intl['DateTimeFormat'](_0xf9b345['localCode'],_0x14f369)['format'](a0_0x2ed480(_0xf9b345,_0xf9b345['zone'])),'');}function _0x3b32b4(){return _0x5ab5a8('long');}function _0x4b5c3f(){return _0x5ab5a8('short');}function _0x444d5b(){return _0x5ab5a8('narrow');}const _0x5e0108={};return _0x5e0108['ln']=_0x3b32b4,_0x5e0108['sh']=_0x4b5c3f,_0x5e0108['nr']=_0x444d5b,_0x5e0108;}function a0_0x17dcb7(_0x3fdbab){let _0x34efc=undefined,_0x51710f=undefined,_0x48d239=undefined,_0x5f49f1=undefined;try{const _0x530b70=(_0x3fdbab||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x34efc=_0x530b70['length']>=0x1?Number(_0x530b70[0x0]):undefined,_0x51710f=_0x530b70['length']>=0x2?Number(_0x530b70[0x1]):undefined,_0x48d239=_0x530b70['length']>=0x3?Number(_0x530b70[0x2]):undefined;}catch(_0x31a916){}try{let _0x3d3446=_0x3fdbab||'',_0x2df65d=/\.\d{3}/g,_0x3c7c0c=_0x3d3446['match'](_0x2df65d)[0x0]['split']('.')['filter'](_0x2bfff8=>Boolean(_0x2bfff8));_0x5f49f1=_0x3c7c0c['length']>=0x1?Number(_0x3c7c0c[0x0]):undefined;}catch(_0x18fc13){}const _0x4243a3={};return _0x4243a3['h']=_0x34efc,_0x4243a3['m']=_0x51710f,_0x4243a3['s']=_0x48d239,_0x4243a3['ms']=_0x5f49f1,_0x4243a3;}let a0_0x6b35f2=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x2bbfca=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x16f3f7{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x32aa35(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x18646e){this['val']=this['val']['with']({'year':_0x18646e['getFullYear'](),'month':_0x18646e['getMonth']()+0x1,'day':_0x18646e['getDate'](),'hour':_0x18646e['getHours'](),'minute':_0x18646e['getMinutes'](),'second':_0x18646e['getSeconds'](),'millisecond':_0x18646e['getMilliseconds']()});}['init'](){const _0x54ff57=new Date();return this['val']=a0_0x2b29eb['Temporal']['Instant']['from'](_0x54ff57['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x32aa35(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x16f3f7()['setCode'](a0_0x6b35f2)['setZone'](a0_0x2bbfca)['init']();}static['setCode'](_0x34704e){return a0_0x6b35f2=_0x34704e,this;}static['setZone'](_0x1a0a2d){return a0_0x2bbfca=_0x1a0a2d,this;}static['seperator'](){return a0_0x100e85(()=>new Date()['toLocaleDateString'](a0_0x6b35f2)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x100e85(()=>a0_0x16f3f7['new']()['setTime'](this['toTime']()));}['setCode'](_0x4c5376){return this['_code']=_0x4c5376,this;}['setZone'](_0x3aacc8){return this['_zone']=_0x3aacc8,this;}['seperator'](){return a0_0x100e85(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x100e85(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x19c811=this['_code']){return a0_0x100e85(()=>{return new Intl['Locale'](_0x19c811)?.['timeZones']||[];},null);}['region'](_0x7f767f=this['_code']){return a0_0x100e85(()=>{return new Intl['Locale'](_0x7f767f)['region'];},null);}['year'](){return this['val']['year'];}['month'](){return this['val']['month'];}['monthUtc'](){return this['val']['month']-0x1;}['day'](){return this['val']['day'];}['hours'](){return this['val']['hour'];}['min'](){return this['val']['minute'];}['sec'](){return this['val']['second'];}['msec'](){return this['val']['millisecond'];}['dayOfWeek'](){const _0x3e96bf=this['val']['dayOfWeek'];return _0x3e96bf?_0x3e96bf:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x521139){const _0x5bcc76={};return _0x5bcc76['year']=_0x521139,this['val']=this['val']['with'](_0x5bcc76),this;}['setMonth'](_0x3ae511){const _0x254518={};return _0x254518['month']=_0x3ae511,this['val']=this['val']['with'](_0x254518),this;}['setMonthUtc'](_0x3ba1e9){const _0x4914c9={};return _0x4914c9['month']=_0x3ba1e9+0x1,this['val']=this['val']['with'](_0x4914c9),this;}['setDay'](_0x151024){const _0x49ff9b={};return _0x49ff9b['day']=_0x151024,this['val']=this['val']['with'](_0x49ff9b),this;}['setHour'](_0x72541){const _0x49bc54={};return _0x49bc54['hour']=_0x72541,this['val']=this['val']['with'](_0x49bc54),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'](_0x1b0d1e){const _0x430784={};return _0x430784['minute']=_0x1b0d1e,this['val']=this['val']['with'](_0x430784),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x530f62){const _0x26d2d0={};return _0x26d2d0['second']=_0x530f62,this['val']=this['val']['with'](_0x26d2d0),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x18f57a){const _0x14743b={};return _0x14743b['millisecond']=_0x18f57a,this['val']=this['val']['with'](_0x14743b),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x343bd2){return a0_0x100e85(()=>{const _0x1d286b=new Date(_0x343bd2?.['replace']('T','\x20'));_0x1d286b['getTime']()&&(this['val']=a0_0x2b29eb['Temporal']['Instant']['from'](_0x1d286b['toISOString']())['toZonedDateTimeISO'](this['zone']));}),this;}['setTime'](_0x1401f5){return a0_0x100e85(()=>{this['val']=a0_0x2b29eb['Temporal']['Instant']['fromEpochMilliseconds'](_0x1401f5||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']);}),this;}['setDate'](_0x448f68){return a0_0x100e85(()=>{this['setIsoDate'](_0x448f68?.['toISOString']());}),this;}['setDateInputValue'](_0xf8be8a){return a0_0x100e85(()=>{const _0x508d3a=new Date(_0xf8be8a?.['replace']('T','\x20'));_0x508d3a['getTime']()&&(this['val']=a0_0x2b29eb['Temporal']['Instant']['from'](_0x508d3a?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x508d3a));}),this;}['setVal'](_0x2b0d55){return a0_0x100e85(()=>{return a0_0x16f3f7['new']()['setTime'](a0_0x2ed480(_0x2b0d55,this['zone']));},this);}['toIsoDate'](){const _0x58951d={};return _0x58951d['fractionalSecondDigits']=0x3,this['val']['toInstant']()['toString'](_0x58951d);}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return new Date(this['val']['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x332223(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x332223(this['month']())+'-'+a0_0x332223(this['day']());}['toTimeInput'](_0x3f2b70=!![]){const _0x332ba6=[];return _0x332ba6['push'](a0_0x332223(this['hours']())),_0x332ba6['push'](a0_0x332223(this['min']())),_0x3f2b70&&_0x332ba6['push'](a0_0x332223(this['sec']())),_0x332ba6['join'](':');}['toDateTimeInput'](_0x2b5cb9=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x2b5cb9);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x2c9abe={};return _0x2c9abe['month']='2-digit',_0x2c9abe['day']='2-digit',_0x2c9abe['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x2c9abe);}['strTime'](){return a0_0x332223(this['hours']())+':'+a0_0x332223(this['min']())+':'+a0_0x332223(this['sec']());}['strHHmm'](){return a0_0x332223(this['hours']())+':'+a0_0x332223(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x1806fc){return this['val']['toLocaleString'](this['_code'],_0x1806fc);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x332223(this['month'](),0x2);}['strDay'](){return a0_0x332223(this['day'](),0x2);}['strHour'](){return a0_0x332223(this['hours'](),0x2);}['strMin'](){return a0_0x332223(this['min'](),0x2);}['strSec'](){return a0_0x332223(this['sec'](),0x2);}['strMsec'](){return a0_0x332223(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x97d9fa){const _0x4eb913={};return _0x4eb913['days']=_0x97d9fa,this['val']=this['val']['add'](_0x4eb913),this;}['addHours'](_0x55288b){const _0x6227eb={};return _0x6227eb['hours']=_0x55288b,this['val']=this['val']['add'](_0x6227eb),this;}['addMins'](_0x546fe7){const _0x4aca4b={};return _0x4aca4b['minutes']=_0x546fe7,this['val']=this['val']['add'](_0x4aca4b),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),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['setTime'](this['val']['epochMilliseconds'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x176c7a){return a0_0x100e85(()=>{return this['cpy']()['toTime']()===a0_0x2ed480(_0x176c7a,this['zone']);});}['gt'](_0x4f9ff3){return a0_0x100e85(()=>{return this['cpy']()['toTime']()>a0_0x2ed480(_0x4f9ff3,this['zone']);});}['gte'](_0x7f32ad){return a0_0x100e85(()=>{return this['cpy']()['toTime']()>=a0_0x2ed480(_0x7f32ad,this['zone']);});}['lt'](_0x253287){return a0_0x100e85(()=>{return this['cpy']()['toTime']()<a0_0x2ed480(_0x253287,this['zone']);});}['lte'](_0x4ca5db){return a0_0x100e85(()=>{return this['cpy']()['toTime']()<=a0_0x2ed480(_0x4ca5db,this['zone']);});}['btw'](_0x5d0f5a,_0x1d4e3d){return a0_0x100e85(()=>{const _0x484dba=a0_0x2ed480(_0x5d0f5a,this['zone']),_0x5e7764=a0_0x2ed480(_0x1d4e3d,this['zone']),_0x11ad71=this['cpy']()['toTime']();return _0x484dba<_0x11ad71&&_0x11ad71<_0x5e7764;});}['btweq'](_0x1f83ff,_0x5de3ba){return a0_0x100e85(()=>{const _0x28fec5=a0_0x2ed480(_0x1f83ff,this['zone']),_0x4faee2=a0_0x2ed480(_0x5de3ba,this['zone']),_0x78df2b=this['cpy']()['toTime']();return _0x28fec5<=_0x78df2b&&_0x78df2b<=_0x4faee2;});}['btwEqStart'](_0x12558f,_0x1b2baa){return a0_0x100e85(()=>{const _0x46eedb=a0_0x2ed480(_0x12558f,this['zone']),_0x57bb61=a0_0x2ed480(_0x1b2baa,this['zone']),_0x596b6e=this['cpy']()['toTime']();return _0x46eedb<=_0x596b6e&&_0x596b6e<_0x57bb61;});}['btwEqEnd'](_0x3e732f,_0x487f4c){return a0_0x100e85(()=>{const _0x580c87=a0_0x2ed480(_0x3e732f,this['zone']),_0x3a3dad=a0_0x2ed480(_0x487f4c,this['zone']),_0x474e7f=this['cpy']()['toTime']();return _0x580c87<_0x474e7f&&_0x474e7f<=_0x3a3dad;});}static['diffDays'](_0x320d13,_0x26c061,_0x555b71){return a0_0x100e85(()=>{const _0x5df632=a0_0x2ed480(_0x320d13,a0_0x2bbfca),_0x3de9b5=a0_0x2ed480(_0x26c061,a0_0x2bbfca);return _0x555b71?Math['abs'](_0x5df632-_0x3de9b5)/0x36ee80/0x18:(_0x5df632-_0x3de9b5)/0x36ee80/0x18;});}static['diffHours'](_0x3418b2,_0xcbe86d,_0x90eee1){return a0_0x100e85(()=>{const _0x45740c=a0_0x2ed480(_0x3418b2,a0_0x2bbfca),_0x273018=a0_0x2ed480(_0xcbe86d,a0_0x2bbfca);return _0x90eee1?Math['abs'](_0x45740c-_0x273018)/0x36ee80:(_0x45740c-_0x273018)/0x36ee80;});}static['diffMins'](_0x40f086,_0x3a2c2d,_0x4703d2){return a0_0x100e85(()=>{const _0x345823=a0_0x2ed480(_0x40f086,a0_0x2bbfca),_0x27c1ec=a0_0x2ed480(_0x3a2c2d,a0_0x2bbfca);return _0x4703d2?Math['abs'](_0x345823-_0x27c1ec)/0x3e8/0x3c:(_0x345823-_0x27c1ec)/0x3e8/0x3c;});}static['diffSecs'](_0x25992,_0x5af913,_0x271c62){return a0_0x100e85(()=>{const _0x4e3b15=a0_0x2ed480(_0x25992,a0_0x2bbfca),_0x37734d=a0_0x2ed480(_0x5af913,a0_0x2bbfca);return _0x271c62?Math['abs'](_0x4e3b15-_0x37734d)/0x3e8:(_0x4e3b15-_0x37734d)/0x3e8;});}static['divideTime'](_0x3240d8){return a0_0x100e85(()=>a0_0x17dcb7(_0x3240d8));}}exports['MDateUtil']=a0_0x16f3f7;const a0_0x2b85f9={};a0_0x2b85f9['value']='MDateUtil',a0_0x2b85f9['writable']=![],a0_0x2b85f9['enumerable']=!![],a0_0x2b85f9['configurable']=![],Object['defineProperty'](a0_0x16f3f7['prototype'],'idkey',a0_0x2b85f9);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x22b308=this&&this['__createBinding']||(Object['create']?function(_0x1d92ac,_0x3b9b65,_0x38a78f,_0x320870){if(_0x320870===undefined)_0x320870=_0x38a78f;var _0x181b64=Object['getOwnPropertyDescriptor'](_0x3b9b65,_0x38a78f);if(!_0x181b64||('get'in _0x181b64?!_0x3b9b65['__esModule']:_0x181b64['writable']||_0x181b64['configurable'])){var _0x88146f={};_0x88146f['enumerable']=!![],_0x88146f['get']=function(){return _0x3b9b65[_0x38a78f];},_0x181b64=_0x88146f;}Object['defineProperty'](_0x1d92ac,_0x320870,_0x181b64);}:function(_0x206501,_0x3df46d,_0x5d5da2,_0x26f627){if(_0x26f627===undefined)_0x26f627=_0x5d5da2;_0x206501[_0x26f627]=_0x3df46d[_0x5d5da2];}),a0_0x4e5bd7=this&&this['__exportStar']||function(_0x446640,_0x49e250){for(var _0x1b1ea8 in _0x446640)if(_0x1b1ea8!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x49e250,_0x1b1ea8))a0_0x22b308(_0x49e250,_0x446640,_0x1b1ea8);},a0_0x4a523c={};a0_0x4a523c['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x4a523c),a0_0x4e5bd7(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0xda2559=this&&this['__createBinding']||(Object['create']?function(_0x16cbe5,_0x11f1e4,_0x1a13a9,_0x1fd979){if(_0x1fd979===undefined)_0x1fd979=_0x1a13a9;var _0x4ecf61=Object['getOwnPropertyDescriptor'](_0x11f1e4,_0x1a13a9);if(!_0x4ecf61||('get'in _0x4ecf61?!_0x11f1e4['__esModule']:_0x4ecf61['writable']||_0x4ecf61['configurable'])){var _0x2bd359={};_0x2bd359['enumerable']=!![],_0x2bd359['get']=function(){return _0x11f1e4[_0x1a13a9];},_0x4ecf61=_0x2bd359;}Object['defineProperty'](_0x16cbe5,_0x1fd979,_0x4ecf61);}:function(_0x4a8bfd,_0x2372a0,_0x3dc369,_0x11f93b){if(_0x11f93b===undefined)_0x11f93b=_0x3dc369;_0x4a8bfd[_0x11f93b]=_0x2372a0[_0x3dc369];}),a0_0x1d47e5=this&&this['__exportStar']||function(_0x2c0df6,_0x3aec90){for(var _0x28a5a5 in _0x2c0df6)if(_0x28a5a5!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3aec90,_0x28a5a5))a0_0xda2559(_0x3aec90,_0x2c0df6,_0x28a5a5);},a0_0x343d1b={};a0_0x343d1b['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x343d1b),a0_0x1d47e5(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.8.92",
3
+ "version": "1.8.98",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",