UNPKG

rat-provider

Version:

rat-provider component for Rat.

2 lines 322 kB
// {"framework" : "Rax"} define("rat-provider",["rat-frame","rat-util"],function(require,exports,module){module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var module=t[o]={i:o,l:!1,exports:{}};return e[o].call(module.exports,module,module.exports,n),module.l=!0,module.exports}return n.m=e,n.c=t,n.d=function(exports,e,t){n.o(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:t})},n.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(module){var e=module&&module.__esModule?function(){return module.default}:function(){return module};return n.d(e,"a",e),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=128)}([function(module,exports,e){"use strict";(function(module){var t,n,o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=function(){var t,n;function o(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function _(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,o){return jt(e,t,n,o,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){if(null==e._isValid){var t=y(e),o=n.call(t.parsedDateParts,function(e){return null!=e}),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function p(e){var t=c(NaN);return null!=e?l(y(t),e):y(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var h=o.momentProperties=[];function M(e,t){var n,o,a;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=y(t)),i(t._locale)||(e._locale=t._locale),h.length>0)for(n=0;n<h.length;n++)i(a=t[o=h[n]])||(e[o]=a);return e}var L=!1;function Y(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,o.updateOffset(this),L=!1)}function b(e){return e instanceof Y||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function S(e,t,n){var o,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(o=0;o<a;o++)(n&&e[o]!==t[o]||!n&&D(e[o])!==D(t[o]))&&s++;return s+r}function v(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return l(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var r,s=[],i=0;i<arguments.length;i++){if(r="","object"===a(arguments[i])){for(var d in r+="\n["+i+"] ",arguments[0])r+=d+": "+arguments[0][d]+", ";r=r.slice(0,-2)}else r=arguments[i];s.push(r)}v(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var g,w={};function j(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),w[e]||(v(t),w[e]=!0)}function H(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,o=l({},e);for(n in t)m(t,n)&&(s(e[n])&&s(t[n])?(o[n]={},l(o[n],e[n]),l(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)m(e,n)&&!m(t,n)&&s(e[n])&&(o[n]=l({},o[n]));return o}function P(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,g=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};var O={};function W(e,t){var n=e.toLowerCase();O[n]=O[n+"s"]=O[t]=e}function E(e){return"string"==typeof e?O[e]||O[e.toLowerCase()]:void 0}function F(e){var t,n,o={};for(n in e)m(e,n)&&(t=E(n))&&(o[t]=e[n]);return o}var A={};function z(e,t){A[e]=t}function J(e,t,n){var o=""+Math.abs(e),a=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},R={};function U(e,t,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(R[e]=a),t&&(R[t[0]]=function(){return J(a.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=V(t,e.localeData()),I[t]=I[t]||function(e){var t,n,o,a=e.match(C);for(t=0,n=a.length;t<n;t++)R[a[t]]?a[t]=R[a[t]]:a[t]=(o=a[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,r="";for(o=0;o<n;o++)r+=H(a[o])?a[o].call(t,e):a[o];return r}}(t),I[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,o),N.lastIndex=0,n-=1;return e}var $=/\d/,K=/\d\d/,Z=/\d{3}/,q=/\d{4}/,B=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ae=/\d+/,re=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e={};function ue(e,t,n){_e[e]=H(t)?t:function(e,o){return e&&n?n:t}}function me(e,t){return m(_e,e)?_e[e](t._strict,t._locale):new RegExp(le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,a){return t||n||o||a})))}function le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ce={};function ye(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),d(t)&&(o=function(e,n){n[t]=D(e)}),n=0;n<e.length;n++)ce[e[n]]=o}function fe(e,t){ye(e,function(e,n,o,a){o._w=o._w||{},t(e,o._w,o,a)})}function pe(e,t,n){null!=t&&m(ce,e)&&ce[e](t,n._a,n,e)}var he=0,Me=1,Le=2,Ye=3,be=4,ke=5,De=6,Se=7,ve=8;function Te(e){return ge(e)?366:365}function ge(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),W("year","y"),z("year",1),ue("Y",re),ue("YY",Q,K),ue("YYYY",ne,q),ue("YYYYY",oe,B),ue("YYYYYY",oe,B),ye(["YYYYY","YYYYYY"],he),ye("YYYY",function(e,t){t[he]=2===e.length?o.parseTwoDigitYear(e):D(e)}),ye("YY",function(e,t){t[he]=o.parseTwoDigitYear(e)}),ye("Y",function(e,t){t[he]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return D(e)+(D(e)>68?1900:2e3)};var we,je=He("FullYear",!0);function He(e,t){return function(n){return null!=n?(Pe(this,e,n),o.updateOffset(this,t),this):xe(this,e)}}function xe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ge(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Oe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,o=(t%(n=12)+n)%n;return e+=(t-o)/12,1===o?ge(e)?29:28:31-o%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),W("month","M"),z("month",8),ue("M",Q),ue("MM",Q,K),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),ye(["M","MM"],function(e,t){t[Me]=D(e)-1}),ye(["MMM","MMMM"],function(e,t,n,o){var a=n._locale.monthsParse(e,o,n._strict);null!=a?t[Me]=a:y(n).invalidMonth=e});var We=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Fe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ae(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ze(e){return null!=e?(Ae(this,e),o.updateOffset(this,!0),this):xe(this,"Month")}var Je=de;var Ce=de;function Ne(){function e(e,t){return t.length-e.length}var t,n,o=[],a=[],r=[];for(t=0;t<12;t++)n=c([2e3,t]),o.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),a.sort(e),r.sort(e),t=0;t<12;t++)o[t]=le(o[t]),a[t]=le(a[t]);for(t=0;t<24;t++)r[t]=le(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ie(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Re(e,t,n){var o=7+t-n;return-((7+Ie(e,0,o).getUTCDay()-t)%7)+o-1}function Ue(e,t,n,o,a){var r,s,i=1+7*(t-1)+(7+n-o)%7+Re(e,o,a);return i<=0?s=Te(r=e-1)+i:i>Te(e)?(r=e+1,s=i-Te(e)):(r=e,s=i),{year:r,dayOfYear:s}}function Ge(e,t,n){var o,a,r=Re(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?o=s+Ve(a=e.year()-1,t,n):s>Ve(e.year(),t,n)?(o=s-Ve(e.year(),t,n),a=e.year()+1):(a=e.year(),o=s),{week:o,year:a}}function Ve(e,t,n){var o=Re(e,t,n),a=Re(e+1,t,n);return(Te(e)-o+a)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),z("week",5),z("isoWeek",5),ue("w",Q),ue("ww",Q,K),ue("W",Q),ue("WW",Q,K),fe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=D(e)});U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null!=a?t.d=a:y(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,o){t[o]=D(e)});var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var qe=de;var Be=de;var Qe=de;function Xe(){function e(e,t){return t.length-e.length}var t,n,o,a,r,s=[],i=[],d=[],_=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),o=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(o),i.push(a),d.push(r),_.push(o),_.push(a),_.push(r);for(s.sort(e),i.sort(e),d.sort(e),_.sort(e),t=0;t<7;t++)i[t]=le(i[t]),d[t]=le(d[t]),_[t]=le(_[t]);this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,et),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+et.apply(this)+J(this.minutes(),2)}),U("hmmss",0,0,function(){return""+et.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)}),tt("a",!0),tt("A",!1),W("hour","h"),z("hour",13),ue("a",nt),ue("A",nt),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,K),ue("hh",Q,K),ue("kk",Q,K),ue("hmm",X),ue("hmmss",ee),ue("Hmm",X),ue("Hmmss",ee),ye(["H","HH"],Ye),ye(["k","kk"],function(e,t,n){var o=D(e);t[Ye]=24===o?0:o}),ye(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ye(["h","hh"],function(e,t,n){t[Ye]=D(e),y(n).bigHour=!0}),ye("hmm",function(e,t,n){var o=e.length-2;t[Ye]=D(e.substr(0,o)),t[be]=D(e.substr(o)),y(n).bigHour=!0}),ye("hmmss",function(e,t,n){var o=e.length-4,a=e.length-2;t[Ye]=D(e.substr(0,o)),t[be]=D(e.substr(o,2)),t[ke]=D(e.substr(a)),y(n).bigHour=!0}),ye("Hmm",function(e,t,n){var o=e.length-2;t[Ye]=D(e.substr(0,o)),t[be]=D(e.substr(o))}),ye("Hmmss",function(e,t,n){var o=e.length-4,a=e.length-2;t[Ye]=D(e.substr(0,o)),t[be]=D(e.substr(o,2)),t[ke]=D(e.substr(a))});var ot,at=He("Hours",!0),rt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Fe,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Ze,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},st={},it={};function dt(e){return e?e.toLowerCase().replace("_","-"):e}function _t(t){var n=null;if(!st[t]&&void 0!==module&&module&&module.exports)try{n=ot._abbr;e(138)("./"+t),ut(n)}catch(e){}return st[t]}function ut(e,t){var n;return e&&((n=i(t)?lt(e):mt(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function mt(e,t){if(null!==t){var n,o=rt;if(t.abbr=e,null!=st[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])o=st[t.parentLocale]._config;else{if(null==(n=_t(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;o=n._config}return st[e]=new P(x(o,t)),it[e]&&it[e].forEach(function(e){mt(e.name,e.config)}),ut(e),st[e]}return delete st[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!r(e)){if(t=_t(e))return t;e=[e]}return function(e){for(var t,n,o,a,r=0;r<e.length;){for(t=(a=dt(e[r]).split("-")).length,n=(n=dt(e[r+1]))?n.split("-"):null;t>0;){if(o=_t(a.slice(0,t).join("-")))return o;if(n&&n.length>=t&&S(a,n,!0)>=t-1)break;t--}r++}return ot}(e)}function ct(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Me]<0||n[Me]>11?Me:n[Le]<1||n[Le]>Oe(n[he],n[Me])?Le:n[Ye]<0||n[Ye]>24||24===n[Ye]&&(0!==n[be]||0!==n[ke]||0!==n[De])?Ye:n[be]<0||n[be]>59?be:n[ke]<0||n[ke]>59?ke:n[De]<0||n[De]>999?De:-1,y(e)._overflowDayOfYear&&(t<he||t>Le)&&(t=Le),y(e)._overflowWeeks&&-1===t&&(t=Se),y(e)._overflowWeekday&&-1===t&&(t=ve),y(e).overflow=t),e}function yt(e,t,n){return null!=e?e:null!=t?t:n}function ft(e){var t,n,a,r,s,i=[];if(!e._d){for(a=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Le]&&null==e._a[Me]&&function(e){var t,n,o,a,r,s,i,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,s=4,n=yt(t.GG,e._a[he],Ge(Ht(),1,4).year),o=yt(t.W,1),((a=yt(t.E,1))<1||a>7)&&(d=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var _=Ge(Ht(),r,s);n=yt(t.gg,e._a[he],_.year),o=yt(t.w,_.week),null!=t.d?((a=t.d)<0||a>6)&&(d=!0):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(d=!0)):a=r}o<1||o>Ve(n,r,s)?y(e)._overflowWeeks=!0:null!=d?y(e)._overflowWeekday=!0:(i=Ue(n,o,a,r,s),e._a[he]=i.year,e._dayOfYear=i.dayOfYear)}(e),null!=e._dayOfYear&&(s=yt(e._a[he],a[he]),(e._dayOfYear>Te(s)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=Ie(s,0,e._dayOfYear),e._a[Me]=n.getUTCMonth(),e._a[Le]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=a[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ye]&&0===e._a[be]&&0===e._a[ke]&&0===e._a[De]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?Ie:function(e,t,n,o,a,r,s){var i=new Date(e,t,n,o,a,r,s);return e<100&&e>=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}var pt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mt=/Z|[+-]\d\d(?::?\d\d)?/,Lt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,o,a,r,s,i=e._i,d=pt.exec(i)||ht.exec(i);if(d){for(y(e).iso=!0,t=0,n=Lt.length;t<n;t++)if(Lt[t][1].exec(d[1])){a=Lt[t][0],o=!1!==Lt[t][2];break}if(null==a)return void(e._isValid=!1);if(d[3]){for(t=0,n=Yt.length;t<n;t++)if(Yt[t][1].exec(d[3])){r=(d[2]||" ")+Yt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(d[4]){if(!Mt.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=a+(r||"")+(s||""),gt(e)}else e._isValid=!1}var Dt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function St(e,t,n,o,a,r){var s=[function(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;if(t<=999)return 1900+t;return t}(e),Fe.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(a,10)];return r&&s.push(parseInt(r,10)),s}var vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t=Dt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(t){var n=St(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){return!e||Ke.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}(t[8],t[9],t[10]),e._d=Ie.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function gt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,a,r,s,i=""+e._i,d=i.length,_=0;for(a=V(e._f,e._locale).match(C)||[],t=0;t<a.length;t++)r=a[t],(n=(i.match(me(r,e))||[])[0])&&((s=i.substr(0,i.indexOf(n))).length>0&&y(e).unusedInput.push(s),i=i.slice(i.indexOf(n)+n.length),_+=n.length),R[r]?(n?y(e).empty=!1:y(e).unusedTokens.push(r),pe(r,n,e)):e._strict&&!n&&y(e).unusedTokens.push(r);y(e).charsLeftOver=d-_,i.length>0&&y(e).unusedInput.push(i),e._a[Ye]<=12&&!0===y(e).bigHour&&e._a[Ye]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ye]=function(e,t,n){var o;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[Ye],e._meridiem),ft(e),ct(e)}else Tt(e);else kt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new Y(ct(t)):(_(t)?e._d=t:r(n)?function(e){var t,n,o,a,r;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)r=0,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],gt(t),f(t)&&(r+=y(t).charsLeftOver,r+=10*y(t).unusedTokens.length,y(t).score=r,(null==o||r<o)&&(o=r,n=t));l(e,n||t)}(e):n?gt(e):function(e){var t=e._i;i(t)?e._d=new Date(o.now()):_(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=bt.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),ft(e)):s(t)?function(e){if(!e._d){var t=F(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ft(e)}}(e):d(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function jt(e,t,n,o,a){var i,d={};return!0!==n&&!1!==n||(o=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||r(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=a,d._l=n,d._i=e,d._f=t,d._strict=o,(i=new Y(ct(wt(d))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function Ht(e,t,n,o){return jt(e,t,n,o,!1)}o.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var xt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ht.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Pt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ht.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()});function Ot(e,t){var n,o;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Ht();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Et(e){var t=F(e),n=t.year||0,o=t.quarter||0,a=t.month||0,r=t.week||0,s=t.day||0,i=t.hour||0,d=t.minute||0,_=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===we.call(Wt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;o<Wt.length;++o)if(e[Wt[o]]){if(n)return!1;parseFloat(e[Wt[o]])!==D(e[Wt[o]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*_+6e4*d+1e3*i*60*60,this._days=+s+7*r,this._months=+a+3*o+12*n,this._data={},this._locale=lt(),this._bubble()}function Ft(e){return e instanceof Et}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function zt(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+J(~~(e/60),2)+t+J(~~e%60,2)})}zt("Z",":"),zt("ZZ",""),ue("Z",ie),ue("ZZ",ie),ye(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ct(ie,e)});var Jt=/([\+\-]|\d\d)/gi;function Ct(e,t){var n=(t||"").match(e);if(null===n)return null;var o=((n[n.length-1]||[])+"").match(Jt)||["-",0,0],a=60*o[1]+D(o[2]);return 0===a?0:"+"===o[0]?a:-a}function Nt(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(b(e)||_(e)?e.valueOf():Ht(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),o.updateOffset(n,!1),n):Ht(e).local()}function It(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Rt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}o.updateOffset=function(){};var Ut=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var n,o,r,s=e,i=null;return Ft(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(s={},t?s[t]=e:s.milliseconds=e):(i=Ut.exec(e))?(n="-"===i[1]?-1:1,s={y:0,d:D(i[Le])*n,h:D(i[Ye])*n,m:D(i[be])*n,s:D(i[ke])*n,ms:D(At(1e3*i[De]))*n}):(i=Gt.exec(e))?(n="-"===i[1]?-1:(i[1],1),s={y:$t(i[2],n),M:$t(i[3],n),w:$t(i[4],n),d:$t(i[5],n),h:$t(i[6],n),m:$t(i[7],n),s:$t(i[8],n)}):null==s?s={}:"object"===(void 0===s?"undefined":a(s))&&("from"in s||"to"in s)&&(r=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Nt(t,e),e.isBefore(t)?n=Kt(e,t):((n=Kt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Ht(s.from),Ht(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),o=new Et(s),Ft(e)&&m(e,"_locale")&&(o._locale=e._locale),o}function $t(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zt(e,t){return function(n,o){var a;return null===o||isNaN(+o)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),qt(this,Vt(n="string"==typeof n?+n:n,o),e),this}}function qt(e,t,n,a){var r=t._milliseconds,s=At(t._days),i=At(t._months);e.isValid()&&(a=null==a||a,i&&Ae(e,xe(e,"Month")+i*n),s&&Pe(e,"Date",xe(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),a&&o.updateOffset(e,s||i))}Vt.fn=Et.prototype,Vt.invalid=function(){return Vt(NaN)};var Bt=Zt(1,"add"),Qt=Zt(-1,"subtract");function Xt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(n+1,"months")-o)))||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}function on(e,t){U(0,[e,e.length],0,t)}function an(e,t,n,o,a){var r;return null==e?Ge(this,o,a).year:(t>(r=Ve(e,o,a))&&(t=r),function(e,t,n,o,a){var r=Ue(e,t,n,o,a),s=Ie(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,n,o,a))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),ue("G",re),ue("g",re),ue("GG",Q,K),ue("gg",Q,K),ue("GGGG",ne,q),ue("gggg",ne,q),ue("GGGGG",oe,B),ue("ggggg",oe,B),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=D(e)}),fe(["gg","GG"],function(e,t,n,a){t[a]=o.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),W("quarter","Q"),z("quarter",7),ue("Q",$),ye("Q",function(e,t){t[Me]=3*(D(e)-1)}),U("D",["DD",2],"Do","date"),W("date","D"),z("date",9),ue("D",Q),ue("DD",Q,K),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ye(["D","DD"],Le),ye("Do",function(e,t){t[Le]=D(e.match(Q)[0])});var rn=He("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),z("dayOfYear",4),ue("DDD",te),ue("DDDD",Z),ye(["DDD","DDDD"],function(e,t,n){n._dayOfYear=D(e)}),U("m",["mm",2],0,"minute"),W("minute","m"),z("minute",14),ue("m",Q),ue("mm",Q,K),ye(["m","mm"],be);var sn=He("Minutes",!1);U("s",["ss",2],0,"second"),W("second","s"),z("second",15),ue("s",Q),ue("ss",Q,K),ye(["s","ss"],ke);var dn,_n=He("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),W("millisecond","ms"),z("millisecond",16),ue("S",te,$),ue("SS",te,K),ue("SSS",te,Z),dn="SSSS";dn.length<=9;dn+="S")ue(dn,ae);function un(e,t){t[De]=D(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ye(dn,un);var mn=He("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ln=Y.prototype;function cn(e){return e}ln.add=Bt,ln.calendar=function(e,t){var n=e||Ht(),a=Nt(n,this).startOf("day"),r=o.calendarFormat(this,a)||"sameElse",s=t&&(H(t[r])?t[r].call(this,n):t[r]);return this.format(s||this.localeData().calendar(r,this,Ht(n)))},ln.clone=function(){return new Y(this)},ln.diff=function(e,t,n){var o,a,r;if(!this.isValid())return NaN;if(!(o=Nt(e,this)).isValid())return NaN;switch(a=6e4*(o.utcOffset()-this.utcOffset()),t=E(t)){case"year":r=Xt(this,o)/12;break;case"month":r=Xt(this,o);break;case"quarter":r=Xt(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-a)/864e5;break;case"week":r=(this-o-a)/6048e5;break;default:r=this-o}return n?r:k(r)},ln.endOf=function(e){return void 0===(e=E(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},ln.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Ht(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(Ht(),e)},ln.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Ht(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(Ht(),e)},ln.get=function(e){return H(this[e=E(e)])?this[e]():this},ln.invalidAt=function(){return y(this).overflow},ln.isAfter=function(e,t){var n=b(e)?e:Ht(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=E(i(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},ln.isBefore=function(e,t){var n=b(e)?e:Ht(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=E(i(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},ln.isBetween=function(e,t,n,o){return("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},ln.isSame=function(e,t){var n,o=b(e)?e:Ht(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=E(t||"millisecond"))?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},ln.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ln.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ln.isValid=function(){return f(this)},ln.lang=tn,ln.locale=en,ln.localeData=nn,ln.max=Pt,ln.min=xt,ln.parsingFlags=function(){return l({},y(this))},ln.set=function(e,t){if("object"===(void 0===e?"undefined":a(e)))for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:A[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=F(e)),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit]);else if(H(this[e=E(e)]))return this[e](t);return this},ln.startOf=function(e){switch(e=E(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},ln.subtract=Qt,ln.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ln.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ln.toDate=function(){return new Date(this.valueOf())},ln.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+a)},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=je,ln.isLeapYear=function(){return ge(this.year())},ln.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=ze,ln.daysInMonth=function(){return Oe(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Ve(this.year(),1,4)},ln.date=rn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=at,ln.minute=ln.minutes=sn,ln.second=ln.seconds=_n,ln.millisecond=ln.milliseconds=mn,ln.utcOffset=function(e,t,n){var a,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ct(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=It(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?qt(this,Vt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:It(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ct(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ht(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Rt,ln.isUTC=Rt,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=T("dates accessor is deprecated. Use date instead.",rn),ln.months=T("months accessor is deprecated. Use month instead",ze),ln.years=T("years accessor is deprecated. Use year instead",je),ln.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),(e=wt(e))._a){var t=e._isUTC?c(e._a):Ht(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var yn=P.prototype;function fn(e,t,n,o){var a=lt(),r=c().set(o,t);return a[n](r,e)}function pn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=fn(e,o,n,"month");return a}function hn(e,t,n,o){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var a,r=lt(),s=e?r._week.dow:0;if(null!=n)return fn(t,(n+s)%7,o,"day");var i=[];for(a=0;a<7;a++)i[a]=fn(t,(a+s)%7,o,"day");return i}yn.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return H(o)?o.call(t,n):o},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=cn,yn.postformat=cn,yn.relativeTime=function(e,t,n,o){var a=this._relativeTime[n];return H(a)?a(e,t,n,o):a.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return H(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)H(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var o,a,r;if(this._monthsParseExact)return function(e,t,n){var o,a,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=c([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=we.call(this._shortMonthsParse,s))?a:null:-1!==(a=we.call(this._longMonthsParse,s))?a:null:"MMM"===t?-1!==(a=we.call(this._shortMonthsParse,s))?a:-1!==(a=we.call(this._longMonthsParse,s))?a:null:-1!==(a=we.call(this._longMonthsParse,s))?a:-1!==(a=we.call(this._shortMonthsParse,s))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=c([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},yn.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Ce),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Je),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},yn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var o,a,r;if(this._weekdaysParseExact)return function(e,t,n){var o,a,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=c([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=we.call(this._weekdaysParse,s))?a:null:"ddd"===t?-1!==(a=we.call(this._shortWeekdaysParse,s))?a:null:-1!==(a=we.call(this._minWeekdaysParse,s))?a:null:"dddd"===t?-1!==(a=we.call(this._weekdaysParse,s))?a:-1!==(a=we.call(this._shortWeekdaysParse,s))?a:-1!==(a=we.call(this._minWeekdaysParse,s))?a:null:"ddd"===t?-1!==(a=we.call(this._shortWeekdaysParse,s))?a:-1!==(a=we.call(this._weekdaysParse,s))?a:-1!==(a=we.call(this._minWeekdaysParse,s))?a:null:-1!==(a=we.call(this._minWeekdaysParse,s))?a:-1!==(a=we.call(this._weekdaysParse,s))?a:-1!==(a=we.call(this._shortWeekdaysParse,s))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=c([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",ut),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",lt);var Mn=Math.abs;function Ln(e,t,n,o){var a=Vt(t,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var Sn=Dn("ms"),vn=Dn("s"),Tn=Dn("m"),gn=Dn("h"),wn=Dn("d"),jn=Dn("w"),Hn=Dn("M"),xn=Dn("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var On=Pn("milliseconds"),Wn=Pn("seconds"),En=Pn("minutes"),Fn=Pn("hours"),An=Pn("days"),zn=Pn("months"),Jn=Pn("years");var Cn=Math.round,Nn={ss:44,s:45,m:45,h:22,d:26,M:11};var In=Math.abs;function Rn(e){return(e>0)-(e<0)||+e}function Un(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=In(this._milliseconds)/1e3,o=In(this._days),a=In(this._months);t=k((e=k(n/60))/60),n%=60,e%=60;var r=k(a/12),s=a%=12,i=o,d=t,_=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",m=this.asSeconds();if(!m)return"P0D";var l=m<0?"-":"",c=Rn(this._months)!==Rn(m)?"-":"",y=Rn(this._days)!==Rn(m)?"-":"",f=Rn(this._milliseconds)!==Rn(m)?"-":"";return l+"P"+(r?c+r+"Y":"")+(s?c+s+"M":"")+(i?y+i+"D":"")+(d||_||u?"T":"")+(d?f+d+"H":"")+(_?f+_+"M":"")+(u?f+u+"S":"")}var Gn=Et.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=Mn(this._milliseconds),this._days=Mn(this._days),this._months=Mn(this._months),e.milliseconds=Mn(e.milliseconds),e.seconds=Mn(e.seconds),e.minutes=Mn(e.minutes),e.hours=Mn(e.hours),e.months=Mn(e.months),e.years=Mn(e.years),this},Gn.add=function(e,t){return Ln(this,e,t,1)},Gn.subtract=function(e,t){return Ln(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=E(e))||"year"===e)return t=this._days+o/864e5,n=this._months+bn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=Sn,Gn.asSeconds=vn,Gn.asMinutes=Tn,Gn.asHours=gn,Gn.asDays=wn,Gn.asWeeks=jn,Gn.asMonths=Hn,Gn.asYears=xn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},Gn._bubble=function(){var e,t,n,o,a,r=this._milliseconds,s=this._days,i=this._months,d=this._data;return r>=0&&s>=0&&i>=0||r<=0&&s<=0&&i<=0||(r+=864e5*Yn(kn(i)+s),s=0,i=0),d.milliseconds=r%1e3,e