text: Date.CultureStrings=Date.CultureStrings||{},Date.CultureStrings["en-ZA"]={name:"en-ZA",englishName:"English (South Africa)",nativeName:"English (South Africa)",Sunday:"Sunday",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sun:"Sun",Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Su:"Su",Mo:"Mo",Tu:"Tu",We:"We",Th:"Th",Fr:"Fr",Sa:"Sa",S_Sun_Initial:"S",M_Mon_Initial:"M",T_Tue_Initial:"T",W_Wed_Initial:"W",T_Thu_Initial:"T",F_Fri_Initial:"F",S_Sat_Initial:"S",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",Jan_Abbr:"Jan",Feb_Abbr:"Feb",Mar_Abbr:"Mar",Apr_Abbr:"Apr",May_Abbr:"May",Jun_Abbr:"Jun",Jul_Abbr:"Jul",Aug_Abbr:"Aug",Sep_Abbr:"Sep",Oct_Abbr:"Oct",Nov_Abbr:"Nov",Dec_Abbr:"Dec",AM:"AM",PM:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,mdy:"ymd","M/d/yyyy":"yyyy/MM/dd","dddd, MMMM dd, yyyy":"dd MMMM yyyy","h:mm tt":"hh:mm tt","h:mm:ss tt":"hh:mm:ss tt","dddd, MMMM dd, yyyy h:mm:ss tt":"dd MMMM yyyy hh:mm:ss tt","yyyy-MM-ddTHH:mm:ss":"yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ssZ":"yyyy-MM-dd HH:mm:ssZ","ddd, dd MMM yyyy HH:mm:ss":"ddd, dd MMM yyyy HH:mm:ss","MMMM dd":"dd MMMM","MMMM, yyyy":"MMMM yyyy","/jan(uary)?/":"jan(uary)?","/feb(ruary)?/":"feb(ruary)?","/mar(ch)?/":"mar(ch)?","/apr(il)?/":"apr(il)?","/may/":"may","/jun(e)?/":"jun(e)?","/jul(y)?/":"jul(y)?","/aug(ust)?/":"aug(ust)?","/sep(t(ember)?)?/":"sep(t(ember)?)?","/oct(ober)?/":"oct(ober)?","/nov(ember)?/":"nov(ember)?","/dec(ember)?/":"dec(ember)?","/^su(n(day)?)?/":"^su(n(day)?)?","/^mo(n(day)?)?/":"^mo(n(day)?)?","/^tu(e(s(day)?)?)?/":"^tu(e(s(day)?)?)?","/^we(d(nesday)?)?/":"^we(d(nesday)?)?","/^th(u(r(s(day)?)?)?)?/":"^th(u(r(s(day)?)?)?)?","/^fr(i(day)?)?/":"^fr(i(day)?)?","/^sa(t(urday)?)?/":"^sa(t(urday)?)?","/^next/":"^next","/^last|past|prev(ious)?/":"^last|past|prev(ious)?","/^(\\+|aft(er)?|from|hence)/":"^(\\+|aft(er)?|from|hence)","/^(\\-|bef(ore)?|ago)/":"^(\\-|bef(ore)?|ago)","/^yes(terday)?/":"^yes(terday)?","/^t(od(ay)?)?/":"^t(od(ay)?)?","/^tom(orrow)?/":"^tom(orrow)?","/^n(ow)?/":"^n(ow)?","/^ms|milli(second)?s?/":"^ms|milli(second)?s?","/^sec(ond)?s?/":"^sec(ond)?s?","/^mn|min(ute)?s?/":"^mn|min(ute)?s?","/^h(our)?s?/":"^h(our)?s?","/^w(eek)?s?/":"^w(eek)?s?","/^m(onth)?s?/":"^m(onth)?s?","/^d(ay)?s?/":"^d(ay)?s?","/^y(ear)?s?/":"^y(ear)?s?","/^(a|p)/":"^(a|p)","/^(a\\.?m?\\.?|p\\.?m?\\.?)/":"^(a\\.?m?\\.?|p\\.?m?\\.?)","/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/":"^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)","/^\\s*(st|nd|rd|th)/":"^\\s*(st|nd|rd|th)","/^\\s*(\\:|a(?!u|p)|p)/":"^\\s*(\\:|a(?!u|p)|p)",LINT:"LINT",TOT:"TOT",CHAST:"CHAST",NZST:"NZST",NFT:"NFT",SBT:"SBT",AEST:"AEST",ACST:"ACST",JST:"JST",CWST:"CWST",CT:"CT",ICT:"ICT",MMT:"MMT",BIOT:"BST",NPT:"NPT",IST:"IST",PKT:"PKT",AFT:"AFT",MSK:"MSK",IRST:"IRST",FET:"FET",EET:"EET",CET:"CET",UTC:"UTC",GMT:"GMT",CVT:"CVT",GST:"GST",BRT:"BRT",NST:"NST",AST:"AST",EST:"EST",CST:"CST",MST:"MST",PST:"PST",AKST:"AKST",MIT:"MIT",HST:"HST",SST:"SST",BIT:"BIT",CHADT:"CHADT",NZDT:"NZDT",AEDT:"AEDT",ACDT:"ACDT",AZST:"AZST",IRDT:"IRDT",EEST:"EEST",CEST:"CEST",BST:"BST",PMDT:"PMDT",ADT:"ADT",NDT:"NDT",EDT:"EDT",CDT:"CDT",MDT:"MDT",PDT:"PDT",AKDT:"AKDT",HADT:"HADT"},Date.CultureStrings.lang="en-ZA",function(){var t=Date,e=Date.CultureStrings?Date.CultureStrings.lang:null,n={},r={getFromKey:function(t,e){var n;return n=Date.CultureStrings&&Date.CultureStrings[e]&&Date.CultureStrings[e][t]?Date.CultureStrings[e][t]:r.buildFromDefault(t),"/"===t.charAt(0)&&(n=r.buildFromRegex(t,e)),n},getFromObjectValues:function(t,e){var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[n]=r.getFromKey(t[n],e));return i},getFromObjectKeys:function(t,e){var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[r.getFromKey(n,e)]=t[n]);return i},getFromArray:function(t,e){for(var n=[],i=0;i<t.length;i++)i in t&&(n[i]=r.getFromKey(t[i],e));return n},buildFromDefault:function(t){var e,n,r,i;switch(t){case"name":e="en-US";break;case"englishName":case"nativeName":e="English (United States)";break;case"twoDigitYearMax":e=2049;break;case"firstDayOfWeek":e=0;break;default:e=t,r=t.split("_"),n=r.length,n>1&&"/"!==t.charAt(0)&&("initial"!==(i=r[n-1].toLowerCase())&&"abbr"!==i||(e=r[0]))}return e},buildFromRegex:function(t,e){return Date.CultureStrings&&Date.CultureStrings[e]&&Date.CultureStrings[e][t]?new RegExp(Date.CultureStrings[e][t],"i"):new RegExp(t.replace(new RegExp("/","g"),""),"i")}},i=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s=function(t,i){var s=i||e;return n[t]=t,"object"==typeof t?t instanceof Array?r.getFromArray(t,s):r.getFromObjectKeys(t,s):r.getFromKey(t,s)},a=function(t){var e=Date.Config.i18n+t+".js",n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");r.src=e;var i={done:function(){}};return r.onload=r.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(i.done(),n.removeChild(r))},setTimeout(function(){n.insertBefore(r,n.firstChild)},0),{done:function(t){i.done=function(){t&&setTimeout(t,0)}}}},o={buildFromMethodHash:function(t){var e;for(e in t)t.hasOwnProperty(e)&&(t[e]=o[t[e]]());return t},timeZoneDST:function(){return s({CHADT:"+1345",NZDT:"+1300",AEDT:"+1100",ACDT:"+1030",AZST:"+0500",IRDT:"+0430",EEST:"+0300",CEST:"+0200",BST:"+0100",PMDT:"-0200",ADT:"-0300",NDT:"-0230",EDT:"-0400",CDT:"-0500",MDT:"-0600",PDT:"-0700",AKDT:"-0800",HADT:"-0900"})},timeZoneStandard:function(){return s({LINT:"+1400",TOT:"+1300",CHAST:"+1245",NZST:"+1200",NFT:"+1130",SBT:"+1100",AEST:"+1000",ACST:"+0930",JST:"+0900",CWST:"+0845",CT:"+0800",ICT:"+0700",MMT:"+0630",BST:"+0600",NPT:"+0545",IST:"+0530",PKT:"+0500",AFT:"+0430",MSK:"+0400",IRST:"+0330",FET:"+0300",EET:"+0200",CET:"+0100",GMT:"+0000",UTC:"+0000",CVT:"-0100",GST:"-0200",BRT:"-0300",NST:"-0330",AST:"-0400",EST:"-0500",CST:"-0600",MST:"-0700",PST:"-0800",AKST:"-0900",MIT:"-0930",HST:"-1000",SST:"-1100",BIT:"-1200"})},timeZones:function(t){var e;t.timezones=[];for(e in t.abbreviatedTimeZoneStandard)t.abbreviatedTimeZoneStandard.hasOwnProperty(e)&&t.timezones.push({name:e,offset:t.abbreviatedTimeZoneStandard[e]});for(e in t.abbreviatedTimeZoneDST)t.abbreviatedTimeZoneDST.hasOwnProperty(e)&&t.timezones.push({name:e,offset:t.abbreviatedTimeZoneDST[e],dst:!0});return t.timezones},days:function(){return s(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"])},dayAbbr:function(){return s(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])},dayShortNames:function(){return s(["Su","Mo","Tu","We","Th","Fr","Sa"])},dayFirstLetters:function(){return s(["S_Sun_Initial","M_Mon_Initial","T_Tues_Initial","W_Wed_Initial","T_Thu_Initial","F_Fri_Initial","S_Sat_Initial"])},months:function(){return s(["January","February","March","April","May","June","July","August","September","October","November","December"])},monthAbbr:function(){return s(["Jan_Abbr","Feb_Abbr","Mar_Abbr","Apr_Abbr","May_Abbr","Jun_Abbr","Jul_Abbr","Aug_Abbr","Sep_Abbr","Oct_Abbr","Nov_Abbr","Dec_Abbr"])},formatPatterns:function(){return r.getFromObjectValues({shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},Date.i18n.currentLanguage())},regex:function(){return r.getFromObjectValues({inTheMorning:"/( in the )(morn(ing)?)\\b/",thisMorning:"/(this )(morn(ing)?)\\b/",amThisMorning:"/(\b\\d(am)? )(this )(morn(ing)?)/",inTheEvening:"/( in the )(even(ing)?)\\b/",thisEvening:"/(this )(even(ing)?)\\b/",pmThisEvening:"/(\b\\d(pm)? )(this )(even(ing)?)/",jan:"/jan(uary)?/",feb:"/feb(ruary)?/",mar:"/mar(ch)?/",apr:"/apr(il)?/",may:"/may/",jun:"/jun(e)?/",jul:"/jul(y)?/",aug:"/aug(ust)?/",sep:"/sep(t(ember)?)?/",oct:"/oct(ober)?/",nov:"/nov(ember)?/",dec:"/dec(ember)?/",sun:"/^su(n(day)?)?/",mon:"/^mo(n(day)?)?/",tue:"/^tu(e(s(day)?)?)?/",wed:"/^we(d(nesday)?)?/",thu:"/^th(u(r(s(day)?)?)?)?/",fri:"/fr(i(day)?)?/",sat:"/^sa(t(urday)?)?/",future:"/^next/",past:"/^last|past|prev(ious)?/",add:"/^(\\+|aft(er)?|from|hence)/",subtract:"/^(\\-|bef(ore)?|ago)/",yesterday:"/^yes(terday)?/",today:"/^t(od(ay)?)?/",tomorrow:"/^tom(orrow)?/",now:"/^n(ow)?/",millisecond:"/^ms|milli(second)?s?/",second:"/^sec(ond)?s?/",minute:"/^mn|min(ute)?s?/",hour:"/^h(our)?s?/",week:"/^w(eek)?s?/",month:"/^m(onth)?s?/",day:"/^d(ay)?s?/",year:"/^y(ear)?s?/",shortMeridian:"/^(a|p)/",longMeridian:"/^(a\\.?m?\\.?|p\\.?m?\\.?)/",timezone:"/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/",ordinalSuffix:"/^\\s*(st|nd|rd|th)/",timeContext:"/^\\s*(\\:|a(?!u|p)|p)/"},Date.i18n.currentLanguage())}},u=function(){var t=r.getFromObjectValues({name:"name",englishName:"englishName",nativeName:"nativeName",amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:"firstDayOfWeek",twoDigitYearMax:"twoDigitYearMax",dateElementOrder:"mdy"},Date.i18n.currentLanguage()),e=o.buildFromMethodHash({dayNames:"days",abbreviatedDayNames:"dayAbbr",shortestDayNames:"dayShortNames",firstLetterDayNames:"dayFirstLetters",monthNames:"months",abbreviatedMonthNames:"monthAbbr",formatPatterns:"formatPatterns",regexPatterns:"regex",abbreviatedTimeZoneDST:"timeZoneDST",abbreviatedTimeZoneStandard:"timeZoneStandard"});return i(t,e),o.timeZones(t),t};t.i18n={__:function(t,e){return s(t,e)},currentLanguage:function(){return e||"en-US"},setLanguage:function(n,r,i){var s=!1;if(r||"en-US"===n||Date.CultureStrings&&Date.CultureStrings[n])e=n,Date.CultureStrings=Date.CultureStrings||{},Date.CultureStrings.lang=n,Date.CultureInfo=new u;else if(!Date.CultureStrings||!Date.CultureStrings[n])if("undefined"!=typeof exports&&this.exports!==exports)try{require("../i18n/"+n+".js"),e=n,Date.CultureStrings.lang=n,Date.CultureInfo=new u}catch(t){throw new Error("The DateJS IETF language tag '"+n+"' could not be loaded by Node. It likely does not exist.")}else{if(!Date.Config||!Date.Config.i18n)return Date.console.error("The DateJS IETF language tag '"+n+"' is not available and has not been loaded."),!1;s=!0,a(n).done(function(){e=n,Date.CultureStrings=Date.CultureStrings||{},Date.CultureStrings.lang=n,Date.CultureInfo=new u,t.Parsing.Normalizer.buildReplaceData(),t.Grammar&&t.Grammar.buildGrammarFormats(),i&&setTimeout(i,0)})}t.Parsing.Normalizer.buildReplaceData(),t.Grammar&&t.Grammar.buildGrammarFormats(),!s&&i&&setTimeout(i,0)},getLoggedKeys:function(){return n},updateCultureInfo:function(){Date.CultureInfo=new u}},t.i18n.updateCultureInfo()}(),function(){var t=Date,e=t.prototype,n=function(t,e){return e||(e=2),("000"+t).slice(-1*e)};"undefined"!=typeof window&&"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log?t.console=console:t.console={log:function(){},error:function(){}},t.Config=t.Config||{},t.initOverloads=function(){t.now?t._now||(t._now=t.now):t._now=function(){return(new Date).getTime()},t.now=function(e){return e?t.present():t._now()},e.toISOString||(e.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}),e._toString===undefined&&(e._toString=e.toString)},t.initOverloads(),t.today=function(){return(new Date).clearTime()},t.present=function(){return new Date},t.compare=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(t+" - "+e);if(t instanceof Date&&e instanceof Date)return t<e?-1:t>e?1:0;throw new TypeError(t+" - "+e)},t.equals=function(t,e){return 0===t.compareTo(e)},t.getDayName=function(t){return Date.CultureInfo.dayNames[t]},t.getDayNumberFromName=function(t){for(var e=Date.CultureInfo.dayNames,n=Date.CultureInfo.abbreviatedDayNames,r=Date.CultureInfo.shortestDayNames,i=t.toLowerCase(),s=0;s<e.length;s++)if(e[s].toLowerCase()===i||n[s].toLowerCase()===i||r[s].toLowerCase()===i)return s;return-1},t.getMonthNumberFromName=function(t){for(var e=Date.CultureInfo.monthNames,n=Date.CultureInfo.abbreviatedMonthNames,r=t.toLowerCase(),i=0;i<e.length;i++)if(e[i].toLowerCase()===r||n[i].toLowerCase()===r)return i;return-1},t.getMonthName=function(t){return Date.CultureInfo.monthNames[t]},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.getDaysInMonth=function(e,n){return!n&&t.validateMonth(e)&&(n=e,e=Date.today().getFullYear()),[31,t.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][n]},e.getDaysInMonth=function(){return t.getDaysInMonth(this.getFullYear(),this.getMonth())},t.getTimezoneAbbreviation=function(t,e){var n,r=e?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard;for(n in r)if(r.hasOwnProperty(n)&&r[n]===t)return n;return null},t.getTimezoneOffset=function(t,e){var n,r=[],i=Date.CultureInfo.timezones;for(t||(t=(new Date).getTimezone()),n=0;n<i.length;n++)i[n].name===t.toUpperCase()&&r.push(n);if(!i[r[0]])return null;if(1===r.length||!e)return i[r[0]].offset;for(n=0;n<r.length;n++)if(i[r[n]].dst)return i[r[n]].offset},t.getQuarter=function(t){return t=t||new Date,[1,2,3,4][Math.floor(t.getMonth()/3)]},t.getDaysLeftInQuarter=function(t){t=t||new Date;var e=new Date(t);return e.setMonth(e.getMonth()+3-e.getMonth()%3,0),Math.floor((e-t)/864e5)};var r=function(t,e,n,r){if(r=r||"Object",void 0===t)return!1;if("number"!=typeof t)throw new TypeError(t+" is not a Number.");return!(t<e||t>n)};t.validateMillisecond=function(t){return r(t,0,999,"millisecond")},t.validateSecond=function(t){return r(t,0,59,"second")},t.validateMinute=function(t){return r(t,0,59,"minute")},t.validateHour=function(t){return r(t,0,23,"hour")},t.validateDay=function(e,n,i){return n!==undefined&&null!==n&&i!==undefined&&null!==i&&r(e,1,t.getDaysInMonth(n,i),"day")},t.validateWeek=function(t){return r(t,0,53,"week")},t.validateMonth=function(t){return r(t,0,11,"month")},t.validateYear=function(t){return r(t,-271822,275760,"year")},t.validateTimezone=function(t){return 1==={ACDT:1,ACST:1,ACT:1,ADT:1,AEDT:1,AEST:1,AFT:1,AKDT:1,AKST:1,AMST:1,AMT:1,ART:1,AST:1,AWDT:1,AWST:1,AZOST:1,AZT:1,BDT:1,BIOT:1,BIT:1,BOT:1,BRT:1,BST:1,BTT:1,CAT:1,CCT:1,CDT:1,CEDT:1,CEST:1,CET:1,CHADT:1,CHAST:1,CHOT:1,ChST:1,CHUT:1,CIST:1,CIT:1,CKT:1,CLST:1,CLT:1,COST:1,COT:1,CST:1,CT:1,CVT:1,CWST:1,CXT:1,DAVT:1,DDUT:1,DFT:1,EASST:1,EAST:1,EAT:1,ECT:1,EDT:1,EEDT:1,EEST:1,EET:1,EGST:1,EGT:1,EIT:1,EST:1,FET:1,FJT:1,FKST:1,FKT:1,FNT:1,GALT:1,GAMT:1,GET:1,GFT:1,GILT:1,GIT:1,GMT:1,GST:1,GYT:1,HADT:1,HAEC:1,HAST:1,HKT:1,HMT:1,HOVT:1,HST:1,ICT:1,IDT:1,IOT:1,IRDT:1,IRKT:1,IRST:1,IST:1,JST:1,KGT:1,KOST:1,KRAT:1,KST:1,LHST:1,LINT:1,MAGT:1,MART:1,MAWT:1,MDT:1,MET:1,MEST:1,MHT:1,MIST:1,MIT:1,MMT:1,MSK:1,MST:1,MUT:1,MVT:1,MYT:1,NCT:1,NDT:1,NFT:1,NPT:1,NST:1,NT:1,NUT:1,NZDT:1,NZST:1,OMST:1,ORAT:1,PDT:1,PET:1,PETT:1,PGT:1,PHOT:1,PHT:1,PKT:1,PMDT:1,PMST:1,PONT:1,PST:1,PYST:1,PYT:1,RET:1,ROTT:1,SAKT:1,SAMT:1,SAST:1,SBT:1,SCT:1,SGT:1,SLST:1,SRT:1,SST:1,SYOT:1,TAHT:1,THA:1,TFT:1,TJT:1,TKT:1,TLT:1,TMT:1,TOT:1,TVT:1,UCT:1,ULAT:1,UTC:1,UYST:1,UYT:1,UZT:1,VET:1,VLAT:1,VOLT:1,VOST:1,VUT:1,WAKT:1,WAST:1,WAT:1,WEDT:1,WEST:1,WET:1,WST:1,YAKT:1,YEKT:1,Z:1}[t]},t.validateTimezoneOffset=function(t){return t>-841&&t<721}}(),function(){var t=Date,e=t.prototype,n=function(t,e){return e||(e=2),("000"+t).slice(-1*e)},r=function(e){var n,r,i={},s=this;r=function(n,r,i){if("day"===n){var a=e.month!==undefined?e.month:s.getMonth(),o=e.year!==undefined?e.year:s.getFullYear();return t[r](i,o,a)}return t[r](i)};for(n in e)if(hasOwnProperty.call(e,n)){var a="validate"+n.charAt(0).toUpperCase()+n.slice(1);t[a]&&null!==e[n]&&r(n,a,e[n])&&(i[n]=e[n])}return i};e.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this},e.setTimeToNow=function(){var t=new Date;return this.setHours(t.getHours()),this.setMinutes(t.getMinutes()),this.setSeconds(t.getSeconds()),this.setMilliseconds(t.getMilliseconds()),this},e.clone=function(){return new Date(this.getTime())},e.compareTo=function(t){return Date.compare(this,t)},e.equals=function(t){return Date.equals(this,t!==undefined?t:new Date)},e.between=function(t,e){return this.getTime()>=t.getTime()&&this.getTime()<=e.getTime()},e.isAfter=function(t){return 1===this.compareTo(t||new Date)},e.isBefore=function(t){return-1===this.compareTo(t||new Date)},e.isToday=e.isSameDay=function(t){return this.clone().clearTime().equals((t||new Date).clone().clearTime())},e.addMilliseconds=function(t){return t?(this.setTime(this.getTime()+1*t),this):this},e.addSeconds=function(t){return t?this.addMilliseconds(1e3*t):this},e.addMinutes=function(t){return t?this.addMilliseconds(6e4*t):this},e.addHours=function(t){return t?this.addMilliseconds(36e5*t):this},e.addDays=function(t){return t?(this.setDate(this.getDate()+1*t),this):this},e.addWeekdays=function(t){if(!t)return this;var e=this.getDay(),n=Math.ceil(Math.abs(t)/7);if(0!==e&&6!==e||t>0&&(this.next().monday(),this.addDays(-1),e=this.getDay()),t<0){for(;t<0;)this.addDays(-1),0!==(e=this.getDay())&&6!==e&&t++;return this}return(t>5||6-e<=t)&&(t+=2*n),this.addDays(t)},e.addWeeks=function(t){return t?this.addDays(7*t):this},e.addMonths=function(e){if(!e)return this;var n=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+1*e),this.setDate(Math.min(n,t.getDaysInMonth(this.getFullYear(),this.getMonth()))),this},e.addQuarters=function(t){return t?this.addMonths(3*t):this},e.addYears=function(t){return t?this.addMonths(12*t):this},e.add=function(t){if("number"==typeof t)return this._orient=t,this;var e=t;return e.day&&e.day-this.getDate()!=0&&this.setDate(e.day),e.milliseconds&&this.addMilliseconds(e.milliseconds),e.seconds&&this.addSeconds(e.seconds),e.minutes&&this.addMinutes(e.minutes),e.hours&&this.addHours(e.hours),e.weeks&&this.addWeeks(e.weeks),e.months&&this.addMonths(e.months),e.years&&this.addYears(e.years),e.days&&this.addDays(e.days),this},e.getWeek=function(t){var e,n=new Date(this.valueOf());t?(n.addMinutes(n.getTimezoneOffset()),e=n.clone()):e=this;var r=(e.getDay()+6)%7;n.setDate(n.getDate()-r+3);var i=n.valueOf();return n.setMonth(0,1),4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),1+Math.ceil((i-n)/6048e5)},e.getISOWeek=function(){return n(this.getWeek(!0))},e.setWeek=function(t){return t-this.getWeek()==0?1!==this.getDay()?this.moveToDayOfWeek(1,this.getDay()>1?-1:1):this:this.moveToDayOfWeek(1,this.getDay()>1?-1:1).addWeeks(t-this.getWeek())},e.setQuarter=function(t){var e=Math.abs(3*(t-1)+1);return this.setMonth(e,1)},e.getQuarter=function(){return Date.getQuarter(this)},e.getDaysLeftInQuarter=function(){return Date.getDaysLeftInQuarter(this)},e.moveToNthOccurrence=function(t,e){if("Weekday"===t){if(e>0)this.moveToFirstDayOfMonth(),this.is().weekday()&&(e-=1);else{if(!(e<0))return this;this.moveToLastDayOfMonth(),this.is().weekday()&&(e+=1)}return this.addWeekdays(e)}var n=0;if(e>0)n=e-1;else if(-1===e)return this.moveToLastDayOfMonth(),this.getDay()!==t&&this.moveToDayOfWeek(t,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(t,1).addWeeks(n)};var i=function(t,e,n){return function(r,i){var s=(r-this[t]()+n*(i||1))%n;return this[e](0===s?s+=n*(i||1):s)}};e.moveToDayOfWeek=i("getDay","addDays",7),e.moveToMonth=i("getMonth","addMonths",12),e.getOrdinate=function(){var t=this.getDate();return s(t)},e.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864e5)+1},e.getTimezone=function(){return t.getTimezoneAbbreviation(this.getUTCOffset(),this.isDaylightSavingTime())},e.setTimezoneOffset=function(t){var e=this.getTimezoneOffset(),n=-6*Number(t)/10;return n||0===n?this.addMinutes(n-e):this},e.setTimezone=function(e){return this.setTimezoneOffset(t.getTimezoneOffset(e))},e.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()},e.isDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==this.getTimezoneOffset()},e.getUTCOffset=function(t){var e,n=-10*(t||this.getTimezoneOffset())/6;return n<0?(e=(n-1e4).toString(),e.charAt(0)+e.substr(2)):(e=(n+1e4).toString(),"+"+e.substr(1))},e.getElapsed=function(t){return(t||new Date)-this},e.set=function(t){t=r.call(this,t);var e;for(e in t)if(hasOwnProperty.call(t,e)){var n,i,s=e.charAt(0).toUpperCase()+e.slice(1);"week"!==e&&"month"!==e&&"timezone"!==e&&"timezoneOffset"!==e&&(s+="s"),n="add"+s,i="get"+s,"month"===e?n+="s":"year"===e&&(i="getFullYear"),"day"!==e&&"timezone"!==e&&"timezoneOffset"!==e&&"week"!==e&&"hour"!==e?this[n](t[e]-this[i]()):"timezone"!==e&&"timezoneOffset"!==e&&"week"!==e&&"hour"!==e||this["set"+s](t[e])}return t.day&&this.addDays(t.day-this.getDate()),this},e.moveToFirstDayOfMonth=function(){return this.set({day:1})},e.moveToLastDayOfMonth=function(){return this.set({day:t.getDaysInMonth(this.getFullYear(),this.getMonth())})};var s=function(t){switch(1*t){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},a=function(t){var e,n=Date.CultureInfo.formatPatterns;switch(t){case"d":return this.toString(n.shortDate);case"D":return this.toString(n.longDate);case"F":return this.toString(n.fullDateTime);case"m":return this.toString(n.monthDay);case"r":case"R":return e=this.clone().addMinutes(this.getTimezoneOffset()),e.toString(n.rfc1123)+" GMT";case"s":return this.toString(n.sortableDateTime);case"t":return this.toString(n.shortTime);case"T":return this.toString(n.longTime);case"u":return e=this.clone().addMinutes(this.getTimezoneOffset()),e.toString(n.universalSortableDateTime);case"y":return this.toString(n.yearMonth);default:return!1}},o=function(e){return function(r){if("\\"===r.charAt(0))return r.replace("\\","");switch(r){case"hh":return n(e.getHours()<13?0===e.getHours()?12:e.getHours():e.getHours()-12);case"h":return e.getHours()<13?0===e.getHours()?12:e.getHours():e.getHours()-12;case"HH":return n(e.getHours());case"H":return e.getHours();case"mm":return n(e.getMinutes());case"m":return e.getMinutes();case"ss":return n(e.getSeconds());case"s":return e.getSeconds();case"yyyy":return n(e.getFullYear(),4);case"yy":return n(e.getFullYear());case"y":return e.getFullYear();case"E":case"dddd":return Date.CultureInfo.dayNames[e.getDay()];case"ddd":return Date.CultureInfo.abbreviatedDayNames[e.getDay()];case"dd":return n(e.getDate());case"d":return e.getDate();case"MMMM":return Date.CultureInfo.monthNames[e.getMonth()];case"MMM":return Date.CultureInfo.abbreviatedMonthNames[e.getMonth()];case"MM":return n(e.getMonth()+1);case"M":return e.getMonth()+1;case"t":return e.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return e.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"S":return s(e.getDate());case"W":return e.getWeek();case"WW":return e.getISOWeek();case"Q":return"Q"+e.getQuarter();case"q":return String(e.getQuarter());case"z":return e.getTimezone();case"Z":case"X":return Date.getTimezoneOffset(e.getTimezone());case"ZZ":return-60*e.getTimezoneOffset();case"u":return e.getDay();case"L":return t.isLeapYear(e.getFullYear())?1:0;case"B":return"@"+(e.getUTCSeconds()+60*e.getUTCMinutes()+3600*(e.getUTCHours()+1))/86.4;default:return r}}};e.toString=function(t,e){if(!e&&t&&1===t.length&&(output=a.call(this,t),output))return output;var n=o(this);return t?t.replace(/((\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S|q|Q|WW?W?W?)(?![^\[]*\]))/g,n).replace(/\[|\]/g,""):this._toString()}}(),function(){var t=Date,e=t.prototype,n=Number.prototype;e._orient=1,e._nth=null,e._is=!1,e._same=!1,e._isSecond=!1,n._dateElement="days",e.next=function(){return this._move=!0,this._orient=1,this},t.next=function(){return t.today().next()},e.last=e.prev=e.previous=function(){return this._move=!0,this._orient=-1,this},t.last=t.prev=t.previous=function(){return t.today().last()},e.is=function(){return this._is=!0,this},e.same=function(){return this._same=!0,this._isSecond=!1,this},e.today=function(){return this.same().day()},e.weekday=function(){return this._nth?h("Weekday").call(this):this._move?this.addWeekdays(this._orient):!!this._is&&(this._is=!1,!this.is().sat()&&!this.is().sun())},e.weekend=function(){return!!this._is&&(this._is=!1,this.is().sat()||this.is().sun())},e.at=function(e){return"string"==typeof e?t.parse(this.toString("d")+" "+e):this.set(e)},n.fromNow=n.after=function(t){var e={};return e[this._dateElement]=this,(t?t.clone():new Date).add(e)},n.ago=n.before=function(t){var e={};return e["s"!==this._dateElement[this._dateElement.length-1]?this._dateElement+"s":this._dateElement]=-1*this,(t?t.clone():new Date).add(e)};var r,i="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),s="january february march april may june july august september october november december".split(/\s/),a="Millisecond Second Minute Hour Day Week Month Year Quarter Weekday".split(/\s/),o="Milliseconds Seconds Minutes Hours Date Week Month FullYear Quarter".split(/\s/),u="final first second third fourth fifth".split(/\s/);e.toObject=function(){for(var t={},e=0;e<a.length;e++)this["get"+o[e]]&&(t[a[e].toLowerCase()]=this["get"+o[e]]());return t},t.fromObject=function(t){return t.week=null,Date.today().set(t)};var h=function(e){return function(){if(this._is)return this._is=!1,this.getDay()===e;if(this._move&&(this._move=null),null!==this._nth){this._isSecond&&this.addSeconds(-1*this._orient),this._isSecond=!1;var n=this._nth;this._nth=null;var r=this.clone().moveToLastDayOfMonth();if(this.moveToNthOccurrence(e,n),this>r)throw new RangeError(t.getDayName(e)+" does not occur "+n+" times in the month of "+t.getMonthName(r.getMonth())+" "+r.getFullYear()+".");return this}return this.moveToDayOfWeek(e,this._orient)}},d=function(e){return function(){var n=t.today(),r=e-n.getDay();return 0===e&&1===Date.CultureInfo.firstDayOfWeek&&0!==n.getDay()&&(r+=7),n.addDays(r)}},c=function(t){return function(){return this._is?(this._is=!1,this.getMonth()===t):this.moveToMonth(t,this._orient)}},l=function(e){return function(){return t.today().set({month:e,day:1})}},f=function(n,r,i){for(var s=0;s<n.length;s++)t[n[s].toUpperCase()]=t[n[s].toUpperCase().substring(0,3)]=s,t[n[s]]=t[n[s].substring(0,3)]=r(s),e[n[s]]=e[n[s].substring(0,3)]=i(s)};f(i,d,h),f(s,l,c);for(var m=function(t){return function(){if(this._isSecond)return this._isSecond=!1,this;if(this._same){this._same=this._is=!1;var e=this.toObject(),n=(arguments[0]||new Date).toObject(),r="",i=t.toLowerCase();i="s"===i[i.length-1]?i.substring(0,i.length-1):i;for(var s=a.length-1;s>-1;s--){if(r=a[s].toLowerCase(),e[r]!==n[r])return!1;if(i===r)break}return!0}return"s"!==t.substring(t.length-1)&&(t+="s"),this._move&&(this._move=null),this["add"+t](this._orient)}},y=function(t){return function(){return this._dateElement=t,this}},g=0;g<a.length;g++)"weekday"!==(r=a[g].toLowerCase())&&(e[r]=e[r+"s"]=m(a[g]),n[r]=n[r+"s"]=y(r+"s"));e._ss=m("Second");for(var T=function(t){return function(e){return this._same?this._ss(arguments[0]):e||0===e?this.moveToNthOccurrence(e,t):(this._nth=t,2!==t||e!==undefined&&null!==e?this:(this._isSecond=!0,this.addSeconds(this._orient)))}},D=0;D<u.length;D++)e[u[D]]=T(0===D?-1:D)}(),function(){"use strict";Date.Parsing={Exception:function(t){this.message="Parse error at '"+t.substring(0,10)+" ...'"}};var t=Date.Parsing,e={standard:[0,31,59,90,120,151,181,212,243,273,304,334],leap:[0,31,60,91,121,152,182,213,244,274,305,335]};t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0};var n={multiReplace:function(t,e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r;"function"==typeof e[n]||(r=e[n]instanceof RegExp?e[n]:new RegExp(e[n],"g")),t=t.replace(r,n)}return t},getDayOfYearFromWeek:function(t){var e,n,r;return t.weekDay=t.weekDay||0===t.weekDay?t.weekDay:1,e=new Date(t.year,0,4),n=0===e.getDay()?7:e.getDay(),r=n+3,t.dayOfYear=7*t.week+(0===t.weekDay?7:t.weekDay)-r,t},getDayOfYear:function(t,e){t.dayOfYear||(t=n.getDayOfYearFromWeek(t));for(var r=0;r<=e.length;r++){if(t.dayOfYear<e[r]||r===e.length){t.day=t.day?t.day:t.dayOfYear-e[r-1];break}t.month=r}return t},adjustForTimeZone:function(t,e){var n;return"Z"===t.zone.toUpperCase()||0===t.zone_hours&&0===t.zone_minutes?n=-e.getTimezoneOffset():(n=60*t.zone_hours+(t.zone_minutes||0),"+"===t.zone_sign&&(n*=-1),n-=e.getTimezoneOffset()),e.setMinutes(e.getMinutes()+n),e},setDefaults:function(t){return t.year=t.year||Date.today().getFullYear(),t.hours=t.hours||0,t.minutes=t.minutes||0,t.seconds=t.seconds||0,t.milliseconds=t.milliseconds||0,(t.month||!t.week&&!t.dayOfYear)&&(t.month=t.month||0,t.day=t.day||1),t},dataNum:function(t,e,n,r){var i=1*t;return e?r?t?1*e(t):t:t?e(i):t:n?t&&void 0!==t?i:t:t?i:t},timeDataProcess:function(t){var e={};for(var r in t.data)t.data.hasOwnProperty(r)&&(e[r]=t.ignore[r]?t.data[r]:n.dataNum(t.data[r],t.mods[r],t.explict[r],t.postProcess[r]));return t.data.secmins&&(t.data.secmins=60*t.data.secmins.replace(",","."),e.minutes?e.seconds||(e.seconds=t.data.secmins):e.minutes=t.data.secmins,delete t.secmins),e},buildTimeObjectFromData:function(t){return n.timeDataProcess({data:{year:t[1],month:t[5],day:t[7],week:t[8],dayOfYear:t[10],hours:t[15],zone_hours:t[23],zone_minutes:t[24],zone:t[21],zone_sign:t[22],weekDay:t[9],minutes:t[16],seconds:t[19],milliseconds:t[20],secmins:t[18]},mods:{month:function(t){return t-1},weekDay:function(t){return t=Math.abs(t),7===t?0:t},minutes:function(t){return t.replace(":","")},seconds:function(t){return Math.floor(1*t.replace(":","").replace(",","."))},milliseconds:function(t){return 1e3*t.replace(",",".")}},postProcess:{minutes:!0,seconds:!0,milliseconds:!0},explict:{zone_hours:!0,zone_minutes:!0},ignore:{zone:!0,zone_sign:!0,secmins:!0}})},addToHash:function(t,e,n){e=e,n=n;for(var r=e.length,i=0;i<r;i++)t[e[i]]=n[i];return t},combineRegex:function(t,e){return new RegExp("(("+t.source+")\\s("+e.source+"))")},getDateNthString:function(t,e,n){return t?Date.today().addDays(n).toString("d"):e?Date.today().last()[n]().toString("d"):void 0},buildRegexData:function(t){for(var e=[],n=t.length,r=0;r<n;r++)"[object Array]"===Object.prototype.toString.call(t[r])?e.push(this.combineRegex(t[r][0],t[r][1])):e.push(t[r]);return e}};t.processTimeObject=function(r){var i,s;return n.setDefaults(r),s=t.isLeapYear(r.year)?e.leap:e.standard,r.month||!r.week&&!r.dayOfYear?r.dayOfYear=s[r.month]+r.day:n.getDayOfYear(r,s),i=new Date(r.year,r.month,r.day,r.hours,r.minutes,r.seconds,r.milliseconds),r.zone&&n.adjustForTimeZone(r,i),i},t.ISO={regex:/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-4])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?\s?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,parse:function(e){var r,i=e.match(this.regex);return i&&i.length?(r=n.buildTimeObjectFromData(i),r.year&&(r.year||r.month||r.day||r.week||r.dayOfYear)?t.processTimeObject(r):null):null}},t.Numeric={isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},regex:/\b([0-1]?[0-9])([0-3]?[0-9])([0-2]?[0-9]?[0-9][0-9])\b/i,parse:function(e){var n,r,i={},s=Date.CultureInfo.dateElementOrder.split("");if(!this.isNumeric(e)||"+"===e[0]&&"-"===e[0])return null;if(e.length<5&&e.indexOf(".")<0&&e.indexOf("/")<0)return i.year=e,t.processTimeObject(i);if(!(n=e.match(this.regex))||!n.length)return null;for(r=0;r<s.length;r++)switch(s[r]){case"d":i.day=n[r+1];break;case"m":i.month=n[r+1]-1;break;case"y":i.year=n[r+1]}return t.processTimeObject(i)}},t.Normalizer={regexData:function(){var t=Date.CultureInfo.regexPatterns;return n.buildRegexData([t.tomorrow,t.yesterday,[t.past,t.mon],[t.past,t.tue],[t.past,t.wed],[t.past,t.thu],[t.past,t.fri],[t.past,t.sat],[t.past,t.sun]])},basicReplaceHash:function(){var t=Date.CultureInfo.regexPatterns;return{January:t.jan.source,February:t.feb,March:t.mar,April:t.apr,May:t.may,June:t.jun,July:t.jul,August:t.aug,September:t.sep,October:t.oct,November:t.nov,December:t.dec,"":/\bat\b/gi," ":/\s{2,}/,am:t.inTheMorning,"9am":t.thisMorning,pm:t.inTheEvening,"7pm":t.thisEvening}},keys:function(){
  return[n.getDateNthString(!0,!1,1),n.getDateNthString(!0,!1,-1),n.getDateNthString(!1,!0,"monday"),n.getDateNthString(!1,!0,"tuesday"),n.getDateNthString(!1,!0,"wednesday"),n.getDateNthString(!1,!0,"thursday"),n.getDateNthString(!1,!0,"friday"),n.getDateNthString(!1,!0,"saturday"),n.getDateNthString(!1,!0,"sunday")]},buildRegexFunctions:function(){var t=Date.CultureInfo.regexPatterns,e=Date.i18n.__,n=new RegExp("(\\b\\d\\d?("+e("AM")+"|"+e("PM")+")? )("+t.tomorrow.source.slice(1)+")","i"),r=new RegExp(t.today.source+"(?!\\s*([+-]))\\b");this.replaceFuncs=[[r,function(t){return t.length>1?Date.today().toString("d"):t}],[n,function(t,e){return Date.today().addDays(1).toString("d")+" "+e}],[t.amThisMorning,function(t,e){return e}],[t.pmThisEvening,function(t,e){return e}]]},buildReplaceData:function(){this.buildRegexFunctions(),this.replaceHash=n.addToHash(this.basicReplaceHash(),this.keys(),this.regexData())},stringReplaceFuncs:function(t){for(var e=0;e<this.replaceFuncs.length;e++)t=t.replace(this.replaceFuncs[e][0],this.replaceFuncs[e][1]);return t},parse:function(e){e=this.stringReplaceFuncs(e),e=n.multiReplace(e,this.replaceHash);try{var r=e.split(/([\s\-\.\,\/\x27]+)/);3===r.length&&t.Numeric.isNumeric(r[0])&&t.Numeric.isNumeric(r[2])&&r[2].length>=4&&"d"===Date.CultureInfo.dateElementOrder[0]&&(e="1/"+r[0]+"/"+r[2])}catch(t){}return e}},t.Normalizer.buildReplaceData()}(),function(){for(var t=Date.Parsing,e=t.Operators={rtoken:function(e){return function(n){var r=n.match(e);if(r)return[r[0],n.substring(r[0].length)];throw new t.Exception(n)}},token:function(){return function(t){return e.rtoken(new RegExp("^\\s*"+t+"\\s*"))(t)}},stoken:function(t){return e.rtoken(new RegExp("^"+t))},until:function(t){return function(e){for(var n=[],r=null;e.length;){try{r=t.call(this,e)}catch(t){n.push(r[0]),e=r[1];continue}break}return[n,e]}},many:function(t){return function(e){for(var n=[],r=null;e.length;){try{r=t.call(this,e)}catch(t){return[n,e]}n.push(r[0]),e=r[1]}return[n,e]}},optional:function(t){return function(e){var n=null;try{n=t.call(this,e)}catch(t){return[null,e]}return[n[0],n[1]]}},not:function(e){return function(n){try{e.call(this,n)}catch(t){return[null,n]}throw new t.Exception(n)}},ignore:function(t){return t?function(e){var n=null;return n=t.call(this,e),[null,n[1]]}:null},product:function(){for(var t=arguments[0],n=Array.prototype.slice.call(arguments,1),r=[],i=0;i<t.length;i++)r.push(e.each(t[i],n));return r},cache:function(e){var n={},r=0,i=[],s=Date.Config.CACHE_MAX||1e5,a=null,o=function(){if(r===s)for(var t=0;t<10;t++){var e=i.shift();e&&(delete n[e],r--)}};return function(s){o();try{a=n[s]=n[s]||e.call(this,s)}catch(t){a=n[s]=t}if(r++,i.push(s),a instanceof t.Exception)throw a;return a}},any:function(){var e=arguments;return function(n){for(var r=null,i=0;i<e.length;i++)if(null!=e[i]){try{r=e[i].call(this,n)}catch(t){r=null}if(r)return r}throw new t.Exception(n)}},each:function(){var e=arguments;return function(n){for(var r=[],i=null,s=0;s<e.length;s++)if(null!=e[s]){try{i=e[s].call(this,n)}catch(e){throw new t.Exception(n)}r.push(i[0]),n=i[1]}return[r,n]}},all:function(){var t=arguments,e=e;return e.each(e.optional(t))},sequence:function(n,r,i){return r=r||e.rtoken(/^\s*/),i=i||null,1===n.length?n[0]:function(e){for(var s=null,a=null,o=[],u=0;u<n.length;u++){try{s=n[u].call(this,e)}catch(t){break}o.push(s[0]);try{a=r.call(this,s[1])}catch(t){a=null;break}e=a[1]}if(!s)throw new t.Exception(e);if(a)throw new t.Exception(a[1]);if(i)try{s=i.call(this,s[1])}catch(e){throw new t.Exception(s[1])}return[o,s?s[1]:e]}},between:function(t,n,i){i=i||t;var s=e.each(e.ignore(t),n,e.ignore(i));return function(t){var e=s.call(this,t);return[[e[0][0],r[0][2]],e[1]]}},list:function(t,n,r){return n=n||e.rtoken(/^\s*/),r=r||null,t instanceof Array?e.each(e.product(t.slice(0,-1),e.ignore(n)),t.slice(-1),e.ignore(r)):e.each(e.many(e.each(t,e.ignore(n))),px,e.ignore(r))},set:function(n,r,i){return r=r||e.rtoken(/^\s*/),i=i||null,function(s){for(var a=null,o=null,u=null,h=null,d=[[],s],c=!1,l=0;l<n.length;l++){u=null,o=null,a=null,c=1===n.length;try{a=n[l].call(this,s)}catch(t){continue}if(h=[[a[0]],a[1]],a[1].length>0&&!c)try{u=r.call(this,a[1])}catch(t){c=!0}else c=!0;if(c||0!==u[1].length||(c=!0),!c){for(var f=[],m=0;m<n.length;m++)l!==m&&f.push(n[m]);o=e.set(f,r).call(this,u[1]),o[0].length>0&&(h[0]=h[0].concat(o[0]),h[1]=o[1])}if(h[1].length<d[1].length&&(d=h),0===d[1].length)break}if(0===d[0].length)return d;if(i){try{u=i.call(this,d[1])}catch(e){throw new t.Exception(d[1])}d[1]=u[1]}return d}},forward:function(t,e){return function(n){return t[e].call(this,n)}},replace:function(t,e){return function(n){var r=t.call(this,n);return[e,r[1]]}},process:function(t,e){return function(n){var r=t.call(this,n);return[e.call(this,r[0]),r[1]]}},min:function(e,n){return function(r){var i=n.call(this,r);if(i[0].length<e)throw new t.Exception(r);return i}}},n=function(t){function e(){var e,n,r=null,i=[];return arguments.length>1?r=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&(r=arguments[0]),r?(e=r.shift(),e.length>0?(r.unshift(e[n]),i.push(t.apply(null,r)),r.shift(),i):void 0):t.apply(null,arguments)}return e},i="optional not ignore cache".split(/\s/),s=0;s<i.length;s++)e[i[s]]=n(e[i[s]]);for(var a=function(t){return function(){return arguments[0]instanceof Array?t.apply(null,arguments[0]):t.apply(null,arguments)}},o="each any all".split(/\s/),u=0;u<o.length;u++)e[o[u]]=a(e[o[u]])}(),function(){var t=Date,e=function(t){for(var n=[],r=0;r<t.length;r++)t[r]instanceof Array?n=n.concat(e(t[r])):t[r]&&n.push(t[r]);return n},n=function(){if(this.meridian&&(this.hour||0===this.hour)){if("a"===this.meridian&&this.hour>11&&Date.Config.strict24hr)throw"Invalid hour and meridian combination";if("p"===this.meridian&&this.hour<12&&Date.Config.strict24hr)throw"Invalid hour and meridian combination";"p"===this.meridian&&this.hour<12?this.hour=this.hour+12:"a"===this.meridian&&12===this.hour&&(this.hour=0)}},r=function(){var t=new Date;!this.hour&&!this.minute||this.month||this.year||this.day||(this.day=t.getDate()),this.year||(this.year=t.getFullYear()),this.month||0===this.month||(this.month=t.getMonth()),this.day||(this.day=1),this.hour||(this.hour=0),this.minute||(this.minute=0),this.second||(this.second=0),this.millisecond||(this.millisecond=0)},i={getToday:function(){return this.now||-1!=="hour minute second".indexOf(this.unit)?new Date:t.today()},setDaysFromWeekday:function(e,n){var r;return n=n||1,this.unit="day",r=t.getDayNumberFromName(this.weekday)-e.getDay(),this.days=r?(r+7*n)%7:7*n,this},setMonthsFromMonth:function(t,e){var n;return e=e||1,this.unit="month",n=this.month-t.getMonth(),this.months=n?(n+12*e)%12:12*e,this.month=null,this},setDMYFromWeekday:function(){var t=Date[this.weekday]();return this.day=t.getDate(),this.month||(this.month=t.getMonth()),this.year=t.getFullYear(),this},setUnitValue:function(t){!this.value&&this.operator&&null!==this.operator&&this[this.unit+"s"]&&null!==this[this.unit+"s"]?this[this.unit+"s"]=this[this.unit+"s"]+("add"===this.operator?1:-1)+(this.value||0)*t:null!=this[this.unit+"s"]&&null==this.operator||(this.value||(this.value=1),this[this.unit+"s"]=this.value*t)},generateDateFromWeeks:function(){var t=this.weekday!==undefined?this.weekday:"today",e=Date[t]().addWeeks(this.weeks);return this.now&&e.setTimeToNow(),e}};t.Translator={hour:function(t){return function(){this.hour=Number(t)}},minute:function(t){return function(){this.minute=Number(t)}},second:function(t){return function(){this.second=Number(t)}},secondAndMillisecond:function(t){return function(){var e=t.match(/^([0-5][0-9])\.([0-9]{1,3})/);this.second=Number(e[1]),this.millisecond=Number(e[2])}},meridian:function(t){return function(){this.meridian=t.slice(0,1).toLowerCase()}},timezone:function(t){return function(){var e=t.replace(/[^\d\+\-]/g,"");e.length?this.timezoneOffset=Number(e):this.timezone=t.toLowerCase()}},day:function(t){var e=t[0];return function(){if(this.day=Number(e.match(/\d+/)[0]),this.day<1)throw"invalid day"}},month:function(t){return function(){if(this.month=3===t.length?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(t)/4:Number(t)-1,this.month<0)throw"invalid month"}},year:function(t){return function(){var e=Number(t);this.year=t.length>2?e:e+(e+2e3<Date.CultureInfo.twoDigitYearMax?2e3:1900)}},rday:function(t){return function(){switch(t){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0,this.now=!0}}},finishExact:function(e){var i;e=e instanceof Array?e:[e];for(var s=0;s<e.length;s++)e[s]&&e[s].call(this);if(r.call(this),n.call(this),this.day>t.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");return i=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond),this.year<100&&i.setFullYear(this.year),this.timezone?i.set({timezone:this.timezone}):this.timezoneOffset&&i.set({timezoneOffset:this.timezoneOffset}),i},finish:function(r){var s,a,o,u;if(r=r instanceof Array?e(r):[r],0===r.length)return null;for(var h=0;h<r.length;h++)"function"==typeof r[h]&&r[h].call(this);if(this.now&&!this.unit&&!this.operator)return new Date;if(s=i.getToday.call(this),a=!!(this.days&&null!==this.days||this.orient||this.operator),o="past"===this.orient||"subtract"===this.operator?-1:1,this.month&&"week"===this.unit&&(this.value=this.month+1,delete this.month,delete this.day),!this.month&&0!==this.month||-1==="year day hour minute second".indexOf(this.unit)||(this.value||(this.value=this.month+1),this.month=null,a=!0),a||!this.weekday||this.day||this.days||i.setDMYFromWeekday.call(this),a&&this.weekday&&"month"!==this.unit&&"week"!==this.unit&&i.setDaysFromWeekday.call(this,s,o),!this.weekday||"week"===this.unit||this.day||this.days||(u=Date[this.weekday](),this.day=u.getDate(),u.getMonth()!==s.getMonth()&&(this.month=u.getMonth())),this.month&&"day"===this.unit&&this.operator&&(this.value||(this.value=this.month+1),this.month=null),null!=this.value&&null!=this.month&&null!=this.year&&(this.day=1*this.value),this.month&&!this.day&&this.value&&(s.set({day:1*this.value}),a||(this.day=1*this.value)),this.month||!this.value||"month"!==this.unit||this.now||(this.month=this.value,a=!0),a&&(this.month||0===this.month)&&"year"!==this.unit&&i.setMonthsFromMonth.call(this,s,o),this.unit||(this.unit="day"),i.setUnitValue.call(this,o),n.call(this),!this.month&&0!==this.month||this.day||(this.day=1),!this.orient&&!this.operator&&"week"===this.unit&&this.value&&!this.day&&!this.month)return Date.today().setWeek(this.value);if("week"===this.unit&&this.weeks&&!this.day&&!this.month)return i.generateDateFromWeeks.call(this);if(a&&this.timezone&&this.day&&this.days&&(this.day=this.days),a?s.add(this):s.set(this),this.timezone){this.timezone=this.timezone.toUpperCase();var d=t.getTimezoneOffset(this.timezone);s.hasDaylightSavingTime()&&t.getTimezoneAbbreviation(d,s.isDaylightSavingTime())!==this.timezone&&(s.isDaylightSavingTime()?s.addHours(-1):s.addHours(1)),s.setTimezoneOffset(d)}return s}}}(),function(){var t=Date;t.Grammar={};var e,n=t.Parsing.Operators,r=t.Grammar,i=t.Translator;e=function(){return n.each(n.any.apply(null,arguments),n.not(r.ctoken2("timeContext")))},r.datePartDelimiter=n.rtoken(/^([\s\-\.\,\/\x27]+)/),r.timePartDelimiter=n.stoken(":"),r.whiteSpace=n.rtoken(/^\s*/),r.generalDelimiter=n.rtoken(/^(([\s\,]|at|@|on)+)/);var s={};r.ctoken=function(t){var e=s[t];if(!e){for(var r=Date.CultureInfo.regexPatterns,i=t.split(/\s+/),a=[],o=0;o<i.length;o++)a.push(n.replace(n.rtoken(r[i[o]]),i[o]));e=s[t]=n.any.apply(null,a)}return e},r.ctoken2=function(t){return n.rtoken(Date.CultureInfo.regexPatterns[t])};var a=function(t,e,i,s){r[t]=s?n.cache(n.process(n.each(n.rtoken(e),n.optional(r.ctoken2(s))),i)):n.cache(n.process(n.rtoken(e),i))},o=function(t,e){return n.cache(n.process(r.ctoken2(t),e))},u={},h=function(t){return u[t]=u[t]||r.format(t)[0],u[t]};r.allformats=function(t){var e=[];if(t instanceof Array)for(var n=0;n<t.length;n++)e.push(h(t[n]));else e.push(h(t));return e},r.formats=function(t){if(t instanceof Array){for(var e=[],r=0;r<t.length;r++)e.push(h(t[r]));return n.any.apply(null,e)}return h(t)};var d={timeFormats:function(){var t,e=["h","hh","H","HH","m","mm","s","ss","ss.s","z","zz"],s=[/^(0[0-9]|1[0-2]|[1-9])/,/^(0[0-9]|1[0-2])/,/^([0-1][0-9]|2[0-3]|[0-9])/,/^([0-1][0-9]|2[0-3])/,/^([0-5][0-9]|[0-9])/,/^[0-5][0-9]/,/^([0-5][0-9]|[0-9])/,/^[0-5][0-9]/,/^[0-5][0-9]\.[0-9]{1,3}/,/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/,/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/],u=[i.hour,i.hour,i.hour,i.minute,i.minute,i.second,i.second,i.secondAndMillisecond,i.timezone,i.timezone,i.timezone];for(t=0;t<e.length;t++)a(e[t],s[t],u[t]);r.hms=n.cache(n.sequence([r.H,r.m,r.s],r.timePartDelimiter)),r.t=o("shortMeridian",i.meridian),r.tt=o("longMeridian",i.meridian),r.zzz=o("timezone",i.timezone),r.timeSuffix=n.each(n.ignore(r.whiteSpace),n.set([r.tt,r.zzz])),r.time=n.each(n.optional(n.ignore(n.stoken("T"))),r.hms,r.timeSuffix)},dateFormats:function(){var t,s=function(){return n.set(arguments,r.datePartDelimiter)},o=["d","dd","M","MM","y","yy","yyy","yyyy"],u=[/^([0-2]\d|3[0-1]|\d)/,/^([0-2]\d|3[0-1])/,/^(1[0-2]|0\d|\d)/,/^(1[0-2]|0\d)/,/^(\d+)/,/^(\d\d)/,/^(\d\d?\d?\d?)/,/^(\d\d\d\d)/],h=[i.day,i.day,i.month,i.month,i.year,i.year,i.year,i.year],d=["ordinalSuffix","ordinalSuffix"];for(t=0;t<o.length;t++)a(o[t],u[t],h[t],d[t]);r.MMM=r.MMMM=n.cache(n.process(r.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),i.month)),r.ddd=r.dddd=n.cache(n.process(r.ctoken("sun mon tue wed thu fri sat"),function(t){return function(){this.weekday=t}})),r.day=e(r.d,r.dd),r.month=e(r.M,r.MMM),r.year=e(r.yyyy,r.yy),r.mdy=s(r.ddd,r.month,r.day,r.year),r.ymd=s(r.ddd,r.year,r.month,r.day),r.dmy=s(r.ddd,r.day,r.month,r.year),r.date=function(t){return(r[Date.CultureInfo.dateElementOrder]||r.mdy).call(this,t)}},relative:function(){r.orientation=n.process(r.ctoken("past future"),function(t){return function(){this.orient=t}}),r.operator=n.process(r.ctoken("add subtract"),function(t){return function(){this.operator=t}}),r.rday=n.process(r.ctoken("yesterday tomorrow today now"),i.rday),r.unit=n.process(r.ctoken("second minute hour day week month year"),function(t){return function(){this.unit=t}})}};r.buildGrammarFormats=function(){s={},d.timeFormats(),d.dateFormats(),d.relative(),r.value=n.process(n.rtoken(/^([-+]?\d+)?(st|nd|rd|th)?/),function(t){return function(){this.value=t.replace(/\D/g,"")}}),r.expression=n.set([r.rday,r.operator,r.value,r.unit,r.orientation,r.ddd,r.MMM]),r.format=n.process(n.many(n.any(n.process(n.rtoken(/^(dd?d?d?(?!e)|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(e){if(r[e])return r[e];throw t.Parsing.Exception(e)}),n.process(n.rtoken(/^[^dMyhHmstz]+/),function(t){return n.ignore(n.stoken(t))}))),function(t){return n.process(n.each.apply(null,t),i.finishExact)}),r._start=n.process(n.set([r.date,r.time,r.expression],r.generalDelimiter,r.whiteSpace),i.finish)},r.buildGrammarFormats(),r._formats=r.formats(['"yyyy-MM-ddTHH:mm:ssZ"',"yyyy-MM-ddTHH:mm:ss.sz","yyyy-MM-ddTHH:mm:ssZ","yyyy-MM-ddTHH:mm:ssz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mmZ","yyyy-MM-ddTHH:mmz","yyyy-MM-ddTHH:mm","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","MMddyyyy","ddMMyyyy","Mddyyyy","ddMyyyy","Mdyyyy","dMyyyy","yyyy","Mdyy","dMyy","d"]),r.start=function(t){try{var e=r._formats.call({},t);if(0===e[1].length)return e}catch(t){}return r._start.call({},t)}}(),function(){function t(t){var r;return t?t instanceof Date?t.clone():(t.length>=4&&"0"!==t.charAt(0)&&"+"!==t.charAt(0)&&"-"!==t.charAt(0)&&(r=e.Parsing.ISO.parse(t)||e.Parsing.Numeric.parse(t)),r instanceof Date&&!isNaN(r.getTime())?r:(t=e.Parsing.Normalizer.parse(n.removeOrds(t)),r=n.grammarParser(t),null!==r?r:n.nativeFallback(t))):null}var e=Date,n={removeOrds:function(t){return ords=t.match(/\b(\d+)(?:st|nd|rd|th)\b/),t=ords&&2===ords.length?t.replace(ords[0],ords[1]):t},grammarParser:function(t){var n=null;try{n=e.Grammar.start.call({},t.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(t){return null}return 0===n[1].length?n[0]:null},nativeFallback:function(t){var e;try{return e=Date._parse(t),e||0===e?new Date(e):null}catch(t){return null}}};e._parse||(e._parse=e.parse),e.parse=t,Date.getParseFunction=function(t){var e=Date.Grammar.allformats(t);return function(t){for(var n=null,r=0;r<e.length;r++){try{n=e[r].call({},t)}catch(t){continue}if(0===n[1].length)return n[0]}return null}},e.parseExact=function(t,n){return e.getParseFunction(n)(t)}}(),function(){var e=Date,n=e.prototype,r=function(t,e){return e||(e=2),("000"+t).slice(-1*e)},i={d:"dd","%d":"dd",D:"ddd","%a":"ddd",j:"dddd",l:"dddd","%A":"dddd",S:"S",F:"MMMM","%B":"MMMM",m:"MM","%m":"MM",M:"MMM","%b":"MMM","%h":"MMM",n:"M",Y:"yyyy","%Y":"yyyy",y:"yy","%y":"yy",g:"h","%I":"h",G:"H",h:"hh",H:"HH","%H":"HH",i:"mm","%M":"mm",s:"ss","%S":"ss","%r":"hh:mm tt","%R":"H:mm","%T":"H:mm:ss","%X":"t","%x":"d","%e":"d","%D":"MM/dd/yy","%n":"\\n","%t":"\\t",e:"z",T:"z","%z":"z","%Z":"z",Z:"ZZ",N:"u",w:"u","%w":"u",W:"W","%V":"W"},s={substitutes:function(t){return i[t]},interpreted:function(n,i){var s;switch(n){case"%u":return i.getDay()+1;case"z":return i.getOrdinalNumber();case"%j":return r(i.getOrdinalNumber(),3);case"%U":var a=i.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0),o=i.clone().addDays(1).moveToDayOfWeek(0,-1);return o<a?"00":r((o.getOrdinalNumber()-a.getOrdinalNumber())/7+1);case"%W":return r(i.getWeek());case"t":return e.getDaysInMonth(i.getFullYear(),i.getMonth());case"o":case"%G":return i.setWeek(i.getISOWeek()).toString("yyyy");case"%g":return i._format("%G").slice(-2);case"a":case"%p":return t("tt").toLowerCase();case"A":return t("tt").toUpperCase();case"u":return r(i.getMilliseconds(),3);case"I":return i.isDaylightSavingTime()?1:0;case"O":return i.getUTCOffset();case"P":return s=i.getUTCOffset(),s.substring(0,s.length-2)+":"+s.substring(s.length-2);case"B":var u=new Date;return Math.floor((3600*u.getHours()+60*u.getMinutes()+u.getSeconds()+60*(u.getTimezoneOffset()+60))/86.4);case"c":return i.toISOString().replace(/\"/g,"");case"U":return e.strtotime("now");case"%c":return t("d")+" "+t("t");case"%C":return Math.floor(i.getFullYear()/100+1)}},shouldOverrideDefaults:function(t){switch(t){case"%e":return!0;default:return!1}},parse:function(t,e){var n,r=e||new Date;return(n=s.substitutes(t))?n:(n=s.interpreted(t,r))||t}};e.normalizeFormat=function(t,e){return t.replace(/(%|\\)?.|%%/g,function(t){return s.parse(t,e)})},e.strftime=function(t,e){return Date.parse(e)._format(t)},e.strtotime=function(t){var n=e.parse(t);return Math.round(e.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())/1e3)};var a=function(t){return function(n){var r,i=!1;return"\\"===n.charAt(0)||"%%"===n.substring(0,2)?n.replace("\\","").replace("%%","%"):(i=s.shouldOverrideDefaults(n),r=e.normalizeFormat(n,t),r?t.toString(r,i):void 0)}};n._format=function(t){var e=a(this);return t?t.replace(/(%|\\)?.|%%/g,e):this._toString()},n.format||(n.format=n._format)}(),function(){"use strict";var t=function(t){return function(){return this[t]}},e=function(t){return function(e){return this[t]=e,this}},n=["years","months","days","hours","minutes","seconds","milliseconds"],r=function(n,r){for(var i=0;i<r.length;i++){var s=r[i],a=s.slice(0,1).toUpperCase()+s.slice(1);n.prototype[s]=0,n.prototype["get"+a]=t(s),n.prototype["set"+a]=e(s)}},i=function(t,e,n,r,s){if(1===arguments.length&&"number"==typeof t){var a=t<0?-1:1,o=Math.abs(t);this.setDays(Math.floor(o/864e5)*a),o%=864e5,this.setHours(Math.floor(o/36e5)*a),o%=36e5,this.setMinutes(Math.floor(o/6e4)*a),o%=6e4,this.setSeconds(Math.floor(o/1e3)*a),o%=1e3,this.setMilliseconds(o*a)}else this.set(t,e,n,r,s);return this.getTotalMilliseconds=function(){return 864e5*this.getDays()+36e5*this.getHours()+6e4*this.getMinutes()+1e3*this.getSeconds()},this.compareTo=function(t){var e,n=new Date(1970,1,1,this.getHours(),this.getMinutes(),this.getSeconds());return e=null===t?new Date(1970,1,1,0,0,0):new Date(1970,1,1,t.getHours(),t.getMinutes(),t.getSeconds()),n<e?-1:n>e?1:0},this.equals=function(t){return 0===this.compareTo(t)},this.add=function(t){return null===t?this:this.addSeconds(t.getTotalMilliseconds()/1e3)},this.subtract=function(t){return null===t?this:this.addSeconds(-t.getTotalMilliseconds()/1e3)},this.addDays=function(t){return new i(this.getTotalMilliseconds()+864e5*t)},this.addHours=function(t){return new i(this.getTotalMilliseconds()+36e5*t)},this.addMinutes=function(t){return new i(this.getTotalMilliseconds()+6e4*t)},this.addSeconds=function(t){return new i(this.getTotalMilliseconds()+1e3*t)},this.addMilliseconds=function(t){return new i(this.getTotalMilliseconds()+t)},this.get12HourHour=function(){return this.getHours()>12?this.getHours()-12:0===this.getHours()?12:this.getHours()},this.getDesignator=function(){return this.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator},this.toString=function(t){this._toString=function(){return null!==this.getDays()&&this.getDays()>0?this.getDays()+"."+this.getHours()+":"+this.p(this.getMinutes())+":"+this.p(this.getSeconds()):this.getHours()+":"+this.p(this.getMinutes())+":"+this.p(this.getSeconds())},this.p=function(t){return t.toString().length<2?"0"+t:t};var e=this;return t?t.replace(/dd?|HH?|hh?|mm?|ss?|tt?/g,function(t){switch(t){case"d":return e.getDays();case"dd":return e.p(e.getDays());case"H":return e.getHours();case"HH":return e.p(e.getHours());case"h":return e.get12HourHour();case"hh":return e.p(e.get12HourHour());case"m":return e.getMinutes();case"mm":return e.p(e.getMinutes());case"s":return e.getSeconds();case"ss":return e.p(e.getSeconds());case"t":return(e.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator).substring(0,1);case"tt":return e.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator}}):this._toString()},this};r(i,n.slice(2)),i.prototype.set=function(t,e,n,r,i){this.setDays(t||this.getDays()),this.setHours(e||this.getHours()),this.setMinutes(n||this.getMinutes()),this.setSeconds(r||this.getSeconds()),this.setMilliseconds(i||this.getMilliseconds())},Date.prototype.getTimeOfDay=function(){return new i(0,this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())},Date.TimeSpan=i,"undefined"!=typeof window&&(window.TimeSpan=i)}(),function(){"use strict";var t=["years","months","days","hours","minutes","seconds","milliseconds"],e=function(t){return function(){return this[t]}},n=function(t){return function(e){return this[t]=e,this}},r=function(t,r){for(var i=0;i<r.length;i++){var s=r[i],a=s.slice(0,1).toUpperCase()+s.slice(1);t.prototype[s]=0,t.prototype["get"+a]=e(s),t.prototype["set"+a]=n(s)}},i=function(t,e,n,r){function i(){e.addMonths(-t),12===++r.months&&(r.years++,r.months=0)}if(1===t)for(;e>n;)i();else for(;e<n;)i();r.months--,r.months*=t,r.years*=t},s=function(t,e,n){var r=!1==(e.isDaylightSavingTime()===n.isDaylightSavingTime());r&&1===t?e.addHours(-1):r&&e.addHours(1)},a=function(t,e,n,r,a,o,u){if(7===arguments.length)this.set(t,e,n,r,a,o,u);else if(2===arguments.length&&arguments[0]instanceof Date&&arguments[1]instanceof Date){var h=arguments[0].clone(),d=arguments[1].clone(),c=h>d?1:-1;this.dates={start:arguments[0].clone(),end:arguments[1].clone()},i(c,h,d,this),s(c,h,d);var l=d-h;if(0!==l){var f=new TimeSpan(l);this.set(this.years,this.months,f.getDays(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds())}}return this};r(a,t),a.prototype.set=function(t,e,n,r,i,s,a){this.setYears(t||this.getYears()),this.setMonths(e||this.getMonths()),this.setDays(n||this.getDays()),this.setHours(r||this.getHours()),this.setMinutes(i||this.getMinutes()),this.setSeconds(s||this.getSeconds()),this.setMilliseconds(a||this.getMilliseconds())},Date.TimePeriod=a,"undefined"!=typeof window&&(window.TimePeriod=a)}();