diff --git a/lib/proxy-frame.js b/lib/proxy-frame.js index 6948837..497dd73 100644 --- a/lib/proxy-frame.js +++ b/lib/proxy-frame.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript 1.6.3 (function() { - var $, EventEmitter, ProxyFrame, beta, demo, flaggedHost, highPort, html, messageId, _ref, + var $, EventEmitter, ProxyFrame, beta, demo, flaggedHost, highPort, html, messageId, preview, _ref, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; @@ -21,6 +21,8 @@ beta = !!~location.pathname.indexOf('beta'); + preview = !!~location.hostname.indexOf('preview'); + highPort = +location.port >= 1024; flaggedHost = (_ref = location.search.match(/api=([^&]+)/)) != null ? _ref[1] : void 0; @@ -34,7 +36,7 @@ ProxyFrame.REJECTION = 'ProxyFrame not connected'; - ProxyFrame.prototype.host = flaggedHost || ("https://" + (demo || beta || highPort ? 'dev' : 'api') + ".zooniverse.org"); + ProxyFrame.prototype.host = flaggedHost || ("https://" + (demo || beta || highPort || preview ? 'dev' : 'api') + ".zooniverse.org"); ProxyFrame.prototype.path = '/proxy'; diff --git a/src/lib/proxy-frame.coffee b/src/lib/proxy-frame.coffee index c1bc69a..c83c601 100644 --- a/src/lib/proxy-frame.coffee +++ b/src/lib/proxy-frame.coffee @@ -9,6 +9,7 @@ messageId = -1 demo = !!~location.hostname.indexOf 'demo' beta = !!~location.pathname.indexOf 'beta' +preview = !!~location.hostname.indexOf 'preview' highPort = +location.port >= 1024 flaggedHost = location.search.match(/api=([^&]+)/)?[1] flaggedHost = "//#{flaggedHost}" if flaggedHost? and not !!~flaggedHost.indexOf '//' @@ -16,7 +17,7 @@ flaggedHost = "//#{flaggedHost}" if flaggedHost? and not !!~flaggedHost.indexOf class ProxyFrame extends EventEmitter @REJECTION = 'ProxyFrame not connected' - host: flaggedHost || "https://#{if demo or beta or highPort then 'dev' else 'api'}.zooniverse.org" + host: flaggedHost || "https://#{if demo or beta or highPort or preview then 'dev' else 'api'}.zooniverse.org" path: '/proxy' loadTimeout: 5 * 1000 retryTimeout: 2 * 60 * 1000 diff --git a/zooniverse.js b/zooniverse.js index c3c0d5f..93aed58 100644 --- a/zooniverse.js +++ b/zooniverse.js @@ -1,5 +1,5 @@ /*! - * Zooniverse Library - v0.7.1 + * Zooniverse Library - v0.7.4 */ ;(function(window) { window.base64 = { @@ -622,7 +622,7 @@ window.base64 = { console.info(this.name || this.toString(), eventName.toUpperCase(), args); } } - if (this.jQueryEventProxy == null) { + if (!(this.jQueryEventProxy instanceof $)) { this.jQueryEventProxy = $({}); } (_ref = this.jQueryEventProxy).trigger.apply(_ref, arguments); @@ -659,7 +659,7 @@ window.base64 = { }).call(this); (function() { - var $, EventEmitter, ProxyFrame, beta, demo, flaggedHost, highPort, html, messageId, _ref, + var $, EventEmitter, ProxyFrame, beta, demo, flaggedHost, highPort, html, messageId, preview, _ref, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; @@ -680,6 +680,8 @@ window.base64 = { beta = !!~location.pathname.indexOf('beta'); + preview = !!~location.hostname.indexOf('preview'); + highPort = +location.port >= 1024; flaggedHost = (_ref = location.search.match(/api=([^&]+)/)) != null ? _ref[1] : void 0; @@ -693,7 +695,7 @@ window.base64 = { ProxyFrame.REJECTION = 'ProxyFrame not connected'; - ProxyFrame.prototype.host = flaggedHost || ("https://" + (demo || beta || highPort ? 'dev' : 'api') + ".zooniverse.org"); + ProxyFrame.prototype.host = flaggedHost || ("https://" + (demo || beta || highPort || preview ? 'dev' : 'api') + ".zooniverse.org"); ProxyFrame.prototype.path = '/proxy'; @@ -1133,7 +1135,7 @@ window.base64 = { }).call(this); (function() { - var LanguageManager, translate, _ref, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref2, _ref20, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, + var LanguageManager, translate, _ref, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref2, _ref20, _ref21, _ref22, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, __slice = [].slice; LanguageManager = ((_ref = window.zooniverse) != null ? _ref.LanguageManager : void 0) || require('./language-manager'); @@ -1163,15 +1165,16 @@ window.base64 = { zh_cn: ((_ref13 = window.zooniverse) != null ? (_ref14 = _ref13.translations) != null ? _ref14.zh_cn : void 0 : void 0) || require('../translations/zh-cn'), de: ((_ref15 = window.zooniverse) != null ? (_ref16 = _ref15.translations) != null ? _ref16.de : void 0 : void 0) || require('../translations/de'), cs: ((_ref17 = window.zooniverse) != null ? (_ref18 = _ref17.translations) != null ? _ref18.cs : void 0 : void 0) || require('../translations/cs'), - ro: ((_ref19 = window.zooniverse) != null ? (_ref20 = _ref19.translations) != null ? _ref20.ro : void 0 : void 0) || require('../translations/ro') + ro: ((_ref19 = window.zooniverse) != null ? (_ref20 = _ref19.translations) != null ? _ref20.ro : void 0 : void 0) || require('../translations/ro'), + ja: ((_ref21 = window.zooniverse) != null ? (_ref22 = _ref21.translations) != null ? _ref22.ja : void 0 : void 0) || require('../translations/ja') }; translate.refresh = function(element, key) { - var name, property, string, value, _i, _len, _ref21, _ref22, _ref23, _ref24, _ref25, _results; - _ref21 = element.attributes; + var name, property, string, value, _i, _len, _ref23, _ref24, _ref25, _ref26, _ref27, _results; + _ref23 = element.attributes; _results = []; - for (_i = 0, _len = _ref21.length; _i < _len; _i++) { - _ref22 = _ref21[_i], name = _ref22.name, value = _ref22.value; + for (_i = 0, _len = _ref23.length; _i < _len; _i++) { + _ref24 = _ref23[_i], name = _ref24.name, value = _ref24.value; if (name.slice(0, translate.attr.length) !== translate.attr) { continue; } @@ -1179,8 +1182,8 @@ window.base64 = { continue; } property = name.slice(translate.attr.length + 1) || 'innerHTML'; - string = (_ref23 = translate.strings[(_ref24 = LanguageManager.current) != null ? _ref24.code : void 0]) != null ? _ref23[value] : void 0; - string || (string = (_ref25 = translate.strings[LanguageManager.defaultLocale]) != null ? _ref25[value] : void 0); + string = (_ref25 = translate.strings[(_ref26 = LanguageManager.current) != null ? _ref26.code : void 0]) != null ? _ref25[value] : void 0; + string || (string = (_ref27 = translate.strings[LanguageManager.defaultLocale]) != null ? _ref27[value] : void 0); string || (string = value); if (element.hasAttribute(property)) { _results.push(element.setAttribute(property, string)); @@ -1192,11 +1195,11 @@ window.base64 = { }; LanguageManager.on('change-language', function() { - var element, _i, _len, _ref21, _results; - _ref21 = document.querySelectorAll("[" + translate.attr + "]"); + var element, _i, _len, _ref23, _results; + _ref23 = document.querySelectorAll("[" + translate.attr + "]"); _results = []; - for (_i = 0, _len = _ref21.length; _i < _len; _i++) { - element = _ref21[_i]; + for (_i = 0, _len = _ref23.length; _i < _len; _i++) { + element = _ref23[_i]; _results.push(translate.refresh(element)); } return _results; diff --git a/zooniverse.min.js b/zooniverse.min.js index afc82ac..282ca17 100644 --- a/zooniverse.min.js +++ b/zooniverse.min.js @@ -1,4 +1,4 @@ -!function(e){e.base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var n,t,o,r,s,i,a,l="",u=0;for(e=base64._utf8_encode(e);u>2,s=(3&n)<<4|t>>4,i=(15&t)<<2|o>>6,a=63&o,isNaN(t)?i=a=64:isNaN(o)&&(a=64),l=l+base64._keyStr.charAt(r)+base64._keyStr.charAt(s)+base64._keyStr.charAt(i)+base64._keyStr.charAt(a);return l},decode:function(e){var n,t,o,r,s,i,a,l="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u>4,t=(15&s)<<4|i>>2,o=(3&i)<<6|a,l+=String.fromCharCode(n),64!=i&&(l+=String.fromCharCode(t)),64!=a&&(l+=String.fromCharCode(o));return l=base64._utf8_decode(l)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var n="",t=0;to?n+=String.fromCharCode(o):o>127&&2048>o?(n+=String.fromCharCode(o>>6|192),n+=String.fromCharCode(63&o|128)):(n+=String.fromCharCode(o>>12|224),n+=String.fromCharCode(o>>6&63|128),n+=String.fromCharCode(63&o|128))}return n},_utf8_decode:function(e){for(var n="",t=0,o=0,r=0,s=0;to?(n+=String.fromCharCode(o),t++):o>191&&224>o?(r=e.charCodeAt(t+1),n+=String.fromCharCode((31&o)<<6|63&r),t+=2):(r=e.charCodeAt(t+1),s=e.charCodeAt(t+2),n+=String.fromCharCode((15&o)<<12|(63&r)<<6|63&s),t+=3);return n}},function(){var n,t;n={topBarHeading:"A Zooniverse project",signUpHeading:"Sign up for a new Zooniverse account",signInHeading:"Sign in to your Zooniverse account",signUp:"Sign up",signIn:"Sign in",signOut:"Sign out",username:"Username",password:"Password",email:"Email",realName:"Real name",whyRealName:"This will be used when we thank contributors, for example, in talks or on posters. If you don't want to be mentioned publicly, leave this blank.",noAccount:"Don't have an account?",agreeToPrivacyPolicy:'I agree to the privacy policy.',betaPreference:"I would like to receive notices with opportunities to test and provide feedback on unreleased Zooniverse projects.",forgotPassword:"Forgot your password?",badLogin:"Incorrect username or password",signInFailed:"Sign in failed.",signInForProfile:"Sign in to see your profile.",footerHeading:"The Zooniverse is a collection of web-based citizen science projects that use the efforts of volunteers to help researchers deal with the flood of data that confronts them.",privacyPolicy:"Privacy policy",forkOnGitHub:"Source & bugs",recents:"Recents",favorites:"Favorites",none:"none"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.en=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Un proyecto de Zooniverse",signUpHeading:"Regístrate con una nueva cuenta Zooniverse",signInHeading:"Inicia sesión con tu cuenta de Zooniverse",signUp:"Suscribirse",signIn:"Iniciar sesión",signOut:"Salir",username:"Nombre de Usuario",password:"Contraseña",email:"Email",realName:"Nombre Real",whyRealName:"Esto será usado para agradecer a los colaboradores, por ejempl en las conversaciones o carteles. Si no quieres ser mencionado públicament déjalo en blanco.",noAccount:"¿No tienes una cuenta?",agreeToPrivacyPolicy:'Estoy de acuerdo con y su política de privacidad .',betaPreference:"Me gustaría recibir noticias con oportunidades para probar proporcionar feedback en los proyectos inéditos de Zooniverse",forgotPassword:"¿Olvidaste tu contraseña?",badLogin:"Nombre de usuario o contraseña incorrecta",signInFailed:"Error al iniciar sesión",signInForProfile:"Inicia sesión para ver tu perfil.",footerHeading:"Zooniverse es una colección de proyectos de ciencia ciudadan basados en la web que utiliza el esfuerzo de voluntarios para ayudar a lo investigadores con la avalancha de datos a la que se enfrentan.",privacyPolicy:"Política de privacidad",forkOnGitHub:"Fuente y errores",recents:"Recientes",favorites:"Favoritos",none:"ninguno"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.es=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Un projet Zooniverse",signUpHeading:"Créer un compte Zooniverse",signInHeading:"Connectez-vous à votre compte Zooniverse",signUp:"S'inscrire",signIn:"Connexion",signOut:"Déconnexion",username:"Nom d'utilisateur",password:"Mot de passe",email:"Email",realName:"Prénom Nom",whyRealName:"Votre nom pourra être utiliser lors du remerciement des contributeurs, par exemple lors de présentation orales ou sur des posters.
Si vous ne souhaitez pas qu'il soit mentionner publiquement, laissez cette case vide.",noAccount:"Vous n'avez pas encore de compte?",agreeToPrivacyPolicy:'J\'accepte les conditions d\'utilisation .',betaPreference:"J'aimerais être tenu au courant des projets en cours de développement par Zooniverse, afin de participer aux tests et donner mon avis.",forgotPassword:"Mot de passe oublié?",badLogin:"Utilisateur ou mot de passe incorrect",signInFailed:"Échec de la connexion.",signInForProfile:"Connectez-vous pour accéder à votre profil.",footerHeading:"Zooniverse est une collection de projets de science participative en ligne qui permettent aux volontaires d'aider les scientifiques à traiter les immenses quantités de données dont ils disposent.",privacyPolicy:"Contiditons d'utilisation",recents:"Récents",favorites:"Favoris",none:"aucun"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.fr=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Projekt Zooniverse",signUpHeading:"Utwórz nowe konto Zooniverse",signInHeading:"Zaloguj się na swoje konto Zooniverse",signUp:"Zarejestruj",signIn:"Zaloguj",signOut:"Wyloguj",username:"Nazwa użytkownika",password:"Hasło",email:"Adres e-mail",realName:"Prawdziwe imię",whyRealName:"Korzystamy z tych danych, kiedy dziękujemy ochotnikom za ich wkład, na przykład podczas rozmów czy na plakatach.
Jeżeli nie chcesz, abyśmy wymieniali Cię publicznie z imienia i nazwiska, zostaw to pole puste.",noAccount:"Nie masz jeszcze konta?",agreeToPrivacyPolicy:'Zgadzam się z polityką prywatności.',forgotPassword:"Nie pamiętasz hasła?",badLogin:"Niepoprawna nazwa użytkownika lub hasło",signInFailed:"Nie udało się zalogować",signInForProfile:"Zaloguj się, aby zobaczyć swój profil",footerHeading:"Zooniverse to zbiór projektów nauki obywatelskiej w Internecie, dzięki którym ochotnicy pomagają badaczom przedzierać się przez powódź napływających danych.",privacyPolicy:"Polityka prywatności",recents:"Najnowsze",favorites:"Ulubione",none:"nic"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.pl=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Проект Zooniverse",signUpHeading:"Создать новый аккаунт Zooniverse",signInHeading:"Войти в ваш аккаунт Zooniverse",signUp:"Зарегистрироваться",signIn:"Войти",signOut:"Выйти",username:"Имя пользователя",password:"Пароль",email:"Адрес E-mail",realName:"Настоящее имя",whyRealName:"Используется при выражении нашей благодарности участникам, например, в обсуждениях или объявлениях. Если вы не хотите, чтобы вас упоминали публично, оставьте это поле пустым.",noAccount:"Нет аккаунта?",agreeToPrivacyPolicy:'Я согласен с политикой конфиденциальности.',betaPreference:"Я хочу получать приглашения к участию в тестировании новых проектов Zooniverse.",forgotPassword:"Забыли пароль?",badLogin:"Неправильное имя пользователя или пароль",signInFailed:"Вход не выполнен.",signInForProfile:"Войдите, чтобы увидеть свой профиль.",footerHeading:"Zooniverse — это группа онлайн-проектов гражданской науки, где добровольцы помогают обрабатывать огромные объемы данных, с которыми приходится сталкиваться учёным.",privacyPolicy:"Политика конфиденциальности",forkOnGitHub:"Исходный код и баги",recents:"Недавние",favorites:"Избранное",none:"пусто"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.ru=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"「Zooniverse」計畫",signUpHeading:' "申請新的「Zooniverse」帳號',signInHeading:"以「Zooniverse」帳號登入 ",signUp:"新增帳號",signIn:"登入",signOut:"登出",username:"用戶名",password:"密碼",email:"電子信箱帳號",realName:"真實姓名",whyRealName:"這會用來感謝我們的協力夥伴,譬如放在演講場合或海報上。如果你不願公開真實姓名,可以空白。",noAccount:"還沒開立過帳號嗎?",agreeToPrivacyPolicy:'我同意 隱私權設定規定.',betaPreference:"我樂意幫忙測試尚未正式上線的「Zooniverse」計畫並協助讓程式更完善,有機會請通知我。",forgotPassword:"忘記密碼?",badLogin:"用戶名稱錯誤或密碼錯誤",signInFailed:"登入失敗。",signInForProfile:"登入查看已分類記錄。",footerHeading:" 「Zooniverse」網站以網路方式讓一般大眾能參與多種研究主題的科學計畫。志工分類員的協同努力,幫助科學家處理了龐大資料,這海量的資料原本對科學家是個不小的挑戰!",privacyPolicy:"隱私權設定規定",forkOnGitHub:"原始碼及錯誤回報",recents:"最新完成的",favorites:"我的最愛",none:"無"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.zh_tw=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Zooniverse计划",signUpHeading:' "申请新的Zooniverse帐号',signInHeading:"登入Zooniverse",signUp:"申请帐号",signIn:"登入",signOut:"登出",username:"用户名",password:"密码",email:"电子信箱帐号",realName:"真实姓名",whyRealName:"将会被用来感谢我们的协力伙伴,譬如放在演讲场合或海报上。如果你不愿公开真实姓名,可以空白。 ",noAccount:"还没开立过帐号吗? ",agreeToPrivacyPolicy:'我同意隐私权设定规定.',betaPreference:'我愿意帮忙测试尚未正式上线的 "Zooniverse计划" 并协助让程式更完善,有这类机会请通知我。 ',forgotPassword:"忘记密码?",badLogin:"用户名称错误或密码错误",signInFailed:"登入失败。 ",signInForProfile:"登入查看已分类记录。 ",footerHeading:" Zooniverse网站以网路方式让一般大众能参与多种研究主题的科学计划。海量的资料原本給科学家带来不小的挑战,还好有志愿者分类员协同努力,已帮助科学家处理了大量资料。 ",privacyPolicy:"隐私权设定规定",forkOnGitHub:"原始码及错误回报",recents:"最新完成的",favorites:"我的最爱",none:"无"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.zh_cn=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Ein Projekt von Zooniverse",signUpHeading:"Ein neues Zooniverse-Konto erstellen",signInHeading:"Mit Zooniverse-Konto anmelden",signUp:"Registrieren",signIn:"Anmelden",signOut:"Abmelden",username:"Benutzername",password:"Passwort",email:"E-Mail",realName:"Tatsächlicher Name",whyRealName:"Wenn wir Freiwilligen danken, zum Beispiel auf Postern oder in Vorträgen, wird dein tatsächlicher Name verwendet. Falls du nicht öffentlich erwähnt werden willst, lasse diese Zeile offen.",noAccount:"Kein Benutzerkonto?",agreeToPrivacyPolicy:'Ich stimme der Datenschutzrichtlinie zu.',betaPreference:"Ich würde gerne eine Nachricht erhalten, wenn die Gelegenheit besteht, neue Zooniverse-Projekte zu testen und meine Meinung abzugeben.",forgotPassword:"Passwort vergessen?",badLogin:"Falscher Benutzername oder falsches Passwort",signInFailed:"Anmeldung fehlgeschlagen.",signInForProfile:"Melde dich an, um dein Profil zu sehen.",footerHeading:"Zooniverse ist eine Sammlung von Citizen Science Projekten im Internet, die die Leistungen Freiwilliger nutzen, um Forschern mit der Datenflut zu helfen, mit der sie konfrontiert werden.",privacyPolicy:"Datenschutzrichtlinie",forkOnGitHub:"Source & Bugs",recents:"Neueste",favorites:"Favoriten",none:"keine"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.de=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Zooniverse projekt",signUpHeading:"Vytvoření Zooniverse účtu",signInHeading:"Přihlašování na Zooniverse účet",signUp:"Zaregistrovat se",signIn:"Přihlásit se",signOut:"Odhlásit se",username:"Uživatelské jméno",password:"Heslo",email:"Email",realName:"Pravé jméno",whyRealName:"Toto jméno bývá použito při děkování přispěvatelům, např. v rozhovorech nebo na posterech. Pokud si nepřejete, aby bylo Vaše jméno zveřejněno, nechte políčko prázdné.",noAccount:"Nemáte ještě účet?",agreeToPrivacyPolicy:'Souhlasím se zásadami ochrany osobních údajů.',betaPreference:"Chci dostávat oznámení o možnosti testování dosud nezveřejněných Zooniverse projektů a poskytování zpětné vazby.",forgotPassword:"Zapomněli jste heslo?",badLogin:"Zadali jste chybné uživatelské jméno, nebo heslo.",signInFailed:"Přihlášení se nezdařilo.",signInForProfile:"K zobrazení Vašeho profilu je nutné se přihlásit.",footerHeading:"Zooniverse je soubor občansko naučných webových projektů, které využívají úsilí dobrovolníků pomoct vědcům zpracovat kvanta dat, jimiž jsou při svém výzkumu zaplaveni.",privacyPolicy:"Zásady ochrany osobních údajů",forkOnGitHub:"Zdrojové soubory & chyby",recents:"Nedávné",favorites:"Oblíbené",none:"Žádné"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.cs=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t;n={topBarHeading:"Un proiect Zooniverse",signUpHeading:"Inregistreaza un nou cont Zooniverse",signInHeading:"Logheaza-te in countul tau Zooniverse",signUp:"Inregistrare",signIn:"Logare",signOut:"Delogare",username:"Nume utilizator",password:"Parola",email:"Email",realName:"Numele real",whyRealName:"Acesta va fi folosit pentru a multumi colaboratorilor, de exemplu, in discutii sau pe afise. Daca nu vrei sa fii mentionat in public, lasa acest camp necompletat.",noAccount:"Nu ai un cont?",agreeToPrivacyPolicy:'Sunt de acord cu regulile de confidentialitate.',betaPreference:"As dori sa primesc mesaje despre oportunitati de a testa si comenta despre proiecte Zooniverse nelansate.",forgotPassword:"Ai uitat parola?",badLogin:"Nume utilizator sau parola este incorecta",signInFailed:"Logarea a esuat.",signInForProfile:"Logheaza-te pentru a-ti vedea profilul.",footerHeading:"Zooniverse este o colectie de proiecte stiintifice conduse online in care voluntarii ii ajuta pe cercetatori sa administreze afluxul de date cu care se confrunta.",privacyPolicy:"Reguli de confidentialitate",forkOnGitHub:"Cod sursa si erori",recents:"Recente",favorites:"Favorite",none:"nici una"},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).translations&&(t.translations={}),e.zooniverse.translations.ro=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t,o,r={}.hasOwnProperty;null==e.zooniverse&&(e.zooniverse={}),n=e.jQuery,o=!!~location.href.indexOf("log=1"),t=function(){function e(){}var t,s;e.on=function(e,t){return null==this.jQueryEventProxy&&(this.jQueryEventProxy=n({})),this.jQueryEventProxy.on(e,t)},e.one=function(e,t){return null==this.jQueryEventProxy&&(this.jQueryEventProxy=n({})),this.jQueryEventProxy.one(e,t)},e.off=function(e,t){return null==this.jQueryEventProxy&&(this.jQueryEventProxy=n({})),this.jQueryEventProxy.off(e,t)},e.trigger=function(e,t){var r,s;return null==t&&(t=[]),o&&"undefined"!=typeof console&&null!==console&&console.info(this.name||this.toString(),e.toUpperCase(),t),null==this.jQueryEventProxy&&(this.jQueryEventProxy=n({})),(s=this.jQueryEventProxy).trigger.apply(s,arguments),"function"==typeof(r=this.constructor).trigger?r.trigger(e,[this].concat(t)):void 0};for(s in e)r.call(e,s)&&(t=e[s],e.prototype[s]=t);return e.prototype.destroy=function(){return this.trigger("destroying"),this.off()},o&&(e.prototype.toString=function(){return""+this.constructor.name+" instance"}),e}(),e.zooniverse.EventEmitter=t,"undefined"!=typeof module&&null!==module&&(module.exports=t)}.call(this),function(){var n,t,o,r,s,i,a,l,u,c,p=function(e,n){return function(){return e.apply(n,arguments)}},h={}.hasOwnProperty,d=function(e,n){function t(){this.constructor=e}for(var o in n)h.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e};null==e.zooniverse&&(e.zooniverse={}),t=e.zooniverse.EventEmitter||require("./event-emitter"),n=e.jQuery,l=n(document.body.parentNode),u=-1,s=!!~location.hostname.indexOf("demo"),r=!!~location.pathname.indexOf("beta"),a=+location.port>=1024,i=null!=(c=location.search.match(/api=([^&]+)/))?c[1]:void 0,null==i||~i.indexOf("//")||(i="//"+i),o=function(t){function o(t){var r,s,i=this;null==t&&(t={}),this.timeout=p(this.timeout,this),o.__super__.constructor.apply(this,arguments);for(r in t)h.call(t,r)&&(s=t[r],r in this&&null!=s&&(this[r]=s));null==this.deferreds&&(this.deferreds={}),null==this.queue&&(this.queue=[]),n(e).on("message",function(e){var n;return n=e.originalEvent,n.source===i.el.get(0).contentWindow?i.onMessage.apply(i,arguments):void 0}),this.connect()}return d(o,t),o.REJECTION="ProxyFrame not connected",o.prototype.host=i||"https://"+(s||r||a?"dev":"api")+".zooniverse.org",o.prototype.path="/proxy",o.prototype.loadTimeout=5e3,o.prototype.retryTimeout=12e4,o.prototype.el=null,o.prototype.className="proxy-frame",o.prototype.attempt=0,o.prototype.ready=!1,o.prototype.failed=!1,o.prototype.deferreds=null,o.prototype.queue=null,o.prototype.connect=function(){var e,t,o=this;return e=this.attempt<0?"_BAD":"",this.attempt+=1,null!=(t=this.el)&&t.remove(),this.el=n(""),this.el.appendTo(document.body),setTimeout(function(){return o.ready?void 0:o.timeout()},this.loadTimeout)},o.prototype.onReady=function(){var e=this;return this.attempt=0,this.ready=!0,this.failed=!1,setTimeout(function(){var n,t,o,r,s;for(r=e.queue,s=[],t=0,o=r.length;o>t;t++)n=r[t],s.push(e.process(n));return s},100),l.removeClass("offline"),this.trigger("ready")},o.prototype.timeout=function(){return this.trigger("timeout",this.loadTimeout),this.onFailed()},o.prototype.onFailed=function(){var e,n,t,o,r=this;if(!this.ready){for(this.failed=!0,o=this.queue,n=0,t=o.length;t>n;n++)e=o[n],this.deferreds[e.id].reject(this.constructor.REJECTION);return this.queue.splice(0),l.addClass("offline"),this.trigger("fail"),setTimeout(function(){return r.connect()},this.retryTimeout)}},o.prototype.send=function(e,t,o){var r,s=this;return u+=1,e.id=u,r=new n.Deferred,r.then(t,o),function(e,n){return n.always(function(){return delete s.deferreds[e]})}(u,r),this.deferreds[u]=r,this.failed?r.reject(this.constructor.REJECTION):this.ready?this.process(e):this.queue.push(e),r.promise()},o.prototype.process=function(e){return this.el.get(0).contentWindow.postMessage(JSON.stringify(e),this.host)},o.prototype.onMessage=function(e){var n,t;return n=e.originalEvent,t=JSON.parse(n.data),"READY"===t.id?this.onReady():(t.failure?this.deferreds[t.id].reject(t.response):this.deferreds[t.id].resolve(t.response),this.trigger("response",[t]))},o.prototype.destroy=function(){return this.el.remove(),o.__super__.destroy.apply(this,arguments)},o}(t),e.zooniverse.ProxyFrame=o,"undefined"!=typeof module&&null!==module&&(module.exports=o)}.call(this),function(){var n,t,o,r,s={}.hasOwnProperty,i=function(e,n){function t(){this.constructor=e}for(var o in n)s.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e},a=[].slice;null==e.zooniverse&&(e.zooniverse={}),o=e.zooniverse.EventEmitter||require("./event-emitter"),r=e.zooniverse.ProxyFrame||require("./proxy-frame"),n=e.jQuery,t=function(n){function t(e){var n,o,s,i,a=this;i=null!=e?e:{},this.project=i.project,n=i.host,s=i.path,o=i.loadTimeout,t.__super__.constructor.apply(this,arguments),this.proxyFrame=new r({host:n,path:s,loadTimeout:o}),this.proxyFrame.on("ready",function(){return a.trigger("ready")}),this.proxyFrame.on("fail",function(){return a.trigger("fail")}),this.select()}return i(t,n),t.current=null,t.prototype.project=".",t.prototype.headers={},t.prototype.proxyFrame=null,t.prototype.request=function(e,n,t,o,r){var s;return"function"==typeof t&&(s=[o,t,null],r=s[0],o=s[1],t=s[2],this.trigger("request",[e,n,t])),this.proxyFrame.send({type:e,url:n,data:t,headers:this.headers},o,r)},t.prototype.get=function(){return e.req=this.request.apply(this,["get"].concat(a.call(arguments)))},t.prototype.getJSON=function(){return this.request.apply(this,["getJSON"].concat(a.call(arguments)))},t.prototype.post=function(){return this.request.apply(this,["post"].concat(a.call(arguments)))},t.prototype.put=function(){return this.request.apply(this,["put"].concat(a.call(arguments)))},t.prototype["delete"]=function(){return this.request.apply(this,["delete"].concat(a.call(arguments)))},t.prototype.select=function(){return this.trigger("select"),this.constructor.current=this},t.prototype.destroy=function(){return this.proxyFrame.destroy(),t.__super__.destroy.apply(this,arguments)},t}(o),e.zooniverse.Api=t,"undefined"!=typeof module&&null!==module&&(module.exports=t)}.call(this),function(){var n,t,o=[].indexOf||function(e){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===e)return n;return-1};n=function(e,n,t){var r,s;return r=e.className.split(/\s+/),s=o.call(r,n)>=0,null==t&&(t=!s),t=!!t,s||t!==!0||r.push(n),s&&t===!1&&r.splice(r.indexOf(n),1),e.className=r.join(" "),null},null==e.zooniverse&&(e.zooniverse={}),null==(t=e.zooniverse).util&&(t.util={}),e.zooniverse.util.toggleClass=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t,o,r,s=function(e,n){return function(){return e.apply(n,arguments)}},i={}.hasOwnProperty,a=function(e,n){function t(){this.constructor=e}for(var o in n)i.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e},l=[].indexOf||function(e){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===e)return n;return-1};t=(null!=(r=e.zooniverse)?r.EventEmitter:void 0)||require("./event-emitter"),n=e.jQuery,o=function(e){function t(e){this.defaultStringsFormat=s(this.defaultStringsFormat,this),this.label=s(this.label,this);var n,t,o,r,a,u,c,p=this;for(n in e)i.call(e,n)&&(t=e[n],n in this&&(this[n]=t));null==this.translations&&(this.translations={}),null==this.code&&(this.code=null!=(a=location.search.match(/lang=([^&]+)/))?a[1]:void 0),null==this.code&&(this.code=localStorage.getItem("zooniverse-language-code")),null==this.code&&(this.code=null!=(u=navigator.language)?u.split("-")[0]:void 0),null==this.code&&(this.code=null!=(c=navigator.userLanguage)?c.split("-")[0]:void 0),null==this.code&&(this.code=this.constructor.prototype.code),(l.call(this.code,"/")>=0||l.call(this.code,".json")>=0)&&null==(o=this.translations)[r=this.code]&&(o[r]={label:this.code,strings:this.code}),this.constructor.current=this,setTimeout(function(){return p.setLanguage(p.code)})}return a(t,e),t.current=null,t.defaultLocale="en",t.prototype.translations=null,t.prototype.code=null,t.prototype.setLanguage=function(e,t,o){var r,s,i,a,l=this;return this.code=e,null==this.translations[this.code]&&(this.code=this.constructor.defaultLocale),null==this.translations[this.code].strings&&(this.translations[this.code].strings=this.defaultStringsFormat()),"string"==typeof this.translations[this.code].strings?(s=null!=(a=this.translations[this.code])?a.strings:void 0,r=JSON.parse(localStorage.getItem("zooniverse-language-strings-"+this.code)),null!=r&&(this.translations[this.code].strings=r,this.setLanguage(this.code,t,o)),i=n.getJSON(s),i.done(function(e){return localStorage.setItem("zooniverse-language-strings-"+l.code,JSON.stringify(e)),l.translations[l.code].strings=e,l.setLanguage(l.code,t,o)}),i.fail(function(){return l.trigger("language-fetch-fail"),"function"==typeof o?o.apply(null,arguments):void 0})):(localStorage.setItem("zooniverse-language-code",this.code),document.querySelector("html").lang=this.code,this.trigger("change-language",[this.code,this.translations[this.code].strings]),"function"==typeof t?t(this.code,this.translations[this.code].strings):void 0)},t.prototype.label=function(){var e,n;return(null!=(e=this.translations[this.code])?e.label:void 0)||(null!=(n=this.translations[this.constructor.prototype.code])?n.label:void 0)},t.prototype.defaultStringsFormat=function(){return"./translations/"+this.code+".json"},t}(t),null==e.zooniverse&&(e.zooniverse={}),e.zooniverse.LanguageManager=o,"undefined"!=typeof module&&null!==module&&(module.exports=o)}.call(this),function(){var n,t,o,r,s,i,a,l,u,c,p,h,d,v,f,g,m,y,z,w,b,_,C,j=[].slice;n=(null!=(o=e.zooniverse)?o.LanguageManager:void 0)||require("./language-manager"),t=function(){var e,n,o,r,s;return r=2<=arguments.length?j.call(arguments,0,s=arguments.length-1):(s=0,[]),n=arguments[s++],o=r[0],null==o&&(o="span"),e=document.createElement(o),e.setAttribute(t.attr,n),t.refresh(e),e.outerHTML},t.attr="data-zooniverse-translate",t.strings={en:(null!=(r=e.zooniverse)&&null!=(f=r.translations)?f.en:void 0)||require("../translations/en"),es:(null!=(m=e.zooniverse)&&null!=(y=m.translations)?y.es:void 0)||require("../translations/es"),fr:(null!=(z=e.zooniverse)&&null!=(w=z.translations)?w.fr:void 0)||require("../translations/fr"),pl:(null!=(b=e.zooniverse)&&null!=(_=b.translations)?_.pl:void 0)||require("../translations/pl"),ru:(null!=(C=e.zooniverse)&&null!=(s=C.translations)?s.ru:void 0)||require("../translations/ru"),zh_tw:(null!=(i=e.zooniverse)&&null!=(a=i.translations)?a.zh_tw:void 0)||require("../translations/zh-tw"),zh_cn:(null!=(l=e.zooniverse)&&null!=(u=l.translations)?u.zh_cn:void 0)||require("../translations/zh-cn"),de:(null!=(c=e.zooniverse)&&null!=(p=c.translations)?p.de:void 0)||require("../translations/de"),cs:(null!=(h=e.zooniverse)&&null!=(d=h.translations)?d.cs:void 0)||require("../translations/cs"),ro:(null!=(v=e.zooniverse)&&null!=(g=v.translations)?g.ro:void 0)||require("../translations/ro")},t.refresh=function(e){var o,r,s,i,a,l,u,c,p,h,d,v;for(u=e.attributes,v=[],a=0,l=u.length;l>a;a++)c=u[a],o=c.name,i=c.value,o.slice(0,t.attr.length)===t.attr&&i&&(r=o.slice(t.attr.length+1)||"innerHTML",s=null!=(p=t.strings[null!=(h=n.current)?h.code:void 0])?p[i]:void 0,s||(s=null!=(d=t.strings[n.defaultLocale])?d[i]:void 0),s||(s=i),v.push(e.hasAttribute(r)?e.setAttribute(r,s):e[r]=s));return v},n.on("change-language",function(){var e,n,o,r,s;for(r=document.querySelectorAll("["+t.attr+"]"),s=[],n=0,o=r.length;o>n;n++)e=r[n],s.push(t.refresh(e));return s}),null==e.zooniverse&&(e.zooniverse={}),e.zooniverse.translate=t,"undefined"!=typeof module&&null!==module&&(module.exports=t)}.call(this),function(){var n,t,o,r,s,i,a={}.hasOwnProperty,l=function(e,n){function t(){this.constructor=e}for(var o in n)a.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e},u=[].slice;null==e.zooniverse&&(e.zooniverse={}),t=e.zooniverse.EventEmitter||require("./event-emitter"),n=e.jQuery,o={visitor:1,session:2,page:3},s="http://www.google-analytics.com/ga.js","https:"===e.location.protocol&&(s=s.replace("http://www","https://ssl")),r=function(t){function r(t){var o,r,i,a,l,u,c=this;null==t&&(t={});for(o in t)i=t[o],this[o]=i;if(this.select(),e._gaq||n.getScript(s),null==e._gaq&&(e._gaq=[]),e._gaq.push(["_setAccount",this.account]),e._gaq.push(["_trackPageview"]),this.domain)for(e._gaq.push(["_setDomainName",this.domain]),u=this.ignoredSubdomainRefs,a=0,l=u.length;l>a;a++)r=u[a],e._gaq.push(["_addIgnoredRef",""+r+"."+this.domain]);this.trackHashes&&n(e).on("hashchange",function(){return c.track()})}return l(r,t),r.current=null,r.prototype.account="",r.prototype.domain="",r.prototype.trackHashes=!0,r.prototype.ignoredSubdomainRefs=["www"],r.prototype.select=function(){return this.constructor.current=this,this.trigger("select")},r.prototype.track=function(n){return"string"!=typeof n&&(n="/"+location.hash),e._gaq.push(["_trackPageview",n]),this.trigger("track",[n])},r.prototype.event=function(){return e._gaq.push(["_trackEvent"].concat(u.call(arguments))),this.trigger("event",u.call(arguments))},r.prototype.custom=function(n,t,r,s){var i;return"string"==typeof n&&(n=this.constructor.indices[n]),"string"==typeof s&&(s=o[s]),i=["_setCustomVar",n,t,r],null!=s&&i.push(s),e._gaq.push(i),this.trigger("custom",u.call(arguments))},r}(t),null!=(i=e.zooniverse)&&(i.GoogleAnalytics=r),"undefined"!=typeof module&&null!==module&&(module.exports=r)}.call(this),function(){var n,t,o,r={}.hasOwnProperty,s=function(e,n){function t(){this.constructor=e}for(var o in n)r.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e};null==e.zooniverse&&(e.zooniverse={}),null==(o=e.zooniverse).models&&(o.models={}),t=e.zooniverse.EventEmitter||require("../lib/event-emitter"),n=function(e){function n(e){var t,o,s;null==e&&(e={}),n.__super__.constructor.apply(this,arguments);for(t in e)r.call(e,t)&&(o=e[t],this[t]=o);this.constructor.idCounter+=1,null==this.id&&(this.id="C_"+this.constructor.idCounter),null==(s=this.constructor).instances&&(s.instances=[]),this.constructor.instances.push(this)}return s(n,e),n.idCounter=-1,n.instances=null,n.count=function(){return null==this.instances&&(this.instances=[]),this.instances.length},n.first=function(){return null==this.instances&&(this.instances=[]),this.instances[0]},n.find=function(e){var n,t,o,r;for(null==this.instances&&(this.instances=[]),r=this.instances,t=0,o=r.length;o>t;t++)if(n=r[t],n.id===e)return n},n.search=function(e){var n,t,o,s,i,a,l,u;for(null==this.instances&&(this.instances=[]),l=this.instances,u=[],i=0,a=l.length;a>i;i++){n=l[i],t=!1;for(o in e)if(r.call(e,o)&&(s=e[o],n[o]!==s)){t=!0;break}t||u.push(n)}return u},n.destroyAll=function(){var e;for(e=[];0!==this.count();)e.push(this.first().destroy());return e},n.prototype.id=null,n.prototype.destroy=function(){var e,t,o,r,s,i,a;for(n.__super__.destroy.apply(this,arguments),s=this.constructor.instances,a=[],e=o=0,r=s.length;r>o;e=++o)if(t=s[e],t===this){null!=(i=this.constructor.instances)&&i.splice(e,1);break}return a},n}(t),e.zooniverse.models.BaseModel=n,"undefined"!=typeof module&&null!==module&&(module.exports=n)}.call(this),function(){var n,t,o,r,s,i={}.hasOwnProperty,a=function(e,n){function t(){this.constructor=e}for(var o in n)i.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e},l=[].slice;null==e.zooniverse&&(e.zooniverse={}),null==(s=e.zooniverse).models&&(s.models={}),t=e.zooniverse.EventEmitter||require("../lib/event-emitter"),n=e.zooniverse.Api||require("../lib/api"),r=e.base64||(require("../vendor/base64"),e.base64),o=function(e){function t(e){var n,t;null==e&&(e={});for(n in e)i.call(e,n)&&(t=e[n],this[n]=t)}return a(t,e),t.current=!1,t.path=function(){return n.current.project?"/projects/"+n.current.project:""},t.fetch=function(){var e,o;return t.trigger("fetching",arguments),e=(o=n.current).getJSON.apply(o,[""+t.path()+"/current_user"].concat(l.call(arguments))),e.always(t.onFetch),e},t.login=function(e){var t,o,r,s;return r=e.username,o=e.password,this.trigger("logging-in",arguments),t=(s=n.current).getJSON.apply(s,[""+this.path()+"/login"].concat(l.call(arguments))),t.done(this.onFetch),t.fail(this.onFail),t},t.logout=function(){var e,t;return this.trigger("logging-out",arguments),e=(t=n.current).getJSON.apply(t,[""+this.path()+"/logout"].concat(l.call(arguments))),e.always(this.onFetch),e},t.signup=function(e){var t,o,r,s,i; -return s=e.username,o=e.password,t=e.email,this.trigger("signing-up"),r=(i=n.current).getJSON.apply(i,[""+this.path()+"/signup"].concat(l.call(arguments))),r.always(this.onFetch),r},t.onFetch=function(e){var o,s;return s=t.current,t.current=e.success&&"name"in e&&"api_key"in e?new t(e):null,t.current?(o=r.encode(""+t.current.name+":"+t.current.api_key),n.current.headers.Authorization="Basic "+o):delete n.current.headers.Authorization,t.current!==s&&(s&&s.destroy(),t.trigger("change",[t.current])),e.success?void 0:t.trigger("sign-in-error",e.message)},t.onFail=function(){return t.trigger("sign-in-failure")},t.prototype.id="",t.prototype.zooniverse_id="",t.prototype.api_key="",t.prototype.name="",t.prototype.avatar="",t.prototype.project=null,t.prototype.setGroup=function(e,o){var r,s,i,a=this;if(null!=t.current)return s=null!=e?"/user_groups/"+e+"/participate":"/user_groups/TODO_HOW_DO_I_LEAVE_A_GROUP/participate",r=null!=(i=n.current)?i.getJSON(s,function(e){return a.trigger("change-group",e),"function"==typeof o?o.apply(null,arguments):void 0}):void 0},t.prototype.setPreference=function(e,o,r,s){var i,a,l,u;return null==r&&(r=!1),null!=t.current?("function"==typeof r&&(u=[!1,r],r=u[0],s=u[1]),null==(i=t.current).preferences&&(i.preferences={}),r?t.current.preferences[e]=o:(null==(a=t.current.preferences)[l=n.current.project]&&(a[l]={}),t.current.preferences[n.current.project][e]=o),r||(e=""+n.current.project+"."+e),n.current.put("/users/preferences",{key:e,value:o},s)):void 0},t.prototype.deletePreference=function(e,o,r){var s,i,a,l;return null==o&&(o=!1),null!=t.current?("function"==typeof o&&(l=[!1,o],o=l[0],r=l[1]),null==(s=t.current).preferences&&(s.preferences={}),o?delete t.current.preferences[e]:(null==(i=t.current.preferences)[a=n.current.project]&&(i[a]={}),delete t.current.preferences[n.current.project][e]),o||(e=""+n.current.project+"."+e),n.current["delete"]("/users/preferences",{key:e},r)):void 0},t}.call(this,t),e.zooniverse.models.User=o,"undefined"!=typeof module&&null!==module&&(module.exports=o)}.call(this),function(){var n,t,o,r,s,i={}.hasOwnProperty,a=function(e,n){function t(){this.constructor=e}for(var o in n)i.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e},l=[].indexOf||function(e){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===e)return n;return-1};null==e.zooniverse&&(e.zooniverse={}),null==(s=e.zooniverse).models&&(s.models={}),o=zooniverse.models.BaseModel||require("./base-model"),t=zooniverse.Api||require("../lib/api"),n=e.jQuery,r=function(e){function o(){o.__super__.constructor.apply(this,arguments),null==this.location&&(this.location={}),null==this.coords&&(this.coords=[]),null==this.metadata&&(this.metadata={}),null==this.workflow_ids&&(this.workflow_ids=[])}return a(o,e),o.current=null,o.seenThisSession=[],o.queueMin=2,o.queueMax=10,o.group=!1,o.fallback="./offline/subjects.json",o.path=function(){var e;return e=this.group?this.group===!0?"groups/":"groups/"+this.group+"/":"","/projects/"+t.current.project+"/"+e+"subjects"},o.next=function(e,t){var o,r,s,i=this;return this.trigger("get-next"),null!=(s=this.current)&&s.destroy(),this.current=null,r=new n.Deferred,r.then(e,t),0===this.count()?(o=this.fetch(),o.done(function(){var e;return null!=(e=i.first())&&e.select(),i.current?r.resolve(i.current):(i.trigger("no-more"),r.reject.apply(r,arguments))}),o.fail(function(){return r.reject.apply(r,arguments)})):(this.first().select(),r.resolve(this.current),this.count()=0},o.fetch=function(e,o,r){var s,i,a,l,u=this;return"function"==typeof e&&(l=[e,o,{}],o=l[0],r=l[1],e=l[2]),i=(e||{}).limit,null==i&&(i=this.queueMax-this.count()),s=new n.Deferred,s.then(o,r),i>0?(a=t.current.get(this.path(),{limit:i}),a.done(function(e){var n,t;for(n=function(){var n,o,r;for(r=[],n=0,o=e.length;o>n;n++)t=e[n],this.hasSeenSubject(t)||(this.trackSeenSubject(t),r.push(new this(t)));return r}.call(u);!(u.seenThisSession.length<1e3);)u.seenThisSession.shift();return u.trigger("fetch",[n]),s.resolve(n)}),a.fail(function(){var e;return u.trigger("fetching-fallback"),e=n.get(u.fallback),e.done(function(e){var n,t,o,r,i;if(u.group){for(t=[],r=0,i=e.length;i>r;r++)o=e[r],o.group_id===u.group&&t.push(o);e=t}return e.sort(function(){return Math.random()-.5}),n=function(){var n,t,r;for(r=[],n=0,t=e.length;t>n;n++)o=e[n],r.push(new this(o));return r}.call(u),u.trigger("fetch",[n]),s.resolve(n)}),e.fail(function(){return u.trigger("fetch-fail"),s.fail.apply(s,arguments)})})):s.resolve(this.instances.slice(0,number)),s.promise()},o.prototype.id="",o.prototype.zooniverse_id="",o.prototype.classification_count=null,o.prototype.coords=null,o.prototype.location=null,o.prototype.metadata=null,o.prototype.project_id="",o.prototype.group_id="",o.prototype.workflow_ids=null,o.prototype.tutorial=null,o.prototype.preload=!0,o.prototype.preloadImages=function(){var e,n,t,o,r;if(this.preload){o=this.location,r=[];for(t in o)e=o[t],e instanceof Array||(e=[e]),this.isImage(e)&&r.push(function(){var t,o,r;for(r=[],t=0,o=e.length;o>t;t++)n=e[t],r.push((new Image).src=n);return r}());return r}},o.prototype.select=function(){return this.constructor.current=this,this.trigger("select")},o.prototype.destroy=function(){return this.constructor.current===this&&(this.constructor.current=null),o.__super__.destroy.apply(this,arguments)},o.prototype.isImage=function(e){var n,t,o,r;for(t=0,o=e.length;o>t;t++)if(n=e[t],"gif"!==(r=n.split(".").pop())&&"jpg"!==r&&"png"!==r)return!1;return!0},o.prototype.talkHref=function(){var e;return e=this.domain||location.hostname.replace(/^www\./,""),"http://talk."+e+"/#/subjects/"+this.zooniverse_id},o.prototype.socialImage=function(){var e;return e=this.location.standard instanceof Array?this.location.standard[Math.floor(this.location.standard.length/2)]:this.location.standard,n("").get(0).href},o.prototype.socialTitle=function(){return"Zooniverse classification"},o.prototype.socialMessage=function(){return"Classifying on the Zooniverse!"},o.prototype.facebookHref=function(){return("https://www.facebook.com/sharer/sharer.php\n?s=100\n&p[url]="+encodeURIComponent(this.talkHref())+"\n&p[title]="+encodeURIComponent(this.socialTitle())+"\n&p[summary]="+encodeURIComponent(this.socialMessage())+"\n&p[images][0]="+this.socialMessage()).replace("\n","","g")},o.prototype.twitterHref=function(){var e;return e=""+this.socialMessage()+" "+this.talkHref(),"http://twitter.com/home?status="+encodeURIComponent(e)},o.prototype.pinterestHref=function(){return("http://pinterest.com/pin/create/button/\n?url="+encodeURIComponent(this.talkHref())+"\n&media="+encodeURIComponent(this.socialImage())+"\n&description="+encodeURIComponent(this.socialMessage())).replace("\n","","g")},o}(o),e.zooniverse.models.Subject=r,"undefined"!=typeof module&&null!==module&&(module.exports=r)}.call(this),function(){var n,t,o,r,s,i,a,l,u,c={}.hasOwnProperty,p=function(e,n){function t(){this.constructor=e}for(var o in n)c.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e};null==e.zooniverse&&(e.zooniverse={}),null==(l=e.zooniverse).models&&(l.models={}),o=e.zooniverse.models.BaseModel||require("./base-model"),t=e.zooniverse.Api||require("../lib/api"),a=e.zooniverse.models.User||require("./user"),s=e.zooniverse.models.Subject||require("./subject"),n=e.jQuery,i=function(e){function n(){return u=n.__super__.constructor.apply(this,arguments)}return p(n,e),n}(s),r=function(e){function o(){var e,n,t,r,s,a,l,u;for(o.__super__.constructor.apply(this,arguments),null==this.subjects&&(this.subjects=[]),this.project_id||(this.project_id=null!=(s=this.subjects[0])?s.project_id:void 0),this.workflow_id||(this.workflow_id=null!=(a=this.subjects[0])&&null!=(l=a.workflow_ids)?l[0]:void 0),this.created_at||(this.created_at=(new Date).toUTCString()),u=this.subjects,e=t=0,r=u.length;r>t;e=++t)n=u[e],this.subjects[e]=new i(n)}return p(o,e),o.type="recent",o.path=function(){var e;return"/projects/"+t.current.project+"/users/"+(null!=(e=a.current)?e.id:void 0)+"/"+this.type+"s"},o.fetch=function(e,o,r){var s,i,a,l=this;return this.trigger("fetching"),"function"==typeof e&&(a=[e,o,{}],o=a[0],r=a[1],e=a[2]),e=n.extend({page:1,per_page:10},e),s=new n.Deferred,s.then(o,r),i=t.current.get(this.path(),e),i.done(function(e){var n,t;return n=function(){var n,o,r,s;for(r=e.reverse(),s=[],n=0,o=r.length;o>n;n++)t=r[n],s.push(new this(t));return s}.call(l),l.trigger("fetch",[n]),s.resolve(n)}),i.fail(function(){return l.trigger("fetch-fail"),s.reject.apply(s,arguments)}),s.promise()},o.clearOnUserChange=function(){var e;return e=this,a.on("change",function(){var n;for(n=[];0!==e.count();)n.push(e.first().destroy());return n})},o.clearOnUserChange(),o.prototype.subjects=null,o.prototype.project_id="",o.prototype.workflow_id="",o.prototype.created_at="",o}(o),e.zooniverse.models.Recent=r,"undefined"!=typeof module&&null!==module&&(module.exports=r)}.call(this),function(){var n,t,o,r,s,i,a,l=function(e,n){return function(){return e.apply(n,arguments)}},u={}.hasOwnProperty,c=function(e,n){function t(){this.constructor=e}for(var o in n)u.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e};null==e.zooniverse&&(e.zooniverse={}),null==(i=e.zooniverse).models&&(i.models={}),r=e.zooniverse.models.Recent||require("./recent"),t=e.zooniverse.Api||require("../lib/api"),s=e.zooniverse.models.User||require("./user"),n=e.jQuery,o=function(e){function n(){return this.toJSON=l(this.toJSON,this),a=n.__super__.constructor.apply(this,arguments)}return c(n,e),n.type="favorite",n.clearOnUserChange(),n.prototype.toJSON=function(){var e;return{favorite:{subject_ids:function(){var n,t,o,r;for(o=this.subjects,r=[],n=0,t=o.length;t>n;n++)e=o[n],r.push(e.id);return r}.call(this)}}},n.prototype.send=function(){var e=this;return this.trigger("sending"),t.current.post("/projects/"+t.current.project+"/favorites",this.toJSON(),function(n){return e.id=n.id,e.trigger("send")})},n.prototype["delete"]=function(){var e=this;return this.trigger("deleting"),t.current["delete"]("/projects/"+t.current.project+"/favorites/"+this.id,function(){return e.trigger("delete"),e.destroy()})},n}(r),e.zooniverse.models.Favorite=o,"undefined"!=typeof module&&null!==module&&(module.exports=o)}.call(this),function(){var n,t,o,r,s,i,a,l,u,c,p,h,d,v,f,g,m,y={}.hasOwnProperty,z=function(e,n){function t(){this.constructor=e}for(var o in n)y.call(n,o)&&(e[o]=n[o]);return t.prototype=n.prototype,e.prototype=new t,e.__super__=n.prototype,e},w=[].indexOf||function(e){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===e)return n;return-1},b=[].slice;o=(null!=(c=e.zooniverse)&&null!=(p=c.models)?p.BaseModel:void 0)||require("./base-model"),t=(null!=(h=e.zooniverse)?h.Api:void 0)||require("../lib/api"),l=(null!=(d=e.zooniverse)&&null!=(v=d.models)?v.Recent:void 0)||require("../models/recent"),s=(null!=(f=e.zooniverse)&&null!=(g=f.models)?g.Favorite:void 0)||require("../models/favorite"),i=(null!=(m=e.zooniverse)?m.LanguageManager:void 0)||require("../lib/language-manager"),n=e.jQuery,a=(new n.Deferred).resolve().state(),r=function(o){function r(){r.__super__.constructor.apply(this,arguments),null==this.annotations&&(this.annotations=[]),this.generic={},this.started_at=(new Date).toUTCString(),this.user_agent=e.navigator.userAgent}return z(r,o),r.pending=JSON.parse(localStorage.getItem("pending-classifications"))||[],r.sentThisSession=0,r.sendPending=function(){var e,o,r,i,l,u,c=this;if(0!==this.pending.length){for(this.trigger("sending-pending",[e]),o=[],l=this.pending,u=[],r=0,i=l.length;i>r;r++)e=l[r],u.push(function(e){var r;return r=t.current.post(e.url,e),o.push(r),r.done(function(){var n,t;return c.trigger("send-pending",[e]),e.favorite?(n=new s({subjects:function(){var n,o,r,s;for(r=e.subject_ids,s=[],n=0,o=r.length;o>n;n++)t=r[n],s.push({id:t});return s}()}),n.send()):void 0}),r.fail(function(){return c.trigger("send-pending-fail",[e])}),n.when.apply(n,o).always(function(){var e,n,t;for(e=n=t=o.length-1;0>=t?0>=n:n>=0;e=0>=t?++n:--n)o[e].state()===a&&c.pending.splice(e,1);return localStorage.setItem("pending-classifications",JSON.stringify(c.pending))})}(e));return u}},r.prototype.subjects=[],r.prototype.subject=null,r.prototype.annotations=null,r.prototype.favorite=!1,r.prototype.generic=null,r.prototype.started_at=null,r.prototype.finished_at=null,r.prototype.user_agent=null,r.prototype.normalizeSubjects=function(){return this.subjects.length>0?this.subject||(this.subject=this.subjects[0]):this.subjects=[this.subject]},r.prototype.annotate=function(e){return this.annotations.push(e),e},r.prototype.removeAnnotation=function(e){var n,t,o,r,s;for(s=this.annotations,t=o=0,r=s.length;r>o;t=++o)if(n=s[t],n===e)return this.annotations.splice(t,1)},r.prototype.isTutorial=function(){var e;return this.normalizeSubjects(),w.call(function(){var n,t,o,r,s;for(o=this.subjects,s=[],n=0,t=o.length;t>n;n++)e=o[n],s.push(null!=(r=e.metadata)?r.tutorial:void 0);return s}.call(this),!0)>=0},r.prototype.set=function(e,n){return this.generic[e]=n,this.trigger("change",[e,n])},r.prototype.get=function(e){return this.generic[e]},r.prototype.toJSON=function(){var e,n,t,o,r,s,a;null!=i.current&&this.set("lang",i.current.code),this.normalizeSubjects(),r=function(){var e,n,t,r;for(t=this.subjects,r=[],e=0,n=t.length;n>e;e++)o=t[e],r.push(o.id);return r}.call(this),t={classification:{subject_ids:r,annotations:this.annotations.concat([{started_at:this.started_at,finished_at:this.finished_at},{user_agent:this.user_agent}])}},a=this.generic;for(n in a)s=a[n],e={},e[n]=s,t.classification.annotations.push(e);return this.favorite&&(t.classification.favorite=!0),t},r.prototype.url=function(){return this.normalizeSubjects(),"/projects/"+t.current.project+"/workflows/"+this.subjects[0].workflow_ids[0]+"/classifications"},r.prototype.send=function(){var e,n,o=this;return this.isTutorial()||(this.constructor.sentThisSession+=1),this.finished_at=(new Date).toUTCString(),e=(n=t.current).post.apply(n,[this.url(),this.toJSON()].concat(b.call(arguments))),e.done(function(){return o.makeRecent(),o.constructor.sendPending()}),e.fail(function(){return o.makePending()}),this.trigger("send")},r.prototype.makePending=function(){var e;return e=this.toJSON(),e.url=this.url(),this.constructor.pending.push(e),localStorage.setItem("pending-classifications",JSON.stringify(this.constructor.pending)),this.trigger("pending")},r.prototype.makeRecent=function(){var e,n,t,o,r,i,a;for(this.normalizeSubjects(),i=this.subjects,a=[],o=0,r=i.length;r>o;o++)t=i[o],n=new l({subjects:[t]}),n.trigger("from-classification"),this.favorite?(e=new s({subjects:[t]}),a.push(e.trigger("from-classification"))):a.push(void 0);return a},r}(o),null==e.zooniverse&&(e.zooniverse={}),null==(u=e.zooniverse).models&&(u.models={}),e.zooniverse.models.Classification=r,"undefined"!=typeof module&&null!==module&&(module.exports=r)}.call(this),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=function(e){return e&&e.ecoSafe?e:"undefined"!=typeof e&&null!=e?s(e):""},r=e.safe,s=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},s||(s=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var e;e=this.className||"zooniverse-logo",t.push('\n\n\n \n \n \n \n \n\n')}).call(this)}.call(e),e.safe=r,e.escape=s,t.join("")},e.zooniverse.views.zooniverseLogoSvg=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=function(e){return e&&e.ecoSafe?e:"undefined"!=typeof e&&null!=e?s(e):""},r=e.safe,s=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},s||(s=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var e;e=this.className||"zooniverse-group-icon",t.push('\n\n\n '),null==document.getElementById("zooniverse-groups-icon-person")&&t.push('\n \n \n \n '),t.push('\n\n \n \n \n \n \n\n')}).call(this)}.call(e),e.safe=r,e.escape=s,t.join("")},e.zooniverse.views.groupIconSvg=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=function(e){return e&&e.ecoSafe?e:"undefined"!=typeof e&&null!=e?s(e):""},r=e.safe,s=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},s||(s=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var e;e=this.className||"zooniverse-mail-icon",t.push('\n\n\n \n \n \n \n\n')}).call(this)}.call(e),e.safe=r,e.escape=s,t.join("")},e.zooniverse.views.mailIconSvg=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=e.safe,r=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},r||(r=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){t.push('
\n
\n
\n
\n
\n')}).call(this)}.call(e),e.safe=o,e.escape=r,t.join("")},e.zooniverse.views.dialog=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(n){n||(n={});var t,o=[],r=n.safe,s=n.escape;return t=n.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},s||(s=n.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var n,t,r,s,i,a,l,u,c,p,h;r=(null!=(i=e.zooniverse)?i.translate:void 0)||require("../lib/translate"),o.push("\n"),s=(null!=(a=e.zooniverse)&&null!=(l=a.views)?l.zooniverseLogoSvg:void 0)||require("./zooniverse-logo-svg"),o.push("\n"),n=(null!=(u=e.zooniverse)&&null!=(c=u.views)?c.groupIconSvg:void 0)||require("./group-icon-svg"),o.push("\n"),t=(null!=(p=e.zooniverse)&&null!=(h=p.views)?h.mailIconSvg:void 0)||require("./mail-icon-svg"),o.push('\n\n
\n \n \n \n
\n\n
\n
\n '),o.push(s()),o.push("\n "),o.push(r("topBarHeading")),o.push('\n
\n\n \n
\n\n
\n \n\n
\n
\n \n
\n
\n\n \n\n
\n \n
\n
\n\n
\n \n
\n')}).call(this)}.call(n),n.safe=r,n.escape=s,o.join("")},e.zooniverse.views.topBar=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(n){n||(n={});var t,o=[],r=n.safe,s=n.escape;return t=n.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},s||(s=n.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var n,t;n=(null!=(t=e.zooniverse)?t.translate:void 0)||require("../lib/translate"),o.push('\n\n\n\n\n
\n')}).call(this)}.call(n),n.safe=r,n.escape=s,o.join("")},e.zooniverse.views.loginForm=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=e.safe,r=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},r||(r=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var e,n,o;e=("undefined"!=typeof zooniverse&&null!==zooniverse?zooniverse.translate:void 0)||require("../lib/translate"),t.push("\n"),n=("undefined"!=typeof zooniverse&&null!==zooniverse&&null!=(o=zooniverse.views)?o.zooniverseLogoSvg:void 0)||require("./zooniverse-logo-svg"),t.push('\n\n
\n\n\n\n
\n '),t.push(n()),t.push("\n "),t.push(e("signInHeading")),t.push('\n
\n\n\n\n\n\n
\n\n
\n '),t.push(e("forgotPassword")),t.push('\n \n
\n")}).call(this)}.call(e),e.safe=o,e.escape=r,t.join("")},e.zooniverse.views.loginDialog=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=e.safe,r=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},r||(r=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var e,n,o;e=("undefined"!=typeof zooniverse&&null!==zooniverse?zooniverse.translate:void 0)||require("../lib/translate"),t.push("\n"),n=("undefined"!=typeof zooniverse&&null!==zooniverse&&null!=(o=zooniverse.views)?o.zooniverseLogoSvg:void 0)||require("./zooniverse-logo-svg"),t.push('\n\n
\n\n\n\n
\n '),t.push(n()),t.push("\n "),t.push(e("signUpHeading")),t.push('\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n
\n \n
\n")}).call(this)}.call(e),e.safe=o,e.escape=r,t.join("")},e.zooniverse.views.signupDialog=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(e){e||(e={});var n,t=[],o=e.safe,r=e.escape;return n=e.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},r||(r=e.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){t.push('
\n\n
\n\n\n')}).call(this)}.call(e),e.safe=o,e.escape=r,t.join("")},e.zooniverse.views.paginator=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(n){n||(n={});var t,o=[],r=n.safe,s=n.escape;return t=n.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},s||(s=n.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var n,t;n=(null!=(t=e.zooniverse)?t.translate:void 0)||require("../lib/translate"),o.push('\n\n\n\n\n\n
\n
'),o.push(n("recents")),o.push(" ("),o.push(n("none")),o.push(')
\n\n
\n
'),o.push(n("favorites")),o.push(" ("),o.push(n("none")),o.push(")
\n")}).call(this)}.call(n),n.safe=r,n.escape=s,o.join("")},e.zooniverse.views.profile=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(n){n||(n={});var t,o=[],r=function(e){return e&&e.ecoSafe?e:"undefined"!=typeof e&&null!=e?i(e):""},s=n.safe,i=n.escape;return t=n.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},i||(i=n.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var n,t,s,i,a,l,u;n=(null!=(i=e.zooniverse)&&null!=(a=i.models)?a.Favorite:void 0)||require("zooniverse/models/favorite"),o.push("\n\n\n')}).call(this)}.call(n),n.safe=s,n.escape=i,o.join("")},e.zooniverse.views.profileItem=template,"undefined"!=typeof module&&(module.exports=template),e.zooniverse=e.zooniverse||{},e.zooniverse.views=e.zooniverse.views||{},template=function(n){n||(n={});var t,o=[],r=function(e){return e&&e.ecoSafe?e:"undefined"!=typeof e&&null!=e?i(e):""},s=n.safe,i=n.escape;return t=n.safe=function(e){if(e&&e.ecoSafe)return e;("undefined"==typeof e||null==e)&&(e="");var n=new String(e);return n.ecoSafe=!0,n},i||(i=n.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var n,t,s,i,a,l,u,c,p,h,d,v,f;if(i=("undefined"!=typeof zooniverse&&null!==zooniverse?zooniverse.translate:void 0)||require("../lib/translate"),o.push("\n"),a=(null!=(h=e.zooniverse)&&null!=(d=h.views)?d.zooniverseLogoSvg:void 0)||require("./zooniverse-logo-svg"),o.push('\n\n\n '),o.push(a()),o.push('\n\n\n