mat-date 1.8.11 → 1.8.15

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.
@@ -14,7 +14,7 @@ interface IStrOptions {
14
14
  hour12?: boolean | undefined;
15
15
  timeZone?: string | undefined;
16
16
  }
17
- export declare class KDateUtil {
17
+ export declare class MDateUtil {
18
18
  private val;
19
19
  private code;
20
20
  private _zone;
@@ -23,11 +23,11 @@ export declare class KDateUtil {
23
23
  get zone(): string;
24
24
  private init;
25
25
  toString(): string;
26
- static new(): KDateUtil;
27
- static setCode(code: string): typeof KDateUtil;
28
- static setZone(zone: string): typeof KDateUtil;
26
+ static new(): MDateUtil;
27
+ static setCode(code: string): typeof MDateUtil;
28
+ static setZone(zone: string): typeof MDateUtil;
29
29
  static seperator(): string;
30
- cpy(): KDateUtil;
30
+ cpy(): MDateUtil;
31
31
  setCode(code: string): this;
32
32
  setZone(zone: string): this;
33
33
  seperator(): string;
@@ -64,7 +64,7 @@ export declare class KDateUtil {
64
64
  setTime(value: number): this;
65
65
  setDate(value: Date): this;
66
66
  setDateInputValue(value: string): this;
67
- setVal(value: KDateUtil | Date | number | string): KDateUtil;
67
+ setVal(value: MDateUtil | Date | number | string): MDateUtil;
68
68
  toIsoDate(): string;
69
69
  toIsoDateZone(): string;
70
70
  toTime(): number;
@@ -94,30 +94,30 @@ export declare class KDateUtil {
94
94
  addHours(value: number): this;
95
95
  addMins(value: number): this;
96
96
  startOfDay(): this;
97
- cpyByStartOfDay(): KDateUtil;
97
+ cpyByStartOfDay(): MDateUtil;
98
98
  endOfDay(): this;
99
- cpyByEndOfDay(): KDateUtil;
99
+ cpyByEndOfDay(): MDateUtil;
100
100
  startOfWeek(): this;
101
- cpyStartOfWeek(): KDateUtil;
101
+ cpyStartOfWeek(): MDateUtil;
102
102
  endOfWeek(): this;
103
- cpyEndOfWeek(): KDateUtil;
103
+ cpyEndOfWeek(): MDateUtil;
104
104
  startOfMonth(): this;
105
- cpyByStartOfMonth(): KDateUtil;
105
+ cpyByStartOfMonth(): MDateUtil;
106
106
  endOfMonth(): this;
107
- cpyByEndOfMonth(): KDateUtil;
108
- eq(value: KDateUtil | Date | number | string): boolean;
109
- gt(value: KDateUtil | Date | number | string): boolean;
110
- gte(value: KDateUtil | Date | number | string): boolean;
111
- lt(value: KDateUtil | Date | number | string): boolean;
112
- lte(value: KDateUtil | Date | number | string): boolean;
113
- btw(start: KDateUtil | Date | number | string, end: KDateUtil | Date | number | string): boolean;
114
- btweq(start: KDateUtil | Date | number | string, end: KDateUtil | Date | number | string): boolean;
115
- btwEqStart(start: KDateUtil | Date | number | string, end: KDateUtil | Date | number | string): boolean;
116
- btwEqEnd(start: KDateUtil | Date | number | string, end: KDateUtil | Date | number | string): boolean;
117
- static diffDays(before: KDateUtil | Date | number | string, after: KDateUtil | Date | number | string, abs?: boolean): number;
118
- static diffHours(before: KDateUtil | Date | number | string, after: KDateUtil | Date | number | string, abs?: boolean): number;
119
- static diffMins(before: KDateUtil | Date | number | string, after: KDateUtil | Date | number | string, abs?: boolean): number;
120
- static diffSecs(before: KDateUtil | Date | number | string, after: KDateUtil | Date | number | string, abs?: boolean): number;
107
+ cpyByEndOfMonth(): MDateUtil;
108
+ eq(value: MDateUtil | Date | number | string): boolean;
109
+ gt(value: MDateUtil | Date | number | string): boolean;
110
+ gte(value: MDateUtil | Date | number | string): boolean;
111
+ lt(value: MDateUtil | Date | number | string): boolean;
112
+ lte(value: MDateUtil | Date | number | string): boolean;
113
+ btw(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
114
+ btweq(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
115
+ btwEqStart(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
116
+ btwEqEnd(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
117
+ static diffDays(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
118
+ static diffHours(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
119
+ static diffMins(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
120
+ static diffSecs(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
121
121
  static divideTime(value: string): {
122
122
  h: number;
123
123
  m: number;
package/dist/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2aa97c={};a0_0x2aa97c['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x2aa97c),exports['KDateUtil']=void 0x0;const a0_0x29b3dc=require('@js-temporal/polyfill'),a0_0x34f943=(_0x134c09,_0x5caa90=0x2)=>_0x134c09['toString']()['padStart'](_0x5caa90,'0');function a0_0x50fd5d(_0xd19dac,_0x1a2c9a){try{return _0xd19dac();}catch(_0x29a679){if(_0x1a2c9a)return _0x1a2c9a;throw new Error('UNKNOWN');}}function a0_0x212473(_0x4d747e,_0x268401){try{if(_0x4d747e instanceof Date)return a0_0x29b3dc['Temporal']['Instant']['fromEpochMilliseconds'](_0x4d747e['getTime']())['toZonedDateTimeISO'](_0x268401)['epochMilliseconds'];if(typeof _0x4d747e==='number')return _0x4d747e;if(typeof _0x4d747e==='string')return a0_0x29b3dc['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x4d747e)['getTime']())['toZonedDateTimeISO'](_0x268401)['epochMilliseconds'];if(_0x4d747e instanceof a0_0x534212)return _0x4d747e['toTime']();if(_0x4d747e['idkey']==='mdateutil')return _0x4d747e['toTime']();return 0x0;}catch(_0x2ed3fe){throw new Error('ERROR');}}function a0_0x15c9fc(_0x1a61c0){function _0x5cdf98(_0x5bb165){const _0x318e67={};return _0x318e67['weekday']=_0x5bb165,a0_0x50fd5d(()=>new Intl['DateTimeFormat'](_0x1a61c0['localCode'],_0x318e67)['format'](a0_0x212473(_0x1a61c0,_0x1a61c0['zone'])),'');}function _0x1209c6(){return _0x5cdf98('long');}function _0xa1f1ea(){return _0x5cdf98('short');}function _0x38ce1d(){return _0x5cdf98('narrow');}const _0x3aac68={};return _0x3aac68['ln']=_0x1209c6,_0x3aac68['sh']=_0xa1f1ea,_0x3aac68['nr']=_0x38ce1d,_0x3aac68;}function a0_0x2612c2(_0x52ccbf){let _0x532b74=undefined,_0x1cb100=undefined,_0x511fff=undefined,_0xb7a0cb=undefined;try{const _0xd187f1=(_0x52ccbf||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x532b74=_0xd187f1['length']>=0x1?Number(_0xd187f1[0x0]):undefined,_0x1cb100=_0xd187f1['length']>=0x2?Number(_0xd187f1[0x1]):undefined,_0x511fff=_0xd187f1['length']>=0x3?Number(_0xd187f1[0x2]):undefined;}catch(_0x2176b7){}try{let _0x5e565f=_0x52ccbf||'',_0x3674f2=/\.\d{3}/g,_0x21a2e7=_0x5e565f['match'](_0x3674f2)[0x0]['split']('.')['filter'](_0x59caec=>Boolean(_0x59caec));_0xb7a0cb=_0x21a2e7['length']>=0x1?Number(_0x21a2e7[0x0]):undefined;}catch(_0x334701){}const _0x713a8={};return _0x713a8['h']=_0x532b74,_0x713a8['m']=_0x1cb100,_0x713a8['s']=_0x511fff,_0x713a8['ms']=_0xb7a0cb,_0x713a8;}let a0_0x4e55f1=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x18a692=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x534212{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x15c9fc(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x29b3dc['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x15c9fc(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x534212()['setCode'](a0_0x4e55f1)['setZone'](a0_0x18a692)['init']();}static['setCode'](_0x4c1baf){return a0_0x4e55f1=_0x4c1baf,this;}static['setZone'](_0x330455){return a0_0x18a692=_0x330455,this;}static['seperator'](){return a0_0x50fd5d(()=>new Date()['toLocaleDateString'](a0_0x4e55f1)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x50fd5d(()=>a0_0x534212['new']()['setTime'](this['toTime']()));}['setCode'](_0x3494a6){return this['code']=_0x3494a6,this;}['setZone'](_0x242c9b){return this['_zone']=_0x242c9b,this;}['seperator'](){return a0_0x50fd5d(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x50fd5d(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x27fb22=this['code']){return a0_0x50fd5d(()=>{return new Intl['Locale'](_0x27fb22)?.['timeZones']||[];},null);}['region'](_0x1acfe3=this['code']){return a0_0x50fd5d(()=>{return new Intl['Locale'](_0x1acfe3)['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 _0x560258=this['val']['dayOfWeek'];return _0x560258?_0x560258:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x8dd568){const _0x273d61={};return _0x273d61['year']=_0x8dd568,this['val']=this['val']['with'](_0x273d61),this;}['setMonth'](_0x45f15a){const _0x43e54c={};return _0x43e54c['month']=_0x45f15a,this['val']=this['val']['with'](_0x43e54c),this;}['setMonthUtc'](_0x4a1653){const _0x2416f7={};return _0x2416f7['month']=_0x4a1653+0x1,this['val']=this['val']['with'](_0x2416f7),this;}['setDay'](_0x447437){const _0x3689da={};return _0x3689da['day']=_0x447437,this['val']=this['val']['with'](_0x3689da),this;}['setHour'](_0x20c689){const _0x10934a={};return _0x10934a['hour']=_0x20c689,this['val']=this['val']['with'](_0x10934a),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'](_0x5c22cd){const _0x2864b8={};return _0x2864b8['minute']=_0x5c22cd,this['val']=this['val']['with'](_0x2864b8),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x17af5b){const _0xc46703={};return _0xc46703['second']=_0x17af5b,this['val']=this['val']['with'](_0xc46703),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x394e61){const _0x1862dc={};return _0x1862dc['millisecond']=_0x394e61,this['val']=this['val']['with'](_0x1862dc),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x422f94){return this['val']=a0_0x29b3dc['Temporal']['Instant']['from'](_0x422f94||new Date()['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x1d8ff7){return this['val']=a0_0x29b3dc['Temporal']['Instant']['fromEpochMilliseconds'](_0x1d8ff7||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0xf8a4e1){return this['setIsoDate'](_0xf8a4e1?.['toISOString']()),this;}['setDateInputValue'](_0x274aa1){return this['val']=a0_0x29b3dc['Temporal']['Instant']['from'](new Date(_0x274aa1?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x2cbc40){return a0_0x50fd5d(()=>{return a0_0x534212['new']()['setTime'](a0_0x212473(_0x2cbc40,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_0x34f943(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x34f943(this['month']())+'-'+a0_0x34f943(this['day']());}['toTimeInput'](_0x49b158=!![]){const _0x35a630=[];return _0x35a630['push'](a0_0x34f943(this['hours']())),_0x35a630['push'](a0_0x34f943(this['min']())),_0x49b158&&_0x35a630['push'](a0_0x34f943(this['sec']())),_0x35a630['join'](':');}['toDateTimeInput'](_0x4a85bc=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x4a85bc);}['strDate'](){const _0x4e5b4f={};return _0x4e5b4f['month']='2-digit',_0x4e5b4f['day']='2-digit',_0x4e5b4f['year']='numeric',this['val']['toLocaleString'](this['code'],_0x4e5b4f);}['strTime'](){return a0_0x34f943(this['hours']())+':'+a0_0x34f943(this['min']())+':'+a0_0x34f943(this['sec']());}['strHHmm'](){return a0_0x34f943(this['hours']())+':'+a0_0x34f943(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x3cfc43){return this['val']['toLocaleString'](this['code'],_0x3cfc43);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x34f943(this['month'](),0x2);}['strDay'](){return a0_0x34f943(this['day'](),0x2);}['strHour'](){return a0_0x34f943(this['hours'](),0x2);}['strMin'](){return a0_0x34f943(this['min'](),0x2);}['strSec'](){return a0_0x34f943(this['sec'](),0x2);}['strMsec'](){return a0_0x34f943(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x4542d4){const _0x5aaf8b={};return _0x5aaf8b['days']=_0x4542d4,this['val']=this['val']['add'](_0x5aaf8b),this;}['addHours'](_0x235de8){const _0x388093={};return _0x388093['hours']=_0x235de8,this['val']=this['val']['add'](_0x388093),this;}['addMins'](_0x3da837){const _0x17fd29={};return _0x17fd29['minutes']=_0x3da837,this['val']=this['val']['add'](_0x17fd29),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'](_0x4e2716){return a0_0x50fd5d(()=>{return this['cpy']()['toTime']()===a0_0x212473(_0x4e2716,this['zone']);});}['gt'](_0x27bf40){return a0_0x50fd5d(()=>{return this['cpy']()['toTime']()>a0_0x212473(_0x27bf40,this['zone']);});}['gte'](_0x560b13){return a0_0x50fd5d(()=>{return this['cpy']()['toTime']()>=a0_0x212473(_0x560b13,this['zone']);});}['lt'](_0x2567ec){return a0_0x50fd5d(()=>{return this['cpy']()['toTime']()<a0_0x212473(_0x2567ec,this['zone']);});}['lte'](_0x5aa750){return a0_0x50fd5d(()=>{return this['cpy']()['toTime']()<=a0_0x212473(_0x5aa750,this['zone']);});}['btw'](_0x341ee5,_0x36001f){return a0_0x50fd5d(()=>{const _0x1c9e9c=a0_0x212473(_0x341ee5,this['zone']),_0x3faeb4=a0_0x212473(_0x36001f,this['zone']),_0x1156be=this['cpy']()['toTime']();return _0x1c9e9c<_0x1156be&&_0x1156be<_0x3faeb4;});}['btweq'](_0x554c2e,_0xb6f66c){return a0_0x50fd5d(()=>{const _0x2959a0=a0_0x212473(_0x554c2e,this['zone']),_0x2277b2=a0_0x212473(_0xb6f66c,this['zone']),_0x131654=this['cpy']()['toTime']();return _0x2959a0<=_0x131654&&_0x131654<=_0x2277b2;});}['btwEqStart'](_0x337fed,_0x3548f7){return a0_0x50fd5d(()=>{const _0x317b2c=a0_0x212473(_0x337fed,this['zone']),_0x256c10=a0_0x212473(_0x3548f7,this['zone']),_0x4c942c=this['cpy']()['toTime']();return _0x317b2c<=_0x4c942c&&_0x4c942c<_0x256c10;});}['btwEqEnd'](_0x3618ff,_0x6b4963){return a0_0x50fd5d(()=>{const _0x2e5757=a0_0x212473(_0x3618ff,this['zone']),_0x2fec1e=a0_0x212473(_0x6b4963,this['zone']),_0x3a27d8=this['cpy']()['toTime']();return _0x2e5757<_0x3a27d8&&_0x3a27d8<=_0x2fec1e;});}static['diffDays'](_0x200f7e,_0x31ceaf,_0x224f8a){return a0_0x50fd5d(()=>{const _0x241dc2=a0_0x212473(_0x200f7e,a0_0x18a692),_0x4f7f33=a0_0x212473(_0x31ceaf,a0_0x18a692);return _0x224f8a?Math['abs'](_0x241dc2-_0x4f7f33)/0x36ee80/0x18:(_0x241dc2-_0x4f7f33)/0x36ee80/0x18;});}static['diffHours'](_0x1aee94,_0x22f467,_0x537ed7){return a0_0x50fd5d(()=>{const _0x3085f4=a0_0x212473(_0x1aee94,a0_0x18a692),_0x29afbd=a0_0x212473(_0x22f467,a0_0x18a692);return _0x537ed7?Math['abs'](_0x3085f4-_0x29afbd)/0x36ee80:(_0x3085f4-_0x29afbd)/0x36ee80;});}static['diffMins'](_0x45969b,_0x38c9b4,_0x22b84){return a0_0x50fd5d(()=>{const _0x2e2bb1=a0_0x212473(_0x45969b,a0_0x18a692),_0x1a3711=a0_0x212473(_0x38c9b4,a0_0x18a692);return _0x22b84?Math['abs'](_0x2e2bb1-_0x1a3711)/0x3e8/0x3c:(_0x2e2bb1-_0x1a3711)/0x3e8/0x3c;});}static['diffSecs'](_0x206f5,_0xac42b9,_0x50a266){return a0_0x50fd5d(()=>{const _0x471ee5=a0_0x212473(_0x206f5,a0_0x18a692),_0x4b9966=a0_0x212473(_0xac42b9,a0_0x18a692);return _0x50a266?Math['abs'](_0x471ee5-_0x4b9966)/0x3e8:(_0x471ee5-_0x4b9966)/0x3e8;});}static['divideTime'](_0x21b607){return a0_0x50fd5d(()=>a0_0x2612c2(_0x21b607));}}exports['KDateUtil']=a0_0x534212;const a0_0x244154={};a0_0x244154['value']='mdateutil',a0_0x244154['writable']=![],a0_0x244154['enumerable']=!![],a0_0x244154['configurable']=![],Object['defineProperty'](a0_0x534212['prototype'],'idkey',a0_0x244154);
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);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x43ce15=this&&this['__createBinding']||(Object['create']?function(_0x778852,_0x8f4e5f,_0x3fd227,_0x4de640){if(_0x4de640===undefined)_0x4de640=_0x3fd227;var _0x465a61=Object['getOwnPropertyDescriptor'](_0x8f4e5f,_0x3fd227);if(!_0x465a61||('get'in _0x465a61?!_0x8f4e5f['__esModule']:_0x465a61['writable']||_0x465a61['configurable'])){var _0x365ed2={};_0x365ed2['enumerable']=!![],_0x365ed2['get']=function(){return _0x8f4e5f[_0x3fd227];},_0x465a61=_0x365ed2;}Object['defineProperty'](_0x778852,_0x4de640,_0x465a61);}:function(_0x4aea00,_0x56fa73,_0x1e5bba,_0xff88ac){if(_0xff88ac===undefined)_0xff88ac=_0x1e5bba;_0x4aea00[_0xff88ac]=_0x56fa73[_0x1e5bba];}),a0_0x3747e6=this&&this['__exportStar']||function(_0x3fc570,_0x3591ca){for(var _0x55c323 in _0x3fc570)if(_0x55c323!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3591ca,_0x55c323))a0_0x43ce15(_0x3591ca,_0x3fc570,_0x55c323);},a0_0xddab91={};a0_0xddab91['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0xddab91),a0_0x3747e6(require('./DateUtil'),exports);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.8.11",
3
+ "version": "1.8.15",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",