!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Ni.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){return void 0===t}function o(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){var n,i=[];for(n=0;n0)for(n=0;n0?"future":"past"];return b(n)?n(e):n.replace(/%s/i,e)}function P(t,e){var n=t.toLowerCase();Fi[n]=Fi[n+"s"]=Fi[e]=t}function H(t){return"string"==typeof t?Fi[t]||Fi[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)l(t,n)&&(e=H(n))&&(i[e]=t[n]);return i}function x(t,e){Ui[t]=e}function W(t){var e=[];for(var n in t)e.push({unit:n,priority:Ui[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function Y(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function F(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Bi[t]=r),e&&(Bi[e[0]]=function(){return Y(r.apply(this,arguments),e[1],e[2])}),n&&(Bi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function V(t){var e,n,i=t.match(Vi);for(e=0,n=i.length;e=0&&ji.test(t);)t=t.replace(ji,n),ji.lastIndex=0,i-=1;return t}function B(t,e,n){ur[t]=b(e)?e:function(t,i){return t&&n?n:e}}function q(t,e){return l(ur,t)?ur[t](e._strict,e._locale):new RegExp(K(t))}function K(t){return z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),o(e)&&(i=function(t,n){n[e]=y(t)}),n=0;n=0?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function yt(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Et(t,e,n){var i=7+e-n;return-(7+yt(t,0,i).getUTCDay()-e)%7+i-1}function Tt(t,e,n,i,r){var o,s,a=(7+n-i)%7,l=Et(t,i,r),u=1+7*(e-1)+a+l;return u<=0?(o=t-1,s=$(o)+u):u>$(t)?(o=t+1,s=u-$(t)):(o=t,s=u),{year:o,dayOfYear:s}}function wt(t,e,n){var i,r,o=Et(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?(r=t.year()-1,i=s+St(r,e,n)):s>St(t.year(),e,n)?(i=s-St(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function St(t,e,n){var i=Et(t,e,n),r=Et(t+1,e,n);return($(t)-i+r)/7}function bt(t){return wt(t,this._week.dow,this._week.doy).week}function Dt(){return this._week.dow}function Ot(){return this._week.doy}function Ct(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function It(t){var e=wt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function At(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Nt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Mt(t,e){return t.slice(e,7).concat(t.slice(0,e))}function kt(t,n){var i=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?Mt(i,this._week.dow):t?i[t.day()]:i}function Lt(t){return!0===t?Mt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Pt(t){return!0===t?Mt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ht(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?(r=Er.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===e?(r=Er.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=Er.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===e?-1!==(r=Er.call(this._weekdaysParse,s))?r:-1!==(r=Er.call(this._shortWeekdaysParse,s))?r:(r=Er.call(this._minWeekdaysParse,s),-1!==r?r:null):"ddd"===e?-1!==(r=Er.call(this._shortWeekdaysParse,s))?r:-1!==(r=Er.call(this._weekdaysParse,s))?r:(r=Er.call(this._minWeekdaysParse,s),-1!==r?r:null):-1!==(r=Er.call(this._minWeekdaysParse,s))?r:-1!==(r=Er.call(this._weekdaysParse,s))?r:(r=Er.call(this._shortWeekdaysParse,s),-1!==r?r:null)}function Rt(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Ht.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function xt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=At(t,this.localeData()),this.add(t-e,"d")):e}function Wt(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")}function Yt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Nt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||jt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ut(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||jt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||jt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lr),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=c([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=z(a[e]),l[e]=z(l[e]),u[e]=z(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Bt(){return this.hours()||24}function qt(t,e){F(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Kt(t,e){return e._meridiemParse}function zt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Qt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,n,i,r,o=0;o0;){if(i=$t(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&E(r,n,!0)>=e-1)break;e--}o++}return Pr}function $t(t){var e=null;if(!Wr[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Pr._abbr;require("./locale/"+t),Jt(e)}catch(t){}return Wr[t]}function Jt(t,e){var n;return t&&(n=r(e)?ne(t):te(t,e),n?Pr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Pr._abbr}function te(t,e){if(null!==e){var n,i=xr;if(e.abbr=t,null!=Wr[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."),i=Wr[t]._config;else if(null!=e.parentLocale)if(null!=Wr[e.parentLocale])i=Wr[e.parentLocale]._config;else{if(null==(n=$t(e.parentLocale)))return Yr[e.parentLocale]||(Yr[e.parentLocale]=[]),Yr[e.parentLocale].push({name:t,config:e}),null;i=n._config}return Wr[t]=new C(O(i,e)),Yr[t]&&Yr[t].forEach(function(t){te(t.name,t.config)}),Jt(t),Wr[t]}return delete Wr[t],null}function ee(t,e){if(null!=e){var n,i,r=xr;i=$t(t),null!=i&&(r=i._config),e=O(r,e),n=new C(e),n.parentLocale=Wr[t],Wr[t]=n,Jt(t)}else null!=Wr[t]&&(null!=Wr[t].parentLocale?Wr[t]=Wr[t].parentLocale:null!=Wr[t]&&delete Wr[t]);return Wr[t]}function ne(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Pr;if(!e(t)){if(n=$t(t))return n;t=[t]}return Xt(t)}function ie(){return Hi(Wr)}function re(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[dr]<0||n[dr]>11?dr:n[fr]<1||n[fr]>at(n[hr],n[dr])?fr:n[mr]<0||n[mr]>24||24===n[mr]&&(0!==n[pr]||0!==n[gr]||0!==n[_r])?mr:n[pr]<0||n[pr]>59?pr:n[gr]<0||n[gr]>59?gr:n[_r]<0||n[_r]>999?_r:-1,d(t)._overflowDayOfYear&&(efr)&&(e=fr),d(t)._overflowWeeks&&-1===e&&(e=vr),d(t)._overflowWeekday&&-1===e&&(e=yr),d(t).overflow=e),t}function oe(t,e,n){return null!=t?t:null!=e?e:n}function se(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ae(t){var e,n,i,r,o,s=[];if(!t._d){for(i=se(t),t._w&&null==t._a[fr]&&null==t._a[dr]&&le(t),null!=t._dayOfYear&&(o=oe(t._a[hr],i[hr]),(t._dayOfYear>$(o)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=yt(o,0,t._dayOfYear),t._a[dr]=n.getUTCMonth(),t._a[fr]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[mr]&&0===t._a[pr]&&0===t._a[gr]&&0===t._a[_r]&&(t._nextDay=!0,t._a[mr]=0),t._d=(t._useUTC?yt:vt).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[mr]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(d(t).weekdayMismatch=!0)}}function le(t){var e,n,i,r,o,s,a,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)o=1,s=4,n=oe(e.GG,t._a[hr],wt(De(),1,4).year),i=oe(e.W,1),((r=oe(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var u=wt(De(),o,s);n=oe(e.gg,t._a[hr],u.year),i=oe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}i<1||i>St(n,o,s)?d(t)._overflowWeeks=!0:null!=l?d(t)._overflowWeekday=!0:(a=Tt(n,i,r,o,s),t._a[hr]=a.year,t._dayOfYear=a.dayOfYear)}function ue(t){var e,n,i,r,o,s,a=t._i,l=Fr.exec(a)||Ur.exec(a);if(l){for(d(t).iso=!0,e=0,n=jr.length;e0&&d(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Bi[o]?(i?d(e).empty=!1:d(e).unusedTokens.push(o),X(o,i,e)):e._strict&&!i&&d(e).unusedTokens.push(o);d(e).charsLeftOver=l-u,a.length>0&&d(e).unusedInput.push(a),e._a[mr]<=12&&!0===d(e).bigHour&&e._a[mr]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[mr]=ve(e._locale,e._a[mr],e._meridiem),ae(e),re(e)}function ve(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function ye(t){var e,n,i,r,o;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qe(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t={};if(p(t,this),t=we(t),t._a){var e=t._isUTC?c(t._a):De(t._a);this._isDSTShifted=this.isValid()&&E(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ke(){return!!this.isValid()&&!this._isUTC}function ze(){return!!this.isValid()&&this._isUTC}function Qe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ze(t,e){var n,i,r,s=t,a=null;return Le(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Jr.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:y(a[fr])*n,h:y(a[mr])*n,m:y(a[pr])*n,s:y(a[gr])*n,ms:y(Pe(1e3*a[_r]))*n}):(a=to.exec(t))?(n="-"===a[1]?-1:1,s={y:Xe(a[2],n),M:Xe(a[3],n),w:Xe(a[4],n),d:Xe(a[5],n),h:Xe(a[6],n),m:Xe(a[7],n),s:Xe(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Je(De(s.from),De(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new ke(s),Le(t)&&l(t,"_locale")&&(i._locale=t._locale),i}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function $e(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(t,e){var n;return t.isValid()&&e.isValid()?(e=xe(e,t),t.isBefore(e)?n=$e(t,e):(n=$e(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,i){var r,o;return null===i||isNaN(+i)||(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."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Ze(n,i),en(this,r,t),this}}function en(e,n,i,r){var o=n._milliseconds,s=Pe(n._days),a=Pe(n._months);e.isValid()&&(r=null==r||r,a&&dt(e,nt(e,"Month")+a*i),s&&it(e,"Date",nt(e,"Date")+s*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&t.updateOffset(e,s||a))}function nn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rn(e,n){var i=e||De(),r=xe(i,this).startOf("day"),o=t.calendarFormat(this,r)||"sameElse",s=n&&(b(n[o])?n[o].call(this,i):n[o]);return this.format(s||this.localeData().calendar(o,this,De(i)))}function on(){return new g(this)}function sn(t,e){var n=_(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&(e=H(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()9999?j(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)}function _n(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=j(this,e);return this.localeData().postformat(n)}function vn(t,e){return this.isValid()&&(_(t)&&t.isValid()||De(t).isValid())?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yn(t){return this.from(De(),t)}function En(t,e){return this.isValid()&&(_(t)&&t.isValid()||De(t).isValid())?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Tn(t){return this.to(De(),t)}function wn(t){var e;return void 0===t?this._locale._abbr:(e=ne(t),null!=e&&(this._locale=e),this)}function Sn(){return this._locale} function bn(t,e){return(t%e+e)%e}function Dn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ao:new Date(t,e,n).valueOf()}function On(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ao:Date.UTC(t,e,n)}function Cn(e){var n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?On:Dn;switch(e){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=bn(n+(this._isUTC?0:this.utcOffset()*oo),so);break;case"minute":n=this._d.valueOf(),n-=bn(n,oo);break;case"second":n=this._d.valueOf(),n-=bn(n,ro)}return this._d.setTime(n),t.updateOffset(this,!0),this}function In(e){var n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?On:Dn;switch(e){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=so-bn(n+(this._isUTC?0:this.utcOffset()*oo),so)-1;break;case"minute":n=this._d.valueOf(),n+=oo-bn(n,oo)-1;break;case"second":n=this._d.valueOf(),n+=ro-bn(n,ro)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function An(){return this._d.valueOf()-6e4*(this._offset||0)}function Nn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function kn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ln(){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()}}function Pn(){return this.isValid()?this.toISOString():null}function Hn(){return f(this)}function Rn(){return u({},d(this))}function xn(){return d(this).overflow}function Wn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Yn(t,e){F(0,[t,t.length],0,e)}function Fn(t){return Gn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Un(t){return Gn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Vn(){return St(this.year(),1,4)}function jn(){var t=this.localeData()._week;return St(this.year(),t.dow,t.doy)}function Gn(t,e,n,i,r){var o;return null==t?wt(this,i,r).year:(o=St(t,i,r),e>o&&(e=o),Bn.call(this,t,e,n,i,r))}function Bn(t,e,n,i,r){var o=Tt(t,e,n,i,r),s=yt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function qn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Kn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function zn(t,e){e[_r]=y(1e3*("0."+t))}function Qn(){return this._isUTC?"UTC":""}function Zn(){return this._isUTC?"Coordinated Universal Time":""}function Xn(t){return De(1e3*t)}function $n(){return De.apply(null,arguments).parseZone()}function Jn(t){return t}function ti(t,e,n,i){var r=ne(),o=c().set(i,e);return r[n](o,t)}function ei(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||"",null!=e)return ti(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=ti(t,i,n,"month");return r}function ni(t,e,n,i){"boolean"==typeof t?(o(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||"");var r=ne(),s=t?r._week.dow:0;if(null!=n)return ti(e,(n+s)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=ti(e,(a+s)%7,i,"day");return l}function ii(t,e){return ei(t,e,"months")}function ri(t,e){return ei(t,e,"monthsShort")}function oi(t,e,n){return ni(t,e,n,"weekdays")}function si(t,e,n){return ni(t,e,n,"weekdaysShort")}function ai(t,e,n){return ni(t,e,n,"weekdaysMin")}function li(){var t=this._data;return this._milliseconds=go(this._milliseconds),this._days=go(this._days),this._months=go(this._months),t.milliseconds=go(t.milliseconds),t.seconds=go(t.seconds),t.minutes=go(t.minutes),t.hours=go(t.hours),t.months=go(t.months),t.years=go(t.years),this}function ui(t,e,n,i){var r=Ze(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ci(t,e){return ui(this,t,e,1)}function hi(t,e){return ui(this,t,e,-1)}function di(t){return t<0?Math.floor(t):Math.ceil(t)}function fi(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*di(pi(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=v(o/1e3),l.seconds=t%60,e=v(t/60),l.minutes=e%60,n=v(e/60),l.hours=n%24,s+=v(n/24),r=v(mi(s)),a+=r,s-=di(pi(r)),i=v(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function mi(t){return 4800*t/146097}function pi(t){return 146097*t/4800}function gi(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=H(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+mi(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(pi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function _i(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN}function vi(t){return function(){return this.as(t)}}function yi(){return Ze(this)}function Ei(t){return t=H(t),this.isValid()?this[t+"s"]():NaN}function Ti(t){return function(){return this.isValid()?this._data[t]:NaN}}function wi(){return v(this.days()/7)}function Si(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function bi(t,e,n){var i=Ze(t).abs(),r=Lo(i.as("s")),o=Lo(i.as("m")),s=Lo(i.as("h")),a=Lo(i.as("d")),l=Lo(i.as("M")),u=Lo(i.as("y")),c=r<=Po.ss&&["s",r]||r0,c[4]=n,Si.apply(null,c)}function Di(t){return void 0===t?Lo:"function"==typeof t&&(Lo=t,!0)}function Oi(t,e){return void 0!==Po[t]&&(void 0===e?Po[t]:(Po[t]=e,"s"===t&&(Po.ss=e-1),!0))}function Ci(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=bi(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Ii(t){return(t>0)-(t<0)||+t}function Ai(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=Ho(this._milliseconds)/1e3,r=Ho(this._days),o=Ho(this._months);t=v(i/60),e=v(t/60),i%=60,t%=60,n=v(o/12),o%=12;var s=n,a=o,l=r,u=e,c=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",m=Ii(this._months)!==Ii(d)?"-":"",p=Ii(this._days)!==Ii(d)?"-":"",g=Ii(this._milliseconds)!==Ii(d)?"-":"";return f+"P"+(s?m+s+"Y":"")+(a?m+a+"M":"")+(l?p+l+"D":"")+(u||c||h?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(h?g+h+"S":"")}var Ni,Mi;Mi=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i68?1900:2e3)};var Er,Tr=et("FullYear",!0);Er=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;ethis?this:t:m()}),Zr=function(){return Date.now?Date.now():+new Date},Xr=["year","quarter","month","week","day","hour","minute","second","millisecond"];He("Z",":"),He("ZZ",""),B("Z",sr),B("ZZ",sr),Q(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Re(sr,t)});var $r=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Jr=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,to=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ze.fn=ke.prototype,Ze.invalid=Me;var eo=tn(1,"add"),no=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var io=w("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)}),ro=1e3,oo=60*ro,so=60*oo,ao=3506328*so;F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yn("gggg","weekYear"),Yn("ggggg","weekYear"),Yn("GGGG","isoWeekYear"),Yn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),x("weekYear",1),x("isoWeekYear",1),B("G",rr),B("g",rr),B("GG",Xi,Ki),B("gg",Xi,Ki),B("GGGG",er,Qi),B("gggg",er,Qi),B("GGGGG",nr,Zi),B("ggggg",nr,Zi),Z(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=y(t)}),Z(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),P("quarter","Q"),x("quarter",7),B("Q",qi),Q("Q",function(t,e){e[dr]=3*(y(t)-1)}),F("D",["DD",2],"Do","date"),P("date","D"),x("date",9),B("D",Xi),B("DD",Xi,Ki),B("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],fr),Q("Do",function(t,e){e[fr]=y(t.match(Xi)[0])});var lo=et("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),x("dayOfYear",4),B("DDD",tr),B("DDDD",zi),Q(["DDD","DDDD"],function(t,e,n){n._dayOfYear=y(t)}),F("m",["mm",2],0,"minute"),P("minute","m"),x("minute",14),B("m",Xi),B("mm",Xi,Ki),Q(["m","mm"],pr);var uo=et("Minutes",!1);F("s",["ss",2],0,"second"),P("second","s"),x("second",15),B("s",Xi),B("ss",Xi,Ki),Q(["s","ss"],gr);var co=et("Seconds",!1);F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),x("millisecond",16),B("S",tr,qi),B("SS",tr,Ki),B("SSS",tr,zi);var ho;for(ho="SSSS";ho.length<=9;ho+="S")B(ho,ir);for(ho="S";ho.length<=9;ho+="S")Q(ho,zn);var fo=et("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var mo=g.prototype;mo.add=eo,mo.calendar=rn,mo.clone=on,mo.diff=dn,mo.endOf=In,mo.format=_n,mo.from=vn,mo.fromNow=yn,mo.to=En,mo.toNow=Tn,mo.get=rt,mo.invalidAt=xn,mo.isAfter=sn,mo.isBefore=an,mo.isBetween=ln,mo.isSame=un,mo.isSameOrAfter=cn,mo.isSameOrBefore=hn,mo.isValid=Hn,mo.lang=io,mo.locale=wn,mo.localeData=Sn,mo.max=Qr,mo.min=zr,mo.parsingFlags=Rn,mo.set=ot,mo.startOf=Cn,mo.subtract=no,mo.toArray=kn,mo.toObject=Ln,mo.toDate=Mn,mo.toISOString=pn,mo.inspect=gn,mo.toJSON=Pn,mo.toString=mn,mo.unix=Nn,mo.valueOf=An,mo.creationData=Wn,mo.year=Tr,mo.isLeapYear=tt,mo.weekYear=Fn,mo.isoWeekYear=Un,mo.quarter=mo.quarters=qn,mo.month=ft,mo.daysInMonth=mt,mo.week=mo.weeks=Ct,mo.isoWeek=mo.isoWeeks=It,mo.weeksInYear=jn,mo.isoWeeksInYear=Vn,mo.date=lo,mo.day=mo.days=xt,mo.weekday=Wt,mo.isoWeekday=Yt,mo.dayOfYear=Kn,mo.hour=mo.hours=Rr,mo.minute=mo.minutes=uo,mo.second=mo.seconds=co,mo.millisecond=mo.milliseconds=fo,mo.utcOffset=Ye,mo.utc=Ue,mo.local=Ve,mo.parseZone=je,mo.hasAlignedHourOffset=Ge,mo.isDST=Be,mo.isLocal=Ke,mo.isUtcOffset=ze,mo.isUtc=Qe,mo.isUTC=Qe,mo.zoneAbbr=Qn,mo.zoneName=Zn,mo.dates=w("dates accessor is deprecated. Use date instead.",lo),mo.months=w("months accessor is deprecated. Use month instead",ft),mo.years=w("years accessor is deprecated. Use year instead",Tr),mo.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fe),mo.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qe);var po=C.prototype;po.calendar=I,po.longDateFormat=A,po.invalidDate=N,po.ordinal=M,po.preparse=Jn,po.postformat=Jn,po.relativeTime=k,po.pastFuture=L,po.set=D,po.months=lt,po.monthsShort=ut,po.monthsParse=ht,po.monthsRegex=gt,po.monthsShortRegex=pt,po.week=bt,po.firstDayOfYear=Ot,po.firstDayOfWeek=Dt,po.weekdays=kt,po.weekdaysMin=Pt,po.weekdaysShort=Lt,po.weekdaysParse=Rt,po.weekdaysRegex=Ft,po.weekdaysShortRegex=Ut,po.weekdaysMinRegex=Vt,po.isPM=zt,po.meridiem=Qt,Jt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=w("moment.lang is deprecated. Use moment.locale instead.",Jt),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ne);var go=Math.abs,_o=vi("ms"),vo=vi("s"),yo=vi("m"),Eo=vi("h"),To=vi("d"),wo=vi("w"),So=vi("M"),bo=vi("Q"),Do=vi("y"),Oo=Ti("milliseconds"),Co=Ti("seconds"),Io=Ti("minutes"),Ao=Ti("hours"),No=Ti("days"),Mo=Ti("months"),ko=Ti("years"),Lo=Math.round,Po={ss:44,s:45,m:45,h:22,d:26,M:11},Ho=Math.abs,Ro=ke.prototype;return Ro.isValid=Ne,Ro.abs=li,Ro.add=ci,Ro.subtract=hi,Ro.as=gi,Ro.asMilliseconds=_o,Ro.asSeconds=vo,Ro.asMinutes=yo,Ro.asHours=Eo,Ro.asDays=To,Ro.asWeeks=wo,Ro.asMonths=So,Ro.asQuarters=bo,Ro.asYears=Do,Ro.valueOf=_i,Ro._bubble=fi,Ro.clone=yi,Ro.get=Ei,Ro.milliseconds=Oo,Ro.seconds=Co,Ro.minutes=Io,Ro.hours=Ao,Ro.days=No,Ro.weeks=wi,Ro.months=Mo,Ro.years=ko,Ro.humanize=Ci,Ro.toISOString=Ai,Ro.toString=Ai,Ro.toJSON=Ai,Ro.locale=wn,Ro.localeData=Sn,Ro.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ai),Ro.lang=io,F("X",0,0,"unix"),F("x",0,0,"valueOf"),B("x",rr),B("X",ar),Q("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Q("x",function(t,e,n){n._d=new Date(y(t))}),t.version="2.24.0",function(t){Ni=t}(De),t.fn=mo,t.min=Ce,t.max=Ie,t.now=Zr,t.utc=c,t.unix=Xn,t.months=ii,t.isDate=s,t.locale=Jt,t.invalid=m,t.duration=Ze,t.isMoment=_,t.weekdays=oi,t.parseZone=$n,t.localeData=ne,t.isDuration=Le,t.monthsShort=ri,t.weekdaysMin=ai,t.defineLocale=te,t.updateLocale=ee,t.locales=ie,t.weekdaysShort=si,t.normalizeUnits=H,t.relativeTimeRounding=Di,t.relativeTimeThreshold=Oi,t.calendarFormat=nn,t.prototype=mo,t.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"},t}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function t(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},ct))}}function n(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function i(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,i=n.getComputedStyle(t,null);return e?i[e]:i}function r(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=i(t),n=e.overflow,s=e.overflowX;return/(auto|scroll|overlay)/.test(n+e.overflowY+s)?t:o(r(t))}function s(t){return t&&t.referenceNode?t.referenceNode:t}function a(t){return 11===t?ft:10===t?mt:ft||mt}function l(t){if(!t)return document.documentElement;for(var e=a(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===i(n,"position")?l(n):n:t?t.ownerDocument.documentElement:document.documentElement}function u(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||l(t.firstElementChild)===t)}function c(t){return null!==t.parentNode?c(t.parentNode):t}function h(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||i.contains(r))return u(s)?s:l(s);var a=c(t);return a.host?h(a.host,e):h(t,c(e).host)}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[n]}return t[n]}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=d(e,"top"),r=d(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function m(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function p(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],a(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function g(t){var e=t.body,n=t.documentElement,i=a(10)&&getComputedStyle(n);return{height:p("Height",e,n,i),width:p("Width",e,n,i)}}function _(t){return vt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function v(t){var e={};try{if(a(10)){e=t.getBoundingClientRect();var n=d(t,"top"),r=d(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?g(t.ownerDocument):{},l=s.width||t.clientWidth||o.width,u=s.height||t.clientHeight||o.height,c=t.offsetWidth-l,h=t.offsetHeight-u;if(c||h){var f=i(t);c-=m(f,"x"),h-=m(f,"y"),o.width-=c,o.height-=h}return _(o)}function y(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=a(10),s="HTML"===e.nodeName,l=v(t),u=v(e),c=o(t),h=i(e),d=parseFloat(h.borderTopWidth,10),m=parseFloat(h.borderLeftWidth,10);n&&s&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var p=_({top:l.top-u.top-d,left:l.left-u.left-m,width:l.width,height:l.height});if(p.marginTop=0,p.marginLeft=0,!r&&s){var g=parseFloat(h.marginTop,10),y=parseFloat(h.marginLeft,10);p.top-=d-g,p.bottom-=d-g,p.left-=m-y,p.right-=m-y,p.marginTop=g,p.marginLeft=y}return(r&&!n?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(p=f(p,e)),p}function E(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=y(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:d(n),a=e?0:d(n,"left");return _({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o})}function T(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===i(t,"position"))return!0;var n=r(t);return!!n&&T(n)}function w(t){if(!t||!t.parentElement||a())return document.documentElement;for(var e=t.parentElement;e&&"none"===i(e,"transform");)e=e.parentElement;return e||document.documentElement}function S(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},u=a?w(t):h(t,s(e));if("viewport"===i)l=E(u,a);else{var c=void 0;"scrollParent"===i?(c=o(r(e)),"BODY"===c.nodeName&&(c=t.ownerDocument.documentElement)):c="window"===i?t.ownerDocument.documentElement:i;var d=y(c,u,a);if("HTML"!==c.nodeName||T(u))l=d;else{var f=g(t.ownerDocument),m=f.height,p=f.width;l.top+=d.top-d.marginTop,l.bottom=m+d.top,l.left+=d.left-d.marginLeft,l.right=p+d.left}}n=n||0;var _="number"==typeof n;return l.left+=_?n:n.left||0,l.top+=_?n:n.top||0,l.right-=_?n:n.right||0,l.bottom-=_?n:n.bottom||0,l}function b(t){return t.width*t.height}function D(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=S(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return vt({key:t},a[t],{area:b(a[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,h=t.split("-")[1];return c+(h?"-"+h:"")}function O(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return y(n,i?w(e):h(e,s(n)),i)}function C(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+i}}function I(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function A(t,e,n){n=n.split("-")[0];var i=C(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[u]:e[I(a)],r}function N(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function M(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=N(t,function(t){return t[e]===n});return t.indexOf(i)}function k(t,e,i){return(void 0===i?t:t.slice(0,M(t,"name",i))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&n(i)&&(e.offsets.popper=_(e.offsets.popper),e.offsets.reference=_(e.offsets.reference),e=i(e,t))}),e}function L(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=D(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=A(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=k(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function P(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function H(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;ia[m]&&(t.offsets.popper[d]+=l[d]+p-a[m]),t.offsets.popper=_(t.offsets.popper);var g=l[d]+l[c]/2-p/2,v=i(t.instance.popper),y=parseFloat(v["margin"+h],10),E=parseFloat(v["border"+h+"Width"],10),T=g-t.offsets.popper[d]-y-E;return T=Math.max(Math.min(a[c]-p,T),0),t.arrowElement=r,t.offsets.arrow=(n={},_t(n,d,Math.round(T)),_t(n,f,""),n),t}function $(t){return"end"===t?"start":"start"===t?"end":t}function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tt.indexOf(t),i=Tt.slice(n+1).concat(Tt.slice(0,n));return e?i.reverse():i}function tt(t,e){if(P(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=S(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=I(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case wt.FLIP:s=[i,r];break;case wt.CLOCKWISE:s=J(i);break;case wt.COUNTERCLOCKWISE:s=J(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=I(i);var u=t.offsets.popper,c=t.offsets.reference,h=Math.floor,d="left"===i&&h(u.right)>h(c.left)||"right"===i&&h(u.left)h(c.top)||"bottom"===i&&h(u.top)h(n.right),p=h(u.top)h(n.bottom),_="left"===i&&f||"right"===i&&m||"top"===i&&p||"bottom"===i&&g,v=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(v&&"start"===o&&f||v&&"end"===o&&m||!v&&"start"===o&&p||!v&&"end"===o&&g),E=!!e.flipVariationsByContent&&(v&&"start"===o&&m||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&p),T=y||E;(d||_||T)&&(t.flipped=!0,(d||_)&&(i=s[l+1]),T&&(o=$(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=vt({},t.offsets.popper,A(t.instance.popper,t.offsets.reference,t.placement)),t=k(t.instance.modifiers,t,"flip"))}),t}function et(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}function nt(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return _(a)[e]/100*o}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function it(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(N(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return nt(t,r,e,n)})}),u.forEach(function(t,e){t.forEach(function(n,i){j(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}function rt(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=j(+n)?[+n,0]:it(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function ot(t,e){var n=e.boundariesElement||l(t.instance.popper);t.instance.reference===n&&(n=l(n));var i=H("transform"),r=t.instance.popper.style,o=r.top,s=r.left,a=r[i];r.top="",r.left="",r[i]="";var u=S(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=s,r[i]=a,e.boundaries=u;var c=e.priority,h=t.offsets.popper,d={primary:function(t){var n=h[t];return h[t]u[t]&&!e.escapeWithReference&&(i=Math.min(h[n],u[t]-("right"===t?h.width:h.height))),_t({},n,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=vt({},h,d[e](t))}),t.offsets.popper=h,t}function st(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:_t({},l,o[l]),end:_t({},l,o[l]+o[u]-s[u])};t.offsets.popper=vt({},s,c[i])}return t}function at(t){if(!Z(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=N(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right=0)return 1;return 0}(),ht=ut&&window.Promise,dt=ht?t:e,ft=ut&&!(!window.MSInputMethodContext||!document.documentMode),mt=ut&&/MSIE 10/.test(navigator.userAgent),pt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},gt=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};pt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=dt(this.update.bind(this)),this.options=vt({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(vt({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){r.options.modifiers[e]=vt({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return vt({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&n(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return gt(t,[{key:"update",value:function(){return L.call(this)}},{key:"destroy",value:function(){return R.call(this)}},{key:"enableEventListeners",value:function(){return F.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),t}();return Dt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Dt.placements=Et,Dt.Defaults=bt,Dt}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.PopperUtils={})}(this,function(t){"use strict";function e(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,i=n.getComputedStyle(t,null);return e?i[e]:i}function n(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function i(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),o=r.overflow,s=r.overflowX;return/(auto|scroll|overlay)/.test(o+r.overflowY+s)?t:i(n(t))}function r(t){return t&&t.referenceNode?t.referenceNode:t}function o(t){return 11===t?q:10===t?K:q||K}function s(t){if(!t)return document.documentElement;for(var n=o(10)?document.body:null,i=t.offsetParent||null;i===n&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===e(i,"position")?s(i):i:t?t.ownerDocument.documentElement:document.documentElement}function a(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||s(t.firstElementChild)===t)}function l(t){return null!==t.parentNode?l(t.parentNode):t}function u(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var c=o.commonAncestorContainer;if(t!==c&&e!==c||i.contains(r))return a(c)?c:s(c);var h=l(t);return h.host?u(h.host,e):u(t,l(e).host)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[n]}return t[n]}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(e,"top"),r=c(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function d(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function f(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],o(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function m(t){var e=t.body,n=t.documentElement,i=o(10)&&getComputedStyle(n);return{height:f("Height",e,n,i),width:f("Width",e,n,i)}}function p(t){return z({},t,{right:t.left+t.width,bottom:t.top+t.height})}function g(t){var n={};try{if(o(10)){n=t.getBoundingClientRect();var i=c(t,"top"),r=c(t,"left");n.top+=i,n.left+=r,n.bottom+=i,n.right+=r}else n=t.getBoundingClientRect()}catch(t){}var s={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},a="HTML"===t.nodeName?m(t.ownerDocument):{},l=a.width||t.clientWidth||s.width,u=a.height||t.clientHeight||s.height,h=t.offsetWidth-l,f=t.offsetHeight-u;if(h||f){var g=e(t);h-=d(g,"x"),f-=d(g,"y"),s.width-=h,s.height-=f}return p(s)}function _(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=o(10),a="HTML"===n.nodeName,l=g(t),u=g(n),c=i(t),d=e(n),f=parseFloat(d.borderTopWidth,10),m=parseFloat(d.borderLeftWidth,10);r&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var _=p({top:l.top-u.top-f,left:l.left-u.left-m,width:l.width,height:l.height});if(_.marginTop=0,_.marginLeft=0,!s&&a){var v=parseFloat(d.marginTop,10),y=parseFloat(d.marginLeft,10);_.top-=f-v,_.bottom-=f-v,_.left-=m-y,_.right-=m-y,_.marginTop=v,_.marginLeft=y}return(s&&!r?n.contains(c):n===c&&"BODY"!==c.nodeName)&&(_=h(_,n)),_}function v(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=_(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:c(n),a=e?0:c(n,"left");return p({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o})}function y(t){var i=t.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===e(t,"position"))return!0;var r=n(t);return!!r&&y(r)}function E(t){if(!t||!t.parentElement||o())return document.documentElement;for(var n=t.parentElement;n&&"none"===e(n,"transform");)n=n.parentElement;return n||document.documentElement}function T(t,e,o,s){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=a?E(t):u(t,r(e));if("viewport"===s)l=v(c,a);else{var h=void 0;"scrollParent"===s?(h=i(n(e)),"BODY"===h.nodeName&&(h=t.ownerDocument.documentElement)):h="window"===s?t.ownerDocument.documentElement:s;var d=_(h,c,a);if("HTML"!==h.nodeName||y(c))l=d;else{var f=m(t.ownerDocument),p=f.height,g=f.width;l.top+=d.top-d.marginTop,l.bottom=p+d.top,l.left+=d.left-d.marginLeft,l.right=g+d.left}}o=o||0;var T="number"==typeof o;return l.left+=T?o:o.left||0,l.top+=T?o:o.top||0,l.right-=T?o:o.right||0,l.bottom-=T?o:o.bottom||0,l}function w(t){return t.width*t.height}function S(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=T(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return z({key:t},a[t],{area:w(a[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,h=t.split("-")[1];return c+(h?"-"+h:"")}function b(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function D(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Q))}}function O(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function C(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=O(t,function(t){return t[e]===n});return t.indexOf(i)}function I(t){var e=void 0;if("HTML"===t.nodeName){var n=m(t.ownerDocument);e={width:n.width,height:n.height,left:0,top:0}}else e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return p(e)}function A(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+i}}function N(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function M(t,e,n){n=n.split("-")[0];var i=A(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[u]:e[N(a)],r}function k(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(n,i?E(e):u(e,r(n)),i)}function L(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i=0)return 1;return 0}(),Z=B&&window.Promise,X=Z?b:D,$={computeAutoPlacement:S,debounce:X,findIndex:C,getBordersSize:d,getBoundaries:T,getBoundingClientRect:g,getClientRect:p,getOffsetParent:s,getOffsetRect:I,getOffsetRectRelativeToArbitraryNode:_,getOuterSizes:A,getParentNode:n,getPopperOffsets:M,getReferenceOffsets:k,getScroll:c,getScrollParent:i,getStyleComputedProperty:e,getSupportedPropertyName:L,getWindowSizes:m,isFixed:y,isFunction:P,isModifierEnabled:H,isModifierRequired:R,isNumeric:x,removeEventListeners:Y,runModifiers:F,setAttributes:U,setStyles:V,setupEventListeners:G};t.computeAutoPlacement=S,t.debounce=X,t.findIndex=C,t.getBordersSize=d,t.getBoundaries=T,t.getBoundingClientRect=g,t.getClientRect=p,t.getOffsetParent=s,t.getOffsetRect=I,t.getOffsetRectRelativeToArbitraryNode=_,t.getOuterSizes=A,t.getParentNode=n,t.getPopperOffsets=M,t.getReferenceOffsets=k,t.getScroll=c,t.getScrollParent=i,t.getStyleComputedProperty=e,t.getSupportedPropertyName=L,t.getWindowSizes=m,t.isFixed=y,t.isFunction=P,t.isModifierEnabled=H,t.isModifierRequired=R,t.isNumeric=x,t.removeEventListeners=Y,t.runModifiers=F,t.setAttributes=U,t.setStyles=V,t.setupEventListeners=G,t.default=$,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):(t=t||self,e(t.bootstrap={},t.jQuery,t.Popper))}(this,function(t,e,n){"use strict";function i(t,e){for(var n=0;n0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(M.NEXT)},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(M.PREV)},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(P.NEXT_PREV)&&(m.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(P.ACTIVE_ITEM);var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void e(this._element).one(k.SLID,function(){return n.to(t)}) ;if(i===t)return this.pause(),void this.cycle();var r=t>i?M.NEXT:M.PREV;this._slide(r,this._items[t])}},n.dispose=function(){e(this._element).off(C),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=s({},A,t),m.typeCheckConfig(O,t,N),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(k.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&e(this._element).on(k.MOUSEENTER,function(e){return t.pause(e)}).on(k.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&H[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX},r=function(e){t._pointerEvent&&H[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval))};e(this._element.querySelectorAll(P.ITEM_IMG)).on(k.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(e(this._element).on(k.POINTERDOWN,function(t){return n(t)}),e(this._element).on(k.POINTERUP,function(t){return r(t)}),this._element.classList.add(L.POINTER_EVENT)):(e(this._element).on(k.TOUCHSTART,function(t){return n(t)}),e(this._element).on(k.TOUCHMOVE,function(t){return i(t)}),e(this._element).on(k.TOUCHEND,function(t){return r(t)}))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(P.ITEM)):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===M.NEXT,i=t===M.PREV,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=t===M.PREV?-1:1,a=(r+s)%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),r=this._getItemIndex(this._element.querySelector(P.ACTIVE_ITEM)),o=e.Event(k.SLIDE,{relatedTarget:t,direction:n,from:r,to:i});return e(this._element).trigger(o),o},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(P.ACTIVE));e(n).removeClass(L.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass(L.ACTIVE)}},n._slide=function(t,n){var i,r,o,s=this,a=this._element.querySelector(P.ACTIVE_ITEM),l=this._getItemIndex(a),u=n||a&&this._getItemByDirection(t,a),c=this._getItemIndex(u),h=Boolean(this._interval);if(t===M.NEXT?(i=L.LEFT,r=L.NEXT,o=M.LEFT):(i=L.RIGHT,r=L.PREV,o=M.RIGHT),u&&e(u).hasClass(L.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&a&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u);var d=e.Event(k.SLID,{relatedTarget:u,direction:o,from:l,to:c});if(e(this._element).hasClass(L.SLIDE)){e(u).addClass(r),m.reflow(u),e(a).addClass(i),e(u).addClass(i);var f=parseInt(u.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var p=m.getTransitionDurationFromElement(a);e(a).one(m.TRANSITION_END,function(){e(u).removeClass(i+" "+r).addClass(L.ACTIVE),e(a).removeClass(L.ACTIVE+" "+r+" "+i),s._isSliding=!1,setTimeout(function(){return e(s._element).trigger(d)},0)}).emulateTransitionEnd(p)}else e(a).removeClass(L.ACTIVE),e(u).addClass(L.ACTIVE),this._isSliding=!1,e(this._element).trigger(d);h&&this.cycle()}},t._jQueryInterface=function(n){return this.each(function(){var i=e(this).data("bs.carousel"),r=s({},A,e(this).data());"object"==typeof n&&(r=s({},r,n));var o="string"==typeof n?n:r.slide;if(i||(i=new t(this,r),e(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof o){if(void 0===i[o])throw new TypeError('No method named "'+o+'"');i[o]()}else r.interval&&r.ride&&(i.pause(),i.cycle())})},t._dataApiClickHandler=function(n){var i=m.getSelectorFromElement(this);if(i){var r=e(i)[0];if(r&&e(r).hasClass(L.CAROUSEL)){var o=s({},e(r).data(),e(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(e(r),o),a&&e(r).data("bs.carousel").to(a),n.preventDefault()}}},r(t,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return A}}]),t}();e(document).on(k.CLICK_DATA_API,P.DATA_SLIDE,R._dataApiClickHandler),e(window).on(k.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(P.DATA_RIDE)),n=0,i=t.length;n0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass(V.SHOW)?this.hide():this.show()},n.show=function(){var n=this;if(!this._isTransitioning&&!e(this._element).hasClass(V.SHOW)){var i,r;if(this._parent&&(i=[].slice.call(this._parent.querySelectorAll(G.ACTIVES)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(V.COLLAPSE)}),0===i.length&&(i=null)),!(i&&(r=e(i).not(this._selector).data("bs.collapse"))&&r._isTransitioning)){var o=e.Event(U.SHOW);if(e(this._element).trigger(o),!o.isDefaultPrevented()){i&&(t._jQueryInterface.call(e(i).not(this._selector),"hide"),r||e(i).data("bs.collapse",null));var s=this._getDimension();e(this._element).removeClass(V.COLLAPSE).addClass(V.COLLAPSING),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(V.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var a=function(){e(n._element).removeClass(V.COLLAPSING).addClass(V.COLLAPSE).addClass(V.SHOW),n._element.style[s]="",n.setTransitioning(!1),e(n._element).trigger(U.SHOWN)},l=s[0].toUpperCase()+s.slice(1),u="scroll"+l,c=m.getTransitionDurationFromElement(this._element);e(this._element).one(m.TRANSITION_END,a).emulateTransitionEnd(c),this._element.style[s]=this._element[u]+"px"}}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(V.SHOW)){var n=e.Event(U.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",m.reflow(this._element),e(this._element).addClass(V.COLLAPSING).removeClass(V.COLLAPSE).removeClass(V.SHOW);var r=this._triggerArray.length;if(r>0)for(var o=0;o0},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},t._jQueryInterface=function(n){return this.each(function(){var i=e(this).data("bs.dropdown"),r="object"==typeof n?n:null;if(i||(i=new t(this,r),e(this).data("bs.dropdown",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll(X.DATA_TOGGLE)),r=0,o=i.length;r0&&a--,40===n.which&&adocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ht},Tt={SHOW:"show",OUT:"out"},wt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},St={FADE:"fade",SHOW:"show"},bt={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},Dt={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},Ot=function(){function t(t,e){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var i=t.prototype;return i.enable=function(){this._isEnabled=!0},i.disable=function(){this._isEnabled=!1},i.toggleEnabled=function(){this._isEnabled=!this._isEnabled},i.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass(St.SHOW))return void this._leave(null,this);this._enter(null,this)}},i.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},i.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var r=m.findShadowRoot(this.element),o=e.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!o)return;var s=this.getTipElement(),a=m.getUID(this.constructor.NAME);s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(s).addClass(St.FADE);var l="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=this._getContainer();e(s).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(s).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,s,{placement:u,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:bt.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),e(s).addClass(St.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var h=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===Tt.OUT&&t._leave(null,t)};if(e(this.tip).hasClass(St.FADE)){ var d=m.getTransitionDurationFromElement(this.tip);e(this.tip).one(m.TRANSITION_END,h).emulateTransitionEnd(d)}else h()}},i.hide=function(t){var n=this,i=this.getTipElement(),r=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==Tt.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(r),!r.isDefaultPrevented()){if(e(i).removeClass(St.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Dt.CLICK]=!1,this._activeTrigger[Dt.FOCUS]=!1,this._activeTrigger[Dt.HOVER]=!1,e(this.tip).hasClass(St.FADE)){var s=m.getTransitionDurationFromElement(i);e(i).one(m.TRANSITION_END,o).emulateTransitionEnd(s)}else o();this._hoverState=""}},i.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},i.isWithContent=function(){return Boolean(this.getTitle())},i.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},i.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},i.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(bt.TOOLTIP_INNER)),this.getTitle()),e(t).removeClass(St.FADE+" "+St.SHOW)},i.setElementContent=function(t,n){if("object"==typeof n&&(n.nodeType||n.jquery))return void(this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()));this.config.html?(this.config.sanitize&&(n=d(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n)},i.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},i._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},i._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},i._getAttachment=function(t){return yt[t.toUpperCase()]},i._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==Dt.MANUAL){var i=n===Dt.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=n===Dt.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(r,t.config.selector,function(e){return t._leave(e)})}}),e(this.element).closest(".modal").on("hide.bs.modal",function(){t.element&&t.hide()}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},i._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},i._enter=function(t,n){var i=this.constructor.DATA_KEY;return n=n||e(t.currentTarget).data(i),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?Dt.FOCUS:Dt.HOVER]=!0),e(n.getTipElement()).hasClass(St.SHOW)||n._hoverState===Tt.SHOW?void(n._hoverState=Tt.SHOW):(clearTimeout(n._timeout),n._hoverState=Tt.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===Tt.SHOW&&n.show()},n.config.delay.show)):void n.show())},i._leave=function(t,n){var i=this.constructor.DATA_KEY;if(n=n||e(t.currentTarget).data(i),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?Dt.FOCUS:Dt.HOVER]=!1),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=Tt.OUT,!n.config.delay||!n.config.delay.hide)return void n.hide();n._timeout=setTimeout(function(){n._hoverState===Tt.OUT&&n.hide()},n.config.delay.hide)}},i._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},i._getConfig=function(t){var n=e(this.element).data();return Object.keys(n).forEach(function(t){-1!==_t.indexOf(t)&&delete n[t]}),t=s({},this.constructor.Default,n,"object"==typeof t&&t?t:{}),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(mt,t,this.constructor.DefaultType),t.sanitize&&(t.template=d(t.template,t.whiteList,t.sanitizeFn)),t},i._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},i._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(gt);null!==n&&n.length&&t.removeClass(n.join(""))},i._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},i._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(St.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each(function(){var i=e(this).data("bs.tooltip"),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,r),e(this).data("bs.tooltip",i)),"string"==typeof n)){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Et}},{key:"NAME",get:function(){return mt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return wt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return vt}}]),t}();e.fn[mt]=Ot._jQueryInterface,e.fn[mt].Constructor=Ot,e.fn[mt].noConflict=function(){return e.fn[mt]=pt,Ot._jQueryInterface};var Ct="popover",It=e.fn[Ct],At=new RegExp("(^|\\s)bs-popover\\S+","g"),Nt=s({},Ot.Default,{placement:"right",trigger:"click",content:"",template:''}),Mt=s({},Ot.DefaultType,{content:"(string|element|function)"}),kt={FADE:"fade",SHOW:"show"},Lt={TITLE:".popover-header",CONTENT:".popover-body"},Pt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Ht=function(t){function n(){return t.apply(this,arguments)||this}a(n,t);var i=n.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},i.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},i.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(Lt.TITLE),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(Lt.CONTENT),n),t.removeClass(kt.FADE+" "+kt.SHOW)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(At);null!==n&&n.length>0&&t.removeClass(n.join(""))},n._jQueryInterface=function(t){return this.each(function(){var i=e(this).data("bs.popover"),r="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new n(this,r),e(this).data("bs.popover",i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Nt}},{key:"NAME",get:function(){return Ct}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Pt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Mt}}]),n}(Ot);e.fn[Ct]=Ht._jQueryInterface,e.fn[Ct].Constructor=Ht,e.fn[Ct].noConflict=function(){return e.fn[Ct]=It,Ht._jQueryInterface};var Rt="scrollspy",xt=e.fn[Rt],Wt={offset:10,method:"auto",target:""},Yt={offset:"number",method:"string",target:"(string|element)"},Ft={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Ut={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},Vt={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},jt={OFFSET:"offset",POSITION:"position"},Gt=function(){function t(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+Vt.NAV_LINKS+","+this._config.target+" "+Vt.LIST_ITEMS+","+this._config.target+" "+Vt.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(Ft.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?jt.OFFSET:jt.POSITION,i="auto"===this._config.method?n:this._config.method,r=i===jt.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var n,o=m.getSelectorFromElement(t);if(o&&(n=document.querySelector(o)),n){var s=n.getBoundingClientRect();if(s.width||s.height)return[e(n)[i]().top+r,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if(t=s({},Wt,"object"==typeof t&&t?t:{}),"string"!=typeof t.target){var n=e(t.target).attr("id");n||(n=m.getUID(Rt),e(t.target).attr("id",n)),t.target="#"+n}return m.typeCheckConfig(Rt,t,Yt),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];return void(this._activeTarget!==i&&this._activate(i))}if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length,o=r;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},Qt=function(){function t(t){this._element=t}var n=t.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(Kt.ACTIVE)||e(this._element).hasClass(Kt.DISABLED))){var n,i,r=e(this._element).closest(zt.NAV_LIST_GROUP)[0],o=m.getSelectorFromElement(this._element);if(r){var s="UL"===r.nodeName||"OL"===r.nodeName?zt.ACTIVE_UL:zt.ACTIVE;i=e.makeArray(e(r).find(s)),i=i[i.length-1]}var a=e.Event(qt.HIDE,{relatedTarget:this._element}),l=e.Event(qt.SHOW,{relatedTarget:i});if(i&&e(i).trigger(a),e(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,r);var u=function(){var n=e.Event(qt.HIDDEN,{relatedTarget:t._element}),r=e.Event(qt.SHOWN,{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(r)};n?this._activate(n,n.parentNode,u):u()}}},n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,i){var r=this,o=!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(zt.ACTIVE):e(n).find(zt.ACTIVE_UL),s=o[0],a=i&&s&&e(s).hasClass(Kt.FADE),l=function(){return r._transitionComplete(t,s,i)};if(s&&a){var u=m.getTransitionDurationFromElement(s);e(s).removeClass(Kt.SHOW).one(m.TRANSITION_END,l).emulateTransitionEnd(u)}else l()},n._transitionComplete=function(t,n,i){if(n){e(n).removeClass(Kt.ACTIVE);var r=e(n.parentNode).find(zt.DROPDOWN_ACTIVE_CHILD)[0];r&&e(r).removeClass(Kt.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(Kt.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains(Kt.FADE)&&t.classList.add(Kt.SHOW),t.parentNode&&e(t.parentNode).hasClass(Kt.DROPDOWN_MENU)){var o=e(t).closest(zt.DROPDOWN)[0];if(o){var s=[].slice.call(o.querySelectorAll(zt.DROPDOWN_TOGGLE));e(s).addClass(Kt.ACTIVE)}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),r=i.data("bs.tab");if(r||(r=new t(this),i.data("bs.tab",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),t}();e(document).on(qt.CLICK_DATA_API,zt.DATA_TOGGLE,function(t){t.preventDefault(),Qt._jQueryInterface.call(e(this),"show")}),e.fn.tab=Qt._jQueryInterface,e.fn.tab.Constructor=Qt,e.fn.tab.noConflict=function(){return e.fn.tab=Bt,Qt._jQueryInterface};var Zt=e.fn.toast,Xt={CLICK_DISMISS:"click.dismiss.bs.toast",HIDE:"hide.bs.toast",HIDDEN:"hidden.bs.toast",SHOW:"show.bs.toast",SHOWN:"shown.bs.toast"},$t={FADE:"fade",HIDE:"hide",SHOW:"show",SHOWING:"showing"},Jt={animation:"boolean",autohide:"boolean",delay:"number"},te={animation:!0,autohide:!0,delay:500},ee={DATA_DISMISS:'[data-dismiss="toast"]'},ne=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this;e(this._element).trigger(Xt.SHOW),this._config.animation&&this._element.classList.add($t.FADE);var n=function(){t._element.classList.remove($t.SHOWING),t._element.classList.add($t.SHOW),e(t._element).trigger(Xt.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove($t.HIDE),this._element.classList.add($t.SHOWING),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);e(this._element).one(m.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},n.hide=function(t){var n=this;this._element.classList.contains($t.SHOW)&&(e(this._element).trigger(Xt.HIDE),t?this._close():this._timeout=setTimeout(function(){n._close()},this._config.delay))},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains($t.SHOW)&&this._element.classList.remove($t.SHOW),e(this._element).off(Xt.CLICK_DISMISS),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=s({},te,e(this._element).data(),"object"==typeof t&&t?t:{}),m.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on(Xt.CLICK_DISMISS,ee.DATA_DISMISS,function(){return t.hide(!0)})},n._close=function(){var t=this,n=function(){t._element.classList.add($t.HIDE),e(t._element).trigger(Xt.HIDDEN)};if(this._element.classList.remove($t.SHOW),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);e(this._element).one(m.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),r=i.data("bs.toast"),o="object"==typeof n&&n;if(r||(r=new t(this,o),i.data("bs.toast",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n](this)}})},r(t,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Jt}},{key:"Default",get:function(){return te}}]),t}();e.fn.toast=ne._jQueryInterface,e.fn.toast.Constructor=ne,e.fn.toast.noConflict=function(){return e.fn.toast=Zt,ne._jQueryInterface},function(){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=m,t.Alert=E,t.Button=D,t.Carousel=R,t.Collapse=B,t.Dropdown=et,t.Modal=lt,t.Popover=Ht,t.Scrollspy=Gt,t.Tab=Qt,t.Toast=ne,t.Tooltip=Ot,Object.defineProperty(t,"__esModule",{value:!0})});