diff --git a/src/www/js/i18n.js b/src/www/js/i18n.js deleted file mode 100644 index 3b616e4c..00000000 --- a/src/www/js/i18n.js +++ /dev/null @@ -1,572 +0,0 @@ -'use strict'; - -const messages = { // eslint-disable-line no-unused-vars - en: { - name: 'Name', - password: 'Password', - signIn: 'Sign In', - logout: 'Logout', - updateAvailable: 'There is an update available!', - update: 'Update', - clients: 'Clients', - new: 'New', - deleteClient: 'Delete Client', - deleteDialog1: 'Are you sure you want to delete', - deleteDialog2: 'This action cannot be undone.', - cancel: 'Cancel', - create: 'Create', - createdOn: 'Created on ', - lastSeen: 'Last seen on ', - totalDownload: 'Total Download: ', - totalUpload: 'Total Upload: ', - newClient: 'New Client', - disableClient: 'Disable Client', - enableClient: 'Enable Client', - noClients: 'There are no clients yet.', - noPrivKey: 'This client has no known private key. Cannot create Configuration.', - showQR: 'Show QR Code', - downloadConfig: 'Download Configuration', - madeBy: 'Made by', - donate: 'Donate', - toggleCharts: 'Show/hide Charts', - theme: { dark: 'Dark theme', light: 'Light theme', auto: 'Auto theme' }, - restore: 'Restore', - backup: 'Backup', - titleRestoreConfig: 'Restore your configuration', - titleBackupConfig: 'Backup your configuration', - }, - ua: { - name: 'Ім`я', - password: 'Пароль', - signIn: 'Увійти', - logout: 'Вихід', - updateAvailable: 'Доступне оновлення!', - update: 'Оновити', - clients: 'Клієнти', - new: 'Новий', - deleteClient: 'Видалити клієнта', - deleteDialog1: 'Ви впевнені, що бажаєте видалити', - deleteDialog2: 'Цю дію неможливо скасувати.', - cancel: 'Скасувати', - create: 'Створити', - createdOn: 'Створено ', - lastSeen: 'Останнє підключення в ', - totalDownload: 'Всього завантажено: ', - totalUpload: 'Всього відправлено: ', - newClient: 'Новий клієнт', - disableClient: 'Вимкнути клієнта', - enableClient: 'Увімкнути клієнта', - noClients: 'Ще немає клієнтів.', - showQR: 'Показати QR-код', - downloadConfig: 'Завантажити конфігурацію', - madeBy: 'Зроблено', - donate: 'Пожертвувати', - }, - ru: { - name: 'Имя', - password: 'Пароль', - signIn: 'Войти', - logout: 'Выйти', - updateAvailable: 'Доступно обновление!', - update: 'Обновить', - clients: 'Клиенты', - new: 'Создать', - deleteClient: 'Удалить клиента', - deleteDialog1: 'Вы уверены, что хотите удалить', - deleteDialog2: 'Это действие невозможно отменить.', - cancel: 'Закрыть', - create: 'Создать', - createdOn: 'Создано в ', - lastSeen: 'Последнее подключение в ', - totalDownload: 'Всего скачано: ', - totalUpload: 'Всего загружено: ', - newClient: 'Создать клиента', - disableClient: 'Выключить клиента', - enableClient: 'Включить клиента', - noClients: 'Пока нет клиентов.', - showQR: 'Показать QR-код', - downloadConfig: 'Скачать конфигурацию', - madeBy: 'Автор', - donate: 'Поблагодарить', - }, - tr: { // Müslüm Barış Korkmazer @babico - name: 'İsim', - password: 'Şifre', - signIn: 'Giriş Yap', - logout: 'Çıkış Yap', - updateAvailable: 'Mevcut bir güncelleme var!', - update: 'Güncelle', - clients: 'Kullanıcılar', - new: 'Yeni', - deleteClient: 'Kullanıcı Sil', - deleteDialog1: 'Silmek istediğine emin misin', - deleteDialog2: 'Bu işlem geri alınamaz.', - cancel: 'İptal', - create: 'Oluştur', - createdAt: 'Şu saatte oluşturuldu: ', - lastSeen: 'Son görülme tarihi: ', - totalDownload: 'Toplam İndirme: ', - totalUpload: 'Toplam Yükleme: ', - newClient: 'Yeni Kullanıcı', - disableClient: 'İstemciyi Devre Dışı Bırak', - enableClient: 'İstemciyi Etkinleştir', - noClients: 'Henüz kullanıcı yok.', - showQR: 'QR Kodunu Göster', - downloadConfig: 'Yapılandırmayı İndir', - madeBy: 'Yapan Kişi: ', - donate: 'Bağış Yap', - changeLang: 'Dil Değiştir', - }, - no: { // github.com/digvalley - name: 'Navn', - password: 'Passord', - signIn: 'Logg Inn', - logout: 'Logg Ut', - updateAvailable: 'En ny oppdatering er tilgjengelig!', - update: 'Oppdater', - clients: 'Klienter', - new: 'Ny', - deleteClient: 'Slett Klient', - deleteDialog1: 'Er du sikker på at du vil slette?', - deleteDialog2: 'Denne handlingen kan ikke angres', - cancel: 'Avbryt', - create: 'Opprett', - createdOn: 'Opprettet ', - lastSeen: 'Sist sett ', - totalDownload: 'Total Nedlasting: ', - totalUpload: 'Total Opplasting: ', - newClient: 'Ny Klient', - disableClient: 'Deaktiver Klient', - enableClient: 'Aktiver Klient', - noClients: 'Ingen klienter opprettet enda.', - showQR: 'Vis QR Kode', - downloadConfig: 'Last Ned Konfigurasjon', - madeBy: 'Laget av', - donate: 'Doner', - }, - pl: { // github.com/archont94 - name: 'Nazwa', - password: 'Hasło', - signIn: 'Zaloguj się', - logout: 'Wyloguj się', - updateAvailable: 'Dostępna aktualizacja!', - update: 'Aktualizuj', - clients: 'Klienci', - new: 'Stwórz klienta', - deleteClient: 'Usuń klienta', - deleteDialog1: 'Jesteś pewny że chcesz usunąć', - deleteDialog2: 'Tej akcji nie da się cofnąć.', - cancel: 'Anuluj', - create: 'Stwórz', - createdOn: 'Utworzono ', - lastSeen: 'Ostatnio widziany ', - totalDownload: 'Całkowite pobieranie: ', - totalUpload: 'Całkowite wysyłanie: ', - newClient: 'Nowy klient', - disableClient: 'Wyłączenie klienta', - enableClient: 'Włączenie klienta', - noClients: 'Nie ma jeszcze klientów.', - showQR: 'Pokaż kod QR', - downloadConfig: 'Pobierz konfigurację', - madeBy: 'Stworzone przez', - donate: 'Wsparcie autora', - }, - fr: { // github.com/clem3109 - name: 'Nom', - password: 'Mot de passe', - signIn: 'Se Connecter', - logout: 'Se déconnecter', - updateAvailable: 'Une mise à jour est disponible !', - update: 'Mise à jour', - clients: 'Clients', - new: 'Nouveau', - deleteClient: 'Supprimer ce client', - deleteDialog1: 'Êtes-vous que vous voulez supprimer', - deleteDialog2: 'Cette action ne peut pas être annulée.', - cancel: 'Annuler', - create: 'Créer', - createdOn: 'Créé le ', - lastSeen: 'Dernière connexion le ', - totalDownload: 'Téléchargement total : ', - totalUpload: 'Téléversement total : ', - newClient: 'Nouveau client', - disableClient: 'Désactiver ce client', - enableClient: 'Activer ce client', - noClients: 'Aucun client pour le moment.', - showQR: 'Afficher le code à réponse rapide (QR Code)', - downloadConfig: 'Télécharger la configuration', - madeBy: 'Développé par', - donate: 'Soutenir', - restore: 'Restaurer', - backup: 'Sauvegarder', - titleRestoreConfig: 'Restaurer votre configuration', - titleBackupConfig: 'Sauvegarder votre configuration', - }, - de: { // github.com/florian-asche - name: 'Name', - password: 'Passwort', - signIn: 'Anmelden', - logout: 'Abmelden', - updateAvailable: 'Eine Aktualisierung steht zur Verfügung!', - update: 'Aktualisieren', - clients: 'Clients', - new: 'Neu', - deleteClient: 'Client löschen', - deleteDialog1: 'Möchtest du wirklich löschen?', - deleteDialog2: 'Diese Aktion kann nicht rückgängig gemacht werden.', - cancel: 'Abbrechen', - create: 'Erstellen', - createdOn: 'Erstellt am ', - lastSeen: 'Zuletzt Online ', - totalDownload: 'Gesamt Download: ', - totalUpload: 'Gesamt Upload: ', - newClient: 'Neuer Client', - disableClient: 'Client deaktivieren', - enableClient: 'Client aktivieren', - noClients: 'Es wurden noch keine Clients konfiguriert.', - noPrivKey: 'Es ist kein Private Key für diesen Client bekannt. Eine Konfiguration kann nicht erstellt werden.', - showQR: 'Zeige den QR Code', - downloadConfig: 'Konfiguration herunterladen', - madeBy: 'Erstellt von', - donate: 'Spenden', - restore: 'Wiederherstellen', - backup: 'Sichern', - titleRestoreConfig: 'Stelle deine Konfiguration wieder her', - titleBackupConfig: 'Sichere deine Konfiguration', - }, - ca: { // github.com/guillembonet - name: 'Nom', - password: 'Contrasenya', - signIn: 'Iniciar sessió', - logout: 'Tanca sessió', - updateAvailable: 'Hi ha una actualització disponible!', - update: 'Actualitza', - clients: 'Clients', - new: 'Nou', - deleteClient: 'Esborra client', - deleteDialog1: 'Estàs segur que vols esborrar aquest client?', - deleteDialog2: 'Aquesta acció no es pot desfer.', - cancel: 'Cancel·la', - create: 'Crea', - createdOn: 'Creat el ', - lastSeen: 'Última connexió el ', - totalDownload: 'Baixada total: ', - totalUpload: 'Pujada total: ', - newClient: 'Nou client', - disableClient: 'Desactiva client', - enableClient: 'Activa client', - noClients: 'Encara no hi ha cap client.', - showQR: 'Mostra codi QR', - downloadConfig: 'Descarrega configuració', - madeBy: 'Fet per', - donate: 'Donatiu', - }, - es: { // github.com/amarqz - name: 'Nombre', - password: 'Contraseña', - signIn: 'Iniciar sesión', - logout: 'Cerrar sesión', - updateAvailable: '¡Hay una actualización disponible!', - update: 'Actualizar', - clients: 'Clientes', - new: 'Nuevo', - deleteClient: 'Eliminar cliente', - deleteDialog1: '¿Estás seguro de que quieres borrar este cliente?', - deleteDialog2: 'Esta acción no podrá ser revertida.', - cancel: 'Cancelar', - create: 'Crear', - createdOn: 'Creado el ', - lastSeen: 'Última conexión el ', - totalDownload: 'Total descargado: ', - totalUpload: 'Total subido: ', - newClient: 'Nuevo cliente', - disableClient: 'Desactivar cliente', - enableClient: 'Activar cliente', - noClients: 'Aún no hay ningún cliente.', - showQR: 'Mostrar código QR', - downloadConfig: 'Descargar configuración', - madeBy: 'Hecho por', - donate: 'Donar', - toggleCharts: 'Mostrar/Ocultar gráficos', - theme: { dark: 'Modo oscuro', light: 'Modo claro', auto: 'Modo automático' }, - restore: 'Restaurar', - backup: 'Realizar copia de seguridad', - titleRestoreConfig: 'Restaurar su configuración', - titleBackupConfig: 'Realizar copia de seguridad de su configuración', - }, - ko: { - name: '이름', - password: '암호', - signIn: '로그인', - logout: '로그아웃', - updateAvailable: '업데이트가 있습니다!', - update: '업데이트', - clients: '클라이언트', - new: '추가', - deleteClient: '클라이언트 삭제', - deleteDialog1: '삭제 하시겠습니까?', - deleteDialog2: '이 작업은 취소할 수 없습니다.', - cancel: '취소', - create: '생성', - createdOn: '생성일: ', - lastSeen: '마지막 사용 날짜: ', - totalDownload: '총 다운로드: ', - totalUpload: '총 업로드: ', - newClient: '새로운 클라이언트', - disableClient: '클라이언트 비활성화', - enableClient: '클라이언트 활성화', - noClients: '아직 클라이언트가 없습니다.', - showQR: 'QR 코드 표시', - downloadConfig: '구성 다운로드', - madeBy: '만든 사람', - donate: '기부', - }, - vi: { - name: 'Tên', - password: 'Mật khẩu', - signIn: 'Đăng nhập', - logout: 'Đăng xuất', - updateAvailable: 'Có bản cập nhật mới!', - update: 'Cập nhật', - clients: 'Danh sách người dùng', - new: 'Mới', - deleteClient: 'Xóa người dùng', - deleteDialog1: 'Bạn có chắc chắn muốn xóa', - deleteDialog2: 'Thao tác này không thể hoàn tác.', - cancel: 'Huỷ', - create: 'Tạo', - createdOn: 'Được tạo lúc ', - lastSeen: 'Lần xem cuối vào ', - totalDownload: 'Tổng dung lượng tải xuống: ', - totalUpload: 'Tổng dung lượng tải lên: ', - newClient: 'Người dùng mới', - disableClient: 'Vô hiệu hóa người dùng', - enableClient: 'Kích hoạt người dùng', - noClients: 'Hiện chưa có người dùng nào.', - showQR: 'Hiển thị mã QR', - downloadConfig: 'Tải xuống cấu hình', - madeBy: 'Được tạo bởi', - donate: 'Ủng hộ', - }, - nl: { - name: 'Naam', - password: 'Wachtwoord', - signIn: 'Inloggen', - logout: 'Uitloggen', - updateAvailable: 'Nieuw update beschikbaar!', - update: 'update', - clients: 'clients', - new: 'Nieuw', - deleteClient: 'client verwijderen', - deleteDialog1: 'Weet je zeker dat je wilt verwijderen', - deleteDialog2: 'Deze actie kan niet ongedaan worden gemaakt.', - cancel: 'Annuleren', - create: 'Creëren', - createdOn: 'Gemaakt op ', - lastSeen: 'Laatst gezien op ', - totalDownload: 'Totaal Gedownload: ', - totalUpload: 'Totaal Geupload: ', - newClient: 'Nieuwe client', - disableClient: 'client uitschakelen', - enableClient: 'client inschakelen', - noClients: 'Er zijn nog geen clients.', - showQR: 'QR-code weergeven', - downloadConfig: 'Configuratie downloaden', - madeBy: 'Gemaakt door', - donate: 'Doneren', - }, - is: { - name: 'Nafn', - password: 'Lykilorð', - signIn: 'Skrá inn', - logout: 'Útskráning', - updateAvailable: 'Það er uppfærsla í boði!', - update: 'Uppfæra', - clients: 'Viðskiptavinir', - new: 'Nýtt', - deleteClient: 'Eyða viðskiptavin', - deleteDialog1: 'Ertu viss um að þú viljir eyða', - deleteDialog2: 'Þessi aðgerð getur ekki verið afturkallað.', - cancel: 'Hætta við', - create: 'Búa til', - createdOn: 'Búið til á ', - lastSeen: 'Síðast séð á ', - totalDownload: 'Samtals Niðurhlaða: ', - totalUpload: 'Samtals Upphlaða: ', - newClient: 'Nýr Viðskiptavinur', - disableClient: 'Gera viðskiptavin óvirkan', - enableClient: 'Gera viðskiptavin virkan', - noClients: 'Engir viðskiptavinir ennþá.', - showQR: 'Sýna QR-kóða', - downloadConfig: 'Niðurhal Stillingar', - madeBy: 'Gert af', - donate: 'Gefa', - }, - pt: { - name: 'Nome', - password: 'Palavra Chave', - signIn: 'Entrar', - logout: 'Sair', - updateAvailable: 'Existe uma atualização disponível!', - update: 'Atualizar', - clients: 'Clientes', - new: 'Novo', - deleteClient: 'Apagar Clientes', - deleteDialog1: 'Tem certeza que pretende apagar', - deleteDialog2: 'Esta ação não pode ser revertida.', - cancel: 'Cancelar', - create: 'Criar', - createdOn: 'Criado em ', - lastSeen: 'Último acesso em ', - totalDownload: 'Total Download: ', - totalUpload: 'Total Upload: ', - newClient: 'Novo Cliente', - disableClient: 'Desativar Cliente', - enableClient: 'Ativar Cliente', - noClients: 'Não existem ainda clientes.', - showQR: 'Apresentar o código QR', - downloadConfig: 'Descarregar Configuração', - madeBy: 'Feito por', - donate: 'Doar', - }, - chs: { - name: '名称', - password: '密码', - signIn: '登录', - logout: '退出', - updateAvailable: '有新版本可用!', - update: '更新', - clients: '客户端', - new: '新建', - deleteClient: '删除客户端', - deleteDialog1: '您确定要删除', - deleteDialog2: '此操作无法撤销。', - cancel: '取消', - create: '创建', - createdOn: '创建于 ', - lastSeen: '最后访问于 ', - totalDownload: '总下载: ', - totalUpload: '总上传: ', - newClient: '新建客户端', - disableClient: '禁用客户端', - enableClient: '启用客户端', - noClients: '目前没有客户端。', - showQR: '显示二维码', - downloadConfig: '下载配置', - madeBy: '由', - donate: '捐赠', - }, - cht: { - name: '名字', - password: '密碼', - signIn: '登入', - logout: '登出', - updateAvailable: '有新版本可以使用!', - update: '更新', - clients: '使用者', - new: '建立', - deleteClient: '刪除使用者', - deleteDialog1: '您確定要刪除', - deleteDialog2: '此作業無法復原。', - cancel: '取消', - create: '建立', - createdOn: '建立於 ', - lastSeen: '最後存取於 ', - totalDownload: '總下載: ', - totalUpload: '總上傳: ', - newClient: '新用戶', - disableClient: '停用使用者', - enableClient: '啟用使用者', - noClients: '目前沒有使用者。', - showQR: '顯示 QR Code', - downloadConfig: '下載 Config 檔', - madeBy: '由', - donate: '抖內', - }, - it: { - name: 'Nome', - password: 'Password', - signIn: 'Accedi', - logout: 'Esci', - updateAvailable: 'È disponibile un aggiornamento!', - update: 'Aggiorna', - clients: 'Client', - new: 'Nuovo', - deleteClient: 'Elimina Client', - deleteDialog1: 'Sei sicuro di voler eliminare', - deleteDialog2: 'Questa azione non può essere annullata.', - cancel: 'Annulla', - create: 'Crea', - createdOn: 'Creato il ', - lastSeen: 'Visto l\'ultima volta il ', - totalDownload: 'Totale Download: ', - totalUpload: 'Totale Upload: ', - newClient: 'Nuovo Client', - disableClient: 'Disabilita Client', - enableClient: 'Abilita Client', - noClients: 'Non ci sono ancora client.', - showQR: 'Mostra codice QR', - downloadConfig: 'Scarica configurazione', - madeBy: 'Realizzato da', - donate: 'Donazione', - restore: 'Ripristina', - backup: 'Backup', - titleRestoreConfig: 'Ripristina la tua configurazione', - titleBackupConfig: 'Esegui il backup della tua configurazione', - }, - th: { - name: 'ชื่อ', - password: 'รหัสผ่าน', - signIn: 'ลงชื่อเข้าใช้', - logout: 'ออกจากระบบ', - updateAvailable: 'มีอัปเดตพร้อมใช้งาน!', - update: 'อัปเดต', - clients: 'Clients', - new: 'ใหม่', - deleteClient: 'ลบ Client', - deleteDialog1: 'คุณแน่ใจหรือไม่ว่าต้องการลบ', - deleteDialog2: 'การกระทำนี้;ไม่สามารถยกเลิกได้', - cancel: 'ยกเลิก', - create: 'สร้าง', - createdOn: 'สร้างเมื่อ ', - lastSeen: 'เห็นครั้งสุดท้ายเมื่อ ', - totalDownload: 'ดาวน์โหลดทั้งหมด: ', - totalUpload: 'อัพโหลดทั้งหมด: ', - newClient: 'Client ใหม่', - disableClient: 'ปิดการใช้งาน Client', - enableClient: 'เปิดการใช้งาน Client', - noClients: 'ยังไม่มี Clients เลย', - showQR: 'แสดงรหัส QR', - downloadConfig: 'ดาวน์โหลดการตั้งค่า', - madeBy: 'สร้างโดย', - donate: 'บริจาค', - }, - hi: { // github.com/rahilarious - name: 'नाम', - password: 'पासवर्ड', - signIn: 'लॉगिन', - logout: 'लॉगआउट', - updateAvailable: 'अपडेट उपलब्ध है!', - update: 'अपडेट', - clients: 'उपयोगकर्ताये', - new: 'नया', - deleteClient: 'उपयोगकर्ता हटाएँ', - deleteDialog1: 'क्या आपको पक्का हटाना है', - deleteDialog2: 'यह निर्णय पलट नहीं सकता।', - cancel: 'कुछ ना करें', - create: 'बनाएं', - createdOn: 'सर्जन तारीख ', - lastSeen: 'पिछली बार देखे गए थे ', - totalDownload: 'कुल डाउनलोड: ', - totalUpload: 'कुल अपलोड: ', - newClient: 'नया उपयोगकर्ता', - disableClient: 'उपयोगकर्ता स्थगित कीजिये', - enableClient: 'उपयोगकर्ता शुरू कीजिये', - noClients: 'अभी तक कोई भी उपयोगकर्ता नहीं है।', - noPrivKey: 'ये उपयोगकर्ता की कोई भी गुप्त चाबी नहीं हे। बना नहीं सकते।', - showQR: 'क्यू आर कोड देखिये', - downloadConfig: 'डाउनलोड कॉन्फीग्यूरेशन', - madeBy: 'सर्जक', - donate: 'दान करें', - }, -}; diff --git a/src/www/js/vendor/sha256.min.js b/src/www/js/vendor/sha256.min.js deleted file mode 100644 index 7fe91024..00000000 --- a/src/www/js/vendor/sha256.min.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.11.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2024 - * @license MIT - */ -!function(){"use strict";function t(t,i){i?(d[0]=d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0,this.blocks=d):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function i(i,r,s){var e,n=typeof i;if("string"===n){var o,a=[],u=i.length,c=0;for(e=0;e>>6,a[c++]=128|63&o):o<55296||o>=57344?(a[c++]=224|o>>>12,a[c++]=128|o>>>6&63,a[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&i.charCodeAt(++e)),a[c++]=240|o>>>18,a[c++]=128|o>>>12&63,a[c++]=128|o>>>6&63,a[c++]=128|63&o);i=a}else{if("object"!==n)throw new Error(h);if(null===i)throw new Error(h);if(f&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!(Array.isArray(i)||f&&ArrayBuffer.isView(i)))throw new Error(h)}i.length>64&&(i=new t(r,!0).update(i).array());var y=[],p=[];for(e=0;e<64;++e){var l=i[e]||0;y[e]=92^l,p[e]=54^l}t.call(this,r,s),this.update(p),this.oKeyPad=y,this.inner=!0,this.sharedMemory=s}var h="input is invalid type",r="object"==typeof window,s=r?window:{};s.JS_SHA256_NO_WINDOW&&(r=!1);var e=!r&&"object"==typeof self,n=!s.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;n?s=global:e&&(s=self);var o=!s.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,a="function"==typeof define&&define.amd,f=!s.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),c=[-2147483648,8388608,32768,128],y=[24,16,8,0],p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=["hex","array","digest","arrayBuffer"],d=[];!s.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!f||!s.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var A=function(i,h){return function(r){return new t(h,!0).update(r)[i]()}},w=function(i){var h=A("hex",i);n&&(h=b(h,i)),h.create=function(){return new t(i)},h.update=function(t){return h.create().update(t)};for(var r=0;r>>2]|=t[n]<>>2]|=s<>>2]|=(192|s>>>6)<>>2]|=(128|63&s)<=57344?(a[e>>>2]|=(224|s>>>12)<>>2]|=(128|s>>>6&63)<>>2]|=(128|63&s)<>>2]|=(240|s>>>18)<>>2]|=(128|s>>>12&63)<>>2]|=(128|s>>>6&63)<>>2]|=(128|63&s)<=64?(this.block=a[16],this.start=e-64,this.hash(),this.hashed=!0):this.start=e}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},t.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,i=this.lastByteIndex;t[16]=this.block,t[i>>>2]|=c[3&i],this.block=t[16],i>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},t.prototype.hash=function(){var t,i,h,r,s,e,n,o,a,f=this.h0,u=this.h1,c=this.h2,y=this.h3,l=this.h4,d=this.h5,A=this.h6,w=this.h7,b=this.blocks;for(t=16;t<64;++t)i=((s=b[t-15])>>>7|s<<25)^(s>>>18|s<<14)^s>>>3,h=((s=b[t-2])>>>17|s<<15)^(s>>>19|s<<13)^s>>>10,b[t]=b[t-16]+i+b[t-7]+h<<0;for(a=u&c,t=0;t<64;t+=4)this.first?(this.is224?(e=300032,w=(s=b[0]-1413257819)-150054599<<0,y=s+24177077<<0):(e=704751109,w=(s=b[0]-210244248)-1521486534<<0,y=s+143694565<<0),this.first=!1):(i=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(e=f&u)^f&c^a,w=y+(s=w+(h=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&d^~l&A)+p[t]+b[t])<<0,y=s+(i+r)<<0),i=(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10),r=(n=y&f)^y&u^e,A=c+(s=A+(h=(w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&l^~w&d)+p[t+1]+b[t+1])<<0,i=((c=s+(i+r)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(o=c&y)^c&f^n,d=u+(s=d+(h=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&w^~A&l)+p[t+2]+b[t+2])<<0,i=((u=s+(i+r)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(a=u&c)^u&y^o,l=f+(s=l+(h=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&A^~d&w)+p[t+3]+b[t+3])<<0,f=s+(i+r)<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+f<<0,this.h1=this.h1+u<<0,this.h2=this.h2+c<<0,this.h3=this.h3+y<<0,this.h4=this.h4+l<<0,this.h5=this.h5+d<<0,this.h6=this.h6+A<<0,this.h7=this.h7+w<<0},t.prototype.hex=function(){this.finalize();var t=this.h0,i=this.h1,h=this.h2,r=this.h3,s=this.h4,e=this.h5,n=this.h6,o=this.h7,a=u[t>>>28&15]+u[t>>>24&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>4&15]+u[15&t]+u[i>>>28&15]+u[i>>>24&15]+u[i>>>20&15]+u[i>>>16&15]+u[i>>>12&15]+u[i>>>8&15]+u[i>>>4&15]+u[15&i]+u[h>>>28&15]+u[h>>>24&15]+u[h>>>20&15]+u[h>>>16&15]+u[h>>>12&15]+u[h>>>8&15]+u[h>>>4&15]+u[15&h]+u[r>>>28&15]+u[r>>>24&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>4&15]+u[15&r]+u[s>>>28&15]+u[s>>>24&15]+u[s>>>20&15]+u[s>>>16&15]+u[s>>>12&15]+u[s>>>8&15]+u[s>>>4&15]+u[15&s]+u[e>>>28&15]+u[e>>>24&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>4&15]+u[15&e]+u[n>>>28&15]+u[n>>>24&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>4&15]+u[15&n];return this.is224||(a+=u[o>>>28&15]+u[o>>>24&15]+u[o>>>20&15]+u[o>>>16&15]+u[o>>>12&15]+u[o>>>8&15]+u[o>>>4&15]+u[15&o]),a},t.prototype.toString=t.prototype.hex,t.prototype.digest=function(){this.finalize();var t=this.h0,i=this.h1,h=this.h2,r=this.h3,s=this.h4,e=this.h5,n=this.h6,o=this.h7,a=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,h>>>24&255,h>>>16&255,h>>>8&255,255&h,r>>>24&255,r>>>16&255,r>>>8&255,255&r,s>>>24&255,s>>>16&255,s>>>8&255,255&s,e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n];return this.is224||a.push(o>>>24&255,o>>>16&255,o>>>8&255,255&o),a},t.prototype.array=t.prototype.digest,t.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),i=new DataView(t);return i.setUint32(0,this.h0),i.setUint32(4,this.h1),i.setUint32(8,this.h2),i.setUint32(12,this.h3),i.setUint32(16,this.h4),i.setUint32(20,this.h5),i.setUint32(24,this.h6),this.is224||i.setUint32(28,this.h7),t},(i.prototype=new t).finalize=function(){if(t.prototype.finalize.call(this),this.inner){this.inner=!1;var i=this.array();t.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(i),t.prototype.finalize.call(this)}};var B=w();B.sha256=B,B.sha224=w(!0),B.sha256.hmac=v(),B.sha224.hmac=v(!0),o?module.exports=B:(s.sha256=B.sha256,s.sha224=B.sha224,a&&define(function(){return B}))}(); \ No newline at end of file diff --git a/src/www/js/vendor/timeago.full.min.js b/src/www/js/vendor/timeago.full.min.js deleted file mode 100644 index 876730a6..00000000 --- a/src/www/js/vendor/timeago.full.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(s,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((s=s||self).timeago={})}(this,function(s){"use strict";var a=["second","minute","hour","day","week","month","year"];function n(s,n){if(0===n)return["just now","right now"];var e=a[Math.floor(n/2)];return 1=m[t]&&t=m[e]&&e0;)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var a=this.$i18n;return a._tc.apply(a,[t,a.locale,a._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}(k),k.mixin(function(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n){if(t.i18n instanceof nt){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){e=g(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(l(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof nt?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){r=g(r,JSON.parse(t))}),t.i18n.messages=r}catch(t){}var a=t.i18n.sharedMessages;a&&l(a)&&(t.i18n.messages=g(t.i18n.messages,a)),this._i18n=new nt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof nt?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof nt&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18n instanceof nt?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):l(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof nt?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof nt&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}}}(e.bridge)),k.directive("t",{bind:$,update:M,unbind:T}),k.component(d.name,d),k.component(w.name,w),k.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var O=function(){this._caches=Object.create(null)};O.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=function(t){var e=[],n=0,r="";for(;n0)h--,u=V,f[j]();else{if(h=0,void 0===n)return!1;if(!1===(n=q(n)))return!1;f[N]()}};null!==u;)if("\\"!==(e=t[++c])||!p()){if(a=G(e),(i=(s=U[u])[a]||s.else||B)===B)return;if(u=i[0],(o=f[i[1]])&&(r=void 0===(r=i[2])?e:r,!1===o()))return;if(u===A)return l}}(t))&&(this._cache[t]=e),e||[]},J.prototype.getPathValue=function(t,e){if(!a(t))return null;var n=this.parsePath(e);if(0===n.length)return null;for(var r=n.length,i=t,o=0;o/,X=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,K=/^@(?:\.([a-zA-Z]+))?:/,Q=/[()]/g,tt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},et=new O,nt=function(t){var e=this;void 0===t&&(t={}),!k&&"undefined"!=typeof window&&window.Vue&&L(window.Vue);var n=t.locale||"en-US",r=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),a=t.messages||{},i=t.dateTimeFormats||t.datetimeFormats||{},o=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||et,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new J,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var r=Object.getPrototypeOf(e);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(e,t,n);var a,i;return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):(a=t,i=n,a=Math.abs(a),2===i?a?a>1?1:0:1:a?Math.min(a,2):0)},this._exist=function(t,n){return!(!t||!n)&&(!c(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(a).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,a[t])}),this._initVM({locale:n,fallbackLocale:r,messages:a,dateTimeFormats:i,numberFormats:o})},rt={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};return nt.prototype._checkLocaleMessage=function(t,e,a){var o=function(t,e,a,s){if(l(a))Object.keys(a).forEach(function(n){var r=a[n];l(r)?(s.push(n),s.push("."),o(t,e,r,s),s.pop(),s.pop()):(s.push(n),o(t,e,r,s),s.pop())});else if(r(a))a.forEach(function(n,r){l(n)?(s.push("["+r+"]"),s.push("."),o(t,e,n,s),s.pop(),s.pop()):(s.push("["+r+"]"),o(t,e,n,s),s.pop())});else if(i(a)){if(Y.test(a)){var c="Detected HTML in message '"+a+"' of keypath '"+s.join("")+"' at '"+e+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?n(c):"error"===t&&function(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}(c)}}};o(e,t,a,[])},nt.prototype._initVM=function(t){var e=k.config.silent;k.config.silent=!0,this._vm=new k({data:t,__VUE18N__INSTANCE__:!0}),k.config.silent=e},nt.prototype.destroyVM=function(){this._vm.$destroy()},nt.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},nt.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.delete(e));}(this._dataListeners,t)},nt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e,n,r=(e=t._dataListeners,n=[],e.forEach(function(t){return n.push(t)}),n),a=r.length;a--;)k.nextTick(function(){r[a]&&r[a].$forceUpdate()})},{deep:!0})},nt.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",function(r){n.$set(n,"locale",r),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=r),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){r.$set(r,"locale",t),r.$forceUpdate()},{immediate:!0})},nt.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},rt.vm.get=function(){return this._vm},rt.messages.get=function(){return f(this._getMessages())},rt.dateTimeFormats.get=function(){return f(this._getDateTimeFormats())},rt.numberFormats.get=function(){return f(this._getNumberFormats())},rt.availableLocales.get=function(){return Object.keys(this.messages).sort()},rt.locale.get=function(){return this._vm.locale},rt.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},rt.fallbackLocale.get=function(){return this._vm.fallbackLocale},rt.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},rt.formatFallbackMessages.get=function(){return this._formatFallbackMessages},rt.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},rt.missing.get=function(){return this._missing},rt.missing.set=function(t){this._missing=t},rt.formatter.get=function(){return this._formatter},rt.formatter.set=function(t){this._formatter=t},rt.silentTranslationWarn.get=function(){return this._silentTranslationWarn},rt.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},rt.silentFallbackWarn.get=function(){return this._silentFallbackWarn},rt.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},rt.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},rt.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},rt.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},rt.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var r=this._getMessages();Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})}},rt.postTranslation.get=function(){return this._postTranslation},rt.postTranslation.set=function(t){this._postTranslation=t},rt.sync.get=function(){return this._sync},rt.sync.set=function(t){this._sync=t},nt.prototype._getMessages=function(){return this._vm.messages},nt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},nt.prototype._getNumberFormats=function(){return this._vm.numberFormats},nt.prototype._warnDefault=function(t,e,n,r,a,o){if(!c(n))return n;if(this._missing){var s=this._missing.apply(null,[t,e,r,a]);if(i(s))return s}if(this._formatFallbackMessages){var l=h.apply(void 0,a);return this._render(e,o,l.params,e)}return e},nt.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:c(t))&&!c(this._root)&&this._fallbackRoot},nt.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},nt.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},nt.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},nt.prototype._interpolate=function(t,e,n,a,o,s,h){if(!e)return null;var f,p=this._path.getPathValue(e,n);if(r(p)||l(p))return p;if(c(p)){if(!l(e))return null;if(!i(f=e[n])&&!u(f))return null}else{if(!i(p)&&!u(p))return null;f=p}return i(f)&&(f.indexOf("@:")>=0||f.indexOf("@.")>=0)&&(f=this._link(t,e,f,a,"raw",s,h)),this._render(f,o,s,n)},nt.prototype._link=function(t,e,n,a,i,o,s){var l=n,c=l.match(X);for(var u in c)if(c.hasOwnProperty(u)){var h=c[u],f=h.match(K),_=f[0],m=f[1],g=h.replace(_,"").replace(Q,"");if(p(s,g))return l;s.push(g);var v=this._interpolate(t,e,g,a,"raw"===i?"string":i,"raw"===i?void 0:o,s);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var d=this._root.$i18n;v=d._translate(d._getMessages(),d.locale,d.fallbackLocale,g,a,i,o)}v=this._warnDefault(t,g,v,a,r(o)?o:[o],i),this._modifiers.hasOwnProperty(m)?v=this._modifiers[m](v):tt.hasOwnProperty(m)&&(v=tt[m](v)),s.pop(),l=v?l.replace(h,v):l}return l},nt.prototype._createMessageContext=function(t,e,n,i){var o=this,s=r(t)?t:[],l=a(t)?t:{},c=this._getMessages(),u=this.locale;return{list:function(t){return s[t]},named:function(t){return l[t]},values:t,formatter:e,path:n,messages:c,locale:u,linked:function(t){return o._interpolate(u,c[u]||{},t,null,i,void 0,[t])}}},nt.prototype._render=function(t,e,n,r){if(u(t))return t(this._createMessageContext(n,this._formatter||et,r,e));var a=this._formatter.interpolate(t,n,r);return a||(a=et.interpolate(t,n,r)),"string"!==e||i(a)?a:a.join("")},nt.prototype._appendItemToChain=function(t,e,n){var r=!1;return p(t,e)||(r=!0,e&&(r="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(r=n[e]))),r},nt.prototype._appendLocaleToChain=function(t,e,n){var r,a=e.split("-");do{var i=a.join("-");r=this._appendItemToChain(t,i,n),a.splice(-1,1)}while(a.length&&!0===r);return r},nt.prototype._appendBlockToChain=function(t,e,n){for(var r=!0,a=0;a0;)i[o]=arguments[o+4];if(!t)return"";var s,l=h.apply(void 0,i);this._escapeParameterHtml&&(l.params=(null!=(s=l.params)&&Object.keys(s).forEach(function(t){"string"==typeof s[t]&&(s[t]=s[t].replace(//g,">").replace(/"/g,""").replace(/'/g,"'"))}),s));var c=l.locale||e,u=this._translate(n,c,this.fallbackLocale,t,r,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(a=this._root).$t.apply(a,[t].concat(i))}return u=this._warnDefault(c,t,u,r,i,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,t)),u},nt.prototype.t=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},nt.prototype._i=function(t,e,n,r,a){var i=this._translate(n,e,this.fallbackLocale,t,r,"raw",a);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,a)}return this._warnDefault(e,t,i,r,[a],"raw")},nt.prototype.i=function(t,e,n){return t?(i(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},nt.prototype._tc=function(t,e,n,r,a){for(var i,o=[],s=arguments.length-5;s-- >0;)o[s]=arguments[s+5];if(!t)return"";void 0===a&&(a=1);var l={count:a,n:a},c=h.apply(void 0,o);return c.params=Object.assign(l,c.params),o=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((i=this)._t.apply(i,[t,e,n,r].concat(o)),a)},nt.prototype.fetchChoice=function(t,e){if(!t||!i(t))return null;var n=t.split("|");return n[e=this.getChoiceIndex(e,n.length)]?n[e].trim():t},nt.prototype.tc=function(t,e){for(var n,r=[],a=arguments.length-2;a-- >0;)r[a]=arguments[a+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(r))},nt.prototype._te=function(t,e,n){for(var r=[],a=arguments.length-3;a-- >0;)r[a]=arguments[a+3];var i=h.apply(void 0,r).locale||e;return this._exist(n[i],t)},nt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},nt.prototype.getLocaleMessage=function(t){return f(this._vm.messages[t]||{})},nt.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},nt.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,g(void 0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},nt.prototype.getDateTimeFormat=function(t){return f(this._vm.dateTimeFormats[t]||{})},nt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},nt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,g(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},nt.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},nt.prototype._localizeDateTime=function(t,e,n,r,a,i){for(var o=e,s=r[o],l=this._getLocaleChain(e,n),u=0;u0;)n[r]=arguments[r+1];var o=this.locale,s=null,l=null;return 1===n.length?(i(n[0])?s=n[0]:a(n[0])&&(n[0].locale&&(o=n[0].locale),n[0].key&&(s=n[0].key)),l=Object.keys(n[0]).reduce(function(t,r){var a;return p(e,r)?Object.assign({},t,((a={})[r]=n[0][r],a)):t},null)):2===n.length&&(i(n[0])&&(s=n[0]),i(n[1])&&(o=n[1])),this._d(t,o,s,l)},nt.prototype.getNumberFormat=function(t){return f(this._vm.numberFormats[t]||{})},nt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},nt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,g(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},nt.prototype._clearNumberFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},nt.prototype._getNumberFormatter=function(t,e,n,r,a,i){for(var o=e,s=r[o],l=this._getLocaleChain(e,n),u=0;u0;)n[r]=arguments[r+1];var o=this.locale,s=null,l=null;return 1===n.length?i(n[0])?s=n[0]:a(n[0])&&(n[0].locale&&(o=n[0].locale),n[0].key&&(s=n[0].key),l=Object.keys(n[0]).reduce(function(e,r){var a;return p(t,r)?Object.assign({},e,((a={})[r]=n[0][r],a)):e},null)):2===n.length&&(i(n[0])&&(s=n[0]),i(n[1])&&(o=n[1])),this._n(e,o,s,l)},nt.prototype._ntp=function(t,e,n,r){if(!nt.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).formatToParts(t);var a=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),i=a&&a.formatToParts(t);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,r)}return i||[]},Object.defineProperties(nt.prototype,rt),Object.defineProperty(nt,"availabilities",{get:function(){if(!Z){var t="undefined"!=typeof Intl;Z={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return Z}}),nt.install=L,nt.version="8.28.2",nt},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueI18n=e();