1!function(e){"function"==typeof define&&define.amd?define("scripts",e):e()}((function(){"use strict";function e(e,o,t){document.cookie=[encodeURIComponent(e)+"="+encodeURIComponent(o),"max-age="+t,"path=/"].join("; ")}function o(e){for(var o=encodeURIComponent(e)+"=",t=document.cookie.split(";"),n=0;n<t.length;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return decodeURIComponent(i.substring(o.length,i.length))}return null}var t=1e3,n=6e4,i=36e5,r=24*i,a=function(a){if(a&&!(a.length<0)){var s,p,c,u,l,d=JSON.parse(a.getAttribute("data-options")),_=(s=d.locale,c={day:{en:["day","days"],ru:["денÑ","днÑ","дней"]},hour:{en:["hour","hours"],ru:["ÑаÑ","ÑаÑа","ÑаÑов"]},minute:{en:["minute","minutes"],ru:["минÑÑа","минÑÑÑ","минÑÑ"]},second:{en:["second","seconds"],ru:["ÑекÑнда","ÑекÑндÑ","ÑекÑнд"]}},u=void 0!==(p={en:function(e){return 1===e?0:1},ru:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}})[s]?p[s]:p.en,function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(void 0!==c[e]&&void 0!==c[e][s]){var t=u(o);if(void 0!==c[e][s][t])return c[e][s][t]}return e}),m=o(d.identity);if(null!==m){var f=m.split(".");m=parseInt(f[0]),l=f[1],parseInt(l)!==parseInt(d.time)&&(m=(new Date).getTime()+1e3*d.time,e(d.identity,[m,d.time].join("."),d.time))}else m=(new Date).getTime()+1e3*d.time,e(d.identity,[m,d.time].join("."),d.time);var h,v=new Date(m),y=(new Date).getTime(),w=Math.max(0,v-y),g=Math.floor(w/r),b=Math.floor(w%r/i),k=Math.floor(w%i/n),j=Math.floor(w%n/t),C="",T=!d.hide_empty||g>0,x=!d.hide_empty||b>0||T,S=!d.hide_empty||k>0||x;T&&(C+='<div class="'+d.class_prefix+'countdown__item js-mypopup-countdown-days"><div class="'+d.class_prefix+'countdown__num"><span class="js-mypopup-countdown-num"></span></div><div class="'+d.class_prefix+'countdown__label"><span class="js-mypopup-countdown-label"></span></div></div>'),x&&(C+='<div class="'+d.class_prefix+'countdown__item js-mypopup-countdown-hours"><div class="'+d.class_prefix+'countdown__num"><span class="js-mypopup-countdown-num"></span></div><div class="'+d.class_prefix+'countdown__label"><span class="js-mypopup-countdown-label"></span></div></div>'),S&&(C+='<div class="'+d.class_prefix+'countdown__item js-mypopup-countdown-minutes"><div class="'+d.class_prefix+'countdown__num"><span class="js-mypopup-countdown-num"></span></div><div class="'+d.class_prefix+'countdown__label"><span class="js-mypopup-countdown-label"></span></div></div>'),C+='<div class="'+d.class_prefix+'countdown__item js-mypopup-countdown-seconds"><div class="'+d.class_prefix+'countdown__num"><span class="js-mypopup-countdown-num"></span></div><div class="'+d.class_prefix+'countdown__label"><span class="js-mypopup-countdown-label"></span></div></div>',a.innerHTML=C;var E=function(){y=(new Date).getTime(),w=Math.max(0,v-y),g=Math.floor(w/r),b=Math.floor(w%r/i),k=Math.floor(w%i/n),j=Math.floor(w%n/t);var e=a.querySelector(".js-mypopup-countdown-days");null!==e&&(e.querySelector(".js-mypopup-countdown-num").innerHTML=g,e.querySelector(".js-mypopup-countdown-label").innerHTML=_("day",g));var o=a.querySelector(".js-mypopup-countdown-hours");null!==o&&(o.querySelector(".js-mypopup-countdown-num").innerHTML=d.start_with_zero&&b<10?"0"+b:b,o.querySelector(".js-mypopup-countdown-label").innerHTML=_("hour",b));var s=a.querySelector(".js-mypopup-countdown-minutes");null!==s&&(s.querySelector(".js-mypopup-countdown-num").innerHTML=d.start_with_zero&&k<10?"0"+k:k,s.querySelector(".js-mypopup-countdown-label").innerHTML=_("minute",k));var p=a.querySelector(".js-mypopup-countdown-seconds");p.querySelector(".js-mypopup-countdown-num").innerHTML=d.start_with_zero&&j<10?"0"+j:j,p.querySelector(".js-mypopup-countdown-label").innerHTML=_("second",j),w<=0&&(clearInterval(h),document.dispatchEvent(new CustomEvent("mypopup_countdown_elapsed",{detail:{el:a,identity:d.identity}})))};E(),h=setInterval(E,1e3)}};function s(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function p(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function c(e,o,t){return o&&p(e.prototype,o),t&&p(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var o=function(e,o){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(e,"string");return"symbol"==typeof o?o:o+""}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e){var o=parseInt(e,10);return o>0?o:1}function _(e){try{return JSON.parse(o(e))||[]}catch(e){console.error(e)}return[]}var m=function(){return c((function e(o,t){s(this,e),this._cookieName=o,this.isPreview=t,this._popups=_(o)}),[{key:"getPopupsExcept",value:function(e){return this._popups.filter((function(o){return o.id!==e})).map((function(e){return{id:e.id,version:d(e.version),time:e.time,show_on:!!e.show_on}}))}},{key:"setAllPopups",value:function(e){return this._popups=e,function(e,o,t){var n;if(t){var i=new Date;i.setTime(i.getTime()+24*t*60*60*1e3),n="; expires="+i.toGMTString()}else n="";document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/"}(this._cookieName,JSON.stringify(e),this.isPreview?0:"3650"),this}},{key:"isHidden",value:function(e){var o=Math.floor((new Date).getTime()/1e3),t=!1;return this._popups.filter((function(o){return o.id===e.id}
1)).forEach((function(n){d(n.version)===d(e.version)&&n.time>o&&(t=!0)})),t}}])}();var f=function(){return c((function e(o){s(this,e),this._storageKey=o,this._state=function(e){try{var o=window.localStorage.getItem(e);if(!o)return{};var t=JSON.parse(o);return t&&"object"===l(t)?t:{}}catch(e){console.error(e)}return{}}(o),this._incremented=!1}),[{key:"normalizePathname",value:function(e){var o=e||"/";return"/"!==o.charAt(0)&&(o="/"+o),(o=o.replace(/\/+$/,""))||"/"}},{key:"getPageKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return"page:"+this.normalizePathname(e)}},{key:"persist",value:function(){try{window.localStorage.setItem(this._storageKey,JSON.stringify(this._state))}catch(e){console.error(e)}return this}},{key:"incrementCurrentPage",value:function(){if(this._incremented)return this.getCurrentPageCount();var e=this.getPageKey(),o=parseInt(this._state[e],10);return this._state[e]=(isNaN(o)?0:o)+1,this._incremented=!0,this.persist(),this._state[e]}},{key:"getCurrentPageCount",value:function(){var e=parseInt(this._state[this.getPageKey()],10);return isNaN(e)?0:e}}])}();jQuery((function(e){var o={animationDelay:150},t=!!(my_popup_ajax||{}).is_preview,n=new m(t?"my_popup_hide__preview":"my_popup_hide",t),i=new f("my_popup_visits"),r=t?0:i.incrementCurrentPage(),s=function(){this.stack=[],e(document).keyup(function(e){if(27===e.keyCode){var o=this.stack.pop();o&&"function"==typeof o.callback&&o.callback()}}.bind(this))};s.prototype.push=function(e,o){return this.off(e),this.stack.push({name:e,callback:o}),this},s.prototype.off=function(e){return this.stack=this.stack.filter((function(o){return o.name!==e})),this};var p=new s,c=!1,u=!1,l=!1,d=!1,_=!1,h=!1,v=!1;function y(){c&&g.forEach((function(e){e.show_popup_time_enabled&&void 0===e._showTimout&&(e._showTimout=setTimeout((function(){!e.is_show&&j(e)&&(e.is_show=!0)}),e.show_popup_time_value))})),u&&!h&&(window.addEventListener("scroll",x(b),!0),window.addEventListener("resize",x(b),!0),h=!0),l&&!v&&(window.addEventListener("scroll",x(k),!0),v=!0),d&&g.forEach((function(o){if(o.show_popup_inactive_enabled){var t=0;e(document).ready((function(){var n=setInterval((function(){t+=1,!o.is_show&&t>o.show_popup_inactive_value&&j(o)&&(o.is_show=!0,clearInterval(n))}),1e3);e(this).mousemove((function(e){t=0})),e(this).keypress((function(e){t=0}))}))}})),_&&g.forEach((function(o){if(o.show_popup_leaves_page){var t=null;e(document).on("mousemove",(function(e){t=e.clientY})),e(document).on("mouseout",(function(e){var n=!e.relatedTarget&&!e.toElement,i=e.clientY<=10,r=null!==t&&e.clientY<=t;!o.is_show&&n&&i&&r&&(j(o),o.is_show=!0)}))}}))}function w(o){e("body").append(o);var t=o.attr("id"),n=o.data("options");n.show_popup_time_enabled&&(c=!0),n.show_popup_scroll_enabled&&(u=!0),n.show_popup_element_enabled&&(l=!0),n.show_popup_inactive_enabled&&(d=!0),n.show_popup_leaves_page&&(_=!0);var i={id:t,version:n.popup_version,is_show:!1,popup_position:n.popup_position,cookies_enabled:!!parseInt(n.cookies_enabled),cookies_type:n.cookies_type,cookies_value:n.cookies_value,enable_overlay:n.enable_overlay,close_button_enabled:n.close_button_enabled,close_button_time:n.close_button_time,close_overlay:n.close_overlay,close_esc:n.close_esc,scroll_lock:n.scroll_lock,close_popup_enabled:n.close_popup_enabled,close_popup_time:n.close_popup_time,overlay_color:n.overlay_color,overlay_opacity:n.overlay_opacity,show_popup_time_enabled:n.show_popup_time_enabled,show_popup_time_value:n.show_popup_time_value,show_popup_scroll_enabled:n.show_popup_scroll_enabled,show_popup_scroll_value:n.show_popup_scroll_value,show_popup_element_enabled:n.show_popup_element_enabled,show_popup_element_value:n.show_popup_element_value,show_popup_inactive_enabled:n.show_popup_inactive_enabled,show_popup_inactive_value:n.show_popup_inactive_value,show_popup_leaves_page:n.show_popup_leaves_page,show_on_click:n.show_popup_on_click,show_on_click_selector:n.show_popup_on_click_selector,visit_rules:n.visit_rules||{}};i.show_on_click&&i.show_on_click_selector&&e(document).on("click",i.show_on_click_selector,(function(e){e.preventDefault(),j(i,!1)&&(i.is_show=!0)})),g.push(i)}window.appendMyPopup=w,window.initMyPopups=y;var g=[];function b(){g.forEach((function(e){e.show_popup_scroll_enabled&&function(){var e=window.hasOwnProperty("pageYOffset")?window.pageYOffset:window.scrollTop,o=isNaN(window.innerHeight)?window.clientHeight:window.innerHeight,t=parseInt(100*e/(n=document.body,i=document.documentElement,Math.max(n.scrollHeight,n.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)-o));var n,i;t<=0&&(t=0);t>=100&&(t=100);return t}()>=e.show_popup_scroll_value&&!e.is_show&&j(e)&&(e.is_show=!0)}))}
1function k(){g.forEach((function(o){if(o.show_popup_element_enabled){var t=e(o.show_popup_element_value).offset().top;(window.hasOwnProperty("pageYOffset")?window.pageYOffset:window.scrollTop)>t-(isNaN(window.innerHeight)?window.clientHeight:window.innerHeight)&&!o.is_show&&j(o)&&(o.is_show=!0)}}))}function j(t){var i,s,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!!function(e,o){var t=e.visit_rules||{};if(!t.is_enabled)return!0;var n=parseInt(t.from,10),i=parseInt(t.to,10);switch(t.mode){case"exact":return!isNaN(n)&&o===n;case"range":return!isNaN(n)&&!isNaN(i)&&o>=n&&o<=i;default:return!isNaN(i)&&o<=i}}(t,r)&&((!c||!n.isHidden(t))&&(t.enable_overlay&&(i=t.id,(s=document.createElement("div")).className="mypopup-over",s.id=i+"_over",g.forEach((function(o){o.overlay_color&&e("mypopup-over").css({"background-color":o.overlay_color}),o.overlay_opacity&&e("mypopup-over").css({opacity:o.overlay_opacity,"filter: alpha(opacity=":o.overlay_opacity}),o.close_overlay||e(s).on("click",(function(e){T(i)}))})),document.body.append(s),t.overlay_color&&e(".mypopup-over").css({"background-color":t.overlay_color}),t.overlay_opacity&&e(".mypopup-over").css({opacity:t.overlay_opacity})),setTimeout((function(){!function(t){e(document.body).addClass("mypopup-open"),t.scroll_lock&&setTimeout((function(){e(document.body).addClass("mypopup-scroll-lock")}),o.animationDelay)}(t);var n,i=e("#"+t.id),r=function(e){if(void 0===e.data("content"))return"";try{var o=decodeURIComponent(S(e.data("content")));return e.removeData("content"),e.removeAttr("data-content"),o}catch(e){console.error(e)}return""}(i);i.append(r),i.show((function(){document.dispatchEvent(new CustomEvent("my_popup_show",{detail:{$popup:i}}))})),i.find(".mypopup-modal-close.js-mypopup-modal-close").hide(),t.close_button_enabled&&setTimeout((function(){i.find(".mypopup-modal-close.js-mypopup-modal-close").show()}),t.close_button_time),C(t.id),[100,500,1e3,2e3].forEach((function(e){return setTimeout((function(){return C(t.id)}),e)})),e(window).resize((function(){C(t.id)})),i.on("click",(function(e){e.target===e.currentTarget&&T(t.id)})),t.close_esc||p.push(t.id,(function(){T(t.id)})),t.close_popup_enabled&&setTimeout((function(){T(t.id)}),t.close_popup_time),n=document.querySelectorAll("#"+t.id+" .js-mypopup-countdown"),NodeList.prototype.isPrototypeOf(n)?n.forEach(a):a(n)}),10),!0))}function C(o){var t=e(window).height();g.filter((function(e){return e.id===o})).forEach((function(o){var n=e("#modal_"+o.id).outerHeight();n+120>t?e("#modal_content_"+o.id).css({"max-height":t-40,"overflow-y":"auto"}):"center_left"!==o.popup_position&&"center_center"!==o.popup_position&&"center_right"!==o.popup_position||e("#modal_"+o.id).css({"margin-top":(t-n)/2})}))}function T(i){if(!t){var r=g.filter((function(e){return e.id===i}));if(!r.length)return!1;r=r[0],p.off(r.id);var a=n.getPopupsExcept(i),s=Math.floor((new Date).getTime()/1e3),c=r.cookies_enabled,u=Math.floor((new Date).getTime()/1e3);r.cookies_enabled?r.cookies_value&&("minutes"===r.cookies_type?s=u+60*r.cookies_value:"hours"===r.cookies_type?s=u+60*r.cookies_value*60:"days"===r.cookies_type?s=u+24*r.cookies_value*60*60:"months"===r.cookies_type&&(s=u+30*r.cookies_value*24*60*60)):s=u+31536e4,a.push({id:i,version:r.version,time:s,show_on:c}),n.setAllPopups(a),e(document.body).removeClass("mypopup-open"),e(document.body).removeClass("mypopup-scroll-lock"),setTimeout((function(){e("#"+i+"_over").remove(),e("#"+i).hide()}),o.animationDelay)}}function x(e,o){void 0===o&&(o=250);var t,n,i=!1;return function r(){if(i)return t=arguments,void(n=e);e.apply(e,arguments),i=!0,setTimeout((function(){i=!1,t&&(r.apply(n,t),t=n=null)}),o)}}function S(e){if("undefined"==typeof window)return new Buffer(e,"base64").toString("utf-8");if(void 0!==window.atob)return decodeURIComponent(escape(window.atob(e)));var o,t,n,i,r,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=0,c=0,u="",l=[];if(!e)return e;e+="";do{o=(a=s.indexOf(e.charAt(p++))<<18|s.indexOf(e.charAt(p++))<<12|(i=s.indexOf(e.charAt(p++)))<<6|(r=s.indexOf(e.charAt(p++))))>>16&255,t=a>>8&255,n=255&a,l[c++]=64===i?String.fromCharCode(o):64===r?String.fromCharCode(o,t):String.fromCharCode(o,t,n)}while(p<e.length);return u=l.join(""),decodeURIComponent(escape(u.replace(/\0+$/,"")))}e(".js-mypopup-container").each((function(){w(e(this))})),y(),function(){if(void 0===window.myPopupInitData)return;
1e.ajax({type:"post",url:my_popup_ajax.url,data:{nonce:my_popup_ajax.nonce,action:"my_popup_init_data",params:window.myPopupInitData.params,location_hash:window.location.hash||""}}).done((function(o){o.success?(o.data.items.forEach((function(o){w(e(o))})),y()):console.log(o)}))}(),window.myPopupShow=function(e){return g.filter((function(o){return o.id===e})).forEach((function(e){e.show_on_click&&j(e,!1)&&(e.is_show=!0)})),!1},window.myPopupClose=function(o){if("string"==typeof o)T(o);else{var t=e(o).parents(".mypopup-modal");t.length&&T(t.attr("id").substring(6))}},document.addEventListener("click",(function(o){t&&(e(o.target).blur(),o.stopPropagation(),o.preventDefault(),console.warn("prevent all clicks in preview mode"))}),!0),e(document).on("click",".js-mypopup-modal-close",(function(){T(e(this).parents(".js-mypopup-container").attr("id"))})),e(document).on("click",".js-mypopup-link",(function(){var o=e(this).data("href");if(o){var t;try{t=new URL(o)}catch(e){}if(void 0===t)try{t=new URL(S(o))}catch(e){console.error("Unable to parse encoded url")}void 0!==t&&window.open(t)}})),e(document).on("submit",".mypopup-body form",(function(o){var t=e(o.target),n=t.find('input[data-name="my-popup-form-options"]');if(n.length){o.preventDefault();var i=function(o,n){var i=e("<span>").addClass("mypopup-modal__message mypopup-modal__message--"+n);i.text(o),t.find(".mypopup-modal__message").remove(),t.prepend(i)};e.ajax({type:"POST",url:t.attr("action"),data:t.serialize(),beforeSend:function(){t.find('*[type="submit"]').attr("disabled",!0)},success:function(e){if(e.success){e.data&&e.data.message&&i(e.data.message,"success");var o=n.data("redirect_url");if(o)try{var r=new URL(o,window.location.origin);if("http:"===r.protocol||"https:"===r.protocol)return void(window.location.href=r.href)}catch(e){}n.data("close_time")&&setTimeout((function(){return myPopupClose(t)}),n.data("close_time"))}else e.data&&e.data.message&&i(e.data.message,"error")}}).always((function(){t.find('*[type="submit"]').attr("false",!0)}))}})),document.addEventListener("my_popup_show",(function(e){var o=e.detail.$popup;if(!o.data("_scripts_handled")){var t=o.find(".mypopup-body"),n=t.clone();n.find(".custom-add-script").contents(":not(script)").remove(),t.empty(),function(e,o){var t=document.createElement("div");t.innerHTML=o;var n=[];for(t.querySelectorAll("script").forEach((function(e){n.push({parent:e.parentNode,script:e}),e.parentNode.removeChild(e)}));t.firstChild;)e.appendChild(t.firstChild);n.forEach((function(o){var t=o.parent,n=o.script,i=document.createElement("script");Array.from(n.attributes).forEach((function(e){i.setAttribute(e.name,e.value)}));try{n.textContent&&i.appendChild(document.createTextNode(n.textContent))}catch(e){i.text=n.textContent}document.contains(t)?t.appendChild(i):e.appendChild(i)}))}(t.get(0),n.html()),o.data("_scripts_handled",!0)}}))}))}));
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.