function encodeURIComponentEx(n){return encodeURIComponent(n).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16)})}function getCookie(n){var t=document.cookie.match(new RegExp("(?:^|; )"+n.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):undefined}function setCookie(n,t,i){var r,u,f,e,o;i=i||{};r=i.expires;typeof r=="number"&&r&&(u=new Date,u.setDate(u.getDate()+r),r=i.expires=u);r&&r.toUTCString&&(i.expires=r.toUTCString());t=encodeURIComponent(t);f=n+"="+t;for(e in i)f+="; "+e,o=i[e],o!==!0&&(f+="="+o);document.cookie=f}function deleteCookie(n){setCookie(n,"",{expires:-1})}var QA,terminalDeviceId;(function(n){window.initTariffCityFederalSwitcher=function(t){n(".js-phone-switcher").off("change");n(".js-phone-switcher").on("change",function(){n(this).is(":checked")?(n(".js-city").show(),n(".js-federal").hide(),typeof t=="function"&&t(!0)):(n(".js-city").hide(),n(".js-federal").show(),typeof t=="function"&&t(!1))})};n(function(){window.initTariffCityFederalSwitcher()});window.openCustomPopup=function(t,i){if(i&&i(),t){window.PromoApp.Popup.openPopup("popup-modal.js-"+t);var r=n(".popup__overlay");r.length>1&&r.last().remove()}};window.toPhoneFormat=function(n){return n?n.toString().replace(/(\d{3})(\d{3})(\d{2})(\d{2})/,"+7 $1 $2 $3 $4"):""};window.toPluralStr=function(n,t,i){var r=function(n){var t=Math.abs(n);return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2};switch(r(n)){case 0:return(i?n+" ":"")+t[0];case 1:return(i?n+" ":"")+t[1];default:return(i?n+" ":"")+t[2]}}})($);QA=QA||{};QA.MTS=QA.MTS||{};QA.MTS.MAIN=QA.MTS.MAIN||{},function(n,t,i){i.Navigation=function(){"use strict";var u=".main-menu__item",f="is-active",i=function(t,r){return r.Parent!=null&&(r[t]==null||r[t]!=null&&n(u+"[data-id='"+r[t]+"']").size()==0)?i(t,r.Parent):r[t]},e=function(){var e=t.globalSettings.parentsTree,r;e&&(r=i("MenuVirtualParent",e),r||(r=i("ContentId",e)),r&&n(u+"[data-id='"+r+"']").addClass(f))},o=function(){e();r()};return{init:o}}();i.ScrollTo=function(t,i,r){n("html, body").animate({scrollTop:n(t).offset().top+(i||0)},r||500,"linear")};var r=function(){for(var r,u=t.browserInfo.getOSName(!0),i=document.querySelectorAll(".download-link-os"),n=0,f=i.length;n<f;n++)r=i[n].dataset||{},r[u]&&(i[n].href=r[u])}}($,window,QA.MTS.MAIN);window.addEventListener("DOMContentLoaded",function(){var n=function(n,t){var r,i,u;this.dataset||(this.dataset=t||{});this.dataset.event&&(r=$(this).attr("href"),this.dataset.content&&(r=this.dataset.content),i=window.globalSettings.gtm.product,i||(i={name:this.dataset.name,id:this.dataset.id}),u=null,this.dataset.catpage&&(u=window.analyticsContext.getPageSettings().eventCategory),window.analyticsContext.pushEvent(this.dataset.event,{eventLabel:this.dataset.label,buttonLocation:this.dataset.location,eventContent:r,productId:i.id,productName:i.name,eventCategory:u,eventContext:this.dataset.context}))};$("body").on("click",".gtm-event-click",n);$("body").on("click",".gtm-event-modal",function(t){$(t.target).hasClass("gtm-event-modal")&&n(t,this.dataset)});$(".gtm-footer-link").on("click",function(){window.analyticsContext.pushEvent("menuFooterClick",{eventLabel:$(this).attr("href"),eventContext:"1lvl"})});$("body").on("click",".gtm-menu-event-link",function(){window.analyticsContext.pushEvent("menuClick",{eventLabel:$(this).attr("href"),eventContent:this.dataset.level})})}),function(n,t){"use strict";function i(){var i=t.location.href.replace(t.location.hash,"");[].slice.call(n.querySelectorAll("use[*|href]")).filter(function(n){return n.getAttribute("xlink:href").indexOf("#")===0}).forEach(function(n){n.setAttribute("xlink:href",i+n.getAttribute("xlink:href"))})}n.addEventListener("DOMContentLoaded",i,!1);t.svgFixer={fixLinks:i}}(document,window);terminalDeviceId=terminalDeviceId||{value:0,requestState:"none"};$(function(){QA.MTS.MAIN.Navigation.init()})