mat-date 1.8.15 → 1.8.85

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.
@@ -16,11 +16,12 @@ interface IStrOptions {
16
16
  }
17
17
  export declare class MDateUtil {
18
18
  private val;
19
- private code;
19
+ private _code;
20
20
  private _zone;
21
21
  private dyfrmt;
22
22
  get localCode(): string;
23
23
  get zone(): string;
24
+ private with;
24
25
  private init;
25
26
  toString(): string;
26
27
  static new(): MDateUtil;
@@ -73,6 +74,7 @@ export declare class MDateUtil {
73
74
  toDateInput(): string;
74
75
  toTimeInput(byS?: boolean): any;
75
76
  toDateTimeInput(byS?: boolean): string;
77
+ toAs(): string;
76
78
  strDate(): string;
77
79
  strTime(): string;
78
80
  strHHmm(): string;
package/dist/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x421fd6={};a0_0x421fd6['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x421fd6),exports['MDateUtil']=void 0x0;const a0_0x3dde86=require('@js-temporal/polyfill'),a0_0x4ac4e5=(_0x4cb310,_0x581fdf=0x2)=>_0x4cb310['toString']()['padStart'](_0x581fdf,'0');function a0_0x4d5383(_0x2c0395,_0x5ec784){try{return _0x2c0395();}catch(_0x1c12b7){if(_0x5ec784)return _0x5ec784;throw new Error('UNKNOWN');}}function a0_0x384524(_0x499734,_0x400f76){try{if(_0x499734 instanceof Date)return a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](_0x499734['getTime']())['toZonedDateTimeISO'](_0x400f76)['epochMilliseconds'];if(typeof _0x499734==='number')return _0x499734;if(typeof _0x499734==='string')return a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x499734)['getTime']())['toZonedDateTimeISO'](_0x400f76)['epochMilliseconds'];if(_0x499734 instanceof a0_0x5efa80)return _0x499734['toTime']();if(_0x499734['idkey']==='mdateutil')return _0x499734['toTime']();return 0x0;}catch(_0x3676c7){throw new Error('ERROR');}}function a0_0x2b32af(_0xb7f294){function _0x778a10(_0x248085){const _0x3feefe={};return _0x3feefe['weekday']=_0x248085,a0_0x4d5383(()=>new Intl['DateTimeFormat'](_0xb7f294['localCode'],_0x3feefe)['format'](a0_0x384524(_0xb7f294,_0xb7f294['zone'])),'');}function _0x433410(){return _0x778a10('long');}function _0x581ca2(){return _0x778a10('short');}function _0x306b38(){return _0x778a10('narrow');}const _0x5844de={};return _0x5844de['ln']=_0x433410,_0x5844de['sh']=_0x581ca2,_0x5844de['nr']=_0x306b38,_0x5844de;}function a0_0x482409(_0x51faf8){let _0x191a69=undefined,_0x33b8c4=undefined,_0x4d5436=undefined,_0x2c9127=undefined;try{const _0x1c9980=(_0x51faf8||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x191a69=_0x1c9980['length']>=0x1?Number(_0x1c9980[0x0]):undefined,_0x33b8c4=_0x1c9980['length']>=0x2?Number(_0x1c9980[0x1]):undefined,_0x4d5436=_0x1c9980['length']>=0x3?Number(_0x1c9980[0x2]):undefined;}catch(_0x101236){}try{let _0x12942d=_0x51faf8||'',_0x267be5=/\.\d{3}/g,_0x52dbeb=_0x12942d['match'](_0x267be5)[0x0]['split']('.')['filter'](_0x1f0ed1=>Boolean(_0x1f0ed1));_0x2c9127=_0x52dbeb['length']>=0x1?Number(_0x52dbeb[0x0]):undefined;}catch(_0x59a906){}const _0x589202={};return _0x589202['h']=_0x191a69,_0x589202['m']=_0x33b8c4,_0x589202['s']=_0x4d5436,_0x589202['ms']=_0x2c9127,_0x589202;}let a0_0x237021=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x4ddca1=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x5efa80{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x2b32af(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x2b32af(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x5efa80()['setCode'](a0_0x237021)['setZone'](a0_0x4ddca1)['init']();}static['setCode'](_0x238e75){return a0_0x237021=_0x238e75,this;}static['setZone'](_0x13d43b){return a0_0x4ddca1=_0x13d43b,this;}static['seperator'](){return a0_0x4d5383(()=>new Date()['toLocaleDateString'](a0_0x237021)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x4d5383(()=>a0_0x5efa80['new']()['setTime'](this['toTime']()));}['setCode'](_0x3047f5){return this['code']=_0x3047f5,this;}['setZone'](_0x117c07){return this['_zone']=_0x117c07,this;}['seperator'](){return a0_0x4d5383(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x4d5383(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x24cba9=this['code']){return a0_0x4d5383(()=>{return new Intl['Locale'](_0x24cba9)?.['timeZones']||[];},null);}['region'](_0x16584a=this['code']){return a0_0x4d5383(()=>{return new Intl['Locale'](_0x16584a)['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 _0x59a12b=this['val']['dayOfWeek'];return _0x59a12b?_0x59a12b:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x34a1d4){const _0x4c1fa4={};return _0x4c1fa4['year']=_0x34a1d4,this['val']=this['val']['with'](_0x4c1fa4),this;}['setMonth'](_0x2b3f5a){const _0x246035={};return _0x246035['month']=_0x2b3f5a,this['val']=this['val']['with'](_0x246035),this;}['setMonthUtc'](_0x1c6e17){const _0x51c2ed={};return _0x51c2ed['month']=_0x1c6e17+0x1,this['val']=this['val']['with'](_0x51c2ed),this;}['setDay'](_0x9e27a7){const _0x3853ed={};return _0x3853ed['day']=_0x9e27a7,this['val']=this['val']['with'](_0x3853ed),this;}['setHour'](_0x51ce42){const _0x17ad4f={};return _0x17ad4f['hour']=_0x51ce42,this['val']=this['val']['with'](_0x17ad4f),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'](_0x2778bd){const _0x509bcd={};return _0x509bcd['minute']=_0x2778bd,this['val']=this['val']['with'](_0x509bcd),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x5a325f){const _0xf342e6={};return _0xf342e6['second']=_0x5a325f,this['val']=this['val']['with'](_0xf342e6),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x1b37e4){const _0x4a960e={};return _0x4a960e['millisecond']=_0x1b37e4,this['val']=this['val']['with'](_0x4a960e),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x383b4a){return this['val']=a0_0x3dde86['Temporal']['Instant']['from'](_0x383b4a||new Date()['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x4feb42){return this['val']=a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](_0x4feb42||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x28e415){return this['setIsoDate'](_0x28e415?.['toISOString']()),this;}['setDateInputValue'](_0x31db12){return this['val']=a0_0x3dde86['Temporal']['Instant']['from'](new Date(_0x31db12?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x487f2a){return a0_0x4d5383(()=>{return a0_0x5efa80['new']()['setTime'](a0_0x384524(_0x487f2a,this['zone']));});}['toIsoDate'](){return this['val']['toString']()['substring'](0x0,0x17)+'Z';}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x4ac4e5(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x4ac4e5(this['month']())+'-'+a0_0x4ac4e5(this['day']());}['toTimeInput'](_0x496968=!![]){const _0x3f859f=[];return _0x3f859f['push'](a0_0x4ac4e5(this['hours']())),_0x3f859f['push'](a0_0x4ac4e5(this['min']())),_0x496968&&_0x3f859f['push'](a0_0x4ac4e5(this['sec']())),_0x3f859f['join'](':');}['toDateTimeInput'](_0x4a095e=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x4a095e);}['strDate'](){const _0x4ce5a3={};return _0x4ce5a3['month']='2-digit',_0x4ce5a3['day']='2-digit',_0x4ce5a3['year']='numeric',this['val']['toLocaleString'](this['code'],_0x4ce5a3);}['strTime'](){return a0_0x4ac4e5(this['hours']())+':'+a0_0x4ac4e5(this['min']())+':'+a0_0x4ac4e5(this['sec']());}['strHHmm'](){return a0_0x4ac4e5(this['hours']())+':'+a0_0x4ac4e5(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x132f8b){return this['val']['toLocaleString'](this['code'],_0x132f8b);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x4ac4e5(this['month'](),0x2);}['strDay'](){return a0_0x4ac4e5(this['day'](),0x2);}['strHour'](){return a0_0x4ac4e5(this['hours'](),0x2);}['strMin'](){return a0_0x4ac4e5(this['min'](),0x2);}['strSec'](){return a0_0x4ac4e5(this['sec'](),0x2);}['strMsec'](){return a0_0x4ac4e5(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x5d29e9){const _0x17c254={};return _0x17c254['days']=_0x5d29e9,this['val']=this['val']['add'](_0x17c254),this;}['addHours'](_0x293a57){const _0x42caef={};return _0x42caef['hours']=_0x293a57,this['val']=this['val']['add'](_0x42caef),this;}['addMins'](_0x374e26){const _0x1b422d={};return _0x1b422d['minutes']=_0x374e26,this['val']=this['val']['add'](_0x1b422d),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'](_0x3ea349){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()===a0_0x384524(_0x3ea349,this['zone']);});}['gt'](_0x28432a){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()>a0_0x384524(_0x28432a,this['zone']);});}['gte'](_0x389a6a){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()>=a0_0x384524(_0x389a6a,this['zone']);});}['lt'](_0x5c1a68){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()<a0_0x384524(_0x5c1a68,this['zone']);});}['lte'](_0x597c7f){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()<=a0_0x384524(_0x597c7f,this['zone']);});}['btw'](_0x11feed,_0x116caa){return a0_0x4d5383(()=>{const _0x1a72b5=a0_0x384524(_0x11feed,this['zone']),_0x190140=a0_0x384524(_0x116caa,this['zone']),_0x4893fe=this['cpy']()['toTime']();return _0x1a72b5<_0x4893fe&&_0x4893fe<_0x190140;});}['btweq'](_0x3e310c,_0x363a36){return a0_0x4d5383(()=>{const _0xc93de2=a0_0x384524(_0x3e310c,this['zone']),_0x3c669a=a0_0x384524(_0x363a36,this['zone']),_0x395ca8=this['cpy']()['toTime']();return _0xc93de2<=_0x395ca8&&_0x395ca8<=_0x3c669a;});}['btwEqStart'](_0x2686d2,_0x355619){return a0_0x4d5383(()=>{const _0x365515=a0_0x384524(_0x2686d2,this['zone']),_0x4eb66a=a0_0x384524(_0x355619,this['zone']),_0xb931f8=this['cpy']()['toTime']();return _0x365515<=_0xb931f8&&_0xb931f8<_0x4eb66a;});}['btwEqEnd'](_0x275e36,_0x35acfd){return a0_0x4d5383(()=>{const _0x1c4dad=a0_0x384524(_0x275e36,this['zone']),_0x1cc205=a0_0x384524(_0x35acfd,this['zone']),_0x15839a=this['cpy']()['toTime']();return _0x1c4dad<_0x15839a&&_0x15839a<=_0x1cc205;});}static['diffDays'](_0x49fb72,_0x22bd53,_0x40ebce){return a0_0x4d5383(()=>{const _0x4d4601=a0_0x384524(_0x49fb72,a0_0x4ddca1),_0x2168a1=a0_0x384524(_0x22bd53,a0_0x4ddca1);return _0x40ebce?Math['abs'](_0x4d4601-_0x2168a1)/0x36ee80/0x18:(_0x4d4601-_0x2168a1)/0x36ee80/0x18;});}static['diffHours'](_0x354777,_0x1cf732,_0x4c9b7d){return a0_0x4d5383(()=>{const _0x2a26d1=a0_0x384524(_0x354777,a0_0x4ddca1),_0x7af122=a0_0x384524(_0x1cf732,a0_0x4ddca1);return _0x4c9b7d?Math['abs'](_0x2a26d1-_0x7af122)/0x36ee80:(_0x2a26d1-_0x7af122)/0x36ee80;});}static['diffMins'](_0x585db4,_0x58e571,_0x247e5d){return a0_0x4d5383(()=>{const _0x2b0f90=a0_0x384524(_0x585db4,a0_0x4ddca1),_0x55552c=a0_0x384524(_0x58e571,a0_0x4ddca1);return _0x247e5d?Math['abs'](_0x2b0f90-_0x55552c)/0x3e8/0x3c:(_0x2b0f90-_0x55552c)/0x3e8/0x3c;});}static['diffSecs'](_0x32d6e0,_0x2589a3,_0x3553a2){return a0_0x4d5383(()=>{const _0x28ae13=a0_0x384524(_0x32d6e0,a0_0x4ddca1),_0x4a0c86=a0_0x384524(_0x2589a3,a0_0x4ddca1);return _0x3553a2?Math['abs'](_0x28ae13-_0x4a0c86)/0x3e8:(_0x28ae13-_0x4a0c86)/0x3e8;});}static['divideTime'](_0x5f5969){return a0_0x4d5383(()=>a0_0x482409(_0x5f5969));}}exports['MDateUtil']=a0_0x5efa80;const a0_0x62132b={};a0_0x62132b['value']='mdateutil',a0_0x62132b['writable']=![],a0_0x62132b['enumerable']=!![],a0_0x62132b['configurable']=![],Object['defineProperty'](a0_0x5efa80['prototype'],'idkey',a0_0x62132b);
1
+ 'use strict';const a0_0x8d3605={};a0_0x8d3605['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x8d3605),exports['MDateUtil']=void 0x0;const a0_0x47ee6f=require('@js-temporal/polyfill'),a0_0x3e7f42=(_0x3d784a,_0x4bb5bd=0x2)=>_0x3d784a['toString']()['padStart'](_0x4bb5bd,'0');function a0_0x42ad76(_0x2a6ca6,_0x134052){try{return _0x2a6ca6();}catch(_0x1eb104){if(_0x134052)return _0x134052;throw new Error('UNKNOWN');}}function a0_0xed34f5(_0x2374b2,_0x2cd189){try{if(_0x2374b2 instanceof Date)return a0_0x47ee6f['Temporal']['Instant']['fromEpochMilliseconds'](_0x2374b2['getTime']())['toZonedDateTimeISO'](_0x2cd189)['epochMilliseconds'];if(typeof _0x2374b2==='number')return _0x2374b2;if(typeof _0x2374b2==='string')return a0_0x47ee6f['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x2374b2)['getTime']())['toZonedDateTimeISO'](_0x2cd189)['epochMilliseconds'];if(_0x2374b2 instanceof a0_0xfe7ad6)return _0x2374b2['toTime']();if(_0x2374b2['idkey']==='MDateUtil')return _0x2374b2['toTime']();return 0x0;}catch(_0x23f871){throw new Error('ERROR');}}function a0_0x29b562(_0x583545){function _0x3416ca(_0x4f185e){const _0x566095={};return _0x566095['weekday']=_0x4f185e,a0_0x42ad76(()=>new Intl['DateTimeFormat'](_0x583545['localCode'],_0x566095)['format'](a0_0xed34f5(_0x583545,_0x583545['zone'])),'');}function _0x4a21f5(){return _0x3416ca('long');}function _0x174335(){return _0x3416ca('short');}function _0x1745c1(){return _0x3416ca('narrow');}const _0xd61b3b={};return _0xd61b3b['ln']=_0x4a21f5,_0xd61b3b['sh']=_0x174335,_0xd61b3b['nr']=_0x1745c1,_0xd61b3b;}function a0_0x599c32(_0x2f57a7){let _0x4712a6=undefined,_0x157138=undefined,_0x2cf1b6=undefined,_0x316784=undefined;try{const _0x56bf9f=(_0x2f57a7||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x4712a6=_0x56bf9f['length']>=0x1?Number(_0x56bf9f[0x0]):undefined,_0x157138=_0x56bf9f['length']>=0x2?Number(_0x56bf9f[0x1]):undefined,_0x2cf1b6=_0x56bf9f['length']>=0x3?Number(_0x56bf9f[0x2]):undefined;}catch(_0x3c9ea8){}try{let _0x5d5f9c=_0x2f57a7||'',_0x590f2a=/\.\d{3}/g,_0x558aa2=_0x5d5f9c['match'](_0x590f2a)[0x0]['split']('.')['filter'](_0xab0922=>Boolean(_0xab0922));_0x316784=_0x558aa2['length']>=0x1?Number(_0x558aa2[0x0]):undefined;}catch(_0x46e70e){}const _0x1ffb0a={};return _0x1ffb0a['h']=_0x4712a6,_0x1ffb0a['m']=_0x157138,_0x1ffb0a['s']=_0x2cf1b6,_0x1ffb0a['ms']=_0x316784,_0x1ffb0a;}let a0_0x475115=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x58e7a2=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0xfe7ad6{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x29b562(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x41196e){this['val']=this['val']['with']({'year':_0x41196e['getFullYear'](),'month':_0x41196e['getMonth']()+0x1,'day':_0x41196e['getDate'](),'hour':_0x41196e['getHours'](),'minute':_0x41196e['getMinutes'](),'second':_0x41196e['getSeconds'](),'millisecond':_0x41196e['getMilliseconds']()});}['init'](){const _0x5945c6=new Date();return this['val']=a0_0x47ee6f['Temporal']['Instant']['from'](_0x5945c6['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x29b562(this),this;}['toString'](){return'---';}static['new'](){return new a0_0xfe7ad6()['setCode'](a0_0x475115)['setZone'](a0_0x58e7a2)['init']();}static['setCode'](_0x19b7b0){return a0_0x475115=_0x19b7b0,this;}static['setZone'](_0x296919){return a0_0x58e7a2=_0x296919,this;}static['seperator'](){return a0_0x42ad76(()=>new Date()['toLocaleDateString'](a0_0x475115)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x42ad76(()=>a0_0xfe7ad6['new']()['setTime'](this['toTime']()));}['setCode'](_0x47c92b){return this['_code']=_0x47c92b,this;}['setZone'](_0x4fbd93){return this['_zone']=_0x4fbd93,this;}['seperator'](){return a0_0x42ad76(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x42ad76(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x2037d=this['_code']){return a0_0x42ad76(()=>{return new Intl['Locale'](_0x2037d)?.['timeZones']||[];},null);}['region'](_0x429bc0=this['_code']){return a0_0x42ad76(()=>{return new Intl['Locale'](_0x429bc0)['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 _0x29109a=this['val']['dayOfWeek'];return _0x29109a?_0x29109a:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x236309){const _0x55e1b4={};return _0x55e1b4['year']=_0x236309,this['val']=this['val']['with'](_0x55e1b4),this;}['setMonth'](_0x4330fd){const _0x227ff7={};return _0x227ff7['month']=_0x4330fd,this['val']=this['val']['with'](_0x227ff7),this;}['setMonthUtc'](_0xe98413){const _0x10478e={};return _0x10478e['month']=_0xe98413+0x1,this['val']=this['val']['with'](_0x10478e),this;}['setDay'](_0xebaae3){const _0xb12e86={};return _0xb12e86['day']=_0xebaae3,this['val']=this['val']['with'](_0xb12e86),this;}['setHour'](_0x14a04c){const _0x367ba9={};return _0x367ba9['hour']=_0x14a04c,this['val']=this['val']['with'](_0x367ba9),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'](_0x5539f1){const _0x353429={};return _0x353429['minute']=_0x5539f1,this['val']=this['val']['with'](_0x353429),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x177380){const _0x46f004={};return _0x46f004['second']=_0x177380,this['val']=this['val']['with'](_0x46f004),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x577136){const _0x3e91ce={};return _0x3e91ce['millisecond']=_0x577136,this['val']=this['val']['with'](_0x3e91ce),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x186db4){const _0x25f0cd=_0x186db4?new Date(_0x186db4?.['replace']('T','\x20')):new Date();return this['val']=a0_0x47ee6f['Temporal']['Instant']['from'](_0x25f0cd['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x41af13){return this['val']=a0_0x47ee6f['Temporal']['Instant']['fromEpochMilliseconds'](_0x41af13||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x3e1ebf){return this['setIsoDate'](_0x3e1ebf?.['toISOString']()),this;}['setDateInputValue'](_0x2c5534){const _0x26e122=_0x2c5534?new Date(_0x2c5534?.['replace']('T','\x20')):new Date();return _0x26e122['getTime']()&&(this['val']=a0_0x47ee6f['Temporal']['Instant']['from'](_0x26e122?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x26e122)),this;}['setVal'](_0x199461){return a0_0x42ad76(()=>{return a0_0xfe7ad6['new']()['setTime'](a0_0xed34f5(_0x199461,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_0x3e7f42(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x3e7f42(this['month']())+'-'+a0_0x3e7f42(this['day']());}['toTimeInput'](_0x121dc5=!![]){const _0x12395e=[];return _0x12395e['push'](a0_0x3e7f42(this['hours']())),_0x12395e['push'](a0_0x3e7f42(this['min']())),_0x121dc5&&_0x12395e['push'](a0_0x3e7f42(this['sec']())),_0x12395e['join'](':');}['toDateTimeInput'](_0x5e48e4=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x5e48e4);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x1af4ab={};return _0x1af4ab['month']='2-digit',_0x1af4ab['day']='2-digit',_0x1af4ab['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x1af4ab);}['strTime'](){return a0_0x3e7f42(this['hours']())+':'+a0_0x3e7f42(this['min']())+':'+a0_0x3e7f42(this['sec']());}['strHHmm'](){return a0_0x3e7f42(this['hours']())+':'+a0_0x3e7f42(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x1f3c62){return this['val']['toLocaleString'](this['_code'],_0x1f3c62);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x3e7f42(this['month'](),0x2);}['strDay'](){return a0_0x3e7f42(this['day'](),0x2);}['strHour'](){return a0_0x3e7f42(this['hours'](),0x2);}['strMin'](){return a0_0x3e7f42(this['min'](),0x2);}['strSec'](){return a0_0x3e7f42(this['sec'](),0x2);}['strMsec'](){return a0_0x3e7f42(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x2373cc){const _0x3d3de2={};return _0x3d3de2['days']=_0x2373cc,this['val']=this['val']['add'](_0x3d3de2),this;}['addHours'](_0x304621){const _0x274a66={};return _0x274a66['hours']=_0x304621,this['val']=this['val']['add'](_0x274a66),this;}['addMins'](_0x2b0d75){const _0x21422f={};return _0x21422f['minutes']=_0x2b0d75,this['val']=this['val']['add'](_0x21422f),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'](_0x4e5763){return a0_0x42ad76(()=>{return this['cpy']()['toTime']()===a0_0xed34f5(_0x4e5763,this['zone']);});}['gt'](_0x1724fb){return a0_0x42ad76(()=>{return this['cpy']()['toTime']()>a0_0xed34f5(_0x1724fb,this['zone']);});}['gte'](_0x40a201){return a0_0x42ad76(()=>{return this['cpy']()['toTime']()>=a0_0xed34f5(_0x40a201,this['zone']);});}['lt'](_0x47651d){return a0_0x42ad76(()=>{return this['cpy']()['toTime']()<a0_0xed34f5(_0x47651d,this['zone']);});}['lte'](_0x2130ec){return a0_0x42ad76(()=>{return this['cpy']()['toTime']()<=a0_0xed34f5(_0x2130ec,this['zone']);});}['btw'](_0x670e8b,_0xe3f59b){return a0_0x42ad76(()=>{const _0x1c8533=a0_0xed34f5(_0x670e8b,this['zone']),_0x5505f4=a0_0xed34f5(_0xe3f59b,this['zone']),_0x110144=this['cpy']()['toTime']();return _0x1c8533<_0x110144&&_0x110144<_0x5505f4;});}['btweq'](_0x227865,_0x123232){return a0_0x42ad76(()=>{const _0x320a05=a0_0xed34f5(_0x227865,this['zone']),_0x33a47a=a0_0xed34f5(_0x123232,this['zone']),_0x42602e=this['cpy']()['toTime']();return _0x320a05<=_0x42602e&&_0x42602e<=_0x33a47a;});}['btwEqStart'](_0x2a444c,_0x6986bc){return a0_0x42ad76(()=>{const _0x3c8e32=a0_0xed34f5(_0x2a444c,this['zone']),_0x4fd507=a0_0xed34f5(_0x6986bc,this['zone']),_0x452e2d=this['cpy']()['toTime']();return _0x3c8e32<=_0x452e2d&&_0x452e2d<_0x4fd507;});}['btwEqEnd'](_0x5377e7,_0x3d855f){return a0_0x42ad76(()=>{const _0x2e9a5f=a0_0xed34f5(_0x5377e7,this['zone']),_0x67c62b=a0_0xed34f5(_0x3d855f,this['zone']),_0x83b19f=this['cpy']()['toTime']();return _0x2e9a5f<_0x83b19f&&_0x83b19f<=_0x67c62b;});}static['diffDays'](_0x555af9,_0x554c23,_0x1c9b63){return a0_0x42ad76(()=>{const _0x483894=a0_0xed34f5(_0x555af9,a0_0x58e7a2),_0x521878=a0_0xed34f5(_0x554c23,a0_0x58e7a2);return _0x1c9b63?Math['abs'](_0x483894-_0x521878)/0x36ee80/0x18:(_0x483894-_0x521878)/0x36ee80/0x18;});}static['diffHours'](_0x4b0aa1,_0x213cfb,_0x2b169b){return a0_0x42ad76(()=>{const _0x3c978c=a0_0xed34f5(_0x4b0aa1,a0_0x58e7a2),_0x27f9fd=a0_0xed34f5(_0x213cfb,a0_0x58e7a2);return _0x2b169b?Math['abs'](_0x3c978c-_0x27f9fd)/0x36ee80:(_0x3c978c-_0x27f9fd)/0x36ee80;});}static['diffMins'](_0x467dec,_0x3700f5,_0x12849f){return a0_0x42ad76(()=>{const _0x4fc4ef=a0_0xed34f5(_0x467dec,a0_0x58e7a2),_0x470ae8=a0_0xed34f5(_0x3700f5,a0_0x58e7a2);return _0x12849f?Math['abs'](_0x4fc4ef-_0x470ae8)/0x3e8/0x3c:(_0x4fc4ef-_0x470ae8)/0x3e8/0x3c;});}static['diffSecs'](_0x10444e,_0x6fd516,_0x1845d2){return a0_0x42ad76(()=>{const _0x2523ba=a0_0xed34f5(_0x10444e,a0_0x58e7a2),_0x1d08eb=a0_0xed34f5(_0x6fd516,a0_0x58e7a2);return _0x1845d2?Math['abs'](_0x2523ba-_0x1d08eb)/0x3e8:(_0x2523ba-_0x1d08eb)/0x3e8;});}static['divideTime'](_0x41dd3b){return a0_0x42ad76(()=>a0_0x599c32(_0x41dd3b));}}exports['MDateUtil']=a0_0xfe7ad6;const a0_0xbd0c09={};a0_0xbd0c09['value']='MDateUtil',a0_0xbd0c09['writable']=![],a0_0xbd0c09['enumerable']=!![],a0_0xbd0c09['configurable']=![],Object['defineProperty'](a0_0xfe7ad6['prototype'],'idkey',a0_0xbd0c09);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x56d975=this&&this['__createBinding']||(Object['create']?function(_0x1e25d4,_0x50cb1f,_0x271d72,_0x303e0d){if(_0x303e0d===undefined)_0x303e0d=_0x271d72;var _0x1e226c=Object['getOwnPropertyDescriptor'](_0x50cb1f,_0x271d72);if(!_0x1e226c||('get'in _0x1e226c?!_0x50cb1f['__esModule']:_0x1e226c['writable']||_0x1e226c['configurable'])){var _0x18b014={};_0x18b014['enumerable']=!![],_0x18b014['get']=function(){return _0x50cb1f[_0x271d72];},_0x1e226c=_0x18b014;}Object['defineProperty'](_0x1e25d4,_0x303e0d,_0x1e226c);}:function(_0xb701b8,_0x48d22b,_0x890116,_0x5254e9){if(_0x5254e9===undefined)_0x5254e9=_0x890116;_0xb701b8[_0x5254e9]=_0x48d22b[_0x890116];}),a0_0x5306c0=this&&this['__exportStar']||function(_0x58abcb,_0x2aea17){for(var _0x435133 in _0x58abcb)if(_0x435133!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x2aea17,_0x435133))a0_0x56d975(_0x2aea17,_0x58abcb,_0x435133);},a0_0xed00fa={};a0_0xed00fa['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0xed00fa),a0_0x5306c0(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x381ca9=this&&this['__createBinding']||(Object['create']?function(_0x14338b,_0x1e49f4,_0x74f313,_0xaa3ebb){if(_0xaa3ebb===undefined)_0xaa3ebb=_0x74f313;var _0x25e24b=Object['getOwnPropertyDescriptor'](_0x1e49f4,_0x74f313);if(!_0x25e24b||('get'in _0x25e24b?!_0x1e49f4['__esModule']:_0x25e24b['writable']||_0x25e24b['configurable'])){var _0x362fae={};_0x362fae['enumerable']=!![],_0x362fae['get']=function(){return _0x1e49f4[_0x74f313];},_0x25e24b=_0x362fae;}Object['defineProperty'](_0x14338b,_0xaa3ebb,_0x25e24b);}:function(_0x1675c2,_0x3a7e75,_0x1316cc,_0x55f015){if(_0x55f015===undefined)_0x55f015=_0x1316cc;_0x1675c2[_0x55f015]=_0x3a7e75[_0x1316cc];}),a0_0x983791=this&&this['__exportStar']||function(_0x2f452c,_0x3621f0){for(var _0x1d878c in _0x2f452c)if(_0x1d878c!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3621f0,_0x1d878c))a0_0x381ca9(_0x3621f0,_0x2f452c,_0x1d878c);},a0_0xcea8c4={};a0_0xcea8c4['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0xcea8c4),a0_0x983791(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.8.15",
3
+ "version": "1.8.85",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",