function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),_setPrototypeOf(e.prototype.constructor=e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createForOfIteratorHelperLoose(e,t){var n,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),n=0,function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}!function(c,l){"use strict";c.EngageBoxTriggers={onIdle:function(e){var t,n=["mousedown","mousemove","keypress","scroll","touchstart","click"];function o(){clearTimeout(t),t=setTimeout(i,e.time)}function i(){e.callback(),n.forEach(function(e){l.removeEventListener(e,o)})}this.start=function(){o(),c.addEventListener("load",o),n.forEach(function(e){l.addEventListener(e,o)})},this.bind=function(){this.start()}},onAdBlockDetect:function(n){function e(){var e,t;o||((e=l.createElement("div")).className="adsbygoogle pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links ad-text adSense adBlock adContent adBanner ebAdDetector",e.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),l.body.appendChild(e),t="none"===getComputedStyle(e,null).display,setTimeout(function(){e.remove()},5e3),t&&(o=!0,n.callback()))}var o=!1;return this.bind=function(){e(),c.onload=e,c.onload=setTimeout(e,1e3)},this},onHover:function(e){function t(){o=setTimeout(function(){e.callback()},e.delay)}function n(){clearTimeout(o)}var o,i=l.querySelectorAll(e.selector);if(i.length)return this.bind=function(){i.forEach(function(e){e.addEventListener("mouseover",t),e.addEventListener("mouseout",n)})},this.unbind=function(){i.forEach(function(e){e.removeEventListener("mouseover",t),e.removeEventListener("mouseout",n)})},this},onExit:function(t){function e(e){e.relatedTarget||e.toElement||e.clientY>t.sensitivity||(i=setTimeout(s,t.delay))}function n(){i&&(clearTimeout(i),i=null)}var o=this,i=(t=EngageBox.extend({sensitivity:20,aggressive:!1,timer:2e3,delay:0,callback:null},t),null),s=function(){t.callback(),t.aggressive||o.unbind()};return this.bind=function(){setTimeout(function(){l.addEventListener("mouseout",e),l.addEventListener("mouseenter",n)},t.timer)},this.unbind=function(){l.removeEventListener("mouseout",e),l.removeEventListener("mouseenter",n)},this},onScrollDepth:function(t){function e(){var e=r()==t.scroll_dir;s()&&e&&"function"==typeof t.callback&&(t.callback(),t.once)&&o.unbind(),a=l.body.getBoundingClientRect().top}var n,o=this,i=(t=EngageBox.extend({scroll_depth:"percentage",scroll_depth_value:80,scroll_dir:"down",callback:null,once:!0},t),function(){var e=l.documentElement,t=l.body,n="scrollTop",o="scrollHeight";return(e[n]||t[n])/((e[o]||t[o])-e.clientHeight)*100}),s=function(){var e="percentage"==t.scroll_depth?i():c.scrollY;return"up"==r()?e<=t.scroll_depth_value:e>=t.scroll_depth_value},r=function(){var e=l.body.getBoundingClientRect().top;return a<e?"up":"down"},a=0;return this.bind=function(){n=EngageBox.throttle(e,10),e(),c.addEventListener("scroll",n)},this.unbind=function(){c.removeEventListener("scroll",n)},this},onClick:function(t){var e;if((t=EngageBox.extend({selector:null,callback:null},t)).selector)return e=function(e){e.target.closest(t.selector)&&(t.prevent_default&&e.preventDefault(),t.callback(e))},this.bind=function(){return l.addEventListener("click",e)},this.unbind=function(){return l.removeEventListener("click",e)},this},onExternalLink:function(o){o=EngageBox.extend({selector:null,callback:null},o);function e(e){var t=e.target;if("a"!=t.nodeName.toLocaleLowerCase()){var n=t.closest("a");if(!n)return;t=n}t.classList.contains("eb-btn-continue")||o.selector&&!t.matches(o.selector)||location.hostname!==t.hostname&&t.hostname.length&&(e.preventDefault(),o.callback(t))}return this.bind=function(){l.addEventListener("click",e)},this.unbind=function(){l.removeEventListener("click",e)},this},onPageReady:function(e){return this.bind=function(){e.callback()},this},onPageLoad:function(e){return this.bind=function(){c.addEventListener("load",function(){e.callback()})},this},onElementVisibility:function(t){var n=this;if((t=EngageBox.extend({selector:"",threshold:.5,on:"",off:"",once:!0},t)).selector&&c.IntersectionObserver){var o,i,e=l.querySelectorAll(t.selector);if(e.length)return o=!1,i=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting?(t.on(),o=!0,"function"!=typeof t.off&&t.once&&n.unbind()):"function"==typeof t.off&&(t.off(),o)&&t.once&&n.unbind()})},{threshold:t.threshold}),this.bind=function(){e.forEach(function(e){i.observe(e)})},this.unbind=function(){e.forEach(function(e){i.unobserve(e)})},this}}}}(window,document),function(i,r,a){"use strict";var o,n=[];i.EngageBox=function(s){function l(t,e){var n,o=s.call(this)||this,i=(o.name="EngageBox",o.el=t,o.el.box=t.querySelector(".eb-dialog"),o.id=parseInt(t.dataset.id),o.activeTriggers=[],{trigger:"onPageLoad",trigger_selector:"",prevent_default:!(o.opened=!1),delay:0,scroll_depth:"percentage",scroll_depth_value:80,scroll_dir:"down",firing_frequency:1,reverse_scroll_close:!1,threshold:.5,close_out_viewport:!1,exit_timer:2e3,idle_time:1e4,animation_open:"transition.fadeIn",animation_close:"transition.fadeOut",animation_duration:400,disable_page_scroll:!1,close_on_esc:!1,ga_tracking:!1,ga_tracking_id:"",ga_tracking_label:o.name,css_class_prefix:"eb-",auto_focus:!1,test_mode:!1,debug:!1});try{n=JSON.parse(t.dataset.options)}catch(e){console.warn("EngageBox: Cannot parse box's data-options property. Using default settings.",t)}return o.options=o.constructor.extend(i,e||n||[]),o.init(),o}_inheritsLoose(l,s);var e=l.prototype;return e.open=function(n){var o=this,i=this.constructor.extend(_extends({},this.options),n);setTimeout(function(){var e,t;o.opened?o.log("Open Fail: Already opened."):o.isTransitioning()?o.log("Open Fail: Is triggering.."):!1===o.emitEvent("beforeOpen")?o.log("Open aborted"):(o.el.classList.add("triggering"),e=function(){o.el.classList.remove("eb-hide"),o.emitEvent("open",n)},t=function(){o.opened=!0,o.el.classList.remove("triggering"),o.emitEvent("afterOpen",n)},a?a(o.el.box,i.animation_open,{duration:i.animation_duration,begin:function(){e(),-1<i.animation_open.indexOf("callout.")&&(o.el.box.style.display="block",o.el.box.style.opacity="1")},complete:function(){t()}}):(e(),o.constructor.animateCSS(o.el.box,"eb-fadeIn",function(){t()})))},i.delay)},e.close=function(e){var t,n,o=this,i=this.constructor.extend(_extends({},this.options),e);this.opened?this.isTransitioning()?this.log("Close Fail: Is triggering."):!1===this.emitEvent("beforeClose")?this.log("Close aborted"):(this.el.classList.add("triggering"),t=function(){o.emitEvent("close",e)},n=function(){o.opened=!1,o.el.classList.remove("triggering"),o.emitEvent("afterClose",e),o.el.classList.add("eb-hide")},a?a(this.el.box,i.animation_close,{duration:i.animation_duration,begin:function(){t()},complete:function(){n()}}):(t(),this.constructor.animateCSS(this.el.box,"eb-fadeOut",function(){n()}))):this.log("Close Fail: Already closed")},e.getCSRFToken=function(){var e=this.constructor.getJoomlaOption("csrf.token");return e||this.options.token},e.getBaseURL=function(){var e=this.constructor.getJoomlaOption("system.paths");return(e?e.root+"/":i.location.pathname)+"index.php?option=com_ajax&plugin=rstbox&format=raw&task=trackevent&box="+this.id},e.request=function(t,n){n=this.constructor.extend({onSuccess:null},n);var e=Object.keys(t).map(function(e){return e+"="+t[e]}).join("&"),o=new XMLHttpRequest;o.open("POST",this.getBaseURL()+"&"+e,!0),o.setRequestHeader("X-Ajax-Engine",this.name),o.setRequestHeader("X-CSRF-Token",this.getCSRFToken()),o.onload=function(){var e=o.response;try{e=JSON.parse(e)}catch(e){}200===o.status&&n.onSuccess&&n.onSuccess.call(i,e,o)},o.send()},e.isTransitioning=function(){return this.el.classList.contains("triggering")},e.toggle=function(e){this.opened?this.close(e):this.open(e)},e.unbindTriggers=function(){this.activeTriggers.forEach(function(e){e.hasOwnProperty("unbind")&&e.unbind()}),this.log("Triggers unbound")},e.trigger_onScrollDepth=function(e){var t=this,n=this.constructor.extend(_extends({},this.options),e);return new EngageBoxTriggers.onScrollDepth({scroll_depth:n.scroll_depth,scroll_depth_value:n.scroll_depth_value,scroll_dir:n.scroll_dir,once:1==n.firing_frequency,callback:function(){t.open(),n.reverse_scroll_close&&new EngageBoxTriggers.onScrollDepth({scroll_depth:n.scroll_depth,scroll_depth_value:n.scroll_depth_value,scroll_dir:"up"==n.scroll_dir?"down":"up",callback:function(){t.close({temporary:!0})}}).bind()}})},e.trigger_onElementVisibility=function(e){var t=this,e=this.constructor.extend(_extends({},this.options),e);return new EngageBoxTriggers.onElementVisibility({selector:e.trigger_selector,threshold:e.threshold,once:1==e.firing_frequency,on:function(){t.open()},off:e.close_out_viewport?function(){return t.close({temporary:!0})}:null})},e.trigger_onHover=function(e){var t=this,e=this.constructor.extend(_extends({},this.options),e);return new EngageBoxTriggers.onHover({selector:e.trigger_selector,delay:e.delay,callback:function(){t.open({delay:0})}})},e.trigger_onClick=function(e){var t=this,e=this.constructor.extend(_extends({},this.options),e);return new EngageBoxTriggers.onClick({selector:e.trigger_selector,prevent_default:e.prevent_default,callback:function(e){t.triggerElement=e.target,t.open()}})},e.trigger_onExternalLink=function(e){var n=this,e=this.constructor.extend(_extends({},this.options),e);return new EngageBoxTriggers.onExternalLink({selector:e.trigger_selector,callback:function(e){n.triggerElement=e,n.open();var t=n.el.querySelector(".eb-btn-continue");t&&(t.setAttribute("href",e.getAttribute("href")),null!==e.getAttribute("target"))&&t.setAttribute("target",e.getAttribute("target"))}})},e.trigger_onExit=function(e){var t=this,e=this.constructor.extend(_extends({},this.options),e);return this.constructor.isTouchDevice()?new EngageBoxTriggers.onScrollDepth({scroll_depth_value:40,scroll_dir:"up",once:!0,callback:function(){t.open()}}):new EngageBoxTriggers.onExit({timer:e.exit_timer,aggressive:2==e.firing_frequency,callback:function(){t.open({delay:0})}})},e.trigger_onPageLoad=function(e){var t=this;return new EngageBoxTriggers.onPageLoad({callback:function(){t.open()}})},e.trigger_onPageReady=function(e){var t=this;return new EngageBoxTriggers.onPageReady({callback:function(){t.open()}})},e.trigger_onAdBlockDetect=function(){var e=this;return new EngageBoxTriggers.onAdBlockDetect({callback:function(){e.open()}})},e.trigger_onIdle=function(e){var t=this,e=this.constructor.extend(_extends({},this.options),e),n=new EngageBoxTriggers.onIdle({time:e.idle_time,callback:function(){t.open({delay:0})}});return 2==e.firing_frequency&&this.on("afterClose",function(){n.start()}),n},e.bindTrigger=function(e,t){var n="trigger_"+(e=e||this.options.trigger);"function"!=typeof this[n]?this.log("Trigger not found: "+e):(n=this[n](t)).hasOwnProperty("bind")?(n.bind(),this.activeTriggers.push(n),this.log("Bind Trigger: "+e)):(t="Cannot bind trigger "+e+". ",n.error&&(t+=n.error),this.warn(t))},e.emitEvent=function(e,t){(t=t||{}).instance=this;var n="EngageBox"+(e.charAt(0).toUpperCase()+e.slice(1)),n=new CustomEvent(n,{detail:t,cancelable:!0});return r.dispatchEvent(n),this.emit(e,this,t)},e.HTMLAttributes=function(){var c=this;0<n.length||r.addEventListener("click",function(e){var t=e.target;if(t.hasAttribute("data-ebox-cmd")||t.hasAttribute("data-ebox")){var n=t.dataset.ebox||t.closest(".eb-inst").dataset.id;if(n){var o=l.getInstance(n);if(o){for(var i=t.getAttribute("data-ebox-cmd"),s={},r=0;r<t.attributes.length;r++){var a=t.attributes[r];/^data-ebox-/.test(a.nodeName)&&(s[a.nodeName.replace(/^data-ebox-/,"")]=a.nodeValue)}switch(c.triggerElement=t,i){case"open":o.open(s);break;case"close":o.close(s);break;case"closeKeep":case"hide":console.warn('The "'+i+'" command is deprecated. Please, use "close" command instead.'),o.close(s);break;default:o.toggle(s)}"0"!=t.getAttribute("data-ebox-prevent")&&e.preventDefault()}else console.warn('EngageBox with ID "#'+n+'" not found on the page. Make sure it is published.')}}})},e.bindActions=function(){var o=this,e=(this.on("beforeOpen",function(){if(!o.options.test_mode&&o.constructor.getCookie(o.name.toLowerCase()+"_"+o.id))return!1}),r.querySelector("html")),t=this.options.css_class_prefix;this.updateBackdrop(),this.options.disable_page_scroll&&this.on("open",function(){e.classList.add(t+"page_no_scroll")}).on("afterClose",function(){e.classList.remove(t+"page_no_scroll")}),this.HTMLAttributes(),this.onResize=this.onResize.bind(this),this.onPopupClickElement=this.onPopupClickElement.bind(this),this.on("open",function(){e.classList.add(t+this.id+"-opening")}).on("afterOpen",function(){i.addEventListener("resize",this.onResize,!0),i.addEventListener("click",this.onPopupClickElement,!0),this.el.classList.add(t+"visible"),e.classList.add(t+this.id+"-open"),e.classList.remove(t+this.id+"-opening"),e.classList.add(t+this.el.dataset.type)}).on("close",function(){e.classList.add(t+this.id+"-closing")}).on("afterClose",function(){i.removeEventListener("resize",this.onResize,!0),i.removeEventListener("click",this.onPopupClickElement,!0),this.el.classList.remove(t+"visible"),e.classList.remove(t+this.id+"-open"),e.classList.remove(t+this.id+"-closing"),e.classList.remove(t+this.el.dataset.type)}),this.on("open",function(){o.request({event:"open"})}).on("afterClose",function(e,t){var n={event:"close"};t&&Object.keys(t).forEach(function(e){n["options["+e+"]"]=t[e]}),o.request(n,{onSuccess:function(e){"stop"==e.action&&o.destroy()}})})},e.onResize=function(){this.updateBackdrop()},e.onPopupClickElement=function(e){e.target.closest(".eb-backdrop")&&this.isOverlayEnabled()&&this.isOverlayClickable()&&this.close()},e.isOverlayEnabled=function(){return"1"===i.getComputedStyle(this.el.box).getPropertyValue("--eb-overlay-enabled")},e.isOverlayClickable=function(){return"1"===i.getComputedStyle(this.el.box).getPropertyValue("--eb-overlay-clickable")},e.updateBackdrop=function(){var e,t=this,n=this.options.css_class_prefix;this.isOverlayEnabled()?this.opened?this.hasBackdrop()||(e=this.addBackdrop(),this.on("close",function(){t.constructor.animateCSS(e,n+"fadeOut",function(){e.parentNode.removeChild(e)})})):this.on("open",function(){e=t.addBackdrop()}).on("close",function(){t.constructor.animateCSS(e,n+"fadeOut",function(){e.parentNode.removeChild(e)})}):this.hasBackdrop()&&this.getBackdrop().remove()},e.getBackdrop=function(){return this.el.querySelector(".eb-backdrop")},e.hasBackdrop=function(){return this.getBackdrop()},e.addBackdrop=function(){var e=this.options.css_class_prefix,t=r.createElement("div");return t.classList.add(e+"backdrop"),this.el.appendChild(t),this.constructor.animateCSS(t,e+"fadeIn"),t},e.destroy=function(){return this.off(),this.unbindTriggers(),this.log("Destroyed"),this.el.parentNode.removeChild(this.el),this},e.update=function(){return this.off(),this.unbindTriggers(),this.bindActions(),this.bindTrigger(),this},e.warn=function(e){this.options.debug&&(e=this.name+" #"+this.id+": "+e,console.warn(e))},e.log=function(e){this.options.debug&&(e=this.name+" #"+this.id+": "+e,console.log(e))},e.getContent=function(){return this.el.querySelector(".eb-content")},l.getCookie=function(e){for(var t=e+"=",n=r.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},l.getInstance=function(t){return n.find(function(e){return e.id==t})},l.closeAll=function(){n.forEach(function(e){e.close()})},l.getInstances=function(t){return void 0===t?n:n.filter(function(e){return e.el.dataset.type==t})},l.getTotalOpened=function(){var t=0;return n.forEach(function(e){e.opened&&t++}),t},l.onReady=function(e){"loading"!=r.readyState?e():r.addEventListener("DOMContentLoaded",e)},l.getJoomlaOption=function(e,t){if("undefined"!=typeof Joomla)return Joomla.getOptions(e);if(!o){var n=r.querySelector(".joomla-script-options");if(!n)return;o=JSON.parse(n.text||n.textContent)}return void 0!==o[e]?o[e]:t},l.throttle=function(o,i){var s=this,r=!1;return function(){if(!r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.apply(s,t),r=!0,setTimeout(function(){r=!1},i)}}},l.isTouchDevice=function(){var e=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in i||i.DocumentTouch&&r instanceof DocumentTouch)||(e=["(",e.join("touch-enabled),("),"heartz",")"].join(""),i.matchMedia(e).matches)},l.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},l.animateCSS=function(t,n,o){t.classList.add("eb-animate",n),t.addEventListener("animationend",function e(){t.classList.remove("eb-animate",n),t.removeEventListener("animationend",e),"function"==typeof o&&o()})},e.init=function(){var t=this;this.el.classList.contains(this.options.css_class_prefix+"init")||n.some(function(e){return e.id==t.id})||(this.bindActions(),this.bindTrigger(),this.el.classList.add(this.options.css_class_prefix+"init"),n.push(this),this.el.engagebox=this)},l}(function(){function e(){}var t=e.prototype;return t.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},t.emit=function(e){this._callbacks=this._callbacks||{};e=this._callbacks[e];if(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var i,s=_createForOfIteratorHelperLoose(e);!(i=s()).done;)if(0==i.value.apply(this,n))return!1}return this},t.off=function(e,t){if(this._callbacks&&0!==arguments.length){var n=this._callbacks[e];if(n)if(1===arguments.length)delete this._callbacks[e];else for(var o=0;o<n.length;o++)if(n[o]===t){n.splice(o,1);break}}else this._callbacks={};return this},e}())}(window,document,(window.jQuery||window).Velocity),EngageBox.onReady(function(){document.querySelectorAll(".eb-inst").forEach(function(e){new EngageBox(e)})}),function(){"use strict";document.addEventListener("EngageBoxBeforeClose",function(e){var e=e.detail.instance,t=e.getContent();t&&e.on("afterClose",function(){var e=t.querySelectorAll("video, audio"),e=(e.length&&e.forEach(function(e){return e.pause()}),t.querySelectorAll('iframe[src*="youtube.com"]'));e.length&&e.forEach(function(e){return e.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")})})})}();var EngageBox_Accessibility=function(){function e(){window.EngageBox&&(this.instances=this.getInstancesSortedByZIndexDesc(),0!==this.instances.length)&&(this.lastClickedElement=null,this.initEvents())}var t=e.prototype;return t.initEvents=function(){var t=this;document.addEventListener("click",function(e){t.lastClickedElement=e.target,t.setFocus(e)}),document.addEventListener("keydown",function(e){t.closePopupOnESC(e)}),document.addEventListener("EngageBoxOpen",function(e){e.detail.instance.options.lastFocusableEl=document.activeElement,t.focusOnFirstFocusableElement(e.detail.instance)}),document.addEventListener("EngageBoxAfterClose",function(e){t.focusOnLastFocusableElement(e.detail.instance)})},t.setFocus=function(e){e=e.target.closest(".eb-inst");e&&this.trapFocusInModal(e.engagebox)},t.closePopupOnESC=function(e){var t;"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||(e=null,(t=document.activeElement.closest(".eb-inst"))?e=t.engagebox:this.lastClickedElement&&this.lastClickedElement.closest(".eb-inst")&&(e=this.lastClickedElement.closest(".eb-inst").engagebox),e&&e.options.close_on_esc&&e.close())},t.focusOnFirstFocusableElement=function(e){var t;!e.options.auto_focus||parseInt(e.el.style.zIndex||0)<this.getHighestZIndex()||((t=this.getFocusableElements(e.el)).length&&this.getFirstFocusableElement(t).focus(),this.trapFocusInModal(e))},t.trapFocusInModal=function(e){var t,n,o=this.getFocusableElements(e.el);o.length&&(t=o[0],n=o[o.length-1],e.el.addEventListener("keydown",function(e){"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault()))}))},t.focusOnLastFocusableElement=function(e){e.options.lastFocusableEl&&e.options.lastFocusableEl.focus()},t.getFirstFocusableElement=function(e){var t;if(e.length)return(t=e[0]).closest("button.eb-close")&&e[1]?e[1]:t},t.getFocusableElements=function(e){for(var t=e.querySelector(".eb-content"),n=Array.from(t.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),o=[],i=0;i<n.length;i++)null!==n[i].offsetParent&&o.push(n[i]);return this.getOutsideButtonVisible(e)&&o.unshift(e.querySelector(".eb-close.placement-outside")),this.getInsideButtonVisible(e)&&o.unshift(e.querySelector(".eb-close.placement-inside")),o},t.getInstancesSortedByZIndexDesc=function(){var e=EngageBox.getInstances();return 0===e.length?[]:e.sort(function(e,t){return(parseInt(t.el.style.zIndex)||99999)-(parseInt(e.el.style.zIndex)||99999)})},t.getOutsideButtonVisible=function(e){return"none"!==window.getComputedStyle(e.querySelector(".eb-close.placement-outside")).getPropertyValue("--eb-close-button-outside")},t.getInsideButtonVisible=function(e){return"none"!==window.getComputedStyle(e.querySelector(".eb-close.placement-inside")).getPropertyValue("--eb-close-button-inside")},t.getHighestZIndex=function(){return parseInt(this.instances[0].el.style.zIndex||0)},e}();EngageBox.onReady(function(){new EngageBox_Accessibility});

