!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e=e||self).bootstrap={},e.jQuery,e.Popper)}(this,function(e,p,d){"use strict";function i(e,t){for(var n=0;nthis._items.length-1||e<0))if(this._isSliding)p(this._element).one("slid.bs.carousel",function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},q._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},q._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:{"*":["class","dir","id","lang","role",/^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","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},oe={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"},re=((Z=se.prototype).enable=function(){this._isEnabled=!0},Z.disable=function(){this._isEnabled=!1},Z.toggleEnabled=function(){this._isEnabled=!this._isEnabled},Z.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},Z.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p(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},Z.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=m.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=m.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&p(o).addClass("fade");var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(o).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(o).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new d(this.element,o,this._getPopperConfig(a)),p(o).addClass("show"),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(p(this.tip).hasClass("fade")){var u=m.getTransitionDurationFromElement(this.tip);p(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(u)}else c()}},Z.hide=function(e){function t(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),o=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(o),!o.isDefaultPrevented()){if(p(i).removeClass("show"),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,p(this.tip).hasClass("fade")){var r=m.getTransitionDurationFromElement(i);p(i).one(m.TRANSITION_END,t).emulateTransitionEnd(r)}else t();this._hoverState=""}},Z.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},Z.isWithContent=function(){return Boolean(this.getTitle())},Z.addAttachmentClass=function(e){p(this.getTipElement()).addClass("bs-tooltip-"+e)},Z.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},Z.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(".tooltip-inner")),this.getTitle()),p(e).removeClass("fade show")},Z.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Y(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},Z.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)},Z._getPopperConfig=function(e){var t=this;return s(s({},{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)},Z._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s(s({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},Z._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},Z._getAttachment=function(e){return ne[e.toUpperCase()]},Z._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if("manual"!==e){var t="hover"===e?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n="hover"===e?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),this._hideModalHandler=function(){i.element&&i.hide()},p(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s(s({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},Z._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",""))},Z._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),p(t.getTipElement()).hasClass("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){"show"===t._hoverState&&t.show()},t.config.delay.show):t.show())},Z._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":"hover"]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},Z._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},Z._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==ee.indexOf(e)&&delete t[e]}),"number"==typeof(e=s(s(s({},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()),m.typeCheckConfig($,e,this.constructor.DefaultType),e.sanitize&&(e.template=Y(e.template,e.whiteList,e.sanitizeFn)),e},Z._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},Z._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(J);null!==t&&t.length&&e.removeClass(t.join(""))},Z._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},Z._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},se._jQueryInterface=function(n){return this.each(function(){var e=p(this).data("bs.tooltip"),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new se(this,t),p(this).data("bs.tooltip",e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(se,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return ie}},{key:"NAME",get:function(){return $}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return oe}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return te}}]),se);function se(e,t){if(void 0===d)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()}p.fn[$]=re._jQueryInterface,p.fn[$].Constructor=re,p.fn[$].noConflict=function(){return p.fn[$]=G,re._jQueryInterface};var ae="popover",le=p.fn[ae],ce=new RegExp("(^|\\s)bs-popover\\S+","g"),ue=s(s({},re.Default),{},{placement:"right",trigger:"click",content:"",template:''}),de=s(s({},re.DefaultType),{},{content:"(string|element|function)"}),fe={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"},he=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){p(this.getTipElement()).addClass("bs-popover-"+e)},o.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},o.setContent=function(){var e=p(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")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(ce);null!==t&&0=this._offsets[o]&&(void 0===this._offsets[o+1]||e li > .active":".active";i=(i=p.makeArray(p(t).find(r)))[i.length-1]}var s=p.Event("hide.bs.tab",{relatedTarget:this._element}),a=p.Event("show.bs.tab",{relatedTarget:i});if(i&&p(i).trigger(s),p(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,t);var l=function(){var e=p.Event("hidden.bs.tab",{relatedTarget:n._element}),t=p.Event("shown.bs.tab",{relatedTarget:i});p(i).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},we.dispose=function(){p.removeData(this._element,"bs.tab"),this._element=null},we._activate=function(e,t,n){function i(){return o._transitionComplete(e,r,n)}var o=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(".active"):p(t).find("> li > .active"))[0],s=n&&r&&p(r).hasClass("fade");if(r&&s){var a=m.getTransitionDurationFromElement(r);p(r).removeClass("show").one(m.TRANSITION_END,i).emulateTransitionEnd(a)}else i()},we._transitionComplete=function(e,t,n){if(t){p(t).removeClass("active");var i=p(t.parentNode).find("> .dropdown-menu .active")[0];i&&p(i).removeClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),m.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&p(e.parentNode).hasClass("dropdown-menu")){var o=p(e).closest(".dropdown")[0];if(o){var r=[].slice.call(o.querySelectorAll(".dropdown-toggle"));p(r).addClass("active")}e.setAttribute("aria-expanded",!0)}n&&n()},Te._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data("bs.tab");if(t||(t=new Te(this),e.data("bs.tab",t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(Te,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),Te);function Te(e){this._element=e}p(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),Ee._jQueryInterface.call(p(this),"show")}),p.fn.tab=Ee._jQueryInterface,p.fn.tab.Constructor=Ee,p.fn.tab.noConflict=function(){return p.fn.tab=Ce,Ee._jQueryInterface};var Se,ke=p.fn.toast,Ie={animation:"boolean",autohide:"boolean",delay:"number"},xe={animation:!0,autohide:!0,delay:500},Ae=((Se=De.prototype).show=function(){var e=this,t=p.Event("show.bs.toast");if(p(this._element).trigger(t),!t.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove("showing"),e._element.classList.add("show"),p(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove("hide"),m.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},Se.hide=function(){if(this._element.classList.contains("show")){var e=p.Event("hide.bs.toast");p(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},Se.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains("show")&&this._element.classList.remove("show"),p(this._element).off("click.dismiss.bs.toast"),p.removeData(this._element,"bs.toast"),this._element=null,this._config=null},Se._getConfig=function(e){return e=s(s(s({},xe),p(this._element).data()),"object"==typeof e&&e?e:{}),m.typeCheckConfig("toast",e,this.constructor.DefaultType),e},Se._setListeners=function(){var e=this;p(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',function(){return e.hide()})},Se._close=function(){function e(){t._element.classList.add("hide"),p(t._element).trigger("hidden.bs.toast")}var t=this;if(this._element.classList.remove("show"),this._config.animation){var n=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},De._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data("bs.toast");if(t||(t=new De(this,"object"==typeof n&&n),e.data("bs.toast",t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},r(De,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return Ie}},{key:"Default",get:function(){return xe}}]),De);function De(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}p.fn.toast=Ae._jQueryInterface,p.fn.toast.Constructor=Ae,p.fn.toast.noConflict=function(){return p.fn.toast=ke,Ae._jQueryInterface},e.Alert=l,e.Button=h,e.Carousel=E,e.Collapse=D,e.Dropdown=M,e.Modal=W,e.Popover=he,e.Scrollspy=be,e.Tab=Ee,e.Toast=Ae,e.Tooltip=re,e.Util=m,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(u){function e(){}function d(e,t){m.ev.on("mfp"+e+y,t)}function f(e,t,n,i){var o=document.createElement("div");return o.className="mfp-"+e,n&&(o.innerHTML=n),i?t&&t.appendChild(o):(o=u(o),t&&o.appendTo(t)),o}function h(e,t){m.ev.triggerHandler("mfp"+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e]&&m.st.callbacks[e].apply(m,u.isArray(t)?t:[t]))}function p(e){return e===t&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=u(m.st.closeMarkup.replace("%title%",m.st.tClose)),t=e),m.currTemplate.closeBtn}function r(){u.magnificPopup.instance||((m=new e).init(),u.magnificPopup.instance=m)}var m,i,g,o,v,t,l="Close",c="BeforeClose",_="MarkupParse",b="Open",y=".mfp",w="mfp-ready",n="mfp-removing",s="mfp-prevent-close",a=!!window.jQuery,C=u(window);e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=u(document),m.popupsCache={}},open:function(e){var t;if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;var n,i=e.items;for(t=0;t(e||C.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!u.contains(m.wrap[0],e.target))return m._setFocus(),!1},_parseMarkup:function(o,e,t){var r;t.data&&(e=u.extend(t.data,e)),h(_,[o,e,t]),u.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(r=e.split("_")).length){var n=o.find(y+"-"+r[0]);if(0").attr("src",t).attr("class",n.attr("class"))):n.attr(r[1],t)}}else o.find(y+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===m.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return m.scrollbarSize}},u.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return r(),(e=e?u.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return u.magnificPopup.instance&&u.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(u.magnificPopup.defaults[e]=t.options),u.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},u.fn.magnificPopup=function(e){r();var t=u(this);if("string"==typeof e)if("open"===e){var n,i=a?t.data("magnificPopup"):t[0].magnificPopup,o=parseInt(arguments[1],10)||0;n=i.items?i.items[o]:(n=t,i.delegate&&(n=n.find(i.delegate)),n.eq(o)),m._openClick({mfpEl:n},t,i)}else m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1));else e=u.extend(!0,{},e),a?t.data("magnificPopup",e):t[0].magnificPopup=e,m.addGroup(t,e);return t};function E(){k&&(S.after(k.addClass(T)).detach(),k=null)}var T,S,k,I="inline";u.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(I),d(l+"."+I,function(){E()})},getInline:function(e,t){if(E(),e.src){var n=m.st.inline,i=u(e.src);if(i.length){var o=i[0].parentNode;o&&o.tagName&&(S||(T=n.hiddenClass,S=f(T),T="mfp-"+T),k=i.after(S).detach().removeClass(T)),m.updateStatus("ready")}else m.updateStatus("error",n.tNotFound),i=u("
");return e.inlineElement=i}return m.updateStatus("ready"),m._parseMarkup(t,{},e),t}}});function x(){D&&u(document.body).removeClass(D)}function A(){x(),m.req&&m.req.abort()}var D,O="ajax";u.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){m.types.push(O),D=m.st.ajax.cursor,d(l+"."+O,A),d("BeforeChange."+O,A)},getAjax:function(o){D&&u(document.body).addClass(D),m.updateStatus("loading");var e=u.extend({url:o.src,success:function(e,t,n){var i={data:e,xhr:n};h("ParseAjax",i),m.appendContent(u(i.data),O),o.finished=!0,x(),m._setFocus(),setTimeout(function(){m.wrap.addClass(w)},16),m.updateStatus("ready"),h("AjaxContentAdded")},error:function(){x(),o.finished=o.loadError=!0,m.updateStatus("error",m.st.ajax.tError.replace("%url%",o.src))}},m.st.ajax.settings);return m.req=u.ajax(e),""}}});var N;u.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image"),d(b+t,function(){"image"===m.currItem.type&&e.cursor&&u(document.body).addClass(e.cursor)}),d(l+t,function(){e.cursor&&u(document.body).removeClass(e.cursor),C.off("resize"+y)}),d("Resize"+t,m.resizeImage),m.isLowIE&&d("AfterChange",m.resizeImage)},resizeImage:function(){var e=m.currItem;if(e&&e.img&&m.st.image.verticalFit){var t=0;m.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",m.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,h("ImageHasSize",e),e.imgHidden&&(m.content&&m.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],o=function(e){N&&clearInterval(N),N=setInterval(function(){0
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(L),d("BeforeChange",function(e,t,n){t!==n&&(t===L?P():n===L&&P(!0))}),d(l+"."+L,function(){P()})},getIframe:function(e,t){var n=e.src,i=m.st.iframe;u.each(i.patterns,function(){if(-1',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var r=m.st.gallery,e=".mfp-gallery";if(m.direction=!0,!r||!r.enabled)return!1;v+=" mfp-gallery",d(b+e,function(){r.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){if(1=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){var e,t=m.st.gallery.preload,n=Math.min(t[0],m.items.length),i=Math.min(t[1],m.items.length);for(e=1;e<=(m.direction?i:n);e++)m._preloadItem(m.index+e);for(e=1;e<=(m.direction?n:i);e++)m._preloadItem(m.index-e)},_preloadItem:function(e){if(e=F(e),!m.items[e].preloaded){var t=m.items[e];t.parsed||(t=m.parseEl(e)),h("LazyLoad",t),"image"===t.type&&(t.img=u('').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,h("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var M="retina";u.magnificPopup.registerModule(M,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1The image could not be loaded.',removalDelay:160,preloader:!1,fixedContentPos:!1}),l('.wp-block-gallery a[href$=".jpg"], .wp-block-gallery a[href$=".jpeg"], .wp-block-gallery a[href$=".png"], .wp-block-gallery a[href$=".gif, "], .cortex-popup, .gallery-item a').click(function(e){e.preventDefault();var n=[],t=l(this).attr("href"),i=l(this).attr("title");n.push({src:t,title:i}),l(this).parent().parent().nextAll().children().find("a").each(function(){var e=l(this).attr("href"),t=l(this).attr("title");n.push({src:e,title:t})}),l(this).parent().parent().prevAll().children().find("a").each(function(){var e=l(this).attr("href"),t=l(this).attr("title");n.push({src:e,title:t})}),l.magnificPopup.open({items:n,type:"image",gallery:{enabled:!0},mainClass:"mfp-zoom-in",callbacks:{open:function(){l.magnificPopup.instance.next=function(){var e=this;e.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){l.magnificPopup.proto.next.call(e)},120)},l.magnificPopup.instance.prev=function(){var e=this;e.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){l.magnificPopup.proto.prev.call(e)},120)}},imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass("mfp-image-loaded")},16)}}})});var r,s=l("#fullscreensearch");l(".btn-nav-search").on("click",function(e){e.preventDefault(),o=document.activeElement,l("body").on("keydown",s,function(e){9===e.keyCode&&(e.shiftKey?document.activeElement===n&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),n.focus()))});var t="a[href], input:not([disabled]), button:not([disabled])";t=document.querySelector("#fullscreensearch").querySelectorAll(t);var n=(t=Array.prototype.slice.call(t))[0],i=t[t.length-1];l("#fullscreensearch").addClass("open"),t[0].focus()}),l("#fullscreensearch .search-close, #fullscreensearch .search-close .fa-close").on("click",function(e){e.target!=this&&"search-close"!=e.target.className&&27!=e.keyCode||(l(this).removeClass("open"),l(this).parent().removeClass("open"),l(this).parent().parent().removeClass("open"),o.focus())});var a=l("#wrapper-navbar");l(".navbar-toggler").on("click",function(e){e.preventDefault(),l("body").on("keydown",a,function(e){9===e.keyCode&&(e.shiftKey?document.activeElement===n&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),n.focus()))}),r=document.activeElement;var t="a[href]:not(.custom-logo-link):not(.btn-nav-search), input:not([disabled]):not(#searchsubmit):not(#s), button:not([disabled])";t=document.querySelector("#wrapper-navbar").querySelectorAll(t);var n=(t=Array.prototype.slice.call(t))[0],i=t[t.length-1];t[0].focus()}),l("#wrapper-navbar").on("click",'.navbar-toggler[aria-expanded="true"]',function(e){e.target!=this&&".navbar-toggler"!=e.target.className&&27!=e.keyCode||(l(this).addClass("collapsed"),l(this).attr("aria-expanded","false"),r.focus())})},n)}]);