(()=>{"use strict";var o={n:t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},d:(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(o,t)=>Object.prototype.hasOwnProperty.call(o,t)};const t=window.jQuery;var e=o.n(t);const n=function(o){var t=[],e=null,n=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t=i,e||(e=requestAnimationFrame(function(){e=null,o.apply(void 0,t)}))};return n.cancel=function(){e&&(cancelAnimationFrame(e),e=null)},n};function i(o,t,e){var n,i=e||{},a=i.noTrailing,p=void 0!==a&&a,r=i.noLeading,s=void 0!==r&&r,f=i.debounceMode,c=void 0===f?void 0:f,u=!1,d=0;function v(){n&&clearTimeout(n)}function m(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var r=this,f=Date.now()-d;function m(){d=Date.now(),t.apply(r,i)}function l(){n=void 0}u||(s||!c||n||m(),v(),void 0===c&&f>o?s?(d=Date.now(),p||(n=setTimeout(c?l:m,o))):m():!0!==p&&(n=setTimeout(c?l:m,void 0===c?o-f:o)))}return m.cancel=function(o){var t=(o||{}).upcomingOnly,e=void 0!==t&&t;v(),u=!e},m}var a,p=window.getComputedStyle,r=e()(window),s=e()(document),f=["tiles","masonry","grid"];s.on("extendClass.vpf",function(o,t){"vpf"===o.namespace&&(t.prototype.initIsotope=function(o){var t=this;if(t.$items_wrap.isotope&&f.includes(t.options.layout)){var e="rtl"===p(t.$items_wrap[0]).direction,n=o||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",masonry:"masonry"===t.options.layout?{horizontalOrder:"true"===t.options.masonryHorizontalOrder}:{},transitionDuration:"0.3s",percentPosition:!0,originLeft:!e,resize:!1};t.emitEvent("beforeInitIsotope",[n]),t.$items_wrap.isotope(n),t.emitEvent("initIsotope",[n])}},t.prototype.destroyIsotope=function(){var o=this;o.$items_wrap.data("isotope")&&(o.$items_wrap.isotope("destroy"),o.emitEvent("destroyIsotope"))})}),s.on("addItems.vpf",function(o,t,e,n){if("vpf"===o.namespace&&t.$items_wrap.data("isotope")){if(n){var i=t.$items_wrap.find(".vp-portfolio__item-wrap");t.$items_wrap.isotope("remove",i),t.$items_wrap.prepend(e).isotope("prepended",e)}else t.$items_wrap.append(e).isotope("appended",e);t.initIsotope("layout"),setTimeout(function(){t.initIsotope("layout")},0)}}),s.on("removeItems.vpf",function(o,t,e){"vpf"===o.namespace&&t.$items_wrap.data("isotope")&&t.$items_wrap.isotope("remove",e)}),s.on("init.vpf",function(o,t){"vpf"===o.namespace&&t.initIsotope()}),s.on("imagesLoaded.vpf",function(o,t){"vpf"===o.namespace&&t.initIsotope("layout")}),s.on("destroy.vpf",function(o,t){"vpf"===o.namespace&&t.destroyIsotope()}),s.on("initEvents.vpf",function(o,t){if("vpf"===o.namespace&&t.$items_wrap.isotope&&f.includes(t.options.layout)){var e=".vpf-uid-".concat(t.uid);r.on("resize".concat(e),i(100,n(function(){t.initIsotope("layout")})))}}),s.on("destroyEvents.vpf",function(o,t){if("vpf"===o.namespace&&f.includes(t.options.layout)){var e=".vpf-uid-".concat(t.uid);r.off("resize".concat(e))}}),s.on("vc-full-width-row",i(150,n(function(o,t){e()(t).find(".vp-portfolio").each(function(){this.vpf&&this.vpf.initIsotope&&this.vpf.$items_wrap.data("isotope")&&this.vpf.initIsotope("layout")})}),{debounceMode:!1!==(void 0!==(a={}.atBegin)&&a)}))})();