/**handles:visual-portfolio**/ !function(){"use strict";var o={n:function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},d:function(t,e){for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},t=window.jQuery,l=o.n(t);const{VPData:e}=window,{__:s}=e,i=l()(window);function n(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{const t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}const a={};let r=!1,d=!1,p=!1;function v(){if(clearTimeout(d),r){const t=l()(".vp-portfolio__ready");if(t.length){let i=!1;t.each(function(){var{vpf:t}=this,e;t&&(e=a[t.uid]||"none",a[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===e&&"visible"===a[t.uid]&&(i=!0))}),i&&n()}else r=!1;d=setTimeout(v,500)}}l()(document).on("inited.vpf",t=>{"vpf"===t.namespace&&(r=!0,v())}),document.addEventListener("keydown",function(t){t.metaKey||t.altKey||t.ctrlKey||(p=!0)},!0),document.addEventListener("mousedown",()=>{p=!1},!0),document.addEventListener("pointerdown",()=>{p=!1},!0),document.addEventListener("touchstart",()=>{p=!1},!0);class f{constructor(t,e){var i=this;const o=(i.$item=t)[0].className.split(/\s+/);for(let t=0;t{this.emitEvent("imagesLoaded")})}destroy(){var t=this;t.$item.removeClass("vp-portfolio__ready"),t.id&&(l()(`.vp-single-filter.vp-id-${t.id}`).removeClass("vp-single-filter__ready").parent(".vp-portfolio__layout-elements").removeClass("vp-portfolio__layout-elements__ready"),l()(`.vp-single-sort.vp-id-${t.id}`).removeClass("vp-single-sort__ready").parent(".vp-portfolio__layout-elements").removeClass("vp-portfolio__layout-elements__ready")),t.destroyEvents(),t.removeStyle(),t.renderStyle(),t.emitEvent("destroy"),t.destroyed=!0}addStyle(t,e,i){i=i||"";var o=this,{uid:s}=o;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]&&(o.stylesList[s]={}),void 0===o.stylesList[s][i]&&(o.stylesList[s][i]={}),void 0===o.stylesList[s][i][t]&&(o.stylesList[s][i][t]={}),o.stylesList[s][i][t]=l().extend(o.stylesList[s][i][t],e),o.emitEvent("addStyle",[t,e,i,o.stylesList])}removeStyle(t,e,i){i=i||"";var o=this,{uid:s}=o;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]||t||(o.stylesList[s]={}),void 0!==o.stylesList[s]&&void 0!==o.stylesList[s][i]&&void 0!==o.stylesList[s][i][t]&&t&&delete o.stylesList[s][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}renderStyle(){const s=this,{uid:n}=s;let a="";s.stylesList||(s.stylesList={}),void 0!==s.stylesList[n]&&Object.keys(s.stylesList[n]).forEach(o=>{o&&(a+=`@media ${o} {`),Object.keys(s.stylesList[n][o]).forEach(e=>{var t=`.vp-uid-${n}`;let i=`${t} ${e}`;i=i.replace(/, |,/g,`, ${t} `),a+=`${i} {`,Object.keys(s.stylesList[n][o][e]).forEach(t=>{a+=`${t}:${s.stylesList[n][o][e][t]};`}),a+="}"}),o&&(a+="}")});let t=l()(`#vp-style-${n}`);t.length||(t=l()("