1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9124],{39124:(function(I,u,e){var m=e(52675),K=e.n(m),d=e(89463),R=e.n(d),E=e(2259),B=e.n(E),h=e(45700),U=e.n(h),v=e(23792),b=e.n(v),f=e(89572),g=e.n(f),j=e(2892),S=e.n(j),P=e(84185),x=e.n(P),O=e(26099),N=e.n(O),y=e(78459),z=e.n(y),D=e(58940),F=e.n(D),M=e(47764),w=e.n(M),T=e(62953),G=e.n(T);function o(i){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(i)}function C(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function a(i,t){for(var _=0;_<t.length;_++){var s=t[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,L(s.key),s)}}function p(i,t,_){return t&&a(i.prototype,t),_&&a(i,_),Object.defineProperty(i,"prototype",{writable:!1}),i}function L(i){var t=W(i,"string");return o(t)=="symbol"?t:t+""}function W(i,t){if(o(i)!="object"||!i)return i;var _=i[Symbol.toPrimitive];if(_!==void 0){var s=_.call(i,t||"default");if(o(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}var n,A=(function(){function i(){var t=this;C(this,i),this.options={v:80,minTime:5},this.element=document.querySelector("#news-ticker"),this.list=document.querySelectorAll("#news-ticker-content ul li"),this.interval=0,this.index=0,this.prepareList();var _=new ResizeObserver(function(s){t.prepareList()}).observe(document.querySelector("#news-ticker-content"))}return p(i,[{key:"prepareList",value:function(){this.tickerContentWidth=document.querySelector("#news-ticker-content").clientWidth;for(var _=0;_<this.list.length;_++){var s=this.list[_].querySelector("a, span");this.list[_].setAttribute("data-width",s.clientWidth)}}},{key:"getTime",value:function(_){var s=this.list[_],l=parseInt(s.getAttribute("data-width"));return parseFloat(l/this.options.v)}},{key:"showElement",value:function(_){for(var s=0;s<this.list.length;s++)this.list[s].classList.remove("active"),this.list[s].querySelector("a, span").classList.remove("animation"),this.list[s].querySelector("a, span").setAttribute("tabindex","-1");var l=this.getTime(_),c=this.list[_],r=c.querySelector("a, span");r.clientWidth>this.tickerContentWidth&&(r.style.animationDuration=l+"s",r.classList.add("animation")),r.setAttribute("tabindex","0"),c.classList.add("active")}},{key:"run",value:function(){var _=this,s=this.options.minTime*1e3;this.showElement(this.index),this.interval=this.list[this.index].querySelector("a, span").clientWidth>this.tickerContentWidth?this.getTime(this.index)*1e3+1300:s,this.index++,this.index==this.list.length&&(this.index=0),n=setInterval(function(){_.iteration()},this.interval)}},{key:"iteration",value:function(){var _=this,s=this.options.minTime*1e3;this.showElement(this.index),this.interval=this.list[this.index].querySelector("a, span").clientWidth>this.tickerContentWidth?this.getTime(this.index)*1e3+1300:s,this.index++,this.index==this.list.length&&(this.index=0),clearInterval(n),n=setInterval(function(){_.iteration()},this.interval)}}])})();u.default=A})}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.