$(function(){null==document.getElementById("isIndex")&&(function e(){let a=window.location.href;if(!$(".breadcrumb-navbar .navbar-wrapper").length)return!1;$(".breadcrumb-navbar .navbar-wrapper > li").each(function(){let e=$(this);a.indexOf(e.find(">a").attr("href"))>-1&&e.find(">a").addClass("active")})}(),$(".zoom-gallery").magnificPopup({delegate:"a",type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",image:{verticalFit:!0},gallery:{enabled:!0},zoom:{enabled:!0,duration:300,opener:function(e){return e.find("img")}}}),function e(){if($(".masonry-group").length){let a=$(".masonry-group");a.imagesLoaded(function(){a.isotope({itemSelector:".gallery-item",columnWidth:".grid-sizer",masonry:{gutter:20}})}),$(".category-button-wrapper .button-filter").on("click",e=>{e.preventDefault();let t=$(e.currentTarget),r=t.data("filter");$(".category-button-wrapper .button-filter").removeClass("active"),t.addClass("active"),a.isotope({filter:r})})}}(),function e(){let a=$("#youtubeModal"),t=a.find(".youtube-wrapper>iframe");$(".play-youtube").on("click",e=>{e.preventDefault();let r=$(e.currentTarget).attr("href").split("v=")[1];a.modal("show"),t.attr("src","https://www.youtube.com/embed/"+r)}),a.on("hidden.bs.modal",()=>{t.attr("src","")})}(),function e(){if(!$(".breadcrumb-navbar .navbar-wrapper").length)return!1;let a=[],t=[],r="",n="";$(".breadcrumb-navbar .navbar-wrapper > li").each(function(){let e=$(this);a.push($.trim(e.find(">a").text())),t.push(e.find(">a").attr("href")),e.find(">a").hasClass("active")&&(r=$.trim(e.find(">a").text()))}),n=`
`,$(".breadcrumb-navbar .container-xl").append(n)}())});