");f=e.parent();f.addClass("selectbox");f.append('
\n
\n\t
\n\t\t
\n\t
\n
');
if(!J.isMobile())return e.hide(),e=b(f,d),e.find("li").click(function(){var a;a=$(this).data("value");return g(a)}),e=a(f),f.parent(".header-filter").data("full-width",e)},update:function(a,b,f){var g,l,n,s;f=f();b=f.options;f=f.value();a=$(a).parent(".selectbox");n=0;for(s=b.length;n
d&&(a=!0,l+s>d&&(b=!0));b?e.addClass("minified"):e.removeClass("minified");a?g.addClass("minified"):g.removeClass("minified");e="body .header-search.typing, body .header-search.focus { width: "+(300 ');e=n.offset();b=e.top+b;e=e.left;n.data("tip-element",s);s.prependTo("body").addClass(l).html(a);"left"===l&&s.css({top:b,left:e});"right"===l&&s.css({top:b,right:u-e-p});return Y(1E3,function(){return s.addClass("show")})}),
a.on("mouseout",".tip",b)};b=b=function(){$(".tooltip").addClass("remove").removeClass("show");return Y(200,function(){return $(".tooltip.remove").remove()})};return a}();$(E).on("click",'[data-action="navigate"]',function(){var a;a=$(this).data("href");return v.location.href=a});var Xb,va=function(a,b){return function(){return a.apply(b,arguments)}},U={}.hasOwnProperty,ca=function(a,b){function e(){this.constructor=a}for(var d in b)U.call(b,d)&&(a[d]=b[d]);e.prototype=b.prototype;a.prototype=new e;
a.__super__=b.prototype;return a};Xb=function(a){function b(){this.refreshVotesLeft=va(this.refreshVotesLeft,this);this.messageReceived=va(this.messageReceived,this);this.isLocalStorageSupported=!1;this.urls={};d();this.readyPromise=O();b.__super__.constructor.call(this)}var e,d;ca(b,a);b.prototype.rootVm=null;b.prototype.websiteSettings=null;b.prototype.websiteVotesLeft=ko.observable(10);b.prototype._drawLayout=function(a){var b,d,e,s,p,u,c;this.websiteSettings=a;b=[];s=[];J.isTouch()&&b.push("touch");
J.isMobile()&&(J.isWindowsPhone()&&(d="wp"+J.osVersionWithoutDote(),b.push(d)),b.push("mobile"));J.isTablet()&&b.push("tablet");J.isAndroidStock()&&b.push("stock");J.isTouch()||(s.push("touch"),b.push("no-touch"));u=0;for(c=b.length;u