![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets-rebuild.corals.io/wp-content/cache/minify/ |
window.GiveDonationSummary={init:function(){GiveDonationSummary.initAmount(),GiveDonationSummary.initFrequency(),GiveDonationSummary.initTotal()},getFormattedDonationAmount:function(e){const n=Give.fn.unFormatCurrency(e.find('[name="give-amount"]').val(),Give.form.fn.getInfo("decimal_separator",e));return Give.fn.formatCurrency(n,{symbol:Give.form.fn.getInfo("currency_symbol",e)},e)},initAmount:function(){GiveDonationSummary.observe('[name="give-amount"]',(function(e,n){n.find('[data-tag="amount"]').html(GiveDonationSummary.getFormattedDonationAmount(n))}));const e=document.querySelector('[name="give-amount"]');if(e){const n=jQuery(e.closest(".give-form"));e.addEventListener("change",(function(){n.find('[data-tag="amount"]').html(GiveDonationSummary.getFormattedDonationAmount(n))}))}},initFrequency:function(){GiveDonationSummary.observe('[name="give-recurring-period"]',GiveDonationSummary.handleDonorsChoiceRecurringFrequency),GiveDonationSummary.observe('[name="give-price-id"]',GiveDonationSummary.handleAdminDefinedRecurringFrequency),GiveDonationSummary.observe('[name="_give_is_donation_recurring"]',GiveDonationSummary.handleAdminDefinedSetDonationFrequency),GiveDonationSummary.observe('[name="give-price-id"]',GiveDonationSummary.handleAdminDefinedRecurringFrequency)},handleDonorsChoiceRecurringFrequency:function(e,n){n.find(".js-give-donation-summary-frequency-help-text").toggle(!e.checked),n.find('[data-tag="frequency"]').toggle(!e.checked),n.find('[data-tag="recurring"]').toggle(e.checked).html(e.dataset.periodLabel);const t=document.querySelector('[name="give-recurring-period-donors-choice"]');if(t){const e=t.options[t.selectedIndex].value||!1;e&&n.find('[data-tag="recurring"]').html(GiveDonationSummaryData.recurringLabelLookup[e])}},handleAdminDefinedRecurringFrequency:function(e,n){const t=e.value,i=document.querySelector(".give_recurring_donation_details");if(!i)return;const o=JSON.parse(i.value);if(void 0!==o.multi){const e="yes"===o.multi[t]._give_recurring,i=o.multi[t].give_recurring_pretty_text;n.find(".js-give-donation-summary-frequency-help-text").toggle(!e),n.find('[data-tag="frequency"]').toggle(!e),n.find('[data-tag="recurring"]').toggle(e).html(i)}},handleAdminDefinedSetDonationFrequency:function(e,n){const t=e.value,i=document.querySelector(".give-recurring-admin-choice");t&&i&&(n.find(".js-give-donation-summary-frequency-help-text").toggle(!t),n.find('[data-tag="frequency"]').toggle(!t),n.find('[data-tag="recurring"]').html(i.textContent))},handleFees:function(e){if(!e.find('[name="give-fee-mode-enable"]')||"true"!==e.find('[name="give-fee-mode-enable"]').val())return void e.find(".js-give-donation-summary-fees").toggle(!1);e.find(".js-give-donation-summary-fees").toggle(!0);const n=e.find(".give-fee-message-label").attr("data-feemessage").split(" "),t=e.find(".give-fee-message-label-text").text().split(" ").filter((e=>!n.includes(e))).pop();e.find('[data-tag="fees"]').html(t)},initTotal:function(){GiveDonationSummary.observe(".give-final-total-amount",(function(e,n){n.find('[data-tag="total"]').html(e.textContent),GiveDonationSummary.handleFees(n)}));const e=document.querySelector(".give-final-total-amount");e&&(e.textContent=e.textContent)},handleNavigateBack:function(){},onGatewayLoadSuccess:function(){const e=jQuery("#give_purchase_form_wrap .give-donation-summary-section").detach();e.length&&(jQuery(".give-donation-summary-section").remove(),e.appendTo("#donate-fieldset"),GiveDonationSummary.initTotal(),GiveDonationSummary.handleNavigateBack=function(e){e.stopPropagation(),e.preventDefault(),window.formNavigator.back()})},observe:function(e,n,t=!0){const i=document.querySelector(e);if(!i)return;const o=jQuery(i.closest(".give-form"));new MutationObserver((function(e){for(const t of e)"attributes"===t.type&&n(t.target,o)})).observe(i,{attributes:!0}),t&&n(i,o)}},jQuery(document).on("give:postInit",GiveDonationSummary.init),jQuery(document).on("Give:onGatewayLoadSuccess",GiveDonationSummary.onGatewayLoadSuccess);;document.addEventListener('DOMContentLoaded',()=>{const $=jQuery;if(!$('body').hasClass('isMobile')){setTimeout(()=>{const footNote=$('.modern-footnotes-footnote__note');if(footNote.length){$('body').css({position:'relative'}).append('<div id="foot-notes" class="metras-foot-notes"></div>');$(footNote).each((index,element)=>{const number=$(element).data('mfn');const text=$(element).text();if(!number){console.warn(`Skipped element at index ${index} due to missing or empty data-mfn attribute.`);return;} const targetElement=$(`[data-mfn="${number}"]`);const offset=targetElement.length>0?targetElement.offset():{top:0};const offsetLeft=$('article').length>0?Math.round($('#content').offset().left-220):0;const $previousNote=$(`#note-${number - 1}`);let $noteOffset=offset.top-20;if($previousNote.length&&($previousNote.offset().top+$previousNote.height())>=$noteOffset){$noteOffset=$previousNote.offset().top+$previousNote.height();} $('#foot-notes').append(`<div class="foot-note" id="note-${number}" style="position: absolute; top: ${$noteOffset}px; left: ${offsetLeft}px;"><div class="number">${number}</div><div class="content">${text}</div></div>`);});}},100);}}); ;!function(e){"use strict";const n=function(n){let t,o,i,s=e(n);const l=s.find(".dt-nav-menu-horizontal--main").first(),a=s.find(".elementor-widget-container").first(),r=s.find(".horizontal-menu-wrap").first(),d=s.find(".dt-nav-menu-horizontal").first(),c=s.find(".horizontal-menu-toggle").first(),u=e("#page");var h;e.data(n,"horizontalMenu",s);const f="the7HorizontalSubMenuVisibilityTimeout",p="the7-e-sub-nav",m="horizontal-sub-nav",w="horizontal-menu-dropdown",v="submenu-indicator",b="is-clicked",g="parent-clicked",C="dt-clicked",M="notranstion",D="the7-e-mega-menu",k="the7-e-mega-menu-content",y=d.find("."+D),z={type:"horizontal",isDropdownOpen:!1,isSubmenuOpen:!1,isDropdown:!1,"disableCliсkHandler":!1,isFirstLoad:!0};i={init:function(){t=new The7ElementorSettings(s),i.handleItemsClick(),i.handleDropdownEvents(),s.refresh(),i.handleResize=elementorFrontend.debounce(i.handleResize,300),i.bindEvents(),i.openActiveItems(),s.layzrInitialisation()},openActiveItems:function(){i.isDropdown()&&d.find(".menu-item.act.has-children").each((function(){let n=e(this).find(" > a ");i.openMobSubMenu(n)}))},handleToggleButton:function(){z.isDropdownOpen?i.closeDropdownMenu():i.openDropdownMenu()},handleDropdownEvents:function(){var n=s.find("li.has-children > a");let t=s.find(".not-clickable-item");n.on("click",(function(n){var t=e(this);n=window.event||n,i.handleMobileMenu(t,n)})),t.on("click",(function(e){e.preventDefault(),e.stopPropagation()}))},onClickCb(n){if(z.disableCliсkHandler)return void(z.disableCliсkHandler=!1);let t=e(n.target);i.isDropdown()||t.hasClass(p)||(e("li.dt-hovered > ."+p,d).animate({opacity:0},100,(function(){e(this).css("visibility","hidden")})),e("li.has-children",d).removeClass("dt-hovered "+g),e("li.has-children > a",d).removeClass(b),d.find("."+C).removeClass(C))},onMegaMenuClickCb(n){let t=e(n.target).closest("a, ."+k);if(0===t.length||t.hasClass(k))return void(z.disableCliсkHandler=!0);let o=t.attr("target");if(void 0!==o&&"blank"===o)return;let i=t.attr("href");void 0!==i&&-1!==i.indexOf("#")||(z.disableCliсkHandler=!0)},handleItemsClick:function(){e(".act",d).parents("li").addClass("act"),e("li.has-children",d).each((function(){var n=e(this),t=n.find("> a");n.find("> a").on("click",(function(n){(dtGlobals.isMobile||dtGlobals.isWindowsPhone)&&(e(this).hasClass(C)?n.stopPropagation():(n.preventDefault(),d.find("."+C).removeClass(C),e(this).addClass(C),z.disableCliсkHandler=!0))})),s.hasClass("show-sub-menu-on-hover")||s.hasClass("parent-item-clickable-yes")?(t.on("mouseenter tap",(function(n){"tap"===n.type&&n.stopPropagation(),i.isDropdown()||i.showSubMenu(e(this))})),n.on("mouseleave",(function(n){e(n.target);i.isDropdown()||i.hideSubMenu(e(this))}))):t.on("click",(function(n){var t=e(this),o=t.parent("li");if(!t.hasClass(b))return i.showSubMenu(t),e("li.has-children > a").removeClass(b),e("li.has-children").removeClass(g),t.parent().addClass(g),e(n.target).parents().hasClass(p)||(e("li.has-children").removeClass("dt-hovered"),t.parent().addClass("dt-hovered")),i.isDropdown()||e(".dt-nav-menu-horizontal > li:not(.dt-hovered) > ."+p).stop().animate({opacity:0},150,(function(){e(this).css("visibility","hidden")})),t.parent().siblings().find("."+p).stop().animate({opacity:0},150,(function(){e(this).css("visibility","hidden")})),t.addClass(b),!1;i.hideSubMenu(o),t.removeClass(b),t.parent().removeClass(g)}))}))},handleMegaMenuSize:function(){y.each((function(){var n=e(this);let t=n.find("."+k);const o="the7-e-mega-menu-width-auto",i="the7-e-mega-menu-width-full";if(t.hasClass(i))n.addClass(i);else{s.parents(".elementor-section.elementor-section-boxed > .elementor-container").length?(n.addClass(o),n.removeClass(i)):(n.addClass(i),n.removeClass(o))}if(t.length){t.css("--mega-vh","");let e=t.height(),n=window.innerHeight-(t.offset().top-dtGlobals.winScrollTop);e>n&&t.css("--mega-vh",n+"px")}}))},handleMobileMenu:function(n,t){if(!i.isDropdown())return!1;let s=e(t.target),l=s.parents(".menu-item").hasClass("the7-e-mega-menu-mobile-empty");(s.hasClass(v)||"yes"!==o.parent_is_clickable&&!l)&&(t.stopPropagation(),t.preventDefault(),clearTimeout(h),h=setTimeout((function(){n.hasClass("item-active")?i.closeMobSubMenu(n):i.openMobSubMenu(n)}),100))},showSubMenu:function(e){let n,t=e.parent("li");n=t.length>0?t:e;let o=n.data(f)||0;clearTimeout(o),o=setTimeout((function(){if(i.isDropdown())return;let o;o=t.length>0?e.siblings("ul"):e.find("> a").siblings("ul"),n.addClass("dt-hovered"),o.length>0&&(u.width()-(o.offset().left-u.offset().left)-o.innerWidth()<0?o.addClass("right-overflow"):o.offset().left<u.offset().left&&o.addClass("left-overflow"),elementorFrontend.elements.$window.height()-(o.offset().top-dtGlobals.winScrollTop)-o.innerHeight()<0&&o.addClass("bottom-overflow")),i.handleMegaMenuSize(),z.isSubmenuOpen=!0,o.stop().css({visibility:"inherit",display:""}).animate({opacity:1},200,(function(){}))}),100),n.data(f,o)},hideSubMenu:function(e){let n=e.data(f)||0;clearTimeout(n),n=setTimeout((function(){if(i.isDropdown()||!e.hasClass("dt-hovered"))return;e.removeClass("dt-hovered");let n=e.find("> a"),t=n.siblings("ul");n.removeClass(C),t.stop().animate({opacity:0},150,(function(){t.css("visibility","hidden"),e.hasClass("dt-hovered")||t.removeClass(["right-overflow","left-overflow","bottom-overflow"])})),z.isSubmenuOpen=!1}),150),e.data(f,n)},bindEvents:function(){elementorFrontend.elements.$window.on("the7-resize-width",i.handleResize),elementorFrontend.elements.$window.on("the7.anchorScrolling",i.closeDropdownMenu),elementorFrontend.elements.$document.on("elementor/popup/hide",i.closeDropdownMenu),c.on("click",i.handleToggleButton),s.on("effect-active",i.onEffectActive),y.on("click",i.onMegaMenuClickCb),e("body").on("click",i.onClickCb)},unBindEvents:function(){elementorFrontend.elements.$window.off("the7-resize-width",i.handleResize),elementorFrontend.elements.$window.off("the7.anchorScrolling",i.closeDropdownMenu),elementorFrontend.elements.$document.off("elementor/popup/hide",i.closeDropdownMenu),c.off("click",i.handleToggleButton),s.off("effect-active",i.onEffectActive),y.off("click",i.onMegaMenuClickCb),e("body").off("click",i.onClickCb)},isDropDownActive:function(){let e=elementorFrontend.getCurrentDeviceMode(),n=o.dropdown;if(!n)return!1;if("desktop"===n)return!0;"desktop"===n&&(n="laptop"),"desktop"===e&&(e="laptop");let t=elementorFrontend.config.responsive.breakpoints,i=0,s=0;return t.hasOwnProperty(n)&&(i=t[n].value),t.hasOwnProperty(e)&&(s=t[e].value),i>=s},handleResize:function(){i.isDropDownActive()?i.isDropdown()||(d.removeClass("dt-nav-menu-horizontal").addClass(m),r.addClass(M),r.addClass(w),r.removeClass(M),z.isDropdown=!0):i.isDropdown()&&(s.find(".dt-nav-menu-horizontal--main > ul").addClass("dt-nav-menu-horizontal").removeClass(m),r.removeClass(w),i.closeDropdownMenu(),z.isDropdown=!1);let e=a.offset().left,n=s.parents(".elementor-section.elementor-section-boxed > .elementor-container"),t=e;n.length&&(t=n.offset().left,s.css("--dynamic-submenu-content-width",n.outerWidth()+"px")),s.css("--dynamic-submenu-content-left-offset",-1*(e-t)+"px"),s.css("--dynamic-justified-submenu-left-offset","-"+e+"px"),s.css("--scrollbar-width",window.innerWidth-document.scrollingElement.clientWidth+"px"),z.isFirstLoad||i.handleMegaMenuSize(),s.find(".elementor-owl-carousel-call").trigger("refresh.owl.carousel"),z.isFirstLoad=!1},isDropdown:function(){return z.isDropdown},closeDropdownMenu:function(){z.isDropdownOpen&&(c.attr("aria-expanded","false").removeClass("elementor-active"),l.attr("aria-hidden","true"),z.isDropdownOpen=!1,dtGlobals.isMobile&&elementorFrontend.elements.$body.css({"overflow-y":"",position:"",height:""}),elementorFrontend.elements.$body.off("click touchstart",i.closeOnOuterClickHandler),elementorFrontend.elements.$window.off("scroll",i.setDropdownHeight))},openDropdownMenu:function(){z.isDropdownOpen||"popup"!==o.dropdown_type&&(c.attr("aria-expanded","true").addClass("elementor-active"),l.attr("aria-hidden","false"),z.isDropdownOpen=!0,i.setDropdownHeight(),dtGlobals.isMobile&&elementorFrontend.elements.$body.css({"overflow-y":"hidden",position:"relative",height:window.innerHeight}),elementorFrontend.elements.$body.off("click touchstart",i.closeOnOuterClickHandler).on("click touchstart",i.closeOnOuterClickHandler),elementorFrontend.elements.$window.off("scroll",i.setDropdownHeight).on("scroll",i.setDropdownHeight))},closeMobSubMenu:function(e){e.siblings("."+p).css("opacity","0").stop(!0,!0).slideUp(250),e.removeClass("item-active")},openMobSubMenu:function(n){let t=".menu-item.depth-0",o=n.parents(t);d.find(t).not(o).each((function(){let n=e(this).find(" > a ");n.hasClass("item-active")&&i.closeMobSubMenu(n)})),n.siblings("."+p).css("opacity","0").stop(!0,!0).slideDown(250).animate({opacity:1},{queue:!1,duration:150}),n.addClass("item-active")},setDropdownHeight:function(){if(z.isDropdownOpen){let e=window.innerHeight-(l.offset().top-dtGlobals.winScrollTop);s.css("--vh",e+"px")}},closeOnOuterClickHandler:function(e){e.originalEvent&&!e.originalEvent.composedPath().includes(r.get(0))&&i.closeDropdownMenu()},onEffectActive:function(){i.isDropdown()||d.find("li.dt-hovered").each((function(){i.hideSubMenu(e(this))}))}},s.refresh=function(){o=t.getSettings(),i.handleResize()},s.delete=function(){i.unBindEvents(),s.removeData("horizontalMenu")},i.init()};e.fn.horizontalMenu=function(){return this.each((function(){var t=e(this).data("horizontalMenu");void 0!==t&&t.delete(),new n(this)}))},e(window).on("elementor/frontend/init",(function(){if(elementorFrontend.hooks.addAction("frontend/element_ready/the7_horizontal-menu.default",(function(e,n){n((function(){e.horizontalMenu()}))})),elementorFrontend.isEditMode()){function n(e,n){var t=e.model.get("name");if(-1!==["parent_is_clickable","dropdown"].indexOf(t)){var o=window.jQuery(n.$el),i=o.data("horizontalMenu");void 0!==i?i.refresh():o.horizontalMenu()}}function t(n,t){var o=n.model.get("name");-1!==["layout","content_width"].indexOf(o)&&e(".elementor-widget-the7_horizontal-menu").each((function(){var n=e(this).data("horizontalMenu");void 0!==n&&n.refresh()}))}elementorEditorAddOnChangeHandler("the7_horizontal-menu",n),elementorEditorAddOnChangeHandler("section",t)}}))}(jQuery); ;!function(t){var o=function(o,e){var i,s,n,r,a,c,f,p=!1,l=!1,d=!1,m={},h={to:"top",offset:0,extraOffset:0,effectsOffset:0,parentBottomOffset:0,parent:!1,timerInterval:250,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1};const u=()=>{if(f=$(i,"width"),c=i.offset().left,s.isRTL){const t=s.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;c=Math.max(t-f-c,0)}};var y=function(t,o,e){var i={},s=t[0].style;e.forEach((function(t){if("object"==typeof t)for(var o in t)i[o]=t[o];else i[t]=void 0!==s[t]?s[t]:""})),t.data("the7-css-backup-"+o,i)},w=function(t,o){return t.data("the7-css-backup-"+o)},v=function(){m.$spacer=i.clone().addClass(s.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(m.$spacer)},k=function(){m.$spacer.remove()},g=function(){y(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);var t={position:"fixed",width:f,marginTop:0,marginBottom:0};c&&(t["inset-inline-start"]=c+"px"),t[s.to]=s.offset,t["top"===s.to?"bottom":"top"]="",i.css(t).addClass(s.classes.stickyActive)},b=function(){i.css(w(i,"unsticky")).removeClass(s.classes.stickyActive)},$=function(t,o,e){var i=getComputedStyle(t[0]),s=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),e&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){s+=parseFloat(i[t+"-"+o])}))})),s},T=function(t){var o=m.$window.scrollTop(),e=$(t,"height"),i=innerHeight,s=t.offset().top-o,n=s-i;return{top:{fromTop:s,fromBottom:n},bottom:{fromTop:s+e,fromBottom:n+e}}},C=function(){i.addClass("notransition-all"),b(),k(),p=!1,i.trigger("the7-sticky:unstick"),i[0].offsetHeight,i.removeClass("notransition-all")},B=function(){var t=T(i),o="top"===s.to;if(l){(o?t.top.fromTop>s.offset:t.bottom.fromBottom<-s.offset)&&(m.$parent.css(w(m.$parent,"childNotFollowing")),i.css(w(i,"notFollowing")),l=!1)}else{var e=T(m.$parent),n=getComputedStyle(m.$parent[0]),r=parseFloat(n[o?"borderBottomWidth":"borderTopWidth"])+s.parentBottomOffset,a=o?e.bottom.fromTop-r:e.top.fromBottom+r;(o?a<=t.bottom.fromTop:a>=t.top.fromBottom)&&function(){y(m.$parent,"childNotFollowing",["position"]),m.$parent.css("position","relative"),y(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(c=m.$spacer.position().left,s.isRTL){const t=i.parent().outerWidth(),o=m.$spacer.position().left;f=m.$spacer.outerWidth(),c=Math.max(t-f-o,0)}t["inset-inline-start"]=c+"px",t[s.to]="",t["top"===s.to?"bottom":"top"]=s.parentBottomOffset,i.css(t),l=!0}()}},W=function(){var t,o=s.offset,e=s.stickOffset,n=s.unStickOffset,a=m.$window.scrollTop();if(r=a,p){let e=T(m.$spacer);t="top"===s.to?e.top.fromTop-o+n:-e.bottom.fromBottom-o+n,s.parent&&B(),t>0&&C()}else{let n=T(i);(t="top"===s.to?n.top.fromTop-o+e:-n.bottom.fromBottom-o+e)<=0&&(u(),v(),g(),p=!0,i.trigger("the7-sticky:stick"),s.parent&&B())}let c=t;a<0&&(c=0),function(t){d&&-t<s.effectsOffset?(i.removeClass(s.classes.stickyEffects),m.$spacer.removeClass(s.classes.stickyEffects),d=!1,i.trigger("the7-sticky:effect-not-active")):!d&&-t>=s.effectsOffset&&(i.addClass(s.classes.stickyEffects),m.$spacer.addClass(s.classes.stickyEffects),d=!0,i.trigger("the7-sticky:effect-active"))}(c)},E=function(){W()},x=function(){var t=m.$window.scrollTop();r!==t&&W()},O=function(){F(!0)},F=function(t=!1){p&&a!==window.innerWidth&&(a=window.innerWidth,!0===t&&k(),b(),u(),!0===t&&v(),g(),s.parent&&(l=!1,B()),W())},S=function(t,o){let e;return function(){const i=this,s=arguments,n=!e;clearTimeout(e),e=setTimeout((()=>{e=null,t.apply(i,s)}),o),n&&t.apply(i,s)}};this.destroy=function(){p&&C(),m.$window.off("scroll",E).off("resize",F).off("resize",O),clearTimeout(n),n=null,i.removeClass(s.classes.sticky)},s=jQuery.extend(!0,h,e),i=t(o).addClass(s.classes.sticky),m.$window=t(window),a=window.innerWidth,s.parent&&(m.$parent=i.parent(),"parent"!==s.parent&&(m.$parent=m.$parent.closest(s.parent))),O=S(O,400),m.$window.on("resize",F),m.$window.on("resize",O),m.$window.on("scroll",E),n=setInterval(x,s.timerInterval),W()};t.fn.The7Sticky=function(e){var i="string"==typeof e;return this.each((function(){var s=t(this);if(i){var n=s.data("the7-sticky");if(!n)throw Error("Trying to perform the `"+e+"` method prior to initialization");if(!n[e])throw ReferenceError("Method `"+e+"` not found in sticky instance");n[e].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===e&&s.removeData("the7-sticky")}else s.data("the7-sticky",new o(this,e))})),this}}(jQuery); ;!function(e){"use strict";e.the7StickyRow=function(t){let i,n,o,c=e(t),s=!1,r=e(window),l={};c.vars={stick:{stickOffset:0,currentConfig:null},scroll:{isActive:!1,timerId:null,didScroll:!1,lastScrollTop:0,delta:5,elementHeight:0,isDown:!1}};let f={down:"the7-e-scroll-down",noTransition:"notransition-all"},a={sticky:"the7-e-sticky",stickyActive:"the7-e-sticky-active",stickyEffects:"the7-e-sticky-effects",spacer:"the7-e-sticky-spacer"};e.data(t,"the7StickyRow",c),l={init:function(){i=new The7ElementorSettings(c),o=i.getModelCID(),elementorFrontend.isEditMode()&&elementor.channels.data.on("element:destroy",l.onDestroy),l.bindEvents(),c.refresh(),l.toggle=elementorFrontend.debounce(l.toggle,300)},bindEvents:function(){elementorFrontend.elements.$window.on("the7-resize-width",l.toggle),c.on("the7-sticky:effect-active",l.onEffectActive),c.on("the7-sticky:effect-not-active",l.onEffectNotActive),c.on("the7-sticky:stick",l.activateHideOnScroll),c.on("the7-sticky:unstick",l.deactivateHideOnscroll)},unBindEvents:function(){elementorFrontend.elements.$window.off("the7-resize-width",l.toggle),c.off("the7-sticky:effect-active",l.onEffectActive),c.off("the7-sticky:effect-not-active",l.onEffectNotActive),c.off("the7-sticky:stick",l.activateHideOnScroll),c.off("the7-sticky:unstick",l.deactivateHideOnscroll)},toggle:function(){if(l.isEffectActive()?l.activateEffects():l.deactivateEffects(),l.isStickyActive()){const e=l.getStickyConfig(),t=JSON.stringify(e)!==JSON.stringify(c.vars.stick.currentConfig);null!==c.vars.stick.currentConfig&&t?c.reactivateSticky():l.activateSticky()}else l.deactivateSticky();l.updateHeight()},isEffectActive:function(){if(void 0===n)return!1;var e=elementorFrontend.getCurrentDeviceMode();if("yes"===n.the7_sticky_effects){var t=n.the7_sticky_effects_devices;if(!t||-1!==t.indexOf(e))return!0}return!1},isScrollUpActive:function(){if(void 0===n)return!1;var e=elementorFrontend.getCurrentDeviceMode();if("yes"===n.the7_sticky_scroll_up){var t=n.the7_sticky_scroll_up_devices;if(!t||-1!==t.indexOf(e))return!0}return!1},isStickyActive:function(){if(void 0===n)return!1;var e=elementorFrontend.getCurrentDeviceMode();if("yes"===n.the7_sticky_row&&!n.sticky){var t=n.the7_sticky_row_devices;if(!t||-1!==t.indexOf(e))return!0}return!1},onEffectActive:function(){c.find(".the7-e-on-sticky-effect-visibility, .elementor-widget-the7_horizontal-menu").each((function(){e(this).trigger("effect-active")})),l.updateHeight()},onEffectNotActive:function(){c.find(".the7-e-on-sticky-effect-visibility").each((function(){e(this).trigger("effect-not-active")})),l.updateHeight()},updateHeight:function(){c.vars.scroll.isActive&&(c.vars.scroll.elementHeight=c.outerHeight())},refresh:function(){},activateEffects:function(){s||(s=!0,c.reactivateSticky())},deactivateEffects:function(){s&&(s=!1,c.removeClass(a.stickyEffects),c.reactivateSticky())},getStickyConfig:function(){let e=0,t=0,o=!0,r={to:"top",offset:i.getCurrentDeviceSetting("the7_sticky_row_offset"),effectsOffset:i.getCurrentDeviceSetting("the7_sticky_effects_offset"),classes:{...a}};if(r.isScrollupActive=l.isScrollUpActive(),r.isScrollupActive){let n=i.getCurrentDeviceSetting("the7_sticky_scroll_up_translate");if(void 0!==n&&n.size)e=n.size;else{let t=l.getElementOuterSize(c,"height");e=t,c.css("--the7-sticky-scroll-up-translate",t+"px"),o=!1}t=1}o&&c.css("--the7-sticky-scroll-up-translate",""),c.vars.stick.stickOffset=e,r.stickOffset=e,r.unStickOffset=t;let f=elementorFrontend.elements.$wpAdminBar;if(s||(r.classes.stickyEffects=""),f.length&&"fixed"===f.css("position")){let e=f.height();r.offset+=e,r.extraOffset=e}return n.the7_sticky_parent&&l.isContainer(c[0].parentElement)&&(r.parent=".e-container, .e-container__inner, .e-con, .e-con-inner, .elementor-widget-wrap",r.parentBottomOffset=i.getCurrentDeviceSetting("the7_sticky_parent_bottom_offset")),r},isContainer:function(e){return["e-con-inner","e-container","e-container__inner","e-con"].some((t=>e?.classList.contains(t)))},getElementOuterSize:function(e,t,i){var n=getComputedStyle(e[0]),o=parseFloat(n[t]),c="height"===t?["top","bottom"]:["left","right"],s=[];return"border-box"!==n.boxSizing&&s.push("border","padding"),i&&s.push("margin"),s.forEach((function(e){c.forEach((function(t){o+=parseFloat(n[e+"-"+t])}))})),o},activateSticky:function(){l.isStickyInstanceActive()||!l.isStickyActive()||c.hasClass("elementor-sticky")||(c.vars.stick.currentConfig=l.getStickyConfig(),c.The7Sticky(c.vars.stick.currentConfig))},deactivateSticky:function(){l.isStickyInstanceActive()&&(c.The7Sticky("destroy"),c.removeClass(a.stickyEffects),l.deactivateHideOnscroll())},activateHideOnScroll:function(e,t){void 0!==n&&l.isScrollUpActive()&&(c.vars.scroll.isActive=!0,c.vars.scroll.didScroll=!1,c.vars.scroll.lastScrollTop=0,l.updateHeight(),r.on("scroll",l.scrollHandler),l.scrollIntervalHandler(!0),c.vars.scroll.timerId=setInterval(l.scrollIntervalHandler,200))},scrollHandler:function(){c.vars.scroll.didScroll=!0},deactivateHideOnscroll:function(){c.vars.scroll.isActive&&(r.off("scroll",l.scrollHandler),clearTimeout(c.vars.scroll.timerId),c.vars.scroll.timerId=null,c.vars.scroll.isActive=!1,c.removeClass(f.down))},scrollIntervalHandler:function(e){if(e&&(c.addClass(f.noTransition),l.setHideScroll(!0),c[0].offsetHeight,c.removeClass(f.noTransition)),c.vars.scroll.didScroll){c.vars.scroll.didScroll=!1;let e=r.scrollTop();if(Math.abs(c.vars.scroll.lastScrollTop-e)<=c.vars.scroll.delta)return;e>c.vars.scroll.lastScrollTop?!c.vars.scroll.isDown&&e>c.vars.scroll.elementHeight&&l.setHideScroll(!0):c.vars.scroll.isDown&&l.setHideScroll(!1),c.vars.scroll.lastScrollTop=e}},setHideScroll:function(e){e?(c.addClass(f.down),c.vars.scroll.isDown=!0):(c.removeClass(f.down),c.vars.scroll.isDown=!1)},getElementOuterSze:function(e,t,i){var n=getComputedStyle(e[0]),o=parseFloat(n[t]),c="height"===t?["top","bottom"]:["left","right"],s=[];return"border-box"!==n.boxSizing&&s.push("border","padding"),i&&s.push("margin"),s.forEach((function(e){c.forEach((function(t){o+=parseFloat(n[e+"-"+t])}))})),o},isStickyInstanceActive:function(){return void 0!==c.data("the7-sticky")},onDestroy:function(e){e.cid===o&&c.delete()}},c.refresh=function(){n=i.getSettings(),l.toggle(),l.refresh()},c.delete=function(){l.unBindEvents(),l.deactivateEffects(),l.deactivateSticky(),c.removeData("the7StickyRow")},c.reactivateSticky=function(){l.isStickyInstanceActive()&&(n=i.getSettings(),l.deactivateSticky(),l.activateSticky())},l.init()};var t=function(t){t.each((function(){var t=e(this);if(t.hasClass("the7-e-sticky-yes")||t.hasClass("the7-e-sticky-row-yes")){if(t.hasClass("the7-e-sticky-spacer")||t.hasClass("elementor-inner-section"))return;var i=e(this).data("the7StickyRow");void 0!==i&&i.delete(),new e.the7StickyRow(this)}}))};e.the7StickyEffectElementHide=function(t){var i,n,o,c=e(t),s="",r={effect:"the7-e-on-sticky-effect-visibility",hide:"the7-e-on-sticky-effect-visibility-hide",show:"the7-e-on-sticky-effect-visibility-show"},l={};c.vars={animDelay:500},e.data(t,"the7StickyEffectElementHide",c),l={init:function(){i=new The7ElementorSettings(c),n=i.getModelCID(),elementorFrontend.isEditMode()&&elementor.channels.data.on("element:destroy",l.onDestroy),c.refresh(),l.bindEvents(),l.toggle=elementorFrontend.debounce(l.toggle,300)},bindEvents:function(){elementorFrontend.elements.$window.on("the7-resize-width",l.toggle),c.on("effect-active",l.onEffectActive),c.on("effect-not-active",l.onEffectNotActive)},unBindEvents:function(){elementorFrontend.elements.$window.off("the7-resize-width",l.toggle),c.off("effect-active",l.onEffectActive),c.off("effect-not-active",l.onEffectNotActive)},toggle:function(){var e=i.getCurrentDeviceSetting("the7_hide_on_sticky_effect");void 0!==e&&(""!==e?l.activateEffects(e):l.deactivateEffects())},activateEffects:function(e){s!==e&&""!==e&&(c.removeClass(r.hide),c.removeClass(r.show),c.addClass(r.effect),c.addClass(r[e]),s=e)},deactivateEffects:function(){""!==s&&(c.removeClass(r.hide),c.removeClass(r.show),c.removeClass(r.effect),l.unsetHeight(),s="")},onDestroy:function(e){e.cid===n&&c.delete()},getHeight:function(){return c.outerHeight()},setHeight:function(e){c.css({height:e})},unsetHeight:function(){c.css({height:""})},updateHeight:function(){l.unsetHeight(),c.removeClass(r[s]),l.setHeight(l.getHeight()),window.setTimeout(l.addEffectClass,1)},addEffectClass:function(){c.addClass(r[s])},onEffectActive:function(){switch(s){case"hide":clearTimeout(o),l.updateHeight();break;case"show":o=window.setTimeout(l.unsetHeight,c.vars.animDelay)}},onEffectNotActive:function(){switch(s){case"hide":o=window.setTimeout(l.unsetHeight,c.vars.animDelay);break;case"show":clearTimeout(o),l.updateHeight()}}},c.refresh=function(){l.toggle()},c.delete=function(){l.unBindEvents(),l.deactivateEffects(),c.removeData("the7StickyEffectElementHide")},l.init()};var i=function(t){t.each((function(){if(!e(this).hasClass("the7-e-sticky-spacer")){var t=e(this).data("the7StickyEffectElementHide");void 0!==t&&t.delete(),new e.the7StickyEffectElementHide(this)}}))};e(window).on("elementor/frontend/init",(function(){function n(e){t(e);let n=new The7ElementorSettings(e).getSettings();if(void 0!==n){The7ElementorSettings.getResponsiveSettingList("the7_hide_on_sticky_effect").some((function(e){return e in n&&""!==n[e]}))&&i(e)}}function o(t){t.each((function(){n(e(this))}))}function c(e,n){var o,c,s=[...The7ElementorSettings.getResponsiveSettingList("the7_sticky_row_offset"),...The7ElementorSettings.getResponsiveSettingList("the7_sticky_effects_offset"),...The7ElementorSettings.getResponsiveSettingList("the7_sticky_scroll_up_translate"),"the7_sticky_scroll_up","the7_sticky_scroll_up_devices","the7_sticky_row_overlap","the7_sticky_effects_devices","the7_sticky_effects","the7_hide_on_sticky_effect","the7_sticky_parent",...The7ElementorSettings.getResponsiveSettingList("the7_sticky_parent_bottom_offset")],r=["the7_sticky_row","the7_sticky_row_devices","sticky","flex_direction",...s],l=e.model.get("name");-1!==r.indexOf(l)&&(void 0!==(c=(o=window.jQuery(n.$el)).data("the7StickyRow"))?-1!==s.indexOf(l)?c.reactivateSticky():c.refresh():t(o));-1!==[...The7ElementorSettings.getResponsiveSettingList("the7_hide_on_sticky_effect")].indexOf(l)&&(void 0!==(c=(o=window.jQuery(n.$el)).data("the7StickyEffectElementHide"))?c.refresh():i(o))}elementorFrontend.elements.$document.on("elementor/popup/show",(function(e,t,i){o(i.$element.find(".elementor-section, .e-container, .e-con"))})),elementorFrontend.elements.$document.on("elementor/popup/hide",(function(t,i,n){n.$element.find(".elementor-section, .e-container, .e-con").each((function(){var t=e(this).data("the7StickyRow");void 0!==t&&t.delete(),void 0!==(t=e(this).data("the7StickyEffectElementHide"))&&t.delete()}))})),elementorFrontend.isEditMode()?(elementorEditorAddOnChangeHandler("section",c),elementorEditorAddOnChangeHandler("container",c),elementorFrontend.hooks.addAction("frontend/element_ready/section",(function(e,t){t(document).ready((function(){n(e)}))})),elementorFrontend.hooks.addAction("frontend/element_ready/container",(function(e,t){t(document).ready((function(){n(e)}))}))):elementorFrontend.on("components:init",(function(){e(document).ready((function(){o(e(".elementor-section, .e-container, .e-con"))}))}))}))}(jQuery); ;jQuery((function(e){e.imageBox=function(n){let t,i,o,d,a,s,r,l=e(n),m=!1;e.data(n,"imageBox",l),t={init:function(){if(l.layzrInitialisation(),s=l.find(".the7-overlay-content"),s.length&&(m=!0,o=new The7ElementorAnimation,d=o.findAnimationsInNode(s)),i=new The7ElementorSettings(l),l.refresh(),m&&"hover-hide"===r)o.animateElements(d);l.one("mouseenter",(function(){l.find(".post-thumbnail-rollover img").addClass("run-img-transitions")}))},handleResize:function(){if(m)switch(r=The7ElementorSettings.getResponsiveControlValue(a,"hover_visibility"),r){case"always":o.animateElements(d);break;case"disabled":o.resetElements(d)}},bindEvents:function(){elementorFrontend.elements.$window.on("the7-resize-width-debounce",t.handleResize),m&&(l.on({mouseenter:t.mouseenter,mouseleave:t.mouseleave}),l.on("the7-slide:change",t.onSlideChange),l.on("the7-slide:hide",t.onSlideHide),l.on("the7-slide:init",t.onSlideInit))},unBindEvents:function(){elementorFrontend.elements.$window.off("the7-resize-width-debounce",t.handleResize),m&&(l.off({mouseenter:t.mouseenter,mouseleave:t.mouseleave}),l.off("the7-slide:change",t.onSlideChange),l.off("the7-slide:hide",t.onSlideHide),l.off("the7-slide:init",t.onSlideInit))},mouseenter:function(){switch(r){case"hover":t.addAnimation();break;case"hover-hide":t.resetAnimation()}},mouseleave:function(){switch(r){case"hover":t.resetAnimation();break;case"hover-hide":t.addAnimation()}},onSlideChange:function(e){if(m){["always","hover-hide"].includes(r)&&o.animateElements(d)}},onSlideHide:function(e){if(m){["always","hover-hide"].includes(r)&&o.resetElements(d)}},onSlideInit:function(e){if(m){["disabled","hover"].includes(r)&&o.resetElements(d)}},onOverlayTransitionsEnd:function(e){"opacity"===e.originalEvent.propertyName&&o.resetElements(d)},resetAnimation:function(){s.on("transitionend",t.onOverlayTransitionsEnd)},addAnimation:function(){s.off("transitionend",t.onOverlayTransitionsEnd),o.animateElements(d)}},l.refresh=function(){a=i.getSettings(),t.unBindEvents(),t.bindEvents(),t.handleResize()},l.delete=function(){t.unBindEvents(),l.removeData("imageBox")},t.init()},e.fn.imageBox=function(){return this.each((function(){var n=e(this).data("imageBox");void 0!==n&&n.delete(),new e.imageBox(this)}))}})),function(e){e(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/the7_image_box_widget.default",(function(e,n){n(document).ready((function(){e.imageBox()}))})),elementorFrontend.hooks.addAction("frontend/element_ready/the7_image_box_grid_widget.default",(function(e,n){n(document).ready((function(){e.imageBox()}))})),elementorFrontend.hooks.addAction("frontend/element_ready/the7-image-widget.default",(function(e,n){n(document).ready((function(){elementorFrontend.isEditMode()&&The7ElementorAnimation.patchElementsAnimation(e,"the7-ignore-anim"),e.imageBox()}))})),elementorFrontend.isEditMode()||The7ElementorAnimation.patchElementsAnimation(e(".elementor-widget-the7-image-widget .the7-overlay-content"),"the7-ignore-anim"),elementorFrontend.isEditMode()&&elementorEditorAddOnChangeHandler("the7-image-widget",(function(n,t){let i=[...The7ElementorSettings.getResponsiveSettingList("hover_visibility")];const o=n.model.get("name");if(-1!==i.indexOf(o)){const n=e(t.$el),i=n.data("imageBox");void 0!==i?i.refresh():n.imageBox()}}))}))}(jQuery); ;jQuery(document).ready((function(e){e.the7Slider=function(t,i){const n={selectors:{slider:".elementor-slides-wrapper:not(.thumbs-slides-wrapper)",thumbsSlider:".thumbs-slides-wrapper",slide:"the7-swiper-slide",slideInnerContents:".the7-slide-content",activeSlide:".swiper-slide-active",activeDuplicate:".swiper-slide-duplicate-active"},classes:{inPlaceTemplateEditable:"elementor-in-place-template-editable"},attributes:{dataAnimation:"animation"},changeableProperties:{pause_on_hover:"pauseOnHover",autoplay_speed:"delay",transition_speed:"speed",autoplay:"autoplay"}};let s,o,a,r,l,d,p,u,c,m,h,g,f,v,w=e(t),b={$swiperContainer:w.find(n.selectors.slider).first(),$swiperThumbsContainer:w.find(n.selectors.thumbsSlider).first(),animatedSlides:{},activeElements:[]};b.$slides=b.$swiperContainer.find("> .the7-elementor-slides >."+n.selectors.slide),b.$thumbsSlides=b.$swiperThumbsContainer.find("> .the7-elementor-slides >."+n.selectors.slide),w.vars={sliderInitialized:!1,isInlineEditing:!1},e.data(t,"the7Slider",w),r={initVars:function(){w.css("--widget-width",w.width()+"px"),w.css("--widget-height",w.height()+"px"),b.$swiperThumbsContainer.length&&(w.vars.thumbGap=the7Utils.parseIntParam(w.css("--thumbs-spacing"),0),w.vars.colNum=the7Utils.parseIntParam(w.css("--thumbs-items"),3)),w.vars.isVertical="vertical"===w.vars.scrollMode},init:function(){r.initVars(),s=new The7ElementorSettings(w),p=s.getWidgetType(),a=s.getSettings(),u=w.find(".the7-video-overlay"),m=!!a.controls,h=!!a.video_autoplay,g=!!a.play_on_mobile,f=elementorFrontend.getCurrentDeviceMode(),o=new The7ElementorAnimation,w[0].classList.contains("elementor-widget-the7-woocommerce-product-images-slider")&&"y"===a.open_lightbox&&w.find(".the7-elementor-slides").initPhotoswipe(),elementorFrontend.isEditMode()&&r.handleCTA(),this.initThumb().then((()=>this.initSlider())),w.refresh(),r.handleResize=elementorFrontend.debounce(r.handleResize,1e3)},runElementHandlers:function(e){[...e].flatMap((e=>[...e.querySelectorAll(".elementor-element")])).forEach((e=>elementorFrontend.elementsHandler.runReadyTrigger(e)))},handleElementHandlers:function(e){if(!e)return;const t=Array.from(e.slides).filter((t=>t.classList.contains(e.params.slideDuplicateClass)));r.runElementHandlers(t)},handleCTA:function(){if("undefined"==typeof elementorPro)return;const e=document.querySelector(`[data-id="${s.getID()}"] .e-loop-empty-view__wrapper`);if(document.querySelector(`[data-id="${s.getID()}"] .e-loop-empty-view__wrapper_old`))return void w.css("opacity",1);if(!e)return;const t=e.attachShadow({mode:"open"});if(t.appendChild(elementorPro.modules.loopBuilder.getCtaStyles()),t.appendChild(elementorPro.modules.loopBuilder.getCtaContent(p)),r.isLoop()){t.querySelector(".e-loop-empty-view__box-cta").addEventListener("click",(()=>{elementorPro.modules.loopBuilder.createTemplate(),r.handleSlider()}))}w.css("opacity",1)},bindEvents:function(){r.initIntersectionObserver(),elementorFrontend.elements.$window.on("the7-resize-width",r.handleResize)},unBindEvents:function(){elementorFrontend.elements.$window.off("the7-resize-width",r.handleResize),void 0!==d&&(d.unobserve(w[0]),d=void 0)},handleSlider:function(){w.vars.sliderInitialized&&(w.vars.isInlineEditing=!0,w.addClass(n.classes.inPlaceTemplateEditable),l.slideTo(0),l.autoplay.stop(),l.pagination.destroy(),l.navigation.destroy(),l.allowTouchMove=!1,l.params.autoplay.disableOnInteraction=!0,l.params.autoplay.pauseOnMouseEnter=!1,l.params.autoplay.delay=1e6,l.update())},handleResize:function(){w.vars.sliderInitialized&&(r.removeElementsAnimation(!0),r.findAnimationInElements(),r.updateActiveElements(),r.removeElementsAnimation(),r.addElementsAnimation(),f=elementorFrontend.getCurrentDeviceMode(),"mobile"===f&&h&&!g?c.removeClass("dt-pswp-item-no-click"):h&&"y"===a.open_lightbox&&c.addClass("dt-pswp-item-no-click"),void 0!==v&&v.changeDirection(r.getDirection(f)))},getLoopedSlides:function(e){let t=r.getSlidesCount();return"all"!==a.slides_to_scroll?t:Math.trunc(t/e)*e},getSlidesCount:function(){return b.$slides.length},initIntersectionObserver:function(){"yes"===a.autoplay&&(d=elementorModules.utils.Scroll.scrollObserver({offset:"-15% 0% -15%",callback:e=>{e.isInViewport?r.swiperAutoplayStart():r.swiperAutoplayStop()}}),d.observe(w[0]))},swiperAutoplayStop(){w.vars.sliderInitialized&&!w.vars.isInlineEditing&&l.autoplay.stop()},swiperAutoplayStart(){w.vars.sliderInitialized&&!w.vars.isInlineEditing&&l.autoplay.start()},getEffect:()=>a.transition,getSlidesPerView:function(e){if("slide"===r.getEffect()){return+The7ElementorSettings.getResponsiveControlValue(a,"slides_per_view","size",e)||1}return 1},getThumbsPerView:function(e){return+The7ElementorSettings.getResponsiveControlValue(a,"thumbs_per_view","size",e)||1},isEnoughtElements:function(e){return e<r.getSlidesCount()},getSlidesToScroll:function(e){let t=1;return"slide"===r.getEffect()&&"all"===a.slides_to_scroll&&(t=e),t},getAutoHeight:function(){let e=!0;return r.isLoop()&&(e=!1),e},getSwiperOptions:function(){let t=r.getSlidesPerView("desktop");swiperOptions={autoplay:this.getAutoplayConfig(),grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:t,slidesPerGroup:r.getSlidesToScroll(t),loop:r.isEnableLoop(t),loopPreventsSlide:!0,pauseOnMouseEnter:!0,speed:a.transition_speed,effect:r.getEffect(),observeParents:!1,observer:!0,handleElementorBreakpoints:!1,slideClass:n.selectors.slide},w[0].classList.contains("elementor-widget-the7-woocommerce-product-images-slider")||(swiperOptions.autoHeight=r.getAutoHeight()),void 0!==v&&(swiperOptions.thumbs={swiper:v});swiperOptions.navigation={prevEl:b.$swiperContainer.children(".the7-swiper-button-prev")[0],nextEl:b.$swiperContainer.children(".the7-swiper-button-next")[0]},swiperOptions.pagination={el:b.$swiperContainer.children(".swiper-pagination")[0],type:"bullets",bulletActiveClass:"active",bulletClass:"owl-dot",clickable:!0,renderBullet:function(e,t){return'<button role="button" class="'+t+'" aria-label="Go to slide '+e+'1"><span></span></button>'}},swiperOptions.loopedSlides=r.getLoopedSlides(swiperOptions.slidesPerGroup),"fade"===swiperOptions.effect&&(swiperOptions.fadeEffect={crossFade:!0}),a.slides_gap&&(swiperOptions.spaceBetween=this.getSpaceBetween()),breakpoints=elementorFrontend.config.responsive.activeBreakpoints,swiperOptions.breakpoints={},Object.keys(breakpoints).forEach((e=>{let t=breakpoints[e].value;swiperOptions.breakpoints[t]={};let i=r.getSlidesPerView(e);i&&(swiperOptions.breakpoints[t].slidesPerView=i,swiperOptions.breakpoints[t].slidesPerGroup=r.getSlidesToScroll(i),swiperOptions.breakpoints[t].pagination={}),a.slides_gap&&(swiperOptions.breakpoints[t].spaceBetween=r.getSpaceBetween(e))}));let s=dtLocal.elementor.settings.container_width,o=a.widget_columns_wide_desktop_breakpoint;o&&(s=o);let l=a.wide_desk_columns;return l&&(swiperOptions.breakpoints[s]={slidesPerView:parseInt(l),slidesPerGroup:r.getSlidesToScroll(parseInt(l))}),swiperOptions=r.adjustBreakpointsConfig(swiperOptions),void 0!==i&&(swiperOptions=e.extend(!0,swiperOptions,i.swiperOptions)),swiperOptions},getThumbsOptions:function(){a.thumbs_items;let e=r.getDirection("desktop");swiperOptions={grabCursor:!0,initialSlide:this.getInitialSlide(),observeParents:!1,watchSlidesProgress:!0,slidesPerView:"auto",speed:600,threshold:20,slideClass:n.selectors.slide,direction:e};return swiperOptions.navigation={prevEl:b.$swiperThumbsContainer.siblings(".the7-thumbs-swiper-button-prev")[0],nextEl:b.$swiperThumbsContainer.siblings(".the7-thumbs-swiper-button-next")[0]},breakpoints=elementorFrontend.config.responsive.activeBreakpoints,swiperOptions.breakpoints={},Object.keys(breakpoints).forEach((e=>{let t=breakpoints[e].value;swiperOptions.breakpoints[t]={};let i=r.getDirection(e);i&&(swiperOptions.breakpoints[t].direction=i)})),swiperOptions=r.adjustBreakpointsConfig(swiperOptions),a.thumbs_spacing&&(swiperOptions.spaceBetween=this.getSpaceBetweenThumbs()),swiperOptions},adjustBreakpointsConfig(e){const t=elementorFrontend.config.responsive.activeBreakpoints,i=elementorFrontend.breakpoints.getBreakpointValues();return Object.keys(e.breakpoints).forEach((n=>{const s=parseInt(n);let o;if(s===t.mobile.value||s+1===t.mobile.value)o=0;else{if(t.widescreen&&(s===t.widescreen.value||s+1===t.widescreen.value))return;{const e=i.findIndex((e=>s===e||s+1===e));if(-1===e)return;o=i[e-1]}}e.breakpoints[o]=e.breakpoints[n],e.breakpoints[n]={slidesPerView:e.slidesPerView,slidesPerGroup:e.slidesPerGroup?e.slidesPerGroup:1},"spaceBetween"in e&&(e.breakpoints[n].spaceBetween=e.spaceBetween)})),e},getSpaceBetween(){if("fade"===swiperOptions.effect)return 0;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return The7ElementorSettings.getResponsiveControlValue(a,"slides_gap","size",e)||0},getDirection:e=>The7ElementorSettings.getResponsiveControlValue(a,"thumbs_direction","",e)||"vertical",getSpaceBetweenThumbs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return The7ElementorSettings.getResponsiveControlValue(a,"thumbs_spacing","size",e)||0},getAutoplayConfig:function(){return"yes"===a.autoplay&&{stopOnLastSlide:!0,delay:a.autoplay_speed,disableOnInteraction:!0}},handlePauseOnHover:function(){if(!w.vars.sliderInitialized)return;let e=!1;"yes"===a.pause_on_hover&&(e=!0),"yes"!==a.autoplay&&(e=!1),e?b.$swiperContainer.on({mouseenter:()=>{r.swiperAutoplayStop()},mouseleave:()=>{r.swiperAutoplayStart()}}):b.$swiperContainer.off("mouseenter mouseleave")},getInitialSlide:()=>0,initThumb:async function(){const e=b.$swiperThumbsContainer,t=elementorFrontend.utils.swiper;e.length&&(v=await new t(e,this.getThumbsOptions()),r.updateNav(v),r.updateBreakpoint(v),r.loopLazyFix(v),v.on("snapGridLengthChange",r.updateNav),v.on("breakpoint",r.updateBreakpoint),r.handleElementHandlers(v))},initSlider:async function(){const e=b.$swiperContainer;if(!e.length)return;const t=elementorFrontend.utils.swiper;r.getSlidesPerView("desktop");l=await new t(e,this.getSwiperOptions()),w.vars.sliderInitialized=!0,l.navigation.enabled=!0,r.isEnoughtElements(l.params.slidesPerView)&&(l.navigation.enabled=!1,l.navigation.enabled=!1),c=l.slides.find(".gallery-video-wrap"),r.clickVideo(l),r.updateBreakpoint(l),r.loopLazyFix(l),r.loopPhotoswipeFix(l),r.updateNav(l),r.findAnimationInElements(),w.css("opacity",1),r.updateActiveElements(),r.removeElementsAnimation(),r.zoomOnHover(),setTimeout((()=>{r.updateActiveElements(),r.removeElementsAnimation(!0),r.addElementsAnimation()}),300),r.handlePauseOnHover(),l.on("slideChange",(function(){r.playPauseVideo(l,"pause")})),l.on("slideChangeTransitionEnd",(function(){r.updateActiveElements(),r.removeElementsAnimation(),r.addElementsAnimation(),r.clickVideo(l)})),l.on("snapGridLengthChange",r.updateNav),l.on("breakpoint",r.updateBreakpoint),r.handleElementHandlers(l),w.find(".dt-owl-carousel-call, .elementor-owl-carousel-call, .related-projects, .slider-simple:not(.slider-masonry)").trigger("refresh.owl.carousel")},loopLazyFix:function(t){if(t.params.loop){let i=e(t.wrapperEl).children("."+t.params.slideDuplicateClass);i.find(".is-loading").removeClass("is-loading"),i.layzrInitialisation()}},loopPhotoswipeFix:function(t){if("y"===a.open_lightbox){e(t.wrapperEl).children("."+t.params.slideDuplicateClass).initPhotoswipe()}},updateNav:function(e){r.isEnoughtElements(e.params.slidesPerView)?e.navigation.enabled||(e.navigation.destroy(),e.navigation.init(),e.navigation.update(),e.pagination.destroy(),e.pagination.init(),e.pagination.render(),e.pagination.update(),e.navigation.enabled=!0):e.navigation.enabled&&(e.navigation.destroy(),e.navigation.$nextEl&&e.navigation.$nextEl.addClass(e.params.navigation.disabledClass),e.navigation.$prevEl&&e.navigation.$prevEl.addClass(e.params.navigation.disabledClass),e.pagination.destroy(),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.hiddenClass),e.navigation.enabled=!1)},updateBreakpoint:function(e){r.updateScrollSpeed(e);let t=!1,i=e.params.loop;if(e.params.loop=r.isEnableLoop(e.params.slidesPerView),!0===e.params.loop){let i=e.params.loopedSlides;e.params.loopedSlides=r.getLoopedSlides(e.params.slidesPerGroup),e.params.loopedSlides!=i&&(t=!0)}e.params.loop!==i&&e.params.loop&&(t=!0),t?(e.loopDestroy(),e.loopCreate(),e.updateSlides(),r.loopLazyFix(e),r.handleElementHandlers(e)):e.params.loop===i||e.params.loop||(e.loopDestroy(),e.updateSlides())},isEnableLoop:function(e){return"yes"===a.infinite&&r.isEnoughtElements(e)},isThumbsEnableLoop:function(e){return"yes"===a.thumbs_infinite&&r.isEnoughtElements(e)},updateScrollSpeed:function(e){e.$el[0].classList.contains("thumbs-slides-wrapper")||(e.params.speed=a.transition_speed,e.params.slidesPerGroup==e.params.slidesPerView&&(e.params.speed=e.params.slidesPerView*a.transition_speed))},updateSwiperOption:function(e){if(!w.vars.sliderInitialized)return;let t=!1;if(["slides_to_scroll","slides_gap","slides_per_view"].forEach((i=>{e.startsWith(i)&&(l.params.breakpoints=this.getSwiperOptions().breakpoints,l.currentBreakpoint=!1,l.update(),t=!0,r.findAnimationInElements(),e.startsWith("slides_per_view")&&(r.updateActiveElements(),r.addElementsAnimation()))})),t)return;const i=a[e];let s=n.changeableProperties[e],o=i;switch(e){case"autoplay_speed":l.autoplay.stop(),s="autoplay",o={delay:i,disableOnInteraction:!0};break;case"pause_on_hover":r.handlePauseOnHover();break;case"autoplay":l.autoplay.stop(),o=r.getAutoplayConfig(),r.handlePauseOnHover()}"pause_on_hover"!==e&&(l.params[s]=o),l.update(),"autoplay"===s&&"yes"===a.autoplay&&l.autoplay.start()},isLoop:function(){return"the7-slider-loop"===p},updateActiveElements:function(){if(!l.params)return;let t=[],i=l.params.slidesPerView?l.params.slidesPerView:1,s=l.activeIndex,o=s+i;for(let i=s;i<o;i++){let n=b.animatedSlides[i];void 0!==n&&(t=e.merge(e.merge([],n),t))}e(l.slides).filter(n.selectors.activeDuplicate).each((function(n){const a=e(l.slides).index(e(this));s=a,o=s+i;for(let i=a;i<o;i++){const n=b.animatedSlides[i];void 0!==n&&(t=e.merge(e.merge([],n),t))}})),b.activeElements=t},removeElementsAnimation(t=!1){if(!w.vars.sliderInitialized)return;let i=[];Object.keys(b.animatedSlides).forEach((function(t){let n=b.animatedSlides[t];i=e.merge(e.merge([],n),i)})),t||(i=i.filter((function(t){return e.inArray(t,b.activeElements)<0}))),i.forEach((function(e){let i=e.$element.filter(".the7-ignore-anim");i.length?t||i.trigger("the7-slide:hide"):o.resetElement(e)}))},addElementsAnimation(){w.vars.sliderInitialized&&b.activeElements.forEach((function(e){let t=e.$element.filter(".the7-ignore-anim");t.length?t.trigger("the7-slide:change"):o.animateElement(e)}))},findAnimationInElements(){if(!w.vars.sliderInitialized)return;let t={};e(l.slides).each((function(i){const n=e(this);let s=o.findAnimationsInNode(n);s.length&&(t[i]=s)})),b.animatedSlides=t},zoomOnHover(){"y"===a.zoom_on_hover&&e(".mobile-false").length>0&&e(".the7-zoom-on-hover",b.$swiperContainer).on({mousemove:e=>{let t=e.currentTarget,i=e.offsetX?e.offsetX:0,n=e.offsetX?e.offsetY:0,s=i/t.offsetWidth*100,o=n/t.offsetHeight*100;t.style.backgroundPosition=`${s}% ${o}%`}})},postMessageToPlayer:function(e,t){null!=e&&null!=t&&e.contentWindow.postMessage(JSON.stringify(t),"*")},clickVideo:function(t){u.length&&u.is(":visible")&&"y"!==a.open_lightbox?c.parent().on("click",(function(i){var n=e(this);n.hasClass("playing-video")||(n.find(".the7-video-overlay").remove(),r.playPauseVideo(t,"play"),n.addClass("playing-video"))})):("mobile"!==f&&h||"mobile"===f&&h&&g)&&r.playPauseVideo(t,"play")},playPauseVideo:function(e,t){var i,n,s,o,l,d;i=e.slides.eq(e.activeIndex),a.play_on_mobile,l=!!a.mute,d=!!a.loop;var p=i.find("iframe");if(p.length>0?(n=p.attr("title").split(" ")[0],s=p[0]):n="video","vimeo"===n)switch(t){case"play":0,r.postMessageToPlayer(s,{method:"play",value:1});break;case"pause":r.postMessageToPlayer(s,{method:"pause",value:1})}else if("youtube"===n)switch(t){case"play":l&&r.postMessageToPlayer(s,{event:"command",func:"mute"}),r.postMessageToPlayer(s,{event:"command",func:"playVideo"}),d&&r.postMessageToPlayer(s,{event:"command",func:"loop"});break;case"pause":r.postMessageToPlayer(s,{event:"command",func:"pauseVideo"})}else"video"===n&&i.find("video").length&&null!=(o=i.find("video")[0])&&("play"===t?o.play():o.pause())}},w.refresh=function(){a=s.getSettings(),r.unBindEvents(),r.bindEvents()},this.update=function(){l&&(l.update(),v&&v.update())},this.delete=function(){r.unBindEvents(),w.removeData("the7Slider"),l&&l.destroy()},this.updateSwiperOption=function(e){a=s.getSettings(),r.updateSwiperOption(e)},this.onDocumentLoaded=function(e){if("loop-item"===e.config.type&&r.isLoop()){if(!w.vars.sliderInitialized)return;r.handleSlider();let t=[".swiper-pagination",".the7-swiper-button"];const i=e.id;t=[...t,"style#loop-"+i,"link#font-loop-"+i,"style#loop-dynamic-"+i],t.forEach((e=>{w.find(e).remove()}))}},w.getSwiper=function(){return l},this.getSwiper=function(){return l},r.init()},e.fn.the7Slider=function(t){var i="string"==typeof t,n=Array.prototype.slice.call(arguments,1);return this.each((function(){var s=e(this);if(i){var o=s.data("the7Slider");if(!o)throw Error("Trying to perform the `"+t+"` method prior to initialization");if(!o[t])throw ReferenceError("Method `"+t+"` not found in instance");o[t].apply(o,n)}else s.data("the7Slider",new e.the7Slider(this,t))})),this}})),function(e){e(window).on("elementor/frontend/init",(function(){function t(e,t){t(document).ready((function(){elementorFrontend.isEditMode()&&The7ElementorAnimation.patchElementsAnimation(e),e.the7Slider()}))}function i(t,i){let n=["autoplay_speed","pause_on_hover","autoplay","transition_speed",...The7ElementorSettings.getResponsiveSettingList("slides_gap"),"slides_to_scroll",...The7ElementorSettings.getResponsiveSettingList("slides_per_view")];const s=t.model.get("name");if(-1!==n.indexOf(s)){const t=e(i.$el).data("the7Slider");void 0!==t&&t.updateSwiperOption(s)}}elementorFrontend.hooks.addAction("frontend/element_ready/the7-slider.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/the7-slider-loop.post",t),elementorFrontend.hooks.addAction("frontend/element_ready/the7-woocommerce-product-images-slider.default",t),elementorFrontend.isEditMode()?(elementorEditorAddOnChangeHandler("the7-slider",i),elementorEditorAddOnChangeHandler("the7-slider-loop",i),elementorEditorAddOnChangeHandler("the7-woocommerce-product-images-slider",i),elementor.on("document:loaded",(function(t){e(".elementor-widget-the7-slider-loop").each((function(){const i=e(this).data("the7Slider");void 0!==i&&i.onDocumentLoaded(t)}))}))):The7ElementorAnimation.patchElementsAnimation(e(".elementor-widget-the7-slider-common .the7-swiper-slide"))}))}(jQuery); ;!function(t){var n=function(n,i){var e,s,o={},r={container:null,items:"article",columnsCount:3,verticalSpaceBetween:30,classes:{active:"sGrid-masonry"}};this.init=function(t){c(t),a(),h(),l()};var a=function(){e=t(n),o.$container=null===s.container?e:t(s.container),o.$items=o.$container.children(s.items),o.$container.addClass(s.classes.active),o.$window=t(window)},c=function(n){s=t.extend(!0,r,n)},h=function(){};this.update=function(){l()},this.setSettings=function(t){o.$items.css({transition:"none"}),this.destroy(),this.init(t)},this.destroy=function(){o.$container.removeClass(s.classes.active),o.$items.css({"margin-top":""}),o.$container.height("")};var l=function(){var n=[],i=o.$container.position().top,e=s.columnsCount;e<=1||(o.$items.css({transition:"none"}),i+=parseInt(o.$container.css("margin-top"),10),o.$items.each((function(o){var r=Math.floor(o/e),a=t(this),c=a[0].getBoundingClientRect().height+s.verticalSpaceBetween;if(r){var h=a.position(),l=o%e,m=h.top-i-n[l];0!==(m*=-1)&&a.css("margin-top",m+"px"),n[l]+=c}else n.push(c)})),o.$items.css({transition:""}))};this.init(i)};t.fn.The7SimpleMasonry=function(i){var e="string"==typeof i,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var o=t(this);if(e){var r=o.data("the7-simple-masonry");if(!r)throw Error("Trying to perform the `"+i+"` method prior to initialization");if(!r[i])throw ReferenceError("Method `"+i+"` not found in instance");r[i].apply(r,s),"destroy"===i&&o.removeData("the7-simple-masonry")}else o.data("the7-simple-masonry",new n(this,i))})),this}}(jQuery); ;!function(e){e.the7PostLoop=function(t){const n={gridContainer:".sGrid-container",filterContainer:".filter",filterCategories:".filter-categories",paginator:".paginator",wrapper:".the7-elementor-widget"},i={inPlaceTemplateEditable:"elementor-in-place-template-editable",loading:"loading-effect"},o={paged:"data-paged",pagenum:"data-page-num",paginationMode:"data-pagination-mode"};let a,r,l,s,d,c,f=e(t),g=f.find(n.wrapper).first();f.vars={masonryActive:!1,filteradeActive:!1,paginationActive:!1,isInlineEditing:!1,effectsTimer:null,effectsTimerEnable:!1,ajaxLoading:!1},e.data(t,"the7PostLoop",f),l={init:function(){a=new The7ElementorSettings(f),d=a.getID(),s=a.getWidgetType(),r=a.getSettings(),l.initElements(),l.bindEvents(),f.refresh(),elementorFrontend.isEditMode()&&(l.handleCTA(),window.the7ApplyGeneralFilterHandlers(c.$filterCategories)),f.refresh=elementorFrontend.debounce(f.refresh,300)},initElements:function(){c={$gridContainer:g.children(n.gridContainer).first(),$filterContainer:g.children(n.filterContainer).first(),$paginator:g.children(n.paginator).first()},c.$filterCategories=c.$filterContainer.find(n.filterCategories).first(),c.$filterItems=c.$filterCategories.find("> a")},onFilterBtnClick(t){f.vars.paginationActive&&(e(t.target).removeClass("act"),l.addLoadingAnimation())},onStandardPaginationBtnClick(e){l.addLoadingAnimation()},onAjaxPaginationBtnClick(t){if(t.preventDefault(),elementorFrontend.isEditMode())return;if(f.vars.ajaxLoading)return;let i=e(this),a=parseInt(g.attr(o.paged));if(parseInt(i.attr(o.pagenum))===a)return;f.vars.ajaxLoading=!0;let r=l.updateURLQueryString(i.attr("href")),s=l.getAjaxData();l.addLoadingAnimation(),e.ajax({type:"GET",url:r,data:s,error:function(e){},success:function(t){if(t){c.$gridContainer.The7SimpleFilterade("destroy");let i=e(t).find(`.elementor-element-${d} ${n.wrapper}`).first();if(0===i.length)return void console.log("Cannot loads ajax data");let a=i.children(n.gridContainer).first(),r=i.children(n.paginator).first();c.$gridContainer.replaceWith(a),c.$paginator.replaceWith(r);let s=i.attr(o.paged);g.attr(o.paged,s),f.vars.filteradeActive=!1,f.vars.paginationActive=!1,f.vars.masonryActive=!1,l.initElements(),l.unBindEvents(),l.bindEvents(),l.handleElementHandlers(),f.refresh(),c.$gridContainer.The7SimpleFilterade("paginationScroll",c.$paginator)}},complete:function(){l.removeLoadingAnimation(),f.vars.ajaxLoading=!1}})},initPagination:function(){if(!f.vars.paginationActive){let e=g.attr(o.paginationMode);"ajax_pagination"===e?(c.$paginator.find("a").on("click",l.onAjaxPaginationBtnClick),f.vars.paginationActive=!0):"standard"===e&&(c.$paginator.find("a").on("click",l.onStandardPaginationBtnClick),f.vars.paginationActive=!0)}},getClosestDataElementorId:function(){const e=f.closest("[data-elementor-id]");return e?e.data("elementor-id"):0},getAjaxData:function(){return{"the7-widget-post-id":elementorFrontend.config.post.id||l.getClosestDataElementorId(),"the7-widget-content":d}},updateURLQueryString:function(e){const t=new URL(window.location.href),n=new URL(e);t.pathname=n.pathname;const i=t.searchParams,o=n.searchParams;return o.forEach(((e,t)=>{i.set(t,e)})),o.has("the7-page-"+d)||i.delete("the7-page-"+d),history.pushState(null,"",t.href),t.href},initFilter:function(){let e=l.getFilterConfig();f.vars.filteradeActive?c.$gridContainer.The7SimpleFilterade("update",e):(c.$gridContainer.The7SimpleFilterade(e),f.vars.filteradeActive=!0)},getFilterConfig:function(){let e=the7ShortcodesFilterConfig(c.$filterContainer);return e.paginationMode=g.attr(o.paginationMode),e.pageLimit=g.attr("data-post-limit"),e.pageControls=g.children(".paginator, .paginator-more-button"),e.pagesToShow=g.hasClass("show-all-pages")?999:5,e.pagerClass="page-numbers filter-item",e.nodesSelector="> .wf-cell",e.usePaginationScroll="y"===r.pagination_scroll,e.scrollPagesOffset=r.pagination_scroll_offset?r.pagination_scroll_offset.size:0,e.infinityScroll=g.hasClass("lazy-loading-mode"),f.vars.paginationActive&&(e.useFilters=!1,e.useSorting=!1),e},handleLoadingEffects:function(){f.vars.effectsTimerEnable?(clearTimeout(f.vars.effectsTimer),f.vars.effectsTimer=setTimeout((function(){f.vars.effectsTimerEnable=!1,l.processEffects(),elementorFrontend.elements.$window.on("scroll",l.handleLoadingEffects)}),500)):l.processEffects()},addLoadingAnimation:function(){f.addClass(i.loading)},removeLoadingAnimation:function(){f.removeClass(i.loading)},processEffects:function(){let e=c.$gridContainer.children(".wf-cell:not(.shown)");window.the7ProcessEffects(e)},handleElementHandlers:function(){const e=c.$gridContainer.find(".e-loop-item");runElementHandlers(e)},handleCTA:function(){if("undefined"===elementorPro)return;const e=document.querySelector(`[data-id="${a.getID()}"] .e-loop-empty-view__wrapper`);if(document.querySelector(`[data-id="${a.getID()}"] .e-loop-empty-view__wrapper_old`))return void f.css("opacity",1);if(!e)return;const t=e.attachShadow({mode:"open"});t.appendChild(elementorPro.modules.loopBuilder.getCtaStyles()),t.appendChild(elementorPro.modules.loopBuilder.getCtaContent(s));t.querySelector(".e-loop-empty-view__box-cta").addEventListener("click",(()=>{elementorPro.modules.loopBuilder.createTemplate(),l.handlePostEdit()})),f.css("opacity",1)},bindEvents:function(){elementorFrontend.elements.$window.on("scroll",l.handleLoadingEffects),elementorFrontend.elements.$window.on("the7-resize-width",l.handleResize),c.$gridContainer.on("beforeSwitchPage",l.onBeforeSwitchPage),c.$gridContainer.on("updateReady",l.onFilteradeUpdateReady),c.$filterItems.on("click",l.onFilterBtnClick)},unBindEvents:function(){elementorFrontend.elements.$window.off("scroll",l.handleLoadingEffects),elementorFrontend.elements.$window.off("the7-resize-width",l.handleResize),c.$gridContainer.off("beforeSwitchPage",l.onBeforeSwitchPage),c.$gridContainer.off("updateReady",l.onFilteradeUpdateReady),c.$filterItems.off("click",l.onFilterBtnClick)},onBeforeSwitchPage:function(){elementorFrontend.elements.$window.off("scroll",l.handleLoadingEffects),f.vars.effectsTimerEnable=!0},onFilteradeUpdateReady:function(){l.handleLoadingEffects(),l.updateSimpleMasonry()},handleResize:function(){l.isMasonryEnabled()?f.vars.masonryActive?l.updateSimpleMasonry():(c.$gridContainer.The7SimpleMasonry(l.getMasonryConfig()),f.vars.masonryActive=!0):f.vars.masonryActive&&(c.$gridContainer.The7SimpleMasonry("destroy"),f.vars.masonryActive=!1)},updateSimpleMasonry(){f.vars.masonryActive&&c.$gridContainer.The7SimpleMasonry("setSettings",l.getMasonryConfig())},getMasonryConfig:function(){return{items:".wf-cell.visible",columnsCount:+The7ElementorSettings.getResponsiveControlValue(r,"columns","size")||0,verticalSpaceBetween:+The7ElementorSettings.getResponsiveControlValue(r,"rows_gap","size")||0}},isMasonryEnabled:function(){return!!r.layout},handlePostEdit(){f.vars.isInlineEditing=!0,f.addClass(i.inPlaceTemplateEditable)},updateOption:function(e){r[e]}},f.refresh=function(){r=a.getSettings(),l.initPagination(),l.initFilter(),l.handleResize()},f.delete=function(){l.unBindEvents(),f.removeData("the7PostLoop")},f.onDocumentLoaded=function(e){if("loop-item"===e.config.type){l.handlePostEdit();let t=[];const n=e.id;t=[...t,"style#loop-"+n,"link#font-loop-"+n,"style#loop-dynamic-"+n],t.forEach((e=>{f.find(e).remove()}))}},l.init()},e.fn.the7PostLoop=function(){return this.each((function(){var t=e(this).data("the7PostLoop");void 0!==t&&t.delete(),new e.the7PostLoop(this)}))},e(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/the7-post-loop.post",(function(e,t){t(document).ready((function(){e.the7PostLoop()}))})),elementorFrontend.isEditMode()&&(elementorEditorAddOnChangeHandler("the7-post-loop",(function(t,n){let i=["layout",...The7ElementorSettings.getResponsiveSettingList("columns"),...The7ElementorSettings.getResponsiveSettingList("rows_gap"),...The7ElementorSettings.getResponsiveSettingList("columns_gap"),"pagination_scroll_offset","pagination_scroll"];const o=t.model.get("name");if(-1!==i.indexOf(o)){const t=e(n.$el).data("the7PostLoop");void 0!==t&&t.refresh(o)}})),elementor.on("document:loaded",(function(t){e(".elementor-widget-the7-post-loop").each((function(){const n=e(this).data("the7PostLoop");void 0!==n&&n.onDocumentLoaded(t)}))})))}))}(jQuery); ;/*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})); ;!function(t){var o=function(o,s){var i,e,n,r,a=!1,c=!1,f=!1,p={},l={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1},d=function(t,o,s){var i={},e=t[0].style;s.forEach((function(t){i[t]=void 0!==e[t]?e[t]:""})),t.data("css-backup-"+o,i)},m=function(t,o){return t.data("css-backup-"+o)};const u=()=>{if(r=b(i,"width"),n=i.offset().left,e.isRTL){const t=e.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;n=Math.max(t-r-n,0)}};var h=function(){p.$spacer=i.clone().addClass(e.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(p.$spacer)},y=function(){p.$spacer.remove()},k=function(){d(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);const t={position:"fixed",width:r,marginTop:0,marginBottom:0};t[e.to]=e.offset,t["top"===e.to?"bottom":"top"]="",n&&(t["inset-inline-start"]=n+"px"),i.css(t).addClass(e.classes.stickyActive)},v=function(){i.css(m(i,"unsticky")).removeClass(e.classes.stickyActive)},b=function(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),s&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){e+=parseFloat(i[t+"-"+o])}))})),e},w=function(t){var o=p.$window.scrollTop(),s=b(t,"height"),i=innerHeight,e=t.offset().top-o,n=e-i;return{top:{fromTop:e,fromBottom:n},bottom:{fromTop:e+s,fromBottom:n+s}}},g=function(){v(),y(),a=!1,i.trigger("sticky:unstick")},$=function(){var t=w(i),o="top"===e.to;if(c){(o?t.top.fromTop>e.offset:t.bottom.fromBottom<-e.offset)&&(p.$parent.css(m(p.$parent,"childNotFollowing")),i.css(m(i,"notFollowing")),c=!1)}else{var s=w(p.$parent),a=getComputedStyle(p.$parent[0]),f=parseFloat(a[o?"borderBottomWidth":"borderTopWidth"]),l=o?s.bottom.fromTop-f:s.top.fromBottom+f;(o?l<=t.bottom.fromTop:l>=t.top.fromBottom)&&function(){d(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),d(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(n=p.$spacer.position().left,e.isRTL){const t=i.parent().outerWidth(),o=p.$spacer.position().left;r=p.$spacer.outerWidth(),n=Math.max(t-r-o,0)}t["inset-inline-start"]=n+"px",t[e.to]="",t["top"===e.to?"bottom":"top"]=0,i.css(t),c=!0}()}},T=function(){var t,o=e.offset;if(a){var s=w(p.$spacer);t="top"===e.to?s.top.fromTop-o:-s.bottom.fromBottom-o,e.parent&&$(),t>0&&g()}else{var n=w(i);(t="top"===e.to?n.top.fromTop-o:-n.bottom.fromBottom-o)<=0&&(u(),h(),k(),a=!0,i.trigger("sticky:stick"),e.parent&&$())}!function(t){f&&-t<e.effectsOffset?(i.removeClass(e.classes.stickyEffects),f=!1):!f&&-t>=e.effectsOffset&&(i.addClass(e.classes.stickyEffects),f=!0)}(t)},B=function(){T()},C=function(){a&&(v(),y(),u(),h(),k(),e.parent&&(c=!1,$()))};this.destroy=function(){a&&g(),p.$window.off("scroll",B).off("resize",C),i.removeClass(e.classes.sticky)},e=jQuery.extend(!0,l,s),i=t(o).addClass(e.classes.sticky),p.$window=t(window),e.parent&&(p.$parent=i.parent(),"parent"!==e.parent&&(p.$parent=p.$parent.closest(e.parent))),p.$window.on({scroll:B,resize:C}),T()};t.fn.sticky=function(s){var i="string"==typeof s;return this.each((function(){var e=t(this);if(i){var n=e.data("sticky");if(!n)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!n[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");n[s].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===s&&e.removeData("sticky")}else e.data("sticky",new o(this,s))})),this},window.Sticky=o}(jQuery); ;/*! * jQuery Mousewheel 3.1.13 * Copyright OpenJS Foundation and other contributors */ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}((function(e){var t,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in window.document||window.document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var s=n.length;s;)e.event.fixHooks[n[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],h,!1);else this.onmousewheel=h;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],h,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function h(n){var o,s=n||window.event,h=l.call(arguments,1),f=0,d=0,w=0;if((n=e.event.fix(s)).type="mousewheel","detail"in s&&(w=-1*s.detail),"wheelDelta"in s&&(w=s.wheelDelta),"wheelDeltaY"in s&&(w=s.wheelDeltaY),"wheelDeltaX"in s&&(d=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=-1*w,w=0),f=0===w?d:w,"deltaY"in s&&(f=w=-1*s.deltaY),"deltaX"in s&&(d=s.deltaX,0===w&&(f=-1*d)),0!==w||0!==d){if(1===s.deltaMode){var c=e.data(this,"mousewheel-line-height");f*=c,w*=c,d*=c}else if(2===s.deltaMode){var m=e.data(this,"mousewheel-page-height");f*=m,w*=m,d*=m}if(o=Math.max(Math.abs(w),Math.abs(d)),(!i||o<i)&&(i=o,u(s,o)&&(i/=40)),u(s,o)&&(f/=40,d/=40,w/=40),f=Math[f>=1?"floor":"ceil"](f/i),d=Math[d>=1?"floor":"ceil"](d/i),w=Math[w>=1?"floor":"ceil"](w/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var g=this.getBoundingClientRect();n.offsetX=n.clientX-g.left,n.offsetY=n.clientY-g.top}return n.deltaX=d,n.deltaY=w,n.deltaFactor=i,n.deltaMode=0,h.unshift(n,f,d,w),t&&window.clearTimeout(t),t=window.setTimeout(r,200),(e.event.dispatch||e.event.handle).apply(this,h)}}function r(){i=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.on("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.off("mousewheel",e)}})})); ;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}((function(e){var t,o,a,n,i,r,l,s,c,d,u,f,h,m,p,g,v,x,_,w,S,b,C,y,B,T,k,M,O,I,D,E,W,R,A,L,z,P,H,U,F,q,j,Y,X,N,V,Q,G,J,K,Z,$,ee,te,oe,ae,ne,ie,re,le;ie="function"==typeof define&&define.amd,re="undefined"!=typeof module&&module.exports,le="https:"==document.location.protocol?"https:":"http:",ie||(re?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+le+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){t=e.extend(!0,{},i,t);var o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout((function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)}),500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each((function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}}))},update:function(t,o){var n=t||f.call(this);return e(n).each((function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}}))},scrollTo:function(t,o){if(void 0!==t&&null!=t){var n=f.call(this);return e(n).each((function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout((function(){null!==c[0]&&void 0!==c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&void 0!==c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))}),s.timeout)}}))}},stop:function(){var t=f.call(this);return e(t).each((function(){var t=e(this);t.data(a)&&Q(t)}))},disable:function(t){var o=f.call(this);return e(o).each((function(){var o=e(this);o.data(a)&&(o.data(a),N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3]))}))},destroy:function(){var t=f.call(this);return e(t).each((function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}}))}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,o)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,a)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,n)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar'></div></div><div class='mCSB_draggerRail'></div></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar'></div></div></div><div class='mCSB_draggerRail'></div></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map((function(){return e(this).outerWidth(!0)})).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this).data(a),o=t.opt,n=e("#mCSB_"+t.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var i=Math.ceil(n[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&i>n.parent().width()?n.css({width:i,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this).data(a),o=t.opt,n=e(".mCSB_"+t.idx+"_scrollbar:first"),i=oe(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+d[13]+"' "+i+" />","<a href='#' class='"+d[14]+"' "+i+" />","<a href='#' class='"+d[15]+"' "+i+" />","<a href='#' class='"+d[16]+"' "+i+" />"],l=["x"===o.axis?r[2]:r[0],"x"===o.axis?r[3]:r[1],r[2],r[3]];o.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this).data(a),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),i=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],r=[o.height()/n.outerHeight(!1),o.width()/n.outerWidth(!1)],l=[parseInt(i[0].css("min-height")),Math.round(r[0]*i[0].parent().height()),parseInt(i[1].css("min-width")),Math.round(r[1]*i[1].parent().width())],c=s&&l[1]<l[0]?l[0]:l[1],d=s&&l[3]<l[2]?l[2]:l[3];i[0].css({height:c,"max-height":i[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":l[0]+"px"}),i[1].css({width:d,"max-width":i[1].parent().width()-10})},b=function(){var t=e(this).data(a),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),i=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],r=[n.outerHeight(!1)-o.height(),n.outerWidth(!1)-o.width()],l=[r[0]/(i[0].parent().height()-i[0].height()),r[1]/(i[1].parent().width()-i[1].width())];t.scrollRatio={y:l[0],x:l[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this).data(a),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),i=null==t.overflowed?n.height():n.outerHeight(!1),r=null==t.overflowed?n.width():n.outerWidth(!1),l=n[0].scrollHeight,s=n[0].scrollWidth;return l>Math.round(i)&&(i=l),s>Math.round(r)&&(r=s),[i>o.height(),r>o.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){var t=e(this),o=t.data(a),n=o.opt;if(!o.bindEvents){if(I.call(this),n.contentTouchScroll&&D.call(this),E.call(this),n.mouseWheel.enable){function i(){r=setTimeout((function(){e.event.special.mousewheel?(clearTimeout(r),W.call(t[0])):i()}),100)}var r;i()}P.call(this),U.call(this),n.advanced.autoScrollOnFocus&&H.call(this),n.scrollButtons.enable&&F.call(this),n.keyboard.enable&&q.call(this),o.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each((function(){e(this).unbind("."+i)})),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){var t,o,n,i=e(this),r=i.data(a),l=r.opt,d=a+"_"+r.idx,u=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],f=e("#mCSB_"+r.idx+"_container"),h=e("#"+u[0]+",#"+u[1]),m=l.advanced.releaseDraggableSelectors?h.add(e(l.advanced.releaseDraggableSelectors)):h,p=l.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(l.advanced.extraDraggableSelectors)):e(!A()||top.document);function g(e,o,a,n){if(f[0].idleTimer=l.scrollInertia<233?250:0,t.attr("id")===u[1])var s="x",c=(t[0].offsetLeft-o+n)*r.scrollRatio.x;else s="y",c=(t[0].offsetTop-e+a)*r.scrollRatio.y;G(i,c.toString(),{dir:s,drag:!0})}h.bind("contextmenu."+d,(function(e){e.preventDefault()})).bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,(function(a){if(a.stopImmediatePropagation(),a.preventDefault(),ee(a)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(f,!1),Q(i);var r=(t=e(this)).offset(),d=O(a)[0]-r.top,u=O(a)[1]-r.left,h=t.height()+r.top,m=t.width()+r.left;d<h&&d>0&&u<m&&u>0&&(o=d,n=u),C(t,"active",l.autoExpandScrollbar)}})).bind("touchmove."+d,(function(e){e.stopImmediatePropagation(),e.preventDefault();var a=t.offset(),i=O(e)[0]-a.top,r=O(e)[1]-a.left;g(o,n,i,r)})),e(document).add(p).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,(function(e){if(t){var a=t.offset(),i=O(e)[0]-a.top,r=O(e)[1]-a.left;if(o===i&&n===r)return;g(o,n,i,r)}})).add(m).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,(function(e){t&&(C(t,"active",l.autoExpandScrollbar),t=null),c=!1,s&&(document.onselectstart=null),L.call(f,!0)}))},D=function(){var o,n,i,r,l,s,d,u,f,h,m,p,g,v,x=e(this),_=x.data(a),w=_.opt,S=a+"_"+_.idx,b=e("#mCSB_"+_.idx),C=e("#mCSB_"+_.idx+"_container"),y=[e("#mCSB_"+_.idx+"_dragger_vertical"),e("#mCSB_"+_.idx+"_dragger_horizontal")],B=[],T=[],k=0,M="yx"===w.axis?"none":"all",I=[],D=C.find("iframe"),E=["touchstart."+S+" pointerdown."+S+" MSPointerDown."+S,"touchmove."+S+" pointermove."+S+" MSPointerMove."+S,"touchend."+S+" pointerup."+S+" MSPointerUp."+S],W=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function R(e){if(!te(e)||c||O(e)[2])t=0;else{t=1,g=0,v=0,o=1,x.removeClass("mCS_touch_action");var a=C.offset();n=O(e)[0]-a.top,i=O(e)[1]-a.left,I=[O(e)[0],O(e)[1]]}}function L(e){if(te(e)&&!c&&!O(e)[2]&&(w.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!v||g)&&o)){d=K();var t=b.offset(),a=O(e)[0]-t.top,r=O(e)[1]-t.left,l="mcsLinearOut";if(B.push(a),T.push(r),I[2]=Math.abs(O(e)[0]-I[0]),I[3]=Math.abs(O(e)[1]-I[1]),_.overflowed[0])var s=y[0].parent().height()-y[0].height(),u=n-a>0&&a-n>-s*_.scrollRatio.y&&(2*I[3]<I[2]||"yx"===w.axis);if(_.overflowed[1])var f=y[1].parent().width()-y[1].width(),h=i-r>0&&r-i>-f*_.scrollRatio.x&&(2*I[2]<I[3]||"yx"===w.axis);u||h?(W||e.preventDefault(),g=1):(v=1,x.addClass("mCS_touch_action")),W&&e.preventDefault(),m="yx"===w.axis?[n-a,i-r]:"x"===w.axis?[null,i-r]:[n-a,null],C[0].idleTimer=250,_.overflowed[0]&&U(m[0],k,l,"y","all",!0),_.overflowed[1]&&U(m[1],k,l,"x",M,!0)}}function z(e){if(!te(e)||c||O(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),Q(x),s=K();var o=b.offset();r=O(e)[0]-o.top,l=O(e)[1]-o.left,B=[],T=[]}}function P(e){if(te(e)&&!c&&!O(e)[2]){o=0,e.stopImmediatePropagation(),g=0,v=0,u=K();var t=b.offset(),a=O(e)[0]-t.top,n=O(e)[1]-t.left;if(!(u-d>30)){var i="mcsEaseOut",x=(h=1e3/(u-s))<2.5,S=x?[B[B.length-2],T[T.length-2]]:[0,0];f=x?[a-S[0],n-S[1]]:[a-r,n-l];var y=[Math.abs(f[0]),Math.abs(f[1])];h=x?[Math.abs(f[0]/4),Math.abs(f[1]/4)]:[h,h];var k=[Math.abs(C[0].offsetTop)-f[0]*H(y[0]/h[0],h[0]),Math.abs(C[0].offsetLeft)-f[1]*H(y[1]/h[1],h[1])];m="yx"===w.axis?[k[0],k[1]]:"x"===w.axis?[null,k[1]]:[k[0],null],p=[4*y[0]+w.scrollInertia,4*y[1]+w.scrollInertia];var I=parseInt(w.contentTouchScroll)||0;m[0]=y[0]>I?m[0]:0,m[1]=y[1]>I?m[1]:0,_.overflowed[0]&&U(m[0],p[0],i,"y",M,!1),_.overflowed[1]&&U(m[1],p[1],i,"x",M,!1)}}}function H(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function U(e,t,o,a,n,i){e&&G(x,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}C.bind(E[0],(function(e){R(e)})).bind(E[1],(function(e){L(e)})),b.bind(E[0],(function(e){z(e)})).bind(E[2],(function(e){P(e)})),D.length&&D.each((function(){e(this).bind("load",(function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(E[0],(function(e){R(e),z(e)})).bind(E[1],(function(e){L(e)})).bind(E[2],(function(e){P(e)}))}))}))},E=function(){var o,n=e(this),i=n.data(a),r=i.opt,l=i.sequential,s=a+"_"+i.idx,d=e("#mCSB_"+i.idx+"_container"),u=d.parent();function f(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function h(e,t,a){l.type=a&&o?"stepped":"stepless",l.scrollAmount=10,j(n,e,t,"mcsLinearOut",a?60:null)}d.bind("mousedown."+s,(function(e){t||o||(o=1,c=!0)})).add(document).bind("mousemove."+s,(function(e){if(!t&&o&&f()){var a=d.offset(),n=O(e)[0]-a.top+d[0].offsetTop,s=O(e)[1]-a.left+d[0].offsetLeft;n>0&&n<u.height()&&s>0&&s<u.width()?l.step&&h("off",null,"stepped"):("x"!==r.axis&&i.overflowed[0]&&(n<0?h("on",38):n>u.height()&&h("on",40)),"y"!==r.axis&&i.overflowed[1]&&(s<0?h("on",37):s>u.width()&&h("on",39)))}})).bind("mouseup."+s+" dragend."+s,(function(e){t||(o&&(o=0,h("off",null)),c=!1)}))},W=function(){if(e(this).data(a)){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],c=e("#mCSB_"+o.idx+"_container").find("iframe");c.length&&c.each((function(){e(this).bind("load",(function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+i,(function(e,t){d(e,t)}))}))})),r.bind("mousewheel."+i,(function(e,t){d(e,t)}))}function d(a,i){if(Q(t),!z(t,a.target)){var c="auto"!==n.mouseWheel.deltaFactor?parseInt(n.mouseWheel.deltaFactor):s&&a.deltaFactor<100?100:a.deltaFactor||100,d=n.scrollInertia;if("x"===n.axis||"x"===n.mouseWheel.axis)var u="x",f=[Math.round(c*o.scrollRatio.x),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=r.width()?.9*r.width():f[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),p=l[1][0].offsetLeft,g=l[1].parent().width()-l[1].width(),v="y"===n.mouseWheel.axis?a.deltaY||i:a.deltaX;else u="y",f=[Math.round(c*o.scrollRatio.y),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=r.height()?.9*r.height():f[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),p=l[0][0].offsetTop,g=l[0].parent().height()-l[0].height(),v=a.deltaY||i;"y"===u&&!o.overflowed[0]||"x"===u&&!o.overflowed[1]||((n.mouseWheel.invert||a.webkitDirectionInvertedFromDevice)&&(v=-v),n.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==p||v<0&&p!==g||n.mouseWheel.preventDefault)&&(a.stopImmediatePropagation(),a.preventDefault()),a.deltaFactor<5&&!n.mouseWheel.normalizeDelta&&(h=a.deltaFactor,d=17),G(t,(m-v*h).toString(),{dir:u,dur:d}))}}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),!1!==a&&void 0!==R[a])return R[a];if(t){try{n=(t.contentDocument||t.contentWindow.document).body.innerHTML}catch(e){}o=null!==n}else{try{n=top.document.body.innerHTML}catch(e){}o=null!==n}return!1!==a&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent();e(".mCSB_"+n.idx+"_scrollbar ."+d[12]).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,(function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)})).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,(function(e){c=!1})).bind("click."+i,(function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}}))},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,(function(o){var a=e(document.activeElement),i=r.find(".mCustomScrollBox").length,s=0;a.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?(s+17)*i:0,t[0]._focusTimeout=setTimeout((function(){var e=[ae(a)[0],ae(a)[1]],o=[r[0].offsetTop,r[0].offsetLeft],i=[o[0]+e[0]>=0&&o[0]+e[0]<l.height()-a.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<l.width()-a.outerWidth(!1)],c="yx"!==n.axis||i[0]||i[1]?"all":"none";"x"===n.axis||i[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s}),"y"===n.axis||i[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s})}),t[0]._focusTimer))}))},U=function(){var t=e(this).data(a),o=a+"_"+t.idx,n=e("#mCSB_"+t.idx+"_container").parent();n.bind("scroll."+o,(function(o){0===n.scrollTop()&&0===n.scrollLeft()||e(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")}))},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar";e(l+">a").bind("contextmenu."+r,(function(e){e.preventDefault()})).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,(function(a){if(a.preventDefault(),ee(a)){var r=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,l("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&l("off",r);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;l("on",r)}}function l(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}}))},q=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=e("#mCSB_"+o.idx),s=e("#mCSB_"+o.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",u=s.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];function h(a){switch(a.type){case"blur":o.tweenRunning&&i.dir&&m("off",null);break;case"keydown":case"keyup":var r=a.keyCode?a.keyCode:a.which,l="on";if("x"!==n.axis&&(38===r||40===r)||"y"!==n.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===a.type&&(l="off"),e(document.activeElement).is(d)||(a.preventDefault(),a.stopImmediatePropagation(),m(l,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(a.preventDefault(),a.stopImmediatePropagation()),"keyup"===a.type){Q(t);var u=34===r?-1:1;if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",h=Math.abs(s[0].offsetLeft)-u*(.9*c.width());else f="y",h=Math.abs(s[0].offsetTop)-u*(.9*c.height());G(t,h.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else 35!==r&&36!==r||e(document.activeElement).is(d)||((o.overflowed[0]||o.overflowed[1])&&(a.preventDefault(),a.stopImmediatePropagation()),"keyup"!==a.type)||("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0]?(f="x",h=35===r?Math.abs(c.width()-s.outerWidth(!1)):0):(f="y",h=35===r?Math.abs(c.height()-s.outerHeight(!1)):0),G(t,h.toString(),{dir:f,scrollEasing:"mcsEaseInOut"}))}function m(e,a){i.type=n.keyboard.scrollType,i.scrollAmount=n.keyboard.scrollAmount,"stepped"===i.type&&o.tweenRunning||j(t,e,a)}}u.length&&u.each((function(){e(this).bind("load",(function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],(function(e){h(e)}))}))})),l.attr("tabindex","0").bind(f[0],(function(e){h(e)}))},j=function(t,o,n,i,r){var l=t.data(a),s=l.opt,c=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===c.type,h=s.scrollInertia<26?26:s.scrollInertia,m=s.scrollInertia<1?17:s.scrollInertia;switch(o){case"on":if(c.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===c.type)return;p(f);break;case"off":g(),(f||l.tweenRunning&&c.dir)&&p(!0)}function p(e){s.snapAmount&&(c.scrollAmount=s.snapAmount instanceof Array?"x"===c.dir[0]?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount);var o="stepped"!==c.type,a=r||(e?o?h/1.5:m:1e3/60),n=e?o?7.5:40:2.5,d=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],f=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===c.dir[0]?d[1]+c.dir[1]*(f[1]*n):d[0]+c.dir[1]*(f[0]*n),v="x"===c.dir[0]?d[1]+c.dir[1]*parseInt(c.scrollAmount):d[0]+c.dir[1]*parseInt(c.scrollAmount),x="auto"!==c.scrollAmount?v:g,_=i||(e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),w=!!e;e&&a<17&&(x="x"===c.dir[0]?d[1]:d[0]),G(t,x.toString(),{dir:c.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?c.dir=!1:(clearTimeout(c.step),c.step=setTimeout((function(){p()}),a))}function g(){clearTimeout(c.step),$(c,"step"),Q(t)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&void 0!==t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":if(!(p=t.jquery?t:e(t)).length)return;return"x"===o?ae(p)[1]:ae(p)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var m=f+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var p=l.find(":"+t);return"x"===o?ae(p)[1]:ae(p)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container");if(t)return clearTimeout(r[0].autoUpdate),void $(r[0],"autoUpdate");function l(){clearTimeout(r[0].autoUpdate),0!==o.parents("html").length?r[0].autoUpdate=setTimeout((function(){return i.advanced.updateOnSelectorChange&&(n.poll.change.n=c(),n.poll.change.n!==n.poll.change.o)?(n.poll.change.o=n.poll.change.n,void f(3)):i.advanced.updateOnContentResize&&(n.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+r[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,n.poll.size.n!==n.poll.size.o)?(n.poll.size.o=n.poll.size.n,void f(1)):!i.advanced.updateOnImageLoad||"auto"===i.advanced.updateOnImageLoad&&"y"===i.axis||(n.poll.img.n=r.find("img").length,n.poll.img.n===n.poll.img.o)?void((i.advanced.updateOnSelectorChange||i.advanced.updateOnContentResize||i.advanced.updateOnImageLoad)&&l()):(n.poll.img.o=n.poll.img.n,void r.find("img").each((function(){s(this)})))}),i.advanced.autoUpdateTimeout):o=null}function s(t){if(e(t).hasClass(d[2]))f();else{var o=new Image;o.onload=a(o,n),o.src=t.src}function a(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,e(t).addClass(d[2]),f(2)}}function c(){!0===i.advanced.updateOnSelectorChange&&(i.advanced.updateOnSelectorChange="*");var e=0,t=r.find(i.advanced.updateOnSelectorChange);return i.advanced.updateOnSelectorChange&&t.length>0&&t.each((function(){e+=this.offsetHeight+this.offsetWidth})),e}function f(e){clearTimeout(r[0].autoUpdate),u.update.call(null,o[0],e)}l()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a);e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal").each((function(){Z.call(this)}))},G=function(t,o,n){var i=t.data(a),r=i.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:r.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=[(n=e.extend(l,n)).dur,n.drag?0:n.dur],c=e("#mCSB_"+i.idx),d=e("#mCSB_"+i.idx+"_container"),u=d.parent(),f=r.callbacks.onTotalScrollOffset?Y.call(t,r.callbacks.onTotalScrollOffset):[0,0],h=r.callbacks.onTotalScrollBackOffset?Y.call(t,r.callbacks.onTotalScrollBackOffset):[0,0];if(i.trigger=n.trigger,0===u.scrollTop()&&0===u.scrollLeft()||(e(".mCSB_"+i.idx+"_scrollbar").css("visibility","visible"),u.scrollTop(0).scrollLeft(0)),"_resetY"!==o||i.contentReset.y||(B("onOverflowYNone")&&r.callbacks.onOverflowYNone.call(t[0]),i.contentReset.y=1),"_resetX"!==o||i.contentReset.x||(B("onOverflowXNone")&&r.callbacks.onOverflowXNone.call(t[0]),i.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!i.contentReset.y&&t[0].mcs||!i.overflowed[0]||(B("onOverflowY")&&r.callbacks.onOverflowY.call(t[0]),i.contentReset.x=null),!i.contentReset.x&&t[0].mcs||!i.overflowed[1]||(B("onOverflowX")&&r.callbacks.onOverflowX.call(t[0]),i.contentReset.x=null),r.snapAmount){var m=r.snapAmount instanceof Array?"x"===n.dir?r.snapAmount[1]:r.snapAmount[0]:r.snapAmount;o=V(o,m,r.snapOffset)}switch(n.dir){case"x":var p=e("#mCSB_"+i.idx+"_dragger_horizontal"),g="left",v=d[0].offsetLeft,x=[c.width()-d.outerWidth(!1),p.parent().width()-p.width()],_=[o,0===o?0:o/i.scrollRatio.x],w=f[1],S=h[1],b=w>0?w/i.scrollRatio.x:0,y=S>0?S/i.scrollRatio.x:0;break;case"y":p=e("#mCSB_"+i.idx+"_dragger_vertical"),g="top",v=d[0].offsetTop,x=[c.height()-d.outerHeight(!1),p.parent().height()-p.height()],_=[o,0===o?0:o/i.scrollRatio.y],w=f[0],S=h[0],b=w>0?w/i.scrollRatio.y:0,y=S>0?S/i.scrollRatio.y:0}_[1]<0||0===_[0]&&0===_[1]?_=[0,0]:_[1]>=x[1]?_=[x[0],x[1]]:_[0]=-_[0],t[0].mcs||(k(),B("onInit")&&r.callbacks.onInit.call(t[0])),clearTimeout(d[0].onCompleteTimeout),J(p[0],g,Math.round(_[1]),s[1],n.scrollEasing),!i.tweenRunning&&(0===v&&_[0]>=0||v===x[0]&&_[0]<=x[0])||J(d[0],g,Math.round(_[0]),s[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!i.tweenRunning&&(B("onScrollStart")&&(k(),r.callbacks.onScrollStart.call(t[0])),i.tweenRunning=!0,C(p),i.cbOffsets=T())},onUpdate:function(){n.callbacks&&n.onUpdate&&B("whileScrolling")&&(k(),r.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===r.axis&&clearTimeout(d[0].onCompleteTimeout);var e=d[0].idleTimer||0;d[0].onCompleteTimeout=setTimeout((function(){B("onScroll")&&(k(),r.callbacks.onScroll.call(t[0])),B("onTotalScroll")&&_[1]>=x[1]-b&&i.cbOffsets[0]&&(k(),r.callbacks.onTotalScroll.call(t[0])),B("onTotalScrollBack")&&_[1]<=y&&i.cbOffsets[1]&&(k(),r.callbacks.onTotalScrollBack.call(t[0])),i.tweenRunning=!1,d[0].idleTimer=0,C(p,"hide")}),e)}}})}function B(e){return i&&r.callbacks[e]&&"function"==typeof r.callbacks[e]}function T(){return[r.callbacks.alwaysTriggerOffsets||v>=x[0]+w,r.callbacks.alwaysTriggerOffsets||v<=-S]}function k(){var e=[d[0].offsetTop,d[0].offsetLeft],o=[p[0].offsetTop,p[0].offsetLeft],a=[d.outerHeight(!1),d.outerWidth(!1)],i=[c.height(),c.width()];t[0].mcs={content:d,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}},J=function(e,t,o,a,n,i,r){e._mTween||(e._mTween={top:{},left:{}});var l,s,c=(r=r||{}).onStart||function(){},d=r.onUpdate||function(){},u=r.onComplete||function(){},f=K(),h=0,m=e.offsetTop,p=e.style,g=e._mTween[t];"left"===t&&(m=e.offsetLeft);var v=o-m;function x(){g.stop||(h||c.call(),h=K()-f,_(),h>=g.time&&(g.time=h>g.time?h+l-(h-g.time):h+l-1,g.time<h+1&&(g.time=h+1)),g.time<a?g.id=s(x):u.call())}function _(){a>0?(g.currVal=b(g.time,m,v,a,n),p[t]=Math.round(g.currVal)+"px"):p[t]=o+"px",d.call()}function w(){l=1e3/60,g.time=h+l,s=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return _(),setTimeout(e,.01)},g.id=s(x)}function S(){null!=g.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(g.id):clearTimeout(g.id),g.id=null)}function b(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=a/2)<1?o/2*e*e+t:-o/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=a/2)<1?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=a/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=a,-o*(--e*e*e*e-1)+t;case"easeOutStrong":return o*(1-Math.pow(2,-10*e/a))+t;default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}g.stop=0,"none"!==i&&S(),w()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){var e=t();return!!e&&document[e];function t(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",(function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),(a=[i[0].offsetTop,i[0].offsetLeft])[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})}))}));