!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="undefined"!=typeof globalThis?globalThis: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;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=m.getTransitionDurationFromElement(this._dialog);p(this._element).off(m.TRANSITION_END),p(this._element).one(m.TRANSITION_END,function(){e._element.classList.remove("modal-static"),n||p(e._element).one(m.TRANSITION_END,function(){e._element.style.overflowY=""}).emulateTransitionEnd(e._element,i)}).emulateTransitionEnd(i),this._element.focus()}else this.hide()},R._showElement=function(e){var t=this,n=p(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;function o(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,p(t._element).trigger(r)}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"),p(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&m.reflow(this._element),p(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var s,r=p.Event("shown.bs.modal",{relatedTarget:e});n?(s=m.getTransitionDurationFromElement(this._dialog),p(this._dialog).one(m.TRANSITION_END,o).emulateTransitionEnd(s)):o()},R._enforceFocus=function(){var t=this;p(document).off("focusin.bs.modal").on("focusin.bs.modal",function(e){document!==e.target&&t._element!==e.target&&0===p(t._element).has(e.target).length&&t._element.focus()})},R._setEscapeEvent=function(){var t=this;this._isShown?p(this._element).on("keydown.dismiss.bs.modal",function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()}):this._isShown||p(this._element).off("keydown.dismiss.bs.modal")},R._setResizeEvent=function(){var t=this;this._isShown?p(window).on("resize.bs.modal",function(e){return t.handleUpdate(e)}):p(window).off("resize.bs.modal")},R._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(){p(document.body).removeClass("modal-open"),e._resetAdjustments(),e._resetScrollbar(),p(e._element).trigger("hidden.bs.modal")})},R._removeBackdrop=function(){this._backdrop&&(p(this._backdrop).remove(),this._backdrop=null)},R._showBackdrop=function(e){var t,n,i=this,o=p(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",o&&this._backdrop.classList.add(o),p(this._backdrop).appendTo(document.body),p(this._element).on("click.dismiss.bs.modal",function(e){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:e.target===e.currentTarget&&i._triggerBackdropTransition()}),o&&m.reflow(this._backdrop),p(this._backdrop).addClass("show"),!e)return;if(!o)return void e();var s=m.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(m.TRANSITION_END,e).emulateTransitionEnd(s)}else!this._isShown&&this._backdrop?(p(this._backdrop).removeClass("show"),t=function(){i._removeBackdrop(),e&&e()},p(this._element).hasClass("fade")?(n=m.getTransitionDurationFromElement(this._backdrop),p(this._backdrop).one(m.TRANSITION_END,t).emulateTransitionEnd(n)):t()):e&&e()},R._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")},R._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},R._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},ie={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"},oe=((X=se.prototype).enable=function(){this._isEnabled=!0},X.disable=function(){this._isEnabled=!1},X.toggleEnabled=function(){this._isEnabled=!this._isEnabled},X.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)}},X.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},X.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(),s=m.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&p(o).addClass("fade");var r="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(r);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,u=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)};p(this.tip).hasClass("fade")?(c=m.getTransitionDurationFromElement(this.tip),p(this.tip).one(m.TRANSITION_END,u).emulateTransitionEnd(c)):u()}},X.hide=function(e){function t(){"show"!==i._hoverState&&o.parentNode&&o.parentNode.removeChild(o),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),p(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var n,i=this,o=this.getTipElement(),s=p.Event(this.constructor.Event.HIDE);p(this.element).trigger(s),s.isDefaultPrevented()||(p(o).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")?(n=m.getTransitionDurationFromElement(o),p(o).one(m.TRANSITION_END,t).emulateTransitionEnd(n)):t(),this._hoverState="")},X.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},X.isWithContent=function(){return Boolean(this.getTitle())},X.addAttachmentClass=function(e){p(this.getTipElement()).addClass("bs-tooltip-"+e)},X.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},X.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(".tooltip-inner")),this.getTitle()),p(e).removeClass("fade show")},X.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())},X.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},X._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)},X._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},X._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},X._getAttachment=function(e){return te[e.toUpperCase()]},X._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t,n;"click"===e?p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):"manual"!==e&&(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=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},X._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",""))},X._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())},X._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())},X._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},X._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==J.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()),m.typeCheckConfig(Z,e,this.constructor.DefaultType),e.sanitize&&(e.template=Y(e.template,e.whiteList,e.sanitizeFn)),e},X._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},X._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(G);null!==t&&t.length&&e.removeClass(t.join(""))},X._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},X._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]()}})},s(se,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return ne}},{key:"NAME",get:function(){return Z}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return ie}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return ee}}]),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[Z]=oe._jQueryInterface,p.fn[Z].Constructor=oe,p.fn[Z].noConflict=function(){return p.fn[Z]=$,oe._jQueryInterface};var re="popover",ae=p.fn[re],le=new RegExp("(^|\\s)bs-popover\\S+","g"),ce=r({},oe.Default,{placement:"right",trigger:"click",content:"",template:''}),ue=r({},oe.DefaultType,{content:"(string|element|function)"}),de={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(le);null!==t&&0=this._offsets[o]&&(void 0===this._offsets[o+1]||e li > .active":".active",o=(o=p.makeArray(p(t).find(i)))[o.length-1]),s=p.Event("hide.bs.tab",{relatedTarget:this._element}),r=p.Event("show.bs.tab",{relatedTarget:o}),o&&p(o).trigger(s),p(this._element).trigger(r),r.isDefaultPrevented()||s.isDefaultPrevented()||(n&&(e=document.querySelector(n)),this._activate(this._element,t),a=function(){var e=p.Event("hidden.bs.tab",{relatedTarget:l._element}),t=p.Event("shown.bs.tab",{relatedTarget:o});p(o).trigger(e),p(l._element).trigger(t)},e?this._activate(e,e.parentNode,a):a()))},ye.dispose=function(){p.removeData(this._element,"bs.tab"),this._element=null},ye._activate=function(e,t,n){function i(){return s._transitionComplete(e,r,n)}var o,s=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(".active"):p(t).find("> li > .active"))[0],a=n&&r&&p(r).hasClass("fade");r&&a?(o=m.getTransitionDurationFromElement(r),p(r).removeClass("show").one(m.TRANSITION_END,i).emulateTransitionEnd(o)):i()},ye._transitionComplete=function(e,t,n){var i,o,s;t&&(p(t).removeClass("active"),(i=p(t.parentNode).find("> .dropdown-menu .active")[0])&&p(i).removeClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)),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")&&((o=p(e).closest(".dropdown")[0])&&(s=[].slice.call(o.querySelectorAll(".dropdown-toggle")),p(s).addClass("active")),e.setAttribute("aria-expanded",!0)),n&&n()},Ee._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data("bs.tab");if(t||(t=new Ee(this),e.data("bs.tab",t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(Ee,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),Ee);function Ee(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(),Ce._jQueryInterface.call(p(this),"show")}),p.fn.tab=Ce._jQueryInterface,p.fn.tab.Constructor=Ce,p.fn.tab.noConflict=function(){return p.fn.tab=we,Ce._jQueryInterface};var Te,Se=p.fn.toast,ke={animation:"boolean",autohide:"boolean",delay:"number"},Ie={animation:!0,autohide:!0,delay:500},xe=((Te=Ae.prototype).show=function(){var e,t,n=this,i=p.Event("show.bs.toast");p(this._element).trigger(i),i.isDefaultPrevented()||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),e=function(){n._element.classList.remove("showing"),n._element.classList.add("show"),p(n._element).trigger("shown.bs.toast"),n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},this._element.classList.remove("hide"),m.reflow(this._element),this._element.classList.add("showing"),this._config.animation?(t=m.getTransitionDurationFromElement(this._element),p(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(t)):e())},Te.hide=function(){var e;this._element.classList.contains("show")&&(e=p.Event("hide.bs.toast"),p(this._element).trigger(e),e.isDefaultPrevented()||this._close())},Te.dispose=function(){this._clearTimeout(),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},Te._getConfig=function(e){return e=r({},Ie,p(this._element).data(),"object"==typeof e&&e?e:{}),m.typeCheckConfig("toast",e,this.constructor.DefaultType),e},Te._setListeners=function(){var e=this;p(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',function(){return e.hide()})},Te._close=function(){function e(){n._element.classList.add("hide"),p(n._element).trigger("hidden.bs.toast")}var t,n=this;this._element.classList.remove("show"),this._config.animation?(t=m.getTransitionDurationFromElement(this._element),p(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(t)):e()},Te._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},Ae._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data("bs.toast");if(t||(t=new Ae(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)}})},s(Ae,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"DefaultType",get:function(){return ke}},{key:"Default",get:function(){return Ie}}]),Ae);function Ae(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}p.fn.toast=xe._jQueryInterface,p.fn.toast.Constructor=xe,p.fn.toast.noConflict=function(){return p.fn.toast=Se,xe._jQueryInterface},e.Alert=a,e.Button=h,e.Carousel=C,e.Collapse=A,e.Dropdown=B,e.Modal=Q,e.Popover=he,e.Scrollspy=ve,e.Tab=Ce,e.Toast=xe,e.Tooltip=oe,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 h(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 f(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 s(){u.magnificPopup.instance||((m=new e).init(),u.magnificPopup.instance=m)}var m,i,g,o,_,t,l="Close",c="BeforeClose",v="MarkupParse",b="Open",y=".mfp",w="mfp-ready",n="mfp-removing",r="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){if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;for(var t,n=e.items,i=0;i(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 s;t.data&&(e=u.extend(t.data,e)),f(v,[o,e,t]),u.each(e,function(e,t){return void 0===t||!1===t||void(1<(s=e.split("_")).length?0<(n=o.find(y+"-"+s[0])).length&&("replaceWith"===(i=s[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===i?n.is("img")?n.attr("src",t):n.replaceWith(u("").attr("src",t).attr("class",n.attr("class"))):n.attr(s[1],t)):o.find(y+"-"+e).html(t));var n,i})},_getScrollbarSize:function(){var e;return void 0===m.scrollbarSize&&((e=document.createElement("div")).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)),m.scrollbarSize}},u.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return s(),(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){s();var t,n,i,o=u(this);return"string"==typeof e?"open"===e?(t=a?o.data("magnificPopup"):o[0].magnificPopup,n=parseInt(arguments[1],10)||0,i=t.items?t.items[n]:(i=o,t.delegate&&(i=i.find(t.delegate)),i.eq(n)),m._openClick({mfpEl:i},o,t)):m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1)):(e=u.extend(!0,{},e),a?o.data("magnificPopup",e):o[0].magnificPopup=e,m.addGroup(o,e)),o};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,i=m.st.inline,o=u(e.src);return o.length?((n=o[0].parentNode)&&n.tagName&&(S||(T=i.hiddenClass,S=h(T),T="mfp-"+T),k=o.after(S).detach().removeClass(T)),m.updateStatus("ready")):(m.updateStatus("error",i.tNotFound),o=u("
")),e.inlineElement=o}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,N="ajax";u.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){m.types.push(N),D=m.st.ajax.cursor,d(l+"."+N,A),d("BeforeChange."+N,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};f("ParseAjax",i),m.appendContent(u(i.data),N),o.finished=!0,x(),m._setFocus(),setTimeout(function(){m.wrap.addClass(w)},16),m.updateStatus("ready"),f("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 O;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,t=m.currItem;t&&t.img&&m.st.image.verticalFit&&(e=0,m.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",m.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,O&&clearInterval(O),e.isCheckingImgSize=!1,f("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){O&&clearInterval(O),O=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?j():n===L&&j(!0))}),d(l+"."+L,function(){j()})},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 s=m.st.gallery,e=".mfp-gallery";if(m.direction=!0,!s||!s.enabled)return!1;_+=" mfp-gallery",d(b+e,function(){s.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){if(1=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){for(var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),i=1;i<=(m.direction?n:t);i++)m._preloadItem(m.index+i);for(i=1;i<=(m.direction?t:n);i++)m._preloadItem(m.index-i)},_preloadItem:function(e){var t;e=F(e),m.items[e].preloaded||((t=m.items[e]).parsed||(t=m.parseEl(e)),f("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,f("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(){var n,i;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 s,r=l("#fullscreensearch");l(".btn-nav-search").on("click",function(e){e.preventDefault(),o=document.activeElement,l("body").on("keydown",r,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()))}),s=l(".btn-nav-search");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||s.focus()})},n)}]);