1(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[0,12],{179:function(t,e,r){"use strict";r.r(e),r.d(e,"RECOMMENDED_INSERT_TOTAL_THRESHOLD",(function(){return n})),r.d(e,"RECOMMENDED_INSERT_AFTER_CHARS",(function(){return i})),r.d(e,"resolveRecommendedArticlesFromPost",(function(){return l})),r.d(e,"injectArticleRecommendedBlock",(function(){return s}));var a=r(927),n=2800,i=1500,o=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function c(t){var e=t.title;if(!e||"string"!=typeof e)return null;var r=t.material_url,n="string"==typeof r?Object(a.a)(r):"";if(!n||"/"===n)return null;var i=t.image_url;return{title:e,link:n,image:"string"==typeof i?Object(a.e)(i):Object(a.e)(null)}}function l(t){for(var e=Object(a.c)(t||{}),r=t&&t.top10?Object(a.f)(t.top10):[],n=e.length?e:r,i=[],o=0;o<n.length;o++){var l=c(n[o]);l&&i.push(l)}return i.slice(0,2)}var s=function(t,e){var r=Array.from(t.body.querySelectorAll("p"));if(!((r.length?r.reduce((function(t,e){return t+(e.textContent||"").replace(/\s/g,"").length}),0):(t.body.textContent||"").replace(/\s/g,"").length)<=n)&&e&&0!==e.length){for(var c=function(t){var e=t.slice(0,2).map((function(t){var e=t.image&&t.image.length?t.image:Object(a.e)(null),r=o(t.title||""),n=o(t.link||"#");return'<a class="article-recommended__card" href="'.concat(n,'">\n <img class="article-recommended__card-img" src="').concat(e,'" alt="').concat(r,'" />\n <span class="article-recommended__card-title">').concat(r,"</span>\n </a>")})).join("");return'<section class="article-recommended">\n <h3 class="article-recommended__title">ÐÐ¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¸Ð½ÑеÑеÑно</h3>\n <div class="article-recommended__cards">'.concat(e,"</div>\n </section>")}(e),l=0,s=null,u=0,d=r;u<d.length;u++){var g=d[u];if((l+=(g.textContent||"").replace(/\s/g,"").length)>=i){s=g;break}}s?s.insertAdjacentHTML("afterend",c):t.body.insertAdjacentHTML("beforeend",c)}}},926:function(t,e,r){"use strict";var a=r(2),n=r(13),i=r(1),o=r.n(i),c=r(259),l=r(927),s=r(179);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,a=Array(e);r<e;r++)a[r]=t[r];return a}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=u(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=function(t,e,r){var a="";return t&&t.forEach((function(t,n){var i=t.image?"image":Object.keys(t)[0],o=t[i],l="<div>";if("ops"==i)l+='<div class="article-main">'.concat(o,"</div>");else if("quote"==i)l+='<blockquote class="blockquote article-main__blockquote">'.concat(o,"</blockquote>");else if("quoteAuthor"==i){var s="https://via.placeholder.com/200x200";o.url&&o.url.length&&(s=o.url),l+='<div class="quote-author">\n\n <div class="quote-author__common">\n\n <div class="quote-author__image">\n <div\n class="other-article article-main__other-article -card-image-preview-link"\n >\n <img\n src="'.concat(s,'"\n alt="img"\n class="other-article__img"\n />\n </div>\n </div>\n\n <div class="quote-author__name">').concat(o.fio,'</div>\n <div class="quote-author__place">').concat(o.place,'</div>\n\n </div>\n\n <div class="quote-author__text">').concat(o.text,"</div>\n </div>")}else if("qa"==i)l+='<div class="qa">\n <div class="qa__title">'.concat(o.title,'</div>\n <div class="qa__text">').concat(o.text,"</div>\n </div>");else if("article"==i){var u=o,d=u.title,g=u.meta,p=g&&g.length>0&&g.filter((function(t){return"preview"==t.slug}))||"",_=u.get_categories&&u.get_categories.length>0&&u.get_categories[0].title||"";l+='<a href="'.concat(u.slug,'"\n class="other-article article-main__other-article"\n >
1\n <span class="tag other-article__tag">\n ').concat(_,'\n </span>\n <img\n src="').concat(p[0]&&p[0].value||"https://via.placeholder.com/1000x375",'"\n alt="img"\n class="other-article__img"\n />\n <span class="other-article__title">').concat(d,"</span>\n </a>")}else if("image"==i){var f=o.url,v=o.author||t.author||r;(!f||f&&!f.length)&&(f="https://via.placeholder.com/1000x375"),l+='<div\n class="other-article article-main__other-article"\n >\n <img\n src="'.concat(f,'"\n alt="img"\n class="other-article__img"\n />\n ').concat(v?'<span class="other-article__author">'.concat(Object(c.escape)(String(v)),"</span>"):"",'\n <span class="other-article__title">').concat(o.description,"</span>\n </div>")}else if("video"==i){var m=o.url,h=o.title,b="https://www.youtube.com/embed/"+m.split("?v=")[1];-1==m.indexOf("?v=")&&(b=m),l+='<div class="post-video others__post-video article-main__video" style="height: 375px;">\n <div class="post-video__link">\n <iframe id="video-'.concat(e,"-").concat(n,'" class="post-video__video" width="100%" height="100%" src="').concat(b,'?enablejsapi=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>\n <h3 class="post-video__title">\n ').concat(h,'\n </h3>\n <div class="tag tag--red post-video__tag">\n Ðидео\n </div>\n <div class="video-icon">\n <div class="video-icon__triangle"></div>\n </div>\n </div>\n </div>')}else if("embed"==i){l+=o=(o=(o=(o=(o=(o=(o=(o=o.replace(/<\/a>[а-ÑÐ-Я]/g,(function(t){return"</a> "+t.replace("</a>","")}))).replace("[TEXT]","")).replace("[HTML]","")).replace("[script","<script")).replace('"]','">')).replace("[/script]","<\/script>")).replace(/</g,"<")).replace(/>/g,">")}a+=l+="</div>"})),a},m=Object(n.a)([function(t){return t.article.items}],(function(t){var e={};if(t&&!Array.isArray(t)){var r,n,i=Object(l.b)(t);t.likes&&(r=t.likes.likes,n=t.likes.dislikes);var c=t.created_at;t.publication_at&&(c=t.publication_at);var u=null;t.get_categories&&t.get_categories.length>0&&(u=t.get_categories[0].slug),e={key:t.id,id:t.id,link:"/"+t.categories_path+"/"+t.slug,slug:t.slug,title:t.title,seo_title:t.seo_title,seo_description:t.seo_description,default_image_author:t.default_image_author,content:"string"==typeof t.content&&t.content&&t.content.length>1&&v(JSON.parse(t.content),t.id,t.default_image_author)||v(t.content,t.id,t.default_image_author),article_ad_enabled:Boolean(t.article_ad_enabled),article_ad_placement_id:t.article_ad_placement_id,article_ad_after_paragraph:t.article_ad_after_paragraph,article_ad_payload:t.article_ad_payload||null,date:o()(c).locale("ru").format("DD MMMM YYYY в HH:mm"),dislike:n,type:"news",img:"article-header-img",announce_img:Object(a.b)(t.get_post_types,t.announce_img,u,null,o()(c)),announce_text:t.announce_text,like:r,category:t.get_categories&&t.get_categories.length>0&&t.get_categories[0].title||null,categorySlug:t.get_categories&&t.get_categories.length>0&&t.get_categories[0].slug||null,categories:t.get_categories||[],tags:t.get_tags,path:t.categories_path,author:_(_({},t.author),{},{avatar:t.author&&t.author.avatar&&(-1!==t.author.avatar.indexOf("http")&&t.author.avatar||Object(a.k)()+"storage/"+t.author.avatar)}),additional_authors:t.additional_authors?d(t.additional_authors).map((function(t){return _(_({},t),{},{avatar:t.avatar&&(-1!==t.avatar.indexOf("http")&&t.avatar||Object(a.k)()+"storage/"+t.avatar)})})):[],user_id:t.author_id&&parseInt(t.author_id)||t.user_id,banner:t.ads_img&&'<img src="'.concat(Object(a.k)(),"storage/").concat(t.ads_img,'" />')||t.ads_banner,next_post:t.next_post,exclusive_material:t.exclusive_material,status:t.status,editor_choice_materials:Object(l.d)(i.editor_choice_materials),exclusive_materials:Object(l.d)(i.exclusive_materials).map((function(t){return _(_({},t),{},{isCategory:!0,exclusive_material:!0})})),top10:Object(l.d)(i.top10),same_tagged_posts:Object(l.d)(Object(l.c)(i)),recommendedArticles:Object(s.resolveRecommendedArticlesFromPost)(i)}}return e}));
1function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){O(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=h(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var j=function(t,e,r){var a="";return t&&t.forEach((function(t,n){var i=t.image?"image":Object.keys(t)[0],o=t[i],l="<div>";if("ops"==i)l+='<div class="article-main">'.concat(o,"</div>");else if("quote"==i)l+='<blockquote class="blockquote article-main__blockquote">'.concat(o,"</blockquote>");else if("quoteAuthor"==i){var s="https://via.placeholder.com/200x200";o.url&&o.url.length&&(s=o.url),l+='<div class="quote-author">\n\n <div class="quote-author__common">\n\n <div class="quote-author__image">\n <div\n class="other-article article-main__other-article -card-image-preview-link"\n >\n <img\n src="'.concat(s,'"\n alt="img"\n class="other-article__img"\n />\n </div>\n </div>\n\n <div class="quote-author__name">').concat(o.fio,'</div>\n <div class="quote-author__place">').concat(o.place,'</div>\n\n </div>\n\n <div class="quote-author__text">').concat(o.text,"</div>\n </div>")}else if("qa"==i)l+='<div class="qa">\n <div class="qa__title">'.concat(o.title,'</div>\n <div class="qa__text">').concat(o.text,"</div>\n </div>");else if("article"==i){var u=o,d=u.title,g=u.meta,p=g&&g.length>0&&g.filter((function(t){return"preview"==t.slug}))||"",_=u.get_categories&&u.get_categories.length>0&&u.get_categories[0].title||"";l+='<a href="'.concat(u.slug,'"\n class="other-article article-main__other-article"\n >\n <span class="tag other-article__tag">\n ').concat(_,'\n </span>\n <img\n src="').concat(p[0]&&p[0].value||"https://via.placeholder.com/1000x375",'"\n alt="img"\n class="other-article__img"\n />\n <span class="other-article__title">').concat(d,"</span>\n </a>")}else if("image"==i){var f=o.url,v=o.author||t.author||r;(!f||f&&!f.length)&&(f="https://via.placeholder.com/1000x375"),l+='<div\n class="other-article article-main__other-article"\n >\n <img\n src="'.concat(f,'"\n alt="img"\n class="other-article__img"\n />\n ').concat(v?'<span class="other-article__author">'.concat(Object(c.escape)(String(v)),"</span>
1"):"",'\n <span class="other-article__title">').concat(o.description,"</span>\n </div>")}else if("video"==i){var m=o.url,h=o.title,b="https://www.youtube.com/embed/"+m.split("?v=")[1];-1==m.indexOf("?v=")&&(b=m),l+='<div class="post-video others__post-video article-main__video" style="height: 375px;">\n <div class="post-video__link">\n <iframe id="video-'.concat(e,"-").concat(n,'" class="post-video__video" width="100%" height="100%" src="').concat(b,'?enablejsapi=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>\n <h3 class="post-video__title">\n ').concat(h,'\n </h3>\n <div class="tag tag--red post-video__tag">\n Ðидео\n </div>\n <div class="video-icon">\n <div class="video-icon__triangle"></div>\n </div>\n </div>\n </div>')}else if("embed"==i){l+=o=(o=(o=(o=(o=(o=(o=(o=o.replace(/<\/a>[а-ÑÐ-Я]/g,(function(t){return"</a> "+t.replace("</a>","")}))).replace("[TEXT]","")).replace("[HTML]","")).replace("[script","<script")).replace('"]','">')).replace("[/script]","<\/script>")).replace(/</g,"<")).replace(/>/g,">")}a+=l+="</div>"})),a},w=Object(n.a)([function(t){return t.article.itemsArticleList}],(function(t){var e={};if(t){var r,n;t.likes&&(r=t.likes.likes,n=t.likes.dislikes);var i=t.created_at;t.publication_at&&(i=t.publication_at);var c=null;t.get_categories&&t.get_categories.length>0&&(c=t.get_categories[0].slug),e={key:t.id,id:t.id,link:"/"+t.categories_path+"/"+t.slug,slug:t.slug,title:t.title,seo_title:t.seo_title,seo_description:t.seo_description,default_image_author:t.default_image_author,content:"string"==typeof t.content&&t.content&&t.content.length>1&&j(JSON.parse(t.content),t.id,t.default_image_author)||j(t.content,t.id,t.default_image_author),article_ad_enabled:Boolean(t.article_ad_enabled),article_ad_placement_id:t.article_ad_placement_id,article_ad_after_paragraph:t.article_ad_after_paragraph,article_ad_payload:t.article_ad_payload||null,date:o()(i).locale("ru").format("DD MMMM YYYY в HH:mm"),dislike:n,type:"news",img:"article-header-img",announce_img:Object(a.b)(t.get_post_types,t.announce_img,c,null,o()(i)),announce_text:t.announce_text,like:r,category:t.get_categories&&t.get_categories.length>0&&t.get_categories[0].title||null,categorySlug:t.get_categories&&t.get_categories.length>0&&t.get_categories[0].slug||null,tags:t.get_tags,path:t.categories_path,author:y(y({},t.author),{},{avatar:t.author&&t.author.avatar&&(-1!==t.author.avatar.indexOf("http")&&t.author.avatar||Object(a.k)()+"storage/"+t.author.avatar)||"/img/no-avatar-comment.png"}),additional_authors:y(y({},t.additional_authors),{},{avatar:t.author&&t.author.avatar&&(-1!==t.author.avatar.indexOf("http")&&t.author.avatar||Object(a.k)()+"storage/"+t.author.avatar)||"/img/no-avatar-comment.png"}),user_id:t.author_id&&parseInt(t.author_id)||t.user_id,banner:t.ads_img&&'<img src="'.concat(Object(a.k)(),"storage/").concat(t.ads_img,'" />')||t.ads_banner,next_post:t.next_post}}return e}));r.d(e,"b",(function(){return m})),r.d(e,"a",(function(){return w}))},927:function(t,e,r){"use strict";r.d(e,"f",(function(){return l})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return u})),r.d(e,"a",(function(){return d})),r.d(e,"e",(function(){return g})),r.d(e,"d",(function(){return f}));var a=r(2);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=c(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){if(null==t)return[];if(!Array.isArray(t))return[];for(var e=[],r=0;r<t.length;r++){var a=t[r];null!=a&&"object"===c(a)&&e.push(a)}return e}function s(t){if(null==t||"object"!==c(t)||Array.isArray(t))return{};var e=t,r=e.data;return null==r||"object"!==c(r)||Array.isArray(r)?e:i(i({},e),r)}function u(t){if(!t||"object"!==c(t))return[];for(var e=["same_tagged_posts","sameTaggedPosts"],r=0;r<e.length;r++){var a=t[e[r]];if(Array.isArray(a))return l(a)}return[]}function d(t){if(!t||"string"!=typeof t)return"";var e=t.trim();if(!e.length)return"";if(0===e.indexOf("//"))try{var r=new URL("https:"+e);return r.pathname+r.search+r.hash}catch(t){return""}try{var a=new URL(e);return a.pathname+a.search+a.hash}catch(t){return"/"===e.charAt(0)?e:-1!==e.indexOf("/")?"/"+e.replace(/^\/+/,""):""}}function g(t){if(t&&"string"==typeof t){var e=t.trim();if(e.length>0){if(0===e.indexOf("http")||0===e.indexOf("//"))return e;var r=(Object(a.k)()||"").replace(/\/+$/,"");return r.length?r+"/"+e.replace(/^\/+/,""):e}}var n=(Object(a.k)()||"").replace(/\/+$/,"");return n.length?n+"/storage/images/default-replacement.jpg":"/img/article-header-bg.jpg"}function p(t){if(!t||"string"!=typeof t)return"";var e=t.trim();if(!e.length)return"";var r=e.match(/^(\d{4})-(\d{2})-(\d{2})/);if(r)return"".concat(r[3],".").concat(r[2],".").concat(r[1]);var a=e.match(/^(\d{2}\.\d{2}\.\d{4})/);return a?a[1]:""}function _(t){var e=t.tag;if("string"==typeof e&&e.trim().length)return e.trim();var r=t.category;if("string"==typeof r&&r.trim().length)return r.trim();var a=t.categoryTitle;if("string"==typeof a&&a.trim().length)return a.trim();var n=t.get_categories;if(Array.isArray(n)&&n.length>0){var i=n[0];if(i&&"object"===c(i)){var o=i.title;if("string"==typeof o&&o.trim().length)return o.trim()}}return""}function f(t){for(var e=l(t),r=[],a=0;a<e.length;a++){var n=e[a],i=n.title;if(i&&"string"==typeof i){var o=n.material_url,c="string"==typeof o?d(o):"";if(c&&"/"!==c){var s=n.image_url,u=g("string"==typeof s?s:null),f=p(n.publication_at||n.created_at||n.date),v=_(n),m=n.id,h="number"==typeof m||"string"==typeof m?m:i+"-"+String(a);r.push({id:h,title:i,linkPath:c,imageUrl:u,date:f,tag:v,category:v,isCategory:Boolean(v),exclusive_material:Boolean(n.exclusive_material)})}}}return r}}}]); 2//# sourceMappingURL=pages-Article-Article~pages-Article-Article_work-version~pages-Article-Components-ArticleEditorPicks~7b21880a.js.map
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.