/**handles:responsive-lightbox-infinite-scroll,responsive-lightbox,taxopress-frontend-js**/ /*! * Infinite Scroll PACKAGED v5.0.0 * Automatically add next page * MIT License * https://infinite-scroll.com * Copyright 2018-2025 Metafizzy */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){let i=t.console,n=void 0===i?function(){}:function(t){i.error(t)};return function(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){t&&(this.options=Object.assign(this.options||{},t))}),s.fn[i]=function(t,...e){return"string"==typeof t?function(t,e,o){let r,l=`$().${i}("${e}")`;return t.each((function(t,h){let a=s.data(h,i);if(!a)return void n(`${i} not initialized. Cannot call method ${l}`);let c=a[e];if(!c||"_"==e.charAt(0))return void n(`${l} is not a valid method`);let u=c.apply(a,o);r=void 0===r?u:r})),void 0!==r?r:t}(this,t,e):(r=t,this.each((function(t,e){let n=s.data(e,i);n?(n.option(r),n._init()):(n=new o(e,r),s.data(e,i,n))})),this);var r})}})),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||{},n=i[t]=i[t]||[];return n.includes(e)||n.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 n=i.indexOf(e);return-1!=n&&i.splice(n,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 n=this._onceEvents&&this._onceEvents[t];for(let o of i){n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t):t.fizzyUIUtils=e(t)}(this,(function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){if(Array.isArray(t))return t;if(null==t)return[];return"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter((t=>t instanceof HTMLElement)).reduce(((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t=t.concat(...n)}),[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[o]);let t=arguments;this[o]=setTimeout((()=>{n.apply(this,t),delete this[o]}),i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,o){e.docReady((function(){let s="data-"+e.toDashed(o),r=document.querySelectorAll(`[${s}]`),l=t.jQuery;[...r].forEach((t=>{let e,r=t.getAttribute(s);try{e=r&&JSON.parse(r)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let h=new n(t,e);l&&l.data(t,o,h)}))}))},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,(function(t,e,i){let n=t.jQuery,o={};function s(t,e){let r=i.getQueryElement(t);if(r){if((t=r).infiniteScrollGUID){let i=o[t.infiniteScrollGUID];return i.option(e),i}this.element=t,this.options={...s.defaults},this.option(e),n&&(this.$element=n(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(r||t))}s.defaults={},s.create={},s.destroy={};let r=s.prototype;Object.assign(r,e.prototype);let l=0;r.create=function(){let t=this.guid=++l;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath()){this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(let t in s.create)s.create[t].call(this)}else console.error("Disabling InfiniteScroll")},r.option=function(t){Object.assign(this.options,t)},r.callOnInit=function(){let t=this.options.onInit;t&&t.call(this,this)},r.dispatchEvent=function(t,e,i){this.log(t,i);let o=e?[e].concat(i):i;if(this.emitEvent(t,o),!n||!this.$element)return;let s=t+=".infiniteScroll";if(e){let i=n.Event(e);i.type=t,s=i}this.$element.trigger(s,i)};let h={initialized:t=>`on ${t}`,request:t=>`URL: ${t}`,load:(t,e)=>`${t.title||""}. URL: ${e}`,error:(t,e)=>`${t}. URL: ${e}`,append:(t,e,i)=>`${i.length} items. URL: ${e}`,last:(t,e)=>`URL: ${e}`,history:(t,e)=>`URL: ${e}`,pageIndex:function(t,e){return`current page determined to be: ${t} from ${e}`}};r.log=function(t,e){if(!this.options.debug)return;let i=`[InfiniteScroll] ${t}`,n=h[t];n&&(i+=". "+n.apply(this,e)),console.log(i)},r.updateMeasurements=function(){this.windowHeight=t.innerHeight;let e=this.element.getBoundingClientRect();this.top=e.top+t.scrollY},r.updateScroller=function(){let e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw new Error(`Unable to find elementScroll: ${e}`)}else this.scroller=t},r.updateGetPath=function(){let t=this.options.path;if(!t)return void console.error(`InfiniteScroll path option required. Set as: ${t}`);let e=typeof t;"function"!=e?"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t):this.getPath=t},r.updateGetPathTemplate=function(t){this.getPath=()=>{let e=this.pageIndex+1;return t.replace("{{#}}",e)};let e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};let a=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/],c=s.getPathParts=function(t){if(t)for(let e of a){let i=t.match(e);if(i){let[,t,e,n]=i;return{begin:t,index:e,end:n}}}};r.updateGetPathSelector=function(t){let e=document.querySelector(t);if(!e)return void console.error(`Bad InfiniteScroll path option. Next link not found: ${t}`);let i=e.getAttribute("href"),n=c(i);if(!n)return void console.error(`InfiniteScroll unable to parse next link href: ${i}`);let{begin:o,index:s,end:r}=n;this.isPathSelector=!0,this.getPath=()=>o+(this.pageIndex+1)+r,this.pageIndex=parseInt(s,10)-1,this.log("pageIndex",[this.pageIndex,"next link"])},r.updateGetAbsolutePath=function(){let t=this.getPath();if(t.match(/^http/)||t.match(/^\//))return void(this.getAbsolutePath=this.getPath);let{pathname:e}=location,i=t.match(/^\?/),n=e.substring(0,e.lastIndexOf("/")),o=i?e:n+"/";this.getAbsolutePath=()=>o+this.getPath()},s.create.hideNav=function(){let t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},s.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){this.allOff();for(let t in s.destroy)s.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},s.throttle=function(t,e){let i,n;return e=e||200,function(){let o=+new Date,s=arguments,r=()=>{i=o,t.apply(this,s)};i&&o{if(!i.ok){let t=new Error(i.statusText);return this.onPageError(t,o,i),{response:i}}return i[t]().then((s=>("text"==t&&e&&(s=n.parseFromString(s,"text/html")),204==i.status?(this.lastPageReached(s,o),{body:s,response:i}):this.onPageLoad(s,o,i))))})).catch((t=>{this.onPageError(t,o)}));return this.dispatchEvent("request",null,[o,s]),s},i.onPageLoad=function(t,e,i){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e,i]),this.appendNextPage(t,e,i)},i.appendNextPage=function(t,e,i){let{append:n,responseBody:s,domParseResponse:r}=this.options;if(!("text"==s&&r)||!n)return{body:t,response:i};let l=t.querySelectorAll(n),h={body:t,response:i,items:l};if(!l||!l.length)return this.lastPageReached(t,e),h;let a=o(l),c=()=>(this.appendItems(l,a),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,l,i]),h);return this.options.outlayer?this.appendOutlayerItems(a,c):c()},i.appendItems=function(t,e){t&&t.length&&(function(t){let e=t.querySelectorAll("script");for(let t of e){let e=document.createElement("script"),i=t.attributes;for(let t of i)e.setAttribute(t.name,t.value);e.innerHTML=t.innerHTML,t.parentNode.replaceChild(e,t)}}(e=e||o(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,n){let o=e.imagesLoaded||t.imagesLoaded;return o?new Promise((function(t){o(i,(function(){let e=n();t(e)}))})):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){let i,{checkLastPage:n,path:o}=this.options;if(n){if("function"==typeof o){if(!this.getPath())return void this.lastPageReached(t,e)}"string"==typeof n?i=n:this.isPathSelector&&(i=o),i&&t.querySelector&&(t.querySelector(i)||this.lastPageReached(t,e))}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e,i){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e,i]),t},e.create.prefill=function(){if(!this.options.prefill)return;let t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error(`append option required for prefill. Set as :${t}`)},i.prefill=function(){let t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;return Object.assign(e.defaults,{scrollThreshold:400}),e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);let t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle((function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")})),n.getBottomDistance=function(){let e,i;return this.options.elementScroll?(e=this.scroller.scrollHeight,i=this.scroller.scrollTop+this.scroller.clientHeight):(e=this.top+this.element.clientHeight,i=t.scrollY+this.windowHeight),e-i},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;Object.assign(e.defaults,{history:"replace"});let o=document.createElement("a");return e.create.history=function(){if(!this.options.history)return;o.href=this.getAbsolutePath(),(o.origin||o.protocol+"//"+o.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error(`[InfiniteScroll] cannot set history with different origin: ${o.origin} on ${location.origin} . History behavior disabled.`)},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPage=this.scrollPages[0],this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(!i||!i.length)return;let n=i[0],s=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:s,path:o.href,title:t.title})},n.getElementScrollY=function(e){if(this.options.elementScroll)return e.offsetTop-this.top;return e.getBoundingClientRect().top+t.scrollY},n.onScrollHistory=function(){let t=this.getClosestScrollPage();t!=this.scrollPage&&(this.scrollPage=t,this.setHistory(t.title,t.path))},i.debounceMethod(e,"onScrollHistory",150),n.getClosestScrollPage=function(){let e,i;e=this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.scrollY+this.windowHeight/2;for(let t of this.scrollPages){if(t.top>=e)break;i=t}return i},n.setHistory=function(t,e){let i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){if(0===this.scrollPage.top)return;let e=t.scrollY-this.scrollPage.top+this.top;this.destroyHistory(),scrollTo(0,e)},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){class n{constructor(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}onClick(t){t.preventDefault(),this.infScroll.loadNextPage()}enable(){this.element.removeAttribute("disabled")}disable(){this.element.disabled="disabled"}hide(){this.element.style.display="none"}destroy(){this.element.removeEventListener("click",this.clickHandler)}}return e.create.button=function(){let t=i.getQueryElement(this.options.button);t&&(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},e.Button=n,e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;function o(t){r(t,"none")}function s(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}return e.create.status=function(){let t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},n.bindHideStatus=function(t){let e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},n.showRequestStatus=function(){this.showStatus("request")},n.showErrorStatus=function(){this.showStatus("error")},n.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},n.showStatus=function(t){s(this.statusElement),this.hideStatusEventElements(),s(this.statusEventElements[t])},n.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},n.hideStatusEventElements=function(){for(let t in this.statusEventElements){o(this.statusEventElements[t])}},e})), /*! * imagesLoaded v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"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){"use strict";var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function r(t,e,l){if(!(this instanceof r))return new r(t,e,l);var h,a=t;("string"==typeof t&&(a=document.querySelectorAll(t)),a)?(this.elements=(h=a,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?s.call(h):[h]),this.options=o({},this.options),"function"==typeof e?l=e:o(this.options,e),l&&this.on("always",l),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(a||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n{let i=(e,a)=>{var e=new RegExp("[?&]"+e.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec("&"+a);return e&&e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):""},u=(e,t,l)=>{"undefined"!=typeof MutationObserver&&new MutationObserver((e,a)=>{t?e[0].addedNodes.length&&l():(e[0].addedNodes.length||e[0].removedNodes.length)&&l()}).observe(e,{childList:!0,subtree:!0})},e=(v(()=>{e()}),v(document).on(rlArgs.customEvents,()=>{e()}),()=>{let t=[];if(v(".rl-gallery-container").each((e,a)=>{var a=v(a);a.hasClass("rl-pagination-infinite")?t.push(a):a.removeClass("rl-loading")}),0{r.container.addClass("rl-loading")}),this.on("append",(e,a,t,l)=>{r.container.removeClass("rl-loading"),v.event.trigger({type:"doResponsiveLightbox",script:rlArgs.script,selector:rlArgs.selector,args:rlArgs,pagination_type:"infinite",gallery_id:r.galleryId,masonry:r.gallery.hasClass("rl-masonry-gallery")||r.gallery.hasClass("rl-basicmasonry-gallery"),delayLightbox:r.gallery.hasClass("rl-expander-gallery"),infinite:{gallery:r.gallery,body:e,items:t,response:l}})})}})}}v.event.trigger({type:"doResponsiveLightbox",script:rlArgs.script,selector:rlArgs.selector,args:rlArgs})}),o=(v(document).on("click",".rl-pagination a.page-numbers",e=>{let l=v(e.currentTarget),r=l.closest(".rl-gallery-container");if(r.hasClass("rl-pagination-ajax")){e.preventDefault(),e.stopPropagation();let a=r.data("gallery_id"),t=r.find(".rl-gallery").data("gallery_no");return r.addClass("rl-loading"),v.post(rlArgs.ajaxurl,{action:"rl-get-gallery-page-content",gallery_id:a,gallery_no:t,post_id:rlArgs.postId,page:i("rl_page",l.prop("href")),nonce:rlArgs.nonce,preview:rlArgs.preview?"true":"false",lightbox:rlArgs.script}).done(e=>{r.replaceWith(v(e).removeClass("rl-loading")),v.event.trigger({type:"doResponsiveLightbox",script:rlArgs.script,selector:rlArgs.selector,args:rlArgs,pagination_type:"ajax",gallery_id:a,gallery_no:t})}).always(()=>{r.removeClass("rl-loading")}),!1}}),v(document).on("doResponsiveLightbox",e=>{if(void 0!==e.masonry&&!0===e.masonry)return!1;let l=e.script,a=e.selector;if(void 0===l||void 0===a)return!1;let r=e.args,t=!1;void 0!==e.delayLightbox&&!0===e.delayLightbox&&(t=!0),rl_view_image=(e,a)=>{v.event.trigger({type:"doLightboxViewImage",script:e,url:a})},rl_hide_image=(e,a)=>{v.event.trigger({type:"doLightboxHideImage",script:e,url:a})},setTimeout(()=>{let t=v(".flex-viewport");if(r.woocommerce_gallery){let a=v(".woocommerce-product-gallery");0===a.find(".woocommerce-product-gallery__trigger").length&&(a.prepend('🔍'),a.on("click",".woocommerce-product-gallery__trigger",e=>{if(e.preventDefault(),e.stopPropagation(),"lightgallery"===l)if(t.length){let e=t.find(".flex-active-slide a[data-rel] img"),a=t.find(".flex-active-slide a[data-rel]").data("lg-id");e.trigger("click.lgcustom-item-"+a)}else{let e=a.find("a[data-rel]").first();e.find("img").trigger("click.lgcustom-item-"+e.data("lg-id"))}else if("fancybox_pro"===l)if(t.length){let e=t.find(".flex-active-slide").index(),a=t.find(".flex-active-slide a[data-rel]").data("fancybox");Fancybox.fromOpener(`[data-fancybox="${a}"]`,{startIndex:e})}else{let e=a.find("a[data-rel]").first();Fancybox.fromOpener(`[data-fancybox="${e.data("fancybox")}"]`,{startIndex:0})}else(t.length?t.find(".flex-active-slide a[data-rel]"):a.find("a[data-rel]").first()).trigger("click")}))}},10),t?setTimeout(()=>{o(e)},0):o(e)}),h=>{let m=h.script,f=h.selector,y=h.args;switch(m){case"swipebox":let a=v("#swipebox-overlay").find(".slide.current"),t="",e=!1,l=!1;v(`a[rel*="${f}"], a[data-rel*="${f}"]`).swipebox({useCSS:y.animation,useSVG:y.useSVG,hideCloseButtonOnMobile:y.hideCloseButtonOnMobile,removeBarsOnMobile:y.removeBarsOnMobile,hideBarsDelay:y.hideBars?parseInt(y.hideBarsDelay):0,videoMaxWidth:parseInt(y.videoMaxWidth),loopAtEnd:y.loopAtEnd,afterOpen:()=>{l=!1;var e=(a=v("#swipebox-overlay").find(".slide.current")).find("img").attr("src");void 0!==e?(t=e,rl_view_image(m,t)):t="",u(document.getElementById("swipebox-slider"),!1,()=>{var e;""===t&&(void 0!==(e=a.find("img").attr("src"))?(t=e,rl_view_image(m,t)):t="")})},nextSlide:()=>{var e=(a=v("#swipebox-overlay").find(".slide.current")).find("img").attr("src");void 0!==e?(t=e,rl_view_image(m,t)):t=""},prevSlide:()=>{var e=(a=v("#swipebox-overlay").find(".slide.current")).find("img").attr("src");void 0!==e?(t=e,rl_view_image(m,t)):t=""},afterClose:()=>{l=!0,e&&(rl_hide_image(m,t),e=!1)}}),v(window).on("resize",()=>{l||(e=!0)});break;case"prettyphoto":let r=!1,i="";v(`a[rel*="${f}"], a[data-rel*="${f}"]`).each((e,a)=>{var a=v(a);let t=a.data("rl_title"),l=a.data("rl_caption");t=t?t.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",l=l?l.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",a.attr("title",l),a.find("img").attr("alt",t)}),v(`a[rel*="${f}"], a[data-rel*="${f}"]`).prettyPhoto({hook:"data-rel",animation_speed:y.animationSpeed,slideshow:!!y.slideshow&&parseInt(y.slideshowDelay),autoplay_slideshow:y.slideshowAutoplay,opacity:y.opacity,show_title:y.showTitle,allow_resize:y.allowResize,allow_expand:y.allowExpand,default_width:parseInt(y.width),default_height:parseInt(y.height),counter_separator_label:y.separator,theme:y.theme,horizontal_padding:parseInt(y.horizontalPadding),hideflash:y.hideFlash,wmode:y.wmode,autoplay:y.videoAutoplay,modal:y.modal,deeplinking:y.deeplinking,overlay_gallery:y.overlayGallery,keyboard_shortcuts:y.keyboardShortcuts,social_tools:y.social?``:"",ie6_fallback:!0,changepicturecallback:()=>{r?r=!1:(i=v("#pp_full_res").find("img").attr("src"),rl_view_image(m,i),y.allowExpand&&v("a.pp_expand").on("click",()=>{r=!0}))},callback:()=>{rl_hide_image(m,i)}});break;case"nivo":v.each(v(`a[rel*="${f}"], a[data-rel*="${f}"]`),(e,a)=>{var a=v(a);let t=a.attr("data-rel");void 0!==(t=void 0!==t&&0!=t?t:a.attr("rel"))&&!1!==t&&t.startsWith(f+"-gallery-")&&a.attr("data-lightbox-gallery",t)});let o=!1,n=!0,s="";v(`a[rel*="${f}"], a[data-rel*="${f}"]`).nivoLightbox({effect:y.effect,clickOverlayToClose:y.clickOverlayToClose,keyboardNav:y.keyboardNav,errorMessage:y.errorMessage,afterShowLightbox:e=>{let a=v(e)[0].find(".nivo-lightbox-content");o||(o=!0,u(document.getElementsByClassName("nivo-lightbox-content")[0],!0,()=>{n&&(s=a.find(".nivo-lightbox-image img").attr("src"),rl_view_image(m,s),n=!1)}))},afterHideLightbox:()=>{n=!0,rl_hide_image(m,s)},onPrev:e=>{n=!1,s=e[0].attr("href"),rl_view_image(m,s)},onNext:e=>{n=!1,s=e[0].attr("href"),rl_view_image(m,s)}});break;case"imagelightbox":let d=[],g="";v(`a[rel*="${f}"], a[data-rel*="${f}"]`).each((e,a)=>{var t=v(a).attr("data-rel");(void 0!==t&&!1!==t&&"norl"!==t||void 0!==(t=v(a).attr("rel"))&&!1!==t&&"norl"!==t)&&d.push(t)}),0{void 0!==h.pagination_type&&v(`a[data-rel="${a}"], a[rel="${a}"]`).each((e,a)=>{v(a).off("click.imageLightbox")}),v(`a[data-rel="${a}"], a[rel="${a}"]`).imageLightbox({animationSpeed:parseInt(y.animationSpeed),preloadNext:y.preloadNext,enableKeyboard:y.enableKeyboard,quitOnEnd:y.quitOnEnd,quitOnImgClick:y.quitOnImageClick,quitOnDocClick:y.quitOnDocumentClick,onLoadEnd:()=>{g=v("#imagelightbox").attr("src"),rl_view_image(m,g)},onEnd:()=>{rl_hide_image(m,g)}})}));break;case"tosrus":let c=[],p="";v(`a[rel*="${f}"], a[data-rel*="${f}"]`).each((e,a)=>{var t=v(a).attr("data-rel");(void 0!==t&&!1!==t&&"norl"!==t||void 0!==(t=v(a).attr("rel"))&&!1!==t&&"norl"!==t)&&c.push(t)}),0{void 0!==h.pagination_type&&(v("body").find(".tosrus-"+a).remove(),v(`a[data-rel="${a}"], a[rel="${a}"]`).each((e,a)=>{v(a).off("click.tos")}));var a=v(`a[data-rel="${a}"], a[rel="${a}"]`).tosrus({drag:!0,infinite:y.infinite,autoplay:{play:y.autoplay,pauseOnHover:y.pauseOnHover,timeout:y.timeout},effect:y.effect,keys:{prev:y.keys,next:y.keys,close:y.keys},pagination:{add:y.pagination,type:y.paginationType},show:!1,buttons:!0,caption:{add:!0,attributes:["title"]},wrapper:{classes:"tosrus-"+a,onClick:y.closeOnClick?"close":"toggleUI"}});a.on("sliding.tos",(e,a)=>{p=v(v(e.target).find(".tos-slider .tos-slide")[a]).find("img").attr("src"),rl_view_image(m,p)}),a.on("closing.tos",()=>{rl_hide_image(m,p)})}));break;case"featherlight":{delete v.featherlight.contentFilters.jquery,v.extend(v.featherlight.contentFilters,{html:{regex:/[^]/,process:e=>v("
",{text:e})}}),v.featherlight.contentFilters.ajax.process=function(e){var a=v("
");return v.get(e).done(function(e){a.html(window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(e):e)}).fail(function(){a.html("No content found.")}).promise(a)},v.featherlight.contentFilters.iframe.process=function(e){var a;return window.RLG&&window.RLG.isAllowedEmbedUrl&&!window.RLG.isAllowedEmbedUrl(e)?(a=v("
")).html("Iframe not allowed."):(a=v("
")).html(''),a.contents()},v.featherlight.contentFilters.image.process=function(e){var a,e;return(window.RLG&&window.RLG.sanitizeConfig&&window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP&&!window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP.test(e)?((a=v("
")).html("Image not allowed."),a):(e=v(''),a=v("
").append(e))).contents()},v.featherlight.readElementConfig=function(e,a){return{}};let l=[],a="";v('a[rel*="'+f+'"], a[data-rel*="'+f+'"]').each((e,a)=>{var t=v(a).attr("data-rel");(void 0!==t&&!1!==t&&"norl"!==t||void 0!==(t=v(a).attr("rel"))&&!1!==t&&"norl"!==t)&&l.push(t)}),0{a=e.currentTarget.href,rl_view_image(m,a)},afterClose:()=>{rl_hide_image(m,a)}}),v(l).each((e,a)=>{void 0!==h.pagination_type&&v('a[data-rel="'+a+'"], a[rel="'+a+'"]').each((e,a)=>{v(a).off("click.featherlight")}),/-gallery-/.test(a)?v('a[data-rel="'+a+'"], a[rel="'+a+'"]').featherlightGallery({galleryFadeIn:parseInt(y.galleryFadeIn),galleryFadeOut:parseInt(y.galleryFadeOut),previousIcon:"❮",nextIcon:"❯"}):(/-video-/.test(a),v('a[data-rel="'+a+'"], a[rel="'+a+'"]').featherlight())}));break}case"magnific":{let l=[];v('a[rel*="'+f+'"], a[data-rel*="'+f+'"]').each((e,a)=>{var t=v(a).attr("data-rel");(void 0!==t&&!1!==t&&"norl"!==t||void 0!==(t=v(a).attr("rel"))&&!1!==t&&"norl"!==t)&&l.push(t)}),0{var a=v('a[data-rel="'+a+'"], a[rel="'+a+'"]'),t=v(a[0]);let l=t.data("magnific_type");var t=t.data("rl_content");void 0===(l=void 0!==t?t:l)&&(l="image");let r="auto",i="auto";"true"===y.fixedContentPos?r=!0:"false"===y.fixedContentPos&&(r=!1),"true"===y.fixedBgPos?i=!0:"false"===y.fixedBgPos&&(i=!1),a.magnificPopup({allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!0,type:"gallery"===l?"image":"video"===l?"iframe":l,disableOn:y.disableOn,midClick:y.midClick,preloader:y.preloader,closeOnContentClick:y.closeOnContentClick,closeOnBgClick:y.closeOnBgClick,closeBtnInside:y.closeBtnInside,showCloseBtn:y.showCloseBtn,enableEscapeKey:y.enableEscapeKey,alignTop:y.alignTop,autoFocusLast:y.autoFocusLast,fixedContentPos:r,fixedBgPos:i,image:{titleSrc:e=>{let a=e.el.data("rl_title"),t=e.el.data("rl_caption");return a=a?a.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",t=t?t.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",a+""+t+""}},gallery:{enabled:1{e.src.trim().includes("<")&&("inline"===e.type?e.src="
HTML is disallowed.
":"iframe"!==e.type&&"ajax"!==e.type||(e.src=""))}}})}));break}case"glightbox":{null!=window.rl_glightbox&&window.rl_glightbox.destroy();let e=`a[rel*="${f}"]:not([rel*="-video-"]), a[data-rel*="${f}"]:not([data-rel*="-video-"])`;v(e).each((e,a)=>{var a=v(a),t=a.data("rl_title"),l=a.data("rl_caption"),t=(t&&a.attr("data-title",window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(t):t),l&&a.attr("data-description",window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(l):l),a.attr("data-rel")||a.attr("rel"));t&&a.attr("data-gallery",t)}),window.rl_glightbox=GLightbox({selector:e,slideEffect:y.slideEffect,closeButton:y.closeButton,touchNavigation:y.touchNavigation,keyboardNavigation:y.keyboardNavigation,closeOnOutsideClick:y.closeOnOutsideClick,loop:y.loop,zoomable:y.zoomable,preload:!1}),window.rl_glightbox.on("slide_after_load",e=>{rl_view_image(m,e.slideConfig.href)}),window.rl_glightbox.on("close",()=>{var e=window.rl_glightbox.index,e=window.rl_glightbox.elements[e];e&&e.href&&rl_hide_image(m,e.href)});break}}})})(jQuery); jQuery(document).ready(function(n){function o(){var e;n(".taxopress-table-row").each(function(e,o){6<=e&&n(o).show()}),n(".taxopress-see-more-link").hide(),n(".taxopress-close-table-link").show()}function t(){var e;n(".taxopress-table-row").each(function(e,o){6<=e&&n(o).hide()}),n(".taxopress-close-table-link").hide(),n(".taxopress-see-more-link").show()}n(document).on("click",".taxopress-see-more-link",function(e){e.preventDefault(),o()}),n(document).on("click",".taxopress-close-table-link",function(e){e.preventDefault(),t()})});