PageSourceSearch

https://www.nfi.edu/wp-content/plugins/photonic/include/js/front-e…onic-baguettebox.min.js?ver=20260923-173548

js nfi.edu collected 2026-09-24 09:12:55 UTC 53,780 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t,o,i,n,a={4209:e=>{function t(e,t,o,i,n,a,r){try{var l=e[a](r),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(i,n)}e.exports=function(e){return function(){var o=this,i=arguments;return new Promise((function(n,a){var r=e.apply(o,i);function l(e){t(r,n,a,l,s,"next",e)}function s(e){t(r,n,a,l,s,"throw",e)}l(void 0)}))}}},7593:e=>{e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}},6554:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},9095:(e,t,o)=>{var i=o(5778);function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=a?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}return o.default=e,t&&t.set(e,o),o}},5778:e=>{function t(o){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(o)}e.exports=t},956:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0,t.Modal=function(e,t){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"},t),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=e.querySelector(".photonicModalClose");r||((r=document.createElement("a")).className="photonicModalClose "+i.closeCSS,r.style.right=i.closeFromRight,r.innerHTML="×",r.setAttribute("href","#"),e.insertAdjacentElement("afterbegin",r)),r=e.querySelector(".photonicModalClose");var l,s,d=document.querySelector("#"+i.modalTarget),c={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(d){d.classList.add("photonicModal"),d.classList.add(i.modalTarget+"-off");var h="";for(var[u,p]of Object.entries(c))h+="".concat(u,": ").concat(p,"; ");d.style.cssText+=h,l=d,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(e){e.preventDefault(),document.documentElement.style.overflow="auto",document.body.style.overflow="auto",d.classList.contains(i.modalTarget+"-on")&&(d.classList.remove(i.modalTarget+"-on"),d.classList.add(i.modalTarget+"-off")),d.classList.contains(i.modalTarget+"-off")&&d.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",m,{once:!0}),d.style.overflowY="hidden",g(d),n.style.overflowY="hidden",n.style.display="none"}));var g=e=>{e.style.height=0,e.style.display="none"};function m(){d.style.zIndex=i.zIndexOut}}},8678:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Prompter=void 0,t.Prompter=class{constructor(e){this.events={onShow:new Event("onShow"),onConfirm:new Event("onConfirm"),on
1Hide:new Event("onHide")},this.modal=document.getElementById(e),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 e=this.modal.cloneNode(!0);return this.modal.parentNode.replaceChild(e,this.modal),this.modal=e,this}on(e,t){return this.modal.addEventListener(e,t),this}attach(){var e,t=[],o=this;for(e=(t=this.modal.querySelectorAll(o.classClose)).length-1;e>=0;e--)t[e].addEventListener("click",(function(){o.hide()}));for(e=(t=o.modal.querySelectorAll(o.classCancel)).length-1;e>=0;e--)t[e].addEventListener("click",(function(){o.hide()}));for(e=(t=o.modal.querySelectorAll(o.classConfirm)).length-1;e>=0;e--)t[e].addEventListener("click",(function(){o.modal.dispatchEvent(o.events.onConfirm),o.hide()}));for(e=o.btnsOpen.length-1;e>=0;e--)o.btnsOpen[e].addEventListener("click",(function(){o.show()}));return o}addOpenBtn(e){this.btnsOpen.push(e)}}},5870:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=void 0,t.Tooltip=function(e,t){var o,i,n,a;function r(e){!function(e,t){var o,i,a=t.getAttribute("data-photonic-tooltip");o=a,i=((((i="<br><strong><em><b><i><p>")||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join(""),""!==(a=o.replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(function(e,t){return i.indexOf("<"+t.toLowerCase()+">")>-1?e:""})))&&(t.setAttribute("title",""),n=t.getBoundingClientRect(),document.createTextNode(a),e.innerHTML=a,n.left>window.innerWidth-100?e.className="photonic-tooltip-container tooltip-left":n.left+n.width/2<100?e.className="photonic-tooltip-container tooltip-right":e.className="photonic-tooltip-container tooltip-center")}(o,e.currentTarget),function(e,t){if(""!==t.getAttribute("data-photonic-tooltip")){void 0===n&&(n=t.getBoundingClientRect());var o=n.top+n.height+window.scrollY,i=window.innerWidth-100;if(n.left+window.scrollX>i&&n.width<50)e.style.left=n.left+window.scrollX-(e.offsetWidth+n.width)+"px",e.style.top=t.offsetTop+"px";else if(n.left+window.scrollX>i&&n.width>50)e.style.left=n.left+window.scrollX-e.offsetWidth-20+"px",e.style.top=t.offsetTop+"px";else if(n.left+window.scrollX+n.width/2<100)e.style.left=n.left+window.scrollX+n.width+20+"px",e.style.top=t.offsetTop+"px";else{var a=n.left+window.scrollX+n.width/2-e.offsetWidth/2;e.style.left=a+"px",e.style.top=o+"px"}}}(o,e.currentTarget)}function l(e){if(o.className=i+" no-display",""!==o.innerText){o.removeChild(o.firstChild),o.removeAttribute("style");var t=e.currentTarget;t.setAttribute("title",t.getAttribute("data-photonic-tooltip"))}}a=document.documentElement.querySelectorAll(e),o=document.documentElement.querySelector(t),i=t.replace(/^\.+/g,""),null!==o&&0!==o.length||((o=document.createElement("div")).className=i+" no-display",document.body.appendChild(o)),a.forEach((e=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",l),e.addEventListener("mouseenter",r,!1),e.addEventListener("mouseleave",l,!1)}))}},1449:(e,t,o)=>{var i=o(9095),n=o(6554);Object.defineProperty(t,"__esModule",{value:!0}),t.Core=void 0;var a=n(o(4209)),r=n(o(7593)),l=i(o(91)),s=o(5870),d=o(8678);class c{}t.Core=c,(0,r.default)(c,"lightboxList",[]),(0,r.default)(c,"prompterList",[]),(0,r.default)(c,"lightbox",void 0),(0,r.default)(c,"deep",location.hash),(0,r.default)(c,"setLightbox",(e=>c.lightbox=e)),(0,r.default)(c,"getLightbox",(()=>c.lightbox)),(0,r.default)(c,"setDeep",(e=>c.deep=e)),(0,r.default)(c,"getDeep",(()=>c.deep)),(0,r.default)(c,"addToLightboxList",((e,t)=>c.lightboxList[e]=t)),(0,r.default)(c,"getLightboxList",(()=>c.lightboxList)),(0,r.default)(c,"showSpinner",(()=>{var e=document.getElementsByClassName("photonic-loading");e.length>0?e=e[0]:(e=document.createElement("div")).className="photonic-loading",e.style.display="block",document.body.appendChild(e)})),(0,r.default)(c,"hideLoading",(()=>{var e=document.getElementsByClassName("photonic-loading");e.length>0&&((e=e[0]).style.display="none")})),(0,r.default)(c,"initializePasswordPrompter",(e=>{var t=e.replace(/^#+/g,""),o=new d.Prompter(t);o.attach(),c.prompterList[e]=o,o.show()})),(0,r.default)(c,"moveHTML5External",(()=>{var e=document.getElementById("photonic-html5-external-videos");e||((e=document.createElement("div")).id="photonic-html5-external-videos",e.style.display="none",document.body.appendChild(e));var t=document.querySelectorAll(".photonic-html5-external");if(t)for(var o=t.length,i=0;i<o;i++)t[i].classList.remove("photonic-html5-external"),e.appendChild(t[i])})),(0,r.default)(c,"blankSlideupTitle",(()=>{document.querySelectorAll(".title-display-slideup-stick, .photonic-slideshow.title-display-slideup-stick").forEach((e=>
1{Array.from(e.getElementsByTagName("a")).forEach((e=>{e.setAttribute("title","")}))}))})),(0,r.default)(c,"showSlideupTitle",(()=>{for(var e=document.documentElement.querySelectorAll(".title-display-slideup-stick a .photonic-title"),t=e.length,o=0;o<t;o++)e[o].style.display="block"})),(0,r.default)(c,"waitForImages",function(){var e=(0,a.default)((function*(e){var t=c.getImagesFromSelector(e),o=[],i=[],n=!1;e instanceof Element&&"instagram"===e.getAttribute("data-photonic-platform")&&(n=!0),t.forEach((e=>{o.push(e.getAttribute("src")),i.push(e.parentElement)}));var a=[],r=[],l=function(e,t){a.push(new Promise((o=>{var a=new Image;a.onload=()=>{n&&(i[e].setAttribute("data-pswp-width",a.naturalWidth),i[e].setAttribute("data-pswp-height",a.naturalHeight)),o()},a.src=t,r.push(a)})))};for(var[s,d]of o.entries())l(s,d);return yield Promise.all(a),r}));return function(t){return e.apply(this,arguments)}}()),(0,r.default)(c,"loadSingleImage",function(){var e=(0,a.default)((function*(e){var t=[],o=null;return t.push(new Promise((t=>{var i=new Image;i.onload=()=>{t()},null!==e.getAttribute("data-src")?i.src=e.getAttribute("data-src"):i.src=e.getAttribute("src"),o=i}))),yield Promise.all(t),o}));return function(t){return e.apply(this,arguments)}}()),(0,r.default)(c,"watchForImages",(e=>{var t=c.getImagesFromSelector(e),o=new IntersectionObserver(((e,t)=>{e.forEach((e=>{if(e.isIntersecting||e.intersectionRatio>0){var o=e.target;o.closest("a").classList.add("photonic-image-loading"),c.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)})),t.unobserve(o)}}))}));t.forEach((e=>{o.observe(e)}))})),(0,r.default)(c,"getImagesFromSelector",(e=>{var t=[];return"string"==typeof e?document.querySelectorAll(e).forEach((e=>{t=Array.from(e.getElementsByTagName("img"))})):e instanceof Element?t=Array.from(e.getElementsByTagName("img")):e instanceof NodeList&&e.forEach((e=>{t.push(e.querySelector("img"))})),t})),(0,r.default)(c,"standardizeTitleWidths",(()=>{var e=c,t=e=>{e.querySelectorAll(".photonic-thumb").forEach((e=>{var t=e.getElementsByTagName("img");if(null!=t){t=t[0];var o=e.querySelector(".photonic-title-info");o&&(o.style.width=t.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")?(e.watchForImages(o),t(o)):e.waitForImages(o).then((()=>{t(o)}))}))})),(0,r.default)(c,"sanitizeTitles",(()=>{document.querySelectorAll(".photonic-stream a, a.photonic-level-2-thumb").forEach((e=>{if(!e.parentNode.classList.contains("photonic-header-title")){var t=e.getAttribute("title");e.setAttribute("title",l.getText(t));var o=e.getAttribute("data-title");e.setAttribute("data-title",l.HTMLSanitizer.SanitizeHTML(o))}}))})),(0,r.default)(c,"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)(c,"showRegularGrids",(()=>{document.querySelectorAll(".photonic-standard-layout").forEach((e=>{e.classList.contains("sizes-present")?c.watchForImages(e):c.waitForImages(e).then((()=>{e.querySelectorAll(".photonic-level-1, .photonic-level-2").forEach((e=>{e.style.display="inline-block"}))}))}))})),(0,r.default)(c,"executeCommon",(()=>{c.moveHTML5External(),c.blankSlideupTitle(),c.standardizeTitleWidths(),c.sanitizeTitles(),c.initializeTooltips(),c.showRegularGrids()}))},8025:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.JustifiedGrid=void 0;var n=o(1449),a=i(o(91)),r=e=>{var t,o,i,n,a;for(n=0,a=e.length;n<a;n++)t=(i=e[n])[0],(!o||t<o.computed)&&(o={value:i,computed:t});return o.value},l=(e,t)=>{var o,i,n,a,l,s,d,c,h,u,p,g;if(l=e.length,t<=0)return[];if(t>l)return e.map((e=>[e]));for(d=(()=>{var e,o;for(o=[],e=0;0<=l?e<l:e>l;0<=l?++e:--e)o.push(function(){var e,o;for(o=[],c=e=0;0<=t?e<t:e>t;c=0<=t?++e:--e)o.push(0);return o}());return o}
1)(),s=(()=>{var e,o,i;for(i=[],e=0,o=l-1;0<=o?e<o:e>o;0<=o?++e:--e)i.push(function(){var e,o,i;for(i=[],c=e=0,o=t-1;0<=o?e<o:e>o;c=0<=o?++e:--e)i.push(0);return i}());return i})(),i=h=0;0<=l?h<l:h>l;i=0<=l?++h:--h)d[i][0]=e[i]+(i?d[i-1][0]:0);for(n=u=0;0<=t?u<t:u>t;n=0<=t?++u:--u)d[0][n]=e[0];for(i=p=1;1<=l?p<l:p>l;i=1<=l?++p:--p)for(n=g=1;1<=t?g<t:g>t;n=1<=t?++g:--g)a=r((()=>{var e,t;for(t=[],c=e=0;0<=i?e<i:e>i;c=0<=i?++e:--e)t.push([Math.max(d[c][n-1],d[i][0]-d[c][0]),c]);return t})()),d[i][n]=a[0],s[i-1][n-1]=a[1];for(l-=1,t-=2,o=[];t>=0;)o=[(()=>{var o,n,a,r;for(r=[],i=o=n=s[l-1][t]+1,a=l+1;n<=a?o<a:o>a;i=n<=a?++o:--o)r.push(e[i]);return r})()].concat(o),l=s[l-1][t],t-=1;return[(()=>{var t,o,n;for(n=[],i=t=0,o=l+1;0<=o?t<o:t>o;i=0<=o?++t:--t)n.push(e[i]);return n})()].concat(o)};t.JustifiedGrid=(e,t,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")),!e&&r.length>0&&n.Core.showSpinner();var s=()=>{n.Core.blankSlideupTitle(),n.Core.showSlideupTitle(),e||t||n.Core.hideLoading()};r.forEach((t=>{if(!t.classList.contains("sizes-missing")&&window.CSS&&CSS.supports("color","var(--fake-var)"))n.Core.watchForImages(t),s();else{var o=Math.floor(t.getBoundingClientRect().width),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=Math.max(parseInt(r/4),Photonic_JS.tile_min_height),c=2*Photonic_JS.tile_spacing;n.Core.waitForImages(t).then((()=>{var e=[];Array.from(t.getElementsByTagName("img")).forEach((t=>{if(null===t.closest(".photonic-panel")){var o=t.parentNode.parentNode;0!==t.naturalHeight&&void 0!==t.naturalHeight&&void 0!==t.naturalWidth&&e.push({tile:o,aspect_ratio:t.naturalWidth/t.naturalHeight})}}));for(var i=e.reduce(((e,t)=>e+(t.aspect_ratio*d+c)),0),n=Math.max(Math.round(i/o),1),r=function(e,t){if(t<=0)return[];for(;t;)try{return l(e,t--)}catch(e){}}(e.map((e=>Math.round(100*e.aspect_ratio))),n),h=0,u=r.length,p=0;p<u;p++){var g,m=r[p],v=e.slice(h,h+m.length);h+=m.length,g=v.reduce(((e,t)=>e+t.aspect_ratio),0);for(var f=v.length,y=0;y<f;y++){var b=v[y],w=b.tile;w.style.width=parseInt(o/g*b.aspect_ratio)+"px",w.style.height=parseInt(o/g)+"px"}}t.querySelectorAll(".photonic-thumb, .photonic-thumb img").forEach((e=>a.fadeIn(e))),s()}))}i&&!e&&("lightcase"===Photonic_JS.lightbox_library?i.initialize(".photonic-random-layout"):["bigpicture","featherlight","glightbox"].indexOf(Photonic_JS.lightbox_library)>-1?i.initialize(t):"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:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.initializeLayouts=void 0;var n=o(8025),a=o(4074),r=o(720),l=o(2638),s=i(o(541));t.initializeLayouts=e=>{(0,n.JustifiedGrid)(!1,!1,null,e),(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:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.Masonry=void 0;var n=o(1449),a=i(o(91));t.Masonry=(e,t,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")),!e&&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),d=s/i>r?i:Math.floor(s/r);null!=d&&(o.style.columnCount=d.toString()),l&&Array.from(o.getElementsByTagName("img")).forEac
1h((e=>{a.fadeIn(e)})),n.Core.showSlideupTitle(),e||t||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:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.MasonryHorizontal=void 0;var n=o(1449),a=i(o(91));t.MasonryHorizontal=(e,t,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")),!e&&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"),d=[],c=[];s.forEach((e=>{d[e.getAttribute("data-photonic-idx")]=e}));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<d.length;g+=u){var m=d[g+p];void 0!==m&&c.push(m)}p++}c.length===d.length&&(document.createDocumentFragment(),c.forEach((e=>{o.appendChild(e)})))}l&&Array.from(o.getElementsByTagName("img")).forEach((e=>{a.fadeIn(e)})),n.Core.showSlideupTitle(),e||t||n.Core.hideLoading()};o.classList.contains("sizes-present")?(n.Core.watchForImages(o),l(o,!e)):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:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.Mosaic=void 0;var n=o(1449),a=i(o(91)),r=(e,t,o)=>{for(var i=[],n=0;n<e;)if(e-n<=t&&n>0)i.push(e-n),n+=e-n;else{var a=Math.max(Math.floor(Math.random()*t+1),o);a=Math.min(a,e-n),i.push(a),n+=a}return i},l=(e,t)=>e.filter(((e,o)=>
1o%2===t)),s=e=>{e.sort(((e,t)=>e.height-t.height)),e[0].new_height=e[0].height,e[0].new_width=e[0].width;for(var t=1;t<e.length;t++)e[t].new_height=e[0].height,e[t].new_width=e[t].new_height*e[t].aspect_ratio;var o=e.reduce(((e,t)=>e+t.new_width),0);return{elements:e,height:e[0].new_height,width:o,aspect_ratio:o/e[0].new_height}},d=(e,t)=>{var o,i=Math.floor(e.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),d=i>=2*n?2:1,c=[],h=[];Array.from(e.getElementsByTagName("img")).forEach(((e,o)=>{if(null==e.closest(".photonic-panel")){var i=e.parentNode.parentNode;i.setAttribute("data-photonic-photo-index",o),h[o]=i;var n=t?e.naturalHeight:e.getAttribute("height"),a=t?e.naturalWidth:e.getAttribute("width");if(0!==n&&void 0!==n&&void 0!==a){var r=a/n;c.push({src:e.src,width:a,height:n,aspect_ratio:r,photo_position:o})}}})),o=c.length;var u=r(o,a,d),p=[],g=0;u.forEach((e=>{p.push(c.slice(g,g+e)),g+=e}));var m=0;p.forEach((e=>{var t;e.sort(((e,t)=>e.aspect_ratio-t.aspect_ratio)),t=1===e.length?[1]:2===e.length?[1,1]:r(e.length,e.length-1,1);for(var o=0,n=e.length-1,d=[],c=[],u=2;u<=a;u++)for(var p=t.indexOf(u);-1<p&&o<n;){for(var g=[],v=0;v<u&&o<=n;)g.push(e[o++]),++v<u&&o<=n&&(g.push(e[n--]),v++);d.push(g),c.push(p),p=t.indexOf(u,p+1)}var f=e.slice(o,n+1),y=[];d.forEach(((e,t)=>{var o,i;if(0===Math.floor(2*Math.random())){var n=Math.max(Math.floor(Math.random()*(e.length/2-1)),1);o=e.slice(0,n),i=e.slice(n)}else o=l(e,0),i=l(e,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:c[t]})})),y.sort(((e,t)=>e.element_position-t.element_position));for(var b=[],w=0;w<t.length;w++)if(c.indexOf(w)>-1)b.push(y.shift());else{var _=f.shift();b.push({elements:[_],height:_.height,width:_.width,aspect_ratio:_.aspect_ratio})}var S=b.reduce(((e,t)=>e+t.aspect_ratio),0),A=0;b.forEach((e=>{e.new_width=e.aspect_ratio/S*i,e.new_height=e.new_width/e.aspect_ratio,e.y=m,e.x=A,A+=e.new_width})),m+=b[0].new_height,((e,t)=>{for(var o=e.length,i=0;i<o;i++)for(var n=e[i],a=n.y,r=0,l=void 0,s=n.elements.length,d=0;d<s;d++){var c=n.elements[d];if(void 0!==c.photo_position)(l=t[c.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{c.new_width=n.new_width,0===r?(c.new_height=c.new_width/c.aspect_ratio,r=c.new_height):c.new_height=n.new_height-r,c.x=n.x,c.y=a,a+=c.new_height;for(var h=c.elements.reduce(((e,t)=>e+t.new_width),0),u=0,p=c.elements.length,g=0;g<p;g++){var m=c.elements[g];m.new_width=c.new_width*m.new_width/h,m.new_height=c.new_height,m.x=u,u+=m.new_width,(l=t[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(c.y)+"px",l.style.left=Math.floor(c.x+m.x)+"px"}}}})(b,h)})),e.style.height=m+"px"};t.Mosaic=(e,t,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")),!e&&i.length>
10&&n.Core.showSpinner(),i.forEach((o=>{o.hasChildNodes()&&(o.classList.contains("sizes-present")?(n.Core.watchForImages(o),d(o,!1),n.Core.showSlideupTitle(),e||t||n.Core.hideLoading()):n.Core.waitForImages(o).then((()=>{o.classList.contains("sizes-present")||d(o,!0),Array.from(o.getElementsByTagName("img")).forEach((e=>a.fadeIn(e))),n.Core.showSlideupTitle(),e||t||n.Core.hideLoading()})))})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Mosaic")}},541:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.initializeSliders=t.Slider=void 0;var i=o(1449),n=e=>{e&&e.querySelector(".photonic-slideshow-content")&&i.Core.waitForImages(e).then((()=>{var t="#"+e.getAttribute("id"),o=document.querySelector(t+"-thumbs");null!=o&&(o=new Splide(t+"-thumbs")).mount();var i=new Splide(t);i.on("mounted resize",(function(t){(e.classList.contains("photonic-slideshow-side-white")||e.classList.contains("photonic-slideshow-start-next"))&&((e,t)=>{var o=0,i=0,n=e.offsetWidth,a=e.querySelectorAll(".splide__slide img");Array.prototype.forEach.call(a,(e=>{if(0!==e.naturalHeight){var a=e.naturalWidth/e.naturalHeight;if(a>=i){i=a;var r=e.naturalWidth>n?n/e.naturalWidth:1,l=parseInt(t.options.perPage,10);isNaN(l)||0===l||(r/=l),o=e.naturalHeight*r}}})),Array.prototype.forEach.call(a,(e=>{e.style.height=o+"px"})),Array.prototype.forEach.call(e.querySelectorAll(".splide__slide, .splide__list"),(e=>{e.style.height=o+"px"})),e.style.height=o+"px"})(e,i)})),i.on("visible",(function(t){e.classList.contains("photonic-slideshow-adapt-height")&&((e,t,o)=>{var i=o.options,n=o.index;if(t.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,(e=>{var t=e.querySelector("img"),o=t.offsetHeight;t&&o>s&&(s=o)})),t.slide.style.height="".concat(s,"px");var o=e.querySelector(".splide__track"),i=o?o.offsetHeight:0;s!==i&&(e.querySelector(".splide__list").style.height="".concat(s,"px"),o.style.height="".concat(s,"px"))}))}})(e,t,i)})),null==o?i.mount():i.sync(o).mount(),e.querySelectorAll("img").forEach((e=>{e.style.display="inline"}))}))};t.Slider=n,t.initializeSliders=()=>{var e=document.querySelectorAll(".photonic-slideshow");"undefined"!=typeof Splide?e.forEach((e=>n(e))):void 0!==console&&e.length>0&&console.error("Splide not found! Please ensure that the Splide script is available and loaded before Photonic.")}},9685:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.PhotonicBaguetteBox=void 0;var n=o(1651),a=i(o(91));class r extends n.Lightbox{constructor(){super()}soloImages(){var e=super.soloImages(),t=1;e.forEach((e=>{null==e.getAttribute("id")&&(e.setAttribute("id","photonic-baguettebox-"+t),t++)}))}hostedVideo(e){var t=e.getAttribute("href").match(new RegExp(/(\.mp4|\.webm|\.ogg)/i)),o=e.classList.contains("photonic-lb");null===t||o||(e.classList.add(Photonic_JS.lightbox_library+"-html5-video"),this.modifyAdditionalVideoProperties(e))}modifyAdditionalVideoProperties(e){null!=e&&e instanceof Element&&"A"===e.tagName&&(e.setAttribute("data-content-type","video"),null==e.getAttribute("id")&&(e.setAttribute("id","photonic-baguettebox-video-"+this.videoIndex),this.videoIndex++))}initialize(e,t){this.handleSolos();var o,i=this;o=null==e?document.querySelectorAll(".photonic-level-1-container"):e instanceof NodeList?e:e instanceof Element?[e]:document.querySelectorAll(e),t&&baguetteBox.destroy(),o.forEach((function(e){var t=e.getAttribute("id");baguetteBox.run("#"+t,{captions:e=>e.getAttribute("data-title")?a.HTMLSanitizer.SanitizeHTML(e.getAttribute("data-title")):e.getAttribute("title")?a.getText(e.getAttribute("title")):"",onCh
1ange:(t,o)=>{var n=e.querySelectorAll(".photonic-lb").item(t);if(null!=n){i.setHash(n);var r={url:location.href,title:a.getText(n.getAttribute("data-title")),image:n.getAttribute("href")};i.addSocial("#baguetteBox-overlay",r)}},afterHide:()=>{i.unsetHash()}})}))}initializeForNewContainer(e){this.initialize(e)}}t.PhotonicBaguetteBox=r},1651:(e,t,o)=>{var i=o(6554);Object.defineProperty(t,"__esModule",{value:!0}),t.Lightbox=void 0;var n=i(o(7593));t.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(e,t){return new Promise((o=>{var i=document.createElement("video");i.addEventListener("loadedmetadata",(function(){var e,i,n=this.videoHeight,a=this.videoWidth,r=this.videoWidth/this.videoHeight;t.width/t.height>r?e=a*(i=t.height)/n:i=n*(e=t.width)/a,o({height:n,width:a,newHeight:i,newWidth:e})}),!1),i.src=e}))}getImageSize(e,t){return new Promise((function(o){var i=document.createElement("img");i.addEventListener("load",(function(){var e,i,n=this.height,a=this.width,r=this.width/this.height;t.width/t.height>r?e=a*(i=t.height)/n:i=n*(e=t.width)/a,o({height:n,width:a,newHeight:i,newWidth:e})}),!1),i.src=e}))}addSocial(e,t,o){if(void 0!==Photonic_JS.social_media&&""!==Photonic_JS.social_media||void 0!==t.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(t.url)).replace(/{photonic_share_title}/g,encodeURIComponent(t.title)).replace(/{photonic_share_image}/g,encodeURIComponent(t.image));if(null!==(a="string"==typeof e?document.documentElement.querySelector(e):e)&&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(e){e.parentNode.removeChild(e)}))}}}}setHash(e){if(void 0!==Photonic_JS.deep_linking&&"none"!==Photonic_JS.deep_linking&&null!=e){var t="string"==typeof e?e:e.getAttribute("data-photonic-deep");void 0!==t&&("function"==typeof window.history.pushState&&"yes-history"===Photonic_JS.deep_linking?window.history.pushState({},document.title,"#"+t):"function"==typeof window.history.replaceState&&"no-history"===Photonic_JS.deep_linking?window.history.replaceState({},document.title,"#"+t):document.location.hash=t)}}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(e){if("load"===e.type){var t=window.location.hash;if((t=t.substr(1))&&""!==t){var o=document.querySelectorAll('[data-photonic-deep="'+t+'"]');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(e){var t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*)(?:(\?t|&t|\?start|&start)=(\d+))?.*/);if(t&&11===t[2].length){var o={url:t[2]};return void 0!==t[4]&&(o.timestamp=t[4]),o}}catchVimeoURL(e){var t=e.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/);if(t)return t[1]}soloImages(){var e=document.querySelectorAll("a[href]"),t=Array.from(e).filter((e=>/(\.jpg|\.jpeg|\.bmp|\.gif|\.png)/i.test(e.getAttribute("href")))).filter((e=>!e.classList.contains("photonic-lb")));return t.forEach((e=>{e.classList.add("photonic-"+Photonic_JS.lightbox_library),e.classList.add("photonic-"+Photonic_JS.lightbox_library+"-solo"),e.classList.add(Photonic_JS.lightbox_library)})),t}
1changeVideoURL(e,t,o,i){}hostedVideo(e){}soloVideos(){var e=this;Photonic_JS.lightbox_for_videos&&document.querySelectorAll("a[href]").forEach((function(t){var o,i,n,a=t.getAttribute("href"),r=e.catchYouTubeURL(a),l=e.catchVimeoURL(a);if(void 0!==r){var s=r.url,d=r.timestamp,c="",h="";void 0!==d&&(c="&t="+d,h="?start="+d),o="https://youtube.com/watch?v="+s+c,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&&(t.classList.add(Photonic_JS.lightbox_library+"-video"),e.changeVideoURL(t,o,i,n),e.modifyAdditionalVideoProperties(t)),e.hostedVideo(t)}))}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(e){}initializeForExisting(){}modifyAdditionalVideoProperties(e){}}},3178:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.addAllListeners=t.addLazyLoadListener=t.addSlideUpLeaveListener=t.addSlideUpEnterListener=t.addHelperMoreButtonListener=t.addMoreButtonListener=t.addLevel3ExpandListener=t.addPasswordSubmitListener=t.addLevel2ClickListener=void 0;var n=o(1449),a=i(o(91)),r=i(o(1043)),l=o(8025),s=o(4074),d=o(5870),c=o(2638),h=()=>{document.addEventListener("click",(e=>{if(e.target instanceof Element&&e.target.closest(".photonic-level-2-thumb")&&"none"!==Photonic_JS.lightbox_library){var t=e.target.closest(".photonic-level-2-thumb");if(!a.hasClass(t,"gallery-page")){e.preventDefault();var o=t.closest(".photonic-level-2-container"),i=JSON.parse(o.getAttribute("data-photonic")),n=i.platform,l=i.singular,s=o.getAttribute("data-photonic-query"),d={panel_id:t.getAttribute("id"),popup:i.popup,photo_count:i["photo-count"],photo_more:i["photo-more"]||"",query:s};"google"!==n&&"zenfolio"!==n||(d.thumb_size=i["thumb-size"]),"flickr"!==n&&"smug"!==n&&"google"!==n&&"zenfolio"!==n||(d.overlay_size=i["overlay-size"],d.overlay_video_size=i["overlay-video-size"]),"google"===n&&(d.overlay_crop=i["overlay-crop"]),r.displayLevel2(n,l,d)}}}),!1)};t.addLevel2ClickListener=h;var u=()=>{document.addEventListener("click",(e=>{if(e.target instanceof Element&&e.target.closest(".photonic-password-submit")){e.preventDefault();var t=e.target.closest(".photonic-password-submit"),o=t.closest(".photonic-password-prompter"),i=t.closest(".photonic-level-2-container"),a=JSON.parse(i.getAttribute("data-photonic")),l=o.getAttribute("id").split("-"),s=a.platform,d=a.singular,c=l.slice(4).join("-"),h="photonic-".concat(s,"-").concat(d,"-thumb-").concat(c),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(d,"-prompter-").concat(c)];null!=m&&m.hide(),n.Core.showSpinner();var v={panel_id:h,popup:a.popup,photo_count:a["photo-count"],photo_more:a["photo-more"]||"",query:p};"smug"===s?(v.password=g,v.overlay_size=a["overlay-size"]):"zenfolio"===s&&(v.password=g,v.realm_id=u.getAttribute("data-photonic-realm"),v.thumb_size=a["thumb-size"],v.overlay_size=a["overlay-size"],v.overlay_video_size=a["overlay-video-size"]),r.processRequest(s,d,c,v)}}),!1)};t.addPasswordSubmitListener=u;var p=()=>{document.addEventListener("click",(e=>{if(e.target instanceof Element&&e.target.closest("a.photonic-level-3-expand")){e.preventDefault();var t=e.target.closest("a.photonic-level-3-expand"),o=t.parentNode.parentNode.parentNode,i=o.parentNode;if(t.classList.contains("photonic-level-3-expand-plus"))r.processL3Request(t,o,{view:"collections",node:t.getAttribute("data-photonic-level-3"),layout:t.getAttribute("data-photonic-layout"),stream:i.getAttribute("id")});else if(t.classList.contains("photonic-level-3-expand-up")){var n=a.next(o,".photonic-stream");a.slideUpDown(n,"hide"),t.classList.remove("photonic-level-3-expand-up"),t.classList.add("photonic-level-3-expand-down"),t.setAttribute("title",void 0===Photonic_JS.maximize_panel?"Show":Photonic_JS.maximize_panel)}else if(t.classList.contains("photonic-level-3-expand-down")){var l=a.next(o,".photonic-stream");a.slideUpDown(l,"show"),t.classList.remove("photonic-level-3-expand-down"),t.classList.add("photonic-level-3-expand-up"),t.setAttribute("title",void 0===Photonic_JS.minimize_panel?"Hide":Photonic_JS.minimize_panel)}}}),!1)};t.addLevel3ExpandListener=p;var g=()=>{document.addEventListener("click",(e=>{if(e.target instanceof Element&&e.target.closest("a.photonic-more-button.photonic-more-dynamic")){e.preventDefault();var t=e.target.closest("a.photonic-more-button.photonic-more-dynamic"),o=t.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},(e=>{var i=a.getElement(e),r=i.querySelectorAll(".photonic-".concat(h)),g=i.querySelector(".photonic-more-button"),m=o.querySelector("a.photonic-lb"),v=[];null!==m&&r.forEach((e=>{var t=e.querySelector("a");null!==t&&(t.setAttribute("rel",m.getAttribute("rel")),null!=t.getAttribute("data-fancybox")?t.setAttribute("data-fancybox",m.getAttribute("data-fancybox")):null!=t.getAttribute("data-rel")?t.setAttribute("data-rel",m.getAttribute("data-rel")):null!=t.getAttribute("data-strip-group")?t.setAttribute("data-strip-group",m.getAttribute("data-strip-group")):null!=t.getAttribute("data-gall")&&t.setAttribute("data-gall",m.getAttribute("data-gall")),v.push(t))})),r.forEach((e=>o.appendChild(e))),n.Core.moveHTML5External(),0===r.length&&(n.Core.hideLoading(),a.fadeOut(t),t.remove());var f=n.Core.getLightbox();if("imagelightbox"===Photonic_JS.lightbox_library)null!=m&&(f=n.Core.getLightboxList()['a[rel="'+m.getAttribute("rel")+'"]'],"level-1"===h&&f.addToImageLightbox(v));else if("lightcase"===Photonic_JS.lightbox_library)null!=m&&f.initialize('a[data-rel="'+m.getAttribute("data-rel")+'"]');else if("lightgallery"===Photonic_JS.lightbox_library)if(null!==m){var y=[...(f=n.Core.getLightboxList()[m.getAttribute("rel")]).galleryItems];r.forEach((e=>{var t,o=e.querySelector("a"),i=o.querySelector("img");"video"===o.getAttribute("data-photonic-media-type")&&(t=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")?t.source[0].src:o.getAttribute("href"),subHtml:o.getAttribute("data-sub-html"),thumb:i.getAttribute("src")})})),f.updateSlides(y,0),f.refresh()}else f.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")),f.initialize("#"+b,!0)}}else["bigpicture","featherlight","glightbox","spotlight"].includes(Photonic_JS.lightbox_library)?f.initialize(o):"baguettebox"===Photonic_JS.lightbox_library?f.initialize(null,!0):"fancybox3"===Photonic_JS.lightbox_library?null!=m&&f.initialize(null,m.getAttribute("data-fancybox")):"photoswipe"===Photonic_JS.lightbox_library&&f.initialize();function w(e){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&&(
1a.fadeOut(t),t.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,f);else if(a.hasClass(o,"photonic-masonry-layout"))e.forEach((e=>{var t=e.querySelector("img");a.fadeIn(t),t.style.display="block"})),n.Core.hideLoading();else if(a.hasClass(o,"photonic-masonry-horizontal-layout")){var m=p.length;e.forEach(((e,t)=>{e.setAttribute("data-photonic-idx",m+t)})),(0,c.MasonryHorizontal)(!1,!1,"#"+u),n.Core.hideLoading()}else o.querySelectorAll(".photonic-"+h).forEach((e=>{e.style.display="inline-block"})),n.Core.standardizeTitleWidths(),n.Core.hideLoading();(0,d.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)}))}))}}))};t.addMoreButtonListener=g;var m=()=>{document.addEventListener("click",(e=>{if(e.target instanceof Element&&e.target.closest('input[type="button"].photonic-helper-more')){e.preventDefault(),n.Core.showSpinner();var t=e.target.closest('input[type="button"].photonic-helper-more'),o=t.closest("table"),i=void 0===t.getAttribute("data-photonic-token")?null:t.getAttribute("data-photonic-token"),r=t.getAttribute("data-photonic-platform"),l={action:"photonic_helper_shortcode_more",provider:r,access:t.getAttribute("data-photonic-access")};i&&(l.nextPageToken=i),"google"===r&&a.post(Photonic_JS.ajaxurl,l,(e=>{var i=a.getElement(e);if((i=Array.from(i.getElementsByTagName("tr"))).length>0){var r=t.closest("tr");r&&r.remove(),i.forEach(((e,t)=>{0!==t&&o.appendChild(e)}))}(0,d.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),n.Core.hideLoading()}))}}))};t.addHelperMoreButtonListener=m;var v=()=>{document.addEventListener("mouseover",(e=>{var t=".title-display-hover-slideup-show a, .photonic-slideshow.title-display-hover-slideup-show li";if(e.target instanceof Element&&e.target.closest(t)){var o=e.target.closest(t),i=o.querySelector(".photonic-title");a.slideUpTitle(i,"show"),o.setAttribute("title","")}}),!0)};t.addSlideUpEnterListener=v;var f=()=>{document.addEventListener("mouseout",(e=>{var t=".title-display-hover-slideup-show a, .photonic-slideshow.title-display-hover-slideup-show li";if(e.target instanceof Element&&e.target.closest(t)){var o=e.target.closest(t),i=o.querySelector(".photonic-title");a.slideUpTitle(i,"hide"),o.setAttribute("title",a.getText(o.getAttribute("data-title")))}}),!0)};t.addSlideUpLeaveListener=f;var y=()=>{var e=document.documentElement.querySelectorAll("input.photonic-show-gallery-button");Array.prototype.forEach.call(e,(e=>{e.addEventListener("click",r.lazyLoad)})),e=document.documentElement.querySelectorAll("input.photonic-js-load-button"),Array.prototype.forEach.call(e,(e=>{e.addEventListener("click",r.lazyLoad),e.click()}))};t.addLazyLoadListener=y,t.addAllListeners=()=>{h(),u(),p(),g(),m(),v(),f(),y()}},1043:(e,t,o)=>{var i=o(9095);Object.defineProperty(t,"__esModule",{value:!0}),t.lazyLoad=t.processL3Request=t.displayLevel2=t.processRequest=void 0;var n=o(1449),a=i(o(91)),r=o(8025),l=o(720),s=o(2638),d=o(4074),c=o(5870),h=o(956),u=0,p=e=>{var t;n.Core.hideLoading(),t=e instanceof Element?e:a.getElement(e).firstElementChild,a.hide(t),t.querySelectorAll("img").forEach((e=>{null!==e.getAttribute("src")&&""!==e.getAttribute("src")||null===e.getAttribute("data-src")||(e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"))})),document.body.appendChild(t),n.Core.moveHTML5External();var o=n.Core.getLightbox();null!=o&&o.initializeForNewContainer("#"+t.getAttribute("id"));var i=t.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=(e,t,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-"+e+"-"+t+"-prompter-"+o,s=n.Core.prompterList[l];null!=s&&s.show()}else"show"===i.popup?((e,t,o,i)=>{var r=i.replace(".","\\."),l=a.getElement(e).firstElementChild,s=l.querySelector(".modal-gallery"),d=()=>
1{var e=document.querySelector("#photonic-"+t+"-"+o+"-"+r);e&&(e.appendChild(l),a.show(e)),(0,h.Modal)(l,{modalTarget:"photonic-"+t+"-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,c.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),n.Core.hideLoading()};s.classList.contains("sizes-present")?(n.Core.watchForImages(s),d()):n.Core.waitForImages(s).then((()=>{d()}))})(r,e,t,o):""!==r?p(r):n.Core.hideLoading()}))};t.processRequest=g,t.displayLevel2=(e,t,o)=>{var i=o.panel_id.substr(("photonic-"+e+"-"+t+"-thumb-").length),r="#photonic-"+e+"-panel-"+i,l=document.getElementById("photonic-"+e+"-panel-"+i);null==l?(l=document.getElementById(o.panel_id)).classList.contains("photonic-"+e+"-passworded")?n.Core.initializePasswordPrompter("#photonic-".concat(e,"-").concat(t,"-prompter-").concat(i)):(n.Core.showSpinner(),g(e,t,i,o)):(n.Core.showSpinner(),((e,t,o,i)=>{var r=a.getElement(o);"show"===i.popup?(n.Core.hideLoading(),(0,h.Modal)(r,{modalTarget:"photonic-"+e+"-panel-"+t,color:"#000",width:Photonic_JS.gallery_panel_width+"%",closeFromRight:(100-Photonic_JS.gallery_panel_width)/2+"%"})):p(document.getElementById("photonic-"+e+"-panel-"+t))})(e,i,r,o))},t.processL3Request=(e,t,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(t){var p=u.querySelector(".photonic-level-2-container"),g=t.parentNode,m=u.firstElementChild,v=o.node.substr("flickr-collection-".length);m.setAttribute("id",o.stream+"-"+v),g.insertBefore(m,t.nextSibling),p.classList.contains("photonic-random-layout")?(0,r.JustifiedGrid)(!1,!1,null,i):p.classList.contains("photonic-mosaic-layout")?(0,d.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(e){e.style.display="inline-block"})),(0,c.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),e.classList.remove("photonic-level-3-expand-plus"),e.classList.add("photonic-level-3-expand-up"),e.setAttribute("title",void 0===Photonic_JS.minimize_panel?"Hide":Photonic_JS.minimize_panel)}n.Core.hideLoading()}))},t.lazyLoad=e=>{u++,n.Core.showSpinner();var t=e.currentTarget,o={action:"photonic_lazy_load",shortcode:t.getAttribute("data-photonic-shortcode")},i=()=>{--u<=0&&n.Core.hideLoading()};a.post(Photonic_JS.ajaxurl,o,(e=>{var o=document.createElement("div");if(o.innerHTML=e,o=o.firstElementChild){var a=o.getAttribute("id"),h=a.substring(0,a.lastIndexOf("-")),p=document.documentElement.querySelectorAll("."+h),g=0;p.forEach((e=>{var t=e.getAttribute("id");t=t.substring(t.lastIndexOf("-")+1),t=parseInt(t,10),g=Math.max(g,t)})),g+=1;var m=new RegExp(a,"gi");o.innerHTML=e.replace(m,h+"-"+g).replace("photonic-slideshow-"+a.substring(a.lastIndexOf("-")+1),"photonic-slideshow-"+g),(o=o.firstElementChild).querySelectorAll("figure.photonic-level-2").forEach((e=>{if(null!=e.getAttribute("id")){var t=e.getAttribute("id"),o=t.substring(0,t.lastIndexOf("-")+1)+g;e.setAttribute("id",o);var i=e.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=e.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)}}})),t.insertAdjacentElement("afterend",o);var v=h+"-"+g,f=n.Core.getLightbox();null!=f&&f.initializeForNewContainer("#"+o.getAttribute("id")),document.querySelectorAll("#"+v+" .photonic-random-layout").length>0?((0,r.JustifiedGrid)(!1,!0,"#"+v+" .photonic-random-layout",f),u--):document.querySelectorAll("#"+v+" .photonic-masonry-layout").length>0?((0,l.Masonry)(!1,!0,"#"+v+" .photonic-masonry-layout"),u--):document.querySelectorAll("#"+v+" .photonic-masonry-horizontal-layout").length>0?((0,s.MasonryHorizontal)(!1,!0,"#"+v+" .photonic-masonry-horizontal-layout"),u--):document.querySelectorAll("#"+v+" .photonic-mosaic-layout").length>0&&((0,d.Mosaic)(!1,!0,"#"+v+" .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("#"+v+" .photonic-standard-layout .photonic-level-1, #"+v+" .photonic-standard-layout .photonic-level-2").forEach((e=>{e.style.display="inline-block"})),n.Core.standardizeTitleWidths(),i()})),n.Core.moveHTML5External(),t.parentNode.removeChild(t),(0,c.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),u<=0&&n.Core.hideLoading()}}))}},91:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLSanitizer=t.hide=t.show=t.fadeOut=t.fadeIn=t.slideUpTitle=t.slideUpDown=t.getText=t.getElement=t.next=t.get=t.post=t.hasClass=void 0;var o=(e,t)=>e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className);function i(e,t,o,i){var n=new XMLHttpRequest;n.open(e,t),n.onreadystatechange=function(){if(4===n.readyState&&200===n.status){var e=n.responseText;i(e)}};var a=new FormData;for(var[r,l]of Object.entries(o))a.append(r,l);n.send(a)}t.hasClass=o,t.post=(e,t,o)=>{i("POST",e,t,o)},t.get=(e,t,o)=>{i("GET",e,t,o)},t.next=(e,t)=>{var o=e.nextElementSibling;if(!t)return o;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}},t.getElement=e=>(new DOMParser).parseFromString(e,"text/html").body,t.getText=e=>null==e?"":e.replace(/<[^>]+>/g,""),t.slideUpDown=(e,t)=>{null!=e&&e.classList&&(e.classList.contains("photonic-can-slide")||e.classList.add("photonic-can-slide"),"show"===t?(e.classList.remove("photonic-can-slide-hide"),e.style.height="".concat(e.scrollHeight,"px")):(e.classList.add("photonic-can-slide-hide"),e.style.height=0))},t.slideUpTitle=(e,t)=>{if(e&&e.classList)if("show"===t){var o=0;e.offsetHeight&&(o=2*parseInt(getComputedStyle(e).paddingTop.slice(0,-2))),e.style.height=e.scrollHeight+6-o+"px",e.classList.add("slideup-show")}else e.style.height="",e.classList.remove("slideup-show")},t.fadeIn=e=>{o(e,"fade-in")||(e.style.display="block",e.style.visibility="visible",e.classList.add("fade-in"))},t.fadeOut=(e,t)=>{var o=e.style,i=25/(t||500);o.opacity=o.opacity||1,function t(){o.opacity-=i,o.opacity<0?(o.display="none",e.classList.remove("fade-in")):setTimeout(t,25)}()};var n=(e,t)=>{var o=e.getAttribute("data-olddisplay"),i=e.style.display,n=(window.getComputedStyle?getComputedStyle(e,null):e.currentStyle).display;t?(o||"none"!==i||(e.style.display=""),""===e.style.display&&"none"===n&&(o=o||(e=>{var t=document.createElement("iframe");t.setAttribute("frameborder",0),t.setAttribute("width",0),t.setAttribute("height",0),document.documentElement.appendChild(t);var o=(t.contentWindow||t.contentDocument).document;o.write(),o.close();var i=o.createElement(e);o.documentElement.appendChild(i);var n=(window.getComputedStyle?getComputedStyle(i,null):i.currentStyle).display;return t.parentNode.removeChild(t),n})(e.nodeName))):(i&&"none"!==i||"none"!==n)&&e.setAttribute("data-olddisplay","none"===n?i:n),t&&"none"!==e.style.display&&""!==e.style.display||(e.style.display=t?o||"":"none")};t.show=e=>n(e,!0),t.hide=e=>n(e);var a=new function(){var e={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},t={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(e,t){for(var o=0;o<t.length;o++)if(0===e.indexOf(t[o]))return!0;return!1}this.SanitizeHTML=(s,d)=>{if(null==s)return null;if(""===(s=s.trim()))return"";if("<br>"===s)return"";-1===s.indexOf("<body")&&(s="<body>"+s+"</body>");var c=r.parseFromString(s,"text/html");return"BODY"!==c.body.tagName&&c.body.remove(),"function"!=typeof c.createElement&&c.createElement.remove(),function r(s){var h;if(s.nodeType===Node.TEXT_NODE)h=s.cloneNode(!0);else if(s.nodeType===Node.ELEMENT_NODE&&(e[s.tagName]||t[s.tagName]||d&&s.matches(d))){h=t[s.tagName]?c.createElement("DIV"):c.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 v=0;v<s.childNodes.length;v++){var f=r(s.childNodes[v]);h.appendChild(f,!1)}if(("SPAN"===h.tagName||"B"===h.tagName||"I"===h.tagName||"U"===h.tagName)&&""===h.innerHTML.trim())return c.createDocumentFragment()}else h=c.createDocumentFragment();return h}(c.body).innerHTML.replace(/div><div/g,"div>\n<div")},this.AllowedTags=e,this.AllowedAttributes=o,this.AllowedCssStyles=i,this.AllowedSchemas=n};t.HTMLSanitizer=a}},r={};function l(e){if(r[e])return r[e].exports;var t=r[e]={exports:{}};
1return a[e](t,t.exports,l),t.exports}e=l(9095),t=l(1449),o=l(9685),i=e(l(3178)),n=e(l(7534)),document.addEventListener("DOMContentLoaded",(()=>{var e=new o.PhotonicBaguetteBox;t.Core.setLightbox(e),e.initialize(),e.initialize(".photonic-baguettebox-solo"),e.initialize(".baguettebox-html5-video"),t.Core.executeCommon(),i.addAllListeners(),n.initializeLayouts(e)}))})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.