Personal content feed
Mark sites which interest you and similar content will appear in your feed
By using Yandex Zen, you accept the
Terms of Use
Choose your favorite media
Your first feed will be created based on them. You can change your selection later
Technology and Science
GIZMODO
CNET
TOM’S
HARDWARE
HOW TO GEEK
ENGADGET
News
BBC
THE NEW
YORK TIMES
HUFFINGTON
POST
NBC NEWS
ABC NEWS
Sport
CBS SPORTS
NBA
SB NATION
Business and Finance
BUSINESS
INSIDER
CNBC
FORBES
CNN MONEY
REUTERS
Entertainment
EW
ROLLING
STONE
PITCHFORK
TV GUIDE
CINEMABLEND
Games
ESPN FANTASY
GAMES
GAMESPOT
LEAGUE OF
LEGENDS
PC GAMER
IGN
New media
JEZEBEL
LIFEHACKER
LITTLE
THINGS
.MIC
POPSUGAR
SLATE
MAGAZINE
TED
THEAWL.COM
VOX
Мagazines
COSMOPOLITAN
ESQUIRE
GQ
THE NEW
YORKER
NYMAG
TIME
USMAGAZINE.COM
VARIETY
WIRED
Popular
BUZZFEED
CNN
ESPN
FOX NEWS
MEN'S
HEALTH
MTV
NFL
PEOPLE
TMZ
Fun
THE CHIVE
CRACKED
DIPLY
LIKES
9GAG
Your feed is ready!
You are currently viewing a demo. Please close this tab to start using Zen.
c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t,n){e.exports=n(3).document&&document.documentElement},function(e,t,n){var r=n(6).f,o=n(16),i=n(40)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(16),o=n(36),i=n(31)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,r){var o,i,s,a=r(65),c=r(3),u=r(18),l=r(50),f=r(2),d=r(8),h=(r(7),r(19)),m=r(73),p=r(74),g=(r(75).set,r(77)),v=r(78).set,y=r(80)(),_="Promise",b=c.TypeError,w=c.process,E=c[_],w=c.process,S="process"==l(w),k=function(){},x=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[r(40)("species")]=function(e){e(k,k)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(k)instanceof t}catch(e){}}(),T=function(e,t){return e===t||e===E&&t===s},L=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},O=function(e){return T(E,e)?new C(e):new i(e)},C=i=function(e){var t,r;this.promise=new e(function(e,o){if(t!==n||r!==n)throw b("Bad Promise constructor");t=e,r=o}),this.resolve=h(t),this.reject=h(r)},D=function(e){try{e()}catch(e){return{error:e}}},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,i=0,s=function(t){var n,i,s=o?t.ok:t.fail,a=t.resolve,c=t.reject,u=t.domain;try{s?(o||(2==e._h&&F(e),e._h=1),s===!0?n=r:(u&&u.enter(),n=s(r),u&&u.exit()),n===t.promise?c(b("Promise-chain cycle")):(i=L(n))?i.call(n,a,c):a(n)):c(r)}catch(e){c(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&A(e)})}},A=function(e){v.call(c,function(){var t,r,o,i=e._v;if(j(e)&&(t=D(function(){S?w.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(o=c.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=S||j(e)?2:1),e._a=n,t)throw t.error})},j=function e(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,o=0;r.length>o;)if(n=r[o++],n.fail||!e(n.promise))return!1;return!0},F=function(e){v.call(c,function(){var t;S?w.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},R=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw b("Promise can't be resolved itself");(n=L(t))?y(function(){var o={_w:r,_d:!1};try{n.call(t,u(e,o,1),u(B,o,1))}catch(e){B.call(o,e)}}):(r._v=t,r._s=1,P(r,!1))}catch(e){B.call({_w:r,_d:!1},e)}}};x||(E=function(e){m(this,E,_,"_h"),h(e),o.call(this);try{e(u(R,this,1),u(B,this,1))}catch(e){B.call(this,e)}},o=function(e){this._c=[],this._a=n,this._s=0,this._d=!1,this._v=n,this._h=0,this._n=!1},o.prototype=r(81)(E.prototype,{then:function(e,t){var r=O(g(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=S?w.domain:n,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(e){return this.then(n,e)}}),C=function(){var e=new o;this.promise=e,this.resolve=u(R,e,1),this.reject=u(B,e,1)}),f(f.G+f.W+f.F*!x,{Promise:E}),r(70)(E,_),r(82)(_),s=r(4)[_],f(f.S+f.F*!x,_,{reject:function(e){var t=O(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(a||!x),_,{resolve:function(e){if(e instanceof E&&T(e.constructor,this))return e;var t=O(this),n=t.resolve;return n(e),t.promise}}),f(f.S+f.F*!(x&&r(51)(function(e){E.all(e).catch(k)})),_,{all:function(e){var t=this,r=O(t),o=r.resolve,i=r.reject,s=D(function(){var r=[],s=0,a=1;p(e,!1,function(e){var c=s++,u=!1;r.push(n),a++,t.resolve(e).then(function(e){u||(u=!0,r[c]=e,--a||o(r))},i)}),--a||o(r)});return s&&i(s.error),r.promise},race:function(e){var t=this,n=O(t),r=n.reject,o=D(function(){p(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(e,t){e.exports=function(e,t,r,o){if(!(e instanceof t)||o!==n&&o in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,n){var r=n(18),o=n(45),i=n(46),s=n(7),a=n(28),c=n(49),u={},l={},t=e.exports=function(e,t,n,f,d){var h,m,p,g,v=d?function(){return e}:c(e),y=r(n,f,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(h=a(e.length);h>_;_++)if(g=t?y(s(m=e[_])[0],m[1]):y(e[_]),g===u||g===l)return g}else for(p=v.call(e);!(m=p.next()).done;)if(g=o(p,y,m.value,t),g===u||g===l)return g};t.BREAK=u,t.RETURN=l},function(e,t,r){var o=r(8),i=r(7),s=function(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(18)(Function.call,r(76).f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return s(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):n),check:s}},function(e,t,n){var r=n(35),o=n(14),i=n(23),s=n(13),a=n(16),c=n(9),u=Object.getOwnPropertyDescriptor;t.f=n(10)?u:function(e,t){if(e=i(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,r){var o=r(7),i=r(19),s=r(40)("species");e.exports=function(e,t){var r,a=o(e).constructor;return a===n||(r=o(a)[s])==n?t:i(r)}},function(e,t,n){var r,o,i,s=n(18),a=n(79),c=n(69),u=n(12),l=n(3),f=l.process,d=l.setImmediate,h=l.clearImmediate,m=l.MessageChannel,p=0,g={},v="onreadystatechange",y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},_=function(e){y.call(e.data)};d&&h||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++p]=function(){a("function"==typeof e?e:Function(e),t)},r(p),p},h=function(e){delete g[e]},"process"==n(25)(f)?r=function(e){f.nextTick(s(y,e,1))}:m?(o=new m,i=o.port2,o.port1.onmessage=_,r=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r=v in u("script")?function(e){c.appendChild(u("script"))[v]=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:d,clear:h}},function(e,t){e.exports=function(e,t,r){var o=r===n;switch(t.length){case 0:return o?e():e.call(r);case 1:return o?e(t[0]):e.call(r,t[0]);case 2:return o?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var o=r(3),i=r(78).set,s=o.MutationObserver||o.WebKitMutationObserver,a=o.process,c=o.Promise,u="process"==r(25)(a);e.exports=function(){var e,t,r,l=function(){var o,i;for(u&&(o=a.domain)&&o.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?r():t=n,o}}t=n,o&&o.enter()};if(u)r=function(){a.nextTick(l)};else if(s){var f=!0,d=document.createTextNode("");new s(l).observe(d,{characterData:!0}),r=function(){d.data=f=!f}}else if(c&&c.resolve){var h=c.resolve();r=function(){h.then(l)}}else r=function(){i.call(o,l)};return function(o){var i={fn:o,next:n};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,n){var r=n(15);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(3),o=n(6),i=n(10),s=n(40)("species");e.exports=function(e){var t=r[e];i&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var o=r(84);e.exports=r(86)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:n)}},{get:function(e){var t=o.getEntry(this,e);return t&&t.v},set:function(e,t){return o.def(this,0===e?0:e,t)}},o,!0)},function(e,t,r){var o=r(6).f,i=r(67),s=(r(5),r(81)),a=r(18),c=r(73),u=r(26),l=r(74),f=r(64),d=r(63),h=r(82),m=r(10),p=r(85).fastKey,g=m?"_s":"size",v=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,r,f){var d=e(function(e,o){c(e,d,t,"_i"),e._i=i(null),e._f=n,e._l=n,e[g]=0,o!=n&&l(o,r,e[f],e)});return s(d.prototype,{clear:function(){for(var e=this,t=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=n),delete t[r.i];e._f=e._l=n,e[g]=0},delete:function(e){var t=this,n=v(t,e);if(n){var r=n.n,o=n.p;delete t._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),t._f==n&&(t._f=r),t._l==n&&(t._l=o),t[g]--}return!!n},forEach:function(e){c(this,d,"forEach");for(var t,r=a(e,arguments.length>1?arguments[1]:n,3);t=t?t.n:this._f;)for(r(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!v(this,e)}}),m&&o(d.prototype,"size",{get:function(){return u(this[g])}}),d},def:function(e,t,r){var o,i,s=v(e,t);return s?s.v=r:(e._l=s={i:i=p(t,!0),k:t,v:r,p:o=e._l,n:n,r:!1},e._f||(e._f=s),o&&(o.n=s),e[g]++,"F"!==i&&(e._i[i]=s)),e},getEntry:v,setStrong:function(e,t,r){f(e,t,function(e,t){this._t=e,this._k=t,this._l=n},function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?"keys"==t?d(0,r.k):"values"==t?d(0,r.v):d(0,[r.k,r.v]):(e._t=n,d(1))},r?"entries":"values",!r,!0),h(t)}}},function(e,t,n){var r=n(17)("meta"),o=n(8),i=n(16),s=n(6).f,a=0,c=Object.isExtensible||function(){return!0},u=!n(11)(function(){return c(Object.preventExtensions({}))}),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==("undefined"==typeof e?"undefined":_typeof(e))?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},h=function(e){return u&&m.NEED&&c(e)&&!i(e,r)&&l(e),e},m=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(e,t,r){var o=r(3),i=r(2),s=r(15),a=r(81),c=r(85),u=r(74),l=r(73),f=r(8),d=r(11),h=r(51),m=r(70),p=r(87);e.exports=function(e,t,r,g,v,y){var _=o[e],b=_,w=v?"set":"add",E=b&&b.prototype,S={},k=function(e){var t=E[e];s(E,e,"delete"==e?function(e){return!(y&&!f(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!f(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!f(e)?n:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(y||E.forEach&&!d(function(){(new b).entries().next()}))){var x=new b,T=x[w](y?{}:-0,1)!=x,L=d(function(){x.has(1)}),O=h(function(e){new b(e)}),C=!y&&d(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});O||(b=t(function(t,r){l(t,b,e);var o=p(new _,t,b);return r!=n&&u(r,v,o[w],o),o}),b.prototype=E,E.constructor=b),(L||C)&&(k("delete"),k("has"),v&&k("get")),(C||T)&&k(w),y&&E.clear&&delete E.clear}else b=g.getConstructor(t,e,v,w),a(b.prototype,r),c.NEED=!0;return m(b,e),S[e]=b,i(i.G+i.W+i.F*(b!=_),S),y||g.setStrong(b,e,v),b}},function(e,t,n){var r=n(8),o=n(75).set;e.exports=function(e,t,n){var i,s=t.constructor;return s!==n&&"function"==typeof s&&(i=s.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,r){var o=r(84);e.exports=r(86)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:n)}},{add:function(e){return o.def(this,e=0===e?0:e,e)}},o)}]),"undefined"!=typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):t.core=e}(1,1),function(e){e.remove=e.remove||function(){var e=this.parentNode;e&&e.removeChild(this)}}(Element.prototype),function(e){e.closest=e.closest||function e(t){return this.parentNode?this.matches(t)?this:e.call(this.parentNode,t):null}}(Element.prototype),Element&&!Element.prototype.matches){var proto=Element.prototype;proto.matches=proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector}!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return p.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function s(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function a(e){var t=new FileReader;return t.readAsArrayBuffer(e),s(t)}function c(e){var t=new FileReader;return t.readAsText(e),s(t)}function u(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(p.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(a)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return c(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}function f(e,t){t=t||{};var n=t.body;if(f.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function h(e){var t=new o,n=(e.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}function m(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof o?t.headers:new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var p={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(r)},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},o.prototype.getAll=function(e){return this.map[t(e)]||[]},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},o.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},p.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},u.call(f.prototype),u.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];m.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=f,e.Response=m,e.fetch=function(e,t){return new Promise(function(n,r){function o(){return"responseURL"in s?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):void 0}var i;i=f.prototype.isPrototypeOf(e)&&!t?e:new f(e,t);var s=new XMLHttpRequest;s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:h(s),url:o()},t="response"in s?s.response:s.responseText;n(new m(t,e))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.open(i.method,i.url,!0),"include"===i.credentials&&(s.withCredentials=!0),"responseType"in s&&p.blob&&(s.responseType="blob"),i.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}return"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,void(window.CustomEvent=e))}(),function(e){e.getData=function(t,n){var r,o,i,s,a="export",c=t.split("."),u=c.length;if(u>1){for(o=e[a]||{},i=0;i
1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},home.hslToRgb=function(e,t,n){var r,o,i;if(0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=home.hue2rgb(a,s,e+1/3),o=home.hue2rgb(a,s,e),i=home.hue2rgb(a,s,e-1/3)}return[255*r,255*o,255*i]},home.rgbToHsl=function(e,t,n){e/=255,t/=255,n/=255;var r,o,i=Math.max(e,t,n),s=Math.min(e,t,n),a=(i+s)/2;if(i===s)r=o=0;else{var c=i-s;switch(o=a>.5?c/(2-i-s):c/(i+s),i){case e:r=(t-n)/c+(t
=e||e>t?r(h,c):d=setTimeout(o,e)}function i(){r(g,d)}function s(){if(a=arguments,l=se(),f=this,h=g&&(d||!y),!1===p)var n=y&&!d;else{c||y||(m=l);var r=p-(l-m),s=0>=r||r>p;s?(c&&(c=clearTimeout(c)),m=l,u=e.apply(f,a)):c||(c=setTimeout(i,r))}return s&&d?d=clearTimeout(d):d||t===p||(d=setTimeout(o,t)),n&&(s=!0,u=e.apply(f,a)),!s||d||c||(a=f=x),u}var a,c,u,l,f,d,h,m=0,p=!1,g=!0;if("function"!=typeof e)throw new TypeError(T);if(t=0>t?0:+t||0,!0===n)var y=!0,g=!1;else v(n)&&(y=!!n.leading,p="maxWait"in n&&Z(+n.maxWait||0,t),g="trailing"in n?!!n.trailing:g);return s.cancel=function(){d&&clearTimeout(d),c&&clearTimeout(c),m=0,c=d=h=x},s}function m(e,t){if("function"!=typeof e)throw new TypeError(T);return t=Z(t===x?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=Z(n.length-t,0),i=Array(o);++r
o?x:s,o=1);++r
/g,">").replace(/"/g,""")},home.parseUrl=function(e){var t=document.createElement("a");return t.href=e,{scheme:t.protocol.replace(/:/g,""),host:t.hostname,origin:t.origin,query:t.search.replace(/^\?/,""),hash:t.hash.replace(/^#/,""),path:t.pathname.replace(/\/$/,"").replace(/^\//,"")}},home.urlFilter=function(e){var t=home.parseUrl(e),n=t.scheme+"://"+t.host,r="";return t.path&&(r+="/"+home.htmlFilter(t.path)+"/"),t.query&&(r+="?"+home.htmlFilter(t.query)),t.hash&&(r+="#"+home.htmlFilter(t.hash)),n+r},home.debounce=_.debounce,home.parseUrlParams=function(e){var t=e||location.search;if(t=t.replace("?",""),!t)return{};for(var n,r={},o=t.split("&"),i=0,s=o.length;i
=2){for(var r=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),i=o.length;i--;i>0)o[i].lastIndexOf(r,0)!==-1&&o.splice(i,1);return e=n[0]+"?"+o.join("&")}return e},home.serializeURLParams=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},home.jclone=function(e){return JSON.parse(JSON.stringify(e))},window.zenblocks={},home.exportBlockProperty=function(e,t,n){void 0===window.zenblocks[e]&&(window.zenblocks[e]={}),window.zenblocks[e][t]&&console.warn("Duplicate block property definition",e,t),window.zenblocks[e][t]=n},home.requireBlock=function(e){return window.zenblocks[e]},home.calcElemOffset=function(e){if(e){var t=e.getBoundingClientRect();if(t.width||t.height){var n=e.ownerDocument,r=window,o=n.documentElement,i=t.top+r.pageYOffset-o.clientTop,s=t.left+r.pageXOffset-o.clientLeft,a=window.innerWidth-t.width-s;return{top:i,left:s,right:a}}return t}},home.calcElemOuterHeight=function(e){if(!e)return 0;var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=e.getBoundingClientRect().height;return r+n},home.waitTransitonEnd=function(e,t){var n=new Promise(function(t){var n=function n(r){r.stopPropagation(),r.target===e&&(e.removeEventListener("transitionend",n),e.removeEventListener("webkitTransitionEnd",n),t())};e.addEventListener("transitionend",n),e.addEventListener("webkitTransitionEnd",n)});return void 0!==t?Promise.race([n,home.wait(t)]):n},home.waitAnimationEnd=function(e){return new Promise(function(t){var n=function n(r){r.stopPropagation(),r.target===e&&(e.removeEventListener("animationend",n),e.removeEventListener("webkitAnimationEnd",n),t())};e.addEventListener("animationend",n),e.addEventListener("webkitAnimationEnd",n)})},home.wait=function(e){return new Promise(function(t){return setTimeout(function(){return t()},e)})},home.noop=function(){},home.raf=function(){return new Promise(function(e){return requestAnimationFrame(function(){return e()})})},home.isDebugDesktop=home.debugMode&&"debug-desktop"===home.contentMode,home.getElemData=function(e,t){return e.dataset&&e.dataset[t]||e.getAttribute("data-"+t)},home.generateModsClass=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return e.map(function(e){return t+"_mod_"+e}).join(" ")},home.getElemData=function(e,t){return e.dataset&&e.dataset[t]||e.getAttribute("data-"+t)},home.setElemData=function(e,t,n){e.setAttribute("data-"+t,n)};var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.status>=200&&e.status<300||!e.status&&"no-cors"===t.mode;return n?e:(e._error=!0,e)},n=function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4,i=new Promise(function(e,t){home.wait(o).then(function(){return t(new Error("request timeout"))})}),s=Object.assign({credentials:r.cors?"include":"same-origin"},r),a=function(e){return r.textResponse?e.text():e.json()},c=home.getData("oauth.token");c&&home.parseUrl(n).origin===window.location.origin&&(s.headers=s.headers||{},s.headers.Authorization="Bearer "+c);var u=fetch(n,s).then(function(e){return t(e,s)}).then(function(t){return a(t).then(function(n){if(e(n),t._error)throw n;return n})});return Promise.race([u,i])};home.fetch=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e,i=e.includes("?")?"&":"?";return t&&(o+=i+home.serializeURLParams(t)),n(o,r,r.timeout)},home.post=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=home.merge({method:"POST",headers:{Accept:"application/json","Content-Type":r.contentType||"application/json"},body:JSON.stringify(t)},r),s=e,a=e.includes("?")?"&":"?";return o&&(s+=a+home.serializeURLParams(o)),n(s,i,r.timeout)},home.postForm=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.keys(t).map(function(e){return e+"="+t[e]}).join("&"),i=home.merge({method:"POST",headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:o},r);return n(e,i,r.timeout)},home.getScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:home.noop,n=document.createElement("script"),r=document.getElementsByTagName("script")[0];n.async=1,r.parentNode.insertBefore(n,r),n.onload=n.onreadystatechange=function(e,r){if((r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n=void 0,!r))return t()},n.src=e},home.waitForReturnToTab=function(){return new Promise(function(e){var t=function t(){document.documentElement.removeEventListener("touchstart",t),e(!0)};window.stream&&stream.params.product&&"litebro"===stream.params.product.name?window.eventChannel.on("switchToForeground",function(){return e(!1)}):visibly.isSupported()?visibly.onVisible(function(){document.documentElement.removeEventListener("touchstart",t),e(!1)}):home.isLauncher&&window.eventChannel.on("sys.resumeJavaScript",function(){document.documentElement.removeEventListener("touchstart",t),e(!1)}),document.documentElement.addEventListener("touchstart",t)})},home.elementInViewport=function(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top>=0&&t.top<=n||t.bottom>=0&&t.bottom<=n},home.$$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return Array.from(t.querySelectorAll(e))},home.$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector(e)},home.stringf=function(e,t){var n=Array.prototype.slice.call(arguments,1);return e.replace(/%s/g,function(){return n.shift()||""})},home.getPassParams=function(){return home.getData("common.passparams")},home.getProduct=function(){return home.getData("common.product")},home.passUrlParams=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=home.parseUrlParams(),n=home.getData("common.passparams"),r=void 0;if(!t)return e;for(var o=["model","feedexample","from","country_code","experiment","token","clid","clid1010","profile_id","ui","partner_key","languages","variants","group","tinno_redefined_cc","api_name","exps","refs","notyandex","telemetry","client_exps"],i=0,s=o.length;i
1&&void 0!==arguments[1]?arguments[1]:{};return home.fetch(e,Object.assign({},t,home.passUrlParams()))},home.logStatPost=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return home.post(e,t,{},Object.assign({},home.passUrlParams()))},home.isOldWebView=function(){return document.documentElement.classList.contains("i-ua_platform_ios")&&!window.indexedDB},home.trigger=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new CustomEvent(e,{detail:n});t.dispatchEvent(r)},home.delegateEvent=function(e,t,n,r){(r||document).addEventListener(t,function(t){var r=t.target.closest(e);r&&(t.listeningTarget=r,n.call(r,t))})},home.setMod=function(e,t,n,r){r=r||Array.from(e.classList)[0],home.delMod(e,t),e.classList.add(r+"_"+t+"_"+n)},home.delMod=function(e,t){var n=Array.from(e.classList),r=new RegExp("^.+_"+t+"_.+$"),o=n.filter(function(e){return!e.match(r)});e.className=o.join(" ")},window.eventChannel=new EventEmitter,home.getCookieValue=function(e){var t="; "+document.cookie,n=t.split("; "+e+"=");if(2===n.length)return n.pop().split(";").shift()},home.setCookieValue=function(e,t,n){n=n||{};var r=n.expires;if("number"==typeof r&&r){var o=new Date;o.setTime(o.getTime()+1e3*r),r=n.expires=o}r&&r.toUTCString&&(n.expires=r.toUTCString()),t=encodeURIComponent(t);var i=e+"="+t;for(var s in n){i+="; "+s;var a=n[s];a!==!0&&(i+="="+a)}document.cookie=i},home.isObjectEmpty=function(e){return 0===Object.keys(e).length},home.uniq=function(e){return Array.from(new Set(e))},home.arrayEqualsNoOrder=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;var n=Array.from(e),r=Array.from(t);n.sort(),r.sort();for(var o=0;o
0&&(l[1676]=Math.round(r.secureConnectionStart-r.connectStart));for(a in s.vars)s.vars.hasOwnProperty(a)&&(l[a]=s.vars[a]);var f;for(a in i)i.hasOwnProperty(a)&&("function"==typeof i[a]?(f=i[a](r),null!==f&&(l[a]=f)):l[a]=i[a]);for(a in l)l[a]<0&&delete l[a];l[1042]=encodeURIComponent(navigator.userAgent),u+="/vars="+t(l),o&&(u+="/cdn="+o),u+="/slots="+(e("exp.data")||"")+"/*",(new Image).src=n()+u}}function o(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState)try{for(var o,i=n.getAllResponseHeaders().toLowerCase().split("\n"),s={},a="",c=0,u=i.length;c
-1)return void r(o[i],t,n)}catch(e){return}},sendImage:function(e,t){try{var n=window.performance.getEntries("resources");if(n&&n.length)for(var r=0,i=n.length;r
-1&&n[r].duration)return o(n[r],t),!0;return!1}catch(e){return!0}},wait:function(e,t){i(e,t)},waitImage:function(e,t){var n=home.resourcesTiming.sendImage(e,t);n||setTimeout(function(){home.resourcesTiming.waitImage(e,t)},500)}}}(),document.addEventListener("DOMContentLoaded",function(){function e(e,t){setTimeout(function(){var t="https://"+e.host+"/"+e.file,n=e.hostName||e.host;home.getScript(t),home.resourcesTiming.wait(n,function(){home.resourcesTiming.send(t,window.__staticRegion[n],{143:e.name})})},5e3*t)}var t=home&&home.getData&&home.getData("nearestjs.data");t&&setTimeout(function(){if(t.proxies&&t.proxies.length)for(var n=0,r=t.proxies.length;n
0?o[t]=Math.min(u*f,d[t]):0===d[t]&&(o[t]=u*f);for(t in s.vars)s.vars.hasOwnProperty(t)&&(o[t]=s.vars[t],window._rum.suffixes[t]&&(o[t]+="."+window._rum.suffixes[t]));for(t in window._rum.times)window._rum.times.hasOwnProperty(t)&&(o[t]=window._rum.times[t]);for(t in o)o[t]<0&&delete o[t];o[1042]=encodeURIComponent(navigator.userAgent),r+="/vars="+n(o),r+="/slots="+(i("exp.data")||"")+"/*",(new Image).src=e()+r}function n(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+"="+e[n]);return t.join(",")}function r(){if(d[1051]>0){if(window._rumWaitVars){var e=!0;for(var t in window._rum.waitFor)if(window._rum.waitFor.hasOwnProperty(t)&&!window._rum.times[t]){e=!1;break}return e}return!0}}function o(){++l,d[1041.318]>0&&(d[1041.906]=d[1041.318]-(a.domainLookupStart-c),d[1041]=d[1041.318]-(a.responseStart-c)),s||(s=i("b-timing.data")),s&&(r()||l===f)?t():setTimeout(o,u)}function i(e){return home&&home.getData&&home.getData(e)}var s,a=window.performance&&window.performance.timing;if(a&&a.navigationStart){var c=a.navigationStart,u=1e3,l=0,f=20,d={1041:-1,1041.906:-1,1041.318:-1,1051:0};document.addEventListener("DOMContentLoaded",function(){ d[1051]=+new Date-c}),setTimeout(o,u)}}(),function(){function e(){var e=window.innerWidth;return home.isDesktopPromo?16:home.isDebugDesktop?14:e>400?18:e<360?14.8:16}function t(){return fdom.read(function(){return e()})}window.layoutBase={getBaseSync:e,getBase:t}}(),function(){"use strict";var e=function(){var e,t=null,n=null,r="/dtype",o="%s/session_id=%s/events=%s/*",i="zen_clck",s=!1,a={},c={statRoot:null,enabled:!1,showId:null,statDataAttr:"statlog",dataNoRedirKey:"statlog-noredir",doc:null,skipReadyKey:!1,sendAtWill:!0,dataReadyKey:"statlog-ready",statNoRedirEvent:"click",skipVisibleCheck:!1,clckDemonHost:"//web.archive.org./web/20190305163528/https://clck.yandex.ru/",redirHost:"//web.archive.org./web/20190305163528/https://clck.yandex.ru/",debounceDelay:1e3,logUniqueShow:!1},u=function(){return t||n},l=function(){var e=[];return u()?(t&&e.push({event:"show","parent-path":c.statRoot,blocks:t.children}),n&&e.push({event:"click","parent-path":c.statRoot,blocks:n.children}),JSON.stringify(e)):""},f=function(e,t){var n=e;t.split(".").forEach(function(e){var t=function(t){return t.ctag===e};n.children||(n.children=[]);var r=n.children.filter(t);r.length||n.children.push({ctag:e}),n=n.children.filter(t)[0]})},d=function(){t=null,n=null},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:home.noop,n={mode:"no-cors",cors:!1,credentials:"omit",textResponse:!0},o=_defineProperty({},r,e);home.postForm(c.clckDemonHost+"counter/",o,n).then(function(){return t()})},m=function(e){var t=void 0;if(u()&&c.showId)t=home.stringf(o,i,c.showId,l()),d(),h(t,e);else if(e)return e()},p=function(){e||(e=home.debounce(m,c.debounceDelay)),e()},g=function(e,r){if(r||(r="show"),"undefined"!=typeof e&&c.enabled){if("show"===r){if(c.logUniqueShow&&e in a)return;t=t||{},a[e]=!0}else n=n||{};f("show"===r?t:n,e),c.sendAtWill&&p()}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.custom,n=e.elem;if(!t){if(s)return;s=!0}c.enabled&&home.delegateEvent("*[data-"+c.statDataAttr+"]",c.statNoRedirEvent,function(e){var t=e.listeningTarget||e.target,n=home.getElemData(t,c.statDataAttr);n&&e.type===c.statNoRedirEvent&&g(n,"click"),home.getElemData(t,c.statDataAttr+"-instant")&&m()},n||c.doc||document)};return{configure:function(e){c=Object.assign(c,e)},handleClicks:v,log:g,logByFragment:function(e){var t=this,n=Object.assign(c,e),r="data-"+n.statDataAttr,o=r.substr(5),i="*["+r+"]",s=n.doc?home.$$(i,n.doc):home.$$(i);s.forEach(function(e){if(!r.match(/^data-/))throw new Error("data attribute expected as statAttr");var i=home.getElemData(e,o);!n.skipReadyKey&&home.getElemData(e,n.dataReadyKey)||(t.log(i),home.setElemData(e,n.dataReadyKey,i))})},send:m}}(),t=home.getData("statlog.config");if(t){e.configure({skipVisibleCheck:!0,clickEvent:"click",statRoot:t.statRoot,showId:t.showId,enabled:t.enabled,redirHost:t.redirHost,debounceDelay:500,logUniqueShow:!0}),e.handleClicks();var n={handleClicks:e.handleClicks,logShow:function(n,r){t.enabled&&(r=r||{},r.doc=n,e.logByFragment(r))},logClickPath:function(t,n){e.log(t,"click"),n&&n.instant&&e.send(n.callback)},logShowPath:function(t,n){e.log(t,"show"),n&&n.instant&&e.send(n.callback)}};window.statlog=n,window.logShow=function(e,t){return n.logShowPath(e,{instant:t})},window.logClick=function(e,t){return n.logClickPath(e,{instant:t})}}}();var _createClass=function(){function e(e,t){for(var n=0;n
=this.getLikesToCompleteCount()}},{key:"isEnoughTopicsSelected",value:function(){return this.getSelectedTopicsCount()>=this.getLikesToCompleteCount()}},{key:"isEnoughDomainsSelected",value:function(){return this.getSelectedDomainsCount()>=this.getDomainsToCompleteCount()}},{key:"someSelected",value:function(){return this.getSelectedCount()>0}},{key:"getDomainsForTopic",value:function(e){var t=this._obData.topics.find(function(t){return t.topic===e});return t&&t.domains&&0!==t.domains.length?t.domains:[]}},{key:"getSelectedDomainIDs",value:function(){var e=this,t=this.getSelectedDomainNames();return t.map(function(t){return e._obData.domainIDMap[t]})}},{key:"getUnselectedDomainIDs",value:function(){var e=this,t=this.getUnselectedDomainNames();return t.map(function(t){return e._obData.domainIDMap[t]})}},{key:"getSelectedTopicIDs",value:function(){var e=this,t=this.getSelectedTopicNames();return t.map(function(t){return e._obData.topicIDMap[t]})}},{key:"getUnselectedTopicIDs",value:function(){var e=this,t=this.getUnselectedTopicNames();return t.map(function(t){return e._obData.topicIDMap[t]})}},{key:"getOnboardingDocs",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.timeout;return this._isLoading=!0,new Promise(function(n,i){var s={domains:t.getSelectedDomainIDs(),topics:t.getSelectedTopicIDs(),unliked_topics:t.getUnselectedDomainIDs(),unliked_domains:t.getUnselectedTopicIDs()},a=home.serializeURLParams(home.passUrlParams()),c=r.saveOnboardingUrl||e+"?"+a,u={contentType:"text/plain"};void 0!==o&&null!==o&&(u.timeout=o),home.post(c,s,u).then(function(e){t._isLoading=!1,n(e)}).catch(function(e){t._isLoading=!1,console.error("Request ended with status "+status),i(e)})})}},{key:"getSimilarDomains",value:function(e,t){var n=3;if(t){var r=this.getDomainsForTopic(e);return r.slice(0,n)}var o=this._domainList.find(function(t){return t.domain===e});return o&&o.similar||[]}},{key:"getInterestingDomains",value:function(e){var t=this._obData.topics.find(function(e){return"_popular"===e.topic});return t?t.domains.filter(function(t){var n=t.domain;return e.indexOf(n)===-1}):[]}},{key:"isLoading",get:function(){return!!this._isLoading}}]),t}(),s=new i(r,n),a=new o(n,s);window.onboardingData={obCardLogic:a,obLogic:s,obParams:r}}(),function(){function e(e,t){var n=e.length,r=n-1;for(r;r>=0;r--)t(e[r])}function t(e,t){for(var n,r=[],o=0,i=e.length;o!==i;o++)n=e[o],t(n)&&r.push(n);return r}function n(){var e=A(K);K=T(e)}function r(n){var r={func:n.func,uniqKey:n.uniqKey};r._timeout=setTimeout(function(){N=t(N,function(e){return e!==r}),r.func()},n.maxWait),void 0!==n.uniqKey&&(e(N,function(e){e.uniqKey===n.uniqKey&&clearTimeout(e._timeout)}),N=t(N,function(e){return e.uniqKey!==n.uniqKey})),N.push(r)}function o(e,t){q.push({name:e.name,timeout:e.timeout||0,data:t,_lastTriggerTime:0})}function i(e,t,n){R.push({bottomEdge:e.bottomEdge,name:e.name,scroll:e.scroll,once:e.once,onceDebounce:e.onceDebounce,fromBottom:e.fromBottom,data:t,callback:n})}function s(e,t,n){M.push({scroll:e.scroll,name:e.name,bottomEdge:e.bottomEdge,data:t,callback:n,_state:e.defaultState||0})}function a(e,t,n){I.push({delta:e.delta,name:e.name,direction:e.direction>0?1:-1,anyDirection:e.anyDirection,endTrigger:e.endTrigger,once:e.once,onceDebounce:e.onceDebounce,data:t,callback:n})}function c(e,t,n){var r=e.name,o="_"+r+"-first-time",i="_"+r+"-second-time",s="_"+r+"-break-combo",c=10;U[r]={scrolledFirstTime:!1,eventTriggered:!1},a({name:o,delta:e.threshold,direction:e.direction,endTrigger:!0}),a({name:i,delta:e.threshold,direction:e.direction,onceDebounce:!0,endTrigger:!1}),a({name:s,delta:c,direction:-e.direction,endTrigger:!1}),J.on(o,function(){U[r].eventTriggered||(U[r].firstTime=!0)}),J.on(i,function(){U[r].firstTime?(U[r].firstTime=!1,U[r].eventTriggered=!0,O(r,{data:t},n)):U[r].eventTriggered=!1}),J.on(s,function(){U[r].firstTime=!1})}function u(e,t,r){n();var o=K.scroll,s=e.direction>0?o+e.delta:o-e.delta;i({bottomEdge:!1,name:e.name,scroll:s,once:e.once,onceDebounce:e.onceDebounce,fromBottom:e.direction<0,data:t,callback:r},t,r)}function l(e){q=t(q,function(t){return t.name!==e}),J.off(e)}function f(e){R=t(R,function(t){return t.name!==e}),J.off(e)}function d(e){M=t(M,function(t){return t.name!==e}),J.off(e)}function h(e){I=t(I,function(t){return t.name!==e}),J.off(e)}function m(e){f(e)}function p(e){z[e]=!0}function g(e){z[e]=!1}function v(){H=!0}function y(){n(),H=!1}function _(e,t,n){return n.fromBottom?e<=n.scroll||!!(n.bottomEdge&&t<=n.scroll):e>=n.scroll||!!(n.bottomEdge&&t>=n.scroll)}function b(n){if(n-V
0?1:-1;e(o,function(e){e.onceDebounce&&n.triggeredScrolledByEvents[e.name]||a>=e.delta&&(e.direction===c||e.anyDirection)&&(O(e.name,{data:e.data},e.callback),e._triggered=!0,n.triggeredScrolledByEvents[e.name]=!0)}),I=t(I,function(e){return!(e._triggered&&e.once)})}function S(t){e(M,function(e){0===e._state&&_(t.scroll,t.scrollBottomEdge,e)&&(O(e.name,{state:1,data:e.data},e.callback),j(e.name)||(e._state=1)),1!==e._state||_(t.scroll,t.scrollBottomEdge,e)||(O(e.name,{state:0,data:e.data},e.callback),j(e.name)||(e._state=0))})}function k(t,n){var r=Date.now();e(q,function(e){(r-e._lastTriggerTime>=e.timeout||n)&&(O(e.name,{scroll:t.scroll,scrollBottomEdge:t.scrollBottomEdge,data:e.data}),e._lastTriggerTime=r)})}function x(){window.addEventListener("touchstart",function(){K=L(K)})}function T(e){var t=A($),n=window.scrollY;return t.scroll=n,t.scrollBottomEdge=n+window.innerHeight,t.scroll!==e.scroll?t.lastScrollChangeTime=Date.now():t.lastScrollChangeTime=e.lastScrollChangeTime,Date.now()-t.lastScrollChangeTime>F?t.scrolling=!1:t.scrolling=!0,t.scrolling===!0&&e.scrolling===!1&&(t.scrollStartPosition=n,t.triggeredScrolledByEvents={}),t.scrolling===!0&&void 0!==e.scrollStartPosition&&void 0===t.scrollStartPosition&&(t.scrollStartPosition=e.scrollStartPosition,t.triggeredScrolledByEvents=e.triggeredScrolledByEvents),t.scrolling===!1&&e.scrolling===!0&&(t.scrollStartPosition=e.scrollStartPosition,t.scrollEndPosition=n),t}function L(e){e.scrollEndPosition=e.scroll,E(e,!0);var t=A($);return t.scroll=e.scroll,t.scrollBottomEdge=e.scrollBottomEdge,t.scrollStartPosition=e.scroll,t.lastScrollChangeTime=Date.now(),t.triggeredScrolledByEvents={},t}function O(e,t,n){j(e)||(n&&n(t),J.emitEvent(e,[t]))}function C(e){}function D(e){E(e,!1),k(e,!1)}function P(e){E(e,!0),k(e,!0),w()}function A(e){return{scroll:e.scroll,scrollBottomEdge:e.scrollBottomEdge,scrolling:e.scrolling,lastScrollChangeTime:e.lastScrollChangeTime,scrollStartPosition:e.scrollStartPosition,scrollEndPosition:e.scrollEndPosition,triggeredScrolledByEvents:JSON.parse(JSON.stringify(e.triggeredScrolledByEvents))}}function j(e){return H||z[e]}var F=50,B=50,R=[],M=[],I=[],q=[],N=[],U={},z={},H=!1,V=0,J=new EventEmitter,W=J,$={scroll:void 0,scrollBottomEdge:void 0,scrolling:!1,lastScrollChangeTime:void 0,scrollStartPosition:void 0,scrollEndPosition:void 0,triggeredScrolledByEvents:{}},K=A($);x(),requestAnimationFrame(b),W.addOnScrollEvent=o,W.removeOnScrollEvent=l,W.addScrolledToEvent=i,W.removeScrolledToEvent=f,W.addStateChangeEvent=s,W.removeStateChangeEvent=d,W.addScrolledByEvent=a,W.removeScrolledByEvent=h,W.addDoubleScrollEvent=c,W.addScrolledAwayEvent=u,W.removeScrolledAwayEvent=m,W.pauseEvent=p,W.resumeEvent=g,W.pauseAllEvents=v,W.resumeAllEvents=y,W.addDelayedEvent=r,W.LOOP_TIMEOUT=B,window.scrollEvemitter=W}(),function(e,t){"use strict";var n="ripple__circle_visible",r="ripple__circle_animating";t.addEventListener("DOMContentLoaded",function(){function o(e){if(!home.getData("i-ua2.data.isFirefoxMobile")){var t=e.querySelectorAll(".button-new_effect_ripple");t=Array.prototype.slice.call(t,0),t.forEach(i),e.classList&&e.classList.contains("button-new_effect_ripple")&&i(e)}}function i(e){var n=e.querySelector(".ripple");n&&e.removeChild(n),n=t.createElement("div"),n.classList.add("ripple");var r=t.createElement("div");r.classList.add("ripple__circle"),n.appendChild(r);var o=s.bind(n),i=a.bind(n);e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),e.addEventListener("mouseup",i),e.addEventListener("mouseleave",i),e.addEventListener("touchend",i),e.addEventListener("touchcancel",i),e.addEventListener("blur",i),e.childNodes.length?e.insertBefore(n,e.firstChild):e.appendChild(n)}function s(t){var o=this;if("touchstart"===t.type)o._cancelMouse=!0;else if(o._cancelMouse)return;var i=c(t),s="translate(-50%, -50%) translate("+i.x+"px, "+i.y+"px)",a=s+" scale(0.0001)",l=o.querySelector(".ripple__circle");if(l.classList.remove(r),l.style.webkitTransform=a,l.style.msTransform=a,l.style.transform=a,l.classList.add(n),!l.style.width||!l.style.height){var f=u(t);l.style.width=f+"px",l.style.height=f+"px"}l._animInited=new Promise(function(t){e.requestAnimationFrame(function(){l.classList.add(r),l.style.webkitTransform=s,l.style.msTransform=s,l.style.transform=s,t()})})}function a(){var e=this,t=e.querySelector(".ripple__circle"),r=t._animInited;r&&r.then(function(){t.classList.remove(n),t._animInited=null})}function c(e){var t,n,r=e.currentTarget.getBoundingClientRect();if(0===e.clientX&&0===e.clientY)t=Math.round(r.width/2),n=Math.round(r.height/2);else{var o=e.clientX?e.clientX:e.touches[0].clientX,i=e.clientY?e.clientY:e.touches[0].clientY;t=Math.round(o-r.left),n=Math.round(i-r.top)}return{x:t,y:n}}function u(e){var t=e.currentTarget.getBoundingClientRect();return 2*Math.sqrt(t.width*t.width+t.height*t.height)+2}o(t),e.initRippleEffect=o})}(window,window.document),function(e){"use strict";function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2];this.elem=t,this.params=Object.assign({},n),this.params.likesToComplete=i.getLikesToCompleteCount(),this.params.domainsToComplete=i.getDomainsToCompleteCount(),this.finishElem=r||t.parentNode.querySelector(".onboarding__finish"),this.params.zenkitJsApiEnabled&&(this.zenkitJsApi=home.get(e,this.params.zenkitJsApiNamespace))}var n="onboarding-content-scroll",r=200,o=onboardingData,i=o.obLogic;Object.assign(t.prototype,{init:function(){this._initEvents(),this._initLogos(),e.onboardingNeenSendShowCounter&&this.logShow(),this._updateStatus(),this.updateSelectedDomains(),this._sendOnboardingReadyEvent(),this._initSpinner(),this._initEulaStat()},_initEvents:function(){var e=this;this._getElements("source").forEach(function(t){return e._bindOnSourceClickEvent(t)}),this._initFooterEvents()},_bindOnSourceClickEvent:function(e){var t=this;e.addEventListener("click",function(n){return t._onSourceClick(e,n)})},_updateStatus:function(){i.someSelected()?this.elem.classList.add("onboarding_some-selected"):this.elem.classList.remove("onboarding_some-selected"),this.completed=i.isEnoughSourcesSelected(),this._updateFooterStatus()},_initEulaStat:function(){var e=this;if(this.params.eulaStat){home.fetch(this.params.eulaStat.show,{},{textResponse:!0});var t=home.$(".onboarding-bb__eula-link");t&&t.addEventListener("click",function(){home.fetch(e.params.eulaStat.click,{},{textResponse:!0})})}},updateSelectedDomains:function(){var e=this,t=i.getSelectedDomainNamesSet(),n=new Set(Array.from(this.elem.querySelectorAll(".onboarding__source_liked")).map(function(e){return home.getElemData(e,"domain")}).filter(function(e){return!!e}));Array.from(t).filter(function(e){return!n.has(e)}).forEach(function(t){return e._toggleSourceState(t,!0)}),Array.from(n).filter(function(e){return!t.has(e)}).forEach(function(t){return e._toggleSourceState(t,!1)}),this._updateStatus()},_initLogos:function(t){var r=this,o=100;scrollEvemitter.removeOnScrollEvent(n);var i=this._getElements("source-line",t).map(function(e){return r._getElements("source-logo",e)}),s=function(t){var n=t.dataset&&t.dataset.imgSrc||t.getAttribute("data-img-src");n&&e.loadBackgroundImage(t,n,"",function(){t.classList.add("onboarding__source-logo_loaded")})},a=function(){i=i.filter(function(e){return!(e.length>0&&home.elementInViewport(e[0]))||(e.forEach(s),!1)})},c=home.throttle(a,o,{leading:!1}),u=function(){return fdom.read(c)};u(),scrollEvemitter.addOnScrollEvent({name:n}),scrollEvemitter.on(n,u)},_getElements:function(e,t){t=t||this.elem;var n=t.querySelectorAll(".onboarding__"+e);return Array.from(n)},_getElement:function(e,t){return t=t||this.elem,t&&t.querySelector(".onboarding__"+e)},_hideOnboarding:function(){var e=this,t=300;return scrollEvemitter.removeOnScrollEvent(n),home.wait(t).then(function(){return e._animateHide()}).then(function(){if(e._lockScroll(),!e.destroyed)return e._showFinishScreen()})},_animateHide:function(){var t=500,n=e.scrollY+e.innerHeight/2,r="50% "+n+"px";return this.elem.style.webkitTransformOrigin=r,this.elem.style.transformOrigin=r,this.elem.classList.add("onboarding_hide"),home.wait(t)},_onOnboardingCompleteSuccess:function(t){var n=this;this.params.isEmbedView?this._completeEmbed():(this._stopSpinner(),zenMenu.disableShowHeader(),this._unlockScroll(),this._hideFinishScreen().then(function(){return e.stream&&e.stream.onOnboardingDocsLoaded(t)}).then(function(){return n.onDocsLoaded&&n.onDocsLoaded(),home.raf()}).then(function(){e.onboardingFeedHeader&&e.onboardingFeedHeader.show(),zenMenu.enableShowHeader(),zenMenu.showHeader(),zenMenu.showOnboardingFeedHeader()}))},_onOnboardingCompleteError:function(e){console.error(e.stack||e),this.params.isEmbedView?this._completeEmbed():this._stopSpinner()},_completeEmbed:function(){var t=this,n=function(){return e.setTimeout(function(){return t._closeEmbed()},r)};if(this.params.redirectCompleteUrl&&(e.location.href=this.params.redirectCompleteUrl),this.params.isBB)if(e._embeddedFrame)iframeMessages.sendOnboardingFinishedEvent();else if(this.params.isVisualBookmarks){var o=new Event("vb-navigate");e.dispatchEvent(o)}else!this.params.isRezenSiteOnboarding&&e.yandex&&e.yandex.zen&&e.yandex.zen.show?e.yandex.zen.show():n();else n()},_closeEmbed:function(){this.params.zenkitJsApiEnabled?this._closeEmbedByApi():this._closeEmbedByUrl()},_closeEmbedByUrl:function(){var t=document.createElement("iframe");t.style.visibility="hidden",e.document.body.appendChild(t),e.frames[e.frames.length-1].location.href=this.params.embedCompleteUrl},_closeEmbedByApi:function(){this.zenkitJsApi.onPageComplete()},_sendOnboardingReadyEvent:function(){iframeMessages.sendOnboardingInitializedEvent()}}),e.Onboarding=t}(window,window.document,window.console),function(){"use strict";var e="html_onboarding-finish",t="html_onboarding";Object.assign(Onboarding.prototype,{isOnFinishScreen:function(){return this.onFinishScreen},_showFinishScreen:function(){window.scrollTo(0,0),this.onFinishScreen=!0;var n=this.elem.parentNode;return n.removeChild(this.elem),this.destroyed=!0,delete this.elem,document.documentElement.classList.remove(t),document.documentElement.classList.add(e),home.wait(50)},_hideFinishScreen:function(){return this.onFinishScreen=!1,document.documentElement.classList.remove(e),Promise.resolve()}})}(),function(){"use strict";var e="onboarding__footer_hidden_true",t="onboarding__footer_completed_true",n="onboarding__footer_completed_false",r="onboarding__footer_some-selected_true",o=250,i=6e4,s=onboardingData,a=s.obLogic,c=s.obParams;Object.assign(Onboarding.prototype,{_initFooterEvents:function(){var e=this;return this._isTwoStepOb()?void this._initTwoStepFooter():(this._getElemNext().addEventListener("click",function(){e._sendNextClickCounter(),e._onNext()}),void this._bindOnProgressbarClickEvent())},_initTwoStepFooter:function(){var e=this;this.footerStep0Elem=home.$(".onboarding__footer_step_0"),this.footerStep1Elem=home.$(".onboarding__footer_step_1"),this._getElement("footer-back-button").addEventListener("click",function(){e._sendBackButtonClickCounter(),e._switchStep(0)}),this._getElement("next",this.footerStep0Elem).addEventListener("click",function(){e._sendNextClickCounter(),e._sendBackButtonShowCounter(),e._switchStep(1)}),this._getElement("next",this.footerStep1Elem).addEventListener("click",function(){e._sendNextClickCounter(),e._onNext()})},_switchFooterStep:function(e){var t=0===e?this.footerStep0Elem:this.footerStep1Elem,n=0===e?this.footerStep1Elem:this.footerStep0Elem;home.setMod(t,"step-visible","true"),home.setMod(n,"step-visible","false"),this._updateFooterStatus()},_getElemFooter:function(){return this._isTwoStepOb()?this._isFinalStep()?this.footerStep1Elem:this.footerStep0Elem:this.params.isTablet?document.querySelector(".onboarding-tablet__footer"):this.params.isBB?document.querySelector(".onboarding-bb__footer"):this._getElement("footer")},_getElemLikeMore:function(){return this.params.isTablet?document.querySelector(".onboarding-tablet__like-more"):this.params.isBB?document.querySelector(".onboarding-bb__like-more"):this._getElement("like-more")},_getElemNext:function(){return this.params.isTablet?document.querySelector(".onboarding-tablet__next"):this.params.isTopics?document.querySelector(".onboarding-progressbar"):this.params.isBB?document.querySelector(".onboarding-bb__next"):this._getElement("next")},hideFooter:function(){var t=this._getElemFooter();t&&t.classList.add(e)},showFooter:function(){var t=this._getElemFooter();t&&t.classList.remove(e)},_updateFooterStatus:function(){var e=this._getElemFooter(),t=void 0;t=this._isTwoStepOb()?this._isFinalStep()?a.isEnoughDomainsSelected():a.isEnoughTopicsSelected():a.isEnoughSourcesSelected(),a.someSelected()?e.classList.add(r):e.classList.remove(r),this._toggleFooterCompleted(t),this._showRestLikes()},_showRestLikes:function(){if(this._isTwoStepOb()){var e=this._isFinalStep(),t=void 0,n=void 0,r=void 0;e?(t=a.getDomainsToCompleteCount(),n=a.getSelectedDomainsCount(),r=this._getElement("like-more",this.footerStep1Elem)):(t=a.getLikesToCompleteCount(),n=a.getSelectedTopicsCount(),r=this._getElement("like-more",this.footerStep0Elem));var o=t-n;return void(r.textContent=views("onboarding__like-more-text",{restLikes:o,likesToComplete:t,isTopicsFooter:!e}))}var i=this.params.likesToComplete,s=i-a.getSelectedCount();this.params.isTopics?this._updateProgressBar(a.getSelectedCount()/i*100):this._getElemLikeMore().textContent=views("onboarding__like-more-text",{restLikes:s,likesToComplete:i,isTopicsAndDomainsFooter:views("onboarding__footer-is-domain-and-source",{mixedMode:c.mixedMode})})},_toggleFooterCompleted:function(e){var r=this._getElemFooter();e?(this._sendNextShowCounter(),r.classList.add(t),r.classList.remove(n),this._switchProgressMode(!0)):(r.classList.remove(t),r.classList.add(n),this._switchProgressMode(!1))},_onNext:function(){var e=this;if(this.completed){var t=a.getOnboardingDocs({timeout:this.params.isEmbedView?i:null}),n=this._hideOnboarding(),r=this.params.isEmbedView?0:o,s=home.wait(r);this._startSpinner(),Promise.all([t,n,s]).then(function(t){return e._onOnboardingCompleteSuccess(t[0])}).catch(function(t){return e._onOnboardingCompleteError(t)})}},_updateProgressBar:function(e){var t=document.querySelector(".onboarding-progressbar");t.classList.add("onboarding-progressbar_pulse"),home.wait(300).then(function(){return t.classList.remove("onboarding-progressbar_pulse")}),Array.from(document.querySelectorAll(".onboarding-progressbar__mask_size_full, .onboarding-progressbar__fill")).forEach(function(t){Object.assign(t.style,{transform:"rotate("+1.8*e+"deg)",webkitTransform:"rotate("+1.8*e+"deg)"})}),Array.from(document.querySelectorAll(".onboarding-progressbar__fill_fix")).forEach(function(t){Object.assign(t.style,{transform:"rotate("+1.8*e*2+"deg)",webkitTransform:"rotate("+1.8*e*2+"deg)"})})},_switchProgressMode:function(e){var t=document.querySelector(".onboarding-progressbar");t&&(e?t.classList.add("onboarding-progressbar_mode_button"):t.classList.remove("onboarding-progressbar_mode_button"))},_bindOnProgressbarClickEvent:function(){var e=this,t=document.querySelector(".onboarding-progressbar__inset-text");t&&t.addEventListener("click",function(){return e._sendProgressbarClickCounter()})}})}(),function(){"use strict";var e=onboardingData,t=e.obLogic;Object.assign(Onboarding.prototype,{_onSourceClick:function(e,t){var n=home.getElemData(e,"domain"),r=home.getElemData(e,"topic"),o=home.getElemData(e,"is-topic"),i=e.classList.contains("onboarding__source_liked");i?(e.classList.remove("onboarding__source_liked"),this._animateUnlike(e),o?this._unlikeTopic(r):this._unlikeDomain(n)):(e.classList.add("onboarding__source_liked"),this._animateLike(e,t),o?this._likeTopic(r):this._likeDomain(n)),this._updateStatus()},_likeDomain:function(e){if(t.selectDomain(e),this.params.zenkitJsApiEnabled){this.zenkitJsApi.onSourceClicked(e,!0);var n=t.hasChanges();this.zenkitJsApi.onPageStatusChanged(n)}},_unlikeDomain:function(e){if(t.deselectDomain(e),this.params.zenkitJsApiEnabled){this.zenkitJsApi.onSourceClicked(e,!1);var n=t.hasChanges();this.zenkitJsApi.onPageStatusChanged(n)}},_likeTopic:function(e){if(t.selectTopic(e),this.params.zenkitJsApiEnabled){this.zenkitJsApi.onSourceClicked(e,!0);var n=t.hasChanges();this.zenkitJsApi.onPageStatusChanged(n)}"related_sources"===this.params.mixedMode&&this._insertSourceLineAfterSource(e,!0)},_unlikeTopic:function(e){if(t.deselectTopic(e),this.params.zenkitJsApiEnabled){this.zenkitJsApi.onSourceClicked(e,!1);var n=t.hasChanges();this.zenkitJsApi.onPageStatusChanged(n)}},_getSourceElem:function(e,t){var n=t?"data-topic":"data-domain";return this.elem.querySelector(".onboarding__source["+n+"='"+e+"']")},_toggleSourceState:function(e,t){var n=this._getSourceElem(e);return n?(this._emulateSourceClick(n),void(t?n.classList.add("onboarding__source_liked"):n.classList.remove("onboarding__source_liked"))):void console.warn("Try to select "+e+", but it's not on OB")},_animateLike:function(e,t){this.params.isSimpleAnimation||this.params.noRipple?this._animateLikeFade(e):this._animateLikeRipple(e,t)},_animateLikeFade:function(e){var t=this._getElement("source-like",e);t.classList.add("onboarding__source-like_fix")},_animateLikeRipple:function(e,t){var n=t.currentTarget.getBoundingClientRect(),r=t.clientX?t.clientX:t.touches[0].clientX,o=t.clientY?t.clientY:t.touches[0].clientY,i=Math.round(r-n.left),s=Math.round(o-n.top),a="translate(-50%, -50%) translate("+i+"px, "+s+"px)",c=a+" scale(0.0001, 0.0001)",u=this._getElement("source-like",e),l=this._getElement("source-like-overlay",u),f=this._getElement("source-like-icon",u);if(l.style.webkitTransform=c,l.style.msTransform=c,l.style.transform=c,!l.style.height||!l.style.width){var d=2*Math.sqrt(n.width*n.width+n.height*n.height)+2;l.style.width=d+"px",l.style.height=d+"px"}f.style.webkitOpacity=.1,f.style.msOpacity=.1,f.style.opacity=.1,u.classList.add("onboarding__source-like_visible"),window.requestAnimationFrame(function(){u.classList.add("onboarding__source-like_animation"),u.classList.add("onboarding__source-like_fix"),l.style.webkitTransform=a,l.style.msTransform=a,l.style.transform=a,f.style.webkitOpacity="",f.style.msOpacity="",f.style.opacity="";var e=function(){u.classList.remove("onboarding__source-like_animation")};u.addEventListener("transitionend",e),u.addEventListener("webkitTransitionEnd",e),u.addEventListener("oTransitionEnd",e)})},_animateUnlike:function(e){var t=this._getElement("source-like",e);t.classList.remove("onboarding__source-like_fix"),t.classList.add("onboarding__source-like_animation");var n=function(){t.classList.remove("onboarding__source-like_animation")};t.addEventListener("transitionend",n),t.addEventListener("webkitTransitionEnd",n),t.addEventListener("oTransitionEnd",n)},_emulateSourceClick:function(e){var t=e.getBoundingClientRect();this._animateLike(e,{currentTarget:e,clientX:t.left,clientY:t.top})}})}(),function(){"use strict";var e="/api/v2/web/onboarding/show/",t="onboarding.gotozen",n="onboarding.nextstep",r="onboarding.prevstep",o="onboarding.progressbar",i=2e3;Object.assign(Onboarding.prototype,{logShow:function(){var e=this;window.setTimeout(function(){return window.requestAnimationFrame(function(){e.sourcesShowCountersSent||(e.sendOnboadingShowLog(),e.sourcesShowCountersSent=!0)})},i)},sendOnboadingShowLog:function(){if(!this.showStatSent){this.showStatSent=!0;var t=home.passUrlParams();this.params.requestId&&(t.rid=this.params.requestId),home.fetch(e,t)}},_getNextButtonStatPath:function(){return this._isTwoStepOb()&&!this._isFinalStep()?n:t},_sendNextShowCounter:function(){logShow(this._getNextButtonStatPath())},_sendNextClickCounter:function(){logClick(this._getNextButtonStatPath())},_sendBackButtonShowCounter:function(){logShow(r)},_sendBackButtonClickCounter:function(){logClick(r)},_sendProgressbarShowCounter:function(){logShow(o)},_sendProgressbarClickCounter:function(){logClick(o)}})}(),function(){"use strict"; var e="body_onbording-scroll-lock";Object.assign(Onboarding.prototype,{_lockScroll:function(){document.body.addEventListener("touchmove",this._onPreventScroll),document.body.classList.add(e)},_unlockScroll:function(){document.body.removeEventListener("touchmove",this._onPreventScroll),document.body.classList.remove(e)},_onPreventScroll:function(e){e.preventDefault()}})}(),function(){"use strict"}(),function(){"use strict";var e=onboardingData,t=e.obParams,n=e.obLogic;Object.assign(Onboarding.prototype,{_getStepWrapper:function(){return this.setWrapperElem=this.setWrapperElem||home.$(".onboarding__step-wrapper",this.elem),this.setWrapperElem},_isTwoStepOb:function(){return"two_step"===t.mixedMode},_switchStep:function(e){var t=this._getStepWrapper();home.setMod(t,"step",e),this._switchFooterStep(e),1===e&&this._renderSecondStep()},_isFinalStep:function(){var e=this._getStepWrapper();return e.classList.contains("onboarding__step-wrapper_step_1")},_renderSecondStep:function(){var e=this,r=n.getSelectedDomains(),o=n.getSelectedTopicNames(),i=o.map(function(e){return n.getDomainsForTopic(e)}).reduce(function(e,t){return e.concat(t)},[]),s=n.getInterestingDomains(i.map(function(e){var t=e.domain;return t})),a=home.uniq(i.concat(s).concat(r)),c=a.map(function(e){var t=e.domain;return t}).join("_");if(this.secondStepDomainsCache!==c){window.scrollTo(0,0),this.secondStepDomainsCache=c;var u=home.$(".onboarding__step_index_1 .onboarding__body",this.elem);u.innerHTML=views("onboarding__source-list",{sourcesPerLine:t.sourcesPerLine,sources:a}),a.forEach(function(t){var n=t.domain,r=e._getSourceElem(n);e._bindOnSourceClickEvent(r)}),this._initLogos(u),this.updateSelectedDomains()}}})}(),function(){"use strict";Object.assign(Onboarding.prototype,{_initSpinner:function(){window.Spinner&&(this._loadingSpinnerContainer=home.$(".onboarding__spinner"),this._loadingSpinner=new Spinner(this._loadingSpinnerContainer))},_startSpinner:function(){this._loadingSpinnerContainer&&(this._loadingSpinnerContainer.classList.remove("onboarding__spinner_hidden"),this._loadingSpinner.startAnimation())},_stopSpinner:function(){this._loadingSpinnerContainer&&(this._loadingSpinnerContainer.classList.add("onboarding__spinner_hidden"),this._loadingSpinner.stopAnimation())}})}(),function(){var e="onboarding__next-embed-overlay",t=e+"_pressed",n=window.Onboarding,r=n.prototype.init;n.prototype.init=function(){var e=r.call(this,arguments);return this._isEmbed()&&this._adjustEmbed(),e},n.prototype._adjustEmbed=function(){var n=this._getElement("next"),r=document.createElement("div");if(r.classList.add(e),n){n.insertBefore(r,n.firstChild);var o=function(){return r.classList.add(t)},i=function(){return r.classList.remove(t)};n.addEventListener("touchstart",o),n.addEventListener("mousedown",o),n.addEventListener("mouseup",i),n.addEventListener("mouseleave",i),n.addEventListener("touchend",i),n.addEventListener("blur",i)}},n.prototype._isEmbed=function(){var e=home.getData("i-ua2.data");return!(!e.isEmbedView||!e.isYandexBrowser)}}(window),function(){"use strict";var e="onboarding__source-line_collapsed_true",t="onboarding__source-line_collapsed_false",n="onboarding__source-line_have-height_true",r="onboarding__source-line_animate_slide",o="onboarding__source-line_no-transition",i="onboarding__source-line_shown",s=8.75,a=500,c=onboardingData,u=c.obLogic,l=function(){return"onboarding-source-line"+Math.random()},f=new Set;Object.assign(Onboarding.prototype,{_insertSourceLineAfterSource:function(c,d){var h=this,m=this._getSourceElem(c,d),p=m.parentNode,g=l(),v=void 0,y=[],_=void 0,b=u.getSimilarDomains(c,d),w=home.getData("i-ua2.data.isAndroidNative");b.length&&!f.has(c)&&(f.add(c),Promise.resolve(b).then(function(t){var n=views("onboarding__source-line",{id:g,mod:e,sources:t,collapsed:!w});return _=Math.ceil(t.length/3),p.insertAdjacentHTML("afterend",n),t.forEach(function(e){var t=e.domain,n=h._getSourceElem(t);h._bindOnSourceClickEvent(n)}),h._initLogos(),home.raf()}).then(function(){if(v=document.getElementById(g),w)return v.classList.add(n),v.classList.remove(e),v.classList.add(t),home.wait(a);var o=h._getElements("source-line"),i=o.findIndex(function(e){return e.id===g}),c=o.findIndex(function(e,t){return t>i&&!home.elementInViewport(e)});return c===-1&&(c=o.length),y=o.slice(i+1,c),y.forEach(function(e){e.classList.add(r);var t=_*s;e.style.transform="translate(0, "+t+"rem)"}),v.classList.remove(e),v.classList.add(t),home.wait(a)}).then(function(){if(v.classList.add(i),!w)return y.forEach(function(e){return e.classList.add(o)}),v.classList.add(n),home.raf()}).then(function(){if(!w)return y.forEach(function(e){e.classList.remove(r),e.style.transform="inherit"}),home.raf()}).then(function(){w||(v.classList.remove(t),y.forEach(function(e){return e.classList.remove(o)}))}))}})}(),function(e){"use strict";function t(){this.frames=[],this.lastId=0,this.raf=n,this.batch={hash:{},read:[],write:[],mode:null}}var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)};t.prototype.read=function(e,t){var n=this.add("read",e,t),r=n.id;this.batch.read.push(n.id);var o="reading"===this.batch.mode||this.batch.scheduled;return o?r:(this.scheduleBatch(),r)},t.prototype.write=function(e,t){var n=this.add("write",e,t),r=this.batch.mode,o=n.id;this.batch.write.push(n.id);var i="writing"===r||"reading"===r||this.batch.scheduled;return i?o:(this.scheduleBatch(),o)},t.prototype.defer=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=1);var r=this,o=e-1;return this.schedule(o,function(){r.run({fn:t,ctx:n})})},t.prototype.clear=function(e){if("function"==typeof e)return this.clearFrame(e);e=Number(e);var t=this.batch.hash[e];if(t){var n=this.batch[t.type],r=n.indexOf(e);delete this.batch.hash[e],~r&&n.splice(r,1)}},t.prototype.clearFrame=function(e){var t=this.frames.indexOf(e);~t&&this.frames.splice(t,1)},t.prototype.scheduleBatch=function(){var e=this;this.schedule(0,function(){e.batch.scheduled=!1,e.runBatch()}),this.batch.scheduled=!0},t.prototype.uniqueId=function(){return++this.lastId},t.prototype.flush=function(e){for(var t;t=e.shift();)this.run(this.batch.hash[t])},t.prototype.runBatch=function(){this.batch.mode="reading",this.flush(this.batch.read),this.batch.mode="writing",this.flush(this.batch.write),this.batch.mode=null},t.prototype.add=function(e,t,n){var r=this.uniqueId();return this.batch.hash[r]={id:r,fn:t,ctx:n,type:e}},t.prototype.run=function(e){var t=e.ctx||this,n=e.fn;return delete this.batch.hash[e.id],n.call(t)},t.prototype.loop=function(){var e=this,t=this.raf;this.looping||(t(function n(){var r=e.frames.shift();e.frames.length?t(n):e.looping=!1,r&&r()}),this.looping=!0)},t.prototype.schedule=function(e,t){return this.frames[e]?this.schedule(e+1,t):(this.loop(),this.frames[e]=t)},e=e||new t,"undefined"!=typeof module&&module.exports?module.exports=e:"function"==typeof define2&&define2.amd?define2(function(){return e}):window.fastdom=e}(window.fastdom),function(){function e(e){return new Promise(function(t){fastdom.read(function(){var n=e();t(n)})})}function t(e){return new Promise(function(t){fastdom.write(function(){var n=e();t(n)})})}function n(e,t){return new Promise(function(n){void 0!==t?fastdom.defer(t,function(){var t=e();n(t)}):fastdom.defer(function(){var t=e();n(t)})})}fastdom.onError=function(e){console.error(e)},window.fdom={read:e,write:t,defer:n}}(),function(e,t,n){function r(r){var o=Array.isArray(r)?Array.from(r):[r];r=o.map(function(e){return"string"==typeof e?e:JSON.stringify(e)}).join("\n");var i=document.createElement("div");i.innerHTML=t("server-error",{errorText:n.htmlFilter(r)});var s=i.firstChild,a=s.querySelector(".server-error__open"),c=s.querySelector(".server-error__hide");a.addEventListener("click",function(){e.open("data:text/plain;"+(e.btoa?"base64,"+e.btoa(r):r))}),c.addEventListener("click",function(){e.document.body.removeChild(s)}),e.document.body.appendChild(s)}n&&n.debugMode&&(t("server-error","
[% errorText %]
open
hide
"),e.showServerError=r,"serverErrors"in e&&r(e.serverErrors))}(window,views,home);var _createClass=function(){function e(e,t){for(var n=0;n
[% adjustedTitle %]
[% onboarding__source-like %]"),views("onboarding__source-topic","
[% title %]
[% onboarding__source-like %]
"),views("onboarding__source-like","
"),views("onboarding__source-title-color",function(){var e=home.parseColor(this.mainColor);if(e){e=home.rgbToHsl(e[0],e[1],e[2]);var o=e[2];return e[2]=.65*o+.15,e=home.hslToRgb(e[0],e[1],e[2]),e[0]=Math.min(255,Math.round(e[0])),e[1]=Math.min(255,Math.round(e[1])),e[2]=Math.min(255,Math.round(e[2])),"background-color: rgb("+e[0]+","+e[1]+","+e[2]+");"}return""}),views("onboarding__source-title-adjust-mod",function(){var e=this.title,o="";return e.length>=12&&(o+="onboarding__source-title_long",/\s/.test(e)&&(o+=" onboarding__source-title_wrapped")),o}),views("onboarding__source-title-adjust-text",function(){var e=this.title;if(e.length>=12&&/\s/.test(e)){for(var o=e.length/2,i=0,n=1;n
",e.slice(i)].join("")}return e}),views("onboarding__topic-title-style",function(){var e,o=this.title.split(" "),i=o.sort(function(e,o){return o.length-e.length})[0];return e=i.length>=10?.75:i.length>=8?.9:1,"font-size: "+String(e)+"em;"}),views("onboarding__like-more-text",function(){var e=this.l10n||home.l10n;e=e.bind(this);var o,i,n,r=this.likesToComplete,s=this.restLikes||r;return this.isTopicsAndDomainsFooter?(s>4?(o=e("onboarding.themes2"),i=e("onboarding.sources2")):s>1?(o=e("onboarding.themes"),i=e("onboarding.sources")):(o=e("onboarding.theme"),i=e("onboarding.source")),n=e(1===s?"onboarding.like-one-domain-theme":s===r?"onboarding.like-more-init-domain-theme":"onboarding.like-more-domain-theme"),n.replace("$n",s).replace("$theme",o).replace("$source",i)):this.isTopicsFooter?(o=e(s>4?"onboarding.themes2":s>1?"onboarding.themes":"onboarding.theme"),n=e(1===s?"onboarding.like-one-theme":s===r?"onboarding.like-more-init-theme":"onboarding.like-more-theme"),n.replace("$1",s).replace("$2",o)):(o=e(s>4?"onboarding.sources2":s>1?"onboarding.sources":"onboarding.source"),n=e(1===s?"onboarding.like-one":s===r?"onboarding.like-more-init":"onboarding.like-more"),n.replace("$1",s).replace("$2",o))}),views("onboarding__footer-is-domain-and-source",function(){return"groups"===this.mixedMode||"mixed"===this.mixedMode||"related_sources"===this.mixedMode}),views("onboarding__source-line",function(){return views("onboarding__source-line-layout",{id:this.id,mod:this.mod,sources:this.sources.reduce(function(e,o){return e+views("onboarding__source",o)},"")})}),views("onboarding__source-line-layout",'
[% sources %]
'),views("onboarding__source-list",function(){function e(e,o){for(var i=[],n=0,r=e.length;r>n;)i.push(e.slice(n,n+=o));return i}var o=e(this.sources,this.sourcesPerLine);return'
'+o.reduce(function(e,o){return e+=views("onboarding__source-line",{sources:o})},"")+"
"}),views("spinner",'
')}();