UNPKG

@alifd/field

Version:

Fields can be used to manage data when it comes to form data manipulation and validation. After being associated with a component, the form data can be automatically written back, read, and verified.

11 lines 1.6 MB
!function(n){var t={};function e(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,e),s.l=!0,s.exports}e.m=n,e.c=t,e.d=function(n,t,a){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:a})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var s in n)e.d(a,s,function(t){return n[t]}.bind(null,s));return a},e.n=function(n){var t=n&&n.__esModule?function t(){return n.default}:function t(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=305)}([function(n,t,e){var a,s;n.exports=e(571)()},function(n,t,e){"use strict";n.exports=e(560)},function(n,t,e){"use strict";t.__esModule=!0;var a,s=o(e(580));function o(n){return n&&n.__esModule?n:{default:n}}t.default=s.default||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}return n}},function(n,t,e){"use strict";t.__esModule=!0;var a,s=o(e(16));function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,s.default)(t))&&"function"!=typeof t?n:t}},function(n,t,e){"use strict";t.__esModule=!0,t.default=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},function(n,t,e){var a,s; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var e={}.hasOwnProperty;function o(){for(var n="",t=0;t<arguments.length;t++){var e=arguments[t];e&&(n=i(n,r(e)))}return n}function r(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return o.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var t="";for(var a in n)e.call(n,a)&&n[a]&&(t=i(t,a));return t}function i(n,t){return t?n?n+" "+t:n+t:n}n.exports?(o.default=o,n.exports=o):void 0===(s=function(){return o}.apply(t,a=[]))||(n.exports=s)}()},function(n,t,e){"use strict";t.__esModule=!0;var a,s=p(e(610)),o,r=p(e(614)),i,l=p(e(16));function p(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,l.default)(t)));n.prototype=(0,r.default)(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(s.default?(0,s.default)(n,t):n.__proto__=t)}},function(n,t,e){"use strict";t.__esModule=!0,t.default=function(n,t){var e={};for(var a in n)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}},function(n,t,e){"use strict";var a=e(14),s=e(34).f,o=e(60),r=e(30),i=e(159),l=e(162),p=e(115);n.exports=function(n,t){var e=n.target,c=n.global,u=n.stat,f,d,h,m,k,g;if(d=c?a:u?a[e]||i(e,{}):a[e]&&a[e].prototype)for(h in t){if(k=t[h],m=n.dontCallGetSet?(g=s(d,h))&&g.value:d[h],!(f=p(c?h:e+(u?".":"#")+h,n.forced))&&void 0!==m){if(typeof k==typeof m)continue;l(k,m)}(n.sham||m&&m.sham)&&o(k,"sham",!0),r(d,h,k,n)}}},function(n,t,e){"use strict";function a(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}}a(),n.exports=e(561)},function(n,t,e){"use strict";n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,e){"use strict";function a(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=n&&this.setState(n)}function s(n){function t(t){var e=this.constructor.getDerivedStateFromProps(n,t);return null!=e?e:null}this.setState(t.bind(this))}function o(n,t){try{var e=this.props,a=this.state;this.props=n,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(e,a)}finally{this.props=e,this.state=a}}function r(n){var t=n.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof n.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return n;var e=null,r=null,i=null;if("function"==typeof t.componentWillMount?e="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(e="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==e||null!==r||null!==i){var l=n.displayName||n.name,p="function"==typeof n.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+p+" but also contains the following legacy lifecycles:"+(null!==e?"\n "+e:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof n.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=s),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function n(t,e,a){var s=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:a;c.call(this,t,e,s)}}return n}e.r(t),e.d(t,"polyfill",(function(){return r})),a.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(n,t,e){"use strict";var a=e(110),s=Function.prototype,o=s.call,r=a&&s.bind.bind(o,o);n.exports=a?r:function(n){return function(){return o.apply(n,arguments)}}},function(n,t,e){(function(n){var t,a,s;//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com a=this,s=function(){"use strict";var t,a;function s(){return t.apply(null,arguments)}function o(n){t=n}function r(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function i(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function p(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;var t;for(t in n)if(l(n,t))return!1;return!0}function c(n){return void 0===n}function u(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function f(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function d(n,t){var e=[],a,s=n.length;for(a=0;a<s;++a)e.push(t(n[a],a));return e}function h(n,t){for(var e in t)l(t,e)&&(n[e]=t[e]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function m(n,t,e,a){return $e(n,t,e,a,!0).utc()}function k(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function y(n){var t=null,e=!1,s=n._d&&!isNaN(n._d.getTime());return s&&(t=g(n),e=a.call(t.parsedDateParts,(function(n){return null!=n})),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&e),n._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(n)?s:(n._isValid=s,n._isValid)}function v(n){var t=m(NaN);return null!=n?h(g(t),n):g(t).userInvalidated=!0,t}a=Array.prototype.some?Array.prototype.some:function(n){var t=Object(this),e=t.length>>>0,a;for(a=0;a<e;a++)if(a in t&&n.call(this,t[a],a,t))return!0;return!1};var b=s.momentProperties=[],w=!1;function x(n,t){var e,a,s,o=b.length;if(c(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),c(t._i)||(n._i=t._i),c(t._f)||(n._f=t._f),c(t._l)||(n._l=t._l),c(t._strict)||(n._strict=t._strict),c(t._tzm)||(n._tzm=t._tzm),c(t._isUTC)||(n._isUTC=t._isUTC),c(t._offset)||(n._offset=t._offset),c(t._pf)||(n._pf=g(t)),c(t._locale)||(n._locale=t._locale),o>0)for(e=0;e<o;e++)c(s=t[a=b[e]])||(n[a]=s);return n}function C(n){x(this,n),this._d=new Date(null!=n._d?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,s.updateOffset(this),w=!1)}function S(n){return n instanceof C||null!=n&&null!=n._isAMomentObject}function E(n){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function O(n,t){var e=!0;return h((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,n),e){var a=[],o,r,i,p=arguments.length;for(r=0;r<p;r++){if(o="","object"==typeof arguments[r]){for(i in o+="\n["+r+"] ",arguments[0])l(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[r];a.push(o)}E(n+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),e=!1}return t.apply(this,arguments)}),t)}var T={},P;function _(n,t){null!=s.deprecationHandler&&s.deprecationHandler(n,t),T[n]||(E(t),T[n]=!0)}function N(n){return"undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function M(n){var t,e;for(e in n)l(n,e)&&(N(t=n[e])?this[e]=t:this["_"+e]=t);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function R(n,t){var e=h({},n),a;for(a in t)l(t,a)&&(i(n[a])&&i(t[a])?(e[a]={},h(e[a],n[a]),h(e[a],t[a])):null!=t[a]?e[a]=t[a]:delete e[a]);for(a in n)l(n,a)&&!l(t,a)&&i(n[a])&&(e[a]=h({},e[a]));return e}function D(n){null!=n&&this.set(n)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,P=Object.keys?Object.keys:function(n){var t,e=[];for(t in n)l(n,t)&&e.push(t);return e};var j={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(n,t,e){var a=this._calendar[n]||this._calendar.sameElse;return N(a)?a.call(t,e):a}function I(n,t,e){var a=""+Math.abs(n),s=t-a.length,o;return(n>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+a}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},B={};function z(n,t,e,a){var s=a;"string"==typeof a&&(s=function(){return this[a]()}),n&&(B[n]=s),t&&(B[t[0]]=function(){return I(s.apply(this,arguments),t[1],t[2])}),e&&(B[e]=function(){return this.localeData().ordinal(s.apply(this,arguments),n)})}function U(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function H(n){var t=n.match(L),e,a;for(e=0,a=t.length;e<a;e++)B[t[e]]?t[e]=B[t[e]]:t[e]=U(t[e]);return function(e){var s="",o;for(o=0;o<a;o++)s+=N(t[o])?t[o].call(e,n):t[o];return s}}function W(n,t){return n.isValid()?(t=Y(t,n.localeData()),F[t]=F[t]||H(t),F[t](n)):n.localeData().invalidDate()}function Y(n,t){var e=5;function a(n){return t.longDateFormat(n)||n}for(V.lastIndex=0;e>=0&&V.test(n);)n=n.replace(V,a),V.lastIndex=0,e-=1;return n}var q={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"};function K(n){var t=this._longDateFormat[n],e=this._longDateFormat[n.toUpperCase()];return t||!e?t:(this._longDateFormat[n]=e.match(L).map((function(n){return"MMMM"===n||"MM"===n||"DD"===n||"dddd"===n?n.slice(1):n})).join(""),this._longDateFormat[n])}var G="Invalid date";function $(){return this._invalidDate}var Q="%d",X=/\d{1,2}/;function Z(n){return this._ordinal.replace("%d",n)}var J={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nn(n,t,e,a){var s=this._relativeTime[e];return N(s)?s(n,t,e,a):s.replace(/%d/i,n)}function tn(n,t){var e=this._relativeTime[n>0?"future":"past"];return N(e)?e(t):e.replace(/%s/i,t)}var en={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function an(n){return"string"==typeof n?en[n]||en[n.toLowerCase()]:void 0}function sn(n){var t={},e,a;for(a in n)l(n,a)&&(e=an(a))&&(t[e]=n[a]);return t}var on={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function rn(n){var t=[],e;for(e in n)l(n,e)&&t.push({unit:e,priority:on[e]});return t.sort((function(n,t){return n.priority-t.priority})),t}var ln=/\d/,pn=/\d\d/,cn=/\d{3}/,un=/\d{4}/,fn=/[+-]?\d{6}/,dn=/\d\d?/,hn=/\d\d\d\d?/,mn=/\d\d\d\d\d\d?/,kn=/\d{1,3}/,gn=/\d{1,4}/,yn=/[+-]?\d{1,6}/,vn=/\d+/,bn=/[+-]?\d+/,wn=/Z|[+-]\d\d:?\d\d/gi,xn=/Z|[+-]\d\d(?::?\d\d)?/gi,Cn=/[+-]?\d+(\.\d{1,3})?/,Sn=/[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,En=/^[1-9]\d?/,On=/^([1-9]\d|\d)/,Tn;function Pn(n,t,e){Tn[n]=N(t)?t:function(n,a){return n&&e?e:t}}function _n(n,t){return l(Tn,n)?Tn[n](t._strict,t._locale):new RegExp(Nn(n))}function Nn(n){return Mn(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(n,t,e,a,s){return t||e||a||s})))}function Mn(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Rn(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function Dn(n){var t=+n,e=0;return 0!==t&&isFinite(t)&&(e=Rn(t)),e}Tn={};var jn={};function An(n,t){var e,a=t,s;for("string"==typeof n&&(n=[n]),u(t)&&(a=function(n,e){e[t]=Dn(n)}),s=n.length,e=0;e<s;e++)jn[n[e]]=a}function In(n,t){An(n,(function(n,e,a,s){a._w=a._w||{},t(n,a._w,a,s)}))}function Ln(n,t,e){null!=t&&l(jn,n)&&jn[n](t,e._a,e,n)}function Vn(n){return n%4==0&&n%100!=0||n%400==0}var Fn=0,Bn=1,zn=2,Un=3,Hn=4,Wn=5,Yn=6,qn=7,Kn=8;function Gn(n){return Vn(n)?366:365}z("Y",0,0,(function(){var n=this.year();return n<=9999?I(n,4):"+"+n})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Pn("Y",bn),Pn("YY",dn,pn),Pn("YYYY",gn,un),Pn("YYYYY",yn,fn),Pn("YYYYYY",yn,fn),An(["YYYYY","YYYYYY"],0),An("YYYY",(function(n,t){t[0]=2===n.length?s.parseTwoDigitYear(n):Dn(n)})),An("YY",(function(n,t){t[0]=s.parseTwoDigitYear(n)})),An("Y",(function(n,t){t[0]=parseInt(n,10)})),s.parseTwoDigitYear=function(n){return Dn(n)+(Dn(n)>68?1900:2e3)};var $n=Zn("FullYear",!0),Qn;function Xn(){return Vn(this.year())}function Zn(n,t){return function(e){return null!=e?(nt(this,n,e),s.updateOffset(this,t),this):Jn(this,n)}}function Jn(n,t){if(!n.isValid())return NaN;var e=n._d,a=n._isUTC;switch(t){case"Milliseconds":return a?e.getUTCMilliseconds():e.getMilliseconds();case"Seconds":return a?e.getUTCSeconds():e.getSeconds();case"Minutes":return a?e.getUTCMinutes():e.getMinutes();case"Hours":return a?e.getUTCHours():e.getHours();case"Date":return a?e.getUTCDate():e.getDate();case"Day":return a?e.getUTCDay():e.getDay();case"Month":return a?e.getUTCMonth():e.getMonth();case"FullYear":return a?e.getUTCFullYear():e.getFullYear();default:return NaN}}function nt(n,t,e){var a,s,o,r,i;if(n.isValid()&&!isNaN(e)){switch(a=n._d,s=n._isUTC,t){case"Milliseconds":return void(s?a.setUTCMilliseconds(e):a.setMilliseconds(e));case"Seconds":return void(s?a.setUTCSeconds(e):a.setSeconds(e));case"Minutes":return void(s?a.setUTCMinutes(e):a.setMinutes(e));case"Hours":return void(s?a.setUTCHours(e):a.setHours(e));case"Date":return void(s?a.setUTCDate(e):a.setDate(e));case"FullYear":break;default:return}o=e,r=n.month(),i=29!==(i=n.date())||1!==r||Vn(o)?i:28,s?a.setUTCFullYear(o,r,i):a.setFullYear(o,r,i)}}function tt(n){return N(this[n=an(n)])?this[n]():this}function et(n,t){if("object"==typeof n){var e=rn(n=sn(n)),a,s=e.length;for(a=0;a<s;a++)this[e[a].unit](n[e[a].unit])}else if(N(this[n=an(n)]))return this[n](t);return this}function at(n,t){return(n%t+t)%t}function st(n,t){if(isNaN(n)||isNaN(t))return NaN;var e=at(t,12);return n+=(t-e)/12,1===e?Vn(n)?29:28:31-e%7%2}Qn=Array.prototype.indexOf?Array.prototype.indexOf:function(n){var t;for(t=0;t<this.length;++t)if(this[t]===n)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(n){return this.localeData().monthsShort(this,n)})),z("MMMM",0,0,(function(n){return this.localeData().months(this,n)})),Pn("M",dn,En),Pn("MM",dn,pn),Pn("MMM",(function(n,t){return t.monthsShortRegex(n)})),Pn("MMMM",(function(n,t){return t.monthsRegex(n)})),An(["M","MM"],(function(n,t){t[1]=Dn(n)-1})),An(["MMM","MMMM"],(function(n,t,e,a){var s=e._locale.monthsParse(n,a,e._strict);null!=s?t[1]=s:g(e).invalidMonth=n}));var ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,lt=Sn,pt=Sn;function ct(n,t){return n?r(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][n.month()]:r(this._months)?this._months:this._months.standalone}function ut(n,t){return n?r(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[it.test(t)?"format":"standalone"][n.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ft(n,t,e){var a,s,o,r=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)o=m([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(o,"").toLocaleLowerCase();return e?"MMM"===t?-1!==(s=Qn.call(this._shortMonthsParse,r))?s:null:-1!==(s=Qn.call(this._longMonthsParse,r))?s:null:"MMM"===t?-1!==(s=Qn.call(this._shortMonthsParse,r))||-1!==(s=Qn.call(this._longMonthsParse,r))?s:null:-1!==(s=Qn.call(this._longMonthsParse,r))||-1!==(s=Qn.call(this._shortMonthsParse,r))?s:null}function dt(n,t,e){var a,s,o;if(this._monthsParseExact)return ft.call(this,n,t,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(s=m([2e3,a]),e&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),e||this._monthsParse[a]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[a]=new RegExp(o.replace(".",""),"i")),e&&"MMMM"===t&&this._longMonthsParse[a].test(n))return a;if(e&&"MMM"===t&&this._shortMonthsParse[a].test(n))return a;if(!e&&this._monthsParse[a].test(n))return a}}function ht(n,t){if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=Dn(t);else if(!u(t=n.localeData().monthsParse(t)))return n;var e=t,a=n.date();return a=a<29?a:Math.min(a,st(n.year(),e)),n._isUTC?n._d.setUTCMonth(e,a):n._d.setMonth(e,a),n}function mt(n){return null!=n?(ht(this,n),s.updateOffset(this,!0),this):Jn(this,"Month")}function kt(){return st(this.year(),this.month())}function gt(n){return this._monthsParseExact?(l(this,"_monthsRegex")||vt.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=lt),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(n){return this._monthsParseExact?(l(this,"_monthsRegex")||vt.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=pt),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function vt(){function n(n,t){return t.length-n.length}var t=[],e=[],a=[],s,o,r,i;for(s=0;s<12;s++)o=m([2e3,s]),r=Mn(this.monthsShort(o,"")),i=Mn(this.months(o,"")),t.push(r),e.push(i),a.push(i),a.push(r);t.sort(n),e.sort(n),a.sort(n),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function bt(n,t,e,a,s,o,r){var i;return n<100&&n>=0?(i=new Date(n+400,t,e,a,s,o,r),isFinite(i.getFullYear())&&i.setFullYear(n)):i=new Date(n,t,e,a,s,o,r),i}function wt(n){var t,e;return n<100&&n>=0?((e=Array.prototype.slice.call(arguments))[0]=n+400,t=new Date(Date.UTC.apply(null,e)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(n,t,e){var a=7+t-e,s;return-(7+wt(n,0,a).getUTCDay()-t)%7+a-1}function Ct(n,t,e,a,s){var o,r,i=1+7*(t-1)+(7+e-a)%7+xt(n,a,s),l,p;return i<=0?p=Gn(l=n-1)+i:i>Gn(n)?(l=n+1,p=i-Gn(n)):(l=n,p=i),{year:l,dayOfYear:p}}function St(n,t,e){var a=xt(n.year(),t,e),s=Math.floor((n.dayOfYear()-a-1)/7)+1,o,r;return s<1?o=s+Et(r=n.year()-1,t,e):s>Et(n.year(),t,e)?(o=s-Et(n.year(),t,e),r=n.year()+1):(r=n.year(),o=s),{week:o,year:r}}function Et(n,t,e){var a=xt(n,t,e),s=xt(n+1,t,e);return(Gn(n)-a+s)/7}function Ot(n){return St(n,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Pn("w",dn,En),Pn("ww",dn,pn),Pn("W",dn,En),Pn("WW",dn,pn),In(["w","ww","W","WW"],(function(n,t,e,a){t[a.substr(0,1)]=Dn(n)}));var Tt={dow:0,doy:6};function Pt(){return this._week.dow}function _t(){return this._week.doy}function Nt(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function Mt(n){var t=St(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function Rt(n,t){return"string"!=typeof n?n:isNaN(n)?"number"==typeof(n=t.weekdaysParse(n))?n:null:parseInt(n,10)}function Dt(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jt(n,t){return n.slice(t,7).concat(n.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,(function(n){return this.localeData().weekdaysMin(this,n)})),z("ddd",0,0,(function(n){return this.localeData().weekdaysShort(this,n)})),z("dddd",0,0,(function(n){return this.localeData().weekdays(this,n)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Pn("d",dn),Pn("e",dn),Pn("E",dn),Pn("dd",(function(n,t){return t.weekdaysMinRegex(n)})),Pn("ddd",(function(n,t){return t.weekdaysShortRegex(n)})),Pn("dddd",(function(n,t){return t.weekdaysRegex(n)})),In(["dd","ddd","dddd"],(function(n,t,e,a){var s=e._locale.weekdaysParse(n,a,e._strict);null!=s?t.d=s:g(e).invalidWeekday=n})),In(["d","e","E"],(function(n,t,e,a){t[a]=Dn(n)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vt=Sn,Ft=Sn,Bt=Sn;function zt(n,t){var e=r(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===n?jt(e,this._week.dow):n?e[n.day()]:e}function Ut(n){return!0===n?jt(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Ht(n){return!0===n?jt(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Wt(n,t,e){var a,s,o,r=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)o=m([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(o,"").toLocaleLowerCase();return e?"dddd"===t?-1!==(s=Qn.call(this._weekdaysParse,r))?s:null:"ddd"===t?-1!==(s=Qn.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=Qn.call(this._minWeekdaysParse,r))?s:null:"dddd"===t?-1!==(s=Qn.call(this._weekdaysParse,r))||-1!==(s=Qn.call(this._shortWeekdaysParse,r))||-1!==(s=Qn.call(this._minWeekdaysParse,r))?s:null:"ddd"===t?-1!==(s=Qn.call(this._shortWeekdaysParse,r))||-1!==(s=Qn.call(this._weekdaysParse,r))||-1!==(s=Qn.call(this._minWeekdaysParse,r))?s:null:-1!==(s=Qn.call(this._minWeekdaysParse,r))||-1!==(s=Qn.call(this._weekdaysParse,r))||-1!==(s=Qn.call(this._shortWeekdaysParse,r))?s:null}function Yt(n,t,e){var a,s,o;if(this._weekdaysParseExact)return Wt.call(this,n,t,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(s=m([2e3,1]).day(a),e&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[a]=new RegExp(o.replace(".",""),"i")),e&&"dddd"===t&&this._fullWeekdaysParse[a].test(n))return a;if(e&&"ddd"===t&&this._shortWeekdaysParse[a].test(n))return a;if(e&&"dd"===t&&this._minWeekdaysParse[a].test(n))return a;if(!e&&this._weekdaysParse[a].test(n))return a}}function qt(n){if(!this.isValid())return null!=n?this:NaN;var t=Jn(this,"Day");return null!=n?(n=Rt(n,this.localeData()),this.add(n-t,"d")):t}function Kt(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function Gt(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=Dt(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qt(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function n(n,t){return t.length-n.length}var t=[],e=[],a=[],s=[],o,r,i,l,p;for(o=0;o<7;o++)r=m([2e3,1]).day(o),i=Mn(this.weekdaysMin(r,"")),l=Mn(this.weekdaysShort(r,"")),p=Mn(this.weekdays(r,"")),t.push(i),e.push(l),a.push(p),s.push(i),s.push(l),s.push(p);t.sort(n),e.sort(n),a.sort(n),s.sort(n),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Jt(){return this.hours()%12||12}function ne(){return this.hours()||24}function te(n,t){z(n,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ee(n,t){return t._meridiemParse}function ae(n){return"p"===(n+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Jt),z("k",["kk",2],0,ne),z("hmm",0,0,(function(){return""+Jt.apply(this)+I(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Jt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),te("a",!0),te("A",!1),Pn("a",ee),Pn("A",ee),Pn("H",dn,On),Pn("h",dn,En),Pn("k",dn,En),Pn("HH",dn,pn),Pn("hh",dn,pn),Pn("kk",dn,pn),Pn("hmm",hn),Pn("hmmss",mn),Pn("Hmm",hn),Pn("Hmmss",mn),An(["H","HH"],3),An(["k","kk"],(function(n,t,e){var a=Dn(n);t[3]=24===a?0:a})),An(["a","A"],(function(n,t,e){e._isPm=e._locale.isPM(n),e._meridiem=n})),An(["h","hh"],(function(n,t,e){t[3]=Dn(n),g(e).bigHour=!0})),An("hmm",(function(n,t,e){var a=n.length-2;t[3]=Dn(n.substr(0,a)),t[4]=Dn(n.substr(a)),g(e).bigHour=!0})),An("hmmss",(function(n,t,e){var a=n.length-4,s=n.length-2;t[3]=Dn(n.substr(0,a)),t[4]=Dn(n.substr(a,2)),t[5]=Dn(n.substr(s)),g(e).bigHour=!0})),An("Hmm",(function(n,t,e){var a=n.length-2;t[3]=Dn(n.substr(0,a)),t[4]=Dn(n.substr(a))})),An("Hmmss",(function(n,t,e){var a=n.length-4,s=n.length-2;t[3]=Dn(n.substr(0,a)),t[4]=Dn(n.substr(a,2)),t[5]=Dn(n.substr(s))}));var se=/[ap]\.?m?\.?/i,oe=Zn("Hours",!0);function re(n,t,e){return n>11?e?"pm":"PM":e?"am":"AM"}var ie={calendar:j,longDateFormat:q,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:X,relativeTime:J,months:ot,monthsShort:rt,week:Tt,weekdays:At,weekdaysMin:Lt,weekdaysShort:It,meridiemParse:se},le={},pe={},ce;function ue(n,t){var e,a=Math.min(n.length,t.length);for(e=0;e<a;e+=1)if(n[e]!==t[e])return e;return a}function fe(n){return n?n.toLowerCase().replace("_","-"):n}function de(n){for(var t=0,e,a,s,o;t<n.length;){for(e=(o=fe(n[t]).split("-")).length,a=(a=fe(n[t+1]))?a.split("-"):null;e>0;){if(s=me(o.slice(0,e).join("-")))return s;if(a&&a.length>=e&&ue(o,a)>=e-1)break;e--}t++}return ce}function he(n){return!(!n||!n.match("^[^/\\\\]*$"))}function me(t){var a=null,s;if(void 0===le[t]&&void 0!==n&&n&&n.exports&&he(t))try{a=ce._abbr,s=void 0,e(644)("./"+t),ke(a)}catch(n){le[t]=null}return le[t]}function ke(n,t){var e;return n&&((e=c(t)?ve(n):ge(n,t))?ce=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ce._abbr}function ge(n,t){if(null!==t){var e,a=ie;if(t.abbr=n,null!=le[n])_("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."),a=le[n]._config;else if(null!=t.parentLocale)if(null!=le[t.parentLocale])a=le[t.parentLocale]._config;else{if(null==(e=me(t.parentLocale)))return pe[t.parentLocale]||(pe[t.parentLocale]=[]),pe[t.parentLocale].push({name:n,config:t}),null;a=e._config}return le[n]=new D(R(a,t)),pe[n]&&pe[n].forEach((function(n){ge(n.name,n.config)})),ke(n),le[n]}return delete le[n],null}function ye(n,t){if(null!=t){var e,a,s=ie;null!=le[n]&&null!=le[n].parentLocale?le[n].set(R(le[n]._config,t)):(null!=(a=me(n))&&(s=a._config),t=R(s,t),null==a&&(t.abbr=n),(e=new D(t)).parentLocale=le[n],le[n]=e),ke(n)}else null!=le[n]&&(null!=le[n].parentLocale?(le[n]=le[n].parentLocale,n===ke()&&ke(n)):null!=le[n]&&delete le[n]);return le[n]}function ve(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ce;if(!r(n)){if(t=me(n))return t;n=[n]}return de(n)}function be(){return P(le)}function we(n){var t,e=n._a;return e&&-2===g(n).overflow&&(t=e[1]<0||e[1]>11?1:e[2]<1||e[2]>st(e[0],e[1])?2:e[3]<0||e[3]>24||24===e[3]&&(0!==e[4]||0!==e[5]||0!==e[6])?3:e[4]<0||e[4]>59?4:e[5]<0||e[5]>59?5:e[6]<0||e[6]>999?6:-1,g(n)._overflowDayOfYear&&(t<0||t>2)&&(t=2),g(n)._overflowWeeks&&-1===t&&(t=7),g(n)._overflowWeekday&&-1===t&&(t=8),g(n).overflow=t),n}var xe=/^\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)?)?$/,Ce=/^\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)?)?$/,Se=/Z|[+-]\d\d(?::?\d\d)?/,Ee=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Oe=[["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/]],Te=/^\/?Date\((-?\d+)/i,Pe=/^(?:(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}))$/,_e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ne(n){var t,e,a=n._i,s=xe.exec(a)||Ce.exec(a),o,r,i,l,p=Ee.length,c=Oe.length;if(s){for(g(n).iso=!0,t=0,e=p;t<e;t++)if(Ee[t][1].exec(s[1])){r=Ee[t][0],o=!1!==Ee[t][2];break}if(null==r)return void(n._isValid=!1);if(s[3]){for(t=0,e=c;t<e;t++)if(Oe[t][1].exec(s[3])){i=(s[2]||" ")+Oe[t][0];break}if(null==i)return void(n._isValid=!1)}if(!o&&null!=i)return void(n._isValid=!1);if(s[4]){if(!Se.exec(s[4]))return void(n._isValid=!1);l="Z"}n._f=r+(i||"")+(l||""),Ue(n)}else n._isValid=!1}function Me(n,t,e,a,s,o){var r=[Re(n),rt.indexOf(t),parseInt(e,10),parseInt(a,10),parseInt(s,10)];return o&&r.push(parseInt(o,10)),r}function Re(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function De(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function je(n,t,e){var a,s;return!n||It.indexOf(n)===new Date(t[0],t[1],t[2]).getDay()||(g(e).weekdayMismatch=!0,e._isValid=!1,!1)}function Ae(n,t,e){if(n)return _e[n];if(t)return 0;var a=parseInt(e,10),s=a%100,o;return(a-s)/100*60+s}function Ie(n){var t=Pe.exec(De(n._i)),e;if(t){if(e=Me(t[4],t[3],t[2],t[5],t[6],t[7]),!je(t[1],e,n))return;n._a=e,n._tzm=Ae(t[8],t[9],t[10]),n._d=wt.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),g(n).rfc2822=!0}else n._isValid=!1}function Le(n){var t=Te.exec(n._i);null===t?(Ne(n),!1===n._isValid&&(delete n._isValid,Ie(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:s.createFromInputFallback(n)))):n._d=new Date(+t[1])}function Ve(n,t,e){return null!=n?n:null!=t?t:e}function Fe(n){var t=new Date(s.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Be(n){var t,e,a=[],s,o,r;if(!n._d){for(s=Fe(n),n._w&&null==n._a[2]&&null==n._a[1]&&ze(n),null!=n._dayOfYear&&(r=Ve(n._a[0],s[0]),(n._dayOfYear>Gn(r)||0===n._dayOfYear)&&(g(n)._overflowDayOfYear=!0),e=wt(r,0,n._dayOfYear),n._a[1]=e.getUTCMonth(),n._a[2]=e.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=a[t]=s[t];for(;t<7;t++)n._a[t]=a[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[3]&&0===n._a[4]&&0===n._a[5]&&0===n._a[6]&&(n._nextDay=!0,n._a[3]=0),n._d=(n._useUTC?wt:bt).apply(null,a),o=n._useUTC?n._d.getUTCDay():n._d.getDay(),null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[3]=24),n._w&&void 0!==n._w.d&&n._w.d!==o&&(g(n).weekdayMismatch=!0)}}function ze(n){var t,e,a,s,o,r,i,l,p;null!=(t=n._w).GG||null!=t.W||null!=t.E?(o=1,r=4,e=Ve(t.GG,n._a[0],St(Qe(),1,4).year),a=Ve(t.W,1),((s=Ve(t.E,1))<1||s>7)&&(l=!0)):(o=n._locale._week.dow,r=n._locale._week.doy,p=St(Qe(),o,r),e=Ve(t.gg,n._a[0],p.year),a=Ve(t.w,p.week),null!=t.d?((s=t.d)<0||s>6)&&(l=!0):null!=t.e?(s=t.e+o,(t.e<0||t.e>6)&&(l=!0)):s=o),a<1||a>Et(e,o,r)?g(n)._overflowWeeks=!0:null!=l?g(n)._overflowWeekday=!0:(i=Ct(e,a,s,o,r),n._a[0]=i.year,n._dayOfYear=i.dayOfYear)}function Ue(n){if(n._f!==s.ISO_8601)if(n._f!==s.RFC_2822){n._a=[],g(n).empty=!0;var t=""+n._i,e,a,o,r,i,l=t.length,p=0,c,u;for(u=(o=Y(n._f,n._locale).match(L)||[]).length,e=0;e<u;e++)r=o[e],(a=(t.match(_n(r,n))||[])[0])&&((i=t.substr(0,t.indexOf(a))).length>0&&g(n).unusedInput.push(i),t=t.slice(t.indexOf(a)+a.length),p+=a.length),B[r]?(a?g(n).empty=!1:g(n).unusedTokens.push(r),Ln(r,a,n)):n._strict&&!a&&g(n).unusedTokens.push(r);g(n).charsLeftOver=l-p,t.length>0&&g(n).unusedInput.push(t),n._a[3]<=12&&!0===g(n).bigHour&&n._a[3]>0&&(g(n).bigHour=void 0),g(n).parsedDateParts=n._a.slice(0),g(n).meridiem=n._meridiem,n._a[3]=He(n._locale,n._a[3],n._meridiem),null!==(c=g(n).era)&&(n._a[0]=n._locale.erasConvertYear(c,n._a[0])),Be(n),we(n)}else Ie(n);else Ne(n)}function He(n,t,e){var a;return null==e?t:null!=n.meridiemHour?n.meridiemHour(t,e):null!=n.isPM?((a=n.isPM(e))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function We(n){var t,e,a,s,o,r,i=!1,l=n._f.length;if(0===l)return g(n).invalidFormat=!0,void(n._d=new Date(NaN));for(s=0;s<l;s++)o=0,r=!1,t=x({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[s],Ue(t),y(t)&&(r=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,i?o<a&&(a=o,e=t):(null==a||o<a||r)&&(a=o,e=t,r&&(i=!0));h(n,e||t)}function Ye(n){if(!n._d){var t=sn(n._i),e=void 0===t.day?t.date:t.day;n._a=d([t.year,t.month,e,t.hour,t.minute,t.second,t.millisecond],(function(n){return n&&parseInt(n,10)})),Be(n)}}function qe(n){var t=new C(we(Ke(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ke(n){var t=n._i,e=n._f;return n._locale=n._locale||ve(n._l),null===t||void 0===e&&""===t?v({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),S(t)?new C(we(t)):(f(t)?n._d=t:r(e)?We(n):e?Ue(n):Ge(n),y(n)||(n._d=null),n))}function Ge(n){var t=n._i;c(t)?n._d=new Date(s.now()):f(t)?n._d=new Date(t.valueOf()):"string"==typeof t?Le(n):r(t)?(n._a=d(t.slice(0),(function(n){return parseInt(n,10)})),Be(n)):i(t)?Ye(n):u(t)?n._d=new Date(t):s.createFromInputFallback(n)}function $e(n,t,e,a,s){var o={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==e&&!1!==e||(a=e,e=void 0),(i(n)&&p(n)||r(n)&&0===n.length)&&(n=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=e,o._i=n,o._f=t,o._strict=a,qe(o)}function Qe(n,t,e,a){return $e(n,t,e,a,!1)}s.createFromInputFallback=O("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var Xe=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var n=Qe.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:v()})),Ze=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var n=Qe.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:v()}));function Je(n,t){var e,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Qe();for(e=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][n](e)||(e=t[a]);return e}function na(){var n=[].slice.call(arguments,0);return Je("isBefore",n)}function ta(){var n=[].slice.call(arguments,0);return Je("isAfter",n)}var ea=function(){return Date.now?Date.now():+new Date},aa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sa(n){var t,e=!1,a,s=aa.length;for(t in n)if(l(n,t)&&(-1===Qn.call(aa,t)||null!=n[t]&&isNaN(n[t])))return!1;for(a=0;a<s;++a)if(n[aa[a]]){if(e)return!1;parseFloat(n[aa[a]])!==Dn(n[aa[a]])&&(e=!0)}return!0}function oa(){return this._isValid}function ra(){return _a(NaN)}function ia(n){var t=sn(n),e=t.year||0,a=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,r=t.day||0,i=t.hour||0,l=t.minute||0,p=t.second||0,c=t.millisecond||0;this._isValid=sa(t),this._milliseconds=+c+1e3*p+6e4*l+1e3*i*60*60,this._days=+r+7*o,this._months=+s+3*a+12*e,this._data={},this._locale=ve(),this._bubble()}function la(n){return n instanceof ia}function pa(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function ca(n,t,e){var a=Math.min(n.length,t.length),s=Math.abs(n.length-t.length),o=0,r;for(r=0;r<a;r++)(e&&n[r]!==t[r]||!e&&Dn(n[r])!==Dn(t[r]))&&o++;return o+s}function ua(n,t){z(n,0,0,(function(){var n=this.utcOffset(),e="+";return n<0&&(n=-n,e="-"),e+I(~~(n/60),2)+t+I(~~n%60,2)}))}ua("Z",":"),ua("ZZ",""),Pn("Z",xn),Pn("ZZ",xn),An(["Z","ZZ"],(function(n,t,e){e._useUTC=!0,e._tzm=da(xn,n)}));var fa=/([\+\-]|\d\d)/gi;function da(n,t){var e=(t||"").match(n),a,s,o;return null===e?null:0===(o=60*(s=((a=e[e.length-1]||[])+"").match(fa)||["-",0,0])[1]+Dn(s[2]))?0:"+"===s[0]?o:-o}function ha(n,t){var e,a;return t._isUTC?(e=t.clone(),a=(S(n)||f(n)?n.valueOf():Qe(n).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+a),s.updateOffset(e,!1),e):Qe(n).local()}function ma(n){return-Math.round(n._d.getTimezoneOffset())}function ka(n,t,e){var a=this._offset||0,o;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=da(xn,n)))return this}else Math.abs(n)<16&&!e&&(n*=60);return!this._isUTC&&t&&(o=ma(this)),this._offset=n,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==n&&(!t||this._changeInProgress?ja(this,_a(n-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:ma(this)}function ga(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ya(n){return this.utcOffset(0,n)}function va(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(ma(this),"m")),this}function ba(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=da(wn,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this}function wa(n){return!!this.isValid()&&(n=n?Qe(n).utcOffset():0,(this.utcOffset()-n)%60==0)}function xa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ca(){if(!c(this._isDSTShifted))return this._isDSTShifted;var n={},t;return x(n,this),(n=Ke(n))._a?(t=n._isUTC?m(n._a):Qe(n._a),this._isDSTShifted=this.isValid()&&ca(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sa(){return!!this.isValid()&&!this._isUTC}function Ea(){return!!this.isValid()&&this._isUTC}function Oa(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _a(n,t){var e=n,a=null,s,o,r;return la(n)?e={ms:n._milliseconds,d:n._days,M:n._months}:u(n)||!isNaN(+n)?(e={},t?e[t]=+n:e.milliseconds=+n):(a=Ta.exec(n))?(s="-"===a[1]?-1:1,e={y:0,d:Dn(a[2])*s,h:Dn(a[3])*s,m:Dn(a[4])*s,s:Dn(a[5])*s,ms:Dn(pa(1e3*a[6]))*s}):(a=Pa.exec(n))?(s="-"===a[1]?-1:1,e={y:Na(a[2],s),M:Na(a[3],s),w:Na(a[4],s),d:Na(a[5],s),h:Na(a[6],s),m:Na(a[7],s),s:Na(a[8],s)}):null==e?e={}:"object"==typeof e&&("from"in e||"to"in e)&&(r=Ra(Qe(e.from),Qe(e.to)),(e={}).ms=r.milliseconds,e.M=r.months),o=new ia(e),la(n)&&l(n,"_locale")&&(o._locale=n._locale),la(n)&&l(n,"_isValid")&&(o._isValid=n._isValid),o}function Na(n,t){var e=n&&parseFloat(n.replace(",","."));return(isNaN(e)?0:e)*t}function Ma(n,t){var e={};return e.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+n.clone().add(e.months,"M"),e}function Ra(n,t){var e;return n.isValid()&&t.isValid()?(t=ha(t,n),n.isBefore(t)?e=Ma(n,t):((e=Ma(t,n)).milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function Da(n,t){return function(e,a){var s,o;return null===a||isNaN(+a)||(_(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."),o=e,e=a,a=o),ja(this,s=_a(e,a),n),this}}function ja(n,t,e,a){var o=t._milliseconds,r=pa(t._days),i=pa(t._months);n.isValid()&&(a=null==a||a,i&&ht(n,Jn(n,"Month")+i*e),r&&nt(n,"Date",Jn(n,"Date")+r*e),o&&n._d.setTime(n._d.valueOf()+o*e),a&&s.updateOffset(n,r||i))}_a.fn=ia.prototype,_a.invalid=ra;var Aa=Da(1,"add"),Ia=Da(-1,"subtract");function La(n){return"string"==typeof n||n instanceof String}function Va(n){return S(n)||f(n)||La(n)||u(n)||Ba(n)||Fa(n)||null==n}function Fa(n){var t=i(n)&&!p(n),e=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,o,r=a.length;for(s=0;s<r;s+=1)e=e||l(n,o=a[s]);return t&&e}function Ba(n){var t=r(n),e=!1;return t&&(e=0===n.filter((function(t){return!u(t)&&La(n)})).length),t&&e}function za(n){var t=i(n)&&!p(n),e=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,o;for(s=0;s<a.length;s+=1)e=e||l(n,o=a[s]);return t&&e}function Ua(n,t){var e=n.diff(t,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"}function Ha(n,t){1===arguments.length&&(arguments[0]?Va(arguments[0])?(n=arguments[0],t=void 0):za(arguments[0])&&(t=arguments[0],n=void 0):(n=void 0,t=void 0));var e=n||Qe(),a=ha(e,this).startOf("day"),o=s.calendarFormat(this,a)||"sameElse",r=t&&(N(t[o])?t[o].call(this,e):t[o]);return this.format(r||this.localeData().calendar(o,this,Qe(e)))}function Wa(){return new C(this)}function Ya(n,t){var e=S(n)?n:Qe(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=an(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())}function qa(n,t){var e=S(n)?n:Qe(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=an(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())}function Ka(n,t,e,a){var s=S(n)?n:Qe(n),o=S(t)?t:Qe(t);return!!(this.isValid()&&s.isValid()&&o.isValid())&&("("===(a=a||"()")[0]?this.isAfter(s,e):!this.isBefore(s,e))&&(")"===a[1]?this.isBefore(o,e):!this.isAfter(o,e))}function Ga(n,t){var e=S(n)?n:Qe(n),a;return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=an(t)||"millisecond")?this.valueOf()===e.valueOf():(a=e.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))}function $a(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function Qa(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function Xa(n,t,e){var a,s,o;if(!this.isValid())return NaN;if(!(a=ha(n,this)).isValid())return NaN;switch(s=6e4*(a.utcOffset()-this.utcOffset()),t=an(t)){case"year":o=Za(this,a)/12;break;case"month":o=Za(this,a);break;case"quarter":o=Za(this,a)/3;break;case"second":o=(this-a)/1e3;break;case"minute":o=(this-a)/6e4;break;case"hour":o=(this-a)/36e5;break;case"day":o=(this-a-s)/864e5;break;case"week":o=(this-a-s)/6048e5;break;default:o=this-a}return e?o:Rn(o)}function Za(n,t){if(n.date()<t.date())return-Za(t,n);var e=12*(t.year()-n.year())+(t.month()-n.month()),a=n.clone().add(e,"months"),s,o;return-(e+(o=t-a<0?(t-a)/(a-(s=n.clone().add(e-1,"months"))):(t-a)/((s=n.clone().add(e+1,"months"))-a)))||0}function Ja(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ns(n){if(!this.isValid())return null;var t=!0!==n,e=t?this.clone().utc():this;return e.year()<0||e.year()>9999?W(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(e,"Z")):W(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ts(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",t="",e,a,s,o;return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+n+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(e+a+s+o)}function es(n){n||(n=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=W(this,n);return this.localeData().postformat(t)}function as(n,t){return this.isValid()&&(S(n)&&n.isValid()||Qe(n).isValid())?_a({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ss(n){return this.from(Qe(),n)}function os(n,t){return this.isValid()&&(S(n)&&n.isValid()||Qe(n).isValid())?_a({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rs(n){return this.to(Qe(),n)}function is(n){var t;return void 0===n?this._locale._abbr:(null!=(t=ve(n))&&(this._locale=t),this)}s.defaultFormat="Y