1(self.webpackChunkmk_ru_redisign=self.webpackChunkmk_ru_redisign||[]).push([[345],{6345:function(t,e,i){"use strict";i.r(e),i(1539),i(8674),i(9826),i(1038),i(8783),i(4747),i(7327),i(7042),i(8309),i(2526),i(1817),i(2165),i(6992),i(3948);var n=i(9308),r=(i(1249),i(3210),i(2172)),o=(i(9600),i(2707),i(3507));function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var a=function(t){var e=t%100;return e>=11&&e<=19||e%10>=5&&e%10<=9||e%10==0?t+" маÑеÑиалов по Ñеме":e%10>=2&&e%10<=4?t+" маÑеÑиала по Ñеме":t+" маÑеÑиал по Ñеме"},l=function(t){var e="meta"in t?(0,o.ZP)(t.meta):"",i="coverPicture"in t?'\n <picture class="article-preview__image">\n <img class="article-preview__image-content" width="240" height="135" loading="lazy" src="'+t.coverPicture[0].src+'" srcset="'+t.coverPicture.sort((function(t,e){return t.size-e.size})).map((function(t){return void 0!==t.src&&void 0!==t.size?t.src+" "+t.size+"w":""})).filter((function(t){return""!==t})).join(", ")+'" sizes="90px" alt="">\n </picture>':'<picture class="article-preview__image"><img class="article-preview__image-content" width="240" height="135" loading="lazy" src="'+t.picture.src+'" alt=""></picture>';return'\n <article class="article-preview article-preview_simple">\n <a class="article-preview__content" href="'+t.url+'">\n <div class="article-preview__title-photo-group"><h3 class="article-preview__title">'+t.title+"</h3>"+i+"</div>\n </a>\n "+e+"\n </article>"},c=function(t){return'\n <aside class="additional">\n <div class="additional__content">\n <header class="additional__header">\n <h2 class="additional__title">ÐаÑеÑÐ¸Ð°Ð»Ñ Ð¿Ð¾ Ñеме</h2>\n <button class="additional__close-button">\n <svg class="additional__close-button-icon" width="24" height="24"><use xlink:href="#icon-menu-close"></use></svg>\n <span class="visually-hidden">ÐакÑÑÑÑ</span>\n </button>\n </header>\n '+function(t){for(var e,i="",n=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(e=n()).done;){var r=e.value;i+='<li class="additional__item">'+l(r)+"</li>"}return'<ul class="additional__list">'+i+"</ul>"}(t)+'\n <button class="additional__show-all-button"'+(t.length<3?" disabled":"")+'>\n <span class="additional__show-all-text">'+a(t.length)+'</span>\n <span class="additional__show-all-icon-wrap">\n <svg class="additional__show-all-icon" width="16" height="16"><use xlink:href="#icon-show-more"></use></svg>\n </span>\n </button>\n </div>\n </aside>'},u=i(7572),d=function(){function t(){var t=document.querySelector(".js-article-post-editor-related-articles");if(null===t)return null;var e=JSON.parse(t.innerText).map((function(t){return{title:t.title,url:t.url,meta:{exclusive:"isExclusive"in t&&t.isExclusive,photo:"hasPhotos"in t&&t.hasPhotos,video:"hasVideos"in t&&t.hasVideos,views:"views"in t?t.views:0},coverPicture:[{src:t.teaserImage,size:90},{src:t.announceImage,size:210},{src:t.detailImage,size:550}]}}));if(0===e.length)return null;var i=c(e),n=(0,u.JE)(i);this._root=n,this._bannerData=document.querySelector(".js-article-post-additional-banner"),this.onOpenButtonClick=this.open.bind(this),this.onCloseButtonClick=this.close.bind(this),this._onOutsideClick=this._onOutsideClick.bind(this),this.focusTrap=new r.Z(this._root),this.focusTrap.onEscCallback=this.onCloseButtonClick,this.openButton=n.querySelector(".additional__show-all-button"),this.closeButton=n.querySelector(".additional__close-button"),this.openButton.addEventListener("click",this.onOpenButtonClick),this.closeButton.addEventListener("click",this.onCloseButtonClick)}var e=t.prototype;return e._onOutsideClick=function(t){for(var e=t.target;null!==e;){if(e===this._root)return;if(null===e.parentNode)return void this.close();e=e.parentNode}},e.open=function(){this._root.style.minHeight=this._root.offsetHeight+"px",document.addEventListener("click",this._onOutsideClick),window.addEventListener("keydown",this.focusTrap.onKeydownControl),this._root.classList.add("additional_open"),this.closeButton.focus()},e.close=function(){var t=document.activeElement===this.closeButton;this._root.classList.remove("additional_open"),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("keydown",this.focusTrap.onKeydownControl),this._root.removeAttribute("style"),t&&this.openButton.focus()},e.initBanner=function(){if(null!==this._bannerData)try{var t=JSON.parse(this._bannerData.textContent);if(""===t.trim())return;var e=document.createElement("li");e.innerHTML='<p class="meta" style="display:none;"><span class="meta__item meta__item_adv">Реклама</span></p>'+t,e.classList.add("additional__item"),this._root.querySelectorAll(".additional__item")[1].insertAdjacentElement("afterend",e),(0,u.fz)(e),this._updateItemCounter()}catch(t){console.log("Banner error in additional."),console.error(t)}},e._updateItemCounter=function(){var t=this._root.querySelector(".additional__show-all-button"),e=t.querySelector(".additional__show-all-text"),i=this._root.querySelectorAll(".additional__item");e.innerText=a(i.length),t.disabled=i.length<3},t}();function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(9601);var p={increase:"js-font-size-increase",reduce:"js-font-size-reduce",reset:"js-font-size-reset"},_=function(){function t(t,e,i){void 0===i&&(i=p),this._settings=Object.assign(Object.assign({},p),i),this.root=t,this._state=e,this.reduceButton=document.querySelector("."+this.settings.reduce),this.increaseButton=document.querySelector("."+this.settings.increase),this.resetButton=document.querySelector("."+this.settings.reset),this.root&&this._init()}var e,i,n=t.prototype;return n._init=function(){var t=this;
1this._state.addCallback((function(){t.update()})),this.update(),null!==this.reduceButton&&this.reduceButton.addEventListener("click",(function(){t._state.reduce(),ym(1598573,"reachGoal","enlarge")})),null!==this.increaseButton&&this.increaseButton.addEventListener("click",(function(){t._state.increase(),ym(1598573,"reachGoal","enlarge")})),null!==this.resetButton&&this.resetButton.addEventListener("click",(function(){t._state.fontSize=t._defaultFontSize,ym(1598573,"reachGoal","enlarge")}))},n.update=function(){this.root.style.fontSize=this._state.fontSize===this._state.settings.default?"":this._state.fontSize+"px",null!==this.reduceButton&&(this.reduceButton.disabled=this._state.fontSize===this._minFontSize),null!==this.increaseButton&&(this.increaseButton.disabled=this._state.fontSize===this._maxFontSize),null!==this.resetButton&&(this.resetButton.disabled=this._state.fontSize===this._defaultFontSize)},e=t,(i=[{key:"settings",get:function(){return this._settings}},{key:"_minFontSize",get:function(){return this._state.settings.min}},{key:"_defaultFontSize",get:function(){return this._state.settings.default}},{key:"_maxFontSize",get:function(){return this._state.settings.max}}])&&h(e.prototype,i),t}();function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(189);var g={min:18,max:30,step:1,default:18,localStorageKey:"fontSize"},m=function(){function t(t){void 0===t&&(t=g),this._settings=Object.assign(Object.assign({},g),t),this._fontSize=null,this._activeArticle=new Set,this._callbacks=new Set}var e,i,n=t.prototype;return n._normalize=function(t){return t<this.settings.min?t=this.settings.min:t>this.settings.max&&(t=this.settings.max),t},n.addCallback=function(t){this._callbacks.add(t)},n.removeCallback=function(t){this._callbacks.has(t)&&this._callbacks.delete(t)},n._callCallbacks=function(){var t=this;this._callbacks.forEach((function(e){e(t.fontSize)}))},n.increase=function(){this.fontSize+=1},n.reduce=function(){this.fontSize-=1},e=t,(i=[{key:"fontSize",get:function(){if(null===this._fontSize){var t=localStorage&&this.settings.localStorageKey in localStorage?parseInt(localStorage[this.settings.localStorageKey],10):this.settings.default;this._fontSize=this._normalize(t)}return this._fontSize},set:function(t){this._fontSize=this._normalize(t),this._callCallbacks(),"localStorage"in window&&(localStorage[this.settings.localStorageKey]=this._fontSize)}},{key:"settings",get:function(){return this._settings}}])&&v(e.prototype,i),t}(),f=function(t){var e=t.nextElementSibling.children.length>0&&"STRONG"!==t.nextElementSibling.children[0].tagName||0===t.nextElementSibling.children.length;return"P"===t.tagName&&"P"===t.nextElementSibling.tagName&&"P"===t.nextElementSibling.nextElementSibling.tagName&&e},w=i(8809),y=i(8584),b=i(2289),S=i(4436);function C(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return L(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function k(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(4603),i(4916),i(9714),i(4723),i(2222);var P=function(){function t(e,i){this._voice=i,this._playProgress=0,this._phraseParts=t.getParts(e),this._currentPlay=null,this._onEndPart=this._onEndPart.bind(this)}t.getParts=function(t){var e=new RegExp("(.{1,180}[,.!?]|.{1,180})","g");return t.match(e).map((function(t){return t.trim()}))};var e=t.prototype;return e.play=function(){if(!(this._playProgress>=this._phraseParts.length)){if(null!==this._currentPlay)return this._currentPlay.addEventListener("end",this._onEndPart),void window.speechSynthesis.speak(this._currentPlay);var t=new SpeechSynthesisUtterance;t.lang=this._voice.lang,t.voice=this._voice,t.text=this._phraseParts[this._playProgress],t.rate=1,window.speechSynthesis.cancel(),window.speechSynthesis.speak(t),t.addEventListener("end",this._onEndPart),this._currentPlay=t}},e.pause=function(){null!==this._currentPlay&&this._currentPlay.removeEventListener("end",this._onEndPart)},e.stop=function(){this.pause(),this._playProgress=0},e._onEndPart=function(){this._currentPlay.removeEventListener("end",this._onEndPart),this._currentPlay=null,this._playProgress++,this._playProgress===this._phraseParts.length?(this._playProgress=0,this.onEndPhrase()):this.play()},e.onEndPhrase=function(){},t}(),A=function(){function t(){this._isInit=!1,this._textParts=null,this._phrases=[],this._currentPlay=0,this._voice=null,this.activateButton=null,this._onPageHide=this._onPageHide.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._initVoice=this._initVoice.bind(this),this._bindActivateButton=this._bindActivateButton.bind(this),t.getVoicesIfAvailible().then(this._initVoice).then(this._bindActivateButton,(function(t){console.warn(t)}))}var e,i,n=t.prototype;return n._initVoice=function(e){var i=this;return new Promise((function(n,r){var o=t.findRuVoice(e);
1null!==o?(i._voice=o,i._isInit=!0,n(o)):r("Russian voice no found")}))},n._bindActivateButton=function(t){var e=this;return this.activateButton=document.querySelector(".article-tool__item_sound"),null===this.activateButton||(this.activateButton.disabled=!1,this.activateButton.checked=!1,this.activateButton.addEventListener("change",(function(t){!0===t.target.checked?(e.play(),"ga"in window&&ga("send","event","Article Reading","play"),ym(1598573,"reachGoal","textplay")):(e.pause(),"ga"in window&&ga("send","event","Article Reading","pause"))}))),t},n.getPhraseByNumber=function(t){var e=this;return null===this.textParts||void 0===this.textParts[t]?null:(void 0===this._phrases[t]&&(this._phrases[t]=new P(this.textParts[t],this._voice),this._phrases[t].onEndPhrase=function(){var i=e.getPhraseByNumber(t+1);null!==i?(e._currentPlay=t+1,i.play()):(e.activateButton.checked=!1,e._currentPlay=0)}),this._phrases[t])},t.getTextFromNode=function(t){return null!=t?[t.innerText]:[]},t.getTextFromNodes=function(e){if(!1 in e)return[];for(var i,n=[],r=C(e);!(i=r()).done;){var o=i.value;n.push.apply(n,t.getTextFromNode(o))}return n},t.getVoicesIfAvailible=function(){return new Promise((function(t,e){if("speechSynthesis"in window){var i=window.speechSynthesis.getVoices();void 0===i||0===i.length?window.speechSynthesis.onvoiceschanged=function(){var i=window.speechSynthesis.getVoices();void 0===i||0===i.length?e("Voices no found"):t(i)}:t(i)}else e("Too old browser")}))},t.findRuVoice=function(t){for(var e,i=C(t);!(e=i()).done;){var n=e.value;if("ru"===n.lang||"ru-RU"===n.lang||"ru_RU"===n.lang)return n}return null},n.play=function(){var t=this.getPhraseByNumber(this._currentPlay);null!==t&&(this.bindStopEvents(),t.play())},n.pause=function(){var t=this.getPhraseByNumber(this._currentPlay);this.unBindStopEvents(),t.pause(),window.speechSynthesis.cancel(),this.activateButton.checked=!1},n.bindStopEvents=function(){window.addEventListener("pagehide",this._onPageHide),window.addEventListener("visibilitychange",this._onVisibilityChange)},n.unBindStopEvents=function(){window.removeEventListener("pagehide",this._onPageHide),window.removeEventListener("visibilitychange",this._onVisibilityChange)},n._onPageHide=function(){this.pause()},n._onVisibilityChange=function(){document.hidden&&this.pause()},e=t,(i=[{key:"textParts",get:function(){if(null!==this._textParts)return this._textParts;var e=document.querySelector(".article__title"),i=document.querySelector(".article__subtitle"),n=document.querySelectorAll(".article__description p"),r=document.querySelectorAll(".article__body p");return this._textParts=[].concat(t.getTextFromNode(e),t.getTextFromNode(i),t.getTextFromNodes(n),t.getTextFromNodes(r)),this._textParts}}])&&k(e.prototype,i),t}();function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function E(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var T=function(){function t(e){this._pictureData=e,this._onImageLoad=this._onImageLoad.bind(this),this._picture=document.createElement("picture"),this._picture.innerHTML=t.innerSouce("source"in this._pictureData?this._pictureData.source:void 0),this._image=document.createElement("img"),this._image.alt="alt"in this._pictureData.img?this._pictureData.img.alt:"",this._image.addEventListener("load",this._onImageLoad),this._picture.appendChild(this._image),this._isLoaded=!1}var e,i,n=t.prototype;return n.addClassToImage=function(t){this._image.classList.add(t)},n.removeClassFromImage=function(t){this._image.classList.remove(t)},t.innerSouce=function(t){if(!t||!Array.isArray(t))return"";for(var e,i="",n=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return x(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(e=n()).done;){var r=e.value,o="<source";for(var s in r)o+=" "+s+'="'+r[s]+'"';i+=o+=">"}return i},n.load=function(){this.isLoaded||(this._image.srcset="srcset"in this._pictureData.img?this._pictureData.img.srcset:"",this._image.src="src"in this._pictureData.img?this._pictureData.img.src:"")},n._onImageLoad=function(t){this._image.removeEventListener("load",this._onImageLoad),this.onImageLoadCallback(t),this._isLoaded=!0},n.onImageLoadCallback=function(){},e=t,(i=[{key:"isLoaded",get:function(){return this._isLoaded}},{key:"innerPicture",get:function(){return this._picture.innerHTML}}
1])&&E(e.prototype,i),t}();function I(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var B={pictureContainerLoading:"gallery__image_loading",picture:"gallery__image-picture",pictureImage:"gallery__image-content",previewsContainer:"gallery__preview-link",previewsContainerLoading:"gallery__preview-link_loading",previewsContainerActive:"gallery__preview-link_active",previewPicture:"gallery__preview-image",previewPictureImage:"gallery__preview-image-content",descriptionText:"gallery__description-text",descriptionTextRemoving:"gallery__description-text_removing",imageData:"gallery__image-data"},N=function(){function t(t,e){var i=this;void 0===e&&(e=B),this.settings=Object.assign(Object.assign({},B),e);var n=t.querySelector("."+this.settings.imageData);if(n){this.imageData=JSON.parse(n.innerText),n.remove(),this._photoLoading=new T(this.imageData.photo),this._photoLoading.addClassToImage(this.settings.pictureImage),this._photoLoading.onImageLoadCallback=this._onPhotoLoad.bind(this),this._previewLoading=new T(this.imageData.preview),this._previewLoading.addClassToImage(this.settings.previewPictureImage),this._previewLoading.onImageLoadCallback=this._onPreviewLoad.bind(this),this.photoContainer=t,this.photoContainer.classList.add(this.settings.pictureContainerLoading);var r=t.querySelector("."+this.settings.picture);r?this.photo=r:(this.photo=document.createElement("picture"),this.photo.classList.add(this.settings.picture)),this._photoObserver=new IntersectionObserver((function(t){t[0].intersectionRatio>.5?i.observerCallback("photo",!0):i.observerCallback("photo",!1)}),{threshold:[.1,.9]}),this._photoObserver.observe(this.photo),this.previewContainer=document.createElement("a"),this.previewContainer.href="url"in this.imageData?this.imageData.url:"#",this.previewContainer.classList.add(this.settings.previewsContainer),this.previewContainer.classList.add(this.settings.previewsContainerLoading),this.previewContainer.addEventListener("click",(function(t){i.onPreviewClick(t)})),this._preview=document.createElement("picture"),this._preview.classList.add(this.settings.previewPicture),this._previewObserver=new IntersectionObserver((function(t){t[0].isIntersecting&&i.observerCallback("preview",!0)}),{threshold:.5}),this._previewObserver.observe(this._preview),this.activateTimer=null,this.descriptionAuthorNode=null,this.descriptionTextContainer=null,this._descriptionTextNode=null,this._descriptionRemovingTimer=null,this.updateCounterCallback=null,"description"in this.imageData&&(this._descriptionTextNode=document.createElement("span"),this._descriptionTextNode.classList.add(this.settings.descriptionText),this._descriptionTextNode.innerText=this.imageData.description)}else console.log("Error: dataNode not found")}var e,i,n=t.prototype;return n._onPhotoLoad=function(){this.photo.innerHTML=this._photoLoading.innerPicture,this.photoContainer.classList.remove(this.settings.pictureContainerLoading),this.photo.parentElement||this.photoContainer.insertAdjacentElement("afterbegin",this.photo)},n._onPreviewLoad=function(){this._preview.innerHTML=this._previewLoading.innerPicture,this.previewContainer.classList.remove(this.settings.previewsContainerLoading),this.previewContainer.insertAdjacentElement("afterbegin",this._preview),this._previewLoading.removeClassFromImage(this.settings.previewPictureImage),this._previewLoading.addClassToImage(this.settings.pictureImage),this.photo.parentElement||(this.photo.innerHTML=this._previewLoading.innerPicture,this.photoContainer.insertAdjacentElement("afterbegin",this.photo))},n.onPreviewClick=function(){},n.loadPhoto=function(){this.isLoaded||this._photoLoading.load()},n.loadPreview=function(){this.isLoaded||this._previewLoading.load()},n.disconnectPreviewObserver=function(){this._previewObserver.disconnect()},n.activate=function(){this.previewContainer.classList.add(this.settings.previewsContainerActive),this._descriptionTextNode.classList.remove(this.settings.descriptionTextRemoving),clearTimeout(this._descriptionRemovingTimer),this._descriptionTextNode&&this.descriptionTextContainer.insertAdjacentElement("beforeend",this._descriptionTextNode),this.descriptionAuthorNode&&"author"in this.imageData&&(this.descriptionAuthorNode.innerText=this.imageData.author),this.updateCounterCallback&&this.updateCounterCallback()},n.deactivate=function(){var t=this;if(this.previewContainer.classList.remove(this.settings.previewsContainerActive),this._descriptionTextNode){this._descriptionTextNode.classList.add(this.settings.descriptionTextRemoving);var e=setTimeout((function(){t._descriptionTextNode.remove()}),500);this._descriptionRemovingTimer=e}},n.observerCallback=function(){},e=t,(i=[{key:"isLoaded",get:function(){return this._photoLoading.isLoaded&&this._previewLoading.isLoaded}}
1])&&I(e.prototype,i),t}();function q(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(561);var j={pictureContainerLoading:"gallery__image_loading",picture:"gallery__image-picture",pictureImage:"gallery__image-content",previewsContainer:"gallery__preview-link",previewsContainerLoading:"gallery__preview-link_loading",previewsContainerActive:"gallery__preview-link_active",previewPicture:"gallery__preview-image",previewPictureImage:"gallery__preview-image-content",descriptionAuthor:"gallery__description-author",descriptionTextContainer:"gallery__description-container",descriptionText:"gallery__description-text",descriptionTextRemoving:"gallery__description-text_removing",imageData:"gallery__image-data"},M=function(){function t(t,e){var i=this;void 0===e&&(e=j),this.settings=Object.assign(Object.assign({},j),e);var n=t.querySelector("."+this.settings.imageData);n?(this.imageData=JSON.parse(n.innerText),n.remove(),this._isLoadedPreview=!1,this._isLoadedPhoto=!1,this.photoContainer=t,this._photoObserver=new IntersectionObserver((function(t){t[0].intersectionRatio>.5?i.observerCallback("photo",!0):i.observerCallback("photo",!1)}),{threshold:[.1,.9]}),this._photoObserver.observe(this.photoContainer),this.previewContainer=document.createElement("a"),this.previewContainer.href="url"in this.imageData?this.imageData.url:"#",this.previewContainer.classList.add("gallery__preview-link"),this.previewContainer.addEventListener("click",(function(t){i.onPreviewClick(t)})),this.previewContainer.innerHTML='<svg class="gallery__more-preview-icon" width="106" height="60" viewB
1ox="0 0 135 76" xmlns="http://www.w3.org/2000/svg"><path d="M44 29h22v12H44V29zm0 14h22v1H44v-1zm0 2h22v1H44v-1zm0 2h12v1H44v-1zM70 29h22v12H70V29zm0 14h22v1H70v-1zm0 2h22v1H70v-1zm0 2h12v1H70v-1z"></path></svg>',this.activateTimer=null,this._moreContentData=null,this._recommendContentData=null,this.backLinkNode=null,this.nextLinkNode=null,this.showMoreBackLink=document.createElement("a"),this.showMoreBackLink.classList.add("media-more__back-link"),this.showMoreBackLink.innerHTML='\n <svg class="media-more__back-icon" width="48" height="48" style="transform: scale(-1, 1)"><use xlink:href="#icon-arrow"></use></svg>\n <span class="visually-hidden">ÐÑедÑдÑÑее изобÑажение</span>',this.showMoreToStartLink=document.createElement("a"),this.showMoreToStartLink.classList.add("media-more__to-start-link"),this.showMoreToStartLink.innerHTML='\n <svg class="media-more__to-start-icon" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.707 4.046a1 1 0 11.573 1.916 6 6 0 106.721 2.432v1.318a1 1 0 11-2 0v-5h5a1 1 0 010 2h-1.755a8 8 0 11-8.539-2.666z"></path></svg>
1\n <span class="media-more__to-start-text">ÐеÑнÑÑÑÑÑ Ð² наÑало галеÑеи</span>',this.updateCounterCallback=null,this.siteId="MKPageState"in window&&"siteId"in window.MKPageState?window.MKPageState.siteId:1):console.log("Error: dataNode not found")}var e,i,n=t.prototype;return n.loadPhoto=function(){!1===this.isLoaded&&this.loadPreview()},n._createPreviewString=function(t){var e=t.images.filter((function(t){return t.isCover}));return'\n <article class="media-more__preview">\n <a href="'+t.url+'" class="media-more__preview-link">\n <picture class="media-more__preview-image">\n <img class="media-more__preview-image-content" src="'+(0!==e.length?e[0].sizes.announcePicture:t[0].images.sizes.announcePicture)+'" alt="">\n </picture>\n <h3 class="media-more__preview-title">'+t.title+"</h3>\n </a>\n </article>"},n._renderContent=function(t,e){var i,n=this,r=null==(i=t.photoReports)?void 0:i.filter((function(t){return t.id!==n.imageData.id})).slice(0,2);e.articles.length>0&&(e.articles[0].images=[{isCover:!0,sizes:{announcePicture:e.articles[0].announceImage}}],e.articles[0].url=e.articles[0].url+"?from=fotorep",r.splice(1,1,e.articles[0]));var o=document.createElement("div");return o.classList.add("gallery__more-content"),o.classList.add("media-more"),o.innerHTML='\n <h2 class="media-more__title">СмоÑÑеÑÑ ÐµÑÑ ÑоÑо:</h2>\n '+r.map((function(t){return n._createPreviewString(t)})).join("")+'\n <div class="media-more__back"></div>\n <div class="media-more__to-start"></div>',o.querySelector(".media-more__back").append(this.showMoreBackLink),o.querySelector(".media-more__to-start").append(this.showMoreToStartLink),o},n.loadPreview=function(){var t=this;if(!1===this.isLoaded){var e=this.photoContainer.dataset.background;this.moreContentData.then((function(e){t.recommendContentData.then((function(i){t.photoContainer.innerHTML="",t.photoContainer.append(t._renderContent(e,i))}))})),e&&(this.photoContainer.style.backgroundImage="url("+e+")",this.photoContainer.removeAttribute("data-background")),this._isLoadedPreview=!0,this._isLoadedPhoto=!0}},n.onPreviewClick=function(){},n.activate=function(){this.previewContainer.classList.add(this.settings.previewsContainerActive),this.photoContainer.children[0].classList.remove("media-more_hidden"),null!==this.backLinkNode&&(this.backLinkNode===document.activeElement&&this.showMoreBackLink.focus(),this.backLinkNode.style.visibility="hidden"),null!==this.nextLinkNode&&(this.nextLinkNode===document.activeElement&&this.showMoreToStartLink.focus(),this.nextLinkNode.style.visibility="hidden"),null!==this.descriptionAuthorNode&&(this.descriptionAuthorNode.style.visibility="hidden"),null!==this.updateCounterCallback&&this.updateCounterCallback()},n.deactivate=function(){this.previewContainer.classList.remove(this.settings.previewsContainerActive),this.photoContainer.children[0].classList.add("media-more_hidden"),null!==this.backLinkNode&&(this.backLinkNode.style.visibility=""),null!==this.nextLinkNode&&(this.nextLinkNode.style.visibility=""),null!==this.descriptionAuthorNode&&(this.descriptionAuthorNode.style.visibility="")},e=t,(i=[{key:"isLoaded",get:function(){return this._isLoadedPhoto&&this._isLoadedPreview}},{key:"moreContentData",get:function(){return null===this._moreContentData&&(this._moreContentData=fetch(window.MKPageState.apiDomain+"/photo-reports/recommended/").then(u.XZ).then(u.au)),this._moreContentData}},{key:"recommendContentData",get:function(){return null===this._recommendContentData&&(this._recommendContentData=fetch(window.MKPageState.apiDomain+"/section/253/articles/publications/?limit=10",{method:"GET",headers:{"X-Site-Id":""+this.siteId,"Content-Type":"application/json"}}).then(u.XZ).then(u.au)),this._recommendContentData}}])&&q(e.prototype,i),t}(),O=function(){function t(t,e){var i=this;this._dots=[0,0],this._pictures=e;var n=this._pictures.length-1,r=t-2<0?2-t:0,o=t+2>n?2+t-n:0;this._dots[0]=t-2-o<0?0:t-2-o,this._dots[1]=t+2+r>n?n:t+2+r;for(var s=this._dots[0];s<=this._dots[1];s++)this._pictures[s].previewContainer.setAttribute("data-dot","1");this._pictures[this._dots[0]-1]&&this._pictures[this._dots[0]-1].previewContainer.setAttribute("data-dot","0"),this._pictures[this._dots[1]+1]&&this._pictures[this._dots[1]+1].previewContainer.setAttribute("data-dot","0"),this.dotsUpdate=this._dots[1]-this._dots[0]+1===this._pictures.length?function(){}:function(t){i._inRange(t)||(t<i._dots[0]?i._toStart(t):i._toEnd(t))}}var e=t.prototype;return e._inRange=function(t){return t>=this._dots[0]&&t<=this._dots[1]},e._toStart=function(t){var e=this;this._pictures[this._dots[0]-1]&&(this._pictures[this._dots[1]+1]&&this._pictures[this._dots[1]+1].previewContainer.removeAttribute("data-dot"),this._pictures[this._dots[0]-2]&&this._pictures[this._dots[0]-2].previewContainer.setAttribute("data-dot","0"),this._pictures[this._dots[0]-1].previewContainer.setAttribute("data-dot","1"),this._pictures[this._dots[1]].previewContainer.setAttribute("data-dot","0"),this._dots=this._dots.map((function(t){return t-1})),this._inRange(t)||requestAnimationFrame((function(){return e._toStart(t)})))},e._toEnd=function(t){var e=this;this._pictures[this._dots[1]+1]&&(this._pictures[this._dots[0]-1]&&this._pictures[this._dots[0]-1].previewContainer.removeAttribute("data-dot"),this._pictures[this._dots[1]+2]&&this._pictures[this._dots[1]+2].previewContainer.setAttribute("data-dot","0"),this._pictures[this._dots[1]+1].previewContainer.setAttribute("data-dot","1"),this._pictures[this._dots[0]].previewContainer.setAttribute("data-dot","0"),this._dots=this._dots.map((function(t){return t+1})),this._inRange(t)||requestAnimationFrame((function(){return e._toEnd(t)})))},t}();function D(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return z(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?z(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function R(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var H={pictureContainer:"gallery__image",pictureContainerBeforeInit:"gallery__image_no-init",picturesSlider:"gallery__images-scroll",previewsSlider:"gallery__previews-scroll",picturePreviewButton:"js-gallery-preview",pictureNextButton:"js-gallery-next",pictureNoInitButton:"gallery__image-changer_no_init",previewsSliderToStartButton:"gallery__previews-changer_preview",previewsSliderToEndButton:"gallery__previews-changer_next",descriptionAuthor:"gallery__author-name",descriptionShowMoreAuthor:"gallery__author",descriptionTextContainer:"gallery__description",counterCurrent:"js-gallery-counte_current",counterAll:"js-gallery-counte_all",activePhotoLoadingRange:1,inViewportPhotoActivateTimeout:200,activePreviewsLoadingRange:5,inViewportPreviewsLoadingRange:5,pictureClickAria:.33},V=function(){function t(e,i){var n=this;if(void 0===i&&(i=H),e){this.root=e,this.settings=Object.assign(Object.assign({},H),i);var r=t.getItemSettings(this.settings);this.picturesSlider=e.querySelector("."+this.settings.picturesSlider),"navigator"in window&&"userAgent"in window.navigator&&-1!==window.navigator.userAgent.indexOf("Version/12")&&(this.picturesSlider.style.overflow="hidden"),window.onpopstate=function(t){null!==t.state&&"index"in t.state&&n.activate(t.state.index,!0,!1)},this.previewSlider=document.createElement("div"),this.previewSlider.classList.add(this.settings.previewsSlider),this._isActivated=!1,this._mainPhotoLink=null,this._picturesSliderCallback=function(t){t.preventDefault();var e=n.picturesSlider.offsetWidth;t.layerX<e*n.settings.pictureClickAria&&n.activate(n._previewPictureNumber),t.layerX>e*(1-n.settings.pictureClickAria)&&n.activate(n._nextPictureNumber)},this._activeSlide=null;var o=0;this.pictures=[];for(var s,a=e.querySelectorAll("."+this.settings.pictureContainer),l=e.querySelector("."+this.settings.descriptionTextContainer),c=e.querySelector("."+this.settings.descriptionAuthor),u=e.querySelector("."+this.settings.counterCurrent),d=e.querySelector("."+this.settings.counterAll),h=0,p=D(a);!(s=p()).done;){var _=s.value,v=new N(_,r);v&&function(){var t=h;_.classList.contains(n.settings.pictureContainerBeforeInit)||(o=t),_.classList.remove(n.settings.pictureContainerBeforeInit),n.previewSlider.append(v.previewContainer),n.pictures.push(v),v.observerCallback=n._observerCallbackGenerator(t),v.onPreviewClick=n._onPreviewClickGenerator(t),v.descriptionAuthorNode=c,v.descriptionTextContainer=l,v.updateCounterCallback=function(){u.innerText=t+1},h++}()}d&&(d.innerText=this.pictures.length);var g=document.querySelector(".gallery__more"),m=this._picturesSliderCallback;if(g){var f=new M(g);this.pictures.push(f),this._mainPhotoLink="url"in f.imageData?f.imageData.url:null,f.backLinkNode=e.querySelector(".gallery__image-changer_preview"),f.nextLinkNode=e.querySelector(".gallery__image-changer_next"),f.showMoreBackLink.href=this.pictures[this.pictures.length-2].imageData.url,f.showMoreBackLink.addEventListener("click",(function(t){t.preventDefault(),n.activate(n.pictures.length-2),0===t.x&&0===t.y&&f.backLinkNode.focus()})),f.showMoreToStartLink.href=this.pictures[0].imageData.url,f.showMoreToStartLink.addEventListener("click",(function(t){t.preventDefault(),n.activate(0),0===t.x&&0===t.y&&f.nextLinkNode.focus()})),f.observerCallback=function(t,e){this.photoVisible(this.pictures.length-1,e),this._picturesSliderCallback=e?function(){}:m}.bind(this),this.previewSlider.append(f.previewContainer),f.onPreviewClick=this._onPreviewClickGenerator(this.pictures.length-1),f.descriptionAuthorNode=e.querySelector("."+this.settings.descriptionShowMoreAuthor),f.updateCounterCallback=function(){u.innerText=h}}var w=e.querySelector("."+this.settings.previewsSlider);w&&w.parentNode.replaceChild(this.previewSlider,w),this._previewPictureButtons=e.querySelectorAll("."+this.settings.picturePreviewButton);for(var y,b=D(this._previewPictureButtons);!(y=b()).done;){var S=y.value;S.classList.remove(this.settings.pictureNoInitButton),S.addEventListener("click",(function(t){t.preventDefault(),n.activate(n._previewPictureNumber)}))}this._nextPictureButtons=e.querySelectorAll("."+this.settings.pictureNextButton);for(var C,L=D(this._nextPictureButtons);!(C=L()).done;){var k=C.value;
1k.classList.remove(this.settings.pictureNoInitButton),k.addEventListener("click",(function(t){t.preventDefault(),n.activate(n._nextPictureNumber)}))}this.picturesSlider.addEventListener("click",(function(t){n._picturesSliderCallback(t)})),this._dots=new O(o,this.pictures),this._previewScrollButtonsUpdate=this._previewScrollButtonsUpdate.bind(this),this._previewScrollToStart=this._previewScrollToStart.bind(this),this._previewScrollToEnd=this._previewScrollToEnd.bind(this);var P=null;this.previewSlider.addEventListener("scroll",(function(){P&&clearTimeout(P),P=setTimeout(n._previewScrollButtonsUpdate,200)})),this._toStartButton=e.querySelector("."+this.settings.previewsSliderToStartButton),this._toStartButton.addEventListener("click",this._previewScrollToStart),this._toEndButton=e.querySelector("."+this.settings.previewsSliderToEndButton),this._toEndButton.addEventListener("click",this._previewScrollToEnd),this._previewScrollButtonsUpdate(),this.activate(o),e.classList.remove("gallery_no-init"),window.addEventListener("resize",(function(){n._slidersToActive()})),e.classList.contains("gallery_no-urls")||window.history.replaceState({index:this._activeSlide,url:this.pictures[this._activeSlide].imageData.url},null,this.pictures[this._activeSlide].imageData.url),this.galleryInsertNode=document.querySelector(".gallery__insert"),this.galleryInsertClose=document.querySelector(".gallery__insert-close"),this.galleryInsertID=document.getElementById("yandex_rtb_R-A-592219-83"),this.changeCount=0,this.insertCount=0}}var e,i,n=t.prototype;return n._observerCallbackGenerator=function(t){var e=this;return function(i,n){"photo"===i&&e.photoVisible(t,n),"preview"===i&&e.previewVisible(t,n)}},n._onPreviewClickGenerator=function(t){var e=this;return function(i){i.preventDefault(),e.activate(t)}},n._slidersToActive=function(t){void 0===t&&(t=!0),t&&this.picturesSlider.scrollTo(this.pictures[this._activeSlide].photoContainer.offsetLeft,0),this.previewSlider.scrollTo(this.pictures[this._activeSlide].previewContainer.offsetLeft+this.pictures[this._activeSlide].previewContainer.offsetWidth/2-this.previewSlider.offsetWidth/2,0)},n.galleryInsert=function(){var t=this;this.galleryInsertNode&&(console.log("galleryInsert count",this.changeCount),this.galleryInsertClose.addEventListener("click",(function(e){t.root.classList.remove("gallery__insert_show"),t.galleryInsertNode.classList.add("gallery__insert_hidden")})),3===this.changeCount&&(this.insertCount++,this.galleryInsertID.innerHTML="",this.galleryInsertID.id="yandex_rtb_R-A-592219-83-"+this.insertCount,window.yaContextCb.push((function(){Ya.Context.AdvManager.render({blockId:"R-A-592219-83",renderTo:"yandex_rtb_R-A-592219-83-"+t.insertCount})}))),10===this.changeCount&&(this.galleryInsertID.hasChildNodes()&&(this.galleryInsertNode.classList.remove("gallery__insert_hidden"),this.root.classList.add("gallery__insert_show")),this.changeCount=0))},n.updateUrl=function(t,e){if(!1===this._isActivated)this._isActivated=!0;else{var i;!0===e&&(this.root.classList.contains("gallery_no-urls")||(this.changeCount++,this.galleryInsert(),window.history.pushState({index:this._activeSlide,url:this.pictures[this._activeSlide].imageData.url},null,this.pictures[this._activeSlide].imageData.url)));var n=null==(i=document.URL.match(new RegExp(/([0-9]+)-([0-9]+)/)))?void 0:i[0];n&&((new Image).src="/photo/gallery/"+n+".gif"),"MKCounterCallbacksOnHit"in window&&window.MKCounterCallbacksOnHit.forEach((function(t){t()}))}},n.activate=function(t,e,i){var n=this;void 0===e&&(e=!0),void 0===i&&(i=!0),this.pictures[t]&&t!==this._activeSlide&&(null!==this._activeSlide&&this.pictures[this._activeSlide].deactivate(),this.pictures[t].activate(),this._activeSlide=t,this._loadPictureFromRange(t,this.settings.activePreviewsLoadingRange,(function(t){n.pictures[t].loadPreview()})),this._loadPictureFromRange(t,this.settings.activePhotoLoadingRange,(function(t){n.pictures[t].loadPhoto()})),this._updateLinksByNumber(this._previewPictureButtons,this._previewPictureNumber),this._updateLinksByNumber(this._nextPictureButtons,this._nextPictureNumber),this._slidersToActive(e),this.updateUrl(t,i),this._dots.dotsUpdate(t))},n._previewScrollToStart=function(){this.previewSlider.scrollTo(this.previewSlider.scrollLeft-.8*this.previewSlider.offsetWidth,0)},n._previewScrollToEnd=function(){this.previewSlider.scrollTo(this.previewSlider.scrollLeft+.8*this.previewSlider.offsetWidth,0)},n._previewScrollButtonsUpdate=function(){var t=this.previewSlider.scrollLeft;this._toStartButton.disabled=0===t,this._toEndButton.disabled=t+this.previewSlider.offsetWidth===this.previewSlider.scrollWidth}
1,n._loadPictureFromRange=function(t,e,i){for(var n=t-e<0?0:t-e,r=t+e+1>this.pictures.length?this.pictures.length:t+e+1,o=n;o<r;o++)i(o)},n._updateLinksByNumber=function(t,e){for(var i,n=D(t);!(i=n()).done;)i.value.href="url"in this.pictures[e].imageData?this.pictures[e].imageData.url:"#"},n.photoVisible=function(t,e){var i=this;e?this.pictures[t].activateTimer=setTimeout((function(){i.activate(t,!1)}),this.settings.inViewportPhotoActivateTimeout):clearTimeout(this.pictures[t].activateTimer)},n.previewVisible=function(t,e){var i=this;e&&(this.pictures[t].disconnectPreviewObserver(),this._loadPictureFromRange(t,this.settings.inViewportPreviewsLoadingRange,(function(t){i.pictures[t].loadPreview()})))},t.getItemSettings=function(t){for(var e={},i=0,n=["pictureContainer","pictureContainerLoading","picture","pictureImage","previewsContainer","previewsContainerLoading","previewsContainerActive","previewPicture","previewPictureImage","imageData"];i<n.length;i++){var r=n[i];r in t&&(e[r]=t[r])}},e=t,(i=[{key:"_previewPictureNumber",get:function(){return this._activeSlide-1<0?this.pictures.length-1:this._activeSlide-1}},{key:"_nextPictureNumber",get:function(){return this._activeSlide+1>this.pictures.length-1?0:this._activeSlide+1}}])&&R(e.prototype,i),t}(),F=i(8981),K=i(2722),U=i(9275),G=function(){function t(t){this.container=document.querySelector(t),this.container&&(this.anchorLinks=this.container.querySelectorAll("a"),this.wrapper=this.container.parentNode,this.endArticle=document.querySelector(".article__subscription")||document.querySelector(".article-listing__header"),this.endArticle&&(this.endArticleHeight=this.endArticle.getBoundingClientRect().top+document.documentElement.scrollTop,this.init()))}var e=t.prototype;return e.init=function(){var t=this;this.anchorLinks.forEach((function(e){e.addEventListener("click",(function(e){e.stopPropagation(),t.container.classList.add("article__toc_pin"),t.container.classList.remove("article__toc_show")}))})),this.container.parentNode.style.setProperty("--toc-height",this.container.offsetHeight+"px"),this.container.insertAdjacentHTML("afterbegin",'<svg class="header__menu-dots-icon" width="32" height="32"><use xlink:href="#icon-menu-dots"></use></svg>'),this.container.addEventListener("click",(function(e){t.container.classList.contains("article__toc_pin")&&t.container.classList.toggle("article__toc_show")}));var e=this.throttle(this.changeState.bind(this),100);window.addEventListener("scroll",e.bind(this)),this.wrapper.getBoundingClientRect().bottom<120&&this.container.classList.add("article__toc_pin")},e.throttle=function(t,e){var i=null;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];i||(i=setTimeout((function(){t.apply(void 0,r),clearTimeout(i),i=null}),e))}},e.changeState=function(){this.endArticleHeight=this.endArticle.getBoundingClientRect().top+document.documentElement.scrollTop,this.endArticleHeight<window.scrollY?this.container.hidden=!0:(this.container.hidden=!1,this.wrapper.getBoundingClientRect().bottom<120?this.container.classList.add("article__toc_pin"):this.container.classList.remove("article__toc_pin"))},t}();function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}i(2743),new G(".article__toc");var W=document.querySelector(".article .js-mk-item-settings"),J=null===W?{}:JSON.parse(W.innerText);new S.Z(document.querySelector(".article-grid__in-region"),{rootShowMod:"interesting_mob-shown",item:"interesting__item",numberOfShown:1});var X=document.querySelector(".js-federal-news-in-region"),$=document.querySelector(".js-news-without-hot");if(null!==$?new S.Z($,{rootShowMod:"js-mob-shown",item:"news-listing__item",numberOfShown:4}):null===X?new b.Z({root:"js-federal-news"}):new b.Z({root:"js-federal-news-in-region",numberOfShown:4}),null===$)new y.Z({root:"article-grid__most-read",toggle:"most-read__sort",elementsList:"most-read",currentElements:"most-read__item",numberOfShown:3});else{var Y=document.querySelector(".article-grid__most-read");null!==Y&&new S.Z(Y,{item:"most-read__item",numberOfShown:3})}var Q=new m;new _(document.querySelector(".article"),Q);var tt=document.querySelector(".gallery");tt&&(window.gallery=new V(tt)),void 0!==window.mkVideoInitSettings&&new F.Z(window.mkVideoInitSettings),new A,"MKInreadsInArticle"in window&&function(t){var e,i=document.querySelector(".article__body"),n=window.innerHeight,r=0;if(t.length>0&&null!==i){for(var o=document.querySelector(".article__header"),s=document.querySelector(".article__description"),a=document.querySelector(".article__picture-group"),l=(null!==o?o.offsetHeight:0)+(null!==s?s.offsetHeight:0)+(null!==a?a.offsetHeight:0),c=0;c<i.childElementCount-2&&0!==t.length;c++){var d=i.children[c];if(d.classList.contains("additional")?l=n>l?l-300:n-300:l+=d.offsetHeight,l>n&&f(d)){l=0;try{console.log("try-try-try-try"),d.insertAdjacentElement("afterend",(0,u.Pj)(t.pop())
1),r++}catch(t){console.log("Error in inread adv"),console.log(t)}}}console.log("adsInsertedCount",r),0===r&&(e=document.querySelector(".article__after-figure-banner"))&&(e.style.display="block")}}(window.MKInreadsInArticle);var et,it="MKPageState"in window&&"siteId"in window.MKPageState?window.MKPageState.siteId:1;if(!1==("type"in J&&"photoReport"===J.type)){var nt=new d;"_root"in nt&&(!0===function(t){var e=t._root.querySelector(".additional__list");console.log("additionalList",e);var i=document.querySelector(".article__body");console.log("articleAllBodyNodes",i),console.log("articleAllBodyNodes.children",i.children);var n=null!==i?Array.from(i.children).filter((function(t){return"P"!==t.tagName||""!==t.innerText})):[];if(console.log("articleBody",n),n.length<4)return!1;5===n.length&&e.classList.add("additional__list_in-short");for(var r=Math.floor(n.length/2);r<n.length-2;r++)if("P"===n[r].tagName&&"P"===n[r+1].tagName&&"P"===n[r+2].tagName)return n[r].insertAdjacentElement("afterend",t._root),!0;return!1}(nt)&&nt.initBanner(),et=nt._root.querySelectorAll(".additional__list li"),fetch(window.MKPageState.apiDomain+"/section/245/articles/publications/?limit=10",{method:"GET",headers:{"X-Site-Id":""+it,"Content-Type":"application/json"}}).then(u.XZ).then(u.au).then((function(t){if(!(t.articles.length<1)){var e=Math.floor(Math.random()*(t.articles.length-1)),i=t.articles[e],n=document.createElement("li");n.classList.add("additional__item"),n.classList.add("randomArticle"),n.innerHTML='<article class="article-preview article-preview_simple">\n <a class="article-preview__content" href="'+i.url+'?from=mat-po-teme">\n <div class="article-preview__title-photo-group">\n <h3 class="article-preview__title">'+i.title+'</h3>\n <picture class="article-preview__image">\n <img class="article-preview__image-content" loading="lazy" src="'+i.teaserImage+'" srcset="'+i.teaserImage+" 90w, "+i.teaserImage+" 210w, "+i.teaserImage+' 550w" sizes="90px" alt="" width="240" height="135">\n </picture>\n </div>\n </a>\n <p class="meta">\n <span class="meta__item meta__item_views">\n <svg class="meta__icon" width="16" height="16"><use xlink:href="#icon-views"></use></svg>\n <span class="meta__text">'+i.viewsCount+"</span>\n </span>\n </p>\n </article>";var r=Array.from(et).find((function(t){return null!==t.querySelector(".meta__item_adv")})),o=et[Math.min(1,et.length-1)];void 0!==r&&void 0!==et[0]?(et[0].after(n),n.after(r)):void 0!==o&&o.after(n)}})))}if((0,K.L)(),function(){var t=function(t){var e=[];return t.forEach((function(t){var i;e.push({class:(i=t).class,href:i.href,text:i.text,target:i.target,img:i.img?i.img:null,btn:i.btn?i.btn:null})})),e},e=document.querySelector(".article-social-networks-promotion"),i=document.querySelector(".article-subscription-inject");if(e){var n,r=document.querySelector(".subscription_article"),o=r.querySelector(".subscription__desc"),s=r.querySelector(".subscription__image"),a=r.querySelector(".subscription__link-wraper"),l=r.querySelector(".subscription__link-text"),c=i?+i.dataset.probability:0;if(Math.floor(100*Math.random())<100-c)n=(0,u.br)(e,t);else{if(!i)return;n=(0,u.br)(i,t)}var d=n[(0,u.Al)(0,n.length-1)];if(d.isPwaInstall){var h=document.createElement("button");h.type="button",h.className=r.className+" pwa-install-button",h.classList.remove("subscription_hidden"),h.setAttribute("data-pwa-install-button",""),h.innerHTML=r.innerHTML;var p=h.querySelector(".subscription__link-text");p&&(p.textContent="УÑÑановиÑÑ");var _=h.querySelector(".subscription__desc");_&&(_.textContent="УÑÑановиÑе на ÑÐ²Ð¾Ñ ÑÑÑÑойÑÑво «Ðл на ÑлÑÑай оÑклÑÑÐµÐ½Ð¸Ñ ÐнÑеÑнеÑа");var v=h.querySelector(".subscription__image");return v&&v.classList.add("subscription__image-pwa"),void r.replaceWith(h)}o.innerText=d.text,r.setAttribute("target",d.target),r.setAttribute("href",d.href),d.img?(s.setAttribute("class","subscription__image subsctibe-under-article_inject"),s.style.setProperty("--inject-image","url("+d.img+")"),d.btn?l.textContent=""+d.btn:a.style.display="none"):s.setAttribute("class","subscription__image "+d.class),r.classList.remove("subscription_hidden")}}(),document.querySelector(".js-not-init_most-inresectiong")){var rt=function(t){return t.id!==J.id},ot=(0,U.Hf)(".js-content-data__most-interest-region",rt),st=(0,U.Hf)(".js-content-data__most-interest",rt),at=document.querySelector(".js-not-init_most-inresectiong");if(null!==at){var lt=(0,U.w2)(st,ot,[]);if(lt.length>=5){J.hasOwnProperty("type")&&"article"===J.type&<.forEach((function(t){t.url+="?from=article_mi_b"}));var ct=(0,U.Nx)(lt);ct.classList.add("interesting_mob-shown"),(0,U.GM)(ct,document.querySelector(".js-content-data__extra-data-mi")),at.replaceWith(ct),(0,n.c)()}}}else"type"in J&&"article"===J.type?(0,U.W1)(J,(function(t){if(""===t||t===[]||!Array.isArray(t))return null;for(var e,i=[],n=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Z(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Z(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(e=n()).done;){var r=e.value;
1if(r.id!==J.id&&(i.push(r),5===i.length))return i}return null})):(0,U.W1)(J),(0,n.c)();new S.Z(document.querySelector(".article-grid__read-more"),{rootShowMod:"interesting_mob-shown",item:"interesting__item",numberOfShown:1}),document.querySelectorAll(".js-media-slider.js-not-init").forEach((function(t){var e=t.querySelector(".js-content-data");if(null===e)return null;var i=JSON.parse(e.innerText),n=function(t){return t!==[]&&""!==t&&Array.isArray(t)?t.filter((function(t){return t.id!==J.id})):null},r="regionMarker"in e.dataset?{regionMarker:e.dataset.regionMarker}:{};"video"===e.dataset.content?(i.forEach((function(t){t.type="video"})),i="type"in J&&"video"===J.type?n(i):i):i="type"in J&&"photoReport"===J.type?n(i):i,i=i!==[]&&Array.isArray(i)?i:null,(0,w.CC)(t,i,r),t.classList.remove("js-media-slider")})),document.querySelectorAll(".js-media-block.js-not-init").forEach((function(t){var e=t.querySelector(".js-content-data");if(null===e)return null;var i=JSON.parse(e.innerText),n=function(t){return t!==[]&&""!==t&&Array.isArray(t)?t.filter((function(t){return t.id!==J.id})):null},r="regionMarker"in e.dataset?{regionMarker:e.dataset.regionMarker}:{};"video"===e.dataset.content?(i.forEach((function(t){t.type="video"})),i="type"in J&&"video"===J.type?n(i):i):i="type"in J&&"photoReport"===J.type?n(i):i,i=i!==[]&&Array.isArray(i)?i.slice(0,6):null,(0,w.JS)(t,i,r),t.classList.remove("js-media-block"),t.classList.add("media-listing_mob-shown"),new S.Z(t,{rootShowMod:"media-listing_mob-shown",item:"media-listing__item",lastShownClass:"last-shown-item_mob",numberOfShown:3})}))},9308:function(t,e,i){"use strict";function n(t){ym(1598573,"reachGoal",t)}function r(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=window.innerHeight&&e.right<=window.innerWidth}function o(){var t=document.querySelectorAll(".top10 .top10__item");if(t.length){var e=new Set,i=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&!e.has(t.target)&&r(t.target)&&(e.add(t.target),n("top10_"+t.target.dataset.top10Index+"_view"),i.unobserve(t.target))}))}),{threshold:1});t.forEach((function(t,e){var r=e+1;if(t.dataset.top10Index=r,t.addEventListener("click",(function(){n("top10_"+r+"_click")})),1===r){var o=t.querySelector(".article-preview__title");o?(o.dataset.top10Index=r,i.observe(o)):i.observe(t)}else i.observe(t)}))}}function s(){var t=document.querySelectorAll(".interesting.interesting_under-article .interesting__item");if(t.length){var e=new Set,i=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&!e.has(t.target)&&r(t.target)&&(e.add(t.target),n("mostint_"+t.target.dataset.mostintIndex+"_view"),i.unobserve(t.target))}))}),{threshold:1});t.forEach((function(t,e){var r=e+1;t.dataset.mostintIndex=r,t.addEventListener("click",(function(){n("mostint_"+r+"_click")})),i.observe(t)}))}}i.d(e,{N:function(){return o},c:function(){return s}}),i(6992),i(1539),i(189),i(8783),i(3948),i(4747)}}]);
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.