PageSourceSearch

https://neacac.net/app/default/assets/public/theme.js?v=1781073948

js neacac.net collected 2026-10-07 21:46:58 UTC 259,255 bytes, 2,576 lines download raw bytes

1/*!
2  * Bootstrap v4.1.3 (https://getbootstrap.com/)
3  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5  */
6!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):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,h){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n,i;e=r,i=o[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return r}e=e&&e.hasOwnProperty("default")?e.default:e,h=h&&h.hasOwnProperty("default")?h.default:h;var r,n,o,a,c,u,f,d,g,_,m,p,v,y,E,C,T,b,S,I,A,D,w,N,O,k,P,j,H,L,R,x,W,U,q,F,K,M,Q,B,V,Y,z,J,Z,G,$,X,tt,et,nt,it,rt,ot,st,at,lt,ct,ht,ut,ft,dt,gt,_t,mt,pt,vt,yt,Et,Ct,Tt,bt,St,It,At,Dt,wt,Nt,Ot,kt,Pt,jt,Ht,Lt,Rt,xt,Wt,Ut,qt,Ft,Kt,Mt,Qt,Bt,Vt,Yt,zt,Jt,Zt,Gt,$t,Xt,te,ee,ne,ie,re,oe,se,ae,le,ce,he,ue,fe,de,ge,_e,me,pe,ve,ye,Ee,Ce,Te,be,Se,Ie,Ae,De,we,Ne,Oe,ke,Pe,je,He,Le,Re,xe,We,Ue,qe,Fe,Ke,Me,Qe,Be,Ve,Ye,ze,Je,Ze,Ge,$e,Xe,tn,en,nn,rn,on,sn,an,ln,cn,hn,un,fn,dn,gn,_n,mn,pn,vn,yn,En,Cn,Tn,bn,Sn,In,An,Dn,wn,Nn,On,kn,Pn,jn,Hn,Ln,Rn,xn,Wn,Un,qn,Fn=function(i){var e="transitionend";function t(t){var e=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(e)},t),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i(t).css("transition-duration");return parseFloat(e)?(e=e.split(",")[0],1e3*parseFloat(e)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=e[i],s=o&&l.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var a}};return i.fn.emulateTransitionEnd=t,i.event.special[l.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},l}(e),Kn=(n="alert",a="."+(o="bs.alert"),c=(r=e).fn[n],u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",g="show",_=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){r.removeData(this._element,o),this._element=null},t._getRootElement=function(t){var e=Fn.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=r.Event(u.CLOSE);return r(t).trigger(e),e},t._removeElement=function(e){var n=this;if(r(e).removeClass(g),r(e).hasClass(d)){var t=Fn.getTransitionDurationFromElement(e);r(e).one(Fn.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){r(t).detach().trigger(u.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=r(this),e=t.data(o);e||(e=new i(this),t.data(o,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),r(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',_._handleDismiss(new _)),r.fn[n]=_._jQueryInterface,r.fn[n].
6Constructor=_,r.fn[n].noConflict=function(){return r.fn[n]=c,_._jQueryInterface},_),Mn=(p="button",y="."+(v="bs.button"),E=".data-api",C=(m=e).fn[p],T="active",b="btn",I='[data-toggle^="button"]',A='[data-toggle="buttons"]',D="input",w=".active",N=".btn",O={CLICK_DATA_API:"click"+y+E,FOCUS_BLUR_DATA_API:(S="focus")+y+E+" blur"+y+E},k=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=m(this._element).closest(A)[0];if(n){var i=this._element.querySelector(D);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(T))t=!1;else{var r=n.querySelector(w);r&&m(r).removeClass(T)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(T),m(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(T)),t&&m(this._element).toggleClass(T)},t.dispose=function(){m.removeData(this._element,v),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=m(this).data(v);t||(t=new n(this),m(this).data(v,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),n}(),m(document).on(O.CLICK_DATA_API,I,function(t){t.preventDefault();var e=t.target;m(e).hasClass(b)||(e=m(e).closest(N)),k._jQueryInterface.call(m(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,I,function(t){var e=m(t.target).closest(N)[0];m(e).toggleClass(S,/^focus(in)?$/.test(t.type))}),m.fn[p]=k._jQueryInterface,m.fn[p].Constructor=k,m.fn[p].noConflict=function(){return m.fn[p]=C,k._jQueryInterface},k),Qn=(j="carousel",L="."+(H="bs.carousel"),R=".data-api",x=(P=e).fn[j],W={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},q="next",F="prev",K="left",M="right",Q={SLIDE:"slide"+L,SLID:"slid"+L,KEYDOWN:"keydown"+L,MOUSEENTER:"mouseenter"+L,MOUSELEAVE:"mouseleave"+L,TOUCHEND:"touchend"+L,LOAD_DATA_API:"load"+L+R,CLICK_DATA_API:"click"+L+R},B="carousel",V="active",Y="slide",z="carousel-item-right",J="carousel-item-left",Z="carousel-item-next",G="carousel-item-prev",$=".active",X=".active.carousel-item",tt=".carousel-item",et=".carousel-item-next, .carousel-item-prev",nt=".carousel-indicators",it="[data-slide], [data-slide-to]",rt='[data-ride="carousel"]',ot=function(){function o(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=P(t)[0],this._indicatorsElement=this._element.querySelector(nt),this._addEventListeners()}var t=o.prototype;return t.next=function(){this._isSliding||this._slide(q)},t.nextWhenVisible=function(){!document.hidden&&P(this._element).is(":visible")&&"hidden"!==P(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(F)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(et)&&(Fn.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.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))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(X);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)P(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?q:F;this._slide(i,this._items[t])}},t.dispose=function(){P(this._element).off(L),P.removeData(this._element,H),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},W,t),Fn.typeCheckConfig(j,t,U),t},t._addEventListeners=function(){var e=this;this._config.keyboard&&P(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(P(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&P(this._element).on(Q.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},t._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()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(tt)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===q,i=t===F,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===F?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(X)),r=P.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return P(this._element).trigger(r),r},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll($));P(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&P(n).addClass(V)}},t._slide=function(t,e){var n,i,r,o=this,s=this._element.querySelector(X),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(t===q?(n=J,i=Z,r=K):(n=z,i=G,r=M),l&&P(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=P.Event(Q.SLID,{relatedTarget:l,direction:r,from:a,to:c});if(P(this._element).hasClass(Y)){P(l).addClass(i),Fn.reflow(l),P(s).addClass(n),P(l).addClass(n);var f=Fn.getTransitionDurationFromElement(s);P(s).one(Fn.TRANSITION_END,function(){P(l).removeClass(n+" "+i).addClass(V),P(s).removeClass(V+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return P(o._element).trigger(u)},0)}).emulateTransitionEnd(f)}else P(s).removeClass(V),P(l).addClass(V),this._isSliding=!1,P(this._element).trigger(u);h&&this.cycle()}},o._jQueryInterface=function(i){return this.each(function(){var t=P(this).data(H),e=l({},W,P(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new o(this,e),P(this).data(H,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
6amed "'+n+'"');t[n]()}else e.interval&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function(t){var e=Fn.getSelectorFromElement(this);if(e){var n=P(e)[0];if(n&&P(n).hasClass(B)){var i=l({},P(n).data(),P(this).data()),r=this.getAttribute("data-slide-to");r&&(i.interval=!1),o._jQueryInterface.call(P(n),i),r&&P(n).data(H).to(r),t.preventDefault()}}},s(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return W}}]),o}(),P(document).on(Q.CLICK_DATA_API,it,ot._dataApiClickHandler),P(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(rt)),e=0,n=t.length;e<n;e++){var i=P(t[e]);ot._jQueryInterface.call(i,i.data())}}),P.fn[j]=ot._jQueryInterface,P.fn[j].Constructor=ot,P.fn[j].noConflict=function(){return P.fn[j]=x,ot._jQueryInterface},ot),Bn=(at="collapse",ct="."+(lt="bs.collapse"),ht=(st=e).fn[at],ut={toggle:!0,parent:""},ft={toggle:"boolean",parent:"(string|element)"},dt={SHOW:"show"+ct,SHOWN:"shown"+ct,HIDE:"hide"+ct,HIDDEN:"hidden"+ct,CLICK_DATA_API:"click"+ct+".data-api"},gt="show",_t="collapse",mt="collapsing",pt="collapsed",vt="width",yt="height",Et=".show, .collapsing",Ct='[data-toggle="collapse"]',Tt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=st.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Ct)),i=0,r=n.length;i<r;i++){var o=n[i],s=Fn.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(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 t=a.prototype;return t.toggle=function(){st(this._element).hasClass(gt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!st(this._element).hasClass(gt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Et)).filter(function(t){return t.getAttribute("data-parent")===n._config.parent})).length&&(t=null),!(t&&(e=st(t).not(this._selector).data(lt))&&e._isTransitioning))){var i=st.Event(dt.SHOW);if(st(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(st(t).not(this._selector),"hide"),e||st(t).data(lt,null));var r=this._getDimension();st(this._element).removeClass(_t).addClass(mt),this._element.style[r]=0,this._triggerArray.length&&st(this._triggerArray).removeClass(pt).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(r[0].toUpperCase()+r.slice(1)),s=Fn.getTransitionDurationFromElement(this._element);st(this._element).one(Fn.TRANSITION_END,function(){st(n._element).removeClass(mt).addClass(_t).addClass(gt),n._element.style[r]="",n.setTransitioning(!1),st(n._element).trigger(dt.SHOWN)}).emulateTransitionEnd(s),this._element.style[r]=this._element[o]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&st(this._element).hasClass(gt)){var e=st.Event(dt.HIDE);if(st(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",Fn.reflow(this._element),st(this._element).addClass(mt).removeClass(_t).removeClass(gt);var i=this._triggerArray.length;if(0<i)for(var r=0;r<i;r++){var o=this._triggerArray[r],s=Fn.getSelectorFromElement(o);if(null!==s)st([].slice.call(document.querySelectorAll(s))).hasClass(gt)||st(o).addClass(pt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=Fn.getTransitionDurationFromElement(this._element);st(this._element).one(Fn.TRANSITION_END,function(){t.setTransitioning(!1),st(t._element).removeClass(mt).addClass(_t).trigger(dt.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){st.removeData(this._element,lt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},ut,t)).toggle=Boolean(t.toggle),Fn.typeCheckConfig(at,t,ft),t},t._getDimension=function(){return st(this._element).hasClass(vt)?vt:yt},t._getParent=function(){var n=this,t=null;Fn.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return st(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){if(t){var n=st(t).hasClass(gt);e.length&&st(e).toggleClass(pt,!n).attr("aria-expanded",n)}},a._getTargetFromElement=function(t){var e=Fn.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=st(this),e=t.data(lt),n=l({},ut,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(lt,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method n
6amed "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ut}}]),a}(),st(document).on(dt.CLICK_DATA_API,Ct,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=st(this),e=Fn.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));st(i).each(function(){var t=st(this),e=t.data(lt)?"toggle":n.data();Tt._jQueryInterface.call(t,e)})}),st.fn[at]=Tt._jQueryInterface,st.fn[at].Constructor=Tt,st.fn[at].noConflict=function(){return st.fn[at]=ht,Tt._jQueryInterface},Tt),Vn=(St="dropdown",At="."+(It="bs.dropdown"),Dt=".data-api",wt=(bt=e).fn[St],Nt=new RegExp("38|40|27"),Ot={HIDE:"hide"+At,HIDDEN:"hidden"+At,SHOW:"show"+At,SHOWN:"shown"+At,CLICK:"click"+At,CLICK_DATA_API:"click"+At+Dt,KEYDOWN_DATA_API:"keydown"+At+Dt,KEYUP_DATA_API:"keyup"+At+Dt},kt="disabled",Pt="show",jt="dropup",Ht="dropright",Lt="dropleft",Rt="dropdown-menu-right",xt="position-static",Wt='[data-toggle="dropdown"]',Ut=".dropdown form",qt=".dropdown-menu",Ft=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Mt="top-start",Qt="top-end",Bt="bottom-start",Vt="bottom-end",Yt="right-start",zt="left-start",Jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Zt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Gt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!bt(this._element).hasClass(kt)){var t=c._getParentFromElement(this._element),e=bt(this._menu).hasClass(Pt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=bt.Event(Ot.SHOW,n);if(bt(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof h)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=t:Fn.isElement(this._config.reference)&&(r=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&bt(t).addClass(xt),this._popper=new h(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===bt(t).closest(Ft).length&&bt(document.body).children().on("mouseover",null,bt.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),bt(this._menu).toggleClass(Pt),bt(t).toggleClass(Pt).trigger(bt.Event(Ot.SHOWN,n))}}}},t.dispose=function(){bt.removeData(this._element,It),bt(this._element).off(At),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;bt(this._element).on(Ot.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,bt(this._element).data(),t),Fn.typeCheckConfig(St,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=bt(this._element.parentNode),e=Bt;return t.hasClass(jt)?(e=Mt,bt(this._menu).hasClass(Rt)&&(e=Qt)):t.hasClass(Ht)?e=Yt:t.hasClass(Lt)?e=zt:bt(this._menu).hasClass(Rt)&&(e=Vt),e},t._detectNavbar=function(){return 0<bt(this._element).closest(".navbar").length},t._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function(e){return this.each(function(){var t=bt(this).data(It);if(t||(t=new c(this,"object"==typeof e?e:null),bt(this).data(It,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method n
6amed "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Wt)),n=0,i=e.length;n<i;n++){var r=c._getParentFromElement(e[n]),o=bt(e[n]).data(It),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),o){var a=o._menu;if(bt(r).hasClass(Pt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&bt.contains(r,t.target))){var l=bt.Event(Ot.HIDE,s);bt(r).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&bt(document.body).children().off("mouseover",null,bt.noop),e[n].setAttribute("aria-expanded","false"),bt(a).removeClass(Pt),bt(r).removeClass(Pt).trigger(bt.Event(Ot.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=Fn.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||bt(t.target).closest(qt).length)):Nt.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!bt(this).hasClass(kt))){var e=c._getParentFromElement(this),n=bt(e).hasClass(Pt);if((n||27===t.which&&32===t.which)&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var r=i.indexOf(t.target);38===t.which&&0<r&&r--,40===t.which&&r<i.length-1&&r++,r<0&&(r=0),i[r].focus()}}else{if(27===t.which){var o=e.querySelector(Wt);bt(o).trigger("focus")}bt(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Jt}},{key:"DefaultType",get:function(){return Zt}}]),c}(),bt(document).on(Ot.KEYDOWN_DATA_API,Wt,Gt._dataApiKeydownHandler).on(Ot.KEYDOWN_DATA_API,qt,Gt._dataApiKeydownHandler).on(Ot.CLICK_DATA_API+" "+Ot.KEYUP_DATA_API,Gt._clearMenus).on(Ot.CLICK_DATA_API,Wt,function(t){t.preventDefault(),t.stopPropagation(),Gt._jQueryInterface.call(bt(this),"toggle")}).on(Ot.CLICK_DATA_API,Ut,function(t){t.stopPropagation()}),bt.fn[St]=Gt._jQueryInterface,bt.fn[St].Constructor=Gt,bt.fn[St].noConflict=function(){return bt.fn[St]=wt,Gt._jQueryInterface},Gt),Yn=(Xt="modal",ee="."+(te="bs.modal"),ne=($t=e).fn[Xt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},re={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},oe={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-scrollbar-measure",ae="modal-backdrop",le="modal-open",ce="fade",he="show",ue=".modal-dialog",fe='[data-toggle="modal"]',de='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_e=".sticky-top",me=function(){function r(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ue),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t=r.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){$t(this._element).hasClass(ce)&&(this._isTransitioning=!0);var n=$t.Event(oe.SHOW,{relatedTarget:t});$t(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),$t(document.body).addClass(le),this._setEscapeEvent(),this._setResizeEvent(),$t(this._element).on(oe.CLICK_DISMISS,de,function(t){return e.hide(t)}),$t(this._dialog).on(oe.MOUSEDOWN_DISMISS,function(){$t(e._element).one(oe.MOUSEUP_DISMISS,function(t){$t(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var n=$t.Event(oe.HIDE);if($t(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=$t(this._element).hasClass(ce);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),$t(document).off(oe.FOCUSIN),$t(this._element).removeClass(he),$t(this._element).off(oe.CLICK_DISMISS),$t(this._dialog).off(oe.MOUSEDOWN_DISMISS),i){var r=Fn.getTransitionDurationFromElement(this._element);$t(this._element).one(Fn.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(r)}else this._hideModal()}}},t.dispose=function(){$t.removeData(this._element,te),$t(window,document,this._element,this._backdrop).off(ee),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({}
6,ie,t),Fn.typeCheckConfig(Xt,t,re),t},t._showElement=function(t){var e=this,n=$t(this._element).hasClass(ce);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&Fn.reflow(this._element),$t(this._element).addClass(he),this._config.focus&&this._enforceFocus();var i=$t.Event(oe.SHOWN,{relatedTarget:t}),r=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,$t(e._element).trigger(i)};if(n){var o=Fn.getTransitionDurationFromElement(this._element);$t(this._dialog).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r()},t._enforceFocus=function(){var e=this;$t(document).off(oe.FOCUSIN).on(oe.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===$t(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?$t(this._element).on(oe.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||$t(this._element).off(oe.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?$t(window).on(oe.RESIZE,function(t){return e.handleUpdate(t)}):$t(window).off(oe.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){$t(document.body).removeClass(le),t._resetAdjustments(),t._resetScrollbar(),$t(t._element).trigger(oe.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&($t(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=$t(this._element).hasClass(ce)?ce:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ae,n&&this._backdrop.classList.add(n),$t(this._backdrop).appendTo(document.body),$t(this._element).on(oe.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&Fn.reflow(this._backdrop),$t(this._backdrop).addClass(he),!t)return;if(!n)return void t();var i=Fn.getTransitionDurationFromElement(this._backdrop);$t(this._backdrop).one(Fn.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){$t(this._backdrop).removeClass(he);var r=function(){e._removeBackdrop(),t&&t()};if($t(this._element).hasClass(ce)){var o=Fn.getTransitionDurationFromElement(this._backdrop);$t(this._backdrop).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var r=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(ge)),e=[].slice.call(document.querySelectorAll(_e));$t(t).each(function(t,e){var n=e.style.paddingRight,i=$t(e).css("padding-right");$t(e).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")}),$t(e).each(function(t,e){var n=e.style.marginRight,i=$t(e).css("margin-right");$t(e).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=$t(document.body).css("padding-right");$t(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(ge));$t(t).each(function(t,e){var n=$t(e).data("padding-right");$t(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+_e));$t(e).each(function(t,e){var n=$t(e).data("margin-right");"undefined"!=typeof n&&$t(e).css("margin-right",n).removeData("margin-right")});var n=$t(document.body).data("padding-right");$t(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=se,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},r._jQueryInterface=function(n,i){return this.each(function(){var t=$t(this).data(te),e=l({},ie,$t(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new r(this,e),$t(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
6amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ie}}]),r}(),$t(document).on(oe.CLICK_DATA_API,fe,function(t){var e,n=this,i=Fn.getSelectorFromElement(this);i&&(e=document.querySelector(i));var r=$t(e).data(te)?"toggle":l({},$t(e).data(),$t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=$t(e).one(oe.SHOW,function(t){t.isDefaultPrevented()||o.one(oe.HIDDEN,function(){$t(n).is(":visible")&&n.focus()})});me._jQueryInterface.call($t(e),r,this)}),$t.fn[Xt]=me._jQueryInterface,$t.fn[Xt].Constructor=me,$t.fn[Xt].noConflict=function(){return $t.fn[Xt]=ne,me._jQueryInterface},me),zn=(ve="tooltip",Ee="."+(ye="bs.tooltip"),Ce=(pe=e).fn[ve],Te="bs-tooltip",be=new RegExp("(^|\\s)"+Te+"\\S+","g"),Ae={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(Ie={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Se={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},we="out",Ne={HIDE:"hide"+Ee,HIDDEN:"hidden"+Ee,SHOW:(De="show")+Ee,SHOWN:"shown"+Ee,INSERTED:"inserted"+Ee,CLICK:"click"+Ee,FOCUSIN:"focusin"+Ee,FOCUSOUT:"focusout"+Ee,MOUSEENTER:"mouseenter"+Ee,MOUSELEAVE:"mouseleave"+Ee},Oe="fade",ke="show",Pe=".tooltip-inner",je=".arrow",He="hover",Le="focus",Re="click",xe="manual",We=function(){function i(t,e){if("undefined"==typeof h)throw new TypeError("Bootstrap 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 t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=pe(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(pe(this.getTipElement()).hasClass(ke))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),pe.removeData(this.element,this.constructor.DATA_KEY),pe(this.element).off(this.constructor.EVENT_KEY),pe(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&pe(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===pe(this.element).css("display"))throw new Error("Please use show on visible elements");var t=pe.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){pe(this.element).trigger(t);var n=pe.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=Fn.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&pe(i).addClass(Oe);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:pe(document).find(this.config.container);pe(i).data(this.constructor.DATA_KEY,this),pe.contains(this.element.ownerDocument.documentElement,this.tip)||pe(i).appendTo(a),pe(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:je}
6,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),pe(i).addClass(ke),"ontouchstart"in document.documentElement&&pe(document.body).children().on("mouseover",null,pe.noop);var l=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,pe(e.element).trigger(e.constructor.Event.SHOWN),t===we&&e._leave(null,e)};if(pe(this.tip).hasClass(Oe)){var c=Fn.getTransitionDurationFromElement(this.tip);pe(this.tip).one(Fn.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=pe.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==De&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),pe(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(pe(this.element).trigger(i),!i.isDefaultPrevented()){if(pe(n).removeClass(ke),"ontouchstart"in document.documentElement&&pe(document.body).children().off("mouseover",null,pe.noop),this._activeTrigger[Re]=!1,this._activeTrigger[Le]=!1,this._activeTrigger[He]=!1,pe(this.tip).hasClass(Oe)){var o=Fn.getTransitionDurationFromElement(n);pe(n).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){pe(this.getTipElement()).addClass(Te+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||pe(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(pe(t.querySelectorAll(Pe)),this.getTitle()),pe(t).removeClass(Oe+" "+ke)},t.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?pe(e).parent().is(t)||t.empty().append(e):t.text(pe(e).text()):t[n?"html":"text"](e)},t.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},t._getAttachment=function(t){return Ie[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)pe(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==xe){var e=t===He?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===He?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;pe(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}pe(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._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",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||pe(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Le:He]=!0),pe(e.getTipElement()).hasClass(ke)||e._hoverState===De?e._hoverState=De:(clearTimeout(e._timeout),e._hoverState=De,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===De&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||pe(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Le:He]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=we,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===we&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){return"number"==typeof(t=l({},this.constructor.Default,pe(this.element).data(),"object"==typeof t&&t?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()),Fn.typeCheckConfig(ve,t,this.constructor.DefaultType),t},t._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},t._cleanTipClass=function(){var t=pe(this.getTipElement()),e=t.attr("class").match(be);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(pe(t).removeClass(Oe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=pe(this).data(ye),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),pe(this).data(ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method n
6amed "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ae}},{key:"NAME",get:function(){return ve}},{key:"DATA_KEY",get:function(){return ye}},{key:"Event",get:function(){return Ne}},{key:"EVENT_KEY",get:function(){return Ee}},{key:"DefaultType",get:function(){return Se}}]),i}(),pe.fn[ve]=We._jQueryInterface,pe.fn[ve].Constructor=We,pe.fn[ve].noConflict=function(){return pe.fn[ve]=Ce,We._jQueryInterface},We),Jn=(qe="popover",Ke="."+(Fe="bs.popover"),Me=(Ue=e).fn[qe],Qe="bs-popover",Be=new RegExp("(^|\\s)"+Qe+"\\S+","g"),Ve=l({},zn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ye=l({},zn.DefaultType,{content:"(string|element|function)"}),ze="fade",Ze=".popover-header",Ge=".popover-body",$e={HIDE:"hide"+Ke,HIDDEN:"hidden"+Ke,SHOW:(Je="show")+Ke,SHOWN:"shown"+Ke,INSERTED:"inserted"+Ke,CLICK:"click"+Ke,FOCUSIN:"focusin"+Ke,FOCUSOUT:"focusout"+Ke,MOUSEENTER:"mouseenter"+Ke,MOUSELEAVE:"mouseleave"+Ke},Xe=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){Ue(this.getTipElement()).addClass(Qe+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||Ue(this.config.template)[0],this.tip},r.setContent=function(){var t=Ue(this.getTipElement());this.setElementContent(t.find(Ze),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Ge),e),t.removeClass(ze+" "+Je)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=Ue(this.getTipElement()),e=t.attr("class").match(Be);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=Ue(this).data(Fe),e="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new i(this,e),Ue(this).data(Fe,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ve}},{key:"NAME",get:function(){return qe}},{key:"DATA_KEY",get:function(){return Fe}},{key:"Event",get:function(){return $e}},{key:"EVENT_KEY",get:function(){return Ke}},{key:"DefaultType",get:function(){return Ye}}]),i}(zn),Ue.fn[qe]=Xe._jQueryInterface,Ue.fn[qe].Constructor=Xe,Ue.fn[qe].noConflict=function(){return Ue.fn[qe]=Me,Xe._jQueryInterface},Xe),Zn=(en="scrollspy",rn="."+(nn="bs.scrollspy"),on=(tn=e).fn[en],sn={offset:10,method:"auto",target:""},an={offset:"number",method:"string",target:"(string|element)"},ln={ACTIVATE:"activate"+rn,SCROLL:"scroll"+rn,LOAD_DATA_API:"load"+rn+".data-api"},cn="dropdown-item",hn="active",un='[data-spy="scroll"]',fn=".active",dn=".nav, .list-group",gn=".nav-link",_n=".nav-item",mn=".list-group-item",pn=".dropdown",vn=".dropdown-item",yn=".dropdown-toggle",En="offset",Cn="position",Tn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+gn+","+this._config.target+" "+mn+","+this._config.target+" "+vn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,tn(this._scrollElement).on(ln.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?En:Cn,r="auto"===this._config.method?t:this._config.method,o=r===Cn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=Fn.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[tn(e)[r]().top+o,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
6).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){tn.removeData(this._element,nn),tn(this._scrollElement).off(rn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},sn,"object"==typeof t&&t?t:{})).target){var e=tn(t.target).attr("id");e||(e=Fn.getUID(en),tn(t.target).attr("id",e)),t.target="#"+e}return Fn.typeCheckConfig(en,t,an),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._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(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var n=tn([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(cn)?(n.closest(pn).find(yn).addClass(hn),n.addClass(hn)):(n.addClass(hn),n.parents(dn).prev(gn+", "+mn).addClass(hn),n.parents(dn).prev(_n).children(gn).addClass(hn)),tn(this._scrollElement).trigger(ln.ACTIVATE,{relatedTarget:e})},t._clear=function(){var t=[].slice.call(document.querySelectorAll(this._selector));tn(t).filter(fn).removeClass(hn)},n._jQueryInterface=function(e){return this.each(function(){var t=tn(this).data(nn);if(t||(t=new n(this,"object"==typeof e&&e),tn(this).data(nn,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return sn}}]),n}(),tn(window).on(ln.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(un)),e=t.length;e--;){var n=tn(t[e]);Tn._jQueryInterface.call(n,n.data())}}),tn.fn[en]=Tn._jQueryInterface,tn.fn[en].Constructor=Tn,tn.fn[en].noConflict=function(){return tn.fn[en]=on,Tn._jQueryInterface},Tn),Gn=(In="."+(Sn="bs.tab"),An=(bn=e).fn.tab,Dn={HIDE:"hide"+In,HIDDEN:"hidden"+In,SHOW:"show"+In,SHOWN:"shown"+In,CLICK_DATA_API:"click"+In+".data-api"},wn="dropdown-menu",Nn="active",On="disabled",kn="fade",Pn="show",jn=".dropdown",Hn=".nav, .list-group",Ln=".active",Rn="> li > .active",xn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Wn=".dropdown-toggle",Un="> .dropdown-menu .active",qn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&bn(this._element).hasClass(Nn)||bn(this._element).hasClass(On))){var t,i,e=bn(this._element).closest(Hn)[0],r=Fn.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName?Rn:Ln;i=(i=bn.makeArray(bn(e).find(o)))[i.length-1]}var s=bn.Event(Dn.HIDE,{relatedTarget:this._element}),a=bn.Event(Dn.SHOW,{relatedTarget:i});if(i&&bn(i).trigger(s),bn(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(t=document.querySelector(r)),this._activate(this._element,e);var l=function(){var t=bn.Event(Dn.HIDDEN,{relatedTarget:n._element}),e=bn.Event(Dn.SHOWN,{relatedTarget:i});bn(i).trigger(t),bn(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){bn.removeData(this._element,Sn),this._element=null}
6,t._activate=function(t,e,n){var i=this,r=("UL"===e.nodeName?bn(e).find(Rn):bn(e).children(Ln))[0],o=n&&r&&bn(r).hasClass(kn),s=function(){return i._transitionComplete(t,r,n)};if(r&&o){var a=Fn.getTransitionDurationFromElement(r);bn(r).one(Fn.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){bn(e).removeClass(Pn+" "+Nn);var i=bn(e.parentNode).find(Un)[0];i&&bn(i).removeClass(Nn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(bn(t).addClass(Nn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Fn.reflow(t),bn(t).addClass(Pn),t.parentNode&&bn(t.parentNode).hasClass(wn)){var r=bn(t).closest(jn)[0];if(r){var o=[].slice.call(r.querySelectorAll(Wn));bn(o).addClass(Nn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=bn(this),e=t.data(Sn);if(e||(e=new i(this),t.data(Sn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),bn(document).on(Dn.CLICK_DATA_API,xn,function(t){t.preventDefault(),qn._jQueryInterface.call(bn(this),"show")}),bn.fn.tab=qn._jQueryInterface,bn.fn.tab.Constructor=qn,bn.fn.tab.noConflict=function(){return bn.fn.tab=An,qn._jQueryInterface},qn);!function(t){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=Fn,t.Alert=Kn,t.Button=Mn,t.Carousel=Qn,t.Collapse=Bn,t.Dropdown=Vn,t.Modal=Yn,t.Popover=Jn,t.Scrollspy=Zn,t.Tab=Gn,t.Tooltip=zn,Object.defineProperty(t,"__esModule",{value:!0})});
7//# sourceMappingURL=bootstrap.min.js.map;
8(function(a){a.isScrollToFixed=function(b){return !!a(b).data("ScrollToFixed")};a.ScrollToFixed=function(d,i){var m=this;m.$el=a(d);m.el=d;m.$el.data("ScrollToFixed",m);var c=false;var H=m.$el;var I;var F;var k;var e;var z;var E=0;var r=0;var j=-1;var f=-1;var u=null;var A;var g;function v(){H.trigger("preUnfixed.ScrollToFixed");l();H.trigger("unfixed.ScrollToFixed");f=-1;E=H.offset().top;r=H.offset().left;if(m.options.offsets){r+=(H.offset().left-H.position().left)}if(j==-1){j=r}I=H.css("position");c=true;if(m.options.bottom!=-1){H.trigger("preFixed.ScrollToFixed");x();H.trigger("fixed.ScrollToFixed")}}function o(){var J=m.options.limit;if(!J){return 0}if(typeof(J)==="function"){return J.apply(H)}return J}function q(){return I==="fixed"}function y(){return I==="absolute"}function h(){return !(q()||y())}function x(){if(!q()){var J=H[0].getBoundingClientRect();u.css({display:H.css("display"),width:J.width,height:J.height,"float":H.css("float")});cssOptions={"z-index":m.options.zIndex,position:"fixed",top:m.options.bottom==-1?t():"",bottom:m.options.bottom==-1?"":m.options.bottom,"margin-left":"0px"};if(!m.options.dontSetWidth){cssOptions.width=H.css("width")}H.css(cssOptions);H.addClass(m.options.baseClassName);if(m.options.className){H.addClass(m.options.className)}I="fixed"}}function b(){var K=o();var J=r;if(m.options.removeOffsets){J="";K=K-E}cssOptions={position:"absolute",top:K,left:J,"margin-left":"0px",bottom:""};if(!m.options.dontSetWidth){cssOptions.width=H.css("width")}H.css(cssOptions);I="absolute"}function l(){if(!h()){f=-1;u.css("display","none");H.css({"z-index":z,width:"",position:F,left:"",top:e,"margin-left":""});H.removeClass("scroll-to-fixed-fixed");if(m.options.className){H.removeClass(m.options.className)}I=null}}function w(J){if(J!=f){H.css("left",r-J);f=J}}function t(){var J=m.options.marginTop;if(!J){return 0}if(typeof(J)==="function"){return J.apply(H)}return J}function B(){if(!a.isScrollToFixed(H)||H.is(":hidden")){return}var M=c;var L=h();if(!c){v()}else{if(h()){E=H.offset().top;r=H.offset().left}}var J=a(window).scrollLeft();var N=a(window).scrollTop();var K=o();if(m.options.minWidth&&a(window).width()<m.options.minWidth){if(!
8h()||!M){p();H.trigger("preUnfixed.ScrollToFixed");l();H.trigger("unfixed.ScrollToFixed")}}else{if(m.options.maxWidth&&a(window).width()>m.options.maxWidth){if(!h()||!M){p();H.trigger("preUnfixed.ScrollToFixed");l();H.trigger("unfixed.ScrollToFixed")}}else{if(m.options.bottom==-1){if(K>0&&N>=K-t()){if(!L&&(!y()||!M)){p();H.trigger("preAbsolute.ScrollToFixed");b();H.trigger("unfixed.ScrollToFixed")}}else{if(N>=E-t()){if(!q()||!M){p();H.trigger("preFixed.ScrollToFixed");x();f=-1;H.trigger("fixed.ScrollToFixed")}w(J)}else{if(!h()||!M){p();H.trigger("preUnfixed.ScrollToFixed");l();H.trigger("unfixed.ScrollToFixed")}}}}else{if(K>0){if(N+a(window).height()-H.outerHeight(true)>=K-(t()||-n())){if(q()){p();H.trigger("preUnfixed.ScrollToFixed");if(F==="absolute"){b()}else{l()}H.trigger("unfixed.ScrollToFixed")}}else{if(!q()){p();H.trigger("preFixed.ScrollToFixed");x()}w(J);H.trigger("fixed.ScrollToFixed")}}else{w(J)}}}}}function n(){if(!m.options.bottom){return 0}return m.options.bottom}function p(){var J=H.css("position");if(J=="absolute"){H.trigger("postAbsolute.ScrollToFixed")}else{if(J=="fixed"){H.trigger("postFixed.ScrollToFixed")}else{H.trigger("postUnfixed.ScrollToFixed")}}}var D=function(J){if(H.is(":visible")){c=false;B()}else{l()}};var G=function(J){(!!window.requestAnimationFrame)?requestAnimationFrame(B):B()};var C=function(){var K=document.body;if(document.createElement&&K&&K.appendChild&&K.removeChild){var M=document.createElement("div");if(!M.getBoundingClientRect){return null}M.innerHTML="x";M.style.cssText="position:fixed;top:100px;";K.appendChild(M);var N=K.style.height,O=K.scrollTop;K.style.height="3000px";K.scrollTop=500;var J=M.getBoundingClientRect().top;K.style.height=N;var L=(J===100);K.removeChild(M);K.scrollTop=O;return L}return null};var s=function(J){J=J||window.event;if(J.preventDefault){J.preventDefault()}J.returnValue=false};m.init=function(){m.options=a.extend({},a.ScrollToFixed.defaultOptions,i);z=H.css("z-index");m.$el.css("z-index",m.options.zIndex);u=a("<div />");I=H.css("position");F=H.css("position");k=H.css("float");e=H.css("top");if(h()){m.$el.after(u)}a(window).bind("resize.ScrollToFixed",D);a(window).bind("scroll.ScrollToFixed",G);if("ontouchmove" in window){a(window).bind("touchmove.ScrollToFixed",B)}if(m.options.preFixed){H.bind("preFixed.ScrollToFixed",m.options.preFixed)}if(m.options.postFixed){H.bind("postFixed.ScrollToFixed",m.options.postFixed)}if(m.options.preUnfixed){H.bind("preUnfixed.ScrollToFixed",m.options.preUnfixed)}if(m.options.postUnfixed){H.bind("postUnfixed.ScrollToFixed",m.options.postUnfixed)}if(m.options.preAbsolute){H.bind("preAbsolute.ScrollToFixed",m.options.preAbsolute)}if(m.options.postAbsolute){H.bind("postAbsolute.ScrollToFixed",m.options.postAbsolute)}if(m.options.fixed){H.bind("fixed.ScrollToFixed",m.options.fixed)}if(m.options.unfixed){H.bind("unfixed.ScrollToFixed",m.options.unfixed)}if(m.options.spacerClass){u.addClass(m.options.spacerClass)}H.bind("resize.ScrollToFixed",function(){u.height(H.height())});H.bind("scroll.ScrollToFixed",function(){H.trigger("preUnfixed.ScrollToFixed");l();H.trigger("unfixed.ScrollToFixed");B()});H.bind("detach.ScrollToFixed",function(J){s(J);H.trigger("preUnfixed.ScrollToFixed");l();H.trigger("unfixed.ScrollToFixed");a(window).unbind("resize.ScrollToFixed",D);a(window).unbind("scroll.ScrollToFixed",G);H.unbind(".ScrollToFixed");u.remove();m.$el.removeData("ScrollToFixed")});D()};m.init()};a.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1000,baseClassName:"scroll-to-fixed-fixed"};a.fn.scrollToFixed=function(b){return this.each(function(){(new a.ScrollToFixed(this,b))})}})(jQuery);;
9!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 9
9sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 9
9ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
9slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
9parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
9,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 9
9,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
9!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
9):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
9o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
9,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
10;
11/**
12 * jquery.mask.js
13 * @version: v1.14.16
14 * @author: Igor Escobar
15 *
16 * Created by Igor Escobar on 2012-03-10. Please report any bug at github.com/igorescobar/jQuery-Mask-Plugin
17 *
18 * Copyright (c) 2012 Igor Escobar http://igorescobar.com
19 *
20 * The MIT License (http://www.opensource.org/licenses/mit-license.php)
21 *
22 * Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or sell
27 * copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44/* jshint laxbreak: true */
45/* jshint maxcomplexity:17 */
46/* global define */
47
48// UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.
49// https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js
50(function (factory, jQuery, Zepto) {
51
52    if (typeof define === 'function' && define.amd) {
53        define(['jquery'], factory);
54    } else if (typeof exports === 'object' && typeof Meteor === 'undefined') {
55        module.exports = factory(require('jquery'));
56    } else {
57        factory(jQuery || Zepto);
58    }
59
60}(function ($) {
61    'use strict';
62
63    var Mask = function (el, mask, options) {
64
65        var p = {
66            invalid: [],
67            getCaret: function () {
68                try {
69                    var sel,
70                        pos = 0,
71                        ctrl = el.get(0),
72                        dSel = document.selection,
73                        cSelStart = ctrl.selectionStart;
74
75                    // IE Support
76                    if (dSel && navigator.appVersion.indexOf('MSIE 10') === -1) {
77                        sel = dSel.createRange();
78                        sel.moveStart('character', -p.val().length);
79                        pos = sel.text.length;
80                    }
81                    // Firefox support
82                    else if (cSelStart || cSelStart === '0') {
83                        pos = cSelStart;
84                    }
85
86                    return pos;
87                } catch (e) {}
88            },
89            setCaret: function(pos) {
90                try {
91                    if (el.is(':focus')) {
92                        var range, ctrl = el.get(0);
93
94                        // Firefox, WebKit, etc..
95                        if (ctrl.setSelectionRange) {
96                            ctrl.setSelectionRange(pos, pos);
97                        } else { // IE
98                            range = ctrl.createTextRange();
99                            range.collapse(true);
100                            range.moveEnd('character', pos);
101                            range.moveStart('character', pos);
102                            range.select();
103                        }
104                    }
105                } catch (e) {}
106            },
107            events: function() {
108                el
109                .on('keydown.mask', function(e) {
110                    el.data('mask-keycode', e.keyCode || e.which);
111                    el.data('mask-previus-value', el.val());
112                    el.data('mask-previus-caret-pos', p.getCaret());
113                    p.maskDigitPosMapOld = p.maskDigitPosMap;
114                })
115                .on($.jMaskGlobals.useInput ? 'input.mask' : 'keyup.mask', p.behaviour)
116                .on('paste.mask drop.mask', function() {
117                    setTimeout(function() {
118                        el.keydown().keyup();
119                    }, 100);
120                })
121                .on('change.mask', function(){
122                    el.data('changed', true);
123                })
124                .on('blur.mask', function(){
125                    if (oldValue !== p.val() && !el.data('changed')) {
126                        el.trigger('change');
127                    }
128                    el.data('changed', false);
129                })
130                // it's very important that this callback remains in this position
131                // otherwhise oldValue it's going to work buggy
132                .on('blur.mask', function() {
133                    oldValue = p.val();
134                })
135                // select all text on focus
136                .on('focus.mask', function (e) {
137                    if (options.selectOnFocus === true) {
138                        $(e.target).select();
139                    }
140                })
141                // clear the value if it not complete the mask
142                .on('focusout.mask', function() {
143                    if (options.clearIfNotMatch && !regexMask.test(p.val())) {
144                       p.val('');
145                   }
146                });
147            },
148            getRegexMask: function() {
149                var maskChunks = [], translation, pattern, optional, recursive, oRecursive, r;
150
151                for (var i = 0; i < mask.length; i++) {
152                    translation = jMask.translation[mask.charAt(i)];
vendor: 18,079 bytes, lines 153-616
153
154                    if (translation) {
155
156                        pattern = translation.pattern.toString().replace(/.{1}$|^.{1}/g, '');
157                        optional = translation.optional;
158                        recursive = translation.recursive;
159
160                        if (recursive) {
161                            maskChunks.push(mask.charAt(i));
162                            oRecursive = {digit: mask.charAt(i), pattern: pattern};
163                        } else {
164                            maskChunks.push(!optional && !recursive ? pattern : (pattern + '?'));
165                        }
166
167                    } else {
168                        maskChunks.push(mask.charAt(i).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'));
169                    }
170                }
171
172                r = maskChunks.join('');
173
174                if (oRecursive) {
175                    r = r.replace(new RegExp('(' + oRecursive.digit + '(.*' + oRecursive.digit + ')?)'), '($1)?')
176                         .replace(new RegExp(oRecursive.digit, 'g'), oRecursive.pattern);
177                }
178
179                return new RegExp(r);
180            },
181            destroyEvents: function() {
182                el.off(['input', 'keydown', 'keyup', 'paste', 'drop', 'blur', 'focusout', ''].join('.mask '));
183            },
184            val: function(v) {
185                var isInput = el.is('input'),
186                    method = isInput ? 'val' : 'text',
187                    r;
188
189                if (arguments.length > 0) {
190                    if (el[method]() !== v) {
191                        el[method](v);
192                    }
193                    r = el;
194                } else {
195                    r = el[method]();
196                }
197
198                return r;
199            },
200            calculateCaretPosition: function(oldVal) {
201                var newVal = p.getMasked(),
202                    caretPosNew = p.getCaret();
203                if (oldVal !== newVal) {
204                    var caretPosOld = el.data('mask-previus-caret-pos') || 0,
205                        newValL = newVal.length,
206                        oldValL = oldVal.length,
207                        maskDigitsBeforeCaret = 0,
208                        maskDigitsAfterCaret = 0,
209                        maskDigitsBeforeCaretAll = 0,
210                        maskDigitsBeforeCaretAllOld = 0,
211                        i = 0;
212
213                    for (i = caretPosNew; i < newValL; i++) {
214                        if (!p.maskDigitPosMap[i]) {
215                            break;
216                        }
217                        maskDigitsAfterCaret++;
218                    }
219
220                    for (i = caretPosNew - 1; i >= 0; i--) {
221                        if (!p.maskDigitPosMap[i]) {
222                            break;
223                        }
224                        maskDigitsBeforeCaret++;
225                    }
226
227                    for (i = caretPosNew - 1; i >= 0; i--) {
228                        if (p.maskDigitPosMap[i]) {
229                            maskDigitsBeforeCaretAll++;
230                        }
231                    }
232
233                    for (i = caretPosOld - 1; i >= 0; i--) {
234                        if (p.maskDigitPosMapOld[i]) {
235                            maskDigitsBeforeCaretAllOld++;
236                        }
237                    }
238
239                    // if the cursor is at the end keep it there
240                    if (caretPosNew > oldValL) {
241                      caretPosNew = newValL * 10;
242                    } else if (caretPosOld >= caretPosNew && caretPosOld !== oldValL) {
243                        if (!p.maskDigitPosMapOld[caretPosNew])  {
244                          var caretPos = caretPosNew;
245                          caretPosNew -= maskDigitsBeforeCaretAllOld - maskDigitsBeforeCaretAll;
246                          caretPosNew -= maskDigitsBeforeCaret;
247                          if (p.maskDigitPosMap[caretPosNew])  {
248                            caretPosNew = caretPos;
249                          }
250                        }
251                    }
252                    else if (caretPosNew > caretPosOld) {
253                        caretPosNew += maskDigitsBeforeCaretAll - maskDigitsBeforeCaretAllOld;
254                        caretPosNew += maskDigitsAfterCaret;
255                    }
256                }
257                return caretPosNew;
258            },
259            behaviour: function(e) {
260                e = e || window.event;
261                p.invalid = [];
262
263                var keyCode = el.data('mask-keycode');
264
265                if ($.inArray(keyCode, jMask.byPassKeys) === -1) {
266                    var newVal = p.getMasked(),
267                        caretPos = p.getCaret(),
268                        oldVal = el.data('mask-previus-value') || '';
269
270                    // this is a compensation to devices/browsers that don't compensate
271                    // caret positioning the right way
272                    setTimeout(function() {
273                      p.setCaret(p.calculateCaretPosition(oldVal));
274                    }, $.jMaskGlobals.keyStrokeCompensation);
275
276                    p.val(newVal);
277                    p.setCaret(caretPos);
278                    return p.callbacks(e);
279                }
280            },
281            getMasked: function(skipMaskChars, val) {
282                var buf = [],
283                    value = val === undefined ? p.val() : val + '',
284                    m = 0, maskLen = mask.length,
285                    v = 0, valLen = value.length,
286                    offset = 1, addMethod = 'push',
287                    resetPos = -1,
288                    maskDigitCount = 0,
289                    maskDigitPosArr = [],
290                    lastMaskChar,
291                    check;
292
293                if (options.reverse) {
294                    addMethod = 'unshift';
295                    offset = -1;
296                    lastMaskChar = 0;
297                    m = maskLen - 1;
298                    v = valLen - 1;
299                    check = function () {
300                        return m > -1 && v > -1;
301                    };
302                } else {
303                    lastMaskChar = maskLen - 1;
304                    check = function () {
305                        return m < maskLen && v < valLen;
306                    };
307                }
308
309                var lastUntranslatedMaskChar;
310                while (check()) {
311                    var maskDigit = mask.charAt(m),
312                        valDigit = value.charAt(v),
313                        translation = jMask.translation[maskDigit];
314
315                    if (translation) {
316                        if (valDigit.match(translation.pattern)) {
317                            buf[addMethod](valDigit);
318                             if (translation.recursive) {
319                                if (resetPos === -1) {
320                                    resetPos = m;
321                                } else if (m === lastMaskChar && m !== resetPos) {
322                                    m = resetPos - offset;
323                                }
324
325                                if (lastMaskChar === resetPos) {
326                                    m -= offset;
327                                }
328                            }
329                            m += offset;
330                        } else if (valDigit === lastUntranslatedMaskChar) {
331                            // matched the last untranslated (raw) mask character that we encountered
332                            // likely an insert offset the mask character from the last entry; fall
333                            // through and only increment v
334                            maskDigitCount--;
335                            lastUntranslatedMaskChar = undefined;
336                        } else if (translation.optional) {
337                            m += offset;
338                            v -= offset;
339                        } else if (translation.fallback) {
340                            buf[addMethod](translation.fallback);
341                            m += offset;
342                            v -= offset;
343                        } else {
344                          p.invalid.push({p: v, v: valDigit, e: translation.pattern});
345                        }
346                        v += offset;
347                    } else {
348                        if (!skipMaskChars) {
349                            buf[addMethod](maskDigit);
350                        }
351
352                        if (valDigit === maskDigit) {
353                            maskDigitPosArr.push(v);
354                            v += offset;
355                        } else {
356                            lastUntranslatedMaskChar = maskDigit;
357                            maskDigitPosArr.push(v + maskDigitCount);
358                            maskDigitCount++;
359                        }
360
361                        m += offset;
362                    }
363                }
364
365                var lastMaskCharDigit = mask.charAt(lastMaskChar);
366                if (maskLen === valLen + 1 && !jMask.translation[lastMaskCharDigit]) {
367                    buf.push(lastMaskCharDigit);
368                }
369
370                var newVal = buf.join('');
371                p.mapMaskdigitPositions(newVal, maskDigitPosArr, valLen);
372                return newVal;
373            },
374            mapMaskdigitPositions: function(newVal, maskDigitPosArr, valLen) {
375              var maskDiff = options.reverse ? newVal.length - valLen : 0;
376              p.maskDigitPosMap = {};
377              for (var i = 0; i < maskDigitPosArr.length; i++) {
378                p.maskDigitPosMap[maskDigitPosArr[i] + maskDiff] = 1;
379              }
380            },
381            callbacks: function (e) {
382                var val = p.val(),
383                    changed = val !== oldValue,
384                    defaultArgs = [val, e, el, options],
385                    callback = function(name, criteria, args) {
386                        if (typeof options[name] === 'function' && criteria) {
387                            options[name].apply(this, args);
388                        }
389                    };
390
391                callback('onChange', changed === true, defaultArgs);
392                callback('onKeyPress', changed === true, defaultArgs);
393                callback('onComplete', val.length === mask.length, defaultArgs);
394                callback('onInvalid', p.invalid.length > 0, [val, e, el, p.invalid, options]);
395            }
396        };
397
398        el = $(el);
399        var jMask = this, oldValue = p.val(), regexMask;
400
401        mask = typeof mask === 'function' ? mask(p.val(), undefined, el,  options) : mask;
402
403        // public methods
404        jMask.mask = mask;
405        jMask.options = options;
406        jMask.remove = function() {
407            var caret = p.getCaret();
408            if (jMask.options.placeholder) {
409                el.removeAttr('placeholder');
410            }
411            if (el.data('mask-maxlength')) {
412                el.removeAttr('maxlength');
413            }
414            p.destroyEvents();
415            p.val(jMask.getCleanVal());
416            p.setCaret(caret);
417            return el;
418        };
419
420        // get value without mask
421        jMask.getCleanVal = function() {
422           return p.getMasked(true);
423        };
424
425        // get masked value without the value being in the input or element
426        jMask.getMaskedVal = function(val) {
427           return p.getMasked(false, val);
428        };
429
430       jMask.init = function(onlyMask) {
431            onlyMask = onlyMask || false;
432            options = options || {};
433
434            jMask.clearIfNotMatch  = $.jMaskGlobals.clearIfNotMatch;
435            jMask.byPassKeys       = $.jMaskGlobals.byPassKeys;
436            jMask.translation      = $.extend({}, $.jMaskGlobals.translation, options.translation);
437
438            jMask = $.extend(true, {}, jMask, options);
439
440            regexMask = p.getRegexMask();
441
442            if (onlyMask) {
443                p.events();
444                p.val(p.getMasked());
445            } else {
446                if (options.placeholder) {
447                    el.attr('placeholder' , options.placeholder);
448                }
449
450                // this is necessary, otherwise if the user submit the form
451                // and then press the "back" button, the autocomplete will erase
452                // the data. Works fine on IE9+, FF, Opera, Safari.
453                if (el.data('mask')) {
454                  //el.attr('autocomplete', 'off');
455                }
456
457                // detect if is necessary let the user type freely.
458                // for is a lot faster than forEach.
459                for (var i = 0, maxlength = true; i < mask.length; i++) {
460                    var translation = jMask.translation[mask.charAt(i)];
461                    if (translation && translation.recursive) {
462                        maxlength = false;
463                        break;
464                    }
465                }
466
467                if (maxlength) {
468                    el.attr('maxlength', mask.length).data('mask-maxlength', true);
469                }
470
471                p.destroyEvents();
472                p.events();
473
474                var caret = p.getCaret();
475                p.val(p.getMasked());
476                p.setCaret(caret);
477            }
478        };
479
480        jMask.init(!el.is('input'));
481    };
482
483    $.maskWatchers = {};
484    var HTMLAttributes = function () {
485        var input = $(this),
486            options = {},
487            prefix = 'data-mask-',
488            mask = input.attr('data-mask');
489
490        if (input.attr(prefix + 'reverse')) {
491            options.reverse = true;
492        }
493
494        if (input.attr(prefix + 'clearifnotmatch')) {
495            options.clearIfNotMatch = true;
496        }
497
498        if (input.attr(prefix + 'selectonfocus') === 'true') {
499           options.selectOnFocus = true;
500        }
501
502        if (notSameMaskObject(input, mask, options)) {
503            return input.data('mask', new Mask(this, mask, options));
504        }
505    },
506    notSameMaskObject = function(field, mask, options) {
507        options = options || {};
508        var maskObject = $(field).data('mask'),
509            stringify = JSON.stringify,
510            value = $(field).val() || $(field).text();
511        try {
512            if (typeof mask === 'function') {
513                mask = mask(value);
514            }
515            return typeof maskObject !== 'object' || stringify(maskObject.options) !== stringify(options) || maskObject.mask !== mask;
516        } catch (e) {}
517    },
518    eventSupported = function(eventName) {
519        var el = document.createElement('div'), isSupported;
520
521        eventName = 'on' + eventName;
522        isSupported = (eventName in el);
523
524        if ( !isSupported ) {
525            el.setAttribute(eventName, 'return;');
526            isSupported = typeof el[eventName] === 'function';
527        }
528        el = null;
529
530        return isSupported;
531    };
532
533    $.fn.mask = function(mask, options) {
534        options = options || {};
535        var selector = this.selector,
536            globals = $.jMaskGlobals,
537            interval = globals.watchInterval,
538            watchInputs = options.watchInputs || globals.watchInputs,
539            maskFunction = function() {
540                if (notSameMaskObject(this, mask, options)) {
541                    return $(this).data('mask', new Mask(this, mask, options));
542                }
543            };
544
545        $(this).each(maskFunction);
546
547        if (selector && selector !== '' && watchInputs) {
548            clearInterval($.maskWatchers[selector]);
549            $.maskWatchers[selector] = setInterval(function(){
550                $(document).find(selector).each(maskFunction);
551            }, interval);
552        }
553        return this;
554    };
555
556    $.fn.masked = function(val) {
557        return this.data('mask').getMaskedVal(val);
558    };
559
560    $.fn.unmask = function() {
561        clearInterval($.maskWatchers[this.selector]);
562        delete $.maskWatchers[this.selector];
563        return this.each(function() {
564            var dataMask = $(this).data('mask');
565            if (dataMask) {
566                dataMask.remove().removeData('mask');
567            }
568        });
569    };
570
571    $.fn.cleanVal = function() {
572        return this.data('mask').getCleanVal();
573    };
574
575    $.applyDataMask = function(selector) {
576        selector = selector || $.jMaskGlobals.maskElements;
577        var $selector = (selector instanceof $) ? selector : $(selector);
578        $selector.filter($.jMaskGlobals.dataMaskAttr).each(HTMLAttributes);
579    };
580
581    var globals = {
582        maskElements: 'input,td,span,div',
583        dataMaskAttr: '*[data-maask]',
584        dataMask: true,
585        watchInterval: 300,
586        watchInputs: true,
587        keyStrokeCompensation: 10,
588        // old versions of chrome dont work great with input event
589        useInput: !/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent) && eventSupported('input'),
590        watchDataMask: false,
591        byPassKeys: [9, 16, 17, 18, 36, 37, 38, 39, 40, 91],
592        translation: {
593            '0': {pattern: /\d/},
594            '9': {pattern: /\d/, optional: true},
595            '#': {pattern: /\d/, recursive: true},
596            'A': {pattern: /[a-zA-Z0-9]/},
597            'S': {pattern: /[a-zA-Z]/}
598        }
599    };
600
601    $.jMaskGlobals = $.jMaskGlobals || {};
602    globals = $.jMaskGlobals = $.extend(true, {}, globals, $.jMaskGlobals);
603
604    // looking for inputs with data-mask attribute
605    if (globals.dataMask) {
606        $.applyDataMask();
607    }
608
609    setInterval(function() {
610        if ($.jMaskGlobals.watchDataMask) {
611            $.applyDataMask();
612        }
613    }, globals.watchInterval);
614}, window.jQuery, window.Zepto));
615;
616!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(
vendor: 18,994 bytes, line 616
616t):e.moment=t()}(this,function(){"use strict";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function y(e,t,n,s){return Tt(e,t,n,s,!0).utc()}function g(e){return null==e._pf&&(e._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}),e._pf}function v(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function p(e){var t=y(NaN);return null!=e?_(g(t),e):g(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var r=c.momentProperties=[];function w(e,t){var n,s,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(n=0;n<r.length;n++)l(i=t[s=r[n]])||(e[s]=i);return e}var t=!1;function M(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,c.updateOffset(this),t=!1)}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n}function a(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&D(e[s])!==D(t[s]))&&a++;return a+r}function Y(e){!1===c.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,r){var a=!0;return _(function(){if(null!=c.deprecationHandler&&c.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var s in e+="\n["+n+"] ",arguments[0])e+=s+": "+arguments[0][s]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}Y(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),a=!1}return r.apply(this,arguments)},r)}var s,O={};function T(e,t){null!=c.deprecationHandler&&c.deprecationHandler(e,t),O[e]||(Y(t),O[e]=!0)}function b(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,s=_({},e);for(n in t)m(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},_(s[n],e[n]),_(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)m(e,n)&&!m(t,n)&&u(e[n])&&(s[n]=_({},s[n]));return s}function P(e){null!=e&&this.set(e)}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};var W={};function C(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e}function H(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0}function R(e){var t,n,s={};for(n in e)m(e,n)&&(t=H(n))&&(s[t]=e[n]);return s}var U={};function F(e,t){U[e]=t}function L(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([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,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},E={};function I(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(E[e]=i),t&&(E[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=j(t,e.localeData()),V[t]=V[t]||function(s){var e,i,t,r=s.match(N);for(e=0,i=r.length;e<i;e++)E[r[e]]?r[e]=E[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=b(r[t])?r[t].call(e,s):r[t];return n}}(t),V[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(G.lastIndex=0;0<=n&&G.test(e);)e=e.replace(G,s),G.lastIndex=0,n-=1;return e}var Z=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,J=/[+-]?\d{6}/,B=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,se=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[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,oe={};function ue(e,n,s){oe[e]=b(n)?n:function(e,t){return e&&s?s:n}}function le(e,t){return m(oe,e)?oe[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function ce(e,n){var t,s=n;for("string"==typeof e&&(e=[e]),h(n)&&(s=function(e,t){t[n]=D(e)}),t=0;t<e.length;t++)de[e[t]]=s}function fe(e,i){ce(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}var me=0,_e=1,ye=2,ge=3,ve=4,pe=5,we=6,Me=7,ke=8;function Se(e){return De(e)?366:365}function De(e){return e%4==0&&e%100!=0||e%400==0}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),C("year","y"),F("year",1),ue("Y",se),ue("YY",B,z),ue("YYYY",ee,q),ue("YYYYY",te,J),ue("YYYYYY",te,J),ce(["YYYYY","YYYYYY"],me),ce("YYYY",function(e,t){t[me]=2===e.length?c.parseTwoDigitYear(e):D(e)}),ce("YY",function(e,t){t[me]=c.parseTwoDigitYear(e)}),ce("Y",function(e,t){t[me]=parseInt(e,10)}),c.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3)};var Ye,Oe=Te("FullYear",!0);function Te(t,n){return function(e){return null!=e?(xe(this,t,e),c.updateOffset(this,n),this):be(this,t)}}function be(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&De(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?De(e)?29:28:31-s%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),C("month","M"),F("month",8),ue("M",B),ue("MM",B,z),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),ce(["M","MM"],function(e,t){t[_e]=D(e)-1}),ce(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[_e]=i:g(n).invalidMonth=e});var We=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ue(e){return null!=e?(Re(this,e),c.updateOffset(this,!0),this):be(this,"Month")}var Fe=ae;var Le=ae;function Ne(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=y([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=he(s[t]),i[t]=he(i[t]);for(t=0;t<24;t++)r[t]=he(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ge(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ve(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1}function Ee(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return a=o<=0?Se(r=e-1)+o:o>Se(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",B),ue("ww",B,z),ue("W",B),ue("WW",B,z),fe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",B),ue("e",B),ue("E",B),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,s){t[s]=D(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var $e="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Xe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),C("hour","h"),F("hour",13),ue("a",et),ue("A",et),ue("H",B),ue("h",B),ue("k",B),ue("HH",B,z),ue("hh",B,z),ue("kk",B,z),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),ce(["H","HH"],ge),ce(["k","kk"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce(["h","hh"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce("hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce("Hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te("Hours",!0),st={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:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])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."),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(s=ot(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[ye]<1||n[ye]>Pe(n[me],n[_e])?ye:n[ge]<0||24<n[ge]||24===n[ge]&&(0!==n[ve]||0!==n[pe]||0!==n[we])?ge:n[ve]<0||59<n[ve]?ve:n[pe]<0||59<n[pe]?pe:n[we]<0||999<n[we]?we:-1,g(e)._overflowDayOfYear&&(t<me||ye<t)&&(t=ye),g(e)._overflowWeeks&&-1===t&&(t=Me),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function ft(e){var t,n,s,i,r,a=[];if(!e._d){var o,u;for(o=e,u=new Date(c.now()),s=o._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ct(t.GG,e._a[me],Ie(bt(),1,4).year),s=ct(t.W,1),((i=ct(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(bt(),r,a);n=ct(t.gg,e._a[me],l.year),s=ct(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r}s<1||s>Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=/^\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)?)?$/,_t=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["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}/]],vt=[["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/]],pt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[1])){i=gt[t][0],s=!1!==gt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(u[3])){r=(u[2]||" ")+vt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!yt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Yt(e)}else e._isValid=!1}var Mt=/^(?:(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 kt(e,t,n,s,i,r){var a=[function(e){var t=parseInt(e,10);
vendor: 34,198 bytes, line 616
616{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),He.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var r=kt(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=r,s=e,t&&ze.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(g(s).weekdayMismatch=!0,!(s._isValid=!1)))return;e._a=r,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i}(i[8],i[9],i[10]),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Yt(e){if(e._f!==c.ISO_8601)if(e._f!==c.RFC_2822){e._a=[],g(e).empty=!0;var t,n,s,i,r,a,o,u,l=""+e._i,h=l.length,d=0;for(s=j(e._f,e._locale).match(N)||[],t=0;t<s.length;t++)i=s[t],(n=(l.match(le(i,e))||[])[0])&&(0<(r=l.substr(0,l.indexOf(n))).length&&g(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),d+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&m(de,a)&&de[a](o,u._a,u,a)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=h-d,0<l.length&&g(e).unusedInput.push(l),e._a[ge]<=12&&!0===g(e).bigHour&&0<e._a[ge]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ge]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0)),t)}(e._locale,e._a[ge],e._meridiem),ft(e),dt(e)}else Dt(e);else wt(e)}function Ot(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||ht(e._l),null===r||void 0===a&&""===r?p({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r)?new M(dt(r)):(d(r)?e._d=r:o(a)?function(e){var t,n,s,i,r;if(0===e._f.length)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Yt(t),v(t)&&(r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,(null==s||r<s)&&(s=r,n=t));_(e,n||t)}(e):a?Yt(e):l(n=(t=e)._i)?t._d=new Date(c.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(s=t,null===(i=pt.exec(s._i))?(wt(s),!1===s._isValid&&(delete s._isValid,Dt(s),!1===s._isValid&&(delete s._isValid,c.createFromInputFallback(s)))):s._d=new Date(+i[1])):o(n)?(t._a=f(n.slice(0),function(e){return parseInt(e,10)}),ft(t)):u(n)?function(e){if(!e._d){var t=R(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ft(e)}}(t):h(n)?t._d=new Date(n):c.createFromInputFallback(t),v(e)||(e._d=null),e))}function Tt(e,t,n,s,i){var r,a={};return!0!==n&&!1!==n||(s=n,n=void 0),(u(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new M(dt(Ot(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function bt(e,t,n,s){return Tt(e,t,n,s,!1)}c.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),c.ISO_8601=function(){},c.RFC_2822=function(){};var xt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Pt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()});function Wt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var t=R(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ye.call(Ct,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Ct.length;++s)if(e[Ct[s]]){if(n)return!1;parseFloat(e[Ct[s]])!==D(e[Ct[s]])&&(n=!0)}return!0}(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=ht(),this._bubble()}function Rt(e){return e instanceof Ht}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){I(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+L(~~(e/60),2)+n+L(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ue("Z",re),ue("ZZ",re),ce(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(re,e)});var Lt=/([\+\-]|\d\d)/gi;function Nt(e,t){var n=(t||"").match(e);if(null===n)return null;var s=((n[n.length-1]||[])+"").match(Lt)||["-",0,0],i=60*s[1]+D(s[2]);return 0===i?0:"+"===s[0]?i:-i}function Gt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(k(e)||d(e)?e.valueOf():bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),c.updateOffset(n,!1),n):bt(e).local()}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Et(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}c.updateOffset=function(){};var It=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,s,i,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:h(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=It.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:D(a[ye])*n,h:D(a[ge])*n,m:D(a[ve])*n,s:D(a[pe])*n,ms:D(Ut(1e3*a[we]))*n}):(a=At.exec(e))?(n="-"===a[1]?-1:1,r={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(bt(r.from),bt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new Ht(r),Rt(e)&&m(e,"_locale")&&(s._locale=e._locale),s}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(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."),n=e,e=t,t=n),qt(this,jt(e="string"==typeof e?+e:e,t),s),this}}function qt(e,t,n,s){var i=t._milliseconds,r=Ut(t._days),a=Ut(t._months);e.isValid()&&(s=null==s||s,a&&Re(e,be(e,"Month")+a*n),r&&xe(e,"Date",be(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&c.updateOffset(e,r||a))}jt.fn=Ht.prototype,jt.invalid=function(){return jt(NaN)};var Jt=$t(1,"add"),Bt=$t(-1,"subtract");function Qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this)}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kt=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function en(){return this._locale}var tn=126227808e5;function nn(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function an(e,t){I(0,[e,e.length],0,t)}function on(e,t,n,s,i){var r;return null==e?Ie(this,s,i).year:((r=Ae(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ue("G",se),ue("g",se),ue("GG",B,z),ue("gg",B,z),ue("GGGG",ee,q),ue("gggg",ee,q),ue("GGGGG",te,J),ue("ggggg",te,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=D(e)}),fe(["gg","GG"],function(e,t,n,s){t[s]=c.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),C("quarter","Q"),F("quarter",7),ue("Q",Z),ce("Q",function(e,t){t[_e]=3*(D(e)-1)}),I("D",["DD",2],"Do","date"),C("date","D"),F("date",9),ue("D",B),ue("DD",B,z),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ce(["D","DD"],ye),ce("Do",function(e,t){t[ye]=D(e.match(B)[0])});var un=Te("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",K),ue("DDDD",$),ce(["DDD","DDDD"],function(e,t,n){n._dayOfYear=D(e)}),I("m",["mm",2],0,"minute"),C("minute","m"),F("minute",14),ue("m",B),ue("mm",B,z),ce(["m","mm"],ve);var ln=Te("Minutes",!1);I("s",["ss",2],0,"second"),C("second","s"),F("second",15),ue("s",B),ue("ss",B,z),ce(["s","ss"],pe);var hn,dn=Te("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),F("millisecond",16),ue("S",K,Z),ue("SS",K,z),ue("SSS",K,$),hn="SSSS";hn.length<=9;hn+="S")ue(hn,ne);function cn(e,t){t[we]=D(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ce(hn,cn);var fn=Te("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var mn=M.prototype;function _n(e){return e}mn.add=Jt,mn.calendar=function(e,t){var n=e||bt(),s=Gt(n,this).startOf("day"),i=c.calendarFormat(this,s)||"sameElse",r=t&&(b(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,bt(n)))},mn.clone=function(){return new M(this)},mn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=H(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:S(r)},mn.endOf=function(e){var t;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1;break}return this._d.setTime(t),c.updateOffset(this,!0),this},mn.format=function(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},mn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},mn.fromNow=function(e){return this.from(bt(),e)},mn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},mn.toNow=function(e){return this.to(bt(),e)},mn.get=function(e){return b(this[e=H(e)])?this[e]():this},mn.invalidAt=function(){return g(this).overflow},mn.isAfter=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},mn.isBefore=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},mn.isBetween=function(e,t,n,s){var i=k(e)?e:bt(e),r=k(t)?t:bt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(r,n):!this.isAfter(r,n))},mn.isSame=function(e,t){var n,s=k(e)?e:bt(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},mn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},mn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},mn.isValid=function(){return v(this)},mn.lang=Kt,mn.locale=Xt,mn.localeData=en,mn.max=Pt,mn.min=xt,mn.parsingFlags=function(){return _({},g(this))},mn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:U[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=R(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(b(this[e=H(e)]))return this[e](t);return this},mn.startOf=function(e){var t;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3);break}return this._d.setTime(t),c.updateOffset(this,!0),this},mn.subtract=Bt,mn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},mn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},mn.toDate=function(){return new Date(this.valueOf())},mn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+i)},mn.toJSON=function(){return this.isValid()?this.toISOString():null},mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mn.unix=function(){return Math.floor(this.valueOf()/1e3)},mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},mn.year=Oe,mn.isLeapYear=function(){return De(this.year())},mn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},mn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},mn.quarter=mn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},mn.month=Ue,mn.daysInMonth=function(){return Pe(this.year(),this.month())},mn.week=mn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},mn.isoWeek=mn.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},mn.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy)},mn.isoWeeksInYear=function(){return Ae(this.year(),1,4)},mn.date=un,mn.day=mn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},mn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},mn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7)},mn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},mn.hour=mn.hours=nt,mn.minute=mn.minutes=ln,mn.second=mn.seconds=dn,mn.millisecond=mn.milliseconds=fn,mn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Vt(this);if("string"==typeof e){if(null===(e=Nt(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Vt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?qt(this,jt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this},mn.utc=function(e){return this.utcOffset(0,e)},mn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},mn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=n("dates accessor is deprecated. Use date instead.",un),mn.months=n("months accessor is deprecated. Use month instead",Ue),mn.years=n("years accessor is deprecated. Use year instead",Oe),mn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var yn=P.prototype;function gn(e,t,n,s){var i=ht(),r=y().set(s,t);return i[n](r,e)}function vn(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=gn(e,s,n,"month");return i}function pn(e,t,n,s){t=("boolean"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||"");var i,r=ht(),a=e?r._week.dow:0;if(null!=n)return gn(t,(n+a)%7,s,"day");var o=[];for(i=0;i<7;i++)o[i]=gn(t,(i+a)%7,s,"day");return o}yn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=_n,yn.postformat=_n,yn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)b(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=y([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=y([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},yn.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=y([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=y([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),c.lang=n("moment.lang is deprecated. Use moment.locale instead.",ut),c.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var wn=Math.abs;function Mn(e,t,n,s){var i=jt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Yn(e){return function(){return this.as(e)}}var On=Yn("ms"),Tn=Yn("s"),bn=Yn("m"),xn=Yn("h"),Pn=Yn("d"),Wn=Yn("w"),Cn=Yn("M"),Hn=Yn("Q"),Rn=Yn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Un("milliseconds"),Ln=Un("seconds"),Nn=Un("minutes"),Gn=Un("hours"),Vn=Un("days"),En=Un("months"),In=Un("years");var An=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11};var Zn=Math.abs;function zn(e){return(0<e)-(e<0)||+e}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,s=Zn(this._days),i=Zn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",f=zn(this._months)!==zn(d)?"-":"",m=zn(this._days)!==zn(d)?"-":"",_=zn(this._milliseconds)!==zn(d)?"-":"";return c+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||h?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(h?_+h+"S":"")}var qn=Ht.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},qn.add=function(e,t){return Mn(this,e,t,1)},qn.subtract=function(e,t){return Mn(this,e,t,-1)},qn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},qn.asMilliseconds=On,qn.asSeconds=Tn,qn.asMinutes=bn,qn.asHours=xn,qn.asDays=Pn,qn.asWeeks=Wn,qn.asMonths=Cn,qn.asQuarters=Hn,qn.asYears=Rn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},qn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*kn(Dn(o)+a),o=a=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Sn(a+=S(n/24))),a-=kn(Dn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},qn.clone=function(){return jt(this)},qn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},qn.milliseconds=Fn,qn.seconds=Ln,qn.minutes=Nn,qn.hours=Gn,qn.days=Vn,qn.weeks=function(){return S(this.days()/7)},qn.months=En,qn.years=In,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,h,d,c=this.localeData(),f=(n=!e,s=c,i=jt(t=this).abs(),r=An(i.as("s")),a=An(i.as("m")),o=An(i.as("h")),u=An(i.as("d")),l=An(i.as("M")),h=An(i.as("y")),(d=r<=jn.ss&&["s",r]||r<jn.s&&["ss",r]||a<=1&&["m"]||a<jn.m&&["mm",a]||o<=1&&["h"]||o<jn.h&&["hh",o]||u<=1&&["d"]||u<jn.d&&["dd",u]||l<=1&&["M"]||l<jn.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=n,d[3]=0<+t,d[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,d));return e&&(f=c.pastFuture(+this,f)),c.postformat(f)},qn.toISOString=$n,qn.toString=$n,qn.toJSON=$n,qn.locale=Xt,qn.localeData=en,qn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),qn.lang=Kt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ue("x",se),ue("X",/[+-]?\d+(\.\d{1,3})?/),ce("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ce("x",function(e,t,n){n._d=new Date(D(e))}),c.version="2.24.0",e=bt,c.fn=mn,c.min=function(){return Wt("isBefore",[].slice.call(arguments,0))},c.max=function(){return Wt("isAfter",[].slice.call(arguments,0))},c.now=function(){return Date.now?Date.now():+new Date},c.utc=y,c.unix=function(e){return bt(1e3*e)},c.months=function(e,t){return vn(e,t,"months")},c.isDate=d,c.locale=ut,c.invalid=p,c.duration=jt,c.isMoment=k,c.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},c.parseZone=function(){return bt.apply(null,arguments).parseZone()},c.localeData=ht,c.isDuration=Rt,c.monthsShort=function(e,t){return vn(e,t,"monthsShort")},c.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},c.defineLocale=lt,c.updateLocale=function(e,t){if(null!=t){var n,s,i=st;null!=(s=ot(e))&&(i=s._config),(n=new P(t=x(i,t))).parentLocale=it[e],it[e]=n,ut(e)}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e]},c.locales=function(){return s(it)},c.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},c.normalizeUnits=H,c.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0)},c.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,"s"===e&&(jn.ss=t-1),!0))},c.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},c.prototype=mn,c.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"},c});
vendor: 22,144 bytes, lines 616-1147
616;
617/**
618* @version: 3.0.5
619* @author: Dan Grossman http://www.dangrossman.info/
620* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
621* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
622* @website: http://www.daterangepicker.com/
623*/
624// Following the UMD template https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js
625(function (root, factory) {
626    if (typeof define === 'function' && define.amd) {
627        // AMD. Make globaly available as well
628        define(['moment', 'jquery'], function (moment, jquery) {
629            if (!jquery.fn) jquery.fn = {}; // webpack server rendering
630            if (typeof moment !== 'function' && moment.default) moment = moment.default
631            return factory(moment, jquery);
632        });
633    } else if (typeof module === 'object' && module.exports) {
634        // Node / Browserify
635        //isomorphic issue
636        var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;
637        if (!jQuery) {
638            jQuery = require('jquery');
639            if (!jQuery.fn) jQuery.fn = {};
640        }
641        var moment = (typeof window != 'undefined' && typeof window.moment != 'undefined') ? window.moment : require('moment');
642        module.exports = factory(moment, jQuery);
643    } else {
644        // Browser globals
645        root.daterangepicker = factory(root.moment, root.jQuery);
646    }
647}(this, function(moment, $) {
648    var DateRangePicker = function(element, options, cb) {
649
650        //default settings for options
651        this.parentEl = 'body';
652        this.element = $(element);
653        this.startDate = moment().startOf('day');
654        this.endDate = moment().endOf('day');
655        this.minDate = false;
656        this.maxDate = false;
657        this.maxSpan = false;
658        this.autoApply = false;
659        this.singleDatePicker = false;
660        this.showDropdowns = false;
661        this.minYear = moment().subtract(100, 'year').format('YYYY');
662        this.maxYear = moment().add(100, 'year').format('YYYY');
663        this.showWeekNumbers = false;
664        this.showISOWeekNumbers = false;
665        this.showCustomRangeLabel = true;
666        this.timePicker = false;
667        this.timePicker24Hour = false;
668        this.timePickerIncrement = 1;
669        this.timePickerSeconds = false;
670        this.linkedCalendars = true;
671        this.autoUpdateInput = true;
672        this.alwaysShowCalendars = false;
673        this.ranges = {};
674
675        this.opens = 'right';
676        if (this.element.hasClass('pull-right'))
677            this.opens = 'left';
678
679        this.drops = 'down';
680        if (this.element.hasClass('dropup'))
681            this.drops = 'up';
682
683        this.buttonClasses = 'btn btn-sm';
684        this.applyButtonClasses = 'btn-primary';
685        this.cancelButtonClasses = 'btn-default';
686
687        this.locale = {
688            direction: 'ltr',
689            format: moment.localeData().longDateFormat('L'),
690            separator: ' - ',
691            applyLabel: 'Apply',
692            cancelLabel: 'Cancel',
693            weekLabel: 'W',
694            customRangeLabel: 'Custom Range',
695            daysOfWeek: moment.weekdaysMin(),
696            monthNames: moment.monthsShort(),
697            firstDay: moment.localeData().firstDayOfWeek()
698        };
699
700        this.callback = function() { };
701
702        //some state information
703        this.isShowing = false;
704        this.leftCalendar = {};
705        this.rightCalendar = {};
706
707        //custom options from user
708        if (typeof options !== 'object' || options === null)
709            options = {};
710
711        //allow setting options with data attributes
712        //data-api options will be overwritten with custom javascript options
713        options = $.extend(this.element.data(), options);
714
715        //html template for the picker UI
716        if (typeof options.template !== 'string' && !(options.template instanceof $))
717            options.template =
718            '<div class="daterangepicker">' +
719                '<div class="ranges"></div>' +
720                '<div class="drp-calendar left">' +
721                    '<div class="calendar-table"></div>' +
722                    '<div class="calendar-time"></div>' +
723                '</div>' +
724                '<div class="drp-calendar right">' +
725                    '<div class="calendar-table"></div>' +
726                    '<div class="calendar-time"></div>' +
727                '</div>' +
728                '<div class="drp-buttons">' +
729                    '<span class="drp-selected"></span>' +
730                    '<button class="cancelBtn" type="button"></button>' +
731                    '<button class="applyBtn" disabled="disabled" type="button"></button> ' +
732                '</div>' +
733            '</div>';
734
735        this.parentEl = (options.parentEl && $(options.parentEl).length) ? $(options.parentEl) : $(this.parentEl);
736        this.container = $(options.template).appendTo(this.parentEl);
737
738        //
739        // handle all the possible options overriding defaults
740        //
741
742        if (typeof options.locale === 'object') {
743
744            if (typeof options.locale.direction === 'string')
745                this.locale.direction = options.locale.direction;
746
747            if (typeof options.locale.format === 'string')
748                this.locale.format = options.locale.format;
749
750            if (typeof options.locale.separator === 'string')
751                this.locale.separator = options.locale.separator;
752
753            if (typeof options.locale.daysOfWeek === 'object')
754                this.locale.daysOfWeek = options.locale.daysOfWeek.slice();
755
756            if (typeof options.locale.monthNames === 'object')
757              this.locale.monthNames = options.locale.monthNames.slice();
758
759            if (typeof options.locale.firstDay === 'number')
760              this.locale.firstDay = options.locale.firstDay;
761
762            if (typeof options.locale.applyLabel === 'string')
763              this.locale.applyLabel = options.locale.applyLabel;
764
765            if (typeof options.locale.cancelLabel === 'string')
766              this.locale.cancelLabel = options.locale.cancelLabel;
767
768            if (typeof options.locale.weekLabel === 'string')
769              this.locale.weekLabel = options.locale.weekLabel;
770
771            if (typeof options.locale.customRangeLabel === 'string'){
772                //Support unicode chars in the custom range name.
773                var elem = document.createElement('textarea');
774                elem.innerHTML = options.locale.customRangeLabel;
775                var rangeHtml = elem.value;
776                this.locale.customRangeLabel = rangeHtml;
777            }
778        }
779        this.container.addClass(this.locale.direction);
780
781        if (typeof options.startDate === 'string')
782            this.startDate = moment(options.startDate, this.locale.format);
783
784        if (typeof options.endDate === 'string')
785            this.endDate = moment(options.endDate, this.locale.format);
786
787        if (typeof options.minDate === 'string')
788            this.minDate = moment(options.minDate, this.locale.format);
789
790        if (typeof options.maxDate === 'string')
791            this.maxDate = moment(options.maxDate, this.locale.format);
792
793        if (typeof options.startDate === 'object')
794            this.startDate = moment(options.startDate);
795
796        if (typeof options.endDate === 'object')
797            this.endDate = moment(options.endDate);
798
799        if (typeof options.minDate === 'object')
800            this.minDate = moment(options.minDate);
801
802        if (typeof options.maxDate === 'object')
803            this.maxDate = moment(options.maxDate);
804
805        // sanity check for bad options
806        if (this.minDate && this.startDate.isBefore(this.minDate))
807            this.startDate = this.minDate.clone();
808
809        // sanity check for bad options
810        if (this.maxDate && this.endDate.isAfter(this.maxDate))
811            this.endDate = this.maxDate.clone();
812
813        if (typeof options.applyButtonClasses === 'string')
814            this.applyButtonClasses = options.applyButtonClasses;
815
816        if (typeof options.applyClass === 'string') //backwards compat
817            this.applyButtonClasses = options.applyClass;
818
819        if (typeof options.cancelButtonClasses === 'string')
820            this.cancelButtonClasses = options.cancelButtonClasses;
821
822        if (typeof options.cancelClass === 'string') //backwards compat
823            this.cancelButtonClasses = options.cancelClass;
824
825        if (typeof options.maxSpan === 'object')
826            this.maxSpan = options.maxSpan;
827
828        if (typeof options.dateLimit === 'object') //backwards compat
829            this.maxSpan = options.dateLimit;
830
831        if (typeof options.opens === 'string')
832            this.opens = options.opens;
833
834        if (typeof options.drops === 'string')
835            this.drops = options.drops;
836
837        if (typeof options.showWeekNumbers === 'boolean')
838            this.showWeekNumbers = options.showWeekNumbers;
839
840        if (typeof options.showISOWeekNumbers === 'boolean')
841            this.showISOWeekNumbers = options.showISOWeekNumbers;
842
843        if (typeof options.buttonClasses === 'string')
844            this.buttonClasses = options.buttonClasses;
845
846        if (typeof options.buttonClasses === 'object')
847            this.buttonClasses = options.buttonClasses.join(' ');
848
849        if (typeof options.showDropdowns === 'boolean')
850            this.showDropdowns = options.showDropdowns;
851
852        if (typeof options.minYear === 'number')
853            this.minYear = options.minYear;
854
855        if (typeof options.maxYear === 'number')
856            this.maxYear = options.maxYear;
857
858        if (typeof options.showCustomRangeLabel === 'boolean')
859            this.showCustomRangeLabel = options.showCustomRangeLabel;
860
861        if (typeof options.singleDatePicker === 'boolean') {
862            this.singleDatePicker = options.singleDatePicker;
863            if (this.singleDatePicker)
864                this.endDate = this.startDate.clone();
865        }
866
867        if (typeof options.timePicker === 'boolean')
868            this.timePicker = options.timePicker;
869
870        if (typeof options.timePickerSeconds === 'boolean')
871            this.timePickerSeconds = options.timePickerSeconds;
872
873        if (typeof options.timePickerIncrement === 'number')
874            this.timePickerIncrement = options.timePickerIncrement;
875
876        if (typeof options.timePicker24Hour === 'boolean')
877            this.timePicker24Hour = options.timePicker24Hour;
878
879        if (typeof options.autoApply === 'boolean')
880            this.autoApply = options.autoApply;
881
882        if (typeof options.autoUpdateInput === 'boolean')
883            this.autoUpdateInput = options.autoUpdateInput;
884
885        if (typeof options.linkedCalendars === 'boolean')
886            this.linkedCalendars = options.linkedCalendars;
887
888        if (typeof options.isInvalidDate === 'function')
889            this.isInvalidDate = options.isInvalidDate;
890
891        if (typeof options.isCustomDate === 'function')
892            this.isCustomDate = options.isCustomDate;
893
894        if (typeof options.alwaysShowCalendars === 'boolean')
895            this.alwaysShowCalendars = options.alwaysShowCalendars;
896
897        // update day names order to firstDay
898        if (this.locale.firstDay != 0) {
899            var iterator = this.locale.firstDay;
900            while (iterator > 0) {
901                this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift());
902                iterator--;
903            }
904        }
905
906        var start, end, range;
907
908        //if no start/end dates set, check if an input element contains initial values
909        if (typeof options.startDate === 'undefined' && typeof options.endDate === 'undefined') {
910            if ($(this.element).is(':text')) {
911                var val = $(this.element).val(),
912                    split = val.split(this.locale.separator);
913
914                start = end = null;
915
916                if (split.length == 2) {
917                    start = moment(split[0], this.locale.format);
918                    end = moment(split[1], this.locale.format);
919                } else if (this.singleDatePicker && val !== "") {
920                    start = moment(val, this.locale.format);
921                    end = moment(val, this.locale.format);
922                }
923                if (start !== null && end !== null) {
924                    this.setStartDate(start);
925                    this.setEndDate(end);
926                }
927            }
928        }
929
930        if (typeof options.ranges === 'object') {
931            for (range in options.ranges) {
932
933                if (typeof options.ranges[range][0] === 'string')
934                    start = moment(options.ranges[range][0], this.locale.format);
935                else
936                    start = moment(options.ranges[range][0]);
937
938                if (typeof options.ranges[range][1] === 'string')
939                    end = moment(options.ranges[range][1], this.locale.format);
940                else
941                    end = moment(options.ranges[range][1]);
942
943                // If the start or end date exceed those allowed by the minDate or maxSpan
944                // options, shorten the range to the allowable period.
945                if (this.minDate && start.isBefore(this.minDate))
946                    start = this.minDate.clone();
947
948                var maxDate = this.maxDate;
949                if (this.maxSpan && maxDate && start.clone().add(this.maxSpan).isAfter(maxDate))
950                    maxDate = start.clone().add(this.maxSpan);
951                if (maxDate && end.isAfter(maxDate))
952                    end = maxDate.clone();
953
954                // If the end of the range is before the minimum or the start of the range is
955                // after the maximum, don't display this range option at all.
956                if ((this.minDate && end.isBefore(this.minDate, this.timepicker ? 'minute' : 'day'))
957                  || (maxDate && start.isAfter(maxDate, this.timepicker ? 'minute' : 'day')))
958                    continue;
959
960                //Support unicode chars in the range names.
961                var elem = document.createElement('textarea');
962                elem.innerHTML = range;
963                var rangeHtml = elem.value;
964
965                this.ranges[rangeHtml] = [start, end];
966            }
967
968            var list = '<ul>';
969            for (range in this.ranges) {
970                list += '<li data-range-key="' + range + '">' + range + '</li>';
971            }
972            if (this.showCustomRangeLabel) {
973                list += '<li data-range-key="' + this.locale.customRangeLabel + '">' + this.locale.customRangeLabel + '</li>';
974            }
975            list += '</ul>';
976            this.container.find('.ranges').prepend(list);
977        }
978
979        if (typeof cb === 'function') {
980            this.callback = cb;
981        }
982
983        if (!this.timePicker) {
984            this.startDate = this.startDate.startOf('day');
985            this.endDate = this.endDate.endOf('day');
986            this.container.find('.calendar-time').hide();
987        }
988
989        //can't be used together for now
990        if (this.timePicker && this.autoApply)
991            this.autoApply = false;
992
993        if (this.autoApply) {
994            this.container.addClass('auto-apply');
995        }
996
997        if (typeof options.ranges === 'object')
998            this.container.addClass('show-ranges');
999
1000        if (this.singleDatePicker) {
1001            this.container.addClass('single');
1002            this.container.find('.drp-calendar.left').addClass('single');
1003            this.container.find('.drp-calendar.left').show();
1004            this.container.find('.drp-calendar.right').hide();
1005            if (!this.timePicker) {
1006                this.container.addClass('auto-apply');
1007            }
1008        }
1009
1010        if ((typeof options.ranges === 'undefined' && !this.singleDatePicker) || this.alwaysShowCalendars) {
1011            this.container.addClass('show-calendar');
1012        }
1013
1014        this.container.addClass('opens' + this.opens);
1015
1016        //apply CSS classes and labels to buttons
1017        this.container.find('.applyBtn, .cancelBtn').addClass(this.buttonClasses);
1018        if (this.applyButtonClasses.length)
1019            this.container.find('.applyBtn').addClass(this.applyButtonClasses);
1020        if (this.cancelButtonClasses.length)
1021            this.container.find('.cancelBtn').addClass(this.cancelButtonClasses);
1022        this.container.find('.applyBtn').html(this.locale.applyLabel);
1023        this.container.find('.cancelBtn').html(this.locale.cancelLabel);
1024
1025        //
1026        // event listeners
1027        //
1028
1029        this.container.find('.drp-calendar')
1030            .on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this))
1031            .on('click.daterangepicker', '.next', $.proxy(this.clickNext, this))
1032            .on('mousedown.daterangepicker', 'td.available', $.proxy(this.clickDate, this))
1033            .on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this))
1034            .on('change.daterangepicker', 'select.yearselect', $.proxy(this.monthOrYearChanged, this))
1035            .on('change.daterangepicker', 'select.monthselect', $.proxy(this.monthOrYearChanged, this))
1036            .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this))
1037
1038        this.container.find('.ranges')
1039            .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this))
1040
1041        this.container.find('.drp-buttons')
1042            .on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this))
1043            .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this))
1044
1045        if (this.element.is('input') || this.element.is('button')) {
1046            this.element.on({
1047                'click.daterangepicker': $.proxy(this.show, this),
1048                'focus.daterangepicker': $.proxy(this.show, this),
1049                'keyup.daterangepicker': $.proxy(this.elementChanged, this),
1050                'keydown.daterangepicker': $.proxy(this.keydown, this) //IE 11 compatibility
1051            });
1052        } else {
1053            this.element.on('click.daterangepicker', $.proxy(this.toggle, this));
1054            this.element.on('keydown.daterangepicker', $.proxy(this.toggle, this));
1055        }
1056
1057        //
1058        // if attached to a text input, set the initial value
1059        //
1060
1061        this.updateElement();
1062
1063    };
1064
1065    DateRangePicker.prototype = {
1066
1067        constructor: DateRangePicker,
1068
1069        setStartDate: function(startDate) {
1070            if (typeof startDate === 'string')
1071                this.startDate = moment(startDate, this.locale.format);
1072
1073            if (typeof startDate === 'object')
1074                this.startDate = moment(startDate);
1075
1076            if (!this.timePicker)
1077                this.startDate = this.startDate.startOf('day');
1078
1079            if (this.timePicker && this.timePickerIncrement)
1080                this.startDate.minute(Math.round(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
1081
1082            if (this.minDate && this.startDate.isBefore(this.minDate)) {
1083                this.startDate = this.minDate.clone();
1084                if (this.timePicker && this.timePickerIncrement)
1085                    this.startDate.minute(Math.round(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
1086            }
1087
1088            if (this.maxDate && this.startDate.isAfter(this.maxDate)) {
1089                this.startDate = this.maxDate.clone();
1090                if (this.timePicker && this.timePickerIncrement)
1091                    this.startDate.minute(Math.floor(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
1092            }
1093
1094            if (!this.isShowing)
1095                this.updateElement();
1096
1097            this.updateMonthsInView();
1098        },
1099
1100        setEndDate: function(endDate) {
1101            if (typeof endDate === 'string')
1102                this.endDate = moment(endDate, this.locale.format);
1103
1104            if (typeof endDate === 'object')
1105                this.endDate = moment(endDate);
1106
1107            if (!this.timePicker)
1108                this.endDate = this.endDate.endOf('day');
1109
1110            if (this.timePicker && this.timePickerIncrement)
1111                this.endDate.minute(Math.round(this.endDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
1112
1113            if (this.endDate.isBefore(this.startDate))
1114                this.endDate = this.startDate.clone();
1115
1116            if (this.maxDate && this.endDate.isAfter(this.maxDate))
1117                this.endDate = this.maxDate.clone();
1118
1119            if (this.maxSpan && this.startDate.clone().add(this.maxSpan).isBefore(this.endDate))
1120                this.endDate = this.startDate.clone().add(this.maxSpan);
1121
1122            this.previousRightTime = this.endDate.clone();
1123
1124            this.container.find('.drp-selected').html(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
1125
1126            if (!this.isShowing)
1127                this.updateElement();
1128
1129            this.updateMonthsInView();
1130        },
1131
1132        isInvalidDate: function() {
1133            return false;
1134        },
1135
1136        isCustomDate: function() {
1137            return false;
1138        },
1139
1140        updateView: function() {
1141            if (this.timePicker) {
1142                this.renderTimePicker('left');
1143                this.renderTimePicker('right');
1144                if (!this.endDate) {
1145                    this.container.find('.right .calendar-time select').attr('disabled', 'disabled').addClass('disabled');
1146                } else {
1147                    this.container.find('.right .calendar-time select').removeAttr('disabled'
vendor: 22,094 bytes, lines 1147-1633
1147).removeClass('disabled');
1148                }
1149            }
1150            if (this.endDate)
1151                this.container.find('.drp-selected').html(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
1152            this.updateMonthsInView();
1153            this.updateCalendars();
1154            this.updateFormInputs();
1155        },
1156
1157        updateMonthsInView: function() {
1158            if (this.endDate) {
1159
1160                //if both dates are visible already, do nothing
1161                if (!this.singleDatePicker && this.leftCalendar.month && this.rightCalendar.month &&
1162                    (this.startDate.format('YYYY-MM') == this.leftCalendar.month.format('YYYY-MM') || this.startDate.format('YYYY-MM') == this.rightCalendar.month.format('YYYY-MM'))
1163                    &&
1164                    (this.endDate.format('YYYY-MM') == this.leftCalendar.month.format('YYYY-MM') || this.endDate.format('YYYY-MM') == this.rightCalendar.month.format('YYYY-MM'))
1165                    ) {
1166                    return;
1167                }
1168
1169                this.leftCalendar.month = this.startDate.clone().date(2);
1170                if (!this.linkedCalendars && (this.endDate.month() != this.startDate.month() || this.endDate.year() != this.startDate.year())) {
1171                    this.rightCalendar.month = this.endDate.clone().date(2);
1172                } else {
1173                    this.rightCalendar.month = this.startDate.clone().date(2).add(1, 'month');
1174                }
1175
1176            } else {
1177                if (this.leftCalendar.month.format('YYYY-MM') != this.startDate.format('YYYY-MM') && this.rightCalendar.month.format('YYYY-MM') != this.startDate.format('YYYY-MM')) {
1178                    this.leftCalendar.month = this.startDate.clone().date(2);
1179                    this.rightCalendar.month = this.startDate.clone().date(2).add(1, 'month');
1180                }
1181            }
1182            if (this.maxDate && this.linkedCalendars && !this.singleDatePicker && this.rightCalendar.month > this.maxDate) {
1183              this.rightCalendar.month = this.maxDate.clone().date(2);
1184              this.leftCalendar.month = this.maxDate.clone().date(2).subtract(1, 'month');
1185            }
1186        },
1187
1188        updateCalendars: function() {
1189
1190            if (this.timePicker) {
1191                var hour, minute, second;
1192                if (this.endDate) {
1193                    hour = parseInt(this.container.find('.left .hourselect').val(), 10);
1194                    minute = parseInt(this.container.find('.left .minuteselect').val(), 10);
1195                    if (isNaN(minute)) {
1196                        minute = parseInt(this.container.find('.left .minuteselect option:last').val(), 10);
1197                    }
1198                    second = this.timePickerSeconds ? parseInt(this.container.find('.left .secondselect').val(), 10) : 0;
1199                    if (!this.timePicker24Hour) {
1200                        var ampm = this.container.find('.left .ampmselect').val();
1201                        if (ampm === 'PM' && hour < 12)
1202                            hour += 12;
1203                        if (ampm === 'AM' && hour === 12)
1204                            hour = 0;
1205                    }
1206                } else {
1207                    hour = parseInt(this.container.find('.right .hourselect').val(), 10);
1208                    minute = parseInt(this.container.find('.right .minuteselect').val(), 10);
1209                    if (isNaN(minute)) {
1210                        minute = parseInt(this.container.find('.right .minuteselect option:last').val(), 10);
1211                    }
1212                    second = this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10) : 0;
1213                    if (!this.timePicker24Hour) {
1214                        var ampm = this.container.find('.right .ampmselect').val();
1215                        if (ampm === 'PM' && hour < 12)
1216                            hour += 12;
1217                        if (ampm === 'AM' && hour === 12)
1218                            hour = 0;
1219                    }
1220                }
1221                this.leftCalendar.month.hour(hour).minute(minute).second(second);
1222                this.rightCalendar.month.hour(hour).minute(minute).second(second);
1223            }
1224
1225            this.renderCalendar('left');
1226            this.renderCalendar('right');
1227
1228            //highlight any predefined range matching the current start and end dates
1229            this.container.find('.ranges li').removeClass('active');
1230            if (this.endDate == null) return;
1231
1232            this.calculateChosenLabel();
1233        },
1234
1235        renderCalendar: function(side) {
1236
1237            //
1238            // Build the matrix of dates that will populate the calendar
1239            //
1240
1241            var calendar = side == 'left' ? this.leftCalendar : this.rightCalendar;
1242            var month = calendar.month.month();
1243            var year = calendar.month.year();
1244            var hour = calendar.month.hour();
1245            var minute = calendar.month.minute();
1246            var second = calendar.month.second();
1247            var daysInMonth = moment([year, month]).daysInMonth();
1248            var firstDay = moment([year, month, 1]);
1249            var lastDay = moment([year, month, daysInMonth]);
1250            var lastMonth = moment(firstDay).subtract(1, 'month').month();
1251            var lastYear = moment(firstDay).subtract(1, 'month').year();
1252            var daysInLastMonth = moment([lastYear, lastMonth]).daysInMonth();
1253            var dayOfWeek = firstDay.day();
1254
1255            //initialize a 6 rows x 7 columns array for the calendar
1256            var calendar = [];
1257            calendar.firstDay = firstDay;
1258            calendar.lastDay = lastDay;
1259
1260            for (var i = 0; i < 6; i++) {
1261                calendar[i] = [];
1262            }
1263
1264            //populate the calendar with date objects
1265            var startDay = daysInLastMonth - dayOfWeek + this.locale.firstDay + 1;
1266            if (startDay > daysInLastMonth)
1267                startDay -= 7;
1268
1269            if (dayOfWeek == this.locale.firstDay)
1270                startDay = daysInLastMonth - 6;
1271
1272            var curDate = moment([lastYear, lastMonth, startDay, 12, minute, second]);
1273
1274            var col, row;
1275            for (var i = 0, col = 0, row = 0; i < 42; i++, col++, curDate = moment(curDate).add(24, 'hour')) {
1276                if (i > 0 && col % 7 === 0) {
1277                    col = 0;
1278                    row++;
1279                }
1280                calendar[row][col] = curDate.clone().hour(hour).minute(minute).second(second);
1281                curDate.hour(12);
1282
1283                if (this.minDate && calendar[row][col].format('YYYY-MM-DD') == this.minDate.format('YYYY-MM-DD') && calendar[row][col].isBefore(this.minDate) && side == 'left') {
1284                    calendar[row][col] = this.minDate.clone();
1285                }
1286
1287                if (this.maxDate && calendar[row][col].format('YYYY-MM-DD') == this.maxDate.format('YYYY-MM-DD') && calendar[row][col].isAfter(this.maxDate) && side == 'right') {
1288                    calendar[row][col] = this.maxDate.clone();
1289                }
1290
1291            }
1292
1293            //make the calendar object available to hoverDate/clickDate
1294            if (side == 'left') {
1295                this.leftCalendar.calendar = calendar;
1296            } else {
1297                this.rightCalendar.calendar = calendar;
1298            }
1299
1300            //
1301            // Display the calendar
1302            //
1303
1304            var minDate = side == 'left' ? this.minDate : this.startDate;
1305            var maxDate = this.maxDate;
1306            var selected = side == 'left' ? this.startDate : this.endDate;
1307            var arrow = this.locale.direction == 'ltr' ? {left: 'chevron-left', right: 'chevron-right'} : {left: 'chevron-right', right: 'chevron-left'};
1308
1309            var html = '<table class="table-condensed">';
1310            html += '<thead>';
1311            html += '<tr>';
1312
1313            // add empty cell for week number
1314            if (this.showWeekNumbers || this.showISOWeekNumbers)
1315                html += '<th></th>';
1316
1317            if ((!minDate || minDate.isBefore(calendar.firstDay)) && (!this.linkedCalendars || side == 'left')) {
1318                html += '<th class="prev available"><span></span></th>';
1319            } else {
1320                html += '<th></th>';
1321            }
1322
1323            var dateHtml = this.locale.monthNames[calendar[1][1].month()] + calendar[1][1].format(" YYYY");
1324
1325            if (this.showDropdowns) {
1326                var currentMonth = calendar[1][1].month();
1327                var currentYear = calendar[1][1].year();
1328                var maxYear = (maxDate && maxDate.year()) || (this.maxYear);
1329                var minYear = (minDate && minDate.year()) || (this.minYear);
1330                var inMinYear = currentYear == minYear;
1331                var inMaxYear = currentYear == maxYear;
1332
1333                var monthHtml = '<select class="monthselect">';
1334                for (var m = 0; m < 12; m++) {
1335                    if ((!inMinYear || (minDate && m >= minDate.month())) && (!inMaxYear || (maxDate && m <= maxDate.month()))) {
1336                        monthHtml += "<option value='" + m + "'" +
1337                            (m === currentMonth ? " selected='selected'" : "") +
1338                            ">" + this.locale.monthNames[m] + "</option>";
1339                    } else {
1340                        monthHtml += "<option value='" + m + "'" +
1341                            (m === currentMonth ? " selected='selected'" : "") +
1342                            " disabled='disabled'>" + this.locale.monthNames[m] + "</option>";
1343                    }
1344                }
1345                monthHtml += "</select>";
1346
1347                var yearHtml = '<select class="yearselect">';
1348                for (var y = minYear; y <= maxYear; y++) {
1349                    yearHtml += '<option value="' + y + '"' +
1350                        (y === currentYear ? ' selected="selected"' : '') +
1351                        '>' + y + '</option>';
1352                }
1353                yearHtml += '</select>';
1354
1355                dateHtml = monthHtml + yearHtml;
1356            }
1357
1358            html += '<th colspan="5" class="month">' + dateHtml + '</th>';
1359            if ((!maxDate || maxDate.isAfter(calendar.lastDay)) && (!this.linkedCalendars || side == 'right' || this.singleDatePicker)) {
1360                html += '<th class="next available"><span></span></th>';
1361            } else {
1362                html += '<th></th>';
1363            }
1364
1365            html += '</tr>';
1366            html += '<tr>';
1367
1368            // add week number label
1369            if (this.showWeekNumbers || this.showISOWeekNumbers)
1370                html += '<th class="week">' + this.locale.weekLabel + '</th>';
1371
1372            $.each(this.locale.daysOfWeek, function(index, dayOfWeek) {
1373                html += '<th>' + dayOfWeek + '</th>';
1374            });
1375
1376            html += '</tr>';
1377            html += '</thead>';
1378            html += '<tbody>';
1379
1380            //adjust maxDate to reflect the maxSpan setting in order to
1381            //grey out end dates beyond the maxSpan
1382            if (this.endDate == null && this.maxSpan) {
1383                var maxLimit = this.startDate.clone().add(this.maxSpan).endOf('day');
1384                if (!maxDate || maxLimit.isBefore(maxDate)) {
1385                    maxDate = maxLimit;
1386                }
1387            }
1388
1389            for (var row = 0; row < 6; row++) {
1390                html += '<tr>';
1391
1392                // add week number
1393                if (this.showWeekNumbers)
1394                    html += '<td class="week">' + calendar[row][0].week() + '</td>';
1395                else if (this.showISOWeekNumbers)
1396                    html += '<td class="week">' + calendar[row][0].isoWeek() + '</td>';
1397
1398                for (var col = 0; col < 7; col++) {
1399
1400                    var classes = [];
1401
1402                    //highlight today's date
1403                    if (calendar[row][col].isSame(new Date(), "day"))
1404                        classes.push('today');
1405
1406                    //highlight weekends
1407                    if (calendar[row][col].isoWeekday() > 5)
1408                        classes.push('weekend');
1409
1410                    //grey out the dates in other months displayed at beginning and end of this calendar
1411                    if (calendar[row][col].month() != calendar[1][1].month())
1412                        classes.push('off', 'ends');
1413
1414                    //don't allow selection of dates before the minimum date
1415                    if (this.minDate && calendar[row][col].isBefore(this.minDate, 'day'))
1416                        classes.push('off', 'disabled');
1417
1418                    //don't allow selection of dates after the maximum date
1419                    if (maxDate && calendar[row][col].isAfter(maxDate, 'day'))
1420                        classes.push('off', 'disabled');
1421
1422                    //don't allow selection of date if a custom function decides it's invalid
1423                    if (this.isInvalidDate(calendar[row][col]))
1424                        classes.push('off', 'disabled');
1425
1426                    //highlight the currently selected start date
1427                    if (calendar[row][col].format('YYYY-MM-DD') == this.startDate.format('YYYY-MM-DD'))
1428                        classes.push('active', 'start-date');
1429
1430                    //highlight the currently selected end date
1431                    if (this.endDate != null && calendar[row][col].format('YYYY-MM-DD') == this.endDate.format('YYYY-MM-DD'))
1432                        classes.push('active', 'end-date');
1433
1434                    //highlight dates in-between the selected dates
1435                    if (this.endDate != null && calendar[row][col] > this.startDate && calendar[row][col] < this.endDate)
1436                        classes.push('in-range');
1437
1438                    //apply custom classes for this date
1439                    var isCustom = this.isCustomDate(calendar[row][col]);
1440                    if (isCustom !== false) {
1441                        if (typeof isCustom === 'string')
1442                            classes.push(isCustom);
1443                        else
1444                            Array.prototype.push.apply(classes, isCustom);
1445                    }
1446
1447                    var cname = '', disabled = false;
1448                    for (var i = 0; i < classes.length; i++) {
1449                        cname += classes[i] + ' ';
1450                        if (classes[i] == 'disabled')
1451                            disabled = true;
1452                    }
1453                    if (!disabled)
1454                        cname += 'available';
1455
1456                    html += '<td class="' + cname.replace(/^\s+|\s+$/g, '') + '" data-title="' + 'r' + row + 'c' + col + '">' + calendar[row][col].date() + '</td>';
1457
1458                }
1459                html += '</tr>';
1460            }
1461
1462            html += '</tbody>';
1463            html += '</table>';
1464
1465            this.container.find('.drp-calendar.' + side + ' .calendar-table').html(html);
1466
1467        },
1468
1469        renderTimePicker: function(side) {
1470
1471            // Don't bother updating the time picker if it's currently disabled
1472            // because an end date hasn't been clicked yet
1473            if (side == 'right' && !this.endDate) return;
1474
1475            var html, selected, minDate, maxDate = this.maxDate;
1476
1477            if (this.maxSpan && (!this.maxDate || this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)))
1478                maxDate = this.startDate.clone().add(this.maxSpan);
1479
1480            if (side == 'left') {
1481                selected = this.startDate.clone();
1482                minDate = this.minDate;
1483            } else if (side == 'right') {
1484                selected = this.endDate.clone();
1485                minDate = this.startDate;
1486
1487                //Preserve the time already selected
1488                var timeSelector = this.container.find('.drp-calendar.right .calendar-time');
1489                if (timeSelector.html() != '') {
1490
1491                    selected.hour(!isNaN(selected.hour()) ? selected.hour() : timeSelector.find('.hourselect option:selected').val());
1492                    selected.minute(!isNaN(selected.minute()) ? selected.minute() : timeSelector.find('.minuteselect option:selected').val());
1493                    selected.second(!isNaN(selected.second()) ? selected.second() : timeSelector.find('.secondselect option:selected').val());
1494
1495                    if (!this.timePicker24Hour) {
1496                        var ampm = timeSelector.find('.ampmselect option:selected').val();
1497                        if (ampm === 'PM' && selected.hour() < 12)
1498                            selected.hour(selected.hour() + 12);
1499                        if (ampm === 'AM' && selected.hour() === 12)
1500                            selected.hour(0);
1501                    }
1502
1503                }
1504
1505                if (selected.isBefore(this.startDate))
1506                    selected = this.startDate.clone();
1507
1508                if (maxDate && selected.isAfter(maxDate))
1509                    selected = maxDate.clone();
1510
1511            }
1512
1513            //
1514            // hours
1515            //
1516
1517            html = '<select class="hourselect">';
1518
1519            var start = this.timePicker24Hour ? 0 : 1;
1520            var end = this.timePicker24Hour ? 23 : 12;
1521
1522            for (var i = start; i <= end; i++) {
1523                var i_in_24 = i;
1524                if (!this.timePicker24Hour)
1525                    i_in_24 = selected.hour() >= 12 ? (i == 12 ? 12 : i + 12) : (i == 12 ? 0 : i);
1526
1527                var time = selected.clone().hour(i_in_24);
1528                var disabled = false;
1529                if (minDate && time.minute(59).isBefore(minDate))
1530                    disabled = true;
1531                if (maxDate && time.minute(0).isAfter(maxDate))
1532                    disabled = true;
1533
1534                if (i_in_24 == selected.hour() && !disabled) {
1535                    html += '<option value="' + i + '" selected="selected">' + i + '</option>';
1536                } else if (disabled) {
1537                    html += '<option value="' + i + '" disabled="disabled" class="disabled">' + i + '</option>';
1538                } else {
1539                    html += '<option value="' + i + '">' + i + '</option>';
1540                }
1541            }
1542
1543            html += '</select> ';
1544
1545            //
1546            // minutes
1547            //
1548
1549            html += ': <select class="minuteselect">';
1550
1551            for (var i = 0; i < 60; i += this.timePickerIncrement) {
1552                var padded = i < 10 ? '0' + i : i;
1553                var time = selected.clone().minute(i);
1554
1555                var disabled = false;
1556                if (minDate && time.second(59).isBefore(minDate))
1557                    disabled = true;
1558                if (maxDate && time.second(0).isAfter(maxDate))
1559                    disabled = true;
1560
1561                if (selected.minute() == i && !disabled) {
1562                    html += '<option value="' + i + '" selected="selected">' + padded + '</option>';
1563                } else if (disabled) {
1564                    html += '<option value="' + i + '" disabled="disabled" class="disabled">' + padded + '</option>';
1565                } else {
1566                    html += '<option value="' + i + '">' + padded + '</option>';
1567                }
1568            }
1569
1570            html += '</select> ';
1571
1572            //
1573            // seconds
1574            //
1575
1576            if (this.timePickerSeconds) {
1577                html += ': <select class="secondselect">';
1578
1579                for (var i = 0; i < 60; i++) {
1580                    var padded = i < 10 ? '0' + i : i;
1581                    var time = selected.clone().second(i);
1582
1583                    var disabled = false;
1584                    if (minDate && time.isBefore(minDate))
1585                        disabled = true;
1586                    if (maxDate && time.isAfter(maxDate))
1587                        disabled = true;
1588
1589                    if (selected.second() == i && !disabled) {
1590                        html += '<option value="' + i + '" selected="selected">' + padded + '</option>';
1591                    } else if (disabled) {
1592                        html += '<option value="' + i + '" disabled="disabled" class="disabled">' + padded + '</option>';
1593                    } else {
1594                        html += '<option value="' + i + '">' + padded + '</option>';
1595                    }
1596                }
1597
1598                html += '</select> ';
1599            }
1600
1601            //
1602            // AM/PM
1603            //
1604
1605            if (!this.timePicker24Hour) {
1606                html += '<select class="ampmselect">';
1607
1608                var am_html = '';
1609                var pm_html = '';
1610
1611                if (minDate && selected.clone().hour(12).minute(0).second(0).isBefore(minDate))
1612                    am_html = ' disabled="disabled" class="disabled"';
1613
1614                if (maxDate && selected.clone().hour(0).minute(0).second(0).isAfter(maxDate))
1615                    pm_html = ' disabled="disabled" class="disabled"';
1616
1617                if (selected.hour() >= 12) {
1618                    html += '<option value="AM"' + am_html + '>AM</option><option value="PM" selected="selected"' + pm_html + '>PM</option>';
1619                } else {
1620                    html += '<option value="AM" selected="selected"' + am_html + '>AM</option><option value="PM"' + pm_html + '>PM</option>';
1621                }
1622
1623                html += '</select>';
1624            }
1625
1626            this.container.find('.drp-calendar.' + side + ' .calendar-time').html(html);
1627
1628        },
1629
1630        updateFormInputs: function() {
1631
1632            if (this.singleDatePicker || (this.endDate && (this.startDate.isBefore(this.endDate) || this.startDate.isSame(this.endDate)))) {
1633                this.container.find('button.applyBtn').
vendor: 1,312 bytes, lines 1633-1665
1633removeAttr('disabled');
1634            } else {
1635                this.container.find('button.applyBtn').attr('disabled', 'disabled');
1636            }
1637
1638        },
1639
1640        move: function() {
1641            var parentOffset = { top: 0, left: 0 },
1642                containerTop;
1643            var parentRightEdge = $(window).width();
1644            if (!this.parentEl.is('body')) {
1645                parentOffset = {
1646                    top: this.parentEl.offset().top - this.parentEl.scrollTop(),
1647                    left: this.parentEl.offset().left - this.parentEl.scrollLeft()
1648                };
1649                parentRightEdge = this.parentEl[0].clientWidth + this.parentEl.offset().left;
1650            }
1651
1652            if (this.drops == 'up')
1653                containerTop = this.element.offset().top - this.container.outerHeight() - parentOffset.top;
1654            else
1655                containerTop = this.element.offset().top + this.element.outerHeight() - parentOffset.top;
1656
1657            // Force the container to it's actual width
1658            this.container.css({
1659              top: 0,
1660              left: 0,
1661              right: 'auto'
1662            });
1663            var containerWidth = this.container.outerWidth();
1664
1665            this.container[this.drops == 'up' ? 'addClass' : 'removeClass']('drop-
vendor: 21,720 bytes, lines 1665-2181
1665up');
1666
1667            if (this.opens == 'left') {
1668                var containerRight = parentRightEdge - this.element.offset().left - this.element.outerWidth();
1669                if (containerWidth + containerRight > $(window).width()) {
1670                    this.container.css({
1671                        top: containerTop,
1672                        right: 'auto',
1673                        left: 9
1674                    });
1675                } else {
1676                    this.container.css({
1677                        top: containerTop,
1678                        right: containerRight,
1679                        left: 'auto'
1680                    });
1681                }
1682            } else if (this.opens == 'center') {
1683                var containerLeft = this.element.offset().left - parentOffset.left + this.element.outerWidth() / 2
1684                                        - containerWidth / 2;
1685                if (containerLeft < 0) {
1686                    this.container.css({
1687                        top: containerTop,
1688                        right: 'auto',
1689                        left: 9
1690                    });
1691                } else if (containerLeft + containerWidth > $(window).width()) {
1692                    this.container.css({
1693                        top: containerTop,
1694                        left: 'auto',
1695                        right: 0
1696                    });
1697                } else {
1698                    this.container.css({
1699                        top: containerTop,
1700                        left: containerLeft,
1701                        right: 'auto'
1702                    });
1703                }
1704            } else {
1705                var containerLeft = this.element.offset().left - parentOffset.left;
1706                if (containerLeft + containerWidth > $(window).width()) {
1707                    this.container.css({
1708                        top: containerTop,
1709                        left: 'auto',
1710                        right: 0
1711                    });
1712                } else {
1713                    this.container.css({
1714                        top: containerTop,
1715                        left: containerLeft,
1716                        right: 'auto'
1717                    });
1718                }
1719            }
1720        },
1721
1722        show: function(e) {
1723            if (this.isShowing) return;
1724
1725            // Create a click proxy that is private to this instance of datepicker, for unbinding
1726            this._outsideClickProxy = $.proxy(function(e) { this.outsideClick(e); }, this);
1727
1728            // Bind global datepicker mousedown for hiding and
1729            $(document)
1730              .on('mousedown.daterangepicker', this._outsideClickProxy)
1731              // also support mobile devices
1732              .on('touchend.daterangepicker', this._outsideClickProxy)
1733              // also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them
1734              .on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy)
1735              // and also close when focus changes to outside the picker (eg. tabbing between controls)
1736              .on('focusin.daterangepicker', this._outsideClickProxy);
1737
1738            // Reposition the picker if the window is resized while it's open
1739            $(window).on('resize.daterangepicker', $.proxy(function(e) { this.move(e); }, this));
1740
1741            this.oldStartDate = this.startDate.clone();
1742            this.oldEndDate = this.endDate.clone();
1743            this.previousRightTime = this.endDate.clone();
1744
1745            this.updateView();
1746            this.container.show();
1747            this.move();
1748            this.element.trigger('show.daterangepicker', this);
1749            this.isShowing = true;
1750        },
1751
1752        hide: function(e) {
1753            if (!this.isShowing) return;
1754
1755            //incomplete date selection, revert to last values
1756            if (!this.endDate) {
1757                this.startDate = this.oldStartDate.clone();
1758                this.endDate = this.oldEndDate.clone();
1759            }
1760
1761            //if a new date range was selected, invoke the user callback function
1762            if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
1763                this.callback(this.startDate.clone(), this.endDate.clone(), this.chosenLabel);
1764
1765            //if picker is attached to a text input, update it
1766            this.updateElement();
1767
1768            $(document).off('.daterangepicker');
1769            $(window).off('.daterangepicker');
1770            this.container.hide();
1771            this.element.trigger('hide.daterangepicker', this);
1772            this.isShowing = false;
1773        },
1774
1775        toggle: function(e) {
1776            if (this.isShowing) {
1777                this.hide();
1778            } else {
1779                this.show();
1780            }
1781        },
1782
1783        outsideClick: function(e) {
1784            var target = $(e.target);
1785            // if the page is clicked anywhere except within the daterangerpicker/button
1786            // itself then call this.hide()
1787            if (
1788                // ie modal dialog fix
1789                e.type == "focusin" ||
1790                target.closest(this.element).length ||
1791                target.closest(this.container).length ||
1792                target.closest('.calendar-table').length
1793                ) return;
1794            this.hide();
1795            this.element.trigger('outsideClick.daterangepicker', this);
1796        },
1797
1798        showCalendars: function() {
1799            this.container.addClass('show-calendar');
1800            this.move();
1801            this.element.trigger('showCalendar.daterangepicker', this);
1802        },
1803
1804        hideCalendars: function() {
1805            this.container.removeClass('show-calendar');
1806            this.element.trigger('hideCalendar.daterangepicker', this);
1807        },
1808
1809        clickRange: function(e) {
1810            var label = e.target.getAttribute('data-range-key');
1811            this.chosenLabel = label;
1812            if (label == this.locale.customRangeLabel) {
1813                this.showCalendars();
1814            } else {
1815                var dates = this.ranges[label];
1816                this.startDate = dates[0];
1817                this.endDate = dates[1];
1818
1819                if (!this.timePicker) {
1820                    this.startDate.startOf('day');
1821                    this.endDate.endOf('day');
1822                }
1823
1824                if (!this.alwaysShowCalendars)
1825                    this.hideCalendars();
1826                this.clickApply();
1827            }
1828        },
1829
1830        clickPrev: function(e) {
1831            var cal = $(e.target).parents('.drp-calendar');
1832            if (cal.hasClass('left')) {
1833                this.leftCalendar.month.subtract(1, 'month');
1834                if (this.linkedCalendars)
1835                    this.rightCalendar.month.subtract(1, 'month');
1836            } else {
1837                this.rightCalendar.month.subtract(1, 'month');
1838            }
1839            this.updateCalendars();
1840        },
1841
1842        clickNext: function(e) {
1843            var cal = $(e.target).parents('.drp-calendar');
1844            if (cal.hasClass('left')) {
1845                this.leftCalendar.month.add(1, 'month');
1846            } else {
1847                this.rightCalendar.month.add(1, 'month');
1848                if (this.linkedCalendars)
1849                    this.leftCalendar.month.add(1, 'month');
1850            }
1851            this.updateCalendars();
1852        },
1853
1854        hoverDate: function(e) {
1855
1856            //ignore dates that can't be selected
1857            if (!$(e.target).hasClass('available')) return;
1858
1859            var title = $(e.target).attr('data-title');
1860            var row = title.substr(1, 1);
1861            var col = title.substr(3, 1);
1862            var cal = $(e.target).parents('.drp-calendar');
1863            var date = cal.hasClass('left') ? this.leftCalendar.calendar[row][col] : this.rightCalendar.calendar[row][col];
1864
1865            //highlight the dates between the start date and the date being hovered as a potential end date
1866            var leftCalendar = this.leftCalendar;
1867            var rightCalendar = this.rightCalendar;
1868            var startDate = this.startDate;
1869            if (!this.endDate) {
1870                this.container.find('.drp-calendar tbody td').each(function(index, el) {
1871
1872                    //skip week numbers, only look at dates
1873                    if ($(el).hasClass('week')) return;
1874
1875                    var title = $(el).attr('data-title');
1876                    var row = title.substr(1, 1);
1877                    var col = title.substr(3, 1);
1878                    var cal = $(el).parents('.drp-calendar');
1879                    var dt = cal.hasClass('left') ? leftCalendar.calendar[row][col] : rightCalendar.calendar[row][col];
1880
1881                    if ((dt.isAfter(startDate) && dt.isBefore(date)) || dt.isSame(date, 'day')) {
1882                        $(el).addClass('in-range');
1883                    } else {
1884                        $(el).removeClass('in-range');
1885                    }
1886
1887                });
1888            }
1889
1890        },
1891
1892        clickDate: function(e) {
1893
1894            if (!$(e.target).hasClass('available')) return;
1895
1896            var title = $(e.target).attr('data-title');
1897            var row = title.substr(1, 1);
1898            var col = title.substr(3, 1);
1899            var cal = $(e.target).parents('.drp-calendar');
1900            var date = cal.hasClass('left') ? this.leftCalendar.calendar[row][col] : this.rightCalendar.calendar[row][col];
1901
1902            //
1903            // this function needs to do a few things:
1904            // * alternate between selecting a start and end date for the range,
1905            // * if the time picker is enabled, apply the hour/minute/second from the select boxes to the clicked date
1906            // * if autoapply is enabled, and an end date was chosen, apply the selection
1907            // * if single date picker mode, and time picker isn't enabled, apply the selection immediately
1908            // * if one of the inputs above the calendars was focused, cancel that manual input
1909            //
1910
1911            if (this.endDate || date.isBefore(this.startDate, 'day')) { //picking start
1912                if (this.timePicker) {
1913                    var hour = parseInt(this.container.find('.left .hourselect').val(), 10);
1914                    if (!this.timePicker24Hour) {
1915                        var ampm = this.container.find('.left .ampmselect').val();
1916                        if (ampm === 'PM' && hour < 12)
1917                            hour += 12;
1918                        if (ampm === 'AM' && hour === 12)
1919                            hour = 0;
1920                    }
1921                    var minute = parseInt(this.container.find('.left .minuteselect').val(), 10);
1922                    if (isNaN(minute)) {
1923                        minute = parseInt(this.container.find('.left .minuteselect option:last').val(), 10);
1924                    }
1925                    var second = this.timePickerSeconds ? parseInt(this.container.find('.left .secondselect').val(), 10) : 0;
1926                    date = date.clone().hour(hour).minute(minute).second(second);
1927                }
1928                this.endDate = null;
1929                this.setStartDate(date.clone());
1930            } else if (!this.endDate && date.isBefore(this.startDate)) {
1931                //special case: clicking the same date for start/end,
1932                //but the time of the end date is before the start date
1933                this.setEndDate(this.startDate.clone());
1934            } else { // picking end
1935                if (this.timePicker) {
1936                    var hour = parseInt(this.container.find('.right .hourselect').val(), 10);
1937                    if (!this.timePicker24Hour) {
1938                        var ampm = this.container.find('.right .ampmselect').val();
1939                        if (ampm === 'PM' && hour < 12)
1940                            hour += 12;
1941                        if (ampm === 'AM' && hour === 12)
1942                            hour = 0;
1943                    }
1944                    var minute = parseInt(this.container.find('.right .minuteselect').val(), 10);
1945                    if (isNaN(minute)) {
1946                        minute = parseInt(this.container.find('.right .minuteselect option:last').val(), 10);
1947                    }
1948                    var second = this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10) : 0;
1949                    date = date.clone().hour(hour).minute(minute).second(second);
1950                }
1951                this.setEndDate(date.clone());
1952                if (this.autoApply) {
1953                  this.calculateChosenLabel();
1954                  this.clickApply();
1955                }
1956            }
1957
1958            if (this.singleDatePicker) {
1959                this.setEndDate(this.startDate);
1960                if (!this.timePicker)
1961                    this.clickApply();
1962            }
1963
1964            this.updateView();
1965
1966            //This is to cancel the blur event handler if the mouse was in one of the inputs
1967            e.stopPropagation();
1968
1969        },
1970
1971        calculateChosenLabel: function () {
1972            var customRange = true;
1973            var i = 0;
1974            for (var range in this.ranges) {
1975              if (this.timePicker) {
1976                    var format = this.timePickerSeconds ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD HH:mm";
1977                    //ignore times when comparing dates if time picker seconds is not enabled
1978                    if (this.startDate.format(format) == this.ranges[range][0].format(format) && this.endDate.format(format) == this.ranges[range][1].format(format)) {
1979                        customRange = false;
1980                        this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')').addClass('active').attr('data-range-key');
1981                        break;
1982                    }
1983                } else {
1984                    //ignore times when comparing dates if time picker is not enabled
1985                    if (this.startDate.format('YYYY-MM-DD') == this.ranges[range][0].format('YYYY-MM-DD') && this.endDate.format('YYYY-MM-DD') == this.ranges[range][1].format('YYYY-MM-DD')) {
1986                        customRange = false;
1987                        this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')').addClass('active').attr('data-range-key');
1988                        break;
1989                    }
1990                }
1991                i++;
1992            }
1993            if (customRange) {
1994                if (this.showCustomRangeLabel) {
1995                    this.chosenLabel = this.container.find('.ranges li:last').addClass('active').attr('data-range-key');
1996                } else {
1997                    this.chosenLabel = null;
1998                }
1999                this.showCalendars();
2000            }
2001        },
2002
2003        clickApply: function(e) {
2004            this.hide();
2005            this.element.trigger('apply.daterangepicker', this);
2006        },
2007
2008        clickCancel: function(e) {
2009            this.startDate = this.oldStartDate;
2010            this.endDate = this.oldEndDate;
2011            this.hide();
2012            this.element.trigger('cancel.daterangepicker', this);
2013        },
2014
2015        monthOrYearChanged: function(e) {
2016            var isLeft = $(e.target).closest('.drp-calendar').hasClass('left'),
2017                leftOrRight = isLeft ? 'left' : 'right',
2018                cal = this.container.find('.drp-calendar.'+leftOrRight);
2019
2020            // Month must be Number for new moment versions
2021            var month = parseInt(cal.find('.monthselect').val(), 10);
2022            var year = cal.find('.yearselect').val();
2023
2024            if (!isLeft) {
2025                if (year < this.startDate.year() || (year == this.startDate.year() && month < this.startDate.month())) {
2026                    month = this.startDate.month();
2027                    year = this.startDate.year();
2028                }
2029            }
2030
2031            if (this.minDate) {
2032                if (year < this.minDate.year() || (year == this.minDate.year() && month < this.minDate.month())) {
2033                    month = this.minDate.month();
2034                    year = this.minDate.year();
2035                }
2036            }
2037
2038            if (this.maxDate) {
2039                if (year > this.maxDate.year() || (year == this.maxDate.year() && month > this.maxDate.month())) {
2040                    month = this.maxDate.month();
2041                    year = this.maxDate.year();
2042                }
2043            }
2044
2045            if (isLeft) {
2046                this.leftCalendar.month.month(month).year(year);
2047                if (this.linkedCalendars)
2048                    this.rightCalendar.month = this.leftCalendar.month.clone().add(1, 'month');
2049            } else {
2050                this.rightCalendar.month.month(month).year(year);
2051                if (this.linkedCalendars)
2052                    this.leftCalendar.month = this.rightCalendar.month.clone().subtract(1, 'month');
2053            }
2054            this.updateCalendars();
2055        },
2056
2057        timeChanged: function(e) {
2058
2059            var cal = $(e.target).closest('.drp-calendar'),
2060                isLeft = cal.hasClass('left');
2061
2062            var hour = parseInt(cal.find('.hourselect').val(), 10);
2063            var minute = parseInt(cal.find('.minuteselect').val(), 10);
2064            if (isNaN(minute)) {
2065                minute = parseInt(cal.find('.minuteselect option:last').val(), 10);
2066            }
2067            var second = this.timePickerSeconds ? parseInt(cal.find('.secondselect').val(), 10) : 0;
2068
2069            if (!this.timePicker24Hour) {
2070                var ampm = cal.find('.ampmselect').val();
2071                if (ampm === 'PM' && hour < 12)
2072                    hour += 12;
2073                if (ampm === 'AM' && hour === 12)
2074                    hour = 0;
2075            }
2076
2077            if (isLeft) {
2078                var start = this.startDate.clone();
2079                start.hour(hour);
2080                start.minute(minute);
2081                start.second(second);
2082                this.setStartDate(start);
2083                if (this.singleDatePicker) {
2084                    this.endDate = this.startDate.clone();
2085                } else if (this.endDate && this.endDate.format('YYYY-MM-DD') == start.format('YYYY-MM-DD') && this.endDate.isBefore(start)) {
2086                    this.setEndDate(start.clone());
2087                }
2088            } else if (this.endDate) {
2089                var end = this.endDate.clone();
2090                end.hour(hour);
2091                end.minute(minute);
2092                end.second(second);
2093                this.setEndDate(end);
2094            }
2095
2096            //update the calendars so all clickable dates reflect the new time component
2097            this.updateCalendars();
2098
2099            //update the form inputs above the calendars with the new time
2100            this.updateFormInputs();
2101
2102            //re-render the time pickers because changing one selection can affect what's enabled in another
2103            this.renderTimePicker('left');
2104            this.renderTimePicker('right');
2105
2106        },
2107
2108        elementChanged: function() {
2109            if (!this.element.is('input')) return;
2110            if (!this.element.val().length) return;
2111
2112            var dateString = this.element.val().split(this.locale.separator),
2113                start = null,
2114                end = null;
2115
2116            if (dateString.length === 2) {
2117                start = moment(dateString[0], this.locale.format);
2118                end = moment(dateString[1], this.locale.format);
2119            }
2120
2121            if (this.singleDatePicker || start === null || end === null) {
2122                start = moment(this.element.val(), this.locale.format);
2123                end = start;
2124            }
2125
2126            if (!start.isValid() || !end.isValid()) return;
2127
2128            this.setStartDate(start);
2129            this.setEndDate(end);
2130            this.updateView();
2131        },
2132
2133        keydown: function(e) {
2134            //hide on tab or enter
2135            if ((e.keyCode === 9) || (e.keyCode === 13)) {
2136                this.hide();
2137            }
2138
2139            //hide on esc and prevent propagation
2140            if (e.keyCode === 27) {
2141                e.preventDefault();
2142                e.stopPropagation();
2143
2144                this.hide();
2145            }
2146        },
2147
2148        updateElement: function() {
2149            if (this.element.is('input') && this.autoUpdateInput) {
2150                var newValue = this.startDate.format(this.locale.format);
2151                if (!this.singleDatePicker) {
2152                    newValue += this.locale.separator + this.endDate.format(this.locale.format);
2153                }
2154                if (newValue !== this.element.val()) {
2155                    this.element.val(newValue).trigger('change');
2156                }
2157            }
2158        },
2159
2160        remove: function() {
2161            this.container.remove();
2162            this.element.off('.daterangepicker');
2163            this.element.removeData();
2164        }
2165
2166    };
2167
2168    $.fn.daterangepicker = function(options, callback) {
2169        var implementOptions = $.extend(true, {}, $.fn.daterangepicker.defaultOptions, options);
2170        this.each(function() {
2171            var el = $(this);
2172            if (el.data('daterangepicker'))
2173                el.data('daterangepicker').remove();
2174            el.data('daterangepicker', new DateRangePicker(el, implementOptions, callback));
2175        });
2176        return this;
2177    };
2178
2179    return DateRangePicker;
2180
2181}));
2182;
2183/* MASKING */
2184jQuery('.phone_mask input').each(function(){ jQuery(this).mask('(000) 000-0000'); });
2185jQuery('input[name=phone]').each(function(){ jQuery(this).mask('(000) 000-0000'); });
2186jQuery('input[name=zip_code]').each(function(){ jQuery(this).mask('00000'); });
2187
2188/* BUTTON DISABLE */
2189function recaptchaCallback() {
2190	//let phone = $('#phone');
2191	//if ( phone.Value != null ) {
2192	$('#SUBMIT').removeAttr('disabled');
2193};
2194/* END */
2195
2196/*Francis*/
2197$(document).ready(function () {
2198    let emailField = $('.email-field .input-wrapper');
2199    if (!emailField.length) {
2200        return;
2201    }
2202    let recaptchaDiv = $('<div>', {
2203        class: 'g-recaptcha',
2204        'data-sitekey': '6LfCCUEgAAAAAAzGQtfqku07O46deH46cR22abGz'
2205    }).css({
2206        'margin-top': '15px'
2207    });
2208    emailField.after(recaptchaDiv);
2209});
2210
2211$(document).ready(function() {
2212	$('#hero-slider').slick({
2213		autoplay: true,
2214		autoplaySpeed: 6000,
2215		dots: true,
2216		arrows: true,
2217		//prevArrow : jQuery(".homeslider_nav .prev"),
2218		//nextArrow : jQuery(".homeslider_nav .next")
2219	});
2220	if($('.alert').length>0){
2221		$('html, body').animate({scrollTop:$('.alert').offset().top}, 'slow');
2222	}
2223	if($('.hero-slide').length < 2){
2224		$('.hero-slide').parents('.slick-dotted').find('.slick-dots').addClass('d-none');
2225	}
2226	if($('.hero-slide').length < 2){
2227		$('.hero-slide').parents('.slick-slider').find('.slick-arrow').addClass('d-none');
2228	}
2229	$('.sideways a').on('click', function(){
2230	var hash = $(this).attr('href');
2231	location.href = location.origin + location.pathname + hash
2232	})
2233});
2234
2235$(window).on('load', function() {
2236	// Remove any existing active classes
2237	$('.nav-tabs .nav-link').removeClass('active');
2238	$('.tab-content .tab-pane').removeClass('show active');
2239
2240	// Add active class to the first tab and its content
2241	$('.nav-tabs .nav-link:first').addClass('active');
2242	$('.tab-content .tab-pane:first').addClass('show active');
2243});
2244
2245$(window).scroll(function() {
2246	if ($(this).scrollTop() > 50 ) {
2247		$('.scrolltop:hidden').stop(true, true).fadeIn();
2248	} else {
2249		$('.scrolltop').stop(true, true).fadeOut();
2250	}
2251	$(window).trigger('resize'); 
2252});
2253
2254$(function(){
2255	$(".scroll").click(function(){
2256	$("html,body").animate({scrollTop:$(".thetop").offset().top},"1000");
2257	return false;
2258})
2259});
2260$(document).ready(function() {
2261	$('.staff_area').slick({
2262		autoplay: true,
2263		autoplaySpeed: 6000,
2264		infinite: true,
2265		arrows: true,
2266		dots: false,
2267		slidesToShow: 3,
2268		slidesToScroll: 1,
2269		responsive: [
2270	{
2271	breakpoint: 1024,
2272	settings: {
2273		slidesToShow: 3,
2274		slidesToScroll: 1
2275	}
2276	},
2277	{
2278	breakpoint: 768,
2279	settings: {
2280		slidesToShow: 2,
2281		slidesToScroll: 1
2282	}
2283	},
2284	{
2285	breakpoint: 480,
2286	settings: {
2287		slidesToShow: 1,
2288		slidesToScroll: 1
2289	}
2290	}
2291]
2292	});
2293});
2294
2295$(document).ready(function() {
2296var hash_id = window.location.hash.substring(1);
2297	$('.page_inner .nav-tabs li').each(function(){
2298		if(hash_id == $(this).find('a').attr('href').substring(1)){
2299			$('.page_inner .nav-tabs li a').removeClass('active')
2300			$(this).find('a').addClass('active');
2301			$('.tab-content .tab-pane').removeClass('active');
2302			$('.tab-content').find('#'+hash_id).addClass('active');
2303		}
2304	})
2305	if($('a').attr('href').indexOf('#') != 0 ){
2306		$('a').on('click', function(){
2307			var hash_id = $(this).attr('href').split('#')[1];
2308			$('.page_inner .nav-tabs li').each(function(){
2309				if(hash_id == $(this).find('a').attr('href').substring(1)){
2310					$('.page_inner .nav-tabs li a').removeClass('active');
2311					$(this).find('a[href="#'+hash_id+'"]').addClass('active');
2312					$('.tab-content .tab-pane').removeClass('active');
2313					$('.tab-content').find('#'+hash_id).addClass('active');
2314				}
2315			})
2316		})
2317	}
2318});
2319
2320/*ANIMATED COUNTER*/
2321(function ($) {
2322	$.fn.countTo = function (options) {
2323		options = options || {};
2324		return $(this).each(function () {
2325			var settings = $.extend({}, $.fn.countTo.defaults, {
2326				from:            $(this).data('from'),
2327				to:              $(this).data('to'),
2328				speed:           $(this).data('speed'),
2329				refreshInterval: $(this).data('refresh-interval'),
2330				decimals:        $(this).data('decimals')
2331			}, options);
2332			var loops = Math.ceil(settings.speed / settings.refreshInterval),
2333				increment = (settings.to - settings.from) / loops;
2334			var self = this,
2335				$self = $(this),
2336				loopCount = 0,
2337				value = settings.from,
2338				data = $self.data('countTo') || {};
2339			$self.data('countTo', data);
2340			if (data.interval) {
2341				clearInterval(data.interval);
2342			}
2343			data.interval = setInterval(updateTimer, settings.refreshInterval);
2344			render(value);
2345			function updateTimer() {
2346				value += increment;
2347				loopCount++;
2348				render(value);
2349				if (typeof(settings.onUpdate) == 'function') {
2350					settings.onUpdate.call(self, value);
2351				}
2352				if (loopCount >= loops) {
2353					$self.removeData('countTo');
2354					clearInterval(data.interval);
2355					value = settings.to;
2356					if (typeof(settings.onComplete) == 'function') {
2357						settings.onComplete.call(self, value);
2358					}
2359				}
2360			}
2361			function render(value) {
2362				var formattedValue = settings.formatter.call(self, value, settings);
2363				$self.text(formattedValue);
2364			}
2365		});
2366	};
2367	$.fn.countTo.defaults = {
2368		from: 0,               
2369		to: 0,                 
2370		speed: 1000,           
2371		refreshInterval: 100,  
2372		decimals: 0,           
2373		formatter: formatter,  
2374		onUpdate: null,        
2375		onComplete: null       
2376	};
2377	function formatter(value, settings) {
2378		return value.toFixed(settings.decimals);
2379	}
2380}(jQuery));
2381
2382$(document).ready(function () {
2383$('.volunteer_data_count .count').countTo({
2384	formatter: function (value, options) {
2385		value = value.toFixed(options.decimals);
2386		value = value.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
2387		return value;
2388	}
2389});
2390});
2391/*ANIMATED COUNTER*/
2392
2393$(document).ready(function() {
2394	$('section#masquerade-ball_page .spnsr_form .datepicker input').daterangepicker({
2395		singleDatePicker: true,
2396		showDropdowns: false,
2397		autoUpdateInput: false
2398	});
2399	$('section#masquerade-ball_page .spnsr_form .datepicker input').on('apply.daterangepicker', function (ev, picker) {
2400		$(this).val(picker.startDate.format('MM/DD/YYYY'));
2401	});
2402	$(window).on("load",function(){
2403		//$('section#masquerade-ball_page .spnsr_form .total_amount input.form-control[name="ticket_count"]').val(0);
2404		//$('section#masquerade-ball_page .spnsr_form .total_amount input.form-control[name="total_amount"]').val(0);
2405	});
2406	$("section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a.each_rdeo").on('click', function(ls){
2407		ls.preventDefault();
2408		$(".cust_radio_stl .rdeo_wrap a").not(this).removeClass("select_active");
2409		$(this).toggleClass('select_active');
2410	});
2411	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a#rdeoids1').on('click', function(){
2412		if($(this).hasClass("select_active")){
2413			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(1) input").prop('checked',true);
2414		}
2415		else {
2416			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(1) input").prop('checked',false);
2417		}
2418	});
2419	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a#rdeoids2').on('click', function(){
2420		if($(this).hasClass("select_active")){
2421			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(2) input").prop('checked',true);
2422		}
2423		else {
2424			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(2) input").prop('checked',false);
2425		}
2426	});
2427	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a#rdeoids3').on('click', function(){
2428		if($(this).hasClass("select_active")){
2429			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(3) input").prop('checked',true);
2430		}
2431		else {
2432			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(3) input").prop('checked',false);
2433		}
2434	});
2435	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a#rdeoids4').on('click', function(){
2436		if($(this).hasClass("select_active")){
2437			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(4) input").prop('checked',true);
2438		}
2439		else {
2440			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(4) input").prop('checked',false);
2441		}
2442	});
2443	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a#rdeoids5').on('click', function(){
2444		if($(this).hasClass("select_active")){
2445			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(5) input").prop('checked',true);
2446		}
2447		else {
2448			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(5) input").prop('checked',fal
2448se);
2449		}
2450	});
2451	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a#rdeoids6').on('click', function(){
2452		if($(this).hasClass("select_active")){
2453			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(6) input").prop('checked',true);
2454		}
2455		else {
2456			$("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio:nth-child(6) input").prop('checked',false);
2457		}
2458	});
2459	$('section#masquerade-ball_page .spnsr_form .ticket_count .minus_sign').on('click', function() {
2460		var $tick_count = $(this).parent().find('input');
2461		var count = parseInt($tick_count.val()) - 1;
2462		count = count < 0 ? 0 : count;
2463		$tick_count.val(count);
2464		$tick_count.change();
2465		return false;
2466	});
2467	$('section#masquerade-ball_page .spnsr_form .ticket_count .plus_sign').on('click', function() {
2468		var $tick_count = $(this).parent().find('input');
2469		$tick_count.val(parseInt($tick_count.val()) + 1);
2470		$tick_count.change();
2471		return false;
2472	});
2473	
2474	$('section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap a.each_rdeo').on('click', function(calcs){
2475		if ($(".cust_radio_stl .rdeo_wrap a").hasClass("select_active")) {
2476			var level_price = $('.cust_radio_stl .rdeo_wrap a.each_rdeo.select_active').data('price');
2477		}
2478		else {
2479			var level_price = 0;
2480		}
2481		var ticket_count = $('.ticket_count input.form-control').val();
2482		var ticket_price = ticket_count*75;
2483		var total_amount = level_price+ticket_price;
2484		$('section#masquerade-ball_page .spnsr_form .total_amount input.form-control[name="total_amount"]').val(total_amount);
2485		$('section#masquerade-ball_page .spnsr_form form#inj_tot_amo input[name="amount"]').val(total_amount);
2486	});
2487	$('section#masquerade-ball_page .spnsr_form .ticket_count span.minus_sign').on('click', function(calcs){
2488		if ($(".cust_radio_stl .rdeo_wrap a").hasClass("select_active")) {
2489			var level_price = $('.cust_radio_stl .rdeo_wrap a.each_rdeo.select_active').data('price');
2490		}
2491		else {
2492			var level_price = 0;
2493		}
2494		var ticket_count = $('.ticket_count input.form-control').val();
2495		var ticket_price = ticket_count*75;
2496		var total_amount = level_price+ticket_price;
2497		$('section#masquerade-ball_page .spnsr_form .total_amount input.form-control[name="total_amount"]').val(total_amount);
2498		$('section#masquerade-ball_page .spnsr_form form#inj_tot_amo input[name="amount"]').val(total_amount);
2499	});
2500	$('section#masquerade-ball_page .spnsr_form .ticket_count span.plus_sign').on('click', function(calcs){
2501		if ($(".cust_radio_stl .rdeo_wrap a").hasClass("select_active")) {
2502			var level_price = $('.cust_radio_stl .rdeo_wrap a.each_rdeo.select_active').data('price');
2503		}
2504		else {
2505			var level_price = 0;
2506		}
2507		var ticket_count = $('.ticket_count input.form-control').val();
2508		var ticket_price = ticket_count*75;
2509		var total_amount = level_price+ticket_price;
2510		$('section#masquerade-ball_page .spnsr_form .total_amount input.form-control[name="total_amount"]').val(total_amount);
2511		$('section#masquerade-ball_page .spnsr_form form#inj_tot_amo input[name="amount"]').val(total_amount);
2512	});
2513	$('section#masquerade-ball_page .spnsr_form .submt-btn-form').on('click', function(e){
2514		/*if (($("section#masquerade-ball_page .spnsr_form .spnsr_lvl label.custom-radio input:checked").length) <= 0) {
2515			alert('Choose one from "Level of Sponsorship"');
2516			$("html,body").animate({scrollTop:$("section#masquerade-ball_page .spnsr_form .cust_radio_stl .rdeo_wrap").offset().top-58},"1000");
2517			return false;
2518		}
2519		return true;*/
2520		document.getElementById("spo_agre").submit();
2521		document.getElementById("inj_tot_amo").submit();
2522	});
2523});
2524;
2525(function (window, document) {
2526
2527   if($('section#messages .alert').length>0){
2528       if($('.comment').length>0){
2529           $('html, body').animate({scrollTop:$('.comment').offset().top}, 'slow');
2530       }
2531   }   
2532   if($('.nc_contact_form form').length > 0){    
2533       $('.nc_contact_form form').find('.message')
2534       .after('<div class="col-md-6"><div class="field-group recaptcha"><div class="g-recaptcha" data-sitekey="6LfCCUEgAAAAAAzGQtfqku07O46deH46cR22abGz"></div><label style="color: red;margin-left: 2%;display: none;" class="recaptcha_error">Recaptcha is required</label></div></div<br>');
2535   }
2536   if($('.subscription_form form').length > 0){    
2537	   $('.subscription_form form').find('.email input').attr('required',true);
2538       $('.subscription_form form').find('.email')
2539       .after('<div class="field-group recaptcha"><div class="g-recaptcha" data-sitekey="6LfCCUEgAAAAAAzGQtfqku07O46deH46cR22abGz"></div><label style="color: red;margin-left: 2%;display: none;" class="recaptcha_error">Recaptcha is required</label></div><br>');
2540   }
2541	if($('.subscription_form2 form').length > 0){    
2542	   $('.subscription_form2 form').find('.email input').attr('required',true);
2543       $('.subscription_form2 form').find('.email')
2544       .after('<div class="field-group recaptcha"><div class="g-recaptcha" data-sitekey="6LfCCUEgAAAAAAzGQtfqku07O46deH46cR22abGz"></div><label style="color: red;margin-left: 2%;display: none;" class="recaptcha_error">Recaptcha is required</label></div><br>');
2545   }
2546   $(document).ready(function() { 
2547       $('form').submit(function(){
2548           if($(this).find('#g-recaptcha-response').length > 0 || $(this).find('#g-recaptcha-response-1').length > 0){
2549               var recaptcha = $(this).find('[name=g-recaptcha-response]').val();
2550               if(recaptcha == ''){
2551                   $('[type=submit]').attr('disabled',false);
2552                   $('.recaptcha_error').show();
2553                   return false;
2554               }else{
2555                   //$('[type=submit]').attr('disabled',true);
2556               }
2557           }else{
2558               //$('[type=submit]').attr('disabled',true);
2559           }
2560       });
2561	   
2562	   $('form button[type="submit"]').on('click', function(){
2563		   var gres = $('[name="g-recaptcha-response"]').val();
2564		   if(gres !=''){
2565			   $('textarea[name="g_recaptcha_response"]').val(gres);
2566		   }
2567	   })
2568	   
2569       $(document).on('click', '.close', function() {
2570           $(".event-container").fadeOut();
2571       });
2572   });  
2573})(window, document);
2574
2575
2576;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.