UNPKG

opds-web-client

Version:
3 lines 1.91 MB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OPDSWebClient=e():t.OPDSWebClient=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="dist/",r(r.s=289)}([function(t,e,r){(function(t){t.exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var r,n=[];for(r=0;r<t.length;++r)n.push(e(t[r],r));return n}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var r in e)l(e,r)&&(t[r]=e[r]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,r,n){return ge(t,e,r,n,!0).utc()}function h(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),t._pf}function f(t){if(null==t._isValid){var e=h(t),r=n.call(e.parsedDateParts,(function(t){return null!=t}));t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function p(t){var e=d(NaN);return null!=t?c(h(e),t):h(e).userInvalidated=!0,e}function m(t){return void 0===t}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),r=e.length>>>0,n=0;n<r;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var y=i.momentProperties=[];function g(t,e){var r,n,i;if(m(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),m(e._i)||(t._i=e._i),m(e._f)||(t._f=e._f),m(e._l)||(t._l=e._l),m(e._strict)||(t._strict=e._strict),m(e._tzm)||(t._tzm=e._tzm),m(e._isUTC)||(t._isUTC=e._isUTC),m(e._offset)||(t._offset=e._offset),m(e._pf)||(t._pf=h(e)),m(e._locale)||(t._locale=e._locale),y.length>0)for(r in y)m(i=e[n=y[r]])||(t[n]=i);return t}var b=!1;function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function A(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function _(t){var e=+t,r=0;return 0!==e&&isFinite(e)&&(r=w(e)),r}function M(t,e,r){var n,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(n=0;n<i;n++)(r&&t[n]!==e[n]||!r&&_(t[n])!==_(e[n]))&&a++;return a+o}function k(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var r=!0;return c((function(){return null!=i.deprecationHandler&&i.deprecationHandler(null,t),r&&(k(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),r=!1),e.apply(this,arguments)}),e)}var E,D={};function S(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),D[t]||(k(e),D[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t,e){var r,n=c({},t);for(r in e)l(e,r)&&(a(t[r])&&a(e[r])?(n[r]={},c(n[r],t[r]),c(n[r],e[r])):null!=e[r]?n[r]=e[r]:delete n[r]);for(r in t)l(t,r)&&!l(e,r)&&a(t[r])&&(n[r]=c({},n[r]));return n}function C(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,r=[];for(e in t)l(t,e)&&r.push(e);return r};var O={};function j(t,e){var r=t.toLowerCase();O[r]=O[r+"s"]=O[e]=t}function I(t){return"string"==typeof t?O[t]||O[t.toLowerCase()]:void 0}function N(t){var e,r,n={};for(r in t)l(t,r)&&(e=I(r))&&(n[e]=t[r]);return n}var P={};function R(t,e){P[t]=e}function F(t,e){return function(r){return null!=r?(B(this,t,r),i.updateOffset(this,e),this):Y(this,t)}}function Y(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function B(t,e,r){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](r)}function z(t,e,r){var n=""+Math.abs(t),i=e-n.length;return(t>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([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,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},V={};function W(t,e,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),t&&(V[t]=i),e&&(V[e[0]]=function(){return z(i.apply(this,arguments),e[1],e[2])}),r&&(V[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function Q(t,e){return t.isValid()?(e=G(e,t.localeData()),q[e]=q[e]||function(t){var e,r,n,i=t.match(H);for(e=0,r=i.length;e<r;e++)V[i[e]]?i[e]=V[i[e]]:i[e]=(n=i[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<r;n++)o+=i[n]instanceof Function?i[n].call(e,t):i[n];return o}}(e),q[e](t)):t.localeData().invalidDate()}function G(t,e){var r=5;function n(t){return e.longDateFormat(t)||t}for(U.lastIndex=0;r>=0&&U.test(t);)t=t.replace(U,n),U.lastIndex=0,r-=1;return t}var K=/\d/,Z=/\d\d/,J=/\d{3}/,X=/\d{4}/,$=/[+-]?\d{6}/,tt=/\d\d?/,et=/\d\d\d\d?/,rt=/\d\d\d\d\d\d?/,nt=/\d{1,3}/,it=/\d{1,4}/,ot=/[+-]?\d{1,6}/,at=/\d+/,st=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,lt=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,dt={};function ht(t,e,r){dt[t]=T(e)?e:function(t,n){return t&&r?r:e}}function ft(t,e){return l(dt,t)?dt[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,r,n,i){return e||r||n||i}))))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var mt,yt={};function gt(t,e){var r,n=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(n=function(t,r){r[e]=_(t)}),r=0;r<t.length;r++)yt[t[r]]=n}function bt(t,e){gt(t,(function(t,r,n,i){n._w=n._w||{},e(t,n._w,n,i)}))}function vt(t,e,r){null!=e&&l(yt,t)&&yt[t](e,r._a,r,t)}function At(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}mt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},W("M",["MM",2],"Mo",(function(){return this.month()+1})),W("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),W("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),j("month","M"),R("month",8),ht("M",tt),ht("MM",tt,Z),ht("MMM",(function(t,e){return e.monthsShortRegex(t)})),ht("MMMM",(function(t,e){return e.monthsRegex(t)})),gt(["M","MM"],(function(t,e){e[1]=_(t)-1})),gt(["MMM","MMMM"],(function(t,e,r,n){var i=r._locale.monthsParse(t,n,r._strict);null!=i?e[1]=i:h(r).invalidMonth=t}));var wt=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,_t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function kt(t,e,r){var n,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===e?-1!==(i=mt.call(this._shortMonthsParse,a))?i:null:-1!==(i=mt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=mt.call(this._shortMonthsParse,a))||-1!==(i=mt.call(this._longMonthsParse,a))?i:null:-1!==(i=mt.call(this._longMonthsParse,a))||-1!==(i=mt.call(this._shortMonthsParse,a))?i:null}function xt(t,e){var r;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=_(e);else if("number"!=typeof(e=t.localeData().monthsParse(e)))return t;return r=Math.min(t.date(),At(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,r),t}function Et(t){return null!=t?(xt(this,t),i.updateOffset(this,!0),this):Y(this,"Month")}var Dt=ct,St=ct;function Tt(){function t(t,e){return e.length-t.length}var e,r,n=[],i=[],o=[];for(e=0;e<12;e++)r=d([2e3,e]),n.push(this.monthsShort(r,"")),i.push(this.months(r,"")),o.push(this.months(r,"")),o.push(this.monthsShort(r,""));for(n.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)n[e]=pt(n[e]),i[e]=pt(i[e]);for(e=0;e<24;e++)o[e]=pt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Lt(t){return Ct(t)?366:365}function Ct(t){return t%4==0&&t%100!=0||t%400==0}W("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),W(0,["YY",2],0,(function(){return this.year()%100})),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),j("year","y"),R("year",1),ht("Y",st),ht("YY",tt,Z),ht("YYYY",it,X),ht("YYYYY",ot,$),ht("YYYYYY",ot,$),gt(["YYYYY","YYYYYY"],0),gt("YYYY",(function(t,e){e[0]=2===t.length?i.parseTwoDigitYear(t):_(t)})),gt("YY",(function(t,e){e[0]=i.parseTwoDigitYear(t)})),gt("Y",(function(t,e){e[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return _(t)+(_(t)>68?1900:2e3)};var Ot=F("FullYear",!0);function jt(t,e,r,n,i,o,a){var s=new Date(t,e,r,n,i,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function It(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Nt(t,e,r){var n=7+e-r;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Pt(t,e,r,n,i){var o,a,s=1+7*(e-1)+(7+r-n)%7+Nt(t,n,i);return s<=0?a=Lt(o=t-1)+s:s>Lt(t)?(o=t+1,a=s-Lt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Rt(t,e,r){var n,i,o=Nt(t.year(),e,r),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+Ft(i=t.year()-1,e,r):a>Ft(t.year(),e,r)?(n=a-Ft(t.year(),e,r),i=t.year()+1):(i=t.year(),n=a),{week:n,year:i}}function Ft(t,e,r){var n=Nt(t,e,r),i=Nt(t+1,e,r);return(Lt(t)-n+i)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),R("week",5),R("isoWeek",5),ht("w",tt),ht("ww",tt,Z),ht("W",tt),ht("WW",tt,Z),bt(["w","ww","W","WW"],(function(t,e,r,n){e[n.substr(0,1)]=_(t)})),W("d",0,"do","day"),W("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),W("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),W("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ht("d",tt),ht("e",tt),ht("E",tt),ht("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ht("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ht("dddd",(function(t,e){return e.weekdaysRegex(t)})),bt(["dd","ddd","dddd"],(function(t,e,r,n){var i=r._locale.weekdaysParse(t,n,r._strict);null!=i?e.d=i:h(r).invalidWeekday=t})),bt(["d","e","E"],(function(t,e,r,n){e[n]=_(t)}));var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ht(t,e,r){var n,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===e?-1!==(i=mt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=mt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=mt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=mt.call(this._weekdaysParse,a))||-1!==(i=mt.call(this._shortWeekdaysParse,a))||-1!==(i=mt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=mt.call(this._shortWeekdaysParse,a))||-1!==(i=mt.call(this._weekdaysParse,a))||-1!==(i=mt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=mt.call(this._minWeekdaysParse,a))||-1!==(i=mt.call(this._weekdaysParse,a))||-1!==(i=mt.call(this._shortWeekdaysParse,a))?i:null}var Ut=ct,qt=ct,Vt=ct;function Wt(){function t(t,e){return e.length-t.length}var e,r,n,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)r=d([2e3,1]).day(e),n=this.weekdaysMin(r,""),i=this.weekdaysShort(r,""),o=this.weekdays(r,""),a.push(n),s.push(i),u.push(o),l.push(n),l.push(i),l.push(o);for(a.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=pt(s[e]),u[e]=pt(u[e]),l[e]=pt(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Gt(t,e){W(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Kt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Qt),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+Qt.apply(this)+z(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Qt.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+z(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)})),Gt("a",!0),Gt("A",!1),j("hour","h"),R("hour",13),ht("a",Kt),ht("A",Kt),ht("H",tt),ht("h",tt),ht("HH",tt,Z),ht("hh",tt,Z),ht("hmm",et),ht("hmmss",rt),ht("Hmm",et),ht("Hmmss",rt),gt(["H","HH"],3),gt(["a","A"],(function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t})),gt(["h","hh"],(function(t,e,r){e[3]=_(t),h(r).bigHour=!0})),gt("hmm",(function(t,e,r){var n=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n)),h(r).bigHour=!0})),gt("hmmss",(function(t,e,r){var n=t.length-4,i=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n,2)),e[5]=_(t.substr(i)),h(r).bigHour=!0})),gt("Hmm",(function(t,e,r){var n=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n))})),gt("Hmmss",(function(t,e,r){var n=t.length-4,i=t.length-2;e[3]=_(t.substr(0,n)),e[4]=_(t.substr(n,2)),e[5]=_(t.substr(i))}));var Zt,Jt=F("Hours",!0),Xt={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",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few 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:_t,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Yt,weekdaysMin:zt,weekdaysShort:Bt,meridiemParse:/[ap]\.?m?\.?/i},$t={};function te(t){return t?t.toLowerCase().replace("_","-"):t}function ee(e){var n=null;if(!$t[e]&&void 0!==t&&t&&t.exports)try{n=Zt._abbr,r(374)("./"+e),re(n)}catch(t){}return $t[e]}function re(t,e){var r;return t&&(r=m(e)?ie(t):ne(t,e))&&(Zt=r),Zt._abbr}function ne(t,e){if(null!==e){var r=Xt;return e.abbr=t,null!=$t[t]?(S("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=$t[t]._config):null!=e.parentLocale&&(null!=$t[e.parentLocale]?r=$t[e.parentLocale]._config:S("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),$t[t]=new C(L(r,e)),re(t),$t[t]}return delete $t[t],null}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Zt;if(!o(t)){if(e=ee(t))return e;t=[t]}return function(t){for(var e,r,n,i,o=0;o<t.length;){for(e=(i=te(t[o]).split("-")).length,r=(r=te(t[o+1]))?r.split("-"):null;e>0;){if(n=ee(i.slice(0,e).join("-")))return n;if(r&&r.length>=e&&M(i,r,!0)>=e-1)break;e--}o++}return null}(t)}function oe(t){var e,r=t._a;return r&&-2===h(t).overflow&&(e=r[1]<0||r[1]>11?1:r[2]<1||r[2]>At(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,h(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),h(t)._overflowWeeks&&-1===e&&(e=7),h(t)._overflowWeekday&&-1===e&&(e=8),h(t).overflow=e),t}var ae=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,se=/^\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)?)?/,ue=/Z|[+-]\d\d(?::?\d\d)?/,le=[["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}/]],ce=[["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/]],de=/^\/?Date\((\-?\d+)/i;function he(t){var e,r,n,i,o,a,s=t._i,u=ae.exec(s)||se.exec(s);if(u){for(h(t).iso=!0,e=0,r=le.length;e<r;e++)if(le[e][1].exec(u[1])){i=le[e][0],n=!1!==le[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,r=ce.length;e<r;e++)if(ce[e][1].exec(u[3])){o=(u[2]||" ")+ce[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(u[4]){if(!ue.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),me(t)}else t._isValid=!1}function fe(t,e,r){return null!=t?t:null!=e?e:r}function pe(t){var e,r,n,o,a=[];if(!t._d){for(n=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,r,n,i,o,a,s,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,r=fe(e.GG,t._a[0],Rt(be(),1,4).year),n=fe(e.W,1),((i=fe(e.E,1))<1||i>7)&&(u=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,r=fe(e.gg,t._a[0],Rt(be(),o,a).year),n=fe(e.w,1),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o),n<1||n>Ft(r,o,a)?h(t)._overflowWeeks=!0:null!=u?h(t)._overflowWeekday=!0:(s=Pt(r,n,i,o,a),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),t._dayOfYear&&(o=fe(t._a[0],n[0]),t._dayOfYear>Lt(o)&&(h(t)._overflowDayOfYear=!0),r=It(o,0,t._dayOfYear),t._a[1]=r.getUTCMonth(),t._a[2]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?It:jt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24)}}function me(t){if(t._f!==i.ISO_8601){t._a=[],h(t).empty=!0;var e,r,n,o,a,s=""+t._i,u=s.length,l=0;for(n=G(t._f,t._locale).match(H)||[],e=0;e<n.length;e++)o=n[e],(r=(s.match(ft(o,t))||[])[0])&&((a=s.substr(0,s.indexOf(r))).length>0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),V[o]?(r?h(t).empty=!1:h(t).unusedTokens.push(o),vt(o,r,t)):t._strict&&!r&&h(t).unusedTokens.push(o);h(t).charsLeftOver=u-l,s.length>0&&h(t).unusedInput.push(s),t._a[3]<=12&&!0===h(t).bigHour&&t._a[3]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[3]=function(t,e,r){var n;return null==r?e:null!=t.meridiemHour?t.meridiemHour(e,r):null!=t.isPM?((n=t.isPM(r))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),pe(t),oe(t)}else he(t)}function ye(t){var e=t._i,r=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===r&&""===e?p({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new v(oe(e)):(o(r)?function(t){var e,r,n,i,o;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],me(e),f(e)&&(o+=h(e).charsLeftOver,o+=10*h(e).unusedTokens.length,h(e).score=o,(null==n||o<n)&&(n=o,r=e));c(t,r||e)}(t):s(e)?t._d=e:r?me(t):function(t){var e=t._i;void 0===e?t._d=new Date(i.now()):s(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=de.exec(t._i);null===e?(he(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t))):t._d=new Date(+e[1])}(t):o(e)?(t._a=u(e.slice(0),(function(t){return parseInt(t,10)})),pe(t)):"object"==typeof e?function(t){if(!t._d){var e=N(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),pe(t)}}(t):"number"==typeof e?t._d=new Date(e):i.createFromInputFallback(t)}(t),f(t)||(t._d=null),t))}function ge(t,e,r,n,i){var s,u={};return"boolean"==typeof r&&(n=r,r=void 0),(a(t)&&function(t){var e;for(e in t)return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=r,u._i=t,u._f=e,u._strict=n,(s=new v(oe(ye(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function be(t,e,r,n){return ge(t,e,r,n,!1)}i.createFromInputFallback=x("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){};var ve=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()})),Ae=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()}));function we(t,e){var r,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return be();for(r=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](r)||(r=e[n]);return r}function _e(t){var e=N(t),r=e.year||0,n=e.quarter||0,i=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*n+12*r,this._data={},this._locale=ie(),this._bubble()}function Me(t){return t instanceof _e}function ke(t,e){W(t,0,0,(function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+z(~~(t/60),2)+e+z(~~t%60,2)}))}ke("Z",":"),ke("ZZ",""),ht("Z",lt),ht("ZZ",lt),gt(["Z","ZZ"],(function(t,e,r){r._useUTC=!0,r._tzm=Ee(lt,t)}));var xe=/([\+\-]|\d\d)/gi;function Ee(t,e){var r=(e||"").match(t)||[],n=((r[r.length-1]||[])+"").match(xe)||["-",0,0],i=60*n[1]+_(n[2]);return"+"===n[0]?i:-i}function De(t,e){var r,n;return e._isUTC?(r=e.clone(),n=(A(t)||s(t)?t.valueOf():be(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),i.updateOffset(r,!1),r):be(t).local()}function Se(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Te(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Le=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Ce=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function Oe(t,e){var r,n,i,o,a,s,u=t,c=null;return Me(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(u={},e?u[e]=t:u.milliseconds=t):(c=Le.exec(t))?(r="-"===c[1]?-1:1,u={y:0,d:_(c[2])*r,h:_(c[3])*r,m:_(c[4])*r,s:_(c[5])*r,ms:_(c[6])*r}):(c=Ce.exec(t))?(r="-"===c[1]?-1:1,u={y:je(c[2],r),M:je(c[3],r),w:je(c[4],r),d:je(c[5],r),h:je(c[6],r),m:je(c[7],r),s:je(c[8],r)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=be(u.from),a=be(u.to),i=o.isValid()&&a.isValid()?(a=De(a,o),o.isBefore(a)?s=Ie(o,a):((s=Ie(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),n=new _e(u),Me(t)&&l(t,"_locale")&&(n._locale=t._locale),n}function je(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function Ie(t,e){var r={milliseconds:0,months:0};return r.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function Ne(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Pe(t,e){return function(r,n){var i;return null===n||isNaN(+n)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Re(this,Oe(r="string"==typeof r?+r:r,n),t),this}}function Re(t,e,r,n){var o=e._milliseconds,a=Ne(e._days),s=Ne(e._months);t.isValid()&&(n=null==n||n,o&&t._d.setTime(t._d.valueOf()+o*r),a&&B(t,"Date",Y(t,"Date")+a*r),s&&xt(t,Y(t,"Month")+s*r),n&&i.updateOffset(t,a||s))}Oe.fn=_e.prototype;var Fe=Pe(1,"add"),Ye=Pe(-1,"subtract");function Be(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ie(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ze=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function He(){return this._locale}function Ue(t,e){W(0,[t,t.length],0,e)}function qe(t,e,r,n,i){var o;return null==t?Rt(this,n,i).year:(e>(o=Ft(t,n,i))&&(e=o),Ve.call(this,t,e,r,n,i))}function Ve(t,e,r,n,i){var o=Pt(t,e,r,n,i),a=It(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ue("gggg","weekYear"),Ue("ggggg","weekYear"),Ue("GGGG","isoWeekYear"),Ue("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),ht("G",st),ht("g",st),ht("GG",tt,Z),ht("gg",tt,Z),ht("GGGG",it,X),ht("gggg",it,X),ht("GGGGG",ot,$),ht("ggggg",ot,$),bt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,r,n){e[n.substr(0,2)]=_(t)})),bt(["gg","GG"],(function(t,e,r,n){e[n]=i.parseTwoDigitYear(t)})),W("Q",0,"Qo","quarter"),j("quarter","Q"),R("quarter",7),ht("Q",K),gt("Q",(function(t,e){e[1]=3*(_(t)-1)})),W("D",["DD",2],"Do","date"),j("date","D"),R("date",9),ht("D",tt),ht("DD",tt,Z),ht("Do",(function(t,e){return t?e._ordinalParse:e._ordinalParseLenient})),gt(["D","DD"],2),gt("Do",(function(t,e){e[2]=_(t.match(tt)[0])}));var We=F("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),R("dayOfYear",4),ht("DDD",nt),ht("DDDD",J),gt(["DDD","DDDD"],(function(t,e,r){r._dayOfYear=_(t)})),W("m",["mm",2],0,"minute"),j("minute","m"),R("minute",14),ht("m",tt),ht("mm",tt,Z),gt(["m","mm"],4);var Qe=F("Minutes",!1);W("s",["ss",2],0,"second"),j("second","s"),R("second",15),ht("s",tt),ht("ss",tt,Z),gt(["s","ss"],5);var Ge,Ke=F("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),R("millisecond",16),ht("S",nt,K),ht("SS",nt,Z),ht("SSS",nt,J),Ge="SSSS";Ge.length<=9;Ge+="S")ht(Ge,at);function Ze(t,e){e[6]=_(1e3*("0."+t))}for(Ge="S";Ge.length<=9;Ge+="S")gt(Ge,Ze);var Je=F("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var Xe=v.prototype;Xe.add=Fe,Xe.calendar=function(t,e){var r=t||be(),n=De(r,this).startOf("day"),o=i.calendarFormat(this,n)||"sameElse",a=e&&(T(e[o])?e[o].call(this,r):e[o]);return this.format(a||this.localeData().calendar(o,this,be(r)))},Xe.clone=function(){return new v(this)},Xe.diff=function(t,e,r){var n,i,o,a,s,u,l,c,d,h;return this.isValid()&&(n=De(t,this)).isValid()?(i=6e4*(n.utcOffset()-this.utcOffset()),"year"===(e=I(e))||"month"===e||"quarter"===e?(s=this,d=12*((u=n).year()-s.year())+(u.month()-s.month()),h=s.clone().add(d,"months"),u-h<0?(l=s.clone().add(d-1,"months"),c=(u-h)/(h-l)):(l=s.clone().add(d+1,"months"),c=(u-h)/(l-h)),a=-(d+c)||0,"quarter"===e?a/=3:"year"===e&&(a/=12)):(o=this-n,a="second"===e?o/1e3:"minute"===e?o/6e4:"hour"===e?o/36e5:"day"===e?(o-i)/864e5:"week"===e?(o-i)/6048e5:o),r?a:w(a)):NaN},Xe.endOf=function(t){return void 0===(t=I(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Xe.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=Q(this,t);return this.localeData().postformat(e)},Xe.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||be(t).isValid())?Oe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Xe.fromNow=function(t){return this.from(be(),t)},Xe.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||be(t).isValid())?Oe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Xe.toNow=function(t){return this.to(be(),t)},Xe.get=function(t){return T(this[t=I(t)])?this[t]():this},Xe.invalidAt=function(){return h(this).overflow},Xe.isAfter=function(t,e){var r=A(t)?t:be(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=I(m(e)?"millisecond":e))?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf())},Xe.isBefore=function(t,e){var r=A(t)?t:be(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=I(m(e)?"millisecond":e))?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf())},Xe.isBetween=function(t,e,r,n){return("("===(n=n||"()")[0]?this.isAfter(t,r):!this.isBefore(t,r))&&(")"===n[1]?this.isBefore(e,r):!this.isAfter(e,r))},Xe.isSame=function(t,e){var r,n=A(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e||"millisecond"))?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf()))},Xe.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Xe.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Xe.isValid=function(){return f(this)},Xe.lang=ze,Xe.locale=Be,Xe.localeData=He,Xe.max=Ae,Xe.min=ve,Xe.parsingFlags=function(){return c({},h(this))},Xe.set=function(t,e){if("object"==typeof t)for(var r=function(t){var e=[];for(var r in t)e.push({unit:r,priority:P[r]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=N(t)),n=0;n<r.length;n++)this[r[n].unit](t[r[n].unit]);else if(T(this[t=I(t)]))return this[t](e);return this},Xe.startOf=function(t){switch(t=I(t)){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"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Xe.subtract=Ye,Xe.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Xe.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Xe.toDate=function(){return new Date(this.valueOf())},Xe.toISOString=function(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?T(Date.prototype.toISOString)?this.toDate().toISOString():Q(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Q(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},Xe.toJSON=function(){return this.isValid()?this.toISOString():null},Xe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Xe.unix=function(){return Math.floor(this.valueOf()/1e3)},Xe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Xe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Xe.year=Ot,Xe.isLeapYear=function(){return Ct(this.year())},Xe.weekYear=function(t){return qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Xe.isoWeekYear=function(t){return qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Xe.quarter=Xe.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Xe.month=Et,Xe.daysInMonth=function(){return At(this.year(),this.month())},Xe.week=Xe.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Xe.isoWeek=Xe.isoWeeks=function(t){var e=Rt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Xe.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},Xe.isoWeeksInYear=function(){return Ft(this.year(),1,4)},Xe.date=We,Xe.day=Xe.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Xe.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Xe.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Xe.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Xe.hour=Xe.hours=Jt,Xe.minute=Xe.minutes=Qe,Xe.second=Xe.seconds=Ke,Xe.millisecond=Xe.milliseconds=Je,Xe.utcOffset=function(t,e){var r,n=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=Ee(lt,t):Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(r=Se(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==t&&(!e||this._changeInProgress?Re(this,Oe(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?n:Se(this):null!=t?this:NaN},Xe.utc=function(t){return this.utcOffset(0,t)},Xe.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Se(this),"m")),this},Xe.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ee(ut,this._i)),this},Xe.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?be(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Xe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Xe.isLocal=function(){return!!this.isValid()&&!this._isUTC},Xe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Xe.isUtc=Te,Xe.isUTC=Te,Xe.zoneAbbr=function(){return this._isUTC?"UTC":""},Xe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Xe.dates=x("dates accessor is deprecated. Use date instead.",We),Xe.months=x("months accessor is deprecated. Use month instead",Et),Xe.years=x("years accessor is deprecated. Use year instead",Ot),Xe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Xe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=ye(t))._a){var e=t._isUTC?d(t._a):be(t._a);this._isDSTShifted=this.isValid()&&M(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var $e=Xe;function tr(t){return t}var er=C.prototype;function rr(t,e,r,n){var i=ie(),o=d().set(n,e);return i[r](o,t)}function nr(t,e,r){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return rr(t,e,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=rr(t,n,r,"month");return i}function ir(t,e,r,n){"boolean"==typeof t?("number"==typeof e&&(r=e,e=void 0),e=e||""):(r=e=t,t=!1,"number"==typeof e&&(r=e,e=void 0),e=e||"");var i,o=ie(),a=t?o._week.dow:0;if(null!=r)return rr(e,(r+a)%7,n,"day");var s=[];for(i=0;i<7;i++)s[i]=rr(e,(i+a)%7,n,"day");return s}er.calendar=function(t,e,r){var n=this._calendar[t]||this._calendar.sameElse;return T(n)?n.call(e,r):n},er.longDateFormat=function(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},er.invalidDate=function(){return this._invalidDate},er.ordinal=function(t){return this._ordinal.replace("%d",t)},er.preparse=tr,er.postformat=tr,er.relativeTime=function(t,e,r,n){var i=this._relativeTime[r];return T(i)?i(t,e,r,n):i.replace(/%d/i,t)},er.pastFuture=function(t,e){var r=this._relativeTime[t>0?"future":"past"];return T(r)?r(e):r.replace(/%s/i,e)},er.set=function(t){var e,r;for(r in t)T(e=t[r])?this[r]=e:this["_"+r]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},er.months=function(t,e){return o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||wt).test(e)?"format":"standalone"][t.month()]},er.monthsShort=function(t,e){return o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[wt.test(e)?"format":"standalone"][t.month()]},er.monthsParse=function(t,e,r){var n,i,o;if(this._monthsParseExact)return kt.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=d([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(r&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!r&&this._monthsParse[n].test(t))return n}},er.monthsRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Tt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=St),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},er.monthsShortRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Tt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},er.week=function(t){return Rt(t,this._week.dow,this._week.doy).week},er.firstDayOfYear=function(){return this._week.doy},er.firstDayOfWeek=function(){return this._week.dow},er.weekdays=function(t,e){return o(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]},er.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},er.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},er.weekdaysParse=function(t,e,r){var n,i,o;if(this._weekdaysParseExact)return Ht.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=d([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(r&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(r&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}},er.weekdaysRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},er.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},er.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},er.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},er.meridiem=function(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"},re("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=x("moment.lang is deprecated. Use moment.locale instead.",re),i.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ie);var or=Math.abs;function ar(t,e,r,n){var i=Oe(e,r);return t._milliseconds+=n*i._milliseconds,t._days+=n*i._days,t._months+=n*i._months,t._bubble()}function sr(t){return t<0?Math.floor(t):Math.ceil(t)}function ur(t){return 4800*t/146097}function lr(t){return 146097*t/4800}function cr(t){return function(){return this.as(t)}}var dr=cr("ms"),hr=cr("s"),fr=cr("m"),pr=cr("h"),mr=cr("d"),yr=cr("w"),gr=cr("M"),br=cr("y");function vr(t){return function(){return this._data[t]}}var Ar=vr("milliseconds"),wr=vr("seconds"),_r=vr("minutes"),Mr=vr("hours"),kr=vr("days"),xr=vr("months"),Er=vr("years"),Dr=Math.round,Sr={s:45,m:45,h:22,d:26,M:11};function Tr(t,e,r,n,i){return i.relativeTime(e||1,!!r,t,n)}var Lr=Math.abs;function Cr(){var t,e,r=Lr(this._milliseconds)/1e3,n=Lr(this._days),i=Lr(this._months);t=w(r/60),e=w(t/60),r%=60,t%=60;var o=w(i/12),a=i%=12,s=n,u=e,l=t,c=r,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(o?o+"Y":"")+(a?a+"M":"")+(s?s+"D":"")+(u||l||c?"T":"")+(u?u+"H":"")+(l?l+"M":"")+(c?c+"S":""):"P0D"}var Or=_e.prototype;return Or.abs=function(){var t=this._data;return this._milliseconds=or(this._milliseconds),this._days=or(this._days),this._months=or(this._months),t.milliseconds=or(t.milliseconds),t.seconds=or(t.seconds),t.minutes=or(t.minutes),t.hours=or(t.hours),t.months=or(t.months),t.years=or(t.years),this},Or.add=function(t,e){return ar(this,t,e,1)},Or.subtract=function(t,e){return ar(this,t,e,-1)},Or.as=function(t){var e,r,n=this._milliseconds;if("month"===(t=I(t))||"year"===t)return e=this._days+n/864e5,r=this._months+ur(e),"month"===t?r:r/12;switch(e=this._days+Math.round(lr(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Or.asMilliseconds=dr,Or.asSeconds=hr,Or.asMinutes=fr,Or.asHours=pr,Or.asDays=mr,Or.asWeeks=yr,Or.asMonths=gr,Or.asYears=br,Or.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)},Or._bubble=function(){var t,e,r,n,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*sr(lr(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=w(o/1e3),u.seconds=t%60,e=w(t/60),u.minutes=e%60,r=w(e/60),u.hours=r%24,a+=w(r/24),i=w(ur(a)),s+=i,a-=sr(lr(i)),n=w(s/12),s%=12,u.days=a,u.months=s,u.years=n,this},Or.get=function(t){return this[(t=I(t))+"s"]()},Or.milliseconds=Ar,Or.seconds=wr,Or.minutes=_r,Or.hours=Mr,Or.days=kr,Or.weeks=function(){return w(this.days()/7)},Or.months=xr,Or.years=Er,Or.humanize=function(t){var e=this.localeData(),r=function(t,e,r){var n=Oe(t).abs(),i=Dr(n.as("s")),o=Dr(n.as("m")),a=Dr(n.as("h")),s=Dr(n.as("d")),u=Dr(n.as("M")),l=Dr(n.as("y")),c=i<Sr.s&&["s",i]||o<=1&&["m"]||o<Sr.m&&["mm",o]||a<=1&&["h"]||a<Sr.h&&["hh",a]||s<=1&&["d"]||s<Sr.d&&["dd",s]||u<=1&&["M"]||u<Sr.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=r,Tr.apply(null,c)}(this,!t,e);return t&&(r=e.pastFuture(+this,r)),e.postformat(r)},Or.toISOString=Cr,Or.toString=Cr,Or.toJSON=Cr,Or.locale=Be,Or.localeData=He,Or.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cr),Or.lang=ze,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ht("x",st),ht("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",(function(t,e,r){r._d=new Date(1e3*parseFloat(t,10))})),gt("x",(function(t,e,r){r._d=new Date(_(t))})),i.version="2.14.1",e=be,i.fn=$e,i.min=function(){var t=[].slice.call(arguments,0);return we("isBefore",t)},i.max=function(){var t=[].slice.call(arguments,0);return we("isAfter",t)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=d,i.unix=function(t){return be(1e3*t)},i.months=function(t,e){return nr(t,e,"months")},i.isDate=s,i.locale=re,i.invalid=p,i.duration=Oe,i.isMoment=A,i.weekdays=function(t,e,r){return ir(t,e,r,"weekdays")},i.parseZone=function(){return be.apply(null,arguments).parseZone()},i.localeData=ie,i.isDuration=Me,i.monthsShort=function(t,e){return nr(t,e,"monthsShort")},i.weekdaysMin=function(t,e,r){return ir(t,e,r,"weekdaysMin")},i.defineLocale=ne,i.updateLocale=function(t,e){if(null!=e){var r,n=Xt;null!=$t[t]&&(n=$t[t]._config),e=L(n,e),(r=new C(e)).parentLocale=$t[t],$t[t]=r,re(t)}else null!=$t[t]&&(null!=$t[t].parentLocale?$t[t]=$t[t].parentLocale:null!=$t[t]&&delete $t[t]);return $t[t]},i.locales=function(){return E($t)},i.weekdaysShort=function(t,e,r){return ir(t,e,r,"weekdaysShort")},i.normalizeUnits=I,i.relativeTimeRounding=function(t){return void 0===t?Dr:"function"==typeof t&&(Dr=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Sr[t]&&(void 0===e?Sr[t]:(Sr[t]=e,!0))},i.calendarFormat=function(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},i.prototype=$e,i}()}).call(this,r(8)(t))},function(t,e,r){t.exports=r(295)()},function(t,e,r){"use strict";t.exports=r(291)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ var n=r(10),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";t.exports=function(t,e,r,n,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,o,a,s],c=0;(u=new Error(e.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,Notatio