New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fattureincloud/madbit-js-dates

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fattureincloud/madbit-js-dates - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/functions/getDaysInMonth.d.ts

1

dist/functions/index.d.ts

@@ -11,2 +11,3 @@ export { default as add } from './add';

export { default as getDay } from './getDay';
export { default as getDaysInMonth } from './getDaysInMonth';
export { default as getHours } from './getHours';

@@ -13,0 +14,0 @@ export { default as getMinutes } from './getMinutes';

2

dist/index.esm.js

@@ -1,2 +0,2 @@

import{isMatch as e,parse as t,addMilliseconds as a,addSeconds as n,addMinutes as r,addHours as o,addDays as i,addMonths as d,addYears as u,isEqual as s,isBefore as m,differenceInMilliseconds as l,differenceInSeconds as c,differenceInMinutes as f,differenceInHours as h,differenceInDays as g,differenceInMonths as y,differenceInYears as v,endOfDay as b,endOfMonth as p,endOfWeek as M,endOfYear as w,format as W,isAfter as P,startOfDay as z,startOfMonth as H,startOfWeek as D,startOfYear as S,subMilliseconds as T,subSeconds as j,subMinutes as k,subHours as C,subDays as A,subMonths as x,subYears as O}from"date-fns";function E(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}function Y(e){return function(t,a){var n;if("formatting"===(null!=a&&a.context?String(a.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=null!=a&&a.width?String(a.width):r;n=e.formattingValues[o]||e.formattingValues[r]}else{var i=e.defaultWidth,d=null!=a&&a.width?String(a.width):e.defaultWidth;n=e.values[d]||e.values[i]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function F(e){return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var i,d=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?function(e,t){for(var a=0;a<e.length;a++)if(t(e[a]))return a;return}(u,(function(e){return e.test(d)})):function(e,t){for(var a in e)if(e.hasOwnProperty(a)&&t(e[a]))return a;return}(u,(function(e){return e.test(d)}));return i=e.valueCallback?e.valueCallback(s):s,{value:i=a.valueCallback?a.valueCallback(i):i,rest:t.slice(d.length)}}}function N(e){return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var r=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=a.valueCallback?a.valueCallback(i):i,rest:t.slice(r.length)}}}function X(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}var q={};function I(){return q}function R(e,t){var a,n,r,o,i,d,u,s;X(1,arguments);var m=I(),l=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(a=null!==(n=null!==(r=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(i=t.locale)||void 0===i||null===(d=i.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:m.weekStartsOn)&&void 0!==n?n:null===(u=m.locale)||void 0===u||null===(s=u.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:0);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=function(e){X(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===L(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),f=c.getUTCDay(),h=(f<l?7:0)+f-l;return c.setUTCDate(c.getUTCDate()-h),c.setUTCHours(0,0,0,0),c}var U={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},J=function(e,t,a){var n,r=U[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=a&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n},V={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z={code:"en-US",formatDistance:J,formatLong:V,formatRelative:function(e,t,a,n){return Q[e]},localize:{ordinalNumber:function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:Y({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Y({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Y({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Y({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Y({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:N({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:F({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:F({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:F({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function B(e,t,a){X(2,arguments);var n=R(e,a),r=R(t,a);return n.getTime()===r.getTime()}var G={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},_=function(e,t,a){var n,r=G[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=a&&a.addSuffix?a.comparison&&a.comparison>0?"en "+n:"hace "+n:n},K={date:E({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:E({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},ee={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},te={code:"es",formatDistance:_,formatLong:K,formatRelative:function(e,t,a,n){return 1!==t.getUTCHours()?ee[e]:$[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:Y({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:Y({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Y({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:Y({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:Y({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:N({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:F({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:F({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:F({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},ae={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},ne=function(e,t,a){var n,r=ae[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=a&&a.addSuffix?a.comparison&&a.comparison>0?"tra "+n:n+" fa":n},re={date:E({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:E({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},oe=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function ie(e){return"'"+oe[e]+" alle' p"}var de={lastWeek:function(e,t,a){var n=e.getUTCDay();return B(e,t,a)?ie(n):function(e){return 0===e?"'domenica scorsa alle' p":"'"+oe[e]+" scorso alle' p"}(n)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,a){var n=e.getUTCDay();return B(e,t,a)?ie(n):function(e){return 0===e?"'domenica prossima alle' p":"'"+oe[e]+" prossimo alle' p"}(n)},other:"P"},ue=function(e,t,a,n){var r=de[e];return"function"==typeof r?r(t,a,n):r},se={ordinalNumber:function(e,t){var a=Number(e);return String(a)},era:Y({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Y({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Y({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Y({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Y({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},me={ordinalNumber:N({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:F({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:F({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:F({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},le={SQL:"yyyy-MM-dd","SQL+T":"yyyy-MM-dd HH:mm:ss",IT:"dd/MM/yyyy","IT+T":"dd/MM/yyyy HH:mm:ss",IT_FULL:"dd MMMM yyyy","IT_FULL+T":"dd MMMM yyyy HH:mm:ss"},ce={gennaio:"january",febbraio:"february",marzo:"march",aprile:"april",maggio:"may",giugno:"june",luglio:"july",agosto:"august",settembre:"september",ottobre:"october",novembre:"november",dicembre:"december"},fe={enero:"january",febrero:"february",marzo:"march",abril:"april",mayo:"may",junio:"june",julio:"july",agosto:"august",septiembre:"september",octubre:"october",noviembre:"november",diciembre:"december"},he={en:"Invalid date",es:"Fecha invalida",it:"Data non valida"},ge={en:Z,es:te,it:{code:"it",formatDistance:ne,formatLong:re,formatRelative:ue,localize:se,match:me,options:{weekStartsOn:1,firstWeekContainsDate:4}}},ye={years:0,months:1,days:2,hours:3,minutes:4,seconds:5,milliseconds:6},ve=["now","NOW","yesterday","YESTERDAY","tomorrow","TOMORROW"],be=["SQL","SQL+T","IT","IT+T","IT_FULL","IT_FULL+T"],pe=["HH:mm:ss","HH:mm"],Me=[{format:"yyyy-MM-dd",pattern:/\d{4}-\d{2}-\d{2}/},{format:"dd/MM/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"dd/MM/yy",pattern:/\d{2}\/\d{2}\/\d{2}/},{format:"dd-MM-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"dd-MM-yy",pattern:/\d{2}-\d{2}-\d{2}/},{format:"MM/dd/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"MM-dd-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"yyyy/MM/dd",pattern:/\d{4}\/\d{2}\/\d{2}/},{format:"dd MMMM yyyy",pattern:/\d{2} [a-zA-Z]+ \d{4}/},{format:"dd MMM yyyy",pattern:/\d{2} [a-zA-Z]{3} \d{4}/},{format:"MMMM yyyy",pattern:/[a-zA-Z]+ \d{4}/},{format:"EEEE dd/MM",pattern:/[a-zA-Z]+ \d{2}\/\d{2}/},{format:"EEE dd/MM",pattern:/[a-zA-Z]{3} \d{2}\/\d{2}/}],we=[{format:"yyyy-MM-dd HH:mm:ss",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"yyyy-MM-dd HH:mm",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/},{format:"dd/MM/yy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yy HH:mm",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}/},{format:"dd-MM-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd-MM-yy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"MM/dd/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"MM-dd-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"yyyy/MM/dd HH:mm:ss",pattern:/\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd MMMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/},{format:"dd MMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2}/},{format:"MMMM yyyy HH:mm:ss",pattern:/[a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/}],We=new RegExp(Object.keys(ce).join("|"),"g"),Pe=new RegExp(Object.keys(fe).join("|"),"g");function ze(e,t,a){if(a||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var He=["en","es","it"],De=function(e){return He.includes(e)},Se=function(e){return ze(ze(ze([],Me,!0),we,!0),pe,!0).includes(e)},Te=function(t){for(var a=function(t){return t.split(" ").reverse().some((function(t){return pe.some((function(a){return e(t,a)}))}))}(t)?we:Me,n=0;n<a.length;n++)if(e(t,a[n].format,{locale:Z})&&a[n].pattern.test(t))return a[n].format;return null},je=function(e){var a;if("string"==typeof e&&(e=function(e){return(e=e.toLowerCase()).match(We)&&(e=e.replace(We,(function(e){return e in ce?ce[e]:e}))),e.match(Pe)&&(e=e.replace(Pe,(function(e){return e in fe?fe[e]:e}))),e.trim()}(e)),!function(e){return null!=e}(e)||!e)return new Date;if(function(e){return"number"==typeof e}(e)||e instanceof Date)return new Date(e);if(a=e,ve.includes(a))return function(e){var t=new Date;switch(e){case"yesterday":case"YESTERDAY":return t.setDate(t.getDate()-1),t;case"tomorrow":case"TOMORROW":return t.setDate(t.getDate()+1),t;default:return new Date}}(e);var n=Te(e);return n?t(e,n,new Date,{locale:Z}):new Date("michi")},ke=function(e){return e instanceof Date||(e=je(e)),e instanceof Date&&!isNaN(e.getTime())},Ce=function(e,t,s){var m=je(e);if(!ke(m))return m;switch(s){case"years":return u(m,t);case"months":return d(m,t);case"days":return i(m,t);case"hours":return o(m,t);case"minutes":return r(m,t);case"seconds":return n(m,t);default:return a(m,t)}},Ae=function(e,t){var a=ye[t],n=[e.getFullYear(),a>0?e.getMonth():0,a>1?e.getDate():1,a>2?e.getHours():0,a>3?e.getMinutes():0,a>4?e.getSeconds():0,a>5?e.getMilliseconds():0];return new(Date.bind.apply(Date,ze([void 0],n,!1)))},xe=function(e,t,a){var n=je(e),r=je(t);return ke(n)&&ke(r)&&a&&(n=Ae(n,a),r=Ae(r,a)),[n,r]},Oe=function(e,t,a){var n=xe(e,t,a),r=n[0],o=n[1];return s(r,o)?0:m(r,o)?-1:1},Ee=function(e,t,a){var n=xe(e,t,a),r=n[0],o=n[1];if(!ke(r)||!ke(o))return 0;switch(a){case"years":return v(r,o);case"months":return y(r,o);case"days":return g(r,o);case"hours":return h(r,o);case"minutes":return f(r,o);case"seconds":return c(r,o);default:return l(r,o)}},Ye=function(e){var t=je(null!=e?e:"now");return ke(t)?b(t):t},Fe=function(e){var t=je(null!=e?e:"now");return ke(t)?p(t):t},Ne=function(e){var t=je(null!=e?e:"now");return ke(t)?M(t):t},Xe=function(e){var t=je(null!=e?e:"now");return ke(t)?w(t):t},Le=function(e,t,a){void 0===a&&(a="it");var n,r=je(e);return ke(r)?(n=t,be.includes(n)&&(t=le[t]),W(r,t,{locale:ge[a]})):he[a]},qe=function(e){var t=je(e);return ke(t)?t.getDate():null},Ie=function(e){var t=je(e);return ke(t)?t.getHours():null},Re=function(e){var t=je(e);return ke(t)?t.getMinutes():null},Ue=function(e){var t=je(e);return ke(t)?t.getMonth():null},Je=function(e){var t=je(e);return ke(t)?t.getSeconds():null},Ve=function(e){var t=je(e);return ke(t)?t.getFullYear():null},Qe=function(e,t,a){var n=xe(e,t,a),r=n[0],o=n[1];return!(!ke(r)||!ke(o))&&P(r,o)},Ze=function(e,t,a){var n=xe(e,t,a),r=n[0],o=n[1];return!(!ke(r)||!ke(o))&&m(r,o)},Be=function(e,t){return void 0===t&&(t="days"),Qe(e,"now",t)},Ge=function(e,t){return void 0===t&&(t="days"),Ze(e,"now",t)},_e=function(e){var t=je(e);if(!ke(t))return!1;var a=new Date;return a.getFullYear()===t.getFullYear()&&a.getMonth()===t.getMonth()&&a.getDate()===t.getDate()},Ke=function(e){var t=je(e);if(!ke(t))return!1;var a=new Date;return a.getFullYear()===t.getFullYear()&&a.getMonth()===t.getMonth()&&a.getDate()===t.getDate()-1},$e=function(e){var t=je(e);if(!ke(t))return!1;var a=new Date;return a.getFullYear()===t.getFullYear()&&a.getMonth()===t.getMonth()&&a.getDate()===t.getDate()+1},et=function(e){var t=je(null!=e?e:"now");return ke(t)?z(t):t},tt=function(e){var t=je(null!=e?e:"now");return ke(t)?H(t):t},at=function(e){var t=je(null!=e?e:"now");return ke(t)?D(t):t},nt=function(e){var t=je(null!=e?e:"now");return ke(t)?S(t):t},rt=function(e,t,a){var n=je(e);if(!ke(n))return n;switch(a){case"years":return O(n,t);case"months":return x(n,t);case"days":return A(n,t);case"hours":return C(n,t);case"minutes":return k(n,t);case"seconds":return j(n,t);default:return T(n,t)}},ot=function(e){var t=je(e);return ke(t)?t.getTime():null},it=(new Date).getFullYear();export{Ce as add,Oe as compare,it as currentYear,Ee as diff,Ye as endOfDay,Fe as endOfMonth,Ne as endOfWeek,Xe as endOfYear,Te as findFormat,Le as format,qe as getDay,Ie as getHours,Re as getMinutes,Ue as getMonth,Je as getSeconds,Ve as getYear,Qe as isAfter,Ze as isBefore,Be as isFuture,Ge as isPast,Se as isSupportedFormat,De as isSupportedLocale,_e as isToday,Ke as isTomorrow,ke as isValid,$e as isYesterday,je as parse,et as startOfDay,tt as startOfMonth,at as startOfWeek,nt as startOfYear,rt as subtract,ot as unix};
import{isMatch as e,parse as t,addMilliseconds as n,addSeconds as a,addMinutes as r,addHours as o,addDays as i,addMonths as d,addYears as u,isEqual as s,isBefore as m,differenceInMilliseconds as l,differenceInSeconds as c,differenceInMinutes as f,differenceInHours as h,differenceInDays as g,differenceInMonths as y,differenceInYears as v,endOfDay as b,endOfMonth as p,endOfWeek as M,endOfYear as w,format as W,getDaysInMonth as P,isAfter as z,startOfDay as H,startOfMonth as D,startOfWeek as S,startOfYear as T,subMilliseconds as j,subSeconds as k,subMinutes as C,subHours as A,subDays as x,subMonths as O,subYears as E}from"date-fns";function Y(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function F(e){return function(t,n){var a;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):r;a=e.formattingValues[o]||e.formattingValues[r]}else{var i=e.defaultWidth,d=null!=n&&n.width?String(n.width):e.defaultWidth;a=e.values[d]||e.values[i]}return a[e.argumentCallback?e.argumentCallback(t):t]}}function N(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var i,d=o[0],u=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(u,(function(e){return e.test(d)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(u,(function(e){return e.test(d)}));return i=e.valueCallback?e.valueCallback(s):s,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(d.length)}}}function X(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(r.length)}}}function L(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}var I={};function R(){return I}function U(e,t){var n,a,r,o,i,d,u,s;L(1,arguments);var m=R(),l=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(n=null!==(a=null!==(r=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(i=t.locale)||void 0===i||null===(d=i.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:m.weekStartsOn)&&void 0!==a?a:null===(u=m.locale)||void 0===u||null===(s=u.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=function(e){L(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===q(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),f=c.getUTCDay(),h=(f<l?7:0)+f-l;return c.setUTCDate(c.getUTCDate()-h),c.setUTCHours(0,0,0,0),c}var J={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},V=function(e,t,n){var a,r=J[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},Q={date:Y({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Y({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Y({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Z={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},B={code:"en-US",formatDistance:V,formatLong:Q,formatRelative:function(e,t,n,a){return Z[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:F({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:F({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:F({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:F({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:F({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:X({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function G(e,t,n){L(2,arguments);var a=U(e,n),r=U(t,n);return a.getTime()===r.getTime()}var _={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},K=function(e,t,n){var a,r=_[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+a:"hace "+a:a},$={date:Y({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Y({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Y({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ee={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},te={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ne={code:"es",formatDistance:K,formatLong:$,formatRelative:function(e,t,n,a){return 1!==t.getUTCHours()?te[e]:ee[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:F({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:F({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:F({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:F({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:F({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:X({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:N({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:N({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},ae={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},re=function(e,t,n){var a,r=ae[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+a:a+" fa":a},oe={date:Y({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Y({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Y({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ie=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function de(e){return"'"+ie[e]+" alle' p"}var ue={lastWeek:function(e,t,n){var a=e.getUTCDay();return G(e,t,n)?de(a):function(e){return 0===e?"'domenica scorsa alle' p":"'"+ie[e]+" scorso alle' p"}(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var a=e.getUTCDay();return G(e,t,n)?de(a):function(e){return 0===e?"'domenica prossima alle' p":"'"+ie[e]+" prossimo alle' p"}(a)},other:"P"},se=function(e,t,n,a){var r=ue[e];return"function"==typeof r?r(t,n,a):r},me={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:F({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:F({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:F({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:F({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:F({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},le={ordinalNumber:X({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:N({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:N({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},ce={SQL:"yyyy-MM-dd","SQL+T":"yyyy-MM-dd HH:mm:ss",IT:"dd/MM/yyyy","IT+T":"dd/MM/yyyy HH:mm:ss",IT_FULL:"dd MMMM yyyy","IT_FULL+T":"dd MMMM yyyy HH:mm:ss"},fe={gennaio:"january",febbraio:"february",marzo:"march",aprile:"april",maggio:"may",giugno:"june",luglio:"july",agosto:"august",settembre:"september",ottobre:"october",novembre:"november",dicembre:"december"},he={enero:"january",febrero:"february",marzo:"march",abril:"april",mayo:"may",junio:"june",julio:"july",agosto:"august",septiembre:"september",octubre:"october",noviembre:"november",diciembre:"december"},ge={en:"Invalid date",es:"Fecha invalida",it:"Data non valida"},ye={en:B,es:ne,it:{code:"it",formatDistance:re,formatLong:oe,formatRelative:se,localize:me,match:le,options:{weekStartsOn:1,firstWeekContainsDate:4}}},ve={years:0,months:1,days:2,hours:3,minutes:4,seconds:5,milliseconds:6},be=["now","NOW","yesterday","YESTERDAY","tomorrow","TOMORROW"],pe=["SQL","SQL+T","IT","IT+T","IT_FULL","IT_FULL+T"],Me=["HH:mm:ss","HH:mm"],we=[{format:"yyyy-MM-dd",pattern:/\d{4}-\d{2}-\d{2}/},{format:"dd/MM/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"dd/MM/yy",pattern:/\d{2}\/\d{2}\/\d{2}/},{format:"dd-MM-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"dd-MM-yy",pattern:/\d{2}-\d{2}-\d{2}/},{format:"MM/dd/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"MM-dd-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"yyyy/MM/dd",pattern:/\d{4}\/\d{2}\/\d{2}/},{format:"dd MMMM yyyy",pattern:/\d{2} [a-zA-Z]+ \d{4}/},{format:"dd MMM yyyy",pattern:/\d{2} [a-zA-Z]{3} \d{4}/},{format:"MMMM yyyy",pattern:/[a-zA-Z]+ \d{4}/},{format:"EEEE dd/MM",pattern:/[a-zA-Z]+ \d{2}\/\d{2}/},{format:"EEE dd/MM",pattern:/[a-zA-Z]{3} \d{2}\/\d{2}/}],We=[{format:"yyyy-MM-dd HH:mm:ss",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"yyyy-MM-dd HH:mm",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/},{format:"dd/MM/yy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yy HH:mm",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}/},{format:"dd-MM-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd-MM-yy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"MM/dd/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"MM-dd-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"yyyy/MM/dd HH:mm:ss",pattern:/\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd MMMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/},{format:"dd MMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2}/},{format:"MMMM yyyy HH:mm:ss",pattern:/[a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/}],Pe=new RegExp(Object.keys(fe).join("|"),"g"),ze=new RegExp(Object.keys(he).join("|"),"g");function He(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var De=["en","es","it"],Se=function(e){return De.includes(e)},Te=function(e){return He(He(He([],we,!0),We,!0),Me,!0).includes(e)},je=function(t){for(var n=function(t){return t.split(" ").reverse().some((function(t){return Me.some((function(n){return e(t,n)}))}))}(t)?We:we,a=0;a<n.length;a++)if(e(t,n[a].format,{locale:B})&&n[a].pattern.test(t))return n[a].format;return null},ke=function(e){var n;if("string"==typeof e&&(e=function(e){return(e=e.toLowerCase()).match(Pe)&&(e=e.replace(Pe,(function(e){return e in fe?fe[e]:e}))),e.match(ze)&&(e=e.replace(ze,(function(e){return e in he?he[e]:e}))),e.trim()}(e)),!function(e){return null!=e}(e)||!e)return new Date;if(function(e){return"number"==typeof e}(e)||e instanceof Date)return new Date(e);if(n=e,be.includes(n))return function(e){var t=new Date;switch(e){case"yesterday":case"YESTERDAY":return t.setDate(t.getDate()-1),t;case"tomorrow":case"TOMORROW":return t.setDate(t.getDate()+1),t;default:return new Date}}(e);var a=je(e);return a?t(e,a,new Date,{locale:B}):new Date("michi")},Ce=function(e){return e instanceof Date||(e=ke(e)),e instanceof Date&&!isNaN(e.getTime())},Ae=function(e,t,s){var m=ke(e);if(!Ce(m))return m;switch(s){case"years":return u(m,t);case"months":return d(m,t);case"days":return i(m,t);case"hours":return o(m,t);case"minutes":return r(m,t);case"seconds":return a(m,t);default:return n(m,t)}},xe=function(e,t){var n=ve[t],a=[e.getFullYear(),n>0?e.getMonth():0,n>1?e.getDate():1,n>2?e.getHours():0,n>3?e.getMinutes():0,n>4?e.getSeconds():0,n>5?e.getMilliseconds():0];return new(Date.bind.apply(Date,He([void 0],a,!1)))},Oe=function(e,t,n){var a=ke(e),r=ke(t);return Ce(a)&&Ce(r)&&n&&(a=xe(a,n),r=xe(r,n)),[a,r]},Ee=function(e,t,n){var a=Oe(e,t,n),r=a[0],o=a[1];return s(r,o)?0:m(r,o)?-1:1},Ye=function(e,t,n){var a=Oe(e,t,n),r=a[0],o=a[1];if(!Ce(r)||!Ce(o))return 0;switch(n){case"years":return v(r,o);case"months":return y(r,o);case"days":return g(r,o);case"hours":return h(r,o);case"minutes":return f(r,o);case"seconds":return c(r,o);default:return l(r,o)}},Fe=function(e){var t=ke(null!=e?e:"now");return Ce(t)?b(t):t},Ne=function(e){var t=ke(null!=e?e:"now");return Ce(t)?p(t):t},Xe=function(e){var t=ke(null!=e?e:"now");return Ce(t)?M(t):t},Le=function(e){var t=ke(null!=e?e:"now");return Ce(t)?w(t):t},qe=function(e,t,n){void 0===n&&(n="it");var a,r=ke(e);return Ce(r)?(a=t,pe.includes(a)&&(t=ce[t]),W(r,t,{locale:ye[n]})):ge[n]},Ie=function(e){var t=ke(e);return Ce(t)?t.getDate():null},Re=function(e,t){return t||(t=(new Date).getFullYear()),t<0||e<0||e>11?null:P(new Date(t,e))},Ue=function(e){var t=ke(e);return Ce(t)?t.getHours():null},Je=function(e){var t=ke(e);return Ce(t)?t.getMinutes():null},Ve=function(e){var t=ke(e);return Ce(t)?t.getMonth():null},Qe=function(e){var t=ke(e);return Ce(t)?t.getSeconds():null},Ze=function(e){var t=ke(e);return Ce(t)?t.getFullYear():null},Be=function(e,t,n){var a=Oe(e,t,n),r=a[0],o=a[1];return!(!Ce(r)||!Ce(o))&&z(r,o)},Ge=function(e,t,n){var a=Oe(e,t,n),r=a[0],o=a[1];return!(!Ce(r)||!Ce(o))&&m(r,o)},_e=function(e,t){return void 0===t&&(t="days"),Be(e,"now",t)},Ke=function(e,t){return void 0===t&&(t="days"),Ge(e,"now",t)},$e=function(e){var t=ke(e);if(!Ce(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()},et=function(e){var t=ke(e);if(!Ce(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()-1},tt=function(e){var t=ke(e);if(!Ce(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()+1},nt=function(e){var t=ke(null!=e?e:"now");return Ce(t)?H(t):t},at=function(e){var t=ke(null!=e?e:"now");return Ce(t)?D(t):t},rt=function(e){var t=ke(null!=e?e:"now");return Ce(t)?S(t):t},ot=function(e){var t=ke(null!=e?e:"now");return Ce(t)?T(t):t},it=function(e,t,n){var a=ke(e);if(!Ce(a))return a;switch(n){case"years":return E(a,t);case"months":return O(a,t);case"days":return x(a,t);case"hours":return A(a,t);case"minutes":return C(a,t);case"seconds":return k(a,t);default:return j(a,t)}},dt=function(e){var t=ke(e);return Ce(t)?t.getTime():null},ut=(new Date).getFullYear();export{Ae as add,Ee as compare,ut as currentYear,Ye as diff,Fe as endOfDay,Ne as endOfMonth,Xe as endOfWeek,Le as endOfYear,je as findFormat,qe as format,Ie as getDay,Re as getDaysInMonth,Ue as getHours,Je as getMinutes,Ve as getMonth,Qe as getSeconds,Ze as getYear,Be as isAfter,Ge as isBefore,_e as isFuture,Ke as isPast,Te as isSupportedFormat,Se as isSupportedLocale,$e as isToday,et as isTomorrow,Ce as isValid,tt as isYesterday,ke as parse,nt as startOfDay,at as startOfMonth,rt as startOfWeek,ot as startOfYear,it as subtract,dt as unix};
//# sourceMappingURL=index.esm.js.map

@@ -1,2 +0,2 @@

"use strict";var e=require("date-fns");function t(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function n(e){return function(t,n){var a;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):r;a=e.formattingValues[o]||e.formattingValues[r]}else{var i=e.defaultWidth,d=null!=n&&n.width?String(n.width):e.defaultWidth;a=e.values[d]||e.values[i]}return a[e.argumentCallback?e.argumentCallback(t):t]}}function a(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var i,d=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(function(e){return e.test(d)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(s,(function(e){return e.test(d)}));return i=e.valueCallback?e.valueCallback(u):u,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(d.length)}}}function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(r.length)}}}function o(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var d={};function s(){return d}function u(e,t){var n,a,r,d,u,m,l,c;o(1,arguments);var f=s(),h=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(n=null!==(a=null!==(r=null!==(d=null==t?void 0:t.weekStartsOn)&&void 0!==d?d:null==t||null===(u=t.locale)||void 0===u||null===(m=u.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==r?r:f.weekStartsOn)&&void 0!==a?a:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=function(e){o(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===i(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),y=g.getUTCDay(),p=(y<h?7:0)+y-h;return g.setUTCDate(g.getUTCDate()-p),g.setUTCHours(0,0,0,0),g}var m={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l=function(e,t,n){var a,r=m[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},c={date:t({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:t({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:t({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},f={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},h={code:"en-US",formatDistance:l,formatLong:c,formatRelative:function(e,t,n,a){return f[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:n({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:n({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:n({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:r({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:a({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:a({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function g(e,t,n){o(2,arguments);var a=u(e,n),r=u(t,n);return a.getTime()===r.getTime()}var y={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},p=function(e,t,n){var a,r=y[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+a:"hace "+a:a},v={date:t({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:t({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:t({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},b={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},M={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},w={code:"es",formatDistance:p,formatLong:v,formatRelative:function(e,t,n,a){return 1!==t.getUTCHours()?M[e]:b[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:n({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:n({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:n({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:r({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:a({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:a({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},W={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},P=function(e,t,n){var a,r=W[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+a:a+" fa":a},z={date:t({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:t({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:t({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},H=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function x(e){return"'"+H[e]+" alle' p"}var D={lastWeek:function(e,t,n){var a=e.getUTCDay();return g(e,t,n)?x(a):function(e){return 0===e?"'domenica scorsa alle' p":"'"+H[e]+" scorso alle' p"}(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var a=e.getUTCDay();return g(e,t,n)?x(a):function(e){return 0===e?"'domenica prossima alle' p":"'"+H[e]+" prossimo alle' p"}(a)},other:"P"},S=function(e,t,n,a){var r=D[e];return"function"==typeof r?r(t,n,a):r},T={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:n({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:n({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:n({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},j={ordinalNumber:r({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:a({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:a({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},k={SQL:"yyyy-MM-dd","SQL+T":"yyyy-MM-dd HH:mm:ss",IT:"dd/MM/yyyy","IT+T":"dd/MM/yyyy HH:mm:ss",IT_FULL:"dd MMMM yyyy","IT_FULL+T":"dd MMMM yyyy HH:mm:ss"},C={gennaio:"january",febbraio:"february",marzo:"march",aprile:"april",maggio:"may",giugno:"june",luglio:"july",agosto:"august",settembre:"september",ottobre:"october",novembre:"november",dicembre:"december"},A={enero:"january",febrero:"february",marzo:"march",abril:"april",mayo:"may",junio:"june",julio:"july",agosto:"august",septiembre:"september",octubre:"october",noviembre:"november",diciembre:"december"},O={en:"Invalid date",es:"Fecha invalida",it:"Data non valida"},Y={en:h,es:w,it:{code:"it",formatDistance:P,formatLong:z,formatRelative:S,localize:T,match:j,options:{weekStartsOn:1,firstWeekContainsDate:4}}},E={years:0,months:1,days:2,hours:3,minutes:4,seconds:5,milliseconds:6},F=["now","NOW","yesterday","YESTERDAY","tomorrow","TOMORROW"],N=["SQL","SQL+T","IT","IT+T","IT_FULL","IT_FULL+T"],X=["HH:mm:ss","HH:mm"],I=[{format:"yyyy-MM-dd",pattern:/\d{4}-\d{2}-\d{2}/},{format:"dd/MM/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"dd/MM/yy",pattern:/\d{2}\/\d{2}\/\d{2}/},{format:"dd-MM-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"dd-MM-yy",pattern:/\d{2}-\d{2}-\d{2}/},{format:"MM/dd/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"MM-dd-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"yyyy/MM/dd",pattern:/\d{4}\/\d{2}\/\d{2}/},{format:"dd MMMM yyyy",pattern:/\d{2} [a-zA-Z]+ \d{4}/},{format:"dd MMM yyyy",pattern:/\d{2} [a-zA-Z]{3} \d{4}/},{format:"MMMM yyyy",pattern:/[a-zA-Z]+ \d{4}/},{format:"EEEE dd/MM",pattern:/[a-zA-Z]+ \d{2}\/\d{2}/},{format:"EEE dd/MM",pattern:/[a-zA-Z]{3} \d{2}\/\d{2}/}],L=[{format:"yyyy-MM-dd HH:mm:ss",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"yyyy-MM-dd HH:mm",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/},{format:"dd/MM/yy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yy HH:mm",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}/},{format:"dd-MM-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd-MM-yy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"MM/dd/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"MM-dd-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"yyyy/MM/dd HH:mm:ss",pattern:/\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd MMMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/},{format:"dd MMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2}/},{format:"MMMM yyyy HH:mm:ss",pattern:/[a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/}],q=new RegExp(Object.keys(C).join("|"),"g"),R=new RegExp(Object.keys(A).join("|"),"g");function U(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var V=["en","es","it"],J=function(t){for(var n=function(t){return t.split(" ").reverse().some((function(t){return X.some((function(n){return e.isMatch(t,n)}))}))}(t)?L:I,a=0;a<n.length;a++)if(e.isMatch(t,n[a].format,{locale:h})&&n[a].pattern.test(t))return n[a].format;return null},Q=function(t){var n;if("string"==typeof t&&(t=function(e){return(e=e.toLowerCase()).match(q)&&(e=e.replace(q,(function(e){return e in C?C[e]:e}))),e.match(R)&&(e=e.replace(R,(function(e){return e in A?A[e]:e}))),e.trim()}(t)),!function(e){return null!=e}(t)||!t)return new Date;if(function(e){return"number"==typeof e}(t)||t instanceof Date)return new Date(t);if(n=t,F.includes(n))return function(e){var t=new Date;switch(e){case"yesterday":case"YESTERDAY":return t.setDate(t.getDate()-1),t;case"tomorrow":case"TOMORROW":return t.setDate(t.getDate()+1),t;default:return new Date}}(t);var a=J(t);return a?e.parse(t,a,new Date,{locale:h}):new Date("michi")},Z=function(e){return e instanceof Date||(e=Q(e)),e instanceof Date&&!isNaN(e.getTime())},B=function(e,t){var n=E[t],a=[e.getFullYear(),n>0?e.getMonth():0,n>1?e.getDate():1,n>2?e.getHours():0,n>3?e.getMinutes():0,n>4?e.getSeconds():0,n>5?e.getMilliseconds():0];return new(Date.bind.apply(Date,U([void 0],a,!1)))},G=function(e,t,n){var a=Q(e),r=Q(t);return Z(a)&&Z(r)&&n&&(a=B(a,n),r=B(r,n)),[a,r]},_=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];return!(!Z(o)||!Z(i))&&e.isAfter(o,i)},K=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];return!(!Z(o)||!Z(i))&&e.isBefore(o,i)},$=(new Date).getFullYear();exports.add=function(t,n,a){var r=Q(t);if(!Z(r))return r;switch(a){case"years":return e.addYears(r,n);case"months":return e.addMonths(r,n);case"days":return e.addDays(r,n);case"hours":return e.addHours(r,n);case"minutes":return e.addMinutes(r,n);case"seconds":return e.addSeconds(r,n);default:return e.addMilliseconds(r,n)}},exports.compare=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];return e.isEqual(o,i)?0:e.isBefore(o,i)?-1:1},exports.currentYear=$,exports.diff=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];if(!Z(o)||!Z(i))return 0;switch(a){case"years":return e.differenceInYears(o,i);case"months":return e.differenceInMonths(o,i);case"days":return e.differenceInDays(o,i);case"hours":return e.differenceInHours(o,i);case"minutes":return e.differenceInMinutes(o,i);case"seconds":return e.differenceInSeconds(o,i);default:return e.differenceInMilliseconds(o,i)}},exports.endOfDay=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfDay(n):n},exports.endOfMonth=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfMonth(n):n},exports.endOfWeek=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfWeek(n):n},exports.endOfYear=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfYear(n):n},exports.findFormat=J,exports.format=function(t,n,a){void 0===a&&(a="it");var r,o=Q(t);return Z(o)?(r=n,N.includes(r)&&(n=k[n]),e.format(o,n,{locale:Y[a]})):O[a]},exports.getDay=function(e){var t=Q(e);return Z(t)?t.getDate():null},exports.getHours=function(e){var t=Q(e);return Z(t)?t.getHours():null},exports.getMinutes=function(e){var t=Q(e);return Z(t)?t.getMinutes():null},exports.getMonth=function(e){var t=Q(e);return Z(t)?t.getMonth():null},exports.getSeconds=function(e){var t=Q(e);return Z(t)?t.getSeconds():null},exports.getYear=function(e){var t=Q(e);return Z(t)?t.getFullYear():null},exports.isAfter=_,exports.isBefore=K,exports.isFuture=function(e,t){return void 0===t&&(t="days"),_(e,"now",t)},exports.isPast=function(e,t){return void 0===t&&(t="days"),K(e,"now",t)},exports.isSupportedFormat=function(e){return U(U(U([],I,!0),L,!0),X,!0).includes(e)},exports.isSupportedLocale=function(e){return V.includes(e)},exports.isToday=function(e){var t=Q(e);if(!Z(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()},exports.isTomorrow=function(e){var t=Q(e);if(!Z(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()-1},exports.isValid=Z,exports.isYesterday=function(e){var t=Q(e);if(!Z(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()+1},exports.parse=Q,exports.startOfDay=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfDay(n):n},exports.startOfMonth=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfMonth(n):n},exports.startOfWeek=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfWeek(n):n},exports.startOfYear=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfYear(n):n},exports.subtract=function(t,n,a){var r=Q(t);if(!Z(r))return r;switch(a){case"years":return e.subYears(r,n);case"months":return e.subMonths(r,n);case"days":return e.subDays(r,n);case"hours":return e.subHours(r,n);case"minutes":return e.subMinutes(r,n);case"seconds":return e.subSeconds(r,n);default:return e.subMilliseconds(r,n)}},exports.unix=function(e){var t=Q(e);return Z(t)?t.getTime():null};
"use strict";var e=require("date-fns");function t(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function n(e){return function(t,n){var a;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):r;a=e.formattingValues[o]||e.formattingValues[r]}else{var i=e.defaultWidth,d=null!=n&&n.width?String(n.width):e.defaultWidth;a=e.values[d]||e.values[i]}return a[e.argumentCallback?e.argumentCallback(t):t]}}function a(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var i,d=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(function(e){return e.test(d)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(s,(function(e){return e.test(d)}));return i=e.valueCallback?e.valueCallback(u):u,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(d.length)}}}function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(r.length)}}}function o(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var d={};function s(){return d}function u(e,t){var n,a,r,d,u,m,l,c;o(1,arguments);var f=s(),h=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(n=null!==(a=null!==(r=null!==(d=null==t?void 0:t.weekStartsOn)&&void 0!==d?d:null==t||null===(u=t.locale)||void 0===u||null===(m=u.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==r?r:f.weekStartsOn)&&void 0!==a?a:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=function(e){o(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===i(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),y=g.getUTCDay(),p=(y<h?7:0)+y-h;return g.setUTCDate(g.getUTCDate()-p),g.setUTCHours(0,0,0,0),g}var m={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l=function(e,t,n){var a,r=m[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},c={date:t({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:t({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:t({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},f={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},h={code:"en-US",formatDistance:l,formatLong:c,formatRelative:function(e,t,n,a){return f[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:n({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:n({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:n({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:r({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:a({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:a({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function g(e,t,n){o(2,arguments);var a=u(e,n),r=u(t,n);return a.getTime()===r.getTime()}var y={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},p=function(e,t,n){var a,r=y[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+a:"hace "+a:a},v={date:t({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:t({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:t({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},b={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},M={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},w={code:"es",formatDistance:p,formatLong:v,formatRelative:function(e,t,n,a){return 1!==t.getUTCHours()?M[e]:b[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:n({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:n({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:n({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:r({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:a({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:a({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},W={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},P=function(e,t,n){var a,r=W[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+a:a+" fa":a},D={date:t({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:t({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:t({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},z=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function H(e){return"'"+z[e]+" alle' p"}var x={lastWeek:function(e,t,n){var a=e.getUTCDay();return g(e,t,n)?H(a):function(e){return 0===e?"'domenica scorsa alle' p":"'"+z[e]+" scorso alle' p"}(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var a=e.getUTCDay();return g(e,t,n)?H(a):function(e){return 0===e?"'domenica prossima alle' p":"'"+z[e]+" prossimo alle' p"}(a)},other:"P"},S=function(e,t,n,a){var r=x[e];return"function"==typeof r?r(t,n,a):r},T={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:n({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:n({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:n({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:n({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:n({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},j={ordinalNumber:r({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:a({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:a({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:a({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:a({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:a({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},k={SQL:"yyyy-MM-dd","SQL+T":"yyyy-MM-dd HH:mm:ss",IT:"dd/MM/yyyy","IT+T":"dd/MM/yyyy HH:mm:ss",IT_FULL:"dd MMMM yyyy","IT_FULL+T":"dd MMMM yyyy HH:mm:ss"},C={gennaio:"january",febbraio:"february",marzo:"march",aprile:"april",maggio:"may",giugno:"june",luglio:"july",agosto:"august",settembre:"september",ottobre:"october",novembre:"november",dicembre:"december"},A={enero:"january",febrero:"february",marzo:"march",abril:"april",mayo:"may",junio:"june",julio:"july",agosto:"august",septiembre:"september",octubre:"october",noviembre:"november",diciembre:"december"},O={en:"Invalid date",es:"Fecha invalida",it:"Data non valida"},Y={en:h,es:w,it:{code:"it",formatDistance:P,formatLong:D,formatRelative:S,localize:T,match:j,options:{weekStartsOn:1,firstWeekContainsDate:4}}},E={years:0,months:1,days:2,hours:3,minutes:4,seconds:5,milliseconds:6},F=["now","NOW","yesterday","YESTERDAY","tomorrow","TOMORROW"],N=["SQL","SQL+T","IT","IT+T","IT_FULL","IT_FULL+T"],X=["HH:mm:ss","HH:mm"],I=[{format:"yyyy-MM-dd",pattern:/\d{4}-\d{2}-\d{2}/},{format:"dd/MM/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"dd/MM/yy",pattern:/\d{2}\/\d{2}\/\d{2}/},{format:"dd-MM-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"dd-MM-yy",pattern:/\d{2}-\d{2}-\d{2}/},{format:"MM/dd/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"MM-dd-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"yyyy/MM/dd",pattern:/\d{4}\/\d{2}\/\d{2}/},{format:"dd MMMM yyyy",pattern:/\d{2} [a-zA-Z]+ \d{4}/},{format:"dd MMM yyyy",pattern:/\d{2} [a-zA-Z]{3} \d{4}/},{format:"MMMM yyyy",pattern:/[a-zA-Z]+ \d{4}/},{format:"EEEE dd/MM",pattern:/[a-zA-Z]+ \d{2}\/\d{2}/},{format:"EEE dd/MM",pattern:/[a-zA-Z]{3} \d{2}\/\d{2}/}],L=[{format:"yyyy-MM-dd HH:mm:ss",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"yyyy-MM-dd HH:mm",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/},{format:"dd/MM/yy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yy HH:mm",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}/},{format:"dd-MM-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd-MM-yy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"MM/dd/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"MM-dd-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"yyyy/MM/dd HH:mm:ss",pattern:/\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd MMMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/},{format:"dd MMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2}/},{format:"MMMM yyyy HH:mm:ss",pattern:/[a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/}],q=new RegExp(Object.keys(C).join("|"),"g"),R=new RegExp(Object.keys(A).join("|"),"g");function U(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var V=["en","es","it"],J=function(t){for(var n=function(t){return t.split(" ").reverse().some((function(t){return X.some((function(n){return e.isMatch(t,n)}))}))}(t)?L:I,a=0;a<n.length;a++)if(e.isMatch(t,n[a].format,{locale:h})&&n[a].pattern.test(t))return n[a].format;return null},Q=function(t){var n;if("string"==typeof t&&(t=function(e){return(e=e.toLowerCase()).match(q)&&(e=e.replace(q,(function(e){return e in C?C[e]:e}))),e.match(R)&&(e=e.replace(R,(function(e){return e in A?A[e]:e}))),e.trim()}(t)),!function(e){return null!=e}(t)||!t)return new Date;if(function(e){return"number"==typeof e}(t)||t instanceof Date)return new Date(t);if(n=t,F.includes(n))return function(e){var t=new Date;switch(e){case"yesterday":case"YESTERDAY":return t.setDate(t.getDate()-1),t;case"tomorrow":case"TOMORROW":return t.setDate(t.getDate()+1),t;default:return new Date}}(t);var a=J(t);return a?e.parse(t,a,new Date,{locale:h}):new Date("michi")},Z=function(e){return e instanceof Date||(e=Q(e)),e instanceof Date&&!isNaN(e.getTime())},B=function(e,t){var n=E[t],a=[e.getFullYear(),n>0?e.getMonth():0,n>1?e.getDate():1,n>2?e.getHours():0,n>3?e.getMinutes():0,n>4?e.getSeconds():0,n>5?e.getMilliseconds():0];return new(Date.bind.apply(Date,U([void 0],a,!1)))},G=function(e,t,n){var a=Q(e),r=Q(t);return Z(a)&&Z(r)&&n&&(a=B(a,n),r=B(r,n)),[a,r]},_=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];return!(!Z(o)||!Z(i))&&e.isAfter(o,i)},K=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];return!(!Z(o)||!Z(i))&&e.isBefore(o,i)},$=(new Date).getFullYear();exports.add=function(t,n,a){var r=Q(t);if(!Z(r))return r;switch(a){case"years":return e.addYears(r,n);case"months":return e.addMonths(r,n);case"days":return e.addDays(r,n);case"hours":return e.addHours(r,n);case"minutes":return e.addMinutes(r,n);case"seconds":return e.addSeconds(r,n);default:return e.addMilliseconds(r,n)}},exports.compare=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];return e.isEqual(o,i)?0:e.isBefore(o,i)?-1:1},exports.currentYear=$,exports.diff=function(t,n,a){var r=G(t,n,a),o=r[0],i=r[1];if(!Z(o)||!Z(i))return 0;switch(a){case"years":return e.differenceInYears(o,i);case"months":return e.differenceInMonths(o,i);case"days":return e.differenceInDays(o,i);case"hours":return e.differenceInHours(o,i);case"minutes":return e.differenceInMinutes(o,i);case"seconds":return e.differenceInSeconds(o,i);default:return e.differenceInMilliseconds(o,i)}},exports.endOfDay=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfDay(n):n},exports.endOfMonth=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfMonth(n):n},exports.endOfWeek=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfWeek(n):n},exports.endOfYear=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.endOfYear(n):n},exports.findFormat=J,exports.format=function(t,n,a){void 0===a&&(a="it");var r,o=Q(t);return Z(o)?(r=n,N.includes(r)&&(n=k[n]),e.format(o,n,{locale:Y[a]})):O[a]},exports.getDay=function(e){var t=Q(e);return Z(t)?t.getDate():null},exports.getDaysInMonth=function(t,n){return n||(n=(new Date).getFullYear()),n<0||t<0||t>11?null:e.getDaysInMonth(new Date(n,t))},exports.getHours=function(e){var t=Q(e);return Z(t)?t.getHours():null},exports.getMinutes=function(e){var t=Q(e);return Z(t)?t.getMinutes():null},exports.getMonth=function(e){var t=Q(e);return Z(t)?t.getMonth():null},exports.getSeconds=function(e){var t=Q(e);return Z(t)?t.getSeconds():null},exports.getYear=function(e){var t=Q(e);return Z(t)?t.getFullYear():null},exports.isAfter=_,exports.isBefore=K,exports.isFuture=function(e,t){return void 0===t&&(t="days"),_(e,"now",t)},exports.isPast=function(e,t){return void 0===t&&(t="days"),K(e,"now",t)},exports.isSupportedFormat=function(e){return U(U(U([],I,!0),L,!0),X,!0).includes(e)},exports.isSupportedLocale=function(e){return V.includes(e)},exports.isToday=function(e){var t=Q(e);if(!Z(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()},exports.isTomorrow=function(e){var t=Q(e);if(!Z(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()-1},exports.isValid=Z,exports.isYesterday=function(e){var t=Q(e);if(!Z(t))return!1;var n=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()+1},exports.parse=Q,exports.startOfDay=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfDay(n):n},exports.startOfMonth=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfMonth(n):n},exports.startOfWeek=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfWeek(n):n},exports.startOfYear=function(t){var n=Q(null!=t?t:"now");return Z(n)?e.startOfYear(n):n},exports.subtract=function(t,n,a){var r=Q(t);if(!Z(r))return r;switch(a){case"years":return e.subYears(r,n);case"months":return e.subMonths(r,n);case"days":return e.subDays(r,n);case"hours":return e.subHours(r,n);case"minutes":return e.subMinutes(r,n);case"seconds":return e.subSeconds(r,n);default:return e.subMilliseconds(r,n)}},exports.unix=function(e){var t=Q(e);return Z(t)?t.getTime():null};
//# sourceMappingURL=index.js.map
{
"name": "@fattureincloud/madbit-js-dates",
"version": "0.1.0",
"version": "0.2.0",
"description": "MadBit javascript library for manipulating and displaying dates",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

<img src='https://fattureincloud-resources.s3.eu-west-1.amazonaws.com/images/js-date-cover.svg' />
# MADBIT JS DATES #
[![Version badge](https://img.shields.io/badge/version-0.0.1-brightgreen)](https://shields.io/)&nbsp;&nbsp;&nbsp;[![License badge](https://img.shields.io/badge/license-MIT-blue)](https://shields.io/)
[![Version badge](https://img.shields.io/badge/version-0.2.0-brightgreen)](https://shields.io/)&nbsp;&nbsp;&nbsp;[![License badge](https://img.shields.io/badge/license-MIT-blue)](https://shields.io/)

@@ -6,0 +6,0 @@ <br />

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc