Договор еаэс

Обсуждали, что мешает кыргызстанцам комфортно вести бизнес. Жээнбеков выступил без церемоний: раскритиковал действия чиновников по отношению к предпринимателям и предупредил, что не надо злоупотреблять полномочиями и создавать искусственные преграды бизнесу.

Читать в источнике

Подробнее о событии

Жээнбеков раскритиковал чиновников за преграды бизнесуМИР 24Президент Киргизии: «Чиновники и силовики давят – бизнес остается в тени»REGNUMНе перестают давить на бизнес — Жээнбеков раскритиковал проверяющие органыSputnik Кыргызстан

Все источники: 4

12.02.20 18:09 по Московскому времениwindow.Ya.experiments = {};(function(){function rumResources(e){function n(){if(!(o=o||window.innerHeight))return requestAnimationFrame(n);u=u.filter(function(e){var n=document.querySelector('[data-id="'+e.id+'"]');if(!n)return!0;var t=n.getBoundingClientRect();return e.callback(t.top=0),!1}),u.length>0&&requestAnimationFrame(n)}function t(e,t){u.push({id:e,callback:t}),1===u.length&&requestAnimationFrame(n)}function r(n){var r=n.name.replace(/^https?:/,""),a=n.entryType,o=null,u=Math.random();if(i.some(function(e){if(e.type&&e.type!==a)return!1;if(e.name&&!e.name.test(r))return!1;if(e.once&&e.sent)return!1;var n=e.skip||[];return!0===n||(!!n.some(function(e){return r.indexOf(e)>=0})||(!!(e.seed&&u>e.seed)||(o=e,!0)))}),o){if(o.once&&(o.sent=!0),"yndxPreloadedPageSubmit"===n.name)return Ya.Rum.sendTimeMark("2719.3105.297",Math.round(n.startTime),!1,{absolute:Math.round(m+n.startTime)});if("paint"===o.type&&d)return Ya.Rum.sendTimeMark("2719.1926",Math.round(n.startTime),!1,{name:n.name,duration:Math.round(n.duration),absolute:Math.round(m+n.startTime)});if("element"===n.entryType)return"title"===n.identifier&&Ya.Rum.sendTimeMark("2719.1518.82",Math.round(n.startTime),!1);if("largest-contentful-paint"===n.entryType&&n.element)return Ya.Rum.sendTimeMark("2719.3975",Math.round(n.startTime),!1,{"-name":encodeURIComponent(n.element.nodeName)});if("layout-shift"===n.entryType)return window.Ya.autoloadWasUsed||Ya.Rum.sendTimeMark("2719.3974",Math.round(n.startTime),!1,{"-name":encodeURIComponent(n.element?n.element.nodeName:""),"-value":n.value.toFixed(3)});if("first-input"===n.entryType){var s=Math.round(n.processingEnd-n.processingStart);if(isNaN(s)||s=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}};function i(e){return e&&"object"==typeof e&&!Array.isArray(e)}var u=r("WESU"),a={};var c=r("ENpa");function f(){return(f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var n=!1,o={},i=0;iwindow.Ya.mergeState([{"id":"uniq1581662308653-33072643","tree":{"props":{}}},{"id":"uniq1581662308653-75252979","tree":{"type":"NewsCommentViewer","props":{"apiKey":"d217921c-0d27-4786-b56e-bc98797f885a","scriptSrc":"https:\u002F\u002Fyastat.net\u002Fcomments\u002Fv1\u002Fcomments.js","version":"1.10","tld":"ru","lang":"ru","theme":"mg","noTrayAnimation":false,"additionalParams":{"formPosition":"bottom","stickyInput":{"style":{"paddingLeft":16,"paddingRight":16}}},"baobabHash":"uniq1581662308653-41572521","logTree":{"news-comment-viewer":{"name":"news-comment-viewer","id":"uniq1581662308653-41572521--100","children":{"button":{"name":"button","id":"uniq1581662308653-41572521--99","children":{}}}}}}}},{"id":"uniq1581662308656-30208227","tree":{"type":"Embed","props":{"type":"vh","subtype":"video","nonlazy":true,"ratio":0.5625,"id":"uniq1581662308655-69816356","loaderText":"Загрузка","embedType":"vh","isEmbedPerformanceExp":false,"sandbox":"\u003Ciframe src=\"https:\u002F\u002Ffrontend.vh.yandex.ru\u002Fembed\u002F6176257778806355368?from=yanews&autoplay=1&mute=1&reqid=1581662308537948-131144106781046946300067-man1-3588&slots=188118%2C0%2C3%3B211231%2C0%2C41%3B175664%2C0%2C3%3B187314%2C0%2C3%3B118267%2C0%2C3%3B196521%2C0%2C3%3B205024%2C0%2C38%3B211001%2C0%2C1%3B204248%2C0%2C5%3B209178%2C0%2C67%3B209595%2C0%2C12%3B135686%2C0%2C84%3B188861%2C0%2C-1%3B186872%2C0%2C-1%3B135732%2C0%2C16%3B174679%2C0%2C-1\" class=\"turbo-embed__iframe\" style=\"width:auto;height:auto\" allowfullscreen=\"\" allow=\"autoplay; fullscreen\" scrolling=\"no\" sandbox=\"allow-scripts allow-popups allow-same-origin\" frameBorder=\"0\" data-reactroot=\"\"\u003E\u003C\u002Fiframe\u003E","baobabHash":"uniq1581662308655-13300260","logTree":{"embed":{"name":"embed","id":"uniq1581662308655-13300260--100","children":{}}}}}},{"id":"uniq1581662308656-17911293","tree":{"type":"NewsComment","props":{"initialized":false,"infoAndInitUrl":"https:\u002F\u002Fm.news.yandex.ru\u002Fapi\u002Fv2\u002Fcmnt_info?need_count=1&url=https%3A\u002F\u002Fmir24.tv\u002Fnews\u002F16397684\u002Fzheenbekov-raskritikoval-deistviya-chinovnikov-po-otnosheniyu-k-biznesmenam","apiKey":"","formKey":"u3a3cbc8c25c1c677d28ec7e588352b26","iconSize":"medium","language":"ru","baobabHash":"uniq1581662308656-77514906","logTree":{"comment":{"name":"comment","attrs":{},"id":"uniq1581662308656-77514906--100","children":{"undefined":{"name":"NewsCounterPresenter","id":"uniq1581662308656-77514906--99","children":{}}}}}}}},{"id":"uniq1581662308657-79386495","tree":{"type":"NewsVideoSettings","props":{"items":[{"name":"autoplay","text":"Автоплей видео"}],"className":"news-story__video-settings","baobabHash":"uniq1581662308656-83643079","logTree":{"news-video-settings":{"name":"news-video-settings","id":"uniq1581662308656-83643079--100","children":{"button":{"name":"button","id":"uniq1581662308656-83643079--99","children":{}}}}}}}},{"id":"uniq1581662308657-69003740","tree":{"type":"ImageSimple","props":{"ratio":"1x1","fit":"cover","rounded":true,"src":"\u002F\u002Favatars.mds.yandex.net\u002Fget-ynews-logo\u002F61287\u002F3087-1478692982393-square\u002Flogo-square","loader":true,"loaderParams":{"theme":"gray","dots":false},"dataAttrs":{},"mix":"","baobabHash":"uniq1581662308657-92096399","logTree":{"image-simple":{"name":"image-simple","id":"uniq1581662308657-92096399--100","children":{}}}}}},{"id":"uniq1581662308658-79055319","tree":{"type":"ImageSimple","props":{"ratio":"1x1","fit":"cover","rounded":true,"src":"\u002F\u002Favatars.mds.yandex.net\u002Fget-ynews-logo\u002F50744\u002F1014-1478692899971-square\u002Flogo-square","loader":true,"loaderParams":{"theme":"gray","dots":false},"dataAttrs":{},"mix":"","baobabHash":"uniq1581662308658-60596575","logTree":{"image-simple":{"name":"image-simple","id":"uniq1581662308658-60596575--100","children":{}}}}}},{"id":"uniq1581662308658-65314293","tree":{"type":"ImageSimple","props":{"ratio":"1x1","fit":"cover","rounded":true,"src":"\u002F\u002Favatars.mds.yandex.net\u002Fget-ynews-logo\u002F62808\u002F254122940-1478693847840-square\u002Flogo-square","loader":true,"loaderParams":{"theme":"gray","dots":false},"dataAttrs":{},"mix":"","baobabHash":"uniq1581662308658-41772165","logTree":{"image-simple":{"name":"image-simple","id":"uniq1581662308658-41772165--100","children":{}}}}}},{"id":"uniq1581662308659-75041247","tree":{"type":"AdvertNative","props":{"blockId":"N-I-260855-158","statId":0,"advertScriptSrc":"https:\u002F\u002Fyastatic.net\u002Fpcode-native\u002Floaders\u002Floader.js","type":"native","mix":"grid grid_unwrap","id":"uniq1581662308659-29473826","isFirst":true,"baobabHash":"uniq1581662308659-37564371","logTree":{},"ads":"реклама","noAds":"рекламы нет"}}}],{"global":{"deviceDetect":{"BrowserVersion":"0079.0000.3945","OSFamily":"Android","BrowserName":"ChromeMobile","BrowserVersionRaw":"79.0.3945","OSVersion":"6.0","BrowserEngine":"WebKit","OSName":"Android Marshmallow"},"expFlags":{}},"ecom":false,"newsVideoSettings":{"autoplay":true}});define("YandexFont",[],function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/static/turbo/pages/bundles/",n(n.s=16)}({16:function(e,t,n){e.exports=n("Za7V")},J631:function(e,t,n){},Za7V:function(e,t,n){window.Registry({YandexFont:n("hohL")})},hohL:function(e,t,n){"use strict";n.r(t);n("J631")}})});define("CommentsReducer",[],function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/static/turbo/pages/bundles/",r(r.s=521)}({"4Wq7":function(e,t,r){"use strict";r.r(t);var n=r("7RWV"),o=r("up7T");Object(n.registerReducer)("comments",o.a)},521:function(e,t,r){e.exports=r("4Wq7")},"7RWV":function(e,t,r){"use strict";r.r(t);var n=r("ANjH"),o=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}};function i(e){return e&&"object"==typeof e&&!Array.isArray(e)}var u=r("WESU"),a={};var c=r("ENpa");function f(){return(f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var n=!1,o={},i=0;idefine("NewsCommentViewer",["BemCN.external","React"],function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/turbo/pages/bundles/",n(n.s=239)}({"/9nz":function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return u});var r=n("mrSG"),o=n("cDcd"),i=n.n(o),a=n("Dps+"),c=(n("numx"),Object(a.cn)("Link")),u=function(t){t.title;var e=t.href,n=t.target,o=t.disabled,a=t.rel,u=t.tabIndex,s=t.innerRef,l=t.controlRef,f=t.children,d=(t.pseudo,t.nonvisual,t.as),p=r.d(t,["title","href","target","disabled","rel","tabIndex","innerRef","controlRef","children","pseudo","nonvisual","as"]),h=c(null,[p.className]),m=d||(e?"a":"span"),y=a;return"_blank"===n&&void 0!==a&&-1===a.indexOf("noopener")&&(y=a+" noopener"),i.a.createElement(m,r.a({},p,{ref:s||l,href:e,"aria-disabled":o,target:n,rel:y,tabIndex:o?-1:u,className:h}),f)};u.displayName=c()},239:function(t,e,n){t.exports=n("875c")},"3I9k":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r,o=n("cDcd"),i=n("7RWV"),a=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}var a=n("WESU"),c={};var u=n("ENpa");function s(){return(s=Object.assign||function(t){for(var e=1;e=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},O=Object(i.a)(Object(c.a)("NewsTray"),d.a)(f.NewsTray),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.render=function(){var t=this.props,e=t.commentsChatId,n=t.children,r=t.noTrayAnimation;return o.createElement(O,{className:Object(v.a)(),onClose:this.onClose,mode:e?f.EMode.OPEN:f.EMode.CLOSED,renderHeader:n?this.getHeader:void 0,noTrayAnimation:r},e?this.yandexComments:null)},Object.defineProperty(e.prototype,"yandexComments",{get:function(){var t=this.props,e=t.apiKey,n=t.scriptSrc,r=t.version,i=t.tld,a=t.lang,c=t.theme,u=t.service,s=t.doNotTrackFetchTreeFor,f=t.commentsChatId,d=void 0===f?"":f,p=t.additionalParams,h=void 0===p?{}:p,m=s===d,y={uniqId:d,theme:c,lang:a,scriptSrc:n,version:r,service:u,params:w({entityId:d,commentId:this.state.commentId,apiKey:e,isMobile:!0,tld:i,popupNode:"."+Object(v.a)(),features:{telemetry:{doNotTrackFetchTree:m}}},h)};return o.createElement(l.a,w({},y))},enumerable:!0,configurable:!0}),e.prototype.getHeader=function(t){var e=this.props.children,n=t.className;return o.createElement("div",{className:Object(v.a)("header").mix(n)()},o.createElement(p.Button,{className:Object(v.a)("comment-button")()},"Написать комментарий"),e)},g([a.a],e.prototype,"getHeader",null),e}(y.a),j=Object(i.a)(Object(c.a)("NewsCommentViewer"),Object(u.a)({name:"news-comment-viewer"}),Object(s.a)(function(t){return{commentsChatId:Object(h.a)(t)}},{setCommentsChatId:m.b}))(S);window.Registry({NewsCommentViewer:j})},"9FHj":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("cDcd"),o=n("Nsxg"),i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(c)throw c;for(var r=!1,o={},i=0;i0&&(u["data-metrika-goals"]=JSON.stringify(i)),a.length>0&&(u["data-analytics-goals"]=JSON.stringify(a)),r.createElement(e,o({goals:u},n))}}}},C390:function(t,e,n){},"Dps+":function(t,e,n){"use strict";t.exports=n("gWr/")},EAxu:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r,o=n("cDcd"),i=n("5MOZ"),a=n.n(i),c=n("pauq"),u=n("VDaS"),s=n("yS7q"),l=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(){return(f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},p=a()("yandex-comments"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),Object.defineProperty(e.prototype,"containerId",{get:function(){return this.props.uniqId+"_ya-comments"},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){e.hasCommentsScript||this.addCommentsScript(),this.initComments(),"YandexSearch"===u.a.BrowserName&&window.Ya&&window.Ya.isInFrame&&!window.Ya.isInFrame()&&window.YandexApplicationsAPIBackend&&window.YandexApplicationsAPIBackend.closeFullScreen&&setTimeout(function(){window.YandexApplicationsAPIBackend.closeFullScreen()},300),this.props.needToScrollToComments&&this.scrollToComments()},e.prototype.render=function(){var t=this.props.title,e=this.props.className||[];return o.createElement("div",{className:p.mix(e)()},t,o.createElement("div",{id:this.containerId,className:p("container")()}))},e.prototype.addCommentsScript=function(){e.hasCommentsScript=!0;var t=this.props.theme||"serp";"ugc"===t&&(t="serp"),window.Ya.Cmnt={theme:t,lang:this.props.lang,service:this.props.service||"turbo"};var n=document.createElement("script");n.src=this.props.scriptSrc,document.body.appendChild(n),e.onLoadCommentsPromise=new Promise(function(t){n.onload=function(){return t()}})},e.prototype.initComments=function(){var t=this,n=f({isMobile:this.props.detectPlatform?this.props.isMobile:void 0},this.props.params);n.iframe=window.Ya.isInFrame&&window.Ya.isInFrame(),e.onLoadCommentsPromise.then(function(){window.Ya.Cmnt.init(t.containerId,n),window.Ya.Cmnt.on(t.containerId,"treeLoaded",t.handleTreeLoaded),window.Ya.Cmnt.on("ready",function(){t.props.onReady&&t.props.onReady({entityId:t.props.params.entityId,apiKey:t.props.params.apiKey,pageHash:t.props.pageHash||"",containerId:t.containerId})})})},e.prototype.handleTreeLoaded=function(){var t=this;if(this.props.needToScrollToComments){var e=window.Ya.Cmnt;setTimeout(function(){e&&e.focus&&e.focus(t.containerId)},0)}},e.prototype.scrollToComments=function(){var t=window.document.getElementById(this.containerId);t&&Object(s.d)(t,{offsetY:-1})},e.hasCommentsScript=!1,d([c.a],e.prototype,"initComments",null),d([c.a],e.prototype,"handleTreeLoaded",null),d([c.a],e.prototype,"scrollToComments",null),e}(o.PureComponent)},ENpa:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=window.document&&window.document.createElement},"Ei+x":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("5MOZ"),o=n.n(r)()("news-comment-viewer")},GfAd:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u});n("Po9p");var r=URL;var o="https:",i=o+"//stub";function a(t){if(!function(t){return t&&("http://"===t.slice(0,7)||"https://"===t.slice(0,8))}(t)){var e=new r(t,i);return e.toString=function(t){return r.prototype.toString.call(this).substr(t.length)}.bind(e,function(t){return t&&"/"===t[0]&&"/"!==t[1]}(t)?i:o),e}return new r(t)}function c(t){return new URLSearchParams(t)}function u(t,e,n){window.history.replaceState(t,e,n),window.Ya&&window.Ya.isInFrame&&window.Ya.isInFrame()&&window.top.postMessage({action:"history-replace-state",data:t,title:e,url:n},"*")}},Js84:function(t,e,n){"use strict";n.r(e),n.d(e,"Button",function(){return g});var r,o=n("cDcd"),i=n("5MOZ"),a=n("VGIf"),c=(n("C390"),n("Nsxg")),u=n("9FHj"),s=n("Be0P"),l=n("PHRx"),f=n("pauq"),d=n("ENpa"),p=n("pE07"),h=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=function(){return(m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},v=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=function(){for(var t=[],e=0;e1&&t.isSwipe)e.preventDefault();else{t.startDiffY=e.touches[0].pageY,t.ref.style.transition="none";var n=e.target;t.isTargetScrollable=t.scrollableRef.contains(n),(!t.isTargetScrollable||t.isTargetScrollable&&0===t.scrollableRef.scrollTop)&&(t.isSwipe=!0)}},t.handleTouchMove=function(e){var n=e.touches[0].pageY;t.diffY=n-t.startDiffY,t.isSwipe=Boolean(t.isSwipe&&t.diffY>0),t.isSwipe?(t.scrollableRef.addEventListener("touchmove",t.preventDefault),t.ref.style.transform="translateY("+t.diffY+"px)"):t.startDiffY=n},t.handleTouchEndOrCancel=function(){var e=t.ref.clientHeight/3;t.isSwipe&&t.diffY>e&&t.props.onClose(),t.isSwipe=!1,t.diffY=0,t.ref.style.transform="",t.ref.style.transition="",t.scrollableRef.removeEventListener("touchmove",t.preventDefault)},t.preventDefault=function(t){t.cancelable&&t.preventDefault()},t}return i(n,e),n.prototype.componentDidMount=function(){this.ref&&(this.ref.addEventListener("touchstart",this.handleTouchStart),this.ref.addEventListener("touchmove",this.handleTouchMove),this.ref.addEventListener("touchend",this.handleTouchEndOrCancel),this.ref.addEventListener("touchcancel",this.handleTouchEndOrCancel))},n.prototype.componentWillUnmount=function(){this.ref&&(this.ref.removeEventListener("touchstart",this.handleTouchStart),this.ref.removeEventListener("touchmove",this.handleTouchMove),this.ref.removeEventListener("touchend",this.handleTouchEndOrCancel),this.ref.removeEventListener("touchcancel",this.handleTouchEndOrCancel))},n.prototype.render=function(){return o.createElement(t,a({},this.props,{setRef:this.setRef,setScrollableRef:this.setScrollableRef}))},n}(o.Component)}},PHRx:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("cDcd");function o(){return(o=Object.assign||function(t){for(var e=1;e=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(e){var n=t.call(this,e)||this;return n.state={commentId:e.commentId},n}return f(e,t),e.prototype.componentDidMount=function(){window.addEventListener("popstate",this.updateCommentsChatId);var t=this.getCommentsChatIdFromUrl(),e=this.getChatIdFromHistory();!this.isOpenedFromNotifier()&&t&&t!==e&&this.addPageWithoutCommentsToHistory(t)},e.prototype.componentWillUnmount=function(){window.removeEventListener("popstate",this.updateCommentsChatId)},e.prototype.componentDidUpdate=function(t){var e=this.props.commentsChatId,n=t.commentsChatId,r=this.getCommentsChatIdFromUrl();if(e&&e!==n&&e!==r){var o=new URL(window.location.href);o.searchParams.set("commentsChatId",e),window.history.pushState({commentsChatId:e},"",o.toString())}},e.prototype.updateCommentsChatId=function(){var t=this.getCommentsChatIdFromUrl()||"";!t&&this.props.commentsChatId&&window.Ya.Cmnt.destroy(this.props.commentsChatId+"_ya-comments"),t!==this.props.commentsChatId&&this.setChatId(t)},e.prototype.onClose=function(){var t=this.getCommentsChatIdFromUrl(),e=this.props.commentsChatId;this.setChatId(""),this.isOpenedFromNotifier()?(this.removeNotifierParamFromUrl(),this.setState({commentId:void 0})):t&&e&&window.history.back()},e.prototype.setChatId=function(t){this.props.setCommentsChatId({chatId:t})},e.prototype.getChatIdFromHistory=function(){return window.history.state&&window.history.state.commentsChatId},e.prototype.getCommentsChatIdFromUrl=function(){return new URL(window.location.href).searchParams.get("commentsChatId")},e.prototype.addPageWithoutCommentsToHistory=function(t){var e=new URL(window.location.href),n=new URL(window.location.href);n.searchParams.delete("commentsChatId"),n.searchParams.delete("comments"),e.searchParams.delete("comments"),window.history.replaceState(window.history.state,"",n.toString()),window.history.pushState({commentsChatId:t},"",e.toString())},e.prototype.isOpenedFromNotifier=function(){var t=new URL(window.location.href);return 1===Number(t.searchParams.get("comments"))&&!this.getCommentsChatIdFromUrl()},e.prototype.removeNotifierParamFromUrl=function(){var t=new URL(window.location.href);t.searchParams.delete("comments"),t.searchParams.delete("commentId"),window.history.replaceState(window.history.state,"",t.toString())},d([i.a],e.prototype,"updateCommentsChatId",null),d([i.a],e.prototype,"onClose",null),e}(r.Component);Object(o.a)(Object(a.a)("NewsCommentViewerAbstract"),Object(c.a)(function(t){return{commentsChatId:Object(u.a)(t)}},{setCommentsChatId:s.b}))(p)},VDaS:function(t,e,n){"use strict";var r=n("ENpa");var o=function(){if(r.a){var t=document.querySelector(".page");if(t){var e=t.getAttribute("data-bem");if(e){var n=JSON.parse(e).page.global.ua;return{OSFamily:n.OSFamily,OSVersion:n.OSVersion,BrowserName:n.BrowserName,BrowserVersionRaw:n.BrowserVersionRaw}}}}return{}}();e.a=o},VGIf:function(t,e,n){"use strict";var r=n("cDcd"),o=n("/9nz"),i=n("GfAd"),a=n("jk68"),c=n("5MOZ"),u=/(?:tel|mailto):/,s=/^#.+/,l=/^(https?:\/\/)?(?:[0-9a-z_-]+\.turbo\.site)\/?/,f=n.n(c)()("link-like");n.d(e,"a",function(){return p});var d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}},numx:function(t,e,n){},pE07:function(t,e,n){"use strict";var r;function o(t){return{type:r.CLICK,payload:t}}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),function(t){t.CLICK="BUTTON/CLICK"}(r||(r={}))},pauq:function(t,e,n){"use strict";function r(t,e,n){var r=n.value,o=!1;return{configurable:!0,get:function(){if(o)return r;var t=r.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return t}}),o=!1,t}}}n.d(e,"a",function(){return r})},sOob:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("up7T");function o(t){return function(t){return t.comments||r.b}(t).chatId}},up7T:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return c});var r,o=n("WiQe"),i={chatId:void 0},a=((r={})[o.a.SET_CHAT_ID]=function(t,e){return{chatId:e.payload.chatId}},r),c=function(t,e){return void 0===t&&(t=i),a[e.type]?a[e.type](t,e):t}},wFvn:function(t,e,n){"use strict";n.r(e),n.d(e,"EMode",function(){return o}),n.d(e,"NewsTray",function(){return h});var r,o,i=n("cDcd"),a=n("5MOZ"),c=n.n(a),u=n("pauq"),s=n("x0D+"),l=n("Js84"),f=(n("xZhQ"),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t,e,n,r){var o,i=arguments.length,a=i=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};!function(t){t.OPEN="open",t.CLOSED="closed"}(o||(o={}));var p=c()("news-tray"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.state={mode:o.CLOSED},n.ref=i.createRef(),n.scrollableRef=i.createRef(),n}return f(e,t),e.prototype.componentDidMount=function(){this.props.mode===o.OPEN&&this.open(),this.props.setRef&&this.props.setScrollableRef&&(this.props.setRef(this.ref.current),this.props.setScrollableRef(this.scrollableRef.current))},e.prototype.componentWillUnmount=function(){Object(s.clearAllBodyScrollLocks)()},e.prototype.componentDidUpdate=function(t){this.props.mode!==t.mode&&this.props.mode!==this.state.mode&&(this.props.mode===o.OPEN?this.open():this.close())},e.prototype.render=function(){var t=this.props,e=t.children,n=t.renderHeader,r=t.className,o=void 0===r?"":r,a=t.noTrayAnimation,c=this.state.mode,u={mode:c,with_header:!1,"no-animation":Boolean(a)};return n&&(u.with_header=!0),i.createElement(i.Fragment,null,i.createElement("div",{className:p("overlay",{mode:c})(),onClick:this.overlayClick}),i.createElement("div",{className:p(u).mix(o)(),ref:this.ref},i.createElement("div",{className:p("container")()},n&&n({className:p("header")()}),i.createElement(l.Button,{className:p("close")(),onClick:this.close}),i.createElement("div",{className:p("content")(),ref:this.scrollableRef},e))))},e.prototype.open=function(){this.beforeOpen(),this.setState({mode:o.OPEN})},e.prototype.close=function(){this.setState({mode:o.CLOSED}),this.afterClose()},e.prototype.beforeOpen=function(){Object(s.disableBodyScroll)(this.scrollableRef.current)},e.prototype.afterClose=function(){Object(s.enableBodyScroll)(this.scrollableRef.current),this.props.onClose()},e.prototype.overlayClick=function(){this.props.closeOnOverlayClick&&this.close()},e.defaultProps={onClose:function(){return null}},d([u.a],e.prototype,"close",null),d([u.a],e.prototype,"overlayClick",null),e}(i.PureComponent)},"x0D+":function(t,e,n){var r,o,i;o=[e],void 0===(i="function"==typeof(r=function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);edefine("NewsComment",["BemCN.external","React"],function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/turbo/pages/bundles/",n(n.s=241)}({"+Ocy":function(t,e,n){},"08hc":function(t,e,n){},241:function(t,e,n){t.exports=n("tmyr")},"3I9k":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r,o=n("cDcd"),i=n("7RWV"),u=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},s=function(){for(var t=[],e=0;e=0?"&":"?";fetch(e+(O?""+r+O:""),{headers:a,credentials:y,method:v,body:b,mode:m}).then(function(t){return function(e){return e.ok?204===e.status?Promise.resolve(e):e[t]().then(function(t){var n=o(e,{readedBody:t});return e.ok?Promise.resolve(n):Promise.reject(n)}):Promise.reject(e)}}(i)).then(function(e){w(e)?t(e):n(new Error("successValidateCallback() failed."))},n),function(t){return new Promise(function(e){return setTimeout(function(){return e()},t)})}(d).then(function(){n(new Error("Request timeout."))})}).catch(function(r){return n.retry&&n.retry>0?new Promise(function(t){setTimeout(t,p)}).then(function(){return n.retry&&n.retry--,t(e,n,i)}):Promise.reject(r)})},s=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n="json");var r=i({},e,{method:"GET"});return c(t,r,n)},f=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n="json");var r=i({},a,e.headers),o=e.body,s="";r["Content-Type"]||(r["Content-Type"]=u),o&&(s="string"==typeof o?o:JSON.stringify(o));var f=i({},e,{method:"POST",headers:r,body:s});return c(t,f,n)},d=function(t,e,n){void 0===e&&(e={});var r=i({},e.headers),o=e.body,a="";r["Content-Type"]||(r["Content-Type"]=u),o&&(a="string"==typeof o?o:JSON.stringify(o));var s=i({},e,{method:"PUT",headers:r,body:a});return c(t,s,n)},l=function(t,e,n){void 0===e&&(e={});var r=i({},e.headers);!r["Content-Type"]&&e.body&&(r["Content-Type"]=u);var o=i({},e,{headers:r,method:"DELETE"});return c(t,o,n)}},"4JlD":function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?i(u(t),function(u){var a=encodeURIComponent(r(u))+n;return o(t[u])?i(t[u],function(t){return a+encodeURIComponent(r(t))}).join(e):a+encodeURIComponent(r(t[u]))}).join(e):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}var u=n("WESU"),a={};var c=n("ENpa");function s(){return(s=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(a)throw a;for(var r=!1,o={},i=0;i0&&r.createElement("span",{className:f("value")()},e),c&&r.createElement("span",{className:f("icon",{right:!0})(),"aria-hidden":!0},c))})},KU1r:function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r}),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT"}(r||(r={}))},KkTg:function(t,e,n){"use strict";function r(t,e){void 0===e&&(e={});var n=e.locale,r=void 0===n?"en":n,i=e.withPrecise,u=void 0!==i&&i,a=e.abbrs,c=void 0===a?["K","M"]:a;return(t=Number(t)||0)=0;a--)(o=t[a])&&(u=(i3?o(e,n,u):o(e,n))||u);return i>3&&u&&Object.defineProperty(e,n,u),u},T=d()("news-comment"),P=function(t){function e(e){var n=t.call(this,e)||this,r=e.id,o=e.count,i=e.initialized;return n.state={id:r,count:o,initialized:i},n}return E(e,t),e.prototype.componentDidMount=function(){!this.state.id&&this.formKey&&this.updateInfo()},e.prototype.componentDidUpdate=function(t){var e=this.state.id,n=this.props,r=n.commentsChatId,o=n.count,i=t.commentsChatId;t.count!==o&&this.setState({count:o}),(i===e&&!r||!e&&this.formKey)&&this.updateInfo()},e.prototype.render=function(){var t,e=this.state.count,n=this.props.iconSize===g.a.SMALL?b:v.a,o=this.props,i=o.counter,u=o.className,a=void 0===u?"":u,c=o.iconPosition,s=void 0===c?j.a.RIGHT:c,f=o.label,d=void 0!==f&&f,l=((t={role:o.isLink?"":"button"})["aria-label"]="Комментарии: "+e,t);return r.createElement(m.a,C({className:T({label:d,value:!e&&"none"}).mix(a)(),onClick:this.handleClick,rightIcon:s===j.a.RIGHT?r.createElement(y.NewsIcon,C({},n)):null,leftIcon:s===j.a.LEFT?r.createElement(y.NewsIcon,C({},n)):null,aria:l},i),d&&r.createElement("span",{className:T("text")(),"aria-hidden":!0},"Комментировать"),0!==e?r.createElement("span",{className:T("count")()},this.formatCounter()):null)},Object.defineProperty(e.prototype,"formKey",{get:function(){var t=this.props,e=t.formKey,n=t.state.newsFormKey;return e||n},enumerable:!0,configurable:!0}),e.prototype.getCommentInfoAndInit=function(){var t=this.state.count,e=this.props.infoAndInitUrl;if(!e){var n=this.props,r=n.id,o=n.count,i=n.initialized;return Promise.resolve({id:r,count:o,initialized:i})}return Object(h.b)(e+"&form_key="+this.formKey).then(function(e){var n=e&&e.readedBody||{},r=n.cmnt_number,o=void 0===r?t:r,i=n.entity_id;return{count:o,id:String(void 0===i?"":i),initialized:!0}})},e.prototype.updateInfo=function(){var t=this;return this.getCommentInfoAndInit().then(function(e){t.setState(C({},e))})},e.prototype.handleClick=function(){var t=this.state,e=t.id,n=t.initialized;this.props.isLink||(e?(n||this.updateInfo(),this.setCommentsChatId()):this.updateInfo().then(this.setCommentsChatId))},e.prototype.setCommentsChatId=function(){var t=this.state.id;this.props.setCommentsChatId({chatId:t})},e.prototype.formatCounter=function(){var t=this.state.count,e=this.props.language;return t?Object(p.a)(t,{locale:e||"en",withPrecise:!0}):""},I([l.a],e.prototype,"handleClick",null),I([l.a],e.prototype,"setCommentsChatId",null),e}(r.PureComponent),x=Object(o.a)(Object(u.a)("NewsComment"),Object(i.a)(),Object(a.a)(function(t){return{commentsChatId:Object(w.a)(t)}},{setCommentsChatId:O.b}),Object(c.a)(function(t){var e=t.baobabAttrs,n=void 0===e?{}:e;return{name:"comment",attrs:Object(s.a)(C({},n))}}))(P)},Nsxg:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return u});var r=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},o=function(){for(var t=[],e=0;e\n'},WESU:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e0&&s>c&&(s=c);for(var f=0;f=0?(d=y.substr(0,v),l=y.substr(v+1)):(d=y,l=""),p=decodeURIComponent(d),h=decodeURIComponent(l),r(u,p)?o(u[p])?u[p].push(h):u[p]=[u[p],h]:u[p]=h}return u};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},pauq:function(t,e,n){"use strict";function r(t,e,n){var r=n.value,o=!1;return{configurable:!0,get:function(){if(o)return r;var t=r.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return t}}),o=!1,t}}}n.d(e,"a",function(){return r})},rMTg:function(t,e){t.exports=''},rTDb:function(t,e,n){"use strict";n.r(e),n.d(e,"NewsIcon",function(){return a});var r=n("cDcd"),o=n("5MOZ"),i=n.n(o),u=(n("SfKQ"),i()("news-icon"));function a(t){var e,n=t.name,o=t.width,i=void 0===o?18:o,a=t.height,c=void 0===a?18:a,s=t.className,f=void 0===s?"":s,d=t.flipX,l=void 0!==d&&d,p=t.flipY,h=void 0!==p&&p,y=t.style,v=u((e={},e[n]=!0,e["flip-x"]=l,e["flip-y"]=h,e)).mix(f)();return r.createElement("svg",{className:v,width:i,height:c,style:y},r.createElement("use",{xlinkHref:"#"+n}))}},s4NR:function(t,e,n){"use strict";e.decode=e.parse=n("kd2E"),e.encode=e.stringify=n("4JlD")},sOob:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("up7T");function o(t){return function(t){return t.comments||r.b}(t).chatId}},tmyr:function(t,e,n){window.Registry({NewsComment:n("NnMJ").NewsComment})},up7T:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return a});var r,o=n("WiQe"),i={chatId:void 0},u=((r={})[o.a.SET_CHAT_ID]=function(t,e){return{chatId:e.payload.chatId}},r),a=function(t,e){return void 0===t&&(t=i),u[e.type]?u[e.type](t,e):t}}})});define("NewsVideoSettingsReducer",[],function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/static/turbo/pages/bundles/",r(r.s=181)}({181:function(e,t,r){e.exports=r("1luZ")},"1luZ":function(e,t,r){"use strict";r.r(t);var n=r("7RWV"),o=r("vr0i");Object(n.registerReducer)("newsVideoSettings",o.c)},"7RWV":function(e,t,r){"use strict";r.r(t);var n=r("ANjH"),o=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}};function i(e){return e&&"object"==typeof e&&!Array.isArray(e)}var u=r("WESU"),a={};var c=r("ENpa");function f(){return(f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var n=!1,o={},i=0;idefine("NewsVideoSettings",["BemCN.external","React","ReactDOM"],function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/turbo/pages/bundles/",n(n.s=182)}({"/9nz":function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return u});var r=n("mrSG"),o=n("cDcd"),i=n.n(o),a=n("Dps+"),c=(n("numx"),Object(a.cn)("Link")),u=function(t){t.title;var e=t.href,n=t.target,o=t.disabled,a=t.rel,u=t.tabIndex,s=t.innerRef,f=t.controlRef,p=t.children,l=(t.pseudo,t.nonvisual,t.as),d=r.d(t,["title","href","target","disabled","rel","tabIndex","innerRef","controlRef","children","pseudo","nonvisual","as"]),h=c(null,[d.className]),v=l||(e?"a":"span"),y=a;return"_blank"===n&&void 0!==a&&-1===a.indexOf("noopener")&&(y=a+" noopener"),i.a.createElement(v,r.a({},d,{ref:s||f,href:e,"aria-disabled":o,target:n,rel:y,tabIndex:o?-1:u,className:h}),p)};u.displayName=c()},182:function(t,e,n){t.exports=n("EdDj")},"3I9k":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r,o=n("cDcd"),i=n("7RWV"),a=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}var a=n("WESU"),c={};var u=n("ENpa");function s(){return(s=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(c)throw c;for(var r=!1,o={},i=0;i0&&(u["data-metrika-goals"]=JSON.stringify(i)),a.length>0&&(u["data-analytics-goals"]=JSON.stringify(a)),r.createElement(e,o({goals:u},n))}}}},BkqM:function(t,e,n){"use strict";var r;function o(t){return{type:r.UPDATE,payload:t}}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),function(t){t.UPDATE="NEWSVIDEOSETTINGS/UPDATE"}(r||(r={}))},C390:function(t,e,n){},D7Su:function(t,e,n){"use strict";var r=n("WvKr"),o=n("cAL9"),i=n("Kjbl"),a=new r.Registry({id:Object(o.b)()});a.set("Tail",i.a),n.d(e,"a",function(){return c}),n.d(e,!1,function(){return o.b});var c=Object(r.withRegistry)(a)(o.a)},"Dps+":function(t,e,n){"use strict";t.exports=n("gWr/")},ENpa:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=window.document&&window.document.createElement},EdDj:function(t,e,n){window.Registry({NewsVideoSettings:n("ZvUZ").NewsVideoSettings})},GfAd:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u});n("Po9p");var r=URL;var o="https:",i=o+"//stub";function a(t){if(!function(t){return t&&("http://"===t.slice(0,7)||"https://"===t.slice(0,8))}(t)){var e=new r(t,i);return e.toString=function(t){return r.prototype.toString.call(this).substr(t.length)}.bind(e,function(t){return t&&"/"===t[0]&&"/"!==t[1]}(t)?i:o),e}return new r(t)}function c(t){return new URLSearchParams(t)}function u(t,e,n){window.history.replaceState(t,e,n),window.Ya&&window.Ya.isInFrame&&window.Ya.isInFrame()&&window.top.postMessage({action:"history-replace-state",data:t,title:e,url:n},"*")}},"HPh+":function(t,e,n){"use strict";t.exports=n("qiC5")},IjEj:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r,o=n("cDcd"),i=n("pauq"),a=n("Nsxg"),c=n("kIwt"),u=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(){return(s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){return t};function l(t){return void 0===t&&(t={}),function(e){return function(n){function r(e){var r=n.call(this,e)||this;return r.customHandleChange=t.handleChange||p,r}return u(r,n),r.prototype.componentDidMount=function(){var e=this.context,n=e.handleVisibilityChange,r=e.notVisibleFields,o=e.handleMount,i=this.props.name;if("function"==typeof o&&o(i),r[i]&&"function"==typeof n)n(i,!0);else{var a,c=s({},this.props,this.contextData),u=c.value,f=c.checked,p=c.required,l=t.type;"radio"===l&&Array.isArray(this.props.items)&&(a=(this.props.items.filter(function(t){return t.value===u})[0]||{}).payload),this.handleChange({target:{value:u,checked:Boolean(f),required:p,name:i,type:l}},a)}},r.prototype.componentWillUnmount=function(){var t=this.context.handleVisibilityChange,e=this.props.name;e&&"function"==typeof t&&t(e)},r.prototype.render=function(){var t={};return this.props.value&&"object"==typeof this.contextData.value&&(t.value=this.props.value,t.checked=this.contextData.value[this.props.value]),o.createElement(e,s({},this.props,this.contextData,t,{errors:this.errors,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus}))},r.prototype.handleChange=function(t,e){var n=this.context.handleChange,r=t.target,o=this.props.onChange;"function"==typeof n&&n(r.name||this.props.name,this.customHandleChange({value:r.value,checked:r.type&&["checkbox","radio"].indexOf(r.type)>-1?r.checked:void 0,required:r.required}),e);"function"==typeof o&&o(t,e)},r.prototype.handleBlur=function(){var t=this.context.handleBlur;"function"==typeof t&&t(this.props.name)},r.prototype.handleFocus=function(t){var e=this.context.handleFocus;"function"==typeof e&&e(t)},Object.defineProperty(r.prototype,"contextData",{get:function(){var t=this.context.data;return(void 0===t?{}:t)[this.props.name]||{}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"errors",{get:function(){return this.context.errors[this.props.name]},enumerable:!0,configurable:!0}),r.contextType=c.a,r.displayName="withForm("+Object(a.b)(e)+")",f([i.a],r.prototype,"handleChange",null),f([i.a],r.prototype,"handleBlur",null),f([i.a],r.prototype,"handleFocus",null),r}(o.Component)}}},JYFQ:function(t,e,n){},Js84:function(t,e,n){"use strict";n.r(e),n.d(e,"Button",function(){return w});var r,o=n("cDcd"),i=n("5MOZ"),a=n("VGIf"),c=(n("C390"),n("Nsxg")),u=n("9FHj"),s=n("Be0P"),f=n("PHRx"),p=n("pauq"),l=n("ENpa"),d=n("pE07"),h=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=function(){return(v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},b=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=function(){for(var t=[],e=0;e=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},x="autoplay",R=a()("news-video-settings"),S=Object(o.compose)(g.a,m.a,O.a)(w.a),C=function(t){function e(e){var n=t.call(this,e)||this;return n.anchorRef=r.createRef(),n.optionsRef=r.createRef(),n.state={visible:!1},n}return E(e,t),e.prototype.componentDidMount=function(){window.addEventListener("click",this.hidePopUp),window.addEventListener("touchend",this.hidePopUp)},e.prototype.componentWillUnmount=function(){window.removeEventListener("click",this.hidePopUp),window.removeEventListener("touchend",this.hidePopUp)},e.prototype.render=function(){var t=this,e=this.state.visible,n=this.props,o=n.className,i=void 0===o?"":o,a=n.items,c=void 0===a?[]:a,u=n.settings,s=void 0===u?{}:u;return r.createElement("div",{className:R.mix(i)(),ref:this.anchorRef},r.createElement(b.Button,{className:R("show",{active:e})(),onClick:this.handleShowClick},r.createElement("span",{className:R("dots")()})),e&&r.createElement(S,{className:R("popup")(),visible:e,theme:"normal",anchor:this.anchorRef,target:"anchor"},r.createElement("ul",{className:R("options")(),ref:this.optionsRef},c.map(function(e){return r.createElement("li",{className:R("item")(),key:e.name},r.createElement(p.Checkbox2,{className:R("checkbox")(),name:e.name,value:e.name,checked:s[e.name],onChange:t.handleCheckboxChange},e.text))}))))},e.prototype.handleShowClick=function(){this.setState(function(t){return{visible:!t.visible}})},e.prototype.handleCheckboxChange=function(t){var e,n=t.target.name,r=t.target.checked;this.props.updateVideoSettings&&this.props.updateVideoSettings(((e={})[n]=r,e)),n===f.a.AUTOPLAY&&this.setCookie(x,r?"1":"0")},e.prototype.hidePopUp=function(t){var e=this.anchorRef.current,n=this.optionsRef.current,r=t.target;e&&e.contains(r)||n&&n.contains(r)||this.setState({visible:!1})},e.prototype.setCookie=function(t,e){!function(t,e,n){var r=location.pathname.match(/^\/[^\/?]+/),o=location.host.replace(/^([\w-.]+)+(?=yandex)/i,""),i=r?r[0]:"/";h.remove(t,{path:i}),h.set(t,e,v({path:i,domain:o},n))}(t,e,{expires:3650})},P([c.a],e.prototype,"handleShowClick",null),P([c.a],e.prototype,"handleCheckboxChange",null),P([c.a],e.prototype,"hidePopUp",null),e}(r.PureComponent),k=Object(o.compose)(Object(l.a)("NewsVideoSettings"),Object(d.a)({name:"news-video-settings"}),Object(y.a)(function(t){return{settings:Object(s.a)(t)}},{updateVideoSettings:u.b}))(C)},cAL9:function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return l});var r=n("mrSG"),o=n("cDcd"),i=n.n(o),a=n("faye"),c=n("WvKr"),u=n("Dps+"),s=n("eZ53"),f=n("eNDz"),p=(n("P0vK"),Object(u.cn)("Popup2")),l=function(t){var e=t.addonAfter,n=t.addonBefore,u=t.children,l=t.className,d=t.direction,h=t.forceRender,v=t.hasTail,y=t.innerRef,b=t.keepMounted,g=void 0===b||b,m=t.position,w=t.scope,O=void 0===w?{current:Object(s.a)()?document.body:null}:w,j=t.style,E=t.tailPosition,P=t.tailRef,x=t.tailSize,R=t.targetRef,S=t.visible,C=t.zIndex,k=(t.theme,t.tone,t.view,r.d(t,["addonAfter","addonBefore","children","className","direction","forceRender","hasTail","innerRef","keepMounted","position","scope","style","tailPosition","tailRef","tailSize","targetRef","visible","zIndex","theme","tone","view"])),_=r.c(Object(o.useState)(!1),2),D=_[0],N=_[1];Object(o.useEffect)(function(){!D&&h&&N(!0)},[]),Object(o.useEffect)(function(){Object(f.a)(y,R)},[y,R]);var A=Object(c.useComponentRegistry)(p()).Tail;return(S||g)&&Object(s.a)()&&null!==O.current?Object(a.createPortal)(i.a.createElement("div",r.a({},k,{className:p({visible:S,direction:d},[l]),ref:y,style:r.a({},j,m,{zIndex:C})}),n,u,e,v&&i.a.createElement(A,{innerRef:P,style:r.a({},E,{height:x,width:x})})),O.current):null};l.displayName=p()},cDcd:function(t,n){t.exports=e},eNDz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("eZ53"),o=function(t){for(var e=[],n=1;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}},numx:function(t,e,n){},p46w:function(t,e,n){var r,o;!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o),!0,t.exports=i(),!!0){var a=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=a,c}}}(function(){function t(){for(var t=0,e={};t1){if("number"==typeof(i=t({path:"/"},r.defaults,i)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(t){}o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var u="";for(var s in i)i[s]&&(u+="; "+s,!0!==i[s]&&(u+="="+i[s]));return document.cookie=e+"="+o+u}e||(a={});for(var f=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,l=0;l0&&(n+=" "),n+=a)}return n}},rKag:function(t,e,n){"use strict";t.exports=n("8QhE")},sZsy:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("vr0i");function o(t){return t.newsVideoSettings||r.b}},unuv:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("mrSG"),o=n("cDcd"),i=n.n(o),a=n("rKag"),c=n("eZ53"),u=n("eNDz"),s=n("cAL9"),f=function(t,e,n){return 0===t.indexOf(e)||n&&0===t.indexOf(n)},p=function(t,e){return t.indexOf("-"+e)>0},l={directions:["bottom-left","bottom-center","bottom-right","top-left","top-center","top-right","right-top","right-center","right-bottom","left-top","left-center","left-bottom"],mainOffset:0,secondaryOffset:0,tailOffset:0,viewportOffset:0,scope:{current:Object(c.a)()?document.body:null}},d=Object(a.withBemMod)(Object(s.b)(),{target:"anchor"},function(t){var e;return(e=function(e){function n(t){var n=e.call(this,t)||this;return n.state={direction:"bottom-left"},n.popupRef=Object(o.createRef)(),n.tailRef=Object(o.createRef)(),n.updateTimer=0,n.subscribeToEvents=function(){window.addEventListener("scroll",n.updateRefsPosition),window.addEventListener("resize",n.updateRefsPosition),document.addEventListener("documentchange",n.updateRefsPosition)},n.unsubscribeFromEvents=function(){window.removeEventListener("scroll",n.updateRefsPosition),window.removeEventListener("resize",n.updateRefsPosition),document.removeEventListener("documentchange",n.updateRefsPosition)},n.updateRefsPosition=function(){0===n.updateTimer&&null!==n.popupRef.current&&(n.popupRef.current.style.top="-9999px"),window.clearTimeout(n.updateTimer),n.updateTimer=window.setTimeout(function(){var t=n.props.directions,e=n.getDrawingParams(t),r=e.direction,o=e.popupPosition,i=e.tailPosition;n.state.direction!==r&&n.setState({direction:r}),null!==n.popupRef.current&&(n.popupRef.current.style.top=o.top+"px",n.popupRef.current.style.left=o.left+"px"),null!==n.tailRef.current&&(n.tailRef.current.style.top=i.top+"px",n.tailRef.current.style.left=i.left+"px")},132)},n.getPossibleDrawingParams=function(){var t=n.getAnchorDimensions(n.props.anchor),e=n.getViewportDimensions(),r=n.getOffsets();return n.props.directions.map(function(n){var o={direction:n,width:0,height:0,left:0,top:0};return f(n,"bottom")?(o.top=t.top+t.height+2*r.main,o.height=e.bottom-o.top-r.viewport):f(n,"top")?(o.height=t.top-e.top-r.main-r.viewport,o.top=t.top-o.height-r.main):(p(n,"center")?(o.height=e.bottom-e.top-2*r.viewport,o.top=t.top+(t.height-o.height)/2):p(n,"bottom")?(o.height=t.top+t.height-e.top-r.secondary-r.viewport,o.top=t.top+t.height-o.height-r.secondary):p(n,"top")&&(o.top=t.top+r.secondary,o.height=e.bottom-o.top-r.viewport),f(n,"left")?(o.width=t.left-e.left-r.main-r.viewport,o.left=t.left-o.width-r.main):(o.left=t.left+t.width+r.main,o.width=e.right-o.left-r.viewport)),p(n,"right")?(o.width=t.left+t.width-e.left-r.secondary-r.viewport,o.left=t.left+t.width-o.width-r.secondary):p(n,"left")?(o.left=t.left+r.secondary,o.width=e.right-o.left-r.viewport):p(n,"center")&&f(n,"top","bottom")&&(o.width=e.right-e.left-2*r.viewport,o.left=t.left+t.width/2-o.width/2),o})},console.assert(void 0!==t.anchor,'Для работы "withTargetAnchor" требуется наличие свойства "anchor".'),console.assert(0!==t.directions.length,'Для работы "withTargetAnchor" требуется наличие хотя бы одного направления для раскрытия.'),n}return r.b(n,e),n.prototype.componentDidMount=function(){this.forwardRefs(),this.props.visible&&this.updateRefsPosition(),this.shouldSubscribeToEvents()&&this.subscribeToEvents()},n.prototype.componentDidUpdate=function(t){this.forwardRefs(),t.visible===this.props.visible&&t.anchor===this.props.anchor||this.updateRefsPosition(),this.shouldSubscribeToEvents()?this.subscribeToEvents():this.unsubscribeFromEvents()},n.prototype.componentWillUnmount=function(){this.unsubscribeFromEvents()},n.prototype.render=function(){var e=this.props,n=(e.anchor,e.directions,e.mainOffset,e.motionless,e.secondaryOffset,e.tailOffset,e.target,e.viewportOffset,e.getPossibleDrawingParams),o=r.d(e,["anchor","directions","mainOffset","motionless","secondaryOffset","tailOffset","target","viewportOffset","getPossibleDrawingParams"]);return Object(c.a)()&&void 0!==n&&n(this.getPossibleDrawingParams()),i.a.createElement(t,r.a({},o,{direction:this.state.direction,innerRef:this.popupRef,tailRef:this.tailRef}))},n.prototype.forwardRefs=function(){Object(u.a)(this.popupRef,this.props.innerRef),Object(u.a)(this.tailRef,this.props.tailRef)},n.prototype.shouldSubscribeToEvents=function(){return this.props.visible&&this.props.directions.length>1&&!this.props.motionless},n.prototype.getDrawingParams=function(t){var e,n,o={direction:"bottom-left",popupPosition:{top:0,left:0},tailPosition:{top:0,left:0}},i=this.getPopupDimensions(this.popupRef),a=this.getAnchorDimensions(this.props.anchor),c=this.getViewportDimensions(),u=this.getScopeDimensions(this.props.scope),s=0;try{for(var f=r.e(t),p=f.next();!p.done;p=f.next()){var l=p.value,d=this.getPopupPosition(l,a,i),h=this.getViewportFactor(d,c,i);if((h>s||this.state.direction===l)&&(o.popupPosition={top:d.top-(u.top+window.pageYOffset),left:d.left-(u.left+window.pageXOffset)},o.direction=l,s=h),s>.99)break}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return this.props.hasTail&&(o.tailPosition=this.getTailPosition(o.direction,a,i)),o},n.prototype.getPopupDimensions=function(t){var e={area:0,height:0,width:0,popupHeight:0,popupWidth:0};if(void 0!==t&&null!==t.current){var n=t.current,r=n.clientWidth,o=n.clientHeight,i=t.current.getBoundingClientRect(),a=i.width,c=i.height;e.area=r*o,e.height=Math.round(c),e.width=Math.round(a),e.popupHeight=o,e.popupWidth=r}return e},n.prototype.getAnchorDimensions=function(t){var e={left:0,top:0,height:0,width:0};if(void 0!==t&&null!==t.current){var n=t.current,r=n.offsetWidth,o=n.offsetHeight,i=t.current.getBoundingClientRect(),a=i.left,c=i.top;e.left=a+window.pageXOffset,e.top=c+window.pageYOffset,e.height=o,e.width=r}return e},n.prototype.getTailDimensions=function(){var t={size:0};return void 0!==this.props.tailSize&&(t.size=this.props.tailSize),null!==this.tailRef.current&&(t.size=this.tailRef.current.offsetWidth),t},n.prototype.getViewportDimensions=function(){return{top:window.pageYOffset,left:window.pageXOffset,bottom:window.pageYOffset+window.innerHeight,right:window.pageXOffset+window.innerWidth}},n.prototype.getScopeDimensions=function(t){var e={top:0,left:0};if(void 0!==t&&null!==t.current){var n=t.current.getBoundingClientRect(),r=n.left,o=n.top;e.top=o,e.left=r}return e},n.prototype.getPopupPosition=function(t,e,n){var r={left:0,top:0},o=this.getOffsets();return f(t,"bottom")?r.top=e.top+e.height+o.main:f(t,"top")?r.top=e.top-n.height-o.main:f(t,"left")?r.left=e.left-n.width-o.main:f(t,"right")&&(r.left=e.left+e.width+o.main),p(t,"right")?r.left=e.left+e.width-n.width-o.secondary:p(t,"left")?r.left=e.left+o.secondary:p(t,"bottom")?r.top=e.top+e.height-n.height-o.secondary:p(t,"top")?r.top=e.top+o.secondary:p(t,"center")&&(f(t,"top","bottom")?r.left=e.left+e.width/2-n.width/2:f(t,"left","right")&&(r.top=e.top+e.height/2-n.height/2)),r},n.prototype.getTailPosition=function(t,e,n){var r={left:0,top:0},o=this.getTailDimensions().size/2,i=this.getOffsets();return f(t,"bottom")?r.top=-o:f(t,"top")?r.top=Math.floor(n.popupHeight-o):f(t,"left")?r.left=Math.floor(n.popupWidth-o):f(t,"right")&&(r.left=-o),p(t,"right")?r.left=n.popupWidth-Math.ceil(Math.min(n.popupWidth,e.width)/2)-o-i.tail:p(t,"left")?r.left=Math.ceil(Math.min(n.popupWidth,e.width)/2)-o+i.tail:p(t,"bottom")?r.top=n.popupHeight-Math.ceil(Math.min(n.popupHeight,e.height)/2)-o-i.tail:p(t,"top")?r.top=Math.ceil(Math.min(n.popupHeight,e.height)/2)-o+i.tail:p(t,"center")&&(f(t,"top","bottom")?r.left=Math.ceil(n.popupWidth/2)-o+i.tail:r.top=Math.ceil(n.popupHeight/2)-o+i.tail),r},n.prototype.getOffsets=function(){var t=this.props,e=t.mainOffset,n=t.secondaryOffset,r=t.tailOffset,o=t.viewportOffset,i=this.getTailDimensions();return{main:e>=0&&i.size>0?Math.max(e,Math.round(i.size*Math.SQRT1_2)):e,secondary:n,tail:r,viewport:o}},n.prototype.getViewportFactor=function(t,e,n){var r=0,o=this.getOffsets(),i=Math.max(t.left,e.left+o.viewport),a=Math.min(t.left+n.width,e.right-o.viewport),c=Math.max(t.top,e.top+o.viewport),u=Math.min(t.top+n.height,e.bottom-o.viewport);return idefine("ImageSimpleFitCover",[],function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/static/turbo/pages/bundles/",n(n.s=410)}({410:function(e,t,n){e.exports=n("BT4v")},BT4v:function(e,t,n){"use strict";n.r(t);n("RTf1")},RTf1:function(e,t,n){}})});define("ImageSimpleRounded",[],function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/static/turbo/pages/bundles/",n(n.s=400)}({400:function(e,t,n){e.exports=n("TSUq")},TSUq:function(e,t,n){"use strict";n.r(t);n("u11a")},u11a:function(e,t,n){}})});define("ImageSimpleRatio1x1",[],function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/static/turbo/pages/bundles/",n(n.s=407)}({407:function(e,t,n){e.exports=n("KAnb")},KAnb:function(e,t,n){"use strict";n.r(t);n("StHF")},StHF:function(e,t,n){}})});define("LoaderThemeGray",[],function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/static/turbo/pages/bundles/",r(r.s=326)}({326:function(e,t,r){e.exports=r("wVO9")},wVO9:function(e,t,r){"use strict";r.r(t);r("xHeA")},xHeA:function(e,t,r){}})});define("ImageSimple",["BemCN.external","React"],function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/turbo/pages/bundles/",n(n.s=412)}({"/Pdp":function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p});var r,o,i=n("cDcd"),a=n("5MOZ"),c=n.n(a),s=n("ZmG7"),u=(n("5pdp"),Object(a.cn)("loader")),l=c()("loader");!function(t){t.dark="dark",t.gray="gray",t.white="white"}(o||(o={}));(r={})[o.dark]="LoaderThemeDark",r[o.gray]="LoaderThemeGray",r[o.white]="LoaderThemeWhite";function f(t){var e={theme:t.theme||Boolean(t.theme),tall:Boolean(t.tall)};return i.createElement("span",{className:u(e,[t.className,l({solid:t.theme===o.gray})()])},i.createElement("span",{className:u("inner")},t.text&&i.createElement(s.a,{className:u("text"),text:t.text}),!1!==t.dots&&i.createElement("span",{className:u("dots")})))}var p=200},"2RIJ":function(t,e,n){window.Registry({ImageSimple:n("6reW").ImageSimple})},412:function(t,e,n){t.exports=n("2RIJ")},"5MOZ":function(e,n){e.exports=t},"5pdp":function(t,e,n){},"6reW":function(t,e,n){"use strict";n.r(e),n.d(e,"ImageSimplePresenter",function(){return y}),n.d(e,"ImageSimple",function(){return O});var r,o,i=n("cDcd"),a=n("5MOZ"),c=n.n(a),s=n("/Pdp"),u=(n("5pdp"),n("Q+E8"),n("Nsxg")),l=n("9FHj"),f=n("PHRx"),p=n("wvKz"),d=n("pauq"),m=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(){return(h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(a=(i3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},g=Object(a.cn)("image-simple"),b=c()("unit")({rect:!0})();!function(t){t.inited="inited",t.preloaded="preloaded",t.loaded="loaded",t.error="error"}(o||(o={}));var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e}return m(e,t),e.prototype.componentDidMount=function(){this.props.isIntersecting&&this.onImageInited()},e.prototype.componentDidUpdate=function(t){var e=t.isIntersecting,n=this.props.isIntersecting;!e&&n&&(this.state.status||this.onImageInited())},e.prototype.componentWillUnmount=function(){clearTimeout(this.timeoutId)},e.prototype.render=function(){var t=this.props,e=t.rounded,n=t.ratio,r=t.fit,a=t.visibilityRootRef,c=t.src,u=t.maxWidth,l=t.maxHeight,f=t.mix,p=this.props.loaderParams||{},d={};return this.state.status!==o.preloaded&&this.state.status!==o.loaded||(d.backgroundImage="url('"+c+"')"),u&&(d.maxWidth=u+"px"),l&&(d.maxHeight=l+"px"),i.createElement("i",h({className:g({rounded:e,ratio:n,fit:r,status:this.state.status},[b,f,"image-simple"]),ref:a,style:d},this.props.dataAttrs),this.state.status!==o.loaded&&!1!==this.props.loader&&i.createElement(s.a,{dots:p.dots,theme:p.theme||s.c.gray}),this.state.status&&i.createElement("img",{src:c,onLoad:this.onImageLoaded,onError:this.onLoadError}))},e.prototype.onImageInited=function(){this.setState({status:o.inited})},e.prototype.onImageLoaded=function(){var t=this;this.setState({status:o.preloaded}),this.timeoutId=setTimeout(function(){t.setState({status:o.loaded})},s.b)},e.prototype.onLoadError=function(){this.setState({status:o.error})},v([d.a],e.prototype,"onImageInited",null),v([d.a],e.prototype,"onImageLoaded",null),v([d.a],e.prototype,"onLoadError",null),e}(i.PureComponent),O=Object(u.a)(Object(l.a)("ImageSimple"),Object(f.a)({name:"image-simple"}),Object(p.a)({rootMargin:"0px 600px 600px 600px"}))(y)},"9FHj":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("cDcd"),o=n("Nsxg"),i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=function(){for(var t=[],e=0;e0,isVisible:e.intersectionRatio>=i})})},n.unobserve=function(){n.intersectionObserver&&n.intersectionObserver.disconnect()},n}return c(r,e),r.prototype.componentWillUnmount=function(){this.unobserve()},r.prototype.componentDidMount=function(){this.unobserve();var t=this.visibilityRootRef.current;t&&this.observe(t)},r.prototype.render=function(){var e=this.state,n=e.isVisible,r=e.isIntersecting;return o.createElement(t,s({isVisible:n,isIntersecting:r},this.props,{visibilityRootRef:this.visibilityRootRef,unobserve:this.unobserve}))},r.prototype.getIntersectionObserverInstance=function(){if(this.intersectionObserver)return this.intersectionObserver;var t={rootMargin:n,threshold:[0,1-i,i,1]};return f&&window.Ya.isInFrame&&window.Ya.isInFrame()&&(t.root=f),this.intersectionObserver=new IntersectionObserver(this.onIntersectionChange,t),this.intersectionObserver},r.prototype.observe=function(t){this.getIntersectionObserverInstance().observe(t)},r}(o.PureComponent)).displayName="WithVisibility("+Object(a.b)(t)+")",e}}}})});define("AdvertNative",["BemCN.external","React"],function(t,e){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/static/turbo/pages/bundles/",r(r.s=630)}({"/Pdp":function(t,e,r){"use strict";r.d(e,"c",function(){return o}),r.d(e,"a",function(){return p}),r.d(e,"b",function(){return l});var n,o,a=r("cDcd"),i=r("5MOZ"),s=r.n(i),d=r("ZmG7"),c=(r("5pdp"),Object(i.cn)("loader")),u=s()("loader");!function(t){t.dark="dark",t.gray="gray",t.white="white"}(o||(o={}));(n={})[o.dark]="LoaderThemeDark",n[o.gray]="LoaderThemeGray",n[o.white]="LoaderThemeWhite";function p(t){var e={theme:t.theme||Boolean(t.theme),tall:Boolean(t.tall)};return a.createElement("span",{className:c(e,[t.className,u({solid:t.theme===o.gray})()])},a.createElement("span",{className:c("inner")},t.text&&a.createElement(d.a,{className:c("text"),text:t.text}),!1!==t.dots&&a.createElement("span",{className:c("dots")})))}var l=200},"5MOZ":function(e,r){e.exports=t},"5pdp":function(t,e,r){},630:function(t,e,r){t.exports=r("JVZ/")},"Dps+":function(t,e,r){"use strict";t.exports=r("gWr/")},EY4o:function(t,e,r){},"I/sH":function(t,e,r){"use strict";var n;r.d(e,"a",function(){return n}),function(t){t.adfox="2930",t.native="2214",t.partner="1219",t.render="2046",t.load="1724"}(n||(n={}))},"JVZ/":function(t,e,r){window.Registry({AdvertNative:r("Upw4").AdvertNative})},RHcC:function(t,e,r){"use strict";r.d(e,"a",function(){return o});var n=r("Dps+"),o=Object(n.withNaming)({m:"_",e:"__"})},Upw4:function(t,e,r){"use strict";r.r(e),r.d(e,"AdvertNative",function(){return c});var n,o=r("cDcd"),a=r("ncvl"),i=r("I/sH"),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=function(){return(d=Object.assign||function(t){for(var e,r=1,n=arguments.length;rdefine("init_react",["bundles.common","YandexFont","CommentsReducer","NewsCommentViewer","NewsComment","NewsVideoSettingsReducer","NewsVideoSettings","ImageSimpleFitCover","ImageSimpleRounded","ImageSimpleRatio1x1","LoaderThemeGray","ImageSimple","AdvertNative"],function(){window.Ya.initReact();})define("loader.bundle",["main"],function(){modules.define("loader",["i-bem-dom"],function(e,n){e(n.declBlock("loader",{onSetMod:{js:{"":function(){this._domEvents().un("transitionend").un("webkitTransitionEnd")}},remove:{true:function(){this._domEvents().on("transitionend",this._remove).on("webkitTransitionEnd",this._remove)}}},remove:function(){this.setMod("remove",!0)},show:function(){this.delMod("hide")},hide:function(){this.detMod("hide",!0)},_remove:function(){n.destruct(this.domNodes)}},{lazyInit:!0}))});})define("tabs.bundle",["main"],function(){modules.define("tabs",["i-bem-dom","native-scroll"],function(e,d,i){e(d.declBlock("tabs",{onSetMod:{js:{inited:function(){var e,d=this.findChildElem({elem:"item",modName:"active",modVal:!0}),o=this.findChildBlock(i).findChildElem("inner");d&&(e=d.domNodes[0].offsetLeft-this.domNodes[0].getBoundingClientRect().left,o.domNodes[0].scrollLeft=e)}}}}))});})define("native-scroll.bundle",["main"],function(){modules.define("native-scroll",["i-bem-dom"],function(t,i){t(i.declBlock("native-scroll",{onSetMod:{js:{inited:function(){["touchstart","touchend","touchcancel"].forEach(function(t){this.addEventListener(t,this.stopPropagation)}.bind(this))}}},addEventListener:function(t,i){var e=!1,n=function(){};if("function"==typeof window.addEventListener){var s=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",n,s),window.removeEventListener("testPassiveEventSupport",n,s)}this.domNodes[0].addEventListener(t,i,!!e&&{passive:!0})},stopPropagation:function(t){if(document.body.classList.contains("page_fix-safari-history-swipe")){var i=t.changedTouches[0].pageX,e=window.matchMedia("(orientation: landscape)").matches,n="touchstart"===t.type;if(n&&(i=(e?screen.height:screen.width)-20))return void(this._historyNavigateSwipe=!0);if(this._historyNavigateSwipe&&!n&&i>35-(e?screen.height:screen.width)&&ithis.__self.SWIPE_THRESHOLD&&("horizontal"===this.getMod("direction")&&s>o||"vertical"===this.getMod("direction")&&st.clientHeight&&(this.setMod("fade"),this._domEvents().once("mouseout touchmove",function(){this.delMod("fade")}))}}}}))});})define("link-like_type_turbo-navigation.bundle",["main"],function(){modules.decl("link-like",["i-bem-dom"],function(e,n){e(n.declBlock("link-like",{},{lazyInit:!0,onInit:function(){this._domEvents().on("click",function(e){this._onClick(e)})}}))}),modules.define("link-like",["i-bem-dom","page"],function(e,n,i,o){e(o.declMod({modName:"type",modVal:"turbo-navigation"},{onSetMod:{js:{inited:function(){this._pageInstance=this.findParentBlock(i)}}},_onClick:function(e){var n=this.domNodes[0];return Ya.turboOverlay?(history.replaceState(Object.assign({},history.state,{isTurboOverlay:!0}),""),Ya.turboOverlay.open({urls:[{frameUrl:n.href,originalUrl:this.params.orig}]}),e.preventDefault()):this.params.openInNewFrame&&window.Ya.isInFrame()?(e.preventDefault(),void window.Ya.openNewFrame(n.href)):"_blank"!==n.target?(e.preventDefault(),void window.Ya.navigateTurboInTurbo(n.href)):void 0}}))});})define("autoload.bundle",["main"],function(){modules.define("spin",["i-bem-dom"],function(e,t){e(t.declBlock("spin"))}),modules.decl("autoload",["i-bem-dom","page","api-request","spin","viewport-watcher"],function(e,t,i,s,n,o){e(t.declBlock("autoload",{onSetMod:{js:{inited:function(){var e=i.getInstance();if(e&&(e.setMod("autoload",!0),e.setMod("url-replacement",this.params.urlReplacement)),this.params.outside&&t.append(this._getParent(),this.domNodes[0]),this.__self.inQueue[this.__self._extractID(location.href)]=!0,this.__self.loaded.push({url:e.params.global.userFriendlyUrl,reqid:e.params.global.reqid}),this.__self.addToQueue(this.params.urls),!this.__self.queue.length)return t.destruct(this.domNodes);this._onAutoloadAnimationEnd=function(){this.setMod("finished")}.bind(this),this._isOffline=!1,this._timer=null,this._numberOfFailedRequest=0,this._failedTurboUrlsCounter=0,this._retryCurrentTimeout=this.__self.REQUEST_TIMEOUT,this._onlineCallback=this._onOnline.bind(this),this._offlineCallback=this._onOffline.bind(this),this._domEvents(window).on("online",this._onlineCallback),this._domEvents(window).on("offline",this._offlineCallback),this._cssClassName="autoload__content"+(this.params.unstyled?" autoload__content_unstyled":""),this._dividerClassName="autoload__divider grid grid_unwrap"+(this.hasMod("simplified")?" autoload__divider_simplified":""),this._watcher=this.findChildElem("spinner").findMixedBlock(o),this._events(this._watcher).on("enter-view",this._enterView).on("leave-view",this._leaveView),this._events().on({modName:"finished",modVal:!0},this._onLoaderAnimationEnd)}},animated:{true:function(){this.findChildBlock(n).setMod("progress")},"":function(){this.findChildBlock(n).delMod("progress")}},finishing:{true:function(){this._domEvents().on("animationend",this._onAutoloadAnimationEnd).on("webkitAnimationEnd",this._onAutoloadAnimationEnd)},"":function(){this._domEvents().un("animationend").un("webkitAnimationEnd")}}},_onOnline:function(){this._isOffline=!1,this._afterLoad(),this._loadNext()},_onOffline:function(){this._isOffline=!0},_loadNext:function(e){if(clearTimeout(this._repeatTimer),window.Ya.autoloadWasUsed=!0,this._isOffline||this._timer||this._hasMaxFailedRequests())return void this.delMod("animated");if(this._loading)return void(this._repeatTimer=setTimeout(this._loadNext.bind(this,e),60));if(!this.__self.hasNextIndex())return clearTimeout(this._timer),this._domEvents(window).un("online",this._onlineCallback),this._domEvents(window).un("offline",this._offlineCallback),void t.destruct(this.domNodes);this._beforeLoad();var i=this.__self.getNextItem(e),n=this._appendInternalParams(i);this.findMixedBlock(s).request(n).then(this._onSuccess.bind(this,{url:n,cleanUrl:i})).catch(this._onError.bind(this))},_onSuccess:function(e,t){if(t&&t.html){this.setMod("finishing"),this._insertAnswerHtml(t.html);var s=this;return this.__self.loaded.push({url:e.url,reqid:t.reqid}),void this.findParentBlock(i).initBlocks(function(){s._afterLoad(),s._sendPageLoadedCounter(e.cleanUrl)})}this._numberOfFailedRequest=0,this._failedTurboUrlsCounter=0,this._retryCurrentTimeout=this.__self.REQUEST_TIMEOUT,this._afterLoad(),this._loadNext()},_onError:function(e){e&&"networkError"===e.status&&this._numberOfFailedRequest=this.__self.MAX_FAILED_REQUEST},_requestOnError:function(){this._numberOfFailedRequest++,this._retryCurrentTimeout=2*this._retryCurrentTimeout,this._timer=null,this._afterLoad(),this._loadNext(!0)},_beforeLoad:function(){this._loading=!0},_afterLoad:function(){this._loading=!1,this._checkQueue(),window.Ya.Lazy.addLazyResources()},_appendInternalParams:function(e){var t=new URL(location.href),s=new URL(e,location.origin);s.searchParams.set("ajax","1"),s.searchParams.set("fallback","1"),s.searchParams.set("new_overlay",t.searchParams.get("new_overlay")),s.searchParams.set("depth",t.searchParams.get("depth"));var n=this.__self.getLastLoadedItem();n&&s.searchParams.set("parent-reqid",n.reqid),this.__self.hasNextIndex()||s.searchParams.set("last_related","1");var o=window.w({event:"tech",type:"autoload",data:{number:this.__self.loaded.length}});if(s.searchParams.set("event-id",o),1===i.GLOBAL.expFlags["embed-sandbox-optimization"]){var a=window.Ya.getStore().getState().embed||{},d=Object.keys(a).join(",");d&&s.searchParams.set("embeds",d)}return s.toString()},_insertAnswerHtml:function(e){this.domNodes[0].insertAdjacentHTML("afterend",this.params.nowrap?e:this._wrapResponse(e))},_wrapResponse:function(e){return''+e+""},_checkQueue:function(){this.__self.hasNextIndex()||this.setMod("hidden")},_onLoaderAnimationEnd:function(){this.delMod("finishing").delMod("finished"),this._shiftLoader()},_shiftLoader:function(){t.append(this.domNodes[0].parentNode,this.domNodes[0]);var e=this.domNodes[0].getBoundingClientRect();(o.isInViewport(this._watcher)||e.topdefine("init_bem",["main","loader.bundle","tabs.bundle","native-scroll.bundle","link-like_type_turbo-navigation.bundle","autoload.bundle"],function(){modules.require(["i-bem-dom__init"],function(e){!function(e){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}(function(){setTimeout(e)})}),Ya.Rum.sendTimeMark("2295",void 0,!1,{"-id":"2719.2295"});})

Источники:

  1. yandex.ru
Понравилась статья? Расскажите друзьям:
Оцените статью, для нас это очень важно:
Проголосовавших: 1 чел.
Средний рейтинг: 5 из 5.

Оставить комментарий:

Отправить
Последние комментарии:
договор найма...



Обратная связь:
Отправить
Сообщение отправлено.
Мы постараемся ответить Вам как можно быстрее.
Сообщение не отправлено.
Повторите пожалуйста позже.
Закрыть