/**
* floatingpush 1.0.6
* Generated: 2022-05-05
*/
!function(){"use strict";function l(e,t,i){e.addEventListener?e.addEventListener(t,i):e.attachEvent&&e.attachEvent("on"+t,i)}var h=Object.freeze({TOP:"top",BOTTOM:"bottom"}),p=Object.freeze({NOTIFICATION_AREA:"layout_push_notification_area",INNER_STYLE:"layout_push_inner_style",INNER_CONTENT:"layout_push_inner_content"}),a={base:'',mobile_mini:''};function u(e){var t=document.getElementById(e);if(!t)throw new Error("Can't find template fragment "+e);return t.cloneNode(!0).content}function r(e){var t=document.getElementById(e);t&&t.parentElement.removeChild(t)}var f=0;function m(a,r,s,e,i){var n,o,d=this;this.create=function(e,t){return n=function(e,t,i){var n="msg-el-"+f++,o=function(e){var t=u(p.INNER_CONTENT);t.querySelector(".ad_title").innerText=a;var i=t.querySelector(".ad_descr");void 0===r?c(i,"hide"):i.innerText=r;var n=t.querySelector(".ad_icon_wrapper");void 0===s?c(n,"hide"):n.querySelector(".ad_icon").src=s;return t.querySelector(".push_message").id=e,t}(n);0===t.children.length||i===h.TOP?t.appendChild(o):t.insertBefore(o,t.firstChild);return t.getElementById(n)}(document,e,t)},this.subscribe=function(e,t){o=t,l(n.querySelector(".ad_close_button"),"click",function(e){e.stopPropagation(),c(n,"animation_hide")}),l(n,"click",function(){e(d)})},this.show=function(){var t;l(t=n,"animationend",function(e){switch(e.animationName){case"_animation_show":break;case"_animation_hide":t.style.opacity="0",t.style.visibility="hidden",c(t,"animation_destroy");break;case"_animation_destroy":t.style.display="none",o&&o(d)}}),n.style.visibility="unset",c(n,"animation_show"),i&&function(e){if(e){var t=new Image(0,0);(t=document.body.appendChild(t)).src=e}}(i)},this.close=function(){n.remove()},this.destination=function(){return e}}function c(e,t){"classList"in e?e.classList.add(t):e.className+=" "+t}function s(i,n,e,o){var a,r,s=[];function d(e){window.open(e.destination(),"_blank"),t(e)}function l(e){t(e)}function t(e){for(var t=0;t