assets.squarewebsites.org Open in urlscan Pro
2606:4700:10::6816:3a7c  Public Scan

URL: https://assets.squarewebsites.org/lazy-summaries/lazy-summaries.min.js
Submission: On January 05 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*!
 * Squarespace Lazy Summaries - Tool for overriding 30 items limit and additional features
 * Author: Michael Mashay <michael@squarespacewebsites.com>
 * License: Commercial License
 * 24.11.2023
 */
!function(){function t(e){var t=document.createElement("div");return t.innerHTML=e,e=t.innerHTML,t=null,e.trim()}function a(e){if(e.one(".lightbox-link")||e.hasClass("lightbox-plugin-there"))try{console.log("lightbox plugin"),window.openBundleLinksInLightbox&&openBundleLinksInLightbox(".summary-wrap-link[href]:not(.lightbox-link),.summary-title[href]:not(.lightbox-link),.summary-title-link[href]:not(.lightbox-link),.summary-read-more-link[href]:not(.lightbox-link),.summary-thumbnail-container[href]:not(.lightbox-link)"),window.pluginLightbox&&pluginLightbox(),e.addClass("lightbox-plugin-there")}catch(e){console.log(e)}}function r(e){var t=document.createElement("textarea");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}function n(e){var t=e?new Date(e).toISOString():(new Date).toISOString();return t.split(".")[0].substring(0,15).replace(/\:/g,"-")}function i(e){return e&&0==e.indexOf("/")&&(e=e.substr(1)),e}function o(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;"):e}function s(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/`/g,"&#x60;"):e}function l(e){return e&&e.replace?e.replace(/<\/?[^>]+(>|$)/g,""):e}function c(e){return e?e&&e.replace&&e.replace(/[^\-a-zA-Z0-9\s]+/gi,"").replace(/\s/g,"-").toLowerCase():""}function m(e){return e&&0==e.indexOf("/")&&(e=e.substr(1)),e&&"/"==e[e.length-1]&&(e=e.substr(0,e.length-1)),e}function u(e,t){return e=e.replace(/{{(\w+)}}/g,function(e,a){return t&&t.hasOwnProperty(a)?t[a]:"auto"}),e}function d(e){if(e.variantOptions&&e.variantOptions.hasOwnProperty("qtyInStock"))return e.variantOptions.qtyInStock;var t=e.structuredContent;if(2===t.productType)return 1e10;for(var a=0,r=0;r<t.variants.length;r++){var n=t.variants[r];if(n.unlimited)return 1e10;a+=n.qtyInStock}return a}function g(e,t,a){var r=document.getElementById(t);if(r)r.styleSheet?r.styleSheet.cssText!==e&&(r.styleSheet.cssText=e):r.textContent!==e&&(r.textContent=e);else{var n=document.createElement("style");n.type="text/css",n.id=t,n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),a.appendChild(n)}}function p(e,t){var a=[];e=e.slice(0).sort(),t=t.slice(0).sort();for(var r=e.length,n=0;n<r;n+=1){var i=(e[n]+"").trim();i?t.indexOf(i)>-1&&a.push(i):a.push(i)}return a.length>0}function f(){Y.one("#summarySocIcons")||Y.one("body").append('<svg id="summarySocIcons" xmlns="http://www.w3.org/2000/svg" version="1.1" style="display:none"><symbol id="ss-twitter-icon" viewBox="0 0 64 64"> <path d="M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"></path></symbol><symbol id="ss-twitter-mask" viewBox="0 0 64 64"> <path d="M0,0v64h64V0H0z M44.7,25.5c0,0.3,0,0.6,0,0.8C44.7,35,38.1,45,26.1,45c-3.7,0-7.2-1.1-10.1-2.9 c0.5,0.1,1,0.1,1.6,0.1c3.1,0,5.9-1,8.2-2.8c-2.9-0.1-5.3-2-6.1-4.6c0.4,0.1,0.8,0.1,1.2,0.1c0.6,0,1.2-0.1,1.7-0.2 c-3-0.6-5.3-3.3-5.3-6.4c0,0,0-0.1,0-0.1c0.9,0.5,1.9,0.8,3,0.8c-1.8-1.2-2.9-3.2-2.9-5.5c0-1.2,0.3-2.3,0.9-3.3 c3.2,4,8.1,6.6,13.5,6.9c-0.1-0.5-0.2-1-0.2-1.5c0-3.6,2.9-6.6,6.6-6.6c1.9,0,3.6,0.8,4.8,2.1c1.5-0.3,2.9-0.8,4.2-1.6 c-0.5,1.5-1.5,2.8-2.9,3.6c1.3-0.2,2.6-0.5,3.8-1C47.1,23.4,46,24.5,44.7,25.5z"></path></symbol><symbol id="ss-facebook-icon" viewBox="0 0 64 64"><path d="M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"></path></symbol><symbol id="ss-facebook-mask" viewBox="0 0 64 64"><path d="M0,0v64h64V0H0z M39.6,22l-2.8,0c-2.2,0-2.6,1.1-2.6,2.6V28h5.3l-0.7,5.3h-4.6V47h-5.5V33.3H24V28h4.6V24 c0-4.6,2.8-7,6.9-7c2,0,3.6,0.1,4.1,0.2V22z"></path></symbol><symbol id="ss-linkedin-icon" viewBox="0 0 64 64"><path d="M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"></path></symbol> <symbol id="ss-linkedin-mask" viewBox="0 0 64 64"><path d="M0,0v64h64V0H0z M25.8,44h-5.4V26.6h5.4V44z M23.1,24.3c-1.7,0-3.1-1.4-3.1-3.1c0-1.7,1.4-3.1,3.1-3.1 c1.7,0,3.1,1.4,3.1,3.1C26.2,22.9,24.8,24.3,23.1,24.3z M46,44h-5.4v-8.4c0-2,0-4.6-2.8-4.6c-2.8,0-3.2,2.2-3.2,4.5V44h-5.4V26.6 h5.2V29h0.1c0.7-1.4,2.5-2.8,5.1-2.8c5.5,0,6.5,3.6,6.5,8.3V44z"></path></symbol></svg>')}function y(e){for(var t,a,r=e.length;0!==r;)a=Math.floor(Math.random()*r),r-=1,t=e[r],e[r]=e[a],e[a]=t;return e}function h(e,t){if(e.CustomFilter&&e.config.sortSummaryItems&&"no-sort"!==e.config.sortSummaryItems)return console.log("Universal Filter here, may happen need to use it's sorting!"),t;if(!e.config||!e.config.sortSummaryItems)return oe&&console.log("No data for sort!"),t;var a=e.config.sortSummaryItems,r=t||e._blockItems;switch(t&&t.size()&&e._blockItems.size()&&(r._nodes=e._blockItems._nodes.concat(t._nodes)),a){case"alph":(e.one(".summary-item [data-title]")||e.one(".summary-item .summary-title-link"))&&r._nodes.sort(function(e,t){return e=e.querySelector("[data-title]")?e.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):e.querySelector(".summary-title-link")?e.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):e._LZSData&&e._LZSData.title?e._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):"",t=t.querySelector("[data-title]")?t.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):t.querySelector(".summary-title-link")?t.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):t._LZSData&&t._LZSData.title?t._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):"",e<t?-1:e>t?1:0});break;case"alph-desc":(e.one(".summary-item [data-title]")||e.one(".summary-item .summary-title-link"))&&r._nodes.sort(function(e,t){return e=e.querySelector("[data-title]")?e.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):e.querySelector(".summary-title-link")?e.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):e._LZSData&&e._LZSData.title?e._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):"",t=t.querySelector("[data-title]")?t.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):t.querySelector(".summary-title-link")?t.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):t._LZSData&&t._LZSData.title?t._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,"").replace(/ /g,""):"",e<t?1:e>t?-1:0});break;case"last-word-asc":(e.one(".summary-item [data-title]")||e.one(".summary-item .summary-title-link"))&&r._nodes.sort(function(e,t){e=e.querySelector("[data-title]")?e.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,""):e.querySelector(".summary-title-link")?e.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,""):e._LZSData&&e._LZSData.title?e._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,""):"",t=t.querySelector("[data-title]")?t.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,""):t.querySelector(".summary-title-link")?t.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,""):t._LZSData&&t._LZSData.title?t._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,""):"";var a=e.split(" "),r=t.split(" ");return a.length&&(e=a[a.length-1]),r.length&&(t=r[r.length-1]),e<t?-1:e>t?1:0});break;case"last-word-desc":(e.one(".summary-item [data-title]")||e.one(".summary-item .summary-title-link"))&&r._nodes.sort(function(e,t){e=e.querySelector("[data-title]")?e.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,""):e.querySelector(".summary-title-link")?e.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,""):e._LZSData&&e._LZSData.title?e._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,""):"",t=t.querySelector("[data-title]")?t.querySelector("[data-title]").dataset.title.toLowerCase().replace(/\r?\n|\r/g,""):t.querySelector(".summary-title-link")?t.querySelector(".summary-title-link").innerText.toLowerCase().replace(/\r?\n|\r/g,""):t._LZSData&&t._LZSData.title?t._LZSData.title.toLowerCase().replace(/\r?\n|\r/g,""):"";var a=e.split(" "),r=t.split(" ");return a.length&&(e=a[a.length-1]),r.length&&(t=r[r.length-1]),e<t?1:e>t?-1:0});break;case"date-asc":r._nodes.sort(function(e,t){e.querySelector(".summary-title-link")&&e.querySelector(".summary-title-link").textContent,t.querySelector(".summary-title-link")&&t.querySelector(".summary-title-link").textContent;var a=e.querySelector(".summary-metadata-item--date"),r=t.querySelector(".summary-metadata-item--date");return e=e._LZSData&&e._LZSData.startDate?e._LZSData.startDate:e._LZSData&&e._LZSData.publishOn?e._LZSData.publishOn:e._LZSData&&e._LZSData.addedOn?e._LZSData.addedOn:a&&a.getAttribute("datetime")?parseInt(a.getAttribute("datetime").replace(/\D/g,"")):0,t=t._LZSData&&t._LZSData.startDate?t._LZSData.startDate:t._LZSData&&t._LZSData.publishOn?t._LZSData.publishOn:t._LZSData&&t._LZSData.addedOn?t._LZSData.addedOn:r&&r.getAttribute("datetime")?parseInt(r.getAttribute("datetime").replace(/\D/g,"")):0,e-t});break;case"date-desc":r._nodes.sort(function(e,t){var a=e.querySelector(".summary-metadata-item--date"),r=t.querySelector(".summary-metadata-item--date");return e=e._LZSData&&e._LZSData.startDate?e._LZSData.startDate:e._LZSData&&e._LZSData.publishOn?e._LZSData.publishOn:e._LZSData&&e._LZSData.addedOn?e._LZSData.addedOn:a&&a.getAttribute("datetime")?parseInt(a.getAttribute("datetime").replace(/\D/g,"")):0,t=t._LZSData&&t._LZSData.startDate?t._LZSData.startDate:t._LZSData&&t._LZSData.publishOn?t._LZSData.publishOn:t._LZSData&&t._LZSData.addedOn?t._LZSData.addedOn:r&&r.getAttribute("datetime")?parseInt(r.getAttribute("datetime").replace(/\D/g,"")):0,t-e});break;case"price-asc":e.one(".summary-item .product-price")&&r._nodes.sort(function(e,t){return e=e.querySelector(".product-price"),t=t.querySelector(".product-price"),e=e&&e.querySelector(".original-price")?e.innerText.replace(e.querySelector(".original-price").innerText,""):e.innerText,t=t&&t.querySelector(".original-price")?t.innerText.replace(t.querySelector(".original-price").innerText,""):t.innerText,e=e?parseInt(e.replace(/\D/g,"")):0,t=t?parseInt(t.replace(/\D/g,"")):0,e-t});break;case"price-desc":e.one(".summary-item .product-price")&&r._nodes.sort(function(e,t){return e=e.querySelector(".product-price"),t=t.querySelector(".product-price"),e=e&&e.querySelector(".original-price")?e.innerText.replace(e.querySelector(".original-price").innerText,""):e.innerText,t=t&&t.querySelector(".original-price")?t.innerText.replace(t.querySelector(".original-price").innerText,""):t.innerText,e=e?parseInt(e.replace(/\D/g,"")):0,t=t?parseInt(t.replace(/\D/g,"")):0,t-e});break;case"likes-asc":r._nodes.sort(function(e,t){return e=e.getAttribute("data-like-count")?parseInt(e.getAttribute("data-like-count").replace(/\D/g,"")):e._LZSData&&e._LZSData.likeCount?e._LZSData.likeCount:0,t=t.getAttribute("data-like-count")?parseInt(t.getAttribute("data-like-count").replace(/\D/g,"")):t._LZSData&&t._LZSData.likeCount?t._LZSData.likeCount:0,e-t});break;case"likes-desc":r._nodes.sort(function(e,t){return e=e.getAttribute("data-like-count")?parseInt(e.getAttribute("data-like-count").replace(/\D/g,"")):e._LZSData&&e._LZSData.likeCount?e._LZSData.likeCount:0,t=t.getAttribute("data-like-count")?parseInt(t.getAttribute("data-like-count").replace(/\D/g,"")):t._LZSData&&t._LZSData.likeCount?t._LZSData.likeCount:0,t-e});break;case"reverse":r._nodes=r._nodes.reverse();break;case"random":r._nodes=y(r._nodes);break;case"custom-sort":r._nodes=window.__sortLazyCustom(r._nodes,e)}if(t&&t.size()){if(!e.config.loadAllOrPag){var n=r.splice(0,e.config.existedItems.size());e.one(".summary-item-list")&&e.one(".summary-item-list").empty().insert(n,null),M(e)}return r}e.one(".summary-item-list")&&e.one(".summary-item-list").insert(r,null)}function w(e,t){var a=e.clickthroughUrl||e.sourceUrl||e.fullUrl,r="social-icon-alignment-"+t.buttonsIconAlignment+" social-icons-color-"+t.buttonsIconColor+" social-icons-size-"+t.buttonsIconSize;if(t.buttonsIconStyle.indexOf("-")>-1){var n=t.buttonsIconStyle.split("-");r+=" social-icons-shape-"+n[0]+" social-icons-style-"+n[1]}else r+=" social-icons-shape-"+t.buttonsIconStyle;return'<div data-item-path="'+a+'" data-item-identifier="'+e.id+'" class="summary-share-buttons socialaccountlinks-v2-block sqs-block-socialaccountlinks-v2"><div class="sqs-block-content"><div class="sqs-svg-icon--outer '+r+'"><nav class="sqs-svg-icon--list"><a href="https://www.facebook.com/sharer/sharer.php?u=" target="_blank" class="summary-share-button sqs-svg-icon--wrapper facebook" data-service="facebook"><div><svg class="sqs-svg-icon--social" viewBox="0 0 64 64"><use class="sqs-use--icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ss-facebook-icon"></use><use class="sqs-use--mask" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ss-facebook-mask"></use></svg></div></a><a href="https://twitter.com/intent/tweet?text='+e.title+'&amp;url=" target="_blank" class="summary-share-button sqs-svg-icon--wrapper twitter" data-service="twitter"><div><svg class="sqs-svg-icon--social" viewBox="0 0 64 64"><use class="sqs-use--icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ss-twitter-icon"></use><use class="sqs-use--mask" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ss-twitter-mask"></use></svg></div></a><a href="https://www.linkedin.com/shareArticle?mini=true&amp;source='+e.title+'&amp;summary=&amp;url=" target="_blank" class="summary-share-button sqs-svg-icon--wrapper linkedin" data-service="linkedin"><div><svg class="sqs-svg-icon--social" viewBox="0 0 64 64"><use class="sqs-use--icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ss-linkedin-icon"></use><use class="sqs-use--mask" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#ss-linkedin-mask"></use></svg></div></a></nav></div></div></div>'}function b(e,t,a){var r;return function(){var n=this,i=arguments,o=function(){r=null,a||e.apply(n,i)},s=a&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(n,i)}}function v(e){if(e)return ne}function S(e){try{var t=window.localStorage;e=e.replace(/\//g,"")+"_json";var a=e+"_expires";if(!e||!t)return!1;try{var r=t.getItem(a);if(r){r=parseInt(r);var n=(new Date).getTime();if(n>r)return!1;var i=JSON.parse(t.getItem(e));return i}return!1}catch(e){return console.log(e),!1}}catch(e){return console.log(e),!1}}function _(e,t,a,r){try{var n=window.localStorage,i=t;t=t.replace(/\//g,"")+"_json";var o=t+"_expires";if(r=r||10,e&&n){var s=(new Date).getTime()+6e4*r,l={};if(l=JSON.stringify(e),l.length){i.indexOf("/")>-1&&n.getItem(i)&&n.removeItem(i);try{n.setItem(t,l)}catch(r){if(console.log(r.message||r),!a&&e&&e.items&&e.items.length)for(var c=e.items.length-1;c>=0;c--)e.items[c].body&&(e.items[c].body="y");l=JSON.stringify(e);try{n.setItem(t,l),console.log("Items body was reduced to fit localStorage quota")}catch(e){console.log(e.message||e,"Still too heavy collection to save local.")}}n.setItem(o,s)}}}catch(e){console.log(e)}}function I(e,t,a,r,i){var o=function(){var t=window.location.hostname.replace(/\./g,"-")+"_"+a+"_lazy-"+e;_({saved:!0,minutes:r.cacheTime,timestamp:(new Date).getTime()},t,!0,r.cacheTime)};if(i)o();else{if(r&&r.removeFields&&r.removeFields.length&&(r.removeFields=(r.removeFields+"").split(","),t&&t.items&&t.items.length))for(var s=t.items.length-1;s>=0;s--)if(t.items[s].postItemInjectCode&&delete t.items[s].postItemInjectCode,r.removeFields.forEach(function(e){e=e.trim(),"body"!=e||!t.items[s].recordTypeLabel||"image"!=t.items[s].recordTypeLabel&&"video"!=t.items[s].recordTypeLabel||(e="excerpt"),t.items[s].hasOwnProperty(e)&&delete t.items[s][e]}),t.items[s].items&&t.items[s].items.length&&r.removeFields.indexOf("internalImages")>-1)for(var l=t.items[s].items.length-1;l>=0;l--){var c=t.items[s].items[l].oembed;t.items[s].items[l]={assetUrl:t.items[s].items[l].assetUrl,systemDataId:t.items[s].items[l].systemDataId,id:t.items[s].items[l].id,parentId:t.items[s].items[l].parentId},c&&(t.items[s].items[l].oembed=c)}var m=window.Static&&window.Static.SQUARESPACE_CONTEXT&&window.Static.SQUARESPACE_CONTEXT.website&&window.Static.SQUARESPACE_CONTEXT.website.baseUrl||window.location.origin;t.timestamp=n(),t.nestedCategories&&t.nestedCategories.categoriesHash;var u=JSON.stringify({url:m+"/lazy"+decodeURIComponent(e),content:t,timestamp:n()});console.log("Size to save: ",(u.length/1048576).toFixed(2)+"MB"),Y.io("https://tools.squarewebsites.org/api/save-sqs-response/"+a+"/",{headers:{"Content-Type":"application/json;charset=UTF-8"},method:"POST",data:u,on:{success:function(e,t){t&&t.responseText&&(t=JSON.parse(t.responseText),t.success&&t.file_saved&&o())},failure:function(e){console.log(e)}}})}}function k(e,t,a,r){0==e.indexOf("/")&&(e=e.substr(1));var o=window.Static&&window.Static.SQUARESPACE_CONTEXT&&window.Static.SQUARESPACE_CONTEXT.website&&window.Static.SQUARESPACE_CONTEXT.website.baseUrl&&new URL(window.Static.SQUARESPACE_CONTEXT.website.baseUrl)||window.location,s="https://tools.squarewebsites.org/sqs-response/"+o.hostname.replace(/\./g,"-")+"/"+t+"/lazy-"+(i(decodeURIComponent(e)).replace("?","--query--").replace(/[^A-Za-z0-9-]+/g,"-")||"-")+".js";return!a||!a.saved||a&&a.minutes&&a.minutes!=r.cacheTime||!r.cacheTime?s+="?ver="+n():a&&a.timestamp&&(s+="?ver="+n(a.timestamp)),new Promise(function(e,t){Y.io(s,{headers:{"Content-Type":"application/json;charset=UTF-8"},on:{success:function(a,r){if(r&&r.responseText)try{e(JSON.parse(r.responseText))}catch(e){t("server malformed response")}else t("server empty response")},failure:function(){t("server")}}})})}function C(e){if(e){var t=e.tree||{},a=e.categoryTree||e.categories||[];a&&a.length&&a.forEach(function(e){var a=e.displayName,r=e.id;t[r]={displayName:a},e.children&&e.children.length&&e.children.forEach(function(e){var a=e.displayName,n=e.id;t[n]={displayName:a,parentCategoryId:r},e.children&&e.children.length&&e.children.forEach(function(e){var a=e.displayName,r=e.id;t[r]={displayName:a,parentCategoryId:n}})})}),e.categoriesHash=t}}function T(e,t,a,r){if(window.Static&&window.Static.SQUARESPACE_CONTEXT&&window.Static.SQUARESPACE_CONTEXT.authenticatedAccount)return new Y.Promise(function(e){var a=!1,r="/api/content-service/product/1.1/websites/"+t.website.id+"/products/"+t.collection.id+"/categories/tree";try{Y.io(r,{on:{success:function(t,r){var n=r.responseText;if(n&&n.indexOf("categoryTree")>-1){if(a=JSON.parse(n),a&&a.categoryTree&&a.categoryTree.length)for(var i=a.categoryTree.length-1;i>=0;i--)a.categoryTree[i]={type:a.categoryTree[i].type,displayName:a.categoryTree[i].displayName,count:a.categoryTree[i].orderedItemCount,shortSlug:a.categoryTree[i].shortSlug,parentCategoryId:a.categoryTree[i].parentCategoryId,id:a.categoryTree[i].id};a&&e(a)}else e(a)},failure:function(t,r){console.warn("Get Nested Categories error : "+r.status),e(a)}}})}catch(t){e(a)}});if(r&&r.generated)return console.log("No need to try fetch new nested"),new Y.Promise(function(e,t){e(r)});var n="https://tools.squarewebsites.org/sqs-response/"+window.location.hostname.replace(/\./g,"-")+"/"+a+"/lazy-"+(m(decodeURIComponent(e)).replace("?","--query--").replace(/[^A-Za-z0-9-]+/g,"-")||"-")+"--nested-categories-tree--.js";return new Y.Promise(function(e,t){Y.io(n,{headers:{"Content-Type":"text/javascript;charset=UTF-8"},on:{success:function(t,a){if(a&&a.responseText){var r=JSON.parse(a.responseText);e(r)}},failure:function(){e(!1)}}})})}function x(e,t,a,r,i){var o={enabled:r.useSQSProxy,cacheTime:r.proxyCacheTime||10,removeFields:r.proxyRemoveFields||"variants,digitalGoods,salePriceCents,salePriceMoney,priceMoney,priceCents,isSubscribable,onSale,variantOptionOrdering,additionalFieldsForm,additionalFieldsFormId,authorId,internalImages,contentType,customAddButtonText,useCustomAddButtonText,unsaved,systemDataVariants,systemDataSourceType,pendingPushedServices,pushedServices,displayIndex"};r&&(r.showExcerpt||-1!=o.removeFields.indexOf("excerpt")||(o.removeFields+=",excerpt"),!r.enableLazyBody&&(!i.CustomFilter||i.CustomFilter&&!i.CustomFilter.SQSProxy||i.CustomFilter&&i.CustomFilter.SQSProxy&&!i.CustomFilter.SQSProxy.bodyFieldNeeded)&&(o.removeFields+=",body")),r.promoteThumb=!0;return new Promise(function(s){function l(e,g){if(a){var p=ue()?"":"format=main-content&";Y.io(e+"?"+p+"cache="+n(),{on:{success:function(n,i){var l=i.responseText;if(l&&l.indexOf('id="collectionsIndex"')>-1){if(l.indexOf('<textarea id="collectionsIndex" class="hidden" style="display:none">')>-1)l=l.split('<textarea id="collectionsIndex" class="hidden" style="display:none">')[1].split("</textarea>")[0];else{var m=document.createElement("div");m.innerHTML=l;var u=m.querySelector("#collectionsIndex");l=u.value||u.querySelector(".sqs-block-content")&&u.querySelector(".sqs-block-content").innerText||""}if(l)try{0==l.indexOf("LZString")?c.items=JSON.parse(ge.decompressFromEncodedURIComponent(l.slice(8))):c.items=JSON.parse(l);var d=[],g=[];if(c.items&&c.items.length&&(c.items.forEach(function(e,t){e.fullUrl&&-1===e.fullUrl.indexOf(r.originalCollectionUrl+"/")?d.push(e):g.push(e)}),c.items=g.concat(d)),r.processDataFunction&&"function"==typeof r.processDataFunction){var p=r.processUrl||r.originalCollectionUrl;c=r.processDataFunction(c,p)}r.promoteThumb&&c.items&&c.items.forEach(function(e){if(e.body&&!e.systemDataId&&(!e.items||!e.items.length)){var t=e.body.split('data-src="');t[1]&&(t=t[1].split('"')[0],t&&(e.assetUrl=t,e.systemDataId=!0))}}),t&&!o.enabled&&_(c,a,!0),r.__all_loaded=!0,o.enabled&&I(e,c,"main-content",o,!1),s(c)}catch(e){console.warn("error : "+e),s(c)}else s(c)}else s(c)},failure:function(t,a){console.warn("error : "+a.status),window.Static&&Static.SQUARESPACE_CONTEXT&&Static.SQUARESPACE_CONTEXT.authenticatedAccount&&i.one(".summary-block-wrapper").append("<p>Lazy Summary can not fetch items from "+e+" , this is a connection issue or you really need to re-select the collection in Summary settings (in case you have changed the url slug of collection) and make sure source collection is Enabled.</p>"),s(c)}}})}else{var f=e.indexOf("?")>-1?"&format=json":"?format=json";f+="&cache="+n(),g&&(f+="&offset="+g),r.isEventsCollection&&(f+="&view=list",d&&(f+="&year="+u)),Y.io(e+f,{on:{success:function(a,n){var i=n.responseText;if(i)try{0==i.indexOf("LZString")&&(i=ge.decompressFromEncodedURIComponent(i.slice(8))),1==i.indexOf("LZString")&&(i=ge.decompressFromEncodedURIComponent(i.slice(9)));var p=JSON.parse(i),f=!!p.upcoming||!!p.past||!!p.items;f&&(p.upcoming&&(c.upcoming=c.upcoming.concat(p.upcoming)),p.past&&(c.past=c.past.concat(p.past)),p.items&&(c.items=c.items.concat(p.items))),p&&"object"==typeof p&&m&&(p.length?c.items=p:c=p);var y=[];if(r.processDataFunction&&"function"==typeof r.processDataFunction){var h=r.processUrl||r.originalCollectionUrl;y=r.processDataFunction(p,h);y.length&&(c.items=c.items.concat(y))}if(g=p.offset&&p.offset!==g?p.offset:p.pagination&&p.pagination.nextPageOffset&&g!==p.pagination.nextPageOffset?p.pagination.nextPageOffset:"",g){if(r.__all_loaded=!1,c.upcoming.length>=r.existedItems.size()||c.past.length>=r.existedItems.size()||c.items.length>=r.existedItems.size())r.hasOwnProperty("__all_loaded")?f?{items:p.items,past:p.past,upcoming:p.upcoming}:{items:y}:c;l(e,g)}else d&&d!==u?(r.__all_loaded=!1,"past"==r.showPastOrUpcomingEvents?u--:u++,l(e)):(r.__all_loaded=!0,r.promoteThumb&&c.items&&c.items.length&&c.items.forEach(function(e){if(e.body&&!e.systemDataId&&(!e.items||!e.items.length)){var t=e.body.indexOf('data-src="')>-1?e.body.split('data-src="'):e.body.indexOf('<img src="')>-1?e.body.split('<img src="'):[];t[1]&&(t=t[1].split('"')[0],t&&(e.assetUrl=t,e.systemDataId=!0))}}),r.alternateImages&&c.items&&c.items.length&&c.items.forEach(function(e){if(e.body&&e.systemDataId&&(!e.items||!e.items.length)){var t=e.body.indexOf('data-src="')>-1?e.body.split('data-src="'):e.body.indexOf('<img src="')>-1?e.body.split('<img src="'):[];t[1]&&(t=t[1].split('"')[0],t&&(e.alt_image={assetUrl:t,systemDataId:!0}))}}),p.nestedCategories&&p.nestedCategories.categories&&p.nestedCategories.categories.length&&!p.nestedCategories.categories[0].id&&!p.nestedCategories.tree?(c.nestedCategories={},T(e,p,"json").then(function(t){if(t){var a={};t.categoryTree&&(a.generated=!0,t.categoryTree.forEach(function(e){a[e.id]=e}),c.nestedCategories||(c.nestedCategories={})),t.generated&&(a=t),c.nestedCategories.tree=a}o&&I(e,c,"json",o,!1),s(c)})):(p.nestedCategories&&p.nestedCategories.categories.length&&p.nestedCategories.categories[0].id&&(console.log("we have categories ids there!!"),p.nestedCategories.all&&(p.nestedCategories.all.allCategory=!0,p.nestedCategories.categories.unshift(p.nestedCategories.all)),c.nestedCategories=p.nestedCategories,C(p.nestedCategories)),o.enabled&&I(e,c,"json",o,!1),t&&!o.enabled&&_(c,e,!1),s(c)))}catch(e){console.warn("error : "+e),s(c)}else s(c)},failure:function(e,t){console.warn("error : "+t.status),s(c)}}})}}var c={past:[],upcoming:[],items:[]},m=!1,u=(new Date).getFullYear(),d=r.isEventsCollection&&r.queryEventsTill&&r.queryEventsTill.trim().length&&parseInt(r.queryEventsTill.trim());a&&(a.indexOf("http://")>-1||a.indexOf("https://")>-1)&&(e=a+"",a=!1,m=!0);var g=Y.one(".sqs-layout #collectionsIndex"),p=function(){if(g){var n=g.get("value")||"";try{c.items=JSON.parse(n);var i=[],m=[];if(c.items&&c.items.length&&(c.items.forEach(function(e,t){-1===e.fullUrl.indexOf(r.originalCollectionUrl+"/")?i.push(e):m.push(e)}),c.items=m.concat(i)),r.processDataFunction&&"function"==typeof r.processDataFunction){var u=r.processUrl||r.originalCollectionUrl;c=r.processDataFunction(c,u)}r.__all_loaded=!0,t&&_(c,a),s(c)}catch(e){if(console.warn("error : "+e),r.__all_loaded=!0,r.processDataFunction&&"function"==typeof r.processDataFunction){u=r.processUrl||r.originalCollectionUrl;c=r.processDataFunction(c,u)}s(c)}}else if(r&&r.ajaxData&&r.collectionUrl===e)r.__all_loaded=!0,s(r.ajaxData);else{var d=a||e,p=S(d);if(p&&t&&!o.enabled){if(r.__all_loaded=!0,r.processDataFunction&&"function"==typeof r.processDataFunction){u=r.processUrl||r.originalCollectionUrl;p=r.processDataFunction(p,u)}s(p)}else l(e)}};if(o&&o.enabled){var f=a?"main-content":"json",y=window.location.hostname.replace(/\./g,"-")+"_"+f+"_lazy-"+e,h=S(y);k(e,f,h,o).then(function(e){var t=e.items&&e.items.length;s(e),!0,(e.nestedCategories&&window.self!=window.top||!t||!h||!h.saved||h&&h.minutes&&h.minutes!=o.cacheTime||!o.cacheTime)&&p()}).catch(function(e){console.log(e),p()})}else p()})}function L(){return window.Static&&window.Static.SQUARESPACE_CONTEXT&&window.Static.SQUARESPACE_CONTEXT.websiteSettings&&window.Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings&&window.Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings.customSoldOutText?window.Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings.customSoldOutText:"sold out"}function D(){return window.Static&&window.Static.SQUARESPACE_CONTEXT.website.timeZoneOffset+6e4*(new Date).getTimezoneOffset()||0}function z(e,t,a,r){return new Promise(function(n){t.builtItems||(t.builtItems=[],t.relatedIdToDelete&&t.builtItems.push(t.relatedIdToDelete)),t.jsonTransformFunction&&"function"==typeof t.jsonTransformFunction&&(t.summItems=t.jsonTransformFunction(t.summItems,t)||t.summItems);var i=new Y.NodeList,o=document.createElement("div"),s=window.DOMParser&&new window.DOMParser,l=document.documentElement.lang||"en-US";if(t.summItems&&t.summItems.length&&!r){for(var m=t.summItems,u=m.length,d=0;d<u;d++){var g=m[d];if(g.id&&-1===t.builtItems.indexOf(g.id)){g.readMoreText=t.readMoreText,g.itemUrl=(g.clickthroughUrl&&g.clickthroughUrl!=g.urlId?g.clickthroughUrl:(g.passthrough||t.followSourceUrl)&&g.sourceUrl&&g.sourceUrl!=g.urlId?g.sourceUrl:g.fullUrl).replace('target="_blank',"").replace("%22target%3D%22_blank",""),a.followSourceUrl&&(g.followSourceUrl=!0),g.collectionUrl=g.collectionUrl||t.originalCollectionUrl,g.collectionUrl&&g.collectionUrl.length&&("/"===g.collectionUrl.charAt(g.collectionUrl.length-1)&&(g.collectionUrl=g.collectionUrl.slice(0,-1)),"/"===g.collectionUrl.charAt(0)&&(g.collectionUrl=g.collectionUrl.substring(1))),g.startDate&&(g.startDate=new Date(g.startDate).getTime()+D(),g.endDate=new Date(g.endDate).getTime()+D()),g.addedOn=new Date(g.addedOn).getTime()+D(),g.publishOn=new Date(g.publishOn).getTime()+D(),g.summ_config=a;try{var p=g.startDate&&new Date(g.startDate),f=g.endDate&&new Date(g.endDate);g.formatDate=p?Y.Date.format(p,{format:"%b %e, %Y"})+" – "+Y.Date.format(f,{format:"%b %e, %Y"}):Y.Date.format(new Date(g.addedOn),{format:"%b %e, %Y"}),p&&f&&p.getYear()==f.getYear()&&p.getMonth()==f.getMonth()&&(g.formatDate=Y.Date.format(p,{format:"%b %e, %Y"})),g.formatShortDate=g.startDate?Y.Date.format(p,{format:"%F"}):Y.Date.format(new Date(g.publishOn),{format:"%F"}),g.formatMonth=g.startDate?Y.Date.format(p,{format:"%b"}):Y.Date.format(new Date(g.publishOn),{format:"%b"}),g.formatDay=g.startDate?Y.Date.format(p,{format:"%e"}):Y.Date.format(new Date(g.publishOn),{format:"%e"}),g.startDate&&g.endDate&&(g.formatTime12=Y.Date.format(p,{format:"%l:%M%P"})+" – "+Y.Date.format(f,{format:"%l:%M%P"}),g.formatTime24=Y.Date.format(p,{format:"%H:%M"})+" – "+Y.Date.format(f,{format:"%H:%M"}),g.formatTimeLocale=p.toLocaleTimeString(l,{hour:"2-digit",minute:"2-digit"})+" – "+f.toLocaleTimeString(l,{hour:"2-digit",minute:"2-digit"}))}catch(e){console.log(e)}if("image"!==g.recordTypeLabel&&"video"!==g.recordTypeLabel||(g.excerpt=g.excerpt||g.body),t.enableLazyBody&&g.body&&(g.bodyExcerpt=!0),"lesson"===g.recordTypeLabel&&g.items[0].oembed&&g.items[0].oembed.height&&(g.assetUrl=g.items[0].oembed.thumbnailUrl,g.systemDataId=!0),"store-item"===g.recordTypeLabel){var y=Y.Squarespace.Commerce.priceString(g).trim(),h=y.split(" <");if(h[1])h[0]='<span class="sqs-money-native">'+h[0].replace(/[^,\d.]/g,"")+"</span> ",h[1]='<span class="original-price"><span class="sqs-money-native">'+h[1].replace(/[^,\d.]/g,"")+"</span></span>";else{h[1]=" ";var b=h[0].split(" ").length&&h[0].split(" ").length>2?h[0].split(" ")[0]+" ":"";h[0]=b+'<span class="sqs-money-native">'+h[0].replace(/[^,\d.]/g,"")+"</span>"}g.price='<div class="product-price">'+h[0]+h[1]+"</div>",t.productQuickViewEnabled&&(g.quickProduct='<div class="sqs-product-quick-view-button-wrapper"><span class="sqs-product-quick-view-button" data-id="'+g.id+'" data-group="'+t.blockId+'">'+t.quickProductViewText+"</span></div>"),Y.Squarespace.Commerce.soldOut(g)?(g.sold=" sold-out",g.productMark='<div class="summary-product-status sqs-product-mark-wrapper"><div class="product-mark sold-out">'+L()+"</div></div>"):Y.Squarespace.Commerce.onSale(g)?(g.productMark='<div class="summary-product-status sqs-product-mark-wrapper"><div class="product-mark sale">sale</div></div>',g.sale=" on-sale"):g.productMark='<div class="summary-product-status sqs-product-mark-wrapper"></div>',!g.systemDataId&&!g.mainImageId&&g.items&&g.items[0]&&g.items[0].systemDataId&&(g.systemDataId=g.items[0].systemDataId,g.mediaFocalPoint=g.items[0].mediaFocalPoint,g.assetUrl=g.items[0].assetUrl,g.originalSize=g.items[0].originalSize)}if(g.excerpt&&g.excerpt.html&&(g.excerpt=g.excerpt.html),g.promotedBlockType&&g.promotedBlock){var v=!1;if(s?v=s.parseFromString(g.promotedBlock,"text/html"):(o.innerHTML=g.promotedBlock,v=o),v){var S=v.querySelector("img[alt]");if(S){g.assetUrl=S.getAttribute("data-src")||S.getAttribute("src"),g.systemDataId="true",g.originalSize=S.getAttribute("data-image-dimensions")||"";var _=S.getAttribute("data-image-focal-point")||"0.5,0.5";if(_){var I=_.split(",");g.mediaFocalPoint={x:I[0],y:I[1]}}}}o.innerHTML=""}else if(g.body&&!g.systemDataId){var k=!1;if(s?k=s.parseFromString(g.body,"text/html"):(o.innerHTML=g.body,k=o),k){S=k.querySelector(".thumb-image")||k.querySelector("img[alt]");if(S){g.assetUrl=S.getAttribute("data-src")||S.getAttribute("src"),g.systemDataId="true",g.originalSize=S.getAttribute("data-image-dimensions")||"";_=S.getAttribute("data-image-focal-point")||"0.5,0.5";if(_){I=_.split(",");g.mediaFocalPoint={x:I[0],y:I[1]}}}}o.innerHTML=""}if(t.showShareButtons&&"noShare"!=t.showShareButtons&&(g.summaryShareButtons=w(g,t)),!(g.location&&g.location.addressLine1||g.location&&g.location.addressLine2||g.location&&(g.location.addressTitle||g.location.mapLat&&40.7207559!=g.location.mapLat))||"location"!==t.primaryMetadata&&"location"!==t.secondaryMetadata||(g.location.addressLine1=g.location.addressLine1||"",g.location.addressLine2=g.location.addressLine2||"",g.location.addressCountry=g.location.addressCountry||"",g.location.addressTitle=g.location.addressTitle||"",g.address=(g.location.addressLine1+" "+g.location.addressLine2+" "+g.location.addressCountry).trim(),g.mapUrl="https://maps.google.com?q="+encodeURIComponent(g.address),g.addressText=g.location.addressTitle?g.location.addressTitle:g.address),t.alternateImages&&(g.items&&g.items[1]?g.alternateImage=A(g.items[1],t.imageAspectRatio):g.alt_image&&(g.alternateImage=A(g.alt_image,t.imageAspectRatio))),t.addCatTagClasses&&"none"!==t.addCatTagClasses){var C="";"categories"!=t.addCatTagClasses&&"both"!=t.addCatTagClasses||g.categories&&g.categories.length&&g.categories.forEach&&g.categories.forEach(function(e){C+=" lzs-category-"+c(e)}),"tags"!=t.addCatTagClasses&&"both"!=t.addCatTagClasses||g.tags&&g.tags.length&&g.tags.forEach&&g.tags.forEach(function(e){C+=" lzs-tag-"+c(e)}),g.cats_tags_classes=C}if(-1===t.startItems.indexOf(g.id)){var T="";try{if(t.renderItemDataFunction&&"function"==typeof t.renderItemDataFunction)try{g=t.renderItemDataFunction(g,t)||g}catch(e){console.warn(e)}if(g.metaContent=ie.expand(g)||"",T=e.expand(g),delete g.cats_tags_classes,T){var x=!1;if(s?(x=s.parseFromString(T,"text/html"),x.querySelectorAll("noscript").forEach(function(e){e.parentNode.removeChild(e)}),x=x.body.firstChild):(o.innerHTML=T,x=o.firstChild),x&&x._node){if(x._node._LZSData=g,t.afterRenderItemFunction&&"function"==typeof t.afterRenderItemFunction)try{x=t.afterRenderItemFunction(x,g)||x}catch(e){console.warn(e)}g.summ_config=null,i.push(x),t.builtItems.push(g.id)}else{if(t.SSAnim){var z=x.querySelectorAll(".summary-thumbnail, .summary-content");if(z.length)for(let e=0;e<z.length;e++){const a=z[e];a.classList.add(t.SSAnim),a.classList.add(t.SSAnim.replace("pre","").toLowerCase()+"In")}}if(x._LZSData=g,t.afterRenderItemFunction&&"function"==typeof t.afterRenderItemFunction)try{x=t.afterRenderItemFunction(x,g)||x}catch(e){console.warn(e)}g.summ_config=null,i._nodes&&i.push(x),t.builtItems.push(g.id)}}}catch(e){console.log(e,g,d)}}}}t.new_items=t.loadAllOrPag&&!t.__all_loaded?i:!t.loadAllOrPag&&t.new_items&&t.new_items.size()?t.new_items.concat(i):i}r&&t.new_items.size()&&n(new Y.NodeList(t.new_items._nodes.splice(0,r))),n(i)})}function A(e,t){if(e){t=t||1;var a,r="0.5,0.5";return e.mediaFocalPoint&&(r=e.mediaFocalPoint.x+","+e.mediaFocalPoint.y),e.title&&0<e.title.length&&(a=e.title),!a&&e.body&&0<e.body.length&&(a=e.body.replace(/<(?:.|\n)*?>/gm,"")),!a&&e.filename&&0<e.filename.length&&(a=e.filename),a&&(a=l(a)),a||(a=""),'<img class="summary-thumbnail-image summary-thumbnail-image-alternate" data-parent-ratio="'+t+'" data-image="'+e.assetUrl+'" data-src="'+e.assetUrl+'" data-image-dimensions="'+(e.originalSize||"")+'" data-image-focal-point="'+r+'" alt="'+a+'" />'}}function q(e){e=e||window.event;var t=e.currentTarget,a=Math.floor(((screen.availWidth||1366)-680)/2),r=Math.floor(((screen.availHeight||700)-460)/2),n=window.open(t.getAttribute("href"),"social","width=680,height=460,left="+a+",top="+r+",location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1");return n&&(n.focus(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1),!!n}function E(e){e.hasClass("share-click-initialized")||e.delegate("click",function(e){q(e)},".summary-share-button"),Y.all(".summary-share-buttons:not(.initialized)").each(function(e){var t=e.getAttribute("data-item-path"),a=t.indexOf("http")>-1;a||(t=location.origin+t),e.setAttribute("data-item-path",t),e.all(".summary-share-button").each(function(e){var a=e.getAttribute("href")+t;e.setAttribute("href",a)}),e.addClass("initialized")})}function O(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e)}function M(e){if(!e._resize_sqpl_tab){window._lzs_timelog&&console.time("LZS refreshSummary"),E(e);var t,a=null;e.one(".sqs-gallery")&&e.one(".sqs-gallery").getData("gallery")&&(t=e.one(".sqs-gallery").getData("gallery"),a=t["gallery-design"]);var n=e.all(".summary-item").addClass("positioned"),i=function(){var t=e.hasClass("performance-mode-used");t||a&&a._renderUI&&a._renderUI(),e.all(".summary-thumbnail-container img").each(function(a){if(e.LazySummariesData&&e.LazySummariesData.imageAspectRatio&&"Auto"!==e.LazySummariesData.imageAspectRatio&&"autocolumns"!==e.LazySummariesData.design){var r=a.get("parentNode");r&&!r._node.style.paddingBottom&&r.setStyles({paddingBottom:100/parseFloat(e.LazySummariesData.imageAspectRatio)+"%",height:0,overflow:"hidden"})}if(t){var n=a.getAttribute("data-src"),i=a.getAttribute("src");n&&!i&&(a._node.onload=function(){this.classList.add("loaded")},a.setStyles({position:"absolute",height:"100%",objectFit:"cover"}).setAttribute("src",n))}else a.hasClass("loaded")||(a._node.onload=function(){this.classList.add("loaded")}),a.loader?a.width()&&!e.hasClass("isotope-filter-used")&&a.fire("refresh"):(Y.Squarespace&&Y.Squarespace.Loader2?Y.Squarespace.Loader2&&a.plug(Y.Squarespace.Loader2,{load:!0,mode:"fill"}):window.ImageLoader.loadLazy?window.ImageLoader.loadLazy(a._node,{mode:"cover",load:!0,useAdvancedPositioning:!0}):window.ImageLoader.load(a._node,{mode:"cover",load:!0,useAdvancedPositioning:!0}),a.fire("refresh"))})};if(t&&a){var o=t.get("containerWrapper");if(a.imageRegions&&(a.imageRegions=[]),a.dimensions&&(a.dimensions=[]),e.hasClass("isotope-filter-used")||e.hasClass("performance-mode-used"))i();else{window._lzs_timelog&&console.time("LZS galleryRerender"),window._lzs_timelog&&console.time("LZS gallerySetSlides"),t.set("slides",n),window._lzs_timelog&&console.timeEnd("LZS gallerySetSlides"),window._lzs_timelog&&console.time("LZS gallerySetSlidesByMedia");var s=new Y.NodeList,l=new Y.NodeList;if(n.each(function(e){var t=e.getAttribute("data-type");if(t)switch(t){case"image":e.one(".summary-thumbnail img")&&s.push(e.one("img"));break;case"video":l.push(e);default:e.one(".summary-thumbnail img")&&s.push(e.one("img"))}}),t._images=s,t._imagesByMedia={image:s},t._slidesByMedia={image:s,video:l},window._lzs_timelog&&console.timeEnd("LZS gallerySetSlidesByMedia"),"GalleryDesignCarousel"!==a.name){var c=o.all(".sqs-gallery-image-container"),m=o.all(".sqs-gallery-meta-container");t.set("elements",{metaContainers:m,imageContainers:c})}a.name,"GalleryDesignCarousel"==a.name&&(a._state.data.totalSlides.value=n.size(),a._state.data.totalSlides.readOnly=!1,a._state.data.totalGroups.readOnly=!1,a.set("totalSlides",n.size()),a.set("totalGroups",n.size()/a.get("slidesPerRow")),a._syncUI&&a._syncUI()),window._lzs_timelog&&console.time("LZS galleryIntMethods"),window._lzs_timelog&&console.time("LZS designRender"),a._renderUI&&a._renderUI(),window._lzs_timelog&&console.timeEnd("LZS designRender"),window._lzs_timelog&&console.time("LZS plugRenders"),t.plugLoaders&&t.plugLoaders(),window._lzs_timelog&&console.timeEnd("LZS plugRenders"),window._lzs_timelog&&console.time("LZS evaluateBricks"),a._evaluateBricks&&a._evaluateBricks(),window._lzs_timelog&&console.timeEnd("LZS evaluateBricks"),window._lzs_timelog&&console.time("LZS processImages"),a._processImages&&a._processImages(),window._lzs_timelog&&console.timeEnd("LZS processImages"),window._lzs_timelog&&console.time("LZS designLoadImages"),a.loadItems&&a.loadItems(),window._lzs_timelog&&console.timeEnd("LZS designLoadImages"),window._lzs_timelog&&console.timeEnd("LZS galleryIntMethods"),window._lzs_timelog&&console.time("LZS galleryLightboxify"),a.get("lightbox")&&Y.SQS.Gallery&&Y.SQS.Gallery.Manager&&Y.SQS.Gallery.Manager.lightboxify&&(Y.SQS.Gallery.Manager.unlightboxify(n),Y.SQS.Gallery.Manager.lightboxify(!0,n)),window._lzs_timelog&&console.timeEnd("LZS galleryLightboxify"),t.onceAfter("refresh",function(){window._lzs_timelog&&console.time("LZS onceRefreshImages");var r=e.all("img:not(.loaded)"),n=0,i=r.size(),o=!1;i&&r.on("load",function(e){n++,4==n&&t.refresh(),n>=i&&!o&&(t.refresh(),o=!0);var a=e.currentTarget;a.hasClass("loaded")||a.addClass("loaded")}),e.all(".summary-thumbnail img[src]").each(function(e){e.fire("refresh")}),r.each(function(e){e.loader?e.loader.set("load",!0):Y.Squarespace.Loader2&&e.plug(Y.Squarespace.Loader2,{load:!0}),e.loader?e.loader.load():window.ImageLoader.loadLazy?window.ImageLoader.loadLazy(e._node,{load:!0,useAdvancedPositioning:!0}):window.ImageLoader.load(e._node,{load:!0,useAdvancedPositioning:!0})}),window._lzs_timelog&&console.timeEnd("LZS onceRefreshImages"),window._lzs_timelog&&console.time("LZS updateControls"),a._updateControls&&(a.get("currentGroup")<0&&a.set("currentGroup",0),a._syncUI(),a.get("totalGroups")),window._lzs_timelog&&console.timeEnd("LZS updateControls")}),window._lzs_timelog&&console.time("LZS galleryRefresh"),t.refresh(),window._lzs_timelog&&console.timeEnd("LZS galleryRefresh"),window._lzs_timelog&&console.timeEnd("LZS galleryRerender")}}else i();if(j(e),e.LazySummariesData&&e.LazySummariesData.enableLazyBody&&window.Squarespace&&window.Squarespace.initializeLayoutBlocks&&window.Squarespace.initializeLayoutBlocks(Y,e),e.LazySummariesData&&e.LazySummariesData.enableExcerptHTML&&e.all(".summary-excerpt:not(.unescaped-html)").each(function(e){e.set("innerHTML",r(e.get("innerHTML"))),e.addClass("unescaped-html")}),e.ancestor(".sqpl-tab")&&!e._resize_sqpl_tab&&(e._resize_sqpl_tab=!0,O()),e.LazySummariesData&&e.LazySummariesData.wrapItemsWithLink){var u="";e.LazySummariesData.followSourceUrl&&(u='target="_blank"'),e.all(".summary-item:not(.lazy-wrap-link-added)").each(function(e){var t=e.one("a.summary-thumbnail-container")||e.one(".summary-title-link");t=t&&t.getAttribute("href"),!e.one(".summary-wrap-link")&&t&&t&&(e.append('<a href="'+t+'" '+u+' data-ajax-loader="ajax-loader-binded" style="appearance:none;padding:0;margin:0;" class="summary-wrap-link"></a>'),e.one(".summary-wrap-link").append(e.all(".summary-thumbnail-outer-container,.summary-content")),e.addClass("lazy-wrap-link-added"))})}if(e.LazySummariesData&&e.LazySummariesData.refreshFunction&&"function"==typeof e.LazySummariesData.refreshFunction)try{e.LazySummariesData.refreshFunction(e,e.LazySummariesData)}catch(e){console.warn(e)}window._lzs_timelog&&console.timeEnd("LZS refreshSummary"),document.dispatchEvent(new CustomEvent("lazy-summaries:refresh",{detail:e}))}}function F(e,t){t._blockItems&&e._nodes&&(t._blockItems=t._blockItems.concat(e)),t.CustomFilter?(t.CustomFilter.filterAnim=!1,(t.CustomFilter.isotope||t.hasClass("isotope-filter-used"))&&t.one(".summary-item-list")&&t.one(".summary-item-list").append(e),t.CustomFilter.addItems(e)):(t.config&&t.config.sortSummaryItems&&t.config.sortSummaryItems,window._lzs_timelog&&console.time("LZS insertNewItems"),e&&e.size()&&t.one(".summary-item-list")&&t.one(".summary-item-list").append(e),window._lzs_timelog&&console.timeEnd("LZS insertNewItems"),M(t)),a(t),Y.fire("lazy-items-added",t),t.config.enableLazyBody}function U(e){e.all(".summary-item").each(function(e){var t=!!e.one(".summary-metadata-container--below-content")&&e.one(".summary-metadata-container--below-content").getContent();if(t){var a=e.one(".summary-metadata-container--above-title"),r=e.one(".summary-metadata-container--below-title");a&&a.setContent(t),r&&r.setContent(t)}})}function P(e,t){var a=t,r=e&&e.nestedCategories&&(e.nestedCategories.tree||e.nestedCategories.categoriesHash);e.nestedCategories.all;return t&&r&&t.forEach(function(e){var t=r[e];if(t&&t.parentCategoryId&&r[t.parentCategoryId]){-1==a.indexOf(t.parentCategoryId)&&a.push(t.parentCategoryId);var n=r[t.parentCategoryId].parentCategoryId;if(n&&r[n]){-1==a.indexOf(n)&&a.push(n);var i=r[n].parentCategoryId;i&&r[i]&&-1==a.indexOf(i)&&a.push(i)}}}),a}function N(e,t,a){for(var r=e.summItems,n=[],i=r.length,o=e.filter&&(e.filter.featured||e.filter.category||e.filter.categoryIds&&e.filter.categoryIds.length||e.filter.tag),s=e.lazyFilter&&(e.lazyFilter.featured||e.lazyFilter.category||e.lazyFilter.tag),l=0;l<i;l++){var c=r[l],m=0;if(o&&m--,o&&(e.filter.featured&&(c.starred?m++:m--),e.filter.categoryIds&&e.filter.categoryIds.length?(a&&a.nestedCategories&&(a.nestedCategories.tree||a.nestedCategories.categoriesHash)&&(c.categoryIds=P(a,c.categoryIds)),c.categoryIds&&c.categoryIds.length&&p(e.filter.categoryIds,c.categoryIds)?m++:m--):e.filter.category&&!c.hasOwnProperty("categoryIds")&&(c.categories&&p(e.filter.category.split(","),c.categories)?m++:m--),e.filter.tag&&(c.tags&&p(e.filter.tag.split(","),c.tags)?m++:m--)),m>-1)if(e.enableLazyFilter&&e.lazyFilter){var u=0;s&&u--,e.lazyFilter.featured&&(c.starred?u++:u--),e.lazyFilter.category&&!c.hasOwnProperty("categoryIds")&&(c.categories&&p(e.lazyFilter.category.split(","),c.categories)?u++:u--),e.lazyFilter.tag&&(c.tags&&p(e.lazyFilter.tag.split(","),c.tags)?u++:u--),u>-1&&n.push(c)}else n.push(c)}return e.summItems=n,e}function R(e,t){var a=[],r=e.nestedCategories.categoriesHash||e.nestedCategories.tree;return t&&t.categoryIds&&e&&e.nestedCategories&&r&&t.categoryIds.forEach(function(e){var t=r[e];if(t&&(-1==a.indexOf(t.displayName)&&a.push(t.displayName),t.parentCategoryId&&r[t.parentCategoryId])){-1==a.indexOf(r[t.parentCategoryId].displayName)&&a.push(r[t.parentCategoryId].displayName);var n=r[t.parentCategoryId].parentCategoryId;n&&r[n]&&-1==a.indexOf(r[n].displayName)&&a.push(r[n].displayName)}}),a}function Z(e){e.each(function(e){e.one(".original-price")&&e.addClass("on-sale")})}function B(e,a){ee(e),Y.fire("start-init-lazy-summary",e),U(e),e.one(".loadMoreButtonWrapper")&&e.one(".loadMoreButtonWrapper").remove();var n=e.getAttribute("id"),i=a||(e.getAttribute("data-block-json")?JSON.parse(e.getAttribute("data-block-json")):Y.Widget.getByNode(e)?Y.Widget.getByNode(e).get("model").getAttrs():{}),o=!!e.one('[class*="summary-block-collection-type-events"]')||!!e.one(".summary-item-record-type-event");e.one(".lazy-loaded-item")&&e.all(".lazy-loaded-item").remove(),e._blockItems=null;var s=e.LazySummariesData&&e.LazySummariesData.startItems||[];if(i.imageAspectRatio&&e.setAttribute("image-aspect-ratio",i.imageAspectRatio),e.one(".summary-block-wrapper")&&e.one(".summary-block-wrapper").removeClass("summary-block-setting-primary-metadata-share-buttons")&&e.one(".summary-block-wrapper").removeClass("summary-block-setting-secondary-metadata-share-buttons"),window.customLazySummaries){if(window.customLazySummaries.general){var m=H({},window.customLazySummaries.general);window.customLazySummaries.general&&(i=H(m,i))}window.customLazySummaries.separate&&window.customLazySummaries.separate.length&&window.customLazySummaries.separate.forEach(function(e){(e.id&&e.id===n||e.collectionId&&e.collectionId.indexOf(i.collectionId)>-1)&&(i=H(i,e))})}else i=H({enableLazy:!1,loadAllOrPag:!1,loadMoreText:"Load More..",alternateImages:!1,buttonsIconColor:"black",buttonsIconStyle:"square-border",buttonsIconSize:"small",buttonsIconAlignment:"center",sortSummaryItems:"no-sort"},i);if(window.customLazySummaries&&window.customLazySummaries["*"]&&window.customLazySummaries["*"].hooks){var u=window.customLazySummaries["*"].hooks.beforeInit;u&&"function"==typeof u&&u(e,i)}i.hideLoadMore?e.addClass("summary-hideLoadMore"):e.removeClass("summary-hideLoadMore");var g=H({},i);i.originalCollectionUrl=g.collectionUrl;var y=i.readMoreText;i.readMoreText="Read More →",i.quickProductViewText="Quick View";var I=e.one(".sqs-product-quick-view-button");I&&(i.quickProductViewText=I.get("innerHTML"));var k=e.one(".summary-read-more-link");if(k&&(i.readMoreText=k.get("textContent")),y&&(i.readMoreText=y),e.config=i,i.startFunction&&"function"==typeof i.startFunction)try{i.startFunction(e,i)}catch(e){console.warn(e)}i.emptySlides&&e.one(".summary-item-list").empty();var C=!i.collectionId,T=e.CustomFilter&&e.CustomFilter.existedItems&&e.CustomFilter.existedItems.size()&&e.CustomFilter.existedItems;if(e._blockItems=C?new Y.NodeList:T||e.all(".summary-item"),e.all(".summary-item:not(.lazy-loaded-item)").each(function(e,t){!e.hasAttribute("data-start-index")&&e.setAttribute("data-start-index",t)}),i.existedItems=C?new Y.NodeList:T||e.all(".summary-item:not(.lazy-loaded-item)"),e.one(".summary-item .slide-custom-link")&&(i.ghostSlideCustomLink=!0),i.startItemsFunction&&"function"==typeof i.startItemsFunction)try{i.existedItems.each(function(e){i.startItemsFunction(e,i)})}catch(e){console.warn(e)}if(Z(e._blockItems),h(e),i.showShareButtons&&"noShare"!==i.showShareButtons&&(f(),e.one(".summary-block-wrapper")&&e.one(".summary-block-wrapper").addClass("summary-block-setting-"+i.showShareButtons+"-metadata-share-buttons"),e.all(".summary-item:not(.share-buttons-inited)").each(function(e){var t=!!e.one("a")&&e.one("a").getAttribute("href"),a=!!e.one(".summary-title-link")&&e.one(".summary-title-link")._node.textContent;if(t&&a){var r=e.all(".summary-metadata");if(r&&r.size()){var n=w({id:"",fullUrl:t,title:a},i);r.each(function(e){e.one(".summary-share-buttons")||e.append(n)}),e.addClass("share-buttons-inited")}}}),E(e)),i.wrapItemsWithLink){e.one(".summary-block-wrapper")&&e.one(".summary-block-wrapper").addClass("summary-block-setting-wrap-items-with-link");var L="";i.followSourceUrl&&(L='target="_blank"'),e.all(".summary-item:not(.lazy-loaded-item)").each(function(e){var t=e.one("a.summary-thumbnail-container")||e.one(".summary-title-link");t=t&&t.getAttribute("href"),!e.one(".summary-wrap-link")&&t&&t&&(e.append('<a href="'+t+'" '+L+' data-ajax-loader="ajax-loader-binded" style="appearance:none;padding:0;margin:0;" class="summary-wrap-link"></a>'),e.one(".summary-wrap-link").append(e.all(".summary-thumbnail-outer-container,.summary-content")),e.addClass("lazy-wrap-link-added"))})}i.showReadMoreLink&&e.all(".summary-item:not(.lazy-loaded-item)").each(function(e){var t=e.one("a.summary-thumbnail-container")||e.one(".summary-title-link");if(e.one(".summary-read-more-link"))e.one(".summary-read-more-link").set("textContent",i.readMoreText),t&&(t=t.getAttribute("href"),e.one(".summary-read-more-link").setAttribute("href",t));else{var a=e.one(".summary-metadata-container--below-title");t&&(t=t.getAttribute("href"),t&&a.insert('<a href="'+t+'" data-ajax-loader="ajax-loader-binded" class="summary-read-more-link">'+i.readMoreText+"</a>","after"))}}),i.lightbox&&i.lightboxOverlay&&e.all(".summary-thumbnail-container").setAttribute("data-lightbox-theme",i.lightboxOverlay);var D=!1;if(i.customLazyIndex&&i.customLazyIndexUrl&&(D=i.customLazyIndexUrl.trim()),(!i.collectionId||i.collectionId.length<3)&&(e.one(".sqs-blockStatus--overlayMode")&&e.one(".sqs-blockStatus--overlayMode").remove(),e.one(".summary-item-list")&&e.one(".summary-item-list").empty(),e.one("[data-block-state]")&&e.one("[data-block-state]").removeAttribute("data-block-state")),i.collectionUrl=D||(i.collectionUrl?i.collectionUrl:e.one(".summary-title-link")?"/"+e.one(".summary-title-link").get("pathname").split("/")[1]:""),i.collectionUrl&&0!==i.collectionUrl.indexOf("/")&&(i.collectionUrl="/"+i.collectionUrl),e.LazySummariesData=i,e._node&&(e._node.LazySummariesData=i),e.LazySummariesData&&e.LazySummariesData.enableExcerptHTML&&e.all(".summary-excerpt:not(.unescaped-html)").each(function(e){e.set("innerHTML",r(e.get("innerHTML"))),e.addClass("unescaped-html")}),i.startRenderFunction&&"function"==typeof i.startRenderFunction)try{i.startRenderFunction(e,i)}catch(e){console.warn(e)}if(i.collectionUrl&&i.enableLazy||i.collectionUrl&&i.alternateImages||i.collectionUrl&&i.enableLazyBody){J("Summary ID: #"+e.getAttribute("id")+"\nCollection Url: "+i.collectionUrl),e.addClass("lazy-summary-enabled"),e.one(".lazy-loading-status")||e.append('<div class="lazy-loading-status sqs-spin hide-after-spin"><div class="sqs-spin-content"></div></div>'),oe&&console.log(i),i.isEventsCollection=o,i.startItems=s;var A=v(e),q=i.useSessionCache||!1;i.enableLazyFilter||!i.filter||!i.filter.tag&&!i.filter.category||D||(i.collectionUrl+=i.filter.category&&(!i.filter.categoryIds||i.filter.categoryIds&&!i.filter.categoryIds.length)?"?category="+i.filter.category.trim().replace(/\#/g,"%23").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/%20/g,"+").replace(/&/g,"%26"):"?",i.collectionUrl+=i.filter.tag?(i.collectionUrl.indexOf("?")>-1&&i.collectionUrl.indexOf("category=")>-1?"&":"")+"tag="+i.filter.tag.trim().replace(/\#/g,"%23").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/%20/g,"+").replace(/%20/g,"+").replace(/&/g,"%26"):""),i.enableLazy&&e.addClass("lazy-summary-loading"),i.getCollectionItems&&(i.getFromStorage=S,i.saveToStorage=_,x=i.getCollectionItems);var O=!1,P=i.filter&&(i.filter.featured||i.filter.category||i.filter.tag||i.filter.categoryIds),B=function(a){if(a.items&&a.items.length&&a.nestedCategories&&(a.nestedCategories.tree||a.nestedCategories.categoriesHash)&&a.items.forEach(function(e){e.categoryIds&&(e.categories=R(a,e))}),i.transformExternalDataFunction&&"function"==typeof i.transformExternalDataFunction)try{a=i.transformExternalDataFunction(a,i)||a}catch(e){console.warn(e)}if(i.summItems=a.items,i.isEventsCollection&&a[i.showPastOrUpcomingEvents]&&a[i.showPastOrUpcomingEvents].length&&(i.summItems=a[i.showPastOrUpcomingEvents],i.allEvents&&(i.summItems=a.upcoming.concat(a.past))),i.customLazyIndex&&i.customLazyIndexUrl&&-1==i.customLazyIndexUrl.indexOf("://")&&i.isEventsCollection&&!i.allEvents&&(i.summItems=i.summItems.filter(function(e){return e[i.showPastOrUpcomingEvents]})),P&&(i=N(i,e,a)),!O){e.removeClass("lazy-summary-loading"),e.addClass("lazy-summary-loaded");var n=i.existedItems,o=n.size(),m=i.summItems.length;if(o){var u=[],f=function(t,a,r,n){if(t&&!t._node.attrsSet){var o=a.body||"";t.setAttribute("data-id",a.id),t.setAttribute("data-like-count",a.likeCount);var l=a.likeCount||0;if(t.setAttribute("data-like-count",l),s.push(a.id),a.summ_config=g,i.addCatTagClasses&&"none"!==i.addCatTagClasses){var m="";"categories"!=i.addCatTagClasses&&"both"!=i.addCatTagClasses||a.categories&&a.categories.length&&a.categories.forEach&&a.categories.forEach(function(e){m+=" lzs-category-"+c(e)}),"tags"!=i.addCatTagClasses&&"both"!=i.addCatTagClasses||a.tags&&a.tags.length&&a.tags.forEach&&a.tags.forEach(function(e){m+=" lzs-tag-"+c(e)}),t._node.className+=m}if(i.renderItemDataFunction&&"function"==typeof i.renderItemDataFunction)try{a=i.renderItemDataFunction(a,i)||a}catch(e){console.warn(e)}if(t._node._LZSData=a,i.afterRenderItemFunction&&"function"==typeof i.afterRenderItemFunction)try{t=i.afterRenderItemFunction(t,a)||t}catch(e){console.warn(e)}if(a.starred&&t.addClass("item-featured"),i.followSourceUrl){var p=a.clickthroughUrl&&a.clickthroughUrl!=a.urlId?a.clickthroughUrl:a.sourceUrl&&a.sourceUrl!=a.urlId?a.sourceUrl:a.fullUrl;t.all("a.summary-wrap-link,a.summary-title-link, a.summary-thumbnail-container, a.summary-read-more-link").setAttribute("target","_blank").setAttribute("href",p)}delete a.summ_config;var f=t.one(".summary-thumbnail-container");if(f&&!f.getAttribute("data-description")&&a.excerpt&&f.setAttribute("data-description",a.excerpt),i.lightbox,i.enableLazyBody)if(t.one(".excerpt-as-body-inited")&&t.one(".excerpt-as-body-inited").remove(),f&&!f.getAttribute("data-description")&&f.setAttribute("data-description",o),t.one(".summary-excerpt")&&!t.one(".summary-excerpt").hasClass("excerpt-as-body-inited"))t.one(".summary-excerpt")._node.innerHTML=o,t.one(".summary-excerpt").addClass("excerpt-as-body-inited");else if(t.one(".summary-metadata-container--below-content")){var y=Y.Node.create('<div class="summary-excerpt excerpt-as-body-inited">'+o+"</div>");t.one(".summary-metadata-container--below-content").insert(y,"before")}i.alternateImages&&G(e,i,a,t),u.push(a),t._node.attrsSet=!0;try{(a.sold||a.structuredContent&&a.structuredContent.productType&&(Y.Squarespace.Commerce.soldOut(a)||!d(a)))&&t.addClass("sold-out"),(a.sale||a.structuredContent&&a.structuredContent.productType&&Y.Squarespace.Commerce.onSale(a))&&t.addClass("on-sale")}catch(e){console.log(e)}}},y=e.CustomFilter?e.CustomFilter.items.toFrag():e,w=!y.one("a.summary-title-link")&&!y.one("a.summary-thumbnail-container")&&y.one(".summary-excerpt"),v=function(e,t,a,r,n,i){if(e.one(".summary-thumbnail-container img")){var o=i&&a&&e.all('[data-src*="'+a+'"]').size()?e.one('[data-src*="'+a+'"]'):i&&r&&e.all('[data-src*="'+r+'"]').size()?e.one('[data-src*="'+r+'"]'):n&&e.one('[data-src*="'+n+'"]');return o}return!1};if(y&&n.size()){for(var S=0;S<i.summItems.length;S++)if(u.length<m){var _=i.summItems[S],I=_.clickthroughUrl||_.passthrough&&_.sourceUrl||_.fullUrl;I.indexOf("target=")>-1&&(I=I.split("target=")[0].trim().replace(/"/g,"").replace(/'/g,""));var k=_.id,C=(_.tags&&(_.tags+"").replace(/, /g,""),_.categories&&(_.categories+"").replace(/, /g,""),_.systemDataId?_.systemDataId:!(!_.items||!_.items.length)&&_.items[0].systemDataId),T=_.mainImage?_.mainImage.assetUrl:_.systemDataId&&_.assetUrl?_.assetUrl:_.recordTypeLabel&&"lesson"==_.recordTypeLabel?_.items&&_.items.length&&_.items[0].oembed&&_.items[0].oembed.thumbnailUrl:_.items&&_.items.length&&_.items[0].assetUrl,x=_.assetUrl,L=_.title;L&&(L+"").indexOf(";")>-1&&(L=r(L));var D=_.excerpt||(2==_.recordType||8==_.recordType)&&_.body;D.html&&(D=D.html);var q=l(L||D||_.filename),E="title & href logic",U=y.one('[data-id="'+k+'"]'),B=0==I.indexOf("#lightbox_")&&I.replace("#lightbox_","#l-").replace(/\//g,"-");if(U)f(U,_,S,"id logic");else if(w)y.all(".summary-excerpt").some(function(e){if(e.get("innerHTML").trim()==t(D))return f(e.ancestor(".summary-item"),_,S,"excerpt only logic"),!0});else{var j=y.all('.summary-title-link[href="'+I+'"]').size()>1,H=!!(!j&&L&&I&&y.one('.summary-title-link[href="'+I+'"]')&&(y.one('.summary-title-link[href="'+I+'"]').get("innerHTML")&&y.one('.summary-title-link[href="'+I+'"]').get("innerHTML").replace('aria-hidden="true"',"")==L||y.one('.summary-title-link[href="'+I+'"]').get("innerText")&&y.one('.summary-title-link[href="'+I+'"]').get("innerText").replace('aria-hidden="true"',"")==L))&&y.one('.summary-title-link[href="'+I+'"]').ancestor(".summary-item");if(j?y.all('.summary-title-link[href="'+I+'"]').each(function(e){e.get("innerHTML")!=L&&e.get("innerText")!=L||(H=e.ancestor(".summary-item"))}):H||j||(H=L&&I&&y.one('.summary-thumbnail-container[href="'+I+'"][data-title="'+L+'"]')||D&&I&&y.one('.summary-thumbnail-container[href="'+I+'"][data-description]')||B&&y.one('.summary-thumbnail-container[href="'+B+'"]')||B&&y.one('.summary-title-link[href="'+B+'"]'),H&&(L&&H.getAttribute("data-title")==L?(H=H.ancestor(".summary-item"),E="data-title & url logic"):D&&H.getAttribute("data-description")==D?(E="data-description & url logic",H=H.ancestor(".summary-item")):L&&H.get("innerText")==L&&(H=H.ancestor(".summary-item")))),H&&H.one(".summary-thumbnail-container img")){var J=v(H,_,C,T,x,q);J||(H=!1)}if(H)f(H,_,S,E);else{var W=q&&C&&y.all('[data-src*="'+C+'"]').size()?y.all('[data-src*="'+C+'"]'):q&&T&&y.all('[data-src*="'+T+'"]').size()?y.all('[data-src*="'+T+'"]'):x&&y.all('[data-src*="'+x+'"]');if(W&&W.size()&&q&&(W=(W.item(0).getAttribute("alt").trim()==q||l(W.item(0).getAttribute("alt"))==q)&&W.item(0)),W&&W.ancestor&&W.ancestor(".summary-item"))f(W.ancestor(".summary-item"),_,S,"asset logic");else{var V=(8==_.recordType||"video"==_.recordTypeLabel)&&_.oembed&&_.oembed.html;if(V)y.all(".summary-item-record-type-video").some(function(e){var t=e.one(".summary-thumbnail-container>.sqs-video-wrapper");if(t&&t.getAttribute("data-html")==_.oembed.html)return f(e,_,S,"video iframe logic"),!0});else if(y.one(".summary-thumbnail-image")){var Q=I&&y.one('.summary-thumbnail-container[href="'+I+'"]');Q&&1==y.all('.summary-thumbnail-container[href="'+I+'"]').size()?f(Q.ancestor(".summary-item"),_,S,"url only logic "+I):y.one(".summary-thumbnail-image")||y.all(".summary-title-link").some(function(e){if(L&&e&&e.get("textContent")==L)return f(e.ancestor(".summary-item"),_,S,"title only logic"),!0})}else{var X=I&&y.all('.summary-title-link[href="'+I+'"]');X=1===X.size()&&X.item(0),X&&!X.one(".summary-thumbnail-image")?f(X.ancestor(".summary-item"),_,S,"url only logic"):y.all(".summary-title-link").some(function(e){if(e&&e.get("textContent")==L)return f(e.ancestor(".summary-item"),_,S,"title only logic"),!0})}}}}}e.CustomFilter&&e.CustomFilter.addVirtualItems&&e.CustomFilter.addVirtualItems(n,u,i.ajaxData)}h(e)}if(i.enableLazyBody&&window.Squarespace&&window.Squarespace.initializeLayoutBlocks&&window.Squarespace.initializeLayoutBlocks(Y,e),Y.fire("lazy-summary-start-items-processed",e),i.portionItemsAddedFunction&&"function"==typeof i.portionItemsAddedFunction)try{i.portionItemsAddedFunction(e,i)}catch(e){console.warn(e)}}if(P||(i=N(i,e,a)),i.ajaxData=a,i.hasOwnProperty("enableLazyFilter")&&!i.enableLazyFilter&&(i.lazyFilter={}),i.lazyFilter&&i.lazyFilter.customLogic&&(i.summItems=i.lazyFilter.customLogic(i.summItems,i.currentItem,{arrayMatch:p})||i.summItems),i.enableLazy){window._lzs_timelog&&console.time("LZS buildItems"),e.one(".summary-item .slide-custom-link")&&(i.ghostSlideCustomLink=!0);var $=e.one(".summary-item:not(.lazy-loaded-item) .summary-content")||e.one(".summary-item:not(.lazy-loaded-item) .summary-thumbnail");$&&["preFade","preScale","preSlide","preClip","preFlex"].forEach(function(e,t){$.get("className").indexOf(e)>-1&&(i.SSAnim=e)}),z(A,i,g).then(function(t){if(t&&t.size()&&i.ghostSlideCustomLink&&t.each(function(e){if(!e.hasClass("restyled")){var t=e.one(".summary-title-link"),a=e.one('a[href="#read-duration"]'),r=e.one(".summary-metadata-container--below-content");if(t&&e.prepend('<a class="slide-custom-link" href="'+t.getAttribute("href")+'"></a>'),a&&r){var n=a.get("textContent")||"Read More";r.append('<div class="read-duration">'+n+"</div>")}}}),window._lzs_timelog&&console.timeEnd("LZS buildItems"),Z(t),window._lzs_timelog&&console.time("LZS sortItems"),e.config&&e.config.sortSummaryItems&&"no-sort"!=e.config.sortSummaryItems&&(t=h(e,t)),i.__current=t,window._lzs_timelog&&console.timeEnd("LZS sortItems"),i.allItemsRenderedFunction&&"function"==typeof i.allItemsRenderedFunction)try{t=i.allItemsRenderedFunction(t,i)||t}catch(e){console.warn(e)}if(e.one(".sqs-gallery")&&e.one(".sqs-gallery").getData("gallery")){var r=e.one(".sqs-gallery").getData("gallery"),n=r["gallery-design"];n&&n._getProperty&&n._getProperty("SLIDE_CLASS")&&t&&t.size()&&t.addClass(n._getProperty("SLIDE_CLASS"))}if(e.CustomFilter&&t&&t.size()&&e.CustomFilter.addVirtualItems){var o=i.isEventsCollection?a[i.showPastOrUpcomingEvents]:a.items;e.CustomFilter.addVirtualItems(t,o,i.ajaxData)}if(i.loadAllOrPag||e.CustomFilter){if(oe&&console.log(i),window._lzs_timelog&&console.time("LZS appendAll"),i.new_items){if(F(i.new_items,e),Y.fire("lazy-items-all-added",e),i.allItemsAddedFunction&&"function"==typeof i.allItemsAddedFunction)try{i.allItemsAddedFunction(e,i)}catch(e){console.warn(e)}i.summItems=[],i.new_items=null}window._lzs_timelog&&console.timeEnd("LZS appendAll")}else{window._lzs_timelog&&console.time("LZS appendPortion");var s=i.loadMoreText?i.loadMoreText:"Load More";if(i.loadPageSize=i.loadPageSize||5,!e.one(".loadMoreButton")&&i.summItems&&i.summItems.length&&e.one(".summary-block-wrapper")){e.one(".summary-item-list-container").append('<div class="sqs-block-button sqs-block loadMoreButtonWrapper" style="display:inline-block;width:100%;float:none;margin-top:'+i.gutter/2+'px"><div class="sqs-block-button-container sqs-block-button-container--center" data-alignment="center"><button class="loadMoreButton sqs-block-button-element--small sqs-block-button-element" style="opacity: 0;" data-page-size="'+i.loadPageSize+'">'+s+"</button></div></div>"),e.one(".loadMoreButton").setAttribute("data-items-left",i.new_items.size()),e.one(".loadMoreButton").show(!0);var l=function(t){t&&t.halt&&t.halt();var a=t&&t.currentTarget?parseInt(t.currentTarget.getAttribute("data-page-size")):t&&t.size?t.size:i.loadPageSize;if(i.ajaxData&&i.summItems)if(i.new_items&&i.new_items.size()){var r=new Y.NodeList(i.new_items._nodes.splice(0,a));if(F(r,e),Y.fire("lazy-items-portion-added",e),i.portionItemsAddedFunction&&"function"==typeof i.portionItemsAddedFunction)try{i.portionItemsAddedFunction(e,i)}catch(t){console.warn(t)}i.new_items&&e.one(".loadMoreButton").setAttribute("data-items-left",i.new_items.size()),i.new_items&&i.new_items.size()||(e.one(".loadMoreButtonWrapper").hide(!0),e.__scrollObserver&&(e.__scrollObserver.disconnect(),delete e.__scrollObserver))}else if(e.one(".loadMoreButtonWrapper").hide(!0),Y.fire("lazy-items-all-added",e),i.allItemsAddedFunction&&"function"==typeof i.allItemsAddedFunction)try{i.allItemsAddedFunction(e,i)}catch(t){console.warn(t)}};if(e.one(".loadMoreButton").on("click",l),i.lazyScroll){let t={root:null,rootMargin:"10px",threshold:1};var c=b(function(){l()},100,!1);e.__scrollObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){c()})},t).observe(e.one(".loadMoreButton")._node)}var m=e.all(".summary-item").size();m<i.pageSize&&l({size:i.pageSize-m})}else if(i.new_items&&e.one(".loadMoreButton")&&e.one(".loadMoreButton").setAttribute("data-items-left",i.new_items.size()),i.__filterActive&&e.CustomFilter&&i.new_items&&i.new_items.size()){if(i.allItemsAddedFunction&&"function"==typeof i.allItemsAddedFunction)try{i.allItemsAddedFunction(e,i)}catch(e){console.warn(e)}i.__all_loaded?e.fire("custom-filter:sort-grid",{customFilter:e.CustomFilter}):(F(i.new_items,e),i.summItems=[],i.new_items=null)}window._lzs_timelog&&console.timeEnd("LZS appendPortion")}e.__customFilter_filteringEvent||(e.__customFilter_filteringEvent=e.on("custom-filter:sort-grid",function(t){t&&t.customFilter&&!t.customFilter.all_lazy_added&&(t.customFilter.searchRegex||t.customFilter.filter_selectors||t.customFilter.sort_param)&&(i.__filterActive=!0,i.__all_loaded&&(t.customFilter.all_lazy_added=!0,i.new_items&&i.new_items.size()&&(t.customFilter.waitingForNewItems=!0,F(i.new_items,e),e.one(".loadMoreButton")&&(e.one(".loadMoreButton").setAttribute("data-items-left",0),e.one(".loadMoreButtonWrapper").hide()),Y.fire("lazy-items-all-added",e),i.summItems=[],i.new_items=null)))})),i.__all_loaded&&e.CustomFilter&&e.hasClass("cf-loadMoreButton-enabled")&&e.CustomFilter._sortGrid(),t&&!t.size()&&M(e)})}else M(e);O=!0};if(i.followSourceUrl&&e.all("a.summary-title-link,a.summary-thumbnail-container,.summary-read-more-link").setAttribute("target","_blank"),i.getItems&&"function"==typeof i.getItems)try{var j=i.getItems(i);j.then?j.then(function(e){B(e)}):B(j)}catch(e){console.warn(e)}else x(i.collectionUrl,q,D,e._node.LazySummariesData,e).then(B)}else e.LazySummariesData=null,e._node&&(e._node.LazySummariesData=null),i.followSourceUrl&&e.all("a.summary-title-link,a.summary-thumbnail-container,.summary-read-more-link").setAttribute("target","_blank"),M(e);e.on("custom-filter:gallery-refresh",function(){M(e)}),e.one(".sqs-gallery")&&e.one(".sqs-gallery").getData("gallery")&&e.one(".sqs-gallery").getData("gallery").refresh()}function j(e){e.all(".summary-thumbnail-image-alternate").each(function(e){e&&(e.loader?(e.loader.set("mode","fill"),e.fire("refresh")):Y.Squarespace.Loader2?e.plug(Y.Squarespace.Loader2,{mode:"fill",load:!0}):window.ImageLoader&&(window.ImageLoader.loadLazy?window.ImageLoader.loadLazy(e._node,{mode:"cover",load:!0,useAdvancedPositioning:!0}):window.ImageLoader.load(e._node,{mode:"cover",load:!0,useAdvancedPositioning:!0})))})}function G(e,t,a,r){if(t.startItems.indexOf(a.id)>-1&&t.alternateImages&&(a.items&&a.items.length&&a.items.length>1||a.alt_image)){var n=r?r.one(".summary-thumbnail-container"):e.one('.summary-item[data-id="'+a.id+'"] .summary-thumbnail-container');if(n){if(!n.one(".summary-thumbnail-image-alternate")){var i=n.one(".img-wrapper")||n;i.append(A(a.items&&a.items.length&&a.items[1]||a.alt_image,t.imageAspectRatio))}var o=n.one(".summary-thumbnail-image-alternate");o&&(o.loader?o.loader.set("mode","fill"):window.ImageLoader.loadLazy?window.ImageLoader.loadLazy(o._node,{mode:"cover",load:!0,useAdvancedPositioning:!0}):window.ImageLoader.load(o._node,{mode:"cover",load:!0,useAdvancedPositioning:!0})),setTimeout(function(){o&&o.fire("refresh")},200)}}}function H(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]&&"object"==typeof t[a]?H(e[a],t[a]):e[a]=t[a]);return e}function J(e){try{var t=window.Static&&Static.SQUARESPACE_CONTEXT,a=!!e&&c(e);if(a&&window.___sqs_plugins_ga&&window.___sqs_plugins_ga[a])return;var r={pluginName:"Lazy Summaries",pluginPage:t&&t.website.baseUrl?t.website.baseUrl+location.pathname:location.href,pageTitle:document.title,pluginData:e||"No plugin data",siteTitle:t&&t.website.siteTitle||"",siteUrl:t&&t.website.baseUrl||location.origin};a&&(window.___sqs_plugins_ga||(window.___sqs_plugins_ga={}),window.___sqs_plugins_ga[a]=!0),setTimeout(function(){if(pe){var e=new XMLHttpRequest;e.open("POST","https://tools.squarewebsites.org/api/sqs-plugins",!0),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.send(JSON.stringify(r))}},3e4)}catch(e){console.log(e)}}function W(e,t,a,r){var i=document.createElement("script");i.src=e+"?cache="+n(),i.onload=function(){r&&this.remove(),a&&a(null,{nodes:[this]})},t.appendChild(i)}function V(e){try{if(window.Y&&Y.Squarespace&&Y.Squarespace.GalleryDesigns2&&Y.Squarespace.GalleryDesigns2.autocolumns){if(e=e||Y.Squarespace.GalleryDesigns2.autocolumns.prototype,e.overrided)return;e._syncUI=function(){var e=this.get("host");this.block=this.block||e.get("container").ancestor(".sqs-block");var t=this.block&&this.block.getAttribute("data-block-json")&&JSON.parse(this.block.getAttribute("data-block-json"))||this.block&&this.block.config||this.getAttrs();if(t){var a=window.matchMedia&&window.matchMedia("(max-width: 640px)").matches?640:window.matchMedia&&window.matchMedia("(max-width: 1024px) and (min-width: 640px)").matches?642:window.innerWidth,r=(e=e||this.get("host"),e.get("container").get("offsetWidth")),n=this.get("aspectRatio"),i=a<641&&t&&t.mobileSettings,o=a<1025&&641<a&&t&&t.tabletSettings,s=i&&t.mobileColumnWidth?parseInt(t.mobileColumnWidth):this.get("columnWidth"),l=i&&t.hasOwnProperty("mobileGutter")?parseInt(t.mobileGutter):o&&t.hasOwnProperty("tabletGutter")?parseInt(t.tabletGutter):parseInt(this.get("gutter")),c=Math.min(l,this.get("columnWidth")),m=this.get("mixedContent"),u="min"===this.get("columnWidthBehavior")?"floor":"ceil",d=Math[u](r/s);d=i&&t.mobileColumns?parseInt(t.mobileColumns):o&&t.tabletColumns?parseInt(t.tabletColumns):t&&t.useNumberInRow&&t.itemsInRow?parseInt(t.itemsInRow):Math.max(d,1);for(var g=(r-c*(d-1))/d,p=Math.floor(g),f=[],y=0;y<d;y++)f[y]=0;try{this._evaluateBricks()}catch(e){}e.get("slides").each(function(e,t){var a=t%d;n||(a=f.indexOf(Math.min.apply(Math,f)));var i=p*a;0!==a&&(i+=c*a);var o,s=p;o=n?s/n:this._getBrickHeight(e,t,s),a===d-1&&p!==g&&(s=r-i,m||e.one(".sqs-video-wrapper")||e.addClass("slide-stretched"));var l={top:f[a]+"px",left:i+"px",width:s+"px",height:o+"px"};e.setStyles(l),o+=c,f[a]+=o},this),e.get("container").setStyle("height",Math.max.apply(Math,f)-c+"px"),Y.later(20,this,this.loadItems)}},e.overrided=!0}}catch(e){console.log(e,"Can't change autocolumns handle")}}function Q(e){try{if(window.Y&&Y.Squarespace&&Y.Squarespace.GalleryDesigns2&&Y.Squarespace.GalleryDesigns2.carousel)return e=e||Y.Squarespace.GalleryDesigns2.carousel.prototype,!e.overrided&&(e._getSlidesPerRow=function(){var e=this.get("slidesPerRowOriginal"),t=this.get("host");this.block=this.block||t.get("container").ancestor(".sqs-block"),this.blockId=this.block&&this.block.getAttribute("id");var a=this.block&&this.block.getAttribute("data-block-json")&&JSON.parse(this.block.getAttribute("data-block-json"))||this.block&&this.block.config||this.getAttrs(),r=window.matchMedia&&window.matchMedia("(max-width: 640px)").matches?640:window.matchMedia&&window.matchMedia("(max-width: 1024px) and (min-width: 640px)").matches?642:window.innerWidth,n=r<641&&a&&a.mobileSettings,i=r<1025&&641<r&&a&&a.tabletSettings;return this.gutter=n&&a.hasOwnProperty("mobileGutter")?parseInt(a.mobileGutter):i&&a.hasOwnProperty("tabletGutter")?parseInt(a.tabletGutter):this.gutter,this.customGutter=n||i||this.gutter,a&&this.customGutter?(e=n&&a.mobileColumns?parseInt(a.mobileColumns):i&&a.tabletColumns?parseInt(a.tabletColumns):e,e):window.innerWidth<480&&1<e?2:window.innerWidth<724&&2<e?3:e},e.goToGroup=function(e){var t="-"+(100*e+e*this.customGutterWidth)+"%";this.get("host").get("container").setStyle("transform","translatex("+t+")"),this.set("currentGroup",e)},e._setSlideStyles=function(){this.styles="#{{blockId}} .sqs-gallery-design-carousel-slide{width:{{sWidth}};padding-right:{{padding}};padding-left:{{padding}}}#{{blockId}} .img-wrapper,#{{blockId}} .intrinsic-inner {position:relative;padding-bottom:{{aspect}}}";var e=this.get("host"),t=e.get("container"),a=t.width(),r=this.get("slidesPerRow"),n=this.hasOwnProperty("gutter")&&this.gutter&&this.customGutter?parseInt(this.gutter)/a*100:this.get("gutter"),i=this._getProperty("CONTAINER_CLASS")+"-slides-in-view-";t.removeClass(i+".*"),t.addClass(i+r);var o=n+"%";this.customGutterWidth=n;var s=this.get("aspectRatio");t.setStyle("marginLeft","-"+o),t.all(".intrinsic-inner").setStyle("");var l={blockId:this.blockId,padding:o,sWidth:100/r+n/r+"%",aspect:s?(100/s).toFixed(2)+"%":0},c=u(this.styles,l);a>0&&(g(c,"summary-carousel-"+this.blockId,this.block),t.all("img").each(function(e){e.fire("refresh")}),t.all(".summary-item").addClass("positioned"),Y.later(20,this,this.loadItems))},e.overrided=!0,!0)}catch(e){console.log(e,"Can't change carousel handle")}}function X(e){try{if(window.Y&&Y.Squarespace&&Y.Squarespace.GalleryDesigns2&&Y.Squarespace.GalleryDesigns2.autogrid)return e=e||Y.Squarespace.GalleryDesigns2.autogrid.prototype,!e.overrided&&(e._syncUI=function(){this.styles="#{{blockId}} .sqs-gallery {margin-bottom: -{{margin}};}#{{blockId}} .sqs-gallery-design-autogrid-slide:nth-child({{nth}}n){margin-right:0}#{{blockId}} .sqs-gallery-design-autogrid-slide:nth-child({{nth}}n+1){clear:left}#{{blockId}} .sqs-gallery-design-autogrid-slide{width:{{sWidth}};margin-right:{{margin}};margin-bottom:{{margin}}}#{{blockId}} .img-wrapper,#{{blockId}} .intrinsic-inner {position:relative;padding-bottom:{{aspect}}}";var e=this.get("host"),t=window.matchMedia&&window.matchMedia("(max-width: 640px)").matches?640:window.matchMedia&&window.matchMedia("(max-width: 1024px) and (min-width: 640px)").matches?642:window.innerWidth;this.block=this.block||e.get("container").ancestor(".sqs-block"),this.blockId=this.block&&this.block.getAttribute("id");var a=this.block&&this.block.getAttribute("data-block-json")&&JSON.parse(this.block.getAttribute("data-block-json"))||this.block&&this.block.config||this.getAttrs();if(a){var r=e.get("container"),n=r.width(),i=t<641&&a&&a.mobileSettings,o=t<1025&&641<t&&a&&a.tabletSettings,s=i&&a.mobileColumnWidth?parseInt(a.mobileColumnWidth):this.get("columnWidth"),l=i&&a.hasOwnProperty("mobileGutter")?parseInt(a.mobileGutter):o&&a.hasOwnProperty("tabletGutter")?parseInt(a.tabletGutter):parseInt(this.get("gutter")),c="min"===this.get("columnWidthBehavior")?"floor":"ceil",m=Math[c](n/s);m=i&&a.mobileColumns?parseInt(a.mobileColumns):o&&a.tabletColumns?parseInt(a.tabletColumns):a&&a.useNumberInRow&&a.itemsInRow?parseInt(a.itemsInRow):Math.max(m,1),a&&a.itemsInRow&&r.setAttribute("data-items-in-row",a.itemsInRow);var d=(n-l*(m-1))/m||0,p=this.get("aspectRatio");r.setStyle(""),r.all(".intrinsic-inner").setStyle("");var f={blockId:this.blockId,margin:100*l/n+"%",sWidth:100*d/n+"%",nth:m,aspect:p?(100/p).toFixed(2)+"%":0},y=u(this.styles,f);n>0&&(g(y,"summary-grid-"+this.blockId,this.block),r.all("img").each(function(e){e.fire("refresh")}),r.all(".summary-item").addClass("positioned"),Y.later(20,this,this.loadItems))}},e.overrided=!0,!0)}catch(e){console.log(e,"Can't change autogrid handle")}}function $(){ne||(Y.use(["node"],function(e){var t=function(e,t,a){for(void 0===a&&(a=10),t+="";parseInt(e,10)<a&&1<a;a/=10)e=t+e;return e.toString()},a={formats:{a:function(e,t){return t.a[e.getDay()]},A:function(e,t){return t.A[e.getDay()]},b:function(e,t){return t.b[e.getMonth()]},B:function(e,t){return t.B[e.getMonth()]},C:function(e){return t(parseInt(e.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(e){return t(parseInt(a.formats.G(e)%100,10),0)},G:function(e){var t=e.getFullYear(),r=parseInt(a.formats.V(e),10);return e=parseInt(a.formats.W(e),10),e>r?t++:0===e&&52<=r&&t--,t},H:["getHours","0"],I:function(e){return e=e.getHours()%12,t(0===e?12:e,0)},j:function(e){var a=new Date(e.getFullYear()+"/1/1 GMT");return e=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" GMT")-a,e=parseInt(e/6e4/60/24,10)+1,t(e,0,100)},k:["getHours"," "],l:function(e){return e=e.getHours()%12,t(0===e?12:e," ")},m:function(e){return t(e.getMonth()+1,0)},M:["getMinutes","0"],p:function(e,t){return t.p[12<=e.getHours()?1:0]},P:function(e,t){return t.P[12<=e.getHours()?1:0]},s:function(e,t){return parseInt(e.getTime()/1e3,10)},S:["getSeconds","0"],u:function(e){return e=e.getDay(),0===e?7:e},U:function(e){var r=parseInt(a.formats.j(e),10);return e=6-e.getDay(),r=parseInt((r+e)/7,10),t(r,0)},V:function(e){var r=parseInt(a.formats.W(e),10),n=new Date(e.getFullYear()+"/1/1").getDay();r+=4<n||1>=n?0:1;return 53===r&&4>new Date(e.getFullYear()+"/12/31").getDay()?r=1:0===r&&(r=a.formats.V(new Date(e.getFullYear()-1+"/12/31"))),t(r,0)},w:"getDay",W:function(e){var r=parseInt(a.formats.j(e),10);return e=7-a.formats.u(e),r=parseInt((r+e)/7,10),t(r,0,10)},y:function(e){return t(e.getFullYear()%100,0)},Y:"getFullYear",z:function(e){e=e.getTimezoneOffset();var a=t(parseInt(Math.abs(e/60),10),0),r=t(Math.abs(e%60),0);return(0<e?"-":"+")+a+r},Z:function(e){var t=e.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");return 4<t.length&&(t=a.formats.z(e)),t},"%":function(e){return"%"}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(r,n){if(n=n||{},!e.Lang.isDate(r))return e.Lang.isValue(r)?r:"";var i,o;i=n.format||"%Y-%m-%d",o=e.Intl.get("datatype-date-format")||e.Intl["datatype-date-format"];for(var s=function(e,t){var r=a.aggregates[t];return"locale"===r?o[t]:r},l=function(n,i){var s=a.formats[i];switch(e.Lang.type(s)){case"string":return r[s]();case"function":return s.call(r,r,o);case"array":if("string"===e.Lang.type(s[0]))return t(r[s[0]](),s[1]);default:return i}};i.match(/%[cDFhnrRtTxX]/);)i=i.replace(/%([cDFhnrRtTxX])/g,s);return i=i.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,l),s=l=void 0,i}};e.mix(e.namespace("Date"),a),e.namespace("DataType"),e.DataType.Date=e.Date}),YUI.add("lang/datatype-date-format_en",function(e){e.Intl&&e.Intl.add("datatype-date-format","en",{a:"Sun Mon Tue Wed Thu Fri Sat".split(" "),A:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),b:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),B:"January February March April May June July August September October November December".split(" "),c:"%a, %b %d, %Y %l:%M:%S %p %Z",p:["AM","PM"],P:["am","pm"],x:"%m/%d/%y",X:"%l:%M:%S %p"})},"3.17.2"),YUI.add("datatype-date-format",function(e,t){},"3.17.2",{lang:"ar ar-JO ca ca-ES da da-DK de de-AT de-DE el el-GR en en-AU en-CA en-GB en-IE en-IN en-JO en-MY en-NZ en-PH en-SG en-US es es-AR es-BO es-CL es-CO es-EC es-ES es-MX es-PE es-PY es-US es-UY es-VE fi fi-FI fr fr-BE fr-CA fr-FR hi hi-IN hu id id-ID it it-IT ja ja-JP ko ko-KR ms ms-MY nb nb-NO nl nl-BE nl-NL pl pl-PL pt pt-BR ro ro-RO ru ru-RU sv sv-SE th th-TH tr tr-TR vi vi-VN zh-Hans zh-Hans-CN zh-Hant zh-Hant-HK zh-Hant-TW".split(" ")}),YUI.add("squarespace-date-utils",function(t){function a(e){return e=t.Intl.get("datatype-date-format")[e],{monday:e[1],tuesday:e[2],wednesday:e[3],thursday:e[4],friday:e[5],saturday:e[6],sunday:e[0]}}var r=new Date,n=t.namespace("Squarespace").DateUtils={LANG:{days:{full:a.call(null,"A"),abbreviated:a.call(null,"a")}},humanizeAllDates:function(e){t.all(e).each(function(e){var a=parseInt(e.getAttribute("data-date"),10);t.Lang.isNumber(a)?e.set("innerHTML",t.Squarespace.DateUtils.humanizeDate(a)):console.warn("Invalid date on node: ",e)})},humanizeDate:function(a,r){t.Lang.isDate(a)&&(a=a.getTime()),t.Lang.isString(a)&&(a=parseInt(a,10));var n=Date.now()-a,i=Math.floor(n/31536e6),o=Math.floor(n/2592e6),s=Math.floor(n/6048e5),l=Math.floor(n/864e5),c=Math.floor(n/36e5),m=Math.floor(n/6e4),u=(n=Math.floor(n/1e3),function(e,t){var a="";return(1==e?a+("hour"===t?"An ":"A ")+t:a+(e+" ")+t+"s")+" ago"});return 0<i?u(i,"year"):0<o?u(o,"month"):0<s?u(s,"week"):0<l?u(l,"day"):0<c?u(c,"hour"):0<m?u(m,"minute"):r?u(n,"second"):e("Just now")},humanizeDuration:function(e){var t=Math.round(e/1e3);return e=Math.floor(t/60),t-=60*e,e+":"+(10>t?"0":"")+t},getContextualDate:function(a){var r=t.Squarespace.DateUtils.dateFormat,n=new Date,i=r(new Date(a)),o=(n=r(n),Date.now()),s=this.getOptimizedTime(a);return a>o+6048e5?r(a,{format:"%b %e, %Y"}):a>o+864e5?r(a,{format:"%A"})+" "+s:n===i?e("Today ")+s:a>o?e("Tomorrow ")+s:864e5>Date.now()-a?e("Yesterday ")+s:6048e5>Date.now()-a?r(a,{format:"%A"})+" "+s:31536e6>Date.now()-a?r(a,{format:"%b %e"}):r(a,{format:"%b %e, %Y"})},getOptimizedTime:function(e){var a=t.Squarespace.DateUtils.dateFormat;return"00"===a(e,{format:"%M"})?a(e,{format:"%l%P"}):a(e,{format:"%l:%M%P"})},dateFormat:function(a,i){if(i=i||{},i.format=i.format||"%B %e, %Y",a)if(t.Lang.isDate(a)||!t.Lang.isNumber(a)&&!t.Lang.isString(a)){if(isNaN(a.getTime()))return e("Invalid Date")}else a=new Date(a);else a=new Date;if(!t.Lang.isValue(t.Object.getValue(Static,["SQUARESPACE_CONTEXT","tzData"])))return t.DataType.Date.format(a,i);var o=r(a),s=new Date(a.getTime()),l=s.getTimezoneOffset()+o.utcOffset;return s.setMinutes(s.getMinutes()+l),t.Lang.isString(t.Object.getValue(i,["format"]))&&(o.abbreviation&&(i.format=i.format.replace(/%Z/g,o.abbreviation.replace("%s",""))),i.format=n.fixYUIFormatForMissingDate(a,i.format,o)),t.DataType.Date.format(s,i)},fixYUIFormatForMissingDate:function(e,t,a){var r=new Date(e);r.setMinutes(r.getMinutes()+(a.utcOffset+r.getTimezoneOffset()));var n=new Date(e.getTime()+6e4*a.utcOffset);if(r.getHours()==n.getUTCHours())return t;var i={e:function(){return n.getUTCDate()},l:function(){var e=n.getUTCHours()%12;return 0===e?12:e},k:function(){return n.getUTCHours()},H:function(){var e=i.k();return 10>e?"0"+e:e},I:function(){var e=i.l();return 10>e?"0"+e:e},p:function(){return 12>n.getUTCHours()?"AM":"PM"},P:function(){return i.p().toLowerCase()},r:function(){return"%I:%M:%S %p"},T:function(){return"%H:%M:%S"},Z:function(){return a.abbreviation}};for(e=function(e){return e=e.substr(1,1),i[e].call(this).toString()};t.match(/%[elkHIpPrTZ]/);)t=t.replace(/%[elkHIpPrTZ]/g,e);return t},getTimeOffsetToWebsiteTimezone:t.cached(function(e){if(t.Lang.isDate(e))e=e.getTime();else if(!t.Lang.isNumber(e))throw Error("Invalid argument");var a=-new Date(e).getTimezoneOffset();return r(e).utcOffset-a}),createWebsiteDate:function(){var e=new Date(Date.UTC.apply(this,arguments)),t=r(e.getTime());t=t.standardUTCOffset,t=r(e.getTime()-6e4*t),t=t.utcOffset;return e.setMinutes(e.getMinutes()-t),e},shiftForWebsiteTimezoneDisplay:function(e){if(!t.Lang.isValue(e))return null;if(!t.Lang.isValue(t.Object.getValue(Static,["SQUARESPACE_CONTEXT","tzData"])))return new Date(e);e=new Date(e);var a=t.Squarespace.DateUtils.getTimeOffsetToWebsiteTimezone(e);return e.setMinutes(e.getMinutes()+a),e},calculateFullDayOffset:function(e,a){if(!t.Lang.isValue(e)||!t.Lang.isValue(a))return null;var r=function(e){return e=n.shiftForWebsiteTimezoneDisplay(e),e.set({hour:0,minute:0,second:0,millisecond:0}),Math.floor(e.getTime()/864e5)},i=r(e);return r(a)-i},getEnglishDateWithOrdinal:function(e){var t;if(e=this.shiftForWebsiteTimezoneDisplay(e),e=e.getDate(),10<e&&20>e)return e+"th";switch(e%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd";break;default:t="th"}return e+t},calculateDateDiff:function(e,t){if(t<e)return this.calculateDateDiff(t,e);var a=t.getFullYear()-e.getFullYear();t.getMonth()<e.getMonth()&&a--;var r=(t.getMonth()-e.getMonth()+12)%12;if(t.getDate()<e.getDate()){r--;var n=new Date(e.getYear(),e.getMonth()+1,0).getDate()-e.getDate()+t.getDate()}else n=t.getDate()-e.getDate();var i=Math.floor(n/7);return{year:a,month:r,week:i,day:n-7*i}}}},"1.0",{requires:["intl","lang/datatype-date-format_en","squarespace-beforeunload"]}),YUI.add("squarespace-json-template",function(e){function t(e){return e.replace(/([\{\}\(\)\[\]\|\^\$\-\+\?])/g,"\\$1")}function a(e,a){var r=p[e+a];return void 0===r&&(r="("+t(e)+"\\S.*?"+t(a)+"\n?)",r=RegExp(r,"g")),r}function r(e,t){var a=[{context:e,index:-1}];return{PushSection:function(e){return null==e?null:(e="@"==e?a[a.length-1].context:a[a.length-1].context[e]||null,a.push({context:e,index:-1}),e)},Pop:function(){a.pop()},next:function(){var e=a[a.length-1];-1==e.index&&(e={context:null,index:0},a.push(e));var t=a[a.length-2].context;if(e.index!=t.length)return e.context=t[e.index++],!0;a.pop()},_Undefined:function(e){return void 0===t?null:t},_LookUpStack:function(e){for(var t=a.length-1;;){var r=a[t];if("@index"==e){if(-1!=r.index)return r.index}else if(r=r.context,"object"==typeof r&&(r=r[e],void 0!==r))return r;if(t--,-1>=t)return this._Undefined(e)}},get:function(e){if("@"==e)return a[a.length-1].context;var t=e.split("."),r=this._LookUpStack(t[0]);if(1<t.length)for(var n=1;n<t.length;n++){if(null===r)return"";if(r=r[t[n]],void 0===r)return this._Undefined(t[n])}return r}}}function n(e,t,a){for(var r=0;r<e.length;r++){var n=e[r];"string"==typeof n?a(n):(0,n[0])(n[1],t,a)}}function i(e,t,a){var r;r=t.get(e.name);for(var n=0;n<e.formatters.length;n++){var i=e.formatters[n];r=(0,i[0])(r,t,i[1])}a(r)}function c(e,t,a){var r=t.PushSection(e.section_name),i=!1;r&&(i=!0),r&&0===r.length&&(i=!1),i?(n(e.Statements(),t,a),t.Pop()):(t.Pop(),n(e.Statements("or"),t,a))}function m(e,t,a){for(var r=t.get("@"),i=0;i<e.clauses.length;i++){var o=e.clauses[i],s=o[1];if((0,o[0][0])(r,t,o[0][1])){n(s,t,a);break}}}function u(e,t,a){var r=t.PushSection(e.section_name);if(r&&0<r.length){r=r.length-1;var i=e.Statements();e=e.Statements("alternate");for(var o=0;void 0!==t.next();o++)n(i,t,a),o!=r&&n(e,t,a)}else n(e.Statements("or"),t,a);t.Pop()}function d(t,r){function n(t){if(t.startsWith(g)){var a=r.partials[t.substr(g.length)];if(a)return[function(t,r,n){return e.JSONTemplate.evaluateJsonTemplate(a,t)},null];throw{name:"BadPartialInclude",message:t.substr(g)+" is not a valid partial. Remember, loops are not supported (a partial include cannot be included inside itself)."}}var n=s.lookup(t);if(!n[0])throw{name:"BadFormatter",message:t+" is not a valid formatter"};return n}function o(e){var t=l.lookup(e);if(!t[0])throw{name:"BadPredicate",message:e+" is not a valid predicate"};return t}var s=new v([w(e.JSONTemplate.DEFAULT_FORMATTERS),b(e.JSONTemplate.DEFAULT_PREFIX_FORMATTERS)]),l=v([w(e.JSONTemplate.DEFAULT_PREDICATES),b(e.JSONTemplate.DEFAULT_PARAMETRIC_PREDICATES)]),d=r.format_char||"|";if(":"!=d&&"|"!=d)throw{name:"ConfigurationError",message:"Only format characters : and | are accepted"};var p=r.meta||"{}",f=p.length;if(1==f%2)throw{name:"ConfigurationError",message:p+" has an odd number of metacharacters"};for(var y,h,S=p.substring(0,f/2),L=(p=p.substring(f/2,f),f=a(S,p),_({})),D=[L],z=S.length,A=0;y=f.exec(t),null!==y;)if(h=y[0],y.index>A&&(A=t.slice(A,y.index),L.Append(A)),A=f.lastIndex,y=!1,"\n"==h.slice(-1)&&(h=h.slice(null,-1),y=!0),h=h.slice(z,-z),"#"!=h.charAt(0)){if("."==h.charAt(0)){h=h.substring(1,h.length);var q,E={"meta-left":S,"meta-right":p,space:" ",tab:"",newline:"\n"}[h];if(void 0!==E){L.Append(E);continue}if(E=h.match(C)){h=E[3],E[1]?(y=u,h=I({section_name:h})):(y=c,h=_({section_name:h})),L.Append([y,h]),D.push(h),L=h;continue}if(E=h.match(T)){y=(q=E[1])?o(q):null,L.NewOrClause(y);continue}E=!1;var O=h.match(x);if(O){if(q=O[1],E=!0,-1==q.indexOf("?")){y=[function(e){return function(t,a){var r,n,i;if(-1!==e.indexOf(" || ")){for(r=e.split("||"),i=0;i<r.length;i++)if(n=r[i].trim(),a.get(n))return!0;return!1}if(-1!==e.indexOf(" && ")){for(r=e.split(" && "),i=0;i<r.length;i++)if(n=r[i].trim(),!a.get(n))return!1;return!0}return a.get(e)}}(q),null],h=k(),h.NewOrClause(y),L.Append([m,h]),D.push(h),L=h;continue}}else"?"!=h.charAt(h.length-1)&&"?"!=h.split(" ")[0].charAt(h.split(" ")[0].length-1)||(q=h,E=!0);if(E){y=q?o(q):null,h=k(),h.NewOrClause(y),L.Append([m,h]),D.push(h),L=h;continue}if("alternates with"==h){L.AlternatesWith();continue}if("end"==h){if(D.pop(),!(0<D.length))throw{name:"TemplateSyntaxError",message:"Got too many {end} statements"};L=D[D.length-1];continue}}if(O=h.split(d),1==O.length)E=[n("str")];else{for(E=[],h=1;h<O.length;h++)E.push(n(O[h]));h=O[0]}L.Append([i,{name:h,formatters:E}]),y&&L.Append("\n")}if(L.Append(t.slice(A)),1!==D.length)throw{name:"TemplateSyntaxError",message:"Got too few {end} statements."};return L}e.namespace("JSONTemplate");var g="apply ",p={},f={"has-multiple?":function(e){return 1<e.length},"main-image?":function(e){return!!e.mainImageId||!!e.systemDataId},"video?":function(e){return 8==e.recordType||"video"===e.recordTypeLabel},"lesson?":function(e){return 62==e.recordType||"lesson"===e.recordTypeLabel},"child-images?":function(e){return!!(e.items&&0<e.items.length&&(e=e.items[0],e.mainImageId||e.systemDataId))},"location?":function(e){return e.location&&e.location.mapLat&&e.location.mapLng},"excerpt?":function(e){return!c(e.excerpt&&(e.excerpt.html||e.excerpt)||"")},"collection?":function(e){return e.collection},"collection-page?":function(e){return e.collection&&10===e.collection.type},"passthrough?":function(e){return e.passthrough&&e.sourceUrl&&""!==e.sourceUrl},"event?":function(e){return 12==e.recordType},"external-link?":function(e){return!!e.externalLink},"folder?":function(e){return e.collection&&e.collection.folder},"index?":function(e){return 1===Y.Object.getValue(e,["collection","folder","folderBehavior"])},"variation?":function(e){return 4===Y.Object.getValue(e,["collection","folder","folderBehavior"])},"singular?":function(e){return 1===e},"plural?":function(e){return 1!==e},"serviceNameEmail?":function(e,t){return"email"===e.serviceName},"has-variants?":function(e){return Y.Squarespace.Commerce.hasVariants(e)},"varied-prices?":function(e){return Y.Squarespace.Commerce.variedPrices(e)},"on-sale?":function(e){return Y.Squarespace.Commerce.onSale(e)},"sold-out?":function(e){return Y.Squarespace.Commerce.soldOut(e)}},y={html:o,htmltag:s,htmlattr:s,str:function(e){if(null==e)return"";try{return e.toString()}catch(t){return"[JSONT: Can't format variable as string (typeof: "+typeof e+").]"}},raw:function(e){return e},capitalize:function(e){return e.toUpperCase()},safe:function(e){return e?e.replace(/<.*?>/g,""):""},json:function(e){return Y.JSON.stringify(e).replace(/<\/script>/g,'</scr"+"ipt>')},smartypants:function(e){return e=e.replace(/(^|[-\u2014\s(\["])'/g,"$1‘"),e=e.replace(/'/g,"’"),e=e.replace(/(^|[-\u2014/\[(\u2018\s])"/g,"$1“"),e=e.replace(/"/g,"”"),e.replace(/--/g,"—")},slugify:function(e){return e?e.replace(/[^\-a-zA-Z0-9\s]+/gi,"").replace(/\s/g,"-").toLowerCase():""},"url-encode":function(e){return encodeURIComponent(e)},count:function(e){var t=e.length;if(null==t&&"object"==typeof e)for(w in t=0,e)Object.prototype.hasOwnProperty.call(e,w)&&t++;return t||0},"image-meta":function(e){if(e){var t,a="0.5,0.5";return e.mediaFocalPoint&&(a=e.mediaFocalPoint.x+","+e.mediaFocalPoint.y),e.title&&0<e.title.length&&(t=e.title),!t&&e.body&&0<e.body.length&&(t=e.body.replace(/<(?:.|\n)*?>/gm,"")),!t&&e.filename&&0<e.filename.length&&(t=e.filename),t&&(t=l(t)),'data-image="'+e.assetUrl+'" data-src="'+e.assetUrl+'" data-image-dimensions="'+(e.originalSize||"")+'" data-image-focal-point="'+a+'" alt="'+t+'" '}},round:function(e,t,a){return Math.round(parseFloat(e))},"product-status":function(e){return Y.Squarespace.Commerce.soldOut(e)?'<div class="product-mark sold-out">sold out</div>':Y.Squarespace.Commerce.onSale(e)?'<div class="product-mark sale">sale</div>':void 0},"money-string":function(e){return Y.Squarespace.Commerce.moneyString(e)},"product-price":function(e){return'<div class="product-price">'+Y.Squarespace.Commerce.priceString(e)+"</div>"},"from-price":function(e){return Y.Squarespace.Commerce.fromPrice(e)},"normal-price":function(e){return Y.Squarespace.Commerce.normalPrice(e)},"sale-price":function(e){return Y.Squarespace.Commerce.salePrice(e)},"variant-descriptor":function(e){return Y.Squarespace.Commerce.variantFormat(e)},"color-weight":function(e){return e&&0<e.length&&7>=e.length?(e=e.replace("#",""),8388607.5<parseInt(e,16)?"light":"dark"):""},"summary-form-field":function(e){return Y.Squarespace.Commerce.summaryFormFieldString(e)},pluralize:function(e,t){var a,r;switch(t.length){case 0:a="",r="s";break;case 1:a="",r=t[0];break;case 2:a=t[0],r=t[1];break;default:throw Error("pluralize got too many args")}return 1===e?a:r}},h=e.Squarespace.TEMPLATE_PREFIX_FORMATTERS||[];e.JSONTemplate.DEFAULT_FORMATTERS=e.Squarespace.TEMPLATE_FORMATTERS||y,e.JSONTemplate.DEFAULT_PREFIX_FORMATTERS=[].concat(h,[{name:"pluralize",func:function(e,t,a){switch(a.length){case 0:t="",a="s";break;case 1:t="",a=a[0];break;case 2:t=a[0],a=a[1];break;default:throw{name:"EvaluationError",message:"pluralize got too many args"}}return 1==e?t:a}},{name:"encode-space",func:function(e,t,a){return e.replace(/\s/g,"&nbsp;")}},{name:"truncate",func:function(e,t,a){return t=a[0]||100,a=a[1]||"...",e&&e.length>t&&(e=e.substring(0,t),e=e.replace(/\w+$/,""),e+=a),e}},{name:"date",func:function(t,a,r){var n=0;n=new Date(t).getTimezoneOffset();if(!e.Lang.isNumber(t))return"Invalid date.";if("undefined"!=typeof TimezoneJS){var i;try{i=new TimezoneJS.Date(t,a.get("website.timeZone"))}catch(e){return"Invalid Timezone"}n=(isNaN(i.getTimezoneOffset())?0:i.getTimezoneOffset())-n}else a=-parseInt(Static.SQUARESPACE_CONTEXT.website.timeZoneOffset,10)/6e4,i=(new Date).getTimezoneOffset(),n=a-i;return t=new Date(t-6e4*n),r=r.join(" "),e.DataType.Date.format(t,{format:r})}},{name:"image",func:function(e,t,a){var r;return e.mediaFocalPoint&&(r=e.mediaFocalPoint.x+","+e.mediaFocalPoint.y),'<img class="'+(a[0]?a[0]:"thumb-image")+'" '+(e.title?'alt="'+l(e.title)+'" ':"")+' data-image="'+e.assetUrl+'" data-image-dimensions="'+e.originalSize+'" data-image-focal-point="'+r+'"/>'}},{name:"video",func:function(e,t,a){var r=e.oembed||e.structuredContent&&e.structuredContent.oembed||{},n=e.assetUrl,i=e.mediaFocalPoint,o=!1,l=!1,c=e.colorData;if(a)for(var m=0;m<a.length;m++){var u=a[m];"load-false"===u?o=!0:"color-data"===u&&(l=!0)}var d='<div class="sqs-video-wrapper" '+(o?'data-load="false" ':"")+'data-html="'+s(r.html)+'" data-provider-name="'+r.providerName+'">';if(e.overlay){var g='<div class="sqs-video-overlay';e.mainImageId||e.systemDataId?(g+='" style="opacity: 0;">',g+='<img data-load="false" data-image="'+n+'" data-src="'+n+'" data-image-dimensions="'+(e.originalSize||"")+'" data-image-focal-point="'+(i?i.x+","+i.y:"0.5,0.5")+'" ',l&&c&&(g+='data-color-topleft="#'+c.topLeftAverage+'" data-color-topright="#'+c.topRightAverage+'" data-color-bottomleft="#'+c.bottomLeftAverage+'" data-color-bottomright="#'+c.bottomRightAverage+'" data-color-center="#'+c.centerAverage+'" '),g+="/>"):g+=' no-thumb" style="opacity: 0;">',g+='<div class="sqs-video-opaque"> </div><div class="sqs-video-icon"></div>',d+=g+="</div>"}return d+"</div>"}},{name:"timesince",func:function(t,a,r){return e.Lang.isNumber(t)?(r.join(" "),'<span class="timesince" data-date="'+t+'">'+e.Squarespace.DateUtils.humanizeDate(t)+"</span>"):"Invalid date."}},{name:"resizedHeightForWidth",func:function(e,t,a){return t=e.split("x"),2!=t.length?"Invalid source parameter.  Pass in 'originalSize'.":(e=parseInt(t[0],10),t=parseInt(t[1],10),a=parseInt(a[0],10)/e,parseInt(t*a,10))}},{name:"resizedWidthForHeight",func:function(e,t,a){return t=e.split("x"),2!=t.length?"Invalid source parameter.  Pass in 'originalSize'.":(e=parseInt(t[0],10),t=parseInt(t[1],10),a=parseInt(a[0],10)/t,parseInt(e*a,10))}},{name:"squarespaceThumbnailForWidth",func:function(e,t,a){return Y.Squarespace.Rendering.getSquarespaceSizeForWidth(parseInt(a[0],10))}},{name:"squarespaceThumbnailForHeight",func:function(e,t,a){return t=e.split("x"),2!=t.length?"Invalid source parameter.  Pass in 'originalSize'.":(e=parseInt(t[0],10),t=parseInt(t[1],10),a=parseInt(a[0],10)/t,a=parseInt(e*a,10),Y.Squarespace.Rendering.getSquarespaceSizeForWidth(a))}},{name:"cycle",func:function(e,t,a){return a[(e-1)%a.length]}}]);var w=function(e){return{lookup:function(t){return[e[t]||null,null]}}},b=function(e){return{lookup:function(t){for(var a=0;a<e.length;a++){var r=e[a].name,n=e[a].func;if(t.slice(0,r.length)==r)return a=t.charAt(r.length),t=""===a?[]:t.split(a).slice(1),[n,t]}return[null,null]}}},v=function(e){return{lookup:function(t){for(var a=0;a<e.length;a++){var r=e[a].lookup(t);if(r[0])return r}return[null,null]}}},S=function(e){var t={current_clause:[],Append:function(e){t.current_clause.push(e)},AlternatesWith:function(){throw{name:"TemplateSyntaxError",message:"{.alternates with} can only appear with in {.repeated section ...}"}},NewOrClause:function(e){throw{name:"NotImplemented"}}};return t},_=function(e){var t=S(e);return t.statements={default:t.current_clause},t.section_name=e.section_name,t.Statements=function(e){return t.statements[e||"default"]||[]},t.NewOrClause=function(e){if(e)throw{name:"TemplateSyntaxError",message:"{.or} clause only takes a predicate inside predicate blocks"};t.current_clause=[],t.statements.or=t.current_clause},t},I=function(e){var t=_(e);return t.AlternatesWith=function(){t.current_clause=[],t.statements.alternate=t.current_clause},t},k=function(e){var t=S(e);return t.clauses=[],t.NewOrClause=function(e){e=e||[function(e){return!0},null],t.current_clause=[],t.clauses.push([e,t.current_clause])},t},C=/(repeated)?\s*(section)\s+(\S+)?/,T=/^or(?:[\s\-]+(.+))?/,x=/^if(?:[\s\-]+(.+))?/;e.JSONTemplate.Template=function(){this.initialize.apply(this,arguments)},e.JSONTemplate.Template.prototype={initialize:function(e,t,a){e=this.removeMultilineComments(e),this._options=t||{},this._program=d(e,this._options)},removeMultilineComments:function(e){for(var t,a=e.search("{##");0<=a;)t=e.substr(a),e=e.substr(0,a)+t.substr(t.search("##}")+3),a=e.search("{##");return e},render:function(e,t){var a=r(e,this._options.undefined_str);n(this._program.Statements(),a,t)},expand:function(e){var t=[];return this.render(e,function(e){t.push(e)}),t.join("")}},e.Squarespace&&e.Squarespace.TEMPLATE_PREDICATES&&e.Squarespace.TEMPLATE_PREDICATES["video?"]&&(e.Squarespace.TEMPLATE_PREDICATES["video?"]=f["video?"]),e.JSONTemplate.DEFAULT_PREDICATES=e.Squarespace.TEMPLATE_PREDICATES||{},Object.keys(f).forEach(function(t){e.JSONTemplate.DEFAULT_PREDICATES[t]||(e.JSONTemplate.DEFAULT_PREDICATES[t]=f[t])}),e.JSONTemplate.DEFAULT_PARAMETRIC_PREDICATES=e.Squarespace.TEMPLATE_PARAMETRIC_PREDICATES||[],e.JSONTemplate.evaluateJsonTemplate=function(t,a,r){return"string"!=typeof t?"JSON Template Error: Processing failed because no input was provided. (type: "+typeof t+", template: "+JSON.stringify(t)+", dictionary: "+JSON.stringify(a)+", partials: "+JSON.stringify(r)+")":new e.JSONTemplate.Template(t,{partials:r}).expand(a)}},"1.0",{requires:"json squarespace-common squarespace-date-utils squarespace-escaping-utils squarespace-commerce-utils squarespace-util".split(" ")}),Y.use(["squarespace-json-template","datatype-date-format"],function(){ie=new Y.JSONTemplate.Template('<time class="summary-metadata-item summary-metadata-item--date" datetime="{formatShortDate}">{formatDate}</time>{.if startDate}<time class="summary-metadata-item summary-metadata-item--event-time"><span class="event-time-12hr">{formatTime12}</span><span class="event-time-24hr">{formatTime24}</span><span class="event-time-localized">{formatTimeLocale}</span></time>{.end}{.if categories}<span class="summary-metadata-item summary-metadata-item--cats">{.repeated section categories}<a href="/{collectionUrl}/?category={@|url-encode}">{@}</a>{.alternates with}, {.end}</span>{.end}{.if tags}<span class="summary-metadata-item summary-metadata-item--tags">{.repeated section tags}<a href="/{collectionUrl}/?tag={@|url-encode}">{@}</a>{.alternates with}, {.end}</span>{.end}{.if author.id}<span class="summary-metadata-item summary-metadata-item--author"><a href="{collectionUrl}/?author={author.id}#show-archive">{author.displayName}</a> </span>{.end}{.if mapUrl}<span class="summary-metadata-item summary-metadata-item--location"><a href="{mapUrl}" target="_blank">{addressText}</a></span>{.end}{.if commentState}<span class="summary-metadata-item summary-metadata-item--comments comments-count-{commentCount}"><a href="{fullUrl}#comments-{id}">{.if commentCount}{commentCount}{.end}</a></span>{.end}{summaryShareButtons}'),ne=new Y.JSONTemplate.Template('<div data-like-count="{likeCount}" class="summary-item sqs-gallery-design-{summ_config.design}-slide lazy-loaded-item {cats_tags_classes} {.if starred} item-featured{.end} summary-item-record-type-{recordTypeLabel}{.if contentType} summary-item-has-thumbnail{.end}{.if excerpt} summary-item-has-excerpt{.end}{.if categories && categories.0} summary-item-has-cats{.end}{.if tags && tags.0} summary-item-has-tags{.end}{.if author.id} summary-item-has-author{.end}{.if mapUrl} summary-item-has-location{.end}{.if commentState} summary-item-has-comments-enabled{.end}{.if quickProduct} sqs-product-quick-view-button-hover-area{.end}{sold}{sale}"{.if clickthroughUrl} data-click-through-url="{clickthroughUrl}"{.end} data-id="{id}"{.video?} data-type="video"{.or} data-type="image"{.end}>{.if summ_config.showThumbnail}{.video?}<div class="summary-thumbnail-container sqs-gallery-image-container">{@|video}</div>{.or}<div class="summary-thumbnail-outer-container"><a class="summary-thumbnail-container sqs-gallery-image-container{.if summ_config.lightbox} js-gallery-lightbox-opener{.end}" {.if title}data-title="{title|htmlattr}"{.end} {.if excerpt}data-description="{excerpt|htmlattr}"{.end} data-lightbox-theme="{lightboxOverlay}" href="{.if itemUrl}{itemUrl}{.end}"{.if followSourceUrl}target="_blank"{.end}>{.lesson?}<div class="summary-thumbnail img-wrapper"><img class="summary-thumbnail-image" {@|image-meta}/></div>{.or}{.main-image?}<div class="summary-thumbnail img-wrapper"><img class="summary-thumbnail-image" {@|image-meta}/>{.if productMark}{productMark}{.end}{.if alternateImage}{alternateImage}{.end}{.if startDate}<div class="summary-thumbnail-event-date"><div class="summary-thumbnail-event-date-inner"><span class="summary-thumbnail-event-date-month">{formatMonth}</span><span class="summary-thumbnail-event-date-day">{formatDay}</span></div></div>{.end}</div>{.end}{.end}</a>{.if quickProduct}{quickProduct}{.end}</div>{.end}{.end}<div class="summary-content sqs-gallery-meta-container"><div class="summary-metadata-container summary-metadata-container--above-title"><div class="summary-metadata summary-metadata--primary">{metaContent}</div><div class="summary-metadata summary-metadata--secondary">{metaContent}</div></div>{.if summ_config.showTitle}<div class="summary-title"><a class="summary-title-link" href="{.if itemUrl}{itemUrl}{.end}"{.if followSourceUrl} target="_blank"{.end}>{title}</a></div>{.end}<div class="summary-metadata-container summary-metadata-container--below-title"> <div class="summary-metadata summary-metadata--primary">{metaContent}</div><div class="summary-metadata summary-metadata--secondary">{metaContent}</div></div>{.if price}{.if summ_config.showPrice}<div class="summary-price">{price}</div>{.end}{.end}{.if summ_config.showExcerpt}{.if bodyExcerpt}<div class="summary-excerpt">{body}</div>{.or}<div class="summary-excerpt">{excerpt}</div>{.end}{.end}{.if summ_config.showReadMoreLink}<a class="summary-read-more-link" href="{.if itemUrl}{itemUrl}{.end}" {.if followSourceUrl} target="_blank"{.end}>{readMoreText}</a>{.end}<div class="summary-metadata-container summary-metadata-container--below-content"> <div class="summary-metadata summary-metadata--primary">{metaContent}</div><div class="summary-metadata summary-metadata--secondary">{metaContent}</div></div></div></div>')}))}function K(){if(!document.getElementById("lazySummariesStyles")){var e='.loadMoreButton{border-style:unset;color:inherit}body{overflow-anchor: none}.sqs-block-summary-v2 [class*="comments-count-"] a:after{content: "Comments";padding-left:.5ch} .sqs-block-summary-v2 .comments-count-0 a:after,.sqs-block-summary-v2 .comments-count-1 a:after {content: "Comment"} .summary-hideLoadMore .loadMoreButtonWrapper{position:absolute;padding:0!important;margin:0!important;height:1px!important;pointer-events:none!important;opacity:0!important;visibility:hidden!important;}.sqs-gallery-design-autocolumns .summary-item img:not([src]){max-width:280px}.sqs-block-summary-v2 .grid-items-in-row-used{font-size:0;letter-spacing:0}.sqs-block-summary-v2 .grid-items-in-row-used .summary-item{display:inline-block;vertical-align:top;float: none;clear: none}.sqs-block-summary-v2 .summary-share-buttons{display:none;padding:10px 0}.sqs-block-summary-v2 .summary-block-wrapper.summary-block-setting-secondary-metadata-share-buttons .summary-metadata--secondary .summary-share-buttons{display:block}.sqs-block-summary-v2 .summary-block-wrapper.summary-block-setting-primary-metadata-share-buttons .summary-metadata--primary .summary-share-buttons{display:block}.sqs-block-summary-v2 .summary-block-wrapper.summary-block-setting-secondary-metadata-share-buttons .summary-metadata--secondary{display:block}.sqs-block-summary-v2 .summary-block-wrapper.summary-block-setting-primary-metadata-share-buttons .summary-metadata--primary{display:block}.sqs-block-summary-v2 .loadMoreButton:after{margin-left:5px;content:"("attr(data-items-left)")";display:inline-block}.summary-thumbnail-image-alternate{min-height:1px;background-color: #fff;object-fit:cover;max-width:none;position: absolute !important;top:0!important;left:0!important;width:100%!important;height:100%!important;z-index: 2;opacity:0!important;transition: .3s opacity!important;}.summary-thumbnail-outer-container:hover .summary-thumbnail-image-alternate{opacity:1!important}.lazy-loading-status{bottom:0;width:32px;height:32px;border:2px solid rgba(0,0,0,.7);border-top-color:rgba(0,0,0,.08);border-left-color:rgba(0,0,0,.08);display:block;margin:3% 0 0 0;position:absolute;left:48.5%;left:calc(50% - 16px);display:none!important;}.lazy-summary-loading .lazy-loading-status{display:block!important}',t=document.querySelectorAll("head")[0],a=document.createElement("style");a.id="lazySummariesStyles",a.type="text/css",a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),t.appendChild(a)}}function ee(e){if(!e.config){var t=e.getAttribute("data-block-json")?JSON.parse(e.getAttribute("data-block-json")):{ignoreInit:!1},a=e.one(".sqs-gallery")&&e.one(".sqs-gallery").getData("gallery"),r=a&&a["gallery-design"];r&&r.name&&!r.overrided&&("GalleryDesignAutoGrid"==r.name?(X(),Y.Squarespace.GalleryManager&&(Y.Squarespace.GalleryManager._galleries&&Y.Squarespace.GalleryManager._galleries.length&&Y.Squarespace.GalleryManager._galleries.forEach(function(r,n){a._yuid===r._yuid&&(r.after("destroy",function(){e.all(".summary-item").setStyle(""),!t.ignoreInit&&Y.Squarespace.GalleryManager.initializeBlock(e)}),r.destroy(),Y.Squarespace.GalleryManager._galleries.splice(n,1))}),a=null)):"GalleryDesignAutocolumns"==r.name?(V(),Y.Squarespace.GalleryManager&&(Y.Squarespace.GalleryManager._galleries&&Y.Squarespace.GalleryManager._galleries.length&&Y.Squarespace.GalleryManager._galleries.forEach(function(r,n){a._yuid===r._yuid&&(r.after("destroy",function(){e.all(".summary-item").setStyle(""),!t.ignoreInit&&Y.Squarespace.GalleryManager.initializeBlock(e)}),r.destroy(),Y.Squarespace.GalleryManager._galleries.splice(n,1))}),a=null)):"GalleryDesignCarousel"==r.name&&(Q(r),e.all(".summary-item").setStyle(""),setTimeout(function(){},20)),r.overrided=!0)}}function te(e,t){return new Y.Promise(function(a,r){var n=t&&"json"==t?"application/json;charset=UTF-8":"text/plain;charset=UTF-8";Y.io(e,{headers:{"Content-Type":n},on:{success:function(e,r){r&&r.responseText&&a(t&&"json"==t?JSON.parse(r.responseText):r.responseText)},failure:function(e){r(e)}}})})}function ae(e){function t(e){var t=document.createElement("div");return t.className="sqs-block summary-v2-block sqs-block-summary-v2 related-summary-block",t.setAttribute("data-block-json",JSON.stringify(e)),t.innerHTML='<div class="sqs-block-content"><div class="'+a(e)+'"><div class="summary-item-list-container sqs-gallery-container"><header class="summary-block-header"><div class="summary-heading"><span class="summary-header-text">'+e.headerText+'</span></div><div class="summary-carousel-pager sqs-gallery-controls"><span class="summary-carousel-pager-prev previous"></span><span class="summary-carousel-pager-next next"></span></div></header><div class="summary-item-list sqs-gallery sqs-gallery-design-'+e.design+'"></div></div></div></div>',Y.one(t)}function a(e){var t="summary-block-wrapper summary-block-collection-type-"+e.collectionType+" summary-block-setting-text-size-"+e.textSize+" summary-block-setting-text-align-"+e.textAlignment+" summary-block-setting-design-"+e.design+" summary-block-setting-design-list-thumbnail-"+e.listImageAlignment+" summary-block-setting-metadata-position-"+e.metadataPosition+" summary-block-setting-primary-metadata-"+e.primaryMetadata+" summary-block-setting-secondary-metadata-"+e.secondaryMetadata+(e.showThumbnail?" summary-block-setting-show-thumbnail":"")+(e.showTitle?" summary-block-setting-show-title":"")+(e.showPrice?" summary-block-setting-show-price":"")+(e.showExcerpt?" summary-block-setting-show-excerpt":"")+(e.wrapItemsWithLink?" summary-block-setting-wrap-items-with-link":"")+(e.showReadMoreLink?" summary-block-setting-show-read-more-link":"")+" sqs-gallery-design-"+e.design;return t}var r=t(e);return r}function re(e){e.forEach(function(e){if(e.container&&e.container.toLowerCase){var t=Y.one(e.container);if(t)if(t.hasClass("view-item")){var a=t.one(".hentry[data-item-id]"),r=e.placeTo&&e.placeTo.length&&t.one(e.placeTo.split("|")[0])||a,n=e.placeTo&&e.placeTo.length&&e.placeTo.indexOf("|")>-1&&e.placeTo.split("|")[1]||null,i=e.summarySettings||{};if(r){window.location.pathname;te(window.location.pathname+"?format=json","json").then(function(t){var a=null;if(t.item){var o=H({filter:{},collectionType:t.collection.typeName,collectionUrl:t.collection.fullUrl,collectionId:t.collection.id,relatedIdToDelete:t.item.id,currentItem:{id:t.item.id,categories:t.item.categories,tags:t.item.tags,featured:t.item.starred,fullUrl:t.item.fullUrl}},i);if(e.filter&&(e.filter.customLogic&&"function"==typeof e.filter.customLogic||(e.filter.tag&&t.item.tags&&(o.filter.tag=t.item.tags+"",e.filter.firstTag&&(o.filter.tag=t.item.tags[0])),e.filter.category&&t.item.categories&&(o.filter.category=t.item.categories+"",e.filter.firstCategory&&(o.filter.category=t.item.categories[0])),e.filter.featured&&(o.filter.featured=!0))),e.remoteSummary);else{var s=H({},de);if(o=H(s,o),a=ae(o),a)try{r.insert(a,n),X(),V(),Q(),window.Y.Squarespace.GalleryManager.initializeBlock(a),o.lazyFilter||(o.lazyFilter={}),o.lazyFilter.customLogic=e.filter.customLogic,B(a,o)}catch(e){console.log(e)}}}else console.log("Seems no item in JSON response, no data to build Related Summary")})}}else console.log("Container should have a view-item classname");else console.log("Container not found on current page")}else console.log("Related container should be CSS selector string")})}var ne,ie,oe=!1,se=null,le=null,ce=null,me="7.0",ue=function(){return parseFloat(me)>7},de={hSize:null,floatDir:null,useNumberInRow:!0,itemsInRow:4,tabletSettings:!0,tabletColumns:3,tabletGutter:10,mobileSettings:!0,mobileColumns:1,mobileGutter:5,enableLazy:!0,loadAllOrPag:!1,loadPageSize:4,hideLoadMore:!1,loadMoreText:"",readMoreText:"",useSessionCache:!1,useSQSProxy:!1,proxyCacheTime:10,customLazyIndex:!1,customLazyIndexUrl:"",collectionUrl:"",ignoreInit:!1,alternateImages:!1,enableLazyBody:!1,enableLazyFilter:!1,lazyFilter:{},sortSummaryItems:"no-sort",showShareButtons:"noShare",buttonsIconAlignment:"center",buttonsIconSize:"small",buttonsIconStyle:"square-border",buttonsIconColor:"black",collectionId:"5db0c8204769ff43a071456e",design:"carousel",headerText:"",textSize:"medium",pageSize:4,imageAspectRatio:"1.5",columnWidth:270,gutter:18,listImageSize:30,listImageAlignment:"left",slidesPerRow:4,textAlignment:"left",showTitle:!0,showThumbnail:!0,showExcerpt:!0,showReadMoreLink:!1,showPrice:!0,productQuickViewEnabled:!1,showPastOrUpcomingEvents:"upcoming",metadataPosition:"below-content",primaryMetadata:"none",secondaryMetadata:"none",filter:{},autoCrop:!0,lightbox:!1,mixedContent:!0,blockId:"related-summary-block"},ge=function(){function e(e,t){if(!n[e]){n[e]={};for(var a=0;a<e.length;a++)n[e][e.charAt(a)]=a}return n[e][t]}var t=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={},i={compressToBase64:function(e){if(null==e)return"";var t=i._compress(e,6,function(e){return a.charAt(e)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:i._decompress(t.length,32,function(r){return e(a,t.charAt(r))})},compressToUTF16:function(e){return null==e?"":i._compress(e,15,function(e){return t(e+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:i._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=i.compress(e),a=new Uint8Array(2*t.length),r=0,n=t.length;n>r;r++){var o=t.charCodeAt(r);a[2*r]=o>>>8,a[2*r+1]=o%256}return a},decompressFromUint8Array:function(e){if(null==e)return i.decompress(e);for(var a=new Array(e.length/2),r=0,n=a.length;n>r;r++)a[r]=256*e[2*r]+e[2*r+1];var o=[];return a.forEach(function(e){o.push(t(e))}),i.decompress(o.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":i._compress(e,6,function(e){return r.charAt(e)})},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),i._decompress(t.length,32,function(a){return e(r,t.charAt(a))}))},compress:function(e){return i._compress(e,16,function(e){return t(e)})},_compress:function(e,t,a){if(null==e)return"";var r,n,i,o={},s={},l="",c="",m="",u=2,d=3,g=2,p=[],f=0,y=0;for(i=0;i<e.length;i+=1)if(l=e.charAt(i),Object.prototype.hasOwnProperty.call(o,l)||(o[l]=d++,s[l]=!0),c=m+l,Object.prototype.hasOwnProperty.call(o,c))m=c;else{if(Object.prototype.hasOwnProperty.call(s,m)){if(m.charCodeAt(0)<256){for(r=0;g>r;r++)f<<=1,y==t-1?(y=0,p.push(a(f)),f=0):y++;for(n=m.charCodeAt(0),r=0;8>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1}else{for(n=1,r=0;g>r;r++)f=f<<1|n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n=0;for(n=m.charCodeAt(0),r=0;16>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1}u--,0==u&&(u=Math.pow(2,g),g++),delete s[m]}else for(n=o[m],r=0;g>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1;u--,0==u&&(u=Math.pow(2,g),g++),o[c]=d++,m=String(l)}if(""!==m){if(Object.prototype.hasOwnProperty.call(s,m)){if(m.charCodeAt(0)<256){for(r=0;g>r;r++)f<<=1,y==t-1?(y=0,p.push(a(f)),f=0):y++;for(n=m.charCodeAt(0),r=0;8>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1}else{for(n=1,r=0;g>r;r++)f=f<<1|n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n=0;for(n=m.charCodeAt(0),r=0;16>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1}u--,0==u&&(u=Math.pow(2,g),g++),delete s[m]}else for(n=o[m],r=0;g>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1;u--,0==u&&(u=Math.pow(2,g),g++)}for(n=2,r=0;g>r;r++)f=f<<1|1&n,y==t-1?(y=0,p.push(a(f)),f=0):y++,n>>=1;for(;;){if(f<<=1,y==t-1){p.push(a(f));break}y++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,a,r){var n,i,o,s,l,c,m,u=[],d=4,g=4,p=3,f="",y=[],h={val:r(0),position:a,index:1};for(n=0;3>n;n+=1)u[n]=n;for(o=0,l=Math.pow(2,2),c=1;c!=l;)s=h.val&h.position,h.position>>=1,0==h.position&&(h.position=a,h.val=r(h.index++)),o|=(s>0?1:0)*c,c<<=1;switch(o){case 0:for(o=0,l=Math.pow(2,8),c=1;c!=l;)s=h.val&h.position,h.position>>=1,0==h.position&&(h.position=a,h.val=r(h.index++)),o|=(s>0?1:0)*c,c<<=1;m=t(o);break;case 1:for(o=0,l=Math.pow(2,16),c=1;c!=l;)s=h.val&h.position,h.position>>=1,0==h.position&&(h.position=a,h.val=r(h.index++)),o|=(s>0?1:0)*c,c<<=1;m=t(o);break;case 2:return""}for(u[3]=m,i=m,y.push(m);;){if(h.index>e)return"";for(o=0,l=Math.pow(2,p),c=1;c!=l;)s=h.val&h.position,h.position>>=1,0==h.position&&(h.position=a,h.val=r(h.index++)),o|=(s>0?1:0)*c,c<<=1;switch(m=o){case 0:for(o=0,l=Math.pow(2,8),c=1;c!=l;)s=h.val&h.position,h.position>>=1,0==h.position&&(h.position=a,h.val=r(h.index++)),o|=(s>0?1:0)*c,c<<=1;u[g++]=t(o),m=g-1,d--;break;case 1:for(o=0,l=Math.pow(2,16),c=1;c!=l;)s=h.val&h.position,h.position>>=1,0==h.position&&(h.position=a,h.val=r(h.index++)),o|=(s>0?1:0)*c,c<<=1;u[g++]=t(o),m=g-1,d--;break;case 2:return y.join("")}if(0==d&&(d=Math.pow(2,p),p++),u[m])f=u[m];else{if(m!==g)return null;f=i+i.charAt(0)}y.push(f),u[g++]=i+f.charAt(0),d--,i=f,0==d&&(d=Math.pow(2,p),p++)}}};return i}();window._lzs_timelog=!1;var pe=!1;if(!window.lazy_summaries_script_loaded){window.lazy_summaries_script_loaded=!0,window.Static.SQUARESPACE_CONTEXT.templateVersion&&(me=window.Static.SQUARESPACE_CONTEXT.templateVersion);var fe=!1,ye=function(){if(window.Squarespace&&window.Squarespace.initializeSummaryV2Block&&!fe){var e=window.Y;window.Squarespace.initializeSummaryV2Block=function(t){e=window.Y,t.all(".summary-v2-block").each(function(a){try{!a.hasClass("sqs-block-summary-v2")&&a.addClass("sqs-block-summary-v2");var r=a.getAttribute("data-block-json")?JSON.parse(a.getAttribute("data-block-json")):{ignoreInit:!1};if(window.customLazySummaries&&window.customLazySummaries["*"]&&window.customLazySummaries["*"].hooks){var n=window.customLazySummaries["*"].hooks.beforeCreate;n&&"function"==typeof n&&n(a,r)}X(),V(),Q(),!r.ignoreInit&&t.Squarespace.GalleryManager.initializeBlock(a),e||($(),B(a))}catch(e){console.log(e)}})},fe=!0}},he=function(){if(K(),console.log("Lazy Summaries started."),ye(),window.Y){$(),window.Squarespace.onInitialize(window.Y,function(){Y.all(".summary-v2-block").each(function(e){B(e)}),se=Y.Global.after("init-lazy-summary",function(e){e&&e.block&&B(e.block,e.json)}),ce=Y.one(window).on("resize",b(function(){Y.fire("summary-sync"),Y.all(".summary-v2-block").each(function(e){M(e)})},200,!1)),window.customLazySummaries&&window.customLazySummaries.related&&window.customLazySummaries.related.length&&(console.log("Work with Related"),re(window.customLazySummaries.related)),localStorage.removeItem("ok_waiting_SQS_plugins_update")}),window.Squarespace.onDestroy(window.Y,function(){se&&se.detach(),le&&le.detach(),ce&&ce.detach()}),Y.on("template:dynamicPageReady",function(){window.__initializeLazySummaries()});var e=function(){setTimeout(function(){(Y.one(".c-tabs__tabpanel .sqs-block-summary-v2")||Y.one(".c-lightbox__dialog .sqs-block-summary-v2"))&&(console.log("Init LZS in Tabs by window load"),window.__initializeLazySummaries())},300),window.removeEventListener("load",e,!1)};window.addEventListener("load",e,!1)}else console.log("No YUI on page");window.__c_tabs_observer||(window.__c_tabs_observer=new MutationObserver(function(e){e.forEach(function(e){if("childList"==e.type&&e.addedNodes[0]&&e.addedNodes[0].className&&e.addedNodes[0].className.length){var t=e.addedNodes[0].querySelector(".c-tabs__tabpanel .sqs-block-summary-v2");t&&(console.log("Init LZS in Tabs"),window.__initializeLazySummaries())}})}),window.__c_tabs_observer.observe(document,{childList:!0,subtree:!0}))};!window.Y||"interactive"!==document.readyState&&"complete"!==document.readyState?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),ye(),setTimeout(function(){he()},16)},!1):he(),ye(),window.__initializeLazySummaries=function(){$(),window.Y.all(".summary-v2-block").each(function(e){B(e)})}}try{window.self!==window.top&&window.top.document.querySelector("html.squarespace-damask")&&(window.top.Y||window.top.Y.Get)&&(window.top.Y.Get={js:function(e,t){W(e,window.top.document.getElementsByTagName("head")[0],t)}})}catch(e){console.log(e)}}();