mat-date 1.9.50 → 1.9.64

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_0x2e5177={};a0_0x2e5177['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x2e5177),exports['MDateUtil']=void 0x0;const a0_0x5430f0=require('@js-temporal/polyfill'),a0_0x1eee6d=(_0x20a9dc,_0x467a7b=0x2)=>_0x20a9dc['toString']()['padStart'](_0x467a7b,'0');function a0_0x1769d5(_0x5485ad,_0x2a68c0){try{return _0x5485ad();}catch(_0x7ad22a){if(_0x2a68c0)return _0x2a68c0;throw new Error('UNKNOWN');}}function a0_0x37510c(_0x57f97b,_0x391afa){try{if(_0x57f97b instanceof Date)return a0_0x5430f0['Temporal']['Instant']['fromEpochMilliseconds'](_0x57f97b['getTime']())['toZonedDateTimeISO'](_0x391afa)['epochMilliseconds'];if(typeof _0x57f97b==='number')return _0x57f97b;if(typeof _0x57f97b==='string')return a0_0x5430f0['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x57f97b)['getTime']())['toZonedDateTimeISO'](_0x391afa)['epochMilliseconds'];if(_0x57f97b instanceof a0_0x2ce707)return _0x57f97b['toTime']();if(_0x57f97b['idkey']==='MDateUtil')return _0x57f97b['toTime']();return 0x0;}catch(_0x7ca614){throw new Error('ERROR');}}function a0_0x3a8b7e(_0x516745){function _0x48da58(_0x105bc5){const _0x438357={};return _0x438357['weekday']=_0x105bc5,a0_0x1769d5(()=>new Intl['DateTimeFormat'](_0x516745['localCode'],_0x438357)['format'](a0_0x37510c(_0x516745,_0x516745['zone'])),'');}function _0x48a519(){return _0x48da58('long');}function _0x29594b(){return _0x48da58('short');}function _0x505fc5(){return _0x48da58('narrow');}const _0xfe5a0b={};return _0xfe5a0b['ln']=_0x48a519,_0xfe5a0b['sh']=_0x29594b,_0xfe5a0b['nr']=_0x505fc5,_0xfe5a0b;}function a0_0x5a10d3(_0xe71d13){let _0x1a7cd8=undefined,_0x5c605a=undefined,_0x2487c2=undefined,_0x4410d8=undefined;try{const _0x15ef38=(_0xe71d13||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x1a7cd8=_0x15ef38['length']>=0x1?Number(_0x15ef38[0x0]):undefined,_0x5c605a=_0x15ef38['length']>=0x2?Number(_0x15ef38[0x1]):undefined,_0x2487c2=_0x15ef38['length']>=0x3?Number(_0x15ef38[0x2]):undefined;}catch(_0x1f5716){}try{let _0x32ba0a=_0xe71d13||'',_0x5e6cc8=/\.\d{3}/g,_0x36b5ae=_0x32ba0a['match'](_0x5e6cc8)[0x0]['split']('.')['filter'](_0x27dcb0=>Boolean(_0x27dcb0));_0x4410d8=_0x36b5ae['length']>=0x1?Number(_0x36b5ae[0x0]):undefined;}catch(_0x4ea6bd){}const _0x459f4d={};return _0x459f4d['h']=_0x1a7cd8,_0x459f4d['m']=_0x5c605a,_0x459f4d['s']=_0x2487c2,_0x459f4d['ms']=_0x4410d8,_0x459f4d;}let a0_0x5d9a2b=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x54aa23=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x840845(_0x28b40c){return Number(Number(_0x28b40c)['toFixed'](0x0))||0x0;}class a0_0x2ce707{#val;#_code=Intl['NumberFormat']()['resolvedOptions']()['locale'];#_zone=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];#dyfrmt=a0_0x3a8b7e(this);get['localCode'](){return this.#_code;}get['zone'](){return this.#_zone;}['with'](_0x120ab6){this.#val=this.#val['with']({'year':_0x120ab6['getFullYear'](),'month':_0x120ab6['getMonth']()+0x1,'day':_0x120ab6['getDate'](),'hour':_0x120ab6['getHours'](),'minute':_0x120ab6['getMinutes'](),'second':_0x120ab6['getSeconds'](),'millisecond':_0x120ab6['getMilliseconds']()});}['init'](){const _0x48a79e=new Date();return this.#val=a0_0x5430f0['Temporal']['Instant']['from'](_0x48a79e['toISOString']())['toZonedDateTimeISO'](this['zone']),this.#dyfrmt=a0_0x3a8b7e(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x2ce707()['setCode'](a0_0x5d9a2b)['setZone'](a0_0x54aa23)['init']();}static['setCode'](_0xc62667){return a0_0x5d9a2b=_0xc62667,this;}static['setZone'](_0x182cb){return a0_0x54aa23=_0x182cb,this;}static['seperator'](){return a0_0x1769d5(()=>new Date()['toLocaleDateString'](a0_0x5d9a2b)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x1769d5(()=>a0_0x2ce707['new']()['setTime'](this['toTime']()));}['setCode'](_0x1ec2e6){return this.#_code=_0x1ec2e6,this;}['setZone'](_0x3b1188){return this.#_zone=_0x3b1188,this;}['seperator'](){return a0_0x1769d5(()=>new Date()['toLocaleDateString'](this.#_code)['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x1769d5(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x13232f=this.#_code){return a0_0x1769d5(()=>{return new Intl['Locale'](_0x13232f)?.['timeZones']||[];},null);}['region'](_0x1a6083=this.#_code){return a0_0x1769d5(()=>{return new Intl['Locale'](_0x1a6083)['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 _0x32a2c0=this.#val['dayOfWeek'];return _0x32a2c0?_0x32a2c0:0x7;}['dayOfWeekUtc'](){return this.#val['dayOfWeek']-0x1;}['setYear'](_0x4eff61){return this.#val=this.#val['with']({'year':a0_0x840845(_0x4eff61)}),this;}['setMonth'](_0x3665f3){return this.#val=this.#val['with']({'month':a0_0x840845(_0x3665f3)}),this;}['setMonthUtc'](_0x326a85){return this.#val=this.#val['with']({'month':a0_0x840845(_0x326a85)+0x1}),this;}['setDay'](_0x326d2d){return this.#val=this.#val['with']({'day':a0_0x840845(_0x326d2d)}),this;}['setHour'](_0x70df71){return this.#val=this.#val['with']({'hour':a0_0x840845(_0x70df71)}),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'](_0x1359ad){return this.#val=this.#val['with']({'minute':a0_0x840845(_0x1359ad)}),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x4f0e07){return this.#val=this.#val['with']({'second':a0_0x840845(_0x4f0e07)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x339675){return this.#val=this.#val['with']({'millisecond':a0_0x840845(_0x339675)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x34af55){const _0x243d93=_0x34af55?new Date(_0x34af55?.['replace']('T','\x20')):new Date();return this.#val=a0_0x5430f0['Temporal']['Instant']['from'](_0x243d93['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x5a15c9){return this.#val=a0_0x5430f0['Temporal']['Instant']['fromEpochMilliseconds'](_0x5a15c9||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x46f58a){return this['setIsoDate'](_0x46f58a?.['toISOString']()),this;}['setDateInputValue'](_0x133188){const _0x12d839=_0x133188?new Date(_0x133188?.['replace']('T','\x20')):new Date();return _0x12d839['getTime']()&&(this.#val=a0_0x5430f0['Temporal']['Instant']['from'](_0x12d839?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x12d839)),this;}['setVal'](_0x47c005){return a0_0x1769d5(()=>{return a0_0x2ce707['new']()['setTime'](a0_0x37510c(_0x47c005,this['zone']));});}['toIsoDate'](){const _0x5c9b60={};return _0x5c9b60['fractionalSecondDigits']=0x3,this.#val['toInstant']()['toString'](_0x5c9b60);}['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_0x1eee6d(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x1eee6d(this['month']())+'-'+a0_0x1eee6d(this['day']());}['toTimeInput'](_0xff5283=!![]){const _0xc40468=[];return _0xc40468['push'](a0_0x1eee6d(this['hours']())),_0xc40468['push'](a0_0x1eee6d(this['min']())),_0xff5283&&_0xc40468['push'](a0_0x1eee6d(this['sec']())),_0xc40468['join'](':');}['toDateTimeInput'](_0x3694b9=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x3694b9);}['toAs'](){return this.#val['toInstant']()['toString']();}['strDate'](){const _0x46564f={};return _0x46564f['month']='2-digit',_0x46564f['day']='2-digit',_0x46564f['year']='numeric',this.#val['toLocaleString'](this.#_code,_0x46564f);}['strTime'](){return a0_0x1eee6d(this['hours']())+':'+a0_0x1eee6d(this['min']())+':'+a0_0x1eee6d(this['sec']());}['strHHmm'](){return a0_0x1eee6d(this['hours']())+':'+a0_0x1eee6d(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0xf77c74){return this.#val['toLocaleString'](this.#_code,_0xf77c74);}['strYears'](){return this.#val['year']['toString']();}['strMounth'](){return a0_0x1eee6d(this['month'](),0x2);}['strDay'](){return a0_0x1eee6d(this['day'](),0x2);}['strHour'](){return a0_0x1eee6d(this['hours'](),0x2);}['strMin'](){return a0_0x1eee6d(this['min'](),0x2);}['strSec'](){return a0_0x1eee6d(this['sec'](),0x2);}['strMsec'](){return a0_0x1eee6d(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this.#dyfrmt['ln'](),'sh':()=>this.#dyfrmt['sh'](),'nr':()=>this.#dyfrmt['nr']()};}['addMonth'](_0x5cc9d9){return this.#val=this.#val['add']({'months':a0_0x840845(_0x5cc9d9)}),this;}['addDay'](_0x1c2ada){return this['addHours'](Number(_0x1c2ada)*0x18),this;}['addHours'](_0xd4c5f5){return this['addMins'](Number(_0xd4c5f5)*0x3c),this;}['addMins'](_0xc1eda9){return this['addSecs'](Number(_0xc1eda9)*0x3c),this;}['addSecs'](_0x372bf3){return this['addMilliseconds'](Number(_0x372bf3)*0x3e8),this;}['addMilliseconds'](_0x134cb3){return this.#val=this.#val['add']({'milliseconds':a0_0x840845(_0x134cb3)}),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']()['addMonth'](0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x38fe3d){return a0_0x1769d5(()=>{return this['cpy']()['toTime']()===a0_0x37510c(_0x38fe3d,this['zone']);});}['gt'](_0x414291){return a0_0x1769d5(()=>{return this['cpy']()['toTime']()>a0_0x37510c(_0x414291,this['zone']);});}['gte'](_0x3f1b9f){return a0_0x1769d5(()=>{return this['cpy']()['toTime']()>=a0_0x37510c(_0x3f1b9f,this['zone']);});}['lt'](_0x59602a){return a0_0x1769d5(()=>{return this['cpy']()['toTime']()<a0_0x37510c(_0x59602a,this['zone']);});}['lte'](_0x1dd980){return a0_0x1769d5(()=>{return this['cpy']()['toTime']()<=a0_0x37510c(_0x1dd980,this['zone']);});}['btw'](_0x95739d,_0x2e1185){return a0_0x1769d5(()=>{const _0x5724c4=a0_0x37510c(_0x95739d,this['zone']),_0x4dd578=a0_0x37510c(_0x2e1185,this['zone']),_0x6b2291=this['cpy']()['toTime']();return _0x5724c4<_0x6b2291&&_0x6b2291<_0x4dd578;});}['btweq'](_0x335fdf,_0x416dcd){return a0_0x1769d5(()=>{const _0x1fe388=a0_0x37510c(_0x335fdf,this['zone']),_0x709c92=a0_0x37510c(_0x416dcd,this['zone']),_0x68537c=this['cpy']()['toTime']();return _0x1fe388<=_0x68537c&&_0x68537c<=_0x709c92;});}['btwEqStart'](_0x48dc51,_0x16fcb){return a0_0x1769d5(()=>{const _0x391b1a=a0_0x37510c(_0x48dc51,this['zone']),_0x4c2e9a=a0_0x37510c(_0x16fcb,this['zone']),_0x4dca56=this['cpy']()['toTime']();return _0x391b1a<=_0x4dca56&&_0x4dca56<_0x4c2e9a;});}['btwEqEnd'](_0x38afbc,_0x3f32e2){return a0_0x1769d5(()=>{const _0x578e58=a0_0x37510c(_0x38afbc,this['zone']),_0x5165af=a0_0x37510c(_0x3f32e2,this['zone']),_0x537b5b=this['cpy']()['toTime']();return _0x578e58<_0x537b5b&&_0x537b5b<=_0x5165af;});}static['diffDays'](_0x1816ff,_0x51f0ef,_0x4c6713){return a0_0x1769d5(()=>{const _0x197300=a0_0x37510c(_0x1816ff,a0_0x54aa23),_0xb05f0e=a0_0x37510c(_0x51f0ef,a0_0x54aa23);return _0x4c6713?Math['abs'](_0x197300-_0xb05f0e)/0x36ee80/0x18:(_0x197300-_0xb05f0e)/0x36ee80/0x18;});}static['diffHours'](_0x492154,_0x1653e8,_0x9ac05a){return a0_0x1769d5(()=>{const _0x2ac1c7=a0_0x37510c(_0x492154,a0_0x54aa23),_0x428a8a=a0_0x37510c(_0x1653e8,a0_0x54aa23);return _0x9ac05a?Math['abs'](_0x2ac1c7-_0x428a8a)/0x36ee80:(_0x2ac1c7-_0x428a8a)/0x36ee80;});}static['diffMins'](_0x3a2c45,_0x4879ba,_0x331aa1){return a0_0x1769d5(()=>{const _0x26b5c6=a0_0x37510c(_0x3a2c45,a0_0x54aa23),_0x827d48=a0_0x37510c(_0x4879ba,a0_0x54aa23);return _0x331aa1?Math['abs'](_0x26b5c6-_0x827d48)/0x3e8/0x3c:(_0x26b5c6-_0x827d48)/0x3e8/0x3c;});}static['diffSecs'](_0x2e9dbc,_0x1f4c14,_0x34b34e){return a0_0x1769d5(()=>{const _0x3b5fc7=a0_0x37510c(_0x2e9dbc,a0_0x54aa23),_0x4b69d2=a0_0x37510c(_0x1f4c14,a0_0x54aa23);return _0x34b34e?Math['abs'](_0x3b5fc7-_0x4b69d2)/0x3e8:(_0x3b5fc7-_0x4b69d2)/0x3e8;});}static['divideTime'](_0x48587e){return a0_0x1769d5(()=>a0_0x5a10d3(_0x48587e));}}exports['MDateUtil']=a0_0x2ce707;const a0_0x584927={};a0_0x584927['value']='MDateUtil',a0_0x584927['writable']=![],a0_0x584927['enumerable']=!![],a0_0x584927['configurable']=![],Object['defineProperty'](a0_0x2ce707['prototype'],'idkey',a0_0x584927);
1
+ 'use strict';const a0_0x1467a1={};a0_0x1467a1['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1467a1),exports['MDateUtil']=void 0x0;const a0_0x156890=require('@js-temporal/polyfill'),a0_0x5883d2=(_0x22245f,_0x533b0b=0x2)=>_0x22245f['toString']()['padStart'](_0x533b0b,'0');function a0_0xf45132(_0x4eb759,_0x4df440){try{return _0x4eb759();}catch(_0x19c264){if(_0x4df440)return _0x4df440;throw new Error('UNKNOWN');}}function a0_0x484b0e(_0x47a4c8,_0x3cdbe1){try{if(_0x47a4c8 instanceof Date)return a0_0x156890['Temporal']['Instant']['fromEpochMilliseconds'](_0x47a4c8['getTime']())['toZonedDateTimeISO'](_0x3cdbe1)['epochMilliseconds'];if(typeof _0x47a4c8==='number')return _0x47a4c8;if(typeof _0x47a4c8==='string')return a0_0x156890['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x47a4c8)['getTime']())['toZonedDateTimeISO'](_0x3cdbe1)['epochMilliseconds'];if(_0x47a4c8 instanceof a0_0xcd5165)return _0x47a4c8['toTime']();if(_0x47a4c8['idkey']==='MDateUtil')return _0x47a4c8['toTime']();return 0x0;}catch(_0x34920b){throw new Error('ERROR');}}function a0_0xbe5e6a(_0x1472c6){function _0x679d02(_0x178f4a){const _0x43e460={};return _0x43e460['weekday']=_0x178f4a,a0_0xf45132(()=>new Intl['DateTimeFormat'](_0x1472c6['localCode'],_0x43e460)['format'](a0_0x484b0e(_0x1472c6,_0x1472c6['zone'])),'');}function _0x29ef2b(){return _0x679d02('long');}function _0x17b258(){return _0x679d02('short');}function _0x4a7b7a(){return _0x679d02('narrow');}const _0xa53057={};return _0xa53057['ln']=_0x29ef2b,_0xa53057['sh']=_0x17b258,_0xa53057['nr']=_0x4a7b7a,_0xa53057;}function a0_0x2033a0(_0x5d8b9d){let _0x327b3a=undefined,_0x2e92ac=undefined,_0x10c9e8=undefined,_0xb48355=undefined;try{const _0x4114ae=(_0x5d8b9d||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x327b3a=_0x4114ae['length']>=0x1?Number(_0x4114ae[0x0]):undefined,_0x2e92ac=_0x4114ae['length']>=0x2?Number(_0x4114ae[0x1]):undefined,_0x10c9e8=_0x4114ae['length']>=0x3?Number(_0x4114ae[0x2]):undefined;}catch(_0x4d7d1a){}try{let _0x22f3fc=_0x5d8b9d||'',_0x2166b0=/\.\d{3}/g,_0x2c20b7=_0x22f3fc['match'](_0x2166b0)[0x0]['split']('.')['filter'](_0x2e85d5=>Boolean(_0x2e85d5));_0xb48355=_0x2c20b7['length']>=0x1?Number(_0x2c20b7[0x0]):undefined;}catch(_0x4c74ac){}const _0x4dc18e={};return _0x4dc18e['h']=_0x327b3a,_0x4dc18e['m']=_0x2e92ac,_0x4dc18e['s']=_0x10c9e8,_0x4dc18e['ms']=_0xb48355,_0x4dc18e;}let a0_0x4a8a87=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x45087c=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x1423d9(_0x3fbf58){return Number(Number(_0x3fbf58)['toFixed'](0x0))||0x0;}class a0_0xcd5165{#val;#_code=Intl['NumberFormat']()['resolvedOptions']()['locale'];#_zone=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];#dyfrmt=a0_0xbe5e6a(this);get['localCode'](){return this.#_code;}get['zone'](){return this.#_zone;}['with'](_0x5be170){this.#val=this.#val['with']({'year':_0x5be170['getFullYear'](),'month':_0x5be170['getMonth']()+0x1,'day':_0x5be170['getDate'](),'hour':_0x5be170['getHours'](),'minute':_0x5be170['getMinutes'](),'second':_0x5be170['getSeconds'](),'millisecond':_0x5be170['getMilliseconds']()});}['init'](){const _0x116956=new Date();return this.#val=a0_0x156890['Temporal']['Instant']['from'](_0x116956['toISOString']())['toZonedDateTimeISO'](this['zone']),this.#dyfrmt=a0_0xbe5e6a(this),this;}['toString'](){return'---';}static['new'](){return new a0_0xcd5165()['setCode'](a0_0x4a8a87)['setZone'](a0_0x45087c)['init']();}static['setCode'](_0x40b4ba){return a0_0x4a8a87=_0x40b4ba,this;}static['setZone'](_0x345d5d){return a0_0x45087c=_0x345d5d,this;}static['seperator'](){return a0_0xf45132(()=>new Date()['toLocaleDateString'](a0_0x4a8a87)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0xf45132(()=>a0_0xcd5165['new']()['setTime'](this['toTime']()));}['setCode'](_0x45958c){return this.#_code=_0x45958c,this;}['setZone'](_0x293e67){return this.#_zone=_0x293e67,this;}['seperator'](){return a0_0xf45132(()=>new Date()['toLocaleDateString'](this.#_code)['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0xf45132(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x5c305e=this.#_code){return a0_0xf45132(()=>{return new Intl['Locale'](_0x5c305e)?.['timeZones']||[];},null);}['region'](_0x5dde77=this.#_code){return a0_0xf45132(()=>{return new Intl['Locale'](_0x5dde77)['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 _0x4c181d=this.#val['dayOfWeek'];return _0x4c181d?_0x4c181d:0x7;}['dayOfWeekUtc'](){return this.#val['dayOfWeek']-0x1;}['setYear'](_0x48b7da){return this.#val=this.#val['with']({'year':a0_0x1423d9(_0x48b7da)}),this;}['setMonth'](_0x25b5e4){return this.#val=this.#val['with']({'month':a0_0x1423d9(_0x25b5e4)}),this;}['setMonthUtc'](_0xd16dd0){return this.#val=this.#val['with']({'month':a0_0x1423d9(_0xd16dd0)+0x1}),this;}['setDay'](_0x567403){return this.#val=this.#val['with']({'day':a0_0x1423d9(_0x567403)}),this;}['setHour'](_0x73d8bd){return this.#val=this.#val['with']({'hour':a0_0x1423d9(_0x73d8bd)}),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'](_0x1d0325){return this.#val=this.#val['with']({'minute':a0_0x1423d9(_0x1d0325)}),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0xa12982){return this.#val=this.#val['with']({'second':a0_0x1423d9(_0xa12982)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x1633fc){return this.#val=this.#val['with']({'millisecond':a0_0x1423d9(_0x1633fc)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x1373e2){const _0x52a4c3=_0x1373e2?new Date(_0x1373e2?.['replace']('T','\x20')):new Date();return this.#val=a0_0x156890['Temporal']['Instant']['from'](_0x52a4c3['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x558845){return this.#val=a0_0x156890['Temporal']['Instant']['fromEpochMilliseconds'](_0x558845||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x1d3745){return this['setIsoDate'](_0x1d3745?.['toISOString']()),this;}['setDateInputValue'](_0x1b94f7){const _0x2cca0c=_0x1b94f7?new Date(_0x1b94f7?.['replace']('T','\x20')):new Date();return _0x2cca0c['getTime']()&&(this.#val=a0_0x156890['Temporal']['Instant']['from'](_0x2cca0c?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x2cca0c)),this;}['setVal'](_0x48b38a){return a0_0xf45132(()=>{return a0_0xcd5165['new']()['setTime'](a0_0x484b0e(_0x48b38a,this['zone']));});}['toIsoDate'](){const _0x1e7406={};return _0x1e7406['fractionalSecondDigits']=0x3,this.#val['toInstant']()['toString'](_0x1e7406);}['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_0x5883d2(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x5883d2(this['month']())+'-'+a0_0x5883d2(this['day']());}['toTimeInput'](_0x7b472a=!![]){const _0x3e86dd=[];return _0x3e86dd['push'](a0_0x5883d2(this['hours']())),_0x3e86dd['push'](a0_0x5883d2(this['min']())),_0x7b472a&&_0x3e86dd['push'](a0_0x5883d2(this['sec']())),_0x3e86dd['join'](':');}['toDateTimeInput'](_0x50a101=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x50a101);}['toAs'](){return this.#val['toInstant']()['toString']();}['strDate'](){const _0x32c893={};return _0x32c893['month']='2-digit',_0x32c893['day']='2-digit',_0x32c893['year']='numeric',this.#val['toLocaleString'](this.#_code,_0x32c893);}['strTime'](){return a0_0x5883d2(this['hours']())+':'+a0_0x5883d2(this['min']())+':'+a0_0x5883d2(this['sec']());}['strHHmm'](){return a0_0x5883d2(this['hours']())+':'+a0_0x5883d2(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x4471af){return this.#val['toLocaleString'](this.#_code,_0x4471af);}['strYears'](){return this.#val['year']['toString']();}['strMounth'](){return a0_0x5883d2(this['month'](),0x2);}['strDay'](){return a0_0x5883d2(this['day'](),0x2);}['strHour'](){return a0_0x5883d2(this['hours'](),0x2);}['strMin'](){return a0_0x5883d2(this['min'](),0x2);}['strSec'](){return a0_0x5883d2(this['sec'](),0x2);}['strMsec'](){return a0_0x5883d2(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this.#dyfrmt['ln'](),'sh':()=>this.#dyfrmt['sh'](),'nr':()=>this.#dyfrmt['nr']()};}['addMonth'](_0x31b0dc){return this.#val=this.#val['add']({'months':a0_0x1423d9(_0x31b0dc)}),this;}['addDay'](_0x42c092){return this['addHours'](Number(_0x42c092)*0x18),this;}['addHours'](_0x258439){return this['addMins'](Number(_0x258439)*0x3c),this;}['addMins'](_0x16898b){return this['addSecs'](Number(_0x16898b)*0x3c),this;}['addSecs'](_0x11d727){return this['addMilliseconds'](Number(_0x11d727)*0x3e8),this;}['addMilliseconds'](_0x341021){return this.#val=this.#val['add']({'milliseconds':a0_0x1423d9(_0x341021)}),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']()['addMonth'](0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0xcb6a14){return a0_0xf45132(()=>{return this['cpy']()['toTime']()===a0_0x484b0e(_0xcb6a14,this['zone']);});}['gt'](_0x2a8db8){return a0_0xf45132(()=>{return this['cpy']()['toTime']()>a0_0x484b0e(_0x2a8db8,this['zone']);});}['gte'](_0x51739e){return a0_0xf45132(()=>{return this['cpy']()['toTime']()>=a0_0x484b0e(_0x51739e,this['zone']);});}['lt'](_0x22482e){return a0_0xf45132(()=>{return this['cpy']()['toTime']()<a0_0x484b0e(_0x22482e,this['zone']);});}['lte'](_0x4b614d){return a0_0xf45132(()=>{return this['cpy']()['toTime']()<=a0_0x484b0e(_0x4b614d,this['zone']);});}['btw'](_0x213a30,_0x5a8275){return a0_0xf45132(()=>{const _0x11aaf4=a0_0x484b0e(_0x213a30,this['zone']),_0x5cc8b9=a0_0x484b0e(_0x5a8275,this['zone']),_0x2d94a6=this['cpy']()['toTime']();return _0x11aaf4<_0x2d94a6&&_0x2d94a6<_0x5cc8b9;});}['btweq'](_0x26ce48,_0x16400f){return a0_0xf45132(()=>{const _0xc0fd23=a0_0x484b0e(_0x26ce48,this['zone']),_0x26e377=a0_0x484b0e(_0x16400f,this['zone']),_0x5727c0=this['cpy']()['toTime']();return _0xc0fd23<=_0x5727c0&&_0x5727c0<=_0x26e377;});}['btwEqStart'](_0x2585d5,_0x160d28){return a0_0xf45132(()=>{const _0x40c0d3=a0_0x484b0e(_0x2585d5,this['zone']),_0x4bcda8=a0_0x484b0e(_0x160d28,this['zone']),_0x121a8b=this['cpy']()['toTime']();return _0x40c0d3<=_0x121a8b&&_0x121a8b<_0x4bcda8;});}['btwEqEnd'](_0x487767,_0x492d16){return a0_0xf45132(()=>{const _0x2e6ef9=a0_0x484b0e(_0x487767,this['zone']),_0x7dc355=a0_0x484b0e(_0x492d16,this['zone']),_0x1ba993=this['cpy']()['toTime']();return _0x2e6ef9<_0x1ba993&&_0x1ba993<=_0x7dc355;});}static['diffDays'](_0x3f069c,_0x23a528,_0x1c7648){return a0_0xf45132(()=>{const _0x3a6c23=a0_0x484b0e(_0x3f069c,a0_0x45087c),_0x48f5ab=a0_0x484b0e(_0x23a528,a0_0x45087c);return _0x1c7648?Math['abs'](_0x3a6c23-_0x48f5ab)/0x36ee80/0x18:(_0x3a6c23-_0x48f5ab)/0x36ee80/0x18;});}static['diffHours'](_0x1253eb,_0x10eb18,_0x13588b){return a0_0xf45132(()=>{const _0x5b6275=a0_0x484b0e(_0x1253eb,a0_0x45087c),_0xae866e=a0_0x484b0e(_0x10eb18,a0_0x45087c);return _0x13588b?Math['abs'](_0x5b6275-_0xae866e)/0x36ee80:(_0x5b6275-_0xae866e)/0x36ee80;});}static['diffMins'](_0x20f340,_0xd049e3,_0x24bdd3){return a0_0xf45132(()=>{const _0x4f576a=a0_0x484b0e(_0x20f340,a0_0x45087c),_0x1a18dd=a0_0x484b0e(_0xd049e3,a0_0x45087c);return _0x24bdd3?Math['abs'](_0x4f576a-_0x1a18dd)/0x3e8/0x3c:(_0x4f576a-_0x1a18dd)/0x3e8/0x3c;});}static['diffSecs'](_0xb460ac,_0x2f719a,_0x455399){return a0_0xf45132(()=>{const _0x9f5641=a0_0x484b0e(_0xb460ac,a0_0x45087c),_0x2a3ab7=a0_0x484b0e(_0x2f719a,a0_0x45087c);return _0x455399?Math['abs'](_0x9f5641-_0x2a3ab7)/0x3e8:(_0x9f5641-_0x2a3ab7)/0x3e8;});}static['divideTime'](_0x1e82e4){return a0_0xf45132(()=>a0_0x2033a0(_0x1e82e4));}}exports['MDateUtil']=a0_0xcd5165;const a0_0x1db644={};a0_0x1db644['value']='MDateUtil',a0_0x1db644['writable']=![],a0_0x1db644['enumerable']=!![],a0_0x1db644['configurable']=![],Object['defineProperty'](a0_0xcd5165['prototype'],'idkey',a0_0x1db644);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x11afb3=this&&this['__createBinding']||(Object['create']?function(_0x26961e,_0xcb63aa,_0x3b3761,_0x25c839){if(_0x25c839===undefined)_0x25c839=_0x3b3761;var _0x3f1d43=Object['getOwnPropertyDescriptor'](_0xcb63aa,_0x3b3761);if(!_0x3f1d43||('get'in _0x3f1d43?!_0xcb63aa['__esModule']:_0x3f1d43['writable']||_0x3f1d43['configurable'])){var _0x27abe7={};_0x27abe7['enumerable']=!![],_0x27abe7['get']=function(){return _0xcb63aa[_0x3b3761];},_0x3f1d43=_0x27abe7;}Object['defineProperty'](_0x26961e,_0x25c839,_0x3f1d43);}:function(_0x211f84,_0x310c63,_0x3cd72f,_0x3c4f96){if(_0x3c4f96===undefined)_0x3c4f96=_0x3cd72f;_0x211f84[_0x3c4f96]=_0x310c63[_0x3cd72f];}),a0_0x3cfbe1=this&&this['__exportStar']||function(_0x39484f,_0x3c5c6d){for(var _0x5bb7e8 in _0x39484f)if(_0x5bb7e8!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3c5c6d,_0x5bb7e8))a0_0x11afb3(_0x3c5c6d,_0x39484f,_0x5bb7e8);},a0_0x4a07c0={};a0_0x4a07c0['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x4a07c0),a0_0x3cfbe1(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x3c3651=this&&this['__createBinding']||(Object['create']?function(_0x183adf,_0x4c37be,_0x3f2cac,_0x47f260){if(_0x47f260===undefined)_0x47f260=_0x3f2cac;var _0x17c727=Object['getOwnPropertyDescriptor'](_0x4c37be,_0x3f2cac);if(!_0x17c727||('get'in _0x17c727?!_0x4c37be['__esModule']:_0x17c727['writable']||_0x17c727['configurable'])){var _0x36d68f={};_0x36d68f['enumerable']=!![],_0x36d68f['get']=function(){return _0x4c37be[_0x3f2cac];},_0x17c727=_0x36d68f;}Object['defineProperty'](_0x183adf,_0x47f260,_0x17c727);}:function(_0x232058,_0x1b1f6c,_0x49b177,_0x4705c8){if(_0x4705c8===undefined)_0x4705c8=_0x49b177;_0x232058[_0x4705c8]=_0x1b1f6c[_0x49b177];}),a0_0xef62aa=this&&this['__exportStar']||function(_0x27a061,_0x49477d){for(var _0x5700c5 in _0x27a061)if(_0x5700c5!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x49477d,_0x5700c5))a0_0x3c3651(_0x49477d,_0x27a061,_0x5700c5);},a0_0x37c330={};a0_0x37c330['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x37c330),a0_0xef62aa(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.9.50",
3
+ "version": "1.9.64",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",