UNPKG

react-visual-query-builder

Version:

A slightly opinionated query builder component built for React

6 lines 1.73 MB
module.exports=function(c){var a={};function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return c[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=c,r.c=a,r.d=function(e,t,c){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(c,a,function(e){return t[e]}.bind(null,a));return c},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=362)}([function(e,t,c){"use strict";function a(e,t){if(t.length<e)throw new TypeError(e+" argument"+(1<e?"s":"")+" required, but only "+t.length+" present")}c.d(t,"a",function(){return a})},function(e,t,us){(function(os){var ls;//! moment.js //! version : 2.25.3 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com os.exports=function(){"use strict";var t,r;function u(){return t.apply(null,arguments)}function e(e){t=e}function s(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function i(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(e).length===0}else{var t;for(t in e){if(o(e,t)){return false}}return true}}function n(e){return e===void 0}function d(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function h(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function a(e,t){var c=[],a;for(a=0;a<e.length;++a){c.push(t(e[a],a))}return c}function m(e,t){for(var c in t){if(o(t,c)){e[c]=t[c]}}if(o(t,"toString")){e.toString=t.toString}if(o(t,"valueOf")){e.valueOf=t.valueOf}return e}function f(e,t,c,a){return qc(e,t,c,a,true).utc()}function c(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function v(e){if(e._pf==null){e._pf=c()}return e._pf}if(Array.prototype.some){r=Array.prototype.some}else{r=function(e){var t=Object(this),c=t.length>>>0,a;for(a=0;a<c;a++){if(a in t&&e.call(this,t[a],a,t)){return true}}return false}}function p(e){if(e._isValid==null){var t=v(e),c=r.call(t.parsedDateParts,function(e){return e!=null}),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&c);if(e._strict){a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(e)){e._isValid=a}else{return a}}return e._isValid}function _(e){var t=f(NaN);if(e!=null){m(v(t),e)}else{v(t).userInvalidated=true}return t}var M=u.momentProperties=[],z=false;function y(e,t){var c,a,r;if(!n(t._isAMomentObject)){e._isAMomentObject=t._isAMomentObject}if(!n(t._i)){e._i=t._i}if(!n(t._f)){e._f=t._f}if(!n(t._l)){e._l=t._l}if(!n(t._strict)){e._strict=t._strict}if(!n(t._tzm)){e._tzm=t._tzm}if(!n(t._isUTC)){e._isUTC=t._isUTC}if(!n(t._offset)){e._offset=t._offset}if(!n(t._pf)){e._pf=v(t)}if(!n(t._locale)){e._locale=t._locale}if(M.length>0){for(c=0;c<M.length;c++){a=M[c];r=t[a];if(!n(r)){e[a]=r}}}return e}function L(e){y(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(z===false){z=true;u.updateOffset(this);z=false}}function g(e){return e instanceof L||e!=null&&e._isAMomentObject!=null}function b(e){if(u.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+e)}}function H(r,n){var s=true;return m(function(){if(u.deprecationHandler!=null){u.deprecationHandler(null,r)}if(s){var e=[],t,c,a;for(c=0;c<arguments.length;c++){t="";if(typeof arguments[c]==="object"){t+="\n["+c+"] ";for(a in arguments[0]){if(o(arguments[0],a)){t+=a+": "+arguments[0][a]+", "}}t=t.slice(0,-2)}else{t=arguments[c]}e.push(t)}b(r+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);s=false}return n.apply(this,arguments)},n)}var w={},k;function C(e,t){if(u.deprecationHandler!=null){u.deprecationHandler(e,t)}if(!w[e]){b(t);w[e]=true}}function Y(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function V(e){var t,c;for(c in e){if(o(e,c)){t=e[c];if(Y(t)){this[c]=t}else{this["_"+c]=t}}}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var c=m({},e),a;for(a in t){if(o(t,a)){if(i(e[a])&&i(t[a])){c[a]={};m(c[a],e[a]);m(c[a],t[a])}else if(t[a]!=null){c[a]=t[a]}else{delete c[a]}}}for(a in e){if(o(e,a)&&!o(t,a)&&i(e[a])){c[a]=m({},c[a])}}return c}function S(e){if(e!=null){this.set(e)}}if(u.suppressDeprecationWarnings=false,u.deprecationHandler=null,Object.keys){k=Object.keys}else{k=function(e){var t,c=[];for(t in e){if(o(e,t)){c.push(t)}}return c}}var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function x(e,t,c){var a=this._calendar[e]||this._calendar["sameElse"];return Y(a)?a.call(t,c):a}function j(e,t,c){var a=""+Math.abs(e),r=t-a.length,n=e>=0;return(n?c?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var O=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},E={};function N(e,t,c,a){var r=a;if(typeof a==="string"){r=function(){return this[a]()}}if(e){E[e]=r}if(t){E[t[0]]=function(){return j(r.apply(this,arguments),t[1],t[2])}}if(c){E[c]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)}}}function W(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|\]$/g,"")}return e.replace(/\\/g,"")}function F(a){var r=a.match(O),e,n;for(e=0,n=r.length;e<n;e++){if(E[r[e]]){r[e]=E[r[e]]}else{r[e]=W(r[e])}}return function(e){var t="",c;for(c=0;c<n;c++){t+=Y(r[c])?r[c].call(e,a):r[c]}return t}}function I(e,t){if(!e.isValid()){return e.localeData().invalidDate()}t=R(t,e.localeData());P[t]=P[t]||F(t);return P[t](e)}function R(e,t){var c=5;function a(e){return t.longDateFormat(e)||e}A.lastIndex=0;while(c>=0&&A.test(e)){e=e.replace(A,a);A.lastIndex=0;c-=1}return e}var U={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 q(e){var t=this._longDateFormat[e],c=this._longDateFormat[e.toUpperCase()];if(t||!c){return t}this._longDateFormat[e]=c.match(O).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd"){return e.slice(1)}return e}).join("");return this._longDateFormat[e]}var Z="Invalid date";function B(){return this._invalidDate}var J="%d",$=/\d{1,2}/;function G(e){return this._ordinal.replace("%d",e)}var Q={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 K(e,t,c,a){var r=this._relativeTime[c];return Y(r)?r(e,t,c,a):r.replace(/%d/i,e)}function X(e,t){var c=this._relativeTime[e>0?"future":"past"];return Y(c)?c(t):c.replace(/%s/i,t)}var ee={};function te(e,t){var c=e.toLowerCase();ee[c]=ee[c+"s"]=ee[t]=e}function ce(e){return typeof e==="string"?ee[e]||ee[e.toLowerCase()]:undefined}function ae(e){var t={},c,a;for(a in e){if(o(e,a)){c=ce(a);if(c){t[c]=e[a]}}}return t}var re={};function ne(e,t){re[e]=t}function se(e){var t=[],c;for(c in e){if(o(e,c)){t.push({unit:c,priority:re[c]})}}t.sort(function(e,t){return e.priority-t.priority});return t}function ie(e){return e%4===0&&e%100!==0||e%400===0}function oe(e){if(e<0){return Math.ceil(e)||0}else{return Math.floor(e)}}function le(e){var t=+e,c=0;if(t!==0&&isFinite(t)){c=oe(t)}return c}function ue(t,c){return function(e){if(e!=null){he(this,t,e);u.updateOffset(this,c);return this}else{return de(this,t)}}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,c){if(e.isValid()&&!isNaN(c)){if(t==="FullYear"&&ie(e.year())&&e.month()===1&&e.date()===29){c=le(c);e._d["set"+(e._isUTC?"UTC":"")+t](c,e.month(),Ke(c,e.month()))}else{e._d["set"+(e._isUTC?"UTC":"")+t](c)}}}function me(e){e=ce(e);if(Y(this[e])){return this[e]()}return this}function fe(e,t){if(typeof e==="object"){e=ae(e);var c=se(e),a;for(a=0;a<c.length;a++){this[c[a].unit](e[c[a].unit])}}else{e=ce(e);if(Y(this[e])){return this[e](t)}}return this}var ve=/\d/,pe=/\d\d/,_e=/\d{3}/,Me=/\d{4}/,ze=/[+-]?\d{6}/,ye=/\d\d?/,Le=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,be=/\d{1,3}/,He=/\d{1,4}/,we=/[+-]?\d{1,6}/,ke=/\d+/,Ce=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ve=/Z|[+-]\d\d(?::?\d\d)?/gi,De=/[+-]?\d+(\.\d{1,3})?/,Se=/[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,Te;function xe(e,c,a){Te[e]=Y(c)?c:function(e,t){return e&&a?a:c}}function je(e,t){if(!o(Te,e)){return new RegExp(Oe(e))}return Te[e](t._strict,t._locale)}function Oe(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,c,a,r){return t||c||a||r}))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Te={};var Pe={};function Ee(e,c){var t,a=c;if(typeof e==="string"){e=[e]}if(d(c)){a=function(e,t){t[c]=le(e)}}for(t=0;t<e.length;t++){Pe[e[t]]=a}}function Ne(e,r){Ee(e,function(e,t,c,a){c._w=c._w||{};r(e,c._w,c,a)})}function We(e,t,c){if(t!=null&&o(Pe,e)){Pe[e](t,c._a,c,e)}}var Fe=0,Ie=1,Re=2,Ue=3,qe=4,Ze=5,Be=6,Je=7,$e=8,Ge;function Qe(e,t){return(e%t+t)%t}if(Array.prototype.indexOf){Ge=Array.prototype.indexOf}else{Ge=function(e){var t;for(t=0;t<this.length;++t){if(this[t]===e){return t}}return-1}}function Ke(e,t){if(isNaN(e)||isNaN(t)){return NaN}var c=Qe(t,12);e+=(t-c)/12;return c===1?ie(e)?29:28:31-c%7%2}N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),te("month","M"),ne("month",8),xe("M",ye),xe("MM",ye,pe),xe("MMM",function(e,t){return t.monthsShortRegex(e)}),xe("MMMM",function(e,t){return t.monthsRegex(e)}),Ee(["M","MM"],function(e,t){t[Ie]=le(e)-1}),Ee(["MMM","MMMM"],function(e,t,c,a){var r=c._locale.monthsParse(e,a,c._strict);if(r!=null){t[Ie]=r}else{v(c).invalidMonth=e}});var Xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ct=Se,at=Se;function rt(e,t){if(!e){return s(this._months)?this._months:this._months["standalone"]}return s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tt).test(t)?"format":"standalone"][e.month()]}function nt(e,t){if(!e){return s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}return s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tt.test(t)?"format":"standalone"][e.month()]}function st(e,t,c){var a,r,n,s=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(a=0;a<12;++a){n=f([2e3,a]);this._shortMonthsParse[a]=this.monthsShort(n,"").toLocaleLowerCase();this._longMonthsParse[a]=this.months(n,"").toLocaleLowerCase()}}if(c){if(t==="MMM"){r=Ge.call(this._shortMonthsParse,s);return r!==-1?r:null}else{r=Ge.call(this._longMonthsParse,s);return r!==-1?r:null}}else{if(t==="MMM"){r=Ge.call(this._shortMonthsParse,s);if(r!==-1){return r}r=Ge.call(this._longMonthsParse,s);return r!==-1?r:null}else{r=Ge.call(this._longMonthsParse,s);if(r!==-1){return r}r=Ge.call(this._shortMonthsParse,s);return r!==-1?r:null}}}function it(e,t,c){var a,r,n;if(this._monthsParseExact){return st.call(this,e,t,c)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(a=0;a<12;a++){r=f([2e3,a]);if(c&&!this._longMonthsParse[a]){this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i");this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")}if(!c&&!this._monthsParse[a]){n="^"+this.months(r,"")+"|^"+this.monthsShort(r,"");this._monthsParse[a]=new RegExp(n.replace(".",""),"i")}if(c&&t==="MMMM"&&this._longMonthsParse[a].test(e)){return a}else if(c&&t==="MMM"&&this._shortMonthsParse[a].test(e)){return a}else if(!c&&this._monthsParse[a].test(e)){return a}}}function ot(e,t){var c;if(!e.isValid()){return e}if(typeof t==="string"){if(/^\d+$/.test(t)){t=le(t)}else{t=e.localeData().monthsParse(t);if(!d(t)){return e}}}c=Math.min(e.date(),Ke(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,c);return e}function lt(e){if(e!=null){ot(this,e);u.updateOffset(this,true);return this}else{return de(this,"Month")}}function ut(){return Ke(this.year(),this.month())}function dt(e){if(this._monthsParseExact){if(!o(this,"_monthsRegex")){mt.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!o(this,"_monthsShortRegex")){this._monthsShortRegex=ct}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function ht(e){if(this._monthsParseExact){if(!o(this,"_monthsRegex")){mt.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!o(this,"_monthsRegex")){this._monthsRegex=at}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function mt(){function e(e,t){return t.length-e.length}var t=[],c=[],a=[],r,n;for(r=0;r<12;r++){n=f([2e3,r]);t.push(this.monthsShort(n,""));c.push(this.months(n,""));a.push(this.months(n,""));a.push(this.monthsShort(n,""))}t.sort(e);c.sort(e);a.sort(e);for(r=0;r<12;r++){t[r]=Ae(t[r]);c[r]=Ae(c[r])}for(r=0;r<24;r++){a[r]=Ae(a[r])}this._monthsRegex=new RegExp("^("+a.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ft(e){return ie(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?j(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,true],0,"year"),te("year","y"),ne("year",1),xe("Y",Ce),xe("YY",ye,pe),xe("YYYY",He,Me),xe("YYYYY",we,ze),xe("YYYYYY",we,ze),Ee(["YYYYY","YYYYYY"],Fe),Ee("YYYY",function(e,t){t[Fe]=e.length===2?u.parseTwoDigitYear(e):le(e)}),Ee("YY",function(e,t){t[Fe]=u.parseTwoDigitYear(e)}),Ee("Y",function(e,t){t[Fe]=parseInt(e,10)}),u.parseTwoDigitYear=function(e){return le(e)+(le(e)>68?1900:2e3)};var vt=ue("FullYear",true);function pt(){return ie(this.year())}function _t(e,t,c,a,r,n,s){var i;if(e<100&&e>=0){i=new Date(e+400,t,c,a,r,n,s);if(isFinite(i.getFullYear())){i.setFullYear(e)}}else{i=new Date(e,t,c,a,r,n,s)}return i}function Mt(e){var t,c;if(e<100&&e>=0){c=Array.prototype.slice.call(arguments);c[0]=e+400;t=new Date(Date.UTC.apply(null,c));if(isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}}else{t=new Date(Date.UTC.apply(null,arguments))}return t}function zt(e,t,c){var a=7+t-c,r=(7+Mt(e,0,a).getUTCDay()-t)%7;return-r+a-1}function yt(e,t,c,a,r){var n=(7+c-a)%7,s=zt(e,a,r),i=1+7*(t-1)+n+s,o,l;if(i<=0){o=e-1;l=ft(o)+i}else if(i>ft(e)){o=e+1;l=i-ft(e)}else{o=e;l=i}return{year:o,dayOfYear:l}}function Lt(e,t,c){var a=zt(e.year(),t,c),r=Math.floor((e.dayOfYear()-a-1)/7)+1,n,s;if(r<1){s=e.year()-1;n=r+gt(s,t,c)}else if(r>gt(e.year(),t,c)){n=r-gt(e.year(),t,c);s=e.year()+1}else{s=e.year();n=r}return{week:n,year:s}}function gt(e,t,c){var a=zt(e,t,c),r=zt(e+1,t,c);return(ft(e)-a+r)/7}function bt(e){return Lt(e,this._week.dow,this._week.doy).week}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),ne("week",5),ne("isoWeek",5),xe("w",ye),xe("ww",ye,pe),xe("W",ye),xe("WW",ye,pe),Ne(["w","ww","W","WW"],function(e,t,c,a){t[a.substr(0,1)]=le(e)});var Ht={dow:0,doy:6};function wt(){return this._week.dow}function kt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yt(e){var t=Lt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Vt(e,t){if(typeof e!=="string"){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if(typeof e==="number"){return e}return null}function Dt(e,t){if(typeof e==="string"){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function St(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),ne("day",11),ne("weekday",11),ne("isoWeekday",11),xe("d",ye),xe("e",ye),xe("E",ye),xe("dd",function(e,t){return t.weekdaysMinRegex(e)}),xe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),xe("dddd",function(e,t){return t.weekdaysRegex(e)}),Ne(["dd","ddd","dddd"],function(e,t,c,a){var r=c._locale.weekdaysParse(e,a,c._strict);if(r!=null){t.d=r}else{v(c).invalidWeekday=e}}),Ne(["d","e","E"],function(e,t,c,a){t[a]=le(e)});var Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ot=Se,At=Se,Pt=Se;function Et(e,t){var c=s(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?St(c,this._week.dow):e?c[e.day()]:c}function Nt(e){return e===true?St(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return e===true?St(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ft(e,t,c){var a,r,n,s=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(a=0;a<7;++a){n=f([2e3,1]).day(a);this._minWeekdaysParse[a]=this.weekdaysMin(n,"").toLocaleLowerCase();this._shortWeekdaysParse[a]=this.weekdaysShort(n,"").toLocaleLowerCase();this._weekdaysParse[a]=this.weekdays(n,"").toLocaleLowerCase()}}if(c){if(t==="dddd"){r=Ge.call(this._weekdaysParse,s);return r!==-1?r:null}else if(t==="ddd"){r=Ge.call(this._shortWeekdaysParse,s);return r!==-1?r:null}else{r=Ge.call(this._minWeekdaysParse,s);return r!==-1?r:null}}else{if(t==="dddd"){r=Ge.call(this._weekdaysParse,s);if(r!==-1){return r}r=Ge.call(this._shortWeekdaysParse,s);if(r!==-1){return r}r=Ge.call(this._minWeekdaysParse,s);return r!==-1?r:null}else if(t==="ddd"){r=Ge.call(this._shortWeekdaysParse,s);if(r!==-1){return r}r=Ge.call(this._weekdaysParse,s);if(r!==-1){return r}r=Ge.call(this._minWeekdaysParse,s);return r!==-1?r:null}else{r=Ge.call(this._minWeekdaysParse,s);if(r!==-1){return r}r=Ge.call(this._weekdaysParse,s);if(r!==-1){return r}r=Ge.call(this._shortWeekdaysParse,s);return r!==-1?r:null}}}function It(e,t,c){var a,r,n;if(this._weekdaysParseExact){return Ft.call(this,e,t,c)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(a=0;a<7;a++){r=f([2e3,1]).day(a);if(c&&!this._fullWeekdaysParse[a]){this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[a]){n="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,"");this._weekdaysParse[a]=new RegExp(n.replace(".",""),"i")}if(c&&t==="dddd"&&this._fullWeekdaysParse[a].test(e)){return a}else if(c&&t==="ddd"&&this._shortWeekdaysParse[a].test(e)){return a}else if(c&&t==="dd"&&this._minWeekdaysParse[a].test(e)){return a}else if(!c&&this._weekdaysParse[a].test(e)){return a}}}function Rt(e){if(!this.isValid()){return e!=null?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Vt(e,this.localeData());return this.add(e-t,"d")}else{return t}}function Ut(e){if(!this.isValid()){return e!=null?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function qt(e){if(!this.isValid()){return e!=null?this:NaN}if(e!=null){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}}function Zt(e){if(this._weekdaysParseExact){if(!o(this,"_weekdaysRegex")){$t.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!o(this,"_weekdaysRegex")){this._weekdaysRegex=Ot}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function Bt(e){if(this._weekdaysParseExact){if(!o(this,"_weekdaysRegex")){$t.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!o(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=At}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function Jt(e){if(this._weekdaysParseExact){if(!o(this,"_weekdaysRegex")){$t.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!o(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=Pt}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function $t(){function e(e,t){return t.length-e.length}var t=[],c=[],a=[],r=[],n,s,i,o,l;for(n=0;n<7;n++){s=f([2e3,1]).day(n);i=Ae(this.weekdaysMin(s,""));o=Ae(this.weekdaysShort(s,""));l=Ae(this.weekdays(s,""));t.push(i);c.push(o);a.push(l);r.push(i);r.push(o);r.push(l)}t.sort(e);c.sort(e);a.sort(e);r.sort(e);this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function Kt(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xt(e,t){return t._meridiemParse}function ec(e){return(e+"").toLowerCase().charAt(0)==="p"}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Gt),N("k",["kk",2],0,Qt),N("hmm",0,0,function(){return""+Gt.apply(this)+j(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Gt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),Kt("a",true),Kt("A",false),te("hour","h"),ne("hour",13),xe("a",Xt),xe("A",Xt),xe("H",ye),xe("h",ye),xe("k",ye),xe("HH",ye,pe),xe("hh",ye,pe),xe("kk",ye,pe),xe("hmm",Le),xe("hmmss",ge),xe("Hmm",Le),xe("Hmmss",ge),Ee(["H","HH"],Ue),Ee(["k","kk"],function(e,t,c){var a=le(e);t[Ue]=a===24?0:a}),Ee(["a","A"],function(e,t,c){c._isPm=c._locale.isPM(e);c._meridiem=e}),Ee(["h","hh"],function(e,t,c){t[Ue]=le(e);v(c).bigHour=true}),Ee("hmm",function(e,t,c){var a=e.length-2;t[Ue]=le(e.substr(0,a));t[qe]=le(e.substr(a));v(c).bigHour=true}),Ee("hmmss",function(e,t,c){var a=e.length-4,r=e.length-2;t[Ue]=le(e.substr(0,a));t[qe]=le(e.substr(a,2));t[Ze]=le(e.substr(r));v(c).bigHour=true}),Ee("Hmm",function(e,t,c){var a=e.length-2;t[Ue]=le(e.substr(0,a));t[qe]=le(e.substr(a))}),Ee("Hmmss",function(e,t,c){var a=e.length-4,r=e.length-2;t[Ue]=le(e.substr(0,a));t[qe]=le(e.substr(a,2));t[Ze]=le(e.substr(r))});var tc=/[ap]\.?m?\.?/i,cc=ue("Hours",true);function ac(e,t,c){if(e>11){return c?"pm":"PM"}else{return c?"am":"AM"}}var rc={calendar:T,longDateFormat:U,invalidDate:Z,ordinal:J,dayOfMonthOrdinalParse:$,relativeTime:Q,months:Xe,monthsShort:et,week:Ht,weekdays:Tt,weekdaysMin:jt,weekdaysShort:xt,meridiemParse:tc},nc={},sc={},ic;function oc(e,t){var c,a=Math.min(e.length,t.length);for(c=0;c<a;c+=1){if(e[c]!==t[c]){return c}}return a}function lc(e){return e?e.toLowerCase().replace("_","-"):e}function uc(e){var t=0,c,a,r,n;while(t<e.length){n=lc(e[t]).split("-");c=n.length;a=lc(e[t+1]);a=a?a.split("-"):null;while(c>0){r=dc(n.slice(0,c).join("-"));if(r){return r}if(a&&a.length>=c&&oc(n,a)>=c-1){break}c--}t++}return ic}function dc(t){var e=null,c;if(nc[t]===undefined&&typeof os!=="undefined"&&os&&os.exports){try{e=ic._abbr;c=ls;us(301)("./"+t);hc(e)}catch(e){nc[t]=null}}return nc[t]}function hc(e,t){var c;if(e){if(n(t)){c=vc(e)}else{c=mc(e,t)}if(c){ic=c}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+e+" not found. Did you forget to load it?")}}}return ic._abbr}function mc(e,t){if(t!==null){var c,a=rc;t.abbr=e;if(nc[e]!=null){C("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=nc[e]._config}else if(t.parentLocale!=null){if(nc[t.parentLocale]!=null){a=nc[t.parentLocale]._config}else{c=dc(t.parentLocale);if(c!=null){a=c._config}else{if(!sc[t.parentLocale]){sc[t.parentLocale]=[]}sc[t.parentLocale].push({name:e,config:t});return null}}}nc[e]=new S(D(a,t));if(sc[e]){sc[e].forEach(function(e){mc(e.name,e.config)})}hc(e);return nc[e]}else{delete nc[e];return null}}function fc(e,t){if(null!=t){var c,a,r=rc;null!=nc[e]&&null!=nc[e].parentLocale?nc[e].set(D(nc[e]._config,t)):(null!=(a=dc(e))&&(r=a._config),t=D(r,t),null==a&&(t.abbr=e),(c=new S(t)).parentLocale=nc[e],nc[e]=c),hc(e)}else null!=nc[e]&&(null!=nc[e].parentLocale?(nc[e]=nc[e].parentLocale,e===hc()&&hc(e)):null!=nc[e]&&delete nc[e]);return nc[e]}function vc(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return ic}if(!s(e)){t=dc(e);if(t){return t}e=[e]}return uc(e)}function pc(){return k(nc)}function _c(e){var t,c=e._a;if(c&&v(e).overflow===-2){t=c[Ie]<0||c[Ie]>11?Ie:c[Re]<1||c[Re]>Ke(c[Fe],c[Ie])?Re:c[Ue]<0||c[Ue]>24||c[Ue]===24&&(c[qe]!==0||c[Ze]!==0||c[Be]!==0)?Ue:c[qe]<0||c[qe]>59?qe:c[Ze]<0||c[Ze]>59?Ze:c[Be]<0||c[Be]>999?Be:-1;if(v(e)._overflowDayOfYear&&(t<Fe||t>Re)){t=Re}if(v(e)._overflowWeeks&&t===-1){t=Je}if(v(e)._overflowWeekday&&t===-1){t=$e}v(e).overflow=t}return e}var Mc=/^\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)?)?$/,zc=/^\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)?)?$/,yc=/Z|[+-]\d\d(?::?\d\d)?/,Lc=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],gc=[["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/]],bc=/^\/?Date\((-?\d+)/i,Hc=/^(?:(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}))$/,wc={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function kc(e){var t,c,a=e._i,r=Mc.exec(a)||zc.exec(a),n,s,i,o;if(r){v(e).iso=true;for(t=0,c=Lc.length;t<c;t++){if(Lc[t][1].exec(r[1])){s=Lc[t][0];n=Lc[t][2]!==false;break}}if(s==null){e._isValid=false;return}if(r[3]){for(t=0,c=gc.length;t<c;t++){if(gc[t][1].exec(r[3])){i=(r[2]||" ")+gc[t][0];break}}if(i==null){e._isValid=false;return}}if(!n&&i!=null){e._isValid=false;return}if(r[4]){if(yc.exec(r[4])){o="Z"}else{e._isValid=false;return}}e._f=s+(i||"")+(o||"");Ec(e)}else{e._isValid=false}}function Cc(e,t,c,a,r,n){var s=[Yc(e),et.indexOf(t),parseInt(c,10),parseInt(a,10),parseInt(r,10)];if(n){s.push(parseInt(n,10))}return s}function Yc(e){var t=parseInt(e,10);if(t<=49){return 2e3+t}else if(t<=999){return 1900+t}return t}function Vc(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dc(e,t,c){if(e){var a=xt.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(a!==r){v(c).weekdayMismatch=true;c._isValid=false;return false}}return true}function Sc(e,t,c){if(e){return wc[e]}else if(t){return 0}else{var a=parseInt(c,10),r=a%100,n=(a-r)/100;return n*60+r}}function Tc(e){var t=Hc.exec(Vc(e._i)),c;if(t){c=Cc(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Dc(t[1],c,e)){return}e._a=c;e._tzm=Sc(t[8],t[9],t[10]);e._d=Mt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);v(e).rfc2822=true}else{e._isValid=false}}function xc(e){var t=bc.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}kc(e);if(e._isValid===false){delete e._isValid}else{return}Tc(e);if(e._isValid===false){delete e._isValid}else{return}if(e._strict){e._isValid=false}else{u.createFromInputFallback(e)}}function jc(e,t,c){if(e!=null){return e}if(t!=null){return t}return c}function Oc(e){var t=new Date(u.now());if(e._useUTC){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]}return[t.getFullYear(),t.getMonth(),t.getDate()]}function Ac(e){var t,c,a=[],r,n,s;if(e._d){return}r=Oc(e);if(e._w&&e._a[Re]==null&&e._a[Ie]==null){Pc(e)}if(e._dayOfYear!=null){s=jc(e._a[Fe],r[Fe]);if(e._dayOfYear>ft(s)||e._dayOfYear===0){v(e)._overflowDayOfYear=true}c=Mt(s,0,e._dayOfYear);e._a[Ie]=c.getUTCMonth();e._a[Re]=c.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t){e._a[t]=a[t]=r[t]}for(;t<7;t++){e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t]}if(e._a[Ue]===24&&e._a[qe]===0&&e._a[Ze]===0&&e._a[Be]===0){e._nextDay=true;e._a[Ue]=0}e._d=(e._useUTC?Mt:_t).apply(null,a);n=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[Ue]=24}if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==n){v(e).weekdayMismatch=true}}function Pc(e){var t,c,a,r,n,s,i,o,l;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){n=1;s=4;c=jc(t.GG,e._a[Fe],Lt(Zc(),1,4).year);a=jc(t.W,1);r=jc(t.E,1);if(r<1||r>7){o=true}}else{n=e._locale._week.dow;s=e._locale._week.doy;l=Lt(Zc(),n,s);c=jc(t.gg,e._a[Fe],l.year);a=jc(t.w,l.week);if(t.d!=null){r=t.d;if(r<0||r>6){o=true}}else if(t.e!=null){r=t.e+n;if(t.e<0||t.e>6){o=true}}else{r=n}}if(a<1||a>gt(c,n,s)){v(e)._overflowWeeks=true}else if(o!=null){v(e)._overflowWeekday=true}else{i=yt(c,a,r,n,s);e._a[Fe]=i.year;e._dayOfYear=i.dayOfYear}}function Ec(e){if(e._f===u.ISO_8601){kc(e);return}if(e._f===u.RFC_2822){Tc(e);return}e._a=[];v(e).empty=true;var t=""+e._i,c,a,r,n,s,i=t.length,o=0,l;r=R(e._f,e._locale).match(O)||[];for(c=0;c<r.length;c++){n=r[c];a=(t.match(je(n,e))||[])[0];if(a){s=t.substr(0,t.indexOf(a));if(s.length>0){v(e).unusedInput.push(s)}t=t.slice(t.indexOf(a)+a.length);o+=a.length}if(E[n]){if(a){v(e).empty=false}else{v(e).unusedTokens.push(n)}We(n,a,e)}else if(e._strict&&!a){v(e).unusedTokens.push(n)}}v(e).charsLeftOver=i-o;if(t.length>0){v(e).unusedInput.push(t)}if(e._a[Ue]<=12&&v(e).bigHour===true&&e._a[Ue]>0){v(e).bigHour=undefined}v(e).parsedDateParts=e._a.slice(0);v(e).meridiem=e._meridiem;e._a[Ue]=Nc(e._locale,e._a[Ue],e._meridiem);l=v(e).era;if(l!==null){e._a[Fe]=e._locale.erasConvertYear(l,e._a[Fe])}Ac(e);_c(e)}function Nc(e,t,c){var a;if(c==null){return t}if(e.meridiemHour!=null){return e.meridiemHour(t,c)}else if(e.isPM!=null){a=e.isPM(c);if(a&&t<12){t+=12}if(!a&&t===12){t=0}return t}else{return t}}function Wc(e){var t,c,a,r,n,s,i=false;if(e._f.length===0){v(e).invalidFormat=true;e._d=new Date(NaN);return}for(r=0;r<e._f.length;r++){n=0;s=false;t=y({},e);if(e._useUTC!=null){t._useUTC=e._useUTC}t._f=e._f[r];Ec(t);if(p(t)){s=true}n+=v(t).charsLeftOver;n+=v(t).unusedTokens.length*10;v(t).score=n;if(!i){if(a==null||n<a||s){a=n;c=t;if(s){i=true}}}else{if(n<a){a=n;c=t}}}m(e,c||t)}function Fc(e){if(e._d){return}var t=ae(e._i),c=t.day===undefined?t.date:t.day;e._a=a([t.year,t.month,c,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});Ac(e)}function Ic(e){var t=new L(_c(Rc(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Rc(e){var t=e._i,c=e._f;e._locale=e._locale||vc(e._l);if(t===null||c===undefined&&t===""){return _({nullInput:true})}if(typeof t==="string"){e._i=t=e._locale.preparse(t)}if(g(t)){return new L(_c(t))}else if(h(t)){e._d=t}else if(s(c)){Wc(e)}else if(c){Ec(e)}else{Uc(e)}if(!p(e)){e._d=null}return e}function Uc(e){var t=e._i;if(n(t)){e._d=new Date(u.now())}else if(h(t)){e._d=new Date(t.valueOf())}else if(typeof t==="string"){xc(e)}else if(s(t)){e._a=a(t.slice(0),function(e){return parseInt(e,10)});Ac(e)}else if(i(t)){Fc(e)}else if(d(t)){e._d=new Date(t)}else{u.createFromInputFallback(e)}}function qc(e,t,c,a,r){var n={};if(t===true||t===false){a=t;t=undefined}if(c===true||c===false){a=c;c=undefined}if(i(e)&&l(e)||s(e)&&e.length===0){e=undefined}n._isAMomentObject=true;n._useUTC=n._isUTC=r;n._l=c;n._i=e;n._f=t;n._strict=a;return Ic(n)}function Zc(e,t,c,a){return qc(e,t,c,a,false)}u.createFromInputFallback=H("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":""))}),u.ISO_8601=function(){},u.RFC_2822=function(){};var Bc=H("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Zc.apply(null,arguments);if(this.isValid()&&e.isValid()){return e<this?this:e}else{return _()}}),Jc=H("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Zc.apply(null,arguments);if(this.isValid()&&e.isValid()){return e>this?this:e}else{return _()}});function $c(e,t){var c,a;if(t.length===1&&s(t[0])){t=t[0]}if(!t.length){return Zc()}c=t[0];for(a=1;a<t.length;++a){if(!t[a].isValid()||t[a][e](c)){c=t[a]}}return c}function Gc(){var e;return $c("isBefore",[].slice.call(arguments,0))}function Qc(){var e;return $c("isAfter",[].slice.call(arguments,0))}var Kc=function(){return Date.now?Date.now():+new Date},Xc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ea(e){var t,c=false,a;for(t in e){if(o(e,t)&&!(Ge.call(Xc,t)!==-1&&(e[t]==null||!isNaN(e[t])))){return false}}for(a=0;a<Xc.length;++a){if(e[Xc[a]]){if(c){return false}if(parseFloat(e[Xc[a]])!==le(e[Xc[a]])){c=true}}}return true}function ta(){return this._isValid}function ca(){return wa(NaN)}function aa(e){var t=ae(e),c=t.year||0,a=t.quarter||0,r=t.month||0,n=t.week||t.isoWeek||0,s=t.day||0,i=t.hour||0,o=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=ea(t);this._milliseconds=+u+l*1e3+o*6e4+i*1e3*60*60;this._days=+s+n*7;this._months=+r+a*3+c*12;this._data={};this._locale=vc();this._bubble()}function ra(e){return e instanceof aa}function na(e){if(e<0){return Math.round(-1*e)*-1}else{return Math.round(e)}}function sa(e,t,c){var a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),n=0,s;for(s=0;s<a;s++){if(c&&e[s]!==t[s]||!c&&le(e[s])!==le(t[s])){n++}}return n+r}function ia(e,c){N(e,0,0,function(){var e=this.utcOffset(),t="+";if(e<0){e=-e;t="-"}return t+j(~~(e/60),2)+c+j(~~e%60,2)})}ia("Z",":"),ia("ZZ",""),xe("Z",Ve),xe("ZZ",Ve),Ee(["Z","ZZ"],function(e,t,c){c._useUTC=true;c._tzm=la(Ve,e)});var oa=/([\+\-]|\d\d)/gi;function la(e,t){var c=(t||"").match(e),a,r,n;if(c===null){return null}a=c[c.length-1]||[];r=(a+"").match(oa)||["-",0,0];n=+(r[1]*60)+le(r[2]);return n===0?0:r[0]==="+"?n:-n}function ua(e,t){var c,a;if(t._isUTC){c=t.clone();a=(g(e)||h(e)?e.valueOf():Zc(e).valueOf())-c.valueOf();c._d.setTime(c._d.valueOf()+a);u.updateOffset(c,false);return c}else{return Zc(e).local()}}function da(e){return-Math.round(e._d.getTimezoneOffset())}function ha(e,t,c){var a=this._offset||0,r;if(!this.isValid()){return e!=null?this:NaN}if(e!=null){if(typeof e==="string"){e=la(Ve,e);if(e===null){return this}}else if(Math.abs(e)<16&&!c){e=e*60}if(!this._isUTC&&t){r=da(this)}this._offset=e;this._isUTC=true;if(r!=null){this.add(r,"m")}if(a!==e){if(!t||this._changeInProgress){Da(this,wa(e-a,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;u.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?a:da(this)}}function ma(e,t){if(e!=null){if(typeof e!=="string"){e=-e}this.utcOffset(e,t);return this}else{return-this.utcOffset()}}function fa(e){return this.utcOffset(0,e)}function va(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e){this.subtract(da(this),"m")}}return this}function pa(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i==="string"){var e=la(Ye,this._i);if(e!=null){this.utcOffset(e)}else{this.utcOffset(0,true)}}return this}function _a(e){if(!this.isValid()){return false}e=e?Zc(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function Ma(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function za(){if(!n(this._isDSTShifted)){return this._isDSTShifted}var e={},t;y(e,this);e=Rc(e);if(e._a){t=e._isUTC?f(e._a):Zc(e._a);this._isDSTShifted=this.isValid()&&sa(e._a,t.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function ya(){return this.isValid()?!this._isUTC:false}function La(){return this.isValid()?this._isUTC:false}function ga(){return this.isValid()?this._isUTC&&this._offset===0:false}u.updateOffset=function(){};var ba=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ha=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function wa(e,t){var c=e,a=null,r,n,s;if(ra(e)){c={ms:e._milliseconds,d:e._days,M:e._months}}else if(d(e)||!isNaN(+e)){c={};if(t){c[t]=+e}else{c.milliseconds=+e}}else if(a=ba.exec(e)){r=a[1]==="-"?-1:1;c={y:0,d:le(a[Re])*r,h:le(a[Ue])*r,m:le(a[qe])*r,s:le(a[Ze])*r,ms:le(na(a[Be]*1e3))*r}}else if(a=Ha.exec(e)){r=a[1]==="-"?-1:1;c={y:ka(a[2],r),M:ka(a[3],r),w:ka(a[4],r),d:ka(a[5],r),h:ka(a[6],r),m:ka(a[7],r),s:ka(a[8],r)}}else if(c==null){c={}}else if(typeof c==="object"&&("from"in c||"to"in c)){s=Ya(Zc(c.from),Zc(c.to));c={};c.ms=s.milliseconds;c.M=s.months}n=new aa(c);if(ra(e)&&o(e,"_locale")){n._locale=e._locale}if(ra(e)&&o(e,"_isValid")){n._isValid=e._isValid}return n}function ka(e,t){var c=e&&parseFloat(e.replace(",","."));return(isNaN(c)?0:c)*t}function Ca(e,t){var c={};c.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(c.months,"M").isAfter(t)){--c.months}c.milliseconds=+t-+e.clone().add(c.months,"M");return c}function Ya(e,t){var c;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=ua(t,e);if(e.isBefore(t)){c=Ca(e,t)}else{c=Ca(t,e);c.milliseconds=-c.milliseconds;c.months=-c.months}return c}function Va(r,n){return function(e,t){var c,a;if(t!==null&&!isNaN(+t)){C(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");a=e;e=t;t=a}c=wa(e,t);Da(this,c,r);return this}}function Da(e,t,c,a){var r=t._milliseconds,n=na(t._days),s=na(t._months);if(!e.isValid()){return}a=a==null?true:a;if(s){ot(e,de(e,"Month")+s*c)}if(n){he(e,"Date",de(e,"Date")+n*c)}if(r){e._d.setTime(e._d.valueOf()+r*c)}if(a){u.updateOffset(e,n||s)}}wa.fn=aa.prototype,wa.invalid=ca;var Sa=Va(1,"add"),Ta=Va(-1,"subtract");function xa(e){return typeof e==="string"||e instanceof String}function ja(e){return g(e)||h(e)||xa(e)||d(e)||Aa(e)||Oa(e)||e===null||e===undefined}function Oa(e){var t=i(e)&&!l(e),c=false,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"],r,n;for(r=0;r<a.length;r+=1){n=a[r];c=c||o(e,n)}return t&&c}function Aa(t){var e=s(t),c=false;if(e){c=t.filter(function(e){return!d(e)&&xa(t)}).length===0}return e&&c}function Pa(e){var t=i(e)&&!l(e),c=false,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,n;for(r=0;r<a.length;r+=1){n=a[r];c=c||o(e,n)}return t&&c}function Ea(e,t){var c=e.diff(t,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Na(e,t){if(arguments.length===1){if(ja(arguments[0])){e=arguments[0];t=undefined}else if(Pa(arguments[0])){t=arguments[0];e=undefined}}var c=e||Zc(),a=ua(c,this).startOf("day"),r=u.calendarFormat(this,a)||"sameElse",n=t&&(Y(t[r])?t[r].call(this,c):t[r]);return this.format(n||this.localeData().calendar(r,this,Zc(c)))}function Wa(){return new L(this)}function Fa(e,t){var c=g(e)?e:Zc(e);if(!(this.isValid()&&c.isValid())){return false}t=ce(t)||"millisecond";if(t==="millisecond"){return this.valueOf()>c.valueOf()}else{return c.valueOf()<this.clone().startOf(t).valueOf()}}function Ia(e,t){var c=g(e)?e:Zc(e);if(!(this.isValid()&&c.isValid())){return false}t=ce(t)||"millisecond";if(t==="millisecond"){return this.valueOf()<c.valueOf()}else{return this.clone().endOf(t).valueOf()<c.valueOf()}}function Ra(e,t,c,a){var r=g(e)?e:Zc(e),n=g(t)?t:Zc(t);if(!(this.isValid()&&r.isValid()&&n.isValid())){return false}a=a||"()";return(a[0]==="("?this.isAfter(r,c):!this.isBefore(r,c))&&(a[1]===")"?this.isBefore(n,c):!this.isAfter(n,c))}function Ua(e,t){var c=g(e)?e:Zc(e),a;if(!(this.isValid()&&c.isValid())){return false}t=ce(t)||"millisecond";if(t==="millisecond"){return this.valueOf()===c.valueOf()}else{a=c.valueOf();return this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()}}function qa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Za(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ba(e,t,c){var a,r,n;if(!this.isValid()){return NaN}a=ua(e,this);if(!a.isValid()){return NaN}r=(a.utcOffset()-this.utcOffset())*6e4;t=ce(t);switch(t){case"year":n=Ja(this,a)/12;break;case"month":n=Ja(this,a);break;case"quarter":n=Ja(this,a)/3;break;case"second":n=(this-a)/1e3;break;case"minute":n=(this-a)/6e4;break;case"hour":n=(this-a)/36e5;break;case"day":n=(this-a-r)/864e5;break;case"week":n=(this-a-r)/6048e5;break;default:n=this-a}return c?n:oe(n)}function Ja(e,t){if(e.date()<t.date()){return-Ja(t,e)}var c=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(c,"months"),r,n;if(t-a<0){r=e.clone().add(c-1,"months");n=(t-a)/(a-r)}else{r=e.clone().add(c+1,"months");n=(t-a)/(r-a)}return-(c+n)||0}function $a(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ga(e){if(!this.isValid()){return null}var t=e!==true,c=t?this.clone().utc():this;if(c.year()<0||c.year()>9999){return I(c,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(Y(Date.prototype.toISOString)){if(t){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",I(c,"Z"))}}return I(c,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qa(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e="moment",t="",c,a,r,n;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}c="["+e+'("]';a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";r="-MM-DD[T]HH:mm:ss.SSS";n=t+'[")]';return this.format(c+a+r+n)}function Ka(e){if(!e){e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat}var t=I(this,e);return this.localeData().postformat(t)}function Xa(e,t){if(this.isValid()&&(g(e)&&e.isValid()||Zc(e).isValid())){return wa({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function er(e){return this.from(Zc(),e)}function tr(e,t){if(this.isValid()&&(g(e)&&e.isValid()||Zc(e).isValid())){return wa({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function cr(e){return this.to(Zc(),e)}function ar(e){var t;if(e===undefined){return this._locale._abbr}else{t=vc(e);if(t!=null){this._locale=t}return this}}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rr=H("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined){return this.localeData()}else{return this.locale(e)}});function nr(){return this._locale}var sr=1e3,ir=60*sr,or=60*ir,lr=(365*400+97)*24*or;function ur(e,t){return(e%t+t)%t}function dr(e,t,c){if(e<100&&e>=0){return new Date(e+400,t,c)-lr}else{return new Date(e,t,c).valueOf()}}function hr(e,t,c){if(e<100&&e>=0){return Date.UTC(e+400,t,c)-lr}else{return Date.UTC(e,t,c)}}function mr(e){var t,c;e=ce(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}c=this._isUTC?hr:dr;switch(e){case"year":t=c(this.year(),0,1);break;case"quarter":t=c(this.year(),this.month()-this.month()%3,1);break;case"month":t=c(this.year(),this.month(),1);break;case"week":t=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=c(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=ur(t+(this._isUTC?0:this.utcOffset()*ir),or);break;case"minute":t=this._d.valueOf();t-=ur(t,ir);break;case"second":t=this._d.valueOf();t-=ur(t,sr);break}this._d.setTime(t);u.updateOffset(this,true);return this}function fr(e){var t,c;e=ce(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}c=this._isUTC?hr:dr;switch(e){case"year":t=c(this.year()+1,0,1)-1;break;case"quarter":t=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=c(this.year(),this.month()+1,1)-1;break;case"week":t=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=or-ur(t+(this._isUTC?0:this.utcOffset()*ir),or)-1;break;case"minute":t=this._d.valueOf();t+=ir-ur(t,ir)-1;break;case"second":t=this._d.valueOf();t+=sr-ur(t,sr)-1;break}this._d.setTime(t);u.updateOffset(this,true);return this}function vr(){return this._d.valueOf()-(this._offset||0)*6e4}function pr(){return Math.floor(this.valueOf()/1e3)}function _r(){return new Date(this.valueOf())}function Mr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zr(){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()}}function yr(){return this.isValid()?this.toISOString():null}function Lr(){return p(this)}function gr(){return m({},v(this))}function br(){return v(this).overflow}function Hr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wr(e,t){var c,a,r,n=this._eras||vc("en")._eras;for(c=0,a=n.length;c<a;++c){switch(typeof n[c].since){case"string":r=u(n[c].since).startOf("day");n[c].since=r.valueOf();break}switch(typeof n[c].until){case"undefined":n[c].until=+Infinity;break;case"string":r=u(n[c].until).startOf("day").valueOf();n[c].until=r.valueOf();break}}return n}function kr(e,t,c){var a,r,n=this.eras(),s,i,o;e=e.toUpperCase();for(a=0,r=n.length;a<r;++a){s=n[a].name.toUpperCase();i=n[a].abbr.toUpperCase();o=n[a].narrow.toUpperCase();if(c){switch(t){case"N":case"NN":case"NNN":if(i===e){return n[a]}break;case"NNNN":if(s===e){return n[a]}break;case"NNNNN":if(o===e){return n[a]}break}}else if([s,i,o].indexOf(e)>=0){return n[a]}}}function Cr(e,t){var c=e.since<=e.until?+1:-1;if(t===undefined){return u(e.since).year()}else{return u(e.since).year()+(t-e.offset)*c}}function Yr(){var e,t,c,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){c=this.startOf("day").valueOf();if(a[e].since<=c&&c<=a[e].until){return a[e].name}if(a[e].until<=c&&c<=a[e].since){return a[e].name}}return""}function Vr(){var e,t,c,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){c=this.startOf("day").valueOf();if(a[e].since<=c&&c<=a[e].until){return a[e].narrow}if(a[e].until<=c&&c<=a[e].since){return a[e].narrow}}return""}function Dr(){var e,t,c,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){c=this.startOf("day").valueOf();if(a[e].since<=c&&c<=a[e].until){return a[e].abbr}if(a[e].until<=c&&c<=a[e].since){return a[e].abbr}}return""}function Sr(){var e,t,c,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){c=r[e].since<=r[e].until?+1:-1;a=this.startOf("day").valueOf();if(r[e].since<=a&&a<=r[e].until||r[e].until<=a&&a<=r[e].since){return(this.year()-