@opfr/utils-lang 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.d.ts +2 -3
- package/dist/common.d.ts +0 -1
- package/dist/date.d.ts +0 -1
- package/dist/duration.d.ts +0 -1
- package/dist/function.d.ts +0 -1
- package/dist/generics.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +160 -2734
- package/dist/index.umd.cjs +1 -0
- package/dist/locales/fr.d.ts +0 -1
- package/dist/number.d.ts +0 -1
- package/dist/object.d.ts +0 -1
- package/dist/string.d.ts +1 -1
- package/package.json +6 -5
- package/dist/array.d.ts.map +0 -1
- package/dist/array.js +0 -84
- package/dist/array.js.map +0 -1
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js +0 -14
- package/dist/common.js.map +0 -1
- package/dist/date.d.ts.map +0 -1
- package/dist/date.js +0 -63
- package/dist/date.js.map +0 -1
- package/dist/duration.d.ts.map +0 -1
- package/dist/duration.js +0 -34
- package/dist/duration.js.map +0 -1
- package/dist/function.d.ts.map +0 -1
- package/dist/function.js +0 -4
- package/dist/function.js.map +0 -1
- package/dist/generics.d.ts.map +0 -1
- package/dist/generics.js +0 -2
- package/dist/generics.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -9
- package/dist/index.js.map +0 -1
- package/dist/index.umd.js +0 -10
- package/dist/locales/fr.d.ts.map +0 -1
- package/dist/locales/fr.js +0 -85
- package/dist/locales/fr.js.map +0 -1
- package/dist/number.d.ts.map +0 -1
- package/dist/number.js +0 -23
- package/dist/number.js.map +0 -1
- package/dist/object.d.ts.map +0 -1
- package/dist/object.js +0 -25
- package/dist/object.js.map +0 -1
- package/dist/string.d.ts.map +0 -1
- package/dist/string.js +0 -62
- package/dist/string.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(i,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("moment")):typeof define=="function"&&define.amd?define(["exports","moment"],o):(i=typeof globalThis<"u"?globalThis:i||self,o(i.utils={},i.moment))})(this,function(i,o){"use strict";const S=e=>new Intl.NumberFormat("de-DE").format(e),h=(e,t,n=Math.random)=>Math.floor(n()*(t-e)+e),p=e=>{let t=e;const n=2147483648,r=1103515245,s=12345;return()=>(t=(r*t+s)%n,t/(n-1))},T=(e,t,n)=>Math.max(t,Math.min(e,n)),I=e=>typeof e=="number",Y=(e,t)=>e.reduce((n,r,s)=>{const a=Math.floor(s/t);return(n[a]||(n[a]=[])).push(r),n},[]),w=(e,t)=>e.reduce((n,r)=>((n[t(r)]=n[t(r)]||[]).push(r),n),{}),A=(e,t)=>e.reduce((n,r)=>n.find(([s])=>s===t(r))?n.map(([s,a])=>[s,s===t(r)?a+1:a]):[...n,[t(r),1]],[]),L=(e,t)=>[...e].sort((n,r)=>t(n)<t(r)?-1:t(n)>t(r)?1:0),O=(e,t,n=r=>r)=>e.filter(r=>t.some(s=>n(s)===n(r))),C=(e,t,n=r=>r)=>e.filter(r=>!t.some(s=>n(s)===n(r))),E=(e,t)=>[...new Set(e.map(n=>t(n)))],W=(e,t)=>e.filter((n,r,s)=>r===s.findIndex(a=>t(a)===t(n))),$=e=>{for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e},P=e=>e.filter(t=>t!=null),B=(e,t,n)=>[...e,...l(t,n)],H=(e,t,n)=>[...l(t,n),...e],N=(e,t,n)=>[...e,...g(t,n)],l=(e,t)=>t?[e]:[],g=(e,t)=>t?e:[],M=e=>e[h(0,e.length)],F=(e,t)=>Array.from({length:t}).map(()=>M(e)).reduce((n,r)=>({...n,[r]:(n[r]??0)+1}),{}),R=({start:e=0,stop:t,step:n=1})=>{if(n===0)throw new RangeError("step cannot be equal to 0");if(n>0&&e>=t||n<0&&e<=t)return[];const s=[];for(let a=e;n>0?a<t:a>t;a+=n)s.push(a);return s},z=e=>Object.fromEntries(e),D=" ",_=" ",q=(e,t="")=>e.split(t).join(D),k=(e,t="")=>e.split(t).join(_),U=(e,t)=>e.length>t?e.slice(0,t-3)+"...":e,j=e=>e&&e[0].toUpperCase()+e.slice(1),d=e=>e.split(" ").map(j).join(" "),G=e=>/^\d+$/.test(e),Z=e=>e!==Math.round(e)||e<1||e===1/0||e===-1/0?null:e===1?"1er":`${e}ème`,J=e=>e.trim().replace(/\s+/gi," "),K=e=>{const t=e.split(" "),r=(s=>{let a=1/0;for(let u=0;u<s.length;u++){const c=Math.abs(s.slice(0,u+1).join(" ").length-s.slice(u+1).join(" ").length);if(c<=a)a=c;else return u-1}return a})(t);return t.length===1?[t[0]]:[t.slice(0,r+1),t.slice(r+1)].map(s=>s.join(" "))},y=e=>typeof e=="string",v=e=>{const t=e.replace(/[^a-zA-Z0-9]+(.)/g,(n,r)=>r.toUpperCase());return`${t.charAt(0).toLowerCase()}${t.slice(1)}`},V=e=>{const t=v(e);return`${t.charAt(0).toUpperCase()}${t.slice(1)}`},Q=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9]+/g,"-").toLowerCase().replace(/^-+|-+$/g,""),X=e=>e!=null,x=e=>y(e)?/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")):!1,ee=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,te=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,b=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,m=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],ne={months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:b,monthsShortRegex:b,monthsStrictRegex:ee,monthsShortStrictRegex:te,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};o.locale("fr",ne);const re=e=>new Date(e).toString()!=="Invalid Date",ie=(e,t)=>Math.abs(Math.ceil((t.getTime()-e.getTime())/(1e3*60*60*24))),se=e=>d(o(e).format("DD MMMM YYYY")),ae=e=>d(o(e).format("dddd DD MMMM YYYY")),oe=(e,t,n=!0)=>(n?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ue=()=>o().locale("fr").subtract(1,"days").toDate(),ce=e=>new Date>e,le=(e=new Date,t=1)=>{const n=t*60*1e3;return new Date(Math.round(e.getTime()/n)*n)},de=e=>{const t=[],n=o.duration(e);if(!(!n||n.toISOString()==="P0D")){if(n.years()>=1){const r=Math.floor(n.years());t.push(r+" "+(r>1?"années":"année"))}if(n.months()>=1){const r=Math.floor(n.months());t.push(r+" mois")}if(n.days()>=1){const r=Math.floor(n.days());t.push(r+" "+(r>1?"jours":"jour"))}if(n.hours()>=1){const r=Math.floor(n.hours());t.push(r+" "+(r>1?"heures":"heure"))}if(n.minutes()>=1){const r=Math.floor(n.minutes());t.push(r+" "+(r>1?"minutes":"minute"))}if(n.seconds()>=1){const r=Math.floor(n.seconds());t.push(r+" "+(r>1?"secondes":"seconde"))}return t.join(", ")}},f=/^([1-9][0-9]?)([hmd])$/i,me=e=>!!e&&f.test(e),fe=e=>{const t=f.exec(e);if(!t)return null;const[,n,r]=t,s=parseInt(n,10),a=1e3*60;if(r==="m")return a*s;if(r==="h")return a*60*s;if(r==="d")return a*60*24*s},he=e=>{const t=f.exec(e);if(!t)return null;const[,n,r]=t,s=parseInt(n,10);if(r==="m")return`${s} minute${s>1?"s":""}`;if(r==="h")return`${s} heure${s>1?"s":""}`;if(r==="d")return`${s} jour${s>1?"s":""}`},ge=e=>typeof e=="function",Me=(e,t,n)=>{const r={...e},s=Object.entries(e);for(const[a,u]of s){const c=t[a];c?r[a]=n(u,c):r[a]=u}return r},De=e=>e instanceof Object,_e=(e,t)=>t.reduce((n,r)=>({...n,[r]:e[r]}),{}),je=e=>Object.entries(e);i.TIGHT_SPACE=D,i.WIDE_SPACE=_,i.arrayToRecord=z,i.breakWords=K,i.camelcase=v,i.capitalize=j,i.capitalizeAllWords=d,i.clamp=T,i.dateDiff=ie,i.durationToMs=fe,i.ellipsis=U,i.exclude=C,i.fillWithTightSpaces=q,i.fillWithWideSpaces=k,i.filterKeys=_e,i.filterNullAndUndefined=P,i.formatDate=se,i.formatDateWithDay=ae,i.formatDuration=he,i.formatNumber=S,i.groupBy=w,i.groupByOccurrence=A,i.hasExpire=ce,i.includeArrayIf=N,i.includeBeginIf=H,i.includeIf=B,i.insertArrayIf=g,i.insertIf=l,i.isDefined=X,i.isDuration=me,i.isFunction=ge,i.isJSON=x,i.isNumber=I,i.isObject=De,i.isPositiveInteger=G,i.isString=y,i.isValidDate=re,i.kebabCase=Q,i.mergeObjects=Me,i.mutuallyInclusive=O,i.numberToOrdinal=Z,i.paginate=Y,i.pascalCase=V,i.pickFrom=M,i.pickFromNth=F,i.precise=de,i.randomBetween=h,i.range=R,i.recordToArray=je,i.roundDate=le,i.sameDay=oe,i.seededRandom=p,i.shuffle=$,i.sortBy=L,i.trim=J,i.unique=E,i.uniquePreserve=W,i.yesterday=ue,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
package/dist/locales/fr.d.ts
CHANGED
package/dist/number.d.ts
CHANGED
|
@@ -3,4 +3,3 @@ export declare const randomBetween: <T extends number = number>(min: number, max
|
|
|
3
3
|
export declare const seededRandom: (seed: number) => () => number;
|
|
4
4
|
export declare const clamp: (number: number, min: number, max: number) => number;
|
|
5
5
|
export declare const isNumber: (number: unknown) => number is number;
|
|
6
|
-
//# sourceMappingURL=number.d.ts.map
|
package/dist/object.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export declare const mergeObjects: <TKey extends string, TValue>(obj1: { [key in
|
|
|
2
2
|
export declare const isObject: (obj: unknown) => obj is Object;
|
|
3
3
|
export declare const filterKeys: <T, K extends keyof T>(data: T, keys: K[]) => Pick<T, K>;
|
|
4
4
|
export declare const recordToArray: <TKey extends string, TValue>(record: Partial<Record<TKey, TValue>>) => [TKey, TValue][];
|
|
5
|
-
//# sourceMappingURL=object.d.ts.map
|
package/dist/string.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export declare const breakWords: (str: string) => string[];
|
|
|
12
12
|
export declare const isString: (str: unknown) => str is string;
|
|
13
13
|
export declare const camelcase: (str: string) => string;
|
|
14
14
|
export declare const pascalCase: (str: string) => string;
|
|
15
|
-
|
|
15
|
+
export declare const kebabCase: (str: string) => string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opfr/utils-lang",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OPFR utils-lang",
|
|
6
6
|
"author": "Matthieu VEIGA",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"prepublish": "npm run build",
|
|
9
|
-
"build": " vite build && tsc",
|
|
10
|
+
"build": " vite build && tsc -b",
|
|
10
11
|
"test": "vitest",
|
|
11
12
|
"test:ci": "vitest run",
|
|
12
13
|
"coverage": "vitest run --coverage"
|
|
@@ -17,14 +18,14 @@
|
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"vitest": "2.0.3"
|
|
19
20
|
},
|
|
20
|
-
"main": "dist/index.umd.
|
|
21
|
+
"main": "dist/index.umd.cjs",
|
|
21
22
|
"module": "dist/index.es.js",
|
|
22
23
|
"types": "./dist/index.d.ts",
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
26
|
"types": "./dist/index.d.ts",
|
|
26
27
|
"import": "./dist/index.es.js",
|
|
27
|
-
"require": "./dist/index.umd.
|
|
28
|
+
"require": "./dist/index.umd.cjs"
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
"files": [
|
|
@@ -34,5 +35,5 @@
|
|
|
34
35
|
"node_modules",
|
|
35
36
|
"dist"
|
|
36
37
|
],
|
|
37
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "359429d99bd44b596f1f3fbf7ae5845459c502d5"
|
|
38
39
|
}
|
package/dist/array.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../src/array.ts"],"names":[],"mappings":"AAEA,eAAO,MA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;AAE1D,eAAO,MAAM,QAAQ,eAAgB,CAAC,WAAW,OAAO,KAAG,CAAC,EAClC,CAAC;AAE3B,eAAO,MAAM,aAAa,gBAAiB,CAAC,EAAE,WAAW,OAAO,KAAG,CAAC,EAC3C,CAAC;AAE1B,eAAO,MAAM,QAAQ,aAAc,CAAC,EAAE,KAAG,CACF,CAAC;AAExC,eAAO,MAAM,WAAW,qCACf,CAAC,EAAE,KACP,MAAM,KACR,QAAQ,OAAO,CAAC,EAAE,MAAM,CAAC,CAQvB,CAAC;AAEN,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,KAAK,0BAAmC,WAAW,KAAG,MAAM,EAexE,CAAC;AAEF,eAAO,MAAM,aAAa,gDACjB,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,KACtB,OAAO,IAAI,EAAE,MAAM,CAAyD,CAAC"}
|
package/dist/array.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { randomBetween } from './number';
|
|
2
|
-
export const paginate = (array, pageSize) => {
|
|
3
|
-
return array.reduce((acc, val, i) => {
|
|
4
|
-
const idx = Math.floor(i / pageSize);
|
|
5
|
-
const page = acc[idx] || (acc[idx] = []);
|
|
6
|
-
page.push(val);
|
|
7
|
-
return acc;
|
|
8
|
-
}, []);
|
|
9
|
-
};
|
|
10
|
-
export const groupBy = (array, key) => {
|
|
11
|
-
return array.reduce((acc, v) => {
|
|
12
|
-
(acc[key(v)] = acc[key(v)] || []).push(v);
|
|
13
|
-
return acc;
|
|
14
|
-
}, {});
|
|
15
|
-
};
|
|
16
|
-
export const groupByOccurrence = (array, key) => {
|
|
17
|
-
return array.reduce((acc, v) => {
|
|
18
|
-
if (acc.find(([item]) => item === key(v))) {
|
|
19
|
-
return acc.map(([item, quantity]) => [
|
|
20
|
-
item,
|
|
21
|
-
item === key(v) ? quantity + 1 : quantity,
|
|
22
|
-
]);
|
|
23
|
-
}
|
|
24
|
-
return [...acc, [key(v), 1]];
|
|
25
|
-
}, []);
|
|
26
|
-
};
|
|
27
|
-
export const sortBy = (array, key) => {
|
|
28
|
-
return [...array].sort((a, b) => {
|
|
29
|
-
if (key(a) < key(b))
|
|
30
|
-
return -1;
|
|
31
|
-
if (key(a) > key(b))
|
|
32
|
-
return 1;
|
|
33
|
-
return 0;
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
export const mutuallyInclusive = (array1, array2, key = i => i) => {
|
|
37
|
-
return array1.filter(e => array2.some(f => key(f) === key(e)));
|
|
38
|
-
};
|
|
39
|
-
export const exclude = (array, exclude, key = i => i) => {
|
|
40
|
-
return array.filter(e => !exclude.some(f => key(f) === key(e)));
|
|
41
|
-
};
|
|
42
|
-
export const unique = (array, key) => {
|
|
43
|
-
return [...new Set(array.map(e => key(e)))];
|
|
44
|
-
};
|
|
45
|
-
export const uniquePreserve = (array, key) => {
|
|
46
|
-
return array.filter((value, index, self) => index === self.findIndex(t => key(t) === key(value)));
|
|
47
|
-
};
|
|
48
|
-
export const shuffle = (array) => {
|
|
49
|
-
for (let i = array.length - 1; i > 0; i--) {
|
|
50
|
-
const j = Math.floor(Math.random() * (i + 1));
|
|
51
|
-
[array[i], array[j]] = [array[j], array[i]];
|
|
52
|
-
}
|
|
53
|
-
return array;
|
|
54
|
-
};
|
|
55
|
-
export const filterNullAndUndefined = (array) => array.filter((e) => e !== null && e !== undefined);
|
|
56
|
-
export const includeIf = (array, element, include) => [
|
|
57
|
-
...array,
|
|
58
|
-
...insertIf(element, include),
|
|
59
|
-
];
|
|
60
|
-
export const includeBeginIf = (array, element, include) => [...insertIf(element, include), ...array];
|
|
61
|
-
export const includeArrayIf = (array, elements, include) => [...array, ...insertArrayIf(elements, include)];
|
|
62
|
-
export const insertIf = (element, include) => include ? [element] : [];
|
|
63
|
-
export const insertArrayIf = (elements, include) => include ? elements : [];
|
|
64
|
-
export const pickFrom = (array) => array[randomBetween(0, array.length)];
|
|
65
|
-
export const pickFromNth = (array, n) => Array.from({
|
|
66
|
-
length: n,
|
|
67
|
-
})
|
|
68
|
-
.map(() => pickFrom(array))
|
|
69
|
-
.reduce((acc, e) => ({ ...acc, [e]: (acc[e] ?? 0) + 1 }), {});
|
|
70
|
-
export const range = ({ start = 0, stop, step = 1 }) => {
|
|
71
|
-
if (step === 0) {
|
|
72
|
-
throw new RangeError('step cannot be equal to 0');
|
|
73
|
-
}
|
|
74
|
-
const isEmpty = (step > 0 && start >= stop) || (step < 0 && start <= stop);
|
|
75
|
-
if (isEmpty)
|
|
76
|
-
return [];
|
|
77
|
-
const result = [];
|
|
78
|
-
for (let i = start; step > 0 ? i < stop : i > stop; i += step) {
|
|
79
|
-
result.push(i);
|
|
80
|
-
}
|
|
81
|
-
return result;
|
|
82
|
-
};
|
|
83
|
-
export const arrayToRecord = (array) => Object.fromEntries(array);
|
|
84
|
-
//# sourceMappingURL=array.js.map
|
package/dist/array.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"","sources":["../src/array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAI,KAAU,EAAE,QAAgB,EAAS,EAAE;IACjE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE;QAClC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC;QACrC,MAAM,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEf,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,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,CAAC;IAED,MAAM,OAAO,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC;IAE3E,IAAI,OAAO;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,KAAuB,EACD,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAA4B,CAAC"}
|
package/dist/common.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,aAAc,CAAC,4BAEpC,CAAC;AAEF,eAAO,MAAM,MAAM,SAAU,OAAO,KAAG,OAatC,CAAC"}
|
package/dist/common.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isString } from './string';
|
|
2
|
-
export const isDefined = (value) => {
|
|
3
|
-
return value !== undefined && value !== null;
|
|
4
|
-
};
|
|
5
|
-
export const isJSON = (json) => {
|
|
6
|
-
if (!isString(json)) {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
return /^[\],:{}\s]*$/.test(json
|
|
10
|
-
.replace(/\\["\\\/bfnrtu]/g, '@')
|
|
11
|
-
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
|
|
12
|
-
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''));
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=common.js.map
|
package/dist/common.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAI,KAAQ,EAA2B,EAAE;IAChE,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAa,EAAW,EAAE;IAC/C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,eAAe,CAAC,IAAI,CACzB,IAAI;SACD,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC;SAChC,OAAO,CACN,kEAAkE,EAClE,GAAG,CACJ;SACA,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC,CACvC,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/date.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../src/date.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,SAAU,IAAI,GAAG,MAAM,YAE9C,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,IAAI,SAAS,IAAI,WAIhD,CAAC;AACF,eAAO,MAAM,UAAU,SAAU,IAAI,WAEpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,IAAI,WAE3C,CAAC;AACF,eAAO,MAAM,OAAO,OAAQ,IAAI,MAAM,IAAI,gBAAe,OAAO,YAM/D,CAAC;AAEF,eAAO,MAAM,SAAS,YAErB,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,IAAI,YAEnC,CAAC;AAEF,eAAO,MAAM,SAAS,yCAGrB,CAAC;AAEF,eAAO,MAAM,OAAO,cAAe,MAAM,uBAqCxC,CAAC"}
|
package/dist/date.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
import fr from './locales/fr';
|
|
3
|
-
import { capitalizeAllWords } from './string';
|
|
4
|
-
moment.locale('fr', fr);
|
|
5
|
-
export const isValidDate = (date) => {
|
|
6
|
-
return new Date(date).toString() !== 'Invalid Date';
|
|
7
|
-
};
|
|
8
|
-
export const dateDiff = (date1, date2) => {
|
|
9
|
-
return Math.abs(Math.ceil((date2.getTime() - date1.getTime()) / (1000 * 60 * 60 * 24)));
|
|
10
|
-
};
|
|
11
|
-
export const formatDate = (date) => {
|
|
12
|
-
return capitalizeAllWords(moment(date).format('DD MMMM YYYY'));
|
|
13
|
-
};
|
|
14
|
-
export const formatDateWithDay = (date) => {
|
|
15
|
-
return capitalizeAllWords(moment(date).format('dddd DD MMMM YYYY'));
|
|
16
|
-
};
|
|
17
|
-
export const sameDay = (d1, d2, compareYear = true) => {
|
|
18
|
-
return ((compareYear ? d1.getFullYear() === d2.getFullYear() : true) &&
|
|
19
|
-
d1.getMonth() === d2.getMonth() &&
|
|
20
|
-
d1.getDate() === d2.getDate());
|
|
21
|
-
};
|
|
22
|
-
export const yesterday = () => {
|
|
23
|
-
return moment().locale('fr').subtract(1, 'days').toDate();
|
|
24
|
-
};
|
|
25
|
-
export const hasExpire = (date) => {
|
|
26
|
-
return new Date() > date;
|
|
27
|
-
};
|
|
28
|
-
export const roundDate = (date = new Date(), minutes = 1) => {
|
|
29
|
-
const ms = minutes * 60 * 1000;
|
|
30
|
-
return new Date(Math.round(date.getTime() / ms) * ms);
|
|
31
|
-
};
|
|
32
|
-
export const precise = (timestamp) => {
|
|
33
|
-
const parts = [];
|
|
34
|
-
const duration = moment.duration(timestamp);
|
|
35
|
-
if (!duration || duration.toISOString() === 'P0D')
|
|
36
|
-
return;
|
|
37
|
-
if (duration.years() >= 1) {
|
|
38
|
-
const years = Math.floor(duration.years());
|
|
39
|
-
parts.push(years + ' ' + (years > 1 ? 'années' : 'année'));
|
|
40
|
-
}
|
|
41
|
-
if (duration.months() >= 1) {
|
|
42
|
-
const months = Math.floor(duration.months());
|
|
43
|
-
parts.push(months + ' mois');
|
|
44
|
-
}
|
|
45
|
-
if (duration.days() >= 1) {
|
|
46
|
-
const days = Math.floor(duration.days());
|
|
47
|
-
parts.push(days + ' ' + (days > 1 ? 'jours' : 'jour'));
|
|
48
|
-
}
|
|
49
|
-
if (duration.hours() >= 1) {
|
|
50
|
-
const hours = Math.floor(duration.hours());
|
|
51
|
-
parts.push(hours + ' ' + (hours > 1 ? 'heures' : 'heure'));
|
|
52
|
-
}
|
|
53
|
-
if (duration.minutes() >= 1) {
|
|
54
|
-
const minutes = Math.floor(duration.minutes());
|
|
55
|
-
parts.push(minutes + ' ' + (minutes > 1 ? 'minutes' : 'minute'));
|
|
56
|
-
}
|
|
57
|
-
if (duration.seconds() >= 1) {
|
|
58
|
-
const seconds = Math.floor(duration.seconds());
|
|
59
|
-
parts.push(seconds + ' ' + (seconds > 1 ? 'secondes' : 'seconde'));
|
|
60
|
-
}
|
|
61
|
-
return parts.join(', ');
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=date.js.map
|
package/dist/date.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../src/date.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAmB,EAAE,EAAE;IACjD,OAAO,IAAI,I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AAC,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC"}
|
package/dist/duration.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../src/duration.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAS,MAAM,GAAG,IAAI,KAAG,OAE/C,CAAC;AAEF,eAAO,MAAM,YAAY,QAAS,MAAM,8BAavC,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,MAAM,8BAYzC,CAAC"}
|
package/dist/duration.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const REGEXP = /^([1-9][0-9]?)([hmd])$/i;
|
|
2
|
-
export const isDuration = (str) => {
|
|
3
|
-
return !!str && REGEXP.test(str);
|
|
4
|
-
};
|
|
5
|
-
export const durationToMs = (str) => {
|
|
6
|
-
const result = REGEXP.exec(str);
|
|
7
|
-
if (!result) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
const [, time, scale] = result;
|
|
11
|
-
const nb = parseInt(time, 10);
|
|
12
|
-
const min = 1000 * 60;
|
|
13
|
-
if (scale === 'm')
|
|
14
|
-
return min * nb;
|
|
15
|
-
if (scale === 'h')
|
|
16
|
-
return min * 60 * nb;
|
|
17
|
-
if (scale === 'd')
|
|
18
|
-
return min * 60 * 24 * nb;
|
|
19
|
-
};
|
|
20
|
-
export const formatDuration = (str) => {
|
|
21
|
-
const result = REGEXP.exec(str);
|
|
22
|
-
if (!result) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
const [, time, scale] = result;
|
|
26
|
-
const nb = parseInt(time, 10);
|
|
27
|
-
if (scale === 'm')
|
|
28
|
-
return `${nb} minute${nb > 1 ? 's' : ''}`;
|
|
29
|
-
if (scale === 'h')
|
|
30
|
-
return `${nb} heure${nb > 1 ? 's' : ''}`;
|
|
31
|
-
if (scale === 'd')
|
|
32
|
-
return `${nb} jour${nb > 1 ? 's' : ''}`;
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=duration.js.map
|
package/dist/duration.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"duration.js","sourceRoot":"","sources":["../src/duration.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,yBAAyB,CAAC;AAEzC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAkB,EAAW,EAAE;IACxD,OAAO,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE;IAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEhC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC;IAC/B,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IAEtB,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,GAAG,GAAG,EAAE,CAAC;IACnC,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,GAAG,GAAG,EAAE,GAAG,EAAE,CAAC;IACxC,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEhC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC;IAC/B,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAE9B,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAC7D,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAC5D,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,GAAG,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAC7D,CAAC,CAAC"}
|
package/dist/function.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../src/function.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,OAAQ,OAAO,mBAErC,CAAC"}
|
package/dist/function.js
DELETED
package/dist/function.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../src/function.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAW,EAAkB,EAAE;IACxD,OAAO,OAAO,EAAE,KAAK,UAAU,CAAC;AAClC,CAAC,CAAC"}
|
package/dist/generics.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generics.d.ts","sourceRoot":"","sources":["../src/generics.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CACzE,CAAC,EACD,CAAC,CACF,GAAG;KACD,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9B,CAAC"}
|
package/dist/generics.js
DELETED
package/dist/generics.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generics.js","sourceRoot":"","sources":["../src/generics.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,mBAAmB,YAAY,CAAC"}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
package/dist/index.umd.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
(function(f,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(f=typeof globalThis<"u"?globalThis:f||self,me(f.utils={}))})(this,function(f){"use strict";const me=e=>new Intl.NumberFormat("de-DE").format(e),Nt=(e,t,s=Math.random)=>Math.floor(s()*(t-e)+e),Ls=e=>{let t=e;const s=2147483648,r=1103515245,n=12345;return()=>(t=(r*t+n)%s,t/(s-1))},Cs=(e,t,s)=>Math.max(t,Math.min(e,s)),Us=e=>typeof e=="number",Es=(e,t)=>e.reduce((s,r,n)=>{const a=Math.floor(n/t);return(s[a]||(s[a]=[])).push(r),s},[]),Hs=(e,t)=>e.reduce((s,r)=>((s[t(r)]=s[t(r)]||[]).push(r),s),{}),As=(e,t)=>e.reduce((s,r)=>s.find(([n])=>n===t(r))?s.map(([n,a])=>[n,n===t(r)?a+1:a]):[...s,[t(r),1]],[]),js=(e,t)=>[...e].sort((s,r)=>t(s)<t(r)?-1:t(s)>t(r)?1:0),Vs=(e,t,s=r=>r)=>e.filter(r=>t.some(n=>s(n)===s(r))),Gs=(e,t,s=r=>r)=>e.filter(r=>!t.some(n=>s(n)===s(r))),$s=(e,t)=>[...new Set(e.map(s=>t(s)))],zs=(e,t)=>e.filter((s,r,n)=>r===n.findIndex(a=>t(a)===t(s))),Zs=e=>{for(let t=e.length-1;t>0;t--){const s=Math.floor(Math.random()*(t+1));[e[t],e[s]]=[e[s],e[t]]}return e},Bs=e=>e.filter(t=>t!=null),qs=(e,t,s)=>[...e,...Ze(t,s)],Js=(e,t,s)=>[...Ze(t,s),...e],Qs=(e,t,s)=>[...e,...Pt(t,s)],Ze=(e,t)=>t?[e]:[],Pt=(e,t)=>t?e:[],Rt=e=>e[Nt(0,e.length)],Ks=(e,t)=>Array.from({length:t}).map(()=>Rt(e)).reduce((s,r)=>({...s,[r]:(s[r]??0)+1}),{}),Xs=({start:e=0,stop:t,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&e>=t||s<0&&e<=t)return[];const n=[];for(let a=e;s>0?a<t:a>t;a+=s)n.push(a);return n},er=e=>Object.fromEntries(e),Ft=" ",xt=" ",tr=(e,t="")=>e.split(t).join(Ft),sr=(e,t="")=>e.split(t).join(xt),rr=(e,t)=>e.length>t?e.slice(0,t-3)+"...":e,It=e=>e&&e[0].toUpperCase()+e.slice(1),Be=e=>e.split(" ").map(It).join(" "),nr=e=>/^\d+$/.test(e),ar=e=>e!==Math.round(e)||e<1||e===1/0||e===-1/0?null:e===1?"1er":`${e}ème`,ir=e=>e.trim().replace(/\s+/gi," "),or=e=>{const t=e.split(" "),r=(n=>{let a=1/0;for(let i=0;i<n.length;i++){const u=Math.abs(n.slice(0,i+1).join(" ").length-n.slice(i+1).join(" ").length);if(u<=a)a=u;else return i-1}return a})(t);return t.length===1?[t[0]]:[t.slice(0,r+1),t.slice(r+1)].map(n=>n.join(" "))},Lt=e=>typeof e=="string",Ct=e=>{const t=e.replace(/[^a-zA-Z0-9]+(.)/g,(s,r)=>r.toUpperCase());return`${t.charAt(0).toLowerCase()}${t.slice(1)}`},lr=e=>{const t=Ct(e);return`${t.charAt(0).toUpperCase()}${t.slice(1)}`},ur=e=>e!=null,dr=e=>Lt(e)?/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")):!1;//! moment.js
|
|
2
|
-
//! version : 2.30.1
|
|
3
|
-
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
-
//! license : MIT
|
|
5
|
-
//! momentjs.com
|
|
6
|
-
var Ut;function l(){return Ut.apply(null,arguments)}function fr(e){Ut=e}function F(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function te(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qe(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(g(e,t))return!1;return!0}function b(e){return e===void 0}function A(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function _e(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Et(e,t){var s=[],r,n=e.length;for(r=0;r<n;++r)s.push(t(e[r],r));return s}function Q(e,t){for(var s in t)g(t,s)&&(e[s]=t[s]);return g(t,"toString")&&(e.toString=t.toString),g(t,"valueOf")&&(e.valueOf=t.valueOf),e}function C(e,t,s,r){return hs(e,t,s,r,!0).utc()}function hr(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return e._pf==null&&(e._pf=hr()),e._pf}var Je;Array.prototype.some?Je=Array.prototype.some:Je=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Qe(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=m(e),s=Je.call(t.parsedDateParts,function(n){return n!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Oe(e){var t=C(NaN);return e!=null?Q(m(t),e):m(t).userInvalidated=!0,t}var Ht=l.momentProperties=[],Ke=!1;function Xe(e,t){var s,r,n,a=Ht.length;if(b(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),b(t._i)||(e._i=t._i),b(t._f)||(e._f=t._f),b(t._l)||(e._l=t._l),b(t._strict)||(e._strict=t._strict),b(t._tzm)||(e._tzm=t._tzm),b(t._isUTC)||(e._isUTC=t._isUTC),b(t._offset)||(e._offset=t._offset),b(t._pf)||(e._pf=m(t)),b(t._locale)||(e._locale=t._locale),a>0)for(s=0;s<a;s++)r=Ht[s],n=t[r],b(n)||(e[r]=n);return e}function ye(e){Xe(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ke===!1&&(Ke=!0,l.updateOffset(this),Ke=!1)}function x(e){return e instanceof ye||e!=null&&e._isAMomentObject!=null}function At(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var s=!0;return Q(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),s){var r=[],n,a,i,u=arguments.length;for(a=0;a<u;a++){if(n="",typeof arguments[a]=="object"){n+=`
|
|
7
|
-
[`+a+"] ";for(i in arguments[0])g(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];r.push(n)}At(e+`
|
|
8
|
-
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
-
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var jt={};function Vt(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),jt[e]||(At(t),jt[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function cr(e){var t,s;for(s in e)g(e,s)&&(t=e[s],U(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function et(e,t){var s=Q({},e),r;for(r in t)g(t,r)&&(te(e[r])&&te(t[r])?(s[r]={},Q(s[r],e[r]),Q(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)g(e,r)&&!g(t,r)&&te(e[r])&&(s[r]=Q({},s[r]));return s}function tt(e){e!=null&&this.set(e)}var st;Object.keys?st=Object.keys:st=function(e){var t,s=[];for(t in e)g(e,t)&&s.push(t);return s};var mr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function _r(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return U(r)?r.call(t,s):r}function E(e,t,s){var r=""+Math.abs(e),n=t-r.length,a=e>=0;return(a?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var rt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Te=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nt={},ae={};function h(e,t,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),e&&(ae[e]=n),t&&(ae[t[0]]=function(){return E(n.apply(this,arguments),t[1],t[2])}),s&&(ae[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function yr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function wr(e){var t=e.match(rt),s,r;for(s=0,r=t.length;s<r;s++)ae[t[s]]?t[s]=ae[t[s]]:t[s]=yr(t[s]);return function(n){var a="",i;for(i=0;i<r;i++)a+=U(t[i])?t[i].call(n,e):t[i];return a}}function be(e,t){return e.isValid()?(t=Gt(t,e.localeData()),nt[t]=nt[t]||wr(t),nt[t](e)):e.localeData().invalidDate()}function Gt(e,t){var s=5;function r(n){return t.longDateFormat(n)||n}for(Te.lastIndex=0;s>=0&&Te.test(e);)e=e.replace(Te,r),Te.lastIndex=0,s-=1;return e}var gr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(rt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Dr="Invalid date";function Sr(){return this._invalidDate}var kr="%d",vr=/\d{1,2}/;function Yr(e){return this._ordinal.replace("%d",e)}var pr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Or(e,t,s,r){var n=this._relativeTime[s];return U(n)?n(e,t,s,r):n.replace(/%d/i,e)}function Tr(e,t){var s=this._relativeTime[e>0?"future":"past"];return U(s)?s(t):s.replace(/%s/i,t)}var $t={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(e){return typeof e=="string"?$t[e]||$t[e.toLowerCase()]:void 0}function at(e){var t={},s,r;for(r in e)g(e,r)&&(s=P(r),s&&(t[s]=e[r]));return t}var br={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Wr(e){var t=[],s;for(s in e)g(e,s)&&t.push({unit:s,priority:br[s]});return t.sort(function(r,n){return r.priority-n.priority}),t}var zt=/\d/,W=/\d\d/,Zt=/\d{3}/,it=/\d{4}/,We=/[+-]?\d{6}/,S=/\d\d?/,Bt=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,Ne=/\d{1,3}/,ot=/\d{1,4}/,Pe=/[+-]?\d{1,6}/,ie=/\d+/,Re=/[+-]?\d+/,Nr=/Z|[+-]\d\d:?\d\d/gi,Fe=/Z|[+-]\d\d(?::?\d\d)?/gi,Pr=/[+-]?\d+(\.\d{1,3})?/,we=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,lt=/^([1-9]\d|\d)/,xe;xe={};function d(e,t,s){xe[e]=U(t)?t:function(r,n){return r&&s?s:t}}function Rr(e,t){return g(xe,e)?xe[e](t._strict,t._locale):new RegExp(Fr(e))}function Fr(e){return j(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,n,a){return s||r||n||a}))}function j(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=R(t)),s}var ut={};function D(e,t){var s,r=t,n;for(typeof e=="string"&&(e=[e]),A(t)&&(r=function(a,i){i[t]=_(a)}),n=e.length,s=0;s<n;s++)ut[e[s]]=r}function ge(e,t){D(e,function(s,r,n,a){n._w=n._w||{},t(s,n._w,n,a)})}function xr(e,t,s){t!=null&&g(ut,e)&&ut[e](t,s._a,s,e)}function Ie(e){return e%4===0&&e%100!==0||e%400===0}var O=0,V=1,H=2,p=3,I=4,G=5,se=6,Ir=7,Lr=8;h("Y",0,0,function(){var e=this.year();return e<=9999?E(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),d("Y",Re),d("YY",S,W),d("YYYY",ot,it),d("YYYYY",Pe,We),d("YYYYYY",Pe,We),D(["YYYYY","YYYYYY"],O),D("YYYY",function(e,t){t[O]=e.length===2?l.parseTwoDigitYear(e):_(e)}),D("YY",function(e,t){t[O]=l.parseTwoDigitYear(e)}),D("Y",function(e,t){t[O]=parseInt(e,10)});function Me(e){return Ie(e)?366:365}l.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Jt=le("FullYear",!0);function Cr(){return Ie(this.year())}function le(e,t){return function(s){return s!=null?(Qt(this,e,s),l.updateOffset(this,t),this):De(this,e)}}function De(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Qt(e,t,s){var r,n,a,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(n?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(n?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(n?r.setUTCHours(s):r.setHours(s));case"Date":return void(n?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}a=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Ie(a)?28:u,n?r.setUTCFullYear(a,i,u):r.setFullYear(a,i,u)}}function Ur(e){return e=P(e),U(this[e])?this[e]():this}function Er(e,t){if(typeof e=="object"){e=at(e);var s=Wr(e),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](e[s[r].unit])}else if(e=P(e),U(this[e]))return this[e](t);return this}function Hr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Hr(t,12);return e+=(t-s)/12,s===1?Ie(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),d("M",S,oe),d("MM",S,W),d("MMM",function(e,t){return t.monthsShortRegex(e)}),d("MMMM",function(e,t){return t.monthsRegex(e)}),D(["M","MM"],function(e,t){t[V]=_(e)-1}),D(["MMM","MMMM"],function(e,t,s,r){var n=s._locale.monthsParse(e,r,s._strict);n!=null?t[V]=n:m(s).invalidMonth=e});var Ar="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Kt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Xt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jr=we,Vr=we;function Gr(e,t){return e?F(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Xt).test(t)?"format":"standalone"][e.month()]:F(this._months)?this._months:this._months.standalone}function $r(e,t){return e?F(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Xt.test(t)?"format":"standalone"][e.month()]:F(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zr(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=C([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return s?t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null):(n=Y.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:(n=Y.call(this._longMonthsParse,i),n!==-1?n:null)):(n=Y.call(this._longMonthsParse,i),n!==-1?n:(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null))}function Zr(e,t,s){var r,n,a;if(this._monthsParseExact)return zr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=C([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function es(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!A(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,dt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function ts(e){return e!=null?(es(this,e),l.updateOffset(this,!0),this):De(this,"Month")}function Br(){return dt(this.year(),this.month())}function qr(e){return this._monthsParseExact?(g(this,"_monthsRegex")||ss.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=jr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jr(e){return this._monthsParseExact?(g(this,"_monthsRegex")||ss.call(this),e?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=Vr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ss(){function e(c,y){return y.length-c.length}var t=[],s=[],r=[],n,a,i,u;for(n=0;n<12;n++)a=C([2e3,n]),i=j(this.monthsShort(a,"")),u=j(this.months(a,"")),t.push(i),s.push(u),r.push(u),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qr(e,t,s,r,n,a,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,n,a,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,n,a,i),u}function Se(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Le(e,t,s){var r=7+t-s,n=(7+Se(e,0,r).getUTCDay()-t)%7;return-n+r-1}function rs(e,t,s,r,n){var a=(7+s-r)%7,i=Le(e,r,n),u=1+7*(t-1)+a+i,c,y;return u<=0?(c=e-1,y=Me(c)+u):u>Me(e)?(c=e+1,y=u-Me(e)):(c=e,y=u),{year:c,dayOfYear:y}}function ke(e,t,s){var r=Le(e.year(),t,s),n=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+$(i,t,s)):n>$(e.year(),t,s)?(a=n-$(e.year(),t,s),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function $(e,t,s){var r=Le(e,t,s),n=Le(e+1,t,s);return(Me(e)-r+n)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",S,oe),d("ww",S,W),d("W",S,oe),d("WW",S,W),ge(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=_(e)});function Kr(e){return ke(e,this._week.dow,this._week.doy).week}var Xr={dow:0,doy:6};function en(){return this._week.dow}function tn(){return this._week.doy}function sn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function rn(e){var t=ke(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",S),d("e",S),d("E",S),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,s,r){var n=s._locale.weekdaysParse(e,r,s._strict);n!=null?t.d=n:m(s).invalidWeekday=e}),ge(["d","e","E"],function(e,t,s,r){t[r]=_(e)});function nn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function an(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}var on="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ns="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ln="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),un=we,dn=we,fn=we;function hn(e,t){var s=F(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ft(s,this._week.dow):e?s[e.day()]:s}function cn(e){return e===!0?ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function mn(e){return e===!0?ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function _n(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=C([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return s?t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1||(n=Y.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=Y.call(this._minWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function yn(e,t,s){var r,n,a;if(this._weekdaysParseExact)return _n.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=C([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function wn(e){if(!this.isValid())return e!=null?this:NaN;var t=De(this,"Day");return e!=null?(e=nn(e,this.localeData()),this.add(e-t,"d")):t}function gn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Mn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=an(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Dn(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ht.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=un),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Sn(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ht.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kn(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ht.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ht(){function e(T,J){return J.length-T.length}var t=[],s=[],r=[],n=[],a,i,u,c,y;for(a=0;a<7;a++)i=C([2e3,1]).day(a),u=j(this.weekdaysMin(i,"")),c=j(this.weekdaysShort(i,"")),y=j(this.weekdays(i,"")),t.push(u),s.push(c),r.push(y),n.push(u),n.push(c),n.push(y);t.sort(e),s.sort(e),r.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ct(){return this.hours()%12||12}function vn(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,ct),h("k",["kk",2],0,vn),h("hmm",0,0,function(){return""+ct.apply(this)+E(this.minutes(),2)}),h("hmmss",0,0,function(){return""+ct.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)});function as(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}as("a",!0),as("A",!1);function is(e,t){return t._meridiemParse}d("a",is),d("A",is),d("H",S,lt),d("h",S,oe),d("k",S,oe),d("HH",S,W),d("hh",S,W),d("kk",S,W),d("hmm",Bt),d("hmmss",qt),d("Hmm",Bt),d("Hmmss",qt),D(["H","HH"],p),D(["k","kk"],function(e,t,s){var r=_(e);t[p]=r===24?0:r}),D(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),D(["h","hh"],function(e,t,s){t[p]=_(e),m(s).bigHour=!0}),D("hmm",function(e,t,s){var r=e.length-2;t[p]=_(e.substr(0,r)),t[I]=_(e.substr(r)),m(s).bigHour=!0}),D("hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[p]=_(e.substr(0,r)),t[I]=_(e.substr(r,2)),t[G]=_(e.substr(n)),m(s).bigHour=!0}),D("Hmm",function(e,t,s){var r=e.length-2;t[p]=_(e.substr(0,r)),t[I]=_(e.substr(r))}),D("Hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[p]=_(e.substr(0,r)),t[I]=_(e.substr(r,2)),t[G]=_(e.substr(n))});function Yn(e){return(e+"").toLowerCase().charAt(0)==="p"}var pn=/[ap]\.?m?\.?/i,On=le("Hours",!0);function Tn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var os={calendar:mr,longDateFormat:gr,invalidDate:Dr,ordinal:kr,dayOfMonthOrdinalParse:vr,relativeTime:pr,months:Ar,monthsShort:Kt,week:Xr,weekdays:on,weekdaysMin:ln,weekdaysShort:ns,meridiemParse:pn},v={},ve={},Ye;function bn(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function ls(e){return e&&e.toLowerCase().replace("_","-")}function Wn(e){for(var t=0,s,r,n,a;t<e.length;){for(a=ls(e[t]).split("-"),s=a.length,r=ls(e[t+1]),r=r?r.split("-"):null;s>0;){if(n=Ce(a.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&bn(a,r)>=s-1)break;s--}t++}return Ye}function Nn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ce(e){var t=null,s;if(v[e]===void 0&&typeof module<"u"&&module&&module.exports&&Nn(e))try{t=Ye._abbr,s=require,s("./locale/"+e),K(t)}catch{v[e]=null}return v[e]}function K(e,t){var s;return e&&(b(t)?s=z(e):s=mt(e,t),s?Ye=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function mt(e,t){if(t!==null){var s,r=os;if(t.abbr=e,v[e]!=null)Vt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=v[e]._config;else if(t.parentLocale!=null)if(v[t.parentLocale]!=null)r=v[t.parentLocale]._config;else if(s=Ce(t.parentLocale),s!=null)r=s._config;else return ve[t.parentLocale]||(ve[t.parentLocale]=[]),ve[t.parentLocale].push({name:e,config:t}),null;return v[e]=new tt(et(r,t)),ve[e]&&ve[e].forEach(function(n){mt(n.name,n.config)}),K(e),v[e]}else return delete v[e],null}function Pn(e,t){if(t!=null){var s,r,n=os;v[e]!=null&&v[e].parentLocale!=null?v[e].set(et(v[e]._config,t)):(r=Ce(e),r!=null&&(n=r._config),t=et(n,t),r==null&&(t.abbr=e),s=new tt(t),s.parentLocale=v[e],v[e]=s),K(e)}else v[e]!=null&&(v[e].parentLocale!=null?(v[e]=v[e].parentLocale,e===K()&&K(e)):v[e]!=null&&delete v[e]);return v[e]}function z(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!F(e)){if(t=Ce(e),t)return t;e=[e]}return Wn(e)}function Rn(){return st(v)}function _t(e){var t,s=e._a;return s&&m(e).overflow===-2&&(t=s[V]<0||s[V]>11?V:s[H]<1||s[H]>dt(s[O],s[V])?H:s[p]<0||s[p]>24||s[p]===24&&(s[I]!==0||s[G]!==0||s[se]!==0)?p:s[I]<0||s[I]>59?I:s[G]<0||s[G]>59?G:s[se]<0||s[se]>999?se:-1,m(e)._overflowDayOfYear&&(t<O||t>H)&&(t=H),m(e)._overflowWeeks&&t===-1&&(t=Ir),m(e)._overflowWeekday&&t===-1&&(t=Lr),m(e).overflow=t),e}var Fn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,In=/Z|[+-]\d\d(?::?\d\d)?/,Ue=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ln=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Un={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function us(e){var t,s,r=e._i,n=Fn.exec(r)||xn.exec(r),a,i,u,c,y=Ue.length,T=yt.length;if(n){for(m(e).iso=!0,t=0,s=y;t<s;t++)if(Ue[t][1].exec(n[1])){i=Ue[t][0],a=Ue[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,s=T;t<s;t++)if(yt[t][1].exec(n[3])){u=(n[2]||" ")+yt[t][0];break}if(u==null){e._isValid=!1;return}}if(!a&&u!=null){e._isValid=!1;return}if(n[4])if(In.exec(n[4]))c="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(c||""),gt(e)}else e._isValid=!1}function En(e,t,s,r,n,a){var i=[Hn(e),Kt.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,s){if(e){var r=ns.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(r!==n)return m(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Vn(e,t,s){if(e)return Un[e];if(t)return 0;var r=parseInt(s,10),n=r%100,a=(r-n)/100;return a*60+n}function ds(e){var t=Cn.exec(An(e._i)),s;if(t){if(s=En(t[4],t[3],t[2],t[5],t[6],t[7]),!jn(t[1],s,e))return;e._a=s,e._tzm=Vn(t[8],t[9],t[10]),e._d=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Gn(e){var t=Ln.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(us(e),e._isValid===!1)delete e._isValid;else return;if(ds(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ue(e,t,s){return e??t??s}function $n(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wt(e){var t,s,r=[],n,a,i;if(!e._d){for(n=$n(e),e._w&&e._a[H]==null&&e._a[V]==null&&zn(e),e._dayOfYear!=null&&(i=ue(e._a[O],n[O]),(e._dayOfYear>Me(i)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),s=Se(i,0,e._dayOfYear),e._a[V]=s.getUTCMonth(),e._a[H]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[p]===24&&e._a[I]===0&&e._a[G]===0&&e._a[se]===0&&(e._nextDay=!0,e._a[p]=0),e._d=(e._useUTC?Se:Qr).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[p]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function zn(e){var t,s,r,n,a,i,u,c,y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,s=ue(t.GG,e._a[O],ke(k(),1,4).year),r=ue(t.W,1),n=ue(t.E,1),(n<1||n>7)&&(c=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,y=ke(k(),a,i),s=ue(t.gg,e._a[O],y.year),r=ue(t.w,y.week),t.d!=null?(n=t.d,(n<0||n>6)&&(c=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(c=!0)):n=a),r<1||r>$(s,a,i)?m(e)._overflowWeeks=!0:c!=null?m(e)._overflowWeekday=!0:(u=rs(s,r,n,a,i),e._a[O]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function gt(e){if(e._f===l.ISO_8601){us(e);return}if(e._f===l.RFC_2822){ds(e);return}e._a=[],m(e).empty=!0;var t=""+e._i,s,r,n,a,i,u=t.length,c=0,y,T;for(n=Gt(e._f,e._locale).match(rt)||[],T=n.length,s=0;s<T;s++)a=n[s],r=(t.match(Rr(a,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&m(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ae[a]?(r?m(e).empty=!1:m(e).unusedTokens.push(a),xr(a,r,e)):e._strict&&!r&&m(e).unusedTokens.push(a);m(e).charsLeftOver=u-c,t.length>0&&m(e).unusedInput.push(t),e._a[p]<=12&&m(e).bigHour===!0&&e._a[p]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[p]=Zn(e._locale,e._a[p],e._meridiem),y=m(e).era,y!==null&&(e._a[O]=e._locale.erasConvertYear(y,e._a[O])),wt(e),_t(e)}function Zn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Bn(e){var t,s,r,n,a,i,u=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<c;n++)a=0,i=!1,t=Xe({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],gt(t),Qe(t)&&(i=!0),a+=m(t).charsLeftOver,a+=m(t).unusedTokens.length*10,m(t).score=a,u?a<r&&(r=a,s=t):(r==null||a<r||i)&&(r=a,s=t,i&&(u=!0));Q(e,s||t)}function qn(e){if(!e._d){var t=at(e._i),s=t.day===void 0?t.date:t.day;e._a=Et([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wt(e)}}function Jn(e){var t=new ye(_t(fs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function fs(e){var t=e._i,s=e._f;return e._locale=e._locale||z(e._l),t===null||s===void 0&&t===""?Oe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),x(t)?new ye(_t(t)):(_e(t)?e._d=t:F(s)?Bn(e):s?gt(e):Qn(e),Qe(e)||(e._d=null),e))}function Qn(e){var t=e._i;b(t)?e._d=new Date(l.now()):_e(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Gn(e):F(t)?(e._a=Et(t.slice(0),function(s){return parseInt(s,10)}),wt(e)):te(t)?qn(e):A(t)?e._d=new Date(t):l.createFromInputFallback(e)}function hs(e,t,s,r,n){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(te(e)&&qe(e)||F(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=s,a._i=e,a._f=t,a._strict=r,Jn(a)}function k(e,t,s,r){return hs(e,t,s,r,!1)}var Kn=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Oe()}),Xn=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Oe()});function cs(e,t){var s,r;if(t.length===1&&F(t[0])&&(t=t[0]),!t.length)return k();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ea(){var e=[].slice.call(arguments,0);return cs("isBefore",e)}function ta(){var e=[].slice.call(arguments,0);return cs("isAfter",e)}var sa=function(){return Date.now?Date.now():+new Date},pe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ra(e){var t,s=!1,r,n=pe.length;for(t in e)if(g(e,t)&&!(Y.call(pe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<n;++r)if(e[pe[r]]){if(s)return!1;parseFloat(e[pe[r]])!==_(e[pe[r]])&&(s=!0)}return!0}function na(){return this._isValid}function aa(){return L(NaN)}function Ee(e){var t=at(e),s=t.year||0,r=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,c=t.minute||0,y=t.second||0,T=t.millisecond||0;this._isValid=ra(t),this._milliseconds=+T+y*1e3+c*6e4+u*1e3*60*60,this._days=+i+a*7,this._months=+n+r*3+s*12,this._data={},this._locale=z(),this._bubble()}function He(e){return e instanceof Ee}function Mt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ia(e,t,s){var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<r;i++)_(e[i])!==_(t[i])&&a++;return a+n}function ms(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+E(~~(s/60),2)+t+E(~~s%60,2)})}ms("Z",":"),ms("ZZ",""),d("Z",Fe),d("ZZ",Fe),D(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=Dt(Fe,e)});var oa=/([\+\-]|\d\d)/gi;function Dt(e,t){var s=(t||"").match(e),r,n,a;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(oa)||["-",0,0],a=+(n[1]*60)+_(n[2]),a===0?0:n[0]==="+"?a:-a)}function St(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(x(e)||_e(e)?e.valueOf():k(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),l.updateOffset(s,!1),s):k(e).local()}function kt(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function la(e,t,s){var r=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Dt(Fe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(n=kt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?gs(this,L(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:kt(this)}function ua(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function da(e){return this.utcOffset(0,e)}function fa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(kt(this),"m")),this}function ha(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Dt(Nr,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ca(e){return this.isValid()?(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ma(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _a(){if(!b(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Xe(e,this),e=fs(e),e._a?(t=e._isUTC?C(e._a):k(e._a),this._isDSTShifted=this.isValid()&&ia(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ya(){return this.isValid()?!this._isUTC:!1}function wa(){return this.isValid()?this._isUTC:!1}function _s(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ga=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ma=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function L(e,t){var s=e,r=null,n,a,i;return He(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:A(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=ga.exec(e))?(n=r[1]==="-"?-1:1,s={y:0,d:_(r[H])*n,h:_(r[p])*n,m:_(r[I])*n,s:_(r[G])*n,ms:_(Mt(r[se]*1e3))*n}):(r=Ma.exec(e))?(n=r[1]==="-"?-1:1,s={y:re(r[2],n),M:re(r[3],n),w:re(r[4],n),d:re(r[5],n),h:re(r[6],n),m:re(r[7],n),s:re(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Da(k(s.from),k(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),a=new Ee(s),He(e)&&g(e,"_locale")&&(a._locale=e._locale),He(e)&&g(e,"_isValid")&&(a._isValid=e._isValid),a}L.fn=Ee.prototype,L.invalid=aa;function re(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function ys(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Da(e,t){var s;return e.isValid()&&t.isValid()?(t=St(t,e),e.isBefore(t)?s=ys(e,t):(s=ys(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ws(e,t){return function(s,r){var n,a;return r!==null&&!isNaN(+r)&&(Vt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=s,s=r,r=a),n=L(s,r),gs(this,n,e),this}}function gs(e,t,s,r){var n=t._milliseconds,a=Mt(t._days),i=Mt(t._months);e.isValid()&&(r=r??!0,i&&es(e,De(e,"Month")+i*s),a&&Qt(e,"Date",De(e,"Date")+a*s),n&&e._d.setTime(e._d.valueOf()+n*s),r&&l.updateOffset(e,a||i))}var Sa=ws(1,"add"),ka=ws(-1,"subtract");function Ms(e){return typeof e=="string"||e instanceof String}function va(e){return x(e)||_e(e)||Ms(e)||A(e)||pa(e)||Ya(e)||e===null||e===void 0}function Ya(e){var t=te(e)&&!qe(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=r.length;for(n=0;n<i;n+=1)a=r[n],s=s||g(e,a);return t&&s}function pa(e){var t=F(e),s=!1;return t&&(s=e.filter(function(r){return!A(r)&&Ms(e)}).length===0),t&&s}function Oa(e){var t=te(e)&&!qe(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<r.length;n+=1)a=r[n],s=s||g(e,a);return t&&s}function Ta(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function ba(e,t){arguments.length===1&&(arguments[0]?va(arguments[0])?(e=arguments[0],t=void 0):Oa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||k(),r=St(s,this).startOf("day"),n=l.calendarFormat(this,r)||"sameElse",a=t&&(U(t[n])?t[n].call(this,s):t[n]);return this.format(a||this.localeData().calendar(n,this,k(s)))}function Wa(){return new ye(this)}function Na(e,t){var s=x(e)?e:k(e);return this.isValid()&&s.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Pa(e,t){var s=x(e)?e:k(e);return this.isValid()&&s.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Ra(e,t,s,r){var n=x(e)?e:k(e),a=x(t)?t:k(t);return this.isValid()&&n.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(a,s):!this.isAfter(a,s))):!1}function Fa(e,t){var s=x(e)?e:k(e),r;return this.isValid()&&s.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function xa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ia(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function La(e,t,s){var r,n,a;if(!this.isValid())return NaN;if(r=St(e,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,t=P(t),t){case"year":a=Ae(this,r)/12;break;case"month":a=Ae(this,r);break;case"quarter":a=Ae(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-n)/864e5;break;case"week":a=(this-r-n)/6048e5;break;default:a=this-r}return s?a:R(a)}function Ae(e,t){if(e.date()<t.date())return-Ae(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),n,a;return t-r<0?(n=e.clone().add(s-1,"months"),a=(t-r)/(r-n)):(n=e.clone().add(s+1,"months"),a=(t-r)/(n-r)),-(s+a)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ca(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ua(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?be(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",be(s,"Z")):be(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ea(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(s+r+n+a)}function Ha(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=be(this,e);return this.localeData().postformat(t)}function Aa(e,t){return this.isValid()&&(x(e)&&e.isValid()||k(e).isValid())?L({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ja(e){return this.from(k(),e)}function Va(e,t){return this.isValid()&&(x(e)&&e.isValid()||k(e).isValid())?L({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ga(e){return this.to(k(),e)}function Ds(e){var t;return e===void 0?this._locale._abbr:(t=z(e),t!=null&&(this._locale=t),this)}var Ss=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ks(){return this._locale}var je=1e3,de=60*je,Ve=60*de,vs=(365*400+97)*24*Ve;function fe(e,t){return(e%t+t)%t}function Ys(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-vs:new Date(e,t,s).valueOf()}function ps(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-vs:Date.UTC(e,t,s)}function $a(e){var t,s;if(e=P(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ps:Ys,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fe(t+(this._isUTC?0:this.utcOffset()*de),Ve);break;case"minute":t=this._d.valueOf(),t-=fe(t,de);break;case"second":t=this._d.valueOf(),t-=fe(t,je);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function za(e){var t,s;if(e=P(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ps:Ys,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ve-fe(t+(this._isUTC?0:this.utcOffset()*de),Ve)-1;break;case"minute":t=this._d.valueOf(),t+=de-fe(t,de)-1;break;case"second":t=this._d.valueOf(),t+=je-fe(t,je)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Za(){return this._d.valueOf()-(this._offset||0)*6e4}function Ba(){return Math.floor(this.valueOf()/1e3)}function qa(){return new Date(this.valueOf())}function Ja(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Qa(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ka(){return this.isValid()?this.toISOString():null}function Xa(){return Qe(this)}function ei(){return Q({},m(this))}function ti(){return m(this).overflow}function si(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",vt),d("NN",vt),d("NNN",vt),d("NNNN",ci),d("NNNNN",mi),D(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var n=s._locale.erasParse(e,r,s._strict);n?m(s).era=n:m(s).invalidEra=e}),d("y",ie),d("yy",ie),d("yyy",ie),d("yyyy",ie),d("yo",_i),D(["y","yy","yyy","yyyy"],O),D(["yo"],function(e,t,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[O]=s._locale.eraYearOrdinalParse(e,n):t[O]=parseInt(e,10)});function ri(e,t){var s,r,n,a=this._eras||z("en")._eras;for(s=0,r=a.length;s<r;++s){switch(typeof a[s].since){case"string":n=l(a[s].since).startOf("day"),a[s].since=n.valueOf();break}switch(typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":n=l(a[s].until).startOf("day").valueOf(),a[s].until=n.valueOf();break}}return a}function ni(e,t,s){var r,n,a=this.eras(),i,u,c;for(e=e.toUpperCase(),r=0,n=a.length;r<n;++r)if(i=a[r].name.toUpperCase(),u=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(c===e)return a[r];break}else if([i,u,c].indexOf(e)>=0)return a[r]}function ai(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function ii(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function oi(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function li(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function ui(){var e,t,s,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=n[e].since<=n[e].until?1:-1,r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return(this.year()-l(n[e].since).year())*s+n[e].offset;return this.year()}function di(e){return g(this,"_erasNameRegex")||Yt.call(this),e?this._erasNameRegex:this._erasRegex}function fi(e){return g(this,"_erasAbbrRegex")||Yt.call(this),e?this._erasAbbrRegex:this._erasRegex}function hi(e){return g(this,"_erasNarrowRegex")||Yt.call(this),e?this._erasNarrowRegex:this._erasRegex}function vt(e,t){return t.erasAbbrRegex(e)}function ci(e,t){return t.erasNameRegex(e)}function mi(e,t){return t.erasNarrowRegex(e)}function _i(e,t){return t._eraYearOrdinalRegex||ie}function Yt(){var e=[],t=[],s=[],r=[],n,a,i,u,c,y=this.eras();for(n=0,a=y.length;n<a;++n)i=j(y[n].name),u=j(y[n].abbr),c=j(y[n].narrow),t.push(i),e.push(u),s.push(c),r.push(i),r.push(u),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ge(e,t){h(0,[e,e.length],0,t)}Ge("gggg","weekYear"),Ge("ggggg","weekYear"),Ge("GGGG","isoWeekYear"),Ge("GGGGG","isoWeekYear"),d("G",Re),d("g",Re),d("GG",S,W),d("gg",S,W),d("GGGG",ot,it),d("gggg",ot,it),d("GGGGG",Pe,We),d("ggggg",Pe,We),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=_(e)}),ge(["gg","GG"],function(e,t,s,r){t[r]=l.parseTwoDigitYear(e)});function yi(e){return Os.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function wi(e){return Os.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function gi(){return $(this.year(),1,4)}function Mi(){return $(this.isoWeekYear(),1,4)}function Di(){var e=this.localeData()._week;return $(this.year(),e.dow,e.doy)}function Si(){var e=this.localeData()._week;return $(this.weekYear(),e.dow,e.doy)}function Os(e,t,s,r,n){var a;return e==null?ke(this,r,n).year:(a=$(e,r,n),t>a&&(t=a),ki.call(this,e,t,s,r,n))}function ki(e,t,s,r,n){var a=rs(e,t,s,r,n),i=Se(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),d("Q",zt),D("Q",function(e,t){t[V]=(_(e)-1)*3});function vi(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),d("D",S,oe),d("DD",S,W),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),D(["D","DD"],H),D("Do",function(e,t){t[H]=_(e.match(S)[0])});var Ts=le("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",Ne),d("DDDD",Zt),D(["DDD","DDDD"],function(e,t,s){s._dayOfYear=_(e)});function Yi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),d("m",S,lt),d("mm",S,W),D(["m","mm"],I);var pi=le("Minutes",!1);h("s",["ss",2],0,"second"),d("s",S,lt),d("ss",S,W),D(["s","ss"],G);var Oi=le("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),d("S",Ne,zt),d("SS",Ne,W),d("SSS",Ne,Zt);var X,bs;for(X="SSSS";X.length<=9;X+="S")d(X,ie);function Ti(e,t){t[se]=_(("0."+e)*1e3)}for(X="S";X.length<=9;X+="S")D(X,Ti);bs=le("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function bi(){return this._isUTC?"UTC":""}function Wi(){return this._isUTC?"Coordinated Universal Time":""}var o=ye.prototype;o.add=Sa,o.calendar=ba,o.clone=Wa,o.diff=La,o.endOf=za,o.format=Ha,o.from=Aa,o.fromNow=ja,o.to=Va,o.toNow=Ga,o.get=Ur,o.invalidAt=ti,o.isAfter=Na,o.isBefore=Pa,o.isBetween=Ra,o.isSame=Fa,o.isSameOrAfter=xa,o.isSameOrBefore=Ia,o.isValid=Xa,o.lang=Ss,o.locale=Ds,o.localeData=ks,o.max=Xn,o.min=Kn,o.parsingFlags=ei,o.set=Er,o.startOf=$a,o.subtract=ka,o.toArray=Ja,o.toObject=Qa,o.toDate=qa,o.toISOString=Ua,o.inspect=Ea,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=Ka,o.toString=Ca,o.unix=Ba,o.valueOf=Za,o.creationData=si,o.eraName=ii,o.eraNarrow=oi,o.eraAbbr=li,o.eraYear=ui,o.year=Jt,o.isLeapYear=Cr,o.weekYear=yi,o.isoWeekYear=wi,o.quarter=o.quarters=vi,o.month=ts,o.daysInMonth=Br,o.week=o.weeks=sn,o.isoWeek=o.isoWeeks=rn,o.weeksInYear=Di,o.weeksInWeekYear=Si,o.isoWeeksInYear=gi,o.isoWeeksInISOWeekYear=Mi,o.date=Ts,o.day=o.days=wn,o.weekday=gn,o.isoWeekday=Mn,o.dayOfYear=Yi,o.hour=o.hours=On,o.minute=o.minutes=pi,o.second=o.seconds=Oi,o.millisecond=o.milliseconds=bs,o.utcOffset=la,o.utc=da,o.local=fa,o.parseZone=ha,o.hasAlignedHourOffset=ca,o.isDST=ma,o.isLocal=ya,o.isUtcOffset=wa,o.isUtc=_s,o.isUTC=_s,o.zoneAbbr=bi,o.zoneName=Wi,o.dates=N("dates accessor is deprecated. Use date instead.",Ts),o.months=N("months accessor is deprecated. Use month instead",ts),o.years=N("years accessor is deprecated. Use year instead",Jt),o.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ua),o.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_a);function Ni(e){return k(e*1e3)}function Pi(){return k.apply(null,arguments).parseZone()}function Ws(e){return e}var M=tt.prototype;M.calendar=_r,M.longDateFormat=Mr,M.invalidDate=Sr,M.ordinal=Yr,M.preparse=Ws,M.postformat=Ws,M.relativeTime=Or,M.pastFuture=Tr,M.set=cr,M.eras=ri,M.erasParse=ni,M.erasConvertYear=ai,M.erasAbbrRegex=fi,M.erasNameRegex=di,M.erasNarrowRegex=hi,M.months=Gr,M.monthsShort=$r,M.monthsParse=Zr,M.monthsRegex=Jr,M.monthsShortRegex=qr,M.week=Kr,M.firstDayOfYear=tn,M.firstDayOfWeek=en,M.weekdays=hn,M.weekdaysMin=mn,M.weekdaysShort=cn,M.weekdaysParse=yn,M.weekdaysRegex=Dn,M.weekdaysShortRegex=Sn,M.weekdaysMinRegex=kn,M.isPM=Yn,M.meridiem=Tn;function $e(e,t,s,r){var n=z(),a=C().set(r,t);return n[s](a,e)}function Ns(e,t,s){if(A(e)&&(t=e,e=void 0),e=e||"",t!=null)return $e(e,t,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=$e(e,r,s,"month");return n}function pt(e,t,s,r){typeof e=="boolean"?(A(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,A(t)&&(s=t,t=void 0),t=t||"");var n=z(),a=e?n._week.dow:0,i,u=[];if(s!=null)return $e(t,(s+a)%7,r,"day");for(i=0;i<7;i++)u[i]=$e(t,(i+a)%7,r,"day");return u}function Ri(e,t){return Ns(e,t,"months")}function Fi(e,t){return Ns(e,t,"monthsShort")}function xi(e,t,s){return pt(e,t,s,"weekdays")}function Ii(e,t,s){return pt(e,t,s,"weekdaysShort")}function Li(e,t,s){return pt(e,t,s,"weekdaysMin")}K("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=N("moment.lang is deprecated. Use moment.locale instead.",K),l.langData=N("moment.langData is deprecated. Use moment.localeData instead.",z);var Z=Math.abs;function Ci(){var e=this._data;return this._milliseconds=Z(this._milliseconds),this._days=Z(this._days),this._months=Z(this._months),e.milliseconds=Z(e.milliseconds),e.seconds=Z(e.seconds),e.minutes=Z(e.minutes),e.hours=Z(e.hours),e.months=Z(e.months),e.years=Z(e.years),this}function Ps(e,t,s,r){var n=L(t,s);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function Ui(e,t){return Ps(this,e,t,1)}function Ei(e,t){return Ps(this,e,t,-1)}function Rs(e){return e<0?Math.floor(e):Math.ceil(e)}function Hi(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,n,a,i,u,c;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Rs(Ot(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,n=R(e/1e3),r.seconds=n%60,a=R(n/60),r.minutes=a%60,i=R(a/60),r.hours=i%24,t+=R(i/24),c=R(Fs(t)),s+=c,t-=Rs(Ot(c)),u=R(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Fs(e){return e*4800/146097}function Ot(e){return e*146097/4800}function Ai(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=P(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Fs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ot(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function B(e){return function(){return this.as(e)}}var xs=B("ms"),ji=B("s"),Vi=B("m"),Gi=B("h"),$i=B("d"),zi=B("w"),Zi=B("M"),Bi=B("Q"),qi=B("y"),Ji=xs;function Qi(){return L(this)}function Ki(e){return e=P(e),this.isValid()?this[e+"s"]():NaN}function ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var Xi=ne("milliseconds"),eo=ne("seconds"),to=ne("minutes"),so=ne("hours"),ro=ne("days"),no=ne("months"),ao=ne("years");function io(){return R(this.days()/7)}var q=Math.round,he={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oo(e,t,s,r,n){return n.relativeTime(t||1,!!s,e,r)}function lo(e,t,s,r){var n=L(e).abs(),a=q(n.as("s")),i=q(n.as("m")),u=q(n.as("h")),c=q(n.as("d")),y=q(n.as("M")),T=q(n.as("w")),J=q(n.as("y")),ee=a<=s.ss&&["s",a]||a<s.s&&["ss",a]||i<=1&&["m"]||i<s.m&&["mm",i]||u<=1&&["h"]||u<s.h&&["hh",u]||c<=1&&["d"]||c<s.d&&["dd",c];return s.w!=null&&(ee=ee||T<=1&&["w"]||T<s.w&&["ww",T]),ee=ee||y<=1&&["M"]||y<s.M&&["MM",y]||J<=1&&["y"]||["yy",J],ee[2]=t,ee[3]=+e>0,ee[4]=r,oo.apply(null,ee)}function uo(e){return e===void 0?q:typeof e=="function"?(q=e,!0):!1}function fo(e,t){return he[e]===void 0?!1:t===void 0?he[e]:(he[e]=t,e==="s"&&(he.ss=t-1),!0)}function ho(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=he,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},he,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),n=this.localeData(),a=lo(this,!s,r,n),s&&(a=n.pastFuture(+this,a)),n.postformat(a)}var Tt=Math.abs;function ce(e){return(e>0)-(e<0)||+e}function ze(){if(!this.isValid())return this.localeData().invalidDate();var e=Tt(this._milliseconds)/1e3,t=Tt(this._days),s=Tt(this._months),r,n,a,i,u=this.asSeconds(),c,y,T,J;return u?(r=R(e/60),n=R(r/60),e%=60,r%=60,a=R(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=u<0?"-":"",y=ce(this._months)!==ce(u)?"-":"",T=ce(this._days)!==ce(u)?"-":"",J=ce(this._milliseconds)!==ce(u)?"-":"",c+"P"+(a?y+a+"Y":"")+(s?y+s+"M":"")+(t?T+t+"D":"")+(n||r||e?"T":"")+(n?J+n+"H":"")+(r?J+r+"M":"")+(e?J+i+"S":"")):"P0D"}var w=Ee.prototype;w.isValid=na,w.abs=Ci,w.add=Ui,w.subtract=Ei,w.as=Ai,w.asMilliseconds=xs,w.asSeconds=ji,w.asMinutes=Vi,w.asHours=Gi,w.asDays=$i,w.asWeeks=zi,w.asMonths=Zi,w.asQuarters=Bi,w.asYears=qi,w.valueOf=Ji,w._bubble=Hi,w.clone=Qi,w.get=Ki,w.milliseconds=Xi,w.seconds=eo,w.minutes=to,w.hours=so,w.days=ro,w.weeks=io,w.months=no,w.years=ao,w.humanize=ho,w.toISOString=ze,w.toString=ze,w.toJSON=ze,w.locale=Ds,w.localeData=ks,w.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ze),w.lang=Ss,h("X",0,0,"unix"),h("x",0,0,"valueOf"),d("x",Re),d("X",Pr),D("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),D("x",function(e,t,s){s._d=new Date(_(e))});//! moment.js
|
|
10
|
-
l.version="2.30.1",fr(k),l.fn=o,l.min=ea,l.max=ta,l.now=sa,l.utc=C,l.unix=Ni,l.months=Ri,l.isDate=_e,l.locale=K,l.invalid=Oe,l.duration=L,l.isMoment=x,l.weekdays=xi,l.parseZone=Pi,l.localeData=z,l.isDuration=He,l.monthsShort=Fi,l.weekdaysMin=Li,l.defineLocale=mt,l.updateLocale=Pn,l.locales=Rn,l.weekdaysShort=Ii,l.normalizeUnits=P,l.relativeTimeRounding=uo,l.relativeTimeThreshold=fo,l.calendarFormat=Ta,l.prototype=o,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const co=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,mo=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Is=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,bt=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],_o={months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Is,monthsShortRegex:Is,monthsStrictRegex:co,monthsShortStrictRegex:mo,monthsParse:bt,longMonthsParse:bt,shortMonthsParse:bt,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};l.locale("fr",_o);const yo=e=>new Date(e).toString()!=="Invalid Date",wo=(e,t)=>Math.abs(Math.ceil((t.getTime()-e.getTime())/(1e3*60*60*24))),go=e=>Be(l(e).format("DD MMMM YYYY")),Mo=e=>Be(l(e).format("dddd DD MMMM YYYY")),Do=(e,t,s=!0)=>(s?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),So=()=>l().locale("fr").subtract(1,"days").toDate(),ko=e=>new Date>e,vo=(e=new Date,t=1)=>{const s=t*60*1e3;return new Date(Math.round(e.getTime()/s)*s)},Yo=e=>{const t=[],s=l.duration(e);if(!(!s||s.toISOString()==="P0D")){if(s.years()>=1){const r=Math.floor(s.years());t.push(r+" "+(r>1?"années":"année"))}if(s.months()>=1){const r=Math.floor(s.months());t.push(r+" mois")}if(s.days()>=1){const r=Math.floor(s.days());t.push(r+" "+(r>1?"jours":"jour"))}if(s.hours()>=1){const r=Math.floor(s.hours());t.push(r+" "+(r>1?"heures":"heure"))}if(s.minutes()>=1){const r=Math.floor(s.minutes());t.push(r+" "+(r>1?"minutes":"minute"))}if(s.seconds()>=1){const r=Math.floor(s.seconds());t.push(r+" "+(r>1?"secondes":"seconde"))}return t.join(", ")}},Wt=/^([1-9][0-9]?)([hmd])$/i,po=e=>!!e&&Wt.test(e),Oo=e=>{const t=Wt.exec(e);if(!t)return null;const[,s,r]=t,n=parseInt(s,10),a=1e3*60;if(r==="m")return a*n;if(r==="h")return a*60*n;if(r==="d")return a*60*24*n},To=e=>{const t=Wt.exec(e);if(!t)return null;const[,s,r]=t,n=parseInt(s,10);if(r==="m")return`${n} minute${n>1?"s":""}`;if(r==="h")return`${n} heure${n>1?"s":""}`;if(r==="d")return`${n} jour${n>1?"s":""}`},bo=e=>typeof e=="function",Wo=(e,t,s)=>{const r={...e},n=Object.entries(e);for(const[a,i]of n){const u=t[a];u?r[a]=s(i,u):r[a]=i}return r},No=e=>e instanceof Object,Po=(e,t)=>t.reduce((s,r)=>({...s,[r]:e[r]}),{}),Ro=e=>Object.entries(e);f.TIGHT_SPACE=Ft,f.WIDE_SPACE=xt,f.arrayToRecord=er,f.breakWords=or,f.camelcase=Ct,f.capitalize=It,f.capitalizeAllWords=Be,f.clamp=Cs,f.dateDiff=wo,f.durationToMs=Oo,f.ellipsis=rr,f.exclude=Gs,f.fillWithTightSpaces=tr,f.fillWithWideSpaces=sr,f.filterKeys=Po,f.filterNullAndUndefined=Bs,f.formatDate=go,f.formatDateWithDay=Mo,f.formatDuration=To,f.formatNumber=me,f.groupBy=Hs,f.groupByOccurrence=As,f.hasExpire=ko,f.includeArrayIf=Qs,f.includeBeginIf=Js,f.includeIf=qs,f.insertArrayIf=Pt,f.insertIf=Ze,f.isDefined=ur,f.isDuration=po,f.isFunction=bo,f.isJSON=dr,f.isNumber=Us,f.isObject=No,f.isPositiveInteger=nr,f.isString=Lt,f.isValidDate=yo,f.mergeObjects=Wo,f.mutuallyInclusive=Vs,f.numberToOrdinal=ar,f.paginate=Es,f.pascalCase=lr,f.pickFrom=Rt,f.pickFromNth=Ks,f.precise=Yo,f.randomBetween=Nt,f.range=Xs,f.recordToArray=Ro,f.roundDate=vo,f.sameDay=Do,f.seededRandom=Ls,f.shuffle=Zs,f.sortBy=js,f.trim=ir,f.unique=$s,f.uniquePreserve=zs,f.yesterday=So,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
package/dist/locales/fr.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":"AAqBA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqEI,MAAM,KAAK,MAAM;;;;;CAK5B,CAAC;AAEF,eAAe,EAAE,CAAC"}
|