@caisual/kit 0.15.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/kit.js +4 -2
- package/dist/kit.js.map +4 -4
- package/dist/node.js +48 -18
- package/dist/overlay.js +296 -157
- package/dist/overlay.js.map +4 -4
- package/dist/runtime.js +55 -22
- package/dist/types/contracts/index.d.ts +3 -0
- package/dist/types/contracts/manifest.d.ts +3 -1
- package/dist/types/contracts/overlay.d.ts +11 -0
- package/dist/types/contracts/pubblicazione-limiti.d.ts +3 -0
- package/dist/types/contracts/replay.d.ts +83 -0
- package/dist/types/contracts/room-limits.d.ts +3 -2
- package/dist/types/contracts/server-js.d.ts +10 -2
- package/dist/types/contracts/server-wasm.d.ts +19 -0
- package/dist/types/handshake.d.ts +1 -0
- package/dist/types/index.d.ts +10 -1
- package/dist/types/overlay/host-bridge.d.ts +2 -0
- package/dist/types/overlay/i18n.d.ts +139 -130
- package/dist/types/overlay/locale.d.ts +4 -0
- package/dist/types/overlay/styles.d.ts +1 -1
- package/dist/types/overlay/ui-model.d.ts +4 -0
- package/dist/types/overlay/ui.d.ts +1 -0
- package/dist/types/protocollo.d.ts +4 -1
- package/dist/types/replay/index.d.ts +65 -0
- package/dist/types/runtime/index.d.ts +1 -0
- package/dist/types/session/index.d.ts +4 -3
- package/dist/types/stanza/nucleo.d.ts +2 -0
- package/dist/types/stanza/tipi.d.ts +2 -0
- package/dist/types/stanza-client/index.d.ts +9 -1
- package/package.json +13 -1
|
@@ -1,137 +1,146 @@
|
|
|
1
|
-
|
|
2
|
-
export type OverlayLanguage
|
|
1
|
+
import { type OverlayLanguage } from './locale.js';
|
|
2
|
+
export { languages, overlayLanguage, overlayLocale, type OverlayLanguage } from './locale.js';
|
|
3
3
|
declare const words: {
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
4
|
+
readonly watchReplay: readonly ["Watch replay", "Guarda replay", "Ver repetición", "Voir le replay", "Wiederholung ansehen", "Assistir à repetição", "リプレイを見る"];
|
|
5
|
+
readonly copyReplay: readonly ["Copy link", "Copia link", "Copiar enlace", "Copier le lien", "Link kopieren", "Copiar link", "リンクをコピー"];
|
|
6
|
+
readonly replayCopied: readonly ["Link copied", "Link copiato", "Enlace copiado", "Lien copié", "Link kopiert", "Link copiado", "リンクをコピーしました"];
|
|
7
|
+
readonly replay: readonly ["Replay", "Replay", "Repetición", "Replay", "Wiederholung", "Repetição", "リプレイ"];
|
|
8
|
+
readonly replayPlay: readonly ["Play", "Riproduci", "Reproducir", "Lire", "Abspielen", "Reproduzir", "再生"];
|
|
9
|
+
readonly replayPause: readonly ["Pause", "Pausa", "Pausar", "Pause", "Pause", "Pausar", "一時停止"];
|
|
10
|
+
readonly replaySeek: readonly ["Position", "Posizione", "Posición", "Position", "Position", "Posição", "再生位置"];
|
|
11
|
+
readonly replaySpeed: readonly ["Speed", "Velocità", "Velocidad", "Vitesse", "Geschwindigkeit", "Velocidade", "再生速度"];
|
|
12
|
+
readonly replayTruncated: readonly ["Partial recording", "Registrazione parziale", "Grabación parcial", "Enregistrement partiel", "Teilweise Aufzeichnung", "Gravação parcial", "一部のみの録画"];
|
|
13
|
+
readonly gameUpdated: readonly ["This game was updated", "Questo gioco è stato aggiornato", "Este juego se ha actualizado", "Ce jeu a été mis à jour", "Dieses Spiel wurde aktualisiert", "Este jogo foi atualizado", "ゲームが更新されました"];
|
|
14
|
+
readonly reloadGame: readonly ["Reload game", "Ricarica il gioco", "Recargar el juego", "Recharger le jeu", "Spiel neu laden", "Recarregar o jogo", "ゲームを再読み込み"];
|
|
15
|
+
readonly gameLanguages: readonly ["Game languages", "Lingue del gioco", "Idiomas del juego", "Langues du jeu", "Spielsprachen", "Idiomas do jogo", "ゲームの言語"];
|
|
16
|
+
readonly loading: readonly ["Loading game...", "Caricamento...", "Cargando...", "Chargement...", "Spiel wird geladen...", "Carregando...", "読み込み中..."];
|
|
17
|
+
readonly loadingSlow: readonly ["This game is taking longer than expected. You can wait a little longer or try again.", "Il gioco ci sta mettendo più del previsto. Puoi aspettare ancora un po’ o riprovare.", "El juego está tardando más de lo esperado. Puedes esperar un poco más o volver a intentarlo.", "Le jeu met plus de temps que prévu. Vous pouvez patienter encore un peu ou réessayer.", "Das Spiel braucht länger als erwartet. Du kannst noch etwas warten oder es erneut versuchen.", "O jogo está demorando mais do que o esperado. Você pode esperar mais um pouco ou tentar novamente.", "読み込みに時間がかかっています。しばらく待つか、もう一度お試しください。"];
|
|
18
|
+
readonly home: readonly ["Play", "Gioca", "Jugar", "Jouer", "Spielen", "Jogar", "プレイ"];
|
|
19
|
+
readonly homeMenu: readonly ["Menu", "Menu", "Menú", "Menu", "Menü", "Menu", "メニュー"];
|
|
20
|
+
readonly mode: readonly ["Mode", "Modalità", "Modo", "Mode", "Modus", "Modo", "モード"];
|
|
21
|
+
readonly singlePlayer: readonly ["Single player", "Giocatore singolo", "Un jugador", "Un joueur", "Einzelspieler", "Um jogador", "シングルプレイ"];
|
|
22
|
+
readonly multiplayer: readonly ["Multiplayer", "Multigiocatore", "Multijugador", "Multijoueur", "Mehrspieler", "Multijogador", "マルチプレイ"];
|
|
23
|
+
readonly createRoom: readonly ["Create a room", "Crea una stanza", "Crear una sala", "Créer une salle", "Raum erstellen", "Criar uma sala", "ルームを作成"];
|
|
24
|
+
readonly play: readonly ["Play", "Gioca", "Jugar", "Jouer", "Spielen", "Jogar", "プレイ"];
|
|
25
|
+
readonly friendsPlay: readonly ["Play with friends", "Gioca con amici", "Jugar con amigos", "Jouer entre amis", "Mit Freunden spielen", "Jogar com amigos", "友達とプレイ"];
|
|
26
|
+
readonly find: readonly ["Find a match", "Trova una partita", "Buscar partida", "Trouver une partie", "Partie finden", "Encontrar partida", "対戦を探す"];
|
|
27
|
+
readonly join: readonly ["Join with code", "Entra con codice", "Entrar con código", "Rejoindre avec un code", "Mit Code beitreten", "Entrar com código", "コードで参加"];
|
|
28
|
+
readonly joinInvite: readonly ["Join this room", "Entra in questa stanza", "Entrar en está sala", "Rejoindre cette salle", "Diesem Raum beitreten", "Entrar nestá sala", "このルームに参加"];
|
|
29
|
+
readonly watch: readonly ["Watch a room", "Guarda una stanza", "Observar una sala", "Regarder une salle", "Raum ansehen", "Assistir a uma sala", "ルームを観戦"];
|
|
30
|
+
readonly resume: readonly ["Resume", "Riprendi", "Continuar", "Reprendre", "Fortsetzen", "Continuar", "再開"];
|
|
31
|
+
readonly room: readonly ["Room", "Stanza", "Sala", "Salle", "Raum", "Sala", "ルーム"];
|
|
32
|
+
readonly code: readonly ["Room code", "Codice stanza", "Código de sala", "Code de salle", "Raumcode", "Código da sala", "ルームコード"];
|
|
33
|
+
readonly copy: readonly ["Copy invite", "Copia invito", "Copiar invitación", "Copier le lien", "Einladung kopieren", "Copiar convite", "招待をコピー"];
|
|
34
|
+
readonly copied: readonly ["Invite copied", "Invito copiato", "Invitacion copiada", "Lien copié", "Einladung kopiert", "Convite copiado", "招待をコピーしました"];
|
|
35
|
+
readonly copyFailed: readonly ["Copy this link:", "Copia questo link:", "Copia este enlace:", "Copiez ce lien :", "Diesen Link kopieren:", "Copie este link:", "このリンクをコピーしてください:"];
|
|
36
|
+
readonly joining: readonly ["Joining room...", "Ingresso nella stanza...", "Entrando en la sala...", "Connexion à la salle...", "Raum wird betreten...", "Entrando na sala...", "ルームに参加中..."];
|
|
37
|
+
readonly matching: readonly ["Finding your people...", "Ricerca giocatori...", "Buscando jugadores...", "Recherche de joueurs...", "Spieler werden gesucht...", "Buscando jogadores...", "プレイヤーを検索中..."];
|
|
38
|
+
readonly queue: readonly ["{n} / {max} players", "{n} / {max} giocatori", "{n} / {max} jugadores", "{n} / {max} joueurs", "{n} / {max} Spieler", "{n} / {max} jogadores", "{n} / {max} 人"];
|
|
39
|
+
readonly cancel: readonly ["Cancel", "Annulla", "Cancelar", "Annuler", "Abbrechen", "Cancelar", "キャンセル"];
|
|
40
|
+
readonly close: readonly ["Close", "Chiudi", "Cerrar", "Fermer", "Schließen", "Fechar", "閉じる"];
|
|
41
|
+
readonly back: readonly ["Back", "Indietro", "Volver", "Retour", "Zurück", "Voltar", "戻る"];
|
|
42
|
+
readonly ready: readonly ["Ready", "Pronto", "Listo", "Prêt", "Bereit", "Pronto", "準備完了"];
|
|
43
|
+
readonly unready: readonly ["Not ready", "Non pronto", "No listo", "Pas prêt", "Nicht bereit", "Não pronto", "準備を解除"];
|
|
44
|
+
readonly start: readonly ["Start", "Inizia", "Empezar", "Commencer", "Starten", "Começar", "開始"];
|
|
45
|
+
readonly role: readonly ["Role", "Ruolo", "Rol", "Rôle", "Rolle", "Função", "役割"];
|
|
46
|
+
readonly team: readonly ["Team", "Squadra", "Equipo", "Équipe", "Team", "Equipe", "チーム"];
|
|
47
|
+
readonly host: readonly ["Host", "Host", "Anfitrion", "Hôte", "Host", "Anfitrião", "ホスト"];
|
|
48
|
+
readonly you: readonly ["You", "Tu", "Tú", "Vous", "Du", "Você", "あなた"];
|
|
49
|
+
readonly away: readonly ["Away", "Assente", "Ausente", "Absent", "Abwesend", "Ausente", "離席中"];
|
|
50
|
+
readonly needPlayers: readonly ["Waiting for more players", "In attesa di giocatori", "Esperando más jugadores", "En attente de joueurs", "Weitere Spieler fehlen", "Esperando mais jogadores", "プレイヤーを待っています"];
|
|
51
|
+
readonly needReady: readonly ["Everyone needs to be ready", "Tutti devono essere pronti", "Todos deben estar listos", "Tout le monde doit être prêt", "Alle müssen bereit sein", "Todos precisam estar prontos", "全員の準備完了を待っています"];
|
|
52
|
+
readonly needRoles: readonly ["Fill the required roles", "Completa i ruoli richiesti", "Completa los roles", "Complétez les rôles", "Benötigte Rollen besetzen", "Complete as funções", "必要な役割を選んでください"];
|
|
53
|
+
readonly needTeams: readonly ["Choose the required teams", "Scegli le squadre richieste", "Elige los equipos", "Choisissez les équipes", "Teams auswahlen", "Escolha as equipes", "必要なチームを選んでください"];
|
|
54
|
+
readonly waitHost: readonly ["Waiting for the host", "In attesa dell'host", "Esperando al anfitrion", "En attente de l’hôte", "Warten auf den Host", "Esperando o anfitrião", "ホストを待っています"];
|
|
55
|
+
readonly starting: readonly ["Starting in", "Si inizia tra", "Empieza en", "Début dans", "Start in", "Começa em", "開始まで"];
|
|
56
|
+
readonly playing: readonly ["Playing", "In partita", "Jugando", "En jeu", "Im Spiel", "Jogando", "プレイ中"];
|
|
57
|
+
readonly ended: readonly ["Game finished", "Partita conclusa", "Partida terminada", "Partie terminée", "Spiel beendet", "Partida encerrada", "試合終了"];
|
|
58
|
+
readonly rematchReady: readonly ["{n}/{max} ready", "{n}/{max} pronti", "{n}/{max} listos", "{n}/{max} prêts", "{n}/{max} bereit", "{n}/{max} prontos", "{n}/{max} 人が準備完了"];
|
|
59
|
+
readonly rematchStart: readonly ["Start rematch", "Avvia rivincita", "Iniciar revancha", "Lancer la revanche", "Revanche starten", "Iniciar revanche", "再戦を開始"];
|
|
60
|
+
readonly won: readonly ["You won", "Hai vinto", "Has ganado", "Vous avez gagné", "Du hast gewonnen", "Você venceu", "勝利"];
|
|
61
|
+
readonly lost: readonly ["You lost", "Hai perso", "Has perdido", "Vous avez perdu", "Du hast verloren", "Você perdeu", "敗北"];
|
|
62
|
+
readonly draw: readonly ["Draw", "Pareggio", "Empate", "Égalité", "Unentschieden", "Empate", "引き分け"];
|
|
63
|
+
readonly standings: readonly ["Standings", "Piazzamenti", "Posiciones", "Résultats", "Platzierungen", "Colocações", "順位"];
|
|
64
|
+
readonly points: readonly ["points", "punti", "puntos", "points", "Punkte", "pontos", "ポイント"];
|
|
65
|
+
readonly time: readonly ["time", "tempo", "tiempo", "temps", "Zeit", "tempo", "時間"];
|
|
66
|
+
readonly distance: readonly ["distance", "distanza", "distancia", "distance", "Distanz", "distância", "距離"];
|
|
67
|
+
readonly again: readonly ["Play again", "Gioca ancora", "Jugar de nuevo", "Rejouer", "Erneut spielen", "Jogar novamente", "もう一度プレイ"];
|
|
68
|
+
readonly newRoom: readonly ["New room. Share the new invite.", "Nuova stanza. Condividi il nuovo invito.", "Nueva sala. Comparte la invitación.", "Nouvelle salle. Partagez le lien.", "Neuer Raum. Neue Einladung teilen.", "Nova sala. Compartilhe o convite.", "新しいルームです。新しい招待を共有してください。"];
|
|
69
|
+
readonly watching: readonly ["Watching", "In osservazione", "Observando", "Spectateur", "Zuschauen", "Assistindo", "観戦中"];
|
|
70
|
+
readonly delay: readonly ["{n}s delay", "Ritardo {n}s", "Retraso de {n}s", "Retard de {n}s", "{n}s Verzögerung", "Atraso de {n}s", "{n}秒の遅延"];
|
|
71
|
+
readonly exit: readonly ["Exit", "Esci", "Salir", "Quitter", "Verlassen", "Sair", "終了"];
|
|
72
|
+
readonly leaveNow: readonly ["Leave for now", "Esci per ora", "Salir por ahora", "Quitter pour le moment", "Vorübergehend verlassen", "Sair por enquanto", "一時退出"];
|
|
73
|
+
readonly leaveRoom: readonly ["Leave room", "Lascia la stanza", "Abandonar sala", "Abandonner la salle", "Raum verlassen", "Deixar a sala", "ルームを退出"];
|
|
74
|
+
readonly leaveHint: readonly ["Your room stays available for Resume.", "La stanza resta disponibile con Riprendi.", "Podrás volver a está sala.", "Vous pourrez reprendre cette salle.", "Du kannst den Raum fortsetzen.", "Você pode voltar a está sala.", "ルームは後から再開できます。"];
|
|
75
|
+
readonly temporaryHint: readonly ["The game continues. Rejoining may only be possible briefly.", "La partita continua. Il rientro può essere disponibile solo per poco.", "La partida continua. Volver puede ser posible solo por poco tiempo.", "La partie continue. Le retour peut être limité.", "Das Spiel läuft weiter. Rückkehr nur kurz möglich.", "A partida continua. O retorno pode ser limitado.", "ゲームは続きます。再参加できる時間は限られる場合があります。"];
|
|
76
|
+
readonly abandonHint: readonly ["Leave room gives up your place.", "Lascia la stanza libera il tuo posto.", "Abandonar libera tu plaza.", "Abandonner libère votre place.", "Raum verlassen gibt deinen Platz frei.", "Deixar a sala libera sua vaga.", "ルームを退出すると参加枠を手放します。"];
|
|
77
|
+
readonly reconnecting: readonly ["Reconnecting...", "Riconnessione...", "Reconectando...", "Reconnexion...", "Verbindung wird erneuert...", "Reconectando...", "再接続中..."];
|
|
78
|
+
readonly replaced: readonly ["Opened in another tab", "Aperta in un’altra scheda", "Abierta en otra pestána", "Ouverte dans un autre onglet", "In anderem Tab geöffnet", "Aberta em outra aba", "別のタブで開かれました"];
|
|
79
|
+
readonly error: readonly ["Something went wrong. Try again.", "Qualcosa non va. Riprova.", "Algo salió mal. Reintenta.", "Une erreur est survenue. Réessayez.", "Etwas ist schiefgelaufen. Erneut versuchen.", "Algo deu errado. Tente novamente.", "問題が発生しました。もう一度お試しください。"];
|
|
80
|
+
readonly noRoom: readonly ["This room is no longer available.", "Questa stanza non è più disponibile.", "Esta sala ya no está disponible.", "Cette salle n'est plus disponible.", "Dieser Raum ist nicht mehr verfügbar.", "Esta sala não está mais disponivel.", "このルームは利用できません。"];
|
|
81
|
+
readonly full: readonly ["This room is full.", "La stanza è piena.", "La sala está llena.", "Cette salle est pleine.", "Dieser Raum ist voll.", "Esta sala está cheia.", "ルームは満員です。"];
|
|
82
|
+
readonly noMatch: readonly ["No match this time. Try again.", "Nessun gruppo trovato. Riprova.", "No hay grupo. Reintenta.", "Aucun groupe trouvé. Réessayez.", "Keine Gruppe gefunden. Erneut versuchen.", "Nenhum grupo encontrado. Tente novamente.", "相手が見つかりませんでした。もう一度お試しください。"];
|
|
83
|
+
readonly invalidCode: readonly ["Enter a six-character room code.", "Inserisci un codice di sei caratteri.", "Escribe un código de seis caracteres.", "Entrez un code de six caracteres.", "Sechsstelligen Raumcode eingeben.", "Digite um código de seis caracteres.", "6文字のルームコードを入力してください。"];
|
|
84
|
+
readonly refused: readonly ["The room did not accept that change.", "La stanza ha rifiutato la modifica.", "La sala rechazó el cambio.", "La salle a refusé ce changement.", "Der Raum hat die Änderung abgelehnt.", "A sala recusou a alteração.", "ルームは変更を受け付けませんでした。"];
|
|
85
|
+
readonly unavailable: readonly ["Unavailable right now", "Non disponibile ora", "No disponible ahora", "Indisponible pour le moment", "Derzeit nicht verfügbar", "Indisponivel agora", "現在利用できません"];
|
|
86
|
+
readonly offline: readonly ["Connection unavailable. Try again.", "Connessione non disponibile. Riprova.", "Sin conexión. Reintenta.", "Connexion indisponible. Réessayez.", "Keine Verbindung. Erneut versuchen.", "Sem conexão. Tente novamente.", "接続できません。もう一度お試しください。"];
|
|
87
|
+
readonly saveFailed: readonly ["Keep the room code. Resume could not be saved.", "Conserva il codice. Riprendi non è stato salvato.", "Guarda el código. No se pudo guardar el regreso.", "Gardez le code. La reprise ne peut pas être enregistrée.", "Raumcode aufbewahren. Fortsetzen nicht gespeichert.", "Guarde o código. O retorno não foi salvo.", "ルームコードを控えてください。再開情報を保存できませんでした。"];
|
|
88
|
+
readonly boards: readonly ["Leaderboard", "Classifica", "Clasificación", "Classement", "Bestenliste", "Classificação", "ランキング"];
|
|
89
|
+
readonly board: readonly ["Board", "Classifica", "Tabla", "Classement", "Bestenliste", "Tabela", "ランキング"];
|
|
90
|
+
readonly daily: readonly ["Daily", "Giornaliera", "Diaria", "Du jour", "Täglich", "Diária", "日別"];
|
|
91
|
+
readonly allTime: readonly ["All time", "Di sempre", "Histórica", "Tous les temps", "Gesamt", "Geral", "全期間"];
|
|
92
|
+
readonly accounts: readonly ["Accounts", "Account", "Cuentas", "Comptes", "Konten", "Contas", "アカウント"];
|
|
93
|
+
readonly guests: readonly ["Guests", "Ospiti", "Invitados", "Invités", "Gäste", "Visitantes", "ゲスト"];
|
|
94
|
+
readonly category: readonly ["Category", "Categoria", "Categoria", "Catégorie", "Kategorie", "Categoria", "区分"];
|
|
95
|
+
readonly period: readonly ["Period", "Periodo", "Período", "Période", "Zeitraum", "Período", "期間"];
|
|
96
|
+
readonly rank: readonly ["Rank", "Posizione", "Puesto", "Rang", "Platz", "Posicao", "順位"];
|
|
97
|
+
readonly score: readonly ["Score", "Punteggio", "Puntos", "Score", "Punkte", "Pontos", "スコア"];
|
|
98
|
+
readonly verified: readonly ["Verified", "Verificato", "Verificado", "Vérifié", "Verifiziert", "Verificado", "確認済み"];
|
|
99
|
+
readonly own: readonly ["Your best", "Il tuo record", "Tu record", "Votre record", "Dein Rekord", "Seu recorde", "自己ベスト"];
|
|
100
|
+
readonly empty: readonly ["No scores yet", "Nessun punteggio", "Aún no hay puntos", "Aucun score", "Noch keine Punkte", "Ainda sem pontos", "まだスコアがありません"];
|
|
101
|
+
readonly saving: readonly ["Saving score...", "Salvataggio punteggio...", "Guardando puntos...", "Enregistrement du score...", "Punkte werden gespeichert...", "Salvando pontos...", "スコアを保存中..."];
|
|
102
|
+
readonly saved: readonly ["Your best is on the board", "Il tuo record è in classifica", "Tu record está en la tabla", "Votre record est au classement", "Dein Rekord ist eingetragen", "Seu recorde está na tabela", "自己ベストがランキングに反映されました"];
|
|
103
|
+
readonly bestAlready: readonly ["Your best is already on the board", "Il tuo record era già in classifica", "Tu record ya estaba en la tabla", "Votre record est déjà au classement", "Dein Rekord ist bereits eingetragen", "Seu recorde já está na tabela", "自己ベストは反映済みです"];
|
|
104
|
+
readonly refresh: readonly ["Refresh", "Aggiorna", "Actualizar", "Actualiser", "Aktualisieren", "Atualizar", "更新"];
|
|
105
|
+
readonly refreshHint: readonly ["Score not visible yet. Refresh to check.", "Punteggio non ancora visibile. Aggiorna per controllare.", "Puntos aún no visibles. Actualiza.", "Score pas encore visible. Actualisez.", "Punkte noch nicht sichtbar. Aktualisieren.", "Pontos ainda não visiveis. Atualize.", "スコアがまだ表示されません。更新して確認してください。"];
|
|
106
|
+
readonly friends: readonly ["Friends & party", "Amici e gruppo", "Amigos y grupo", "Amis et groupe", "Freunde & Gruppe", "Amigos e grupo", "友達とパーティー"];
|
|
107
|
+
readonly localCrew: readonly ["Friends and party are unavailable in local preview.", "Amici e gruppo non disponibili in anteprima locale.", "Amigos y grupo no disponibles en la vista local.", "Amis et groupe indisponibles en aperçu local.", "Freunde und Gruppe in lokaler Vorschau nicht verfügbar.", "Amigos e grupo indisponíveis na prévia local.", "ローカルプレビューでは友達とパーティーは利用できません。"];
|
|
108
|
+
readonly loginCrew: readonly ["Sign in on Caisual to use friends and party.", "Accedi a Caisual per amici e gruppo.", "Inicia sesion para amigos y grupo.", "Connectez-vous pour utiliser amis et groupe.", "Für Freunde und Gruppe bei Caisual anmelden.", "Entre no Caisual para amigos e grupo.", "友達とパーティーを利用するにはCaisualにログインしてください。"];
|
|
109
|
+
readonly online: readonly ["Online", "Online", "En linea", "En ligne", "Online", "Online", "オンライン"];
|
|
110
|
+
readonly noFriends: readonly ["No friends online", "Nessun amico online", "Sin amigos en linea", "Aucun ami en ligne", "Keine Freunde online", "Nenhum amigo online", "オンラインの友達はいません"];
|
|
111
|
+
readonly createParty: readonly ["Create party", "Crea gruppo", "Crear grupo", "Créer un groupe", "Gruppe erstellen", "Criar grupo", "パーティーを作成"];
|
|
112
|
+
readonly inviteParty: readonly ["Invite to party", "Invita nel gruppo", "Invitar al grupo", "Inviter au groupe", "In Gruppe einladen", "Convidar para o grupo", "パーティーに招待"];
|
|
113
|
+
readonly leaveParty: readonly ["Leave party", "Lascia gruppo", "Salir del grupo", "Quitter le groupe", "Gruppe verlassen", "Sair do grupo", "パーティーを退出"];
|
|
114
|
+
readonly accept: readonly ["Accept", "Accetta", "Aceptar", "Accepter", "Annehmen", "Aceitar", "承諾"];
|
|
115
|
+
readonly decline: readonly ["Decline", "Rifiuta", "Rechazar", "Refuser", "Ablehnen", "Recusar", "辞退"];
|
|
116
|
+
readonly follow: readonly ["Join them", "Raggiungi", "Unirse", "Rejoindre", "Beitreten", "Juntar-se", "一緒に参加"];
|
|
117
|
+
readonly voice: readonly ["Voice", "Voce", "Voz", "Voix", "Sprache", "Voz", "ボイス"];
|
|
118
|
+
readonly voiceJoin: readonly ["Join voice", "Entra in voce", "Unirse a voz", "Activer la voix", "Sprachchat beitreten", "Entrar na voz", "ボイスに参加"];
|
|
119
|
+
readonly voiceLeave: readonly ["Leave voice", "Esci dalla voce", "Salir de voz", "Quitter la voix", "Sprachchat verlassen", "Sair da voz", "ボイスを退出"];
|
|
120
|
+
readonly voiceMute: readonly ["Mute", "Disattiva microfono", "Silenciar", "Couper le micro", "Stummschalten", "Silenciar", "ミュート"];
|
|
121
|
+
readonly voiceUnmute: readonly ["Unmute", "Attiva microfono", "Activar micrófono", "Activer le micro", "Mikrofon aktivieren", "Ativar microfone", "ミュート解除"];
|
|
122
|
+
readonly voiceOff: readonly ["Voice off", "Voce disattivata", "Voz desactivada", "Voix désactivée", "Sprachchat aus", "Voz desativada", "ボイスオフ"];
|
|
123
|
+
readonly voiceJoining: readonly ["Joining voice...", "Connessione voce...", "Conectando voz...", "Connexion vocale...", "Sprachchat verbindet...", "Conectando voz...", "ボイスに接続中..."];
|
|
124
|
+
readonly voiceOn: readonly ["Voice connected", "Voce connessa", "Voz conectada", "Voix connectée", "Sprachchat verbunden", "Voz conectada", "ボイス接続済み"];
|
|
125
|
+
readonly voiceMuted: readonly ["Muted", "Microfono disattivato", "Silenciado", "Micro coupé", "Stumm", "Silenciado", "ミュート中"];
|
|
126
|
+
readonly voiceMic: readonly ["Mic on", "Microfono attivo", "Micrófono activo", "Micro actif", "Mikrofon an", "Microfone ativo", "マイクオン"];
|
|
127
|
+
readonly voiceListening: readonly ["Listening only", "Solo ascolto", "Solo escucha", "Écoute seule", "Nur zuhören", "Somente ouvindo", "聞くだけ"];
|
|
128
|
+
readonly voiceSpeaking: readonly ["Speaking", "Sta parlando", "Hablando", "Parle", "Spricht", "Falando", "発話中"];
|
|
129
|
+
readonly voicePeers: readonly ["Voice participants", "Partecipanti in voce", "Participantes de voz", "Participants vocaux", "Sprachteilnehmer", "Participantes de voz", "ボイス参加者"];
|
|
130
|
+
readonly voiceEmpty: readonly ["No one else in voice yet.", "Nessun altro in voce per ora.", "Aún no hay nadie más en voz.", "Personne d’autre en voix pour le moment.", "Noch niemand im Sprachchat.", "Ninguém mais na voz ainda.", "他の参加者はまだいません。"];
|
|
131
|
+
readonly voiceVolume: readonly ["Volume for {name}", "Volume di {name}", "Volumen de {name}", "Volume de {name}", "Lautstärke für {name}", "Volume de {name}", "{name}の音量"];
|
|
132
|
+
readonly voiceUnavailable: readonly ["Join a room with voice to use these controls.", "Entra in una stanza con voce per usare questi controlli.", "Entra en una sala con voz para usar estos controles.", "Rejoignez une salle vocale pour utiliser ces commandes.", "Diese Steuerung braucht einen Raum mit Sprachchat.", "Entre em uma sala com voz para usar estes controles.", "ボイス対応のルームに参加してください。"];
|
|
133
|
+
readonly voiceWatch: readonly ["Voice is unavailable while watching.", "La voce non e' disponibile in osservazione.", "La voz no está disponible al observar.", "La voix est indisponible en observation.", "Beim Zuschauen ist kein Sprachchat verfügbar.", "A voz não está disponível ao assistir.", "観戦中はボイスを利用できません。"];
|
|
134
|
+
readonly voiceDenied: readonly ["Microphone permission denied. Allow it in your browser, then try again.", "Permesso microfono negato. Consenti l'accesso nel browser e riprova.", "Permiso de micrófono denegado. Actívalo en el navegador e inténtalo de nuevo.", "Accès au micro refusé. Autorisez-le dans le navigateur, puis réessayez.", "Mikrofonzugriff verweigert. Im Browser erlauben und erneut versuchen.", "Permissão do microfone negada. Permita no navegador e tente novamente.", "マイクが許可されていません。ブラウザで許可してからお試しください。"];
|
|
135
|
+
readonly voiceUnsupported: readonly ["Voice is not supported in this browser.", "Questo browser non supporta la voce.", "Este navegador no admite voz.", "Ce navigateur ne prend pas en charge la voix.", "Dieser Browser unterstützt keinen Sprachchat.", "Este navegador não oferece suporte a voz.", "このブラウザはボイスに対応していません。"];
|
|
136
|
+
readonly voiceFailed: readonly ["Voice could not connect. Try again.", "Connessione voce non riuscita. Riprova.", "No se pudo conectar la voz. Inténtalo de nuevo.", "Connexion vocale impossible. Réessayez.", "Sprachverbindung fehlgeschlagen. Erneut versuchen.", "Não foi possível conectar a voz. Tente novamente.", "ボイスに接続できませんでした。もう一度お試しください。"];
|
|
137
|
+
readonly voicePeerGone: readonly ["This participant has left voice.", "Questo partecipante e' uscito dalla voce.", "Este participante salió de voz.", "Ce participant a quitté la voix.", "Diese Person hat den Sprachchat verlassen.", "Este participante saiu da voz.", "この参加者はボイスを退出しました。"];
|
|
138
|
+
readonly shortcut: readonly ["Shift+Tab shortcut", "Scorciatoia Shift+Tab", "Atajo Shift+Tab", "Raccourci Maj+Tab", "Umschalt+Tab-Kurzbefehl", "Atalho Shift+Tab", "Shift+Tabショートカット"];
|
|
139
|
+
readonly menu: readonly ["Caisual menu", "Menu Caisual", "Menu Caisual", "Menu Caisual", "Caisual-Menu", "Menu Caisual", "Caisualメニュー"];
|
|
140
|
+
readonly retry: readonly ["Retry", "Riprova", "Reintentar", "Réessayer", "Erneut versuchen", "Tentar novamente", "再試行"];
|
|
129
141
|
};
|
|
130
142
|
export type TextKey = keyof typeof words;
|
|
131
143
|
export type Dictionary = Record<TextKey, string>;
|
|
132
144
|
export declare const dictionaries: Record<OverlayLanguage, Dictionary>;
|
|
133
|
-
export declare function overlayLanguage(raw: string | null | undefined): OverlayLanguage;
|
|
134
|
-
export declare function overlayLocale(raw: string | null | undefined): string;
|
|
135
145
|
export declare function translator(language: string): (key: TextKey, values?: Record<string, string | number>) => string;
|
|
136
146
|
export declare function errorText(code: string): TextKey;
|
|
137
|
-
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const languages: readonly ['en', 'it', 'es', 'fr', 'de', 'pt', 'ja'];
|
|
2
|
+
export type OverlayLanguage = typeof languages[number];
|
|
3
|
+
export declare function overlayLanguage(raw: string | null | undefined): OverlayLanguage;
|
|
4
|
+
export declare function overlayLocale(raw: string | null | undefined): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const styles = "\n.game-icon{width:28px;height:28px;aspect-ratio:1;object-fit:contain;border-radius:7px;flex:none;vertical-align:middle}.game-icon-title{width:56px;height:56px;margin-bottom:12px}\n.safe-area-probe{position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}\n:host{all:initial;position:fixed;inset:0;z-index:10000;pointer-events:none;font:15px/1.45 system-ui,sans-serif;color:#f4f4f1;color-scheme:dark;--accent:#a8efc5}\n[data-layout],[data-surface],.sr{pointer-events:none}*{box-sizing:border-box}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,select,input{border:1px solid #ffffff30;background:#25292b;color:inherit;border-radius:12px;min-height:44px;padding:10px 14px}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:hover:not(:disabled){background:#343b3a}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:var(--accent)}.primary{background:var(--accent);color:var(--accent-ink,#11221b);border-color:transparent;font-weight:700}.primary:hover:not(:disabled){filter:brightness(1.1);background:var(--accent)}.quiet{background:transparent}label{display:grid;gap:6px;text-align:left}select,input{width:100%;min-width:0}h1,h2,p{margin:0}h1{font-size:clamp(26px,5vw,42px);line-height:1.1;letter-spacing:-.035em}h2{font-size:20px}small,.muted{color:#bdc5c1}.stack{display:grid;gap:16px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row>*{flex:0 1 auto}.row .grow,.grow{flex:1}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pill{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));display:flex;height:44px;border:1px solid #ffffff35;border-radius:24px;background:#171e20eF;box-shadow:0 4px 20px #0004;pointer-events:auto;overflow:hidden}.pill button{border:0;border-radius:0;padding:8px 13px;background:transparent}.pill button:focus-visible{outline-offset:-4px}.pill small{margin-left:8px}.backdrop{position:absolute;inset:0;background:#0b151ce8;backdrop-filter:blur(10px);pointer-events:auto;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto}.backdrop.home{background-color:#142127;background-size:contain;background-repeat:no-repeat;background-position:center}.dialog{position:relative;width:min(100%,540px);max-height:100%;overflow:auto;overscroll-behavior:contain;background:#141b1df5;border:1px solid #ffffff25;border-radius:22px;padding:24px;box-shadow:0 20px 80px #0005}.dialog.wide{width:min(100%,700px)}.top{display:flex;align-items:center;gap:12px;margin-bottom:18px}.top h2{flex:1}.tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #ffffff25;padding-bottom:12px}.tabs button{min-height:36px;padding:6px 10px}.tabs [aria-current=true]{border-color:var(--accent)}.roster{list-style:none;padding:0;margin:0;display:grid;gap:8px;max-height:32dvh;overflow:auto}.roster li{display:flex;align-items:center;gap:8px;padding:10px;background:#ffffff08;border-radius:10px}.roster .name{flex:1;overflow-wrap:anywhere}.badge{border:1px solid #ffffff30;border-radius:6px;padding:2px 6px;font-size:12px}.code{font-size:24px;letter-spacing:.13em;font-variant-numeric:tabular-nums}.notice,.error{border-radius:10px;padding:10px;background:#a8efc514;overflow-wrap:anywhere}.error{background:#ff8b7720;color:#ffd2c9}.countdown{font-size:88px;line-height:1;text-align:center;font-variant-numeric:tabular-nums}.ended{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;background:#171e20f5;pointer-events:auto;border:1px solid #ffffff30;border-radius:16px;padding:10px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.ended [data-rematch-players]{max-width:100%;max-height:3.2em;overflow:auto;overflow-wrap:anywhere}.standings{list-style:none;margin:0;padding:0;flex-basis:100%;max-height:20dvh;overflow:auto;font-size:13px}.standings li{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.ended{max-height:calc(100dvh - 80px);overflow:auto}.ended strong{padding:0 8px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.table-wrap{overflow:auto;max-height:38dvh}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:9px 6px;border-bottom:1px solid #ffffff20}td:nth-child(3){text-align:right}td small{display:block}.self{background:#ffffff0a}.checkbox{display:flex;align-items:center;gap:8px;font-size:13px}.checkbox input{width:18px;min-height:18px}.full{width:100%}\n[hidden]{display:none!important}.voice-peers{list-style:none;margin:0;padding:0;display:grid;gap:10px}.voice-peers li{border:1px solid #ffffff25;border-radius:12px;padding:12px;display:grid;gap:8px}.voice-peers [data-speaking=true]{border-color:var(--accent)}.voice-peers input{width:100%;accent-color:var(--accent);padding:0}.voice-peers label{font-size:13px}.pill .voice-toggle{width:44px;padding:8px}.voice-toggle[data-voice-state=on][data-muted=false]{color:var(--accent)}\n.boot{position:absolute;inset:0;z-index:2;isolation:isolate;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;padding:max(100px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(48px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:#0b151c;opacity:1;transition:opacity .4s ease;pointer-events:auto;outline:none}\n.boot::before,.boot::after{content:\"\";position:fixed;inset:0;pointer-events:none;z-index:-1}.boot::before{background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--accent),transparent 80%),transparent 65%)}.boot::after{background:radial-gradient(ellipse at 50% 38%,#0b151c20,#0b151cd9 85%),linear-gradient(#0b151c66,#0b151cbf)}\n.boot-cover{position:fixed;inset:0;z-index:-2;width:100%;height:100%;aspect-ratio:3 / 2;object-fit:contain;filter:blur(20px);opacity:.65;pointer-events:none}\n.boot-brand{position:absolute;top:max(28px,env(safe-area-inset-top));left:max(32px,env(safe-area-inset-left));display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;letter-spacing:.02em;color:#f4f4f1b3}.boot-brand span{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff25;border-radius:12px;background:#171e20af;box-shadow:0 4px 20px #0004;color:var(--boot-accent);font-size:20px;font-weight:800}\n.boot-content{width:min(100%,900px);text-align:center;display:grid;justify-items:center;gap:24px}.boot h1{max-width:16ch;font-size:clamp(44px,8vw,108px);font-weight:800;line-height:1.04;letter-spacing:-.05em;overflow-wrap:anywhere;text-wrap:balance;color:var(--boot-accent);text-shadow:0 20px 80px #0005}\n.boot-progress{width:112px;height:3px;border-radius:12px;background:#ffffff20;overflow:hidden;margin-top:12px}.boot-progress span{display:block;width:44%;height:100%;border-radius:inherit;background:var(--boot-accent);animation:boot-progress 1.8s ease-in-out infinite}.boot-status{max-width:42ch;min-height:3em;font-size:14px;line-height:1.5;color:#d3dad6;text-wrap:balance}.boot-recovery{min-height:44px}.boot-recovery .row{justify-content:center}.boot-leaving{opacity:0;pointer-events:none}\n@keyframes boot-progress{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}\n@media(max-width:480px){.dialog{padding:18px;border-radius:18px}.split{grid-template-columns:1fr 1fr;gap:8px}.tabs{gap:4px}.tabs button{font-size:13px;padding:6px 8px}.pill button:focus-visible{outline-offset:-4px}.pill small{display:none}.ended{gap:6px}.standings{list-style:none;margin:0;padding:0;flex-basis:100%;max-height:20dvh;overflow:auto;font-size:13px}.standings li{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.ended{max-height:calc(100dvh - 80px);overflow:auto}.ended strong{font-size:13px}.ended button{padding:8px 10px;font-size:13px}.roster{max-height:28dvh}}\n@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.boot{transition:none}.boot-progress span{animation:none;transform:translateX(65%)}}\n";
|
|
1
|
+
export declare const styles = "\n.game-icon{width:28px;height:28px;aspect-ratio:1;object-fit:contain;border-radius:7px;flex:none;vertical-align:middle}.game-icon-title{width:36px;height:36px;border-radius:10px}\n.safe-area-probe{position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}\n:host{all:initial;position:fixed;inset:0;z-index:10000;pointer-events:none;font:15px/1.45 system-ui,sans-serif;color:#f4f4f1;color-scheme:dark;--accent:#a8efc5}\n[data-layout],[data-surface],.sr{pointer-events:none}*{box-sizing:border-box}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,select,input{border:1px solid #ffffff30;background:#25292b;color:inherit;border-radius:12px;min-height:44px;padding:10px 14px}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:hover:not(:disabled){background:#343b3a}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:var(--accent)}.primary{background:var(--accent);color:var(--accent-ink,#11221b);border-color:transparent;font-weight:700}.primary:hover:not(:disabled){filter:brightness(1.1);background:var(--accent)}.quiet{background:transparent}label{display:grid;gap:6px;text-align:left}select,input{width:100%;min-width:0}h1,h2,p{margin:0}h1{font-size:clamp(26px,5vw,42px);line-height:1.1;letter-spacing:-.035em}h2{font-size:20px}small,.muted{color:#bdc5c1}.stack{display:grid;gap:16px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row>*{flex:0 1 auto}.row .grow,.grow{flex:1}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pill{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));display:flex;height:44px;border:1px solid #ffffff35;border-radius:24px;background:#171e20eF;box-shadow:0 4px 20px #0004;pointer-events:auto;overflow:hidden}.pill button{border:0;border-radius:0;padding:8px 13px;background:transparent}.pill button:focus-visible{outline-offset:-4px}.pill small{margin-left:8px}.backdrop{position:absolute;inset:0;background:#0b151ce8;backdrop-filter:blur(10px);pointer-events:auto;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto}.backdrop.home{background-color:#142127;background-size:contain;background-repeat:no-repeat;background-position:center}.dialog{position:relative;width:min(100%,540px);max-height:100%;overflow:auto;overscroll-behavior:contain;background:#141b1df5;border:1px solid #ffffff25;border-radius:22px;padding:24px;box-shadow:0 20px 80px #0005}.dialog.wide{width:min(100%,700px)}.top{display:flex;align-items:center;gap:12px;margin-bottom:18px}.top h2{flex:1}.tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #ffffff25;padding-bottom:12px}.tabs button{min-height:36px;padding:6px 10px}.tabs [aria-current=true]{border-color:var(--accent)}.roster{list-style:none;padding:0;margin:0;display:grid;gap:8px;max-height:32dvh;overflow:auto}.roster li{display:flex;align-items:center;gap:8px;padding:10px;background:#ffffff08;border-radius:10px}.roster .name{flex:1;overflow-wrap:anywhere}.badge{border:1px solid #ffffff30;border-radius:6px;padding:2px 6px;font-size:12px}.code{font-size:24px;letter-spacing:.13em;font-variant-numeric:tabular-nums}.notice,.error{border-radius:10px;padding:10px;background:#a8efc514;overflow-wrap:anywhere}.error{background:#ff8b7720;color:#ffd2c9}.countdown{font-size:88px;line-height:1;text-align:center;font-variant-numeric:tabular-nums}.ended{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;background:#171e20f5;pointer-events:auto;border:1px solid #ffffff30;border-radius:16px;padding:10px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.ended [data-rematch-players]{max-width:100%;max-height:3.2em;overflow:auto;overflow-wrap:anywhere}.standings{list-style:none;margin:0;padding:0;flex-basis:100%;max-height:20dvh;overflow:auto;font-size:13px}.standings li{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.ended{max-height:calc(100dvh - 80px);overflow:auto}.ended strong{padding:0 8px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.table-wrap{overflow:auto;max-height:38dvh}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:9px 6px;border-bottom:1px solid #ffffff20}td:nth-child(3){text-align:right}td small{display:block}.self{background:#ffffff0a}.checkbox{display:flex;align-items:center;gap:8px;font-size:13px}.checkbox input{width:18px;min-height:18px}.full{width:100%}\n.game-heading{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.game-heading h1{font-size:28px;overflow-wrap:anywhere}.home .top{margin-bottom:12px}.game-description{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.experience-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #ffffff18;border-radius:14px;background:#0003}.experience-tabs button{background:transparent;border-color:transparent;font-size:14px;font-weight:600;padding:10px 8px;border-radius:10px;color:#bdc5c1}.experience-tabs [aria-selected=true]{background:#ffffff16;color:#f4f4f1;box-shadow:0 1px 4px #0003}.experience-tabs button:focus-visible{outline-offset:-3px}.home-content{gap:14px;min-width:0}.mode-details{display:grid;gap:6px;min-width:0}.mode-details h2{font-size:16px;font-weight:600}.mode-details label{font-size:13px}.mode-instructions{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.play-actions{gap:8px}.play-actions .primary{min-height:50px;font-size:16px}.home-links{gap:4px}.home-links button{border-color:transparent;font-size:13px}.home-links button:hover:not(:disabled){background:#ffffff0a}.resume-action{gap:4px}.resume-action small{text-align:center}.panel-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;padding-top:10px;border-top:1px solid #ffffff18;color:#bdc5c1}.panel-footer .checkbox{font-size:11px;white-space:nowrap;min-height:32px;gap:6px}.panel-footer input{margin:0;accent-color:var(--accent);width:14px;min-height:14px}.panel-footer small{min-width:0;text-align:right;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase}\n[hidden]{display:none!important}.voice-peers{list-style:none;margin:0;padding:0;display:grid;gap:10px}.voice-peers li{border:1px solid #ffffff25;border-radius:12px;padding:12px;display:grid;gap:8px}.voice-peers [data-speaking=true]{border-color:var(--accent)}.voice-peers input{width:100%;accent-color:var(--accent);padding:0}.voice-peers label{font-size:13px}.pill .voice-toggle{width:44px;padding:8px}.voice-toggle[data-voice-state=on][data-muted=false]{color:var(--accent)}\n.boot{position:absolute;inset:0;z-index:2;isolation:isolate;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;padding:max(100px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(48px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:#0b151c;opacity:1;transition:opacity .4s ease;pointer-events:auto;outline:none}\n.boot::before,.boot::after{content:\"\";position:fixed;inset:0;pointer-events:none;z-index:-1}.boot::before{background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--accent),transparent 80%),transparent 65%)}.boot::after{background:radial-gradient(ellipse at 50% 38%,#0b151c20,#0b151cd9 85%),linear-gradient(#0b151c66,#0b151cbf)}\n.boot-cover{position:fixed;inset:0;z-index:-2;width:100%;height:100%;aspect-ratio:3 / 2;object-fit:contain;filter:blur(20px);opacity:.65;pointer-events:none}\n.boot-brand{position:absolute;top:max(28px,env(safe-area-inset-top));left:max(32px,env(safe-area-inset-left));display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;letter-spacing:.02em;color:#f4f4f1b3}.boot-brand span{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff25;border-radius:12px;background:#171e20af;box-shadow:0 4px 20px #0004;color:var(--boot-accent);font-size:20px;font-weight:800}\n.boot-content{width:min(100%,900px);text-align:center;display:grid;justify-items:center;gap:24px}.boot h1{max-width:16ch;font-size:clamp(44px,8vw,108px);font-weight:800;line-height:1.04;letter-spacing:-.05em;overflow-wrap:anywhere;text-wrap:balance;color:var(--boot-accent);text-shadow:0 20px 80px #0005}\n.boot-progress{width:112px;height:3px;border-radius:12px;background:#ffffff20;overflow:hidden;margin-top:12px}.boot-progress span{display:block;width:44%;height:100%;border-radius:inherit;background:var(--boot-accent);animation:boot-progress 1.8s ease-in-out infinite}.boot-status{max-width:42ch;min-height:3em;font-size:14px;line-height:1.5;color:#d3dad6;text-wrap:balance}.boot-recovery{min-height:44px}.boot-recovery .row{justify-content:center}.boot-leaving{opacity:0;pointer-events:none}\n@keyframes boot-progress{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}\n@media(max-width:480px){.dialog{padding:18px;border-radius:18px}.split{grid-template-columns:1fr 1fr;gap:8px}.tabs{gap:4px}.tabs button{font-size:13px;padding:6px 8px}.pill button:focus-visible{outline-offset:-4px}.pill small{display:none}.ended{gap:6px}.standings{list-style:none;margin:0;padding:0;flex-basis:100%;max-height:20dvh;overflow:auto;font-size:13px}.standings li{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.ended{max-height:calc(100dvh - 80px);overflow:auto}.ended strong{font-size:13px}.ended button{padding:8px 10px;font-size:13px}.roster{max-height:28dvh}}\n.replay-controls{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:12px;right:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;background:#141b1df5;border:1px solid #ffffff30;border-radius:16px;pointer-events:auto}.replay-position{flex:1;min-width:100px}.replay-controls label{font-size:12px}.replay-controls span{font-variant-numeric:tabular-nums;font-size:13px}.replay-link{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:12px;text-decoration:none}\n@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.boot{transition:none}.boot-progress span{animation:none;transform:translateX(65%)}}\n";
|
|
@@ -34,6 +34,10 @@ export type UiAction = {
|
|
|
34
34
|
};
|
|
35
35
|
export declare function phase(session: OverlaySessionState | null): Phase;
|
|
36
36
|
export declare function initialUi(manifest: Manifest): UiModel;
|
|
37
|
+
export declare function groupModes(manifest: Manifest): {
|
|
38
|
+
singlePlayer: Manifest['modes'];
|
|
39
|
+
multiplayer: Manifest['modes'];
|
|
40
|
+
};
|
|
37
41
|
export declare function reduceUi(model: UiModel, action: UiAction): UiModel;
|
|
38
42
|
export declare function visiblePanel(model: UiModel): Panel | 'boot' | 'attaching' | 'matching' | 'countdown' | 'error' | null;
|
|
39
43
|
export declare function primaryAction(manifest: Manifest, mode: string): {
|
|
@@ -207,6 +207,9 @@ export type MessaggioClientStanza = MessaggioClientVoce | {
|
|
|
207
207
|
t: 'leave';
|
|
208
208
|
};
|
|
209
209
|
export type MessaggioServerStanza = {
|
|
210
|
+
t: 'replay-ready';
|
|
211
|
+
id: string;
|
|
212
|
+
} | {
|
|
210
213
|
t: 'welcome';
|
|
211
214
|
you: string;
|
|
212
215
|
room: StanzaProtocollo;
|
|
@@ -266,5 +269,5 @@ export type MessaggioServerSpettatore = ({
|
|
|
266
269
|
t: 'watching';
|
|
267
270
|
delayMs: number;
|
|
268
271
|
} & FotografiaStanza) | Extract<MessaggioServerStanza, {
|
|
269
|
-
t: 'players' | 'status' | 'state' | 'snapshot' | 'msg' | 'error' | 'pong';
|
|
272
|
+
t: 'replay-ready' | 'players' | 'status' | 'state' | 'snapshot' | 'msg' | 'error' | 'pong';
|
|
270
273
|
}>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type ReplayEvent, type ReplayIndex, type ReplayPlayback } from '../contracts/index.js';
|
|
2
|
+
import type { JsonValue, RoomMetadata, Spectate } from '../index.js';
|
|
3
|
+
export interface ReplayClock {
|
|
4
|
+
now(): number;
|
|
5
|
+
setInterval(callback: () => void, ms: number): number;
|
|
6
|
+
clearInterval(id: number): void;
|
|
7
|
+
}
|
|
8
|
+
export declare class ReplayClient implements Spectate {
|
|
9
|
+
readonly index: ReplayIndex;
|
|
10
|
+
private readonly events;
|
|
11
|
+
private readonly clock;
|
|
12
|
+
readonly replay = true;
|
|
13
|
+
readonly role = "spectator";
|
|
14
|
+
readonly delayMs = 0;
|
|
15
|
+
readonly code = "";
|
|
16
|
+
readonly latency: null;
|
|
17
|
+
readonly countdownAt: null;
|
|
18
|
+
private picture;
|
|
19
|
+
private cursor;
|
|
20
|
+
private position;
|
|
21
|
+
private paused;
|
|
22
|
+
private speedValue;
|
|
23
|
+
private timer;
|
|
24
|
+
private last;
|
|
25
|
+
private lastEmitted;
|
|
26
|
+
private disconnected;
|
|
27
|
+
private checkpoints;
|
|
28
|
+
private states;
|
|
29
|
+
private playersListeners;
|
|
30
|
+
private statuses;
|
|
31
|
+
private metadataListeners;
|
|
32
|
+
private connections;
|
|
33
|
+
private playbackListeners;
|
|
34
|
+
constructor(index: ReplayIndex, events: ReplayEvent[], clock?: ReplayClock);
|
|
35
|
+
get mode(): string | null;
|
|
36
|
+
get connection(): "connected" | "disconnected";
|
|
37
|
+
get metadata(): RoomMetadata;
|
|
38
|
+
get state(): JsonValue;
|
|
39
|
+
get tick(): number;
|
|
40
|
+
get tickRate(): number;
|
|
41
|
+
get seed(): number;
|
|
42
|
+
get status(): import("../contracts/index.js").ReplayStatus;
|
|
43
|
+
get players(): import("../contracts/index.js").OverlayPlayer[];
|
|
44
|
+
get host(): string | null;
|
|
45
|
+
get result(): JsonValue;
|
|
46
|
+
get playback(): ReplayPlayback;
|
|
47
|
+
serverTime(): number;
|
|
48
|
+
onState(listener: Parameters<Spectate['onState']>[0]): () => void;
|
|
49
|
+
onStatus(listener: Parameters<Spectate['onStatus']>[0]): () => void;
|
|
50
|
+
onPlayers(listener: Parameters<Spectate['onPlayers']>[0]): () => void;
|
|
51
|
+
onMetadata(listener: Parameters<Spectate['onMetadata']>[0]): () => void;
|
|
52
|
+
onConnection(listener: Parameters<Spectate['onConnection']>[0]): () => void;
|
|
53
|
+
onMessage(_listener: Parameters<Spectate['onMessage']>[0]): () => void;
|
|
54
|
+
onPlayback(listener: (value: ReplayPlayback) => void): () => void;
|
|
55
|
+
private apply;
|
|
56
|
+
seek(position: number): void;
|
|
57
|
+
private advance;
|
|
58
|
+
private step;
|
|
59
|
+
play(): void;
|
|
60
|
+
pause(): void;
|
|
61
|
+
speed(value: number): void;
|
|
62
|
+
disconnect(): void;
|
|
63
|
+
leave(): void;
|
|
64
|
+
}
|
|
65
|
+
export declare function loadReplay(fetcher: typeof fetch, url: string): Promise<ReplayClient>;
|