import{r as t,e as i,h as n,H as e,g as r}from"./p-8dfd188c.js";import{i as s,f as a,e as o}from"./p-63696788.js";import{p as u}from"./p-65134490.js";import{s as h,h as d}from"./p-c50c697b.js";import{c,a as l,b as f}from"./p-eab67c09.js";const m=(t,i)=>{if(null==t)return;let n;return"string"==typeof t&&(t=t.replace(/\[|\]/g,"").split(",")),Array.isArray(t)&&(n=t.map((t=>t.toString().trim()))),void 0!==n&&0!==n.length||console.warn(`Invalid "${i}Names". Must be an array of strings, or a comma separated string.`),n},v=["DD.MM.YYYY","D.M.YYYY","DD.MM.YY","D.M.YY","YYYY.MM.DD","YYYY.M.D","YY.MM.DD","YY.M.D","DD/MM/YYYY","D/M/YYYY","DD/MM/YY","D/M/YY","YYYY/MM/DD","YYYY/M/D","YY/MM/DD","YY/M/D","DD MM YYYY","D M YYYY","DD MM YY","D M YY","YYYY MM DD","YYYY M D","YY MM DD","YY M D"],p=["HH:mm","HH:mm:ss","h:mm a","h:mm:ss a"];var Y=c((function(t){t.exports=function(){var i,n;function e(){return i.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function o(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,i){var n,e=[];for(n=0;n<t.length;++n)e.push(i(t[n],n));return e}function d(t,i){return Object.prototype.hasOwnProperty.call(t,i)}function c(t,i){for(var n in i)d(i,n)&&(t[n]=i[n]);return d(i,"toString")&&(t.toString=i.toString),d(i,"valueOf")&&(t.valueOf=i.valueOf),t}function l(t,i,n,e){return wi(t,i,n,e,!0).utc()}function m(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,rfc2822:!1,weekdayMismatch:!1}),t._pf}function v(t){if(null==t._isValid){var i=m(t),e=n.call(i.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);if(t._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function p(t){var i=l(NaN);return null!=t?c(m(i),t):m(i).userInvalidated=!0,i}n=Array.prototype.some?Array.prototype.some:function(t){for(var i=Object(this),n=i.length>>>0,e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var Y=e.momentProperties=[];function g(t,i){var n,e,r;if(a(i._isAMomentObject)||(t._isAMomentObject=i._isAMomentObject),a(i._i)||(t._i=i._i),a(i._f)||(t._f=i._f),a(i._l)||(t._l=i._l),a(i._strict)||(t._strict=i._strict),a(i._tzm)||(t._tzm=i._tzm),a(i._isUTC)||(t._isUTC=i._isUTC),a(i._offset)||(t._offset=i._offset),a(i._pf)||(t._pf=m(i)),a(i._locale)||(t._locale=i._locale),Y.length>0)for(n=0;n<Y.length;n++)a(r=i[e=Y[n]])||(t[e]=r);return t}var M=!1;function b(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,e.updateOffset(this),M=!1)}function y(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function D(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var i=+t,n=0;return 0!==i&&isFinite(i)&&(n=D(i)),n}function w(t,i,n){var e,r=Math.min(t.length,i.length),s=Math.abs(t.length-i.length),a=0;for(e=0;e<r;e++)(n&&t[e]!==i[e]||!n&&k(t[e])!==k(i[e]))&&a++;return a+s}function S(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,i){var n=!0;return c((function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){for(var r,s=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var o in r+="\n["+a+"] ",arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];s.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)}),i)}var H,N={};function T(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),N[t]||(S(i),N[t]=!0)}function _(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function G(t,i){var n,e=c({},t);for(n in i)d(i,n)&&(s(t[n])&&s(i[n])?(e[n]={},c(e[n],t[n]),c(e[n],i[n])):null!=i[n]?e[n]=i[n]:delete e[n]);for(n in t)d(t,n)&&!d(i,n)&&s(t[n])&&(e[n]=c({},e[n]));return e}function W(t){null!=t&&this.set(t)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,H=Object.keys?Object.keys:function(t){var i,n=[];for(i in t)d(t,i)&&n.push(i);return n};var E={};function F(t,i){var n=t.toLowerCase();E[n]=E[n+"s"]=E[i]=t}function O(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function j(t){var i,n,e={};for(n in t)d(t,n)&&(i=O(n))&&(e[i]=t[n]);return e}var L={};function A(t,i){L[t]=i}function C(t,i,n){var e=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i-e.length)).toString().substr(1)+e}var z=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z={},R={};function P(t,i,n,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(R[t]=r),i&&(R[i[0]]=function(){return C(r.apply(this,arguments),i[1],i[2])}),n&&(R[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,i){return t.isValid()?(i=$(i,t.localeData()),Z[i]=Z[i]||function(t){var i,n,e,r=t.match(z);for(i=0,n=r.length;i<n;i++)r[i]=R[r[i]]?R[r[i]]:(e=r[i]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(i){var e,s="";for(e=0;e<n;e++)s+=_(r[e])?r[e].call(i,t):r[e];return s}}(i),Z[i](t)):t.localeData().invalidDate()}function $(t,i){var n=5;function e(t){return i.longDateFormat(t)||t}for(I.lastIndex=0;n>=0&&I.test(t);)t=t.replace(I,e),I.lastIndex=0,n-=1;return t}var q=/\d/,J=/\d\d/,Q=/\d{3}/,B=/\d{4}/,X=/[+-]?\d{6}/,V=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,it=/\d{1,3}/,nt=/\d{1,4}/,et=/[+-]?\d{1,6}/,rt=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ht={};function dt(t,i,n){ht[t]=_(i)?i:function(t){return t&&n?n:i}}function ct(t,i){return d(ht,t)?ht[t](i._strict,i._locale):new RegExp(lt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,i,n,e,r){return i||n||e||r}))))}function lt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,i){var n,e=i;for("string"==typeof t&&(t=[t]),o(i)&&(e=function(t,n){n[i]=k(t)}),n=0;n<t.length;n++)ft[t[n]]=e}function vt(t,i){mt(t,(function(t,n,e,r){e._w=e._w||{},i(t,e._w,e,r)}))}function pt(t,i,n){null!=i&&d(ft,t)&&ft[t](i,n._a,n,t)}function Yt(t){return gt(t)?366:365}function gt(t){return t%4==0&&t%100!=0||t%400==0}P("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),P(0,["YY",2],0,(function(){return this.year()%100})),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),F("year","y"),A("year",1),dt("Y",st),dt("YY",V,J),dt("YYYY",nt,B),dt("YYYYY",et,X),dt("YYYYYY",et,X),mt(["YYYYY","YYYYYY"],0),mt("YYYY",(function(t,i){i[0]=2===t.length?e.parseTwoDigitYear(t):k(t)})),mt("YY",(function(t,i){i[0]=e.parseTwoDigitYear(t)})),mt("Y",(function(t,i){i[0]=parseInt(t,10)})),e.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var Mt,bt=yt("FullYear",!0);function yt(t,i){return function(n){return null!=n?(kt(this,t,n),e.updateOffset(this,i),this):Dt(this,t)}}function Dt(t,i){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+i]():NaN}function kt(t,i,n){t.isValid()&&!isNaN(n)&&("FullYear"===i&&gt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+i](n,t.month(),wt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+i](n))}function wt(t,i){if(isNaN(t)||isNaN(i))return NaN;var n,e=(i%(n=12)+n)%n;return t+=(i-e)/12,1===e?gt(t)?29:28:31-e%7%2}Mt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var i;for(i=0;i<this.length;++i)if(this[i]===t)return i;return-1},P("M",["MM",2],"Mo",(function(){return this.month()+1})),P("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),P("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),F("month","M"),A("month",8),dt("M",V),dt("MM",V,J),dt("MMM",(function(t,i){return i.monthsShortRegex(t)})),dt("MMMM",(function(t,i){return i.monthsRegex(t)})),mt(["M","MM"],(function(t,i){i[1]=k(t)-1})),mt(["MMM","MMMM"],(function(t,i,n,e){var r=n._locale.monthsParse(t,e,n._strict);null!=r?i[1]=r:m(n).invalidMonth=t}));var St=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ht="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Nt(t,i,n){var e,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=l([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===i?-1!==(r=Mt.call(this._shortMonthsParse,a))?r:null:-1!==(r=Mt.call(this._longMonthsParse,a))?r:null:"MMM"===i?-1!==(r=Mt.call(this._shortMonthsParse,a))||-1!==(r=Mt.call(this._longMonthsParse,a))?r:null:-1!==(r=Mt.call(this._longMonthsParse,a))||-1!==(r=Mt.call(this._shortMonthsParse,a))?r:null}function Tt(t,i){var n;if(!t.isValid())return t;if("string"==typeof i)if(/^\d+$/.test(i))i=k(i);else if(!o(i=t.localeData().monthsParse(i)))return t;return n=Math.min(t.date(),wt(t.year(),i)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](i,n),t}function _t(t){return null!=t?(Tt(this,t),e.updateOffset(this,!0),this):Dt(this,"Month")}var Gt=ut;var Wt=ut;function Et(){function t(t,i){return i.length-t.length}var i,n,e=[],r=[],s=[];for(i=0;i<12;i++)n=l([2e3,i]),e.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(e.sort(t),r.sort(t),s.sort(t),i=0;i<12;i++)e[i]=lt(e[i]),r[i]=lt(r[i]);for(i=0;i<24;i++)s[i]=lt(s[i]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ft(t,i,n,e,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,i,n,e,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,i,n,e,r,s,a),o}function Ot(t){var i;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,i=new Date(Date.UTC.apply(null,n)),isFinite(i.getUTCFullYear())&&i.setUTCFullYear(t)}else i=new Date(Date.UTC.apply(null,arguments));return i}function jt(t,i,n){var e=7+i-n;return-(7+Ot(t,0,e).getUTCDay()-i)%7+e-1}function Lt(t,i,n,e,r){var s,a,o=1+7*(i-1)+(7+n-e)%7+jt(t,e,r);return o<=0?a=Yt(s=t-1)+o:o>Yt(t)?(s=t+1,a=o-Yt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function At(t,i,n){var e,r,s=jt(t.year(),i,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?e=a+Ct(r=t.year()-1,i,n):a>Ct(t.year(),i,n)?(e=a-Ct(t.year(),i,n),r=t.year()+1):(r=t.year(),e=a),{week:e,year:r}}function Ct(t,i,n){var e=jt(t,i,n),r=jt(t+1,i,n);return(Yt(t)-e+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),A("week",5),A("isoWeek",5),dt("w",V),dt("ww",V,J),dt("W",V),dt("WW",V,J),vt(["w","ww","W","WW"],(function(t,i,n,e){i[e.substr(0,1)]=k(t)}));function zt(t,i){return t.slice(i,7).concat(t.slice(0,i))}P("d",0,"do","day"),P("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),P("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),P("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),dt("d",V),dt("e",V),dt("E",V),dt("dd",(function(t,i){return i.weekdaysMinRegex(t)})),dt("ddd",(function(t,i){return i.weekdaysShortRegex(t)})),dt("dddd",(function(t,i){return i.weekdaysRegex(t)})),vt(["dd","ddd","dddd"],(function(t,i,n,e){var r=n._locale.weekdaysParse(t,e,n._strict);null!=r?i.d=r:m(n).invalidWeekday=t})),vt(["d","e","E"],(function(t,i,n,e){i[e]=k(t)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Pt(t,i,n){var e,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=l([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===i?-1!==(r=Mt.call(this._weekdaysParse,a))?r:null:"ddd"===i?-1!==(r=Mt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Mt.call(this._minWeekdaysParse,a))?r:null:"dddd"===i?-1!==(r=Mt.call(this._weekdaysParse,a))||-1!==(r=Mt.call(this._shortWeekdaysParse,a))||-1!==(r=Mt.call(this._minWeekdaysParse,a))?r:null:"ddd"===i?-1!==(r=Mt.call(this._shortWeekdaysParse,a))||-1!==(r=Mt.call(this._weekdaysParse,a))||-1!==(r=Mt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Mt.call(this._minWeekdaysParse,a))||-1!==(r=Mt.call(this._weekdaysParse,a))||-1!==(r=Mt.call(this._shortWeekdaysParse,a))?r:null}var Ut=ut;var $t=ut;var qt=ut;function Jt(){function t(t,i){return i.length-t.length}var i,n,e,r,s,a=[],o=[],u=[],h=[];for(i=0;i<7;i++)n=l([2e3,1]).day(i),e=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(e),o.push(r),u.push(s),h.push(e),h.push(r),h.push(s);for(a.sort(t),o.sort(t),u.sort(t),h.sort(t),i=0;i<7;i++)o[i]=lt(o[i]),u[i]=lt(u[i]),h[i]=lt(h[i]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Bt(t,i){P(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),i)}))}function Xt(t,i){return i._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,Qt),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+Qt.apply(this)+C(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+Qt.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Bt("a",!0),Bt("A",!1),F("hour","h"),A("hour",13),dt("a",Xt),dt("A",Xt),dt("H",V),dt("h",V),dt("k",V),dt("HH",V,J),dt("hh",V,J),dt("kk",V,J),dt("hmm",K),dt("hmmss",tt),dt("Hmm",K),dt("Hmmss",tt),mt(["H","HH"],3),mt(["k","kk"],(function(t,i){var n=k(t);i[3]=24===n?0:n})),mt(["a","A"],(function(t,i,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),mt(["h","hh"],(function(t,i,n){i[3]=k(t),m(n).bigHour=!0})),mt("hmm",(function(t,i,n){var e=t.length-2;i[3]=k(t.substr(0,e)),i[4]=k(t.substr(e)),m(n).bigHour=!0})),mt("hmmss",(function(t,i,n){var e=t.length-4,r=t.length-2;i[3]=k(t.substr(0,e)),i[4]=k(t.substr(e,2)),i[5]=k(t.substr(r)),m(n).bigHour=!0})),mt("Hmm",(function(t,i){var n=t.length-2;i[3]=k(t.substr(0,n)),i[4]=k(t.substr(n))})),mt("Hmmss",(function(t,i){var n=t.length-4,e=t.length-2;i[3]=k(t.substr(0,n)),i[4]=k(t.substr(n,2)),i[5]=k(t.substr(e))}));var Vt,Kt=yt("Hours",!0),ti={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Ht,week:{dow:0,doy:6},weekdays:It,weekdaysMin:Rt,weekdaysShort:Zt,meridiemParse:/[ap]\.?m?\.?/i},ii={},ni={};function ei(t){return t?t.toLowerCase().replace("_","-"):t}function ri(i){var n=null;if(!ii[i]&&t&&t.exports)try{n=Vt._abbr,f("./locale/"+i),si(n)}catch(t){}return ii[i]}function si(t,i){var n;return t&&((n=a(i)?oi(t):ai(t,i))?Vt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Vt._abbr}function ai(t,i){if(null!==i){var n,e=ti;if(i.abbr=t,null!=ii[t])T("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."),e=ii[t]._config;else if(null!=i.parentLocale)if(null!=ii[i.parentLocale])e=ii[i.parentLocale]._config;else{if(null==(n=ri(i.parentLocale)))return ni[i.parentLocale]||(ni[i.parentLocale]=[]),ni[i.parentLocale].push({name:t,config:i}),null;e=n._config}return ii[t]=new W(G(e,i)),ni[t]&&ni[t].forEach((function(t){ai(t.name,t.config)})),si(t),ii[t]}return delete ii[t],null}function oi(t){var i;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Vt;if(!r(t)){if(i=ri(t))return i;t=[t]}return function(t){for(var i,n,e,r,s=0;s<t.length;){for(i=(r=ei(t[s]).split("-")).length,n=(n=ei(t[s+1]))?n.split("-"):null;i>0;){if(e=ri(r.slice(0,i).join("-")))return e;if(n&&n.length>=i&&w(r,n,!0)>=i-1)break;i--}s++}return Vt}(t)}function ui(t){var i,n=t._a;return n&&-2===m(t).overflow&&(i=n[1]<0||n[1]>11?1:n[2]<1||n[2]>wt(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(t)._overflowDayOfYear&&(i<0||i>2)&&(i=2),m(t)._overflowWeeks&&-1===i&&(i=7),m(t)._overflowWeekday&&-1===i&&(i=8),m(t).overflow=i),t}function hi(t,i,n){return null!=t?t:null!=i?i:n}function di(t){var i,n,r,s,a,o=[];if(!t._d){for(r=function(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var i,n,e,r,s,a,o,u;if(null!=(i=t._w).GG||null!=i.W||null!=i.E)s=1,a=4,n=hi(i.GG,t._a[0],At(Si(),1,4).year),e=hi(i.W,1),((r=hi(i.E,1))<1||r>7)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var h=At(Si(),s,a);n=hi(i.gg,t._a[0],h.year),e=hi(i.w,h.week),null!=i.d?((r=i.d)<0||r>6)&&(u=!0):null!=i.e?(r=i.e+s,(i.e<0||i.e>6)&&(u=!0)):r=s}e<1||e>Ct(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=Lt(n,e,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(a=hi(t._a[0],r[0]),(t._dayOfYear>Yt(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Ot(a,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=o[i]=r[i];for(;i<7;i++)t._a[i]=o[i]=null==t._a[i]?2===i?1:0:t._a[i];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?Ot:Ft).apply(null,o),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(m(t).weekdayMismatch=!0)}}var ci=/^\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)?)?$/,li=/^\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)?)?$/,fi=/Z|[+-]\d\d(?::?\d\d)?/,mi=[["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}/]],vi=[["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/]],pi=/^\/?Date\((\-?\d+)/i;function Yi(t){var i,n,e,r,s,a,o=t._i,u=ci.exec(o)||li.exec(o);if(u){for(m(t).iso=!0,i=0,n=mi.length;i<n;i++)if(mi[i][1].exec(u[1])){r=mi[i][0],e=!1!==mi[i][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(i=0,n=vi.length;i<n;i++)if(vi[i][1].exec(u[3])){s=(u[2]||" ")+vi[i][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(u[4]){if(!fi.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Di(t)}else t._isValid=!1}var gi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Mi(t){var i=parseInt(t,10);return i<=49?2e3+i:i<=999?1900+i:i}var bi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yi(t){var i,n,e,r,s,a,o=gi.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(o){var u=(i=o[3],n=o[2],e=o[5],r=o[6],s=o[7],a=[Mi(o[4]),Ht.indexOf(i),parseInt(n,10),parseInt(e,10),parseInt(r,10)],s&&a.push(parseInt(s,10)),a);if(!function(t,i,n){return!t||Zt.indexOf(t)===new Date(i[0],i[1],i[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(o[1],u,t))return;t._a=u,t._tzm=function(t,i,n){if(t)return bi[t];if(i)return 0;var e=parseInt(n,10),r=e%100;return(e-r)/100*60+r}(o[8],o[9],o[10]),t._d=Ot.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Di(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],m(t).empty=!0;var i,n,r,s,a,o=""+t._i,u=o.length,h=0;for(r=$(t._f,t._locale).match(z)||[],i=0;i<r.length;i++)(n=(o.match(ct(s=r[i],t))||[])[0])&&((a=o.substr(0,o.indexOf(n))).length>0&&m(t).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),h+=n.length),R[s]?(n?m(t).empty=!1:m(t).unusedTokens.push(s),pt(s,n,t)):t._strict&&!n&&m(t).unusedTokens.push(s);m(t).charsLeftOver=u-h,o.length>0&&m(t).unusedInput.push(o),t._a[3]<=12&&!0===m(t).bigHour&&t._a[3]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[3]=function(t,i,n){var e;return null==n?i:null!=t.meridiemHour?t.meridiemHour(i,n):null!=t.isPM?((e=t.isPM(n))&&i<12&&(i+=12),e||12!==i||(i=0),i):i}(t._locale,t._a[3],t._meridiem),di(t),ui(t)}else yi(t);else Yi(t)}function ki(t){var i=t._i,n=t._f;return t._locale=t._locale||oi(t._l),null===i||void 0===n&&""===i?p({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),y(i)?new b(ui(i)):(u(i)?t._d=i:r(n)?function(t){var i,n,e,r,s;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)s=0,i=g({},t),null!=t._useUTC&&(i._useUTC=t._useUTC),i._f=t._f[r],Di(i),v(i)&&(s+=m(i).charsLeftOver,s+=10*m(i).unusedTokens.length,m(i).score=s,(null==e||s<e)&&(e=s,n=i));c(t,n||i)}(t):n?Di(t):function(t){var i=t._i;a(i)?t._d=new Date(e.now()):u(i)?t._d=new Date(i.valueOf()):"string"==typeof i?function(t){var i=pi.exec(t._i);null===i?(Yi(t),!1===t._isValid&&(delete t._isValid,yi(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))):t._d=new Date(+i[1])}(t):r(i)?(t._a=h(i.slice(0),(function(t){return parseInt(t,10)})),di(t)):s(i)?function(t){if(!t._d){var i=j(t._i);t._a=h([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],(function(t){return t&&parseInt(t,10)})),di(t)}}(t):o(i)?t._d=new Date(i):e.createFromInputFallback(t)}(t),v(t)||(t._d=null),t))}function wi(t,i,n,e,a){var o,u={};return!0!==n&&!1!==n||(e=n,n=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var i;for(i in t)if(t.hasOwnProperty(i))return!1;return!0}(t)||r(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=t,u._f=i,u._strict=e,(o=new b(ui(ki(u))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Si(t,i,n,e){return wi(t,i,n,e,!1)}e.createFromInputFallback=x("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),e.ISO_8601=function(){},e.RFC_2822=function(){};var xi=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Si.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()})),Hi=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Si.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()}));function Ni(t,i){var n,e;if(1===i.length&&r(i[0])&&(i=i[0]),!i.length)return Si();for(n=i[0],e=1;e<i.length;++e)i[e].isValid()&&!i[e][t](n)||(n=i[e]);return n}var Ti=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _i(t){var i=j(t),n=i.year||0,e=i.quarter||0,r=i.month||0,s=i.week||i.isoWeek||0,a=i.day||0,o=i.hour||0,u=i.minute||0,h=i.second||0,d=i.millisecond||0;this._isValid=function(t){for(var i in t)if(-1===Mt.call(Ti,i)||null!=t[i]&&isNaN(t[i]))return!1;for(var n=!1,e=0;e<Ti.length;++e)if(t[Ti[e]]){if(n)return!1;parseFloat(t[Ti[e]])!==k(t[Ti[e]])&&(n=!0)}return!0}(i),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*e+12*n,this._data={},this._locale=oi(),this._bubble()}function Gi(t){return t instanceof _i}function Wi(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ei(t,i){P(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+C(~~(t/60),2)+i+C(~~t%60,2)}))}Ei("Z",":"),Ei("ZZ",""),dt("Z",ot),dt("ZZ",ot),mt(["Z","ZZ"],(function(t,i,n){n._useUTC=!0,n._tzm=Oi(ot,t)}));var Fi=/([\+\-]|\d\d)/gi;function Oi(t,i){var n=(i||"").match(t);if(null===n)return null;var e=((n[n.length-1]||[])+"").match(Fi)||["-",0,0],r=60*e[1]+k(e[2]);return 0===r?0:"+"===e[0]?r:-r}function ji(t,i){var n,r;return i._isUTC?(n=i.clone(),r=(y(t)||u(t)?t.valueOf():Si(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),e.updateOffset(n,!1),n):Si(t).local()}function Li(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ai(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var Ci=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,zi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ii(t,i){var n,e,r,s,a,u,h=t,c=null;return Gi(t)?h={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(h={},i?h[i]=t:h.milliseconds=t):(c=Ci.exec(t))?(n="-"===c[1]?-1:1,h={y:0,d:k(c[2])*n,h:k(c[3])*n,m:k(c[4])*n,s:k(c[5])*n,ms:k(Wi(1e3*c[6]))*n}):(c=zi.exec(t))?h={y:Zi(c[2],n="-"===c[1]?-1:1),M:Zi(c[3],n),w:Zi(c[4],n),d:Zi(c[5],n),h:Zi(c[6],n),m:Zi(c[7],n),s:Zi(c[8],n)}:null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(s=Si(h.from),a=Si(h.to),r=s.isValid()&&a.isValid()?(a=ji(a,s),s.isBefore(a)?u=Ri(s,a):((u=Ri(a,s)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(h={}).ms=r.milliseconds,h.M=r.months),e=new _i(h),Gi(t)&&d(t,"_locale")&&(e._locale=t._locale),e}function Zi(t,i){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*i}function Ri(t,i){var n={};return n.months=i.month()-t.month()+12*(i.year()-t.year()),t.clone().add(n.months,"M").isAfter(i)&&--n.months,n.milliseconds=+i-+t.clone().add(n.months,"M"),n}function Pi(t,i){return function(n,e){var r;return null===e||isNaN(+e)||(T(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=e,e=r),Ui(this,Ii(n="string"==typeof n?+n:n,e),t),this}}function Ui(t,i,n,r){var s=i._milliseconds,a=Wi(i._days),o=Wi(i._months);t.isValid()&&(r=null==r||r,o&&Tt(t,Dt(t,"Month")+o*n),a&&kt(t,"Date",Dt(t,"Date")+a*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&e.updateOffset(t,a||o))}Ii.fn=_i.prototype,Ii.invalid=function(){return Ii(NaN)};var $i=Pi(1,"add"),qi=Pi(-1,"subtract");function Ji(t,i){var n=12*(i.year()-t.year())+(i.month()-t.month()),e=t.clone().add(n,"months");return-(n+(i-e<0?(i-e)/(e-t.clone().add(n-1,"months")):(i-e)/(t.clone().add(n+1,"months")-e)))||0}function Qi(t){var i;return void 0===t?this._locale._abbr:(null!=(i=oi(t))&&(this._locale=i),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Bi=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 Xi(){return this._locale}var Vi=1e3,Ki=6e4,tn=36e5,nn=126227808e5;function en(t,i){return(t%i+i)%i}function rn(t,i,n){return t<100&&t>=0?new Date(t+400,i,n)-nn:new Date(t,i,n).valueOf()}function sn(t,i,n){return t<100&&t>=0?Date.UTC(t+400,i,n)-nn:Date.UTC(t,i,n)}function an(t,i){P(0,[t,t.length],0,i)}function on(t,i,n,e,r){var s;return null==t?At(this,e,r).year:(i>(s=Ct(t,e,r))&&(i=s),un.call(this,t,i,n,e,r))}function un(t,i,n,e,r){var s=Lt(t,i,n,e,r),a=Ot(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),dt("G",st),dt("g",st),dt("GG",V,J),dt("gg",V,J),dt("GGGG",nt,B),dt("gggg",nt,B),dt("GGGGG",et,X),dt("ggggg",et,X),vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,i,n,e){i[e.substr(0,2)]=k(t)})),vt(["gg","GG"],(function(t,i,n,r){i[r]=e.parseTwoDigitYear(t)})),P("Q",0,"Qo","quarter"),F("quarter","Q"),A("quarter",7),dt("Q",q),mt("Q",(function(t,i){i[1]=3*(k(t)-1)})),P("D",["DD",2],"Do","date"),F("date","D"),A("date",9),dt("D",V),dt("DD",V,J),dt("Do",(function(t,i){return t?i._dayOfMonthOrdinalParse||i._ordinalParse:i._dayOfMonthOrdinalParseLenient})),mt(["D","DD"],2),mt("Do",(function(t,i){i[2]=k(t.match(V)[0])}));var hn=yt("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),A("dayOfYear",4),dt("DDD",it),dt("DDDD",Q),mt(["DDD","DDDD"],(function(t,i,n){n._dayOfYear=k(t)})),P("m",["mm",2],0,"minute"),F("minute","m"),A("minute",14),dt("m",V),dt("mm",V,J),mt(["m","mm"],4);var dn=yt("Minutes",!1);P("s",["ss",2],0,"second"),F("second","s"),A("second",15),dt("s",V),dt("ss",V,J),mt(["s","ss"],5);var cn,ln=yt("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),A("millisecond",16),dt("S",it,q),dt("SS",it,J),dt("SSS",it,Q),cn="SSSS";cn.length<=9;cn+="S")dt(cn,rt);function fn(t,i){i[6]=k(1e3*("0."+t))}for(cn="S";cn.length<=9;cn+="S")mt(cn,fn);var mn=yt("Milliseconds",!1);P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var vn=b.prototype;function pn(t){return t}vn.add=$i,vn.calendar=function(t,i){var n=t||Si(),r=ji(n,this).startOf("day"),s=e.calendarFormat(this,r)||"sameElse",a=i&&(_(i[s])?i[s].call(this,n):i[s]);return this.format(a||this.localeData().calendar(s,this,Si(n)))},vn.clone=function(){return new b(this)},vn.diff=function(t,i,n){var e,r,s;if(!this.isValid())return NaN;if(!(e=ji(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),i=O(i)){case"year":s=Ji(this,e)/12;break;case"month":s=Ji(this,e);break;case"quarter":s=Ji(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return n?s:D(s)},vn.endOf=function(t){var i;if(void 0===(t=O(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?sn:rn;switch(t){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=tn-en(i+(this._isUTC?0:this.utcOffset()*Ki),tn)-1;break;case"minute":i=this._d.valueOf(),i+=Ki-en(i,Ki)-1;break;case"second":i=this._d.valueOf(),i+=Vi-en(i,Vi)-1}return this._d.setTime(i),e.updateOffset(this,!0),this},vn.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=U(this,t);return this.localeData().postformat(i)},vn.from=function(t,i){return this.isValid()&&(y(t)&&t.isValid()||Si(t).isValid())?Ii({to:this,from:t}).locale(this.locale()).humanize(!i):this.localeData().invalidDate()},vn.fromNow=function(t){return this.from(Si(),t)},vn.to=function(t,i){return this.isValid()&&(y(t)&&t.isValid()||Si(t).isValid())?Ii({from:this,to:t}).locale(this.locale()).humanize(!i):this.localeData().invalidDate()},vn.toNow=function(t){return this.to(Si(),t)},vn.get=function(t){return _(this[t=O(t)])?this[t]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(t,i){var n=y(t)?t:Si(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(i=O(i)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(i).valueOf())},vn.isBefore=function(t,i){var n=y(t)?t:Si(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(i=O(i)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(i).valueOf()<n.valueOf())},vn.isBetween=function(t,i,n,e){var r=y(t)?t:Si(t),s=y(i)?i:Si(i);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===e[1]?this.isBefore(s,n):!this.isAfter(s,n))},vn.isSame=function(t,i){var n,e=y(t)?t:Si(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(i=O(i)||"millisecond")?this.valueOf()===e.valueOf():(n=e.valueOf(),this.clone().startOf(i).valueOf()<=n&&n<=this.clone().endOf(i).valueOf()))},vn.isSameOrAfter=function(t,i){return this.isSame(t,i)||this.isAfter(t,i)},vn.isSameOrBefore=function(t,i){return this.isSame(t,i)||this.isBefore(t,i)},vn.isValid=function(){return v(this)},vn.lang=Bi,vn.locale=Qi,vn.localeData=Xi,vn.max=Hi,vn.min=xi,vn.parsingFlags=function(){return c({},m(this))},vn.set=function(t,i){if("object"==typeof t)for(var n=function(t){var i=[];for(var n in t)i.push({unit:n,priority:L[n]});return i.sort((function(t,i){return t.priority-i.priority})),i}(t=j(t)),e=0;e<n.length;e++)this[n[e].unit](t[n[e].unit]);else if(_(this[t=O(t)]))return this[t](i);return this},vn.startOf=function(t){var i;if(void 0===(t=O(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?sn:rn;switch(t){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=en(i+(this._isUTC?0:this.utcOffset()*Ki),tn);break;case"minute":i=this._d.valueOf(),i-=en(i,Ki);break;case"second":i=this._d.valueOf(),i-=en(i,Vi)}return this._d.setTime(i),e.updateOffset(this,!0),this},vn.subtract=qi,vn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},vn.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()}},vn.toDate=function(){return new Date(this.valueOf())},vn.toISOString=function(t){if(!this.isValid())return null;var i=!0!==t,n=i?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",i="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z");var n="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+e+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.year=bt,vn.isLeapYear=function(){return gt(this.year())},vn.weekYear=function(t){return on.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(t){return on.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},vn.month=_t,vn.daysInMonth=function(){return wt(this.year(),this.month())},vn.week=vn.weeks=function(t){var i=this.localeData().week(this);return null==t?i:this.add(7*(t-i),"d")},vn.isoWeek=vn.isoWeeks=function(t){var i=At(this,1,4).week;return null==t?i:this.add(7*(t-i),"d")},vn.weeksInYear=function(){var t=this.localeData()._week;return Ct(this.year(),t.dow,t.doy)},vn.isoWeeksInYear=function(){return Ct(this.year(),1,4)},vn.date=hn,vn.day=vn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,i){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-i,"d")):i},vn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var i=(this.day()+7-this.localeData()._week.dow)%7;return null==t?i:this.add(t-i,"d")},vn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var i=function(t,i){return"string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?i:i-7)}return this.day()||7},vn.dayOfYear=function(t){var i=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?i:this.add(t-i,"d")},vn.hour=vn.hours=Kt,vn.minute=vn.minutes=dn,vn.second=vn.seconds=ln,vn.millisecond=vn.milliseconds=mn,vn.utcOffset=function(t,i,n){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Oi(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&i&&(r=Li(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!i||this._changeInProgress?Ui(this,Ii(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Li(this)},vn.utc=function(t){return this.utcOffset(0,t)},vn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Li(this),"m")),this},vn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Oi(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},vn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Si(t).utcOffset():0,(this.utcOffset()-t)%60==0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Ai,vn.isUTC=Ai,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=x("dates accessor is deprecated. Use date instead.",hn),vn.months=x("months accessor is deprecated. Use month instead",_t),vn.years=x("years accessor is deprecated. Use year instead",bt),vn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,i){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,i),this):-this.utcOffset()})),vn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=ki(t))._a){var i=t._isUTC?l(t._a):Si(t._a);this._isDSTShifted=this.isValid()&&w(t._a,i.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Yn=W.prototype;function gn(t,i,n,e){var r=oi(),s=l().set(e,i);return r[n](s,t)}function Mn(t,i,n){if(o(t)&&(i=t,t=void 0),t=t||"",null!=i)return gn(t,i,n,"month");var e,r=[];for(e=0;e<12;e++)r[e]=gn(t,e,n,"month");return r}function bn(t,i,n,e){"boolean"==typeof t?(o(i)&&(n=i,i=void 0),i=i||""):(n=i=t,t=!1,o(i)&&(n=i,i=void 0),i=i||"");var r,s=oi(),a=t?s._week.dow:0;if(null!=n)return gn(i,(n+a)%7,e,"day");var u=[];for(r=0;r<7;r++)u[r]=gn(i,(r+a)%7,e,"day");return u}Yn.calendar=function(t,i,n){var e=this._calendar[t]||this._calendar.sameElse;return _(e)?e.call(i,n):e},Yn.longDateFormat=function(t){var i=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return i||!n?i:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},Yn.invalidDate=function(){return this._invalidDate},Yn.ordinal=function(t){return this._ordinal.replace("%d",t)},Yn.preparse=pn,Yn.postformat=pn,Yn.relativeTime=function(t,i,n,e){var r=this._relativeTime[n];return _(r)?r(t,i,n,e):r.replace(/%d/i,t)},Yn.pastFuture=function(t,i){var n=this._relativeTime[t>0?"future":"past"];return _(n)?n(i):n.replace(/%s/i,i)},Yn.set=function(t){var i,n;for(n in t)_(i=t[n])?this[n]=i:this["_"+n]=i;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Yn.months=function(t,i){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||St).test(i)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Yn.monthsShort=function(t,i){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[St.test(i)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Yn.monthsParse=function(t,i,n){var e,r,s;if(this._monthsParseExact)return Nt.call(this,t,i,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=l([2e3,e]),n&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===i&&this._longMonthsParse[e].test(t))return e;if(n&&"MMM"===i&&this._shortMonthsParse[e].test(t))return e;if(!n&&this._monthsParse[e].test(t))return e}},Yn.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Et.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Yn.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Et.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Gt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Yn.week=function(t){return At(t,this._week.dow,this._week.doy).week},Yn.firstDayOfYear=function(){return this._week.doy},Yn.firstDayOfWeek=function(){return this._week.dow},Yn.weekdays=function(t,i){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(i)?"format":"standalone"];return!0===t?zt(n,this._week.dow):t?n[t.day()]:n},Yn.weekdaysMin=function(t){return!0===t?zt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Yn.weekdaysShort=function(t){return!0===t?zt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Yn.weekdaysParse=function(t,i,n){var e,r,s;if(this._weekdaysParseExact)return Pt.call(this,t,i,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=l([2e3,1]).day(e),n&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===i&&this._fullWeekdaysParse[e].test(t))return e;if(n&&"ddd"===i&&this._shortWeekdaysParse[e].test(t))return e;if(n&&"dd"===i&&this._minWeekdaysParse[e].test(t))return e;if(!n&&this._weekdaysParse[e].test(t))return e}},Yn.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Yn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Yn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Yn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Yn.meridiem=function(t,i,n){return t>11?n?"pm":"PM":n?"am":"AM"},si("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var i=t%10;return t+(1===k(t%100/10)?"th":1===i?"st":2===i?"nd":3===i?"rd":"th")}}),e.lang=x("moment.lang is deprecated. Use moment.locale instead.",si),e.langData=x("moment.langData is deprecated. Use moment.localeData instead.",oi);var yn=Math.abs;function Dn(t,i,n,e){var r=Ii(i,n);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function kn(t){return t<0?Math.floor(t):Math.ceil(t)}function wn(t){return 4800*t/146097}function Sn(t){return 146097*t/4800}function xn(t){return function(){return this.as(t)}}var Hn=xn("ms"),Nn=xn("s"),Tn=xn("m"),_n=xn("h"),Gn=xn("d"),Wn=xn("w"),En=xn("M"),Fn=xn("Q"),On=xn("y");function jn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ln=jn("milliseconds"),An=jn("seconds"),Cn=jn("minutes"),zn=jn("hours"),In=jn("days"),Zn=jn("months"),Rn=jn("years");var Pn=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,M:11};function $n(t,i,n,e,r){return r.relativeTime(i||1,!!n,t,e)}var qn=Math.abs;function Jn(t){return(t>0)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,i,n=qn(this._milliseconds)/1e3,e=qn(this._days),r=qn(this._months);t=D(n/60),i=D(t/60),n%=60,t%=60;var s=D(r/12),a=r%=12,o=e,u=i,h=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var l=c<0?"-":"",f=Jn(this._months)!==Jn(c)?"-":"",m=Jn(this._days)!==Jn(c)?"-":"",v=Jn(this._milliseconds)!==Jn(c)?"-":"";return l+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||h||d?"T":"")+(u?v+u+"H":"")+(h?v+h+"M":"")+(d?v+d+"S":"")}var Bn=_i.prototype;return Bn.isValid=function(){return this._isValid},Bn.abs=function(){var t=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),t.milliseconds=yn(t.milliseconds),t.seconds=yn(t.seconds),t.minutes=yn(t.minutes),t.hours=yn(t.hours),t.months=yn(t.months),t.years=yn(t.years),this},Bn.add=function(t,i){return Dn(this,t,i,1)},Bn.subtract=function(t,i){return Dn(this,t,i,-1)},Bn.as=function(t){if(!this.isValid())return NaN;var i,n,e=this._milliseconds;if("month"===(t=O(t))||"quarter"===t||"year"===t)switch(n=this._months+wn(i=this._days+e/864e5),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(i=this._days+Math.round(Sn(this._months)),t){case"week":return i/7+e/6048e5;case"day":return i+e/864e5;case"hour":return 24*i+e/36e5;case"minute":return 1440*i+e/6e4;case"second":return 86400*i+e/1e3;case"millisecond":return Math.floor(864e5*i)+e;default:throw new Error("Unknown unit "+t)}},Bn.asMilliseconds=Hn,Bn.asSeconds=Nn,Bn.asMinutes=Tn,Bn.asHours=_n,Bn.asDays=Gn,Bn.asWeeks=Wn,Bn.asMonths=En,Bn.asQuarters=Fn,Bn.asYears=On,Bn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Bn._bubble=function(){var t,i,n,e,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*kn(Sn(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=D(s/1e3),u.seconds=t%60,i=D(t/60),u.minutes=i%60,n=D(i/60),u.hours=n%24,a+=D(n/24),o+=r=D(wn(a)),a-=kn(Sn(r)),e=D(o/12),o%=12,u.days=a,u.months=o,u.years=e,this},Bn.clone=function(){return Ii(this)},Bn.get=function(t){return t=O(t),this.isValid()?this[t+"s"]():NaN},Bn.milliseconds=Ln,Bn.seconds=An,Bn.minutes=Cn,Bn.hours=zn,Bn.days=In,Bn.weeks=function(){return D(this.days()/7)},Bn.months=Zn,Bn.years=Rn,Bn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var i=this.localeData(),n=function(t,i,n){var e=Ii(t).abs(),r=Pn(e.as("s")),s=Pn(e.as("m")),a=Pn(e.as("h")),o=Pn(e.as("d")),u=Pn(e.as("M")),h=Pn(e.as("y")),d=r<=Un.ss&&["s",r]||r<Un.s&&["ss",r]||s<=1&&["m"]||s<Un.m&&["mm",s]||a<=1&&["h"]||a<Un.h&&["hh",a]||o<=1&&["d"]||o<Un.d&&["dd",o]||u<=1&&["M"]||u<Un.M&&["MM",u]||h<=1&&["y"]||["yy",h];return d[2]=i,d[3]=+t>0,d[4]=n,$n.apply(null,d)}(this,!t,i);return t&&(n=i.pastFuture(+this,n)),i.postformat(n)},Bn.toISOString=Qn,Bn.toString=Qn,Bn.toJSON=Qn,Bn.locale=Qi,Bn.localeData=Xi,Bn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Bn.lang=Bi,P("X",0,0,"unix"),P("x",0,0,"valueOf"),dt("x",st),dt("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",(function(t,i,n){n._d=new Date(1e3*parseFloat(t,10))})),mt("x",(function(t,i,n){n._d=new Date(k(t))})),e.version="2.24.0",i=Si,e.fn=vn,e.min=function(){return Ni("isBefore",[].slice.call(arguments,0))},e.max=function(){return Ni("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=l,e.unix=function(t){return Si(1e3*t)},e.months=function(t,i){return Mn(t,i,"months")},e.isDate=u,e.locale=si,e.invalid=p,e.duration=Ii,e.isMoment=y,e.weekdays=function(t,i,n){return bn(t,i,n,"weekdays")},e.parseZone=function(){return Si.apply(null,arguments).parseZone()},e.localeData=oi,e.isDuration=Gi,e.monthsShort=function(t,i){return Mn(t,i,"monthsShort")},e.weekdaysMin=function(t,i,n){return bn(t,i,n,"weekdaysMin")},e.defineLocale=ai,e.updateLocale=function(t,i){if(null!=i){var n,e,r=ti;null!=(e=ri(t))&&(r=e._config),(n=new W(i=G(r,i))).parentLocale=ii[t],ii[t]=n,si(t)}else null!=ii[t]&&(null!=ii[t].parentLocale?ii[t]=ii[t].parentLocale:null!=ii[t]&&delete ii[t]);return ii[t]},e.locales=function(){return H(ii)},e.weekdaysShort=function(t,i,n){return bn(t,i,n,"weekdaysShort")},e.normalizeUnits=O,e.relativeTimeRounding=function(t){return void 0===t?Pn:"function"==typeof t&&(Pn=t,!0)},e.relativeTimeThreshold=function(t,i){return void 0!==Un[t]&&(void 0===i?Un[t]:(Un[t]=i,"s"===t&&(Un.ss=i-1),!0))},e.calendarFormat=function(t,i){var n=t.diff(i,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},e.prototype=vn,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()}));const g=class{constructor(n){t(this,n),this.bkkrOpen=i(this,"bkkrOpen",7),this.bkkrCancel=i(this,"bkkrCancel",7),this.bkkrInput=i(this,"bkkrInput",7),this.bkkrChange=i(this,"bkkrChange",7),this.bkkrBlur=i(this,"bkkrBlur",7),this.bkkrFocus=i(this,"bkkrFocus",7),this.bkkrStyle=i(this,"bkkrStyle",7),this.inputId="ion-dt-"+y++,this.inheritedAttributes={},this.locale={},this.fireFocusEvents=!0,this.hasFocus=!1,this.isExpanded=!1,this.autofocus=!1,this.disabled=!1,this.type="date",this.name=this.inputId,this.readonly=!1,this.required=!1,this.interfaceOptions={},this.displayFormat="time"===this.type?b:M,this.onInput=t=>{const i=t.target;if(!i.value)return void(this.value=null);const n=Y(i.value,"time"===this.type?p:v,!0);this.value=n.isValid()?n.toISOString():i.value,console.log(this.value),this.bkkrInput.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.emitStyle(),this.fireFocusEvents&&this.bkkrBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.emitStyle(),this.fireFocusEvents&&this.bkkrFocus.emit(t)}}disabledChanged(){this.emitStyle()}valueChanged(){this.hasValue()||(this.displayValue=this.getDisplayValue()),this.emitStyle(),this.bkkrChange.emit({value:this.value})}componentWillLoad(){this.inheritedAttributes=s(this.el,["tabindex","title"]),this.locale={monthNames:m(this.monthNames,"monthNames"),monthShortNames:m(this.monthShortNames,"monthShortNames"),dayNames:m(this.dayNames,"dayNames"),dayShortNames:m(this.dayShortNames,"dayShortNames")},this.displayValue=this.getDisplayValue(),console.log(this.displayValue),this.emitStyle()}connectedCallback(){this.emitStyle(),document.dispatchEvent(new CustomEvent("bkkrdatetimeDidLoad",{detail:this.el}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("bkkrdatetimeDidUnload",{detail:this.el}))}async setFocus(){this.nativeinput&&this.nativeinput.focus()}async setBlur(){this.nativeinput&&this.nativeinput.blur()}getDatetimeElement(){return Promise.resolve(this.nativeinput)}async open(t){if(this.disabled||this.isExpanded)return;this.bkkrOpen.emit();const i=this.overlay=await this.openPopover(t);return this.overlay.addEventListener("bkkrDatepickerDidChange",(t=>this.close(t))),this.isExpanded=!0,this.hasFocus=!0,this.emitStyle(),i.onDidDismiss().then((()=>{this.overlay.removeEventListener("bkkrDatepickerDidChange",(t=>this.close(t))),this.overlay=void 0,this.isExpanded=!1,this.hasFocus=!1,this.emitStyle(),this.setFocus(),this.bkkrCancel.emit()})),await i.present(),i}openPopover(t){const{value:i,locale:n,min:e,max:r,type:s}=this,a=this.interfaceOptions,o=Object.assign(Object.assign({},a),{component:"bkkr-datetime-popover",cssClass:["datetime-popover",a.cssClass],event:t,componentProps:{header:a.header,subHeader:a.subHeader,value:i,locale:n,min:e,max:r,type:s}});return u.create(o)}close(t){return this.value=t.detail.value,this.overlay?(this.hasFocus=!1,this.emitStyle(),this.overlay.dismiss()):Promise.resolve(!1)}getValue(){return(this.value||"").toString()}emitStyle(){this.bkkrStyle.emit({interactive:!0,datetime:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}hasValue(){return this.getValue().length>0}getDisplayValue(){const t=Y(this.value);if(null!=this.value&&0!==this.value.length)return t.isValid()?t.format(this.displayFormat):this.value}render(){const{inputId:t,value:i,disabled:r,readonly:s,isExpanded:u,el:c,placeholder:l,type:f}=this,m=t+"-lbl",v=a(this.el),p=void 0===i&&null!=l,g=Y(i).isValid();return v&&(v.id=m),o(!0,c,this.name,this.value,this.disabled),n(e,{"aria-disabled":this.disabled?"true":null,"aria-expanded":`${u}`,"aria-haspopup":"true","aria-labelledby":m,class:h(this.color,{"datetime-disabled":r,"datetime-readonly":s,"datetime-placeholder":p,"in-item":d("bkkr-item",c),"has-value":this.hasValue(),"has-focus":this.hasFocus})},n("input",Object.assign({class:"native-datetime",ref:t=>this.nativeinput=t,"aria-labelledby":m,disabled:this.disabled,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,type:"text",value:this.displayValue,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus},this.inheritedAttributes)),!this.readonly&&!this.disabled&&"date"===f&&n("button",{type:"button",disabled:!g,class:"datetime-calendar-icon",onClick:t=>this.open(t)},n("bkkr-icon",{size:"small",name:"calendar"})))}get el(){return r(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"]}}},M="DD.MM.YYYY",b="HH:mm";let y=0;g.style=".sc-bkkr-datetime-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--padding-top:10px;--padding-end:calc(var(--bkkr-spacer, 16px) / 2);--padding-bottom:10px;--padding-start:0;--background:transparent;--color:initial;padding-left:0 !important;padding-right:0 !important;padding-top:0 !important;padding-bottom:0 !important;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;background:var(--background);color:var(--color);font-family:var(--default-font-sans-serif);font-size:inherit}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-bkkr-datetime-h{padding-left:unset;padding-right:unset;-webkit-padding-start:0 !important;padding-inline-start:0 !important;-webkit-padding-end:0 !important;padding-inline-end:0 !important}}bkkr-item.sc-bkkr-datetime-h:not(.item-label),bkkr-item:not(.item-label) .sc-bkkr-datetime-h{--padding-start:0}.item-label-stacked.sc-bkkr-datetime-h,.item-label-stacked .sc-bkkr-datetime-h,.item-label-floating.sc-bkkr-datetime-h,.item-label-floating .sc-bkkr-datetime-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.native-datetime.sc-bkkr-datetime{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;display:inline-block;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-datetime.sc-bkkr-datetime{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-datetime.sc-bkkr-datetime::-moz-placeholder{-moz-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime::-ms-input-placeholder{-ms-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime::-webkit-input-placeholder{-webkit-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);-webkit-transition-delay:var(--placeholder-transition-delay, none);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime:-ms-input-placeholder{-ms-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime::placeholder{-webkit-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);-webkit-transition-delay:var(--placeholder-transition-delay, none);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime:-webkit-autofill{background-color:transparent}.native-datetime.sc-bkkr-datetime:invalid{-webkit-box-shadow:none;box-shadow:none}.native-datetime.sc-bkkr-datetime::-ms-clear{display:none}.native-datetime[disabled].sc-bkkr-datetime{opacity:0.4}.cloned-datetime.sc-bkkr-datetime{display:none;pointer-events:none}.datetime-calendar-icon.sc-bkkr-datetime{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;background-size:18px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.datetime-calendar-icon.sc-bkkr-datetime:focus{opacity:0.5}";export{g as bkkr_datetime}