text: Date.CultureStrings=Date.CultureStrings||{};Date.CultureStrings["uz-Latn-UZ"]={name:"uz-Latn-UZ",englishName:"Uzbek (Latin, Uzbekistan)",nativeName:"U'zbek (U'zbekiston Respublikasi)",Sunday:"yakshanba",Monday:"dushanba",Tuesday:"seshanba",Wednesday:"chorshanba",Thursday:"payshanba",Friday:"juma",Saturday:"shanba",Sun:"yak.",Mon:"dsh.",Tue:"sesh.",Wed:"chr.",Thu:"psh.",Fri:"jm.",Sat:"sh.",Su:"yak",Mo:"dsh",Tu:"sesh",We:"chr",Th:"psh",Fr:"jm",Sa:"sh",S_Sun_Initial:"y",M_Mon_Initial:"d",T_Tue_Initial:"s",W_Wed_Initial:"c",T_Thu_Initial:"p",F_Fri_Initial:"j",S_Sat_Initial:"s",January:"yanvar",February:"fevral",March:"mart",April:"aprel",May:"may",June:"iyun",July:"iyul",August:"avgust",September:"sentyabr",October:"oktyabr",November:"noyabr",December:"dekabr",Jan_Abbr:"yanvar",Feb_Abbr:"fevral",Mar_Abbr:"mart",Apr_Abbr:"aprel",May_Abbr:"may",Jun_Abbr:"iyun",Jul_Abbr:"iyul",Aug_Abbr:"avgust",Sep_Abbr:"sentyabr",Oct_Abbr:"oktyabr",Nov_Abbr:"noyabr",Dec_Abbr:"dekabr",AM:"",PM:"",firstDayOfWeek:1,twoDigitYearMax:2029,mdy:"dmy","M/d/yyyy":"dd/MM yyyy","dddd, MMMM dd, yyyy":"yyyy 'yil' d-MMMM","h:mm tt":"HH:mm","h:mm:ss tt":"HH:mm:ss","dddd, MMMM dd, yyyy h:mm:ss tt":"yyyy 'yil' d-MMMM HH:mm:ss","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":"d-MMMM","MMMM, yyyy":"MMMM yyyy","/jan(uary)?/":"yanvar","/feb(ruary)?/":"fevral","/mar(ch)?/":"mart","/apr(il)?/":"aprel","/may/":"may","/jun(e)?/":"iyun","/jul(y)?/":"iyul","/aug(ust)?/":"avgust","/sep(t(ember)?)?/":"sentyabr","/oct(ober)?/":"oktyabr","/nov(ember)?/":"noyabr","/dec(ember)?/":"dekabr","/^su(n(day)?)?/":"^yak((.(shanba)?)?)?","/^mo(n(day)?)?/":"^dsh((.(hanba)?)?)?","/^tu(e(s(day)?)?)?/":"^sesh((.(anba)?)?)?","/^we(d(nesday)?)?/":"^chr((.(rshanba)?)?)?","/^th(u(r(s(day)?)?)?)?/":"^psh((.(shanba)?)?)?","/^fr(i(day)?)?/":"^jm((.(ma)?)?)?","/^sa(t(urday)?)?/":"^sh((.(anba)?)?)?","/^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="uz-Latn-UZ";(function(){var k=Date,m=Date.CultureStrings?Date.CultureStrings.lang:null,o={},p={getFromKey:function(d,c){var f;f=Date.CultureStrings&&Date.CultureStrings[c]&&Date.CultureStrings[c][d]?Date.CultureStrings[c][d]:p.buildFromDefault(d);"/"===d.charAt(0)&&(f=p.buildFromRegex(d,c));return f},getFromObjectValues:function(d,c){var h,f={};for(h in d){d.hasOwnProperty(h)&&(f[h]=p.getFromKey(d[h],c))}return f},getFromObjectKeys:function(d,c){var h,f={};for(h in d){d.hasOwnProperty(h)&&(f[p.getFromKey(h,c)]=d[h])}return f},getFromArray:function(d,c){for(var h=[],f=0;f<d.length;f++){f in d&&(h[f]=p.getFromKey(d[f],c))}return h},buildFromDefault:function(d){var c,h,f;switch(d){case"name":c="en-US";break;case"englishName":c="English (United States)";break;case"nativeName":c="English (United States)";break;case"twoDigitYearMax":c=2049;break;case"firstDayOfWeek":c=0;break;default:if(c=d,f=d.split("_"),h=f.length,1<h&&"/"!==d.charAt(0)&&(d=f[h-1].toLowerCase(),"initial"===d||"abbr"===d)){c=f[0]}}return c},buildFromRegex:function(d,c){return Date.CultureStrings&&Date.CultureStrings[c]&&Date.CultureStrings[c][d]?new RegExp(Date.CultureStrings[c][d],"i"):new RegExp(d.replace(RegExp("/","g"),""),"i")}},j=function(d,c){var f=c?c:m;o[d]=d;return"object"===typeof d?d instanceof Array?p.getFromArray(d,f):p.getFromObjectKeys(d,f):p.getFromKey(d,f)},i=function(d){d=Date.Config.i18n+d+".js";var c=document.getElementsByTagName("head")[0]||document.documentElement,h=document.createElement("script");h.src=d;var f={done:function(){}};h.onload=h.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(f.done(),c.removeChild(h))};setTimeout(function(){c.insertBefore(h,c.firstChild)},0);return{done:function(b){f.done=function(){b&&setTimeout(b,0)}}}},n={buildFromMethodHash:function(d){for(var c in d){d.hasOwnProperty(c)&&(d[c]=n[d[c]]())}return d},timeZoneDST:function(){return j({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 j({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(d){var c;d.timezones=[];for(c in d.abbreviatedTimeZoneStandard){d.abbreviatedTimeZoneStandard.hasOwnProperty(c)&&d.timezones.push({name:c,offset:d.abbreviatedTimeZoneStandard[c]})}for(c in d.abbreviatedTimeZoneDST){d.abbreviatedTimeZoneDST.hasOwnProperty(c)&&d.timezones.push({name:c,offset:d.abbreviatedTimeZoneDST[c],dst:!0})}return d.timezones},days:function(){return j("Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "))},dayAbbr:function(){return j("Sun Mon Tue Wed Thu Fri Sat".split(" "))},dayShortNames:function(){return j("Su Mo Tu We Th Fr Sa".split(" "))},dayFirstLetters:function(){return j("S_Sun_Initial M_Mon_Initial T_Tues_Initial W_Wed_Initial T_Thu_Initial F_Fri_Initial S_Sat_Initial".split(" "))},months:function(){return j("January February March April May June July August September October November December".split(" "))},monthAbbr:function(){return j("Jan_Abbr Feb_Abbr Mar_Abbr Apr_Abbr May_Abbr Jun_Abbr Jul_Abbr Aug_Abbr Sep_Abbr Oct_Abbr Nov_Abbr Dec_Abbr".split(" "))},formatPatterns:function(){return p.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 p.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())}},l=function(){var d=p.getFromObjectValues({name:"name",englishName:"englishName",nativeName:"nativeName",amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:"firstDayOfWeek",twoDigitYearMax:"twoDigitYearMax",dateElementOrder:"mdy"},Date.i18n.currentLanguage()),c=n.buildFromMethodHash({dayNames:"days",abbreviatedDayNames:"dayAbbr",shortestDayNames:"dayShortNames",firstLetterDayNames:"dayFirstLetters",monthNames:"months",abbreviatedMonthNames:"monthAbbr",formatPatterns:"formatPatterns",regexPatterns:"regex",abbreviatedTimeZoneDST:"timeZoneDST",abbreviatedTimeZoneStandard:"timeZoneStandard"}),e;for(e in c){c.hasOwnProperty(e)&&(d[e]=c[e])}n.timeZones(d);return d};k.i18n={__:function(c,a){return j(c,a)},currentLanguage:function(){return m||"en-US"},setLanguage:function(b,g,q){var h=!1;if(g||"en-US"===b||Date.CultureStrings&&Date.CultureStrings[b]){m=b,Date.CultureStrings=Date.CultureStrings||{},Date.CultureStrings.lang=b,Date.CultureInfo=new l}else{if(!Date.CultureStrings||!Date.CultureStrings[b]){if("undefined"!==typeof exports&&this.exports!==exports){try{require("../i18n/"+b+".js"),m=b,Date.CultureStrings.lang=b,Date.CultureInfo=new l}catch(f){throw Error("The DateJS IETF language tag '"+b+"' could not be loaded by Node. It likely does not exist.")}}else{if(Date.Config&&Date.Config.i18n){h=!0,i(b).done(function(){m=b;Date.CultureStrings=Date.CultureStrings||{};Date.CultureStrings.lang=b;Date.CultureInfo=new l;k.Parsing.Normalizer.buildReplaceData();k.Grammar&&k.Grammar.buildGrammarFormats();q&&setTimeout(q,0)})}else{return Date.console.error("The DateJS IETF language tag '"+b+"' is not available and has not been loaded."),!1}}}}k.Parsing.Normalizer.buildReplaceData();k.Grammar&&k.Grammar.buildGrammarFormats();!h&&q&&setTimeout(q,0)},getLoggedKeys:function(){return o},updateCultureInfo:function(){Date.CultureInfo=new l}};k.i18n.updateCultureInfo()})();(function(){var a=Date,b=a.prototype,e=function(d,c){c||(c=2);return("000"+d).slice(-1*c)};a.console="undefined"!==typeof window&&"undefined"!==typeof window.console&&"undefined"!==typeof window.console.log?console:{log:function(){},error:function(){}};a.Config=a.Config||{};a.initOverloads=function(){a.now?a._now||(a._now=a.now):a._now=function(){return(new Date).getTime()};a.now=function(c){return c?a.present():a._now()};b.toISOString||(b.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1000).toFixed(3)).slice(2,5)+"Z"});void 0===b._toString&&(b._toString=b.toString)};a.initOverloads();a.today=function(){return(new Date).clearTime()};a.present=function(){return new Date};a.compare=function(d,c){if(isNaN(d)||isNaN(c)){throw Error(d+" - "+c)}if(d instanceof Date&&c instanceof Date){return d<c?-1:d>c?1:0}throw new TypeError(d+" - "+c)};a.equals=function(d,c){return 0===d.compareTo(c)};a.getDayName=function(c){return Date.CultureInfo.dayNames[c]};a.getDayNumberFromName=function(f){var d=Date.CultureInfo.dayNames,i=Date.CultureInfo.abbreviatedDayNames,h=Date.CultureInfo.shortestDayNames;f=f.toLowerCase();for(var c=0;c<d.length;c++){if(d[c].toLowerCase()===f||i[c].toLowerCase()===f||h[c].toLowerCase()===f){return c}}return -1};a.getMonthNumberFromName=function(d){var c=Date.CultureInfo.monthNames,h=Date.CultureInfo.abbreviatedMonthNames;d=d.toLowerCase();for(var f=0;f<c.length;f++){if(c[f].toLowerCase()===d||h[f].toLowerCase()===d){return f}}return -1};a.getMonthName=function(c){return Date.CultureInfo.monthNames[c]};a.isLeapYear=function(c){return 0===c%4&&0!==c%100||0===c%400};a.getDaysInMonth=function(d,c){!c&&a.validateMonth(d)&&(c=d,d=Date.today().getFullYear());return[31,a.isLeapYear(d)?29:28,31,30,31,30,31,31,30,31,30,31][c]};b.getDaysInMonth=function(){return a.getDaysInMonth(this.getFullYear(),this.getMonth())};a.getTimezoneAbbreviation=function(d,c){var h,f=c?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard;for(h in f){if(f.hasOwnProperty(h)&&f[h]===d){return h}}return null};a.getTimezoneOffset=function(f,d){var i,h=[],c=Date.CultureInfo.timezones;f||(f=(new Date).getTimezone());for(i=0;i<c.length;i++){c[i].name===f.toUpperCase()&&h.push(i)}if(!c[h[0]]){return null}if(1!==h.length&&d){for(i=0;i<h.length;i++){if(c[h[i]].dst){return c[h[i]].offset}}}else{return c[h[0]].offset}};a.getQuarter=function(c){c=c||new Date;return[1,2,3,4][Math.floor(c.getMonth()/3)]};a.getDaysLeftInQuarter=function(d){d=d||new Date;var c=new Date(d);c.setMonth(c.getMonth()+3-c.getMonth()%3,0);return Math.floor((c-d)/86400000)};var g=function(d,c,h,f){if("undefined"===typeof d){return !1}if("number"!==typeof d){throw new TypeError(d+" is not a Number.")}return d<c||d>h?!1:!0};a.validateMillisecond=function(c){return g(c,0,999,"millisecond")};a.validateSecond=function(c){return g(c,0,59,"second")};a.validateMinute=function(c){return g(c,0,59,"minute")};a.validateHour=function(c){return g(c,0,23,"hour")};a.validateDay=function(d,c,f){return void 0===c||null===c||void 0===f||null===f?!1:g(d,1,a.getDaysInMonth(c,f),"day")};a.validateWeek=function(c){return g(c,0,53,"week")};a.validateMonth=function(c){return g(c,0,11,"month")};a.validateYear=function(c){return g(c,-271822,275760,"year")};a.validateTimezone=function(c){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}[c]};a.validateTimezoneOffset=function(c){return -841<c&&721>c}})();(function(){var k=Date,m=k.prototype,o=function(d,c){c||(c=2);return("000"+d).slice(-1*c)},p=function(h){var f={},s=this,q,v;v=function(a,e,x){if("day"===a){a=void 0!==h.month?h.month:s.getMonth();var w=void 0!==h.year?h.year:s.getFullYear();return k[e](x,w,a)}return k[e](x)};for(q in h){if(hasOwnProperty.call(h,q)){var u="validate"+q.charAt(0).toUpperCase()+q.slice(1);k[u]&&null!==h[q]&&v(q,u,h[q])&&(f[q]=h[q])}}return f};m.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};m.setTimeToNow=function(){var b=new Date;this.setHours(b.getHours());this.setMinutes(b.getMinutes());this.setSeconds(b.getSeconds());this.setMilliseconds(b.getMilliseconds());return this};m.clone=function(){return new Date(this.getTime())};m.compareTo=function(b){return Date.compare(this,b)};m.equals=function(b){return Date.equals(this,void 0!==b?b:new Date)};m.between=function(d,c){return this.getTime()>=d.getTime()&&this.getTime()<=c.getTime()};m.isAfter=function(b){return 1===this.compareTo(b||new Date)};m.isBefore=function(b){return -1===this.compareTo(b||new Date)};m.isToday=m.isSameDay=function(b){return this.clone().clearTime().equals((b||new Date).clone().clearTime())};m.addMilliseconds=function(b){if(!b){return this}this.setTime(this.getTime()+1*b);return this};m.addSeconds=function(b){return b?this.addMilliseconds(1000*b):this};m.addMinutes=function(b){return b?this.addMilliseconds(60000*b):this};m.addHours=function(b){return b?this.addMilliseconds(3600000*b):this};m.addDays=function(b){if(!b){return this}this.setDate(this.getDate()+1*b);return this};m.addWeekdays=function(d){if(!d){return this}var c=this.getDay(),f=Math.ceil(Math.abs(d)/7);(0===c||6===c)&&0<d&&(this.next().monday(),this.addDays(-1),c=this.getDay());if(0>d){for(;0>d;){this.addDays(-1),c=this.getDay(),0!==c&&6!==c&&d++}return this}if(5<d||6-c<=d){d+=2*f}return this.addDays(d)};m.addWeeks=function(b){return b?this.addDays(7*b):this};m.addMonths=function(d){if(!d){return this}var c=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+1*d);this.setDate(Math.min(c,k.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};m.addQuarters=function(b){return b?this.addMonths(3*b):this};m.addYears=function(b){return b?this.addMonths(12*b):this};m.add=function(b){if("number"===typeof b){return this._orient=b,this}b.day&&0!==b.day-this.getDate()&&this.setDate(b.day);b.milliseconds&&this.addMilliseconds(b.milliseconds);b.seconds&&this.addSeconds(b.seconds);b.minutes&&this.addMinutes(b.minutes);b.hours&&this.addHours(b.hours);b.weeks&&this.addWeeks(b.weeks);b.months&&this.addMonths(b.months);b.years&&this.addYears(b.years);b.days&&this.addDays(b.days);return this};m.getWeek=function(d){var c=new Date(this.valueOf());d?(c.addMinutes(c.getTimezoneOffset()),d=c.clone()):d=this;d=(d.getDay()+6)%7;c.setDate(c.getDate()-d+3);d=c.valueOf();c.setMonth(0,1);4!==c.getDay()&&c.setMonth(0,1+(4-c.getDay()+7)%7);return 1+Math.ceil((d-c)/604800000)};m.getISOWeek=function(){return o(this.getWeek(!0))};m.setWeek=function(b){return 0===b-this.getWeek()?1!==this.getDay()?this.moveToDayOfWeek(1,1<this.getDay()?-1:1):this:this.moveToDayOfWeek(1,1<this.getDay()?-1:1).addWeeks(b-this.getWeek())};m.setQuarter=function(b){b=Math.abs(3*(b-1)+1);return this.setMonth(b,1)};m.getQuarter=function(){return Date.getQuarter(this)};m.getDaysLeftInQuarter=function(){return Date.getDaysLeftInQuarter(this)};m.moveToNthOccurrence=function(d,c){if("Weekday"===d){if(0<c){this.moveToFirstDayOfMonth(),this.is().weekday()&&--c}else{if(0>c){this.moveToLastDayOfMonth(),this.is().weekday()&&(c+=1)}else{return this}}return this.addWeekdays(c)}var f=0;if(0<c){f=c-1}else{if(-1===c){return this.moveToLastDayOfMonth(),this.getDay()!==d&&this.moveToDayOfWeek(d,-1),this}}return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(d,1).addWeeks(f)};var j=function(d,c,f){return function(a,e){var b=(a-this[d]()+f*(e||1))%f;return this[c](0===b?b+f*(e||1):b)}};m.moveToDayOfWeek=j("getDay","addDays",7);m.moveToMonth=j("getMonth","addMonths",12);m.getOrdinate=function(){var b=this.getDate();return i(b)};m.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/86400000)+1};m.getTimezone=function(){return k.getTimezoneAbbreviation(this.getUTCOffset(),this.isDaylightSavingTime())};m.setTimezoneOffset=function(d){var c=this.getTimezoneOffset();return(d=-6*Number(d)/10)||0===d?this.addMinutes(d-c):this};m.setTimezone=function(b){return this.setTimezoneOffset(k.getTimezoneOffset(b))};m.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()};m.isDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==this.getTimezoneOffset()};m.getUTCOffset=function(b){b=-10*(b||this.getTimezoneOffset())/6;if(0>b){return b=(b-10000).toString(),b.charAt(0)+b.substr(2)}b=(b+10000).toString();return"+"+b.substr(1)};m.getElapsed=function(b){return(b||new Date)-this};m.set=function(f){f=p.call(this,f);for(var c in f){if(hasOwnProperty.call(f,c)){var q=c.charAt(0).toUpperCase()+c.slice(1),h,s;"week"!==c&&"month"!==c&&"timezone"!==c&&"timezoneOffset"!==c&&(q+="s");h="add"+q;s="get"+q;"month"===c?h+="s":"year"===c&&(s="getFullYear");if("day"!==c&&"timezone"!==c&&"timezoneOffset"!==c&&"week"!==c&&"hour"!==c){this[h](f[c]-this[s]())}else{if("timezone"===c||"timezoneOffset"===c||"week"===c||"hour"===c){this["set"+q](f[c])}}}}f.day&&this.addDays(f.day-this.getDate());return this};m.moveToFirstDayOfMonth=function(){return this.set({day:1})};m.moveToLastDayOfMonth=function(){return this.set({day:k.getDaysInMonth(this.getFullYear(),this.getMonth())})};var i=function(b){switch(1*b){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},n=function(d){var c=Date.CultureInfo.formatPatterns;switch(d){case"d":return this.toString(c.shortDate);case"D":return this.toString(c.longDate);case"F":return this.toString(c.fullDateTime);case"m":return this.toString(c.monthDay);case"r":case"R":return d=this.clone().addMinutes(this.getTimezoneOffset()),d.toString(c.rfc1123)+" GMT";case"s":return this.toString(c.sortableDateTime);case"t":return this.toString(c.shortTime);case"T":return this.toString(c.longTime);case"u":return d=this.clone().addMinutes(this.getTimezoneOffset()),d.toString(c.universalSortableDateTime);case"y":return this.toString(c.yearMonth);default:return !1}},l=function(b){return function(a){if("\\"===a.charAt(0)){return a.replace("\\","")}switch(a){case"hh":return o(13>b.getHours()?0===b.getHours()?12:b.getHours():b.getHours()-12);case"h":return 13>b.getHours()?0===b.getHours()?12:b.getHours():b.getHours()-12;case"HH":return o(b.getHours());case"H":return b.getHours();case"mm":return o(b.getMinutes());case"m":return b.getMinutes();case"ss":return o(b.getSeconds());case"s":return b.getSeconds();case"yyyy":return o(b.getFullYear(),4);case"yy":return o(b.getFullYear());case"y":return b.getFullYear();case"E":case"dddd":return Date.CultureInfo.dayNames[b.getDay()];case"ddd":return Date.CultureInfo.abbreviatedDayNames[b.getDay()];case"dd":return o(b.getDate());case"d":return b.getDate();case"MMMM":return Date.CultureInfo.monthNames[b.getMonth()];case"MMM":return Date.CultureInfo.abbreviatedMonthNames[b.getMonth()];case"MM":return o(b.getMonth()+1);case"M":return b.getMonth()+1;case"t":return 12>b.getHours()?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return 12>b.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"S":return i(b.getDate());case"W":return b.getWeek();case"WW":return b.getISOWeek();case"Q":return"Q"+b.getQuarter();case"q":return String(b.getQuarter());case"z":return b.getTimezone();case"Z":case"X":return Date.getTimezoneOffset(b.getTimezone());case"ZZ":return -60*b.getTimezoneOffset();case"u":return b.getDay();case"L":return k.isLeapYear(b.getFullYear())?1:0;case"B":return"@"+(b.getUTCSeconds()+60*b.getUTCMinutes()+3600*(b.getUTCHours()+1))/86.4;default:return a}}};m.toString=function(e,d){if(!d&&e&&1===e.length&&(output=n.call(this,e))){return output}var f=l(this);return e?e.replace(/((\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S|q|Q|WW?W?W?)(?![^\[]*\]))/g,f).replace(/\[|\]/g,""):this._toString()}})();(function(){var o=Date,q=o.prototype,u=Number.prototype;q._orient=1;q._nth=null;q._is=!1;q._same=!1;q._isSecond=!1;u._dateElement="days";q.next=function(){this._move=!0;this._orient=1;return this};o.next=function(){return o.today().next()};q.last=q.prev=q.previous=function(){this._move=!0;this._orient=-1;return this};o.last=o.prev=o.previous=function(){return o.today().last()};q.is=function(){this._is=!0;return this};q.same=function(){this._same=!0;this._isSecond=!1;return this};q.today=function(){return this.same().day()};q.weekday=function(){return this._nth?j("Weekday").call(this):this._move?this.addWeekdays(this._orient):this._is?(this._is=!1,!this.is().sat()&&!this.is().sun()):!1};q.weekend=function(){return this._is?(this._is=!1,this.is().sat()||this.is().sun()):!1};q.at=function(b){return"string"===typeof b?o.parse(this.toString("d")+" "+b):this.set(b)};u.fromNow=u.after=function(d){var c={};c[this._dateElement]=this;return(d?d.clone():new Date).add(c)};u.ago=u.before=function(d){var c={};c["s"!==this._dateElement[this._dateElement.length-1]?this._dateElement+"s":this._dateElement]=-1*this;return(d?d.clone():new Date).add(c)};var v="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),x="january february march april may june july august september october november december".split(/\s/),w="Millisecond Second Minute Hour Day Week Month Year Quarter Weekday".split(/\s/),s="Milliseconds Seconds Minutes Hours Date Week Month FullYear Quarter".split(/\s/),p="final first second third fourth fifth".split(/\s/);q.toObject=function(){for(var b={},c=0;c<w.length;c++){this["get"+s[c]]&&(b[w[c].toLowerCase()]=this["get"+s[c]]())}return b};o.fromObject=function(b){b.week=null;return Date.today().set(b)};var j=function(b){return function(){if(this._is){return this._is=!1,this.getDay()===b}this._move&&(this._move=null);if(null!==this._nth){this._isSecond&&this.addSeconds(-1*this._orient);this._isSecond=!1;var a=this._nth;this._nth=null;var c=this.clone().moveToLastDayOfMonth();this.moveToNthOccurrence(b,a);if(this>c){throw new RangeError(o.getDayName(b)+" does not occur "+a+" times in the month of "+o.getMonthName(c.getMonth())+" "+c.getFullYear()+".")}return this}return this.moveToDayOfWeek(b,this._orient)}},l=function(d,c,h){for(var f=0;f<d.length;f++){o[d[f].toUpperCase()]=o[d[f].toUpperCase().substring(0,3)]=f,o[d[f]]=o[d[f].substring(0,3)]=c(f),q[d[f]]=q[d[f].substring(0,3)]=h(f)}};l(v,function(b){return function(){var a=o.today(),c=b-a.getDay();0===b&&1===Date.CultureInfo.firstDayOfWeek&&0!==a.getDay()&&(c+=7);return a.addDays(c)}},j);l(x,function(b){return function(){return o.today().set({month:b,day:1})}},function(b){return function(){return this._is?(this._is=!1,this.getMonth()===b):this.moveToMonth(b,this._orient)}});for(var x=function(b){return function(k){if(this._isSecond){return this._isSecond=!1,this}if(this._same){this._same=this._is=!1;var a=this.toObject();k=(k||new Date).toObject();for(var n="",m=b.toLowerCase(),m="s"===m[m.length-1]?m.substring(0,m.length-1):m,h=w.length-1;-1<h;h--){n=w[h].toLowerCase();if(a[n]!==k[n]){return !1}if(m===n){break}}return !0}"s"!==b.substring(b.length-1)&&(b+="s");this._move&&(this._move=null);return this["add"+b](this._orient)}},l=function(b){return function(){this._dateElement=b;return this}},i=0;i<w.length;i++){v=w[i].toLowerCase(),"weekday"!==v&&(q[v]=q[v+"s"]=x(w[i]),u[v]=u[v+"s"]=l(v+"s"))}q._ss=x("Second");u=function(b){return function(a){if(this._same){return this._ss(a)}if(a||0===a){return this.moveToNthOccurrence(a,b)}this._nth=b;return 2!==b||void 0!==a&&null!==a?this:(this._isSecond=!0,this.addSeconds(this._orient))}};for(v=0;v<p.length;v++){q[p[v]]=0===v?u(-1):u(v)}})();(function(){Date.Parsing={Exception:function(c){this.message="Parse error at '"+c.substring(0,10)+" ...'"}};var a=Date.Parsing,b=[0,31,59,90,120,151,181,212,243,273,304,334],e=[0,31,60,91,121,152,182,213,244,274,305,335];a.isLeapYear=function(c){return 0===c%4&&0!==c%100||0===c%400};var g={multiReplace:function(d,c){for(var h in c){if(Object.prototype.hasOwnProperty.call(c,h)){var f;"function"!==typeof c[h]&&(f=c[h] instanceof RegExp?c[h]:new RegExp(c[h],"g"));d=d.replace(f,h)}}return d},getDayOfYearFromWeek:function(d){var c;d.weekDay=d.weekDay||0===d.weekDay?d.weekDay:1;c=new Date(d.year,0,4);c=(0===c.getDay()?7:c.getDay())+3;d.dayOfYear=7*d.week+(0===d.weekDay?7:d.weekDay)-c;return d},getDayOfYear:function(d,c){d.dayOfYear||(d=g.getDayOfYearFromWeek(d));for(var f=0;f<=c.length;f++){if(d.dayOfYear<c[f]||f===c.length){d.day=d.day?d.day:d.dayOfYear-c[f-1];break}else{d.month=f}}return d},adjustForTimeZone:function(d,c){var f;"Z"===d.zone.toUpperCase()||0===d.zone_hours&&0===d.zone_minutes?f=-c.getTimezoneOffset():(f=60*d.zone_hours+(d.zone_minutes||0),"+"===d.zone_sign&&(f*=-1),f-=c.getTimezoneOffset());c.setMinutes(c.getMinutes()+f);return c},setDefaults:function(c){c.year=c.year||Date.today().getFullYear();c.hours=c.hours||0;c.minutes=c.minutes||0;c.seconds=c.seconds||0;c.milliseconds=c.milliseconds||0;if(c.month||!c.week&&!c.dayOfYear){c.month=c.month||0,c.day=c.day||1}return c},dataNum:function(f,d,i,h){var j=1*f;return d?h?f?1*d(f):f:f?d(j):f:i?f&&"undefined"!==typeof f?j:f:f?j:f},timeDataProcess:function(d){var c={},f;for(f in d.data){d.data.hasOwnProperty(f)&&(c[f]=d.ignore[f]?d.data[f]:g.dataNum(d.data[f],d.mods[f],d.explict[f],d.postProcess[f]))}d.data.secmins&&(d.data.secmins=60*d.data.secmins.replace(",","."),c.minutes?c.seconds||(c.seconds=d.data.secmins):c.minutes=d.data.secmins,delete d.secmins);return c},buildTimeObjectFromData:function(c){return g.timeDataProcess({data:{year:c[1],month:c[5],day:c[7],week:c[8],dayOfYear:c[10],hours:c[15],zone_hours:c[23],zone_minutes:c[24],zone:c[21],zone_sign:c[22],weekDay:c[9],minutes:c[16],seconds:c[19],milliseconds:c[20],secmins:c[18]},mods:{month:function(d){return d-1},weekDay:function(d){d=Math.abs(d);return 7===d?0:d},minutes:function(d){return d.replace(":","")},seconds:function(d){return Math.floor(1*d.replace(":","").replace(",","."))},milliseconds:function(d){return 1000*d.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(f,d,i){for(var h=d.length,j=0;j<h;j++){f[d[j]]=i[j]}return f},combineRegex:function(d,c){return new RegExp("(("+d.source+")\\s("+c.source+"))")},getDateNthString:function(d,c,f){if(d){return Date.today().addDays(f).toString("d")}if(c){return Date.today().last()[f]().toString("d")}},buildRegexData:function(d){for(var c=[],h=d.length,f=0;f<h;f++){"[object Array]"===Object.prototype.toString.call(d[f])?c.push(this.combineRegex(d[f][0],d[f][1])):c.push(d[f])}return c}};a.processTimeObject=function(d){var c;g.setDefaults(d);c=a.isLeapYear(d.year)?e:b;d.month||!d.week&&!d.dayOfYear?d.dayOfYear=c[d.month]+d.day:g.getDayOfYear(d,c);c=new Date(d.year,d.month,d.day,d.hours,d.minutes,d.seconds,d.milliseconds);d.zone&&g.adjustForTimeZone(d,c);return c};a.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(c){c=c.match(this.regex);if(!c||!c.length){return null}c=g.buildTimeObjectFromData(c);return c.year&&(c.year||c.month||c.day||c.week||c.dayOfYear)?a.processTimeObject(c):null}};a.Numeric={isNumeric:function(c){return !isNaN(parseFloat(c))&&isFinite(c)},regex:/\b([0-1]?[0-9])([0-3]?[0-9])([0-2]?[0-9]?[0-9][0-9])\b/i,parse:function(d){var c,h={},f=Date.CultureInfo.dateElementOrder.split("");if(!this.isNumeric(d)||"+"===d[0]&&"-"===d[0]){return null}if(5>d.length&&0>d.indexOf(".")&&0>d.indexOf("/")){return h.year=d,a.processTimeObject(h)}d=d.match(this.regex);if(!d||!d.length){return null}for(c=0;c<f.length;c++){switch(f[c]){case"d":h.day=d[c+1];break;case"m":h.month=d[c+1]-1;break;case"y":h.year=d[c+1]}}return a.processTimeObject(h)}};a.Normalizer={regexData:function(){var c=Date.CultureInfo.regexPatterns;return g.buildRegexData([c.tomorrow,c.yesterday,[c.past,c.mon],[c.past,c.tue],[c.past,c.wed],[c.past,c.thu],[c.past,c.fri],[c.past,c.sat],[c.past,c.sun]])},basicReplaceHash:function(){var c=Date.CultureInfo.regexPatterns;return{January:c.jan.source,February:c.feb,March:c.mar,April:c.apr,May:c.may,June:c.jun,July:c.jul,August:c.aug,September:c.sep,October:c.oct,November:c.nov,December:c.dec,"":/\bat\b/gi," ":/\s{2,}/,am:c.inTheMorning,"9am":c.thisMorning,pm:c.inTheEvening,"7pm":c.thisEvening}},keys:function(){return[g.getDateNthString(!0,!1,1),g.getDateNthString(!0,!1,-1),g.getDateNthString(!1,!0,"monday"),g.getDateNthString(!1,!0,"tuesday"),g.getDateNthString(!1,!0,"wednesday"),g.getDateNthString(!1,!0,"thursday"),g.getDateNthString(!1,!0,"friday"),g.getDateNthString(!1,!0,"saturday"),g.getDateNthString(!1,!0,"sunday")]},buildRegexFunctions:function(){var d=Date.CultureInfo.regexPatterns,c=Date.i18n.__,c=new RegExp("(\\b\\d\\d?("+c("AM")+"|"+c("PM")+")? )("+d.tomorrow.source.slice(1)+")","i");this.replaceFuncs=[[new RegExp(d.today.source+"(?!\\s*([+-]))\\b"),function(f){return 1<f.length?Date.today().toString("d"):f}],[c,function(h,f){return Date.today().addDays(1).toString("d")+" "+f}],[d.amThisMorning,function(h,f){return f}],[d.pmThisEvening,function(h,f){return f}]]},buildReplaceData:function(){this.buildRegexFunctions();this.replaceHash=g.addToHash(this.basicReplaceHash(),this.keys(),this.regexData())},stringReplaceFuncs:function(d){for(var c=0;c<this.replaceFuncs.length;c++){d=d.replace(this.replaceFuncs[c][0],this.replaceFuncs[c][1])}return d},parse:function(d){d=this.stringReplaceFuncs(d);d=g.multiReplace(d,this.replaceHash);try{var c=d.split(/([\s\-\.\,\/\x27]+)/);3===c.length&&a.Numeric.isNumeric(c[0])&&a.Numeric.isNumeric(c[2])&&4<=c[2].length&&"d"===Date.CultureInfo.dateElementOrder[0]&&(d="1/"+c[0]+"/"+c[2])}catch(f){}return d}};a.Normalizer.buildReplaceData()})();(function(){for(var e=Date.Parsing,g=e.Operators={rtoken:function(c){return function(d){var a=d.match(c);if(a){return[a[0],d.substring(a[0].length)]}throw new e.Exception(d)}},token:function(){return function(c){return g.rtoken(new RegExp("^\\s*"+c+"\\s*"))(c)}},stoken:function(c){return g.rtoken(new RegExp("^"+c))},until:function(c){return function(f){for(var a=[],k=null;f.length;){try{k=c.call(this,f)}catch(h){a.push(k[0]);f=k[1];continue}break}return[a,f]}},many:function(c){return function(f){for(var a=[],k=null;f.length;){try{k=c.call(this,f)}catch(h){break}a.push(k[0]);f=k[1]}return[a,f]}},optional:function(c){return function(d){var a=null;try{a=c.call(this,d)}catch(f){return[null,d]}return[a[0],a[1]]}},not:function(c){return function(d){try{c.call(this,d)}catch(a){return[null,d]}throw new e.Exception(d)}},ignore:function(c){return c?function(d){var a=null,a=c.call(this,d);return[null,a[1]]}:null},product:function(){for(var d=arguments[0],h=Array.prototype.slice.call(arguments,1),f=[],k=0;k<d.length;k++){f.push(g.each(d[k],h))}return f},cache:function(h){var m={},k=0,o=[],n=Date.Config.CACHE_MAX||100000,l=null;return function(a){if(k===n){for(var f=0;10>f;f++){var d=o.shift();d&&(delete m[d],k--)}}try{l=m[a]=m[a]||h.call(this,a)}catch(c){l=m[a]=c}k++;o.push(a);if(l instanceof e.Exception){throw l}return l}},any:function(){var c=arguments;return function(f){for(var a=null,k=0;k<c.length;k++){if(null!=c[k]){try{a=c[k].call(this,f)}catch(h){a=null}if(a){return a}}}throw new e.Exception(f)}},each:function(){var c=arguments;return function(h){for(var m=[],k=null,a=0;a<c.length;a++){if(null!=c[a]){try{k=c[a].call(this,h)}catch(l){throw new e.Exception(h)}m.push(k[0]);h=k[1]}}return[m,h]}},all:function(){var c=c;return c.each(c.optional(arguments))},sequence:function(d,f,h){f=f||g.rtoken(/^\s*/);h=h||null;return 1===d.length?d[0]:function(w){for(var o=null,x=null,a=[],v=0;v<d.length;v++){try{o=d[v].call(this,w)}catch(m){break}a.push(o[0]);try{x=f.call(this,o[1])}catch(k){x=null;break}w=x[1]}if(!o){throw new e.Exception(w)}if(x){throw new e.Exception(x[1])}if(h){try{o=h.call(this,o[1])}catch(c){throw new e.Exception(o[1])}}return[a,o?o[1]:w]}},between:function(f,h,l){l=l||f;var k=g.each(g.ignore(f),h,g.ignore(l));return function(c){c=k.call(this,c);return[[c[0][0],r[0][2]],c[1]]}},list:function(d,f,h){f=f||g.rtoken(/^\s*/);h=h||null;return d instanceof Array?g.each(g.product(d.slice(0,-1),g.ignore(f)),d.slice(-1),g.ignore(h)):g.each(g.many(g.each(d,g.ignore(f))),px,g.ignore(h))},set:function(d,f,h){f=f||g.rtoken(/^\s*/);h=h||null;return function(y){for(var x=null,m=x=null,o=null,c=[[],y],a=!1,C=0;C<d.length;C++){x=m=null;a=1===d.length;try{x=d[C].call(this,y)}catch(B){continue}o=[[x[0]],x[1]];if(0<x[1].length&&!a){try{m=f.call(this,x[1])}catch(A){a=!0}}else{a=!0}a||0!==m[1].length||(a=!0);if(!a){x=[];for(a=0;a<d.length;a++){C!==a&&x.push(d[a])}x=g.set(x,f).call(this,m[1]);0<x[0].length&&(o[0]=o[0].concat(x[0]),o[1]=x[1])}o[1].length<c[1].length&&(c=o);if(0===c[1].length){break}}if(0===c[0].length){return c}if(h){try{m=h.call(this,c[1])}catch(z){throw new e.Exception(c[1])}c[1]=m[1]}return c}},forward:function(c,d){return function(a){return c[d].call(this,a)}},replace:function(c,d){return function(a){a=c.call(this,a);return[d,a[1]]}},process:function(c,d){return function(a){a=c.call(this,a);return[d.call(this,a[0]),a[1]]}},min:function(c,d){return function(f){var a=d.call(this,f);if(a[0].length<c){throw new e.Exception(f)}return a}}},i=function(c){return function(){var a=null,h=[],f;1<arguments.length?a=Array.prototype.slice.call(arguments):arguments[0] instanceof Array&&(a=arguments[0]);if(a){if(f=a.shift(),0<f.length){return a.unshift(f[void 0]),h.push(c.apply(null,a)),a.shift(),h}}else{return c.apply(null,arguments)}}},j="optional not ignore cache".split(/\s/),b=0;b<j.length;b++){g[j[b]]=i(g[j[b]])}i=function(c){return function(){return arguments[0] instanceof Array?c.apply(null,arguments[0]):c.apply(null,arguments)}};j="each any all".split(/\s/);for(b=0;b<j.length;b++){g[j[b]]=i(g[j[b]])}})();(function(){var a=Date,b=function(f){for(var e=[],d=0;d<f.length;d++){f[d] instanceof Array?e=e.concat(b(f[d])):f[d]&&e.push(f[d])}return e},c=function(){if(this.meridian&&(this.hour||0===this.hour)){if("a"===this.meridian&&11<this.hour&&Date.Config.strict24hr){throw"Invalid hour and meridian combination"}if("p"===this.meridian&&12>this.hour&&Date.Config.strict24hr){throw"Invalid hour and meridian combination"}"p"===this.meridian&&12>this.hour?this.hour+=12:"a"===this.meridian&&12===this.hour&&(this.hour=0)}};a.Translator={hour:function(d){return function(){this.hour=Number(d)}},minute:function(d){return function(){this.minute=Number(d)}},second:function(d){return function(){this.second=Number(d)}},secondAndMillisecond:function(d){return function(){var e=d.match(/^([0-5][0-9])\.([0-9]{1,3})/);this.second=Number(e[1]);this.millisecond=Number(e[2])}},meridian:function(d){return function(){this.meridian=d.slice(0,1).toLowerCase()}},timezone:function(d){return function(){var e=d.replace(/[^\d\+\-]/g,"");e.length?this.timezoneOffset=Number(e):this.timezone=d.toLowerCase()}},day:function(e){var d=e[0];return function(){this.day=Number(d.match(/\d+/)[0]);if(1>this.day){throw"invalid day"}}},month:function(d){return function(){this.month=3===d.length?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(d)/4:Number(d)-1;if(0>this.month){throw"invalid month"}}},year:function(d){return function(){var e=Number(d);this.year=2<d.length?e:e+(e+2000<Date.CultureInfo.twoDigitYearMax?2000:1900)}},rday:function(d){return function(){switch(d){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){e=e instanceof Array?e:[e];for(var d=0;d<e.length;d++){e[d]&&e[d].call(this)}e=new Date;!this.hour&&!this.minute||this.month||this.year||this.day||(this.day=e.getDate());this.year||(this.year=e.getFullYear());this.month||0===this.month||(this.month=e.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);c.call(this);if(this.day>a.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.")}e=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);100>this.year&&e.setFullYear(this.year);this.timezone?e.set({timezone:this.timezone}):this.timezoneOffset&&e.set({timezoneOffset:this.timezoneOffset});return e},finish:function(j){var f,d,i;j=j instanceof Array?b(j):[j];if(0===j.length){return null}for(f=0;f<j.length;f++){"function"===typeof j[f]&&j[f].call(this)}if(!this.now||this.unit||this.operator){j=this.now||-1!=="hour minute second".indexOf(this.unit)?new Date:a.today()}else{return new Date}f=!!(this.days&&null!==this.days||this.orient||this.operator);d="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,f=!0);f||!this.weekday||this.day||this.days||(i=Date[this.weekday](),this.day=i.getDate(),this.month||(this.month=i.getMonth()),this.year=i.getFullYear());if(f&&this.weekday&&"month"!==this.unit&&"week"!==this.unit){var h=j;i=d||1;this.unit="day";this.days=(h=a.getDayNumberFromName(this.weekday)-h.getDay())?(h+7*i)%7:7*i}!this.weekday||"week"===this.unit||this.day||this.days||(i=Date[this.weekday](),this.day=i.getDate(),i.getMonth()!==j.getMonth()&&(this.month=i.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&&(j.set({day:1*this.value}),f||(this.day=1*this.value));this.month||!this.value||"month"!==this.unit||this.now||(this.month=this.value,f=!0);f&&(this.month||0===this.month)&&"year"!==this.unit&&(i=d||1,this.unit="month",this.months=(h=this.month-j.getMonth())?(h+12*i)%12:12*i,this.month=null);this.unit||(this.unit="day");if(!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)*d}else{if(null==this[this.unit+"s"]||null!=this.operator){this.value||(this.value=1),this[this.unit+"s"]=this.value*d}}c.call(this);!this.month&&0!==this.month||this.day||(this.day=1);if(!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 j=Date[void 0!==this.weekday?this.weekday:"today"]().addWeeks(this.weeks),this.now&&j.setTimeToNow(),j}f&&this.timezone&&this.day&&this.days&&(this.day=this.days);f?j.add(this):j.set(this);this.timezone&&(this.timezone=this.timezone.toUpperCase(),f=a.getTimezoneOffset(this.timezone),j.hasDaylightSavingTime()&&(d=a.getTimezoneAbbreviation(f,j.isDaylightSavingTime()),d!==this.timezone&&(j.isDaylightSavingTime()?j.addHours(-1):j.addHours(1))),j.setTimezoneOffset(f));return j}}})();(function(){var o=Date;o.Grammar={};var q=o.Parsing.Operators,u=o.Grammar,v=o.Translator,x;x=function(){return q.each(q.any.apply(null,arguments),q.not(u.ctoken2("timeContext")))};u.datePartDelimiter=q.rtoken(/^([\s\-\.\,\/\x27]+)/);u.timePartDelimiter=q.stoken(":");u.whiteSpace=q.rtoken(/^\s*/);u.generalDelimiter=q.rtoken(/^(([\s\,]|at|@|on)+)/);var w={};u.ctoken=function(b){var m=w[b];if(!m){for(var m=Date.CultureInfo.regexPatterns,h=b.split(/\s+/),k=[],f=0;f<h.length;f++){k.push(q.replace(q.rtoken(m[h[f]]),h[f]))}m=w[b]=q.any.apply(null,k)}return m};u.ctoken2=function(b){return q.rtoken(Date.CultureInfo.regexPatterns[b])};var s=function(f,d,h,g){u[f]=g?q.cache(q.process(q.each(q.rtoken(d),q.optional(u.ctoken2(g))),h)):q.cache(q.process(q.rtoken(d),h))},p=function(d,c){return q.cache(q.process(u.ctoken2(d),c))},j={},l=function(b){j[b]=j[b]||u.format(b)[0];return j[b]};u.allformats=function(e){var d=[];if(e instanceof Array){for(var f=0;f<e.length;f++){d.push(l(e[f]))}}else{d.push(l(e))}return d};u.formats=function(e){if(e instanceof Array){for(var d=[],f=0;f<e.length;f++){d.push(l(e[f]))}return q.any.apply(null,d)}return l(e)};var i={timeFormats:function(){var e,d="h hh H HH m mm s ss ss.s z zz".split(" "),f=[/^(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)/],c=[v.hour,v.hour,v.hour,v.minute,v.minute,v.second,v.second,v.secondAndMillisecond,v.timezone,v.timezone,v.timezone];for(e=0;e<d.length;e++){s(d[e],f[e],c[e])}u.hms=q.cache(q.sequence([u.H,u.m,u.s],u.timePartDelimiter));u.t=p("shortMeridian",v.meridian);u.tt=p("longMeridian",v.meridian);u.zzz=p("timezone",v.timezone);u.timeSuffix=q.each(q.ignore(u.whiteSpace),q.set([u.tt,u.zzz]));u.time=q.each(q.optional(q.ignore(q.stoken("T"))),u.hms,u.timeSuffix)},dateFormats:function(){var c=function(){return q.set(arguments,u.datePartDelimiter)},f,e="d dd M MM y yy yyy yyyy".split(" "),a=[/^([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)/],y=[v.day,v.day,v.month,v.month,v.year,v.year,v.year,v.year],d=["ordinalSuffix","ordinalSuffix"];for(f=0;f<e.length;f++){s(e[f],a[f],y[f],d[f])}u.MMM=u.MMMM=q.cache(q.process(u.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),v.month));u.ddd=u.dddd=q.cache(q.process(u.ctoken("sun mon tue wed thu fri sat"),function(b){return function(){this.weekday=b}}));u.day=x(u.d,u.dd);u.month=x(u.M,u.MMM);u.year=x(u.yyyy,u.yy);u.mdy=c(u.ddd,u.month,u.day,u.year);u.ymd=c(u.ddd,u.year,u.month,u.day);u.dmy=c(u.ddd,u.day,u.month,u.year);u.date=function(b){return(u[Date.CultureInfo.dateElementOrder]||u.mdy).call(this,b)}},relative:function(){u.orientation=q.process(u.ctoken("past future"),function(b){return function(){this.orient=b}});u.operator=q.process(u.ctoken("add subtract"),function(b){return function(){this.operator=b}});u.rday=q.process(u.ctoken("yesterday tomorrow today now"),v.rday);u.unit=q.process(u.ctoken("second minute hour day week month year"),function(b){return function(){this.unit=b}})}};u.buildGrammarFormats=function(){w={};i.timeFormats();i.dateFormats();i.relative();u.value=q.process(q.rtoken(/^([-+]?\d+)?(st|nd|rd|th)?/),function(b){return function(){this.value=b.replace(/\D/g,"")}});u.expression=q.set([u.rday,u.operator,u.value,u.unit,u.orientation,u.ddd,u.MMM]);u.format=q.process(q.many(q.any(q.process(q.rtoken(/^(dd?d?d?(?!e)|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(b){if(u[b]){return u[b]}throw o.Parsing.Exception(b)}),q.process(q.rtoken(/^[^dMyhHmstz]+/),function(b){return q.ignore(q.stoken(b))}))),function(b){return q.process(q.each.apply(null,b),v.finishExact)});u._start=q.process(q.set([u.date,u.time,u.expression],u.generalDelimiter,u.whiteSpace),v.finish)};u.buildGrammarFormats();u._formats=u.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'.split(";"));u.start=function(e){try{var d=u._formats.call({},e);if(0===d[1].length){return d}}catch(f){}return u._start.call({},e)}})();(function(){var a=Date,b={removeOrds:function(c){return c=(ords=c.match(/\b(\d+)(?:st|nd|rd|th)\b/))&&2===ords.length?c.replace(ords[0],ords[1]):c},grammarParser:function(f){var g=null;try{g=a.Grammar.start.call({},f.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(e){return null}return 0===g[1].length?g[0]:null},nativeFallback:function(f){var g;try{return(g=Date._parse(f))||0===g?new Date(g):null}catch(e){return null}}};a._parse||(a._parse=a.parse);a.parse=function(e){var f;if(!e){return null}if(e instanceof Date){return e.clone()}4<=e.length&&"0"!==e.charAt(0)&&"+"!==e.charAt(0)&&"-"!==e.charAt(0)&&(f=a.Parsing.ISO.parse(e)||a.Parsing.Numeric.parse(e));if(f instanceof Date&&!isNaN(f.getTime())){return f}e=a.Parsing.Normalizer.parse(b.removeOrds(e));f=b.grammarParser(e);return null!==f?f:b.nativeFallback(e)};Date.getParseFunction=function(e){var f=Date.Grammar.allformats(e);return function(g){for(var c=null,h=0;h<f.length;h++){try{c=f[h].call({},g)}catch(i){continue}if(0===c[1].length){return c[0]}}return null}};a.parseExact=function(e,f){return a.getParseFunction(f)(e)}})();(function(){var i=Date,j=i.prototype,k=function(d,c){c||(c=2);return("000"+d).slice(-1*c)},l={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"},g={substitutes:function(b){return l[b]},interpreted:function(h,d){var n;switch(h){case"%u":return d.getDay()+1;case"z":return d.getOrdinalNumber();case"%j":return k(d.getOrdinalNumber(),3);case"%U":n=d.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var m=d.clone().addDays(1).moveToDayOfWeek(0,-1);return m<n?"00":k((m.getOrdinalNumber()-n.getOrdinalNumber())/7+1);case"%W":return k(d.getWeek());case"t":return i.getDaysInMonth(d.getFullYear(),d.getMonth());case"o":case"%G":return d.setWeek(d.getISOWeek()).toString("yyyy");case"%g":return d._format("%G").slice(-2);case"a":case"%p":return t("tt").toLowerCase();case"A":return t("tt").toUpperCase();case"u":return k(d.getMilliseconds(),3);case"I":return d.isDaylightSavingTime()?1:0;case"O":return d.getUTCOffset();case"P":return n=d.getUTCOffset(),n.substring(0,n.length-2)+":"+n.substring(n.length-2);case"B":return n=new Date,Math.floor((3600*n.getHours()+60*n.getMinutes()+n.getSeconds()+60*(n.getTimezoneOffset()+60))/86.4);case"c":return d.toISOString().replace(/\"/g,"");case"U":return i.strtotime("now");case"%c":return t("d")+" "+t("t");case"%C":return Math.floor(d.getFullYear()/100+1)}},shouldOverrideDefaults:function(b){switch(b){case"%e":return !0;default:return !1}},parse:function(a,n){var m,h=n||new Date;return(m=g.substitutes(a))?m:(m=g.interpreted(a,h))?m:a}};i.normalizeFormat=function(a,d){return a.replace(/(%|\\)?.|%%/g,function(c){return g.parse(c,d)})};i.strftime=function(d,c){return Date.parse(c)._format(d)};i.strtotime=function(b){b=i.parse(b);return Math.round(i.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds(),b.getUTCMilliseconds())/1000)};var e=function(a){return function(f){var b=!1;if("\\"===f.charAt(0)||"%%"===f.substring(0,2)){return f.replace("\\","").replace("%%","%")}b=g.shouldOverrideDefaults(f);if(f=i.normalizeFormat(f,a)){return a.toString(f,b)}}};j._format=function(b){var d=e(this);return b?b.replace(/(%|\\)?.|%%/g,d):this._toString()};j.format||(j.format=j._format)})();(function(){var a=function(d){return function(){return this[d]}},b=function(d){return function(e){this[d]=e;return this}},c=function(n,g,d,m,l){if(1===arguments.length&&"number"===typeof n){var j=0>n?-1:1,i=Math.abs(n);this.setDays(Math.floor(i/86400000)*j);i%=86400000;this.setHours(Math.floor(i/3600000)*j);i%=3600000;this.setMinutes(Math.floor(i/60000)*j);i%=60000;this.setSeconds(Math.floor(i/1000)*j);this.setMilliseconds(i%1000*j)}else{this.set(n,g,d,m,l)}this.getTotalMilliseconds=function(){return 86400000*this.getDays()+3600000*this.getHours()+60000*this.getMinutes()+1000*this.getSeconds()};this.compareTo=function(f){var e=new Date(1970,1,1,this.getHours(),this.getMinutes(),this.getSeconds());f=null===f?new Date(1970,1,1,0,0,0):new Date(1970,1,1,f.getHours(),f.getMinutes(),f.getSeconds());return e<f?-1:e>f?1:0};this.equals=function(e){return 0===this.compareTo(e)};this.add=function(e){return null===e?this:this.addSeconds(e.getTotalMilliseconds()/1000)};this.subtract=function(e){return null===e?this:this.addSeconds(-e.getTotalMilliseconds()/1000)};this.addDays=function(e){return new c(this.getTotalMilliseconds()+86400000*e)};this.addHours=function(e){return new c(this.getTotalMilliseconds()+3600000*e)};this.addMinutes=function(e){return new c(this.getTotalMilliseconds()+60000*e)};this.addSeconds=function(e){return new c(this.getTotalMilliseconds()+1000*e)};this.addMilliseconds=function(e){return new c(this.getTotalMilliseconds()+e)};this.get12HourHour=function(){return 12<this.getHours()?this.getHours()-12:0===this.getHours()?12:this.getHours()};this.getDesignator=function(){return 12>this.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator};this.toString=function(f){this._toString=function(){return null!==this.getDays()&&0<this.getDays()?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(h){return 2>h.toString().length?"0"+h:h};var e=this;return f?f.replace(/dd?|HH?|hh?|mm?|ss?|tt?/g,function(h){switch(h){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(12>e.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator).substring(0,1);case"tt":return 12>e.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator}}):this._toString()};return this};(function(j,g){for(var f=0;f<g.length;f++){var h=g[f],i=h.slice(0,1).toUpperCase()+h.slice(1);j.prototype[h]=0;j.prototype["get"+i]=a(h);j.prototype["set"+i]=b(h)}})(c,"years months days hours minutes seconds milliseconds".split(" ").slice(2));c.prototype.set=function(j,g,f,h,i){this.setDays(j||this.getDays());this.setHours(g||this.getHours());this.setMinutes(f||this.getMinutes());this.setSeconds(h||this.getSeconds());this.setMilliseconds(i||this.getMilliseconds())};Date.prototype.getTimeOfDay=function(){return new c(0,this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())};Date.TimeSpan=c;"undefined"!==typeof window&&(window.TimeSpan=c)})();(function(){var a=function(c){return function(){return this[c]}},b=function(c){return function(d){this[c]=d;return this}},e=function(i,h,l,k){function j(){h.addMonths(-i);k.months++;12===k.months&&(k.years++,k.months=0)}if(1===i){for(;h>l;){j()}}else{for(;h<l;){j()}}k.months--;k.months*=i;k.years*=i},g=function(y,x,w,v,u,o,j){if(7===arguments.length){this.set(y,x,w,v,u,o,j)}else{if(2===arguments.length&&arguments[0] instanceof Date&&arguments[1] instanceof Date){var m=arguments[0].clone(),i=arguments[1].clone(),d=m>i?1:-1;this.dates={start:arguments[0].clone(),end:arguments[1].clone()};e(d,m,i,this);var z=!1===(m.isDaylightSavingTime()===i.isDaylightSavingTime());z&&1===d?m.addHours(-1):z&&m.addHours(1);m=i-m;0!==m&&(m=new TimeSpan(m),this.set(this.years,this.months,m.getDays(),m.getHours(),m.getMinutes(),m.getSeconds(),m.getMilliseconds()))}}return this};(function(i,h){for(var k=0;k<h.length;k++){var j=h[k],f=j.slice(0,1).toUpperCase()+j.slice(1);i.prototype[j]=0;i.prototype["get"+f]=a(j);i.prototype["set"+f]=b(j)}})(g,"years months days hours minutes seconds milliseconds".split(" "));g.prototype.set=function(j,i,p,m,l,k,o){this.setYears(j||this.getYears());this.setMonths(i||this.getMonths());this.setDays(p||this.getDays());this.setHours(m||this.getHours());this.setMinutes(l||this.getMinutes());this.setSeconds(k||this.getSeconds());this.setMilliseconds(o||this.getMilliseconds())};Date.TimePeriod=g;"undefined"!==typeof window&&(window.TimePeriod=g)})();