varDateFormatter;!function(){"use strict";vare,t,a,n,r,o,i;o=864e5,i=3600,e=function(e,t){return"string"==typeofe&&"string"==typeoft&&e.toLowerCase()===t.toLowerCase()},t=function(e,a,n){varr=n||"0",o=e.toString();returno.length<a?t(r+o,a):o},a=function(e){vart,n;for(e=e||{},t=1;t<arguments.length;t++)if(n=arguments[t])for(varrinn)n.hasOwnProperty(r)&&("object"==typeofn[r]?a(e[r],n[r]):e[r]=n[r]);returne},n=function(e,t){for(vara=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())returna;return-1},r={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){vart=e%10,a={1:"st",2:"nd",3:"rd"};return1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},(DateFormatter=function(e){vart=this,n=a(r,e);t.dateSettings=n.dateSettings,t.separators=n.separators,t.validParts=n.validParts,t.intParts=n.intParts,t.tzParts=n.tzParts,t.tzClip=n.tzClip}).prototype={constructor:DateFormatter,getMonth:function(e){vart,a=this;return0===(t=n(e,a.dateSettings.monthsShort)+1)&&(t=n(e,a.dateSettings.months)+1),t},parseDate:function(t,a){varn,r,o,i,s,d,u,l,f,c,m=this,h=!1,g=!1,p=m.dateSettings,y={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!t)returnnull;if(tinstanceofDate)returnt;if("U"===a)return(o=parseInt(t))?newDate(1e3*o):t;switch(typeoft){case"number":returnnewDate(t);case"string":break;default:returnnull}if(!(n=a.match(m.validParts))||0===n.length)thrownewError("Invalid date format definition.");for(r=t.replace(m.separators,"\0").split("\0"),o=0;o<r.length;o++)switch(i=r[o],s=parseInt(i),n[o]){case"y":case"Y":if(!s)returnnull;f=i.length,y.year=2===f?parseInt((70>s?"20":"19")+i):s,h=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((d=m.getMonth(i))>0))returnnull;y.month=d}else{if(!(s>=1&&12>=s))returnnull;y.month=s}h=!0;break;case"d":case"j":if(!(s>=1&&31>=s))returnnull;y.day=s,h=!0;break;case"g":case"h":if(u=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1,c=r[u],u>-1)l=e(c,p.meridiem[0])?0:e(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&l>-1?y.hour=s+l-1:s>=0&&23>=s&&(y.hour=s);else{if(!(s>=0&&23>=s))returnnull;y.hour=s}g=!0;break;case"G":case"H":if(!(s>=0&&23>=s))returnnull;y.hour=s,g=!0;break;case"i":if(!(s>=0&&59>=s))returnnull;y.min=s,g=!0;break;case"s":if(!(s>=0&&59>=s))returnnull;y.sec=s,g=!0}if(!0===h&&y.year&&y.month&&y.day)y.date=newDate(y.year,y.month-1,y.day,y.hour,y.min,y.sec,0);else{if(!0!==g)returnnull;y.date=newDate(0,0,0,y.hour,y.min,y.sec,0)}returny.date},guessDate:function(e,t){if("string"!=typeofe)returne;vara,n,r,o,i,s,d=this,u=e.replace(d.separators,"\0").split("\0"),l=/^[djmn]/g,f=t.match(d.validParts),c=newDate,m=0;if(!l.test(f[0]))returne;for(r=0;r<u.length;r++){if(m=2,i=u[r],s=parseInt(i.substr(0,2)),isNaN(s))returnnull;switch(r){case0:"m"===f[0]||"n"===f[0]?c.setMonth(s-1):c.setDate(s);break;case1:"m"===f[0]||"n"===f[0]?c.setDate(s):c.setMonth(s-1);break;case2:if(n=c.getFullYear(),a=i.length,m=4>a?a:4,!(n=parseInt(4>a?n.toString().substr(0,4-a)+i:i.substr(0,4))))returnnull;c.setFullYear(n);break;case3:c.setHours(s);break;case4:c.setMinutes(s);break;case5:c.setSeconds(s)}(o=i.substr(m)).length>0&&u.splice(r+1,0,o)}returnc},parseFormat:function(e,a){varn,r=this,s=r.dateSettings,d=/\\?(.?)/gi,u=function(e,t){returnn[e]?n[e]():t};returnn={d:function(){returnt(n.j(),2)},D:function(){returns.daysShort[n.w()]},j:function(){returna.getDate()},l:function(){returns.days[n.w()]},N:function(){returnn.w()||7},w:function(){return