mat-date 1.15.55 → 1.15.75

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_0x3d68b3={};a0_0x3d68b3['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3d68b3),exports['MDateUtil']=void 0x0;const a0_0x4ffe0a=require('temporal-polyfill'),a0_0x2972aa=(_0x5442c4,_0x3ae960=0x2)=>_0x5442c4['toString']()['padStart'](_0x3ae960,'0');function a0_0x39689c(_0x10d073,_0x2d3970){try{return _0x10d073();}catch(_0x2ee37f){if(_0x2d3970)return _0x2d3970;throw new Error('UNKNOWN');}}function a0_0x17c6c9(_0x35e243,_0x41fbff){try{if(_0x35e243 instanceof a0_0x52a30d||_0x35e243['idkey']==='MDateUtil')return _0x35e243['toTime']();if(typeof _0x35e243==='string'){const _0xe4dc88=Date['parse'](_0x35e243);return a0_0x4ffe0a['Temporal']['Instant']['fromEpochMilliseconds'](_0xe4dc88)['toZonedDateTimeISO'](_0x41fbff)['epochMilliseconds'];}if(typeof _0x35e243==='number')return _0x35e243;if(_0x35e243 instanceof Date)return a0_0x4ffe0a['Temporal']['Instant']['fromEpochMilliseconds'](_0x35e243['getTime']())['toZonedDateTimeISO'](_0x41fbff)['epochMilliseconds'];return 0x0;}catch(_0x20cb4e){throw new Error('ERROR');}}function a0_0x10e6b5(_0x59b6f2){function _0x57f8db(_0x474a98){const _0x31985b={};return _0x31985b['weekday']=_0x474a98,a0_0x39689c(()=>new Intl['DateTimeFormat'](_0x59b6f2['localCode'],_0x31985b)['format'](a0_0x17c6c9(_0x59b6f2,_0x59b6f2['zone'])),'');}function _0x4eb64d(){return _0x57f8db('long');}function _0x2a6aa6(){return _0x57f8db('short');}function _0x26f581(){return _0x57f8db('narrow');}const _0x2a9647={};return _0x2a9647['ln']=_0x4eb64d,_0x2a9647['sh']=_0x2a6aa6,_0x2a9647['nr']=_0x26f581,_0x2a9647;}function a0_0x2e0bae(_0x91f956=''){const _0x3bd1b5={};_0x3bd1b5['h']=undefined,_0x3bd1b5['m']=undefined,_0x3bd1b5['s']=undefined,_0x3bd1b5['ms']=undefined;const _0x3d9ebb=_0x3bd1b5,_0x722d3=_0x91f956['match'](/\b\d{1,2}:\d{2}(?::\d{2})?\b/);if(_0x722d3?.[0x0]){const [_0x3a0592,_0x5090b4,_0x5a8576]=_0x722d3[0x0]['split'](':')['map'](Number);_0x3d9ebb['h']=_0x3a0592,_0x3d9ebb['m']=_0x5090b4,_0x3d9ebb['s']=_0x5a8576;}const _0x5a1c80=_0x91f956['match'](/\.(\d{1,3})/);return _0x5a1c80?.[0x1]&&(_0x3d9ebb['ms']=Number(_0x5a1c80[0x1]['padEnd'](0x3,'0'))),_0x3d9ebb;}let a0_0x37e32b=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x26012e=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x277385(_0x2c63ab){return Math['floor'](_0x2c63ab)||0x0;}class a0_0x52a30d{#val;#_code=a0_0x37e32b;#_zone=a0_0x26012e;#_dyfrmt;get['localCode'](){return this.#_code;}get['zone'](){return this.#_zone;}['with'](_0x1e0052){this.#val=this.#val['with']({'year':_0x1e0052['getFullYear'](),'month':_0x1e0052['getMonth']()+0x1,'day':_0x1e0052['getDate'](),'hour':_0x1e0052['getHours'](),'minute':_0x1e0052['getMinutes'](),'second':_0x1e0052['getSeconds'](),'millisecond':_0x1e0052['getMilliseconds']()});}['init'](){return this.#val=a0_0x4ffe0a['Temporal']['Now']['zonedDateTimeISO'](this['zone']),this;}['toString'](){return'---';}static['new'](){return new a0_0x52a30d()['setCode'](a0_0x37e32b)['setZone'](a0_0x26012e)['init']();}static['setCode'](_0x46dcd4){return a0_0x37e32b=_0x46dcd4,this;}static['setZone'](_0x4751d2){return a0_0x26012e=_0x4751d2,this;}static['seperator'](){return a0_0x39689c(()=>new Date()['toLocaleDateString'](a0_0x37e32b)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x52a30d['new']()['setTime'](this['toTime']());}['setCode'](_0x275cb7){return this.#_code=_0x275cb7,this;}['setZone'](_0x5cf7ba){return this.#_zone=_0x5cf7ba,this;}['seperator'](){return a0_0x39689c(()=>new Date()['toLocaleDateString'](this.#_code)['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x39689c(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x5af67b=this.#_code){return a0_0x39689c(()=>{return new Intl['Locale'](_0x5af67b)?.['timeZones']||[];},null);}['region'](_0x9d7b9f=this.#_code){return a0_0x39689c(()=>{return new Intl['Locale'](_0x9d7b9f)['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 _0xcc2dbe=this.#val['dayOfWeek'];return _0xcc2dbe?_0xcc2dbe:0x7;}['dayOfWeekUtc'](){return this.#val['dayOfWeek']-0x1;}['setYear'](_0x3565e0){return this.#val=this.#val['with']({'year':a0_0x277385(_0x3565e0)}),this;}['setMonth'](_0x4a9d76){return this.#val=this.#val['with']({'month':a0_0x277385(_0x4a9d76)}),this;}['setMonthUtc'](_0x2ddc6a){return this.#val=this.#val['with']({'month':a0_0x277385(_0x2ddc6a)+0x1}),this;}['setDay'](_0x14e7c8){return this.#val=this.#val['with']({'day':a0_0x277385(_0x14e7c8)}),this;}['setHour'](_0x22a953){return this.#val=this.#val['with']({'hour':a0_0x277385(_0x22a953)}),this;}['startOfHours'](){const _0x5cb4ec={};return _0x5cb4ec['minute']=0x0,_0x5cb4ec['second']=0x0,_0x5cb4ec['millisecond']=0x0,this.#val=this.#val['with'](_0x5cb4ec),this;}['endOfHours'](){const _0x3e02ff={};return _0x3e02ff['minute']=0x3b,_0x3e02ff['second']=0x3b,_0x3e02ff['millisecond']=0x3e7,this.#val=this.#val['with'](_0x3e02ff),this;}['setMin'](_0x3c0cab){return this.#val=this.#val['with']({'minute':a0_0x277385(_0x3c0cab)}),this;}['startOfMin'](){const _0x3e8e5e={};return _0x3e8e5e['second']=0x0,_0x3e8e5e['millisecond']=0x0,this.#val=this.#val['with'](_0x3e8e5e),this;}['endOfMin'](){const _0x25ffa1={};return _0x25ffa1['second']=0x3b,_0x25ffa1['millisecond']=0x3e7,this.#val=this.#val['with'](_0x25ffa1),this;}['setSeconds'](_0x4ad655){return this.#val=this.#val['with']({'second':a0_0x277385(_0x4ad655)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x38fcef){return this.#val=this.#val['with']({'millisecond':a0_0x277385(_0x38fcef)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x52b4e5){return _0x52b4e5?this.#val=a0_0x4ffe0a['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x52b4e5)['getTime']())['toZonedDateTimeISO'](this['zone']):this.#val=a0_0x4ffe0a['Temporal']['Now']['zonedDateTimeISO'](this['zone']),this;}['setTime'](_0x77fcd2){return this.#val=a0_0x4ffe0a['Temporal']['Instant']['fromEpochMilliseconds'](_0x77fcd2||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0xaf3c25){return this['setIsoDate'](_0xaf3c25?.['toISOString']()),this;}['setDateInputValue'](_0x1e47f4){const _0x5ec8f1=_0x1e47f4?new Date(_0x1e47f4?.['replace']('T','\x20')):new Date();return _0x5ec8f1['getTime']()&&(this.#val=a0_0x4ffe0a['Temporal']['Instant']['fromEpochMilliseconds'](_0x5ec8f1?.['getTime']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x5ec8f1)),this;}['setVal'](_0x53509c){return a0_0x52a30d['new']()['setTime'](a0_0x17c6c9(_0x53509c,this['zone']));}['toIsoDate'](){const _0x55edde={};return _0x55edde['fractionalSecondDigits']=0x3,this.#val['toInstant']()['toString'](_0x55edde);}['toIsoDateZone'](){return this.#val['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this.#val['epochMilliseconds'];}['toDate'](){return new Date(this.#val['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x2972aa(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x2972aa(this['month']())+'-'+a0_0x2972aa(this['day']());}['toTimeInput'](_0x1e8035=!![]){const _0x2c7a33=[];return _0x2c7a33['push'](a0_0x2972aa(this['hours']())),_0x2c7a33['push'](a0_0x2972aa(this['min']())),_0x1e8035&&_0x2c7a33['push'](a0_0x2972aa(this['sec']())),_0x2c7a33['join'](':');}['toDateTimeInput'](_0x5c0a62=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x5c0a62);}['toAs'](){return this.#val['toInstant']()['toString']();}['strDate'](){const _0x4beb31={};return _0x4beb31['month']='2-digit',_0x4beb31['day']='2-digit',_0x4beb31['year']='numeric',this.#val['toLocaleString'](this.#_code,_0x4beb31);}['strTime'](){return a0_0x2972aa(this['hours']())+':'+a0_0x2972aa(this['min']())+':'+a0_0x2972aa(this['sec']());}['strHHmm'](){return a0_0x2972aa(this['hours']())+':'+a0_0x2972aa(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0xd7337){return this.#val['toLocaleString'](this.#_code,_0xd7337);}['strYears'](){return this.#val['year']['toString']();}['strMounth'](){return a0_0x2972aa(this['month'](),0x2);}['strDay'](){return a0_0x2972aa(this['day'](),0x2);}['strHour'](){return a0_0x2972aa(this['hours'](),0x2);}['strMin'](){return a0_0x2972aa(this['min'](),0x2);}['strSec'](){return a0_0x2972aa(this['sec'](),0x2);}['strMsec'](){return a0_0x2972aa(this['msec'](),0x2);}['strDayStr'](){return this.#_dyfrmt=a0_0x10e6b5(this),{'ln':()=>this.#_dyfrmt['ln'](),'sh':()=>this.#_dyfrmt['sh'](),'nr':()=>this.#_dyfrmt['nr']()};}['addMonth'](_0x52151f){return this.#val=this.#val['add']({'months':a0_0x277385(_0x52151f)}),this;}['addDay'](_0x4c3305){return this['addHours'](_0x4c3305*0x18),this;}['addHours'](_0x384700){return this['addMins'](_0x384700*0x3c),this;}['addMins'](_0x34b0da){return this['addSecs'](_0x34b0da*0x3c),this;}['addSecs'](_0x3a1ec4){return this['addMilliseconds'](_0x3a1ec4*0x3e8),this;}['addMilliseconds'](_0x9606ae){return this.#val=this.#val['add']({'milliseconds':a0_0x277385(_0x9606ae)}),this;}['startOfDay'](){const _0x244ff2={};return _0x244ff2['hour']=0x0,_0x244ff2['minute']=0x0,_0x244ff2['second']=0x0,_0x244ff2['millisecond']=0x0,this.#val=this.#val['with'](_0x244ff2),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){const _0x586918={};return _0x586918['hour']=0x17,_0x586918['minute']=0x3b,_0x586918['second']=0x3b,_0x586918['millisecond']=0x3e7,this.#val=this.#val['with'](_0x586918),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'](){const _0x478f25={};return _0x478f25['day']=0x1,_0x478f25['hour']=0x0,_0x478f25['minute']=0x0,_0x478f25['second']=0x0,_0x478f25['millisecond']=0x0,this.#val=this.#val['with'](_0x478f25),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){const _0x3e420a=a0_0x4ffe0a['Temporal']['ZonedDateTime']['from'](this.#val),_0x145a82={};_0x145a82['day']=_0x3e420a['daysInMonth'];const _0x26be39={};return _0x26be39['hour']=0x17,_0x26be39['minute']=0x3b,_0x26be39['second']=0x3b,_0x26be39['millisecond']=0x3e7,_0x26be39['microsecond']=0x3e7,_0x26be39['nanosecond']=0x3e7,this.#val=this.#val['with'](_0x145a82)['with'](_0x26be39),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x129fb0){return this['cpy']()['toTime']()===a0_0x17c6c9(_0x129fb0,this['zone']);}['gt'](_0x6edb91){return this['cpy']()['toTime']()>a0_0x17c6c9(_0x6edb91,this['zone']);}['gte'](_0x567eb6){return this['cpy']()['toTime']()>=a0_0x17c6c9(_0x567eb6,this['zone']);}['lt'](_0x3be8b1){return this['cpy']()['toTime']()<a0_0x17c6c9(_0x3be8b1,this['zone']);}['lte'](_0x354348){return this['cpy']()['toTime']()<=a0_0x17c6c9(_0x354348,this['zone']);}['btw'](_0x232fab,_0x97cfe0){const _0x1a62b7=a0_0x17c6c9(_0x232fab,this['zone']),_0x47f340=a0_0x17c6c9(_0x97cfe0,this['zone']),_0x3e0cda=this['cpy']()['toTime']();return _0x1a62b7<_0x3e0cda&&_0x3e0cda<_0x47f340;}['btweq'](_0x4a0abf,_0x426ed7){const _0x28717b=a0_0x17c6c9(_0x4a0abf,this['zone']),_0x4086d6=a0_0x17c6c9(_0x426ed7,this['zone']),_0x90f1c9=this['cpy']()['toTime']();return _0x28717b<=_0x90f1c9&&_0x90f1c9<=_0x4086d6;}['btwEqStart'](_0x147bd0,_0x3e9703){const _0x4213c1=a0_0x17c6c9(_0x147bd0,this['zone']),_0x31463f=a0_0x17c6c9(_0x3e9703,this['zone']),_0x25c69c=this['cpy']()['toTime']();return _0x4213c1<=_0x25c69c&&_0x25c69c<_0x31463f;}['btwEqEnd'](_0x4776be,_0x538d60){const _0x3fefc7=a0_0x17c6c9(_0x4776be,this['zone']),_0x2e6a12=a0_0x17c6c9(_0x538d60,this['zone']),_0x59ede7=this['cpy']()['toTime']();return _0x3fefc7<_0x59ede7&&_0x59ede7<=_0x2e6a12;}['diffDays'](_0x17ecfa,_0x50ad01){const _0x5bd36e=this['toTime'](),_0x19ae73=a0_0x17c6c9(_0x17ecfa,a0_0x26012e);return _0x50ad01?Math['abs'](_0x5bd36e-_0x19ae73)/0x36ee80/0x18:(_0x5bd36e-_0x19ae73)/0x36ee80/0x18;}['diffHours'](_0x35f531,_0xa65513){const _0x2b376a=this['toTime'](),_0xe5efb2=a0_0x17c6c9(_0x35f531,a0_0x26012e);return _0xa65513?Math['abs'](_0x2b376a-_0xe5efb2)/0x36ee80:(_0x2b376a-_0xe5efb2)/0x36ee80;}['diffMins'](_0xc78b93,_0x283c47){const _0x15d516=this['toTime'](),_0x1b7e76=a0_0x17c6c9(_0xc78b93,a0_0x26012e);return _0x283c47?Math['abs'](_0x15d516-_0x1b7e76)/0x3e8/0x3c:(_0x15d516-_0x1b7e76)/0x3e8/0x3c;}['diffSecs'](_0x939e1,_0x1fde02){const _0x17fa4a=this['toTime'](),_0x4ecf45=a0_0x17c6c9(_0x939e1,a0_0x26012e);return _0x1fde02?Math['abs'](_0x17fa4a-_0x4ecf45)/0x3e8:(_0x17fa4a-_0x4ecf45)/0x3e8;}static['diffDays'](_0x3e3bee,_0x2ca350,_0x35882b){const _0x5e647d=a0_0x17c6c9(_0x3e3bee,a0_0x26012e),_0x23997f=a0_0x17c6c9(_0x2ca350,a0_0x26012e);return _0x35882b?Math['abs'](_0x5e647d-_0x23997f)/0x36ee80/0x18:(_0x5e647d-_0x23997f)/0x36ee80/0x18;}static['diffHours'](_0x436e28,_0x613fc4,_0x3b285d){const _0x492f53=a0_0x17c6c9(_0x436e28,a0_0x26012e),_0x564929=a0_0x17c6c9(_0x613fc4,a0_0x26012e);return _0x3b285d?Math['abs'](_0x492f53-_0x564929)/0x36ee80:(_0x492f53-_0x564929)/0x36ee80;}static['diffMins'](_0x4712d6,_0x4461eb,_0x978053){const _0xcb572d=a0_0x17c6c9(_0x4712d6,a0_0x26012e),_0x2467b3=a0_0x17c6c9(_0x4461eb,a0_0x26012e);return _0x978053?Math['abs'](_0xcb572d-_0x2467b3)/0x3e8/0x3c:(_0xcb572d-_0x2467b3)/0x3e8/0x3c;}static['diffSecs'](_0x3a0ef0,_0x4d5a38,_0x66b4ec){const _0xc9fc6f=a0_0x17c6c9(_0x3a0ef0,a0_0x26012e),_0x429a89=a0_0x17c6c9(_0x4d5a38,a0_0x26012e);return _0x66b4ec?Math['abs'](_0xc9fc6f-_0x429a89)/0x3e8:(_0xc9fc6f-_0x429a89)/0x3e8;}static['divideTime'](_0xa921f3){return a0_0x2e0bae(_0xa921f3);}}exports['MDateUtil']=a0_0x52a30d;const a0_0x141554={};a0_0x141554['value']='MDateUtil',a0_0x141554['writable']=![],a0_0x141554['enumerable']=!![],a0_0x141554['configurable']=![],Object['defineProperty'](a0_0x52a30d['prototype'],'idkey',a0_0x141554);
1
+ 'use strict';const a0_0x205c4c={};a0_0x205c4c['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x205c4c),exports['MDateUtil']=void 0x0;const a0_0x5af742=require('temporal-polyfill'),a0_0x4995d4=(_0x224828,_0x15e6d3=0x2)=>_0x224828['toString']()['padStart'](_0x15e6d3,'0');function a0_0x1d9b9c(_0x35e74a,_0x401f20){try{return _0x35e74a();}catch(_0x17b5f7){if(_0x401f20)return _0x401f20;throw new Error('UNKNOWN');}}function a0_0x2e482e(_0x47d621,_0x300839){try{if(_0x47d621 instanceof a0_0x6055e5||_0x47d621['idkey']==='MDateUtil')return _0x47d621['toTime']();if(typeof _0x47d621==='string'){const _0x51bbd3=Date['parse'](_0x47d621);return a0_0x5af742['Temporal']['Instant']['fromEpochMilliseconds'](_0x51bbd3)['toZonedDateTimeISO'](_0x300839)['epochMilliseconds'];}if(typeof _0x47d621==='number')return _0x47d621;if(_0x47d621 instanceof Date)return a0_0x5af742['Temporal']['Instant']['fromEpochMilliseconds'](_0x47d621['getTime']())['toZonedDateTimeISO'](_0x300839)['epochMilliseconds'];return 0x0;}catch(_0x58829a){throw new Error('ERROR');}}function a0_0x25a72a(_0x2c5668){function _0x4e8b2e(_0x2b2216){const _0x6f2830={};return _0x6f2830['weekday']=_0x2b2216,a0_0x1d9b9c(()=>new Intl['DateTimeFormat'](_0x2c5668['localCode'],_0x6f2830)['format'](a0_0x2e482e(_0x2c5668,_0x2c5668['zone'])),'');}function _0x16f9c3(){return _0x4e8b2e('long');}function _0x150362(){return _0x4e8b2e('short');}function _0x5378a5(){return _0x4e8b2e('narrow');}const _0x312568={};return _0x312568['ln']=_0x16f9c3,_0x312568['sh']=_0x150362,_0x312568['nr']=_0x5378a5,_0x312568;}function a0_0x4078f7(_0x51dcc0=''){const _0x261620={};_0x261620['h']=undefined,_0x261620['m']=undefined,_0x261620['s']=undefined,_0x261620['ms']=undefined;const _0xd79f4a=_0x261620,_0x372404=_0x51dcc0['match'](/\b\d{1,2}:\d{2}(?::\d{2})?\b/);if(_0x372404?.[0x0]){const [_0x131251,_0x163110,_0xf7e22e]=_0x372404[0x0]['split'](':')['map'](Number);_0xd79f4a['h']=_0x131251,_0xd79f4a['m']=_0x163110,_0xd79f4a['s']=_0xf7e22e;}const _0x3b902f=_0x51dcc0['match'](/\.(\d{1,3})/);return _0x3b902f?.[0x1]&&(_0xd79f4a['ms']=Number(_0x3b902f[0x1]['padEnd'](0x3,'0'))),_0xd79f4a;}let a0_0x32c2c3=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x5d57fd=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x512cf7(_0x1052f3){return Math['floor'](_0x1052f3)||0x0;}class a0_0x6055e5{#val;#_code=a0_0x32c2c3;#_zone=a0_0x5d57fd;#_dyfrmt;get['localCode'](){return this.#_code;}get['zone'](){return this.#_zone;}['with'](_0x3186b2){this.#val=this.#val['with']({'year':_0x3186b2['getFullYear'](),'month':_0x3186b2['getMonth']()+0x1,'day':_0x3186b2['getDate'](),'hour':_0x3186b2['getHours'](),'minute':_0x3186b2['getMinutes'](),'second':_0x3186b2['getSeconds'](),'millisecond':_0x3186b2['getMilliseconds']()});}['init'](){return this.#val=a0_0x5af742['Temporal']['Now']['zonedDateTimeISO'](this['zone']),this;}['toString'](){return'---';}static['new'](){return new a0_0x6055e5()['setCode'](a0_0x32c2c3)['setZone'](a0_0x5d57fd)['init']();}static['setCode'](_0x18cb26){return a0_0x32c2c3=_0x18cb26,this;}static['setZone'](_0x5f31e0){return a0_0x5d57fd=_0x5f31e0,this;}static['seperator'](){return a0_0x1d9b9c(()=>new Date()['toLocaleDateString'](a0_0x32c2c3)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x6055e5['new']()['setTime'](this['toTime']());}['setCode'](_0x46e25c){return this.#_code=_0x46e25c,this;}['setZone'](_0x31ddab){return this.#_zone=_0x31ddab,this;}['seperator'](){return a0_0x1d9b9c(()=>new Date()['toLocaleDateString'](this.#_code)['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x1d9b9c(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x4fc338=this.#_code){return a0_0x1d9b9c(()=>{return new Intl['Locale'](_0x4fc338)?.['timeZones']||[];},null);}['region'](_0x50516e=this.#_code){return a0_0x1d9b9c(()=>{return new Intl['Locale'](_0x50516e)['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 _0x144654=this.#val['dayOfWeek'];return _0x144654?_0x144654:0x7;}['dayOfWeekUtc'](){return this.#val['dayOfWeek']-0x1;}['setYear'](_0x5ac527){return this.#val=this.#val['with']({'year':a0_0x512cf7(_0x5ac527)}),this;}['setMonth'](_0x499b0c){return this.#val=this.#val['with']({'month':a0_0x512cf7(_0x499b0c)}),this;}['setMonthUtc'](_0x11e738){return this.#val=this.#val['with']({'month':a0_0x512cf7(_0x11e738)+0x1}),this;}['setDay'](_0x2f143b){return this.#val=this.#val['with']({'day':a0_0x512cf7(_0x2f143b)}),this;}['setHour'](_0x1a1626){return this.#val=this.#val['with']({'hour':a0_0x512cf7(_0x1a1626)}),this;}['startOfHours'](){const _0xf6b523={};return _0xf6b523['minute']=0x0,_0xf6b523['second']=0x0,_0xf6b523['millisecond']=0x0,this.#val=this.#val['with'](_0xf6b523),this;}['endOfHours'](){const _0x1a3e83={};return _0x1a3e83['minute']=0x3b,_0x1a3e83['second']=0x3b,_0x1a3e83['millisecond']=0x3e7,this.#val=this.#val['with'](_0x1a3e83),this;}['setMin'](_0x518d47){return this.#val=this.#val['with']({'minute':a0_0x512cf7(_0x518d47)}),this;}['startOfMin'](){const _0x344ddc={};return _0x344ddc['second']=0x0,_0x344ddc['millisecond']=0x0,this.#val=this.#val['with'](_0x344ddc),this;}['endOfMin'](){const _0x476e4d={};return _0x476e4d['second']=0x3b,_0x476e4d['millisecond']=0x3e7,this.#val=this.#val['with'](_0x476e4d),this;}['setSeconds'](_0x22af58){return this.#val=this.#val['with']({'second':a0_0x512cf7(_0x22af58)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x384ad3){return this.#val=this.#val['with']({'millisecond':a0_0x512cf7(_0x384ad3)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x5c233a){return _0x5c233a?this.#val=a0_0x5af742['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x5c233a)['getTime']())['toZonedDateTimeISO'](this['zone']):this.#val=a0_0x5af742['Temporal']['Now']['zonedDateTimeISO'](this['zone']),this;}['setTime'](_0x330312){return this.#val=a0_0x5af742['Temporal']['Instant']['fromEpochMilliseconds'](_0x330312||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x4172f7){return this['setIsoDate'](_0x4172f7?.['toISOString']()),this;}['setDateInputValue'](_0x219f95){const _0x5ac466=_0x219f95?new Date(_0x219f95?.['replace']('T','\x20')):new Date();return _0x5ac466['getTime']()&&(this.#val=a0_0x5af742['Temporal']['Instant']['fromEpochMilliseconds'](_0x5ac466?.['getTime']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x5ac466)),this;}['setVal'](_0x4f17ba){return a0_0x6055e5['new']()['setTime'](a0_0x2e482e(_0x4f17ba,this['zone']));}['toIsoDate'](){const _0x17caf8={};return _0x17caf8['fractionalSecondDigits']=0x3,this.#val['toInstant']()['toString'](_0x17caf8);}['toIsoDateZone'](){return this.#val['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this.#val['epochMilliseconds'];}['toDate'](){return new Date(this.#val['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x4995d4(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x4995d4(this['month']())+'-'+a0_0x4995d4(this['day']());}['toTimeInput'](_0x4a422e=!![]){const _0x118d66=[];return _0x118d66['push'](a0_0x4995d4(this['hours']())),_0x118d66['push'](a0_0x4995d4(this['min']())),_0x4a422e&&_0x118d66['push'](a0_0x4995d4(this['sec']())),_0x118d66['join'](':');}['toDateTimeInput'](_0x33153c=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x33153c);}['toAs'](){return this.#val['toInstant']()['toString']();}['strDate'](){const _0x2b4e52={};return _0x2b4e52['month']='2-digit',_0x2b4e52['day']='2-digit',_0x2b4e52['year']='numeric',this.#val['toLocaleString'](this.#_code,_0x2b4e52);}['strTime'](){return a0_0x4995d4(this['hours']())+':'+a0_0x4995d4(this['min']())+':'+a0_0x4995d4(this['sec']());}['strHHmm'](){return a0_0x4995d4(this['hours']())+':'+a0_0x4995d4(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x4b4e47){return this.#val['toLocaleString'](this.#_code,_0x4b4e47);}['strYears'](){return this.#val['year']['toString']();}['strMounth'](){return a0_0x4995d4(this['month'](),0x2);}['strDay'](){return a0_0x4995d4(this['day'](),0x2);}['strHour'](){return a0_0x4995d4(this['hours'](),0x2);}['strMin'](){return a0_0x4995d4(this['min'](),0x2);}['strSec'](){return a0_0x4995d4(this['sec'](),0x2);}['strMsec'](){return a0_0x4995d4(this['msec'](),0x2);}['strDayStr'](){return this.#_dyfrmt=a0_0x25a72a(this),{'ln':()=>this.#_dyfrmt['ln'](),'sh':()=>this.#_dyfrmt['sh'](),'nr':()=>this.#_dyfrmt['nr']()};}['addMonth'](_0x4bc7ec){return this.#val=this.#val['add']({'months':a0_0x512cf7(_0x4bc7ec)}),this;}['addDay'](_0x16e870){return this['addHours'](_0x16e870*0x18),this;}['addHours'](_0x29900a){return this['addMins'](_0x29900a*0x3c),this;}['addMins'](_0x2ba8da){return this['addSecs'](_0x2ba8da*0x3c),this;}['addSecs'](_0x57082e){return this['addMilliseconds'](_0x57082e*0x3e8),this;}['addMilliseconds'](_0x32e6a5){return this.#val=this.#val['add']({'milliseconds':a0_0x512cf7(_0x32e6a5)}),this;}['startOfDay'](){const _0x2e619d={};return _0x2e619d['hour']=0x0,_0x2e619d['minute']=0x0,_0x2e619d['second']=0x0,_0x2e619d['millisecond']=0x0,this.#val=this.#val['with'](_0x2e619d),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){const _0x249e04={};return _0x249e04['hour']=0x17,_0x249e04['minute']=0x3b,_0x249e04['second']=0x3b,_0x249e04['millisecond']=0x3e7,this.#val=this.#val['with'](_0x249e04),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'](){const _0x5d13d2={};return _0x5d13d2['day']=0x1,_0x5d13d2['hour']=0x0,_0x5d13d2['minute']=0x0,_0x5d13d2['second']=0x0,_0x5d13d2['millisecond']=0x0,this.#val=this.#val['with'](_0x5d13d2),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){const _0x40835b=a0_0x5af742['Temporal']['ZonedDateTime']['from'](this.#val),_0x1b35b6={};_0x1b35b6['day']=_0x40835b['daysInMonth'];const _0x362f60={};return _0x362f60['hour']=0x17,_0x362f60['minute']=0x3b,_0x362f60['second']=0x3b,_0x362f60['millisecond']=0x3e7,_0x362f60['microsecond']=0x3e7,_0x362f60['nanosecond']=0x3e7,this.#val=this.#val['with'](_0x1b35b6)['with'](_0x362f60),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x27e615){return this['cpy']()['toTime']()===a0_0x2e482e(_0x27e615,this['zone']);}['gt'](_0x1360cf){return this['cpy']()['toTime']()>a0_0x2e482e(_0x1360cf,this['zone']);}['gte'](_0x397eae){return this['cpy']()['toTime']()>=a0_0x2e482e(_0x397eae,this['zone']);}['lt'](_0x5bc7d6){return this['cpy']()['toTime']()<a0_0x2e482e(_0x5bc7d6,this['zone']);}['lte'](_0x1c7811){return this['cpy']()['toTime']()<=a0_0x2e482e(_0x1c7811,this['zone']);}['btw'](_0x325bed,_0x378992){const _0x114072=a0_0x2e482e(_0x325bed,this['zone']),_0x29ec48=a0_0x2e482e(_0x378992,this['zone']),_0x3e054c=this['cpy']()['toTime']();return _0x114072<_0x3e054c&&_0x3e054c<_0x29ec48;}['btweq'](_0x5a76b5,_0x22cc9c){const _0x149e12=a0_0x2e482e(_0x5a76b5,this['zone']),_0xd209ce=a0_0x2e482e(_0x22cc9c,this['zone']),_0x1ed2f4=this['cpy']()['toTime']();return _0x149e12<=_0x1ed2f4&&_0x1ed2f4<=_0xd209ce;}['btwEqStart'](_0x15e034,_0x4f2089){const _0x5c6a6f=a0_0x2e482e(_0x15e034,this['zone']),_0x94b5f7=a0_0x2e482e(_0x4f2089,this['zone']),_0x5cf683=this['cpy']()['toTime']();return _0x5c6a6f<=_0x5cf683&&_0x5cf683<_0x94b5f7;}['btwEqEnd'](_0x4c4478,_0x2aab95){const _0x5c09cb=a0_0x2e482e(_0x4c4478,this['zone']),_0x5b5eb8=a0_0x2e482e(_0x2aab95,this['zone']),_0x41c88e=this['cpy']()['toTime']();return _0x5c09cb<_0x41c88e&&_0x41c88e<=_0x5b5eb8;}['diffDays'](_0x4d5a44,_0x43ae3e){const _0x350e47=this['toTime'](),_0x588432=a0_0x2e482e(_0x4d5a44,a0_0x5d57fd);return _0x43ae3e?Math['abs'](_0x350e47-_0x588432)/0x36ee80/0x18:(_0x350e47-_0x588432)/0x36ee80/0x18;}['diffHours'](_0x184e18,_0x32bc73){const _0x19cb71=this['toTime'](),_0x2bfd30=a0_0x2e482e(_0x184e18,a0_0x5d57fd);return _0x32bc73?Math['abs'](_0x19cb71-_0x2bfd30)/0x36ee80:(_0x19cb71-_0x2bfd30)/0x36ee80;}['diffMins'](_0x12ca33,_0x34ed8a){const _0x5d4b79=this['toTime'](),_0x74c4f5=a0_0x2e482e(_0x12ca33,a0_0x5d57fd);return _0x34ed8a?Math['abs'](_0x5d4b79-_0x74c4f5)/0x3e8/0x3c:(_0x5d4b79-_0x74c4f5)/0x3e8/0x3c;}['diffSecs'](_0x268d1c,_0x1a1502){const _0x3b37b6=this['toTime'](),_0xb5e250=a0_0x2e482e(_0x268d1c,a0_0x5d57fd);return _0x1a1502?Math['abs'](_0x3b37b6-_0xb5e250)/0x3e8:(_0x3b37b6-_0xb5e250)/0x3e8;}static['diffDays'](_0x577d4c,_0x313e8b,_0xd2a94a){const _0xd0460f=a0_0x2e482e(_0x577d4c,a0_0x5d57fd),_0x51e80c=a0_0x2e482e(_0x313e8b,a0_0x5d57fd);return _0xd2a94a?Math['abs'](_0xd0460f-_0x51e80c)/0x36ee80/0x18:(_0xd0460f-_0x51e80c)/0x36ee80/0x18;}static['diffHours'](_0x32c62e,_0x1a6018,_0x53bf29){const _0x5dfad5=a0_0x2e482e(_0x32c62e,a0_0x5d57fd),_0x5699ab=a0_0x2e482e(_0x1a6018,a0_0x5d57fd);return _0x53bf29?Math['abs'](_0x5dfad5-_0x5699ab)/0x36ee80:(_0x5dfad5-_0x5699ab)/0x36ee80;}static['diffMins'](_0x25b9c3,_0x4bb817,_0x37fe8a){const _0x29fe42=a0_0x2e482e(_0x25b9c3,a0_0x5d57fd),_0x2845c5=a0_0x2e482e(_0x4bb817,a0_0x5d57fd);return _0x37fe8a?Math['abs'](_0x29fe42-_0x2845c5)/0x3e8/0x3c:(_0x29fe42-_0x2845c5)/0x3e8/0x3c;}static['diffSecs'](_0x3ef0ac,_0x43c57f,_0x15435c){const _0xf298f1=a0_0x2e482e(_0x3ef0ac,a0_0x5d57fd),_0x297fa1=a0_0x2e482e(_0x43c57f,a0_0x5d57fd);return _0x15435c?Math['abs'](_0xf298f1-_0x297fa1)/0x3e8:(_0xf298f1-_0x297fa1)/0x3e8;}static['divideTime'](_0x5b4fa4){return a0_0x4078f7(_0x5b4fa4);}}exports['MDateUtil']=a0_0x6055e5;const a0_0x266d2f={};a0_0x266d2f['value']='MDateUtil',a0_0x266d2f['writable']=![],a0_0x266d2f['enumerable']=!![],a0_0x266d2f['configurable']=![],Object['defineProperty'](a0_0x6055e5['prototype'],'idkey',a0_0x266d2f);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x2609fe=this&&this['__createBinding']||(Object['create']?function(_0x4f834a,_0x2efeaf,_0x328f8,_0x4b6a7c){if(_0x4b6a7c===undefined)_0x4b6a7c=_0x328f8;var _0x395521=Object['getOwnPropertyDescriptor'](_0x2efeaf,_0x328f8);if(!_0x395521||('get'in _0x395521?!_0x2efeaf['__esModule']:_0x395521['writable']||_0x395521['configurable'])){var _0x5754ac={};_0x5754ac['enumerable']=!![],_0x5754ac['get']=function(){return _0x2efeaf[_0x328f8];},_0x395521=_0x5754ac;}Object['defineProperty'](_0x4f834a,_0x4b6a7c,_0x395521);}:function(_0x43e76b,_0x3e421c,_0x4f024a,_0x2f8f5d){if(_0x2f8f5d===undefined)_0x2f8f5d=_0x4f024a;_0x43e76b[_0x2f8f5d]=_0x3e421c[_0x4f024a];}),a0_0x133a9=this&&this['__exportStar']||function(_0x5991fd,_0x3f18b0){for(var _0x501614 in _0x5991fd)if(_0x501614!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3f18b0,_0x501614))a0_0x2609fe(_0x3f18b0,_0x5991fd,_0x501614);},a0_0x369ac1={};a0_0x369ac1['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x369ac1),a0_0x133a9(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x6602fd=this&&this['__createBinding']||(Object['create']?function(_0x51c54f,_0x37cfea,_0x1e58b7,_0x427a33){if(_0x427a33===undefined)_0x427a33=_0x1e58b7;var _0x82be2c=Object['getOwnPropertyDescriptor'](_0x37cfea,_0x1e58b7);if(!_0x82be2c||('get'in _0x82be2c?!_0x37cfea['__esModule']:_0x82be2c['writable']||_0x82be2c['configurable'])){var _0x5024ac={};_0x5024ac['enumerable']=!![],_0x5024ac['get']=function(){return _0x37cfea[_0x1e58b7];},_0x82be2c=_0x5024ac;}Object['defineProperty'](_0x51c54f,_0x427a33,_0x82be2c);}:function(_0x32d7dd,_0x2178b4,_0x803241,_0x31d70e){if(_0x31d70e===undefined)_0x31d70e=_0x803241;_0x32d7dd[_0x31d70e]=_0x2178b4[_0x803241];}),a0_0x181a51=this&&this['__exportStar']||function(_0x1bb4ad,_0x588811){for(var _0x845a87 in _0x1bb4ad)if(_0x845a87!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x588811,_0x845a87))a0_0x6602fd(_0x588811,_0x1bb4ad,_0x845a87);},a0_0x24fe86={};a0_0x24fe86['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x24fe86),a0_0x181a51(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.15.55",
3
+ "version": "1.15.75",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^20.4.4",
33
+ "@types/node": "^22.19.0",
34
34
  "typescript": "^5.0.2"
35
35
  }
36
36
  }