function ncPopupTips(f,d){var e=f?'':'',F=f?"tips-success":"tips-error",g='",eb=$(g);$("body").append(eb);$("body").addClass("modal-open");typeof lazyLoadInstance!="undefined"&&lazyLoadInstance.update();setTimeout(function(){$("body").removeClass("modal-open");eb.removeClass("nice-tips-open");eb.addClass("nice-tips-close");setTimeout(function(){eb.removeClass("nice-tips-close");setTimeout(function(){eb.remove()},200)},400)},1200)}function ncPopup(f,d,e,F){var e=e?'style="'+e+'"':"",g="",eb,T,c;f=="big"?g="nice-tips-lg":f=="no-padding"?g="nice-tips-nopd":f=="cover"?g="nice-tips-cover nice-tips-nopd":f=="full"?g="nice-tips-xl":f=="scroll"?g="nice-tips-scroll":f=="middle"?g="nice-tips-md":f=="small"&&(g="nice-tips-sm");eb='\t
\t\t
\t\t
\t\t\t
\t\t\t\t'+d+'\t\t\t
\t\t\t
\t\t
\t
\t';T=$(eb);$("body").append(T);$("body").addClass("modal-open");typeof lazyLoadInstance!="undefined"&&lazyLoadInstance.update();c=function(){$("body").removeClass("modal-open");$(T).removeClass("nice-tips-open");$(T).addClass("nice-tips-close");setTimeout(function(){$(T).removeClass("nice-tips-close");setTimeout(function(){T.remove()},200)},600)};$(T).on("click touchstart",".btn-close-tips, .nice-tips-overlay",function(f){f.preventDefault();c()});return typeof F=="object"&&Object.keys(F).forEach(function(f){$(T).on("click touchstart",f,function(d){var e=F[f](d,c)})}),T}function toggleDarkMode(){$("body").toggleClass("nice-dark-mode");$("body").hasClass("nice-dark-mode")?($(".logo-dark").removeClass("d-none"),$(".logo-dark").addClass("d-inline-block"),$(".logo-light").removeClass("d-inline-block"),$(".logo-light").addClass("d-none")):($(".logo-dark").removeClass("d-inline-block"),$(".logo-dark").addClass("d-none"),$(".logo-light").removeClass("d-none"),$(".logo-light").addClass("d-inline-block"))}function toggleSidebar(){$(".sidebar-close, .mobile-overlay").on("click",function(){$("body").removeClass("modal-open");$(".mobile-sidebar").removeClass("active");$(".mobile-overlay").removeClass("active")});$("#sidebarCollapse").on("click",function(){$("body").addClass("modal-open");$(".mobile-sidebar").addClass("active");$(".mobile-overlay").addClass("active");$(".collapse.in").toggleClass("in");$("a[aria-expanded=true]").attr("aria-expanded","false")})}function switchNightMode(){var f=document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/,"$1")||"0";f=="0"?(document.body.classList.add("nice-dark-mode"),document.cookie="night=1;path=/",console.log("夜间模式开启")):(document.body.classList.remove("nice-dark-mode"),document.cookie="night=0;path=/",console.log("夜间模式关闭"))}jQuery(document).ready(function(f){function d(f){var d=f.getBoundingClientRect();return d.top>=0&&d.left>=0&&d.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&d.right<=(window.innerWidth||document.documentElement.clientWidth)}var e,F,g,eb;if(toggleSidebar(),e=window.innerHeight,F=f("main").innerHeight(),F>e){g=f(".header").height();f(window).on("scroll",{TopPrev:0},function(){var d=f(window).scrollTop();d0&&f(".header").hasClass("fixed-header")?f(".header").addClass("visible-scroll-up"):f(".header").removeClass("visible-scroll-up fixed-header"):(f(".header").removeClass("visible-scroll-up"),d>g&&!f(".header").hasClass("fixed-header")&&f(".header").addClass("fixed-header"));this.TopPrev=d})}f(window).scroll(function(){var d=f(window),e=d.width();f(this).scrollTop()>200&&e>=1024?f("#scroll_to_top").filter(":hidden").fadeIn("fast"):f("#scroll_to_top").filter(":visible").fadeOut("fast")});f("#scroll_to_top").on("click",function(){return f("html, body").animate({scrollTop:0},"slow"),!1});f('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var d=f(this.hash);if(d=d.length?d:f("[name="+this.hash.slice(1)+"]"),d.length)return f("html, body").animate({scrollTop:d.offset().top-60},1e3,"easeInOutExpo"),!1}});f('[data-toggle="tooltip"]').tooltip();f('[data-toggle="tooltip"]').on("shown.bs.tooltip",function(){f(".tooltip").addClass("animated fadeIn")});f(".sidebar").theiaStickySidebar({additionalMarginTop:20,additionalMarginBottom:20});f(".sidebar-author").theiaStickySidebar({additionalMarginTop:100,additionalMarginBottom:20});f(".main-menu li").hasClass("menu-item-has-children")&&f(".main-menu .menu-item-has-children").prepend('');f(".mobile-sidebar-menu .menu-item-has-children > a").append('');f(".dropdown-sub-menu").on("click",function(){f(this).parents("li").children(".sub-menu").slideToggle();f(this).parents("li").children(".dropdown-sub-menu").toggleClass("current")});eb=f(".list-banner .owl-carousel");eb.length>0&&eb.owlCarousel({items:1,loop:!0,margin:10,smartSpeed:1e3,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,responsiveClass:!0,responsive:{0:{items:1,margin:10,nav:!1},768:{nav:!0,navText:['','']},992:{nav:!0,navText:['','']}}});f(document).on("click",".single-popup",function(d){d.preventDefault();var e=f(this).data("img"),F=f(this).data("title"),g=f(this).data("desc"),eb=''+F+'
'+g+'
';ncPopup("small",eb)})});jQuery(document).ready(function(f){var d=f("#monavber").attr("data-type");f(".navbar>li ").each(function(){var e,F,g,eb;try{if(e=f(this).attr("id"),"index"==d)e=="nvabar-item-index"&&f("#nvabar-item-index").addClass("current-menu-item");else if("category"==d){if(eb=f("#monavber").attr("data-infoid"),eb!=null)for(F=eb.split(" "),g=0;gli").each(function(){f(this).removeClass("current-menu-item")});f(this).closest("ul")!=null&&f(this).closest("ul").length!=0&&(f(this).closest("ul").attr("id")=="munavber"?f(this).addClass("current-menu-item"):f(this).closest("ul").closest("li").addClass("current-menu-item"))})});!function(f){f.fn.theiaStickySidebar=function(d){function e(d,e){var g=F(d,e);g||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),f(document).on("scroll."+d.namespace,function(d,e){return function(g){var eb=F(d,e);eb&&f(this).unbind(g)}}(d,e)),f(window).on("resize."+d.namespace,function(d,e){return function(g){var eb=F(d,e);eb&&f(this).unbind(g)}}(d,e)))}function F(d,e){return d.initialized===!0||!(f("body").width()