/*! Vendors v3.1.3 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap={},e.jQuery)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t);function o(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),i.default.fn.emulateTransitionEnd=l,i.default.event.special[c.TRANSITION_END]={bindType:s,delegateType:s,handle:function(e){if(i.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var d="bs.alert",u=i.default.fn.alert,h=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){i.default.removeData(this._element,d),this._element=null},t._getRootElement=function(e){var t=c.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=i.default(e).closest(".alert")[0]),n},t._triggerCloseEvent=function(e){var t=i.default.Event("close.bs.alert");return i.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(i.default(e).removeClass("show"),i.default(e).hasClass("fade")){var n=c.getTransitionDurationFromElement(e);i.default(e).one(c.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){i.default(e).detach().trigger("closed.bs.alert").remove()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),o=n.data(d);o||(o=new e(this),n.data(d,o)),"close"===t&&o[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),i.default.fn.alert=h._jQueryInterface,i.default.fn.alert.Constructor=h,i.default.fn.alert.noConflict=function(){return i.default.fn.alert=u,h._jQueryInterface};var f="bs.button",p=i.default.fn.button,m="active",g='[data-toggle^="button"]',v='input:not([type="hidden"])',y=".btn",b=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector(v);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(m))e=!1;else{var a=n.querySelector(".active");a&&i.default(a).removeClass(m)}e&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(m)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(m)),e&&i.default(this._element).toggleClass(m))},t.dispose=function(){i.default.removeData(this._element,f),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var o=i.default(this),a=o.data(f);a||(a=new e(this),o.data(f,a)),a.shouldAvoidTriggerChange=n,"toggle"===t&&a[t]()}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on("click.bs.button.data-api",g,(function(e){var t=e.target,n=t;if(i.default(t).hasClass("btn")||(t=i.default(t).closest(y)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var o=t.querySelector(v);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||b._jQueryInterface.call(i.default(t),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",g,(function(e){var t=i.default(e.target).closest(y)[0];i.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))})),i.default(window).on("load.bs.button.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(E)},t.nextWhenVisible=function(){var e=i.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(C)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(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(e){var t=this;this._activeElement=this._element.querySelector(D);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)i.default(this._element).one(T,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var o=e>n?E:C;this._slide(o,this._items[e])}},t.dispose=function(){i.default(this._element).off(S),i.default.removeData(this._element,_),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(e){return e=r({},O,e),c.typeCheckConfig(w,e,k),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(function(t){return e._keydown(t)})),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(function(t){return e.pause(t)})).on("mouseleave.bs.carousel",(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&W[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&W[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(e){return e.preventDefault()})),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(function(e){return t(e)})),i.default(this._element).on("pointerup.bs.carousel",(function(e){return n(e)})),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(function(e){return t(e)})),i.default(this._element).on("touchmove.bs.carousel",(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),i.default(this._element).on("touchend.bs.carousel",(function(e){return n(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===E,i=e===C,o=this._getItemIndex(t),a=this._items.length-1;if((i&&0===o||n&&o===a)&&!this._config.wrap)return t;var r=(o+(e===C?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(D)),a=i.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:o,to:n});return i.default(this._element).trigger(a),a},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(t).removeClass(j);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&i.default(n).addClass(j)}},t._slide=function(e,t){var n,o,a,r=this,s=this._element.querySelector(D),l=this._getItemIndex(s),d=t||s&&this._getItemByDirection(e,s),u=this._getItemIndex(d),h=Boolean(this._interval);if(e===E?(n="carousel-item-left",o="carousel-item-next",a="left"):(n="carousel-item-right",o="carousel-item-prev",a="right"),d&&i.default(d).hasClass(j))this._isSliding=!1;else if(!this._triggerSlideEvent(d,a).isDefaultPrevented()&&s&&d){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(d);var f=i.default.Event(T,{relatedTarget:d,direction:a,from:l,to:u});if(i.default(this._element).hasClass("slide")){i.default(d).addClass(o),c.reflow(d),i.default(s).addClass(n),i.default(d).addClass(n);var p=parseInt(d.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=c.getTransitionDurationFromElement(s);i.default(s).one(c.TRANSITION_END,(function(){i.default(d).removeClass(n+" "+o).addClass(j),i.default(s).removeClass("active "+o+" "+n),r._isSliding=!1,setTimeout((function(){return i.default(r._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else i.default(s).removeClass(j),i.default(d).addClass(j),this._isSliding=!1,i.default(this._element).trigger(f);h&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(_),o=r({},O,i.default(this).data());"object"==typeof t&&(o=r({},o,t));var a="string"==typeof t?t:o.slide;if(n||(n=new e(this,o),i.default(this).data(_,n)),"number"==typeof t)n.to(t);else if("string"==typeof a){if(void 0===n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=c.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass("carousel")){var a=r({},i.default(o).data(),i.default(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),e._jQueryInterface.call(i.default(o),a),s&&i.default(o).data(_).to(s),t.preventDefault()}}},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return O}}]),e}();i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",I._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t0&&(this._selector=r,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){i.default(this._element).hasClass(R)?this.hide():this.show()},t.show=function(){var t,n,o=this;if(!this._isTransitioning&&!i.default(this._element).hasClass(R)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(Y)}))).length&&(t=null),!(t&&(n=i.default(t).not(this._selector).data(M))&&n._isTransitioning))){var a=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(a),!a.isDefaultPrevented()){t&&(e._jQueryInterface.call(i.default(t).not(this._selector),"hide"),n||i.default(t).data(M,null));var r=this._getDimension();i.default(this._element).removeClass(Y).addClass(H),this._element.style[r]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass($).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(r[0].toUpperCase()+r.slice(1)),l=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,(function(){i.default(o._element).removeClass(H).addClass("collapse show"),o._element.style[r]="",o.setTransitioning(!1),i.default(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[r]=this._element[s]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&i.default(this._element).hasClass(R)){var t=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",c.reflow(this._element),i.default(this._element).addClass(H).removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var a=0;a=0)return 1;return 0}();var U=F&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),B))}};function q(e){return e&&"[object Function]"==={}.toString.call(e)}function G(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function X(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function K(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=G(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:K(X(e))}function Z(e){return e&&e.referenceNode?e.referenceNode:e}var J=F&&!(!window.MSInputMethodContext||!document.documentMode),ee=F&&/MSIE 10/.test(navigator.userAgent);function te(e){return 11===e?J:10===e?ee:J||ee}function ne(e){if(!e)return document.documentElement;for(var t=te(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===G(n,"position")?ne(n):n:e?e.ownerDocument.documentElement:document.documentElement}function ie(e){return null!==e.parentNode?ie(e.parentNode):e}function oe(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(o,0);var r,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"===(s=(r=l).nodeName)||"HTML"!==s&&ne(r.firstElementChild)!==r?ne(l):l;var c=ie(e);return c.host?oe(c.host,t):oe(e,ie(t).host)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ae(t,"top"),o=ae(t,"left"),a=n?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=o*a,e.right+=o*a,e}function se(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function le(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],te(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function ce(e){var t=e.body,n=e.documentElement,i=te(10)&&getComputedStyle(n);return{height:le("Height",t,n,i),width:le("Width",t,n,i)}}var de=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ue=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=te(10),o="HTML"===t.nodeName,a=me(e),r=me(t),s=K(e),l=G(t),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var u=pe({top:a.top-r.top-c,left:a.left-r.left-d,width:a.width,height:a.height});if(u.marginTop=0,u.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);u.top-=c-h,u.bottom-=c-h,u.left-=d-f,u.right-=d-f,u.marginTop=h,u.marginLeft=f}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=re(u,t)),u}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=ge(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),r=t?0:ae(n),s=t?0:ae(n,"left"),l={top:r-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:a};return pe(l)}function ye(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===G(e,"position"))return!0;var n=X(e);return!!n&&ye(n)}function be(e){if(!e||!e.parentElement||te())return document.documentElement;for(var t=e.parentElement;t&&"none"===G(t,"transform");)t=t.parentElement;return t||document.documentElement}function we(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},r=o?be(e):oe(e,Z(t));if("viewport"===i)a=ve(r,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=K(X(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=ge(s,r,o);if("HTML"!==s.nodeName||ye(r))a=l;else{var c=ce(e.ownerDocument),d=c.height,u=c.width;a.top+=l.top-l.marginTop,a.bottom=d+l.top,a.left+=l.left-l.marginLeft,a.right=u+l.left}}var h="number"==typeof(n=n||0);return a.left+=h?n:n.left||0,a.top+=h?n:n.top||0,a.right-=h?n:n.right||0,a.bottom-=h?n:n.bottom||0,a}function _e(e){return e.width*e.height}function Se(e,t,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var r=we(n,i,a,o),s={top:{width:r.width,height:t.top-r.top},right:{width:r.right-t.right,height:r.height},bottom:{width:r.width,height:r.bottom-t.bottom},left:{width:t.left-r.left,height:r.height}},l=Object.keys(s).map((function(e){return fe({key:e},s[e],{area:_e(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return d+(u?"-"+u:"")}function xe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?be(t):oe(t,Z(n));return ge(n,o,i)}function Oe(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function ke(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Ee(e,t,n){n=n.split("-")[0];var i=Oe(e),o={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(n),r=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[r]=t[r]+t[l]/2-i[l]/2,o[s]=n===s?t[s]-i[c]:t[ke(s)],o}function Ce(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Te(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=Ce(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&q(n)&&(t.offsets.popper=pe(t.offsets.popper),t.offsets.reference=pe(t.offsets.reference),t=n(t,e))})),t}function je(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=xe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Se(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ee(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Te(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function De(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function We(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=Ve.indexOf(e),i=Ve.slice(n+1).concat(Ve.slice(0,n));return t?i.reverse():i}var Fe="flip",Be="clockwise",Ue="counterclockwise";function qe(e,t,n,i){var o=[0,0],a=-1!==["right","left"].indexOf(i),r=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=r.indexOf(Ce(r,(function(e){return-1!==e.search(/,|\s/)})));r[s]&&-1===r[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[r.slice(0,s).concat([r[s].split(l)[0]]),[r[s].split(l)[1]].concat(r.slice(s+1))]:[r];return(c=c.map((function(e,i){var o=(1===i?!a:a)?"height":"width",r=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],r=o[2];if(!a)return e;if(0===r.indexOf("%")){var s=void 0;switch(r){case"%p":s=n;break;case"%":case"%r":default:s=i}return pe(s)[t]/100*a}if("vh"===r||"vw"===r)return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){Re(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))}))})),o}var Ge={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,a=o.reference,r=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:he({},l,a[l]),end:he({},l,a[l]+a[c]-r[c])};e.offsets.popper=fe({},r,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,o=e.offsets,a=o.popper,r=o.reference,s=i.split("-")[0],l=void 0;return l=Re(+n)?[+n,0]:qe(n,a,r,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ne(e.instance.popper);e.instance.reference===n&&(n=ne(n));var i=We("transform"),o=e.instance.popper.style,a=o.top,r=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=we(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=r,o[i]=s,t.boundaries=l;var c=t.priority,d=e.offsets.popper,u={primary:function(e){var n=d[e];return d[e]l[e]&&!t.escapeWithReference&&(i=Math.min(d[n],l[e]-("right"===e?d.width:d.height))),he({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=fe({},d,u[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],a=Math.floor,r=-1!==["top","bottom"].indexOf(o),s=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return n[s]a(i[s])&&(e.offsets.popper[l]=a(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!$e(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,r=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",u=d.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Oe(i)[c];s[f]-pr[f]&&(e.offsets.popper[u]+=s[u]+p-r[f]),e.offsets.popper=pe(e.offsets.popper);var m=s[u]+s[c]/2-p/2,g=G(e.instance.popper),v=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),b=m-e.offsets.popper[u]-v-y;return b=Math.max(Math.min(r[c]-p,b),0),e.arrowElement=i,e.offsets.arrow=(he(n={},u,Math.round(b)),he(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(De(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=we(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=ke(i),a=e.placement.split("-")[1]||"",r=[];switch(t.behavior){case Fe:r=[i,o];break;case Be:r=Qe(i);break;case Ue:r=Qe(i,!0);break;default:r=t.behavior}return r.forEach((function(s,l){if(i!==s||r.length===l+1)return e;i=e.placement.split("-")[0],o=ke(i);var c=e.offsets.popper,d=e.offsets.reference,u=Math.floor,h="left"===i&&u(c.right)>u(d.left)||"right"===i&&u(c.left)u(d.top)||"bottom"===i&&u(c.top)u(n.right),m=u(c.top)u(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===a&&f||y&&"end"===a&&p||!y&&"start"===a&&m||!y&&"end"===a&&g),w=!!t.flipVariationsByContent&&(y&&"start"===a&&p||y&&"end"===a&&f||!y&&"start"===a&&g||!y&&"end"===a&&m),_=b||w;(h||v||_)&&(e.flipped=!0,(h||v)&&(i=r[l+1]),_&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=i+(a?"-"+a:""),e.offsets.popper=fe({},e.offsets.popper,Ee(e.instance.popper,e.offsets.reference,e.placement)),e=Te(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,a=i.reference,r=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=a[n]-(s?o[r?"width":"height"]:0),e.placement=ke(t),e.offsets.popper=pe(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$e(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ce(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};de(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=U(this.update.bind(this)),this.options=fe({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(fe({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){i.options.modifiers[t]=fe({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return fe({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&q(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ue(e,[{key:"update",value:function(){return je.call(this)}},{key:"destroy",value:function(){return Ie.call(this)}},{key:"enableEventListeners",value:function(){return Le.call(this)}},{key:"disableEventListeners",value:function(){return Pe.call(this)}}]),e}();Xe.Utils=("undefined"!=typeof window?window:global).PopperUtils,Xe.placements=ze,Xe.Defaults=Ge;var Ke="dropdown",Ze="bs.dropdown",Je=".bs.dropdown",et=i.default.fn[Ke],tt=new RegExp("38|40|27"),nt="hide.bs.dropdown",it="hidden.bs.dropdown",ot="click.bs.dropdown.data-api",at="keydown.bs.dropdown.data-api",rt="disabled",st="show",lt="dropdown-menu-right",ct='[data-toggle="dropdown"]',dt=".dropdown-menu",ut={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},ht={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ft=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(rt)){var t=i.default(this._menu).hasClass(st);e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||i.default(this._element).hasClass(rt)||i.default(this._menu).hasClass(st))){var n={relatedTarget:this._element},o=i.default.Event("show.bs.dropdown",n),a=e._getParentFromElement(this._element);if(i.default(a).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===Xe)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var r=this._element;"parent"===this._config.reference?r=a:c.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(a).addClass("position-static"),this._popper=new Xe(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(a).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(st),i.default(a).toggleClass(st).trigger(i.default.Event("shown.bs.dropdown",n))}}},t.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(rt)&&i.default(this._menu).hasClass(st)){var t={relatedTarget:this._element},n=i.default.Event(nt,t),o=e._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(st),i.default(o).toggleClass(st).trigger(i.default.Event(it,t)))}},t.dispose=function(){i.default.removeData(this._element,Ze),i.default(this._element).off(Je),this._element=null,this._menu=null,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;i.default(this._element).on("click.bs.dropdown",(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=r({},this.constructor.Default,i.default(this._element).data(),e),c.typeCheckConfig(Ke,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(dt))}return this._menu},t._getPlacement=function(){var e=i.default(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?t=i.default(this._menu).hasClass(lt)?"top-end":"top-start":e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":i.default(this._menu).hasClass(lt)&&(t="bottom-end"),t},t._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),r({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(Ze);if(n||(n=new e(this,"object"==typeof t?t:null),i.default(this).data(Ze,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll(ct)),o=0,a=n.length;o0&&r--,40===t.which&&rdocument.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Dt);var o=c.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(c.TRANSITION_END),i.default(this._element).one(c.TRANSITION_END,(function(){e._element.classList.remove(Dt),n||i.default(e._element).one(c.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,o)})).emulateTransitionEnd(o),this._element.focus()}else this.hide()},t._showElement=function(e){var t=this,n=i.default(this._element).hasClass(Tt),o=this._dialog?this._dialog.querySelector(".modal-body"):null;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.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&c.reflow(this._element),i.default(this._element).addClass(jt),this._config.focus&&this._enforceFocus();var a=i.default.Event("shown.bs.modal",{relatedTarget:e}),r=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,i.default(t._element).trigger(a)};if(n){var s=c.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(c.TRANSITION_END,r).emulateTransitionEnd(s)}else r()},t._enforceFocus=function(){var e=this;i.default(document).off(St).on(St,(function(t){document!==t.target&&e._element!==t.target&&0===i.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?i.default(this._element).on(kt,(function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(kt)},t._setResizeEvent=function(){var e=this;this._isShown?i.default(window).on(xt,(function(t){return e.handleUpdate(t)})):i.default(window).off(xt)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(Ct),e._resetAdjustments(),e._resetScrollbar(),i.default(e._element).trigger(wt)}))},t._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=i.default(this._element).hasClass(Tt)?Tt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(Ot,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()})),n&&c.reflow(this._backdrop),i.default(this._backdrop).addClass(jt),!e)return;if(!n)return void e();var o=c.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(c.TRANSITION_END,e).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(jt);var a=function(){t._removeBackdrop(),e&&e()};if(i.default(this._element).hasClass(Tt)){var r=c.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(c.TRANSITION_END,a).emulateTransitionEnd(r)}else a()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Nt,popperConfig:null},qt="show",Gt="out",Xt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Kt="fade",Zt="show",Jt="hover",en="focus",tn=function(){function e(e,t){if(void 0===Xe)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=i.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Zt))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(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"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(t);var n=c.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!o)return;var a=this.getTipElement(),r=c.getUID(this.constructor.NAME);a.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&i.default(a).addClass(Kt);var s="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,l=this._getAttachment(s);this.addAttachmentClass(l);var d=this._getContainer();i.default(a).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(a).appendTo(d),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Xe(this.element,a,this._getPopperConfig(l)),i.default(a).addClass(Zt),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var u=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,i.default(e.element).trigger(e.constructor.Event.SHOWN),t===Gt&&e._leave(null,e)};if(i.default(this.tip).hasClass(Kt)){var h=c.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(c.TRANSITION_END,u).emulateTransitionEnd(h)}else u()}},t.hide=function(e){var t=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),a=function(){t._hoverState!==qt&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),i.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass(Zt),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(Kt)){var r=c.getTransitionDurationFromElement(n);i.default(n).one(c.TRANSITION_END,a).emulateTransitionEnd(r)}else a();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass("bs-tooltip-"+e)},t.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(i.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(e).removeClass("fade show")},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Rt(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?i.default(t).parent().is(e)||e.empty().append(t):e.text(i.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return r({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},t._getAttachment=function(e){return Bt[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)i.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Jt?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=t===Jt?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;i.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(o,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?en:Jt]=!0),i.default(t.getTipElement()).hasClass(Zt)||t._hoverState===qt?t._hoverState=qt:(clearTimeout(t._timeout),t._hoverState=qt,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===qt&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?en:Jt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Gt,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===Gt&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=i.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Qt.indexOf(e)&&delete t[e]})),"number"==typeof(e=r({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),c.typeCheckConfig(Yt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Rt(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(Vt);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(i.default(e).removeClass(Kt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),o=n.data(Ht),a="object"==typeof t&&t;if((o||!/dispose|hide/.test(t))&&(o||(o=new e(this,a),n.data(Ht,o)),"string"==typeof t)){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return Ut}},{key:"NAME",get:function(){return Yt}},{key:"DATA_KEY",get:function(){return Ht}},{key:"Event",get:function(){return Xt}},{key:"EVENT_KEY",get:function(){return $t}},{key:"DefaultType",get:function(){return Ft}}]),e}();i.default.fn.tooltip=tn._jQueryInterface,i.default.fn.tooltip.Constructor=tn,i.default.fn.tooltip.noConflict=function(){return i.default.fn.tooltip=zt,tn._jQueryInterface};var nn="popover",on="bs.popover",an=".bs.popover",rn=i.default.fn.popover,sn=new RegExp("(^|\\s)bs-popover\\S+","g"),ln=r({},tn.Default,{placement:"right",trigger:"click",content:"",template:''}),cn=r({},tn.DefaultType,{content:"(string|element|function)"}),dn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},un=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass("bs-popover-"+e)},r.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},r.setContent=function(){var e=i.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(sn);null!==t&&t.length>0&&e.removeClass(t.join(""))},o._jQueryInterface=function(e){return this.each((function(){var t=i.default(this).data(on),n="object"==typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new o(this,n),i.default(this).data(on,t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}}))},a(o,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return ln}},{key:"NAME",get:function(){return nn}},{key:"DATA_KEY",get:function(){return on}},{key:"Event",get:function(){return dn}},{key:"EVENT_KEY",get:function(){return an}},{key:"DefaultType",get:function(){return cn}}]),o}(tn);i.default.fn.popover=un._jQueryInterface,i.default.fn.popover.Constructor=un,i.default.fn.popover.noConflict=function(){return i.default.fn.popover=rn,un._jQueryInterface};var hn="scrollspy",fn="bs.scrollspy",pn="."+fn,mn=i.default.fn[hn],gn={offset:10,method:"auto",target:""},vn={offset:"number",method:"string",target:"(string|element)"},yn="active",bn=".nav, .list-group",wn=".nav-link",_n="position",Sn=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+".nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":_n,n="auto"===this._config.method?t:this._config.method,o=n===_n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,a=c.getSelectorFromElement(e);if(a&&(t=document.querySelector(a)),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[i.default(t)[n]().top+o,a]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){i.default.removeData(this._element,fn),i.default(this._scrollElement).off(pn),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(e){if("string"!=typeof(e=r({},gn,"object"==typeof e&&e?e:{})).target&&c.isElement(e.target)){var t=i.default(e.target).attr("id");t||(t=c.getUID(hn),i.default(e.target).attr("id",t)),e.target="#"+t}return c.typeCheckConfig(hn,e,vn),e},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 e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e li > .active",Dn=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(kn)||i.default(this._element).hasClass("disabled"))){var t,n,o=i.default(this._element).closest(".nav, .list-group")[0],a=c.getSelectorFromElement(this._element);if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?jn:Tn;n=(n=i.default.makeArray(i.default(o).find(r)))[n.length-1]}var s=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=i.default.Event("show.bs.tab",{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(t=document.querySelector(a)),this._activate(this._element,o);var d=function(){var t=i.default.Event("hidden.bs.tab",{relatedTarget:e._element}),o=i.default.Event("shown.bs.tab",{relatedTarget:n});i.default(n).trigger(t),i.default(e._element).trigger(o)};t?this._activate(t,t.parentNode,d):d()}}},t.dispose=function(){i.default.removeData(this._element,xn),this._element=null},t._activate=function(e,t,n){var o=this,a=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?i.default(t).children(Tn):i.default(t).find(jn))[0],r=n&&a&&i.default(a).hasClass(En),s=function(){return o._transitionComplete(e,a,n)};if(a&&r){var l=c.getTransitionDurationFromElement(a);i.default(a).removeClass(Cn).one(c.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},t._transitionComplete=function(e,t,n){if(t){i.default(t).removeClass(kn);var o=i.default(t.parentNode).find("> .dropdown-menu .active")[0];o&&i.default(o).removeClass(kn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(i.default(e).addClass(kn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),c.reflow(e),e.classList.contains(En)&&e.classList.add(Cn),e.parentNode&&i.default(e.parentNode).hasClass("dropdown-menu")){var a=i.default(e).closest(".dropdown")[0];if(a){var r=[].slice.call(a.querySelectorAll(".dropdown-toggle"));i.default(r).addClass(kn)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),o=n.data(xn);if(o||(o=new e(this),n.data(xn,o)),"string"==typeof t){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(e){e.preventDefault(),Dn._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=Dn._jQueryInterface,i.default.fn.tab.Constructor=Dn,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=On,Dn._jQueryInterface};var Wn="toast",In="bs.toast",An=i.default.fn.toast,Mn="click.dismiss.bs.toast",Nn="hide",Ln="show",Pn="showing",Rn={animation:"boolean",autohide:"boolean",delay:"number"},Yn={animation:!0,autohide:!0,delay:500},Hn=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove(Pn),e._element.classList.add(Ln),i.default(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Nn),c.reflow(this._element),this._element.classList.add(Pn),this._config.animation){var o=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},t.hide=function(){if(this._element.classList.contains(Ln)){var e=i.default.Event("hide.bs.toast");i.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ln)&&this._element.classList.remove(Ln),i.default(this._element).off(Mn),i.default.removeData(this._element,In),this._element=null,this._config=null},t._getConfig=function(e){return e=r({},Yn,i.default(this._element).data(),"object"==typeof e&&e?e:{}),c.typeCheckConfig(Wn,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;i.default(this._element).on(Mn,'[data-dismiss="toast"]',(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add(Nn),i.default(e._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(Ln),this._config.animation){var n=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),o=n.data(In);if(o||(o=new e(this,"object"==typeof t&&t),n.data(In,o)),"string"==typeof t){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t](this)}}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"DefaultType",get:function(){return Rn}},{key:"Default",get:function(){return Yn}}]),e}();i.default.fn.toast=Hn._jQueryInterface,i.default.fn.toast.Constructor=Hn,i.default.fn.toast.noConflict=function(){return i.default.fn.toast=An,Hn._jQueryInterface},e.Alert=h,e.Button=b,e.Carousel=I,e.Collapse=Q,e.Dropdown=ft,e.Modal=At,e.Popover=un,e.Scrollspy=Sn,e.Tab=Dn,e.Toast=Hn,e.Tooltip=tn,e.Util=c,Object.defineProperty(e,"__esModule",{value:!0})})),function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([,,function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",(function(){"interactive"===document.readyState&&e.call()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(4))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},,,,,,function(e,t,n){e.exports=n(11)},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i),a=n(3),r=n(12);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=a.window.jarallax;if(a.window.jarallax=r.default,a.window.jarallax.noConflict=function(){return a.window.jarallax=l,this},void 0!==a.jQuery){var c=function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?t-1:0),i=1;ii?(a=i*Math.max(n,u),ui?r=a/i+Math.abs(a):r+=(u-n)*(1-i),a/=2),e.parallaxScrollDistance=a,s=o?(u-r)/2:(n-r)/2,e.css(e.image.$item,{height:"".concat(r,"px"),marginTop:"".concat(s,"px"),left:"fixed"===e.image.position?"".concat(t.left,"px"):"0",width:"".concat(t.width,"px")}),e.options.onCoverImage&&e.options.onCoverImage.call(e),{image:{height:r,marginTop:s},container:t}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(e){var t=this,n=t.$item.getBoundingClientRect(),i=n.top,o=n.height,r={},s=n;if(t.options.elementInViewport&&(s=t.options.elementInViewport.getBoundingClientRect()),t.isElementInViewport=0<=s.bottom&&0<=s.right&&s.top<=u&&s.left<=a.window.innerWidth,e||t.isElementInViewport){var l=Math.max(0,i),c=Math.max(0,o+i),d=Math.max(0,-i),h=Math.max(0,i+o-u),f=Math.max(0,o-(i+o-u)),p=Math.max(0,-i+u-o),m=1-(u-i)/(u+o)*2,g=1;if(ot.options.speed?v-=t.options.speed*g:v+=t.options.speed*(1-g),r.transform="scale(".concat(v,") translate3d(0,0,0)")}if("scroll"===t.options.type||"scroll-opacity"===t.options.type){var y=t.parallaxScrollDistance*m;"absolute"===t.image.position&&(y-=i),r.transform="translate3d(0,".concat(y,"px,0)")}t.css(t.image.$item,r),t.options.onScroll&&t.options.onScroll.call(t,{section:n,beforeTop:l,beforeTopEnd:c,afterTop:d,beforeBottom:h,beforeBottomEnd:f,afterBottom:p,visiblePercent:g,fromViewportCenter:m})}}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}])&&c(t.prototype,n),i&&c(t,i),e}(),_=function(e,t){("object"===("undefined"==typeof HTMLElement?"undefined":l(HTMLElement))?e instanceof HTMLElement:e&&"object"===l(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)&&(e=[e]);for(var n,i=e.length,o=0,a=arguments.length,r=new Array(a>2?a-2:0),s=2;s1?n-1:0),o=1;o0&&void 0!==arguments[0]&&arguments[0],t=this;t.player&&e&&("youtube"===t.type&&t.player.setVolume&&t.player.setVolume(e),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(e),"local"===t.type&&(t.$video.volume=e/100))}},{key:"getVolume",value:function(e){var t=this;t.player?("youtube"===t.type&&t.player.getVolume&&e(t.player.getVolume()),"vimeo"===t.type&&t.player.getVolume&&t.player.getVolume().then((function(t){e(t)})),"local"===t.type&&e(100*t.$video.volume)):e(!1)}},{key:"getMuted",value:function(e){var t=this;t.player?("youtube"===t.type&&t.player.isMuted&&e(t.player.isMuted()),"vimeo"===t.type&&t.player.getVolume&&t.player.getVolume().then((function(t){e(!!t)})),"local"===t.type&&e(t.$video.muted)):e(null)}},{key:"getImageURL",value:function(e){var t=this;if(t.videoImage)e(t.videoImage);else{if("youtube"===t.type){var n=["maxresdefault","sddefault","hqdefault","0"],i=0,o=new Image;o.onload=function(){120!==(this.naturalWidth||this.width)||i===n.length-1?(t.videoImage="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(n[i],".jpg"),e(t.videoImage)):(i+=1,this.src="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(n[i],".jpg"))},o.src="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(n[i],".jpg")}if("vimeo"===t.type){var a=new XMLHttpRequest;a.open("GET","https://vimeo.com/api/v2/video/".concat(t.videoID,".json"),!0),a.onreadystatechange=function(){if(4===this.readyState&&200<=this.status&&400>this.status){var n=JSON.parse(this.responseText);t.videoImage=n[0].thumbnail_large,e(t.videoImage)}},a.send(),a=null}}}},{key:"getIframe",value:function(e){this.getVideo(e)}},{key:"getVideo",value:function(e){var t=this;t.$video?e(t.$video):t.onAPIready((function(){var n,i;if(t.$video||((n=document.createElement("div")).style.display="none"),"youtube"===t.type){var a,r;t.playerOptions={host:"https://www.youtube-nocookie.com",videoId:t.videoID,playerVars:{autohide:1,rel:0,autoplay:0,playsinline:1}},t.options.showContols||(t.playerOptions.playerVars.iv_load_policy=3,t.playerOptions.playerVars.modestbranding=1,t.playerOptions.playerVars.controls=0,t.playerOptions.playerVars.showinfo=0,t.playerOptions.playerVars.disablekb=1),t.playerOptions.events={onReady:function(e){t.options.mute?e.target.mute():t.options.volume&&e.target.setVolume(t.options.volume),t.options.autoplay&&t.play(t.options.startTime),t.fire("ready",e),t.options.loop&&!t.options.endTime&&(t.options.endTime=t.player.getDuration()-.1),setInterval((function(){t.getVolume((function(n){t.options.volume!==n&&(t.options.volume=n,t.fire("volumechange",e))}))}),150)},onStateChange:function(e){t.options.loop&&e.data===o.a.YT.PlayerState.ENDED&&t.play(t.options.startTime),a||e.data!==o.a.YT.PlayerState.PLAYING||(a=1,t.fire("started",e)),e.data===o.a.YT.PlayerState.PLAYING&&t.fire("play",e),e.data===o.a.YT.PlayerState.PAUSED&&t.fire("pause",e),e.data===o.a.YT.PlayerState.ENDED&&t.fire("ended",e),e.data===o.a.YT.PlayerState.PLAYING?r=setInterval((function(){t.fire("timeupdate",e),t.options.endTime&&t.player.getCurrentTime()>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),150):clearInterval(r)},onError:function(e){t.fire("error",e)}};var s=!t.$video;if(s){var l=document.createElement("div");l.setAttribute("id",t.playerID),n.appendChild(l),document.body.appendChild(n)}t.player=t.player||new o.a.YT.Player(t.playerID,t.playerOptions),s&&(t.$video=document.getElementById(t.playerID),t.videoWidth=parseInt(t.$video.getAttribute("width"),10)||1280,t.videoHeight=parseInt(t.$video.getAttribute("height"),10)||720)}if("vimeo"===t.type){if(t.playerOptions={dnt:1,id:t.videoID,autopause:0,transparent:0,autoplay:t.options.autoplay?1:0,loop:t.options.loop?1:0,muted:t.options.mute?1:0},t.options.volume&&(t.playerOptions.volume=t.options.volume),t.options.showContols||(t.playerOptions.badge=0,t.playerOptions.byline=0,t.playerOptions.portrait=0,t.playerOptions.title=0,t.playerOptions.background=1),!t.$video){var c="";Object.keys(t.playerOptions).forEach((function(e){""!==c&&(c+="&"),c+="".concat(e,"=").concat(encodeURIComponent(t.playerOptions[e]))})),t.$video=document.createElement("iframe"),t.$video.setAttribute("id",t.playerID),t.$video.setAttribute("src","https://player.vimeo.com/video/".concat(t.videoID,"?").concat(c)),t.$video.setAttribute("frameborder","0"),t.$video.setAttribute("mozallowfullscreen",""),t.$video.setAttribute("allowfullscreen",""),n.appendChild(t.$video),document.body.appendChild(n)}var d;t.player=t.player||new o.a.Vimeo.Player(t.$video,t.playerOptions),t.options.startTime&&t.options.autoplay&&t.player.setCurrentTime(t.options.startTime),t.player.getVideoWidth().then((function(e){t.videoWidth=e||1280})),t.player.getVideoHeight().then((function(e){t.videoHeight=e||720})),t.player.on("timeupdate",(function(e){d||(t.fire("started",e),d=1),t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&e.seconds>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())})),t.player.on("play",(function(e){t.fire("play",e),t.options.startTime&&0===e.seconds&&t.play(t.options.startTime)})),t.player.on("pause",(function(e){t.fire("pause",e)})),t.player.on("ended",(function(e){t.fire("ended",e)})),t.player.on("loaded",(function(e){t.fire("ready",e)})),t.player.on("volumechange",(function(e){t.fire("volumechange",e)})),t.player.on("error",(function(e){t.fire("error",e)}))}"local"===t.type&&(t.$video||(t.$video=document.createElement("video"),t.options.showContols&&(t.$video.controls=!0),t.options.mute?t.$video.muted=!0:t.$video.volume&&(t.$video.volume=t.options.volume/100),t.options.loop&&(t.$video.loop=!0),t.$video.setAttribute("playsinline",""),t.$video.setAttribute("webkit-playsinline",""),t.$video.setAttribute("id",t.playerID),n.appendChild(t.$video),document.body.appendChild(n),Object.keys(t.videoID).forEach((function(e){var n,i,o,a;n=t.$video,i=t.videoID[e],o="video/".concat(e),(a=document.createElement("source")).src=i,a.type=o,n.appendChild(a)}))),t.player=t.player||t.$video,t.player.addEventListener("playing",(function(e){i||t.fire("started",e),i=1})),t.player.addEventListener("timeupdate",(function(e){t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&this.currentTime>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())})),t.player.addEventListener("play",(function(e){t.fire("play",e)})),t.player.addEventListener("pause",(function(e){t.fire("pause",e)})),t.player.addEventListener("ended",(function(e){t.fire("ended",e)})),t.player.addEventListener("loadedmetadata",(function(){t.videoWidth=this.videoWidth||1280,t.videoHeight=this.videoHeight||720,t.fire("ready"),t.options.autoplay&&t.play(t.options.startTime)})),t.player.addEventListener("volumechange",(function(e){t.getVolume((function(e){t.options.volume=e})),t.fire("volumechange",e)})),t.player.addEventListener("error",(function(e){t.fire("error",e)}))),e(t.$video)}))}},{key:"init",value:function(){this.playerID="VideoWorker-".concat(this.ID)}},{key:"loadAPI",value:function(){if(!c||!d){var e="";if("youtube"!==this.type||c||(c=1,e="https://www.youtube.com/iframe_api"),"vimeo"===this.type&&!d){if(d=1,void 0!==o.a.Vimeo)return;e="https://player.vimeo.com/api/player.js"}if(e){var t=document.createElement("script"),n=document.getElementsByTagName("head")[0];t.src=e,n.appendChild(t),n=null,t=null}}}},{key:"onAPIready",value:function(e){var t=this;if("youtube"===t.type&&(void 0!==o.a.YT&&0!==o.a.YT.loaded||u?"object"===a(o.a.YT)&&1===o.a.YT.loaded?e():f.done((function(){e()})):(u=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,f.resolve("done"),e()})),"vimeo"===t.type)if(void 0!==o.a.Vimeo||h)void 0!==o.a.Vimeo?e():p.done((function(){e()}));else{h=1;var n=setInterval((function(){void 0!==o.a.Vimeo&&(clearInterval(n),p.resolve("done"),e())}),20)}"local"===t.type&&e()}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var i=n(8),o=n(3),a=n.n(o);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.jarallax;if(void 0!==e){var t=e.constructor,n=t.prototype.onScroll;t.prototype.onScroll=function(){var e=this;n.apply(e),!e.isVideoInserted&&e.video&&(!e.options.videoLazyLoading||e.isElementInViewport)&&!e.options.disableVideo()&&(e.isVideoInserted=!0,e.video.getVideo((function(t){var n=t.parentNode;e.css(t,{position:e.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity",margin:0,zIndex:-1}),e.$video=t,"local"===e.video.type&&(e.image.src?e.$video.setAttribute("poster",e.image.src):e.image.$item&&"IMG"===e.image.$item.tagName&&e.image.$item.src&&e.$video.setAttribute("poster",e.image.$item.src)),e.image.$container.appendChild(t),n.parentNode.removeChild(n)})))};var o=t.prototype.coverImage;t.prototype.coverImage=function(){var e=this,t=o.apply(e),n=!!e.image.$item&&e.image.$item.nodeName;if(t&&e.video&&n&&("IFRAME"===n||"VIDEO"===n)){var i=t.image.height,a=i*e.image.width/e.image.height,r=(t.container.width-a)/2,s=t.image.marginTop;t.container.width>a&&(i=(a=t.container.width)*e.image.height/e.image.width,r=0,s+=(t.image.height-i)/2),"IFRAME"===n&&(i+=400,s-=200),e.css(e.$video,{width:"".concat(a,"px"),marginLeft:"".concat(r,"px"),height:"".concat(i,"px"),marginTop:"".concat(s,"px")})}return t};var r=t.prototype.initImg;t.prototype.initImg=function(){var e=this,t=r.apply(e);return e.options.videoSrc||(e.options.videoSrc=e.$item.getAttribute("data-jarallax-video")||null),e.options.videoSrc?(e.defaultInitImgResult=t,!0):t};var s=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){var e=this,t=s.apply(e);if(!e.options.videoSrc)return t;var n=new i.default(e.options.videoSrc,{autoplay:!0,loop:e.options.videoLoop,showContols:!1,startTime:e.options.videoStartTime||0,endTime:e.options.videoEndTime||0,mute:e.options.videoVolume?0:1,volume:e.options.videoVolume||0});function o(){e.image.$default_item&&(e.image.$item=e.image.$default_item,e.image.$item.style.display="block",e.coverImage(),e.clipContainer(),e.onScroll())}if(n.isValid())if(this.options.disableParallax()&&(t=!0,e.image.position="absolute",e.options.type="scroll",e.options.speed=1),t){if(n.on("ready",(function(){if(e.options.videoPlayOnlyVisible){var t=e.onScroll;e.onScroll=function(){t.apply(e),e.videoError||!e.options.videoLoop&&(e.options.videoLoop||e.videoEnded)||(e.isVisible()?n.play():n.pause())}}else n.play()})),n.on("started",(function(){e.image.$default_item=e.image.$item,e.image.$item=e.$video,e.image.width=e.video.videoWidth||1280,e.image.height=e.video.videoHeight||720,e.coverImage(),e.clipContainer(),e.onScroll(),e.image.$default_item&&(e.image.$default_item.style.display="none")})),n.on("ended",(function(){e.videoEnded=!0,e.options.videoLoop||o()})),n.on("error",(function(){e.videoError=!0,o()})),e.video=n,!e.defaultInitImgResult&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"!==n.type))return n.getImageURL((function(t){e.image.bgImage='url("'.concat(t,'")'),e.init()})),!1}else e.defaultInitImgResult||n.getImageURL((function(t){var n=e.$item.getAttribute("style");n&&e.$item.setAttribute("data-jarallax-original-styles",n),e.css(e.$item,{"background-image":'url("'.concat(t,'")'),"background-position":"center","background-size":"cover"})}));return t};var l=t.prototype.destroy;t.prototype.destroy=function(){var e=this;e.image.$default_item&&(e.image.$item=e.image.$default_item,delete e.image.$default_item),l.apply(e)}}}}]),function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i),a=n(3),r=n.n(a),s=n(5);Object(s.default)(),o()((function(){void 0!==r.a.jarallax&&r.a.jarallax(document.querySelectorAll("[data-jarallax-element]"))}))},function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",(function(){"interactive"===document.readyState&&e.call()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(4))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var i=n(3),o=n.n(i);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.jarallax;if(void 0!==e){var t=e.constructor;["initImg","canInitParallax","init","destroy","clipContainer","coverImage","isVisible","onScroll","onResize"].forEach((function(e){var n=t.prototype[e];t.prototype[e]=function(){var t=this;"initImg"===e&&null!==t.$item.getAttribute("data-jarallax-element")&&(t.options.type="element",t.pureOptions.speed=t.$item.getAttribute("data-jarallax-element")||t.pureOptions.speed);for(var i=arguments.length,o=new Array(i),a=0;at.options.thresholdY&&(m=0),null!==t.options.thresholdX&&p>t.options.thresholdX&&(g=0),t.css(t.$item,{transform:"translate3d(".concat(g,"px,").concat(m,"px,0)")});break;case"initImg":case"isVisible":case"clipContainer":case"coverImage":return!0}return n.apply(t,o)}}))}}}]),function(){var e,t;e=this.jQuery||window.jQuery,t=e(window),e.fn.stick_in_parent=function(n){var i,o,a,r,s,l,c,d,u,h,f,p,m;for(null==n&&(n={}),h=n.sticky_class,r=n.inner_scrolling,u=n.recalc_every,d=n.parent,l=n.offset_top,s=n.spacer,a=n.bottoming,null==l&&(l=0),null==d&&(d=void 0),null==r&&(r=!0),null==h&&(h="is_stuck"),i=e(document),null==a&&(a=!0),c=function(e){var t,n;return window.getComputedStyle?(e[0],t=window.getComputedStyle(e[0]),n=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(n+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),n):e.outerWidth(!0)},f=function(n,o,f,p,m,g,v,y){var b,w,_,S,x,O,k,E,C,T,j,D;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),x=i.height(),k=n.parent(),null!=d&&(k=k.closest(d)),!k.length)throw"failed to find stick parent";if(_=!1,b=!1,(j=null!=s?s&&n.closest(s):e("
"))&&j.css("position",n.css("position")),(E=function(){var e,t,a;if(!y)return x=i.height(),e=parseInt(k.css("border-top-width"),10),t=parseInt(k.css("padding-top"),10),o=parseInt(k.css("padding-bottom"),10),f=k.offset().top+e+t,p=k.height(),_&&(_=!1,b=!1,null==s&&(n.insertAfter(j),j.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(h),a=!0),m=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-l,g=n.outerHeight(!0),v=n.css("float"),j&&j.css({width:c(n),height:g,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:v}),a?D():void 0})(),g!==p)return S=void 0,O=l,T=u,D=function(){var e,c,d,w,C,D;if(!y)return d=!1,null!=T&&(T-=1)<=0&&(T=u,E(),d=!0),d||i.height()===x||(E(),d=!0),w=t.scrollTop(),null!=S&&(c=w-S),S=w,_?(a&&(C=w+g+O>p+f,b&&!C&&(b=!1,n.css({position:"fixed",bottom:"",top:O}).trigger("sticky_kit:unbottom"))),wD&&(b||(O-=c,O=Math.max(D-g,O),O=Math.min(l,O),_&&n.css({top:O+"px"}))))):w>m&&(_=!0,(e={position:"fixed",top:O}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(e).addClass(h),null==s&&(n.after(j),"left"!==v&&"right"!==v||j.append(n)),n.trigger("sticky_kit:stick")),_&&a&&(null==C&&(C=w+g+O>p+f),!b&&C)?(b=!0,"static"===k.css("position")&&k.css({position:"relative"}),n.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")):void 0},C=function(){return E(),D()},w=function(){if(y=!0,t.off("touchmove",D),t.off("scroll",D),t.off("resize",C),e(document.body).off("sticky_kit:recalc",C),n.off("sticky_kit:detach",w),n.removeData("sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),k.position("position",""),_)return null==s&&("left"!==v&&"right"!==v||n.insertAfter(j),j.remove()),n.removeClass(h)},t.on("touchmove",D),t.on("scroll",D),t.on("resize",C),e(document.body).on("sticky_kit:recalc",C),n.on("sticky_kit:detach",w),setTimeout(D,0)}},p=0,m=this.length;p=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function v(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function y(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&g(e,t):g(e,t))||i&&e===n)return e;if(e===n)break}while(e=v(e))}return null}var b,w=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(w," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(w," ")}}function S(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function x(e,t){var n="";if("string"==typeof e)n=e;else do{var i=S(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function O(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,a=i.length;if(n)for(;o=a:o<=a))return i;if(i===k())break;i=I(i,!1)}return!1}function T(e,t,n){for(var i=0,o=0,a=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,r=o(n,["evt"]);V.pluginEvent.bind(Pe)(e,t,i({dragEl:U,parentEl:q,ghostEl:G,rootEl:X,nextEl:K,lastDownEl:Z,cloneEl:J,cloneHidden:ee,dragStarted:fe,putSortable:re,activeSortable:Pe.active,originalEvent:a,oldIndex:te,oldDraggableIndex:ie,newIndex:ne,newDraggableIndex:oe,hideGhostForTarget:Ae,unhideGhostForTarget:Me,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){B({sortable:t,name:e,originalEvent:a})}},r))};function B(e){Q(i({putSortable:re,cloneEl:J,targetEl:U,rootEl:X,oldIndex:te,oldDraggableIndex:ie,newIndex:ne,newDraggableIndex:oe},e))}var U,q,G,X,K,Z,J,ee,te,ne,ie,oe,ae,re,se,le,ce,de,ue,he,fe,pe,me,ge,ve,ye=!1,be=!1,we=[],_e=!1,Se=!1,xe=[],Oe=!1,ke=[],Ee="undefined"!=typeof document,Ce=u,Te=l||s?"cssFloat":"float",je=Ee&&!h&&!u&&"draggable"in document.createElement("div"),De=function(){if(Ee){if(s)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),We=function(e,t){var n=S(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=T(e,0,t),a=T(e,1,t),r=o&&S(o),s=a&&S(a),l=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+E(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&r.float&&"none"!==r.float){var d="left"===r.float?"left":"right";return!a||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return o&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||l>=i&&"none"===n[Te]||a&&"none"===n[Te]&&l+c>i)?"vertical":"horizontal"},Ie=function(t){function n(e,t){return function(i,o,a,r){var s=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(t||s))return!0;if(null==e||!1===e)return!1;if(t&&"clone"===e)return e;if("function"==typeof e)return n(e(i,o,a,r),t)(i,o,a,r);var l=(t?i:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},o=t.group;o&&"object"==e(o)||(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Ae=function(){!De&&G&&S(G,"display","none")},Me=function(){!De&&G&&S(G,"display","")};Ee&&document.addEventListener("click",(function(e){if(be)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),be=!1,!1}),!0);var Ne=function(e){if(U){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,we.some((function(e){if(!j(e)){var t=E(e),n=e[Y].options.emptyInsertThreshold,i=o>=t.left-n&&o<=t.right+n,s=a>=t.top-n&&a<=t.bottom+n;return n&&i&&s?r=e:void 0}})),r);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Y]._onDragOver(n)}}var o,a,r},Le=function(e){U&&U.parentNode[Y]._isOutsideThisEl(e.target)};function Pe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=n({},t),e[Y]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return We(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Pe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in V.initializePlugins(this,e,i),i)!(o in t)&&(t[o]=i[o]);for(var a in Ie(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&je,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?p(e,"pointerdown",this._onTapStart):(p(e,"mousedown",this._onTapStart),p(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(p(e,"dragover",this),p(e,"dragenter",this)),we.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),n(this,H())}function Re(e,t,n,i,o,a,r,c){var d,u,h=e[Y],f=h.options.onMove;return!window.CustomEvent||s||l?(d=document.createEvent("Event")).initEvent("move",!0,!0):d=new CustomEvent("move",{bubbles:!0,cancelable:!0}),d.to=t,d.from=e,d.dragged=n,d.draggedRect=i,d.related=o||t,d.relatedRect=a||E(t),d.willInsertAfter=c,d.originalEvent=r,e.dispatchEvent(d),f&&(u=f.call(h,d,r)),u}function Ye(e){e.draggable=!1}function He(){Oe=!1}function $e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function ze(e){return setTimeout(e,0)}function Ve(e){return clearTimeout(e)}Pe.prototype={constructor:Pe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(pe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,U):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,o=i.preventOnFilter,a=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(r||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(function(e){ke.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&ke.push(i)}}(n),!U&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||i.disabled||l.isContentEditable||(s=y(s,i.draggable,n,!1))&&s.animated||Z===s)){if(te=D(s),ie=D(s,i.draggable),"function"==typeof c){if(c.call(this,e,s,this))return B({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),F("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=y(l,i.trim(),n,!1))return B({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),F("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!y(l,i.handle,n,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,t,n){var i,o=this,a=o.el,r=o.options,d=a.ownerDocument;if(n&&!U&&n.parentNode===a){var u=E(n);if(X=a,q=(U=n).parentNode,K=U.nextSibling,Z=n,ae=r.group,Pe.dragged=U,se={target:U,clientX:(t||e).clientX,clientY:(t||e).clientY},ue=se.clientX-u.left,he=se.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,U.style["will-change"]="all",i=function(){F("delayEnded",o,{evt:e}),Pe.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!c&&o.nativeDraggable&&(U.draggable=!0),o._triggerDragStart(e,t),B({sortable:o,name:"choose",originalEvent:e}),_(U,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){O(U,e.trim(),Ye)})),p(d,"dragover",Ne),p(d,"mousemove",Ne),p(d,"touchmove",Ne),p(d,"mouseup",o._onDrop),p(d,"touchend",o._onDrop),p(d,"touchcancel",o._onDrop),c&&this.nativeDraggable&&(this.options.touchStartThreshold=4,U.draggable=!0),F("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(l||s))i();else{if(Pe.eventCanceled)return void this._onDrop();p(d,"mouseup",o._disableDelayedDrag),p(d,"touchend",o._disableDelayedDrag),p(d,"touchcancel",o._disableDelayedDrag),p(d,"mousemove",o._delayedDragTouchMoveHandler),p(d,"touchmove",o._delayedDragTouchMoveHandler),r.supportPointer&&p(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){U&&Ye(U),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._disableDelayedDrag),m(e,"touchend",this._disableDelayedDrag),m(e,"touchcancel",this._disableDelayedDrag),m(e,"mousemove",this._delayedDragTouchMoveHandler),m(e,"touchmove",this._delayedDragTouchMoveHandler),m(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?p(document,"pointermove",this._onTouchMove):p(document,t?"touchmove":"mousemove",this._onTouchMove):(p(U,"dragend",this),p(X,"dragstart",this._onDragStart));try{document.selection?ze((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ye=!1,X&&U){F("dragStarted",this,{evt:t}),this.nativeDraggable&&p(document,"dragover",Le);var n=this.options;!e&&_(U,n.dragClass,!1),_(U,n.ghostClass,!0),Pe.active=this,e&&this._appendGhost(),B({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(le){this._lastX=le.clientX,this._lastY=le.clientY,Ae();for(var e=document.elementFromPoint(le.clientX,le.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(le.clientX,le.clientY))!==t;)t=e;if(U.parentNode[Y]._isOutsideThisEl(e),t)do{if(t[Y]){if(t[Y]._onDragOver({clientX:le.clientX,clientY:le.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Me()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=G&&x(G,!0),r=G&&a&&a.a,s=G&&a&&a.d,l=Ce&&ve&&W(ve),c=(o.clientX-se.clientX+i.x)/(r||1)+(l?l[0]-xe[0]:0)/(r||1),d=(o.clientY-se.clientY+i.y)/(s||1)+(l?l[1]-xe[1]:0)/(s||1);if(!Pe.active&&!ye){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))i.right+o||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+o}(e,a,this)&&!g.animated){if(g===U)return H(!1);if(g&&r===e.target&&(s=g),s&&(n=E(s)),!1!==Re(X,r,U,t,s,n,e,!!s))return R(),r.appendChild(U),q=r,$(),H(!0)}else if(s.parentNode===r){n=E(s);var v,b,w,x=U.parentNode!==r,O=!function(e,t,n){var i=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,r=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return i===r||o===s||i+a/2===r+l/2}(U.animated&&U.toRect||t,s.animated&&s.toRect||n,a),k=a?"top":"left",T=C(s,"top","top")||C(U,"top","top"),W=T?T.scrollTop:void 0;if(pe!==s&&(b=n[k],_e=!1,Se=!O&&l.invertSwap||x),0!==(v=function(e,t,n,i,o,a,r,s){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,d=i?n.top:n.left,u=i?n.bottom:n.right,h=!1;if(!r)if(s&&ged+c*a/2:lu-ge)return-me}else if(l>d+c*(1-o)/2&&lu-c*a/2))return l>d+c/2?1:-1;return 0}(e,s,n,a,O?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Se,pe===s))){var I=D(U);do{I-=v,w=q.children[I]}while(w&&("none"===S(w,"display")||w===G))}if(0===v||w===s)return H(!1);pe=s,me=v;var A=s.nextElementSibling,M=!1,L=Re(X,r,U,t,s,n,e,M=1===v);if(!1!==L)return 1!==L&&-1!==L||(M=1===L),Oe=!0,setTimeout(He,30),R(),M&&!A?r.appendChild(U):s.parentNode.insertBefore(U,M?A:s),T&&N(T,0,W-T.scrollTop),q=U.parentNode,void 0===b||Se||(ge=Math.abs(b-E(s)[k])),$(),H(!0)}if(r.contains(U))return H(!1)}return!1}function P(l,c){F(l,p,i({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:H,onMove:function(n,i){return Re(X,r,U,t,n,E(n),e,i)},changed:$},c))}function R(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function H(t){return P("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(p),p!==f&&(_(U,re?re.options.ghostClass:d.options.ghostClass,!1),_(U,l.ghostClass,!0)),re!==p&&p!==Pe.active?re=p:p===Pe.active&&re&&(re=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===U&&!U.animated||s===r&&!s.animated)&&(pe=null),l.dragoverBubble||e.rootEl||s===document||(U.parentNode[Y]._isOutsideThisEl(e.target),!t&&Ne(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function $(){ne=D(U),oe=D(U,l.draggable),B({sortable:p,name:"change",toEl:r,newIndex:ne,newDraggableIndex:oe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",Ne),m(document,"mousemove",Ne),m(document,"touchmove",Ne)},_offUpEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._onDrop),m(e,"touchend",this._onDrop),m(e,"pointerup",this._onDrop),m(e,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ne=D(U),oe=D(U,n.draggable),F("drop",this,{evt:e}),q=U&&U.parentNode,ne=D(U),oe=D(U,n.draggable),Pe.eventCanceled||(ye=!1,Se=!1,_e=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ve(this.cloneId),Ve(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),d&&S(document.body,"user-select",""),S(U,"transform",""),e&&(fe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(X===q||re&&"clone"!==re.lastPutMode)&&J&&J.parentNode&&J.parentNode.removeChild(J),U&&(this.nativeDraggable&&m(U,"dragend",this),Ye(U),U.style["will-change"]="",fe&&!ye&&_(U,re?re.options.ghostClass:this.options.ghostClass,!1),_(U,this.options.chosenClass,!1),B({sortable:this,name:"unchoose",toEl:q,newIndex:null,newDraggableIndex:null,originalEvent:e}),X!==q?(ne>=0&&(B({rootEl:q,name:"add",toEl:q,fromEl:X,originalEvent:e}),B({sortable:this,name:"remove",toEl:q,originalEvent:e}),B({rootEl:q,name:"sort",toEl:q,fromEl:X,originalEvent:e}),B({sortable:this,name:"sort",toEl:q,originalEvent:e})),re&&re.save()):ne!==te&&ne>=0&&(B({sortable:this,name:"update",toEl:q,originalEvent:e}),B({sortable:this,name:"sort",toEl:q,originalEvent:e})),Pe.active&&(null!=ne&&-1!==ne||(ne=te,oe=ie),B({sortable:this,name:"end",toEl:q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){F("nulling",this),X=U=q=G=K=J=Z=ee=se=le=fe=ne=oe=te=ie=pe=me=re=ae=Pe.dragged=Pe.ghost=Pe.clone=Pe.active=null,ke.forEach((function(e){e.checked=!0})),ke.length=ce=de=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":U&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,a=this.options;i1&&(dt.forEach((function(e){i.addAnimationState({target:e,rect:ft?E(e):o}),R(e),e.fromRect=o,t.removeAnimationState(e)})),ft=!1,function(e,t){dt.forEach((function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,i=e.insertion,o=e.activeSortable,a=e.parentEl,r=e.putSortable,s=this.options;if(i){if(n&&o._hideClone(),ht=!1,s.animation&&dt.length>1&&(ft||!n&&!o.options.sort&&!r)){var l=E(st,!1,!0,!0);dt.forEach((function(e){e!==st&&(P(e,l),a.appendChild(e))})),ft=!0}if(!n)if(ft||gt(),dt.length>1){var c=ct;o._showClone(t),o.options.animation&&!ct&&c&&ut.forEach((function(e){o.addAnimationState({target:e,rect:lt}),e.fromRect=lt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,i=e.isOwner,o=e.activeSortable;if(dt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!i&&o.multiDrag.isMultiDrag){lt=n({},t);var a=x(st,!0);lt.top-=a.f,lt.left-=a.e}},dragOverAnimationComplete:function(){ft&&(ft=!1,gt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,r=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,d=i.children;if(!pt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),_(st,c.selectedClass,!~dt.indexOf(st)),~dt.indexOf(st))dt.splice(dt.indexOf(st),1),at=null,Q({sortable:o,rootEl:n,name:"deselect",targetEl:st,originalEvt:t});else{if(dt.push(st),Q({sortable:o,rootEl:n,name:"select",targetEl:st,originalEvt:t}),t.shiftKey&&at&&o.el.contains(at)){var u,h,f=D(at),p=D(st);if(~f&&~p&&f!==p)for(p>f?(h=f,u=p):(h=p,u=f+1);h1){var m=E(st),g=D(st,":not(."+this.options.selectedClass+")");if(!ht&&c.animation&&(st.thisAnimationDuration=null),l.captureAnimationState(),!ht&&(c.animation&&(st.fromRect=m,dt.forEach((function(e){if(e.thisAnimationDuration=null,e!==st){var t=ft?E(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),gt(),dt.forEach((function(e){d[g]?i.insertBefore(e,d[g]):i.appendChild(e),g++})),r===D(st))){var v=!1;dt.forEach((function(e){e.sortableIndex===D(e)||(v=!0)})),v&&a("update")}dt.forEach((function(e){R(e)})),l.animateAll()}rt=l}(n===i||s&&"clone"!==s.lastPutMode)&&ut.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=pt=!1,ut.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==pt&&pt||rt!==this.sortable||e&&y(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;dt.length;){var t=dt[0];_(t,this.options.selectedClass,!1),dt.shift(),Q({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},n(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Y];t&&t.options.multiDrag&&!~dt.indexOf(e)&&(rt&&rt!==t&&(rt.multiDrag._deselectMultiDrag(),rt=t),_(e,t.options.selectedClass,!0),dt.push(e))},deselect:function(e){var t=e.parentNode[Y],n=dt.indexOf(e);t&&t.options.multiDrag&&~n&&(_(e,t.options.selectedClass,!1),dt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return dt.forEach((function(i){var o;t.push({multiDragElement:i,index:i.sortableIndex}),o=ft&&i!==st?-1:ft?D(i,":not(."+e.options.selectedClass+")"):D(i),n.push({multiDragElement:i,index:o})})),{items:a(dt),clones:[].concat(ut),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}),Pe})),function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e)})):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,(function(e){!function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i={"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,a=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function r(t,i){var r=t.nodeName.toLowerCase();if(-1!==e.inArray(r,i))return-1===e.inArray(r,n)||Boolean(t.nodeValue.match(o)||t.nodeValue.match(a));for(var s=e(i).filter((function(e,t){return t instanceof RegExp})),l=0,c=s.length;l1?arguments[1]:void 0,r=a?Number(a):0;r!=r&&(r=0);var s=Math.min(Math.max(r,0),n);if(o+s>n)return!1;for(var l=-1;++l]+>/g,"")),i&&(l=E(l)),l=l.toUpperCase(),a="contains"===n?l.indexOf(t)>=0:l.startsWith(t)))break}return a}function _(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,n=this[0];n.dispatchEvent?(b?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),n.dispatchEvent(t)):n.fireEvent?((t=document.createEventObject()).eventType=e,n.fireEvent("on"+e,t)):this.trigger(e)};var S={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},x=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,O=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function k(e){return S[e]}function E(e){return(e=e.toString())&&e.replace(x,k).replace(O,"")}var C,T,j,D,W,I=(C={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=function(e){return C[e]},j="(?:"+Object.keys(C).join("|")+")",D=RegExp(j),W=RegExp(j,"g"),function(e){return e=null==e?"":""+e,D.test(e)?e.replace(W,T):e}),A={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},M=27,N=13,L=32,P=9,R=38,Y=40,H={success:!1,major:"3"};try{H.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),H.major=H.full[0],H.success=!0}catch(e){}var $=0,z=".bs.select",V={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},Q={MENU:"."+V.MENU},F={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};F.noResults=F.li.cloneNode(!1),F.noResults.className="no-results",F.a.setAttribute("role","option"),F.a.className="dropdown-item",F.subtext.className="text-muted",F.text=F.span.cloneNode(!1),F.text.className="text",F.checkMark=F.span.cloneNode(!1);var B=new RegExp(R+"|"+Y),U=new RegExp("^"+P+"$|"+M),q={li:function(e,t,n){var i=F.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?i.appendChild(e):i.innerHTML=e),void 0!==t&&""!==t&&(i.className=t),null!=n&&i.classList.add("optgroup-"+n),i},a:function(e,t,n){var i=F.a.cloneNode(!0);return e&&(11===e.nodeType?i.appendChild(e):i.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&i.classList.add.apply(i.classList,t.split(/\s+/)),n&&i.setAttribute("style",n),i},text:function(e,t){var n,i,o=F.text.cloneNode(!1);if(e.content)o.innerHTML=e.content;else{if(o.textContent=e.text,e.icon){var a=F.whitespace.cloneNode(!1);(i=(!0===t?F.i:F.span).cloneNode(!1)).className=this.options.iconBase+" "+e.icon,F.fragment.appendChild(i),F.fragment.appendChild(a)}e.subtext&&((n=F.subtext.cloneNode(!1)).textContent=e.subtext,o.appendChild(n))}if(!0===t)for(;o.childNodes.length>0;)F.fragment.appendChild(o.childNodes[0]);else F.fragment.appendChild(o);return F.fragment},label:function(e){var t,n,i=F.text.cloneNode(!1);if(i.innerHTML=e.display,e.icon){var o=F.whitespace.cloneNode(!1);(n=F.span.cloneNode(!1)).className=this.options.iconBase+" "+e.icon,F.fragment.appendChild(n),F.fragment.appendChild(o)}return e.subtext&&((t=F.subtext.cloneNode(!1)).textContent=e.subtext,i.appendChild(t)),F.fragment.appendChild(i),F.fragment}};function G(e,t){e.length||(F.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+I(t)+'"'),this.$menuInner[0].firstChild.appendChild(F.noResults))}var X=function(t,n){var i=this;v.useDefault||(e.valHooks.select.set=v._set,v.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=n,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){i.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var o=this.options.windowPadding;"number"==typeof o&&(this.options.windowPadding=[o,o,o,o]),this.val=X.prototype.val,this.render=X.prototype.render,this.refresh=X.prototype.refresh,this.setStyle=X.prototype.setStyle,this.selectAll=X.prototype.selectAll,this.deselectAll=X.prototype.deselectAll,this.destroy=X.prototype.destroy,this.remove=X.prototype.remove,this.show=X.prototype.show,this.hide=X.prototype.hide,this.init()};function K(n){var i,o=arguments,a=n;if([].shift.apply(o),!H.success){try{H.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(e){X.BootstrapVersion?H.full=X.BootstrapVersion.split(" ")[0].split("."):(H.full=[H.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",e))}H.major=H.full[0],H.success=!0}if("4"===H.major){var r=[];X.DEFAULTS.style===V.BUTTONCLASS&&r.push({name:"style",className:"BUTTONCLASS"}),X.DEFAULTS.iconBase===V.ICONBASE&&r.push({name:"iconBase",className:"ICONBASE"}),X.DEFAULTS.tickIcon===V.TICKICON&&r.push({name:"tickIcon",className:"TICKICON"}),V.DIVIDER="dropdown-divider",V.SHOW="show",V.BUTTONCLASS="btn-light",V.POPOVERHEADER="popover-header",V.ICONBASE="",V.TICKICON="bs-ok-default";for(var s=0;s'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:i},X.prototype={constructor:X,init:function(){var e=this,t=this.$element.attr("id"),n=this.$element[0],i=n.form;$++,this.selectId="bs-select-"+$,n.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),n.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),i&&null===n.form&&(i.id||(i.id="form-"+this.selectId),n.setAttribute("form",i.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(Q.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),n.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(V.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",(function(){if(e.isVirtual()){var t=e.$menuInner[0],n=t.firstChild.cloneNode(!1);t.replaceChild(n,t.firstChild),t.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),n.hasAttribute("required")&&this.$element.on("invalid.bs.select",(function(){e.$button[0].classList.add("bs-invalid"),e.$element.on("shown.bs.select.invalid",(function(){e.$element.val(e.$element.val()).off("shown.bs.select.invalid")})).on("rendered.bs.select",(function(){this.validity.valid&&e.$button[0].classList.remove("bs-invalid"),e.$element.off("rendered.bs.select")})),e.$button.on("blur.bs.select",(function(){e.$element.trigger("focus").trigger("blur"),e.$button.off("blur.bs.select")}))})),setTimeout((function(){e.buildList(),e.$element.trigger("loaded.bs.select")}))},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",n=this.multiple?' aria-multiselectable="true"':"",i="",o=this.autofocus?" autofocus":"";H.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var a,r="",s="",l="",c="";return this.options.header&&(r='
'+this.options.header+"
"),this.options.liveSearch&&(s=''),this.multiple&&this.options.actionsBox&&(l='
"),this.multiple&&this.options.doneButton&&(c='
"),a='",e(a)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var e=0;e=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,n,i){var o,a,r=this,l=0,c=[];if(this.selectpicker.isSearching=t,this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),n)if(i)l=this.$menuInner[0].scrollTop;else if(!r.multiple){var d=r.$element[0],u=(d.options[d.selectedIndex]||{}).liIndex;if("number"==typeof u&&!1!==r.options.size){var h=r.selectpicker.main.data[u],f=h&&h.position;f&&(l=f-(r.sizeInfo.menuInnerHeight+r.sizeInfo.liHeight)/2)}}function p(e,n){var i,l,d,u,h,f,p,m,g,v,y=r.selectpicker.current.elements.length,b=[],w=!0,_=r.isVirtual();r.selectpicker.view.scrollTop=e,i=Math.ceil(r.sizeInfo.menuInnerHeight/r.sizeInfo.liHeight*1.5),l=Math.round(y/i)||1;for(var S=0;Sy-1?0:r.selectpicker.current.data[y-1].position-r.selectpicker.current.data[r.selectpicker.view.position1-1].position,E.firstChild.style.marginTop=O+"px",E.firstChild.style.marginBottom=k+"px"):(E.firstChild.style.marginTop=0,E.firstChild.style.marginBottom=0),E.firstChild.appendChild(C),!0===_&&r.sizeInfo.hasScrollBar){var N=E.firstChild.offsetWidth;if(n&&Nr.sizeInfo.selectWidth)E.firstChild.style.minWidth=r.sizeInfo.menuInnerInnerWidth+"px";else if(N>r.sizeInfo.menuInnerInnerWidth){r.$menu[0].style.minWidth=0;var L=E.firstChild.offsetWidth;L>r.sizeInfo.menuInnerInnerWidth&&(r.sizeInfo.menuInnerInnerWidth=L,E.firstChild.style.minWidth=r.sizeInfo.menuInnerInnerWidth+"px"),r.$menu[0].style.minWidth=""}}}if(r.prevActiveIndex=r.activeIndex,r.options.liveSearch){if(t&&n){var P,R=0;r.selectpicker.view.canHighlight[R]||(R=1+r.selectpicker.view.canHighlight.slice(1).indexOf(!0)),P=r.selectpicker.view.visibleElements[R],r.defocusItem(r.selectpicker.view.currentActive),r.activeIndex=(r.selectpicker.current.data[R]||{}).index,r.focusItem(P)}}else r.$menuInner.trigger("focus")}p(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(e,t){r.noScroll||p(this.scrollTop,t),r.noScroll=!1})),e(window).off("resize.bs.select."+this.selectId+".createView").on("resize.bs.select."+this.selectId+".createView",(function(){r.$newElement.hasClass(V.SHOW)&&p(r.$menuInner[0].scrollTop)}))},focusItem:function(e,t,n){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var i=e.firstChild;i&&(i.setAttribute("aria-setsize",this.selectpicker.view.size),i.setAttribute("aria-posinset",t.posinset),!0!==n&&(this.focusedParent.setAttribute("aria-activedescendant",i.id),e.classList.add("active"),i.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var e=this,t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var n=this.$element[0],i=!1,o=!this.selectpicker.view.titleOption.parentNode,a=n.selectedIndex,r=n.options[a],s=window.performance&&window.performance.getEntriesByType("navigation"),l=s&&s.length?"back_forward"!==s[0].type:2!==window.performance.navigation.type;o&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",i=!r||0===a&&!1===r.defaultSelected&&void 0===this.$element.data("selected")),(o||0!==this.selectpicker.view.titleOption.index)&&n.insertBefore(this.selectpicker.view.titleOption,n.firstChild),i&&l?n.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){e.selectpicker.view.displayedValue!==n.value&&e.render()}))}return t},buildData:function(){var e=':not([hidden]):not([data-hidden="true"])',t=[],n=0,i=this.setPlaceholder()?1:0;this.options.hideDisabled&&(e+=":not(:disabled)");var o=this.$element[0].querySelectorAll("select > *"+e);function a(e){var n=t[t.length-1];n&&"divider"===n.type&&(n.optID||e.optID)||((e=e||{}).type="divider",t.push(e))}function r(e,n){if((n=n||{}).divider="true"===e.getAttribute("data-divider"),n.divider)a({optID:n.optID});else{var i=t.length,o=e.style.cssText,r=o?I(o):"",s=(e.className||"")+(n.optgroupClass||"");n.optID&&(s="opt "+s),n.optionClass=s.trim(),n.inlineStyle=r,n.text=e.textContent,n.content=e.getAttribute("data-content"),n.tokens=e.getAttribute("data-tokens"),n.subtext=e.getAttribute("data-subtext"),n.icon=e.getAttribute("data-icon"),e.liIndex=i,n.display=n.content||n.text,n.type="option",n.index=i,n.option=e,n.selected=!!e.selected,n.disabled=n.disabled||!!e.disabled,t.push(n)}}function s(o,s){var l=s[o],c=!(o-1i&&(i=a,e.selectpicker.view.widestOption=n[n.length-1])}!e.options.showTick&&!e.multiple||F.checkMark.parentNode||(F.checkMark.className=this.options.iconBase+" "+e.options.tickIcon+" check-mark",F.a.appendChild(F.checkMark));for(var a=t.length,r=0;r li")},render:function(){var e,t,n=this,i=this.$element[0],o=this.setPlaceholder()&&0===i.selectedIndex,a=m(i,this.options.hideDisabled),r=a.length,l=this.$button[0],c=l.querySelector(".filter-option-inner-inner"),d=document.createTextNode(this.options.multipleSeparator),u=F.fragment.cloneNode(!1),h=!1;if(l.classList.toggle("bs-placeholder",n.multiple?!r:!g(i,a)),n.multiple||1!==a.length||(n.selectpicker.view.displayedValue=g(i,a)),"static"===this.options.selectedTextFormat)u=q.text.call(this,{text:this.options.title},!0);else if((e=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&r>1)&&(e=(t=this.options.selectedTextFormat.split(">")).length>1&&r>t[1]||1===t.length&&r>=2),!1===e){if(!o){for(var f=0;f0&&u.appendChild(d.cloneNode(!1)),p.title?y.text=p.title:v&&(v.content&&n.options.showContent?(y.content=v.content.toString(),h=!0):(n.options.showIcon&&(y.icon=v.icon),n.options.showSubtext&&!n.multiple&&v.subtext&&(y.subtext=" "+v.subtext),y.text=p.textContent.trim())),u.appendChild(q.text.call(this,y,!0))}r>49&&u.appendChild(document.createTextNode("..."))}}else{var b=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(b+=":not(:disabled)");var w=this.$element[0].querySelectorAll("select > option"+b+", optgroup"+b+" option"+b).length,_="function"==typeof this.options.countSelectedText?this.options.countSelectedText(r,w):this.options.countSelectedText;u=q.text.call(this,{text:_.replace("{0}",r.toString()).replace("{1}",w.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),u.childNodes.length||(u=q.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),l.title=u.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&h&&s([u],n.options.whiteList,n.options.sanitizeFn),c.innerHTML="",c.appendChild(u),H.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var S=l.querySelector(".filter-expand"),x=c.cloneNode(!0);x.className="filter-expand",S?l.replaceChild(x,S):l.appendChild(x)}this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){var n,i=this.$button[0],o=this.$newElement[0],a=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),H.major<4&&(o.classList.add("bs3"),o.parentNode.classList&&o.parentNode.classList.contains("input-group")&&(o.previousElementSibling||o.nextElementSibling)&&(o.previousElementSibling||o.nextElementSibling).classList.contains("input-group-addon")&&o.classList.add("bs3-has-addon")),n=e?e.trim():a,"add"==t?n&&i.classList.add.apply(i.classList,n.split(" ")):"remove"==t?n&&i.classList.remove.apply(i.classList,n.split(" ")):(a&&i.classList.remove.apply(i.classList,a.split(" ")),n&&i.classList.add.apply(i.classList,n.split(" ")))},liHeight:function(t){if(t||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var n,i=F.div.cloneNode(!1),o=F.div.cloneNode(!1),a=F.div.cloneNode(!1),r=document.createElement("ul"),s=F.li.cloneNode(!1),l=F.li.cloneNode(!1),c=F.a.cloneNode(!1),d=F.span.cloneNode(!1),u=this.options.header&&this.$menu.find("."+V.POPOVERHEADER).length>0?this.$menu.find("."+V.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?F.div.cloneNode(!1):null,f=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,d.className="text",c.className="dropdown-item "+(m?m.className:""),i.className=this.$menu[0].parentNode.className+" "+V.SHOW,i.style.width=0,"auto"===this.options.width&&(o.style.minWidth=0),o.className=V.MENU+" "+V.SHOW,a.className="inner "+V.SHOW,r.className=V.MENU+" inner "+("4"===H.major?V.SHOW:""),s.className=V.DIVIDER,l.className="dropdown-header",d.appendChild(document.createTextNode("​")),this.selectpicker.current.data.length)for(var g=0;gthis.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(V.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)o=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,i=o+u+h+f+p,r=Math.max(o-g.vert,0),this.$newElement.hasClass(V.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),a=n,t=n-u-h-f-p-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var y=0;ythis.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRightthis.options.size&&i.off("resize.bs.select."+this.selectId+".setMenuSize scroll"+".bs.select."+this.selectId+".setMenuSize")}this.createView(!1,!0,t)},setWidth:function(){var e=this;"auto"===this.options.width?requestAnimationFrame((function(){e.$menu.css("min-width","0"),e.$element.on("loaded.bs.select",(function(){e.liHeight(),e.setMenuSize();var t=e.$newElement.clone().appendTo("body"),n=t.css("width","auto").children("button").outerWidth();t.remove(),e.sizeInfo.selectWidth=Math.max(e.sizeInfo.totalMenuWidth,n),e.$newElement.css("width",e.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=e('
');var t,n,i,o=this,a=e(this.options.container),r=function(r){var s={},l=o.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;o.$bsContainer.addClass(r.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(V.DROPUP,r.hasClass(V.DROPUP)),t=r.offset(),a.is("body")?n={top:0,left:0}:((n=a.offset()).top+=parseInt(a.css("borderTopWidth"))-a.scrollTop(),n.left+=parseInt(a.css("borderLeftWidth"))-a.scrollLeft()),i=r.hasClass(V.DROPUP)?0:r[0].offsetHeight,(H.major<4||"static"===l)&&(s.top=t.top-n.top+i,s.left=t.left-n.left),s.width=r[0].offsetWidth,o.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",(function(){o.isDisabled()||(r(o.$newElement),o.$bsContainer.appendTo(o.options.container).toggleClass(V.SHOW,!o.$button.hasClass(V.SHOW)).append(o.$menu))})),e(window).off("resize.bs.select."+this.selectId+" scroll"+".bs.select."+this.selectId).on("resize.bs.select."+this.selectId+" scroll"+".bs.select."+this.selectId,(function(){o.$newElement.hasClass(V.SHOW)&&r(o.$newElement)})),this.$element.on("hide.bs.select",(function(){o.$menu.data("height",o.$menu.height()),o.$bsContainer.detach()}))},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var n=0;n3&&!t.dropdown&&(t.dropdown=t.$button.data("bs.dropdown"),t.dropdown._menu=t.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){t.$newElement.hasClass(V.SHOW)||t.setSize()})),this.$element.on("shown.bs.select",(function(){t.$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),H.major>3?requestAnimationFrame(o):i()})),this.$menuInner.on("mouseenter","li a",(function(e){var n=this.parentElement,i=t.isVirtual()?t.selectpicker.view.position0:0,o=Array.prototype.indexOf.call(n.parentElement.children,n),a=t.selectpicker.current.data[o+i];t.focusItem(n,a,!0)})),this.$menuInner.on("click","li a",(function(n,i){var o=e(this),a=t.$element[0],r=t.isVirtual()?t.selectpicker.view.position0:0,s=t.selectpicker.current.data[o.parent().index()+r],l=s.index,c=g(a),d=a.selectedIndex,u=a.options[d],h=!0;if(t.multiple&&1!==t.options.maxOptions&&n.stopPropagation(),n.preventDefault(),!t.isDisabled()&&!o.parent().hasClass(V.DISABLED)){var f=s.option,p=e(f),v=f.selected,b=p.parent("optgroup"),w=b.find("option"),_=t.options.maxOptions,S=b.data("maxOptions")||!1;if(l===t.activeIndex&&(i=!0),i||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(f.selected=!v,t.setSelected(l,!v),t.focusedParent.focus(),!1!==_||!1!==S){var x=_
');T[2]&&(j=j.replace("{var}",T[2][_>1?0:1]),D=D.replace("{var}",T[2][S>1?0:1])),f.selected=!1,t.$menu.append(W),_&&x&&(W.append(e("
"+j+"
")),h=!1,t.$element.trigger("maxReached.bs.select")),S&&O&&(W.append(e("
"+D+"
")),h=!1,t.$element.trigger("maxReachedGrp.bs.select")),setTimeout((function(){t.setSelected(l,!1)}),10),W[0].classList.add("fadeOut"),setTimeout((function(){W.remove()}),1050)}}}else u&&(u.selected=!1),f.selected=!0,t.setSelected(l,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.trigger("focus"):t.options.liveSearch&&t.$searchbox.trigger("focus"),h&&(t.multiple||d!==a.selectedIndex)&&(y=[f.index,p.prop("selected"),c],t.$element.triggerNative("change"))}})),this.$menu.on("click","li."+V.DISABLED+" a, ."+V.POPOVERHEADER+", ."+V.POPOVERHEADER+" :not(.close)",(function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch&&!e(n.target).hasClass("close")?t.$searchbox.trigger("focus"):t.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus")})),this.$menu.on("click","."+V.POPOVERHEADER+" .close",(function(){t.$button.trigger("click")})),this.$searchbox.on("click",(function(e){e.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(n){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus"),n.preventDefault(),n.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()})),this.$button.on("focus.bs.select",(function(e){var n=t.$element[0].getAttribute("tabindex");void 0!==n&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute("tabindex",n),t.$element[0].setAttribute("tabindex",-1),t.selectpicker.view.tabindex=n)})).on("blur.bs.select",(function(e){void 0!==t.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(t.$element[0].setAttribute("tabindex",t.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),t.selectpicker.view.tabindex=void 0)})),this.$element.on("change.bs.select",(function(){t.render(),t.$element.trigger("changed.bs.select",y),y=null})).on("focus.bs.select",(function(){t.options.mobile||t.$button[0].focus()}))},liveSearchListener:function(){var e=this;this.$button.on("click.bs.dropdown.data-api",(function(){e.$searchbox.val()&&(e.$searchbox.val(""),e.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(e){e.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var t=e.$searchbox[0].value;if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],t){var n=[],i=t.toUpperCase(),o={},a=[],r=e._searchStyle(),s=e.options.liveSearchNormalize;s&&(i=E(i));for(var l=0;l0&&(o[c.headerIndex-1]=!0,a.push(c.headerIndex-1)),o[c.headerIndex]=!0,a.push(c.headerIndex),o[c.lastIndex+1]=!0),o[l]&&"optgroup-label"!==c.type&&a.push(l)}l=0;for(var d=a.length;l=112&&t.which<=123))if(!(i=c.$newElement.hasClass(V.SHOW))&&(f||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105||t.which>=65&&t.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(t.which===M&&i&&(t.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),f){if(!d.length)return;-1!==(n=(o=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(o.parentElement.children,o):-1)&&c.defocusItem(o),t.which===R?(-1!==n&&n--,n+m<0&&(n+=d.length),c.selectpicker.view.canHighlight[n+m]||-1===(n=c.selectpicker.view.canHighlight.slice(0,n+m).lastIndexOf(!0)-m)&&(n=d.length-1)):(t.which===Y||h)&&(++n+m>=c.selectpicker.view.canHighlight.length&&(n=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[n+m]||(n=n+1+c.selectpicker.view.canHighlight.slice(n+m+1).indexOf(!0))),t.preventDefault();var g=m+n;t.which===R?0===m&&n===d.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):u=(r=(a=c.selectpicker.current.data[g]).position-a.height)p),o=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(o),c.selectpicker.view.currentActive=o,u&&(c.$menuInner[0].scrollTop=r),c.options.liveSearch?c.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!U.test(t.which)||t.which===L&&c.selectpicker.keydown.keyHistory){var v,y,b=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=A[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),y=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var _=0;_0?(r=a.position-a.height,u=!0):(r=a.position-c.sizeInfo.menuInnerHeight,u=a.position>p+c.sizeInfo.menuInnerHeight),o=c.selectpicker.main.elements[v],c.activeIndex=b[x],c.focusItem(o),o&&o.firstChild.focus(),u&&(c.$menuInner[0].scrollTop=r),s.trigger("focus")}}i&&(t.which===L&&!c.selectpicker.keydown.keyHistory||t.which===N||t.which===P&&c.options.selectOnTab)&&(t.which!==L&&t.preventDefault(),c.options.liveSearch&&t.which===L||(c.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),c.options.liveSearch||(t.preventDefault(),e(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var t=e.extend({},this.options,this.$element.data());this.options=t,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(z).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),e(window).off(".bs.select."+this.selectId)}};var Z=e.fn.selectpicker;function J(){if(e.fn.dropdown){var t=e.fn.dropdown.Constructor._dataApiKeydownHandler||e.fn.dropdown.Constructor.prototype.keydown;return t.apply(this,arguments)}}e.fn.selectpicker=K,e.fn.selectpicker.Constructor=X,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=Z,this},e(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',J).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",J).on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',X.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(e){e.stopPropagation()})),e(window).on("load.bs.select.data-api",(function(){e(".selectpicker").each((function(){var t=e(this);K.call(t,t.data())}))}))}(e)})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Typed=t():e.Typed=t()}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ne.length)););var l=e.substring(0,t),c=e.substring(l.length+1,t+o),d=e.substring(t+o+1);e=l+c+d,o--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),t>=e.length?n.doneTyping(e,t):n.keepTyping(e,t,o),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),i)}),i):this.setPauseStatus(e,t,!0)}},{key:"keepTyping",value:function(e,t,n){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),t+=n;var i=e.substr(0,t);this.replaceText(i),this.typewrite(e,t)}},{key:"doneTyping",value:function(e,t){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(e,t)}),this.backDelay))}},{key:"backspace",value:function(e,t){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var i=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){t=a.htmlParser.backSpaceHtmlChars(e,t,n);var i=e.substr(0,t);if(n.replaceText(i),n.smartBackspace){var o=n.strings[n.arrayPos+1];o&&i===o.substr(0,t)?n.stopNum=t:n.stopNum=0}t>n.stopNum?(t--,n.backspace(e,t)):t<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],t))}),i)}else this.setPauseStatus(e,t,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(e,t,n){this.pause.typewrite=n,this.pause.curString=e,this.pause.curStrPos=t}},{key:"toggleBlinking",value:function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(e){return Math.round(Math.random()*e/2)+e}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e}},{key:"bindFocusEvents",value:function(){var e=this;this.isInput&&(this.el.addEventListener("focus",(function(t){e.stop()})),this.el.addEventListener("blur",(function(t){e.el.value&&0!==e.el.value.length||e.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),e}();t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t":";";e.substr(t+1).charAt(0)!==o&&!(++t+1>e.length););t++}return t}},{key:"backSpaceHtmlChars",value:function(e,t,n){if("html"!==n.contentType)return t;var i=e.substr(t).charAt(0);if(">"===i||";"===i){var o="";for(o=">"===i?"<":"&";e.substr(t-1).charAt(0)!==o&&!(--t<0););t--}return t}}]),e}();t.default=i;var o=new i;t.htmlParser=o}])})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(e&&(p=!0),p)return f=(0,u.default)(f,m),(0,d.default)(f,m.once),f},v=function(){f=(0,h.default)(),g()};e.exports={init:function(e){m=o(m,e),f=(0,h.default)();var t=document.all&&!window.atob;return function(e){return!0===e||"mobile"===e&&c.default.mobile()||"phone"===e&&c.default.phone()||"tablet"===e&&c.default.tablet()||"function"==typeof e&&!0===e()}(m.disable)||t?void f.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})):(m.disableMutationObserver||l.default.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),m.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?g(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,(function(){g(!0)})):document.addEventListener(m.startEvent,(function(){g(!0)})),window.addEventListener("resize",(0,s.default)(g,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,s.default)(g,m.debounceDelay,!0)),window.addEventListener("scroll",(0,r.default)((function(){(0,d.default)(f,m.once)}),m.throttleDelay)),m.disableMutationObserver||l.default.ready("[data-aos]",v),f)},refresh:g,refreshHard:v}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=h,i=f;return h=f=void 0,y=t,m=e.apply(i,n)}function r(e){return y=e,g=setTimeout(c,t),S?o(e):m}function l(e){var n=e-v;return void 0===v||n>=t||n<0||x&&e-y>=p}function c(){var e=_();return l(e)?d(e):void(g=setTimeout(c,function(e){var n=t-(e-v);return x?w(n,p-(e-y)):n}(e)))}function d(e){return g=void 0,O&&h?o(e):(h=f=void 0,m)}function u(){var e=_(),n=l(e);if(h=arguments,f=this,v=e,n){if(void 0===g)return r(v);if(x)return g=setTimeout(c,t),o(v)}return void 0===g&&(g=setTimeout(c,t)),m}var h,f,p,m,g,v,y=0,S=!1,x=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(S=!!n.leading,p=(x="maxWait"in n)?b(a(n.maxWait)||0,t):p,O="trailing"in n?!!n.trailing:O),u.cancel=function(){void 0!==g&&clearTimeout(g),y=0,h=v=f=g=void 0},u.flush=function(){return void 0===g?m:d(_())},u}function i(e){var t=void 0===e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}function o(e){return"symbol"==(void 0===e?"undefined":r(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":r(e))}(e)&&y.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=h.test(e);return n||f.test(e)?p(e.slice(2),n?2:8):u.test(e)?l:+e}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="Expected a function",l=NaN,c="[object Symbol]",d=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt,m="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=Object.prototype.toString,b=Math.max,w=Math.min,_=function(){return v.Date.now()};e.exports=function(e,t,o){var a=!0,r=!0;if("function"!=typeof e)throw new TypeError(s);return i(o)&&(a="leading"in o?!!o.leading:a,r="trailing"in o?!!o.trailing:r),n(e,t,{leading:a,maxWait:t,trailing:r})}}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e){var t=void 0===e?"undefined":a(e);return!!e&&("object"==t||"function"==t)}function i(e){return"symbol"==(void 0===e?"undefined":a(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":a(e))}(e)&&v.call(e)==l}function o(e){if("number"==typeof e)return e;if(i(e))return s;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var o=u.test(e);return o||h.test(e)?f(e.slice(2),o?2:8):d.test(e)?s:+e}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r="Expected a function",s=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,p="object"==(void 0===t?"undefined":a(t))&&t&&t.Object===Object&&t,m="object"==("undefined"==typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,g=p||m||Function("return this")(),v=Object.prototype.toString,y=Math.max,b=Math.min,w=function(){return g.Date.now()};e.exports=function(e,t,i){function a(t){var n=h,i=f;return h=f=void 0,_=t,m=e.apply(i,n)}function s(e){return _=e,g=setTimeout(c,t),S?a(e):m}function l(e){var n=e-v;return void 0===v||n>=t||n<0||x&&e-_>=p}function c(){var e=w();return l(e)?d(e):void(g=setTimeout(c,function(e){var n=t-(e-v);return x?b(n,p-(e-_)):n}(e)))}function d(e){return g=void 0,O&&h?a(e):(h=f=void 0,m)}function u(){var e=w(),n=l(e);if(h=arguments,f=this,v=e,n){if(void 0===g)return s(v);if(x)return g=setTimeout(c,t),a(v)}return void 0===g&&(g=setTimeout(c,t)),m}var h,f,p,m,g,v,_=0,S=!1,x=!1,O=!0;if("function"!=typeof e)throw new TypeError(r);return t=o(t)||0,n(i)&&(S=!!i.leading,p=(x="maxWait"in i)?y(o(i.maxWait)||0,t):p,O="trailing"in i?!!i.trailing:O),u.cancel=function(){void 0!==g&&clearTimeout(g),_=0,h=v=f=g=void 0},u.flush=function(){return void 0===g?m:d(w())},u}}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){var t=void 0,i=void 0;for(t=0;te.position?e.node.classList.add("aos-animate"):void 0!==i&&("false"===i||!n&&"true"!==i)&&e.node.classList.remove("aos-animate")}(e,i+n,t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(12));t.default=function(e,t){return e.forEach((function(e,n){e.node.classList.add("aos-init"),e.position=(0,i.default)(e.node,t.offset)})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13));t.default=function(e,t){var n=0,o=0,a=window.innerHeight,r={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(r.offset&&!isNaN(r.offset)&&(o=parseInt(r.offset)),r.anchor&&document.querySelectorAll(r.anchor)&&(e=document.querySelectorAll(r.anchor)[0]),n=(0,i.default)(e).top,r.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=a/2;break;case"bottom-center":n+=a/2+e.offsetHeight;break;case"center-center":n+=a/2+e.offsetHeight/2;break;case"top-top":n+=a;break;case"bottom-top":n+=e.offsetHeight+a;break;case"center-top":n+=e.offsetHeight/2+a}return r.anchorPlacement||r.offset||isNaN(t)||(o=t),n+o}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,(function(e){return{node:e}}))}}])})),function(e){e.fn.extend({slimScroll:function(n){var i=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each((function(){var o,a,r,s,l,c,d,u,h="
",f=!1,p=e(this);if(p.parent().hasClass(i.wrapperClass)){var m=p.scrollTop();if(_=p.siblings("."+i.barClass),w=p.siblings("."+i.railClass),k(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){p.parent().css("height","auto"),p.css("height","auto");var g=p.parent().parent().height();p.parent().css("height",g),p.css("height",g)}else if("height"in n){var v=n.height;p.parent().css("height",v),p.css("height",v)}if("scrollTo"in n)m=parseInt(i.scrollTo);else if("scrollBy"in n)m+=parseInt(i.scrollBy);else if("destroy"in n)return _.remove(),w.remove(),void p.unwrap();O(m,!1,!0)}}else if(!e.isPlainObject(n)||!("destroy"in n)){i.height="auto"==i.height?p.parent().height():i.height;var y=e(h).addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height});p.css({overflow:"hidden",width:i.width,height:i.height});var b,w=e(h).addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.railBorderRadius,background:i.railColor,opacity:i.railOpacity,zIndex:90}),_=e(h).addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.borderRadius,BorderRadius:i.borderRadius,MozBorderRadius:i.borderRadius,WebkitBorderRadius:i.borderRadius,zIndex:99}),S="right"==i.position?{right:i.distance}:{left:i.distance};w.css(S),_.css(S),p.wrap(y),p.parent().append(_),p.parent().append(w),i.railDraggable&&_.bind("mousedown",(function(n){var i=e(document);return r=!0,t=parseFloat(_.css("top")),pageY=n.pageY,i.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,_.css("top",currTop),O(0,_.position().top,!1)})),i.bind("mouseup.slimscroll",(function(e){r=!1,C(),i.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(e){return e.stopPropagation(),e.preventDefault(),!1})),w.hover((function(){E()}),(function(){C()})),_.hover((function(){a=!0}),(function(){a=!1})),p.hover((function(){o=!0,E(),C()}),(function(){o=!1,C()})),p.bind("touchstart",(function(e,t){e.originalEvent.touches.length&&(l=e.originalEvent.touches[0].pageY)})),p.bind("touchmove",(function(e){(f||e.originalEvent.preventDefault(),e.originalEvent.touches.length)&&(O((l-e.originalEvent.touches[0].pageY)/i.touchScrollStep,!0),l=e.originalEvent.touches[0].pageY)})),k(),"bottom"===i.start?(_.css({top:p.outerHeight()-_.outerHeight()}),O(0,!0)):"top"!==i.start&&(O(e(i.start).position().top,null,!0),i.alwaysVisible||_.hide()),b=this,window.addEventListener?(b.addEventListener("DOMMouseScroll",x,!1),b.addEventListener("mousewheel",x,!1)):document.attachEvent("onmousewheel",x)}function x(t){if(o){var n=0;(t=t||window.event).wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3);var a=t.target||t.srcTarget||t.srcElement;e(a).closest("."+i.wrapperClass).is(p.parent())&&O(n,!0),t.preventDefault&&!f&&t.preventDefault(),f||(t.returnValue=!1)}}function O(e,t,n){f=!1;var o=e,a=p.outerHeight()-_.outerHeight();if(t&&(o=parseInt(_.css("top"))+e*parseInt(i.wheelStep)/100*_.outerHeight(),o=Math.min(Math.max(o,0),a),o=e>0?Math.ceil(o):Math.floor(o),_.css({top:o+"px"})),o=(d=parseInt(_.css("top"))/(p.outerHeight()-_.outerHeight()))*(p[0].scrollHeight-p.outerHeight()),n){var r=(o=e)/p[0].scrollHeight*p.outerHeight();r=Math.min(Math.max(r,0),a),_.css({top:r+"px"})}p.scrollTop(o),p.trigger("slimscrolling",~~o),E(),C()}function k(){c=Math.max(p.outerHeight()/p[0].scrollHeight*p.outerHeight(),30),_.css({height:c+"px"});var e=c==p.outerHeight()?"none":"block";_.css({display:e})}function E(){if(k(),clearTimeout(s),d==~~d){if(f=i.allowPageScroll,u!=d){var e=0==~~d?"top":"bottom";p.trigger("slimscroll",e)}}else f=!1;u=d,c>=p.outerHeight()?f=!0:(_.stop(!0,!0).fadeIn("fast"),i.railVisible&&w.stop(!0,!0).fadeIn("fast"))}function C(){i.alwaysVisible||(s=setTimeout((function(){i.disableFadeOut&&o||a||r||(_.fadeOut("slow"),w.fadeOut("slow"))}),1e3))}})),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(e,t,n,i){var o="ontouchstart"in n,a=function(){var e=n.createElement("div"),i=n.documentElement;if(!("pointerEvents"in e.style))return!1;e.style.pointerEvents="auto",e.style.pointerEvents="x",i.appendChild(e);var o=t.getComputedStyle&&"auto"===t.getComputedStyle(e,"").pointerEvents;return i.removeChild(e),!!o}(),r={listNodeName:"ol",itemNodeName:"li",rootClass:"dd",listClass:"dd-list",itemClass:"dd-item",dragClass:"dd-dragel",handleClass:"dd-handle",collapsedClass:"dd-collapsed",placeClass:"dd-placeholder",noDragClass:"dd-nodrag",emptyClass:"dd-empty",expandBtnHTML:'',collapseBtnHTML:'',group:0,maxDepth:5,threshold:20};function s(t,i){this.w=e(n),this.el=e(t),this.options=e.extend({},r,i),this.init()}s.prototype={init:function(){var n=this;n.reset(),n.el.data("nestable-group",this.options.group),n.placeEl=e('
'),e.each(this.el.find(n.options.itemNodeName),(function(t,i){n.setParent(e(i))})),n.el.on("click","button",(function(t){if(!n.dragEl){var i=e(t.currentTarget),o=i.data("action"),a=i.parent(n.options.itemNodeName);"collapse"===o&&n.collapseItem(a),"expand"===o&&n.expandItem(a)}}));var i=function(t){var i=e(t.target);if(!i.hasClass(n.options.handleClass)){if(i.closest("."+n.options.noDragClass).length)return;i=i.closest("."+n.options.handleClass)}i.length&&!n.dragEl&&(n.isTouch=/^touch/.test(t.type),n.isTouch&&1!==t.touches.length||(t.preventDefault(),n.dragStart(t.touches?t.touches[0]:t)))},a=function(e){n.dragEl&&(e.preventDefault(),n.dragMove(e.touches?e.touches[0]:e))},r=function(e){n.dragEl&&(e.preventDefault(),n.dragStop(e.touches?e.touches[0]:e))};o&&(n.el[0].addEventListener("touchstart",i,!1),t.addEventListener("touchmove",a,!1),t.addEventListener("touchend",r,!1),t.addEventListener("touchcancel",r,!1)),n.el.on("mousedown",i),n.w.on("mousemove",a),n.w.on("mouseup",r)},serialize:function(){var t=this;return step=function(n,i){var o=[];return n.children(t.options.itemNodeName).each((function(){var n=e(this),a=e.extend({},n.data()),r=n.children(t.options.listNodeName);r.length&&(a.children=step(r,i+1)),o.push(a)})),o},step(t.el.find(t.options.listNodeName).first(),0)},serialise:function(){return this.serialize()},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.isTouch=!1,this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null},expandItem:function(e){e.removeClass(this.options.collapsedClass),e.children('[data-action="expand"]').hide(),e.children('[data-action="collapse"]').show(),e.children(this.options.listNodeName).show()},collapseItem:function(e){e.children(this.options.listNodeName).length&&(e.addClass(this.options.collapsedClass),e.children('[data-action="collapse"]').hide(),e.children('[data-action="expand"]').show(),e.children(this.options.listNodeName).hide())},expandAll:function(){var t=this;t.el.find(t.options.itemNodeName).each((function(){t.expandItem(e(this))}))},collapseAll:function(){var t=this;t.el.find(t.options.itemNodeName).each((function(){t.collapseItem(e(this))}))},setParent:function(t){t.children(this.options.listNodeName).length&&(t.prepend(e(this.options.expandBtnHTML)),t.prepend(e(this.options.collapseBtnHTML))),t.children('[data-action="expand"]').hide()},unsetParent:function(e){e.removeClass(this.options.collapsedClass),e.children("[data-action]").remove(),e.children(this.options.listNodeName).remove()},dragStart:function(t){var o=this.mouse,a=e(t.target),r=a.closest(this.options.itemNodeName);this.placeEl.css("height",r.height()),o.offsetX=t.offsetX!==i?t.offsetX:t.pageX-a.offset().left,o.offsetY=t.offsetY!==i?t.offsetY:t.pageY-a.offset().top,o.startX=o.lastX=t.pageX,o.startY=o.lastY=t.pageY,this.dragRootEl=this.el,this.dragEl=e(n.createElement(this.options.listNodeName)).addClass(this.options.listClass+" "+this.options.dragClass),this.dragEl.css("width",r.width()),r.after(this.placeEl),r[0].parentNode.removeChild(r[0]),r.appendTo(this.dragEl),e(n.body).append(this.dragEl),this.dragEl.css({left:t.pageX-o.offsetX,top:t.pageY-o.offsetY});var s,l,c=this.dragEl.find(this.options.itemNodeName);for(s=0;sthis.dragDepth&&(this.dragDepth=l)},dragStop:function(e){var t=this.dragEl.children(this.options.itemNodeName).first();t[0].parentNode.removeChild(t[0]),this.placeEl.replaceWith(t),this.dragEl.remove(),this.el.trigger("change"),this.hasNewRoot&&this.dragRootEl.trigger("change"),this.reset()},dragMove:function(i){var o,r,s,l=this.options,c=this.mouse;this.dragEl.css({left:i.pageX-c.offsetX,top:i.pageY-c.offsetY}),c.lastX=c.nowX,c.lastY=c.nowY,c.nowX=i.pageX,c.nowY=i.pageY,c.distX=c.nowX-c.lastX,c.distY=c.nowY-c.lastY,c.lastDirX=c.dirX,c.lastDirY=c.dirY,c.dirX=0===c.distX?0:c.distX>0?1:-1,c.dirY=0===c.distY?0:c.distY>0?1:-1;var d=Math.abs(c.distX)>Math.abs(c.distY)?1:0;if(!c.moving)return c.dirAx=d,void(c.moving=!0);c.dirAx!==d?(c.distAxX=0,c.distAxY=0):(c.distAxX+=Math.abs(c.distX),0!==c.dirX&&c.dirX!==c.lastDirX&&(c.distAxX=0),c.distAxY+=Math.abs(c.distY),0!==c.dirY&&c.dirY!==c.lastDirY&&(c.distAxY=0)),c.dirAx=d,c.dirAx&&c.distAxX>=l.threshold&&(c.distAxX=0,s=this.placeEl.prev(l.itemNodeName),c.distX>0&&s.length&&!s.hasClass(l.collapsedClass)&&(o=s.find(l.listNodeName).last(),this.placeEl.parents(l.listNodeName).length+this.dragDepth<=l.maxDepth&&(o.length?(o=s.children(l.listNodeName).last()).append(this.placeEl):((o=e("<"+l.listNodeName+"/>").addClass(l.listClass)).append(this.placeEl),s.append(o),this.setParent(s)))),c.distX<0&&(this.placeEl.next(l.itemNodeName).length||(r=this.placeEl.parent(),this.placeEl.closest(l.itemNodeName).after(this.placeEl),r.children().length||this.unsetParent(r.parent()))));var u=!1;if(a||(this.dragEl[0].style.visibility="hidden"),this.pointEl=e(n.elementFromPoint(i.pageX-n.body.scrollLeft,i.pageY-(t.pageYOffset||n.documentElement.scrollTop))),a||(this.dragEl[0].style.visibility="visible"),this.pointEl.hasClass(l.handleClass)&&(this.pointEl=this.pointEl.parent(l.itemNodeName)),this.pointEl.hasClass(l.emptyClass))u=!0;else if(!this.pointEl.length||!this.pointEl.hasClass(l.itemClass))return;var h=this.pointEl.closest("."+l.rootClass),f=this.dragRootEl.data("nestable-id")!==h.data("nestable-id");if(!c.dirAx||f||u){if(f&&l.group!==h.data("nestable-group"))return;if(this.dragDepth-1+this.pointEl.parents(l.listNodeName).length>l.maxDepth)return;var p=i.pageY'),f&&(this.dragRootEl=h,this.hasNewRoot=this.el[0]!==this.dragRootEl[0])}}},e.fn.nestable=function(t){var n=this;return this.each((function(){var i=e(this).data("nestable");i?"string"==typeof t&&"function"==typeof i[t]&&(n=i[t]()):(e(this).data("nestable",new s(this,t)),e(this).data("nestable-id",(new Date).getTime()))})),n||this}}(window.jQuery||window.Zepto,window,document),function(e){"use strict";var t="Vendor Jaralax";e.SOW.vendor.jarallax={init:function(n,i){var o=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);if(this.selector=o[0],this.collection=o[1],this.selector_orig=o[2],this.config=null!==a?e.extend({},this.config,a):this.config,""!=n&&jQuery(this.selector).length<1)return null;if("function"!=typeof jarallax){var r=e.SOW.helper.vendorLogicPaths("jarallax");return""==r.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([r.path_js],!1,!0).done((function(){return"function"!=typeof jarallax?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.jarallax.init(n,i),null)})),null)}return e.SOW.vendor.jarallax.destroy(this.selector),jarallax(document.querySelectorAll(this.selector)),e.SOW.helper.consoleLog("Init : "+t),e(this.selector)},destroy:function(e){jarallax(document.querySelectorAll(e),"destroy")}}}(jQuery),function(e){"use strict";var t="Vendor Sticky Kit";e.SOW.vendor.sticky_kit={config:{},collection:e(),init:function(n,i){var o=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);if(this.selector=o[0],this.collection=o[1],this.selector_orig=o[2],this.config=null!==a?e.extend({},this.config,a):this.config,""!=n&&jQuery(this.selector).length<1)return null;if(!jQuery().stick_in_parent){var r=e.SOW.helper.vendorLogicPaths("sticky_kit");return""==r.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([r.path_js],!1,!0).done((function(){return jQuery().stick_in_parent?(e.SOW.vendor.sticky_kit.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}return e.SOW.helper.consoleLog("Init : "+t),jQuery(window).resize((function(){setTimeout((function(){!0===e.SOW.globals.is_mobile?jQuery(this.selector).each((function(){e(this).removeClass("js-stickified").trigger("sticky_kit:detach")})):e.SOW.vendor.sticky_kit.process(this.selector)}),450)})),e.SOW.vendor.sticky_kit.process(this.selector),e(this.selector)},process:function(t){!0!==e.SOW.globals.is_mobile&&jQuery(t).not(".js-stickified").addClass("js-stickified").each((function(){var t=jQuery(this),n=t.data("sticky-kit-offset")||0;n<1&&(n=15,(e.SOW.globals.elBody.hasClass("header-sticky")||e.SOW.globals.elBody.hasClass("header-scroll-reveal")||e.SOW.globals.elBody.hasClass("header-over"))&&(n=(e.SOW.globals.elHeader.outerHeight()||0)+n)),t.stick_in_parent({offset_top:Number(n)})}))}}}(jQuery),function(e){"use strict";var t="Vendor Sortable";e.SOW.vendor.sortable={config:{dataIdAttr:"data-id",handle:".sortable-handle",animation:150,ghostClass:"bg-primary-soft",chosenClass:"bg-white-alt",swapClass:"bg-warning-soft",filter:".js-ignore",headers:"",crossDomain:""},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("function"!=typeof Sortable){var o=e.SOW.helper.vendorLogicPaths("sortable");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"function"!=typeof Sortable?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.sortable.init(n,i),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.sortable.process(e(this))})):(e.SOW.vendor.sortable.process(e(".sortable")),e(".sortable"))},process:function(t){if(!t.hasClass("js-sortablified")){var n=t.attr("id")||"",i=t.data("shared-group")||"",o=t.data("pull-mode")||"",a=t.data("put-denied")||"false",r=t.data("sortable-type")||"",s=t.data("sort-disable")||"false",l=t.data("sort-swap")||"false",c=t.data("swap-treshold")||"",d=jQuery(e.SOW.vendor.sortable.config.handle,t).length||0;if(t.addClass("js-sortablified"),""==n){n="strand_"+e.SOW.helper.randomStr(3);t.attr("id",n)}var u={dataIdAttr:e.SOW.vendor.sortable.config.dataIdAttr||"data-id",handle:d>0?e.SOW.vendor.sortable.config.handle:null,animation:e.SOW.vendor.sortable.config.animation,ghostClass:e.SOW.vendor.sortable.config.ghostClass,chosenClass:e.SOW.vendor.sortable.config.chosenClass,swapClass:e.SOW.vendor.sortable.config.swapClass,filter:e.SOW.vendor.sortable.config.filter,onUpdate:function(n){var i=f.toArray();e.SOW.vendor.sortable.sortable__update_order(t,i)}};""!=i&&(""==o?u.group=i:""!=o&&(u.group={name:i,pull:o,put:a+""!="true"})),s+""=="true"&&(u.sort=!1),""!=c&&(u.swapThreshold=swapThreshold),"nested"==r.toLowerCase()&&(u.group="nested",u.fallbackOnBody=!0,u.swapThreshold=.65),l+""=="true"&&(u.swap=!0);var h=document.getElementById(n),f=new Sortable(h,u)}},sortable__update_order:function(t,n){var i=t.data("ajax-update-params")||"",o=t.data("ajax-update-url")||"",a=t.data("ajax-update-identifier")||"",r=t.data("update-toast-success")||"Order Saved!",s=t.data("update-toast-position")||"bottom-center";if(""!=o){var l=new FormData;if(l.append("action","reorder"),l.append("ajax","true"),l.append("identifier",a),""!=i)for(var c=e.SOW.helper.params_parse(i),d=0;d1.5&&(t.width=t.width/n,t.height=t.height/n)},loop:e.SOW.vendor.fancybox.config.loop,infobar:e.SOW.vendor.fancybox.config.infobar,buttons:["close"],protect:e.SOW.vendor.fancybox.config.protect,image:{preload:!1},hash:!1,animationEffect:"zoom",animationDuration:366,transitionEffect:e.SOW.vendor.fancybox.config.transitionEffect,transitionDuration:e.SOW.vendor.fancybox.config.transitionDuration,spinnerTpl:'
',btnTpl:{download:'',zoom:'',close:'',arrowLeft:'',arrowRight:'',smallBtn:''},smallBtn:!1}),e.SOW.helper.consoleLog("Init : "+t),null}}}(jQuery),function(e){"use strict";var t="Vendor Cocoen (Image Comparision)";window.cocoenInit=!1,e.SOW.vendor.cocoen={config:{},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("function"!=typeof Cocoen){var o=e.SOW.helper.vendorLogicPaths("cocoen");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"function"!=typeof Cocoen?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.cocoen.init(n,i),null)})),null)}return jQuery(n).each((function(){var t=jQuery(this);if(!t.hasClass("js-cocoened")){t.addClass("js-cocoened");var n="rand_"+e.SOW.helper.randomStr(3,"L");t.addClass(n),new Cocoen(document.querySelector("."+n))}})),e.SOW.helper.consoleLog("Init : "+t),null}}}(jQuery),function(e){"use strict";var t="Vendor Photoswipe";e.SOW.vendor.photoswipe={config:{defaults:{galleryOpen:function(e){},showHideOpacity:!1,history:!1,captionEl:!1,shareEl:!1,tapToClose:!1,tapToToggleControls:!1,escKey:!0,barsSize:{top:0,bottom:0}}},init:function(n,i){var o=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);if(this.selector=o[0],this.collection=o[1],this.config=null!==a?e.extend({},this.config,a):this.config,""!=n&&jQuery(this.selector).length<1)return null;if("function"!=typeof PhotoSwipe){var r=e.SOW.helper.vendorLogicPaths("photoswipe");return""==r.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([r.path_js],!1,!0).done((function(){return"function"!=typeof PhotoSwipe?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.photoswipe.init(n,i),null)})),null)}return e.SOW.vendor.photoswipe.photoswipe_tpl(),e.SOW.helper.consoleLog("Init : "+t),e.SOW.vendor.photoswipe.process(this.selector)},process:function(t){var n=jQuery(".pswp[role='dialog']")[0],i={},o="abcdefghijklmnopqrstuvwxyz".split(""),a=[],r=[];e(t).not(".js-photoswapified").addClass("js-photoswapified").each((function(){var t=e(this),n=t.attr("href"),a=t.attr("title"),s=t.data("photoswipe"),l=s?s.replace(/[a-z]/gi,(function(e){return o.indexOf(e.toLowerCase())+1})):e.SOW.helper.randomStr(3,"N");n&&(t.attr("data-group-id",l),s&&(void 0===r[l]&&(r[l]=0),t.attr("data-index",r[l]++)),void 0===i[l]&&(i[l]=[]),i[l].push({src:n,title:a,w:0,h:0}))})),e(t).off().on("click",(function(t){t.preventDefault();var o=e(this),r=o.attr("href")||"",s=o.data("group-id")||0,l=o.data("index")||0,c=o.attr("data-history")||"false",d=o.attr("data-shareEl")||"false",u=o.attr("data-captionEl")||"false",h=o.attr("data-tapToClose")||"false",f=o.attr("data-tapToToggleControls")||"false",p=o.attr("data-showHideOpacity")||"true",m=o.attr("data-mainClass")||"",g=!1;if((r.match(/(youtube.com)/)||r.match(/(youtu.be)/)||r.match(/(vimeo.com)/)||r.match(/(.mp4)/)||r.match(/(.ogv)/))&&(g=!0),!0===g)return"object"==typeof e.SOW.core.ajax_modal&&(o.off().removeClass("photoswipe js-photoswapified").addClass("js-onload").attr("data-ajax-modal-delay","0").attr("data-ajax-modal-type","video").attr("data-ajax-modal-size","modal-xl").attr("data-ajax-modal-centered","true"),e.SOW.core.ajax_modal.attach(o)),!1;var v=e.SOW.vendor.photoswipe.config.defaults;function y(e,t){if(0==t.w&&0==t.h){var n=new Image;n.onload=function(){t.w=this.width,t.h=this.height,t.needsUpdate=!0,a[s].updateSize(!0)},n.src=t.src}}v.mainClass=m,v.index=l,""!=p&&(v.showHideOpacity=p+""=="true"),""!=c&&(v.history=c+""=="true"),""!=u&&(v.captionEl=u+""=="true"),""!=d&&(v.shareEl=d+""=="true"),""!=h&&(v.tapToClose=h+""=="true"),""!=f&&(v.tapToToggleControls=f+""=="true"),"object"==typeof barsSize&&(v.barsSize=barsSize),a[s]=new PhotoSwipe(n,PhotoSwipeUI_Default,i[s],v),a[s].init(),a[s].listen("initialZoomInEnd",(function(){v.galleryOpen(a[s])})),a[s].listen("imageLoadComplete",(function(e,t){y(e,t)})),a[s].listen("gettingData",(function(e,t){y(e,t)})),a[s].listen("resize",(function(e,t){})),e.SOW.vendor.photoswipe.photoswipe_style(o)}))},photoswipe_style:function(e){var t="bg-secondary text-white";if(e.hasClass("photoswipe-secondary"))t="bg-secondary text-white";else if(e.hasClass("photoswipe-dark"))t="bg-dark text-white";else if(e.hasClass("photoswipe-white"))t="bg-white text-dark";else if(e.hasClass("photoswipe-dark"))t="bg-dark text-white";else if(e.hasClass("photoswipe-primary"))t="bg-primary text-white";else if(e.hasClass("photoswipe-success"))t="bg-success text-white";else if(e.hasClass("photoswipe-danger"))t="bg-danger text-white";else if(e.hasClass("photoswipe-warning"))t="bg-warning text-white";else if(e.hasClass("photoswipe-info"))t="bg-info text-white";else if(e.hasClass("photoswipe-pink"))t="bg-pink text-white";else if(e.hasClass("photoswipe-purple"))t="bg-purple text-white";else if(e.hasClass("photoswipe-indigo"))t="bg-indigo text-white";jQuery(".pswp__button--custom").removeClass("bg-white bg-dark bg-primary bg-secondary bg-success bg-danger bg-warning bg-info bg-pink bg-purple bg-indigo text-dark text-white"),jQuery(".pswp__button--custom").addClass(t)},photoswipe_tpl:function(){var t='\x3c!-- Root element of PhotoSwipe. Must have class pswp. --\x3e';e.SOW.globals.elBody.append(t)}}}(jQuery),function(e){"use strict";var t="Vendor Swiper";window.swiperInst=[],e.SOW.vendor.swiper={config:{init:!0,direction:"horizontal",spaceBetween:15,slidesPerView:1,slidesPerGroup:1,slidesPerColumn:1,centeredSlides:!1,effect:"slide",grabCursor:!1,freeMode:!1,loop:!1,autoHeight:!1,mousewheel:!1,speed:600,parallax:!0,lazy:!1,zoom:!1,keyboard:{enabled:!0},autoplay:{delay:4500,disableOnInteraction:!1},coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},pagination:{el:".swiper-pagination",type:"bullets",dynamicBullets:!0,clickable:!0},scrollbar:{el:".swiper-scrollbar",hide:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("function"!=typeof Swiper){var o=e.SOW.helper.vendorLogicPaths("swiper");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"function"!=typeof Swiper?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.swiper.init(n,i),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,"rtl"==e.SOW.globals.direction&&jQuery(this.selector).attr("dir","rtl"),e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.swiper.process(e(this))})):(e.SOW.vendor.swiper.process(e(".swiper-container")),e(".swiper-container"))},process:function(t){if(!t.hasClass("js-swiperified")){var n=t.attr("id")||"",i=t.data("swiper")||"",o=t.data("swiper-link")||"",a=e.SOW.vendor.swiper.config;"object"==typeof i&&("object"==typeof i.pagination&&(i.pagination=e.extend({},a.pagination,i.pagination)),"bullets"!=a.pagination&&(a.pagination.dynamicBullets=!1),e.extend(a,i)),""==n&&(n="rand_"+e.SOW.helper.randomStr(3),t.attr("id",n)),jQuery(".swiper-button-next","#"+n).addClass("swiper-button-next-"+n),jQuery(".swiper-button-prev","#"+n).addClass("swiper-button-prev-"+n),jQuery(".swiper-pagination","#"+n).addClass("swiper-pagination-"+n),a.navigation.nextEl=".swiper-button-next-"+n,a.navigation.prevEl=".swiper-button-prev-"+n,a.pagination.el=".swiper-pagination-"+n,a.slidesPerView>"1"&&(a.effect="slide"),!jQuery("#"+n).hasClass(".js-ignore")&&jQuery(".swiper-slide","#"+n).length<2&&(a.pagination={},a.navigation={},a.loop=!1,jQuery(".swiper-button-next","#"+n).remove(),jQuery(".swiper-button-prev","#"+n).remove(),jQuery(".swiper-pagination","#"+n).remove()),""!=o&&("object"!=typeof a.thumbs&&(a.thumbs={}),a.thumbs.swiper=window.swiperInst[o]),jQuery(".swiper-wrapper","#"+n).removeClass("no-gutters gutters-xs gutters-sm gutters-md gutters-xs row"),jQuery(".swiper-slide","#"+n).removeClass("hide hide-force col col-3 col-4 col-6 col-md-3 col-md-4 col-md-6 col-lg-3 col-lg-4 col-lg-6 col-xl-3 col-xl-4 col-xl-6 col-5th col-md-5th col-lg-5th col-xl-5th"),window.swiperInst[n]=new Swiper("#"+n,a),t.addClass("js-swiperified"),""!=o&&setTimeout((function(){window.swiperInst[o].update(),window.swiperInst[n].update()}),700)}}}}(jQuery),function(e){"use strict";var t="Vendor Leaflet [Map]";e.SOW.vendor.leaflet={maps:[],init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("undefined"==typeof L){var o=e.SOW.helper.vendorLogicPaths("leaflet");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"undefined"==typeof L?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.leaflet.init(n,i),null)})),null)}var a=e.SOW.helper.__selector(n);return this.selector=a[0]||".map-leaflet",jQuery(this.selector).each((function(){e.SOW.vendor.leaflet.map_openstreet(e(this))})),e.SOW.helper.consoleLog("Init : "+t),e(this.selector)},map_openstreet:function(t){if(!t.hasClass("js-leafletified")){var n=t.attr("id")||"",i=t.data("map-json")||"",o=t.data("map-tile")||"",a=t.data("map-tile-custom")||"",r=t.data("map-zoom")||9,s=[];if(t.addClass("js-leafletified"),"object"==typeof i){if(""==n){n="map_"+e.SOW.helper.randomStr(3);t.attr("id",n)}var l=L.icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAMAAAD3TXL8AAAB5lBMVEVHcEwtbZk5hLcubZgubZkyeak4fq8zbaEwcqEtcqQubZsvbpoyaZYua5cubJcubJcubJgtbZk+h7ovbp01eqwtbJovbpo3gbc0d6gydKZHjsEubJk2gLIwb58tbJk2frQua5dIkcREjL43g7RGkMIvb5wubJctbJktbJkzd6o0eKc/hrU4grgzd6gxdKMzdqcxdKQ1dqY2frA2frA4gbQ4gbU2frA3gbQ3grc2fbA2fbA1e6s9grQ1fKw+hbw5g7g5g7c2g7YwdJ88grX///8uhctHmNEhesk/ks8rgssshMtElc8ogMoxh8wpgcpFl9A2jM0whswlfsoeeMkmf8o2ic4jfMpClM9Bk88ziM05jc5Dk9E0isxJltJZotU6js5AkNBEjMBKmNIzhM1Un9U8kc47f687i89XoNROm9Madcj8/f5JmdE2gb5SntM/isVQmcxLlc8rgMwwerdLlMpDjMQ5eKU3dqNCib0+jtAwcZ5cpNROlspQndNHldJfptdHkctHi7tChbNFlNGPtc5ek7igwNZDh7i2zt7e6fE8h8Q6hcJWntEvg8wyfbtTnM8xhM44i81Lm9E4grZKkcVJgqo1e6zB1eJunb2FrcnR3+qrxdeBrMqXudFQirRYoNAwgMg+hbuAcFJ8AAAARHRSTlMA7/hT+BP2AfYIzEsNh2Zyeen09/YY/i729v/0+PbkHlv6+Cf5g0Ld1jxx9oyvwOfx9EfwzNJRgni0vlv6Zf7o5EKA+QUIjyQAAAJISURBVBgZdcCFQuIAGADgnxxht2d313XnHHjKOeWmbpONGp1hBnZnXFe86W1MDjA+SFGUvipVwBUNnS/PpQXS8xedpZAOeShtDDHLy8sLx3XSBwgkITV3Cw4Y+9KZ72zJzvwuuNcAF25XNi4EsKTAQl3lfUhQ3AkxvuEUHxNS1oDgUb1rUIQNilz1j4H3ROnCxnk+O+Ni7L5xHuZSPgNQFy26J3jug1XHJ8fq8dIEz71YpIY2pV3Ps4YcP3a9uxuORaueZ1e2QXuHm+O4icDaFirYcQTGOY5zd7RDlwXjOG74wy8vmrB5C+M4DrN0QU+MZlnWNPsVFf3ctrIsS8d6oDempyjKtL2BirbWrBRF6WO90G2hcRynLZuo6MvsOo7jtKUbmp7GcRxnw9OfUcG3mTCH43j8zWvQ9lknebRl5rsX9e5Mz65P8qx9WiguCZ+SJEnEp6bnP87PTJkIkiRPwyXFAJq/ZoNgzrQytWIyGwTm5xoAkKnihpEEwkkYRgSGuEoGAGpJkOrPRAXzEeBlF9FvM/TTZbkgKJYHiYF0RFCugITsMvO7NAPm8mwQKeR75FAKsVeRBReayueG3icNzanyICmrYt82mkTuS7LgvzyVc3RMNOpU5UKKWuI/0Ylsfoka0uSqnGM6wZhTlQPp1Pn+Q6Pg0J+vhgw5VYTOaDTqiKocyIRUH0U8Hk/kqBqBS2oLbUaP0VZYC5chLdGIJxJtQeAKWaFNZ5PL4CqkNXoSbYXraOV/5Fq4lmZeA9drLmmGG+RBmn9TM85gFMKHmQAAAABJRU5ErkJggg==",shadowUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",iconSize:[25,41],shadowSize:[41,41],iconAnchor:[10,40],shadowAnchor:[10,39],popupAnchor:[3,-26]});switch(o){case"gray":var c="https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}";break;case"carto":c="https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png";break;case"voyager":c="https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png";break;case"hot":c="https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png";break;default:c="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}if(""!=a)c=a;var d=new L.TileLayer(c,{minZoom:3,maxZoom:18,attribution:'© OpenStreetMap contributors'}),u=[],h=e.SOW.helper.randomStr(3,"L");s[n]=new L.Map(n),s[n].addLayer(d),s[n].attributionControl.setPrefix('Leaflet');for(var f=0;f"+g+"
")).openPopup()}e.SOW.vendor.leaflet.maps[n]=s[n]}else"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","","Map Error: Invalid Json!","top-center",0,!0):alert("[404] Unexpected internal error!")}}}}(jQuery),function(e){"use strict";e.SOW.vendor.aos={config:{duration:700,easing:"ease-in-out-sine",once:!0},init:function(t,n){if("undefined"==typeof AOS){var i=e.SOW.helper.vendorLogicPaths("aos");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor AOS"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return"undefined"==typeof AOS?(e.SOW.helper.consoleLog("Vendor Missing : Vendor AOS"),null):(e.SOW.vendor.aos.init(t,n),null)})),null)}var o=e.SOW.helper.check_var(n);this.config=null!==o?e.extend({},this.config,o):this.config,AOS.init(e.SOW.vendor.aos.config),window.MutationObserver||AOS.refreshHard()}}}(jQuery),function(e){"use strict";var t="Vendor Slimscroll";e.SOW.vendor.slimscroll={config:{height:"100%",color:"#444",size:"3px",railColor:"#ccc",railOpacity:.5,alwaysVisible:!1,railVisible:!0,position:"ltr"==e.SOW.globals.direction?"right":"left",distance:"0",wheelStep:10,allowPageScroll:!1,disableFadeOut:!1},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().slimScroll){var o=e.SOW.helper.vendorLogicPaths("slimscroll");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().slimScroll?(e.SOW.vendor.slimscroll.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}if(!0!==e.SOW.globals.is_mobile){var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.config=null!==r?e.extend({},this.config,r):this.config,e(this.selector).slimScroll({height:this.config.height,color:this.config.color,size:this.config.size,railColor:this.config.railColor,railOpacity:this.config.railOpacity,alwaysVisible:this.config.alwaysVisible,railVisible:this.config.railVisible,position:this.config.position,distance:this.config.distance,wheelStep:this.config.wheelStep,allowPageScroll:this.config.allowPageScroll,disableFadeOut:this.config.disableFadeOut}),e.SOW.helper.consoleLog("Init : "+t),e(this.selector)}e.SOW.helper.consoleLog("Mobile disabled : "+t)},destroy:function(t){e(t).slimScroll({destroy:!0})}}}(jQuery),function(e){"use strict";var t="Vendor Nestable";window.nestableLastUpdate={},e.SOW.vendor.nestable={config:{group:0,maxDepth:6,listNodeName:"ol",itemNodeName:"li",rootClass:"dd",listClass:"dd-list",itemClass:"dd-item",dragClass:"dd-dragel",handleClass:"dd-handle",collapsedClass:"dd-collapsed",placeClass:"dd-placeholder",noDragClass:"dd-nodrag",emptyClass:"dd-empty",expandBtnHTML:'',collapseBtnHTML:'',maxDepth:5,threshold:0,headers:"",crossDomain:"",method:"POST",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().nestable){var o=e.SOW.helper.vendorLogicPaths("nestable");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().nestable?(e.SOW.vendor.nestable.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,window.nestableLastUpdate={},e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.nestable.process(e(this))})):(e.SOW.vendor.nestable.process(e(".nestable")),e(".nestable"))},process:function(t){if(!t.hasClass("js-nestablified")){var n=t.attr("id")||"",i=(t.data("nestable-delete-with-childs"),t.data("nestable-max-depth")||6),o=e.SOW.helper.randomStr(3,"N"),a=t.data("nestable-group")||o,r=e.SOW.vendor.nestable.config;t.addClass("js-nestablified"),r.group=a,r.maxDepth=Number(i)||6,""==n&&(n="rand_"+o,t.attr("id",n)),e("#"+n).nestable(r).on("change",(function(i){var o=window.JSON.stringify(t.nestable("serialize"));jQuery("textarea",t).val(o),window.nestableLastUpdate[n]!=o&&e.SOW.vendor.nestable.updateOrder(t,i),window.nestableLastUpdate[n]=o}));var s=window.JSON.stringify(t.nestable("serialize"));jQuery("textarea",t).val(s),window.nestableLastUpdate[n]=s,e.SOW.vendor.nestable.removeItem(t)}},updateOrder:function(t,n){var i=t.data("ajax-update-params")||"",o=t.data("ajax-update-url")||"",a=t.data("ajax-update-method")||e.SOW.vendor.nestable.config.method,r=t.data("update-toast-success")||"Order Saved!",s=t.data("update-toast-position")||"bottom-center",l=e.SOW.vendor.nestable.config.data_params;if(""!=o){var c=n.length?n:e(n.target),d=window.JSON.stringify(c.nestable("serialize")),u=JSON.parse(d);if(""!=i)for(var h=e.SOW.helper.params_parse(i),f=0;f
')},error:function(n,i,o){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!",s,0,!0):alert("[404] Unexpected internal error!"),jQuery(".nestableOverlayLoading",t).remove()},success:function(n){e.SOW.helper.consoleLog(n),jQuery(".nestableOverlayLoading",t).remove(),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",r,s,1500,!0),e.SOW.vendor.nestable.removeItem(t)}})}},removeItem:function(t){var n=t.data("update-delete-with-childs")||"false",i=t.data("update-delete-with-childs-error")||"Move or delete childs first!",o=t.data("update-toast-position")||"bottom-center",a=t.data("update-delete-params")||"",r=t.data("ajax-update-method")||e.SOW.vendor.nestable.config.method,s=t.data("ajax-update-url")||"",l=t.data("update-delete-confirm-first")||"false",c="object"==typeof e.SOW.core.ajax_confirm?e.SOW.core.ajax_confirm.__selector():"",d=c.replace(".",""),u=e.SOW.vendor.nestable.config.data_params,h=t.data("ajax-confirm-size")||"",f=t.data("ajax-confirm-centered")||"",p=t.data("ajax-confirm-callback-function")||"",m=t.data("ajax-confirm-type")||"",g=t.data("ajax-confirm-mode")||"",v=t.data("ajax-confirm-method")||"",y=t.data("ajax-confirm-title")||"",b=t.data("ajax-confirm-body")||"",w=t.data("ajax-confirm-btn-yes-text")||"",_=t.data("ajax-confirm-btn-yes-class")||"",S=t.data("ajax-confirm-btn-yes-icon")||"",x=t.data("ajax-confirm-btn-no-text")||"",O=t.data("ajax-confirm-btn-no-class")||"",k=t.data("ajax-confirm-btn-no-icon")||"";jQuery("a.nestable-del",t).off().on("click",(function(E){E.preventDefault();var C=jQuery(this),T=C.closest("li"),j=T.attr("data-id"),D=C.attr("href")||"#",W=C.data("href")||"",I=C.data("href2")||"",A=[];if("#"==D&&""==D&&"javascript:;"==D&&(C.attr("href","#"),C.attr("data-href2",D)),""!=W){D=W;C.removeAttr("data-href"),C.attr("data-href2",D)}if(""!=I)D=I;if("#"==D||""==D||"javascript:;"==D){var M=D;D=s}if(n+""=="false"&&jQuery("ol.dd-list",T).length>0)return"object"==typeof e.SOW.core.toast?(e.SOW.core.toast.destroy(),e.SOW.core.toast.show("danger","",i,o,4e3,!0)):alert(i),void C.removeClass("js-ajax-modal js-modalified");if(C.hasClass("nestable-ajax-modal"))"object"==typeof e.SOW.core.ajax_modal?e.SOW.core.ajax_modal.attach(C,0):alert("[SOW : Ajax Modal] plugin not found!");else if("object"==typeof e.SOW.core.ajax_confirm){if(l+""=="true"&&!C.hasClass(d)&&!C.hasClass("js-confirmed"))return C.attr("data-ajax-confirm-size",h),C.attr("data-ajax-confirm-centered",f),C.attr("data-ajax-confirm-callback-function",p),C.attr("data-ajax-confirm-type",m),C.attr("data-ajax-confirm-mode",g),C.attr("data-ajax-confirm-method",v),C.attr("data-ajax-confirm-title",y),C.attr("data-ajax-confirm-body",b),C.attr("data-ajax-confirm-btn-yes-text",w),C.attr("data-ajax-confirm-btn-yes-class",_),C.attr("data-ajax-confirm-btn-yes-icon",S),C.attr("data-ajax-confirm-btn-no-text",x),C.attr("data-ajax-confirm-btn-no-class",O),C.attr("data-ajax-confirm-btn-no-icon",k),C.addClass(d+" js-nestable-confirmation-pending"),e.SOW.core.ajax_confirm.init(c),e.SOW.core.ajax_confirm.ajax_confirm(C),C.trigger("click"),void setTimeout((function(){C.removeClass(d),jQuery("#sow_ajax_confirm .btn-confirm-yes").not("js-nestablified").addClass("js-nestablified").on("click",(function(e){e.preventDefault(),C.addClass("js-confirmed"),C.removeClass("js-nestable-confirmation-pending"),C.removeClass(d),C.trigger("click")}))}),100)}else{if(!1===confirm(b))return;C.addClass("js-confirmed")}if(!C.hasClass("js-nestable-confirmation-pending")&&(l+""!="true"||C.hasClass("js-confirmed"))){if(""!=a)for(var N=e.SOW.helper.params_parse(a),L=0;L')},error:function(n,i,o){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),jQuery(".nestableOverlayLoading",t).remove()},success:function(n){e.SOW.helper.consoleLog(n),jQuery(".nestableOverlayLoading",t).remove(),T.addClass("bg-danger-soft transition-all-ease-150"),setTimeout((function(){var e=C.closest("ol.dd-list"),t=e.closest("li.dd-item");T.fadeOut(150,(function(){T.remove(),jQuery(".dd-item",e).length<1&&(jQuery("button",t).remove(),e.remove())}))}),150),"#"!=M&&""!=M&&"javascript:;"!=M||e.SOW.helper.consoleLog('[Nestable Delete Item] : [ajax-update-method] used to POST data because href="'+D+'"')}})}}))}}}(jQuery),function(e){"use strict";var t="Vendor FullCalendar";window.fullCalendarInstance={},e.SOW.vendor.fullcalendar={config:{plugins:["interaction","dayGrid","timeGrid","list","bootstrap","googleCalendar"],kickBsPlugin:function(e){e=e||"primary";"object"==typeof FullCalendarBootstrap&&(FullCalendarBootstrap.BootstrapTheme.prototype.baseIconClass="m-0 fi",FullCalendarBootstrap.BootstrapTheme.prototype.iconOverrideOption="smartyAwesopme",FullCalendarBootstrap.BootstrapTheme.prototype.iconOverrideCustomButtonOption="smartyAwesopme",FullCalendarBootstrap.BootstrapTheme.prototype.iconOverridePrefix="fi-",FullCalendarBootstrap.BootstrapTheme.prototype.iconClasses={close:"fi-close",prev:"fi-arrow-left",next:"fi-arrow-right",prevYear:"fi-arrow-left",nextYear:"fi-arrow-right"},FullCalendarBootstrap.BootstrapTheme.prototype.classes.popover="card card-"+e,FullCalendarBootstrap.BootstrapTheme.prototype.classes.button="btn btn-"+e+" btn-sm",FullCalendarBootstrap.BootstrapTheme.prototype.classes.listView="card card-"+e)},headers:"",crossDomain:"",method:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("object"!=typeof FullCalendar){var o=e.SOW.helper.vendorLogicPaths("fullcalendar");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"object"!=typeof FullCalendar?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.fullcalendar.init(n,i),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,jQuery(this.selector).length<1?null:("object"==typeof FullCalendarBootstrap&&e.SOW.vendor.fullcalendar.config.kickBsPlugin("primary"),e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.fullcalendar.process(e(this))})):(e.SOW.vendor.fullcalendar.process(e(".fullcalendar")),e(".fullcalendar")))},process:function(t){var n=t.attr("id")||"",i=t.data("fullcalendar-plugins")||"",o=t.data("fullcalendar-default-view")||"dayGridMonth",a=t.data("fullcalendar-modal-size")||"modal-lg",r=t.attr("data-fullcalendar-event-create-modal")||!0,s=t.data("fullcalendar-modal-event-create")||"",l=t.attr("data-fullcalendar-event-edit-modal")||!0,c=t.data("fullcalendar-modal-event-edit")||"",d=t.data("fullcalendar-date-click")||"",u=t.data("fullcalendar-modal-date-click-modal")||"",h=t.data("fullcalendar-custom")||"",f=t.data("fullcalendar-extend")||"",p=t.data("fullcalendar-source-json-url")||"",m=t.data("fullcalendar-source-json-inline")||"",g=t.data("fullcalendar-source-object")||"",v=t.data("fullcalendar-lang-btn")||"",y=t.data("fullcalendar-header")||"",b=t.attr("data-fullcalendar-editable")||!1,w=t.data("fullcalendar-time-format")||"",_=t.data("fullcalendar-default-date")||"now",S=t.data("fullcalendar-timezone")||"local",x=t.data("fullcalendar-google-apikey")||"";t.data("fullcalendar-google-event-sources");""==n&&(n="rand_"+e.SOW.helper.randomStr(3,"N"),t.attr("id",n)),"object"!=typeof p&&(p=!1),"object"!=typeof m&&(m=null),"object"==typeof window[g]&&(m=window[g]);b=b+""=="true";if("object"!=typeof v)v={today:"today",month:"month",week:"week",day:"day",list:"list"};if("object"!=typeof y)y={left:"prev,next, today, customAddEventButton",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"};if("object"!=typeof w)w={hour:"numeric",minute:"2-digit",meridiem:"short"};_="today"==_||"now"==_?new Date:new Date(_);var O={plugins:"object"==typeof i?i:e.SOW.vendor.fullcalendar.config.plugins,editable:b,eventLimit:!0,locale:"en",themeSystem:"bootstrap",defaultView:o||"dayGridMonth",defaultDate:_,dir:e.SOW.globals.direction,timeZone:S,eventTimeFormat:w,buttonText:v,header:y,customButtons:{customAddEventButton:{text:"+",click:function(t){!0===b&&(r+""=="true"?""!=s&&"object"==typeof e.SOW.core.ajax_modal&&(e.SOW.helper.consoleLog(s,"color:#cccccc"),e.SOW.core.ajax_modal.createFromThinAir(s,a,"true","static",(function(){setTimeout((function(){if(""==(t=jQuery("#event_id").attr("id")||"")){var t=(new Date).getTime();jQuery("#event_id").attr("id",t)}jQuery(".btn-fullcalendar-add").on("click",(function(i){e.SOW.vendor.fullcalendar.eventCreate(n,t)}))}),250)}))):""!=s&&(window.location=s))}}},googleCalendarApiKey:x||null,events:"object"==typeof m&&m,eventSources:"object"==typeof p&&p,eventClick:function(t){!0===b&&(l+""=="true"?(t.jsEvent.preventDefault(),t.event.url,""!=c&&"object"==typeof e.SOW.core.ajax_modal&&(e.SOW.helper.consoleLog(c+t.event.id,"color:#cccccc"),e.SOW.core.ajax_modal.createFromThinAir(c+t.event.id,a,"true","static",(function(){setTimeout((function(){if(e.SOW.vendor.fullcalendar.eventGet(t,n),""==(i=jQuery("#event_id").attr("id")||"")){var i=(new Date).getTime();jQuery("#event_id").attr("id",i)}jQuery(".btn-fullcalendar-edit").on("click",(function(o){e.SOW.vendor.fullcalendar.eventEdit(t,n,i)})),jQuery(".btn-fullcalendar-remove").on("click",(function(e){t.event.remove()}))}),450)})))):""!=c&&(window.location=c+t.event.id))},dateClick:function(t){!0===b&&("modal"==d&&""!=u?"object"==typeof e.SOW.core.ajax_modal&&(e.SOW.helper.consoleLog(u+t.dateStr,"color:#cccccc"),e.SOW.core.ajax_modal.createFromThinAir(u+t.dateStr,a,"true","static",(function(){setTimeout((function(){var i=new Date,o=i.getHours(),a=i.getMinutes();o<10&&(o="0"+o),a<10&&(a="0"+a);var r=o+":"+a;if(jQuery("#start").val(t.dateStr+" "+r),jQuery("#start").attr("data-date-start",t.dateStr+" "+r),""==(s=jQuery("#event_id").attr("id")||"")){var s=(new Date).getTime();jQuery("#event_id").attr("id",s)}jQuery(".btn-fullcalendar-add").on("click",(function(t){e.SOW.vendor.fullcalendar.eventCreate(n,s)}))}),250)}))):"redirect"==d&&""!=u&&(window.location=u+t.dateStr))},eventRender:function(e){jQuery("#"+n+" .fc-toolbar #fc_smarty_custom_range").length<1?jQuery("#"+n+" .fc-toolbar h2").wrap(''):jQuery("#"+n+" #fc_smarty_custom_range").hasClass("js-tangepickified")||jQuery("#"+n+" #fc_smarty_custom_range").on("click",(function(e){e.preventDefault()}))},eventResize:function(t){if(!0===b){var i=t.event.start.toISOString(),o=t.event.end?t.event.end.toISOString():t.event.start.toISOString();e.SOW.vendor.fullcalendar.ajaxReq(c,n,t.event.id,i,o,"resize")}},eventDrop:function(t){if(!0===b){var i=t.event.start.toISOString(),o=t.event.end?t.event.end.toISOString():t.event.start.toISOString();e.SOW.vendor.fullcalendar.ajaxReq(c,n,t.event.id,i,o,"drag")}}},k=(O="object"==typeof window[f]?e.extend({},O,window[f]):O,document.getElementById(n));if("object"==typeof window[h])O={themeSystem:"bootstrap",defaultView:o||"dayGridMonth",defaultDate:new Date,dir:e.SOW.globals.direction,header:{left:"prev,next, today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"}},O=e.extend({},O,window[h]);window.fullCalendarInstance[n]=new FullCalendar.Calendar(k,O),window.fullCalendarInstance[n].render()},ajaxReq:function(t,n,i,o,a,r){if(""!=t){var s=jQuery("#"+n).data("ajax-method")||e.SOW.vendor.fullcalendar.config.method,l=jQuery("#"+n).data("toast-success")||"Sucessfully Updated!",c=jQuery("#"+n).data("toast-position")||"top-center",d=(e.SOW.vendor.fullcalendar.config.data_params,t+i+"&start="+o+"&end="+a+"&action="+r+"&ajax=true");jQuery.ajax({url:d,data:null,type:s,contentType:e.SOW.vendor.fullcalendar.config.contentType,dataType:e.SOW.vendor.fullcalendar.config.dataType,headers:e.SOW.vendor.fullcalendar.config.headers,crossDomain:e.SOW.vendor.fullcalendar.config.crossDomain,beforeSend:function(){},error:function(t,n,i){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!",c,0,!0):alert("[404] Unexpected internal error!")},success:function(t){e.SOW.helper.consoleLog(d),setTimeout((function(){"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",l,c,1300,!0)}),150)}})}},dateFormat:function(e){if(!e)return null;if("function"==typeof moment)return moment(e,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm");var t=new Date(e),n=(n=t.getTimezoneOffset()/60)>0?n/60:0,i=t.getMonth()+1,o=t.getDate(),a=t.getHours()+n,r=t.getMinutes();return i<10&&(i="0"+i),o<10&&(o="0"+o),a<10&&(a="0"+a),r<10&&(r="0"+r),t.getFullYear()+"-"+i+"-"+o+" "+a+":"+r},eventCreate:function(t,n){var i=jQuery("#start").val(),o=jQuery("#end").val()||null,a=jQuery("#startRecur").val()||null,r=jQuery("#endRecur").val()||null,s=jQuery("#daysOfWeek").val()||null;if(!jQuery("#recurrent_enable").is(":checked"))a=null,r=null,s=null;i=i?i.replace(" ","T")+":00":i,o=o?o.replace(" ","T")+":00":o,a=a?a.replace(" ","T")+":00":a,r=r?r.replace(" ","T")+":00":r;window.fullCalendarInstance[t].addEvent({id:n,title:jQuery("#title").val(),start:i,end:o,allDay:!o,description:jQuery("#description").val(),className:jQuery("#className").val(),startRecur:a,endRecur:r,daysOfWeek:s,editable:!0,startEditable:!0,durationEditable:!0,resourceEditable:!0}),e.SOW.vendor.fullcalendar.refetchEvents(t)},eventEdit:function(t,n,i){var o=jQuery("#start").val(),a=jQuery("#end").val()||null,r=jQuery("#startRecur").val()||null,s=jQuery("#endRecur").val()||null,l=jQuery("#className").val()||"",c=jQuery("#daysOfWeek").val()||null;if(!jQuery("#recurrent_enable").is(":checked"))r=null,s=null,c=null;if(o)o=o.replace(" ","T")+":00";if(a)a=a.replace(" ","T")+":00";if(r){r=r.replace(" ","T")+":00";t.event.setProp("startRecur",r)}if(s){s=s.replace(" ","T")+":00";t.event.setProp("endRecur",s)}t.event.setProp("daysOfWeek",c),t.event.setStart(o),t.event.setEnd(a),t.event.setAllDay(!a),t.event.setProp("title",jQuery("#title").val()),t.event.setProp("className",l.split(" ")),t.event.setExtendedProp("description",jQuery("#description").val()),e.SOW.vendor.fullcalendar.refetchEvents(n)},eventGet:function(t,n){var i=t.event.start||"",o=t.event.end||null,a=void 0!==t.event._def.recurringDef?t.event._def.recurringDef.typeData.startRecur:null,r=void 0!==t.event._def.recurringDef?t.event._def.recurringDef.typeData.endRecur:null,s=void 0!==t.event._def.recurringDef?t.event._def.recurringDef.typeData.daysOfWeek:null,l=t.event._def.ui.classNames.join(" ")||null;if(s&&s.length>0){jQuery("#recurrent_enable").trigger("click");for(var c=0;c'+t.event.url+""),jQuery("#title").val(t.event.title||""),jQuery("#url").val(t.event.url||""),""!=l&&(jQuery("#className").val(l),jQuery("#info_className").addClass(l),"object"==typeof e.SOW.vendor.bootstrap_select&&e.SOW.vendor.bootstrap_select.refresh("#className"))},refetchEvents:function(e){"object"==typeof window.fullCalendarInstance[e]&&window.fullCalendarInstance[e].refetchEvents()}}}(jQuery),function(e){"use strict";var t="Vendor Datepicker";e.SOW.vendor.datepicker={config:{headers:"",crossDomain:"",method:"POST",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().datepicker){var o=e.SOW.helper.vendorLogicPaths("datepicker");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().datepicker?(e.SOW.vendor.datepicker.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.datepicker.process(e(this))})):(e.SOW.vendor.datepicker.process(e(".datepicker")),e(".datepicker"))},process:function(t){if(!t.hasClass("js-datepickified")){""!=t.attr("href")&&t.on("click",(function(e){e.preventDefault()}));var n=t.data("id")||"",i=t.data("lang")||"en",o=(o=t.data("format")||"mm/dd/yyyy").toLowerCase(),a=t.data("date-start")||-1/0,r=t.data("date-end")||1/0,s=t.attr("data-changeMonth")||!0,l=t.attr("data-today-btn")||!0,c=t.attr("data-show-weeks")||!0,d=t.attr("data-autoclose")||!0,u=t.attr("data-today-highlight")||!0,h=t.attr("data-clear-btn")||!1,f=t.attr("data-showWeekDays")||!0,p=t.attr("data-enableOnReadonly")||!1,m=t.data("daysOfWeekDisabled")||"",g=t.data("daysOfWeekHighlighted")||"",v=t.data("datesDisabled")||"",y=t.data("zIndexOffset")||10,b=(t.attr("data-showOnFocus"),t.data("title")||""),w=t.data("quick-locale")||"",_=t.attr("data-layout-rounded")||!1;if("today"==a||"now"==a?a=new Date:a!=-1/0&&""!=a.trim()&&(a=new Date(a)),"today"!=r&&"now"!=r||(a=new Date),""==n){n="rand_"+e.SOW.helper.randomStr(3);t.attr("id",n)}if(""!=t.attr("href")){var S=a;S==-1/0&&(S=new Date(a));var x={};if(x.dd=S.getDate(),x.mm=S.getMonth()+1,x.yyyy=S.getFullYear(),-1!==o.indexOf("/"))var O=o.split("/"),k="/";else if(-1!==o.indexOf("-"))O=o.split("-"),k="-";else if(-1!==o.indexOf("."))O=o.split("."),k=".";else if(-1!==o.indexOf(","))O=o.split(","),k=",";else if(-1!==o.indexOf(" "))O=o.split(" "),k=" ";var E=x[O[0]]+k+x[O[1]]+k+x[O[2]];t.text(E)}"object"==typeof w&&(e.fn.datepicker.dates.en=w),t.addClass("js-datepickified").datepicker({language:i,format:o,rtl:"rtl"==e.SOW.globals.direction,startDate:a,endDate:r,changeMonth:s+""=="true",todayBtn:l+""=="true"?"linked":null,calendarWeeks:c+""=="true",autoclose:d+""=="true",todayHighlight:u+""=="true",clearBtn:h+""=="true",enableOnReadonly:p+""=="true",daysOfWeekDisabled:"object"==typeof m?m:[],daysOfWeekHighlighted:"object"==typeof g?g:[],datesDisabled:"object"==typeof v?v:[],title:b,showOnFocus:s+""=="true",zIndexOffset:Number(y)||10,showWeekDays:f+""=="true",templates:{leftArrow:"rtl"==e.SOW.globals.direction?'':'',rightArrow:"rtl"==e.SOW.globals.direction?'':''},dates:{en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}}}).click((function(t){setTimeout((function(){e(".datepicker-dropdown").addClass("animate-none"),_+""=="true"&&e(".datepicker-dropdown").addClass("datepicker-rounded")}),200)})).on("changeDate",(function(n){var i=n.date;e.SOW.vendor.datepicker.updateAjax(t,i,o)})).data("datepicker")}},updateAjax:function(t,n,i){var o=t.data("ajax-method")||e.SOW.vendor.datepicker.config.method,a=t.data("ajax-url")||"",r=t.data("ajax-params")||"",s=t.data("toast-success")||"Sucessfully Updated!",l=t.data("toast-position")||"top-center",c=t.data("id")||"",d=e.SOW.vendor.datepicker.config.data_params;if(""!=a){var u=new Date(n),h={};if(h.dd=u.getDate(),h.mm=u.getMonth()+1,h.yyyy=u.getFullYear(),h.dd<10&&(h.dd="0"+h.dd),h.mm<10&&(h.mm="0"+h.mm),-1!==i.indexOf("/"))var f=i.split("/"),p="/";else if(-1!==i.indexOf("-"))f=i.split("-"),p="-";else if(-1!==i.indexOf("."))f=i.split("."),p=".";else if(-1!==i.indexOf(","))f=i.split(","),p=",";else if(-1!==i.indexOf(" "))f=i.split(" "),p=" ";var m=h[f[0]]+p+h[f[1]]+p+h[f[2]];if(""!=r)for(var g=e.SOW.helper.params_parse(r),v=0;v'),l+""=="true"&&(s="true"),n[O]=Pickr.create({el:"."+k,theme:o,default:h,position:r,showAlways:s+""=="true",inline:l+""=="true",appClass:c,useAsButton:d+""=="true",defaultRepresentation:u,swatches:e.SOW.vendor.colorpicker.config.classic.swatches,components:{preview:!0,opacity:!0,hue:!0,interaction:{hex:g+""!="false",rgba:v+""!="false",hsla:y+""!="false",hsva:b+""!="false",cmyk:w+""!="false",input:_+""!="false",clear:S+""!="false",save:x+""!="false"}},strings:{save:f,clear:p,cancel:m}}).on("init",(function(e){jQuery(".pcr-result, .pcr-type, .pcr-save, .pcr-clear").addClass("rounded"),jQuery(".pcr-save").on("click",(function(){var e=jQuery(this).parents(".pcr-interaction"),t=jQuery(".pcr-result",e).val();jQuery(".pcr-result-final").val(t)}))})).on("hide",(function(n){if(x+""=="false"){var o=jQuery(".pcr-result").val();e.SOW.vendor.colorpicker.updateAjax(t,o),i&&(jQuery("input"+i).val(o),jQuery("div"+i+", span"+i).text(o))}})).on("show",(function(e,t){if(a+""=="true"){var n=jQuery(".pcr-result").val();i&&(jQuery("input"+i).val(n),jQuery("div"+i+", span"+i).text(n))}})).on("save",(function(n,o){setTimeout((function(){var n=jQuery(".pcr-result-final").val();e.SOW.vendor.colorpicker.updateAjax(t,n),i&&(jQuery("input"+i).val(n),jQuery("div"+i+", span"+i).text(n)),jQuery(".pcr-result-final").val("")}),200)})).on("clear",(function(e){i&&(jQuery("input"+i).val(""),jQuery("div"+i+", span"+i).text(""))})).on("change",(function(n,o){if(a+""=="true"){var r=jQuery(".pcr-result").val();window.afterPickChange&&clearTimeout(window.afterPickChange),window.afterPickChange=setTimeout((function(){e.SOW.vendor.colorpicker.updateAjax(t,r)}),1500),i&&(jQuery("input"+i).val(r),jQuery("div"+i+", span"+i).text(r))}})).on("changestop",(function(e){})).on("cancel",(function(e){})).on("swatchselect",(function(e,t){})),n[O]}},updateAjax:function(t,n){var i=t.data("ajax-method")||e.SOW.vendor.colorpicker.config.method,o=t.data("ajax-url")||"",a=t.data("ajax-params")||"",r=t.data("toast-success")||"Sucessfully Updated!",s=t.data("toast-position")||"top-center",l=t.data("id")||"",c=e.SOW.vendor.colorpicker.config.data_params;if(""!=o){if(""!=a)for(var d=e.SOW.helper.params_parse(a),u=0;u0||(jQuery("body").append('
'),jQuery("#forceColorPickrInit>div").addClass(t),e.SOW.vendor.colorpicker.init(this.selector_orig)),t},__selector:function(){return this.selector_orig}}}(jQuery),function(e){"use strict";var t="Vendor Flot Chart";e.SOW.vendor.flot={config:{headers:"",crossDomain:"",method:"GET",dataType:"json",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().plot){var o=e.SOW.helper.vendorLogicPaths("flot");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().plot?(e.SOW.vendor.flot.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : "+t),e.SOW.vendor.flot.btnSave_bind(),this.selector?this.collection.each((function(){e.SOW.vendor.flot.process(e(this))})):(e.SOW.vendor.flot.process(e(".flot")),e(".flot"))},process:function(t){if(!t.hasClass("js-plotified")){t.addClass("js-plotified");var n=t.data("flot-custom-data")||"",i=t.data("flot-custom-options")||"",o=t.attr("data-flot-id")||"";""==o&&(o="rand_"+e.SOW.helper.randomStr(3,"N"),t.attr("id",o),t.attr("data-flot-id",o));var a=t.data("flot-label-1")||"Plot 1",r=t.data("flot-label-2")||"Plot 2",s=t.data("flot-label-3")||"Plot 3",l=t.data("flot-color-1")||"#6595b4",c=t.data("flot-color-2")||"#FF0000",d=t.data("flot-color-3")||"#FF0000",u=t.data("flot-border-color")||"#eaeaea",h=t.data("flot-type")||"fill",f=t.data("ajax-url")||"",p=t.data("flot-click")||"",m=t.data("flot-click-url")||"",g=t.data("flot-modal-size")||"modal-md",v=t.data("flot-modal-backdrop")||"",y=t.data("flot-modal-centered")||"false",b=(b=t.attr("data-flot-data-1"))?JSON.parse(b):null,w=(w=t.attr("data-flot-data-2"))?JSON.parse(w):null,_=(_=t.attr("data-flot-data-3"))?JSON.parse(_):null,S=t.data("flot-fill-2")||"false",x=t.data("flot-fill-3")||"false",O=t.data("flot-pie-data")||"",k=t.attr("data-flot-legend-show")||"true",E=(E=t.attr("data-flot-ticks"))?JSON.parse(E):null;if(""!=p&&t.bind("plotclick",(function(t,n,i){if(i){if(m+="&val_x="+i.datapoint[0]+"&val_y="+i.datapoint[1]+"&pos_x="+n.x+"&pos_y="+n.y,e.SOW.helper.consoleLog(m),"url"==p)return void(window.location=m);"callback"==p&&"function"==typeof flot_callback?flot_callback(t,n,i):"object"==typeof e.SOW.core.ajax_modal&&"modal"==p&&e.SOW.core.ajax_modal.createFromThinAir(m,g,y,v,(function(){setTimeout((function(){jQuery("#val_x").val(i.datapoint[0]),jQuery("#val_y").val(i.datapoint[1]),jQuery(".val_x").text(i.datapoint[0]),jQuery(".val_y").text(i.datapoint[1]),jQuery("#pos_x").val(n.x),jQuery("#pos_y").val(n.y),jQuery(".pos_x").text(n.x),jQuery(".pos_y").text(n.y),"function"==typeof flot_callback&&flot_callback(t,n,i)}),450)}))}})),""==n||""==i)if("object"!=typeof O){if(b)var C=[{data:b,label:a,lines:{show:"bar"!=h},points:{show:"bar"!=h},color:l}];if(w)C=[{data:b,label:a,lines:{show:"bar"!=h},points:{show:"bar"!=h},color:l},{data:w,label:r,lines:{show:"bar"!=h,fill:S+""=="true"},points:{show:"bar"!=h},color:c}];if(_)C=[{data:b,label:a,lines:{show:"bar"!=h},points:{show:"bar"!=h},color:l},{data:w,label:r,lines:{show:"bar"!=h,fill:S+""=="true"},points:{show:"bar"!=h},color:c},{data:_,label:s,lines:{show:"bar"!=h,fill:x+""=="true"},points:{show:"bar"!=h},color:d}];var T={grid:{mouseActiveRadius:"pie"==h?0:30,hoverable:!0,clickable:!0,borderWidth:0,tickColor:"pie"==h?null:u,borderColor:"pie"==h?null:u},tooltip:!0,tooltipOpts:{content:function(e,t,n,i){return e+": "+n+""},dateFormat:"%y-%0m-%0d",defaultTheme:!0},xaxis:{ticks:E,tickLength:5,mode:"time"},legend:{show:k+""=="true",noColumns:1,labelFormatter:null},series:{pie:{show:"pie"==h},bars:{show:"bar"==h,lineWidth:0,align:"center",barWidth:.5},lines:{show:"bar"!=h,lineWidth:1,fill:!0,fillColor:{colors:[{opacity:.1},{opacity:.15}]}},shadowSize:0,highlightColor:.5},selection:{mode:"x"}};f?e.SOW.vendor.flot.flotAjax(t,o,T):window[o]=jQuery.plot(t,C,T)}else window[o]=jQuery.plot(t,O,{grid:{hoverable:!0,clickable:!0},series:{pie:{show:!0},lines:{show:!0},shadowSize:0,highlightColor:.5},legend:{show:k+""!="false",noColumns:1,labelFormatter:null},tooltip:!0,tooltipOpts:{content:function(e,t,n,i){return e+": "+n+""},dateFormat:"%y-%0m-%0d",defaultTheme:!0}});else window[o]=jQuery.plot(t,flot_custom[n],flot_custom[i])}},flotAjax:function(t,n,i){var o=t.data("ajax-method")||e.SOW.vendor.flot.config.method,a=t.data("ajax-dataType")||e.SOW.vendor.flot.config.dataType,r=t.data("ajax-url")||"",s=t.data("ajax-params")||"",l=t.data("id")||"",c=t.data("ajax-update-interval")||0,d=e.SOW.vendor.flot.config.data_params;if(""!=r){if(""!=s)for(var u=e.SOW.helper.params_parse(s),h=0;hy.options.scales.yAxes[0].ticks.max&&(y.options.scales.yAxes[0].ticks.max=y.data.datasets[b].data[w]+10);y.data.datasets[b].borderColor=y.data.datasets[b].backgroundColor,y.data.datasets[b].pointHoverRadius=4,y.data.datasets[b].pointHoverBorderWidth=12,y.data.datasets[b].borderWidth=1,y.data.datasets[b].pointBackgroundColor=y.data.datasets[b].backgroundColor,y.data.datasets[b].pointBorderColor=y.data.datasets[b].backgroundColor,y.data.datasets[b].pointHoverBorderColor=y.data.datasets[b].backgroundColor,l+""=="false"&&!0===y.data.datasets[b].fill&&(y.data.datasets[b].pointBackgroundColor="rgba(133, 133, 145, 0)",y.data.datasets[b].pointBorderColor="rgba(133, 133, 145, 0)",y.data.datasets[b].pointHoverBackgroundColor="rgba(133, 133, 145, 0)",y.data.datasets[b].pointHoverBorderColor="rgba(133, 133, 145, 0)",y.data.datasets[b].borderWidth=0,y.data.datasets[b].borderColor="rgba(133, 133, 145, 0)",y.options.elements.point.radius=0),l+""=="false"&&(y.options.elements.point.radius=0),!1===y.data.datasets[b].fill&&(y.data.datasets[b].borderWidth=""!=h?Number(h):3)}v=y}else if("pie"==y.type||"doughnut"==y.type){var _=[],S=[],x=[];for(b=0;b0&&i.submit((function(){""==t.val()?t.parent().find("div.medium-editor").addClass("is-invalid"):t.parent().find("div.medium-editor").removeClass("is-invalid").addClass("is-valid")}))}var o=t.attr("id")||"",a=t.data("lng-save")||"Save",r=t.data("lng-clear")||"Clear",s=t.data("lng-cancel")||"Cancel",l=t.data("lng-link")||"Paste or type a link",c=t.attr("data-btn-picker")||"true",d=t.attr("data-btn-bold")||"true",u=t.attr("data-btn-italic")||"true",h=t.attr("data-btn-underline")||"true",f=t.attr("data-btn-link")||"true",p=t.attr("data-btn-h1")||"true",m=t.attr("data-btn-h2")||"true",g=t.attr("data-btn-h3")||"true",v=t.attr("data-btn-h4")||"true",y=t.attr("data-btn-h5")||"true",b=t.attr("data-btn-h6")||"true",w=t.attr("data-btn-unordered")||"true",_=t.attr("data-btn-ordered")||"true";if(""==o){o="rand_"+e.SOW.helper.randomStr(3);t.attr("id",o)}if(t.addClass("js-mediumified"),n[o],"object"!=typeof e.SOW.vendor.colorpicker)c="false";if(c+""=="true"){var S;if("function"!=typeof Pickr)var x=e.SOW.vendor.colorpicker.forceInit();var O=new(MediumEditor.extensions.button.extend({name:"colorPicker",action:"applyForeColor",aria:"color picker",contentDefault:'',init:function(){this.button=this.document.createElement("button"),this.button.classList.add("medium-editor-action"),this.button.innerHTML='',this.button,this.on(this.button,"click",this.handleClick.bind(this))},handleClick:function(e){S=n[o].exportSelection(),jQuery(this.button).prepend(''),setTimeout((function(){window[o]=Pickr.create({el:"."+x,theme:"nano",default:void 0!==window[o].lastColor?window[o].lastColor:"#121212",showAlways:!0,inline:!1,position:"bottom-middle",useAsButton:!0,defaultRepresentation:"HEXA",closeWithKey:"Escape",autoReposition:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{palette:!0,preview:!0,opacity:!0,hue:!0,interaction:{hex:!0,rgba:!0,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},strings:{save:a,clear:r,cancel:s}}).on("init",(function(e){jQuery(".pcr-result, .pcr-type, .pcr-save, .pcr-clear").addClass("rounded")})).on("hide",(function(e){})).on("show",(function(e,t){jQuery(".pcr-app:not(.pcr-save):not(.pcr-cancel):not(.pcr-clear)").on("click",(function(e){e.preventDefault(),e.stopPropagation()})),jQuery(document).on("click",(function(){window[o].hide()}))})).on("save",(function(e,t){window[o].getColor().toHEXA().join(",");var n=window[o].getColor().toHEXA().toString();k(n),window[o].lastColor=n,window[o].hide()})).on("clear",(function(e){k("")})).on("change",(function(e,t){})).on("changestop",(function(e){})).on("cancel",(function(e){})).on("swatchselect",(function(e,t){}))}),100),e.preventDefault(),e.stopPropagation();var t=this.getAction();t&&this.execAction(t)}}));function k(e){var t=e;O.base.importSelection(S),O.document.execCommand("styleWithCSS",!1,!0),""==e?O.document.execCommand("RemoveFormat"):O.document.execCommand("foreColor",!1,t)}}var E=[{name:"colorPicker"}];d+""=="true"&&E.push({name:"bold",contentDefault:"B"}),u+""=="true"&&E.push({name:"italic",contentDefault:"I"}),h+""=="true"&&E.push({name:"underline",contentDefault:"U"}),f+""=="true"&&E.push({name:"anchor",contentDefault:''}),p+""=="true"&&E.push("h1"),m+""=="true"&&E.push("h2"),g+""=="true"&&E.push("h3"),v+""=="true"&&E.push("h4"),y+""=="true"&&E.push("h5"),b+""=="true"&&E.push("h6"),w+""=="true"&&E.push({name:"unorderedlist",contentDefault:''}),_+""=="true"&&E.push({name:"orderedlist",contentDefault:''});var C={autoLink:!0,imageDragging:!1,targetBlank:!1,placeholder:!1,anchor:{linkValidation:!1,targetCheckbox:!1,placeholderText:l,targetCheckboxText:"Open in new window"},anchorPreview:{hideDelay:300},toolbar:{buttons:E},extensions:{colorPicker:c+""=="true"?O:null}};if(jQuery(".modal.show").length>0){if(""==(T=jQuery(".modal.show").attr("id")||"")){var T="rand_"+e.SOW.helper.randomStr(3);jQuery(".modal.show").attr("id",T)}C.elementsContainer=document.getElementById(T)}n[o]=new MediumEditor(this.selector_orig,C)}}}}(jQuery),function(e){"use strict";var t="Vendor Markdown Editor",n=[];e.SOW.vendor.markdowneditor={config:{},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("function"!=typeof EasyMDE){var o=e.SOW.helper.vendorLogicPaths("markdowneditor");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"function"!=typeof EasyMDE?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.markdowneditor.init(n,i),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.markdowneditor.process(e(this))})):(e.SOW.vendor.markdowneditor.process(e(".markdown-editor")),e(".markdown-editor"))},process:function(t){if(!t.hasClass("js-markdownified")){var i=t.attr("id")||"",o=t.data("toolbar")||"",a=t.data("status")||"",r=t.data("autosaved-ignore-if-content-present")||"false",s=t.data("lng-placeholder")||"",l=t.data("lng-prompt-url")||"Type your URL:",c=t.attr("data-min-height")||"500px",d=t.attr("data-autofocus")||"false",u=t.attr("data-spellcheck")||"false",h=t.attr("data-autosave")||"false",f=t.attr("data-autosave-delay")||1e3,p=t.attr("data-prompt-urls")||"true",m=t.val()||"";if(""==i){i="rand_"+e.SOW.helper.randomStr(3);t.attr("id",i)}t.addClass("js-markdownified"),n[i],n[i]=new EasyMDE({element:document.getElementById(i),autoDownloadFontAwesome:!0,forceSync:!0,autofocus:d+""=="true",autosave:{enabled:h+""=="true",uniqueId:"MESaved_"+i,delay:Number(f)},minHeight:c,spellChecker:u+""=="true",showIcons:!1,status:"object"==typeof a&&a,placeholder:s,toolbar:"object"==typeof o?o:["bold","italic","strikethrough","|","heading-1","heading-2","heading-3","|","image","link","|","unordered-list","ordered-list","quote","|","preview"],promptURLs:p+""=="true",promptTexts:{image:l,link:l}}),m.length>0&&r+""=="true"&&(n[i].value(m),t.val(m))}}}}(jQuery),function(e){"use strict";var t="Vendor Summernote Editor",n=[];e.SOW.vendor.summernoteeditor={config:{},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().summernote){var o=e.SOW.helper.vendorLogicPaths("summernoteeditor");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().summernote?(e.SOW.vendor.summernoteeditor.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);return this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.summernoteeditor.process(e(this))})):(e.SOW.vendor.summernoteeditor.process(e(".summernote-editor")),e(".summernote-editor"))},process:function(t){if(!t.hasClass("js-summernotefied")){var i=t.data("placeholder")||"Type here...",o=t.data("min-height")||300,a=t.data("max-height")||1500,r=t.attr("data-focus")||"false",s=t.data("lang")||"en-US",l=t.data("ajax-url")||"",c=t.data("ajax-params")||"",d=t.data("toolbar")||"",u=t.attr("id")||"",h=t.data("summernote-config")||"",f=t.data("extend")||"";if(""==u){u="rand_"+e.SOW.helper.randomStr(3);t.attr("id",u)}var p={placeholder:i,minHeight:o,maxHeight:a,focus:r+""=="true",lang:""!=s?s:"en-US",popover:{image:[["image",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]]]},callbacks:{onImageUpload:""!=l?function(t,n,i){for(var o=t.length-1;o>=0;o--)e.SOW.vendor.summernoteeditor.ajaxUpload(l,t[o],this,c)}:null}};if("object"==typeof d&&d.length&&(p.toolbar=d),"object"==typeof toolbarStyleTags&&toolbarStyleTags.length&&(p.styleTags=toolbarStyleTags),"object"==typeof h)p="object"==typeof h?e.extend({},p,h):p;if("object"==typeof window[f])p="object"==typeof window[f]?e.extend({},p,window[f]):p;return n[u],n[u]=t.addClass("js-summernotefied").summernote(p)}},ajaxUpload:function(t,n,i,o){if(""!=t){var a=new FormData;if(a.append("file",n),a.append("ajax","true"),o&&""!=o)for(var r=e.SOW.helper.params_parse(o),s=0;s'),document.getElementById("tx_"+o).value=document.getElementById(n).children[0].innerHTML;let a=!1;window.quillEditor[n].on("editor-change",(function(t){if("text-change"==t&&(document.getElementById("tx_"+o).value=document.getElementById(n).children[0].innerHTML),a)return;let i=document.getElementById(n),r=i.querySelectorAll("img"),s=i.getAttribute("data-ajax-url");i.getAttribute("data-ajax-params");""!=s&&r.forEach((function(t){let n=t.getAttribute("src");if(n&&"d"===n[0]){let i="_ajax/demo.summernote.php",o="";e.SOW.vendor.quilleditor.ajaxUpload(i,n,t,o),a=!0}}))}))}))},b64toBlob:function(e,t,n){t=t||"",n=n||512;let i=atob(e),o=[];for(let e=0;e',p=t.data("lng-csv")||"CSV",m=t.data("lng-pdf")||"PDF",g=t.data("lng-xls")||"XLS",v=t.data("lng-copy")||"Copy",y=t.data("lng-print")||"Print",b=t.data("lng-all")||"All",w=t.attr("data-column-search")||"false",_=t.attr("data-row-reorder")||"false",S=t.attr("data-col-reorder")||"false",x=t.attr("data-responsive")||"true",O=t.attr("data-header-fixed")||"false",k=t.attr("data-select-onclick")||"false",E=t.attr("data-main-search")||"true",C=t.attr("data-enable-paging")||"true",T=t.attr("data-enable-col-sorting")||"true",j=t.attr("data-autofill")||"false",D=t.attr("data-group")||"false",W=t.attr("data-custom")||"false",I=t.attr("data-custom-config")||null,A=t.attr("data-items-per-page")||15,M=t.attr("data-enable-column-visibility")||"true",N=t.attr("data-enable-export")||"true";if(t.addClass("js-datatableified"),""==i){i="rand_"+e.SOW.helper.randomStr(3);t.attr("id",i)}if(n[i],W+""!="true"){w+""=="true"&&!1===e.SOW.globals.is_mobile&&(jQuery("#"+i+" thead tr").clone(!0).appendTo("#"+i+" thead"),jQuery("#"+i+" thead tr:eq(1) th").each((function(e){jQuery(this).text();jQuery(this).html(''),jQuery("input",this).on("keyup change",(function(){n[i].column(e).search()!==this.value&&n[i].column(e).search(this.value).draw()}))})));var L={rowReorder:_+""=="true"&&{selector:"tr td:not(:first-child)"},colReorder:S+""=="true",fixedHeader:O+""=="true",select:k+""=="true",orderCellsTop:!0,ordering:T+""=="true",paging:C+""=="true",searching:E+""=="true",pageLength:Number(A),lengthMenu:[[10,15,30,50,100,-1],[10,15,30,50,100,b]],autoFill:j+""!="false"&&{focus:j},oLanguage:{oAria:{sSortAscending:d||"",sSortDescending:u||""},oPaginate:{sFirst:'',sLast:'',sNext:'',sPrevious:''},sEmptyTable:o||"",sInfo:a||"",sInfoEmpty:"",sInfoFiltered:"",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_",sLoadingRecords:r||"",sProcessing:s||"",sSearch:"",sSearchPlaceholder:l||"",sUrl:"",sZeroRecords:c||""},dom:"<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f l><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'B>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",buttons:[]};M+""=="true"&&L.buttons.push({extend:"colvis",text:h,titleAttr:h,className:"btn-sm btn-light"}),N+""=="true"&&L.buttons.push({extend:"collection",text:f,className:"btn-sm btn-light pt--6 pb--6",buttons:[{extend:"csvHtml5",text:p},{extend:"pdfHtml5",text:m},{extend:"excelHtml5",text:g},{extend:"copyHtml5",text:v},{extend:"print",text:y}]}),D+""=="true"&&(L.pageLength=15,L.order=[[2,"desc"]],L.rowGroup={dataSrc:2}),x+""=="true"?L.responsive=!0:x+""=="extended"&&(L.responsive={details:{display:e.fn.dataTable.Responsive.display.modal({header:function(e){var t=e.data();return"Details for "+t[0]+" "+t[1]}}),renderer:e.fn.dataTable.Responsive.renderer.tableAll({tableClass:"table table-responsive"})}}),"object"==typeof(I=e.SOW.helper.jsonParse(I))&&(L=e.extend({},L,I)),"object"==typeof dataTabeExtend&&(L=e.extend({},L,dataTabeExtend));var P=e.SOW.helper.vendorLogicPaths("datatables");""!=P.path_js&&(P.path_js=P.path_js.replace("datatables.min","pdfmake.min"),e.SOW.helper.loadScript([P.path_js],!1,!0).done((function(){n[i]=t.DataTable(L),e.SOW.vendor.datatables.clickEvents(n[i])})))}}},clickEvents:function(e){if(!t)var t=jQuery("#event_log");e.on("key",(function(e,n,i,o,a){t.prepend('
Key press  '+i+" • "+o.data()+"
")})).on("key-focus",(function(e,n,i){t.prepend('
Item click  '+i.data()+"
")})).on("key-blur",(function(e,n,i){t.prepend('
Item blur  '+i.data()+"
")}))},miscOptions:function(){var t=e.SOW.globals.elHeader.outerHeight();e("head").append('")}}}(jQuery),function(e){"use strict";var t="Vendor Prism [Code Highlighter]";e.SOW.vendor.prismjs={config:{NormalizeWhitespace:{"remove-trailing":!1,"remove-indent":!1,"left-trim":!1,"right-trim":!1,indent:0,"remove-initial-line-feed":!1,"tabs-to-spaces":2,"spaces-to-tabs":2}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("object"!=typeof Prism){window.Prism=window.Prism||{},window.Prism.manual=!0;var o=e.SOW.helper.vendorLogicPaths("prismjs");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"object"!=typeof Prism?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(Prism.plugins.NormalizeWhitespace.setDefaults(e.SOW.vendor.prismjs.config.NormalizeWhitespace),e.SOW.vendor.prismjs.init(n,i),null)})),null)}var a=e.SOW.helper.__selector(n),r=e.SOW.helper.check_var(i);this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : "+t),e.SOW.vendor.prismjs.process()},process:function(){jQuery("pre.xdebug-var-dump").addClass("language-php"),"object"==typeof Prism&&Prism.highlightAll()}}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e,t;function n(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},A={};function M(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(A[e]=o),t&&(A[t[0]]=function(){return j(o.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=L(t,e.localeData()),I[t]=I[t]||function(e){var t,n,i,o=e.match(D);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,i),W.lastIndex=0,n-=1;return e}var P={};function R(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function Y(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)a(e,n)&&(t=Y(n))&&(i[t]=e[n]);return i}var $={};function z(e,t){$[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function Q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function F(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Q(t)),n}function B(e,t){return function(i){return null!=i?(q(this,e,i),n.updateOffset(this,t),this):U(this,e)}}function U(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(n=F(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var G,X=/\d/,K=/\d\d/,Z=/\d{3}/,J=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,ne=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,re=/[+-]?\d{1,6}/,se=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[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;function he(e,t,n){G[e]=E(t)?t:function(e,i){return e&&n?n:t}}function fe(e,t){return a(G,e)?G[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,o){return t||n||i||o}))))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}G={};var me={};function ge(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=F(e)}),n=0;n68?1900:2e3)};var We=B("FullYear",!0);function Ie(e,t,n,i,o,a,r){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,o,a,r),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,o,a,r),s}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Me(e,t,n){var i=7+t-n;return-((7+Ae(e,0,i).getUTCDay()-t)%7)+i-1}function Ne(e,t,n,i,o){var a,r,s=1+7*(t-1)+(7+n-i)%7+Me(e,i,o);return s<=0?r=De(a=e-1)+s:s>De(e)?(a=e+1,r=s-De(e)):(a=e,r=s),{year:a,dayOfYear:r}}function Le(e,t,n){var i,o,a=Me(e.year(),t,n),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?i=r+Pe(o=e.year()-1,t,n):r>Pe(e.year(),t,n)?(i=r-Pe(e.year(),t,n),o=e.year()+1):(o=e.year(),i=r),{week:i,year:o}}function Pe(e,t,n){var i=Me(e,t,n),o=Me(e+1,t,n);return(De(e)-i+o)/7}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),z("week",5),z("isoWeek",5),he("w",te),he("ww",te,K),he("W",te),he("WW",te,K),ve(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=F(e)}));function Re(e,t){return e.slice(t,7).concat(e.slice(0,t))}M("d",0,"do","day"),M("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),M("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),M("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),he("d",te),he("e",te),he("E",te),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["dd","ddd","dddd"],(function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e})),ve(["d","e","E"],(function(e,t,n,i){t[i]=F(e)}));var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=ue,Ve=ue,Qe=ue;function Fe(e,t,n){var i,o,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=be.call(this._weekdaysParse,r))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,r))?o:null:-1!==(o=be.call(this._minWeekdaysParse,r))?o:null:"dddd"===t?-1!==(o=be.call(this._weekdaysParse,r))||-1!==(o=be.call(this._shortWeekdaysParse,r))||-1!==(o=be.call(this._minWeekdaysParse,r))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,r))||-1!==(o=be.call(this._weekdaysParse,r))||-1!==(o=be.call(this._minWeekdaysParse,r))?o:null:-1!==(o=be.call(this._minWeekdaysParse,r))||-1!==(o=be.call(this._weekdaysParse,r))||-1!==(o=be.call(this._shortWeekdaysParse,r))?o:null}function Be(){function e(e,t){return t.length-e.length}var t,n,i,o,a,r=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=pe(this.weekdaysMin(n,"")),o=pe(this.weekdaysShort(n,"")),a=pe(this.weekdays(n,"")),r.push(i),s.push(o),l.push(a),c.push(i),c.push(o),c.push(a);r.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ue(){return this.hours()%12||12}function qe(e,t){M(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ge(e,t){return t._meridiemParse}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,Ue),M("k",["kk",2],0,(function(){return this.hours()||24})),M("hmm",0,0,(function(){return""+Ue.apply(this)+j(this.minutes(),2)})),M("hmmss",0,0,(function(){return""+Ue.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),M("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),M("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),qe("a",!0),qe("A",!1),R("hour","h"),z("hour",13),he("a",Ge),he("A",Ge),he("H",te),he("h",te),he("k",te),he("HH",te,K),he("hh",te,K),he("kk",te,K),he("hmm",ne),he("hmmss",ie),he("Hmm",ne),he("Hmmss",ie),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var i=F(e);t[3]=24===i?0:i})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=F(e),f(n).bigHour=!0})),ge("hmm",(function(e,t,n){var i=e.length-2;t[3]=F(e.substr(0,i)),t[4]=F(e.substr(i)),f(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var i=e.length-4,o=e.length-2;t[3]=F(e.substr(0,i)),t[4]=F(e.substr(i,2)),t[5]=F(e.substr(o)),f(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var i=e.length-2;t[3]=F(e.substr(0,i)),t[4]=F(e.substr(i))})),ge("Hmmss",(function(e,t,n){var i=e.length-4,o=e.length-2;t[3]=F(e.substr(0,i)),t[4]=F(e.substr(i,2)),t[5]=F(e.substr(o))}));var Xe=B("Hours",!0);var Ke,Ze={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_e,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:$e,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},Je={},et={};function tt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=it(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&tt(o,n)>=t-1)break;t--}a++}return Ke}(e)}function st(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var lt=/^\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)?)?$/,ct=/^\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)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ut=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["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/]],ft=/^\/?Date\((-?\d+)/i,pt=/^(?:(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}))$/,mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,i,o,a,r,s=e._i,l=lt.exec(s)||ct.exec(s);if(l){for(f(e).iso=!0,t=0,n=ut.length;t7)&&(l=!0)):(a=e._locale._week.dow,r=e._locale._week.doy,c=Le(Ot(),a,r),n=bt(t.gg,e._a[0],c.year),i=bt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a);i<1||i>Pe(n,a,r)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=Ne(n,i,o,a,r),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(r=bt(e._a[0],o[0]),(e._dayOfYear>De(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),i=Ae(r,0,e._dayOfYear),e._a[1]=i.getUTCMonth(),e._a[2]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Ie).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function _t(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],f(e).empty=!0;var t,i,o,a,r,s,l=""+e._i,c=l.length,d=0;for(o=L(e._f,e._locale).match(D)||[],t=0;t0&&f(e).unusedInput.push(r),l=l.slice(l.indexOf(i)+i.length),d+=i.length),A[a]?(i?f(e).empty=!1:f(e).unusedTokens.push(a),ye(a,i,e)):e._strict&&!i&&f(e).unusedTokens.push(a);f(e).charsLeftOver=c-d,l.length>0&&f(e).unusedInput.push(l),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),st(e)}else yt(e);else gt(e)}function St(e){var t=e._i,a=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===a&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(st(t)):(c(t)?e._d=t:i(a)?function(e){var t,n,i,o,a,r,s=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()}));function Ct(e,t){var n,o;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],o=1;o=0?new Date(e+400,t,n)-on:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-on:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function cn(){var e,t,n=[],i=[],o=[],a=[],r=this.eras();for(e=0,t=r.length;e(a=Pe(e,i,o))&&(t=a),hn.call(this,e,t,n,i,o))}function hn(e,t,n,i,o){var a=Ne(e,t,n,i,o),r=Ae(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),he("N",ln),he("NN",ln),he("NNN",ln),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var o=n._locale.erasParse(e,i,n._strict);o?f(n).era=o:f(n).invalidEra=e})),he("y",se),he("yy",se),he("yyy",se),he("yyyy",se),he("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),M(0,["gg",2],0,(function(){return this.weekYear()%100})),M(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),he("G",le),he("g",le),he("GG",te,K),he("gg",te,K),he("GGGG",ae,J),he("gggg",ae,J),he("GGGGG",re,ee),he("ggggg",re,ee),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=F(e)})),ve(["gg","GG"],(function(e,t,i,o){t[o]=n.parseTwoDigitYear(e)})),M("Q",0,"Qo","quarter"),R("quarter","Q"),z("quarter",7),he("Q",X),ge("Q",(function(e,t){t[1]=3*(F(e)-1)})),M("D",["DD",2],"Do","date"),R("date","D"),z("date",9),he("D",te),he("DD",te,K),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=F(e.match(te)[0])}));var fn=B("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),z("dayOfYear",4),he("DDD",oe),he("DDDD",Z),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=F(e)})),M("m",["mm",2],0,"minute"),R("minute","m"),z("minute",14),he("m",te),he("mm",te,K),ge(["m","mm"],4);var pn=B("Minutes",!1);M("s",["ss",2],0,"second"),R("second","s"),z("second",15),he("s",te),he("ss",te,K),ge(["s","ss"],5);var mn,gn,vn=B("Seconds",!1);for(M("S",0,0,(function(){return~~(this.millisecond()/100)})),M(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),M(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),M(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),M(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),M(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),M(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),z("millisecond",16),he("S",oe,X),he("SS",oe,K),he("SSS",oe,Z),mn="SSSS";mn.length<=9;mn+="S")he(mn,se);function yn(e,t){t[6]=F(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")ge(mn,yn);gn=B("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");var bn=b.prototype;function wn(e){return e}bn.add=Ft,bn.calendar=function(e,t){1===arguments.length&&(arguments[0]?qt(arguments[0])?(e=arguments[0],t=void 0):Gt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||Ot(),o=Nt(i,this).startOf("day"),a=n.calendarFormat(this,o)||"sameElse",r=t&&(E(t[a])?t[a].call(this,i):t[a]);return this.format(r||this.localeData().calendar(a,this,Ot(i)))},bn.clone=function(){return new b(this)},bn.diff=function(e,t,n){var i,o,a;if(!this.isValid())return NaN;if(!(i=Nt(e,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),t=Y(t)){case"year":a=Xt(this,i)/12;break;case"month":a=Xt(this,i);break;case"quarter":a=Xt(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return n?a:Q(a)},bn.endOf=function(e){var t,i;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?sn:rn,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=nn-an(t+(this._isUTC?0:this.utcOffset()*tn),nn)-1;break;case"minute":t=this._d.valueOf(),t+=tn-an(t,tn)-1;break;case"second":t=this._d.valueOf(),t+=en-an(t,en)-1}return this._d.setTime(t),n.updateOffset(this,!0),this},bn.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},bn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ot(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.fromNow=function(e){return this.from(Ot(),e)},bn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ot(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.toNow=function(e){return this.to(Ot(),e)},bn.get=function(e){return E(this[e=Y(e)])?this[e]():this},bn.invalidAt=function(){return f(this).overflow},bn.isAfter=function(e,t){var n=w(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(bn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=Pt,bn.isUTC=Pt,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=S("dates accessor is deprecated. Use date instead.",fn),bn.months=S("months accessor is deprecated. Use month instead",Te),bn.years=S("years accessor is deprecated. Use year instead",We),bn.zone=S("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()})),bn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=St(t))._a?(e=t._isUTC?h(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var _n=T.prototype;function Sn(e,t,n,i){var o=rt(),a=h().set(i,t);return o[n](a,e)}function xn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Sn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Sn(e,i,n,"month");return o}function On(e,t,n,i){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,a=rt(),r=e?a._week.dow:0,s=[];if(null!=n)return Sn(t,(n+r)%7,i,"day");for(o=0;o<7;o++)s[o]=Sn(t,(o+r)%7,i,"day");return s}_n.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return E(i)?i.call(t,n):i},_n.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},_n.invalidDate=function(){return this._invalidDate},_n.ordinal=function(e){return this._ordinal.replace("%d",e)},_n.preparse=wn,_n.postformat=wn,_n.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return E(o)?o(e,t,n,i):o.replace(/%d/i,e)},_n.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},_n.set=function(e){var t,n;for(n in e)a(e,n)&&(E(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)},_n.eras=function(e,t){var i,o,a,r=this._eras||rt("en")._eras;for(i=0,o=r.length;i=0)return l[i]},_n.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*i},_n.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||cn.call(this),e?this._erasAbbrRegex:this._erasRegex},_n.erasNameRegex=function(e){return a(this,"_erasNameRegex")||cn.call(this),e?this._erasNameRegex:this._erasRegex},_n.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||cn.call(this),e?this._erasNarrowRegex:this._erasRegex},_n.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},_n.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_n.monthsParse=function(e,t,n){var i,o,a;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},_n.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},_n.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},_n.week=function(e){return Le(e,this._week.dow,this._week.doy).week},_n.firstDayOfYear=function(){return this._week.doy},_n.firstDayOfWeek=function(){return this._week.dow},_n.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Re(n,this._week.dow):e?n[e.day()]:n},_n.weekdaysMin=function(e){return!0===e?Re(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},_n.weekdaysShort=function(e){return!0===e?Re(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},_n.weekdaysParse=function(e,t,n){var i,o,a;if(this._weekdaysParseExact)return Fe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},_n.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},_n.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_n.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_n.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},_n.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===F(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",rt);var kn=Math.abs;function En(e,t,n,i){var o=Ht(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function Tn(e){return 4800*e/146097}function jn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var Wn=Dn("ms"),In=Dn("s"),An=Dn("m"),Mn=Dn("h"),Nn=Dn("d"),Ln=Dn("w"),Pn=Dn("M"),Rn=Dn("Q"),Yn=Dn("y");function Hn(e){return function(){return this.isValid()?this._data[e]:NaN}}var $n=Hn("milliseconds"),zn=Hn("seconds"),Vn=Hn("minutes"),Qn=Hn("hours"),Fn=Hn("days"),Bn=Hn("months"),Un=Hn("years");var qn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}var Kn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,o,a,r,s,l=Kn(this._milliseconds)/1e3,c=Kn(this._days),d=Kn(this._months),u=this.asSeconds();return u?(e=Q(l/60),t=Q(e/60),l%=60,e%=60,n=Q(d/12),d%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=u<0?"-":"",a=Zn(this._months)!==Zn(u)?"-":"",r=Zn(this._days)!==Zn(u)?"-":"",s=Zn(this._milliseconds)!==Zn(u)?"-":"",o+"P"+(n?a+n+"Y":"")+(d?a+d+"M":"")+(c?r+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var ei=jt.prototype;return ei.isValid=function(){return this._isValid},ei.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},ei.add=function(e,t){return En(this,e,t,1)},ei.subtract=function(e,t){return En(this,e,t,-1)},ei.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=Y(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Tn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(jn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ei.asMilliseconds=Wn,ei.asSeconds=In,ei.asMinutes=An,ei.asHours=Mn,ei.asDays=Nn,ei.asWeeks=Ln,ei.asMonths=Pn,ei.asQuarters=Rn,ei.asYears=Yn,ei.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*F(this._months/12):NaN},ei._bubble=function(){var e,t,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return a>=0&&r>=0&&s>=0||a<=0&&r<=0&&s<=0||(a+=864e5*Cn(jn(s)+r),r=0,s=0),l.milliseconds=a%1e3,e=Q(a/1e3),l.seconds=e%60,t=Q(e/60),l.minutes=t%60,n=Q(t/60),l.hours=n%24,r+=Q(n/24),s+=o=Q(Tn(r)),r-=Cn(jn(o)),i=Q(s/12),s%=12,l.days=r,l.months=s,l.years=i,this},ei.clone=function(){return Ht(this)},ei.get=function(e){return e=Y(e),this.isValid()?this[e+"s"]():NaN},ei.milliseconds=$n,ei.seconds=zn,ei.minutes=Vn,ei.hours=Qn,ei.days=Fn,ei.weeks=function(){return Q(this.days()/7)},ei.months=Bn,ei.years=Un,ei.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,o=!1,a=Gn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},Gn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=function(e,t,n,i){var o=Ht(e).abs(),a=qn(o.as("s")),r=qn(o.as("m")),s=qn(o.as("h")),l=qn(o.as("d")),c=qn(o.as("M")),d=qn(o.as("w")),u=qn(o.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=i,Xn.apply(null,h)}(this,!o,a,n=this.localeData()),o&&(i=n.pastFuture(+this,i)),n.postformat(i)},ei.toISOString=Jn,ei.toString=Jn,ei.toJSON=Jn,ei.locale=Kt,ei.localeData=Jt,ei.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),ei.lang=Zt,M("X",0,0,"unix"),M("x",0,0,"valueOf"),he("x",le),he("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(F(e))})),n.version="2.29.1",e=Ot,n.fn=bn,n.min=function(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)},n.max=function(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(e){return Ot(1e3*e)},n.months=function(e,t){return xn(e,t,"months")},n.isDate=c,n.locale=ot,n.invalid=m,n.duration=Ht,n.isMoment=w,n.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},n.parseZone=function(){return Ot.apply(null,arguments).parseZone()},n.localeData=rt,n.isDuration=Dt,n.monthsShort=function(e,t){return xn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},n.defineLocale=at,n.updateLocale=function(e,t){if(null!=t){var n,i,o=Ze;null!=Je[e]&&null!=Je[e].parentLocale?Je[e].set(C(Je[e]._config,t)):(null!=(i=it(e))&&(o=i._config),t=C(o,t),null==i&&(t.abbr=e),(n=new T(t)).parentLocale=Je[e],Je[e]=n),ot(e)}else null!=Je[e]&&(null!=Je[e].parentLocale?(Je[e]=Je[e].parentLocale,e===ot()&&ot(e)):null!=Je[e]&&delete Je[e]);return Je[e]},n.locales=function(){return x(Je)},n.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},n.normalizeUnits=Y,n.relativeTimeRounding=function(e){return void 0===e?qn:"function"==typeof e&&(qn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},n.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"},n.prototype=bn,n.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"},n})),function(e,t){if("function"==typeof define&&define.amd)define([],t);else if("undefined"!=typeof exports)t();else{t(),e.FileSaver={}}}(this,(function(){"use strict";var e="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0;function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o=e.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(o,a,r){var s=e.URL||e.webkitURL,l=document.createElement("a");a=a||o.name||"download",l.download=a,l.rel="noopener","string"==typeof o?(l.href=o,l.origin!==location.origin?n(l.href)?t(o,a,r):i(l,l.target="_blank"):i(l)):(l.href=s.createObjectURL(o),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,o,a){if(o=o||e.name||"download","string"==typeof e)if(n(e))t(e,o,a);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout((function(){i(r)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,a),o)}:function(n,i,a,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof n)return t(n,i,a);var s="application/octet-stream"===n.type,l=/constructor/i.test(e.HTMLElement)||e.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||o)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},d.readAsDataURL(n)}else{var u=e.URL||e.webkitURL,h=u.createObjectURL(n);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});e.saveAs=a.saveAs=a,"undefined"!=typeof module&&(module.exports=a)})),$.SOW.config["vendor:external_css"]||($.SOW.config["vendor:external_css"]=[]),$.SOW.config["vendor:external_css"].vendor=["flickity","fancybox","cocoen","photoswipe","swiper","leaflet","fullcalendar","datepicker","daterangepicker","colorpicker","flot","chartjs","mediumeditor","markdowneditor","summernoteeditor","quilleditor","datatables","prismjs"],$.SOW.config.autoinit.jarallax=["$.SOW.vendor.jarallax.init",".jarallax",null,!0],$.SOW.config.autoinit.sticky_kit=["$.SOW.vendor.sticky_kit.init",".sticky-kit",null,!0],$.SOW.config.autoinit.sortable=["$.SOW.vendor.sortable.init",".sortable",null,!0],$.SOW.config.autoinit.bootstrap_select=["$.SOW.vendor.bootstrap_select.init","select.bs-select",null,!0],$.SOW.config.autoinit.typed=["$.SOW.vendor.typed.init",".typed",null,!0],$.SOW.config.autoinit.flickity=["$.SOW.vendor.flickity.init","div[data-flickity]",null,!0],$.SOW.config.autoinit.fancybox=["$.SOW.vendor.fancybox.init","a.fancybox",null,!0],$.SOW.config.autoinit.cocoen=["$.SOW.vendor.cocoen.init","figure.cocoen",null,!0],$.SOW.config.autoinit.photoswipe=["$.SOW.vendor.photoswipe.init","a.photoswipe",{showHideOpacity:!1,history:!1,captionEl:!1,shareEl:!1,tapToClose:!1,tapToToggleControls:!1,escKey:!0,barsSize:{top:0,bottom:0}},!0],$.SOW.config.autoinit.swiper=["$.SOW.vendor.swiper.init",".swiper-container",null,!0],$.SOW.config.autoinit.leaflet=["$.SOW.vendor.leaflet.init",".map-leaflet",null,!0],$.SOW.config.autoinit.aos=["$.SOW.vendor.aos.init","null",null,!0],$.SOW.config.autoinit.slimscroll=["$.SOW.vendor.slimscroll.init",".slimscroll",{height:"100%",color:"#444",size:"3px",railColor:"#ccc",railOpacity:.5,alwaysVisible:!1,railVisible:!0,distance:"0",wheelStep:10,allowPageScroll:!1,disableFadeOut:!1},!0],$.SOW.config.autoinit.nestable=["$.SOW.vendor.nestable.init",".nestable",null,!0],$.SOW.config.autoinit.fullcalendar=["$.SOW.vendor.fullcalendar.init",".fullcalendar",{plugins:["interaction","dayGrid","timeGrid","list","bootstrap","googleCalendar"],editable:!0,eventLimit:!0,locale:"en",themeSystem:"bootstrap",defaultView:"dayGridMonth",defaultDate:"2021-01-08T10:47:12.899Z",timeZone:"UTC",header:{left:"prev,next today, addEventButton",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"},buttonText:{today:"today",month:"month",week:"week",day:"day",list:"list"},eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"short"}},!0],$.SOW.config.autoinit.datepicker=["$.SOW.vendor.datepicker.init",".datepicker",null,!0],$.SOW.config.autoinit.daterangepicker=["$.SOW.vendor.daterangepicker.init",".rangepicker",null,!0],$.SOW.config.autoinit.colorpicker=["$.SOW.vendor.colorpicker.init",".colorpicker",{classic:{swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 0.95)","rgba(156, 39, 176, 0.9)","rgba(103, 58, 183, 0.85)","rgba(63, 81, 181, 0.8)","rgba(33, 150, 243, 0.75)","rgba(3, 169, 244, 0.7)","rgba(0, 188, 212, 0.7)","rgba(0, 150, 136, 0.75)","rgba(76, 175, 80, 0.8)","rgba(139, 195, 74, 0.85)","rgba(205, 220, 57, 0.9)","rgba(255, 235, 59, 0.95)","rgba(255, 193, 7, 1)"]},monolith:{swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 0.95)","rgba(156, 39, 176, 0.9)","rgba(103, 58, 183, 0.85)","rgba(63, 81, 181, 0.8)","rgba(33, 150, 243, 0.75)","rgba(3, 169, 244, 0.7)"]},nano:{swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 0.95)","rgba(156, 39, 176, 0.9)","rgba(103, 58, 183, 0.85)","rgba(63, 81, 181, 0.8)","rgba(33, 150, 243, 0.75)","rgba(3, 169, 244, 0.7)"]},interaction:{hex:!0,rgba:!0,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},!0],$.SOW.config.autoinit.flot=["$.SOW.vendor.flot.init",".flot-chart",null,!0],$.SOW.config.autoinit.easypie=["$.SOW.vendor.easypie.init",".easypie",null,!0],$.SOW.config.autoinit.sparkline=["$.SOW.vendor.sparkline.init",".sparkline",null,!0],$.SOW.config.autoinit.chartjs=["$.SOW.vendor.chartjs.init",".chartjs",null,!0],$.SOW.config.autoinit.mediumeditor=["$.SOW.vendor.mediumeditor.init",".medium-editor",null,!0],$.SOW.config.autoinit.markdowneditor=["$.SOW.vendor.markdowneditor.init",".markdown-editor",null,!0],$.SOW.config.autoinit.summernoteeditor=["$.SOW.vendor.summernoteeditor.init",".summernote-editor",null,!0],$.SOW.config.autoinit.quilleditor=["$.SOW.vendor.quilleditor.init",".quill-editor",null,!0],$.SOW.config.autoinit.datatables=["$.SOW.vendor.datatables.init",".table-datatable",null,!0],$.SOW.config.autoinit.prismjs=["$.SOW.vendor.prismjs.init","pre",null,!0],$.SOW.config["vendor:external_js"]||($.SOW.config["vendor:external_js"]=[]),$.SOW.config["vendor:external_js"].vendor=["flickity","fancybox","cocoen","photoswipe","swiper","leaflet","fullcalendar","datepicker","daterangepicker","colorpicker","flot","easypie","sparkline","chartjs","mediumeditor","markdowneditor","summernoteeditor","quilleditor","datatables","prismjs","pdfmake"];