var instafeedApp = (function instafeedLoad(){/*!
 * Copyright (c) 2023 Mintt Studio
 * All rights reserved.
 *
 * This code is proprietary and protected under international copyright laws.
 * Redistribution, use, modification, or sublicensing without explicit written permission from 
 * Mintt Studio is prohibited.
 *
 * License inquiries or unauthorized use reports should be directed to:
 * legal@minttstudio.com.
 */
const t="nfcube.com",e="instafeed.nfcube.com",i="cdn.nfcube.com",n="15.2.0",s="feed",a="insta-feed",o=".instafeed-lightbox",d="instafeed",r=!1,l=3,c=1024;window.instafeedEvents=window.instafeedEvents||[];class u{constructor(){this.listeners=window.instafeedEvents=window.instafeedEvents||[],this.debugMode=!1}addListener(t,e,i,n={}){this.listeners.some((i=>i.element===t&&i.event===e&&"swiped"===e))?this.debugMode&&console.log(`Listener for ${e} on the specified element already exists.`):(t.addEventListener(e,i,n),this.listeners.push({element:t,event:e,handler:i}),this.debugMode&&(console.log(`Added listener for ${e}`),console.log("Listeners",this.listeners)))}removeListener(t,e,i){t.removeEventListener(e,i),this.listeners=this.listeners.filter((n=>!(n.element===t&&n.event===e&&n.handler===i))),this.debugMode&&(console.log(`Removed listener for ${e}`),console.log("Listeners",this.listeners))}clearAllListeners(){this.listeners.forEach((({element:t,event:e,handler:i})=>{t.removeEventListener(e,i)})),this.listeners=[],this.debugMode&&console.log("All listeners have been removed")}}const p=new u;var Instafeed=function(){function Instafeed(t){this.translations={en:{SHOP_NOW:"Shop now",ADD_TO_CART:"Add to cart",TAG_PRODUCTS:"Tag products",TAGGED_BY:"Tagged by {username}",VIEW_ON_INSTAGRAM:"View on Instagram",REVIEWS:"{number} reviews",HANG_ON:"Please hang on while we process your feed. This may take a while.",DELETE:"Delete",PRODUCT_FROM_IG:"Instagram Product"},"pt-PT":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",TAG_PRODUCTS:"Identificar produtos",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos a processar o seu feed. Isto pode demorar um pouco.",DELETE:"Apagar",PRODUCT_FROM_IG:"Produto do Instagram"},"pt-BR":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",TAG_PRODUCTS:"Marcar produtos",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos processando seu feed. Isso pode demorar um pouco.",DELETE:"Delete",PRODUCT_FROM_IG:"Produto do Instagram"},es:{SHOP_NOW:"Comprar ahora",ADD_TO_CART:"Añadir al carrito",TAG_PRODUCTS:"Etiquetar productos",TAGGED_BY:"Etiquetado por {username}",VIEW_ON_INSTAGRAM:"Ver en Instagram",REVIEWS:"{number} reseñas",HANG_ON:"Espera un momento, estamos procesando tu feed. Esto puede llevar unos instantes.",DELETE:"Eliminar",PRODUCT_FROM_IG:"Producto de Instagram"},ja:{SHOP_NOW:"今すぐ購入",ADD_TO_CART:"カートに入れる",TAG_PRODUCTS:"商品にタグを付ける",TAGGED_BY:"{username}によってタグ付けされました",VIEW_ON_INSTAGRAM:"Instagramで見る",REVIEWS:"{number} レビュー",HANG_ON:"少々お待ちください、フィードを処理中です。これには時間がかかる場合があります。",DELETE:"削除",PRODUCT_FROM_IG:"Instagramの商品"},fr:{SHOP_NOW:"Acheter",ADD_TO_CART:"Ajouter au panier",TAG_PRODUCTS:"Étiqueter les produits",TAGGED_BY:"Tagué par {username}",VIEW_ON_INSTAGRAM:"Afficher sur Instagram",REVIEWS:"{number} avis",HANG_ON:"Patientez, nous traitons votre flux. Cela pourrait prendre un certain temps.",DELETE:"Supprimer",PRODUCT_FROM_IG:"Produit Instagram"},de:{SHOP_NOW:"Jetzt shoppen",ADD_TO_CART:"Zum Warenkorb hinzufügen",TAG_PRODUCTS:"Produkte taggen",TAGGED_BY:"Getaggt von {username}",VIEW_ON_INSTAGRAM:"Auf Instagram ansehen",REVIEWS:"{number} Bewertungen",HANG_ON:"Einen Moment bitte, wir verarbeiten deinen Feed. Das könnte eine Weile dauern.",DELETE:"Löschen",PRODUCT_FROM_IG:"Instagram Produkt"},sv:{SHOP_NOW:"Handla nu",ADD_TO_CART:"Lägg i kundvagn",TAG_PRODUCTS:"Tagga produkter",TAGGED_BY:"Taggad av {username}",VIEW_ON_INSTAGRAM:"Visa på Instagram",REVIEWS:"{number} recensioner",HANG_ON:"Vänta, vi behandlar ditt flöde. Detta kan ta en stund.",DELETE:"Radera",PRODUCT_FROM_IG:"Instagram Produkt"},it:{SHOP_NOW:"Acquista ora",ADD_TO_CART:"Aggiungi al carrello",TAG_PRODUCTS:"Tagga prodotti",TAGGED_BY:"Taggato da {username}",VIEW_ON_INSTAGRAM:"Visualizza su Instagram",REVIEWS:"{number} recensioni",HANG_ON:"Aspetta, stiamo elaborando il tuo feed. Potrebbe richiedere un po' di tempo.",DELETE:"Elimina",PRODUCT_FROM_IG:"Instagram Produkt"},da:{SHOP_NOW:"Shop nu",ADD_TO_CART:"Tilføj til kurv",TAG_PRODUCTS:"Tag produkter",TAGGED_BY:"Tagget af {username}",VIEW_ON_INSTAGRAM:"Se på Instagram",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent venligst, vi behandler dit feed. Det kan tage lidt tid.",DELETE:"Slet",PRODUCT_FROM_IG:"Instagram Produkt"},nb:{SHOP_NOW:"Handle nå",ADD_TO_CART:"Legg i handlekurv",TAG_PRODUCTS:"Tagge produkter",TAGGED_BY:"Taggede av {username}",VIEW_ON_INSTAGRAM:"Vis på Instagram",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent litt, vi behandler din feed. Dette kan ta en stund.",DELETE:"Slett",PRODUCT_FROM_IG:"Instagram Produkt"},nl:{SHOP_NOW:"Nu winkelen",ADD_TO_CART:"Toevoegen aan winkelwagen",TAG_PRODUCTS:"Producten taggen",TAGGED_BY:"Getagd door {username}",VIEW_ON_INSTAGRAM:"Bekijk op Instagram",REVIEWS:"{number} beoordelingen",HANG_ON:"Even geduld alstublieft, we verwerken je feed. Dit kan even duren.",DELETE:"Verwijderen",PRODUCT_FROM_IG:"Instagram Produkt"}},this.availableLanguages=["en","es","de","fr","sv","da","it","nl","nb","ja","pt-PT","pt-BR"],this.accountUsername="",this.options={target:a,language:"en",locale:"en-US",showLoading:!0,forceUpdate:!1,viewsAndClicks:!1,productClicks:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:window.location.hostname===e},"undefined"!=typeof Shopify&&Shopify.locale&&(this.options.locale=Shopify.locale,this.availableLanguages.includes(Shopify.locale)&&(this.options.language=Shopify.locale)),Object.assign(this.options,t),this.options.admin||this.t(),document.querySelectorAll(o).forEach((t=>{t.parentNode.removeChild(t)}))}return Instafeed.prototype.translate=function(t){return this.translations[this.options.language]&&this.translations[this.options.language][t]?this.translations[this.options.language][t]:t},Instafeed.prototype.run=function(){var t=document.getElementById(this.options.target);if(0===t.clientWidth&&parseInt(this.options.autoLayout)>0)return this.i(this,t),!1;this.options.corners=4===parseInt(this.options.format)?"50%":this.options.corners+"px",instafeedSettings.analyticsViewsClicks=Boolean(this.options.viewsAndClicks),instafeedSettings.analyticsProductClicks=Boolean(this.options.productClicks),!this.o(this.options.charge)&&parseInt(this.options.rows)>parseInt(this.options.rowsLimit)&&(this.options.rows=this.options.rowsLimit),parseInt(this.options.autoLayout)>0?(this.options.picturesNeeded=this.options.rows*this.l(t.clientWidth,this.options.admin),this.u()&&this.o(this.options.charge)&&(this.options.picturesNeeded=this.options.rowsMobile*this.l(t.clientWidth,this.options.admin))):this.u()&&this.o(this.options.charge)?this.options.picturesNeeded=this.options.rowsMobile*this.options.columnsMobile:this.options.picturesNeeded=this.options.rows*this.options.columns,this.options.admin&&this.options.showLoading&&(t.innerHTML='<div class="instafeed-spinner"></div><div><em>'+this.translate("HANG_ON")+"</em></div>"),!this.options.admin&&parseInt(this.options.loadingAnimation)>0&&(t.innerHTML='<div class="instafeed-spinner"></div>');const e=this;return Date.now(),fetch(this.p()).then((t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()})).then((t=>{try{e.parse(t)}catch(t){console.error("Parse function error:",t.message)}})).catch((t=>{console.log("Fetch error:",t.message),this.options.admin&&this.options.error.call(this,{meta:{code:204,username:"",error_message:"Taking a bit longer to fetch your feed, please refresh this page in a couple of minutes."}})})).finally((()=>{Date.now()})),!0},Instafeed.prototype.parse=function(t){var i,n,s,a,o,r,l,c,u,p,h,f,g,m,v,w,$,b;const I=document.getElementById(this.options.target);if(!I)return!1;if("object"!=typeof t)throw new Error("Invalid JSON response");const{meta:{code:S,error_message:T}}=t,_=parseInt(S,10);if(I.innerHTML="",200!==_)return this.options.admin&&"function"==typeof this.options.error&&this.options.error.call(this,t),!1;for("function"==typeof this.options.success&&this.options.success.call(this,t),i=t.data,n=0,s="",this.accountUsername=t.meta.username,n=0,len=i.length;n<len;n++){a=i[n],o=t.meta.followers,r=t.meta.profile_picture,l=a.images.standard_resolution,u="";const b=2===parseInt(this.options.openIg)&&(!Array.isArray(a.tagged_products)||a.tagged_products.length<=1)?"instafeed-simple-popup":"",I="instafeed-simple-popup"===b&&Array.isArray(a.tagged_products)&&a.tagged_products.length>1?"display:none;":"";if(p="instafeed-simple-popup"===b?"instafeed-tagged-buy-button-simple-popup":"tagged-buy-button",h=this.h(b,I),this.options.picturesLoaded++,parseInt(this.options.openIg)>1){if(parseInt(this.options.showProducts)<2&&a.hasOwnProperty("tagged_products")&&a.tagged_products.length>0&&this.o(this.options.charge)&&a.tagged_products.forEach((t=>{let i="";parseInt(t.variant)>0&&(i="?variant="+parseInt(t.variant));let n="undefined"!=typeof Shopify&&Shopify.locale?Shopify.locale:this.options.language;var s,o;t.translations&&n in t.translations&&"title"in t.translations[n]&&""!==t.translations[n].title.trim()&&(t.title=t.translations[n].title);let r=this.options.addToCart&&parseInt(t.variant)>0&&!this.options.admin;c=r?this.translate("ADD_TO_CART"):this.translate("SHOP_NOW");let l=parseInt(this.options.showPrices)>0?this.m(t.price):"",h=parseInt(this.options.showReviews)>0&&t.rating_count>0?this.v(t.rating,t.rating_count):"",f="ig"===t.source?"disabled":"",g="ig"===t.source?this.translate("PRODUCT_FROM_IG"):this.translate("DELETE"),m=t.variant_title?"<br>"+t.variant_title:"";if(this.options.admin)s="<div class='instafeed-tagged-product'><div class='instafeed-product-name'>"+t.title+m+"</div>"+h+l+"<div style='display:inline-block;'><a href='#"+this.options.picturesLoaded+"-"+this.options.target+"' id='delete-product' data-picture-id='"+a.id+"' data-tagging-id='"+t.id+"'><button class='secondary' style='display:block;' "+f+">"+g+"</button></a></div></div>",o="<img class='"+d+"-lazy-image' src='https://"+e+"/assets/img/placeholder.png' data-instafeed-src='"+t.image+"' alt='"+t.title+"' />";else{const n=r?`onclick="event.preventDefault(); instafeedEventTag('product_click', 0, ${t.gid}); instafeedAddToCart(this, ${parseInt(t.variant)}, '${c}', '${b}');"`:`onclick="instafeedEventTag('product_click', 0, ${t.gid});" href="//${window.location.hostname}${Shopify.routes.root}${t.handle}${i}"`;s="<div class='instafeed-tagged-product'><a aria-label='Open product' "+n+"><div class='instafeed-product-name'>"+t.title+m+"</div>"+h+l+"<div style='display:inline-block;'><button class='"+p+"' style='display:block;' aria-label='open product' tabindex='-1'>"+c.toUpperCase()+"</button></a></div></div>",o="<a aria-label='Open product' "+n+"><img class='"+d+"-lazy-image' src='https://"+e+"/assets/img/placeholder.png' data-instafeed-src='"+t.image+"' alt='"+t.title+"' /></a>"}u+="<div class='tagged-products "+b+"' id='"+a.id+"-"+t.id+"'><div class='tagged-products-image'>"+o+"</div><div class='tagged-products-buttons'>"+s+"</div></div>"})),f="",g="",m="",v="",a.carousel){const t=this.options.feedId;instafeedSettings.carousels[t]||(instafeedSettings.carousels[t]={}),instafeedSettings.carousels[t][n]=a.carousel.map((t=>t.thumbnail_url?t.thumbnail_url:t.media_url));let e="";a.carousel.forEach(((i,s)=>{e+=`<span id='instafeed-carousel-dot-${t}-${n}-${s}' class='instafeed-carousel-dot${0===s?" active":""}'></span>`})),v=`\n            <div tabindex='0' role='link' aria-label='previous carousel post' onclick="instafeedCarouselArrow(this, '${t}', ${n}, 'left')" class="instafeed-carousel-arrow instafeed-carousel-arrow-left"></div>\n            <div tabindex='0' role='link' aria-label='next carousel post' onclick="instafeedCarouselArrow(this, '${t}', ${n}, 'right')" class="instafeed-carousel-arrow instafeed-carousel-arrow-right"></div>\n            <div class="instafeed-carousel-dots" id="instafeed-carousel-dots-${t}-${n}">${e}</div>\n          `}"video"===a.type&&a.hasOwnProperty("videos")?(f=d+"-video",g="<div tabindex='0' role='link' aria-label='Mute' class='instafeed-sound-button "+(instafeedSettings.sound?"sound-on":"")+"' onclick='instafeedToggleSound(this)' data-video-id='video-"+this.options.picturesLoaded+"-"+this.options.target+"'></div>",m="<div tabindex='0' role='link' class='instafeed-video-control' onclick='instafeedTogglePlay()' data-video-id='video-"+this.options.picturesLoaded+"-"+this.options.target+"'></div>",imageFullHtml=v+'<video class="'+b+'" muted loop playsinline id="video-'+this.options.picturesLoaded+"-"+this.options.target+'" preload="none" src="'+a.videos.standard_resolution.url+'"></video><div id="video-spinner-'+this.options.picturesLoaded+"-"+this.options.target+'" class="instafeed-video-spinner"></div>'):imageFullHtml=v+"<img class='"+d+"-lazy-image "+b+"' style='pointer-events:none;' src='//"+e+"/assets/img/placeholder.png' data-instafeed-src='"+a.images.standard_resolution.url+"' alt='Instagram post with the caption: "+this.$(this.I(a,"caption.text").substring(0,64))+"...' />",w=1===this.options.picturesLoaded?Math.min(this.options.picturesNeeded,i.length):this.options.picturesLoaded-1,$=this.options.picturesLoaded===this.options.picturesNeeded||this.options.picturesLoaded===i.length?1:this.options.picturesLoaded+1,imageFullHtml="<div tabindex='0' role='link' class='instafeed-post-control-button arrow-up' data-"+d+"-open-id='"+w+"-"+this.options.target+"'></div><div tabindex='0' role='link' class='instafeed-post-control-button arrow-down' data-"+d+"-open-id='"+$+"-"+this.options.target+"'></div>"+m+g+imageFullHtml,s+=this.S(h,{model:a,id:this.options.picturesLoaded,fullId:a.id,minusId:w,plusId:$,link:a.link,image:l.url,video:f,tagged_username:a.user.username.length>0&&this.accountUsername!==a.user.username?"<div style='color:gray;text-align:center;line-height:60px;'>"+this.translate("TAGGED_BY").replace("{username}","<a href='"+a.link+"' style='text-decoration:underline!important;color:gray;' target='_blank' aria-label='@"+a.user.username+" on Instagram (opens in new window)' rel='noopener nofollow'>@"+a.user.username+"</a></div>"):"",username:t.meta.username,fullName:t.meta.full_name,userPicture:this.options.apiVersion>4&&parseInt(this.options.charge)>0&&r.length>0?r:"https://"+e+"/assets/img/logo-instagram-transparent.png",imageFullHtml:imageFullHtml,taggedProduct:u,date:this.T(a.created_time),caption:this.$(this.I(a,"caption.text")),likes:a.likes.count>0?"<span><span style='padding-right: 5px;'><svg width='10' height='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z' fill='grey'></path></svg> "+this._(a.likes.count,1)+"</span>":"",location:this.I(a,"location.name")})}if(this.options.picturesLoaded>=this.options.picturesNeeded||t.data.length===this.options.picturesLoaded)break}clearInterval(instafeedScrollIntervals[this.options.feedId]),this.O(s),b=parseInt(this.options.autoLayout)>0?parseFloat(100/this.l(I.clientWidth,this.options.admin)).toFixed(3):this.u()&&this.o(this.options.charge)?parseFloat(100/this.options.columnsMobile).toFixed(3):parseFloat(100/this.options.columns).toFixed(3),instafeedSettings.sliderNumVisibleImages[this.options.feedId]=parseInt(Math.round(100/b)),instafeedSettings.totalImages[this.options.feedId]=this.options.picturesLoaded,I.innerHTML+=this.A(i,this.$),this.D(),this.R(o,r),this.k(),this.G(),this.P(),parseInt(this.options.openIg,10)>1&&this.N(),2===parseInt(this.options.openIg,10)&&this.u()&&this.C();const y=new CustomEvent("instafeedAppLoaded");return document.dispatchEvent(y),instafeedFeedsLoaded.push(this.options.feedId),!0},Instafeed.prototype.h=function(t,i){var n,s,a;let o="";n=this.o(this.options.charge)&&parseInt(this.options.likes)>0&&4!==parseInt(this.options.apiVersion)?n="{{likes}}":"",s=this.options.admin?"<div style='margin-bottom:10px;'><div class='tagging-message "+t+"' id='tagging-{{fullId}}'></div><div class='products-tagging "+t+"'><a id='search' data-picture-id='{{fullId}}'><button class='btn primary'>"+this.translate("TAG_PRODUCTS")+"</button></a></div></div>":"";const r=`<div tabindex='0' role='link' class='${d}-close-button' aria-label='close button' data-${d}-close-id='{{id}}-${this.options.target}'>&#x2715;</div>`,l=this.u(!0)?"":r,c=this.u(!0)?r:"",u=this.u(!0)?"":"<div tabindex='0' role='link' aria-label='previous post' class='"+d+"-new-arrow prev' data-instafeed-open-id='{{minusId}}-"+this.options.target+"'></div>",p=this.u(!0)?"":"<div tabindex='0' role='link' aria-label='next post' class='"+d+"-new-arrow next' data-instafeed-open-id='{{plusId}}-"+this.options.target+"'></div>";o="<div class='"+d+"-lightbox' data-"+d+"-close-id='{{id}}-"+this.options.target+"' id='{{id}}-"+this.options.target+"'>"+l+u,a="","instafeed-simple-popup"===t&&(a=s+"<div class='instafeed-simple-popup-product-list' data-picture-id='{{fullId}}'>{{taggedProduct}}</div>"),o+="<div class='lightbox-instagram "+t+"' role='dialog' aria-label='Instagram post details' aria-labelledby='{{id}}-"+this.options.target+"' aria-modal='true'><div class='"+d+"-post-image "+t+"'>{{imageFullHtml}} "+a+"</div>";let h=parseInt(this.options.instagramLinks)>0?"• <a href='{{link}}' target='_blank' aria-label='Opens @{{username}} Instagram profile on a new window' rel='noopener nofollow' class='follow'>"+this.translate("VIEW_ON_INSTAGRAM")+"</a>":"";return"instafeed-simple-popup"!==t&&(o+="<div class='description'><div class='"+d+"-header' style='"+i+"'><div class='"+d+"-header-left-section'><div class='"+d+"-header-logo'><img src='//"+e+"/assets/img/placeholder.png' class='profile-picture "+d+"-lazy-image' data-instafeed-src='{{userPicture}}' alt='Instagram profile picture' /></div><a class='"+d+"-fullname' href='https://www.instagram.com/{{username}}/' target='_blank' aria-label='Opens @{{username}} Instagram profile on a new window' rel='noopener nofollow'><div class='"+d+"-fullname' >{{username}}</div></a></div></div><div class='sub-header'><div class='post-engagement'>"+n+"</div></div><div class='"+d+"-content-wrapper'>{{tagged_username}}<div class='box-content' data-picture-id='{{fullId}}'>{{taggedProduct}}</div><div class='"+d+"-caption' style='"+i+"'>{{caption}}</div></div>"+s+"<div class='post-date' style='"+i+"'><span style='padding-left:8px;'>{{date}} "+h+"</span></a></div></div>"),o+=c,o+="</div>"+p+"</div>",o},Instafeed.prototype.k=function(){this.u(!0)&&document.querySelectorAll("."+d+"-post-image").forEach((t=>{const e=t.nextElementSibling,i=e?e.querySelector("."+d+"-header"):null;i&&t.parentNode.insertBefore(i,t)}))},Instafeed.prototype.R=function(t,e){const i=document.getElementById(this.options.target),n=this.o(this.options.charge)&&parseInt(this.options.apiVersion)>4&&(1===parseInt(this.options.showFollowers)||3===parseInt(this.options.showFollowers)),s=this.o(this.options.charge)&&parseInt(this.options.apiVersion)>4&&parseInt(this.options.showFollowers)>1,a=n?`<h3>${this._(t)} followers</h3>`:"",o=0===parseInt(this.options.feedId)?"undefined"!=typeof instafeedLocalTitle&&instafeedLocalTitle.length>0:void 0!==window["instafeed"+this.options.feedId+"Title"]&&window["instafeed"+this.options.feedId+"Title"].length>0,r=o&&0===parseInt(this.options.feedId)?instafeedLocalTitle:window["instafeed"+this.options.feedId+"Title"],l=this.options.title.length>0||o;let c="";s&&(c+=`<img id="${d}-header-logo" alt="Instagram logo" src=${e} />`),l&&(c+=`<h2 style="${n?"margin-bottom:0;":""}">${o?r:this.options.title}</h2>`),n&&(c+=a),(l||n)&&this.O(c,i,i.firstChild)},Instafeed.prototype.D=function(){const t=document.getElementById(this.options.target),e=document.querySelector(`.${d}-new-layout-container[data-feed-id="${this.options.feedId}"]`),i=document.querySelector(`.${d}-new-layout-wrapper[data-feed-id="${this.options.feedId}"]`),n=parseFloat(t.offsetWidth.toFixed(3)),s=parseFloat((n/instafeedSettings.sliderNumVisibleImages[this.options.feedId]*(parseInt(this.options.space)/100)).toFixed(3)),a=parseInt(instafeedSettings.sliderNumVisibleImages[this.options.feedId]-1),o=parseFloat((a*s).toFixed(3)),r=parseFloat((n-o).toFixed(3)),l=parseFloat((r/instafeedSettings.sliderNumVisibleImages[this.options.feedId]).toFixed(3)),c=1===parseInt(this.options.format)?parseFloat((l*(16/9)).toFixed(3)):2===parseInt(this.options.format)?parseFloat((l*(5/4)).toFixed(3)):3===parseInt(this.options.format)?parseFloat((l*(3/4)).toFixed(3)):parseFloat(l.toFixed(3));document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"]`).forEach((t=>{t.style.width=`${l}px`,t.style.height=`${c}px`})),1===parseInt(this.options.showProducts,10)&&this.o(this.options.charge)&&c>=300&&(document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-product-item img`).forEach((t=>{t.style.display="block",t.style.height=Math.min(parseFloat((.15*c).toFixed(3)),60)+"px",t.style.width=Math.min(parseFloat((.15*c).toFixed(3)),60)+"px"})),document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-tagged-buy-button-simple-popup`).forEach((t=>{t.style.display="block"}))),e.style.width=`${n}px`,e.style.height=`${c}px`,i.style.gap=`${s}px`,instafeedSettings.sliderStepSize[this.options.feedId]=0===this.options.sliderBehavior||2===this.options.sliderBehavior?n+s:l+s,instafeedSettings.sliderRowSize[this.options.feedId]=n+s,instafeedSettings.totalImages[this.options.feedId]<instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(i.style.justifyContent="center"),6===parseInt(this.options.layout)&&instafeedSettings.totalImages[this.options.feedId]>=instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(i.style.display="grid",e.style.height="unset",i.style.gridTemplateColumns="repeat("+instafeedSettings.sliderNumVisibleImages[this.options.feedId]+", 1fr)"),7===parseInt(this.options.layout)&&instafeedSettings.totalImages[this.options.feedId]>=instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(this.u()&&(p.addListener(t,"swiped-left",(t=>{t.detail.touchType&&instafeedSliderMove(1,this.options.feedId)})),p.addListener(t,"swiped-right",(t=>{t.detail.touchType&&instafeedSliderMove(-1,this.options.feedId)}))),instafeedSettings.sliderState={},this.options.sliderBehavior>1&&(instafeedScrollIntervals[this.options.feedId]=setInterval((()=>{instafeedSliderMove(1,this.options.feedId)}),instafeedSlideSpeed)))},Instafeed.prototype.m=function(t){if(this.options.admin&&""!==t)return`<div class='instafeed-product-price'>${t}</div>`;if(!((t=Number(t))>0))return"";let e=t.toFixed(2);if("undefined"!=typeof Shopify){const i=Shopify.currency?.active||"USD";t*=Shopify.currency?.rate||1,e=new Intl.NumberFormat(void 0,{style:"currency",currency:i}).format(t)}return`<div class='instafeed-product-price'>${e}</div>`},Instafeed.prototype.v=function(t,e){let i='<div class="instafeed-product-reviews"><div class="instafeed-product-reviews-stars">';const n=Math.floor(t),s=t%1!=0;for(let t=0;t<5;t++)i+=t<n?'<div class="instafeed-product-reviews-star filled"></div>':t===n&&s?'<div class="instafeed-product-reviews-star half"></div>':'<div class="instafeed-product-reviews-star empty"></div>';return i+=`</div><span id="instafeed-product-reviews-count">${e>1?" | "+this.translate("REVIEWS").replace("{number}",e):"("+e+")"}</span></div>`,i},Instafeed.prototype.A=function(t){let e="",i=0;for(let n of t)if(i++,e+=this.M(n,i),i>=this.options.picturesNeeded||t.length===i)break;let n="";return i>instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&this.options.sliderBehavior<=1&&7===parseInt(this.options.layout)&&(n=`\n            <button aria-label='previous post' class="${d}-new-arrow ${d}-new-arrow-prev" onclick="instafeedSliderMove(-1,${this.options.feedId})" style="margin-left:10px;padding-right:2px;"></button>\n            <button aria-label='next post' class="${d}-new-arrow ${d}-new-arrow-next" onclick="instafeedSliderMove(1,${this.options.feedId})" style="margin-right:10px;padding-left:2px;"></button>\n        `),`\n      <div class="${d}-new-layout-container" data-feed-id="${this.options.feedId}">\n          <div class="${d}-new-layout-wrapper" data-feed-id="${this.options.feedId}">\n              ${e}\n          </div>\n          ${n}\n      </div>`},Instafeed.prototype.M=function(t,i){const n=parseInt(this.options.openIg,10),s=parseInt(this.options.showProducts,10);let a=t.images.standard_resolution,o=this.$(t.caption.text).substring(0,60),r=1===s&&4!==parseInt(this.options.format)&&t.hasOwnProperty("tagged_products")&&t.tagged_products.length>0&&this.o(this.options.charge)?this.F(t.tagged_products):"",l=r.length>0?"inline-product":"",c="video"===t.type&&parseInt(this.options.autoplay,10)>0&&this.o(this.options.charge)?`<video muted loop playsinline class="auto-loop-videos" data-feed-id="${this.options.feedId}" id="inline-video-${i}-${this.options.target}" preload="none" data-poster="${a.url}" src="${t.videos.standard_resolution.url}" style="border-radius:${this.options.corners};"></video>`:`<img style="border-radius:${this.options.corners};" class="${d}-lazy-image" src="//${e}/assets/img/placeholder.png" data-instafeed-src="${a.url}" alt="Instagram post with the caption: ${o}...">`,u="inline-product"===l?`<div id="instafeed-product-container">${r}</div>`:`<div class="${d}-hover-icon">${this.W(t)}</div>`,p=n>0?"role='link' tabindex='0'":"",h=n>1?"aria-haspopup='dialog' aria-label='Instagram post opens in a popup'":"",f=0!==n?`<div class="${d}-hover-layer ${l}" data-feed-id="${this.options.feedId}-${t.type}" data-${d}-open-id="${i}-${this.options.target}" style="border-radius:${this.options.corners};">${u}</div>`:"";c+=`\n    <div ${p} ${h} class="${d}-new-layout-item-container ${l} ${0===n?"no-cursor":""}" data-${d}-open-id="${i}-${this.options.target}">\n      ${f}\n    </div>`;const g=this.V(c,t,i);return`<div class="${d}-new-layout-item" data-feed-id="${this.options.feedId}">${g}</div>`},Instafeed.prototype.V=function(t,e){return 1===parseInt(this.options.openIg,10)?`<a href="${e.link}" onclick="instafeedEventTag('modal_open', ${this.options.feedId})" target="_blank" rel="noopener nofollow">${t}</a>`:t},Instafeed.prototype.F=function(t){let e=this.translate("SHOP_NOW"),i=this.options.admin?this.options.shopOrigin:window.location.hostname,n=this.options.admin?"/":Shopify.routes.root,s=this.options.admin?"":'style="pointer-events:all;"';return(t=t.slice(0,1)).map((t=>{let a=parseInt(t.variant)>0?"?variant="+parseInt(t.variant):"";return`\n        <div class="instafeed-product-item">\n            <a ${s} onclick="instafeedEventTag('product_click', 0, ${t.gid})" aria-label="Open product" href="//${i}${n}${t.handle}${a}">\n              <img style="display:none;" src="${t.image}" class="instafeed-product-image" alt="${t.title}">\n            </a>\n            <div class="instafeed-product-info">\n              <a ${s} onclick="instafeedEventTag('product_click', 0, ${t.gid})" aria-label="Open product" href="//${i}${n}${t.handle}${a}">\n                <div class="instafeed-product-name">${t.title}</div>\n                <div class="instafeed-tagged-buy-button-simple-popup" style="display:none;">${e}</div>\n              </a>\n            </div>\n        </div>`})).join("")},Instafeed.prototype.W=function(t){if(this.o(this.options.charge)&&parseInt(this.options.likes)>0&&parseInt(this.options.apiVersion)>4)return`<svg style="height:16px;width:16px;" viewBox='0 0 512 512'><path d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z' fill='white'></path></svg>\n              <span style="margin-left:5px;padding-bottom:2px;">${this._(t.likes.count,1)}</span>`;{const i="video"===t.type?"video-icon-v3.png":"instagram-icon-v2.svg";return`<img class="${d}-lazy-image" src="//${e}/assets/img/placeholder.png" data-instafeed-src="https://${e}/assets/img/${i}" alt="">`}},Instafeed.prototype.O=function(t,e=document.body,i=null){const n=document.createElement("template");for(n.innerHTML=t;n.content.firstChild;)e.insertBefore(n.content.firstChild,i)},Instafeed.prototype.C=function(){p.addListener(document,"swiped",(function(t){var e,i,n;(window.lastSwipeEventInstafeed||{}).target!==t.target&&(e=document.getElementById(instafeedSettings.modalOpen))&&t.target.className.includes("instafeed-simple-popup")&&(i="","up"===t.detail.dir?i=`.${d}-new-arrow.next`:"down"===t.detail.dir&&(i=`.${d}-new-arrow.prev`),i&&(n=e.querySelector(i))&&n.click(),window.lastSwipeEventInstafeed=t)}))},Instafeed.prototype.p=function(){const t=window.location.pathname.includes("/products/")?window.location.pathname.split("/products/")[1]:"",i=t&&t.length>0?`&handle=${t}`:"",n=this.options.overrides.length>0?`&overrides=${this.options.overrides}`:"",a=this.options.forceUpdate?1:0;return`https://${e}/${s}/v${this.options.apiVersion}?limit=${this.options.picturesNeeded}&account=${this.options.shopOrigin}&fu=${a}&fid=${this.options.feedId}&hash=${this.options.hash}&locale=${this.options.locale}${i}${n}`},Instafeed.prototype.S=function(t,e){return t.replace(/{{([\w[\].]+)}}/g,((t,i)=>{const n=this.I(e,i);return null!==n?n:""}))},Instafeed.prototype.I=function(t,e){const i=(e=e.replace(/\[(\w+)\]/g,".$1")).split(".");for(const e of i){if(null===t||!(e in t))return null;t=t[e]}return t},Instafeed.prototype.o=function(t){return parseInt(t)>0},Instafeed.prototype.l=function(t,e=!1){return e&&t>768?6:t<480?2:t<768?3:t<1024?4:t<=1200?5:6},Instafeed.prototype.$=function(t){return t&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),t},Instafeed.prototype._=function(t,e){const i=["k","M","G","T","P","E","Z","Y"];for(let n=i.length-1;n>=0;n--){const s=Math.pow(1e3,n+1);if(t<=-s||t>=s)return+(t/s).toFixed(e)+i[n]}return t},Instafeed.prototype.T=function(t){return new Date(1e3*t).toLocaleDateString(navigator.language,{month:"long",day:"numeric"})},Instafeed.prototype.u=function(t=!1){return!(!this.options.admin||this.options.desktopPreview||!1!==t)||(!this.options.admin||!this.options.desktopPreview||!1!==t)&&window.matchMedia("only screen and (max-width: 1024px)").matches},Instafeed.prototype.i=function(t,e){0===e.clientWidth?setTimeout((()=>{t.i(t,e)}),100):t.run()},Instafeed.prototype.t=function(){if(window.instafeedCssLoaded)return;if(document.currentScript&&!document.currentScript.src.includes(t))return!1;const i=document.createElement("link");i.href=`https://${e}/cdn/${d}-${n}.css`,i.type="text/css",i.rel="stylesheet",i.media="screen,print",document.head.appendChild(i),window.instafeedCssLoaded=!0},Instafeed.prototype.N=function(){if(instafeedPopupsPreloaded)return!1;if(this.H())return!1;instafeedPopupsPreloaded=!0;const t=new IntersectionObserver(((t,e)=>{t.forEach((t=>{t.isIntersecting&&(this.L(),e.unobserve(t.target))}))}),{threshold:.1}),e=document.querySelector("#insta-feed, .instafeed-shopify");e&&t.observe(e)},Instafeed.prototype.H=function(){if("connection"in navigator&&navigator.connection){const t=navigator.connection;if(!0===t.saveData)return!0;if("effectiveType"in t&&["slow-2g","2g","3g"].includes(t.effectiveType))return!0;if("downlink"in t&&"number"==typeof t.downlink&&t.downlink<1)return!0}return!1},Instafeed.prototype.L=function(){const t=document.querySelectorAll("div.lightbox-instagram");let e=0;t.forEach((t=>{let i=0;t.querySelectorAll("video, img").forEach((t=>{setTimeout((()=>{if("VIDEO"===t.tagName)t.setAttribute("preload","auto"),t.load();else{const e=t.getAttribute("data-instafeed-src");e&&(t.setAttribute("src",e),t.classList.add(d+"-lazy-image--handled"))}}),e),e+=200+i,i+=50}))}))},Instafeed.prototype.G=function(){const t=document.querySelectorAll("."+d+"-lazy-image");if(!t.length||!("IntersectionObserver"in window))return void t.forEach((t=>this.U(t)));const e=new IntersectionObserver(((t,e)=>{t.forEach((t=>{t.isIntersecting&&(this.B(),e.unobserve(t.target),this.U(t.target))}))}),{rootMargin:"100px 0px",threshold:.01});t.forEach((t=>{t.classList.contains(d+"-lazy-image--handled")||e.observe(t)}))},Instafeed.prototype.U=function(t){const e=t.dataset.instafeedSrc;t.classList.contains(d+"-lazy-image--handled")||(t.classList.add(d+"-lazy-image--handled"),t.onerror=()=>{t.classList.remove(d+"-lazy-image--handled")},t.src=e)},Instafeed.prototype.P=function(){const t=parseInt(this.options.autoplay);this.Y();const e=t=>t?.play(),i=t=>document.getElementById(`inline-video-${t}-${this.options.target}`),n={threshold:.01},s=document.querySelectorAll("video[data-poster]");let a=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){this.B();let e=t.target,i=e.getAttribute("data-poster");e.setAttribute("poster",i),a.unobserve(e)}}))}),n);s.forEach((t=>{a.observe(t)}));const o="undefined"!=typeof Shopify&&Shopify?.designMode&&navigator.userAgent.includes("Shopify Mobile");if(1===t&&this.o(this.options.charge)&&!o){const t=document.querySelectorAll('.auto-loop-videos[data-feed-id="'+this.options.feedId+'"]'),i=new IntersectionObserver(((t,i)=>{t.forEach((t=>{t.isIntersecting&&(e(t.target),i.unobserve(t.target))}))}),n);t.forEach((t=>i.observe(t)))}if(2===t&&this.o(this.options.charge)&&!o){let t=document.querySelectorAll(`.${d}-hover-layer[data-feed-id='${this.options.feedId}-video'], .${d}-overlay[data-feed-id='${this.options.feedId}-video']`);t&&0!==t.length||(t=document.querySelectorAll(`.${d}-new-layout-item-container`)),t.forEach((t=>{t.style.opacity="1",t.style.background="transparent"})),t.forEach((t=>{const n=n=>{const s=t.getAttribute(`data-${d}-open-id`).split("-")[0],a=i(s);var o;n?(e(a),t.style.opacity=0):(o=a,o?.pause(),t.style.opacity=1)};p.addListener(t,"mouseover",(()=>n(!0))),p.addListener(t,"mouseout",(()=>n(!1))),p.addListener(t,"touchstart",(()=>n(!0))),p.addListener(t,"touchend",(()=>n(!1)))}))}},Instafeed.prototype.Y=function(){Array.from(document.querySelectorAll('video[id^="video-"]')).filter((t=>t.id.includes(this.options.target))).forEach((t=>{t.onplay=()=>{t.muted=!instafeedSettings.sound,t.id.split("-").pop(),null===instafeedSettings.modalOpen&&t.pause()}}))},Instafeed.prototype.B=function(){if(instafeedSettings.feedViewed?.[this.options.feedId])return!1;instafeedSettings.feedViewed[this.options.feedId]=!0,instafeedEventTag("feed_view",this.options.feedId)},Instafeed}();!function t(){function e(t,e=!1){const n=document.getElementById(t);if(n){let t=document.getElementById("video-"+i);t&&t.pause(),n.style.setProperty("display","none","important"),n.style.opacity=0,e||document.body.classList.remove("instafeed-body-no-scroll"),instafeedSettings.modalOpen=null,instafeedSettings.previouslyFocusedElement&&instafeedSettings.previouslyFocusedElement.focus(),p.removeListener(window,"keydown",instafeedTrapFocusHandler,!1),p.removeListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1})}}var i;p.addListener(document,"click",(function(t){var n,s;if(!t.target||!t.target.hasAttribute(`data-${d}-open-id`)&&!t.target.hasAttribute(`data-${d}-close-id`))return!1;if(n=t.target.hasAttribute(`data-${d}-open-id`)?t.target.getAttribute(`data-${d}-open-id`):t.target.getAttribute(`data-${d}-close-id`),s=document.getElementById("video-"+n),t.target.hasAttribute(`data-${d}-open-id`)){const t=document.getElementById(n);if(document.activeElement.classList.contains(`${d}-new-layout-item-container`)&&(instafeedSettings.previouslyFocusedElement=document.activeElement),t){let i=!1;if(instafeedSettings.modalOpen&&(i=!0,e(instafeedSettings.modalOpen,i)),instafeedSettings.modalOpen=n,t.style.setProperty("display","flex","important"),i?t.style.opacity=1:requestAnimationFrame((()=>{t.style.opacity=1})),document.body.classList.add("instafeed-body-no-scroll"),t.querySelector(".instafeed-simple-popup")&&p.addListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1}),s){const t=document.getElementById("video-spinner-"+n);t.style.display="block",s.play().then((()=>{t.style.display="none"}))}(function a(t){let e=`.${d}-new-arrow, .${d}-close-button`;window.matchMedia("only screen and (max-width: 1024px)").matches&&(e=`.${d}-close-button, .tagged-buy-button, .${d}-sound-button, .${d}-post-control-button`);const{firstFocusableElement:i,lastFocusableElement:n}=function s(t,e){const i=t.querySelectorAll(e);return{firstFocusableElement:i[0],lastFocusableElement:i[i.length-1]}}(t,e);instafeedTrapFocusHandler=t=>{!function e(t,i,n){("Tab"===t.key||9===t.keyCode)&&(t.shiftKey?t.target===i&&(n.focus(),t.preventDefault()):t.target===n&&(i.focus(),t.preventDefault()))}(t,i,n)},p.addListener(window,"keydown",instafeedTrapFocusHandler,!1),i&&i.focus()})(t),instafeedEventTag("modal_open",0)}}t.target.hasAttribute(`data-${d}-close-id`)&&e(n),i=n})),p.addListener(window,"keydown",(t=>{var i,n,s;const{key:a}=t;if(!document.getElementById("video-"+instafeedSettings.modalOpen)||" "!==a&&"Spacebar"!==a&&"Space"!==t.code||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||(t.preventDefault(),instafeedTogglePlay()),"Escape"===a)instafeedSettings.modalOpen&&e(instafeedSettings.modalOpen);else if("Enter"===t.key){const t=document.activeElement;("dialog"===t.getAttribute("aria-haspopup")||t.classList.contains(`${d}-post-control-button`)||t.classList.contains(`${d}-sound-button`)||t.classList.contains(`${d}-video-control`)||t.classList.contains(`${d}-close-button`)||t.classList.contains(`${d}-carousel-arrow`)||t.classList.contains(`${d}-new-arrow`))&&t.click()}(i=document.getElementById(instafeedSettings.modalOpen))&&(n="","ArrowLeft"===a?n=`.${d}-new-arrow.prev`:"ArrowRight"===a&&(n=`.${d}-new-arrow.next`),n&&(s=i.querySelector(n))&&s.click())}))}(),function t(){window.instafeedEventTag=function(t,e,i=0){if("undefined"==typeof Shopify||!1===instafeedSettings.analyticsViewsClicks)return;if(!1===instafeedSettings.analyticsProductClicks&&"product_click"===t)return;const s=new FormData;s.append("event",t),s.append("fid",e),s.append("product_id",i),s.append("shop",Shopify.shop),s.append("appVersion",n),navigator.sendBeacon("https://tr.nfcube.com/index/v1",s)}}(),function t(){window.instafeedAddToCart=(t,e,i,n)=>{const s=t.querySelector("button");s.innerHTML='<div class="instafeed-cart-spinner"></div>';const a=function o(t,e){let i=t.querySelector(".instafeed-cart-icon");if(!i)if(i=document.createElement("div"),i.className="instafeed-cart-icon",i.style.cursor="pointer",i.setAttribute("aria-label","View Cart"),i.onclick=t=>{t.stopPropagation(),t.preventDefault(),window.location.href="/cart"},"instafeed-simple-popup"===e){const e=t.closest(".instafeed-simple-popup-product-list");e&&e.insertAdjacentElement("beforebegin",i)}else t.appendChild(i);return i}(t,n),d={items:[{id:e,quantity:1}]};fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then((t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((()=>{fetch(window.Shopify.routes.root+"cart.js").then((t=>t.json())).then((t=>{a.setAttribute("data-count",t.item_count),a.style.display="flex",s.innerHTML=i.toUpperCase();const e=new CustomEvent("instafeed:cart:updated",{bubbles:!0,detail:t});document.dispatchEvent(e)})).catch((t=>{console.error("Error:",t),s.innerHTML=i}))})).catch((t=>{console.error("Error:",t),s.innerHTML=i}))}}(),function t(){window.instafeedToggleSound=t=>{var e=t.getAttribute("data-video-id"),i=document.getElementById(e);i.muted=!i.muted,instafeedSettings.sound=!i.muted,document.querySelectorAll(".instafeed-sound-button").forEach((function(t){t.classList.toggle("sound-on"),t.setAttribute("aria-label",i.muted?"Mute":"Unmute")}))}}(),function t(){window.instafeedTogglePlay=()=>{const t="video-"+instafeedSettings.modalOpen,e=document.getElementById(t),i=document.querySelector(`.instafeed-video-control[data-video-id="${t}"]`);e.paused?(e.play(),i.setAttribute("aria-label","Play"),i.classList.remove("paused")):(e.pause(),i.setAttribute("aria-label","Pause"),i.classList.add("paused"))}}(),function t(){window.instafeedCarouselArrow=function(t,e,i,n){const s=instafeedSettings.carousels[e][i],a=s.length,o=t.closest("div.instafeed-post-image");if(o){const t=o.querySelector("img");if(t&&a>0){const o=t.src;let d=s.indexOf(o);-1===d&&(d=0),d="left"===n?0===d?a-1:d-1:d===a-1?0:d+1,document.getElementById(`instafeed-carousel-dots-${e}-${i}`)?.querySelector(".instafeed-carousel-dot.active")?.classList.remove("active"),document.getElementById(`instafeed-carousel-dot-${e}-${i}-${d}`)?.classList.add("active"),t.src=s[d]}}}}(),function t(){window.instafeedSliderMove=(t,e=0)=>{instafeedSettings.sliderState[e]||(instafeedSettings.sliderState[e]={currentTransform:0,minTransform:0,isTransitioning:!1});const i=instafeedSettings.sliderState[e];if(i.isTransitioning)return;const n=Math.ceil(instafeedSettings.totalImages[e]/instafeedSettings.sliderNumVisibleImages[e])-1,s=parseFloat(instafeedSettings.sliderRowSize[e]*n).toFixed(3);i.currentTransform+=t*-instafeedSettings.sliderStepSize[e],i.currentTransform=parseFloat(i.currentTransform.toFixed(3)),i.currentTransform<-s&&(i.currentTransform=i.minTransform),i.currentTransform>i.minTransform&&(i.currentTransform=-s);const a=document.querySelector(`.${d}-new-layout-wrapper[data-feed-id="${e}"]`);if(!a)return;let o=i.currentTransform;"rtl"===document.documentElement.dir&&"81c182-2.myshopify.com"!==(this.options&&this.options.shopOrigin||"undefined"!=typeof Shopify&&Shopify.shop)&&(o=Math.abs(i.currentTransform)),a.style.transition="transform 0.5s ease-in-out",a.style.transform=`translateX(${o}px)`,i.isTransitioning=!0,setTimeout((()=>{a.style.transition="",i.isTransitioning=!1}),500)}}(),window.instafeedSettings={},instafeedSettings.version=n,instafeedSettings.sound=!1,instafeedSettings.analyticsViewsClicks=!1,instafeedSettings.analyticsProductClicks=!1,instafeedSettings.modalOpen=null,instafeedSettings.feedViewed={},instafeedSettings.previouslyFocusedElement=null,instafeedSettings.carousels={},instafeedSettings.sliderRowSize={},instafeedSettings.sliderStepSize={},instafeedSettings.sliderNumVisibleImages={},instafeedSettings.sliderState={},instafeedSettings.totalImages={},window.instafeedFeedsLoaded=window.instafeedFeedsLoaded||[],window.instafeedCssLoaded=window.instafeedCssLoaded||!1,window.instafeedScrollIntervals=window.instafeedScrollIntervals||{},window.instafeedSlideSpeed=window.instafeedSlideSpeed||6e3,window.instafeedPopupsPreloaded=window.instafeedPopupsPreloaded||!1,window.instafeedTrapFocusHandler=window.instafeedTrapFocusHandler||!1,window.instafeedTouchScrollListener=window.instafeedTouchScrollListener||function(t){t.preventDefault()},function(t,e){"use strict";function i(t,i,n){for(;t&&t!==e.documentElement;){var s=t.getAttribute(i);if(s)return s;t=t.parentNode}return n}"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var n=e.createEvent("CustomEvent");return n.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),n},t.CustomEvent.prototype=t.Event.prototype),e.addEventListener("touchstart",(function(t){"true"!==t.target.getAttribute("data-swipe-ignore")&&(r=t.target,d=Date.now(),n=t.touches[0].clientX,s=t.touches[0].clientY,a=0,o=0,l=t.touches.length)}),!1),e.addEventListener("touchmove",(function(t){if(n&&s){var e=t.touches[0].clientX,i=t.touches[0].clientY;a=n-e,o=s-i}}),!1),e.addEventListener("touchend",(function(t){var c,u,p,h,f,g,m;r===t.target&&(c=parseInt(i(r,"data-swipe-threshold","20"),10),u=i(r,"data-swipe-unit","px"),p=parseInt(i(r,"data-swipe-timeout","500"),10),h=Date.now()-d,f="",g=t.changedTouches||t.touches||[],"vh"===u&&(c=Math.round(c/100*e.documentElement.clientHeight)),"vw"===u&&(c=Math.round(c/100*e.documentElement.clientWidth)),Math.abs(a)>Math.abs(o)?Math.abs(a)>c&&h<p&&(f=a>0?"swiped-left":"swiped-right"):Math.abs(o)>c&&h<p&&(f=o>0?"swiped-up":"swiped-down"),""!==f&&(m={dir:f.replace(/swiped-/,""),touchType:(g[0]||{}).touchType||"direct",fingers:l,xStart:parseInt(n,10),xEnd:parseInt((g[0]||{}).clientX||-1,10),yStart:parseInt(s,10),yEnd:parseInt((g[0]||{}).clientY||-1,10)},r.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:m})),r.dispatchEvent(new CustomEvent(f,{bubbles:!0,cancelable:!0,detail:m}))),n=null,s=null,d=null)}),!1);var n=null,s=null,a=null,o=null,d=null,r=null,l=0}(window,document);if (document.getElementById('insta-feed') !== null) { var feed = new Instafeed({"account":"maketimewellness","hash":"ade2c0ed27f27394533daba7a1b0aac1","key":"instafeed-bb1d815e18053c739ea19c85d642ad36","apiVersion":6,"shopOrigin":"make-time-wellness.myshopify.com","title":"#MakeTime For conversation. For women’s health. For five minutes to yourself.","openIg":3,"space":1,"corners":0,"likes":1,"showFollowers":0,"showProducts":0,"layout":6,"format":0,"sliderBehavior":0,"instagramLinks":0,"loadingAnimation":0,"showPrices":0,"showReviews":0,"viewsAndClicks":0,"productClicks":0,"addToCart":0,"filter":"","taggedPosts":0,"columns":3,"columnsMobile":3,"rows":2,"rowsMobile":2,"autoplay":1,"autoLayout":0,"rowsLimit":4,"abTest":1,"feedId":0,"charge":26408845498}); feed.run(); }return instafeedLoad;})();window.addEventListener('resize',(a=>{let b;return()=>{clearTimeout(b),b=setTimeout(()=>{window.innerWidth!==a&&(a=window.innerWidth,instafeedApp())},100)}})(window.innerWidth));document.addEventListener('shopify:section:load',()=>{instafeedApp()});