(()=>{"use strict";var t,e,o,i,n,a={4209:t=>{function e(t,e,o,i,n,a,r){try{var l=t[a](r),s=l.value}catch(t){return void o(t)}l.done?e(s):Promise.resolve(s).then(i,n)}t.exports=function(t){return function(){var o=this,i=arguments;return new Promise((function(n,a){var r=t.apply(o,i);function l(t){e(r,n,a,l,s,"next",t)}function s(t){e(r,n,a,l,s,"throw",t)}l(void 0)}))}}},7593:t=>{t.exports=function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}},6554:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}}},9095:(t,e,o)=>{var i=o(5778);function n(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return n=function(){return t},t}t.exports=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var e=n();if(e&&e.has(t))return e.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var l=a?Object.getOwnPropertyDescriptor(t,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=t[r]}return o.default=t,e&&e.set(t,o),o}},5778:t=>{function e(o){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(o)}t.exports=e},956:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Modal=void 0,e.Modal=function(t,e){var o=document.body,i=Object.assign({modalTarget:"photonicModal",closeCSS:"",closeFromRight:0,width:"80%",height:"100%",top:"0px",left:"0px",zIndexIn:"9999",zIndexOut:"-9999",color:"#39BEB9",opacityIn:"1",opacityOut:"0",animationDuration:".6s",overflow:"auto"},e),n=document.querySelector(".photonicModalOverlay"),a=document.querySelector(".photonicModalOverlayScrollable");n||((n=document.createElement("div")).className="photonicModalOverlay",(a=document.createElement("div")).className="photonicModalOverlayScrollable",n.appendChild(a),o.appendChild(n));var r=t.querySelector(".photonicModalClose");r||((r=document.createElement("a")).className="photonicModalClose "+i.closeCSS,r.style.right=i.closeFromRight,r.innerHTML="&times;",r.setAttribute("href","#"),t.insertAdjacentElement("afterbegin",r)),r=t.querySelector(".photonicModalClose");var l,s,c=document.querySelector("#"+i.modalTarget),d={width:i.width,height:i.height,top:i.top,left:i.left,"background-color":i.color,"overflow-y":i.overflow,"z-index":i.zIndexOut,opacity:i.opacityOut,"-webkit-animation-duration":i.animationDuration,"-moz-animation-duration":i.animationDuration,"-ms-animation-duration":i.animationDuration,"animation-duration":i.animationDuration};if(c){c.classList.add("photonicModal"),c.classList.add(i.modalTarget+"-off");var h="";for(var[u,p]of Object.entries(d))h+="".concat(u,": ").concat(p,"; ");c.style.cssText+=h,l=c,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",l.classList.contains(i.modalTarget+"-off")&&(l.classList.remove(i.modalTarget+"-off"),l.classList.add(i.modalTarget+"-on")),l.classList.contains(i.modalTarget+"-on")&&(l.style.opacity=i.opacityIn,l.style.zIndex=i.zIndexIn),n.style.overflowY=i.overflow,n.style.display="block",a.appendChild(l),l.style.display="block",l.style.overflowY=i.overflow,(s=a).style.height="auto",s.style.height="".concat(s.scrollHeight,"px"),s.style.height="auto"}r.addEventListener("click",(function(t){t.preventDefault(),document.documentElement.style.overflow="auto",document.body.style.overflow="auto",c.classList.contains(i.modalTarget+"-on")&&(c.classList.remove(i.modalTarget+"-on"),c.classList.add(i.modalTarget+"-off")),c.classList.contains(i.modalTarget+"-off")&&c.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",m,{once:!0}),c.style.overflowY="hidden",g(c),n.style.overflowY="hidden",n.style.display="none"}));var g=t=>{t.style.height=0,t.style.display="none"};function m(){c.style.zIndex=i.zIndexOut}}},8678:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Prompter=void 0,e.Prompter=class{constructor(t){this.events={onShow:new Event("onShow"),onConfirm:new Event("onConfirm"),onHide:new Event("onHide")},this.modal=document.getElementById(t),this.classClose=".close",this.classCancel=".cancel",this.classConfirm=".confirm",this.btnsOpen=[]}show(){return this.modal.dispatchEvent(this.events.onShow),this.modal.style.display="block",this}hide(){return this.modal.dispatchEvent(this.events.onHide),this.modal.style.display="none",this}removeEvents(){var t=this.modal.cloneNode(!0);return this.modal.parentNode.replaceChild(t,this.modal),this.modal=t,this}on(t,e){return this.modal.addEventListener(t,e),this}attach(){var t,e=[],o=this;for(t=(e=this.modal.querySelectorAll(o.classClose)).length-1;t>=0;t--)e[t].addEventListener("click",(function(){o.hide()}));for(t=(e=o.modal.querySelectorAll(o.classCancel)).length-1;t>=0;t--)e[t].addEventListener("click",(function(){o.hide()}));for(t=(e=o.modal.querySelectorAll(o.classConfirm)).length-1;t>=0;t--)e[t].addEventListener("click",(function(){o.modal.dispatchEvent(o.events.onConfirm),o.hide()}));for(t=o.btnsOpen.length-1;t>=0;t--)o.btnsOpen[t].addEventListener("click",(function(){o.show()}));return o}addOpenBtn(t){this.btnsOpen.push(t)}}},5870:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0,e.Tooltip=function(t,e){var o,i,n,a;function r(t){!function(t,e){var o=e.getAttribute("data-photonic-tooltip");if(""!==o){e.setAttribute("title",""),n=e.getBoundingClientRect();var i=document.createTextNode(o);t.innerHTML="",t.appendChild(i),n.left>window.innerWidth-100?t.className="photonic-tooltip-container tooltip-left":n.left+n.width/2<100?t.className="photonic-tooltip-container tooltip-right":t.className="photonic-tooltip-container tooltip-center"}}(o,t.currentTarget),function(t,e){if(""!==e.getAttribute("data-photonic-tooltip")){void 0===n&&(n=e.getBoundingClientRect());var o=n.top+n.height+window.scrollY,i=window.innerWidth-100;if(n.left+window.scrollX>i&&n.width<50)t.style.left=n.left+window.scrollX-(t.offsetWidth+n.width)+"px",t.style.top=e.offsetTop+"px";else if(n.left+window.scrollX>i&&n.width>50)t.style.left=n.left+window.scrollX-t.offsetWidth-20+"px",t.style.top=e.offsetTop+"px";else if(n.left+window.scrollX+n.width/2<100)t.style.left=n.left+window.scrollX+n.width+20+"px",t.style.top=e.offsetTop+"px";else{var a=n.left+window.scrollX+n.width/2-t.offsetWidth/2;t.style.left=a+"px",t.style.top=o+"px"}}}(o,t.currentTarget)}function l(t){if(o.className=i+" no-display",""!==o.innerText){o.removeChild(o.firstChild),o.removeAttribute("style");var e=t.currentTarget;e.setAttribute("title",e.getAttribute("data-photonic-tooltip"))}}a=document.documentElement.querySelectorAll(t),o=document.documentElement.querySelector(e),i=e.replace(/^\.+/g,""),null!==o&&0!==o.length||((o=document.createElement("div")).className=i+" no-display",document.body.appendChild(o)),a.forEach((t=>{t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",l),t.addEventListener("mouseenter",r,!1),t.addEventListener("mouseleave",l,!1)}))}},1449:(t,e,o)=>{var i=o(9095),n=o(6554);Object.defineProperty(e,"__esModule",{value:!0}),e.Core=void 0;var a=n(o(4209)),r=n(o(7593)),l=i(o(91)),s=o(5870),c=o(8678);class d{}e.Core=d,(0,r.default)(d,"lightboxList",[]),(0,r.default)(d,"prompterList",[]),(0,r.default)(d,"lightbox",void 0),(0,r.default)(d,"deep",location.hash),(0,r.default)(d,"setLightbox",(t=>d.lightbox=t)),(0,r.default)(d,"getLightbox",(()=>d.lightbox)),(0,r.default)(d,"setDeep",(t=>d.deep=t)),(0,r.default)(d,"getDeep",(()=>d.deep)),(0,r.default)(d,"addToLightboxList",((t,e)=>d.lightboxList[t]=e)),(0,r.default)(d,"getLightboxList",(()=>d.lightboxList)),(0,r.default)(d,"showSpinner",(()=>{var t=document.getElementsByClassName("photonic-loading");t.length>0?t=t[0]:(t=document.createElement("div")).className="photonic-loading",t.style.display="block",document.body.appendChild(t)})),(0,r.default)(d,"hideLoading",(()=>{var t=document.getElementsByClassName("photonic-loading");t.length>0&&((t=t[0]).style.display="none")})),(0,r.default)(d,"initializePasswordPrompter",(t=>{var e=t.replace(/^#+/g,""),o=new c.Prompter(e);o.attach(),d.prompterList[t]=o,o.show()})),(0,r.default)(d,"moveHTML5External",(()=>{var t=document.getElementById("photonic-html5-external-videos");t||((t=document.createElement("div")).id="photonic-html5-external-videos",t.style.display="none",document.body.appendChild(t));var e=document.querySelectorAll(".photonic-html5-external");if(e)for(var o=e.length,i=0;i<o;i++)e[i].classList.remove("photonic-html5-external"),t.appendChild(e[i])})),(0,r.default)(d,"blankSlideupTitle",(()=>{document.querySelectorAll(".title-display-slideup-stick, .photonic-slideshow.title-display-slideup-stick").forEach((t=>{Array.from(t.getElementsByTagName("a")).forEach((t=>{t.setAttribute("title","")}))}))})),(0,r.default)(d,"showSlideupTitle",(()=>{for(var t=document.documentElement.querySelectorAll(".title-display-slideup-stick a .photonic-title"),e=t.length,o=0;o<e;o++)t[o].style.display="block"})),(0,r.default)(d,"waitForImages",function(){var t=(0,a.default)((function*(t){var e=d.getImagesFromSelector(t),o=[],i=[],n=!1;t instanceof Element&&"instagram"===t.getAttribute("data-photonic-platform")&&(n=!0),e.forEach((t=>{o.push(t.getAttribute("src")),i.push(t.parentElement)}));var a=[],r=[],l=function(t,e){a.push(new Promise((o=>{var a=new Image;a.onload=()=>{n&&(i[t].setAttribute("data-pswp-width",a.naturalWidth),i[t].setAttribute("data-pswp-height",a.naturalHeight)),o()},a.src=e,r.push(a)})))};for(var[s,c]of o.entries())l(s,c);return yield Promise.all(a),r}));return function(e){return t.apply(this,arguments)}}()),(0,r.default)(d,"loadSingleImage",function(){var t=(0,a.default)((function*(t){var e=[],o=null;return e.push(new Promise((e=>{var i=new Image;i.onload=()=>{e()},null!==t.getAttribute("data-src")?i.src=t.getAttribute("data-src"):i.src=t.getAttribute("src"),o=i}))),yield Promise.all(e),o}));return function(e){return t.apply(this,arguments)}}()),(0,r.default)(d,"watchForImages",(t=>{var e=d.getImagesFromSelector(t),o=new IntersectionObserver(((t,e)=>{t.forEach((t=>{if(t.isIntersecting||t.intersectionRatio>0){var o=t.target;o.closest("a").classList.add("photonic-image-loading"),d.loadSingleImage(o).then((()=>{null!==o.getAttribute("data-src")&&""!==o.getAttribute("data-src")&&(o.src=o.getAttribute("data-src"),o.setAttribute("data-src",""),o.setAttribute("data-loaded","true")),o.closest("a").classList.remove("photonic-image-loading"),l.fadeIn(o)})),e.unobserve(o)}}))}));e.forEach((t=>{o.observe(t)}))})),(0,r.default)(d,"getImagesFromSelector",(t=>{var e=[];return"string"==typeof t?document.querySelectorAll(t).forEach((t=>{e=Array.from(t.getElementsByTagName("img"))})):t instanceof Element?e=Array.from(t.getElementsByTagName("img")):t instanceof NodeList&&t.forEach((t=>{e.push(t.querySelector("img"))})),e})),(0,r.default)(d,"standardizeTitleWidths",(()=>{var t=d,e=t=>{t.querySelectorAll(".photonic-thumb").forEach((t=>{var e=t.getElementsByTagName("img");if(null!=e){e=e[0];var o=t.querySelector(".photonic-title-info");o&&(o.style.width=e.width+"px")}}))};document.querySelectorAll(".photonic-standard-layout.title-display-below, .photonic-standard-layout.title-display-hover-slideup-show, .photonic-standard-layout.title-display-slideup-stick").forEach((o=>{o.classList.contains("sizes-present")?(t.watchForImages(o),e(o)):t.waitForImages(o).then((()=>{e(o)}))}))})),(0,r.default)(d,"sanitizeTitles",(()=>{document.querySelectorAll(".photonic-stream a, a.photonic-level-2-thumb").forEach((t=>{if(!t.parentNode.classList.contains("photonic-header-title")){var e=t.getAttribute("title");t.setAttribute("title",l.getText(e));var o=t.getAttribute("data-title");t.setAttribute("data-title",l.HTMLSanitizer.SanitizeHTML(o))}}))})),(0,r.default)(d,"initializeTooltips",(()=>{null!=document.querySelector(".title-display-tooltip a, .photonic-slideshow.title-display-tooltip img")&&(0,s.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container")})),(0,r.default)(d,"showRegularGrids",(()=>{document.querySelectorAll(".photonic-standard-layout").forEach((t=>{t.classList.contains("sizes-present")?d.watchForImages(t):d.waitForImages(t).then((()=>{t.querySelectorAll(".photonic-level-1, .photonic-level-2").forEach((t=>{t.style.display="inline-block"}))}))}))})),(0,r.default)(d,"executeCommon",(()=>{d.moveHTML5External(),d.blankSlideupTitle(),d.standardizeTitleWidths(),d.sanitizeTitles(),d.initializeTooltips(),d.showRegularGrids()}))},8025:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.JustifiedGrid=void 0;var n=o(1449),a=i(o(91)),r=t=>{var e,o,i,n,a;for(n=0,a=t.length;n<a;n++)e=(i=t[n])[0],(!o||e<o.computed)&&(o={value:i,computed:e});return o.value},l=(t,e)=>{var o,i,n,a,l,s,c,d,h,u,p,g;if(l=t.length,e<=0)return[];if(e>l)return t.map((t=>[t]));for(c=(()=>{var t,o;for(o=[],t=0;0<=l?t<l:t>l;0<=l?++t:--t)o.push(function(){var t,o;for(o=[],d=t=0;0<=e?t<e:t>e;d=0<=e?++t:--t)o.push(0);return o}());return o})(),s=(()=>{var t,o,i;for(i=[],t=0,o=l-1;0<=o?t<o:t>o;0<=o?++t:--t)i.push(function(){var t,o,i;for(i=[],d=t=0,o=e-1;0<=o?t<o:t>o;d=0<=o?++t:--t)i.push(0);return i}());return i})(),i=h=0;0<=l?h<l:h>l;i=0<=l?++h:--h)c[i][0]=t[i]+(i?c[i-1][0]:0);for(n=u=0;0<=e?u<e:u>e;n=0<=e?++u:--u)c[0][n]=t[0];for(i=p=1;1<=l?p<l:p>l;i=1<=l?++p:--p)for(n=g=1;1<=e?g<e:g>e;n=1<=e?++g:--g)a=r((()=>{var t,e;for(e=[],d=t=0;0<=i?t<i:t>i;d=0<=i?++t:--t)e.push([Math.max(c[d][n-1],c[i][0]-c[d][0]),d]);return e})()),c[i][n]=a[0],s[i-1][n-1]=a[1];for(l-=1,e-=2,o=[];e>=0;)o=[(()=>{var o,n,a,r;for(r=[],i=o=n=s[l-1][e]+1,a=l+1;n<=a?o<a:o>a;i=n<=a?++o:--o)r.push(t[i]);return r})()].concat(o),l=s[l-1][e],e-=1;return[(()=>{var e,o,n;for(n=[],i=e=0,o=l+1;0<=o?e<o:e>o;i=0<=o?++e:--e)n.push(t[i]);return n})()].concat(o)};e.JustifiedGrid=(t,e,o,i)=>{void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Justified Grid");var r=document.querySelectorAll(o);null!=o&&0!==r.length||(r=document.querySelectorAll(".photonic-random-layout")),!t&&r.length>0&&n.Core.showSpinner();var s=()=>{n.Core.blankSlideupTitle(),n.Core.showSlideupTitle(),t||e||n.Core.hideLoading()};r.forEach((e=>{if(!e.classList.contains("sizes-missing")&&window.CSS&&CSS.supports("color","var(--fake-var)"))n.Core.watchForImages(e),s();else{var o=Math.floor(e.getBoundingClientRect().width),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),c=Math.max(parseInt(r/4),Photonic_JS.tile_min_height),d=2*Photonic_JS.tile_spacing;n.Core.waitForImages(e).then((()=>{var t=[];Array.from(e.getElementsByTagName("img")).forEach((e=>{if(null===e.closest(".photonic-panel")){var o=e.parentNode.parentNode;0!==e.naturalHeight&&void 0!==e.naturalHeight&&void 0!==e.naturalWidth&&t.push({tile:o,aspect_ratio:e.naturalWidth/e.naturalHeight})}}));for(var i=t.reduce(((t,e)=>t+(e.aspect_ratio*c+d)),0),n=Math.max(Math.round(i/o),1),r=function(t,e){if(e<=0)return[];for(;e;)try{return l(t,e--)}catch(t){}}(t.map((t=>Math.round(100*t.aspect_ratio))),n),h=0,u=r.length,p=0;p<u;p++){var g,m=r[p],f=t.slice(h,h+m.length);h+=m.length,g=f.reduce(((t,e)=>t+e.aspect_ratio),0);for(var v=f.length,y=0;y<v;y++){var b=f[y],w=b.tile;w.style.width=parseInt(o/g*b.aspect_ratio)+"px",w.style.height=parseInt(o/g)+"px"}}e.querySelectorAll(".photonic-thumb, .photonic-thumb img").forEach((t=>a.fadeIn(t))),s()}))}i&&!t&&("lightcase"===Photonic_JS.lightbox_library?i.initialize(".photonic-random-layout"):["bigpicture","featherlight","glightbox"].indexOf(Photonic_JS.lightbox_library)>-1?i.initialize(e):"fancybox3"===Photonic_JS.lightbox_library?i.initialize(".photonic-random-layout"):"photoswipe"===Photonic_JS.lightbox_library&&i.initialize())})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Justified Grid")}},7534:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.initializeLayouts=void 0;var n=o(8025),a=o(4074),r=o(720),l=o(2638),s=i(o(541));e.initializeLayouts=t=>{(0,n.JustifiedGrid)(!1,!1,null,t),(0,a.Mosaic)(!1,!1),(0,r.Masonry)(!1,!1),(0,l.MasonryHorizontal)(!1,!1),s.initializeSliders(),window.addEventListener("resize",(()=>{(0,n.JustifiedGrid)(!0,!1,".photonic-random-layout.sizes-missing"),(0,a.Mosaic)(!0,!1),(0,r.Masonry)(!0,!1),(0,l.MasonryHorizontal)(!0,!1)}))}},720:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.Masonry=void 0;var n=o(1449),a=i(o(91));e.Masonry=(t,e,o)=>{void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Masonry");var i=document.querySelectorAll(o);null!=o&&0!==i.length||(i=document.querySelectorAll(".photonic-masonry-layout")),!t&&i.length>0&&n.Core.showSpinner();var r=isNaN(Photonic_JS.masonry_min_width)||parseInt(Photonic_JS.masonry_min_width)<=0?200:Photonic_JS.masonry_min_width;r=parseInt(r),i.forEach((o=>{var i=o.getAttribute("data-photonic-gallery-columns");i=isNaN(parseInt(i))||parseInt(i)<=0?3:parseInt(i);var l=(o,l)=>{var s=Math.floor(o.getBoundingClientRect().width),c=s/i>r?i:Math.floor(s/r);null!=c&&(o.style.columnCount=c.toString()),l&&Array.from(o.getElementsByTagName("img")).forEach((t=>{a.fadeIn(t)})),n.Core.showSlideupTitle(),t||e||n.Core.hideLoading()};o.classList.contains("sizes-present")?(n.Core.watchForImages(o),l(o,!1)):n.Core.waitForImages(o).then((()=>{l(o,!0)}))})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Masonry")}},2638:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.MasonryHorizontal=void 0;var n=o(1449),a=i(o(91));e.MasonryHorizontal=(t,e,o)=>{void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Horizontal Masonry");var i=document.querySelectorAll(o);null!=o&&0!==i.length||(i=document.querySelectorAll(".photonic-masonry-horizontal-layout")),!t&&i.length>0&&n.Core.showSpinner();var r=isNaN(Photonic_JS.masonry_min_width)||parseInt(Photonic_JS.masonry_min_width)<=0?200:Photonic_JS.masonry_min_width;r=parseInt(r),i.forEach((o=>{var i=o.getAttribute("data-photonic-gallery-columns");i=isNaN(parseInt(i))||parseInt(i)<=0?3:parseInt(i);var l=(o,l)=>{var s=o.querySelectorAll("figure"),c=[],d=[];s.forEach((t=>{c[t.getAttribute("data-photonic-idx")]=t}));var h=Math.floor(o.getBoundingClientRect().width),u=h/i>r?i:Math.floor(h/r);if(null!=u){o.style.columnCount=u.toString();for(var p=0;p<u;){for(var g=0;g<c.length;g+=u){var m=c[g+p];void 0!==m&&d.push(m)}p++}d.length===c.length&&(document.createDocumentFragment(),d.forEach((t=>{o.appendChild(t)})))}l&&Array.from(o.getElementsByTagName("img")).forEach((t=>{a.fadeIn(t)})),n.Core.showSlideupTitle(),t||e||n.Core.hideLoading()};o.classList.contains("sizes-present")?(n.Core.watchForImages(o),l(o,!t)):n.Core.waitForImages(o).then((()=>{l(o,!0)}))})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Horizontal Masonry")}},4074:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.Mosaic=void 0;var n=o(1449),a=i(o(91)),r=(t,e,o)=>{for(var i=[],n=0;n<t;)if(t-n<=e&&n>0)i.push(t-n),n+=t-n;else{var a=Math.max(Math.floor(Math.random()*e+1),o);a=Math.min(a,t-n),i.push(a),n+=a}return i},l=(t,e)=>t.filter(((t,o)=>o%2===e)),s=t=>{t.sort(((t,e)=>t.height-e.height)),t[0].new_height=t[0].height,t[0].new_width=t[0].width;for(var e=1;e<t.length;e++)t[e].new_height=t[0].height,t[e].new_width=t[e].new_height*t[e].aspect_ratio;var o=t.reduce(((t,e)=>t+e.new_width),0);return{elements:t,height:t[0].new_height,width:o,aspect_ratio:o/t[0].new_height}},c=(t,e)=>{var o,i=Math.floor(t.getBoundingClientRect().width),n=isNaN(Photonic_JS.mosaic_trigger_width)||parseInt(Photonic_JS.mosaic_trigger_width)<=0?200:parseInt(Photonic_JS.mosaic_trigger_width),a=Math.floor(i/n),c=i>=2*n?2:1,d=[],h=[];Array.from(t.getElementsByTagName("img")).forEach(((t,o)=>{if(null==t.closest(".photonic-panel")){var i=t.parentNode.parentNode;i.setAttribute("data-photonic-photo-index",o),h[o]=i;var n=e?t.naturalHeight:t.getAttribute("height"),a=e?t.naturalWidth:t.getAttribute("width");if(0!==n&&void 0!==n&&void 0!==a){var r=a/n;d.push({src:t.src,width:a,height:n,aspect_ratio:r,photo_position:o})}}})),o=d.length;var u=r(o,a,c),p=[],g=0;u.forEach((t=>{p.push(d.slice(g,g+t)),g+=t}));var m=0;p.forEach((t=>{var e;t.sort(((t,e)=>t.aspect_ratio-e.aspect_ratio)),e=1===t.length?[1]:2===t.length?[1,1]:r(t.length,t.length-1,1);for(var o=0,n=t.length-1,c=[],d=[],u=2;u<=a;u++)for(var p=e.indexOf(u);-1<p&&o<n;){for(var g=[],f=0;f<u&&o<=n;)g.push(t[o++]),++f<u&&o<=n&&(g.push(t[n--]),f++);c.push(g),d.push(p),p=e.indexOf(u,p+1)}var v=t.slice(o,n+1),y=[];c.forEach(((t,e)=>{var o,i;if(0===Math.floor(2*Math.random())){var n=Math.max(Math.floor(Math.random()*(t.length/2-1)),1);o=t.slice(0,n),i=t.slice(n)}else o=l(t,0),i=l(t,1);o=s(o),i=s(i),o.new_width=Math.min(o.width,i.width),o.new_height=o.new_width/o.aspect_ratio,i.new_width=o.new_width,i.new_height=i.new_width/i.aspect_ratio,y.push({elements:[o,i],height:o.new_height+i.new_height,width:o.new_width,aspect_ratio:o.new_width/(o.new_height+i.new_height),element_position:d[e]})})),y.sort(((t,e)=>t.element_position-e.element_position));for(var b=[],w=0;w<e.length;w++)if(d.indexOf(w)>-1)b.push(y.shift());else{var _=v.shift();b.push({elements:[_],height:_.height,width:_.width,aspect_ratio:_.aspect_ratio})}var S=b.reduce(((t,e)=>t+e.aspect_ratio),0),L=0;b.forEach((t=>{t.new_width=t.aspect_ratio/S*i,t.new_height=t.new_width/t.aspect_ratio,t.y=m,t.x=L,L+=t.new_width})),m+=b[0].new_height,((t,e)=>{for(var o=t.length,i=0;i<o;i++)for(var n=t[i],a=n.y,r=0,l=void 0,s=n.elements.length,c=0;c<s;c++){var d=n.elements[c];if(void 0!==d.photo_position)(l=e[d.photo_position]).style.width=n.new_width+"px",l.style.height=n.new_height+"px",l.style.top=n.y+"px",l.style.left=n.x+"px";else{d.new_width=n.new_width,0===r?(d.new_height=d.new_width/d.aspect_ratio,r=d.new_height):d.new_height=n.new_height-r,d.x=n.x,d.y=a,a+=d.new_height;for(var h=d.elements.reduce(((t,e)=>t+e.new_width),0),u=0,p=d.elements.length,g=0;g<p;g++){var m=d.elements[g];m.new_width=d.new_width*m.new_width/h,m.new_height=d.new_height,m.x=u,u+=m.new_width,(l=e[m.photo_position]).style.width=Math.floor(m.new_width)+"px",l.style.height=Math.floor(m.new_height)+"px",l.style.top=Math.floor(d.y)+"px",l.style.left=Math.floor(d.x+m.x)+"px"}}}})(b,h)})),t.style.height=m+"px"};e.Mosaic=(t,e,o)=>{void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Mosaic");var i=document.querySelectorAll(o);null!=o&&0!==i.length||(i=document.querySelectorAll(".photonic-mosaic-layout")),!t&&i.length>0&&n.Core.showSpinner(),i.forEach((o=>{o.hasChildNodes()&&(o.classList.contains("sizes-present")?(n.Core.watchForImages(o),c(o,!1),n.Core.showSlideupTitle(),t||e||n.Core.hideLoading()):n.Core.waitForImages(o).then((()=>{o.classList.contains("sizes-present")||c(o,!0),Array.from(o.getElementsByTagName("img")).forEach((t=>a.fadeIn(t))),n.Core.showSlideupTitle(),t||e||n.Core.hideLoading()})))})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Mosaic")}},541:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.initializeSliders=e.Slider=void 0;var i=o(1449),n=t=>{t&&t.querySelector(".photonic-slideshow-content")&&i.Core.waitForImages(t).then((()=>{var e="#"+t.getAttribute("id"),o=document.querySelector(e+"-thumbs");null!=o&&(o=new Splide(e+"-thumbs")).mount();var i=new Splide(e);i.on("mounted resize",(function(e){(t.classList.contains("photonic-slideshow-side-white")||t.classList.contains("photonic-slideshow-start-next"))&&((t,e)=>{var o=0,i=0,n=t.offsetWidth,a=t.querySelectorAll(".splide__slide img");Array.prototype.forEach.call(a,(t=>{if(0!==t.naturalHeight){var a=t.naturalWidth/t.naturalHeight;if(a>=i){i=a;var r=t.naturalWidth>n?n/t.naturalWidth:1,l=parseInt(e.options.perPage,10);isNaN(l)||0===l||(r/=l),o=t.naturalHeight*r}}})),Array.prototype.forEach.call(a,(t=>{t.style.height=o+"px"})),Array.prototype.forEach.call(t.querySelectorAll(".splide__slide, .splide__list"),(t=>{t.style.height=o+"px"})),t.style.height=o+"px"})(t,i)})),i.on("visible",(function(e){t.classList.contains("photonic-slideshow-adapt-height")&&((t,e,o)=>{var i=o.options,n=o.index;if(e.isWithin(parseInt(n),parseInt(i.perPage)-1)){var a=o.Components.Elements.slides,r=parseInt(n)+parseInt(i.perPage),l=a.slice(n,r),s=0;requestAnimationFrame((()=>{Array.prototype.forEach.call(l,(t=>{var e=t.querySelector("img"),o=e.offsetHeight;e&&o>s&&(s=o)})),e.slide.style.height="".concat(s,"px");var o=t.querySelector(".splide__track"),i=o?o.offsetHeight:0;s!==i&&(t.querySelector(".splide__list").style.height="".concat(s,"px"),o.style.height="".concat(s,"px"))}))}})(t,e,i)})),null==o?i.mount():i.sync(o).mount(),t.querySelectorAll("img").forEach((t=>{t.style.display="inline"}))}))};e.Slider=n,e.initializeSliders=()=>{var t=document.querySelectorAll(".photonic-slideshow");"undefined"!=typeof Splide?t.forEach((t=>n(t))):void 0!==console&&t.length>0&&console.error("Splide not found! Please ensure that the Splide script is available and loaded before Photonic.")}},7569:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.PhotonicFancybox3=void 0;var n=o(1651),a=i(o(91));class r extends n.Lightbox{constructor(t){super(),this.$=t,this.buttons=[],Photonic_JS.fb3_zoom&&this.buttons.push("zoom"),Photonic_JS.fb3_slideshow&&this.buttons.push("slideShow"),Photonic_JS.fb3_fullscreen_button&&this.buttons.push("fullScreen"),Photonic_JS.fb3_download&&this.buttons.push("download"),Photonic_JS.fb3_thumbs_button&&this.buttons.push("thumbs"),this.buttons.push("close")}soloImages(){var t=this.$;t("a[href]").filter((function(){return/(\.jpg|\.jpeg|\.bmp|\.gif|\.png)/i.test(t(this).attr("href"))})).addClass("photonic-fancybox").addClass(Photonic_JS.lightbox_library)}hostedVideo(t){var e=t.getAttribute("href").match(new RegExp(/(\.mp4|\.webm|\.ogg)/i)),o=t.classList.contains("photonic-lb");null===e||o||(t.classList.add(Photonic_JS.lightbox_library+"-html5-video"),this.videoIndex++)}changeVideoURL(t,e,o){t.setAttribute("href",o)}initialize(t,e){this.handleSolos();var o=this,i=o.$;i(null!=e?'a[data-fancybox="'+e+'"]':null!=t?t+" a.photonic-fancybox":"a.photonic-fancybox").fancybox({defaultType:"image",hash:!1,caption:function(t,e){return a.HTMLSanitizer.SanitizeHTML(i(this).data("title"))},loop:"1"===Photonic_JS.lightbox_loop,buttons:o.buttons,slideShow:{autoStart:Photonic_JS.slideshow_mode,speed:parseInt(Photonic_JS.slideshow_interval,10)},thumbs:{autoStart:"1"===Photonic_JS.fb3_thumbs,hideOnClose:!0},fullScreen:{autoStart:"1"===Photonic_JS.fb3_fullscreen},protect:"1"===Photonic_JS.fb3_disable_right_click,transitionEffect:Photonic_JS.fb3_transition_effect,transitionDuration:Photonic_JS.fb3_transition_speed,afterShow:function(t,e){var n={url:location.href,title:i(e).length>0&&void 0!==i(e)[0].opts&&void 0!==i(e)[0].opts.$orig?a.getText(i(e)[0].opts.$orig.attr("title")):"",image:i(e).length>0&&void 0!==i(e)[0].opts&&void 0!==i(e)[0].opts.$orig?i(e)[0].opts.$orig.attr("href"):""};o.addSocial(".fancybox-toolbar",n,"afterbegin")},beforeShow:function(){var t=this.src,e=this.opts.html5Href;void 0!==e&&o.getVideoSize(e,{height:.85*window.innerHeight,width:.85*window.innerWidth}).then((function(e){i(t).find("video").attr("width",e.newWidth).attr("height",e.newHeight),i(t).css({width:e.newWidth,height:e.newHeight})})),o.setHash(this.opts.photonicDeep)},afterClose:function(){o.unsetHash()}}),i("a.fancybox3-video,a.fancybox3-html5-video").fancybox({youtube:{}})}initializeForNewContainer(t){this.initialize(t)}}e.PhotonicFancybox3=r},1651:(t,e,o)=>{var i=o(6554);Object.defineProperty(e,"__esModule",{value:!0}),e.Lightbox=void 0;var n=i(o(7593));e.Lightbox=class{constructor(){(0,n.default)(this,"deep",void 0),(0,n.default)(this,"lastDeep",void 0),this.socialIcons="<div id='photonic-social'><a class='photonic-share-fb' href='https://www.facebook.com/sharer/sharer.php?u={photonic_share_link}&amp;title={photonic_share_title}&amp;picture={photonic_share_image}' target='_blank' title='Share on Facebook'><div class='icon-facebook'></div></a><a class='photonic-share-twitter' href='https://twitter.com/share?url={photonic_share_link}&amp;text={photonic_share_title}' target='_blank' title='Share on Twitter'><div class='icon-twitter'></div></a><a class='photonic-share-pinterest' data-pin-do='buttonPin' href='https://www.pinterest.com/pin/create/button/?url={photonic_share_link}&media={photonic_share_image}&description={photonic_share_title}' data-pin-custom='true' target='_blank' title='Share on Pinterest'><div class='icon-pinterest'></div></a></div>",this.videoIndex=1}getVideoSize(t,e){return new Promise((o=>{var i=document.createElement("video");i.addEventListener("loadedmetadata",(function(){var t,i,n=this.videoHeight,a=this.videoWidth,r=this.videoWidth/this.videoHeight;e.width/e.height>r?t=a*(i=e.height)/n:i=n*(t=e.width)/a,o({height:n,width:a,newHeight:i,newWidth:t})}),!1),i.src=t}))}getImageSize(t,e){return new Promise((function(o){var i=document.createElement("img");i.addEventListener("load",(function(){var t,i,n=this.height,a=this.width,r=this.width/this.height;e.width/e.height>r?t=a*(i=e.height)/n:i=n*(t=e.width)/a,o({height:n,width:a,newHeight:i,newWidth:t})}),!1),i.src=t}))}addSocial(t,e,o){if(void 0!==Photonic_JS.social_media&&""!==Photonic_JS.social_media||void 0!==e.buy){var i,n=document.getElementById("photonic-social");if(null!==n&&n.parentNode.removeChild(n),i=null==o?"beforeend":o,""!==location.hash){var a,r=this.socialIcons.replace(/{photonic_share_link}/g,encodeURIComponent(e.url)).replace(/{photonic_share_title}/g,encodeURIComponent(e.title)).replace(/{photonic_share_image}/g,encodeURIComponent(e.image));if(null!==(a="string"==typeof t?document.documentElement.querySelector(t):t)&&a.insertAdjacentHTML(i,r),void 0===Photonic_JS.social_media||""===Photonic_JS.social_media){var l=document.documentElement.querySelectorAll(".photonic-share-fb, .photonic-share-twitter, .photonic-share-pinterest");Array.prototype.forEach.call(l,(function(t){t.parentNode.removeChild(t)}))}}}}setHash(t){if(void 0!==Photonic_JS.deep_linking&&"none"!==Photonic_JS.deep_linking&&null!=t){var e="string"==typeof t?t:t.getAttribute("data-photonic-deep");void 0!==e&&("function"==typeof window.history.pushState&&"yes-history"===Photonic_JS.deep_linking?window.history.pushState({},document.title,"#"+e):"function"==typeof window.history.replaceState&&"no-history"===Photonic_JS.deep_linking?window.history.replaceState({},document.title,"#"+e):document.location.hash=e)}}unsetHash(){this.lastDeep=void 0===this.lastDeep||""!==this.deep?location.hash:this.lastDeep,window.history&&"replaceState"in window.history?history.replaceState({},document.title,location.href.substr(0,location.href.length-location.hash.length)):window.location.hash=""}changeHash(t){if("load"===t.type){var e=window.location.hash;if((e=e.substr(1))&&""!==e){var o=document.querySelectorAll('[data-photonic-deep="'+e+'"]');if(o.length>0){var i=o[0],n=document.createEvent("HTMLEvents");n.initEvent("click",!0,!1),i.dispatchEvent(n)}}}else{var a=this.deep;if(null!=a&&a.length>1)if(window.location.hash&&-1!==a.indexOf("#access_token="))this.unsetHash();else{a=a.substr(1);var r=document.querySelectorAll('[data-photonic-deep="'+a+'"]');if(r.length>0){var l=r[0],s=document.createEvent("HTMLEvents");s.initEvent("click",!0,!1),l.dispatchEvent(s),this.setHash(a)}}}}catchYouTubeURL(t){var e=t.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*)(?:(\?t|&t|\?start|&start)=(\d+))?.*/);if(e&&11===e[2].length){var o={url:e[2]};return void 0!==e[4]&&(o.timestamp=e[4]),o}}catchVimeoURL(t){var e=t.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/);if(e)return e[1]}soloImages(){var t=document.querySelectorAll("a[href]"),e=Array.from(t).filter((t=>/(\.jpg|\.jpeg|\.bmp|\.gif|\.png)/i.test(t.getAttribute("href")))).filter((t=>!t.classList.contains("photonic-lb")));return e.forEach((t=>{t.classList.add("photonic-"+Photonic_JS.lightbox_library),t.classList.add("photonic-"+Photonic_JS.lightbox_library+"-solo"),t.classList.add(Photonic_JS.lightbox_library)})),e}changeVideoURL(t,e,o,i){}hostedVideo(t){}soloVideos(){var t=this;Photonic_JS.lightbox_for_videos&&document.querySelectorAll("a[href]").forEach((function(e){var o,i,n,a=e.getAttribute("href"),r=t.catchYouTubeURL(a),l=t.catchVimeoURL(a);if(void 0!==r){var s=r.url,c=r.timestamp,d="",h="";void 0!==c&&(d="&t="+c,h="?start="+c),o="https://youtube.com/watch?v="+s+d,i="https://youtube.com/embed/"+s+h,n="https://img.youtube.com/vi/"+s+"/hddefault.jpg"}else void 0!==l&&(o="https://vimeo.com/"+l,i="https://player.vimeo.com/video/"+l);void 0!==o&&(e.classList.add(Photonic_JS.lightbox_library+"-video"),t.changeVideoURL(e,o,i,n),t.modifyAdditionalVideoProperties(e)),t.hostedVideo(e)}))}handleSolos(){Photonic_JS.lightbox_for_all&&this.soloImages(),this.soloVideos(),void 0!==Photonic_JS.deep_linking&&"none"!==Photonic_JS.deep_linking&&(window.addEventListener("load",this.changeHash),window.addEventListener("hashchange",this.changeHash))}initialize(){this.handleSolos()}initializeForNewContainer(t){}initializeForExisting(){}modifyAdditionalVideoProperties(t){}}},3178:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.addAllListeners=e.addLazyLoadListener=e.addSlideUpLeaveListener=e.addSlideUpEnterListener=e.addHelperMoreButtonListener=e.addMoreButtonListener=e.addLevel3ExpandListener=e.addPasswordSubmitListener=e.addLevel2ClickListener=void 0;var n=o(1449),a=i(o(91)),r=i(o(1043)),l=o(8025),s=o(4074),c=o(5870),d=o(2638),h=()=>{document.addEventListener("click",(t=>{if(t.target instanceof Element&&t.target.closest(".photonic-level-2-thumb")&&"none"!==Photonic_JS.lightbox_library){var e=t.target.closest(".photonic-level-2-thumb");if(!a.hasClass(e,"gallery-page")){t.preventDefault();var o=e.closest(".photonic-level-2-container"),i=JSON.parse(o.getAttribute("data-photonic")),n=i.platform,l=i.singular,s=o.getAttribute("data-photonic-query"),c={panel_id:e.getAttribute("id"),popup:i.popup,photo_count:i["photo-count"],photo_more:i["photo-more"]||"",query:s};"google"!==n&&"zenfolio"!==n||(c.thumb_size=i["thumb-size"]),"flickr"!==n&&"smug"!==n&&"google"!==n&&"zenfolio"!==n||(c.overlay_size=i["overlay-size"],c.overlay_video_size=i["overlay-video-size"]),"google"===n&&(c.overlay_crop=i["overlay-crop"]),r.displayLevel2(n,l,c)}}}),!1)};e.addLevel2ClickListener=h;var u=()=>{document.addEventListener("click",(t=>{if(t.target instanceof Element&&t.target.closest(".photonic-password-submit")){t.preventDefault();var e=t.target.closest(".photonic-password-submit"),o=e.closest(".photonic-password-prompter"),i=e.closest(".photonic-level-2-container"),a=JSON.parse(i.getAttribute("data-photonic")),l=o.getAttribute("id").split("-"),s=a.platform,c=a.singular,d=l.slice(4).join("-"),h="photonic-".concat(s,"-").concat(c,"-thumb-").concat(d),u=document.getElementById("".concat(h)),p=i.getAttribute("data-photonic-query"),g=o.querySelector('input[name="photonic-'+s+'-password"]');g=g.value;var m=n.Core.prompterList["#photonic-".concat(s,"-").concat(c,"-prompter-").concat(d)];null!=m&&m.hide(),n.Core.showSpinner();var f={panel_id:h,popup:a.popup,photo_count:a["photo-count"],photo_more:a["photo-more"]||"",query:p};"smug"===s?(f.password=g,f.overlay_size=a["overlay-size"]):"zenfolio"===s&&(f.password=g,f.realm_id=u.getAttribute("data-photonic-realm"),f.thumb_size=a["thumb-size"],f.overlay_size=a["overlay-size"],f.overlay_video_size=a["overlay-video-size"]),r.processRequest(s,c,d,f)}}),!1)};e.addPasswordSubmitListener=u;var p=()=>{document.addEventListener("click",(t=>{if(t.target instanceof Element&&t.target.closest("a.photonic-level-3-expand")){t.preventDefault();var e=t.target.closest("a.photonic-level-3-expand"),o=e.parentNode.parentNode.parentNode,i=o.parentNode;if(e.classList.contains("photonic-level-3-expand-plus"))r.processL3Request(e,o,{view:"collections",node:e.getAttribute("data-photonic-level-3"),layout:e.getAttribute("data-photonic-layout"),stream:i.getAttribute("id")});else if(e.classList.contains("photonic-level-3-expand-up")){var n=a.next(o,".photonic-stream");a.slideUpDown(n,"hide"),e.classList.remove("photonic-level-3-expand-up"),e.classList.add("photonic-level-3-expand-down"),e.setAttribute("title",void 0===Photonic_JS.maximize_panel?"Show":Photonic_JS.maximize_panel)}else if(e.classList.contains("photonic-level-3-expand-down")){var l=a.next(o,".photonic-stream");a.slideUpDown(l,"show"),e.classList.remove("photonic-level-3-expand-down"),e.classList.add("photonic-level-3-expand-up"),e.setAttribute("title",void 0===Photonic_JS.minimize_panel?"Hide":Photonic_JS.minimize_panel)}}}),!1)};e.addLevel3ExpandListener=p;var g=()=>{document.addEventListener("click",(t=>{if(t.target instanceof Element&&t.target.closest("a.photonic-more-button.photonic-more-dynamic")){t.preventDefault();var e=t.target.closest("a.photonic-more-button.photonic-more-dynamic"),o=e.parentNode.querySelector(".photonic-level-1-container, .photonic-level-2-container"),i=o.getAttribute("data-photonic-query"),r=o.getAttribute("data-photonic-platform"),h=o.classList.contains("photonic-level-1-container")?"level-1":"level-2",u=o.getAttribute("id"),p=o.querySelectorAll("figure");n.Core.showSpinner(),a.post(Photonic_JS.ajaxurl,{action:"photonic_load_more",provider:r,query:i},(t=>{var i=a.getElement(t),r=i.querySelectorAll(".photonic-".concat(h)),g=i.querySelector(".photonic-more-button"),m=o.querySelector("a.photonic-lb"),f=[];null!==m&&r.forEach((t=>{var e=t.querySelector("a");null!==e&&(e.setAttribute("rel",m.getAttribute("rel")),null!=e.getAttribute("data-fancybox")?e.setAttribute("data-fancybox",m.getAttribute("data-fancybox")):null!=e.getAttribute("data-rel")?e.setAttribute("data-rel",m.getAttribute("data-rel")):null!=e.getAttribute("data-strip-group")?e.setAttribute("data-strip-group",m.getAttribute("data-strip-group")):null!=e.getAttribute("data-gall")&&e.setAttribute("data-gall",m.getAttribute("data-gall")),f.push(e))})),r.forEach((t=>o.appendChild(t))),n.Core.moveHTML5External(),0===r.length&&(n.Core.hideLoading(),a.fadeOut(e),e.remove());var v=n.Core.getLightbox();if("imagelightbox"===Photonic_JS.lightbox_library)null!=m&&(v=n.Core.getLightboxList()['a[rel="'+m.getAttribute("rel")+'"]'],"level-1"===h&&v.addToImageLightbox(f));else if("lightcase"===Photonic_JS.lightbox_library)null!=m&&v.initialize('a[data-rel="'+m.getAttribute("data-rel")+'"]');else if("lightgallery"===Photonic_JS.lightbox_library)if(null!==m){var y=[...(v=n.Core.getLightboxList()[m.getAttribute("rel")]).galleryItems];r.forEach((t=>{var e,o=t.querySelector("a"),i=o.querySelector("img");"video"===o.getAttribute("data-photonic-media-type")&&(e=JSON.parse(o.getAttribute("data-video"))),y.push({alt:i.getAttribute("alt"),downloadUrl:o.getAttribute("data-download-url"),src:"video"===o.getAttribute("data-photonic-media-type")?e.source[0].src:o.getAttribute("href"),subHtml:o.getAttribute("data-sub-html"),thumb:i.getAttribute("src")})})),v.updateSlides(y,0),v.refresh()}else v.initialize(o);else if("venobox"===Photonic_JS.lightbox_library){if(null!==m){var b=m.getAttribute("data-gall");m.closest(".photonic-panel")&&(b=m.closest(".photonic-panel").getAttribute("id")),v.initialize("#"+b,!0)}}else["bigpicture","featherlight","glightbox","spotlight"].includes(Photonic_JS.lightbox_library)?v.initialize(o):"baguettebox"===Photonic_JS.lightbox_library?v.initialize(null,!0):"fancybox3"===Photonic_JS.lightbox_library?null!=m&&v.initialize(null,m.getAttribute("data-fancybox")):"photoswipe"===Photonic_JS.lightbox_library&&v.initialize();function w(t){var r=i.querySelector(".photonic-random-layout,.photonic-standard-layout,.photonic-masonry-layout,.photonic-mosaic-layout,.modal-gallery");if(null!=r&&o.setAttribute("data-photonic-query",r.getAttribute("data-photonic-query")),null==g&&(a.fadeOut(e),e.remove()),a.hasClass(o,"photonic-mosaic-layout"))(0,s.Mosaic)(!1,!1,"#"+u);else if(a.hasClass(o,"photonic-random-layout"))(0,l.JustifiedGrid)(!1,!1,"#"+u,v);else if(a.hasClass(o,"photonic-masonry-layout"))t.forEach((t=>{var e=t.querySelector("img");a.fadeIn(e),e.style.display="block"})),n.Core.hideLoading();else if(a.hasClass(o,"photonic-masonry-horizontal-layout")){var m=p.length;t.forEach(((t,e)=>{t.setAttribute("data-photonic-idx",m+e)})),(0,d.MasonryHorizontal)(!1,!1,"#"+u),n.Core.hideLoading()}else o.querySelectorAll(".photonic-"+h).forEach((t=>{t.style.display="inline-block"})),n.Core.standardizeTitleWidths(),n.Core.hideLoading();(0,c.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container")}o.classList.contains("sizes-present")?(n.Core.watchForImages(r),w(r)):n.Core.waitForImages(r).then((()=>{w(r)}))}))}}))};e.addMoreButtonListener=g;var m=()=>{document.addEventListener("click",(t=>{if(t.target instanceof Element&&t.target.closest('input[type="button"].photonic-helper-more')){t.preventDefault(),n.Core.showSpinner();var e=t.target.closest('input[type="button"].photonic-helper-more'),o=e.closest("table"),i=void 0===e.getAttribute("data-photonic-token")?null:e.getAttribute("data-photonic-token"),r=e.getAttribute("data-photonic-platform"),l={action:"photonic_helper_shortcode_more",provider:r,access:e.getAttribute("data-photonic-access")};i&&(l.nextPageToken=i),"google"===r&&a.post(Photonic_JS.ajaxurl,l,(t=>{var i=a.getElement(t);if((i=Array.from(i.getElementsByTagName("tr"))).length>0){var r=e.closest("tr");r&&r.remove(),i.forEach(((t,e)=>{0!==e&&o.appendChild(t)}))}(0,c.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),n.Core.hideLoading()}))}}))};e.addHelperMoreButtonListener=m;var f=()=>{document.addEventListener("mouseover",(t=>{var e=".title-display-hover-slideup-show a, .photonic-slideshow.title-display-hover-slideup-show li";if(t.target instanceof Element&&t.target.closest(e)){var o=t.target.closest(e),i=o.querySelector(".photonic-title");a.slideUpTitle(i,"show"),o.setAttribute("title","")}}),!0)};e.addSlideUpEnterListener=f;var v=()=>{document.addEventListener("mouseout",(t=>{var e=".title-display-hover-slideup-show a, .photonic-slideshow.title-display-hover-slideup-show li";if(t.target instanceof Element&&t.target.closest(e)){var o=t.target.closest(e),i=o.querySelector(".photonic-title");a.slideUpTitle(i,"hide"),o.setAttribute("title",a.getText(o.getAttribute("data-title")))}}),!0)};e.addSlideUpLeaveListener=v;var y=()=>{var t=document.documentElement.querySelectorAll("input.photonic-show-gallery-button");Array.prototype.forEach.call(t,(t=>{t.addEventListener("click",r.lazyLoad)})),t=document.documentElement.querySelectorAll("input.photonic-js-load-button"),Array.prototype.forEach.call(t,(t=>{t.addEventListener("click",r.lazyLoad),t.click()}))};e.addLazyLoadListener=y,e.addAllListeners=()=>{h(),u(),p(),g(),m(),f(),v(),y()}},1043:(t,e,o)=>{var i=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.lazyLoad=e.processL3Request=e.displayLevel2=e.processRequest=void 0;var n=o(1449),a=i(o(91)),r=o(8025),l=o(720),s=o(2638),c=o(4074),d=o(5870),h=o(956),u=0,p=t=>{var e;n.Core.hideLoading(),e=t instanceof Element?t:a.getElement(t).firstElementChild,a.hide(e),e.querySelectorAll("img").forEach((t=>{null!==t.getAttribute("src")&&""!==t.getAttribute("src")||null===t.getAttribute("data-src")||(t.setAttribute("src",t.getAttribute("data-src")),t.removeAttribute("data-src"))})),document.body.appendChild(e),n.Core.moveHTML5External();var o=n.Core.getLightbox();null!=o&&o.initializeForNewContainer("#"+e.getAttribute("id"));var i=e.querySelectorAll(".photonic-lb");if(i.length>0){n.Core.setDeep("#"+i[0].getAttribute("data-photonic-deep"));var r=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});i[0].dispatchEvent(r)}},g=(t,e,o,i)=>{i.action="photonic_display_level_2_contents",a.post(Photonic_JS.ajaxurl,i,(function(r){if(r.substr(0,Photonic_JS.password_failed.length)===Photonic_JS.password_failed){n.Core.hideLoading();var l="#photonic-"+t+"-"+e+"-prompter-"+o,s=n.Core.prompterList[l];null!=s&&s.show()}else"show"===i.popup?((t,e,o,i)=>{var r=i.replace(".","\\."),l=a.getElement(t).firstElementChild,s=l.querySelector(".modal-gallery"),c=()=>{var t=document.querySelector("#photonic-"+e+"-"+o+"-"+r);t&&(t.appendChild(l),a.show(t)),(0,h.Modal)(l,{modalTarget:"photonic-"+e+"-panel-"+r,color:"#000",width:Photonic_JS.gallery_panel_width+"%",closeFromRight:(100-Photonic_JS.gallery_panel_width)/2+"%"}),n.Core.moveHTML5External();var i=n.Core.getLightbox();null!=i&&i.initializeForNewContainer("#"+l.getAttribute("id")),(0,d.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),n.Core.hideLoading()};s.classList.contains("sizes-present")?(n.Core.watchForImages(s),c()):n.Core.waitForImages(s).then((()=>{c()}))})(r,t,e,o):""!==r?p(r):n.Core.hideLoading()}))};e.processRequest=g,e.displayLevel2=(t,e,o)=>{var i=o.panel_id.substr(("photonic-"+t+"-"+e+"-thumb-").length),r="#photonic-"+t+"-panel-"+i,l=document.getElementById("photonic-"+t+"-panel-"+i);null==l?(l=document.getElementById(o.panel_id)).classList.contains("photonic-"+t+"-passworded")?n.Core.initializePasswordPrompter("#photonic-".concat(t,"-").concat(e,"-prompter-").concat(i)):(n.Core.showSpinner(),g(t,e,i,o)):(n.Core.showSpinner(),((t,e,o,i)=>{var r=a.getElement(o);"show"===i.popup?(n.Core.hideLoading(),(0,h.Modal)(r,{modalTarget:"photonic-"+t+"-panel-"+e,color:"#000",width:Photonic_JS.gallery_panel_width+"%",closeFromRight:(100-Photonic_JS.gallery_panel_width)/2+"%"})):p(document.getElementById("photonic-"+t+"-panel-"+e))})(t,i,r,o))},e.processL3Request=(t,e,o)=>{o.action="photonic_display_level_3_contents",n.Core.showSpinner();var i=n.Core.getLightbox();a.post(Photonic_JS.ajaxurl,o,(function(h){var u=a.getElement(h);if(e){var p=u.querySelector(".photonic-level-2-container"),g=e.parentNode,m=u.firstElementChild,f=o.node.substr("flickr-collection-".length);m.setAttribute("id",o.stream+"-"+f),g.insertBefore(m,e.nextSibling),p.classList.contains("photonic-random-layout")?(0,r.JustifiedGrid)(!1,!1,null,i):p.classList.contains("photonic-mosaic-layout")?(0,c.Mosaic)(!1,!1):p.classList.contains("photonic-masonry-layout")?(0,l.Masonry)(!1,!1):p.classList.contains("photonic-masonry-horizontal-layout")?(0,s.MasonryHorizontal)(!1,!1):p.classList.contains("sizes-present")&&n.Core.watchForImages(p),m.querySelectorAll(".photonic-level-2").forEach((function(t){t.style.display="inline-block"})),(0,d.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),t.classList.remove("photonic-level-3-expand-plus"),t.classList.add("photonic-level-3-expand-up"),t.setAttribute("title",void 0===Photonic_JS.minimize_panel?"Hide":Photonic_JS.minimize_panel)}n.Core.hideLoading()}))},e.lazyLoad=t=>{u++,n.Core.showSpinner();var e=t.currentTarget,o={action:"photonic_lazy_load",shortcode:e.getAttribute("data-photonic-shortcode")},i=()=>{--u<=0&&n.Core.hideLoading()};a.post(Photonic_JS.ajaxurl,o,(t=>{var o=document.createElement("div");if(o.innerHTML=t,o=o.firstElementChild){var a=o.getAttribute("id"),h=a.substring(0,a.lastIndexOf("-")),p=document.documentElement.querySelectorAll("."+h),g=0;p.forEach((t=>{var e=t.getAttribute("id");e=e.substring(e.lastIndexOf("-")+1),e=parseInt(e,10),g=Math.max(g,e)})),g+=1;var m=new RegExp(a,"gi");o.innerHTML=t.replace(m,h+"-"+g).replace("photonic-slideshow-"+a.substring(a.lastIndexOf("-")+1),"photonic-slideshow-"+g),(o=o.firstElementChild).querySelectorAll("figure.photonic-level-2").forEach((t=>{if(null!=t.getAttribute("id")){var e=t.getAttribute("id"),o=e.substring(0,e.lastIndexOf("-")+1)+g;t.setAttribute("id",o);var i=t.querySelector("a");if(null!=i.getAttribute("id")){var n=i.getAttribute("id"),a=n.substring(0,n.lastIndexOf("-")+1)+g;i.setAttribute("id",a)}var r=t.querySelector(".photonic-password-prompter");if(null!=r&&null!=r.getAttribute("id")){var l=r.getAttribute("id"),s=l.substring(0,l.lastIndexOf("-")+1)+g;r.setAttribute("id",s)}}})),e.insertAdjacentElement("afterend",o);var f=h+"-"+g,v=n.Core.getLightbox();null!=v&&v.initializeForNewContainer("#"+o.getAttribute("id")),document.querySelectorAll("#"+f+" .photonic-random-layout").length>0?((0,r.JustifiedGrid)(!1,!0,"#"+f+" .photonic-random-layout",v),u--):document.querySelectorAll("#"+f+" .photonic-masonry-layout").length>0?((0,l.Masonry)(!1,!0,"#"+f+" .photonic-masonry-layout"),u--):document.querySelectorAll("#"+f+" .photonic-masonry-horizontal-layout").length>0?((0,s.MasonryHorizontal)(!1,!0,"#"+f+" .photonic-masonry-horizontal-layout"),u--):document.querySelectorAll("#"+f+" .photonic-mosaic-layout").length>0&&((0,c.Mosaic)(!1,!0,"#"+f+" .photonic-mosaic-layout"),u--),o.classList.contains("sizes-present")||null!==o.querySelector(".sizes-present")?(n.Core.watchForImages(o),n.Core.standardizeTitleWidths(),i()):n.Core.waitForImages(o).then((()=>{document.documentElement.querySelectorAll("#"+f+" .photonic-standard-layout .photonic-level-1, #"+f+" .photonic-standard-layout .photonic-level-2").forEach((t=>{t.style.display="inline-block"})),n.Core.standardizeTitleWidths(),i()})),n.Core.moveHTML5External(),e.parentNode.removeChild(e),(0,d.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),u<=0&&n.Core.hideLoading()}}))}},91:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLSanitizer=e.hide=e.show=e.fadeOut=e.fadeIn=e.slideUpTitle=e.slideUpDown=e.getText=e.getElement=e.next=e.get=e.post=e.hasClass=void 0;var o=(t,e)=>t.classList?t.classList.contains(e):new RegExp("(^|)"+e+"(|$)","gi").test(t.className);function i(t,e,o,i){var n=new XMLHttpRequest;n.open(t,e),n.onreadystatechange=function(){if(4===n.readyState&&200===n.status){var t=n.responseText;i(t)}};var a=new FormData;for(var[r,l]of Object.entries(o))a.append(r,l);n.send(a)}e.hasClass=o,e.post=(t,e,o)=>{i("POST",t,e,o)},e.get=(t,e,o)=>{i("GET",t,e,o)},e.next=(t,e)=>{var o=t.nextElementSibling;if(!e)return o;for(;o;){if(o.matches(e))return o;o=o.nextElementSibling}},e.getElement=t=>(new DOMParser).parseFromString(t,"text/html").body,e.getText=t=>null==t?"":t.replace(/<[^>]+>/g,""),e.slideUpDown=(t,e)=>{null!=t&&t.classList&&(t.classList.contains("photonic-can-slide")||t.classList.add("photonic-can-slide"),"show"===e?(t.classList.remove("photonic-can-slide-hide"),t.style.height="".concat(t.scrollHeight,"px")):(t.classList.add("photonic-can-slide-hide"),t.style.height=0))},e.slideUpTitle=(t,e)=>{if(t&&t.classList)if("show"===e){var o=0;t.offsetHeight&&(o=2*parseInt(getComputedStyle(t).paddingTop.slice(0,-2))),t.style.height=t.scrollHeight+6-o+"px",t.classList.add("slideup-show")}else t.style.height="",t.classList.remove("slideup-show")},e.fadeIn=t=>{o(t,"fade-in")||(t.style.display="block",t.style.visibility="visible",t.classList.add("fade-in"))},e.fadeOut=(t,e)=>{var o=t.style,i=25/(e||500);o.opacity=o.opacity||1,function e(){o.opacity-=i,o.opacity<0?(o.display="none",t.classList.remove("fade-in")):setTimeout(e,25)}()};var n=(t,e)=>{var o=t.getAttribute("data-olddisplay"),i=t.style.display,n=(window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).display;e?(o||"none"!==i||(t.style.display=""),""===t.style.display&&"none"===n&&(o=o||(t=>{var e=document.createElement("iframe");e.setAttribute("frameborder",0),e.setAttribute("width",0),e.setAttribute("height",0),document.documentElement.appendChild(e);var o=(e.contentWindow||e.contentDocument).document;o.write(),o.close();var i=o.createElement(t);o.documentElement.appendChild(i);var n=(window.getComputedStyle?getComputedStyle(i,null):i.currentStyle).display;return e.parentNode.removeChild(e),n})(t.nodeName))):(i&&"none"!==i||"none"!==n)&&t.setAttribute("data-olddisplay","none"===n?i:n),e&&"none"!==t.style.display&&""!==t.style.display||(t.style.display=e?o||"":"none")};e.show=t=>n(t,!0),e.hide=t=>n(t);var a=new function(){var t={A:!0,ABBR:!0,B:!0,BLOCKQUOTE:!0,BODY:!0,BR:!0,CENTER:!0,CODE:!0,DD:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FONT:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HR:!0,I:!0,IMG:!0,LABEL:!0,LI:!0,OL:!0,P:!0,PRE:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRONG:!0,SUB:!0,SUP:!0,TABLE:!0,TBODY:!0,TR:!0,TD:!0,TH:!0,THEAD:!0,UL:!0,U:!0,VIDEO:!0},e={FORM:!0,"GOOGLE-SHEETS-HTML-ORIGIN":!0},o={align:!0,color:!0,controls:!0,height:!0,href:!0,id:!0,src:!0,style:!0,target:!0,title:!0,type:!0,width:!0},i={"background-color":!0,color:!0,"font-size":!0,"font-weight":!0,"text-align":!0,"text-decoration":!0,width:!0},n=["http:","https:","data:","m-files:","file:","ftp:","mailto:","pw:"],a={href:!0,action:!0},r=new DOMParser;function l(t,e){for(var o=0;o<e.length;o++)if(0===t.indexOf(e[o]))return!0;return!1}this.SanitizeHTML=(s,c)=>{if(null==s)return null;if(""===(s=s.trim()))return"";if("<br>"===s)return"";-1===s.indexOf("<body")&&(s="<body>"+s+"</body>");var d=r.parseFromString(s,"text/html");return"BODY"!==d.body.tagName&&d.body.remove(),"function"!=typeof d.createElement&&d.createElement.remove(),function r(s){var h;if(s.nodeType===Node.TEXT_NODE)h=s.cloneNode(!0);else if(s.nodeType===Node.ELEMENT_NODE&&(t[s.tagName]||e[s.tagName]||c&&s.matches(c))){h=e[s.tagName]?d.createElement("DIV"):d.createElement(s.tagName);for(var u=0;u<s.attributes.length;u++){var p=s.attributes[u];if(o[p.name])if("style"===p.name)for(var g=0;g<s.style.length;g++){var m=s.style[g];i[m]&&h.style.setProperty(m,s.style.getPropertyValue(m))}else{if(a[p.name]&&p.value.indexOf(":")>-1&&!l(p.value,n))continue;h.setAttribute(p.name,p.value)}}for(var f=0;f<s.childNodes.length;f++){var v=r(s.childNodes[f]);h.appendChild(v,!1)}if(("SPAN"===h.tagName||"B"===h.tagName||"I"===h.tagName||"U"===h.tagName)&&""===h.innerHTML.trim())return d.createDocumentFragment()}else h=d.createDocumentFragment();return h}(d.body).innerHTML.replace(/div><div/g,"div>\n<div")},this.AllowedTags=t,this.AllowedAttributes=o,this.AllowedCssStyles=i,this.AllowedSchemas=n};e.HTMLSanitizer=a}},r={};function l(t){if(r[t])return r[t].exports;var e=r[t]={exports:{}};return a[t](e,e.exports,l),e.exports}t=l(9095),e=l(1449),o=l(7569),i=t(l(3178)),n=t(l(7534)),jQuery(document).ready((function(t){var a=new o.PhotonicFancybox3(t);e.Core.setLightbox(a),a.initialize(),e.Core.executeCommon(),i.addAllListeners(),n.initializeLayouts(a)}))})();