var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{219:function(e,t,n){},222:function(e,t,n){e.exports=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="",n(n.s=8)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports={root:"rui__3LZE5",inverse:"rui__38TkA",white:"rui__2VyEE",wrapper:"rui__2L8KW",fullWidth:"rui__2lxiB",partner:"rui__3EKAc",partnerTitle:"rui__agXfz",partnerElement:"rui__SUB88",socialBlock:"rui__3RxH_",social:"rui__2TKya",socialLink:"rui__2pyK4",fb:"rui__1SHhy",in:"rui__yCBBq",ok:"rui__2TbCA",tw:"rui__Vn8pg",vk:"rui__2DxxO",tg:"rui__36eTU",yt:"rui__19kBz",rss:"rui__2-PUd"}},function(e,t,n){e.exports={root:"rui__1_gOK",menuItem:"rui__3mclb",menuItemAgeLimit:"rui__YIOeT",inverse:"rui__FyvN6",white:"rui__2lelt",ageLimit:"rui__2aCGj",ageLimitDesktop:"rui__2JmeL",ageLimitMobile:"rui__2av8A"}},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(60)},function(e,t){e.exports=n(30)},function(e,t){e.exports=n(2)},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r),a=n(5),i=n.n(a),c=n(0),s=n.n(c),u=n(3),l=n.n(u),d=n(6),f=n.n(d),p=n(7),m=n.n(p),h=n(2),_=n.n(h);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var v=function(e){var t=e.type,n=e.logoProps,r=e.ageLimit,a=e.menuLinks,u=e.yearCopyright;return u||console.error("@rambler-coponents/footer: Необходимо указать год копирайта"),s.a.createElement("ul",{className:l()(_.a.root,_.a[t])},s.a.createElement("li",{className:_.a.menuItem},s.a.createElement("a",o()({href:n.href||"https://webcf.waybackmachine.org/web/20200814002735/https://ramblergroup.com/",target:"_blank",rel:"noopener noreferrer"},n),"© Рамблер",u&&" ".concat(u)),r&&s.a.createElement("span",{className:l()(_.a.ageLimit,_.a.ageLimitMobile)},"18+")),a.map(function(e){var t=e.title,n=e.href,r=e.onClick,o=i()(e,["title","href","onClick"]),a=n?"a":"span";return s.a.createElement("li",{key:t,className:_.a.menuItem},Object(c.createElement)(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(n,!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({href:n,onClick:r},o),t))}),r&&s.a.createElement("li",{className:l()(_.a.menuItem,_.a.menuItemAgeLimit)},s.a.createElement("span",{className:l()(_.a.ageLimit,_.a.ageLimitDesktop)},"18+")))},g={facebook:"fb",instagram:"in",odnoklassniki:"ok",twitter:"tw",vkontakte:"vk",telegram:"tg",youtube:"yt",rss:"rss"},y=n(1),w=n.n(y);n.d(t,"Footer",function(){return O});var O=function(e){var t=e.className,n=e.style,r=e.type,a=e.fullWidth,u=e.wrapperClassName,d=e.logoProps,p=e.menuLinks,m=e.ageLimit,h=e.socialButtons,_=e.partnerTitle,b=e.partnerElement,y=e.stylePartner,O=e.yearCopyright,E=Object(c.useMemo)(function(){if(f()(h))return[];var e=h.filter(function(e){return!!g[e.provider]}),t=e.length;return t!==h.length&&console.error("@rambler-components/footer: массив соц.сетей содержит неврный provider"),[e.slice(0,Math.ceil(t/2)),e.slice(Math.floor(t/2))]},[h]);return s.a.createElement("footer",{className:l()(w.a.root,w.a[r],t),style:n},s.a.createElement("div",{className:l()(w.a.wrapper,a&&w.a.fullWidth,u)},s.a.createElement(v,{type:r,logoProps:d,menuLinks:p,ageLimit:m,yearCopyright:O}),Object(c.isValidElement)(b)&&s.a.createElement("div",{className:w.a.partner,style:y},s.a.createElement("span",{className:w.a.partnerTitle},_),s.a.createElement("span",{className:w.a.partnerElement},b)),!f()(E)&&s.a.createElement("div",{className:w.a.socialBlock},E.map(function(e,t){return s.a.createElement("div",{key:t,className:w.a.social},e.map(function(e){var t=e.href,n=e.provider,r=i()(e,["href","provider"]);return s.a.createElement("a",o()({key:n,className:l()(w.a.socialLink,w.a[g[n]]),href:t,rel:"noopener noreferrer",target:"_blank"},r),n)}))}))))};O.defaultProps={className:"",style:{},type:"inverse",wrapperClassName:"",fullWidth:!1,menuLinks:[],logoProps:{},ageLimit:!1,socialButtons:[],partnerTitle:"Источник данных",partnerElement:null,stylePartner:{}},t.default=O}])},223:function(e,t,n){},225:function(e,t,n){e.exports=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="",n(n.s=36)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t,n){e.exports={root:"rui__33z3s",container:"rui__1_U2E",mounted:"rui__165Ia",tablet:"rui__2UX2_",cards:"rui__2Drwo",dropdownContent:"rui__2McF6",small:"rui__3WDp8",news:"rui__2fq-t",menu:"rui__33FHL",link:"rui__3WVxY",allLink:"rui__1DOfP",card:"rui__aYhnr",woman:"rui__lR64m",allIcon:"rui__3Kblz",feed:"rui__3XRcx",feedItem:"rui__jbZgj",number:"rui__2NJ79",moreNews:"rui__36MOj",moreNewsLink:"rui__3NRIx",videoIcon:"rui__1YBYK",image:"rui__iqQ_r",serviceIcon:"rui__2LxK9",search:"rui__IbdQ7"}},function(e,t,n){e.exports={root:"rui__3xips",main:"rui__2NKQK",sticky:"rui__3neHA",stickyVisible:"rui__2_A8e",wrapper:"rui__k7KsD",responsive:"rui__1yyfu",fullWidth:"rui__3dETl",container:"rui__3SuS8",menu:"rui__A-nw4",menuItems:"rui__jLe8I",menuItem:"rui__fxeK1",link:"rui__30TPY",more:"rui__2TMVR",moreIcon:"rui__1T9h_",toplineRightPlace:"rui__2qZJV",user:"rui__LuzTx",counter:"rui__1f0rM",woman:"rui__2dB2m","type-inverse":"rui__V1Pkc","type-white":"rui__1amKc",widthDetector:"rui__1-Dy2"}},function(e,t,n){e.exports={root:"rui__19JXX",mounted:"rui__3IkS_",close:"rui__1hLtR",closeImg:"rui__d5I4c",fullname:"rui__1zi3l",emailLink:"rui__33mmb",emailAdd:"rui__3y3GE",profile:"rui__2RF7I",logout:"rui__121Hn",woman:"rui__Ro1Ey",email:"rui__OV2CK",userInfo:"rui__f13hK",userInfoItem:"rui__1Qw77",userInfoLink:"rui__iDgq5",userInfoIcon:"rui__2ugmH",userInfoImg:"rui__1zhLY",userInfoCounter:"rui__2G4EQ",dropdownBottom:"rui__2Ru2f",providerIcon:"rui__2nlSW"}},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(11)},function(e,t,n){var r=n(22),o=n(28),a=n(30),i=Math.max,c=Math.min;e.exports=function(e,t,n){var s,u,l,d,f,p,m=0,h=!1,_=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,r=u;return s=u=void 0,m=t,d=e.apply(r,n)}function g(e){var n=e-p;return void 0===p||n>=t||n<0||_&&e-m>=l}function y(){var e=o();if(g(e))return w(e);f=setTimeout(y,function(e){var n=t-(e-p);return _?c(n,l-(e-m)):n}(e))}function w(e){return f=void 0,b&&s?v(e):(s=u=void 0,d)}function O(){var e=o(),n=g(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(y,t),h?v(e):d}(p);if(_)return clearTimeout(f),f=setTimeout(y,t),v(p)}return void 0===f&&(f=setTimeout(y,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,l=(_="maxWait"in n)?i(a(n.maxWait)||0,t):l,b="trailing"in n?!!n.trailing:b),O.cancel=function(){void 0!==f&&clearTimeout(f),m=0,s=p=u=f=void 0},O.flush=function(){return void 0===f?d:w(o())},O}},function(e,t,n){e.exports={root:"rui__3vsC7",woman:"rui__2zyfr",inverse:"rui__2xvb5",static:"rui__3fCYy",dirty:"rui__RfPA6",notDropdown:"rui__3M9dV",input:"rui__2spd5",icon:"rui__3n0MX",iconImg:"rui__1BINe"}},function(e,t,n){e.exports={logo:"rui__2IUGF",compact:"rui__3DeEZ",ramblerLogo:"rui__3rjMR",ramblerLogoImg:"rui__2OfEw",beat:"rui__2JPIt"}},function(e,t,n){e.exports={root:"rui__3Laak",white:"rui__KQgip",icon:"rui__1Mkzc",woman:"rui__3vU_d",inverse:"rui__NkI1y",iconContainer:"rui__AOSfJ",iconImg:"rui__2RHjk",formContainer:"rui__1hRA7",mounted:"rui__3oqnF",formDropdown:"rui__24uV9"}},function(e,t,n){e.exports={root:"rui__2rfGS",white:"rui__2aX-X",auth:"rui__r0h9U",username:"rui__1vTeO",woman:"rui__1swmz",inverse:"rui__3ZKyF",user:"rui__2lnkm",avatar:"rui__3Rz4s",userIcon:"rui__1u2I8"}},function(e,t,n){e.exports={root:"rui__3B4Gi",compact:"rui__ntdus",adPlace:"rui__2ye6J",static:"rui__20439",adPlaceText:"rui__3K07y",adPlaceIcon:"rui__3pLLT",sspPromo:"rui__WemaT"}},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(30)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=n(302)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(29),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){var r=n(23).Symbol;e.exports=r},function(e,t){e.exports=n(70)},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},i=2,c=20,s=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function c(){n&&(n=!1,e()),r&&u()}function s(){a(c)}function u(){var e=Date.now();if(n){if(e-o<i)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return u}(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},p=b(0,0,0,0);function m(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+m(e["border-"+n+"-width"])},0)}var _="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t=(e=this.target,r?_(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=m(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,c=m(r.width),s=m(r.height);if("border-box"===r.boxSizing&&(Math.round(c+a)!==t&&(c-=h(r,"left","right")+a),Math.round(s+i)!==n&&(s-=h(r,"top","bottom")+i)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(c+a)-t,l=Math.round(s+i)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return b(o.left,o.top,c,s)}(e):p);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),g=function(e,t){var n,r,o,a,i,c,s,u=(r=(n=t).x,o=n.y,a=n.width,i=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),d(s,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),s);d(this,{target:e,contentRect:u})},y=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new g(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new y(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){O.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:O;t.a=E}).call(this,n(20))},function(e,t){e.exports=n(615)},function(e,t,n){var r=n(23);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(20))},function(e,t,n){var r=n(22),o=n(31),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(32),o=n(35);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(24),o=n(33),a=n(34),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(24),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.r(t);var r,o=n(18),a=n.n(o),i=n(25),c=n.n(i),s=n(6),u=n.n(s),l=n(7),d=n.n(l),f=n(8),p=n.n(f),m=n(9),h=n.n(m),_=n(2),b=n.n(_),v=n(10),g=n.n(v),y=n(1),w=n.n(y),O=n(0),E=n.n(O),k=n(11),j=n.n(k),S=n(26),x=n(19),C=n.n(x),N=n(4),M=n.n(N);n(21),function(e){e[e.head=1]="head",e[e.mail=2]="mail",e[e.top100=3]="top100",e[e.kassa=4]="kassa",e[e.weather=5]="weather",e[e.horoscopes=6]="horoscopes",e[e.dating=7]="dating",e[e.help=8]="help",e[e.soft=9]="soft",e[e.class=10]="class",e[e.likes=11]="likes",e[e.afisha=12]="afisha",e[e.news=13]="news",e[e.finance=14]="finance",e[e.woman=15]="woman",e[e.kino=16]="kino",e[e.sport=17]="sport",e[e.auto=18]="auto",e[e.doctor=19]="doctor",e[e.weekend=20]="weekend",e[e.travel=21]="travel",e[e.games=22]="games",e[e.beat=23]="beat",e[e.search=24]="search",e[e.search_r0=25]="search_r0",e[e.search_org=26]="search_org",e[e.search_img=27]="search_img",e[e.search_map=28]="search_map",e[e.id=29]="id"}(r||(r={}));var P=["news","finance","woman","kino","sport","auto","doctor","weekend","travel","games","beat"],I=function(e,t){return"?utm_source=".concat(t,"&utm_campaign=self_promo&utm_medium=topline&utm_content=").concat(e)},T=function(e){return P.includes(e)?"".concat(e,"_media"):e},A=function(e){var t=!1;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t||(window.requestAnimationFrame(function(){e.apply(e,r),t=!1}),t=!0)}},R=function(e){return e&&e.__type&&"general"===e.__type},L=n(27),D=n.n(L),B={ATTEMPTS:3,DELAY:1e3};function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var H=[{title:"Почта",code:"mail",url:"https://webcf.waybackmachine.org/web/20200814002735/https://mail.rambler.ru/",utmContent:"mail"},{title:"Новости",code:"news",url:"https://webcf.waybackmachine.org/web/20200814002735/https://news.rambler.ru/",utmContent:"news_media"},{title:"Кино",code:"kino",url:"https://webcf.waybackmachine.org/web/20200814002735/https://kino.rambler.ru/",utmContent:"kino_media"},{title:"Спорт",code:"sport",url:"https://webcf.waybackmachine.org/web/20200814002735/https://sport.rambler.ru/",utmContent:"sport_media"},{title:"Авто",code:"auto",url:"https://webcf.waybackmachine.org/web/20200814002735/https://auto.rambler.ru/",utmContent:"auto_media"},{title:"Шоу-бизнес",code:"starlife",url:"https://webcf.waybackmachine.org/web/20200814002735/https://news.rambler.ru/starlife/",utmContent:"news_media",top100:"starlife"},{title:"Гороскопы",code:"horoscopes",url:"https://webcf.waybackmachine.org/web/20200814002735/https://horoscopes.rambler.ru/",utmContent:"horoscopes"},{title:"Игры",code:"games",url:"https://webcf.waybackmachine.org/web/20200814002735/https://games.rambler.ru/online/",utmContent:"games"},{title:"Женский",code:"woman",url:"https://webcf.waybackmachine.org/web/20200814002735/https://woman.rambler.ru/",utmContent:"woman_media"},{title:"Субботний",code:"weekend",url:"https://webcf.waybackmachine.org/web/20200814002735/https://weekend.rambler.ru/",utmContent:"weekend_media"},{title:"Финансы",code:"finance",url:"https://webcf.waybackmachine.org/web/20200814002735/https://finance.rambler.ru/",utmContent:"finance_media"},{title:"Путешествия",code:"travel",url:"https://webcf.waybackmachine.org/web/20200814002735/https://travel.rambler.ru/",utmContent:"travel"},{title:"Погода",code:"weather",url:"https://webcf.waybackmachine.org/web/20200814002735/https://weather.rambler.ru/",utmContent:"weather",mobileUrl:"https://webcf.waybackmachine.org/web/20200814002735/https://m.weather.rambler.ru/"},{title:"Топ-100",code:"top100",url:"https://webcf.waybackmachine.org/web/20200814002735/https://top100.rambler.ru/",utmContent:"top100"},{title:"Софт",code:"soft",url:"https://webcf.waybackmachine.org/web/20200814002735/https://soft.rambler.ru/",utmContent:"soft"},{title:"Старт",code:"start",url:"https://webcf.waybackmachine.org/web/20200814002735/https://soft.rambler.ru/start/",utmContent:"start"},{title:"Поиск",code:"r0",url:"https://webcf.waybackmachine.org/web/20200814002735/https://r0.ru/",utmContent:"search_r0"},{title:"Картинки",code:"images",url:"https://webcf.waybackmachine.org/web/20200814002735/https://images.rambler.ru/",utmContent:"images"},{title:"Организации",code:"org",url:"https://webcf.waybackmachine.org/web/20200814002735/https://org.rambler.ru/",utmContent:"org"},{title:"Лайки",code:"likes",url:"https://webcf.waybackmachine.org/web/20200814002735/https://developers.rambler.ru/likes/",utmContent:"likes"},{title:"Знакомства",code:"dating",url:"https://webcf.waybackmachine.org/web/20200814002735/https://dating.rambler.ru/a-register/track-top_",utmContent:"dating"},{title:"Касса",code:"kassa",url:"https://webcf.waybackmachine.org/web/20200814002735/https://kassa.rambler.ru/",utmContent:"kassa"},{title:"Промокоды",code:"promokody",url:"https://webcf.waybackmachine.org/web/20200814002735/https://promokody.rambler.ru",utmContent:"promokody"},{title:"Гиперновости",code:"hypernews",url:"https://webcf.waybackmachine.org/web/20200814002735/https://top100.rambler.ru/hypernews",utmContent:"hypernews"}],z=H,V=H.reduce(function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(n,!0).forEach(function(t){w()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,w()({},t.code,t))},{}),W=function(e){return"https://static.rambler.ru/icons/".concat(e,".svg")},q=n(17),G=n.n(q),U=function(e){function t(){return u()(this,t),p()(this,h()(t).apply(this,arguments))}return g()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.projectCode,n=e.responsive,r=e.advert,o=e.showAd;if(r)return E.a.createElement("div",{className:G.a.sspPromo},r);if(!o)return null;var a=j()(G.a.root,n?G.a.responsive:G.a.static);return E.a.createElement("div",{className:a,"data-cerber-topline":"promo"},E.a.createElement("a",{href:"https://webcf.waybackmachine.org/web/20200814002735/https://horoscopes.rambler.ru/".concat(I("horoscopes",T(t)),"&utm_term=").concat(t,"_zagl_today"),className:G.a.adPlace,"data-cerber-topline":"promo::horoscopes::zagl_today"},E.a.createElement("img",{src:W("topline/ui/ad"),className:G.a.adPlaceIcon}),E.a.createElement("span",{className:G.a.adPlaceText},"Гороскоп на сегодня")))}}]),t}(E.a.PureComponent);w()(U,"defaultProps",{advert:null});var K=U,Y=n(12),Q=n.n(Y),Z=!1,X={},J=function(e){var t=window.innerHeight,n=document.body,r=n.getBoundingClientRect(),o=r.top,a=r.left,i=n.scrollHeight;if(e)Z||(X={position:n.style.position||"",width:n.style.width||"",height:n.style.height||"",top:n.style.top||"",left:n.style.left||""},Object.assign(document.body.style,{position:"fixed",width:"100%",height:"100%",top:"".concat(o,"px"),left:"".concat(a,"px"),overflowY:t<i?"scroll":""}),document.ontouchstart=function(e){e.preventDefault()},Z=!0);else if(Z){var c=document.body.getBoundingClientRect();document.ontouchstart=function(){return!0},Object.assign(document.body.style,X),window.scrollTo(-c.left,-c.top),Z=!1}},$=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"rootNode",E.a.createRef()),w()(b()(n),"onClick",function(e){var t=n.props.handleClickOutside,r=n.rootNode.current;r&&("function"!=typeof r.contains||r.contains(e.target))||t(e)}),n}return g()(t,e),d()(t,[{key:"componentDidMount",value:function(){window.addEventListener("click",this.onClick)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.onClick)}},{key:"render",value:function(){var e=this.props,t=e.className,n=(e.handleClickOutside,e.children);return E.a.createElement("div",{className:t,ref:this.rootNode},n)}}]),t}(E.a.PureComponent);function ee(){return(ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var te=E.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.495 12.798l-1.646-1.646-1.043-.905A6.469 6.469 0 0013 6.5 6.5 6.5 0 106.5 13a6.459 6.459 0 003.746-1.194l.905 1.043 1.647 1.646a.499.499 0 00.707 0l.99-.99a.5.5 0 000-.707M6.5 2C8.981 2 11 4.019 11 6.5 11 8.982 8.981 11 6.5 11A4.505 4.505 0 012 6.5C2 4.019 4.019 2 6.5 2M0 15V0m15 0v15"}),ne=function(e){return E.a.createElement("svg",ee({width:15,height:15},e),te)},re=n(13),oe=n.n(re),ae=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"inputNode",E.a.createRef()),w()(b()(n),"state",{value:""}),w()(b()(n),"onChange",function(e){var t=e.target.value;n.setState({value:t})}),w()(b()(n),"onSubmit",function(e){var t=n.props.onSearchSubmit,r=n.state.value;e.preventDefault(),t(r)}),w()(b()(n),"onClick",function(){var e=n.props,t=e.onSearchClose,r=e.onSearchSubmit,o=n.state.value;o?r(o):t()}),n}return g()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.inputNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.inverse,r=t.dropdown,o=t.isWoman,a=this.state.value,i=j()(oe.a.root,(e={},w()(e,oe.a.inverse,n),w()(e,oe.a.static,this.props.static),w()(e,oe.a.dirty,Boolean(a)),w()(e,oe.a.notDropdown,!r),w()(e,oe.a.woman,o),e));return E.a.createElement("form",{className:i,onSubmit:this.onSubmit},E.a.createElement("input",{className:oe.a.input,onChange:this.onChange,value:a,placeholder:"Поиск",ref:this.inputNode}),!r&&E.a.createElement("div",{className:oe.a.icon,onClick:this.onClick,"data-cerber-topline":"search::icon_search"},E.a.createElement(ne,{className:oe.a.iconImg})))}}]),t}(E.a.PureComponent);w()(ae,"defaultProps",{inverse:!1,dropdown:!1,static:!1,onSearchClose:function(){},isWoman:!1});var ie,ce=ae,se={auto:"auto",mail:"mail",finance:"finance",woman:"woman",sport:"sport",news:"news",r0:"search",likes:"likes",soft:"soft",start:"browser",dating:"love",weekend:"weekend",kino:"afisha",horoscopes:"horoscopes",weather:"weather",kassa:"kassa",org:"organizations",travel:"travel",images:"pictures",top100:"top100",games:"games",starlife:"starlife",promokody:"promokody",hypernews:"hypernews"},ue=n(3),le=n.n(ue),de=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"bodyStyles",void 0),w()(b()(n),"state",{isMounted:!1}),w()(b()(n),"onMounted",Q()(function(){n.setState({isMounted:!0})})),w()(b()(n),"onClose",function(){var e=n.props.closeDropdown;n.setState({isMounted:!1},Q()(e,200))}),w()(b()(n),"getServiceIcon",function(e,t){var n=se[e];return n?E.a.createElement("img",{src:W(t?"topline/pink/".concat(n):"topline/".concat(n)),className:le.a.serviceIcon}):null}),n}return g()(t,e),d()(t,[{key:"componentDidMount",value:function(){J(!0),this.onMounted()}},{key:"componentWillUnmount",value:function(){J(!1)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.projectCode,o=n.isStickyTopline,a=n.breakpoint,i=n.projectItems,c=n.feedItems,s=n.videoItems,u=n.onSearchSubmit,l=this.state.isMounted,d="woman"===r,f=j()(le.a.container,(e={},w()(e,le.a.tablet,a>Be[2]&&a<=Be[1]),w()(e,le.a.small,a<=Be[1]),w()(e,le.a.mounted,l),w()(e,le.a.woman,d),e));return E.a.createElement($,{className:le.a.root,handleClickOutside:this.onClose},E.a.createElement("div",{className:f,"data-cerber-topline":"".concat(r,"-").concat(o?"scroll":"top")},E.a.createElement("div",{className:le.a.dropdownContent},E.a.createElement("div",{className:le.a.menu},i.map(function(e){return E.a.createElement("a",{className:le.a.link,target:"_blank",rel:"noopener noreferrer",href:e.url+I(e.utmContent,T(r)),key:e.code+e.utmContent,"data-cerber-topline":"more-projects::".concat(e.top100||e.utmContent)},t.getServiceIcon(e.code,d),e.title)}),E.a.createElement("a",{className:le.a.allLink,href:"https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru/all".concat(I("project_all",T(r))),"data-cerber-topline":"more-projects::all",key:"all"},"Все проекты",E.a.createElement("span",{className:le.a.allIcon})),"function"==typeof u&&E.a.createElement("div",{className:le.a.search},E.a.createElement(ce,{onSearchSubmit:u,static:!0,isWoman:d}))),E.a.createElement("div",{className:le.a.news},E.a.createElement("div",{className:le.a.feed},c.map(function(e,t){return E.a.createElement("a",{href:e.url+I("news",T(r)),key:e.clid,target:"_blank",rel:"noopener noreferrer",className:le.a.feedItem,"data-cerber-topline":"more-projects::top_news::".concat(t+1)},E.a.createElement("span",{className:le.a.number},t+1),E.a.createElement("span",{className:le.a.title},e.title))}),E.a.createElement("div",{className:le.a.moreNews},E.a.createElement("a",{className:le.a.moreNewsLink,href:"https://webcf.waybackmachine.org/web/20200814002735/https://news.rambler.ru/".concat(I("news",T(r))),target:"_blank",rel:"noopener noreferrer","data-cerber-topline":"more-projects::top_news::all"},"Все новости"))),E.a.createElement("div",{className:le.a.cards},s.map(function(e,t){return E.a.createElement("a",{className:le.a.card,href:e.link+I("video",T(r)),key:e.id,target:"_blank",rel:"noopener noreferrer","data-cerber-topline":"more-projects::video::".concat(t+1)},E.a.createElement("img",{src:W(d?"topline/ui/pink/video":"topline/ui/video"),className:le.a.videoIcon}),E.a.createElement("span",{className:le.a.image,style:{backgroundImage:"url(".concat(e.image,")")}}),e.title)}))))))}}]),t}(E.a.PureComponent),fe=n(14),pe=n.n(fe),me=(ie={},w()(ie,"head","Рамблер/новости"),w()(ie,"beat","Рамблер/бит"),ie),he=function(e){function t(){return u()(this,t),p()(this,h()(t).apply(this,arguments))}return g()(t,e),d()(t,[{key:"projectLogo",value:function(){var e=this.props,t=e.projectCode,n=e.projectLogo,r=e.type;if("head"!==t){if(n)return E.a.createElement("a",{href:"/",className:pe.a.ramblerLogo,"data-cerber-topline":"logo::".concat(t)},n);if(me[t])return E.a.createElement("a",{href:"/",className:pe.a.ramblerLogo,"data-cerber-topline":"logo::".concat(t)},"inverse"!==r?E.a.createElement("img",{className:pe.a[t],src:W("logo/desktop/".concat(t))}):E.a.createElement("img",{className:pe.a[t],src:W("logo/desktop/inverse/".concat(t))}))}return null}},{key:"render",value:function(){var e=this.props,t=e.projectCode,n=e.type,r=e.doodle;return r?E.a.createElement("div",{className:pe.a.logo,"data-cerber-topline":"logo::doodle"},r):E.a.createElement("div",{className:pe.a.logo},E.a.createElement("a",{href:"https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru".concat(I("head",T(t))),className:pe.a.ramblerLogo,"data-cerber-topline":"logo::rambler"},"inverse"!==n?E.a.createElement("img",{className:pe.a.ramblerLogoImg,src:W("logo/desktop/rambler")}):E.a.createElement("img",{className:pe.a.ramblerLogoImg,src:W("logo/desktop/inverse/rambler")})),this.projectLogo())}}]),t}(E.a.PureComponent);w()(he,"defaultProps",{projectLogo:null,doodle:null});var _e=he,be=n(15),ve=n.n(be),ge=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"state",{isOpened:!1,isMountDropdown:!1}),w()(b()(n),"toggleSearch",Q()(function(){var e=n.state,t=e.isOpened;t===e.isMountDropdown&&(t?n.setState({isMountDropdown:!1},Q()(function(){n.setState({isOpened:!1})},200)):n.setState({isOpened:!0},Q()(function(){n.setState({isMountDropdown:!0})})))})),n}return g()(t,e),d()(t,[{key:"renderSearchIcon",value:function(){return E.a.createElement("div",{className:ve.a.iconContainer,"data-cerber-topline":"search::open"},E.a.createElement("div",{className:ve.a.icon,onClick:this.toggleSearch},E.a.createElement(ne,{className:ve.a.iconImg})))}},{key:"render",value:function(){var e=this.props,t=e.projectCode,n=e.type,r=e.dropdown,o=e.onSearchSubmit,a=this.state,i=a.isOpened,c=a.isMountDropdown,s=r?ve.a.formDropdown:ve.a.formContainer;return E.a.createElement("div",{className:j()(ve.a.root,ve.a[n],"woman"===t&&ve.a.woman)},this.renderSearchIcon(),i&&E.a.createElement($,{className:j()(s,w()({},ve.a.mounted,c)),handleClickOutside:this.toggleSearch},E.a.createElement(ce,{inverse:!r&&"inverse"===n,onSearchSubmit:o,onSearchClose:this.toggleSearch,isWoman:"woman"===t})))}}]),t}(E.a.PureComponent);w()(ge,"defaultProps",{dropdown:!1});var ye=ge,we=n(5),Oe=n.n(we),Ee={mail:"counter",dating:"dating"},ke=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"state",{isMounted:!1}),w()(b()(n),"onMounted",Q()(function(){n.setState({isMounted:!0})})),w()(b()(n),"onClose",function(){var e=n.props.onClose;n.setState({isMounted:!1},Q()(e,200))}),w()(b()(n),"onLogout",function(){var e=n.props.redirectToMain;n.onClose(),window.ramblerIdHelper.logout({redirectToMain:e})}),w()(b()(n),"getServiceIcon",function(e){return E.a.createElement("img",{src:W("topline/ui/user-".concat(e)),className:Oe.a.userInfoImg})}),n}return g()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.onMounted()}},{key:"render",value:function(){var e=this,t=this.props,n=t.projectCode,r=t.user,o=t.counters,a=this.state.isMounted,i=R(r);return E.a.createElement($,{className:j()(Oe.a.root,a&&Oe.a.mounted,"woman"===n&&Oe.a.woman),handleClickOutside:this.onClose},E.a.createElement("div",{className:Oe.a.close,onClick:this.onClose,"data-cerber-topline":"user::id::close"},E.a.createElement("img",{src:W("topline/ui/arrow-up"),className:Oe.a.closeImg})),E.a.createElement("div",{className:Oe.a.fullname},r.display.display_name),i&&E.a.createElement(E.a.Fragment,null,E.a.createElement("div",{className:Oe.a.email},E.a.createElement("a",{href:"https://webcf.waybackmachine.org/web/20200814002735/https://mail.rambler.ru/#/folder/INBOX".concat(I("mail",T(n)),"&utm_term=profile_email"),className:Oe.a.emailLink,"data-cerber-topline":"user::id::email"},r.info.email)),Object.keys(o).length>0&&E.a.createElement("div",{className:Oe.a.userInfo},Object.keys(o).map(function(t){var r=o[t];return E.a.createElement("div",{key:t,className:Oe.a.userInfoItem},E.a.createElement("a",{href:"".concat(V[t].url).concat(I(t,T(n)),"&utm_term=profile_").concat(Ee[t]),className:Oe.a.userInfoLink,"data-cerber-topline":"user::id::counter_".concat(t)},E.a.createElement("span",{className:Oe.a.userInfoIcon},e.getServiceIcon(t)),V[t].title),r&&E.a.createElement(r,{className:Oe.a.userInfoCounter,renderZero:!0}))}))),!i&&E.a.createElement("div",{className:Oe.a.email},E.a.createElement("a",{href:"https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/account/registration/".concat(I("mail",T(n))),className:Oe.a.emailAdd},"Добавить почту")),E.a.createElement("div",{className:Oe.a.dropdownBottom},E.a.createElement("a",{href:"https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/".concat(I("id",T(n))),className:Oe.a.profile,"data-cerber-topline":"user::id::profile"},E.a.createElement("i",{className:Oe.a.providerIcon,style:r.display.avatar?{backgroundImage:"url(".concat(r.display.avatar.provider_icon,")")}:null}),"Мой профиль"),E.a.createElement("div",{onClick:this.onLogout,className:Oe.a.logout,"data-cerber-topline":"user::id::logout"},"Выйти")))}}]),t}(E.a.PureComponent);function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Se=E.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 12.197c0-.66-.205-1.311-.614-1.829a7.536 7.536 0 00-2.734-2.164 4.482 4.482 0 01-6.304 0 7.536 7.536 0 00-2.734 2.164A2.947 2.947 0 001 12.197V13a1 1 0 001 1h11a1 1 0 001-1v-.803zM4.5 5c0 1.654 1.346 3 3 3s3-1.346 3-3V3c0-1.654-1.346-3-3-3s-3 1.346-3 3v2zM0 15V0v15zM15 0v15V0z"}),xe=function(e){return E.a.createElement("svg",je({width:15,height:15},e),Se)},Ce=n(16),Ne=n.n(Ce);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Pe=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"state",{isDropdownOpened:!1}),w()(b()(n),"openAuthIframe",Q()(function(){var e=n.props,t=e.projectCode,r=e.authFrameOptions;window.ramblerIdHelper.openAuth(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(n,!0).forEach(function(t){w()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({rname:t},r))},300)),w()(b()(n),"openDropdown",Q()(function(){n.setState({isDropdownOpened:!0})})),w()(b()(n),"closeDropdown",function(){n.setState({isDropdownOpened:!1})}),n}return g()(t,e),d()(t,[{key:"componentWillUnmount",value:function(){this.closeDropdown()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.projectCode,r=e.type,o=e.user,a=e.counters,i=e.redirectToMain,c=this.state.isDropdownOpened;return E.a.createElement("div",{className:j()(Ne.a.root,Ne.a[r],"woman"===n&&Ne.a.woman,t)},o&&E.a.createElement("div",{className:Ne.a.user,onClick:this.openDropdown,"data-cerber-topline":"user::id"},E.a.createElement("div",{className:Ne.a.avatar,style:{backgroundImage:'url("'.concat(o.display.avatar.url,'")')}}),E.a.createElement("span",{className:Ne.a.username},o.info.email||o.display.display_name)),!o&&E.a.createElement("div",{className:Ne.a.auth,onClick:this.openAuthIframe,"data-cerber-topline":"user::login"},E.a.createElement(xe,{className:Ne.a.userIcon}),"Вход"),o&&c&&E.a.createElement(ke,{projectCode:n,user:o,counters:a,onClose:this.closeDropdown,redirectToMain:i}))}}]),t}(E.a.PureComponent);w()(Pe,"defaultProps",{user:null});var Ie=Pe;function Te(){return(Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ae=E.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 15V0v15zM15 0v15V0zm-1 11h-3v3h2a1 1 0 001-1v-2zm-8 3h3v-3H6v3zm-2-3H1v2a1 1 0 001 1h2v-3zM1 9h3V6H1v3zm5 0h3V6H6v3zm5 0h3V6h-3v3zm2-8h-2v3h3V2a1 1 0 00-1-1zM6 4h3V1H6v3zM4 4H1V2a1 1 0 011-1h2v3z"}),Re=function(e){return E.a.createElement("svg",Te({width:15,height:15},e),Ae)};function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(n,!0).forEach(function(t){w()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,"Topline",function(){return Fe}),n.d(t,"BREAKPOINTS",function(){return Be});var Be=[1275,1024,768],Fe=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=p()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(b()(n),"menuNode",E.a.createRef()),w()(b()(n),"menuItemsNode",E.a.createRef()),w()(b()(n),"rightResizeObserver",void 0),w()(b()(n),"prevPageYOffset",0),w()(b()(n),"scrollFromUp",0),w()(b()(n),"scrollFromDown",0),w()(b()(n),"state",{isDropdownOpened:!1,isSticky:!1,isStickyVisible:!1,isUserFetched:!1,feedItems:[],videoItems:[],menuWith:0,visibledMenuItems:z.slice(0,n.props.visibleMenuItems),dropdownItems:z.slice(n.props.visibleMenuItems),user:null,counters:{},currentBreakpoint:0,searchHasDropdown:!1}),w()(b()(n),"onOpenDropdown",A(function(){n.setState({isDropdownOpened:!0}),window.addEventListener("keydown",n.onCloseDropdownEsc,!0)})),w()(b()(n),"onResize",A(function(){var e=n.state.currentBreakpoint,t=Be.find(function(e){return e<window.innerWidth})||Be[2],r=n.getSearchHasDropdown(t);e!==t&&n.setState({currentBreakpoint:t,searchHasDropdown:r})})),w()(b()(n),"onResizeMenu",A(function(e){var t=n.props.visibleMenuItems,r=n.state.menuWith,o=(C()(e)?n.menuNode.current.getBoundingClientRect():e[0].contentRect).width;r<o?n.setState({visibledMenuItems:z.slice(0,t),dropdownItems:z.slice(t),menuWith:o},n.makeMenu):n.setState({menuWith:o},n.makeMenu)})),w()(b()(n),"onScroll",A(function(){var e=n.props,t=e.stickyPointY,r=e.stickyOnlyReverse;if(!n.state.isDropdownOpened){var o=n.state.isSticky,a=window.pageYOffset;r?(!o&&a>t&&n.setState({isSticky:!0}),o&&(0===a?(n.setState({isSticky:!1,isStickyVisible:!1}),n.scrollFromUp=0,n.scrollFromDown=0):a>n.prevPageYOffset?(n.scrollFromDown=0,n.scrollFromUp||(n.scrollFromUp=a),n.scrollFromUp<a-t&&n.setState({isStickyVisible:!1})):a<n.prevPageYOffset&&(n.scrollFromUp=0,n.scrollFromDown||(n.scrollFromDown=a),n.scrollFromDown>a+t&&n.setState({isStickyVisible:!0}))),n.prevPageYOffset=a):a>t&&!o?n.setState({isSticky:!0},function(){n.setState({isStickyVisible:!0})}):0===a&&o&&n.setState({isSticky:!1,isStickyVisible:!1})}})),w()(b()(n),"onLogin",function(){var e=n.props.onUserStateChange;e&&e("login"),n.onCheckSubscriptionPrime(),n.getUser()}),w()(b()(n),"onLogout",function(e){if(e&&e.redirectToMain)window.location.href="https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru";else{var t=n.props.onUserStateChange;t&&t("logout"),n.onCheckSubscriptionPrime(),n.setState({user:null,counters:{mail:null,dating:null}})}}),w()(b()(n),"onCheckSubscriptionPrime",function(){var e=n.props.onSubscriptionPrime;"function"==typeof e&&(window.primeHelper=window.primeHelper||[],window.primeHelper.push(function(){window.primeHelper.getSubscription({referrer:window.location.origin},function(t,n){e(Boolean(!t&&n))})}))}),w()(b()(n),"getNewsItems",function(){fetch("https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru/api/v3/topline/feed/").then(function(e){return e.json()}).then(function(e){n.setState({feedItems:e.news.items,videoItems:e.video})}).catch(function(e){console.error("@rambler-components/topline: Ошибка парсинга `feed`",e)})}),w()(b()(n),"getUser",function(){n.props.userCard&&n.fetchUser().then(function(e){var t=[Promise.resolve(e)];return R(e)?t.push(n.setCounters(e)):t.push(Promise.resolve({mail:null,dating:null})),Promise.all(t)}).then(function(e){var t=c()(e,2),r=t[0],o=t[1];C()(r)?n.setState({isUserFetched:!0}):n.setState({isUserFetched:!0,user:r,counters:o})})}),w()(b()(n),"fetchDatingCount",function(e){return fetch("https://webcf.waybackmachine.org/web/20200814002735/https://dating.rambler.ru/api/a-rambinfo?data=[%22".concat(e,"%22]")).then(function(e){return e.json()}).then(function(e){return e.newmess||0}).catch(function(e){return console.error("@rambler-components/topline: Не удалось получить данные из dating.rambler.ru",e),0})}),w()(b()(n),"fetchId",function(){return fetch("https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/jsonrpc",{credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({method:"Rambler::Id::get_profile_info",params:[{get_accounts_by_provider:"uniq.lp.love.passport.rambler.ru"}],rpc:"2.0"}),method:"POST",mode:"cors"})}),w()(b()(n),"fetchUser",function(){var e,t,r,o,i,c,s,u,l=arguments;return a.a.async(function(d){for(;;)switch(d.prev=d.next){case 0:return e=l.length>0&&void 0!==l[0]?l[0]:1,d.prev=1,d.next=4,a.a.awrap(n.fetchId());case 4:return t=d.sent,d.next=7,a.a.awrap(t.json());case 7:if(r=d.sent,o=r.result,c=(i=o||{}).status,s=i.requiredAction,u=i.profile,"ERROR"!==c||"NeedSession"===s){d.next=12;break}throw new Error;case 12:return d.abrupt("return",u||null);case 15:if(d.prev=15,d.t0=d.catch(1),e!==B.ATTEMPTS){d.next=20;break}return console.error("@rambler-components/topline: Превышено количество запросов ID"),d.abrupt("return",null);case 20:return d.next=22,a.a.awrap(new Promise(function(e){return setTimeout(e,B.DELAY)}));case 22:return d.abrupt("return",n.fetchUser(e+1));case 23:case"end":return d.stop()}},null,null,[[1,15]])}),w()(b()(n),"appendHelper",function(){var e=n.props.onSubscriptionPrime,t=window.document.createElement("script");if(t.src="https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/rambler-id-helper/auth_events.js",window.document.head.appendChild(t),"function"==typeof e){var r=window.document.createElement("script");r.src="https://webcf.waybackmachine.org/web/20200814002735/https://prime.rambler.ru/helper/sdk.js",window.document.head.appendChild(r)}}),w()(b()(n),"makeMenu",function(){for(var e=n.props.visibleMenuItems,t=n.state.visibledMenuItems,r=n.menuItemsNode.current.getBoundingClientRect().right,o=Array.from(n.menuItemsNode.current.children),a=0;a<e&&o[a]&&!(o[a].getBoundingClientRect().right>r);)a+=1;t.length!==a&&n.setState({visibledMenuItems:z.slice(0,a),dropdownItems:z.slice(a)})}),w()(b()(n),"onCloseDropdownEsc",function(e){"Escape"!==e.key&&"Esc"!==e.key||n.onCloseDropdown()}),w()(b()(n),"onCloseDropdown",function(){window.removeEventListener("keydown",n.onCloseDropdownEsc,!0),n.setState({isDropdownOpened:!1})}),n}return g()(t,e),d()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.projectCode,o=t.stickyPointY,a=t.userCard,i=t.onSubscriptionPrime;!function(e){e?r[e]||console.error("@rambler-components: Указан невалидный projectCode: ".concat(e)):console.error("@rambler-components: Не указан projectCode")}(n),(a||i)&&(this.appendHelper(),window.ramblerIdHelper=window.ramblerIdHelper||[],window.ramblerIdHelper.push(function(){window.ramblerIdHelper.addListener("login",e.onLogin),window.ramblerIdHelper.addListener("oauthlogin",e.onLogin),window.ramblerIdHelper.addListener("logout",e.onLogout)}),this.onCheckSubscriptionPrime()),o&&window.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onResize),this.menuNode.current&&(this.rightResizeObserver=new S.a(this.onResizeMenu),this.rightResizeObserver.observe(this.menuNode.current)),this.onResize(),this.getNewsItems(),this.getUser()}},{key:"componentWillUnmount",value:function(){var e=this,t=this.props,n=t.userCard,r=t.onSubscriptionPrime;(n||r)&&window.ramblerIdHelper.push(function(){window.ramblerIdHelper.removeListener("login",e.onLogin),window.ramblerIdHelper.removeListener("oauthlogin",e.onLogin),window.ramblerIdHelper.removeListener("logout",e.onLogout)}),window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResize),this.rightResizeObserver&&this.rightResizeObserver.unobserve(this.menuNode.current)}},{key:"setCounters",value:function(e){var t=null;try{t=e.info.provider_accounts.default.account_id}catch(e){}return this.fetchDatingCount(t).then(function(e){return{mail:D.a,dating:function(t){var n=t.className;return 0===e?null:E.a.createElement("span",{className:n},e>99?"99+":e)}}})}},{key:"getSearchHasDropdown",value:function(e){var t=this.props,n=t.responsive,r=t.fullWidth;switch(e){case 1024:return!n&&!r;case 768:return!0;case 1275:default:return!1}}},{key:"render",value:function(){var e=this,t=this.props,n=t.projectCode,r=t.className,o=t.style,a=t.zIndex,i=t.type,c=t.responsive,s=t.fullWidth,u=t.wrapperClassName,l=t.containerClassName,d=t.authFrameOptions,f=t.withoutLogo,p=t.projectLogo,m=t.doodle,h=t.showAd,_=t.advert,b=t.toplineSearch,v=t.onSearchSubmit,g=t.userCard,y=t.redirectToMain,w=this.state,O=w.isDropdownOpened,k=w.isSticky,S=w.isStickyVisible,x=w.isUserFetched,C=w.feedItems,N=w.videoItems,P=w.visibledMenuItems,A=w.dropdownItems,R=w.user,L=w.counters,D=w.currentBreakpoint,B=w.searchHasDropdown;return E.a.createElement("div",{className:j()(M.a.root,"woman"===n&&M.a.woman),style:{zIndex:a}},E.a.createElement("div",{className:j()(M.a.main,M.a["type-".concat(i)],r,k&&M.a.sticky,S&&M.a.stickyVisible),style:De({},o)},E.a.createElement("div",{className:j()(M.a.wrapper,c&&!s&&M.a.responsive,s&&M.a.fullWidth,u),"data-cerber-topline":"".concat(n,"-").concat(k?"scroll":"top")},E.a.createElement("div",{className:j()(M.a.container,c&&M.a.responsive,l)},!f&&E.a.createElement(_e,{projectCode:n,type:i,projectLogo:p,doodle:m}),E.a.createElement("div",{className:M.a.menu,ref:this.menuNode},E.a.createElement("div",{className:M.a.menuItems,ref:this.menuItemsNode},P.map(function(t){var r=L[t.code];return E.a.createElement("div",{className:M.a.menuItem,key:t.code},E.a.createElement("a",{className:M.a.link,href:t.url+I(t.utmContent,T(n)),target:"_blank",rel:"noopener noreferrer","data-cerber-topline":"projects::".concat(t.top100||t.utmContent)},t.title,r&&E.a.createElement(r,{collapseBigNumbers:!0,className:M.a.counter,onChange:e.onResizeMenu})))})),E.a.createElement("div",{className:M.a.more,onClick:this.onOpenDropdown,"data-cerber-topline":"projects::show-more-projects"},E.a.createElement(Re,{className:M.a.moreIcon}),"Еще")),E.a.createElement("div",{className:M.a.toplineRightPlace},(h||_)&&E.a.createElement(K,{projectCode:n,responsive:c,advert:_,showAd:h}),"function"==typeof v&&b&&E.a.createElement(ye,{projectCode:n,type:i,dropdown:B,onSearchSubmit:v}),g&&x&&E.a.createElement(Ie,{className:M.a.user,authFrameOptions:d,projectCode:n,type:i,user:R,counters:L,redirectToMain:y})))),O&&E.a.createElement(de,{projectCode:n,isStickyTopline:k,breakpoint:D,projectItems:A,feedItems:C,videoItems:N,closeDropdown:this.onCloseDropdown,onSearchSubmit:v})))}}]),t}(O.PureComponent);w()(Fe,"defaultProps",{className:"",style:{},zIndex:null,type:"white",stickyPointY:0,stickyOnlyReverse:!1,responsive:!1,fullWidth:!1,wrapperClassName:"",containerClassName:"",authFrameOptions:{},withoutLogo:!1,projectLogo:null,doodle:null,visibleMenuItems:8,showAd:!0,advert:null,toplineSearch:!0,userCard:!0,redirectToMain:!0,onSearchSubmit:null,onUserStateChange:null,onSubscriptionPrime:null}),t.default=Fe}])},226:function(e,t,n){},262:function(e,t,n){e.exports=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="",n(n.s=26)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(70)},function(e,t,n){e.exports={root:"rui__KoMVf",novel:"rui__1uhXr",director:"rui__3u3Eg",original:"rui__3HA3x",menu:"rui__2cBS3",auto:"rui__1bYSB",doctor:"rui__3uaMX",finance:"rui__3YA5V",games:"rui__2SZQE",kino:"rui__M1uR3",news:"rui__2iuxo",sport:"rui__1skP_",travel:"rui__282Ps",weekend:"rui__25LWz",woman:"rui__3C1B6",link:"rui__1bPQa",moreLink:"rui__2YK5n",linkActive:"rui__of9l9",buttonGeo:"rui__3V50l",iconGeo:"rui__2lZ8x",more:"rui__2OoeX",dropdown:"rui__3LG5X",open:"rui__1Yoij",advert:"rui__1FsRY",linkLogo:"rui__1sb3B"}},function(e,t,n){e.exports={root:"rui__1l7Ge",wrap:"rui__26GAf",original:"rui__gEx8o",director:"rui__1nEav",main:"rui__2Y3ge",leftSide:"rui__3T-iB",rightSide:"rui__2k7Mw",rightWrap:"rui__307PT",logo:"rui__3gXfR",search:"rui__fSfPT",widget:"rui__2HkSB",searchForm:"rui__3Ofnl",searchWithWidgets:"rui__oZggU"}},function(e,t,n){e.exports={link:"rui__2QYWQ",director:"rui__2nK_m",icon:"rui__2IJdo",woman:"rui__18m0X",createMail:"rui__1en9X",label:"rui__f9H4f"}},function(e,t,n){(function(e,n){var r,o,a,i=9007199254740991,c="[object Function]",s="[object GeneratorFunction]",u="[object Map]",l="[object Set]",d=/^\[object .+?Constructor\]$/,f="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,m=f||p||Function("return this")(),h=t&&!t.nodeType&&t,_=h&&"object"==typeof n&&n&&!n.nodeType&&n,b=_&&_.exports===h,v=Function.prototype,g=Object.prototype,y=m["__core-js_shared__"],w=(r=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",O=v.toString,E=g.hasOwnProperty,k=g.toString,j=RegExp("^"+O.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=b?m.Buffer:void 0,x=g.propertyIsEnumerable,C=S?S.isBuffer:void 0,N=(o=Object.keys,a=Object,function(e){return o(a(e))}),M=z(m,"DataView"),P=z(m,"Map"),I=z(m,"Promise"),T=z(m,"Set"),A=z(m,"WeakMap"),R=!x.call({valueOf:1},"valueOf"),L=W(M),D=W(P),B=W(I),F=W(T),H=W(A);function z(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Y(e)||w&&w in e)&&(K(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?j:d).test(W(e))}(n)?n:void 0}var V=function(e){return k.call(e)};function W(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(M&&"[object DataView]"!=V(new M(new ArrayBuffer(1)))||P&&V(new P)!=u||I&&"[object Promise]"!=V(I.resolve())||T&&V(new T)!=l||A&&"[object WeakMap]"!=V(new A))&&(V=function(e){var t=k.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?W(n):void 0;if(r)switch(r){case L:return"[object DataView]";case D:return u;case B:return"[object Promise]";case F:return l;case H:return"[object WeakMap]"}return t});var q=Array.isArray;function G(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!K(e)}var U=C||function(){return!1};function K(e){var t=Y(e)?k.call(e):"";return t==c||t==s}function Y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}n.exports=function(e){if(G(e)&&(q(e)||"string"==typeof e||"function"==typeof e.splice||U(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&G(e)}(e)&&E.call(e,"callee")&&(!x.call(e,"callee")||"[object Arguments]"==k.call(e))}(e)))return!e.length;var t=V(e);if(t==u||t==l)return!e.size;if(R||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||g)}(e))return!N(e).length;for(var n in e)if(E.call(e,n))return!1;return!0}}).call(this,n(18),n(23)(e))},function(e,t){e.exports=n(15)},function(e,t,n){e.exports={root:"rui__3nGrV",link:"rui__x_SBR",logo:"rui__GUbhp",ramblerMain:"rui__2eZ1X",ramblerProject:"rui__-pBZI",auto:"rui__1-0Ja",beat:"rui__RbSg-",class:"rui__3SWWF",dating:"rui__3dnWD",doctor:"rui__1b_Gd",finance:"rui__19549",games:"rui__2lnG1",help:"rui__3GJT_",horoscopes:"rui__2VPaB",kassa:"rui__2pfAr",kino:"rui__3JWMj",likes:"rui__3A2EQ",mail:"rui__kwHsA",news:"rui__2rq0Q",promokody:"rui__2rj2X",soft:"rui__3prkN",sport:"rui__22hjJ",top100:"rui__3k2w1",travel:"rui__2rBzO",weather:"rui__3NrGP",weekend:"rui__VNRyB",woman:"rui__2FKTZ"}},function(e,t){e.exports=n(13)},function(e,t,n){e.exports={link:"rui__7kYYA",icon:"rui__23x7q",temp:"rui__2aMmD",locative:"rui__3Fef7",geo:"rui__gHnk5",geoIcon:"rui__K7Npf"}},function(e,t,n){e.exports={root:"rui__30siD",button:"rui__cW9Ww",icon:"rui__OFMbe",woman:"rui__2Vvzg",tooltip:"rui__3lQvT",fadeIn:"rui__HyFao",link:"rui__16aQz"}},function(e,t,n){e.exports={link:"rui__1hrVw",icon:"rui__1W_0X"}},function(e,t,n){e.exports={link:"rui__1TGpc",icon:"rui__VLIg-",level:"rui__2UN8r",yellow:"rui__1-qWe",red:"rui__2WdmP"}},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},i=2,c=20,s=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function c(){n&&(n=!1,e()),r&&u()}function s(){a(c)}function u(){var e=Date.now();if(n){if(e-o<i)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return u}(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},p=b(0,0,0,0);function m(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+m(e["border-"+n+"-width"])},0)}var _="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t=(e=this.target,r?_(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=m(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,c=m(r.width),s=m(r.height);if("border-box"===r.boxSizing&&(Math.round(c+a)!==t&&(c-=h(r,"left","right")+a),Math.round(s+i)!==n&&(s-=h(r,"top","bottom")+i)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(c+a)-t,l=Math.round(s+i)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return b(o.left,o.top,c,s)}(e):p);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),g=function(e,t){var n,r,o,a,i,c,s,u=(r=(n=t).x,o=n.y,a=n.width,i=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),d(s,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),s);d(this,{target:e,contentRect:u})},y=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new g(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new y(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){O.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:O;t.a=E}).call(this,n(18))},function(e,t){e.exports=n(88)},function(e,t){e.exports=n(302)},function(e,t){e.exports=n(2)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=n(480)},function(e,t){e.exports=n(964)},function(e,t){e.exports=n(615)},function(e,t){e.exports=n(60)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){e.exports={root:"rui__2x3vw",form:"rui__QgrPb",root_simple:"rui__211G8",input:"rui__A4yZy",pink:"rui__p-Y49",input_hidden:"rui__s9rdb rui__A4yZy",submit:"rui__OLIqO",root_mobile:"rui__uAYZs rui__2x3vw",root_tiny:"rui__2MI9o rui__2x3vw",suggest:"rui__2l_CV",controls:"rui__gkB3w",clear:"rui__4u39V",mode:"rui__LvL7X",mode_selected:"rui__rek7Y rui__LvL7X",tipwrapper:"rui__23aUk",tip:"rui__5uOyN",submit__icon:"rui__2o98_"}},function(e,t,n){e.exports={root:"rui__3R9za",isMobile:"rui__2xGaf",caption:"rui__tiY5T",rows:"rui__3wdKl",row:"rui__3Q0ja",desc:"rui__1wdQw",descInput:"rui__3Q8TE",input:"rui__2NIBR",inputField:"rui__5nKdQ",inputBorder:"rui__2fBkg",animateDots:"rui__1br-T"}},function(e,t,n){"use strict";n.r(t);var r,o=n(9),a=n.n(o),i=n(2),c=n.n(i),s=n(0),u=n.n(s),l=n(1),d=n.n(l),f=n(14);!function(e){e[e.head=1]="head",e[e.mail=2]="mail",e[e.top100=3]="top100",e[e.kassa=4]="kassa",e[e.weather=5]="weather",e[e.horoscopes=6]="horoscopes",e[e.dating=7]="dating",e[e.help=8]="help",e[e.soft=9]="soft",e[e.class=10]="class",e[e.likes=11]="likes",e[e.afisha=12]="afisha",e[e.news=13]="news",e[e.finance=14]="finance",e[e.woman=15]="woman",e[e.kino=16]="kino",e[e.sport=17]="sport",e[e.auto=18]="auto",e[e.doctor=19]="doctor",e[e.weekend=20]="weekend",e[e.travel=21]="travel",e[e.games=22]="games",e[e.beat=23]="beat",e[e.search=24]="search",e[e.search_r0=25]="search_r0",e[e.search_org=26]="search_org",e[e.search_img=27]="search_img",e[e.search_map=28]="search_map",e[e.id=29]="id"}(r||(r={}));var p=n(15),m=n.n(p),h=n(6),_=n.n(h),b=n(19),v=n.n(b),g=(n(24),n(20)),y=n.n(g),w=(n(25),n(4)),O=n.n(w),E=n(7),k=n.n(E),j=n(16),S=n.n(j),x=function(e){var t,n;return k.a.async(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!_()(e)&&void 0!==e.geoid){r.next=3;break}throw new Error("@rambler-components/header: Для корректной работы нужен geoid идентификатор");case 3:return r.next=5,k.a.awrap(S()("https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru/api/v3/header",{"Content-type":"application/json",credentials:"include",headers:{cookie:"geoid=".concat(e.geoid)},timeout:500}));case 5:if(200===(t=r.sent).status&&t.ok){r.next=8;break}throw new Error("@rambler-components/header: Данные из API не получены");case 8:return r.next=10,k.a.awrap(t.json());case 10:return n=r.sent,r.abrupt("return",n);case 14:r.prev=14,r.t0=r.catch(0),console.error("@rambler-components/header: ".concat(r.t0.message));case 17:return r.abrupt("return",{});case 18:case"end":return r.stop()}},null,null,[[0,14]])},C="https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/rambler-id-helper/auth_events.js",N=function(){return fetch("https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/jsonrpc",{credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({method:"Rambler::Id::get_profile_info",params:[{get_accounts_by_provider:"uniq.lp.love.passport.rambler.ru"}],rpc:"2.0"}),method:"POST",mode:"cors"})},M=["news","finance","woman","kino","sport","auto","doctor","weekend","travel","games","beat"],P=function(e){return M.includes(e)?"".concat(e,"_media"):e},I=["head","search_r0","search_org","search_img"],T=n(8),A=n.n(T),R="https://webcf.waybackmachine.org/web/20200814002735/https://static.rambler.ru/icons/header/logo/",L=function(e){return"woman"===e?"".concat(R,"rambler-woman.svg"):I.includes(e)?"".concat(R,"rambler.svg"):"".concat(R,"head.svg")},D=function(e){var t=e.projectCode,n=e.doodle;if(Object(s.isValidElement)(n))return u.a.createElement("div",{className:A.a.root,"data-cerber":"header-desk::logo::doodle"},n);var r,o=!I.includes(t);return u.a.createElement("div",{className:A.a.root},u.a.createElement("a",{href:"https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru".concat((r=P(t),"?utm_source=".concat(r,"&utm_campaign=self_promo&utm_medium=topline&utm_content=").concat("head"))),className:A.a.link,"data-cerber":"header-desk::logo::rambler"},u.a.createElement("img",{className:d()(A.a.logo,o?A.a.ramblerProject:A.a.ramblerMain),src:L(t)})),o&&u.a.createElement("a",{href:"/",className:A.a.link,"data-cerber":"header-desk::logo::".concat(t)},u.a.createElement("img",{className:d()(A.a.logo,A.a[t]),src:"".concat(R).concat(t,".svg")})))};D.defaultProps={doodle:null};var B=D;function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var H=u.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 0v20M0 0v20m11.288-2.135L9 11 2.135 8.712c-.684-.228-.684-1.196 0-1.424l14.442-4.814a.75.75 0 01.949.949l-4.814 14.442c-.228.684-1.196.684-1.424 0"}),z=function(e){return u.a.createElement("svg",F({width:20,height:20},e),H)},V=n(10),W=n.n(V),q=function(e){var t,n=e.className,r=e.visibleCity,o=e.visible,a=e.weather,i=e.onOpenGeo,c=e.onChange;return Object(s.useCallback)(function(){"function"==typeof c&&c(a)},[c,a]),!o||_()(a)||_()(a.now)?null:u.a.createElement("div",{className:n},u.a.createElement("a",{className:W.a.link,href:"".concat("https://webcf.waybackmachine.org/web/20200814002735/https://weather.rambler.ru/").concat(a.city),"data-cerber":"header-desk::widgets_block::widget.weather"},u.a.createElement("img",{className:W.a.icon,src:(t=a.now.alias,"https://webcf.waybackmachine.org/web/20200814002735/https://static.rambler.ru/icons/header/weather/".concat(t,".svg"))}),u.a.createElement("span",{className:W.a.temp},"".concat(a.now.temp.replace("-","–"),"°")),r&&u.a.createElement("span",{className:W.a.locative},a.locative)),u.a.createElement("button",{className:W.a.geo,type:"button",onClick:i,"data-cerber":"header-desk::widgets_block::widget.geo"},u.a.createElement(z,{className:W.a.geoIcon})))},G=n(13),U=n.n(G),K=function(e){return"https://static.rambler.ru/icons/header/traffic/".concat(e,".svg")},Y=function(e){var t=e.className,n=e.visible,r=e.url,o=e.icon,a=e.level;return n&&o?u.a.createElement("div",{className:t},u.a.createElement("a",{className:U.a.link,href:r,target:"_blank",rel:"noopener noreferrer","data-cerber":"header-desk::widgets_block::widget.traffic"},u.a.createElement("img",{className:U.a.icon,src:K(o)}),u.a.createElement("span",{className:d()(U.a.level,U.a[o])},a))):null};function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Z=u.a.createElement("path",{fill:"#28BC00",fillRule:"evenodd",d:"M0 20V0m20 0v20m-7.061-7.646L10 9.414l-2.939 2.94a.5.5 0 01-.707 0l-.708-.708a.5.5 0 010-.707l4-4a.502.502 0 01.708 0l4 4a.5.5 0 010 .707l-.708.708a.5.5 0 01-.707 0"}),X=function(e){return u.a.createElement("svg",Q({width:20,height:20},e),Z)};function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var $=u.a.createElement("path",{fill:"#FF564E",fillRule:"evenodd",d:"M20 0v20M0 20V0m7.061 7.646L10 10.586l2.939-2.94a.5.5 0 01.707 0l.708.708a.5.5 0 010 .707l-4 4a.502.502 0 01-.708 0l-4-4a.5.5 0 010-.707l.708-.708a.5.5 0 01.707 0"}),ee=function(e){return u.a.createElement("svg",J({width:20,height:20},e),$)},te=n(12),ne=n.n(te),re={USD:"$",EUR:"€"},oe=function(e){var t=e.className,n=e.visibleEuro,r=e.visible,o=e.currencies;return r&&Array.isArray(o)?u.a.createElement("div",{className:t},o.map(function(e){var t=e.delta,r=e.value,o=e.url,a=e.code;return!re[a]||!n&&"EUR"===a?null:u.a.createElement("a",{key:a,className:d()(ne.a.link,t>0?ne.a.up:ne.a.down),href:o,target:"_blank",rel:"noopener noreferrer","data-cerber":"header-desk::widgets_block::widget.finance::".concat(a.toLowerCase())},re[a]," ",r.toFixed(2),t>0&&u.a.createElement(X,{className:ne.a.icon}),t<=0&&u.a.createElement(ee,{className:ne.a.icon}))})):null},ae=n(21),ie=n.n(ae);function ce(e,t){var n=e.split("_"),r=c()(n,3),o=r[0],a=r[1],i=r[2];return t%10==1&&t%100!=11?o:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?a:i}function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ue=u.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 20V0v20zM20 0v20V0zM3.833 5.5h12.334L10 10.125 3.833 5.5zm12.667 10h-13V7.125l5.9 4.425a.999.999 0 001.2 0l5.9-4.425V15.5zM2 5v11a1 1 0 001 1h14a1 1 0 001-1V5a1 1 0 00-1-1H3a1 1 0 00-1 1z"}),le=function(e){return u.a.createElement("svg",se({width:20,height:20},e),ue)},de=n(5),fe=n.n(de),pe=function(e){var t,n,r=e.projectCode,o=e.className,a=e.type,i=e.mailsNumber;return u.a.createElement("div",{className:d()(o,"woman"===r&&fe.a.woman)},u.a.createElement("a",{className:d()(fe.a.link,fe.a[a]),href:"https://webcf.waybackmachine.org/web/20200814002735/https://mail.rambler.ru/#/folder/INBOX/",rel:"noopener noreferrer",target:"_blank","data-cerber":"header-desk::mail_block::letters_button"},u.a.createElement(le,{className:d()(fe.a.icon,!i&&fe.a.iconEmpty)}),!i&&u.a.createElement("span",{className:fe.a.label},"Нет новых писем"),!!i&&u.a.createElement(u.a.Fragment,null,i>99?"99+":i," ",u.a.createElement("span",{className:fe.a.label},"".concat(ce("новое_новых_новых",n=(t=i)>99?99:t)," ").concat(ce("письмо_письма_писем",n))))))},me=function(e){var t=e.projectCode,n=e.className,r=e.type,o=e.user;return e.userFetched?o?function(e){return e&&e.__type&&"general"===e.__type}(o)?u.a.createElement(ie.a,null,u.a.createElement(pe,{projectCode:t,className:n,type:r})):u.a.createElement("div",{className:d()(n,"woman"===t&&fe.a.woman)},u.a.createElement("a",{className:d()(fe.a.link,fe.a[r],fe.a.createMail),href:"https://webcf.waybackmachine.org/web/20200814002735/https://id.rambler.ru/account/registration/",rel:"noopener noreferrer",target:"_blank","data-cerber":"header-desk::mail_block::create_button"},u.a.createElement(le,{className:fe.a.icon}),"Создать почту")):u.a.createElement("div",{className:d()(n,"woman"===t&&fe.a.woman)},u.a.createElement("a",{className:d()(fe.a.link,fe.a[r]),href:"https://webcf.waybackmachine.org/web/20200814002735/https://mail.rambler.ru/",rel:"noopener noreferrer",target:"_blank","data-cerber":"header-desk::mail_block::envelope_icon"},u.a.createElement(le,{className:fe.a.icon}),"Войти в почту")):null},he=n(22),_e=n.n(he),be=n(17),ve=n.n(be);function ge(){return(ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ye=u.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 13V0m13 0v13M1.623 4.813L11.965.438a.5.5 0 01.667.624L9 11.554a.5.5 0 01-.95-.016L6.5 6.5l-4.758-.732c-.498-.077-.583-.758-.119-.955"}),we=function(e){return u.a.createElement("svg",ge({width:13,height:13},e),ye)},Oe=n(11),Ee=n.n(Oe),ke=function(e){var t=e.projectCode,n=e.itemRegion,r=e.setOpenGeo;return u.a.createElement("div",{className:d()(Ee.a.root,"woman"===t&&Ee.a.woman)},u.a.createElement("button",{className:Ee.a.button,type:"button",onClick:function(){return r(!0)}},u.a.createElement(we,{className:Ee.a.icon}),u.a.createElement("span",{className:Ee.a.tooltip},"Выберите регион")),u.a.createElement("a",a()({className:Ee.a.link},n),n.title))};function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Se=u.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 15V0m15 0v15M2.623 5.813l10.342-4.375a.5.5 0 01.667.624L10 12.554a.5.5 0 01-.95-.016L7.5 7.5l-4.758-.732c-.498-.077-.583-.758-.119-.955"}),xe=function(e){return u.a.createElement("svg",je({width:15,height:15},e),Se)},Ce=n(3),Ne=n.n(Ce),Me=function(e){var t=e.itemRegion,n=e.setOpenGeo;return u.a.createElement("div",{className:Ne.a.link},u.a.createElement("a",t,t.title),u.a.createElement("button",{className:Ne.a.buttonGeo,type:"button",onClick:function(){return n(!0)}},u.a.createElement(xe,{className:Ne.a.iconGeo})))},Pe=function(e){var t=e.projectCode,n=e.type,r=e.menuItems,o=e.itemRegion,i=e.visibleMenuItems,l=e.advert,p=e.setOpenGeo,h=e.moreButtonProps,b=Object(s.useRef)(),v=Object(s.useRef)(),g=Object(s.useRef)(),y=Object(s.useRef)(r),w=Object(s.useRef)(i||r.length),O=Object(s.useState)(!1),E=c()(O,2),k=E[0],j=E[1],S=Object(s.useState)(!1),x=c()(S,2),C=x[0],N=x[1],M=Object(s.useState)([]),P=c()(M,2),T=P[0],A=P[1],R=Object(s.useState)([]),L=c()(R,2),D=L[0],B=L[1],F=Object(s.useCallback)(function(e){for(var t=b.current.getBoundingClientRect().right,r=Array.from(b.current.children),a=0;a<w.current&&r[a]&&!(r[a].getBoundingClientRect().right>t);)a+=1;_()(o)||"director"!==n||(a-=1),T.length!==a&&(A(y.current.slice(0,a)),B(y.current.slice(a))),!e&&a<y.current.length&&F(!0)},[]),H=Object(s.useCallback)(m()(function(){A(y.current.slice(0,w.current)),B(y.current.slice(w.current)),F()}),[]),z=Object(s.useCallback)(function(e){var t=v.current;t&&("function"!=typeof t.contains||t.contains(e.target))||N(!1)},[]);Object(s.useEffect)(function(){return j(!0),g.current=new f.a(H),g.current.observe(b.current),window.addEventListener("resize",H),H(),function(){g.current.unobserve(b.current),window.removeEventListener("resize",H)}},[]),Object(s.useEffect)(function(){y.current=r,w.current=i||(r||[]).length,H()},[r,i]),Object(s.useEffect)(function(){C?window.addEventListener("click",z):window.removeEventListener("click",z)},[C]);var V=u.a.createElement(Me,{itemRegion:o,setOpenGeo:p});return u.a.createElement("div",{className:d()(Ne.a.root,Ne.a[n],"woman"===t&&Ne.a.woman)},!_()(o)&&"director"!==n&&u.a.createElement(ke,{projectCode:t,setOpenGeo:p,itemRegion:o}),u.a.createElement("div",{className:d()(Ne.a.menu,Ne.a[n],ve()({},Ne.a[t],"original"===n&&!I.includes(t))),ref:b,itemScope:!0,itemType:"https://webcf.waybackmachine.org/web/20200814002735/https://schema.org/SiteNavigationElement"},k&&T.map(function(e,t){var r=e.active,i=e.logo,c=e.logoClassName,s=e.title,l=_e()(e,["active","logo","logoClassName","title"]);return u.a.createElement(u.a.Fragment,{key:t},u.a.createElement("a",a()({key:t,className:d()(Ne.a.link,ve()({},Ne.a.linkActive,r)),itemProp:"url"},l),i&&u.a.createElement("img",{className:d()(Ne.a.linkLogo,c),src:"https://webcf.waybackmachine.org/web/20200814002735/https://static.rambler.ru/icons/header/menu/".concat(i,".svg")}),u.a.createElement("span",null,s)),!_()(o)&&"director"===n&&0===t&&V)})),k&&!!D.length&&u.a.createElement("div",{className:Ne.a.more},u.a.createElement("button",a()({className:Ne.a.moreLink,type:"button",onClick:function(){return N(!C)}},h),"Ещё"),u.a.createElement("div",{className:d()(Ne.a.dropdown,C&&Ne.a.open),ref:v},D.map(function(e,t){return u.a.createElement("a",a()({key:t,className:Ne.a.link},e),e.title)}))),Object(s.isValidElement)(l)&&u.a.createElement("div",{className:Ne.a.advert},l))};n.d(t,"Header",function(){return Te}),n.d(t,"fetchHeader",function(){return x});var Ie="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,Te=function(e){var t=e.projectCode,n=e.type,o=e.doodle,i=e.menuItems,l=e.itemRegion,p=e.visibleMenuItems,h=e.reloadKey,b=e.advert,g=e.initialState,w=e.onChangeGeo,E=e.onChangeWeather,j=e.moreButtonProps,S=Object(s.useRef)(),M=Object(s.useRef)(),P=Object(s.useRef)(),I=Object(s.useRef)(),T=Object(s.useRef)(5),A=Object(s.useRef)(5),R=Object(s.useRef)(),L=Object(s.useState)(null),D=c()(L,2),F=D[0],H=D[1],z=Object(s.useState)(!1),V=c()(z,2),W=V[0],G=V[1],U=Object(s.useState)(!1),K=c()(U,2),Q=K[0],Z=K[1],X=Object(s.useState)(5),J=c()(X,2),$=J[0],ee=J[1],te=Object(s.useCallback)(function(e){"function"==typeof w&&w(e),H(e)},[w]),ne=Object(s.useCallback)(m()(function(e){Z(S.current.offsetWidth<390),(!0===e||A.current<window.innerWidth)&&T.current<5&&ee(T.current+1),P.current.offsetWidth<I.current.offsetWidth&&T.current&&ee(T.current-1),A.current=window.innerWidth}),[]);Object(s.useEffect)(function(){return function(e){e?r[e]||console.error("@rambler-components: Указан невалидный projectCode: ".concat(e)):console.error("@rambler-components: Не указан projectCode")}(t),A.current=window.innerWidth,R.current=new f.a(function(){return ne(!0)}),R.current.observe(I.current),window.addEventListener("resize",ne),ne(),function(){R.current.unobserve(I.current),window.addEventListener("resize",ne)}},[]),Ie(function(){var e=T.current<$;T.current=$,ne(e)},[$]);var re=function(){var e=Object(s.useState)(null),t=c()(e,2),n=t[0],r=t[1],o=Object(s.useState)(!1),a=c()(o,2),i=a[0],u=a[1];return Object(s.useEffect)(function(){var e=function e(){var t,n,o,a,i,c,s,l,d=arguments;return k.a.async(function(f){for(;;)switch(f.prev=f.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:1,f.prev=1,f.next=4,k.a.awrap(N());case 4:return n=f.sent,f.next=7,k.a.awrap(n.json());case 7:if(o=f.sent,a=o.result,c=(i=a||{}).status,s=i.requiredAction,l=i.profile,"ERROR"!==c||"NeedSession"===s){f.next=12;break}throw new Error;case 12:r(l||null),u(!0),f.next=24;break;case 16:if(f.prev=16,f.t0=f.catch(1),3!==t){f.next=21;break}return console.error("@rambler-components/header: Превышено количество запросов ID"),f.abrupt("return");case 21:return f.next=23,k.a.awrap(new Promise(function(e){return setTimeout(e,1e3)}));case 23:e(t+1);case 24:case"end":return f.stop()}},null,null,[[1,16]])},t=function(){r(null)};return"undefined"!=typeof window?(function(){if(!document.querySelector('script[src="'.concat(C,'"]'))){var e=window.document.createElement("script");e.src=C,window.document.head.appendChild(e)}}(),window.ramblerIdHelper=window.ramblerIdHelper||[],window.ramblerIdHelper.push(function(){window.ramblerIdHelper.addListener("login",e),window.ramblerIdHelper.addListener("oauthlogin",e),window.ramblerIdHelper.addListener("logout",t)}),e(),function(){window.ramblerIdHelper.push(function(){window.ramblerIdHelper.removeListener("login",e),window.ramblerIdHelper.removeListener("oauthlogin",e),window.ramblerIdHelper.removeListener("logout",t)})}):null},[]),[n,i]}(),ae=c()(re,2),ie=ae[0],ce=ae[1],se=function(e){var t=e.initialState,n=e.geoId,r=e.reloadKey,o=e.shouldFetch,a=Object(s.useState)(t),i=c()(a,2),u=i[0],l=i[1],d=Object(s.useState)(!1),f=c()(d,2),p=f[0],m=f[1];return Object(s.useEffect)(function(){var e,r;!1!==o&&n&&(p||(m(!0),_()(t)))&&(e=n,k.a.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k.a.awrap(x({geoid:e}));case 2:(r=t.sent)&&l(r);case 4:case"end":return t.stop()}}))},[n,r]),u}({initialState:g,geoId:Number((F||{}).id),reloadKey:h,shouldFetch:"novel"===n});Object(s.useEffect)(function(){_()(se)||"function"!=typeof E||E(se.weather)},[se]);var ue=!_()(l)&&"director"===n||"novel"===n;return u.a.createElement("div",{className:d()(O.a.root,O.a[n])},u.a.createElement("div",{className:O.a.wrap},u.a.createElement("div",{className:d()(O.a.main,!_()(i)&&O.a.withMenu,O.a[n])},u.a.createElement("div",{className:O.a.leftSide,ref:M},u.a.createElement("div",{className:O.a.logo},u.a.createElement(B,{projectCode:t,doodle:o})),u.a.createElement("div",{className:d()(O.a.search,"novel"===n&&O.a.searchWithWidgets),ref:S},u.a.createElement(v.a,{className:O.a.searchForm,projectName:t,autoFocus:!1,simpleButton:Q}))),u.a.createElement("div",{className:O.a.rightSide,ref:P},u.a.createElement("div",{className:O.a.rightWrap,ref:I},"novel"===n&&u.a.createElement(u.a.Fragment,null,u.a.createElement(q,{className:O.a.widget,weather:se.weather,visibleCity:$>4,visible:$>0,onOpenGeo:function(){return G(!0)},onChange:E}),u.a.createElement(Y,a()({className:O.a.widget,visible:$>3},se.traffic)),u.a.createElement(oe,{className:O.a.widget,visibleEuro:$>2,visible:$>1,currencies:se.currencies})),u.a.createElement(me,{projectCode:t,className:O.a.widget,type:n,user:ie,userFetched:ce})))),!_()(i)&&u.a.createElement(Pe,{projectCode:t,type:n,menuItems:i,itemRegion:l,visibleMenuItems:p,advert:b,setOpenGeo:G,moreButtonProps:j})),ue&&u.a.createElement(y.a,{isOpen:W,onChange:te,onClose:function(){return G(!1)},reloadKey:h}))};Te.defaultProps={doodle:null,menuItems:null,itemRegion:null,type:"novel",initialState:{},onChangeGeo:null,onChangeWeather:null},t.default=Te}])},263:function(e,t,n){},264:function(e,t,n){},265:function(e,t,n){e.exports=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="",n(n.s=9)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(11)},function(e,t,n){e.exports={projectLink:"rui__1LZjN",inverse:"rui__3uS20",white:"rui__12lic",topicList:"rui__2KRbM",open:"rui__2gmF2",topicLink:"rui__1u7zG",moreBtn:"rui__3TmVN",icon:"rui__1Caaq",iconOpen:"rui__2_jDC"}},function(e,t,n){e.exports={logoBlock:"rui__2JJ4E",logoWrapper:"rui__2mXmr",link:"rui__2vYtq",inverse:"rui__tLIJH",white:"rui__K28oc",logo:"rui__1f3j-",ageLimit:"rui__2_yCB"}},function(e,t,n){e.exports={root:"rui__oNZ4B",inverse:"rui__3dyAU",white:"rui__H4k6t",wrapper:"rui__6aln-",projectsBlock:"rui__3dSIT",infoBlock:"rui__1BfHd"}},function(e,t){e.exports=n(13)},function(e,t,n){e.exports={icon:"rui__3fnTx",text:"rui__3VQSo",textTitle:"rui__JXKee"}},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(60)},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),a=n(0),i=n.n(a),c=n(1),s=n.n(c),u=n(5),l=n.n(u);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=i.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M77.252 19.6h2.79L86.862 1h-2.79l-6.82 18.6zm-3.659-9.486c0-1.674-.992-2.976-2.728-2.976-1.797 0-2.789 1.488-2.789 2.976s.992 2.976 2.789 2.976c1.798 0 2.728-1.364 2.728-2.976zM71.175 5.03c2.294 0 4.836 1.674 4.774 5.084 0 3.224-2.294 5.084-4.774 5.084-1.611 0-2.665-.868-2.975-1.178v5.58h-2.666V5.278h2.604v1.054c.31-.372 1.302-1.302 3.037-1.302zM56.916 9.06h4.526c-.062-.558-.372-1.984-2.17-1.984a2.314 2.314 0 00-2.356 1.984zm2.418-4.03c2.976 0 4.712 2.17 4.712 5.084v.31c0 .124-.062.558-.062.558h-7.13c0 .558.744 2.108 2.542 2.108 1.736 0 2.418-1.364 2.418-1.364l1.984 1.302s-1.302 2.17-4.402 2.17-5.146-2.232-5.146-5.084c0-2.852 2.046-5.084 5.084-5.084zm-8.122 9.92h2.852L50.53 5.278h-2.79l-3.596 9.672h2.914l2.046-6.138h.062l2.046 6.138zm-9.858-4.588c0-1.116-.62-2.666-2.418-2.666s-2.542 1.24-2.542 2.604.744 2.79 2.542 2.79c1.798 0 2.418-1.612 2.418-2.728zm-2.17-5.084c2.17 0 4.836 1.426 4.836 5.022 0 2.48-1.736 4.96-5.146 4.96-3.596 0-5.084-2.79-5.084-6.2 0-6.262 2.976-8.06 6.82-8.06h2.914l-.806 2.17h-2.17c-3.472 0-3.782 2.604-3.844 2.914a4.285 4.285 0 012.48-.806zM26.474 9.37l-3.348-4.03-.062-.062H20.77v9.672h2.666V9.308l2.604 3.286.062.124h.682l2.666-3.41v5.642h2.666V5.278h-2.294L26.474 9.37zm-10.416 1.55v-.31h-.186c-.434 0-.868 0-1.302.062-1.55.186-2.17.62-2.17 1.364 0 .31.124 1.116 1.488 1.116 1.426 0 2.17-.93 2.17-2.232zm2.48 1.86c0 1.364.124 2.17 0 2.17h-2.48s-.062-.868-.062-.93c-.248.31-1.178 1.116-2.79 1.116-1.798 0-3.472-1.116-3.472-3.1 0-3.596 5.518-3.286 6.2-3.286 0 0 .248-1.674-1.798-1.674-1.426 0-2.542.992-2.542.992l-.744-1.984c.434-.31 1.674-1.054 3.534-1.054 2.728 0 4.03 1.24 4.154 4.278v3.472zM6.696 5.526c0-1.612-1.55-2.17-2.604-2.232H2.728v4.402h1.364c1.054 0 2.604-.558 2.604-2.17zM4.34 1c2.79 0 5.146 1.55 5.146 4.526 0 3.038-2.356 4.526-5.208 4.526H2.79v4.96H0V1h4.34z"}),p=function(e){return i.a.createElement("svg",d({width:87,height:20},e),f)},m=n(3),h=n.n(m),_=function(e){var t=e.type,n=e.ageLimit,r=e.logoProps;return i.a.createElement("div",{className:s()(h.a.logoBlock,h.a[t])},i.a.createElement("div",{className:h.a.logoWrapper},i.a.createElement("a",l()({href:r.href||"https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru/",className:h.a.link},r),i.a.createElement(p,{className:h.a.logo})),n&&i.a.createElement("span",{className:s()(h.a.ageLimit)},"18+")))};function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=i.a.createElement("g",{fill:"#8D96B2",fillRule:"evenodd"},i.a.createElement("path",{d:"M15 28c7.18 0 13-5.82 13-13S22.18 2 15 2 2 7.82 2 15s5.82 13 13 13zm0 2C6.716 30 0 23.284 0 15 0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15z"}),i.a.createElement("path",{d:"M16.184 17.717h-2.666L13.098 8h3.506l-.42 9.717zM13 20.744c0-.482.174-.877.522-1.186.349-.31.783-.464 1.304-.464s.956.154 1.304.464c.348.309.522.704.522 1.186s-.174.877-.522 1.187c-.348.309-.783.464-1.304.464-.52 0-.955-.155-1.304-.464A1.516 1.516 0 0113 20.744z"})),g=function(e){return i.a.createElement("svg",b({width:30,height:30},e),v)},y=n(6),w=n.n(y),O=i.a.createElement("br",null),E=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(g,{className:w.a.icon}),i.a.createElement("div",{className:s()(w.a.text,w.a.textTitle)},"Опечатка?"),i.a.createElement("div",{className:s()(w.a.text)},"Выделите текст",O,"и нажмите Ctrl+Enter"))},k=n(8),j=n.n(k);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x=i.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.571 6.571l-.141-.141a.499.499 0 00-.707 0L7.5 9.652 4.278 6.43a.499.499 0 00-.707 0l-.141.141a.5.5 0 000 .707l3.717 3.717a.499.499 0 00.707 0l3.717-3.717a.5.5 0 000-.707M15 0v15M0 15V0"}),C=function(e){return i.a.createElement("svg",S({width:15,height:15},e),x)},N=n(2),M=n.n(N),P=function(e){var t=e.className,n=e.type,r=e.project,o=r.topicsList,a=j()(r,["topicsList"]),c=e.isOpen,u=e.onClick;return i.a.createElement("div",{className:s()(t,M.a[n])},i.a.createElement("a",l()({className:M.a.projectLink},a),a.title),i.a.createElement("div",{className:s()(M.a.topicList,c&&M.a.open)},o.map(function(e){return i.a.createElement("a",l()({key:e.title,className:M.a.topicLink},e),e.title)})),o.length>4&&i.a.createElement("button",{type:"button",className:M.a.moreBtn,onClick:function(){return u(!c)}},i.a.createElement(C,{className:s()(M.a.icon,c&&M.a.iconOpen)}),"Ещё"))},I=n(4),T=n.n(I);n.d(t,"FooterMedia",function(){return R});var A=i.a.createElement(E,null),R=function(e){var t=e.type,n=e.projectsList,r=e.ageLimit,c=e.misprint,u=e.logoProps,l=Object(a.useState)(!1),d=o()(l,2),f=d[0],p=d[1];return i.a.createElement("div",{className:s()(T.a.root,T.a[t])},i.a.createElement("div",{className:T.a.wrapper},i.a.createElement(_,{type:t,ageLimit:r,logoProps:u}),i.a.createElement("div",{className:T.a.projectsBlock},n.map(function(e,n){return i.a.createElement(P,{key:n,className:T.a.infoBlock,type:t,isOpen:f,project:e,onClick:p})}),c&&i.a.createElement("div",{className:T.a.infoBlock},A))))};R.defaultProps={type:"inverse",logoProps:{},projectsList:[],ageLimit:!1,misprint:!1},t.default=R}])},266:function(e,t,n){},367:function(e,t,n){e.exports=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="",n(n.s=2)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports={root:"rui__2o6IB",dots:"rui___yrN7",animateDots:"rui__1QEyT"}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),c=o.a.createElement("div",null),s=o.a.createElement("div",null),u=o.a.createElement("div",null);t.default=function(){return o.a.createElement("div",{className:i.a.root},o.a.createElement("div",{className:i.a.dots},c,s,u))}}])},379:function(e,t,n){},380:function(e,t,n){e.exports=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="",n(n.s=6)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports={root:"rui__2HyFh",fadeIn:"rui__3SMZ5",wrap:"rui__2qrns",showInfoPage:"rui__2PDl6",mainPage:"rui__18m8m",showMainPage:"rui__1WMQj",infoPage:"rui__2a0Jz",title:"rui__3D1RX",text:"rui__2bqr3",buttons:"rui__k8UPG",button:"rui__1W7Zu",buttonBlue:"rui__1YDqy",buttonOutline:"rui__3EPUq",buttonShort:"rui__3O9af",continue:"rui__2GYm_",continueButton:"rui__29Tnj",continueIcon:"rui__2XtMC"}},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(193)},function(e,t){e.exports=n(81)},function(e,t,n){"use strict";n.r(t);var r,o=n(4),a=n.n(o),i=n(3),c=n.n(i),s=n(0),u=n.n(s),l=n(5),d=n.n(l),f=n(2),p=n.n(f);!function(e){e[e.head=1]="head",e[e.mail=2]="mail",e[e.top100=3]="top100",e[e.kassa=4]="kassa",e[e.weather=5]="weather",e[e.horoscopes=6]="horoscopes",e[e.dating=7]="dating",e[e.help=8]="help",e[e.soft=9]="soft",e[e.class=10]="class",e[e.likes=11]="likes",e[e.afisha=12]="afisha",e[e.news=13]="news",e[e.finance=14]="finance",e[e.woman=15]="woman",e[e.kino=16]="kino",e[e.sport=17]="sport",e[e.auto=18]="auto",e[e.doctor=19]="doctor",e[e.weekend=20]="weekend",e[e.travel=21]="travel",e[e.games=22]="games",e[e.beat=23]="beat",e[e.search=24]="search",e[e.search_r0=25]="search_r0",e[e.search_org=26]="search_org",e[e.search_img=27]="search_img",e[e.search_map=28]="search_map",e[e.id=29]="id"}(r||(r={}));var m=!1,h={},_=function(e){var t=window.innerHeight,n=document.body,r=n.getBoundingClientRect(),o=r.top,a=r.left,i=n.scrollHeight;if(e)m||(h={position:n.style.position||"",width:n.style.width||"",height:n.style.height||"",top:n.style.top||"",left:n.style.left||""},Object.assign(document.body.style,{position:"fixed",width:"100%",height:"100%",top:"".concat(o,"px"),left:"".concat(a,"px"),overflowY:t<i?"scroll":""}),document.ontouchstart=function(e){e.preventDefault()},m=!0);else if(m){var c=document.body.getBoundingClientRect();document.ontouchstart=function(){return!0},Object.assign(document.body.style,h),window.scrollTo(-c.left,-c.top),m=!1}},b=n(1),v=n.n(b),g=["ad","ad-banner","adbanner","nav-ad","pub_300x250","pub_300x250m","pub_728x90","text-ad","textAd","text_ad","text_ads","text-ads","text-ad-links"],y={width:1,height:1,position:"absolute",left:-1e5};function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O=u.a.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M0 15V0m15 0v15m-9.43-3.43l-.141-.141a.5.5 0 010-.707L8.651 7.5 5.429 4.278a.5.5 0 010-.707l.141-.141a.5.5 0 01.708-.001l3.717 3.717a.502.502 0 010 .708l-3.717 3.717a.5.5 0 01-.708-.001"}),E=function(e){return u.a.createElement("svg",w({width:15,height:15},e),O)};n.d(t,"AdBlocker",function(){return M});var k="undefined"!=typeof window,j=u.a.createElement("br",null),S=u.a.createElement("span",null,"Продолжить с рекламой"),x=u.a.createElement("br",null),C=u.a.createElement("br",null),N=u.a.createElement("br",null),M=function(e){var t=e.projectCode,n=e.isMobile,o=e.statusPrime,i=e.onInitAdBlock,l=e.onClickPrime,f=e.onClickContinue,m=Object(s.useRef)(),h=Object(s.useState)(k&&document.createElement("div")),b=c()(h,1)[0],w=Object(s.useState)(!1),O=c()(w,2),M=O[0],P=O[1],I=Object(s.useState)(!1),T=c()(I,2),A=T[0],R=T[1],L=Object(s.useState)(1),D=c()(L,2),B=D[0],F=D[1],H=Object(s.useState)(!1),z=c()(H,2),V=z[0],W=z[1],q=Object(s.useMemo)(function(){return"".concat(t,"::").concat(n?"mobile":"desktop","::adblock_screen")},[t,n]),G=Object(s.useMemo)(function(){return"?project=".concat(t,"&back=").concat(decodeURIComponent(window.location.origin+window.location.pathname),"&utm_source=").concat(t,"&utm_medium=adblock_screen&utm_campaign=reklama_off&utm_content=landing_prime&utm_term=").concat(n?"mob":"desk")},[t,n]),U=Object(s.useCallback)(function(e){W(!0),"function"==typeof l&&l(e)},[l]),K=Object(s.useCallback)(function(){W(!0),"function"==typeof f&&f()},[f]),Y=Object(s.useCallback)(function(e){e!==B&&F(e)},[B]);return Object(s.useEffect)(function(){var e;!function(e){e?r[e]||console.error("@rambler-components: Указан невалидный projectCode: ".concat(e)):console.error("@rambler-components: Не указан projectCode")}(t);try{var n=m.current,o=window.getComputedStyle(n,null),c="none"===o.getPropertyValue("display")||"hidden"===o.getPropertyValue("visibility");"object"===a()(b)&&(window.document.body.appendChild(b),e=setTimeout(function(){return R(!0)},3e3)),P(c),"function"==typeof i&&i()}catch(e){}return function(){e&&clearTimeout(e)}},[]),Object(s.useEffect)(function(){1===o&&M&&"object"===a()(b)&&!V?_(!0):_(!1)},[o,M,b,V]),V?null:1===o&&M&&"object"===a()(b)?d.a.createPortal(u.a.createElement("div",{className:p()(v.a.root,1===B&&v.a.showMainPage,2===B&&v.a.showInfoPage)},u.a.createElement("div",{className:p()(v.a.wrap,v.a.mainPage)},u.a.createElement("div",{className:v.a.title},"У вас установлен AdBlock."),u.a.createElement("div",{className:v.a.text},"Если вы не любите баннеры, попробуйте нашу подписку",j,"на отключение рекламы на всех проектах Rambler Group."),u.a.createElement("div",{className:v.a.buttons},u.a.createElement("a",{className:p()(v.a.button,v.a.buttonBlue),href:"https://webcf.waybackmachine.org/web/20200814002735/https://prime.rambler.ru/promo/".concat(G),target:"_blank",rel:"noopener noreferrer","data-cerber":"".concat(q,"::reklama_remover_button"),onClick:U},"Отключить рекламу"),u.a.createElement("button",{className:p()(v.a.button,v.a.buttonOutline),type:"button","data-cerber":"".concat(q,"::adblock_remover_button"),onClick:function(){return Y(2)}},"Отключить AdBlock")),A&&u.a.createElement("div",{className:v.a.continue},u.a.createElement("button",{className:v.a.continueButton,type:"button","data-cerber":"".concat(q,"::reklama_continue"),onClick:K},S,u.a.createElement(E,{className:v.a.continueIcon})))),u.a.createElement("div",{className:p()(v.a.wrap,v.a.infoPage)},u.a.createElement("div",{className:v.a.title},"Как добавить Рамблер в исключения:"),u.a.createElement("div",{className:v.a.text},"Нажмите на иконку своего блокировщика рекламы справа",x,"вверху и отключите блокировку для всего сайта rambler.ru.",C,"Если иконки не видно, откройте список всех установленных",N,"расширений."),u.a.createElement("button",{className:p()(v.a.button,v.a.buttonOutline,v.a.buttonShort),type:"button",onClick:function(){return Y(1)}},"Назад"))),b):u.a.createElement("div",{className:p()(g),style:y,ref:m})};M.defaultProps={isMobile:!1,onInitAdBlock:null,onClickPrime:null,onClickContinue:null},t.default=M}])},381:function(e,t,n){},383:function(e,t,n){e.exports=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="",n(n.s=20)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(15)},function(e,t,n){e.exports={root:"rui__3R9za",isMobile:"rui__2xGaf",caption:"rui__tiY5T",rows:"rui__3wdKl",row:"rui__3Q0ja",desc:"rui__1wdQw",descInput:"rui__3Q8TE",input:"rui__2NIBR",inputField:"rui__5nKdQ",inputBorder:"rui__2fBkg",animateDots:"rui__1br-T"}},function(e,t){e.exports=n(30)},function(e,t,n){e.exports={root:"rui__2kKkW",mounted:"rui__d8311",isMobile:"rui__3PX44",item:"rui__2agY3",selected:"rui__1Nn0T"}},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(617)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(618)},function(e,t){e.exports=n(966)},function(e,t){e.exports=n(367)},function(e,t){e.exports=n(49)},function(e,t){e.exports=n(88)},function(e,t,n){e.exports={root:"rui__1kQTC",hidden:"rui__aFxfe",backdrop:"rui__3C1fA",modal:"rui__3vqEc",isMobile:"rui__pueB0",title:"rui__1knk_",closeIcon:"rui__yyWaz",controls:"rui__3aUxv",okButton:"rui__3-oHc",cancelButton:"rui__2anhy"}},function(e,t,n){e.exports={root:"rui__UDjKR",isHorizontal:"rui__2sRFT",real:"rui__3fCWa",fake:"rui__1Mtbm",isMobile:"rui__2FM_O",isChecked:"rui__3EAPA",isEnabled:"rui__nZrj8",isDisabled:"rui__1CCBg",labelright:"rui__21IoC",labelleft:"rui__NZD5I",label:"rui__1RSKF",horizontalGroup:"rui__i1x7Q"}},function(e,t,n){e.exports={root:"rui__2ow94","type-primary":"rui__5bGff",icon:"rui__3SQWH","type-danger":"rui__3Ivru","type-secondary":"rui__ycFZR","type-outline":"rui__3X0qV",disabled:"rui__3vyi4","size-mobile":"rui__3sBFq",children:"rui__1GdWw","size-small":"rui__4_Agz","size-medium":"rui__MTVvf"}},function(e,t,n){e.exports={root:"rui__2o6IB",dots:"rui___yrN7",animateDots:"rui__1QEyT"}},function(e,t){e.exports=n(302)},function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r),a=n(1),i=n.n(a),c=n(0),s=n.n(c),u=n(6),l=n.n(u),d=n(4),f=n.n(d),p=n(10),m=n.n(p),h=n(11),_=n.n(h),b=(n(15),n(7)),v=(n(16),n(8)),g=n.n(v),y=(n(17),n(3)),w=n.n(y),O=n(12),E=n.n(O),k=(n(18),n(13)),j=n.n(k),S=n(2),x=n.n(S),C=(n(19),n(14)),N="https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru/location",M=function(e){var t;return x.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!1!==e.ok&&200===e.status){n.next=2;break}throw new Error("Failed to get geo data (".concat(e.status," ").concat(e.statusText,")"));case 2:return n.next=4,x.a.awrap(e.json());case 4:if(!(t=n.sent).message){n.next=7;break}throw new Error(t.message);case 7:return n.abrupt("return",t);case 8:case"end":return n.stop()}})},P=n.n(C)()(function(e,t){var n,r,o;return x.a.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(e){a.next=3;break}return t([]),a.abrupt("return");case 3:return a.next=5,x.a.awrap(fetch("".concat(N,"/geo_list/?s=").concat(encodeURIComponent(e))));case 5:return n=a.sent,a.next=8,x.a.awrap(M(n));case 8:if(a.t0=a.sent,a.t0){a.next=11;break}a.t0={};case 11:r=a.t0,o=Object.keys(r).slice(0,6).reduce(function(e,t){return[].concat(j()(e),[r[t]])},[]),t(o);case 14:case"end":return a.stop()}})},300),I=n(5),T=n.n(I),A=function(e){var t=e.list,n=e.onSelect,r=e.isMobile,o=Object(c.useRef)(),a=Object(c.useRef)(),u=Object(c.useState)(-1),d=i()(u,2),f=d[0],p=d[1],m=Object(c.useState)(!1),h=i()(m,2),_=h[0],b=h[1];Object(c.useEffect)(function(){o.current=f},[f]),Object(c.useEffect)(function(){p(-1),a.current=t},[t]);var v=Object(c.useCallback)(function(e){e.preventDefault()},[]),g=Object(c.useCallback)(function(e){n(e,a.current[o.current])},[]),y=Object(c.useCallback)(function(e){var t=o.current,n=a.current.length;switch(e.key){case"ArrowUp":p((0===t?n:t)-1),e.preventDefault();break;case"ArrowDown":p(t===n-1?0:t+1),e.preventDefault();break;case"Enter":g(e),e.preventDefault()}},[]);return Object(c.useEffect)(function(){return window.addEventListener("keydown",y,!0),b(!0),function(){window.removeEventListener("keydown",y,!0)}},[]),s.a.createElement("div",{className:l()(T.a.root,_&&T.a.mounted,r&&T.a.isMobile)},t.map(function(e,t){return s.a.createElement("button",{key:e.id,className:l()(T.a.item,t===f&&T.a.selected),type:"button",onMouseEnter:function(){return p(t)},onMouseLeave:function(){return p(-1)},onMouseDown:v,onClick:function(t){return n(t,e)},"data-cerber":"widgets::widget.geo::choose::suggest-".concat(t+1)},"".concat(e.name,", ").concat(e.parents))}))};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var L=s.a.createElement(E.a,null),D=s.a.createElement(b.RadioButton,{value:1,"data-cerber":"widgets::widget.geo::choose"},"Задать"),B=function(e){var t=e.isMobile,n=e.isOpen,r=e.closeOnEsc,a=e.closeOnClickOutside,u=e.onClose,d=e.caption,p=e.description,m=e.reloadKey,h=e.onChange,v=Object(c.useRef)(),y=Object(c.useState)(0),O=i()(y,2),E=O[0],k=O[1],j=Object(c.useState)(1),S=i()(j,2),C=S[0],I=S[1],T=Object(c.useState)(null),B=i()(T,2),F=B[0],H=B[1],z=Object(c.useState)(1),V=i()(z,2),W=V[0],q=V[1],G=Object(c.useState)(!1),U=i()(G,2),K=U[0],Y=U[1],Q=Object(c.useState)(""),Z=i()(Q,2),X=Z[0],J=Z[1],$=Object(c.useState)(!0),ee=i()($,2),te=ee[0],ne=ee[1],re=function(){var e=Object(c.useState)({}),t=i()(e,2),n=t[0],r=t[1];return Object(c.useEffect)(function(){var e,t;try{x.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,x.a.awrap(fetch("".concat(N,"/autodetect")));case 2:return e=n.sent,n.next=5,x.a.awrap(M(e));case 5:t=n.sent,r(t);case 7:case"end":return n.stop()}})}catch(e){console.error("@rambler-components/geo-modal: ".concat(e.message))}},[]),n}(),oe=function(e,t){var n=Object(c.useState)({}),r=i()(n,2),o=r[0],a=r[1],s=Object(c.useState)(!1),u=i()(s,2),l=u[0],d=u[1],f=Object(c.useState)(!1),p=i()(f,2),m=p[0],h=p[1];return Object(c.useEffect)(function(){(e>1||t>1)&&d(!0)},[t,e]),Object(c.useEffect)(function(){e>1&&h(!0)},[e]),Object(c.useEffect)(function(){t>1&&h(!1)},[t]),Object(c.useEffect)(function(){var e,t;try{x.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,x.a.awrap(fetch("".concat(N,"/current"),{credentials:"include",headers:{Cookies:window.document.cookie}}));case 2:return e=n.sent,n.next=5,x.a.awrap(M(e));case 5:t=n.sent,o.id!==t.id&&a(t);case 7:case"end":return n.stop()}})}catch(e){console.error("@rambler-components/geo-modal: ".concat(e.message))}},[t,e]),{current:o,isUpdated:l,isHimself:m}}(W,m),ae=oe.current,ie=oe.isUpdated,ce=oe.isHimself,se=function(e){var t=Object(c.useState)([]),n=i()(t,2),r=n[0],o=n[1];return Object(c.useEffect)(function(){try{P(e,o)}catch(e){o([]),console.error("@rambler-components/geo-modal: ".concat(e.message))}},[e]),r}(X),ue=Object(c.useCallback)(function(){q(W+1)},[W]),le=Object(c.useCallback)(function(){if(!f()(re)&&!f()(ae)){var e=re.id===ae.id;k(1),I(Number(e?0:1)),H(e?null:ae)}},[re,ae]),de=Object(c.useCallback)(function(e){1===e?v.current.focus():(v.current.blur(),J(""),n&&k(2),I(0),H({}))},[n,v]),fe=Object(c.useCallback)(function(e){J(e.target.value)},[]),pe=Object(c.useCallback)(function(e,t){f()(t)||(J(""),v.current.blur(),H(t))},[v]),me=Object(c.useCallback)(function(){var e=!f()(F)&&!!F.id,t=e?F.id:"false",n=e?new Date(Date.now()+94608e7):new Date(0);window.document.cookie="geoid=".concat(t,"; Domain=.rambler.ru; Path=/; Expires=").concat(n.toUTCString()),u(),ue()},[F]),he=Object(c.useCallback)(function(e){"Enter"===e.key&&me()},[me]);return Object(c.useEffect)(function(){f()(ae)||h(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(n,!0).forEach(function(t){o()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},ae,{isUpdated:ie,isHimself:ce}))},[ae]),Object(c.useEffect)(function(){le()},[re,ae]),Object(c.useEffect)(function(){n||(le(),window.removeEventListener("keydown",he,!0))},[n]),Object(c.useEffect)(function(){1!==C||K||f()(F)||!F.name||n&&X||J(F.name)},[F]),Object(c.useEffect)(function(){K&&(1!==C&&I(1),f()(F)||X!==F.name||J(""),H({}),k(2))},[K]),Object(c.useEffect)(function(){2!==E||1===C&&f()(F)?(ne(!0),window.removeEventListener("keydown",he,!0)):(ne(!1),window.addEventListener("keydown",he,!0))},[E,C,F]),s.a.createElement(_.a,{title:"Изменение региона",isMobile:t,isOpen:n,onClose:u,closeDataCerber:"widgets::widget.geo::close",closeOnEsc:r,closeOnClickOutside:a,okButton:s.a.createElement(g.a,{size:t?"mobile":"small",disabled:te,onClick:me,"data-cerber":"widgets::widget.geo::save"},"Сохранить"),cancelButton:s.a.createElement(g.a,{type:"outline",size:t?"mobile":"small",onClick:u,"data-cerber":"widgets::widget.geo::cancel"},"Отмена")},s.a.createElement("div",{className:l()(w.a.root,t&&w.a.isMobile)},!t&&s.a.createElement("div",{className:w.a.caption},d),!E&&L,!!E&&s.a.createElement(b.RadioGroup,{value:C,onChange:de,isMobile:t},s.a.createElement("div",{className:w.a.row},s.a.createElement(b.RadioButton,{value:0,"data-cerber":"widgets::widget.geo::auto"},re.name),s.a.createElement("div",{className:w.a.desc},"Определяется автоматически")),s.a.createElement("div",{className:w.a.row},D,s.a.createElement("div",{className:w.a.input},s.a.createElement("input",{className:w.a.inputField,type:"text",placeholder:"Введите город или место",onFocus:function(){return Y(!0)},onBlur:function(){return Y(!1)},onChange:fe,value:X,disabled:0===E,ref:v,"data-cerber":"widgets::widget.geo::choose::input"}),s.a.createElement("div",{className:w.a.inputBorder}),K&&!!X&&se.length>0&&s.a.createElement(A,{list:se,onSelect:pe,isMobile:t})),s.a.createElement("div",{className:w.a.descInput},p)))))};B.defaultProps={isMobile:!1,closeOnEsc:!0,closeOnClickOutside:!0,caption:"Мы покажем события и погоду в вашем городе или ближайшем к нему месте. Если город определился неверно, укажите его самостоятельно.",description:"По возможности будут показаны события и прогноз погоды для выбранного региона",reloadKey:null},t.default=m()(B)}])},480:function(e,t,n){e.exports=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="",n(n.s=13)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(2)},function(e,t,n){e.exports={root:"rui__1UQnZ",item:"rui__11K-1",item_active:"rui__242R2 rui__11K-1",item_yabro:"rui__Z2EGE rui__11K-1",download:"rui__bG50t",sug:"rui__1B4G3",sug_withicon:"rui__JE2JP rui__1B4G3",description:"rui__1vFdk",icon:"rui__3ZT_f",icon_breaking:"rui__12iMH rui__3ZT_f",link:"rui__3DR6t",root_mobile:"rui__1815y rui__1UQnZ",acs:"rui__2EzZo",ac:"rui__1pK6f"}},function(e,t,n){e.exports={root:"rui__2x3vw",form:"rui__QgrPb",root_simple:"rui__211G8",input:"rui__A4yZy",pink:"rui__p-Y49",input_hidden:"rui__s9rdb rui__A4yZy",submit:"rui__OLIqO",root_mobile:"rui__uAYZs rui__2x3vw",root_tiny:"rui__2MI9o rui__2x3vw",suggest:"rui__2l_CV",controls:"rui__gkB3w",clear:"rui__4u39V",mode:"rui__LvL7X",mode_selected:"rui__rek7Y rui__LvL7X",tipwrapper:"rui__23aUk",tip:"rui__5uOyN",submit__icon:"rui__2o98_"}},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(302)},function(e,t,n){"use strict";n.r(t);var r=n(10),o=n.n(r),a=n(5),i=n.n(a),c=n(6),s=n.n(c),u=n(7),l=n.n(u),d=n(8),f=n.n(d),p=n(1),m=n.n(p),h=n(9),_=n.n(h),b=n(2),v=n.n(b),g=n(0),y=n.n(g),w=(n(12),n(11)),O=n.n(w),E=n(4),k=n.n(E),j=0;function S(){}var x=n(3),C=n.n(x);function N(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/<\/?b>/gi,"")}function M(e){var t=e.onClick,n=e.isMobile,r=e.list,o=e.active,a=e.handleLeave,i=e.handleHover,c=r.filter(function(e){return"ac"===e.type}),s=r.filter(function(e){return"ac"!==e.type});return r.length?g.createElement("div",{className:n?C.a.root_mobile:C.a.root,onMouseLeave:a},c.length>0&&g.createElement("div",{className:C.a.acs},c.map(function(e){return g.createElement("div",{className:C.a.ac,onClick:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return t(e.search_query||N(e.sug),"ac")}),key:e.sug+e.ind},e.sug)})),s.map(function(e,n){var r=o===n;if("rich"===e.type||"rich_poi"===e.type){var a="breaking"===e.res_img,c=!!e.res_img,s=!!e.descr;return g.createElement("div",{onMouseEnter:function(){return i(n)},className:r?C.a.item_active:C.a.item,onClick:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return t(N(e.sug))}),key:e.sug+e.ind,title:N(e.sug)},c&&g.createElement("i",{className:a?C.a.icon_breaking:C.a.icon,style:a?{}:{backgroundImage:"url(https://static.rambler.ru/icons/projects/".concat(e.res_img,"-16.svg)")}}),g.createElement("span",{className:c?C.a.sug_withicon:C.a.sug,dangerouslySetInnerHTML:{__html:e.sug}}),s&&g.createElement("span",{className:C.a.description,dangerouslySetInnerHTML:{__html:" — ".concat(e.descr)}}))}return g.createElement("div",{onMouseEnter:function(){return i(n)},className:r?C.a.item_active:C.a.item,onClick:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return t(N(e.sug))}),key:e.sug,title:N(e.sug),dangerouslySetInnerHTML:{__html:e.sug}})})):null}M.prototype.defaultProps={handleLeave:function(){},handleHover:function(){}};var P=function(e){function t(e){var n;return i()(this,t),n=l()(this,f()(t).call(this,e)),v()(m()(n),"_isMounted",!1),n.state={list:[],active:-1},n.handleArrows=n.handleArrows.bind(m()(n)),n.handleLeave=n.handleLeave.bind(m()(n)),n.handleHover=n.handleHover.bind(m()(n)),n.fetch=n.fetch.bind(m()(n)),n}return _()(t,e),s()(t,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.fetch(),window.addEventListener("keydown",this.handleArrows)}},{key:"componentDidUpdate",value:function(e){this.props.query!==e.query&&this.fetch()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("keydown",this.handleArrows)}},{key:"handleArrows",value:function(e){var t,n=this.props.onHighlight,r=this.state,o=r.active,a=r.list.filter(function(e){return"ac"!==e.type});switch(e.keyCode){case 40:t=o!==a.length-1?o+1:-1;break;case 38:t=-1===o?a.length-1:o-1}void 0!==t&&(this.setState({active:t}),n(a[t]&&N(a[t].sug),t))}},{key:"handleHover",value:function(e){this.setState({active:e})}},{key:"handleLeave",value:function(){this.setState({active:-1})}},{key:"fetch",value:function(){var e,t=this,n=this.props,r=n.number,o=n.query,a=n.suggestUrl,i=n.isDebug,c=n.isMobile,s="".concat(a,"?count=").concat(r,"&v=5").concat(c?"&count_ac=5":"","&nob=1&query=");o?(e=s+o,new Promise(function(t,n){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=e,o=t.prefix||"__jp",a=t.name||o+j;j+=1;var i,c,s=t.param||"callback",u=null!=t.timeout?t.timeout:6e4,l=encodeURIComponent,d=document.getElementsByTagName("script")[0]||document.head;function f(){i.parentNode&&i.parentNode.removeChild(i),window[a]=S,c&&clearTimeout(c)}u&&(c=setTimeout(function(){f(),n&&n(new Error("Timeout"))},u)),window[a]=function(e){f(),n&&n(null,e)},r=(r+="".concat(e.indexOf("?")>-1?"&":"?").concat(s,"=").concat(l(a))).replace("?&","?"),(i=document.createElement("script")).src=r,d.parentNode.insertBefore(i,d)}(e,{param:"jsonp"},function(e,r){e?n(e):t(r)})})).then(function(e){if(t._isMounted){var n=e.query;o===n?t.setState({list:e.suggests,active:-1}):i&&console.warn("Саджест не актуален",o,n)}}).catch(function(e){i&&console.warn(e)}):this.setState({list:[],active:-1})}},{key:"render",value:function(){var e=this.state,t=e.list,n=e.active,r=this.props,o=r.onClick,a=r.isMobile;return g.createElement(M,{list:t,active:n,onClick:o,isMobile:a,handleLeave:this.handleLeave,handleHover:this.handleHover})}}]),t}(g.Component);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(n,!0).forEach(function(t){v()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}v()(P,"defaultProps",{number:5,query:"",isMobile:!1,onClick:function(){},onHighlight:function(){}}),n.d(t,"SearchForm",function(){return A});var A=function(e){function t(e){var n;i()(this,t),n=l()(this,f()(t).call(this,e)),v()(m()(n),"inputEl",void 0),v()(m()(n),"formEl",void 0),v()(m()(n),"focusBecauseAutofocus",void 0),v()(m()(n),"focusAfterClear",void 0),v()(m()(n),"blurAfterAc",void 0),v()(m()(n),"logCounterInteraction",0),v()(m()(n),"logConterAc",0),v()(m()(n),"logHighlightedSuggestIndex",-1),v()(m()(n),"pvId",void 0);var r=n.props,o=r.initValue,a=r.autoFocus;return n.state={query:o||"",queryToSuggest:"",qexValue:"",qexType:""},n.focusBecauseAutofocus=a,n.handleVisibilityChange=n.handleVisibilityChange.bind(m()(n)),n.handleFocus=n.handleFocus.bind(m()(n)),n.handleBlur=n.handleBlur.bind(m()(n)),n.handleChange=n.handleChange.bind(m()(n)),n.handleKeys=n.handleKeys.bind(m()(n)),n.handleSubmitButton=n.handleSubmitButton.bind(m()(n)),n.handleClear=n.handleClear.bind(m()(n)),n}return _()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.qex,n=e.initValue;this.pvId=window.uniq,t&&!n&&this.fetchQex(),window.addEventListener("visibilitychange",this.handleVisibilityChange)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.handleVisibilityChange)}},{key:"componentDidUpdate",value:function(e){var t=this.props.initValue;e.initValue!==t&&this.setState({query:t||""})}},{key:"handleVisibilityChange",value:function(){document.hidden&&(this.focusBecauseAutofocus=!0)}},{key:"handleFocus",value:function(){var e=this.props.onFocusCb,t=this.state.query;e&&!this.focusAfterClear&&e(),this.focusBecauseAutofocus?this.focusBecauseAutofocus=!1:this.focusAfterClear?this.focusAfterClear=!1:this.setState({queryToSuggest:t})}},{key:"handleBlur",value:function(){var e=this,t=this.props.onBlurCb;setTimeout(function(){e.blurAfterAc?e.blurAfterAc=!1:e.setState({queryToSuggest:""},function(){t&&document.activeElement!==e.inputEl&&t()})},200)}},{key:"handleChange",value:function(e){var t=this.props.onChangeCb,n=e.target.value;this.setState({query:n,queryToSuggest:n}),t&&t(n),this.log("INTERACTION")}},{key:"handleKeys",value:function(e){switch(e.keyCode){case 38:case 40:e.preventDefault();break;case 27:this.setState({query:"",queryToSuggest:""});break;case 13:this.setState({queryToSuggest:""}),this.log("ENTER")}}},{key:"handleSubmitButton",value:function(e){e.clientX&&this.log("BUTTON")}},{key:"log",value:function(e){var t=window.mainTop100Counter||window.top100Counter;if(t&&t.sendCustomVars){var n;switch(window.uniq&&this.pvId&&window.uniq!==this.pvId&&(this.pvId=window.uniq,this.logConterAc=0,this.logCounterInteraction=0),e){case"ENTER":n=-1!==this.logHighlightedSuggestIndex?{"cerber::search::enter_suggest":1}:{"cerber::search::enter":1};break;case"INTERACTION":this.logCounterInteraction+=1,n={"cerber::search::try":this.logCounterInteraction};break;case"BUTTON":n={"cerber::search::click":1};break;case"AC":this.logConterAc+=1,n={"cerber::search::ac":this.logConterAc};break;case"SUGGEST":n={"cerber::search::click_suggest":1};break;default:n=null}n&&t.sendCustomVars(n)}}},{key:"handleClear",value:function(){var e=this,t=this.props.onClearCb;this.focusAfterClear=!0,this.setState({query:"",queryToSuggest:""},function(){e.inputEl&&e.inputEl.focus()}),t&&t()}},{key:"fetchQex",value:function(){var e=this,t=this.props,n=t.qex,r=t.isDebug,o="https://webcf.waybackmachine.org/web/20200814002735/https://api.rambler.ru/qex?json=1";"string"==typeof n&&(o+="&class=".concat(n)),fetch(o).then(function(e){return e.json()}).then(function(t){t&&"string"==typeof t.answer&&"string"==typeof t.type&&e.setState({qexValue:t.answer,qexType:t.type})}).catch(function(e){r&&console.error(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.style,a=t.qex,i=t.initValue,c=t.projectName,s=t.mobile,u=t.tiny,l=t.action,d=t.onSubmit,f=t.placeholder,p=t.openstat,m=t.suggest,h=t.suggestStyle,_=t.suggestUrl,b=t.suggestNumber,v=t.autoFocus,g=t.openOnNewTab,w=t.simpleButton,E=this.state,j=E.qexValue,S=E.query,x=E.qexType,C=E.queryToSuggest,N=a&&!i,M=f;N&&j&&(M="Например, ".concat(j));var I=k.a.root;return s?I=k.a.root_mobile:u?I=k.a.root_tiny:w&&(I=k.a.root_simple),"woman"!==c&&"mwoman"!==c||(I+=" ".concat(k.a.pink)),y.a.createElement("div",{className:O()(I,n),style:T({},r)},y.a.createElement("form",{ref:function(t){e.formEl=t},action:l,className:k.a.form,role:"search","aria-label":f,onSubmit:function(e){d(e,S)},target:g?"_blank":void 0},y.a.createElement("input",{onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeys,value:S,className:N&&!j?k.a.input_hidden:k.a.input,ref:function(t){e.inputEl=t},autoComplete:"off",placeholder:M,name:!j||S?"query":"",type:"text",autoFocus:v,spellCheck:!1,autoCorrect:"off","aria-label":"Поисковый запрос",maxLength:400,"data-cerber":"search::input"}),j&&!S&&y.a.createElement("input",{type:"hidden",name:"query",value:j}),c&&[["utm_source",c],["utm_campaign","self_promo"],["utm_medium",!S&&j?"hint":"form"],["utm_content",s?"msearch":"search"]].map(function(e){var t=o()(e,2),n=t[0],r=t[1];return y.a.createElement("input",{key:n,type:"hidden",name:n,value:r})}),N&&c&&!S&&y.a.createElement("input",{type:"hidden",name:"utm_term",value:x}),p&&y.a.createElement("input",{type:"hidden",name:"_openstat",value:p}),y.a.createElement("button",{"data-cerber":"search::button",type:"submit",className:k.a.submit,onClick:this.handleSubmitButton},w?null:"Найти"),S&&y.a.createElement("div",{className:k.a.controls},y.a.createElement("span",{className:k.a.clear,onClick:this.handleClear}))),m&&y.a.createElement("div",{className:k.a.suggest,"data-cerber":"search::suggest",style:h},C&&y.a.createElement(P,{suggestUrl:_,number:b,query:C,isMobile:s,onClick:function(t,n){"ac"===n?(e.blurAfterAc=!0,e.setState({query:t,queryToSuggest:t},function(){e.inputEl.focus()}),e.log("AC")):(e.setState({query:t,queryToSuggest:""},function(){var n=!1;d&&d({preventDefault:function(){n=!0}},t),n||e.formEl.submit()}),e.log("SUGGEST"))},onHighlight:function(t,n){e.setState({query:-1!==n?t:C,queryToSuggest:C}),e.logHighlightedSuggestIndex=n}})))}}]),t}(g.Component);v()(A,"defaultProps",{suggest:!0,suggestNumber:10,action:"https://webcf.waybackmachine.org/web/20200814002735/https://nova.rambler.ru/search",suggestUrl:"https://webcf.waybackmachine.org/web/20200814002735/https://nova.rambler.ru/suggest",placeholder:"Искать в интернете",onSubmit:function(){},autoFocus:!0,openOnNewTab:!1}),t.default=A}])},55:function(e,t,n){e.exports=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="",n(n.s=5)}([function(e,t,n){e.exports={root:"rui__2ow94","type-primary":"rui__5bGff",icon:"rui__3SQWH","type-danger":"rui__3Ivru","type-secondary":"rui__ycFZR","type-outline":"rui__3X0qV",disabled:"rui__3vyi4","size-mobile":"rui__3sBFq",children:"rui__1GdWw","size-small":"rui__4_Agz","size-medium":"rui__MTVvf"}},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(60)},function(e,t){e.exports=n(11)},function(e,t,n){"use strict";n.r(t),n.d(t,"Button",function(){return p});var r=n(2),o=n.n(r),a=n(3),i=n.n(a),c=n(1),s=n.n(c),u=n(4),l=n.n(u),d=n(0),f=n.n(d),p=function(e){var t=e.className,n=e.style,r=e.type,a=e.size,c=e.href,u=e.disabled,d=e.icon,p=e.onClick,m=e.children,h=i()(e,["className","style","type","size","href","disabled","icon","onClick","children"]),_=l()(t,f.a.root,f.a["size-".concat(a)],f.a["type-".concat(r)],u&&f.a.disabled),b=s.a.createElement("span",{className:f.a.children},m),v=d?s.a.createElement("span",{className:f.a.icon},d):null;return c?s.a.createElement("a",o()({className:_,href:c,style:n,onClick:p},h),b,v):s.a.createElement("button",o()({type:"button",className:_,style:n,onClick:p},h),b,v)};p.defaultProps={type:"primary",size:"medium",href:"",onClick:function(){},style:{}},t.default=p}])},615:function(e,t,n){e.exports=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="",n(n.s=6)}([function(e,t){e.exports=n(2)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(193)},function(e,t){e.exports=n(5)},function(e,t,n){"use strict";n.r(t);var r,o=n(2),a=n.n(o),i=n(3),c=n.n(i),s=n(1),u=n.n(s),l=n(4),d=n.n(l),f=n(5),p=n.n(f),m=n(0),h=n.n(m),_=Math.random().toString(36).slice(2),b=0,v=0,g=function(){var e=Date.now();return e>v&&(v=e,b=0),"".concat(_,"-").concat(v,"-").concat(b)},y={FIRST_CONNECTION_DELAY:1e3,REJECTION_CODE:1008,GROWTH_FACTOR:1.5,MAX_ATTEMPTS:5},w=y.FIRST_CONNECTION_DELAY,O=!0,E=0,k=function e(t,n){var o,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y;return o=new WebSocket(t),a=function(){O&&(r=setTimeout(function(){i(e(t,n,i,c)),(E+=1)>=c.MAX_ATTEMPTS&&(O=!1),w*=c.GROWTH_FACTOR},w))},o.onopen=function(){return clearTimeout(r)},o.onclose=function(e){e.code===c.REJECTION_CODE&&(O=!1),a()},o.onerror=a,o.onmessage=n,o},j=["Spam","SentBox","DraftBox","Trash"],S=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;p()(this,e),h()(this,"unseenMailsNumber",void 0),h()(this,"isInterrupted",void 0),h()(this,"subscribers",void 0),h()(this,"lastId",void 0),h()(this,"pollIntervalId",void 0),h()(this,"isWsAvailable",void 0),h()(this,"ws",void 0),h()(this,"isLoadingError",void 0),h()(this,"load",function(){return a.a.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.awrap(t.fetchMailboxFolders());case 2:t.isInterrupted||(t.emit(),!t.isLoadingError&&t.isWsAvailable||null!==t.pollIntervalId?t.isWsAvailable&&(t.connectToWS(),t.clearPollInterval()):t.pollIntervalId=setInterval(t.load,12e4));case 3:case"end":return e.stop()}})}),h()(this,"subscribe",function(e){return t.lastId+=1,t.subscribers[t.lastId]=e,function(){return delete t.subscribers[t.lastId]}}),h()(this,"emit",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.unseenMailsNumber;t.unseenMailsNumber=e,Object.keys(t.subscribers).forEach(function(n){return t.subscribers[n](e)})}),h()(this,"interrupt",function(){t.unsubscribe(),t.isInterrupted=!0}),h()(this,"unsubscribe",function(){t.ws&&t.ws.close(),t.clearPollInterval()}),h()(this,"onmessage",function(e){var n=JSON.parse(e.data),r=n.type,o=n.payload;if(!o||"object"!==d()(o)||!j.includes(o.box)){switch(r){case"update_flags":t.unseenMailsNumber+=o.old_flags.seen-o.new_flags.seen;break;case"new_mail":t.unseenMailsNumber+=o.seen?0:1}t.emit(t.unseenMailsNumber)}}),h()(this,"connectToWS",function(){t.ws&&t.ws.close(),t.ws=k("wss://mail.rambler.ru/ws",t.onmessage,function(e){t.ws=e})}),h()(this,"clearPollInterval",function(){null!==t.pollIntervalId&&(clearInterval(t.pollIntervalId),t.pollIntervalId=null)}),h()(this,"fetchMailboxFolders",function(){return fetch("https://webcf.waybackmachine.org/web/20200814002735/https://mail.rambler.ru/rpc",{method:"POST",credentials:"include",headers:{"x-rambler-mail-client-version":"1.0.0","x-rambler-mail-client-type":"unseen_mails_counter","x-rambler-mail-method":"Rambler::Mail::get_mailbox_folders","content-type":"application/json; charset=utf-8"},body:JSON.stringify({jsonrpc:"2.0",method:"Rambler::Mail::get_mailbox_folders",params:[{create_system_folders:!1}],id:g()})}).then(function(e){return e.json()}).then(function(e){var n=e.result;return n.error?Promise.reject():(t.isLoadingError=!1,t.isWsAvailable=!!n.mailbox.ws,t.isInterrupted||(t.unseenMailsNumber=n.mailbox.unseen_incoming),Promise.resolve())}).catch(function(){t.isLoadingError=!0,t.isInterrupted||(t.unseenMailsNumber=0)})}),this.unseenMailsNumber=n,this.subscribers={},this.lastId=0,this.pollIntervalId=null,this.isWsAvailable=!1,this.ws=null,this.isInterrupted=!1};n.d(t,"MailCounter",function(){return x});var x=function(e){var t=e.style,n=e.collapseBigNumbers,r=e.renderZero,o=e.className,i=e.renderString,l=e.onChange,d=e.children,f=Object(s.useState)(null),p=c()(f,2),m=p[0],h=p[1],_=Object(s.useRef)(),b=Object(s.useRef)();Object(s.useEffect)(function(){var t,n;return a.a.async(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=!window.unseenMailsEmitter,n=void 0!==e.unseenMailsNumber,(t||n)&&(t?window.unseenMailsEmitter=new S(e.unseenMailsNumber):n&&window.unseenMailsEmitter.interrupt()),!n){r.next=7;break}window.unseenMailsEmitter.emit(e.unseenMailsNumber),r.next=14;break;case 7:if(!t){r.next=10;break}return r.next=10,a.a.awrap(window.unseenMailsEmitter.load());case 10:b.current=window.unseenMailsEmitter.subscribe(h),h(window.unseenMailsEmitter.unseenMailsNumber),window.ramblerIdHelper=window.ramblerIdHelper||[],window.ramblerIdHelper.push(function(){window.ramblerIdHelper.addListener("login",window.unseenMailsEmitter.load),window.ramblerIdHelper.addListener("oauthlogin",window.unseenMailsEmitter.load)});case 14:case"end":return r.stop()}}),_.current=e.unseenMailsNumber,function(){void 0===e.unseenMailsNumber?(b.current&&b.current(),window.ramblerIdHelper.push(function(){window.ramblerIdHelper.removeListener("login",window.unseenMailsEmitter.load),window.ramblerIdHelper.removeListener("oauthlogin",window.unseenMailsEmitter.load)})):(window.unseenMailsEmitter.isInterrupted=!1,window.unseenMailsEmitter.load())}},[]),Object(s.useEffect)(function(){void 0!==e.unseenMailsNumber&&e.unseenMailsNumber!==_.current&&window.unseenMailsEmitter.emit(e.unseenMailsNumber),_.current=e.unseenMailsNumber}),Object(s.useEffect)(function(){l&&null!==m&&l(m)},[l,m]);var v=void 0===e.unseenMailsNumber?m:e.unseenMailsNumber;if(null===v)return null;if(Object(s.isValidElement)(d))return u.a.cloneElement(d,{mailsNumber:v});if(!r&&0===v)return null;var g=n&&v>99?"99+":"".concat(v);return i?g:u.a.createElement("span",{className:o||"",style:t},g)};t.default=x}])},617:function(e,t,n){e.exports=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="",n(n.s=6)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports={root:"rui__UDjKR",real:"rui__3fCWa",fake:"rui__1Mtbm",isMobile:"rui__2FM_O",isChecked:"rui__3EAPA",isEnabled:"rui__nZrj8",isDisabled:"rui__1CCBg",labelright:"rui__21IoC",labelleft:"rui__NZD5I",label:"rui__1RSKF"}},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(60)},function(e,t){e.exports=n(11)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),a=n(4),i=n.n(a),c=n(0),s=n.n(c),u=n(5),l=n.n(u),d=n(1),f=n.n(d),p=n(2),m=n.n(p),h=Math.random().toString(36).slice(2),_=0,b=0,v=s.a.createContext({name:"",currentValue:"",setValue:function(){}}),g=function(e){var t=e.className,n=e.style,r=e.isMobile,o=e.name,a=e.value,i=e.children,u=e.onChange,l=Object(c.useMemo)(function(){return o||((e=Date.now())>b&&(b=e,_=0),"".concat(h,"-").concat(b,"-").concat(_));var e},[o]),d=Object(c.useState)(!1),f=m()(d,2),p=f[0],g=f[1],y=Object(c.useState)(a),w=m()(y,2),O=w[0],E=w[1],k=Object(c.useState)(a),j=m()(k,2),S=j[0],x=j[1];Object(c.useEffect)(function(){S!==a&&(O!==a&&E(a),x(a))},[a]),Object(c.useEffect)(function(){p&&u(O)},[O]),Object(c.useEffect)(function(){g(!0)},[]);var C={isMobile:r,name:l,currentValue:O,setValue:E};return s.a.createElement(v.Provider,{value:C},s.a.createElement("div",{className:t,style:n},i))};g.defaultProps={style:{},onChange:function(){}};var y=g;n.d(t,"RadioButton",function(){return w}),n.d(t,"RadioGroup",function(){return y});var w=function(e){var t=e.className,n=e.style,r=e.labelPosition,a=e.value,u=e.disabled,d=e.children,p=i()(e,["className","style","labelPosition","value","disabled","children"]),m=Object(c.useContext)(v),h=m.isMobile,_=m.currentValue,b=m.name,g=m.setValue,y=l()(f.a.root,h&&f.a.isMobile,f.a["label".concat(r)],u?f.a.isDisabled:f.a.isEnabled,a===_&&f.a.isChecked,t);return s.a.createElement("label",o()({className:y,style:n},p),s.a.createElement("input",{className:f.a.real,type:"radio",name:b,value:a,checked:a===_,disabled:u,onChange:function(){return g(a)}}),s.a.createElement("span",{className:f.a.fake}),s.a.createElement("span",{className:f.a.label},d))};w.defaultProps={style:{},labelPosition:"right",value:null,disabled:!1},t.default=w}])},618:function(e,t,n){e.exports=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="",n(n.s=8)}([function(e,t){e.exports=n(2)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(9)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return g});var r=n(2),o=n.n(r),a=n(3),i=n.n(a),c=n(4),s=n.n(c),u=n(5),l=n.n(u),d=n(6),f=n.n(d),p=n(7),m=n.n(p),h=n(0),_=n.n(h),b=n(1),v=n.n(b);function g(e){var t,n;return n=t=function(t){function n(){var e,t;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=s()(this,(e=l()(n)).call.apply(e,[this].concat(a))),_()(f()(t),"state",{isMounted:!1}),t}return m()(n,t),i()(n,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"render",value:function(){return this.state.isMounted?v.a.createElement(e,this.props):null}}]),n}(v.a.Component),_()(t,"displayName","withClientsideOnly(".concat(e.displayName,")")),n}}])},63:function(e,t,n){e.exports=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="",n(n.s=6)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(88)},function(e,t){e.exports=n(11)},function(e,t,n){"use strict";n.r(t);var r,o=n(2),a=n.n(o),i=n(1),c=n.n(i),s=n(0),u=n.n(s),l=n(3),d=n.n(l);!function(e){e.OK="0",e.EMPTY="1",e.TRY_ON_CLIENT="2"}(r||(r={}));var f=2,p=3,m=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];(t=console).log.apply(t,["🔨%c @rambler-components/ad: ".concat(n," %c").concat(e),"color: #3564F7; font-weight: 600;","color: #0B6089; font-weight: 500; font-style: italic;"].concat(o))};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=n(4),v=n.n(b),g="undefined"==typeof window,y=n(5),w=n.n(y),O=["ad","ad-banner","adbanner","nav-ad","pub_300x250","pub_300x250m","pub_728x90","text-ad","textAd","text_ad","text_ads","text-ads","text-ad-links"],E=function(e){var t=e.adblockState,n=Object(s.useRef)(),r=c()(t,2)[1];return Object(s.useEffect)(function(){var e=window.getComputedStyle(n.current,null);r("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility"))},[r]),u.a.createElement("div",{className:w()(O),ref:n,style:{width:1,height:1,position:"absolute",left:-1e5}})};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S="undefined"==typeof window,x={isAdblock:!1,isCapirsReady:!S&&void 0!==window.Adf,padId:null,runtimeConfig:null},C=u.a.createContext(x),N={placeholderCount:1,callIndex:0,pageNumber:0},M=function(e){var t=e.isDebug,n=e.padId,r=e.children,o=Object(s.useRef)(null),i=Object(s.useState)(!1),l=Object(s.useRef)(S?0:window.history.length),d=c()(i,1)[0];Object(s.useEffect)(function(){l.current=window.history.length},[]);var f=function(e){var t=e.isDebug,n=e.isAdblock,r=Object(s.useState)(!g&&void 0!==window.Adf&&!1===n),o=c()(r,2),a=o[0],i=o[1];return Object(s.useEffect)(function(){g||(n&&t&&m("Обнаружен AdBlock, баннеры не будут загружаться, если есть фоллбеки - они будут показаны сразу"),n?i(!1):void 0===window.Adf?(t&&m("Библиотека Capirs.js не готова, ожидаем on-ready колбек"),window.begun_callbacks={lib:{init:function(){t&&m("Вызов Capirs.js on-ready колбека"),i(!0)}}}):(t&&m("Библиотека Capirs.js загружена и готова"),i(!0)))},[n,t]),a}({isDebug:t,isAdblock:d}),p=v()(function(){window.history&&void 0!==window.Adf&&"function"==typeof window.Adf.banner.spaPageUpdate&&(l.current!==window.history.length||window.Adf.banner.spaPageUpdate())},100,{leading:!0,trailing:!1});return u.a.createElement(C.Provider,{value:{isCapirsReady:f,isAdblock:d,padId:n,runtimeConfig:o,reloadSSPSession:p,initRuntime:function(e){var t=e.id;null===o.current?o.current=a()({},t,j({},N)):void 0===o.current[t]&&(o.current[t]=j({},N))},getPlaceholderID:function(e){var t=e.id,n=e.idPrefix,r="";return o.current[t].placeholderCount>1&&(r="-".concat(o.current[t].placeholderCount)),"".concat(n,"-").concat(t).concat(r)}}},u.a.createElement(E,{adblockState:i}),r)},P=u.a.createElement("script",{id:"CAPIRS_ADDITIONAL_CONFIG"}),I=u.a.createElement("script",{type:"text/javascript",src:"//webcf.waybackmachine.org/web/20200814002735/https://ssp.rambler.ru/capirs_async.js",async:!0}),T=function(e){var t=e.resetSyncBannersStateOnHistoryChange,n=void 0===t||t,r=e.collectAnalyticsOnHistoryChange,o=void 0===r||r,a=e.removeAdvertisingBySubscription,i=void 0!==a&&a;return u.a.createElement(u.a.Fragment,null,u.a.createElement("script",{dangerouslySetInnerHTML:{__html:"\n window.CAPIRS_CONFIG = window.CAPIRS_CONFIG || {};\n window.CAPIRS_CONFIG.RESET_SYNC_BANNERS_STATE_ON_HISTORY_CHANGE = ".concat(n,";\n window.CAPIRS_CONFIG.COLLECT_ANALITYCS_ON_HISTORY_CHANGE = ").concat(o,";\n window.CAPIRS_CONFIG.REMOVE_ADVERTISING_BY_SUBSCRIPTION = ").concat(i,";\n ")}}),P,I)};T.defaultProps={collectAnalyticsOnHistoryChange:!0,resetSyncBannersStateOnHistoryChange:!0,removeAdvertisingBySubscription:!1};var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.resetSyncBannersStateOnHistoryChange,n=void 0===t||t,r=e.collectAnalyticsOnHistoryChange,o=void 0===r||r,a=e.removeAdvertisingBySubscription,i=void 0!==a&&a;return"\n <script>\n window.CAPIRS_CONFIG = window.CAPIRS_CONFIG || {};\n window.CAPIRS_CONFIG.RESET_SYNC_BANNERS_STATE_ON_HISTORY_CHANGE = ".concat(n,";\n window.CAPIRS_CONFIG.COLLECT_ANALITYCS_ON_HISTORY_CHANGE = ").concat(o,";\n window.CAPIRS_CONFIG.REMOVE_ADVERTISING_BY_SUBSCRIPTION = ").concat(i,";\n <\/script>\n <script id=\"CAPIRS_ADDITIONAL_CONFIG\"><\/script>\n <script type='text/javascript' src='//webcf.waybackmachine.org/web/20200814002735/https://ssp.rambler.ru/capirs_async.js' async><\/script>\n")};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,"AdComponent",function(){return B}),n.d(t,"AdProvider",function(){return M}),n.d(t,"AdsContext",function(){return C}),n.d(t,"capirsLoader",function(){return A}),n.d(t,"CapirsLoaderComponent",function(){return T});var D="undefined"==typeof window,B=function(e){var t=e.id,n=e.options,o=e.isSapirs,i=e.misc,l=e.className,h=e.style,b=e.onRenderStyle,v=e.isFallbackDisabled,g=e.children,y=e.hasPrimeSubscription,w=Object(s.useContext)(C),O=w.isAdblock,E=w.runtimeConfig,k=w.getPlaceholderID,j=w.initRuntime,S=Object(s.useState)(0),x=c()(S,1)[0],N=Object(s.useState)({isLoaded:!1,showFallback:!1}),M=c()(N,1)[0],P=Object(s.useRef)(),I=Object(s.useRef)(),T=Object(s.useState)(null),A=c()(T,2),R=A[0],B=A[1],F=Object(s.useRef)({adNode:P,scrollAnchor:I,renderResult:null,isMounted:!1,wipeBeforeRender:!1,sapirsAd:null,sapirsPlaceholder:"",sapirsState:N});if(D&&null===R){if(j(e),B(k(e)),o){var H=E.current[t].placeholderCount,z=JSON.stringify({id:t,options:n,misc:i});F.current.sapirsPlaceholder="\x3c!--sapirs:".concat(t,":").concat(H,":").concat(z,"--\x3e")}E.current[t].placeholderCount+=1}Object(s.useEffect)(function(){return j(e),B(k(e)),E.current[t].placeholderCount+=1,F.current.isMounted=!0,function(){F.current.isMounted=!1,E.current[t].placeholderCount-=1}},[]),function(e){var t=e.props,n=e.context,o=Object(s.useContext)(C).runtimeConfig,a=t.id,i=t.isSapirs;Object(s.useEffect)(function(){if(i&&null===n.current.sapirsAd&&void 0!==window.__SAPIRS_STATUS__){var e=c()(n.current.sapirsState,2)[1];o.current[a].callIndex+=1;var t=o.current[a].callIndex,s="".concat(a,"-").concat(t),u=window.__SAPIRS_STATUS__[s];void 0!==u&&([r.OK,r.EMPTY].includes(u.status)&&(o.current[a].pageNumber+=1),e({isLoaded:u.status===r.OK,showFallback:u.status===r.EMPTY}),n.current.sapirsAd=u)}},[])}({props:e,context:F}),function(e){var t=e.props,n=e.context,o=e.providerContext,i=e.renderState,u=e.placeholderIDState,l=t.id,h=t.isLazy,b=t.misc,v=t.padId,g=t.isDebug,y=t.options,w=t.isSapirs,O=t.reloadKey,E=c()(u,1)[0],k=c()(i,2),j=k[0],S=k[1],x=o.isCapirsReady&&0===j,C=Object(s.useCallback)(function(){var e,t,r,a,i,c,s,u,w;return d.a.async(function(O){for(;;)switch(O.prev=O.next){case 0:return e=n.current.sapirsAd,t=o.runtimeConfig,r=o.padId,a=v||r,i=null===e?-1:e.reqIndex,void 0!==window["DSP-Branding"]&&window["DSP-Branding"].length>0&&(m("Removing DSP-Branding"),Object.keys(window["DSP-Branding"].banners).forEach(function(e){window["DSP-Branding"].banners[e].removeBanner()})),g&&m("Старт отрисовки",E),t.current[l].pageNumber+=1,S(1),(c=_({},y)).pageNumber=t.current[l].pageNumber,O.prev=10,s={"begun-auto-pad":a,"begun-block-id":l,"begun-misc":b,wipeBeforeRender:n.current.wipeBeforeRender},i>=0&&(s.rqNumber=i),u=h?"sspScroll":"ssp",O.next=16,d.a.awrap(window.Adf.banner[u](E,c,s));case 16:w=O.sent,g&&m("Вызов через Capirs завершен, статус: ".concat(w.status),E,{SSPOptions:s,capirsOptions:c}),n.current.renderResult=w,n.current.isMounted?S(n.current.renderResult.status?f:p):g&&m("Вызов через Capirs завершен, но DOM-нода была удалена",E),O.next=26;break;case 22:O.prev=22,O.t0=O.catch(10),n.current.renderResult={status:!1,reason:O.t0},S(p);case 26:case"end":return O.stop()}},null,null,[[10,22]])},[l,E,O]);Object(s.useEffect)(function(){var e=n.current.adNode,t=o.reloadSSPSession;O>1&&(S(0),e.current.innerHTML="",n.current.wipeBeforeRender=!0,t())},[O]),Object(s.useEffect)(function(){w&&O<=1||!1===x||null===E||C()},[x,O,E]),Object(s.useEffect)(function(){var e=o.runtimeConfig,t="".concat(l,"-").concat(e.current[l].callIndex),i=w&&O<=1,c=void 0!==window.__SAPIRS_STATUS__&&window.__SAPIRS_STATUS__[t];if(!1!==w&&!1!==i&&!1!==n.current.isMounted&&null!==E)if(void 0!==c){var s;g&&m((s={},a()(s,r.OK,"Код: 0. S2S-баннер вставлен в разметку"),a()(s,r.EMPTY,"Код: 1. S2S-баннер не сторговался и не был вставлен в разметку, также не будет вызван на клиенте"),a()(s,r.TRY_ON_CLIENT,"Код: 2. S2S-баннер не удалось получить на сервере, будет запрошен на клиенте"),s)[c.status],E),c.status===r.TRY_ON_CLIENT&&C()}else console.error("@rambler-components/ad: Не удалось найти конфиг для s2s-баннера: ".concat(t,", баннер не будет отрисован"))},[l,w,O,E])}({props:e,context:F,providerContext:w,renderState:S,placeholderIDState:T}),function(e){var t=e.props,n=e.context.current,r=n.placeholderID,o=n.renderResult,a=e.renderState,i=t.id,u=t.onRender,l=t.isDebug,d=c()(a,1)[0];Object(s.useEffect)(function(){[f,p].includes(d)&&(u&&u(o),l&&(d===f?m("Отрисовка полностью завершена",r):d===p&&m('Отрисовка завершена с ошибками: "'.concat(o.reason,'", status: ').concat(o.status),r)))},[u,l,d,i,o,r])}({props:e,context:F,renderState:S});var V=!v&&(y||O||x===p||M.showFallback)&&g,W=M.isLoaded||b&&x===f?b:{};return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{ref:I}),u.a.createElement("div",{ref:P,id:R,className:l,style:L({},h,{},W,{display:V?"none":"block"}),dangerouslySetInnerHTML:{__html:F.current.sapirsPlaceholder},suppressHydrationWarning:!0}),V?g:null)};B.defaultProps={onRenderStyle:null,isDebug:!1,isLazy:!1,isSapirs:!1,idPrefix:"adfox",options:{},reloadKey:null,isFallbackDisabled:!1,misc:0,hasPrimeSubscription:!1},t.default=B}])},71:function(e,t,n){},964:function(e,t,n){e.exports=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="",n(n.s=20)}([function(e,t){e.exports=n(1)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(15)},function(e,t,n){e.exports={root:"rui__3R9za",isMobile:"rui__2xGaf",caption:"rui__tiY5T",rows:"rui__3wdKl",row:"rui__3Q0ja",desc:"rui__1wdQw",descInput:"rui__3Q8TE",input:"rui__2NIBR",inputField:"rui__5nKdQ",inputBorder:"rui__2fBkg",animateDots:"rui__1br-T"}},function(e,t){e.exports=n(30)},function(e,t,n){e.exports={root:"rui__2kKkW",mounted:"rui__d8311",isMobile:"rui__3PX44",item:"rui__2agY3",selected:"rui__1Nn0T"}},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(617)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(618)},function(e,t){e.exports=n(965)},function(e,t){e.exports=n(367)},function(e,t){e.exports=n(49)},function(e,t){e.exports=n(88)},function(e,t,n){e.exports={root:"rui__1kQTC",hidden:"rui__aFxfe",backdrop:"rui__3C1fA",modal:"rui__3vqEc",isMobile:"rui__pueB0",title:"rui__1knk_",closeIcon:"rui__yyWaz",controls:"rui__3aUxv",okButton:"rui__3-oHc",cancelButton:"rui__2anhy"}},function(e,t,n){e.exports={root:"rui__UDjKR",isHorizontal:"rui__2sRFT",real:"rui__3fCWa",fake:"rui__1Mtbm",isMobile:"rui__2FM_O",isChecked:"rui__3EAPA",isEnabled:"rui__nZrj8",isDisabled:"rui__1CCBg",labelright:"rui__21IoC",labelleft:"rui__NZD5I",label:"rui__1RSKF",horizontalGroup:"rui__i1x7Q"}},function(e,t,n){e.exports={root:"rui__2ow94","type-primary":"rui__5bGff",icon:"rui__3SQWH","type-danger":"rui__3Ivru","type-secondary":"rui__ycFZR","type-outline":"rui__3X0qV",disabled:"rui__3vyi4","size-mobile":"rui__3sBFq",children:"rui__1GdWw","size-small":"rui__4_Agz","size-medium":"rui__MTVvf"}},function(e,t,n){e.exports={root:"rui__2o6IB",dots:"rui___yrN7",animateDots:"rui__1QEyT"}},function(e,t){e.exports=n(302)},function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r),a=n(1),i=n.n(a),c=n(0),s=n.n(c),u=n(6),l=n.n(u),d=n(4),f=n.n(d),p=n(10),m=n.n(p),h=n(11),_=n.n(h),b=(n(15),n(7)),v=(n(16),n(8)),g=n.n(v),y=(n(17),n(3)),w=n.n(y),O=n(12),E=n.n(O),k=(n(18),n(13)),j=n.n(k),S=n(2),x=n.n(S),C=(n(19),n(14)),N="https://webcf.waybackmachine.org/web/20200814002735/https://www.rambler.ru/location",M=function(e){var t;return x.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!1!==e.ok&&200===e.status){n.next=2;break}throw new Error("Failed to get geo data (".concat(e.status," ").concat(e.statusText,")"));case 2:return n.next=4,x.a.awrap(e.json());case 4:if(!(t=n.sent).message){n.next=7;break}throw new Error(t.message);case 7:return n.abrupt("return",t);case 8:case"end":return n.stop()}})},P=n.n(C)()(function(e,t){var n,r,o;return x.a.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(e){a.next=3;break}return t([]),a.abrupt("return");case 3:return a.next=5,x.a.awrap(fetch("".concat(N,"/geo_list/?s=").concat(encodeURIComponent(e))));case 5:return n=a.sent,a.next=8,x.a.awrap(M(n));case 8:if(a.t0=a.sent,a.t0){a.next=11;break}a.t0={};case 11:r=a.t0,o=Object.keys(r).slice(0,6).reduce(function(e,t){return[].concat(j()(e),[r[t]])},[]),t(o);case 14:case"end":return a.stop()}})},300),I=n(5),T=n.n(I),A=function(e){var t=e.list,n=e.onSelect,r=e.isMobile,o=Object(c.useRef)(),a=Object(c.useRef)(),u=Object(c.useState)(-1),d=i()(u,2),f=d[0],p=d[1],m=Object(c.useState)(!1),h=i()(m,2),_=h[0],b=h[1];Object(c.useEffect)(function(){o.current=f},[f]),Object(c.useEffect)(function(){p(-1),a.current=t},[t]);var v=Object(c.useCallback)(function(e){e.preventDefault()},[]),g=Object(c.useCallback)(function(e){n(e,a.current[o.current])},[]),y=Object(c.useCallback)(function(e){var t=o.current,n=a.current.length;switch(e.key){case"ArrowUp":p((0===t?n:t)-1),e.preventDefault();break;case"ArrowDown":p(t===n-1?0:t+1),e.preventDefault();break;case"Enter":g(e),e.preventDefault()}},[]);return Object(c.useEffect)(function(){return window.addEventListener("keydown",y,!0),b(!0),function(){window.removeEventListener("keydown",y,!0)}},[]),s.a.createElement("div",{className:l()(T.a.root,_&&T.a.mounted,r&&T.a.isMobile)},t.map(function(e,t){return s.a.createElement("button",{key:e.id,className:l()(T.a.item,t===f&&T.a.selected),type:"button",onMouseEnter:function(){return p(t)},onMouseLeave:function(){return p(-1)},onMouseDown:v,onClick:function(t){return n(t,e)},"data-cerber-topline-mob":"burger::region_change::choose::suggest-".concat(t)},"".concat(e.name,", ").concat(e.parents))}))};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var L=s.a.createElement(E.a,null),D=s.a.createElement(b.RadioButton,{value:1,"data-cerber-topline-mob":"burger::region_change::choose"},"Задать"),B=function(e){var t=e.isMobile,n=e.isOpen,r=e.closeOnEsc,a=e.closeOnClickOutside,u=e.onClose,d=e.caption,p=e.description,m=e.reloadKey,h=e.onChange,v=Object(c.useRef)(),y=Object(c.useState)(0),O=i()(y,2),E=O[0],k=O[1],j=Object(c.useState)(1),S=i()(j,2),C=S[0],I=S[1],T=Object(c.useState)(null),B=i()(T,2),F=B[0],H=B[1],z=Object(c.useState)(1),V=i()(z,2),W=V[0],q=V[1],G=Object(c.useState)(!1),U=i()(G,2),K=U[0],Y=U[1],Q=Object(c.useState)(""),Z=i()(Q,2),X=Z[0],J=Z[1],$=Object(c.useState)(!0),ee=i()($,2),te=ee[0],ne=ee[1],re=function(){var e=Object(c.useState)({}),t=i()(e,2),n=t[0],r=t[1];return Object(c.useEffect)(function(){var e,t;try{x.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,x.a.awrap(fetch("".concat(N,"/autodetect")));case 2:return e=n.sent,n.next=5,x.a.awrap(M(e));case 5:t=n.sent,r(t);case 7:case"end":return n.stop()}})}catch(e){console.error("@rambler-components/geo-modal: ".concat(e.message))}},[]),n}(),oe=function(e,t){var n=Object(c.useState)({}),r=i()(n,2),o=r[0],a=r[1],s=Object(c.useState)(!1),u=i()(s,2),l=u[0],d=u[1],f=Object(c.useState)(!1),p=i()(f,2),m=p[0],h=p[1];return Object(c.useEffect)(function(){(e>1||t>1)&&d(!0)},[t,e]),Object(c.useEffect)(function(){e>1&&h(!0)},[e]),Object(c.useEffect)(function(){t>1&&h(!1)},[t]),Object(c.useEffect)(function(){var e,t;try{x.a.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,x.a.awrap(fetch("".concat(N,"/current"),{credentials:"include",headers:{Cookies:window.document.cookie}}));case 2:return e=n.sent,n.next=5,x.a.awrap(M(e));case 5:t=n.sent,o.id!==t.id&&a(t);case 7:case"end":return n.stop()}})}catch(e){console.error("@rambler-components/geo-modal: ".concat(e.message))}},[t,e]),{current:o,isUpdated:l,isHimself:m}}(W,m),ae=oe.current,ie=oe.isUpdated,ce=oe.isHimself,se=function(e){var t=Object(c.useState)([]),n=i()(t,2),r=n[0],o=n[1];return Object(c.useEffect)(function(){try{P(e,o)}catch(e){o([]),console.error("@rambler-components/geo-modal: ".concat(e.message))}},[e]),r}(X),ue=Object(c.useCallback)(function(){q(W+1)},[W]),le=Object(c.useCallback)(function(){if(!f()(re)&&!f()(ae)){var e=re.id===ae.id;k(1),I(Number(e?0:1)),H(e?null:ae)}},[re,ae]),de=Object(c.useCallback)(function(e){1===e?v.current.focus():(v.current.blur(),J(""),n&&k(2),I(0),H({}))},[n,v]),fe=Object(c.useCallback)(function(e){J(e.target.value)},[]),pe=Object(c.useCallback)(function(e,t){f()(t)||(J(""),v.current.blur(),H(t))},[v]),me=Object(c.useCallback)(function(){var e=!f()(F)&&!!F.id,t=e?F.id:"false",n=e?new Date(Date.now()+94608e7):new Date(0);window.document.cookie="geoid=".concat(t,"; Domain=.rambler.ru; Path=/; Expires=").concat(n.toUTCString()),u(),ue()},[F]),he=Object(c.useCallback)(function(e){"Enter"===e.key&&me()},[me]);return Object(c.useEffect)(function(){f()(ae)||h(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(n,!0).forEach(function(t){o()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},ae,{isUpdated:ie,isHimself:ce}))},[ae]),Object(c.useEffect)(function(){le()},[re,ae]),Object(c.useEffect)(function(){n||(le(),window.removeEventListener("keydown",he,!0))},[n]),Object(c.useEffect)(function(){1!==C||K||f()(F)||!F.name||n&&X||J(F.name)},[F]),Object(c.useEffect)(function(){K&&(1!==C&&I(1),f()(F)||X!==F.name||J(""),H({}),k(2))},[K]),Object(c.useEffect)(function(){2!==E||1===C&&f()(F)?(ne(!0),window.removeEventListener("keydown",he,!0)):(ne(!1),window.addEventListener("keydown",he,!0))},[E,C,F]),s.a.createElement(_.a,{title:"Изменение региона",isMobile:t,isOpen:n,onClose:u,closeOnEsc:r,closeOnClickOutside:a,okButton:s.a.createElement(g.a,{size:t?"mobile":"small",disabled:te,onClick:me,"data-cerber-topline-mob":"burger::region_change::save"},"Сохранить"),cancelButton:s.a.createElement(g.a,{type:"outline",size:t?"mobile":"small",onClick:u,"data-cerber-topline-mob":"burger::region_change::close"},"Отмена")},s.a.createElement("div",{className:l()(w.a.root,t&&w.a.isMobile)},!t&&s.a.createElement("div",{className:w.a.caption},d),!E&&L,!!E&&s.a.createElement(b.RadioGroup,{value:C,onChange:de,isMobile:t},s.a.createElement("div",{className:w.a.row},s.a.createElement(b.RadioButton,{value:0,"data-cerber-topline-mob":"burger::region_change::auto"},re.name),s.a.createElement("div",{className:w.a.desc},"Определяется автоматически")),s.a.createElement("div",{className:w.a.row},D,s.a.createElement("div",{className:w.a.input},s.a.createElement("input",{className:w.a.inputField,type:"text",placeholder:"Введите город или место",onFocus:function(){return Y(!0)},onBlur:function(){return Y(!1)},onChange:fe,value:X,disabled:0===E,ref:v}),s.a.createElement("div",{className:w.a.inputBorder}),K&&!!X&&se.length>0&&s.a.createElement(A,{list:se,onSelect:pe,isMobile:t})),s.a.createElement("div",{className:w.a.descInput},p)))))};B.defaultProps={isMobile:!1,closeOnEsc:!0,closeOnClickOutside:!0,caption:"Мы покажем события и погоду в вашем городе или ближайшем к нему месте. Если город определился неверно, укажите его самостоятельно.",description:"По возможности будут показаны события и прогноз погоды для выбранного региона",reloadKey:null},t.default=m()(B)}])},965:function(e,t,n){e.exports=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="",n(n.s=5)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports={root:"rui__1kQTC",hidden:"rui__aFxfe",backdrop:"rui__3C1fA",modal:"rui__3vqEc",isMobile:"rui__pueB0",title:"rui__1knk_",closeIcon:"rui__yyWaz",controls:"rui__3aUxv",okButton:"rui__3-oHc",cancelButton:"rui__2anhy"}},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(81)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),a=n(0),i=n.n(a),c=n(4),s=n.n(c),u=n(2),l=n.n(u),d=n(1),f=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var m=i.a.createElement("path",{fill:"currentColor",d:"M7.5 6.58L1.742.824a.4.4 0 00-.565 0l-.354.354a.4.4 0 000 .565L6.581 7.5.823 13.258a.4.4 0 000 .565l.354.354a.4.4 0 00.565 0L7.5 8.419l5.758 5.758a.4.4 0 00.565 0l.354-.354a.4.4 0 000-.565L8.419 7.5l5.758-5.758a.4.4 0 000-.565l-.354-.354a.4.4 0 00-.565 0L7.5 6.581z"}),h=function(e){return i.a.createElement("svg",p({width:15,height:15},e),m)};n.d(t,"Modal",function(){return b});var _=i.a.createElement(h,null),b=function(e){var t=e.className,n=e.style,r=e.backdropClassName,c=e.backdropStyle,u=e.isMobile,d=e.title,p=e.showClose,m=e.isOpen,h=e.okButton,b=e.cancelButton,v=e.closeOnEsc,g=e.closeOnClickOutside,y=e.onClose,w=e.children,O=Object(a.useState)(document.createElement("div")),E=o()(O,1)[0],k=Object(a.useCallback)(function(e){"Escape"===e.key&&y()},[]);return Object(a.useEffect)(function(){return window.document.body.appendChild(E),v&&window.addEventListener("keydown",k,!0),function(){window.document.body.removeChild(E),window.removeEventListener("keydown",k,!0)}},[E]),s.a.createPortal(i.a.createElement("div",{className:l()(f.a.root,!m&&f.a.hidden,u&&f.a.isMobile)},i.a.createElement("div",{className:l()(f.a.backdrop,r),style:c,onClick:function(){return g&&y()}}),i.a.createElement("div",{className:l()(f.a.modal,t),style:n},i.a.createElement("div",{className:f.a.title},d),p&&i.a.createElement("button",{className:f.a.closeIcon,type:"button",onClick:y},_),w,(h||b)&&i.a.createElement("div",{className:f.a.controls},h&&i.a.createElement("div",{className:f.a.okButton},h),b&&i.a.createElement("div",{className:f.a.cancelButton},b)))),E)};b.defaultProps={style:{},backdropStyle:{},title:"",showClose:!0,isOpen:!1,closeOnEsc:!0,closeOnClickOutside:!0},t.default=b}])},966:function(e,t,n){e.exports=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="",n(n.s=5)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports={root:"rui__1kQTC",hidden:"rui__aFxfe",backdrop:"rui__3C1fA",modal:"rui__3vqEc",isMobile:"rui__pueB0",title:"rui__1knk_",closeIcon:"rui__yyWaz",controls:"rui__3aUxv",okButton:"rui__3-oHc",cancelButton:"rui__2anhy"}},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(81)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),a=n(0),i=n.n(a),c=n(4),s=n.n(c),u=n(2),l=n.n(u),d=n(1),f=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var m=i.a.createElement("path",{fill:"currentColor",d:"M7.5 6.58L1.742.824a.4.4 0 00-.565 0l-.354.354a.4.4 0 000 .565L6.581 7.5.823 13.258a.4.4 0 000 .565l.354.354a.4.4 0 00.565 0L7.5 8.419l5.758 5.758a.4.4 0 00.565 0l.354-.354a.4.4 0 000-.565L8.419 7.5l5.758-5.758a.4.4 0 000-.565l-.354-.354a.4.4 0 00-.565 0L7.5 6.581z"}),h=function(e){return i.a.createElement("svg",p({width:15,height:15},e),m)};n.d(t,"Modal",function(){return b});var _=i.a.createElement(h,null),b=function(e){var t=e.className,n=e.style,r=e.backdropClassName,c=e.backdropStyle,u=e.isMobile,d=e.title,p=e.showClose,m=e.isOpen,h=e.okButton,b=e.cancelButton,v=e.closeDataCerber,g=e.closeOnEsc,y=e.closeOnClickOutside,w=e.onClose,O=e.children,E=Object(a.useState)(null),k=o()(E,2),j=k[0],S=k[1];Object(a.useEffect)(function(){S(document.createElement("div"))},[]);var x=Object(a.useCallback)(function(e){"Escape"===e.key&&w()},[]);return Object(a.useEffect)(function(){if(j)return window.document.body.appendChild(j),g&&window.addEventListener("keydown",x,!0),function(){window.document.body.removeChild(j),window.removeEventListener("keydown",x,!0)}},[j]),j?s.a.createPortal(i.a.createElement("div",{className:l()(f.a.root,!m&&f.a.hidden,u&&f.a.isMobile)},i.a.createElement("div",{className:l()(f.a.backdrop,r),style:c,onClick:function(){return y&&w()},"data-cerber":v}),i.a.createElement("div",{className:l()(f.a.modal,t),style:n},i.a.createElement("div",{className:f.a.title},d),p&&i.a.createElement("button",{className:f.a.closeIcon,type:"button",onClick:w,"data-cerber":v},_),O,(h||b)&&i.a.createElement("div",{className:f.a.controls},h&&i.a.createElement("div",{className:f.a.okButton},h),b&&i.a.createElement("div",{className:f.a.cancelButton},b)))),j):null};b.defaultProps={style:{},backdropStyle:{},title:"",showClose:!0,isOpen:!1,closeDataCerber:null,closeOnEsc:!0,closeOnClickOutside:!0},t.default=b}])}}]); } /* FILE ARCHIVED ON 00:27:35 Aug 14, 2020 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:34:38 Nov 19, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.567 exclusion.robots: 0.028 exclusion.robots.policy: 0.017 esindex: 0.01 cdx.remote: 7.004 LoadShardBlock: 116.205 (3) PetaboxLoader3.datanode: 65.585 (4) PetaboxLoader3.resolve: 208.98 (2) load_resource: 192.662 */