UNPKG

@mongodb-js/compass-query-bar

Version:

Renders a component for executing MongoDB queries through a GUI.

1 lines 1.86 MB
(function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t(require('reflux'),require('reflux-state-mixin'),require('lodash'),require('debug'),require('assert'),require('buffer'),require('util'),require('stream'),require('string_decoder'),require('react'),require('hadron-react-components'),require('prop-types'),require('react-fontawesome'),require('electron')):'function'==typeof define&&define.amd?define(['reflux','reflux-state-mixin','lodash','debug','assert','buffer','util','stream','string_decoder','react','hadron-react-components','prop-types','react-fontawesome','electron'],t):'object'==typeof exports?exports.QueryBarPlugin=t(require('reflux'),require('reflux-state-mixin'),require('lodash'),require('debug'),require('assert'),require('buffer'),require('util'),require('stream'),require('string_decoder'),require('react'),require('hadron-react-components'),require('prop-types'),require('react-fontawesome'),require('electron')):e.QueryBarPlugin=t(e.reflux,e['reflux-state-mixin'],e.lodash,e.debug,e.assert,e.buffer,e.util,e.stream,e.string_decoder,e.react,e['hadron-react-components'],e['prop-types'],e['react-fontawesome'],e.electron)})(this,function(e,t,r,o,a,n,i,s,l,u,c,d,_,f){var p=String.call,y=String.fromCharCode,g=Math.LN2,b=Math.log,B=Math.round,h=Math.pow,m=Math.max,k=Math.abs,Q=Math.min,w=Math.floor,v=Math.ceil;return function(e){function t(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(r,'a',r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='./',t(t.s=192)}([function(e,t,r){(function(e){(function(t,r){e.exports=r()})(this,function(){'use strict';function t(){return qt.apply(null,arguments)}function o(e){return e instanceof Array||'[object Array]'===Object.prototype.toString.call(e)}function a(e){return null!=e&&'[object Object]'===Object.prototype.toString.call(e)}function n(e){for(var t in e)return!1;return!0}function s(e){return void 0===e}function l(e){return'number'==typeof e||'[object Number]'===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||'[object Date]'===Object.prototype.toString.call(e)}function u(e,t){var r=[],o;for(o=0;o<e.length;++o)r.push(t(e[o],o));return r}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var r in t)c(t,r)&&(e[r]=t[r]);return c(t,'toString')&&(e.toString=t.toString),c(t,'valueOf')&&(e.valueOf=t.valueOf),e}function _(e,t,r,o){return We(e,t,r,o,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function y(e){if(null==e._isValid){var t=p(e),r=St.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null==Object.isFrozen||!Object.isFrozen(e))e._isValid=o;else return o}return e._isValid}function g(e){var t=_(NaN);return null==e?p(t).userInvalidated=!0:d(p(t),e),t}function b(e,t){var r,o,a;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),0<Lt.length)for(r=0;r<Lt.length;r++)o=Lt[r],a=t[o],s(a)||(e[o]=a);return e}function x(e){b(this,e),this._d=new Date(null==e._d?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),!1==Mt&&(Mt=!0,t.updateOffset(this),Mt=!1)}function F(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function A(e){return 0>e?v(e)||0:w(e)}function q(e){var t=+e,r=0;return 0!=t&&isFinite(t)&&(r=A(t)),r}function E(e,t,r){var o=Q(e.length,t.length),a=k(e.length-t.length),n=0,s;for(s=0;s<o;s++)(r&&e[s]!==t[s]||!r&&q(e[s])!==q(t[s]))&&n++;return n+a}function S(e){!1===t.suppressDeprecationWarnings&&'undefined'!=typeof console&&console.warn&&console.warn('Deprecation warning: '+e)}function L(e,r){var o=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){for(var a=[],n=0,i;n<arguments.length;n++){if(i='','object'==typeof arguments[n]){for(var s in i+='\n['+n+'] ',arguments[0])i+=s+': '+arguments[0][s]+', ';i=i.slice(0,-2)}else i=arguments[n];a.push(i)}S(e+'\nArguments: '+Array.prototype.slice.call(a).join('')+'\n'+new Error().stack),o=!1}return r.apply(this,arguments)},r)}function M(e,r){null!=t.deprecationHandler&&t.deprecationHandler(e,r),Dt[e]||(S(r),Dt[e]=!0)}function D(e){return e instanceof Function||'[object Function]'===Object.prototype.toString.call(e)}function C(e,t){var r=d({},e),o;for(o in t)c(t,o)&&(a(e[o])&&a(t[o])?(r[o]={},d(r[o],e[o]),d(r[o],t[o])):null==t[o]?delete r[o]:r[o]=t[o]);for(o in e)c(e,o)&&!c(t,o)&&a(e[o])&&(r[o]=d({},r[o]));return r}function T(e){null!=e&&this.set(e)}function O(e,t){var r=e.toLowerCase();Yt[r]=Yt[r+'s']=Yt[t]=e}function Y(e){return'string'==typeof e?Yt[e]||Yt[e.toLowerCase()]:void 0}function j(e){var t={},r,o;for(o in e)c(e,o)&&(r=Y(o),r&&(t[r]=e[o]));return t}function R(e,t){jt[e]=t}function $(e){var t=[];for(var r in e)t.push({unit:r,priority:jt[r]});return t.sort(function(e,t){return e.priority-t.priority}),t}function N(e,r){return function(o){return null==o?I(this,e):(P(this,e,o),t.updateOffset(this,r),this)}}function I(e,t){return e.isValid()?e._d['get'+(e._isUTC?'UTC':'')+t]():NaN}function P(e,t,r){e.isValid()&&e._d['set'+(e._isUTC?'UTC':'')+t](r)}function W(e,t,r){var o=''+k(e),a=t-o.length;return(0<=e?r?'+':'':'-')+h(10,m(0,a)).toString().substr(1)+o}function H(e,t,r,o){var a=o;'string'==typeof o&&(a=function(){return this[o]()}),e&&(It[e]=a),t&&(It[t[0]]=function(){return W(a.apply(this,arguments),t[1],t[2])}),r&&(It[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,''):e.replace(/\\/g,'')}function U(e){var t=e.match(Rt),r,o;for(r=0,o=t.length;r<o;r++)t[r]=It[t[r]]?It[t[r]]:z(t[r]);return function(r){var a='',n;for(n=0;n<o;n++)a+=D(t[n])?t[n].call(r,e):t[n];return a}}function V(e,t){return e.isValid()?(t=G(t,e.localeData()),Nt[t]=Nt[t]||U(t),Nt[t](e)):e.localeData().invalidDate()}function G(e,t){function r(e){return t.longDateFormat(e)||e}var o=5;for($t.lastIndex=0;0<=o&&$t.test(e);)e=e.replace($t,r),$t.lastIndex=0,o-=1;return e}function K(e,t,r){ir[e]=D(t)?t:function(e){return e&&r?r:t}}function J(e,t){return c(ir,e)?ir[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return Z(e.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,o,a){return t||r||o||a}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}function ee(e,t){var r=t,o;for('string'==typeof e&&(e=[e]),l(t)&&(r=function(e,r){r[t]=q(e)}),o=0;o<e.length;o++)sr[e[o]]=r}function te(e,t){ee(e,function(e,r,o,a){o._w=o._w||{},t(e,o._w,o,a)})}function re(e,t,r){null!=t&&c(sr,e)&&sr[e](t,r._a,r,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t,r){var o=e.toLocaleLowerCase(),a,n,i;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;12>a;++a)i=_([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,'').toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,'').toLocaleLowerCase();return r?'MMM'===t?(n=br.call(this._shortMonthsParse,o),-1===n?null:n):(n=br.call(this._longMonthsParse,o),-1===n?null:n):'MMM'===t?(n=br.call(this._shortMonthsParse,o),-1!==n)?n:(n=br.call(this._longMonthsParse,o),-1===n?null:n):(n=br.call(this._longMonthsParse,o),-1!==n)?n:(n=br.call(this._shortMonthsParse,o),-1===n?null:n)}function ne(e,t){var r;if(!e.isValid())return e;if('string'==typeof t)if(/^\d+$/.test(t))t=q(t);else if(t=e.localeData().monthsParse(t),!l(t))return e;return r=Q(e.date(),oe(e.year(),t)),e._d['set'+(e._isUTC?'UTC':'')+'Month'](t,r),e}function ie(e){return null==e?I(this,'Month'):(ne(this,e),t.updateOffset(this,!0),this)}function se(){function e(e,t){return t.length-e.length}var t=[],r=[],o=[],a,n;for(a=0;12>a;a++)n=_([2e3,a]),t.push(this.monthsShort(n,'')),r.push(this.months(n,'')),o.push(this.months(n,'')),o.push(this.monthsShort(n,''));for(t.sort(e),r.sort(e),o.sort(e),a=0;12>a;a++)t[a]=Z(t[a]),r[a]=Z(r[a]);for(a=0;24>a;a++)o[a]=Z(o[a]);this._monthsRegex=new RegExp('^('+o.join('|')+')','i'),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp('^('+r.join('|')+')','i'),this._monthsShortStrictRegex=new RegExp('^('+t.join('|')+')','i')}function le(e){return ue(e)?366:365}function ue(e){return 0==e%4&&0!=e%100||0==e%400}function ce(e,t,r,o,a,n,i){var s=new Date(e,t,r,o,a,n,i);return 100>e&&0<=e&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function de(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function _e(e,t,r){var o=7+t-r,a=(7+de(e,0,o).getUTCDay()-t)%7;return-a+o-1}function fe(e,t,r,o,a){var n=_e(e,o,a),i=1+7*(t-1)+(7+r-o)%7+n,s,l;return 0>=i?(s=e-1,l=le(s)+i):i>le(e)?(s=e+1,l=i-le(e)):(s=e,l=i),{year:s,dayOfYear:l}}function pe(e,t,r){var o=_e(e.year(),t,r),a=w((e.dayOfYear()-o-1)/7)+1,n,i;return 1>a?(i=e.year()-1,n=a+ye(i,t,r)):a>ye(e.year(),t,r)?(n=a-ye(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function ye(e,t,r){var o=_e(e,t,r),a=_e(e+1,t,r);return(le(e)-o+a)/7}function ge(e,t){return'string'==typeof e?isNaN(e)?(e=t.weekdaysParse(e),'number'==typeof e?e:null):parseInt(e,10):e}function me(e,t){return'string'==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function be(e,t,r){var o=e.toLocaleLowerCase(),a,n,i;if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;7>a;++a)i=_([2000,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,'').toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,'').toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,'').toLocaleLowerCase();return r?'dddd'===t?(n=br.call(this._weekdaysParse,o),-1===n?null:n):'ddd'===t?(n=br.call(this._shortWeekdaysParse,o),-1===n?null:n):(n=br.call(this._minWeekdaysParse,o),-1===n?null:n):'dddd'===t?(n=br.call(this._weekdaysParse,o),-1!==n)?n:(n=br.call(this._shortWeekdaysParse,o),-1!==n)?n:(n=br.call(this._minWeekdaysParse,o),-1===n?null:n):'ddd'===t?(n=br.call(this._shortWeekdaysParse,o),-1!==n)?n:(n=br.call(this._weekdaysParse,o),-1!==n)?n:(n=br.call(this._minWeekdaysParse,o),-1===n?null:n):(n=br.call(this._minWeekdaysParse,o),-1!==n)?n:(n=br.call(this._weekdaysParse,o),-1!==n)?n:(n=br.call(this._shortWeekdaysParse,o),-1===n?null:n)}function he(){function e(e,t){return t.length-e.length}var t=[],r=[],o=[],a=[],n,i,s,l,u;for(n=0;7>n;n++)i=_([2000,1]).day(n),s=this.weekdaysMin(i,''),l=this.weekdaysShort(i,''),u=this.weekdays(i,''),t.push(s),r.push(l),o.push(u),a.push(s),a.push(l),a.push(u);for(t.sort(e),r.sort(e),o.sort(e),a.sort(e),n=0;7>n;n++)r[n]=Z(r[n]),o[n]=Z(o[n]),a[n]=Z(a[n]);this._weekdaysRegex=new RegExp('^('+a.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+o.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+r.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+t.join('|')+')','i')}function Be(){return this.hours()%12||12}function ke(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}function we(e){return e?e.toLowerCase().replace('_','-'):e}function ve(e){for(var t=0,r,o,a,n;t<e.length;){for(n=we(e[t]).split('-'),r=n.length,o=we(e[t+1]),o=o?o.split('-'):null;0<r;){if(a=xe(n.slice(0,r).join('-')),a)return a;if(o&&o.length>=r&&E(n,o,!0)>=r-1)break;r--}t++}return null}function xe(t){var o=null;if(!vr[t]&&'undefined'!=typeof e&&e&&e.exports)try{o=Dr._abbr,r(210)('./'+t),Fe(o)}catch(t){}return vr[t]}function Fe(e,t){var r;return e&&(r=s(t)?qe(e):Ae(e,t),r&&(Dr=r)),Dr._abbr}function Ae(e,t){if(null!==t){var r=wr;if(t.abbr=e,null!=vr[e])M('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.'),r=vr[e]._config;else if(null!=t.parentLocale)if(null!=vr[t.parentLocale])r=vr[t.parentLocale]._config;else return xr[t.parentLocale]||(xr[t.parentLocale]=[]),xr[t.parentLocale].push({name:e,config:t}),null;return vr[e]=new T(C(r,t)),xr[e]&&xr[e].forEach(function(e){Ae(e.name,e.config)}),Fe(e),vr[e]}return delete vr[e],null}function qe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Dr;if(!o(e)){if(t=xe(e),t)return t;e=[e]}return ve(e)}function Ee(e){var t=e._a,r;return t&&-2===p(e).overflow&&(r=0>t[ur]||11<t[ur]?ur:1>t[cr]||t[cr]>oe(t[lr],t[ur])?cr:0>t[dr]||24<t[dr]||24===t[dr]&&(0!==t[_r]||0!==t[fr]||0!==t[pr])?dr:0>t[_r]||59<t[_r]?_r:0>t[fr]||59<t[fr]?fr:0>t[pr]||999<t[pr]?pr:-1,p(e)._overflowDayOfYear&&(r<lr||r>cr)&&(r=cr),p(e)._overflowWeeks&&-1===r&&(r=yr),p(e)._overflowWeekday&&-1===r&&(r=gr),p(e).overflow=r),e}function Se(e){var t=e._i,r=Fr.exec(t)||Ar.exec(t),o,a,n,i,s,l;if(r){for(p(e).iso=!0,o=0,a=Er.length;o<a;o++)if(Er[o][1].exec(r[1])){i=Er[o][0],n=!1!==Er[o][2];break}if(null==i)return void(e._isValid=!1);if(r[3]){for(o=0,a=Sr.length;o<a;o++)if(Sr[o][1].exec(r[3])){s=(r[2]||' ')+Sr[o][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(r[4])if(qr.exec(r[4]))l='Z';else return void(e._isValid=!1);e._f=i+(s||'')+(l||''),Ye(e)}else e._isValid=!1}function Le(e){var t={" GMT":' +0000'," EDT":' -0400'," EST":' -0500'," CDT":' -0500'," CST":' -0600'," MDT":' -0600'," MST":' -0700'," PDT":' -0700'," PST":' -0800'},r,o,a,n,i,s,l,u;if(r=e._i.replace(/\([^\)]*\)|[\n\t]/g,' ').replace(/(\s\s+)/g,' ').replace(/^\s|\s$/g,''),o=Mr.exec(r),o){if(a=o[1]?'ddd'+(5===o[1].length?', ':' '):'',n='D MMM '+(10<o[2].length?'YYYY ':'YY '),i='HH:mm'+(o[4]?':ss':''),o[1]){var c=new Date(o[2]),d=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][c.getDay()];if(o[1].substr(0,3)!==d)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(o[5].length){case 2:0===u?l=' +0000':(u='YXWVUTSRQPONZABCDEFGHIKLM'.indexOf(o[5][1].toUpperCase())-12,l=(0>u?' -':' +')+(''+u).replace(/^-?/,'0').match(/..$/)[0]+'00');break;case 4:l=t[o[5]];break;default:l=t[' GMT'];}o[5]=l,e._i=o.splice(1).join(''),s=' ZZ',e._f=a+n+i+s,Ye(e),p(e).rfc2822=!0}else e._isValid=!1}function Me(e){var r=Lr.exec(e._i);if(null!==r)return void(e._d=new Date(+r[1]));if(Se(e),!1===e._isValid)delete e._isValid;else return;if(Le(e),!1===e._isValid)delete e._isValid;else return;t.createFromInputFallback(e)}function De(e,t,r){return null==e?null==t?r:t:e}function Ce(e){var r=new Date(t.now());return e._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()]}function Te(e){var t=[],r,o,a,n;if(!e._d){for(a=Ce(e),e._w&&null==e._a[cr]&&null==e._a[ur]&&Oe(e),null!=e._dayOfYear&&(n=De(e._a[lr],a[lr]),(e._dayOfYear>le(n)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),o=de(n,0,e._dayOfYear),e._a[ur]=o.getUTCMonth(),e._a[cr]=o.getUTCDate()),r=0;3>r&&null==e._a[r];++r)e._a[r]=t[r]=a[r];for(;7>r;r++)e._a[r]=t[r]=null==e._a[r]?2===r?1:0:e._a[r];24===e._a[dr]&&0===e._a[_r]&&0===e._a[fr]&&0===e._a[pr]&&(e._nextDay=!0,e._a[dr]=0),e._d=(e._useUTC?de:ce).apply(null,t),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[dr]=24)}}function Oe(e){var t,r,o,a,n,i,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)n=1,i=4,r=De(t.GG,e._a[lr],pe(He(),1,4).year),o=De(t.W,1),a=De(t.E,1),(1>a||7<a)&&(l=!0);else{n=e._locale._week.dow,i=e._locale._week.doy;var u=pe(He(),n,i);r=De(t.gg,e._a[lr],u.year),o=De(t.w,u.week),null==t.d?null==t.e?a=n:(a=t.e+n,(0>t.e||6<t.e)&&(l=!0)):(a=t.d,(0>a||6<a)&&(l=!0))}1>o||o>ye(r,n,i)?p(e)._overflowWeeks=!0:null==l?(s=fe(r,o,a,n,i),e._a[lr]=s.year,e._dayOfYear=s.dayOfYear):p(e)._overflowWeekday=!0}function Ye(e){if(e._f===t.ISO_8601)return void Se(e);if(e._f===t.RFC_2822)return void Le(e);e._a=[],p(e).empty=!0;var r=''+e._i,o=r.length,a=0,n,i,s,l,u;for(s=G(e._f,e._locale).match(Rt)||[],n=0;n<s.length;n++)l=s[n],i=(r.match(J(l,e))||[])[0],i&&(u=r.substr(0,r.indexOf(i)),0<u.length&&p(e).unusedInput.push(u),r=r.slice(r.indexOf(i)+i.length),a+=i.length),It[l]?(i?p(e).empty=!1:p(e).unusedTokens.push(l),re(l,i,e)):e._strict&&!i&&p(e).unusedTokens.push(l);p(e).charsLeftOver=o-a,0<r.length&&p(e).unusedInput.push(r),12>=e._a[dr]&&!0===p(e).bigHour&&0<e._a[dr]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[dr]=je(e._locale,e._a[dr],e._meridiem),Te(e),Ee(e)}function je(e,t,r){var o;return null==r?t:null==e.meridiemHour?null==e.isPM?t:(o=e.isPM(r),o&&12>t&&(t+=12),o||12!==t||(t=0),t):e.meridiemHour(t,r)}function Re(e){var t,r,o,a,n;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)(n=0,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Ye(t),!!y(t))&&(n+=p(t).charsLeftOver,n+=10*p(t).unusedTokens.length,p(t).score=n,(null==o||n<o)&&(o=n,r=t));d(e,r||t)}function $e(e){if(!e._d){var t=j(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Te(e)}}function Ne(e){var t=new x(Ee(Ie(e)));return t._nextDay&&(t.add(1,'d'),t._nextDay=void 0),t}function Ie(e){var t=e._i,r=e._f;return(e._locale=e._locale||qe(e._l),null===t||void 0===r&&''===t)?g({nullInput:!0}):('string'==typeof t&&(e._i=t=e._locale.preparse(t)),F(t))?new x(Ee(t)):(i(t)?e._d=t:o(r)?Re(e):r?Ye(e):Pe(e),y(e)||(e._d=null),e)}function Pe(e){var r=e._i;s(r)?e._d=new Date(t.now()):i(r)?e._d=new Date(r.valueOf()):'string'==typeof r?Me(e):o(r)?(e._a=u(r.slice(0),function(e){return parseInt(e,10)}),Te(e)):a(r)?$e(e):l(r)?e._d=new Date(r):t.createFromInputFallback(e)}function We(e,t,r,i,s){var l={};return(!0===r||!1===r)&&(i=r,r=void 0),(a(e)&&n(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=r,l._i=e,l._f=t,l._strict=i,Ne(l)}function He(e,t,r,o){return We(e,t,r,o,!1)}function ze(e,t){var r,a;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return He();for(r=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](r))&&(r=t[a]);return r}function Ue(e){for(var t in e)if(-1===Or.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var r=!1,o=0;o<Or.length;++o)if(e[Or[o]]){if(r)return!1;parseFloat(e[Or[o]])!==q(e[Or[o]])&&(r=!0)}return!0}function Ve(e){var t=j(e),r=t.year||0,o=t.quarter||0,a=t.month||0,n=t.week||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=Ue(t),this._milliseconds=+c+1e3*u+6e4*l+60*(60*(1e3*s)),this._days=+i+7*n,this._months=+a+3*o+12*r,this._data={},this._locale=qe(),this._bubble()}function Ge(e){return e instanceof Ve}function Ke(e){return 0>e?-1*B(-1*e):B(e)}function Je(e,t){H(e,0,0,function(){var e=this.utcOffset(),r='+';return 0>e&&(e=-e,r='-'),r+W(~~(e/60),2)+t+W(~~e%60,2)})}function Xe(e,t){var r=(t||'').match(e);if(null===r)return null;var o=r[r.length-1]||[],a=(o+'').match(Yr)||['-',0,0],n=+(60*a[1])+q(a[2]);return 0===n?0:'+'===a[0]?n:-n}function Ze(e,r){var o,a;return r._isUTC?(o=r.clone(),a=(F(e)||i(e)?e.valueOf():He(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+a),t.updateOffset(o,!1),o):He(e).local()}function et(e){return 15*-B(e._d.getTimezoneOffset()/15)}function tt(){return!!this.isValid()&&this._isUTC&&0===this._offset}function rt(e,t){var r=e,o=null,a,n,i;return Ge(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(r={},t?r[t]=e:r.milliseconds=e):(o=jr.exec(e))?(a='-'===o[1]?-1:1,r={y:0,d:q(o[cr])*a,h:q(o[dr])*a,m:q(o[_r])*a,s:q(o[fr])*a,ms:q(Ke(1e3*o[pr]))*a}):(o=Rr.exec(e))?(a='-'===o[1]?-1:1,r={y:ot(o[2],a),M:ot(o[3],a),w:ot(o[4],a),d:ot(o[5],a),h:ot(o[6],a),m:ot(o[7],a),s:ot(o[8],a)}):null==r?r={}:'object'==typeof r&&('from'in r||'to'in r)&&(i=nt(He(r.from),He(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),n=new Ve(r),Ge(e)&&c(e,'_locale')&&(n._locale=e._locale),n}function ot(e,t){var r=e&&parseFloat(e.replace(',','.'));return(isNaN(r)?0:r)*t}function at(e,t){var r={milliseconds:0,months:0};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,'M').isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,'M'),r}function nt(e,t){var r;return e.isValid()&&t.isValid()?(t=Ze(t,e),e.isBefore(t)?r=at(e,t):(r=at(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function it(e,t){return function(r,o){var a,n;return null===o||isNaN(+o)||(M(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.'),n=r,r=o,o=n),r='string'==typeof r?+r:r,a=rt(r,o),st(this,a,e),this}}function st(e,r,o,a){var n=r._milliseconds,i=Ke(r._days),s=Ke(r._months);e.isValid()&&(a=null==a||a,n&&e._d.setTime(e._d.valueOf()+n*o),i&&P(e,'Date',I(e,'Date')+i*o),s&&ne(e,I(e,'Month')+s*o),a&&t.updateOffset(e,i||s))}function lt(e,t){var r=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(r,'months'),a,n;return 0>t-o?(a=e.clone().add(r-1,'months'),n=(t-o)/(o-a)):(a=e.clone().add(r+1,'months'),n=(t-o)/(a-o)),-(r+n)||0}function ut(e){var t;return void 0===e?this._locale._abbr:(t=qe(e),null!=t&&(this._locale=t),this)}function ct(){return this._locale}function dt(e,t){H(0,[e,e.length],0,t)}function _t(e,t,r,o,a){var n;return null==e?pe(this,o,a).year:(n=ye(e,o,a),t>n&&(t=n),ft.call(this,e,t,r,o,a))}function ft(e,t,r,o,a){var n=fe(e,t,r,o,a),i=de(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function pt(e,t){t[pr]=q(1e3*('0.'+e))}function yt(e){return e}function gt(e,t,r,o){var a=qe(),n=_().set(o,t);return a[r](n,e)}function mt(e,t,r){if(l(e)&&(t=e,e=void 0),e=e||'',null!=t)return gt(e,t,r,'month');var o=[],a;for(a=0;12>a;a++)o[a]=gt(e,a,r,'month');return o}function bt(e,t,r,o){'boolean'==typeof e?(l(t)&&(r=t,t=void 0),t=t||''):(t=e,r=t,e=!1,l(t)&&(r=t,t=void 0),t=t||'');var a=qe(),n=e?a._week.dow:0;if(null!=r)return gt(t,(r+n)%7,o,'day');var s=[],u;for(u=0;7>u;u++)s[u]=gt(t,(u+n)%7,o,'day');return s}function ht(e,t,r,o){var a=rt(t,r);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Bt(e){return 0>e?w(e):v(e)}function kt(e){return 4800*e/146097}function Qt(e){return 146097*e/4800}function wt(e){return function(){return this.as(e)}}function vt(e){return function(){return this.isValid()?this._data[e]:NaN}}function xt(e,t,r,o,a){return a.relativeTime(t||1,!!r,e,o)}function Ft(e,t,r){var o=rt(e).abs(),n=fo(o.as('s')),i=fo(o.as('m')),s=fo(o.as('h')),l=fo(o.as('d')),u=fo(o.as('M')),c=fo(o.as('y')),d=n<=po.ss&&['s',n]||n<po.s&&['ss',n]||1>=i&&['m']||i<po.m&&['mm',i]||1>=s&&['h']||s<po.h&&['hh',s]||1>=l&&['d']||l<po.d&&['dd',l]||1>=u&&['M']||u<po.M&&['MM',u]||1>=c&&['y']||['yy',c];return d[2]=t,d[3]=0<+e,d[4]=r,xt.apply(null,d)}function At(){if(!this.isValid())return this.localeData().invalidDate();var e=yo(this._milliseconds)/1e3,t=yo(this._days),r=yo(this._months),o,a,n;o=A(e/60),a=A(o/60),e%=60,o%=60,n=A(r/12),r%=12;var i=n,l=r,u=t,c=a,d=o,_=e,s=this.asSeconds();return s?(0>s?'-':'')+'P'+(i?i+'Y':'')+(l?l+'M':'')+(u?u+'D':'')+(c||d||_?'T':'')+(c?c+'H':'')+(d?d+'M':'')+(_?_+'S':''):'P0D'}var qt,Et;Et=Array.prototype.some?Array.prototype.some:function(e){for(var r=Object(this),t=r.length>>>0,o=0;o<t;o++)if(o in r&&e.call(this,r[o],o,r))return!0;return!1};var St=Et,Lt=t.momentProperties=[],Mt=!1,Dt={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ct=Object.keys?Object.keys:function(e){var t=[],r;for(r in e)c(e,r)&&t.push(r);return t};var Tt=Ct,Ot=/\d{1,2}/,Yt={},jt={},Rt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$t=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Nt={},It={},Pt=/\d/,Wt=/\d\d/,Ht=/\d{3}/,zt=/\d{4}/,Ut=/[+-]?\d{6}/,Vt=/\d\d?/,Gt=/\d\d\d\d?/,Kt=/\d\d\d\d\d\d?/,Jt=/\d{1,3}/,Xt=/\d{1,4}/,Zt=/[+-]?\d{1,6}/,er=/\d+/,tr=/[+-]?\d+/,rr=/Z|[+-]\d\d:?\d\d/gi,or=/Z|[+-]\d\d(?::?\d\d)?/gi,ar=/[+-]?\d+(\.\d{1,3})?/,nr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ir={},sr={},lr=0,ur=1,cr=2,dr=3,_r=4,fr=5,pr=6,yr=7,gr=8,mr;mr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var br=mr;H('M',['MM',2],'Mo',function(){return this.month()+1}),H('MMM',0,0,function(e){return this.localeData().monthsShort(this,e)}),H('MMMM',0,0,function(e){return this.localeData().months(this,e)}),O('month','M'),R('month',8),K('M',Vt),K('MM',Vt,Wt),K('MMM',function(e,t){return t.monthsShortRegex(e)}),K('MMMM',function(e,t){return t.monthsRegex(e)}),ee(['M','MM'],function(e,t){t[ur]=q(e)-1}),ee(['MMM','MMMM'],function(e,t,r,o){var a=r._locale.monthsParse(e,o,r._strict);null==a?p(r).invalidMonth=e:t[ur]=a});var hr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;H('Y',0,0,function(){var e=this.year();return 9999>=e?''+e:'+'+e}),H(0,['YY',2],0,function(){return this.year()%100}),H(0,['YYYY',4],0,'year'),H(0,['YYYYY',5],0,'year'),H(0,['YYYYYY',6,!0],0,'year'),O('year','y'),R('year',1),K('Y',tr),K('YY',Vt,Wt),K('YYYY',Xt,zt),K('YYYYY',Zt,Ut),K('YYYYYY',Zt,Ut),ee(['YYYYY','YYYYYY'],lr),ee('YYYY',function(e,r){r[lr]=2===e.length?t.parseTwoDigitYear(e):q(e)}),ee('YY',function(e,r){r[lr]=t.parseTwoDigitYear(e)}),ee('Y',function(e,t){t[lr]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return q(e)+(68<q(e)?1900:2e3)};var Br=N('FullYear',!0);H('w',['ww',2],'wo','week'),H('W',['WW',2],'Wo','isoWeek'),O('week','w'),O('isoWeek','W'),R('week',5),R('isoWeek',5),K('w',Vt),K('ww',Vt,Wt),K('W',Vt),K('WW',Vt,Wt),te(['w','ww','W','WW'],function(e,t,r,o){t[o.substr(0,1)]=q(e)});H('d',0,'do','day'),H('dd',0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H('ddd',0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H('dddd',0,0,function(e){return this.localeData().weekdays(this,e)}),H('e',0,0,'weekday'),H('E',0,0,'isoWeekday'),O('day','d'),O('weekday','e'),O('isoWeekday','E'),R('day',11),R('weekday',11),R('isoWeekday',11),K('d',Vt),K('e',Vt),K('E',Vt),K('dd',function(e,t){return t.weekdaysMinRegex(e)}),K('ddd',function(e,t){return t.weekdaysShortRegex(e)}),K('dddd',function(e,t){return t.weekdaysRegex(e)}),te(['dd','ddd','dddd'],function(e,t,r,o){var a=r._locale.weekdaysParse(e,o,r._strict);null==a?p(r).invalidWeekday=e:t.d=a}),te(['d','e','E'],function(e,t,r,o){t[o]=q(e)});H('H',['HH',2],0,'hour'),H('h',['hh',2],0,Be),H('k',['kk',2],0,function(){return this.hours()||24}),H('hmm',0,0,function(){return''+Be.apply(this)+W(this.minutes(),2)}),H('hmmss',0,0,function(){return''+Be.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),H('Hmm',0,0,function(){return''+this.hours()+W(this.minutes(),2)}),H('Hmmss',0,0,function(){return''+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),ke('a',!0),ke('A',!1),O('hour','h'),R('hour',13),K('a',Qe),K('A',Qe),K('H',Vt),K('h',Vt),K('k',Vt),K('HH',Vt,Wt),K('hh',Vt,Wt),K('kk',Vt,Wt),K('hmm',Gt),K('hmmss',Kt),K('Hmm',Gt),K('Hmmss',Kt),ee(['H','HH'],dr),ee(['k','kk'],function(e,t){var r=q(e);t[dr]=24===r?0:r}),ee(['a','A'],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),ee(['h','hh'],function(e,t,r){t[dr]=q(e),p(r).bigHour=!0}),ee('hmm',function(e,t,r){var o=e.length-2;t[dr]=q(e.substr(0,o)),t[_r]=q(e.substr(o)),p(r).bigHour=!0}),ee('hmmss',function(e,t,r){var o=e.length-4,a=e.length-2;t[dr]=q(e.substr(0,o)),t[_r]=q(e.substr(o,2)),t[fr]=q(e.substr(a)),p(r).bigHour=!0}),ee('Hmm',function(e,t){var r=e.length-2;t[dr]=q(e.substr(0,r)),t[_r]=q(e.substr(r))}),ee('Hmmss',function(e,t){var r=e.length-4,o=e.length-2;t[dr]=q(e.substr(0,r)),t[_r]=q(e.substr(r,2)),t[fr]=q(e.substr(o))});var kr=/[ap]\.?m?\.?/i,Qr=N('Hours',!0),wr={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:Ot,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],week:{dow:0,doy:6},weekdays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],weekdaysMin:['Su','Mo','Tu','We','Th','Fr','Sa'],weekdaysShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],meridiemParse:kr},vr={},xr={},Fr=/^\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)?)?$/,Ar=/^\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)?)?$/,qr=/Z|[+-]\d\d(?::?\d\d)?/,Er=[['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}/]],Sr=[['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/]],Lr=/^\/?Date\((\-?\d+)/i,Mr=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/,Dr;t.createFromInputFallback=L('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':''))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Cr=L('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var e=He.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Tr=L('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var e=He.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),Or=['year','quarter','month','week','day','hour','minute','second','millisecond'];Je('Z',':'),Je('ZZ',''),K('Z',or),K('ZZ',or),ee(['Z','ZZ'],function(e,t,r){r._useUTC=!0,r._tzm=Xe(or,e)});var Yr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var jr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Rr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;rt.fn=Ve.prototype,rt.invalid=function(){return rt(NaN)};var $r=it(1,'add'),Nr=it(-1,'subtract');t.defaultFormat='YYYY-MM-DDTHH:mm:ssZ',t.defaultFormatUtc='YYYY-MM-DDTHH:mm:ss[Z]';var Ir=L('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',function(e){return void 0===e?this.localeData():this.locale(e)});H(0,['gg',2],0,function(){return this.weekYear()%100}),H(0,['GG',2],0,function(){return this.isoWeekYear()%100}),dt('gggg','weekYear'),dt('ggggg','weekYear'),dt('GGGG','isoWeekYear'),dt('GGGGG','isoWeekYear'),O('weekYear','gg'),O('isoWeekYear','GG'),R('weekYear',1),R('isoWeekYear',1),K('G',tr),K('g',tr),K('GG',Vt,Wt),K('gg',Vt,Wt),K('GGGG',Xt,zt),K('gggg',Xt,zt),K('GGGGG',Zt,Ut),K('ggggg',Zt,Ut),te(['gggg','ggggg','GGGG','GGGGG'],function(e,t,r,o){t[o.substr(0,2)]=q(e)}),te(['gg','GG'],function(e,r,o,a){r[a]=t.parseTwoDigitYear(e)}),H('Q',0,'Qo','quarter'),O('quarter','Q'),R('quarter',7),K('Q',Pt),ee('Q',function(e,t){t[ur]=3*(q(e)-1)}),H('D',['DD',2],'Do','date'),O('date','D'),R('date',9),K('D',Vt),K('DD',Vt,Wt),K('Do',function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(['D','DD'],cr),ee('Do',function(e,t){t[cr]=q(e.match(Vt)[0],10)});var Pr=N('Date',!0);H('DDD',['DDDD',3],'DDDo','dayOfYear'),O('dayOfYear','DDD'),R('dayOfYear',4),K('DDD',Jt),K('DDDD',Ht),ee(['DDD','DDDD'],function(e,t,r){r._dayOfYear=q(e)}),H('m',['mm',2],0,'minute'),O('minute','m'),R('minute',14),K('m',Vt),K('mm',Vt,Wt),ee(['m','mm'],_r);var Wr=N('Minutes',!1);H('s',['ss',2],0,'second'),O('second','s'),R('second',15),K('s',Vt),K('ss',Vt,Wt),ee(['s','ss'],fr);var Hr=N('Seconds',!1);H('S',0,0,function(){return~~(this.millisecond()/100)}),H(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),H(0,['SSS',3],0,'millisecond'),H(0,['SSSS',4],0,function(){return 10*this.millisecond()}),H(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),H(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),H(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),H(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),H(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),O('millisecond','ms'),R('millisecond',16),K('S',Jt,Pt),K('SS',Jt,Wt),K('SSS',Jt,Ht);var zr;for(zr='SSSS';9>=zr.length;zr+='S')K(zr,er);for(zr='S';9>=zr.length;zr+='S')ee(zr,pt);var Ur=N('Milliseconds',!1);H('z',0,0,'zoneAbbr'),H('zz',0,0,'zoneName');var Vr=x.prototype;Vr.add=$r,Vr.calendar=function(e,r){var o=e||He(),a=Ze(o,this).startOf('day'),n=t.calendarFormat(this,a)||'sameElse',i=r&&(D(r[n])?r[n].call(this,o):r[n]);return this.format(i||this.localeData().calendar(n,this,He(o)))},Vr.clone=function(){return new x(this)},Vr.diff=function(e,t,r){var o,a,n,i;return this.isValid()?(o=Ze(e,this),!o.isValid())?NaN:(a=6e4*(o.utcOffset()-this.utcOffset()),t=Y(t),'year'===t||'month'===t||'quarter'===t?(i=lt(this,o),'quarter'===t?i/=3:'year'===t&&(i/=12)):(n=this-o,i='second'===t?n/1e3:'minute'===t?n/6e4:'hour'===t?n/36e5:'day'===t?(n-a)/864e5:'week'===t?(n-a)/6048e5:n),r?i:A(i)):NaN},Vr.endOf=function(e){return(e=Y(e),void 0===e||'millisecond'===e)?this:('date'===e&&(e='day'),this.startOf(e).add(1,'isoWeek'===e?'week':e).subtract(1,'ms'))},Vr.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var r=V(this,e);return this.localeData().postformat(r)},Vr.from=function(e,t){return this.isValid()&&(F(e)&&e.isValid()||He(e).isValid())?rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Vr.fromNow=function(e){return this.from(He(),e)},Vr.to=function(e,t){return this.isValid()&&(F(e)&&e.isValid()||He(e).isValid())?rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Vr.toNow=function(e){return this.to(He(),e)},Vr.get=function(e){return e=Y(e),D(this[e])?this[e]():this},Vr.invalidAt=function(){return p(this).overflow},Vr.isAfter=function(e,t){var r=F(e)?e:He(e);return this.isValid()&&r.isValid()&&(t=Y(s(t)?'millisecond':t),'millisecond'===t?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},Vr.isBefore=function(e,t){var r=F(e)?e:He(e);return this.isValid()&&r.isValid()&&(t=Y(s(t)?'millisecond':t),'millisecond'===t?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},Vr.isBetween=function(e,t,r,o){return o=o||'()',('('===o[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(')'===o[1]?this.isBefore(t,r):!this.isAfter(t,r))},Vr.isSame=function(e,t){var r=F(e)?e:He(e),o;return this.isValid()&&r.isValid()&&(t=Y(t||'millisecond'),'millisecond'===t?this.valueOf()===r.valueOf():(o=r.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()))},Vr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Vr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Vr.isValid=function(){return y(this)},Vr.lang=Ir,Vr.locale=ut,Vr.localeData=ct,Vr.max=Tr,Vr.min=Cr,Vr.parsingFlags=function(){return d({},p(this))},Vr.set=function(e,t){if('object'==typeof e){e=j(e);for(var r=$(e),o=0;o<r.length;o++)this[r[o].unit](e[r[o].unit])}else if(e=Y(e),D(this[e]))return this[e](t);return this},Vr.startOf=function(e){switch(e=Y(e),e){case'year':this.month(0);case'quarter':case'month':this.date(1);case'week':case'isoWeek':case'day':case'date':this.hours(0);case'hour':this.minutes(0);case'minute':this.seconds(0);case'second':this.milliseconds(0);}return'week'===e&&this.weekday(0),'isoWeek'===e&&this.isoWeekday(1),'quarter'===e&&this.month(3*w(this.month()/3)),this},Vr.subtract=Nr,Vr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Vr.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Vr.toDate=function(){return new Date(this.valueOf())},Vr.toISOString=function(){if(!this.isValid())return null;var e=this.clone().utc();return 0>e.year()||9999<e.year()?V(e,'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'):D(Date.prototype.toISOString)?this.toDate().toISOString():V(e,'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]')},Vr.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var e='moment',t='';this.isLocal()||(e=0===this.utcOffset()?'moment.utc':'moment.parseZone',t='Z');var r='['+e+'("]',o=0<=this.year()&&9999>=this.year()?'YYYY':'YYYYYY',a=t+'[")]';return this.format(r+o+'-MM-DD[T]HH:mm:ss.SSS'+a)},Vr.toJSON=function(){return this.isValid()?this.toISOString():null},Vr.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},Vr.unix=function(){return w(this.valueOf()/1e3)},Vr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Vr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Vr.year=Br,Vr.isLeapYear=function(){return ue(this.year())},Vr.weekYear=function(e){return _t.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Vr.isoWeekYear=function(e){return _t.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Vr.quarter=Vr.quarters=function(e){return null==e?v((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Vr.month=ie,Vr.daysInMonth=function(){return oe(this.year(),this.month())},Vr.week=Vr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),'d')},Vr.isoWeek=Vr.isoWeeks=function(e){var t=pe(this,1,4).week;return null==e?t:this.add(7*(e-t),'d')},Vr.weeksInYear=function(){var e=this.localeData()._week;return ye(this.year(),e.dow,e.doy)},Vr.isoWeeksInYear=function(){return ye(this.year(),1,4)},Vr.date=Pr,Vr.day=Vr.days=function(e){if(!this.isValid())return null==e?NaN:this;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==e?t:(e=ge(e,this.localeData()),this.add(e-t,'d'))},Vr.weekday=function(e){if(!this.isValid())return null==e?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,'d')},Vr.isoWeekday=function(e){if(!this.isValid())return null==e?NaN:this;if(null!=e){var t=me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Vr.dayOfYear=function(e){var t=B((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==e?t:this.add(e-t,'d')},Vr.hour=Vr.hours=Qr,Vr.minute=Vr.minutes=Wr,Vr.second=Vr.seconds=Hr,Vr.millisecond=Vr.milliseconds=Ur,Vr.utcOffset=function(e,r,o){var a=this._offset||0,n;if(!this.isValid())return null==e?NaN:this;if(null!=e){if('string'!=typeof e)16>k(e)&&!o&&(e*=60);else if(e=Xe(or,e),null===e)return this;return!this._isUTC&&r&&(n=et(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,'m'),a!==e&&(!r||this._changeInProgress?st(this,rt(e-a,'m'),1,!1):!this._changeInProgress&&(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:et(this)},Vr.utc=function(e){return this.utcOffset(0,e)},Vr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(et(this),'m')),this},Vr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var e=Xe(rr,this._i);null==e?this.utcOffset(0,!0):this.utcOffset(e)}return this},Vr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?He(e).utcOffset():0,0==(this.utcOffset()-e)%60)},Vr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Vr.isLocal=function(){return!!this.isValid()&&!this._isUTC},Vr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Vr.isUtc=tt,Vr.isUTC=tt,Vr.zoneAbbr=function(){return this._isUTC?'UTC':''},Vr.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},Vr.dates=L('dates accessor is deprecated. Use date instead.',Pr),Vr.months=L('months accessor is deprecated. Use month instead',ie),Vr.years=L('years accessor is deprecated. Use year instead',Br),Vr.zone=L('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(e,t){return null==e?-this.utcOffset():('string'!=typeof e&&(e=-e),this.utcOffset(e,t),this)}),Vr.isDSTShifted=L('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),e=Ie(e),e._a){var t=e._isUTC?_(e._a):He(e._a);this._isDSTShifted=this.isValid()&&0<E(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Gr=T.prototype;Gr.calendar=function(e,t,r){var o=this._calendar[e]||this._calendar.sameElse;return D(o)?o.call(t,r):o},Gr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},Gr.invalidDate=function(){return this._invalidDate},Gr.ordinal=function(e){return this._ordinal.replace('%d',e)},Gr.preparse=yt,Gr.postformat=yt,Gr.relativeTime=function(e,t,r,o){var a=this._relativeTime[r];return D(a)?a(e,t,r,o):a.replace(/%d/i,e)},Gr.pastFuture=function(e,t){var r=this._relativeTime[0<e?'future':'past'];return D(r)?r(t):r.replace(/%s/i,t)},Gr.set=function(e){var t,r;for(r in e)t=e[r],D(t)?this[r]=t:this['_'+r]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},Gr.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hr).test(t)?'format':'standalone'][e.month()]:o(this._months)?this._months:this._months.standalone},Gr.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hr.test(t)?'format':'standalone'][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Gr.monthsParse=function(e,t,r){var o,a,n;if(this._monthsParseExact)return ae.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(a=_([2e3,o]),r&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp('^'+this.months(a,'').replace('.','')+'$','i'),this._shortMonthsParse[o]=new RegExp('^'+this.monthsShort(a,'').replace('.','')+'$','i')),r||this._monthsParse[o]||(n='^'+this.months(a,'')+'|^'+this.monthsShort(a,''),this._monthsParse[o]=new RegExp(n.replace('.',''),'i')),r&&'MMMM'===t&&this._longMonthsParse[o].test(e))return o;if(r&&'MMM'===t&&this._shortMonthsParse[o].test(e))return o;if(!r&&this._monthsParse[o].test(e))return o}},Gr.monthsRegex=function(e){return this._monthsParseExact?(c(this,'_monthsRegex')||se.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,'_monthsRegex')||(this._monthsRegex=nr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Gr.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,'_monthsRegex')||se.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,'_monthsShortRegex')||(this._monthsShortRegex=nr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Gr.week=function(e){return pe(e,this._week.dow,this._week.doy).week},Gr.firstDayOfYear=function(){return this._week.doy},Gr.firstDayOfWeek=function(){return this._week.dow},Gr.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?'format':'standalone'][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},Gr.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},Gr.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},Gr.weekdaysParse=function(e,t,r){var o,a,n;if(this._weekdaysParseExact)return be.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(a=_([2000,1]).day(o),r&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp('^'+this.weekdays(a,'').replace('.','.?')+'$','i'),this._shortWeekdaysParse[o]=new RegExp('^'+this.weekdaysShort(a,'').replace('.','.?')+'$','i'),this._minWeekdaysParse[o]=new RegExp('^'+this.weekdaysMin(a,'').replace('.','.?')+'$','i')),this._weekdaysParse[o]||(n='^'+this.weekdays(a,'')+'|^'+this.weekdaysShort(a,'')+'|^'+this.weekdaysMin(a,''),this._weekdaysParse[o]=new RegExp(n.replace('.',''),'i')),r&&'dddd'===t&&this._fullWeekdaysParse[o].test(e))return o;if(r&&'ddd'===t&&this._shortWeekdaysParse[o].test(e))return o;if(r&&'dd'===t&&this._minWeekdaysParse[o].test(e))return o;if(!r&&this._weekdaysParse[o].test(e))return o}},Gr.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,'_weekdaysRegex')||he.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,'_weekdaysRegex')||(this._weekdaysRegex=nr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Gr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,'_weekdaysRegex')||he.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=nr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Gr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,'_weekdaysRegex')||he.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=nr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Gr.isPM=function(e){return'p'===(e+'').toLowerCase().charAt(0)},Gr.meridiem=function(e,t,r){return 11<e?r?'pm':'PM':r?'am':'AM'},Fe('en',{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===q(e%100/10)?'th':1==t?'st':2==t?'nd':3==t?'rd':'th';return e+r}}),t.lang=L('moment.lang is deprecated. Use moment.locale instead.',Fe),t.langData=L('moment.langData is deprecated. Use moment.localeData instead.',qe);var Kr=k,Jr=wt('ms'),Xr=wt('s'),Zr=wt('m'),eo=wt('h'),to=wt('d'),ro=wt('w'),oo=wt('M'),ao=wt('y'),no=vt('milliseconds'),io=vt('seconds'),so=vt('minutes'),lo=vt('hours'),uo=vt('days'),co=vt('months'),_o=vt('years'),fo=B,po={ss:44,s:45,m:45,h:22,d:26,M:11},yo=k,go=Ve.prototype;return go.isValid=function(){return this._isValid},go.abs=function(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr(e.milliseconds),e.seconds=Kr(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this},go.add=function(e,t){return ht(this,e,t,1)},go.subtract=function(e,t){return ht(this,e,t,-1)},go.as=function(e){if(!this.isValid())return NaN;var t=this._milliseconds,r,o;if(e=Y(e),'month'===e||'year'===e)return r=this._days+t/864e5,o=this._months+kt(r),'month'===e?o:o/12;switch(r=this._days+B(Qt(this._months)),e){case'week':return r/7+t/6048e5;case'day':return r+t/864e5;case'hour':return 24*r+t/36e5;case'minute':return 1440*r+t/6e4;case'second':return 86400*r+t/1e3;case'millisecond':return w(864e5*r)+t;default:throw new Error('Unknown unit '+e);}},go.asMilliseconds=Jr,go.asSeconds=Xr,go.asMinutes=Zr,go.asHours=eo,go.asDays=to,go.asWeeks=ro,go.asMonths=oo,go.asYears=ao,go.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*q(this._months/12):NaN},go._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,o=this._data,a,n,i,s,l;return 0<=e&&0<=t&&0<=r||0>=e&&0>=t&&0>=r||(e+=864e5*Bt(Qt(r)+t),t=0,r=0),o.milliseconds=e%1e3,a=A(e/1e3),o.seconds=a%60,n=A(a/60),o.minutes=n%60,i=A(n/60),o.hours=i%24,t+=A(i/24),l=A(kt(t)