"use strict";function initNewsItemContextMenu(n,t){function r(t){i.popover("hide");$(n,$(t)).addClass("cmb-visible")}function u(t){var i=$(n,$(t));typeof i.attr("aria-describedby")=="undefined"&&i.removeClass("cmb-visible")}var i=$(n),f=$(t);if(i.length!==0){if(hasTouchscreen())i.addClass("cmb-visible");else if(window.PointerEvent){$(t).on("mouseenter",function(){r(this)});$(t).on("mouseleave",function(){u(this)})}else $(t).hover(function(){r(this)},function(){u(this)});i.popover({viewport:"#main-cntnr"});i.on("click",function(){var n=$(this);n.parent().next("div.popover").length>0?n.popover("hide"):n.popover("show")});i.on("hide.bs.popover",function(){hasTouchscreen()||$(this).removeClass("cmb-visible")});i.on("show.bs.popover",function(){$(".context-menu-button").not(this).popover("hide")});$(window).on("click",function(t){if(typeof t.originalEvent!="undefined"){var r=$(t.originalEvent.target).attr("class");typeof r!="undefined"&&(r.indexOf(n.replace(".",""))>-1||r.indexOf("fa-ellipsis")>-1)||i.popover("hide")}});$(document).on("click",".popover.in",function(n){n.stopPropagation()});$("body").on("hidden.bs.popover",function(){var n=$('article [role="tooltip"]').not(".in");n&&n.remove()})}}$(function(){initNewsItemContextMenu(".context-menu-button",".news-ni .art-body")}),function(n,t,i){typeof module!="undefined"&&module.exports?module.exports=i():typeof define=="function"&&define.amd?define(i):t[n]=i()}("jquery-scrollto",this,function(){var i,n,t;return i=n=window.jQuery||require("jquery"),n.propHooks.scrollTop=n.propHooks.scrollLeft={get:function(n,t){var i=null;return(n.tagName==="HTML"||n.tagName==="BODY")&&(t==="scrollLeft"?i=window.scrollX:t==="scrollTop"&&(i=window.scrollY)),i==null&&(i=n[t]),i}},n.Tween.propHooks.scrollTop=n.Tween.propHooks.scrollLeft={get:function(t){return n.propHooks.scrollTop.get(t.elem,t.prop)},set:function(n){n.elem.tagName==="HTML"||n.elem.tagName==="BODY"?(n.options.bodyScrollLeft=n.options.bodyScrollLeft||window.scrollX,n.options.bodyScrollTop=n.options.bodyScrollTop||window.scrollY,n.prop==="scrollLeft"?n.options.bodyScrollLeft=Math.round(n.now):n.prop==="scrollTop"&&(n.options.bodyScrollTop=Math.round(n.now)),window.scrollTo(n.options.bodyScrollLeft,n.options.bodyScrollTop)):n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},t={config:{duration:400,easing:"swing",callback:undefined,durationMode:"each",offsetTop:0,offsetLeft:0},configure:function(i){return n.extend(t.config,i||{}),this},scroll:function(i,r){var l,u,a,s,y,nt,h,c,p,w,b,k,e,d,g,o,f,v;return l=i.pop(),u=l.$container,a=l.$target,nt=u.prop("tagName"),s=n("<span/>").css({position:"absolute",top:"0px",left:"0px"}),y=u.css("position"),u.css({position:"relative"}),s.appendTo(u),b=s.offset().top,k=a.offset().top,e=k-b-parseInt(r.offsetTop,10),d=s.offset().left,g=a.offset().left,o=g-d-parseInt(r.offsetLeft,10),h=u.prop("scrollTop"),c=u.prop("scrollLeft"),s.remove(),u.css({position:y}),f={},v=function(){return i.length===0?typeof r.callback=="function"&&r.callback():t.scroll(i,r),!0},r.onlyIfOutside&&(p=h+u.height(),w=c+u.width(),h<e&&e<p&&(e=h),c<o&&o<w&&(o=c)),e!==h&&(f.scrollTop=e),o!==c&&(f.scrollLeft=o),u.prop("scrollHeight")===u.width()&&delete f.scrollTop,u.prop("scrollWidth")===u.width()&&delete f.scrollLeft,f.scrollTop!=null||f.scrollLeft!=null?u.animate(f,{duration:r.duration,easing:r.easing,complete:v}):v(),!0},fn:function(i){var e,o,r,u,f,s,h;if(e=[],f=n(this),f.length===0)return this;for(o=n.extend({},t.config,i),r=f.parent(),u=r.get(0);r.length===1&&u!==document.body&&u!==document;)s=r.css("overflow-y")!=="visible"&&u.scrollHeight!==u.clientHeight,h=r.css("overflow-x")!=="visible"&&u.scrollWidth!==u.clientWidth,(s||h)&&(e.push({$container:r,$target:f}),f=r),r=r.parent(),u=r.get(0);return e.push({$container:n("html"),$target:f}),o.durationMode==="all"&&(o.duration/=e.length),t.scroll(e,o),this}},n.ScrollTo=n.ScrollTo||t,n.fn.ScrollTo=n.fn.ScrollTo||t.fn,t})