webpackJsonp([2],{237:function(t,e,i){i(79),t.exports=i(442)},442:function(t,e,i){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=document.body.offsetWidth,c=10+a.offsetWidth/2>n,u=n>document.body.offsetWidth/2&&document.body.offsetWidth-n<10+a.offsetWidth/2,b=a.offsetWidth/2*-1||0;n+b<0||s?(a.style.width="calc(100% - 25px)",a.style.left="10px"):u?(a.style.right="5px",a.style.marginRight="5px"):c?(a.style.left=n+"px",a.style.marginLeft=b+10+"px"):(a.style.left=n+"px",a.style.marginLeft=b+"px"),s||c?l.style.left=n-10-l.offsetWidth/2+"px":u?l.style.right=document.body.offsetWidth-n-20+"px":l.style.left="calc(50% - "+l.offsetWidth/2+"px)",o.top-a.offsetHeight<0?(a.style.top=o.bottom+window.pageYOffset+10+"px",a.classList.add("abt-tooltip_bottom"),l.classList.add("abt-tooltip__callout_up")):(a.style.top=o.top+window.pageYOffset-a.offsetHeight-10+"px",a.classList.add("abt-tooltip_top"),l.classList.add("abt-tooltip__callout_down")),a.classList.add("abt-tooltip_active")}var l=function(){function t(t,e){for(var i=0;ih3.toggle")&&this.enableToggle()}}return l(t,[{key:"enableToggle",value:function(){var t=this,e=document.querySelector(".abt-bibliography__heading_toggle");if(this.itemContainer&&e){var i=e.dataset.headingLevel;i&&(e.style.font=this.getHeadingFont(i)),this.itemContainer.classList.add("abt-bibligraphy__container--hidden"),e.classList.add("abt-bibliography__heading_toggle--closed"),e.addEventListener("click",function(){e.setAttribute("aria-expanded",JSON.stringify(e.classList.contains("abt-bibliography__heading_toggle--closed"))),e.classList.toggle("abt-bibliography__heading_toggle--closed"),t.itemContainer.classList.toggle("abt-bibligraphy__container--hidden")})}}},{key:"getHeadingFont",value:function(t){var e=document.createElement(t);e.style.display="none",document.body.appendChild(e);var i=getComputedStyle(e),o=i.font;return document.body.removeChild(e),o}}]),t}();r.isTouchDevice=!0===("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),e.Frontend=r}},[237]); //# sourceMappingURL=frontend.js.map