mat-date 1.8.88 → 1.8.90

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_0x3a3966={};a0_0x3a3966['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3a3966),exports['MDateUtil']=void 0x0;const a0_0x5f2445=require('@js-temporal/polyfill'),a0_0x5b1ac3=(_0x2cc8ef,_0x4d1434=0x2)=>_0x2cc8ef['toString']()['padStart'](_0x4d1434,'0');function a0_0x253b3f(_0x1f0c68,_0x3c9844){try{return _0x1f0c68();}catch(_0x8d5dd7){if(_0x3c9844)return _0x3c9844;throw new Error('UNKNOWN');}}function a0_0x19adff(_0x528c06,_0x225cc8){try{if(_0x528c06 instanceof Date)return a0_0x5f2445['Temporal']['Instant']['fromEpochMilliseconds'](_0x528c06['getTime']())['toZonedDateTimeISO'](_0x225cc8)['epochMilliseconds'];if(typeof _0x528c06==='number')return _0x528c06;if(typeof _0x528c06==='string')return a0_0x5f2445['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x528c06)['getTime']())['toZonedDateTimeISO'](_0x225cc8)['epochMilliseconds'];if(_0x528c06 instanceof a0_0x4da09b)return _0x528c06['toTime']();if(_0x528c06['idkey']==='MDateUtil')return _0x528c06['toTime']();return 0x0;}catch(_0x2d3449){throw new Error('ERROR');}}function a0_0x516a79(_0x4b8e7){function _0x5a5b40(_0x51b922){const _0x5842f1={};return _0x5842f1['weekday']=_0x51b922,a0_0x253b3f(()=>new Intl['DateTimeFormat'](_0x4b8e7['localCode'],_0x5842f1)['format'](a0_0x19adff(_0x4b8e7,_0x4b8e7['zone'])),'');}function _0x3beb72(){return _0x5a5b40('long');}function _0x13b0b1(){return _0x5a5b40('short');}function _0x31c06b(){return _0x5a5b40('narrow');}const _0x1b1283={};return _0x1b1283['ln']=_0x3beb72,_0x1b1283['sh']=_0x13b0b1,_0x1b1283['nr']=_0x31c06b,_0x1b1283;}function a0_0x4b6b42(_0x272488){let _0x57c69b=undefined,_0x50fd55=undefined,_0x309123=undefined,_0x48fc03=undefined;try{const _0x58b818=(_0x272488||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x57c69b=_0x58b818['length']>=0x1?Number(_0x58b818[0x0]):undefined,_0x50fd55=_0x58b818['length']>=0x2?Number(_0x58b818[0x1]):undefined,_0x309123=_0x58b818['length']>=0x3?Number(_0x58b818[0x2]):undefined;}catch(_0x1a2299){}try{let _0x149ca7=_0x272488||'',_0x2c8abd=/\.\d{3}/g,_0x4ed0a0=_0x149ca7['match'](_0x2c8abd)[0x0]['split']('.')['filter'](_0x4f999c=>Boolean(_0x4f999c));_0x48fc03=_0x4ed0a0['length']>=0x1?Number(_0x4ed0a0[0x0]):undefined;}catch(_0x5954f0){}const _0x347365={};return _0x347365['h']=_0x57c69b,_0x347365['m']=_0x50fd55,_0x347365['s']=_0x309123,_0x347365['ms']=_0x48fc03,_0x347365;}let a0_0x235432=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x547a77=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x4da09b{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x516a79(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0xa0a3d3){this['val']=this['val']['with']({'year':_0xa0a3d3['getFullYear'](),'month':_0xa0a3d3['getMonth']()+0x1,'day':_0xa0a3d3['getDate'](),'hour':_0xa0a3d3['getHours'](),'minute':_0xa0a3d3['getMinutes'](),'second':_0xa0a3d3['getSeconds'](),'millisecond':_0xa0a3d3['getMilliseconds']()});}['init'](){const _0x1595d6=new Date();return this['val']=a0_0x5f2445['Temporal']['Instant']['from'](_0x1595d6['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x516a79(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x4da09b()['setCode'](a0_0x235432)['setZone'](a0_0x547a77)['init']();}static['setCode'](_0x58b471){return a0_0x235432=_0x58b471,this;}static['setZone'](_0x431706){return a0_0x547a77=_0x431706,this;}static['seperator'](){return a0_0x253b3f(()=>new Date()['toLocaleDateString'](a0_0x235432)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x253b3f(()=>a0_0x4da09b['new']()['setTime'](this['toTime']()));}['setCode'](_0x2aa4a0){return this['_code']=_0x2aa4a0,this;}['setZone'](_0x4170fd){return this['_zone']=_0x4170fd,this;}['seperator'](){return a0_0x253b3f(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x253b3f(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x590209=this['_code']){return a0_0x253b3f(()=>{return new Intl['Locale'](_0x590209)?.['timeZones']||[];},null);}['region'](_0x511817=this['_code']){return a0_0x253b3f(()=>{return new Intl['Locale'](_0x511817)['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 _0xaeb7e7=this['val']['dayOfWeek'];return _0xaeb7e7?_0xaeb7e7:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x569033){const _0x52d85e={};return _0x52d85e['year']=_0x569033,this['val']=this['val']['with'](_0x52d85e),this;}['setMonth'](_0x1c7ce1){const _0x443ed4={};return _0x443ed4['month']=_0x1c7ce1,this['val']=this['val']['with'](_0x443ed4),this;}['setMonthUtc'](_0x5dd054){const _0x253bdf={};return _0x253bdf['month']=_0x5dd054+0x1,this['val']=this['val']['with'](_0x253bdf),this;}['setDay'](_0x474f5e){const _0x8bd243={};return _0x8bd243['day']=_0x474f5e,this['val']=this['val']['with'](_0x8bd243),this;}['setHour'](_0x157d39){const _0x2c797b={};return _0x2c797b['hour']=_0x157d39,this['val']=this['val']['with'](_0x2c797b),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'](_0x151402){const _0x23e426={};return _0x23e426['minute']=_0x151402,this['val']=this['val']['with'](_0x23e426),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x1faf8d){const _0x488c9c={};return _0x488c9c['second']=_0x1faf8d,this['val']=this['val']['with'](_0x488c9c),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x1c18dd){const _0x478f5a={};return _0x478f5a['millisecond']=_0x1c18dd,this['val']=this['val']['with'](_0x478f5a),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x33cbaa){const _0x2dcb0b=_0x33cbaa?new Date(_0x33cbaa?.['replace']('T','\x20')):new Date();return this['val']=a0_0x5f2445['Temporal']['Instant']['from'](_0x2dcb0b['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x4df298){return this['val']=a0_0x5f2445['Temporal']['Instant']['fromEpochMilliseconds'](_0x4df298||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x556afc){return this['setIsoDate'](_0x556afc?.['toISOString']()),this;}['setDateInputValue'](_0x46ba5a){const _0x32a500=_0x46ba5a?new Date(_0x46ba5a?.['replace']('T','\x20')):new Date();return _0x32a500['getTime']()&&(this['val']=a0_0x5f2445['Temporal']['Instant']['from'](_0x32a500?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x32a500)),this;}['setVal'](_0x4a1ffc){return a0_0x253b3f(()=>{return a0_0x4da09b['new']()['setTime'](a0_0x19adff(_0x4a1ffc,this['zone']));});}['toIsoDate'](){return this['val']['toInstant']()['toString']();}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x5b1ac3(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x5b1ac3(this['month']())+'-'+a0_0x5b1ac3(this['day']());}['toTimeInput'](_0x4c14fc=!![]){const _0x82ce12=[];return _0x82ce12['push'](a0_0x5b1ac3(this['hours']())),_0x82ce12['push'](a0_0x5b1ac3(this['min']())),_0x4c14fc&&_0x82ce12['push'](a0_0x5b1ac3(this['sec']())),_0x82ce12['join'](':');}['toDateTimeInput'](_0x14456b=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x14456b);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x33f96c={};return _0x33f96c['month']='2-digit',_0x33f96c['day']='2-digit',_0x33f96c['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x33f96c);}['strTime'](){return a0_0x5b1ac3(this['hours']())+':'+a0_0x5b1ac3(this['min']())+':'+a0_0x5b1ac3(this['sec']());}['strHHmm'](){return a0_0x5b1ac3(this['hours']())+':'+a0_0x5b1ac3(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x453bc2){return this['val']['toLocaleString'](this['_code'],_0x453bc2);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x5b1ac3(this['month'](),0x2);}['strDay'](){return a0_0x5b1ac3(this['day'](),0x2);}['strHour'](){return a0_0x5b1ac3(this['hours'](),0x2);}['strMin'](){return a0_0x5b1ac3(this['min'](),0x2);}['strSec'](){return a0_0x5b1ac3(this['sec'](),0x2);}['strMsec'](){return a0_0x5b1ac3(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x1a968){const _0x1dd359={};return _0x1dd359['days']=_0x1a968,this['val']=this['val']['add'](_0x1dd359),this;}['addHours'](_0x579ddc){const _0x1b330a={};return _0x1b330a['hours']=_0x579ddc,this['val']=this['val']['add'](_0x1b330a),this;}['addMins'](_0x45775c){const _0x4cea41={};return _0x4cea41['minutes']=_0x45775c,this['val']=this['val']['add'](_0x4cea41),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'](_0x5dd696){return a0_0x253b3f(()=>{return this['cpy']()['toTime']()===a0_0x19adff(_0x5dd696,this['zone']);});}['gt'](_0x491cd1){return a0_0x253b3f(()=>{return this['cpy']()['toTime']()>a0_0x19adff(_0x491cd1,this['zone']);});}['gte'](_0x172ea5){return a0_0x253b3f(()=>{return this['cpy']()['toTime']()>=a0_0x19adff(_0x172ea5,this['zone']);});}['lt'](_0x34b294){return a0_0x253b3f(()=>{return this['cpy']()['toTime']()<a0_0x19adff(_0x34b294,this['zone']);});}['lte'](_0x1ce628){return a0_0x253b3f(()=>{return this['cpy']()['toTime']()<=a0_0x19adff(_0x1ce628,this['zone']);});}['btw'](_0x38fcb8,_0xc0a955){return a0_0x253b3f(()=>{const _0x10a34a=a0_0x19adff(_0x38fcb8,this['zone']),_0x43e977=a0_0x19adff(_0xc0a955,this['zone']),_0x3c31d1=this['cpy']()['toTime']();return _0x10a34a<_0x3c31d1&&_0x3c31d1<_0x43e977;});}['btweq'](_0x28eccb,_0x59d1d0){return a0_0x253b3f(()=>{const _0x1d0a93=a0_0x19adff(_0x28eccb,this['zone']),_0x4ecb7d=a0_0x19adff(_0x59d1d0,this['zone']),_0x3a3b0c=this['cpy']()['toTime']();return _0x1d0a93<=_0x3a3b0c&&_0x3a3b0c<=_0x4ecb7d;});}['btwEqStart'](_0x1be2a9,_0x4bc7b5){return a0_0x253b3f(()=>{const _0x39cff5=a0_0x19adff(_0x1be2a9,this['zone']),_0x548e16=a0_0x19adff(_0x4bc7b5,this['zone']),_0x3eeb80=this['cpy']()['toTime']();return _0x39cff5<=_0x3eeb80&&_0x3eeb80<_0x548e16;});}['btwEqEnd'](_0x11bb5c,_0x518b9f){return a0_0x253b3f(()=>{const _0x41b4d5=a0_0x19adff(_0x11bb5c,this['zone']),_0x24af80=a0_0x19adff(_0x518b9f,this['zone']),_0x32db04=this['cpy']()['toTime']();return _0x41b4d5<_0x32db04&&_0x32db04<=_0x24af80;});}static['diffDays'](_0x33fd0c,_0x241ca2,_0x3f5eb1){return a0_0x253b3f(()=>{const _0x14f1de=a0_0x19adff(_0x33fd0c,a0_0x547a77),_0x4a6fe8=a0_0x19adff(_0x241ca2,a0_0x547a77);return _0x3f5eb1?Math['abs'](_0x14f1de-_0x4a6fe8)/0x36ee80/0x18:(_0x14f1de-_0x4a6fe8)/0x36ee80/0x18;});}static['diffHours'](_0x29e396,_0x122540,_0x4bd90f){return a0_0x253b3f(()=>{const _0x58812e=a0_0x19adff(_0x29e396,a0_0x547a77),_0xc08ccd=a0_0x19adff(_0x122540,a0_0x547a77);return _0x4bd90f?Math['abs'](_0x58812e-_0xc08ccd)/0x36ee80:(_0x58812e-_0xc08ccd)/0x36ee80;});}static['diffMins'](_0x6b9d90,_0x38fed8,_0x27d611){return a0_0x253b3f(()=>{const _0x42b9d7=a0_0x19adff(_0x6b9d90,a0_0x547a77),_0x35e253=a0_0x19adff(_0x38fed8,a0_0x547a77);return _0x27d611?Math['abs'](_0x42b9d7-_0x35e253)/0x3e8/0x3c:(_0x42b9d7-_0x35e253)/0x3e8/0x3c;});}static['diffSecs'](_0x9a5f,_0x5a95ea,_0x513b22){return a0_0x253b3f(()=>{const _0x2e0b99=a0_0x19adff(_0x9a5f,a0_0x547a77),_0x2f471f=a0_0x19adff(_0x5a95ea,a0_0x547a77);return _0x513b22?Math['abs'](_0x2e0b99-_0x2f471f)/0x3e8:(_0x2e0b99-_0x2f471f)/0x3e8;});}static['divideTime'](_0xecba3f){return a0_0x253b3f(()=>a0_0x4b6b42(_0xecba3f));}}exports['MDateUtil']=a0_0x4da09b;const a0_0x5dfefd={};a0_0x5dfefd['value']='MDateUtil',a0_0x5dfefd['writable']=![],a0_0x5dfefd['enumerable']=!![],a0_0x5dfefd['configurable']=![],Object['defineProperty'](a0_0x4da09b['prototype'],'idkey',a0_0x5dfefd);
1
+ 'use strict';const a0_0x3d32f3={};a0_0x3d32f3['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3d32f3),exports['MDateUtil']=void 0x0;const a0_0x345918=require('@js-temporal/polyfill'),a0_0x3700da=(_0xc7e9c5,_0x397d7a=0x2)=>_0xc7e9c5['toString']()['padStart'](_0x397d7a,'0');function a0_0x4fd849(_0x2484e3,_0x2a64fd){try{return _0x2484e3();}catch(_0x2d8924){if(_0x2a64fd)return _0x2a64fd;throw new Error('UNKNOWN');}}function a0_0x3d150e(_0x3e95dd,_0x22072a){try{if(_0x3e95dd instanceof Date)return a0_0x345918['Temporal']['Instant']['fromEpochMilliseconds'](_0x3e95dd['getTime']())['toZonedDateTimeISO'](_0x22072a)['epochMilliseconds'];if(typeof _0x3e95dd==='number')return _0x3e95dd;if(typeof _0x3e95dd==='string')return a0_0x345918['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x3e95dd)['getTime']())['toZonedDateTimeISO'](_0x22072a)['epochMilliseconds'];if(_0x3e95dd instanceof a0_0x472948)return _0x3e95dd['toTime']();if(_0x3e95dd['idkey']==='MDateUtil')return _0x3e95dd['toTime']();return 0x0;}catch(_0x491322){throw new Error('ERROR');}}function a0_0x493c03(_0x4f115e){function _0x1d95e5(_0x584a43){const _0x4974d4={};return _0x4974d4['weekday']=_0x584a43,a0_0x4fd849(()=>new Intl['DateTimeFormat'](_0x4f115e['localCode'],_0x4974d4)['format'](a0_0x3d150e(_0x4f115e,_0x4f115e['zone'])),'');}function _0x46ff7c(){return _0x1d95e5('long');}function _0x9e5af2(){return _0x1d95e5('short');}function _0x105532(){return _0x1d95e5('narrow');}const _0x1276ef={};return _0x1276ef['ln']=_0x46ff7c,_0x1276ef['sh']=_0x9e5af2,_0x1276ef['nr']=_0x105532,_0x1276ef;}function a0_0x1decaa(_0x48f671){let _0x542d54=undefined,_0x3f7aa5=undefined,_0x16cf3d=undefined,_0x42b71f=undefined;try{const _0x2908b8=(_0x48f671||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x542d54=_0x2908b8['length']>=0x1?Number(_0x2908b8[0x0]):undefined,_0x3f7aa5=_0x2908b8['length']>=0x2?Number(_0x2908b8[0x1]):undefined,_0x16cf3d=_0x2908b8['length']>=0x3?Number(_0x2908b8[0x2]):undefined;}catch(_0x5d177e){}try{let _0x1065c8=_0x48f671||'',_0x1dfa14=/\.\d{3}/g,_0xce4368=_0x1065c8['match'](_0x1dfa14)[0x0]['split']('.')['filter'](_0x52aec5=>Boolean(_0x52aec5));_0x42b71f=_0xce4368['length']>=0x1?Number(_0xce4368[0x0]):undefined;}catch(_0x4650b9){}const _0x425350={};return _0x425350['h']=_0x542d54,_0x425350['m']=_0x3f7aa5,_0x425350['s']=_0x16cf3d,_0x425350['ms']=_0x42b71f,_0x425350;}let a0_0x2d5c56=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x4ef52e=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x472948{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x493c03(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x3c46aa){this['val']=this['val']['with']({'year':_0x3c46aa['getFullYear'](),'month':_0x3c46aa['getMonth']()+0x1,'day':_0x3c46aa['getDate'](),'hour':_0x3c46aa['getHours'](),'minute':_0x3c46aa['getMinutes'](),'second':_0x3c46aa['getSeconds'](),'millisecond':_0x3c46aa['getMilliseconds']()});}['init'](){const _0x4eafe8=new Date();return this['val']=a0_0x345918['Temporal']['Instant']['from'](_0x4eafe8['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x493c03(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x472948()['setCode'](a0_0x2d5c56)['setZone'](a0_0x4ef52e)['init']();}static['setCode'](_0x5e32e1){return a0_0x2d5c56=_0x5e32e1,this;}static['setZone'](_0x1ab9aa){return a0_0x4ef52e=_0x1ab9aa,this;}static['seperator'](){return a0_0x4fd849(()=>new Date()['toLocaleDateString'](a0_0x2d5c56)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x4fd849(()=>a0_0x472948['new']()['setTime'](this['toTime']()));}['setCode'](_0x56c738){return this['_code']=_0x56c738,this;}['setZone'](_0x19e589){return this['_zone']=_0x19e589,this;}['seperator'](){return a0_0x4fd849(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x4fd849(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x554f39=this['_code']){return a0_0x4fd849(()=>{return new Intl['Locale'](_0x554f39)?.['timeZones']||[];},null);}['region'](_0x133ab2=this['_code']){return a0_0x4fd849(()=>{return new Intl['Locale'](_0x133ab2)['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 _0x25daef=this['val']['dayOfWeek'];return _0x25daef?_0x25daef:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0xa3787){const _0x4f83a5={};return _0x4f83a5['year']=_0xa3787,this['val']=this['val']['with'](_0x4f83a5),this;}['setMonth'](_0x4b3d19){const _0xcef71e={};return _0xcef71e['month']=_0x4b3d19,this['val']=this['val']['with'](_0xcef71e),this;}['setMonthUtc'](_0x2b0a63){const _0x225c53={};return _0x225c53['month']=_0x2b0a63+0x1,this['val']=this['val']['with'](_0x225c53),this;}['setDay'](_0x51ba7e){const _0x4f314e={};return _0x4f314e['day']=_0x51ba7e,this['val']=this['val']['with'](_0x4f314e),this;}['setHour'](_0x461d74){const _0x1cd88c={};return _0x1cd88c['hour']=_0x461d74,this['val']=this['val']['with'](_0x1cd88c),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'](_0x59acb1){const _0x35cf5b={};return _0x35cf5b['minute']=_0x59acb1,this['val']=this['val']['with'](_0x35cf5b),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x58ad9e){const _0x23c2d1={};return _0x23c2d1['second']=_0x58ad9e,this['val']=this['val']['with'](_0x23c2d1),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0xfa18a3){const _0x154092={};return _0x154092['millisecond']=_0xfa18a3,this['val']=this['val']['with'](_0x154092),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x7541c7){const _0x186a80=_0x7541c7?new Date(_0x7541c7?.['replace']('T','\x20')):new Date();return this['val']=a0_0x345918['Temporal']['Instant']['from'](_0x186a80['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x326b7d){return this['val']=a0_0x345918['Temporal']['Instant']['fromEpochMilliseconds'](_0x326b7d||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x5ba194){return this['setIsoDate'](_0x5ba194?.['toISOString']()),this;}['setDateInputValue'](_0x5f1065){const _0x44e5d3=_0x5f1065?new Date(_0x5f1065?.['replace']('T','\x20')):new Date();return _0x44e5d3['getTime']()&&(this['val']=a0_0x345918['Temporal']['Instant']['from'](_0x44e5d3?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x44e5d3)),this;}['setVal'](_0x539f29){return a0_0x4fd849(()=>{return a0_0x472948['new']()['setTime'](a0_0x3d150e(_0x539f29,this['zone']));});}['toIsoDate'](){return this['val']['toInstant']()['toString']();}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x3700da(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x3700da(this['month']())+'-'+a0_0x3700da(this['day']());}['toTimeInput'](_0x19b273=!![]){const _0xdf4832=[];return _0xdf4832['push'](a0_0x3700da(this['hours']())),_0xdf4832['push'](a0_0x3700da(this['min']())),_0x19b273&&_0xdf4832['push'](a0_0x3700da(this['sec']())),_0xdf4832['join'](':');}['toDateTimeInput'](_0xdc06b1=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0xdc06b1);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x4befe4={};return _0x4befe4['month']='2-digit',_0x4befe4['day']='2-digit',_0x4befe4['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x4befe4);}['strTime'](){return a0_0x3700da(this['hours']())+':'+a0_0x3700da(this['min']())+':'+a0_0x3700da(this['sec']());}['strHHmm'](){return a0_0x3700da(this['hours']())+':'+a0_0x3700da(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x57e941){return this['val']['toLocaleString'](this['_code'],_0x57e941);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x3700da(this['month'](),0x2);}['strDay'](){return a0_0x3700da(this['day'](),0x2);}['strHour'](){return a0_0x3700da(this['hours'](),0x2);}['strMin'](){return a0_0x3700da(this['min'](),0x2);}['strSec'](){return a0_0x3700da(this['sec'](),0x2);}['strMsec'](){return a0_0x3700da(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x398c7c){const _0x37812c={};return _0x37812c['days']=_0x398c7c,this['val']=this['val']['add'](_0x37812c),this;}['addHours'](_0x944f00){const _0xdee349={};return _0xdee349['hours']=_0x944f00,this['val']=this['val']['add'](_0xdee349),this;}['addMins'](_0x42f363){const _0x665a7c={};return _0x665a7c['minutes']=_0x42f363,this['val']=this['val']['add'](_0x665a7c),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'](_0x87cd76){return a0_0x4fd849(()=>{return this['cpy']()['toTime']()===a0_0x3d150e(_0x87cd76,this['zone']);});}['gt'](_0x1dc5de){return a0_0x4fd849(()=>{return this['cpy']()['toTime']()>a0_0x3d150e(_0x1dc5de,this['zone']);});}['gte'](_0x394ff0){return a0_0x4fd849(()=>{return this['cpy']()['toTime']()>=a0_0x3d150e(_0x394ff0,this['zone']);});}['lt'](_0x1a07a7){return a0_0x4fd849(()=>{return this['cpy']()['toTime']()<a0_0x3d150e(_0x1a07a7,this['zone']);});}['lte'](_0x516bd6){return a0_0x4fd849(()=>{return this['cpy']()['toTime']()<=a0_0x3d150e(_0x516bd6,this['zone']);});}['btw'](_0x3349e1,_0x2ccc82){return a0_0x4fd849(()=>{const _0xbcef6c=a0_0x3d150e(_0x3349e1,this['zone']),_0x1323f2=a0_0x3d150e(_0x2ccc82,this['zone']),_0x209d48=this['cpy']()['toTime']();return _0xbcef6c<_0x209d48&&_0x209d48<_0x1323f2;});}['btweq'](_0x27a0b6,_0x3fc430){return a0_0x4fd849(()=>{const _0x18112a=a0_0x3d150e(_0x27a0b6,this['zone']),_0x3393d2=a0_0x3d150e(_0x3fc430,this['zone']),_0x28dfd0=this['cpy']()['toTime']();return _0x18112a<=_0x28dfd0&&_0x28dfd0<=_0x3393d2;});}['btwEqStart'](_0xdc0a48,_0x36655e){return a0_0x4fd849(()=>{const _0x4c8566=a0_0x3d150e(_0xdc0a48,this['zone']),_0x11c0af=a0_0x3d150e(_0x36655e,this['zone']),_0x528bf6=this['cpy']()['toTime']();return _0x4c8566<=_0x528bf6&&_0x528bf6<_0x11c0af;});}['btwEqEnd'](_0x580e9c,_0x5eef4e){return a0_0x4fd849(()=>{const _0x1322cb=a0_0x3d150e(_0x580e9c,this['zone']),_0x9faaed=a0_0x3d150e(_0x5eef4e,this['zone']),_0x10d8aa=this['cpy']()['toTime']();return _0x1322cb<_0x10d8aa&&_0x10d8aa<=_0x9faaed;});}static['diffDays'](_0x216897,_0x234363,_0x184f70){return a0_0x4fd849(()=>{const _0x26daf7=a0_0x3d150e(_0x216897,a0_0x4ef52e),_0x485bcd=a0_0x3d150e(_0x234363,a0_0x4ef52e);return _0x184f70?Math['abs'](_0x26daf7-_0x485bcd)/0x36ee80/0x18:(_0x26daf7-_0x485bcd)/0x36ee80/0x18;});}static['diffHours'](_0x3d8eed,_0xbb9650,_0x28b3ea){return a0_0x4fd849(()=>{const _0x30e763=a0_0x3d150e(_0x3d8eed,a0_0x4ef52e),_0x161f91=a0_0x3d150e(_0xbb9650,a0_0x4ef52e);return _0x28b3ea?Math['abs'](_0x30e763-_0x161f91)/0x36ee80:(_0x30e763-_0x161f91)/0x36ee80;});}static['diffMins'](_0x3d12bc,_0x17a4d2,_0x475855){return a0_0x4fd849(()=>{const _0x1a86ee=a0_0x3d150e(_0x3d12bc,a0_0x4ef52e),_0x218bfa=a0_0x3d150e(_0x17a4d2,a0_0x4ef52e);return _0x475855?Math['abs'](_0x1a86ee-_0x218bfa)/0x3e8/0x3c:(_0x1a86ee-_0x218bfa)/0x3e8/0x3c;});}static['diffSecs'](_0x37d715,_0x50a834,_0x2b36aa){return a0_0x4fd849(()=>{const _0x57c5ac=a0_0x3d150e(_0x37d715,a0_0x4ef52e),_0x2c58be=a0_0x3d150e(_0x50a834,a0_0x4ef52e);return _0x2b36aa?Math['abs'](_0x57c5ac-_0x2c58be)/0x3e8:(_0x57c5ac-_0x2c58be)/0x3e8;});}static['divideTime'](_0x428b38){return a0_0x4fd849(()=>a0_0x1decaa(_0x428b38));}}exports['MDateUtil']=a0_0x472948;const a0_0x1e4f34={};a0_0x1e4f34['value']='MDateUtil',a0_0x1e4f34['writable']=![],a0_0x1e4f34['enumerable']=!![],a0_0x1e4f34['configurable']=![],Object['defineProperty'](a0_0x472948['prototype'],'idkey',a0_0x1e4f34);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x4c580d=this&&this['__createBinding']||(Object['create']?function(_0x1449a1,_0x14c1ff,_0x29b25b,_0x3183fa){if(_0x3183fa===undefined)_0x3183fa=_0x29b25b;var _0x311433=Object['getOwnPropertyDescriptor'](_0x14c1ff,_0x29b25b);if(!_0x311433||('get'in _0x311433?!_0x14c1ff['__esModule']:_0x311433['writable']||_0x311433['configurable'])){var _0x16c23b={};_0x16c23b['enumerable']=!![],_0x16c23b['get']=function(){return _0x14c1ff[_0x29b25b];},_0x311433=_0x16c23b;}Object['defineProperty'](_0x1449a1,_0x3183fa,_0x311433);}:function(_0xb018b1,_0x466e3f,_0xb8b1b,_0x198d61){if(_0x198d61===undefined)_0x198d61=_0xb8b1b;_0xb018b1[_0x198d61]=_0x466e3f[_0xb8b1b];}),a0_0x356a45=this&&this['__exportStar']||function(_0x5927bf,_0x1e6d5b){for(var _0x46d627 in _0x5927bf)if(_0x46d627!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x1e6d5b,_0x46d627))a0_0x4c580d(_0x1e6d5b,_0x5927bf,_0x46d627);},a0_0x54fb32={};a0_0x54fb32['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x54fb32),a0_0x356a45(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x50eaaf=this&&this['__createBinding']||(Object['create']?function(_0x349974,_0x11649e,_0x132195,_0x501671){if(_0x501671===undefined)_0x501671=_0x132195;var _0x2d6718=Object['getOwnPropertyDescriptor'](_0x11649e,_0x132195);if(!_0x2d6718||('get'in _0x2d6718?!_0x11649e['__esModule']:_0x2d6718['writable']||_0x2d6718['configurable'])){var _0x13f390={};_0x13f390['enumerable']=!![],_0x13f390['get']=function(){return _0x11649e[_0x132195];},_0x2d6718=_0x13f390;}Object['defineProperty'](_0x349974,_0x501671,_0x2d6718);}:function(_0x410ed0,_0x386bf5,_0x26bf81,_0x3a006a){if(_0x3a006a===undefined)_0x3a006a=_0x26bf81;_0x410ed0[_0x3a006a]=_0x386bf5[_0x26bf81];}),a0_0xf37f6a=this&&this['__exportStar']||function(_0x110769,_0x1508f0){for(var _0x5eca1b in _0x110769)if(_0x5eca1b!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x1508f0,_0x5eca1b))a0_0x50eaaf(_0x1508f0,_0x110769,_0x5eca1b);},a0_0x1fdb89={};a0_0x1fdb89['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1fdb89),a0_0xf37f6a(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.8.88",
3
+ "version": "1.8.90",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",