(()=>{"use strict";var t={n:o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return t.d(e,{a:e}),e},d:(o,e)=>{for(var i in e)t.o(e,i)&&!t.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:e[i]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o)};const o=window.jQuery;var e=t.n(o),i=window.VPData.screenSizes;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var n=window.Isotope.LayoutMode.modes.masonry;if(n){var a=n.prototype.measureColumns;n.prototype.measureColumns=function(){var t=!0;if(!this.columnWidth){var o=e()(this.element).closest('.vp-portfolio[data-vp-layout="tiles"]');if(o.length&&o[0].vpf){this.getContainerWidth();for(var n=o[0].vpf.getTilesSettings(),p=parseInt(n[0],10)||1,s=p-1,r=Math.min(i.length-1,s);r>=0;r-=1)s>0&&void 0!==i[r]&&window.innerWidth<=i[r]&&(p=s),s-=1;p&&(this.columnWidth=this.containerWidth/p,this.columnWidth+=this.gutter,this.cols=p,t=!1)}}t&&a.call(this)}}}e()(document).on("extendClass.vpf",function(t,o){"vpf"===t.namespace&&(o.prototype.getTilesSettings=function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t})}),e()(document).on("initOptions.vpf",function(t,o){"vpf"===t.namespace&&(o.defaults.tilesType="3|1,1|",o.options.tilesType||(o.options.tilesType=o.defaults.tilesType))}),e()(document).on("initLayout.vpf",function(t,o){if("vpf"===t.namespace&&"tiles"===o.options.layout){var e=o.getTilesSettings(),n=parseInt(e[0],10)||1;if(e.shift(),o.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/n,"%")}),e&&e.length)for(var a=0;a<e.length;a+=1){var p=e[a].split(","),s=parseFloat(p[0])||1,r=parseFloat(p[1])||1,l=".vp-portfolio__item-wrap";e.length>1&&(l+=":nth-of-type(".concat(e.length,"n+").concat(a+1,")")),s&&1!==s&&o.addStyle(l,{width:"".concat(100*s/n,"%")}),o.addStyle("".concat(l," .vp-portfolio__item-img-wrap::before"),{"padding-top":"".concat(100*r,"%")})}for(var d=n-1,c=Math.min(i.length-1,d);c>=0;c-=1)d>0&&void 0!==i[c]&&(o.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/d,"%")},"screen and (max-width: ".concat(i[c],"px)")),o.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/d,"%")},"screen and (max-width: ".concat(i[c],"px)"))),d-=1}})})();