Loading
function(e,t,n){"use strict";n.d(t,{CV:()=>s,E9:()=>v,EB:()=>d,Pl:()=>S,Wp:()=>a,d2:()=>y,eB:()=>o,fp:()=>m,k8:()=>h,lT:()=>p,zL:()=>E});var r=n(476858),i=n(364242);let s={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},a={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},o={...a,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},l={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},u={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},c={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},d={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...c},_=`(?:${(0,r.uJ)(l)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function f(e){let t=e.toLowerCase();if(void 0!==l[t])return l[t];if("a"===t||"an"===t||"the"==t)return 1;if(t.match(/few/))return 3;if(t.match(/half/))return .5;if(t.match(/couple/))return 2;else if(t.match(/several/))return 7;return parseFloat(t)}let p=`(?:${(0,r.uJ)(u)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function h(e){let t=e.toLowerCase();return void 0!==u[t]?u[t]:parseInt(t=t.replace(/(?:st|nd|rd|th)$/i,""))}let m="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])";function E(e){if(/BE/i.test(e))return parseInt(e=e.replace(/BE/i,""))-543;if(/BCE?/i.test(e))return-parseInt(e=e.replace(/BCE?/i,""));if(/(AD|CE)/i.test(e))return parseInt(e=e.replace(/(AD|CE)/i,""));let t=parseInt(e);return(0,i.D)(t)}let g=`(${_})\\s{0,3}(${(0,r.uJ)(d)})`,A=RegExp(g,"i"),I=`(${_})\\s{0,3}(${(0,r.uJ)(c)})`,T="\\s{0,5},?(?:\\s*and)?\\s{0,5}",S=(0,r.mb)("(?:(?:about|around)\\s{0,3})?",g,T),y=(0,r.mb)("(?:(?:about|around)\\s{0,3})?",I,T);function v(e){let t={},n=e,r=A.exec(n);for(;r;)N(t,r),n=n.substring(r[0].length).trim(),r=A.exec(n);return 0==Object.keys(t).length?null:t}function N(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=f(t[1]);e[d[t[2].toLowerCase()]]=n}}