iobroker.assistant 1.9.1 → 1.10.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/README.md +6 -158
- package/admin/custom/.vite/manifest.json +1 -1
- package/admin/custom/assets/Components-Do2er6qU.js +2 -0
- package/admin/custom/customComponents.js +1 -1
- package/admin/custom/i18n/de.json +5 -0
- package/admin/custom/i18n/en.json +5 -0
- package/admin/custom/i18n/es.json +5 -0
- package/admin/custom/i18n/fr.json +5 -0
- package/admin/custom/i18n/it.json +5 -0
- package/admin/custom/i18n/nl.json +5 -0
- package/admin/custom/i18n/pl.json +5 -0
- package/admin/custom/i18n/pt.json +5 -0
- package/admin/custom/i18n/ru.json +5 -0
- package/admin/custom/i18n/uk.json +5 -0
- package/admin/custom/i18n/zh-cn.json +5 -0
- package/admin/custom/index.html +1 -1
- package/admin/custom/mf-manifest.json +1 -1
- package/admin/custom/mf-stats.json +1 -1
- package/admin/i18n/es.json +1 -1
- package/admin/i18n/fr.json +1 -1
- package/admin/i18n/it.json +1 -1
- package/admin/i18n/nl.json +1 -1
- package/admin/i18n/pl.json +1 -1
- package/admin/i18n/pt.json +1 -1
- package/admin/i18n/uk.json +1 -1
- package/admin/i18n/zh-cn.json +1 -1
- package/build/lib/voice/esphome.js +5 -1
- package/build/lib/voice/esphome.js.map +1 -1
- package/build/lib/voice/wakeWords.js +154 -4
- package/build/lib/voice/wakeWords.js.map +1 -1
- package/build/main.js +82 -10
- package/build/main.js.map +1 -1
- package/io-package.json +14 -14
- package/package.json +6 -3
- package/wake-word/20261103-085427-9b0f-microwakeword-iobroker.json +19 -0
- package/wake-word/20261103-085427-9b0f-microwakeword-iobroker.tflite +0 -0
- package/wake-word/alisa.json +18 -0
- package/wake-word/alisa.tflite +0 -0
- package/wake-word/hey_bro.json +18 -0
- package/wake-word/hey_bro.tflite +0 -0
- package/admin/custom/assets/Components-BZeMTVhf.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-COiEfhsA.js";import{v as t}from"./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-BkH7fzDw.js";import{$n as n,$t as r,A as i,An as a,At as o,B as s,Bn as c,Br as l,Cn as u,Dn as d,E as f,En as ee,Fn as p,Ft as m,G as h,Gn as g,H as _,Ht as te,In as v,It as ne,J as y,Jt as b,K as x,On as re,R as S,Rt as C,Sn as w,St as T,T as E,Ut as ie,V as D,Vn as O,Wn as ae,Xn as oe,Yt as se,_n as k,ai as A,an as j,bn as ce,cn as le,d as M,dt as ue,en as de,f as fe,fn as N,ft as pe,hn as P,ii as me,in as he,j as F,jn as ge,kt as _e,ln as I,nn as L,nr as ve,oi as R,on as z,p as B,pn as V,q as ye,qt as be,rn as H,rr as xe,tn as Se,vn as Ce,w as we,xn as Te,yn as Ee,zt as De}from"./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BanHP4Nt.js";import{t as U}from"./_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare__shared-BnAYSFON.js";var W=e({custom_assistant_Announcement:()=>Oe,custom_assistant_Answer:()=>ke,custom_assistant_Benchmark:()=>Pt,custom_assistant_Cancel:()=>Ae,custom_assistant_Chat:()=>je,custom_assistant_Close:()=>Me,custom_assistant_Context:()=>Ne,custom_assistant_Copied:()=>Pe,custom_assistant_Copy:()=>Fe,custom_assistant_Delete:()=>Ie,custom_assistant_Details:()=>Ft,custom_assistant_Download:()=>It,custom_assistant_Error:()=>Le,custom_assistant_Expected:()=>Lt,custom_assistant_Failures:()=>Rt,custom_assistant_Folder:()=>zt,custom_assistant_Host:()=>Re,custom_assistant_Languages:()=>Bt,custom_assistant_Model:()=>Vt,custom_assistant_Models:()=>Ht,custom_assistant_Question:()=>ze,custom_assistant_Recognized:()=>Be,custom_assistant_Record:()=>Ve,custom_assistant_Request:()=>He,custom_assistant_Room:()=>Ue,custom_assistant_Routine:()=>We,custom_assistant_Satellite:()=>Ge,custom_assistant_Satellites:()=>Ke,custom_assistant_Script:()=>qe,custom_assistant_Size:()=>Ut,custom_assistant_Source:()=>Je,custom_assistant_Speak:()=>Ye,custom_assistant_Spoken:()=>Xe,custom_assistant_State:()=>Ze,custom_assistant_Status:()=>Qe,custom_assistant_Steps:()=>$e,custom_assistant_Stop:()=>et,custom_assistant_Time:()=>tt,custom_assistant_Tool:()=>nt,custom_assistant_Upload:()=>rt,custom_assistant_Use:()=>Wt,custom_assistant_auto:()=>it,custom_assistant_bundled_wake_word_hint:()=>kt,custom_assistant_correct:()=>Gt,custom_assistant_delete_wake_word_confirm:()=>at,custom_assistant_device:()=>ot,custom_assistant_downloaded:()=>Kt,custom_assistant_downloading:()=>qt,custom_assistant_failed:()=>Jt,custom_assistant_fast:()=>Qt,custom_assistant_filter:()=>st,custom_assistant_hint:()=>ct,custom_assistant_llm_benchmark:()=>tn,custom_assistant_llm_downloading:()=>lt,custom_assistant_llm_error:()=>ut,custom_assistant_llm_idle:()=>dt,custom_assistant_llm_installing:()=>ft,custom_assistant_llm_loading:()=>pt,custom_assistant_llm_ready:()=>mt,custom_assistant_medium:()=>$t,custom_assistant_offline:()=>ht,custom_assistant_online:()=>gt,custom_assistant_parameters:()=>Yt,custom_assistant_read:()=>_t,custom_assistant_room:()=>vt,custom_assistant_sat_idle:()=>yt,custom_assistant_sat_listening:()=>bt,custom_assistant_sat_offline:()=>xt,custom_assistant_sat_processing:()=>St,custom_assistant_sat_speaking:()=>Ct,custom_assistant_slow:()=>en,custom_assistant_speed:()=>Xt,custom_assistant_synthesis:()=>nn,custom_assistant_timeouts:()=>Zt,custom_assistant_type:()=>`Typ`,custom_assistant_wake_word_deleted:()=>wt,custom_assistant_wake_word_hint:()=>Tt,custom_assistant_wake_word_installed:()=>At,custom_assistant_wake_word_installed_full:()=>Mt,custom_assistant_wake_word_installed_replaced:()=>jt,custom_assistant_wake_word_phrase_hint:()=>Et,custom_assistant_wake_word_upload_hint:()=>Dt,custom_assistant_wake_word_uploaded:()=>Ot,custom_assistant_write:()=>Nt,default:()=>rn}),Oe=`Ansage`,ke=`Antwort`,Ae=`Abbrechen`,je=`Chat`,Me=`Schließen`,Ne=`Kontext`,Pe=`Kopiert`,Fe=`Kopieren`,Ie=`Löschen`,Le=`Fehler`,Re=`Host`,ze=`Frage`,Be=`Erkannt`,Ve=`Aufnehmen`,He=`Anfrage`,Ue=`Raum`,We=`Routine`,Ge=`Satellit`,Ke=`Satelliten`,qe=`Skript`,Je=`Quelle`,Ye=`Sprechen`,Xe=`Gesprochen`,Ze=`State`,Qe=`Status`,$e=`Ablauf`,et=`Stopp`,tt=`Zeit`,nt=`Tool`,rt=`Hochladen`,it=`automatisch`,at=`„%s“ löschen? Es wird den Geräten nicht mehr angeboten; ein Gerät, das es schon heruntergeladen hat, behält es.`,ot=`Gerät`,st=`Filter`,ct=`Deaktivieren Sie die Leseberechtigung, um ein Gerät vor dem Assistenten auszublenden, oder die Schreibberechtigung, um es schreibgeschützt zu halten (z. B. bei Sperren). Geräte sind standardmäßig vollständig zugelassen.`,lt=`Modell wird geladen …`,ut=`Fehler`,dt=`inaktiv`,ft=`Engine wird installiert …`,pt=`lädt …`,mt=`bereit`,ht=`offline`,gt=`online`,_t=`Lesen`,vt=`Zimmer`,yt=`inaktiv`,bt=`hört zu`,xt=`offline`,St=`verarbeitet`,Ct=`spricht`,wt=`„%s“ wurde gelöscht. Ein Gerät, das es schon heruntergeladen hat, behält seine Kopie.`,Tt=`Das Wake-Word läuft auf dem Gerät. Mit der Maus über ein Wort siehst du die trainierten Sprachen — die meisten können nur Englisch.`,Et=`Was man sagt, um das Gerät zu wecken — so erscheint es in der Liste.`,Dt=`Ein microWakeWord-Modell: die .tflite-Datei, am besten zusammen mit ihrer .json. Andere Modelltypen (openWakeWord, Porcupine) lassen sich so nicht installieren.`,Ot=`„%s“ wurde hochgeladen. Oben auswählen, um es zu aktivieren — das Gerät lädt das Modell dann herunter.`,kt=`Klick: auf das Gerät laden und aktivieren — ersetzt eine ältere Version desselben Worts`,At=`„%s“ ist aktiv — das Gerät lädt das Modell herunter.`,jt=`„%s“ ist anstelle von „%s“ aktiv — das Gerät lädt das Modell herunter.`,Mt=`„%s“ steht jetzt in der Liste, aber alle Plätze sind belegt. Erst ein anderes Wake-Word abwählen, dann „%s“ auswählen.`,Nt=`Schreiben`,Pt=`Test`,Ft=`Details`,It=`Herunterladen`,Lt=`Erwartet`,Rt=`Ausfälle`,zt=`Ordner`,Bt=`Sprachen`,Vt=`Modell`,Ht=`Modelle`,Ut=`Größe`,Wt=`Verwenden`,Gt=`richtig`,Kt=`heruntergeladen`,qt=`wird geladen`,Jt=`fehlgeschlagen`,Yt=`Parameter`,Xt=`Tempo`,Zt=`Zeitüberschreitungen`,Qt=`schnell`,$t=`mittel`,en=`langsam`,tn=`Test läuft`,nn=`Synthese`,rn={"custom_assistant_%s of %s active":`%s von %s aktiv`,"custom_assistant_%s s audio":`%s s Audio`,"custom_assistant_(no spoken answer)":`(keine gesprochene Antwort)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Ein Satellit, der noch konfiguriert ist, erscheint wieder, sobald er sich verbindet.`,"custom_assistant_All sources":`Alle Quellen`,custom_assistant_Announcement:Oe,custom_assistant_Answer:ke,"custom_assistant_Audio file":`Audiodatei`,custom_assistant_Cancel:Ae,custom_assistant_Chat:je,"custom_assistant_Clear chat":`Chat leeren`,"custom_assistant_Click for details":`Klicken für Details`,custom_assistant_Close:Me,"custom_assistant_Cloud LLM":`Cloud-LLM`,"custom_assistant_Collapse all":`Alle zuklappen`,custom_assistant_Context:Ne,custom_assistant_Copied:Pe,custom_assistant_Copy:Fe,"custom_assistant_Copy everything as JSON":`Alles als JSON kopieren`,custom_assistant_Delete:Ie,"custom_assistant_Delete the recorded history of all sources?":`Den aufgezeichneten Verlauf aller Quellen löschen?`,"custom_assistant_Device cache cleared.":`Gerätecache geleert.`,"custom_assistant_Device settings":`Geräte-Einstellungen`,"custom_assistant_Dialog: everything you say becomes a question":`Dialog: Alles, was du sagst, wird zur Frage – bis du ihn beendest`,"custom_assistant_Dialog: hearing you…":`Dialog: höre dich …`,"custom_assistant_Dialog: listening…":`Dialog: höre zu …`,"custom_assistant_Dialog: speaking…":`Dialog: spreche …`,"custom_assistant_Dialog: thinking…":`Dialog: denke nach …`,"custom_assistant_Download as JSON":`Als JSON herunterladen`,"custom_assistant_End the dialog":`Dialog beenden`,custom_assistant_Error:Le,"custom_assistant_Expand all":`Alle aufklappen`,"custom_assistant_Follow-up":`Rückfrage`,"custom_assistant_Hide disabled":`Deaktivierte ausblenden`,"custom_assistant_Hide processing details":`Verarbeitungsdetails ausblenden`,custom_assistant_Host:Re,"custom_assistant_Last seen":`Zuletzt gesehen`,"custom_assistant_Listening…":`Höre zu …`,"custom_assistant_Loading…":`Wird geladen …`,"custom_assistant_Local LLM":`Lokales LLM`,"custom_assistant_Local model":`Lokales Modell`,"custom_assistant_Mic re-opened without wake word":`Mikrofon ohne Wake-Word wieder geöffnet (Nachfrage oder Rückfrage)`,"custom_assistant_Name language: %s":`Namens-Sprache: %s`,"custom_assistant_No answer":`Keine Antwort`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Es wurden keine Geräte erkannt. Weisen Sie Räumen und Funktionen in ioBroker Zustände zu.`,"custom_assistant_No messages yet. Type a question below.":`Noch keine Nachrichten. Geben Sie unten eine Frage ein.`,"custom_assistant_No processing steps were recorded for this request.":`Für diese Anfrage sind keine Verarbeitungsschritte gespeichert. Details werden für die letzten 200 Anfragen aufbewahrt.`,"custom_assistant_No satellites registered yet.":`Noch keine Satelliten registriert.`,"custom_assistant_Not understood":`Nicht verstanden`,"custom_assistant_Nothing recognized":`Nichts erkannt`,"custom_assistant_Per-device permissions":`Gerätespezifische Berechtigungen`,"custom_assistant_Play answer (backend TTS)":`Antwort abspielen (Backend-TTS)`,"custom_assistant_Please select a .tflite model file":`Bitte eine .tflite-Modelldatei auswählen`,custom_assistant_Question:ze,"custom_assistant_Read answers aloud":`Antworten vorlesen`,custom_assistant_Recognized:Be,custom_assistant_Record:Ve,"custom_assistant_Recorded audio":`Aufgenommenes Audio`,"custom_assistant_Refresh device cache":`Gerätecache aktualisieren`,"custom_assistant_Remove satellite":`Satellit entfernen`,"custom_assistant_Remove satellite %s and all its states?":`Satellit %s mit allen seinen States entfernen?`,"custom_assistant_Reply audio":`Antwort-Audio`,"custom_assistant_Reply to a question":`Antwort auf Rückfrage`,custom_assistant_Request:He,"custom_assistant_Request details":`Anfrage-Details`,custom_assistant_Room:Ue,custom_assistant_Routine:We,"custom_assistant_Rule-based NLU":`Regel-NLU (lokal)`,custom_assistant_Satellite:Ge,custom_assistant_Satellites:Ke,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Speichern Sie die Konfiguration (die Instanz startet neu), bevor Sie chatten.`,custom_assistant_Script:qe,"custom_assistant_Send announcement":`Ansage senden`,"custom_assistant_Settings for %s":`Einstellungen für %s`,"custom_assistant_Show processing details":`Verarbeitungsdetails anzeigen`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Zeigt alle Anfragen live: Satelliten, Telegram, Skripte und diesen Chat.`,custom_assistant_Source:Je,custom_assistant_Speak:Ye,"custom_assistant_Speak on all satellites":`Auf allen Satelliten ansagen`,"custom_assistant_Speak the test sentence and recognize it":`Testsatz sprechen und erkennen`,"custom_assistant_Speech output":`Sprachausgabe`,"custom_assistant_Speech recognition":`Spracherkennung`,"custom_assistant_Speech recognition time":`Dauer der Spracherkennung`,"custom_assistant_Speech synthesis":`Sprachausgabe`,custom_assistant_Spoken:Xe,"custom_assistant_Start the assistant instance to chat.":`Starten Sie die Assistenteninstanz, um zu chatten.`,"custom_assistant_Start the assistant instance to load the device list.":`Starten Sie die Assistenteninstanz, um die Geräteliste zu laden.`,custom_assistant_State:Ze,"custom_assistant_States read":`Gelesene States`,"custom_assistant_States written":`Geschriebene States`,custom_assistant_Status:Qe,custom_assistant_Steps:$e,custom_assistant_Stop:et,"custom_assistant_Stop listening":`Zuhören beenden`,"custom_assistant_Stop reading answers aloud":`Vorlesen beenden`,"custom_assistant_Stop word":`Stopp-Wort`,"custom_assistant_Test chat":`Test-Chat`,"custom_assistant_Test sentence":`Testsatz`,"custom_assistant_Test voice":`Stimme testen`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`Der Dialog braucht die Spracherkennung: Sprache im Reiter „Sprache“ einschalten.`,"custom_assistant_The instance must be running to test the voice.":`Die Instanz muss laufen, um die Stimme zu testen.`,"custom_assistant_The microphone could not be opened:":`Das Mikrofon ließ sich nicht öffnen:`,"custom_assistant_The microphone only works over https or on localhost.":`Das Mikrofon funktioniert nur über https oder auf localhost.`,"custom_assistant_Thinking…":`Denkt nach …`,"custom_assistant_This satellite exposes no settings.":`Dieser Satellit bietet keine Einstellungen.`,custom_assistant_Time:tt,custom_assistant_Tool:nt,"custom_assistant_Tool calls":`Tool-Aufrufe`,"custom_assistant_Tool result":`Tool-Ergebnis`,"custom_assistant_Tools & states":`Tools & States`,"custom_assistant_Total duration":`Gesamtdauer`,"custom_assistant_Translate all missing (%s)":`Alle fehlenden übersetzen (%s)`,"custom_assistant_Translate name into %s":`Namen nach %s übersetzen`,"custom_assistant_Type a message…":`Nachricht eingeben …`,custom_assistant_Upload:rt,"custom_assistant_Upload own wake word":`Eigenes Wake-Word hochladen`,"custom_assistant_Uploaded wake word":`Hochgeladenes Wake-Word`,"custom_assistant_Wake word":`Wake-Word`,"custom_assistant_Wake word phrase":`Wake-Word-Phrase`,"custom_assistant_Wake words":`Wake-Words`,custom_assistant_auto:it,"custom_assistant_change it on the Voice tab":`im Voice-Tab umschalten`,custom_assistant_delete_wake_word_confirm:at,custom_assistant_device:ot,custom_assistant_filter:st,"custom_assistant_follow-up":`Nachfrage`,custom_assistant_hint:ct,"custom_assistant_in progress":`läuft`,custom_assistant_llm_downloading:lt,custom_assistant_llm_error:ut,custom_assistant_llm_idle:dt,custom_assistant_llm_installing:ft,custom_assistant_llm_loading:pt,"custom_assistant_llm_not installed":`nicht installiert`,custom_assistant_llm_ready:mt,"custom_assistant_made in %s ms":`erzeugt in %s ms`,"custom_assistant_no name in %s (showing %s)":`Kein Name in "%s" — angezeigt: "%s"`,custom_assistant_offline:ht,custom_assistant_online:gt,custom_assistant_read:_t,"custom_assistant_recognized in %s ms":`erkannt in %s ms`,custom_assistant_room:vt,custom_assistant_sat_idle:yt,custom_assistant_sat_listening:bt,custom_assistant_sat_offline:xt,custom_assistant_sat_processing:St,custom_assistant_sat_speaking:Ct,custom_assistant_type:`Typ`,"custom_assistant_waits for reply":`wartet auf Antwort`,custom_assistant_wake_word_deleted:wt,custom_assistant_wake_word_hint:Tt,custom_assistant_wake_word_phrase_hint:Et,custom_assistant_wake_word_upload_hint:Dt,custom_assistant_wake_word_uploaded:Ot,"custom_assistant_Shipped with the adapter":`Mit dem Adapter geliefert`,custom_assistant_bundled_wake_word_hint:kt,custom_assistant_wake_word_installed:At,custom_assistant_wake_word_installed_replaced:jt,custom_assistant_wake_word_installed_full:Mt,custom_assistant_write:Nt,"custom_assistant_Add a model":`Modell hinzufügen`,"custom_assistant_Answer time":`Antwortzeit`,"custom_assistant_Asked / answered / handed over":`Gefragt / beantwortet / abgegeben`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Stellt dem geladenen Modell Testfragen in der Sprache des Assistenten und auf Englisch: Fragen zum Zuhause muss es abgeben, allgemeine richtig beantworten`,custom_assistant_Benchmark:Pt,"custom_assistant_Delete model?":`Modell löschen?`,custom_assistant_Details:Ft,custom_assistant_Download:It,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Schätzung aus der Modellgröße, nicht gemessen. Echte Werte liefert der Test.`,custom_assistant_Expected:Lt,custom_assistant_Failures:Rt,"custom_assistant_First token":`Erstes Token`,custom_assistant_Folder:zt,"custom_assistant_Free on the disk":`Frei auf dem Datenträger`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Hugging-Face-Links gehen, auch hf:org/repo/file.gguf`,custom_assistant_Languages:Bt,"custom_assistant_Load time":`Ladezeit`,"custom_assistant_Loaded model":`Geladenes Modell`,custom_assistant_Model:Vt,custom_assistant_Models:Ht,"custom_assistant_No models in this folder yet. Download one below.":`In diesem Ordner sind noch keine Modelle. Lade unten eines herunter.`,"custom_assistant_Own model: link to a .gguf file":`Eigenes Modell: Link auf eine .gguf-Datei`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Gestellte Fragen / vom Modell beantwortet / an die nächste Stufe abgegeben`,"custom_assistant_Reset statistics":`Statistik zurücksetzen`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Speichere die Einstellungen, um das gewählte Modell zu laden. Die Instanz startet neu.`,custom_assistant_Size:Ut,"custom_assistant_Start the instance to manage the local models.":`Starte die Instanz, um die lokalen Modelle zu verwalten.`,"custom_assistant_The active model cannot be deleted":`Das aktive Modell kann nicht gelöscht werden`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`Die Engine ist noch nicht installiert. Installiere sie im ersten Reiter („Lokales Modell installieren“).`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Die Datei %s wird vom Datenträger gelöscht. Ihre Statistik bleibt.`,"custom_assistant_Time until the first word: reading the question":`Zeit bis zum ersten Wort: das Lesen der Frage`,"custom_assistant_Timeouts and errors among the questions asked":`Zeitüberschreitungen und Fehler unter den gestellten Fragen`,"custom_assistant_Tokens/s":`Tokens/s`,custom_assistant_Use:Wt,custom_assistant_correct:Gt,custom_assistant_downloaded:Kt,custom_assistant_downloading:qt,custom_assistant_failed:Jt,"custom_assistant_hand over":`abgeben`,"custom_assistant_last used":`zuletzt genutzt`,"custom_assistant_many languages":`viele Sprachen`,"custom_assistant_missed hand-overs":`verpasste Abgaben`,"custom_assistant_needless hand-overs":`unnötige Abgaben`,"custom_assistant_not enough space":`zu wenig Platz`,"custom_assistant_not the language of the assistant":`nicht die Sprache des Assistenten`,custom_assistant_parameters:Yt,custom_assistant_speed:Xt,custom_assistant_timeouts:Zt,"custom_assistant_wrong answers":`falsche Antworten`,"custom_assistant_very fast":`sehr schnell`,custom_assistant_fast:Qt,custom_assistant_medium:$t,custom_assistant_slow:en,custom_assistant_llm_benchmark:tn,"Model folder":`Modellordner`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Absoluter Pfad, z. B. /mnt/ssd/llm. Leer = Datenordner der Instanz. Schon anderswo geladene Modelle werden nicht verschoben.`,"custom_assistant_Start the instance to test the voice":`Instanz starten, um die Stimme zu testen`,"custom_assistant_Try this voice":`Diese Stimme ausprobieren`,custom_assistant_synthesis:nn},G=e({custom_assistant_Announcement:()=>an,custom_assistant_Answer:()=>on,custom_assistant_Benchmark:()=>fr,custom_assistant_Cancel:()=>sn,custom_assistant_Chat:()=>cn,custom_assistant_Close:()=>ln,custom_assistant_Context:()=>un,custom_assistant_Copied:()=>dn,custom_assistant_Copy:()=>fn,custom_assistant_Delete:()=>pn,custom_assistant_Details:()=>pr,custom_assistant_Download:()=>mr,custom_assistant_Error:()=>mn,custom_assistant_Expected:()=>hr,custom_assistant_Failures:()=>gr,custom_assistant_Folder:()=>_r,custom_assistant_Host:()=>hn,custom_assistant_Languages:()=>vr,custom_assistant_Model:()=>yr,custom_assistant_Models:()=>br,custom_assistant_Question:()=>gn,custom_assistant_Recognized:()=>_n,custom_assistant_Record:()=>vn,custom_assistant_Request:()=>yn,custom_assistant_Room:()=>bn,custom_assistant_Routine:()=>xn,custom_assistant_Satellite:()=>Sn,custom_assistant_Satellites:()=>Cn,custom_assistant_Script:()=>wn,custom_assistant_Size:()=>xr,custom_assistant_Source:()=>Tn,custom_assistant_Speak:()=>En,custom_assistant_Spoken:()=>Dn,custom_assistant_State:()=>On,custom_assistant_Status:()=>kn,custom_assistant_Steps:()=>An,custom_assistant_Stop:()=>jn,custom_assistant_Time:()=>Mn,custom_assistant_Tool:()=>Nn,custom_assistant_Upload:()=>Pn,custom_assistant_Use:()=>`Use`,custom_assistant_auto:()=>Fn,custom_assistant_bundled_wake_word_hint:()=>sr,custom_assistant_correct:()=>Sr,custom_assistant_delete_wake_word_confirm:()=>In,custom_assistant_device:()=>Ln,custom_assistant_downloaded:()=>Cr,custom_assistant_downloading:()=>wr,custom_assistant_failed:()=>Tr,custom_assistant_fast:()=>kr,custom_assistant_filter:()=>Rn,custom_assistant_hint:()=>zn,custom_assistant_llm_benchmark:()=>Mr,custom_assistant_llm_downloading:()=>Bn,custom_assistant_llm_error:()=>Vn,custom_assistant_llm_idle:()=>Hn,custom_assistant_llm_installing:()=>Un,custom_assistant_llm_loading:()=>Wn,custom_assistant_llm_ready:()=>Gn,custom_assistant_medium:()=>Ar,custom_assistant_offline:()=>Kn,custom_assistant_online:()=>qn,custom_assistant_parameters:()=>Er,custom_assistant_read:()=>Jn,custom_assistant_room:()=>Yn,custom_assistant_sat_idle:()=>Xn,custom_assistant_sat_listening:()=>Zn,custom_assistant_sat_offline:()=>Qn,custom_assistant_sat_processing:()=>$n,custom_assistant_sat_speaking:()=>er,custom_assistant_slow:()=>jr,custom_assistant_speed:()=>Dr,custom_assistant_synthesis:()=>Nr,custom_assistant_timeouts:()=>Or,custom_assistant_type:()=>tr,custom_assistant_wake_word_deleted:()=>nr,custom_assistant_wake_word_hint:()=>rr,custom_assistant_wake_word_installed:()=>cr,custom_assistant_wake_word_installed_full:()=>ur,custom_assistant_wake_word_installed_replaced:()=>lr,custom_assistant_wake_word_phrase_hint:()=>ir,custom_assistant_wake_word_upload_hint:()=>ar,custom_assistant_wake_word_uploaded:()=>or,custom_assistant_write:()=>dr,default:()=>Pr}),an=`Announcement`,on=`Answer`,sn=`Cancel`,cn=`Chat`,ln=`Close`,un=`Context`,dn=`Copied`,fn=`Copy`,pn=`Delete`,mn=`Error`,hn=`Host`,gn=`Question`,_n=`Recognized`,vn=`Record`,yn=`Request`,bn=`Room`,xn=`Routine`,Sn=`Satellite`,Cn=`Satellites`,wn=`Script`,Tn=`Source`,En=`Speak`,Dn=`Spoken`,On=`State`,kn=`Status`,An=`Steps`,jn=`Stop`,Mn=`Time`,Nn=`Tool`,Pn=`Upload`,Fn=`auto`,In=`Delete "%s"? It will no longer be offered to the devices; a device that already downloaded it keeps it.`,Ln=`Device`,Rn=`Filter`,zn=`Uncheck read to hide a device from the assistant, or uncheck write to keep it read-only (e.g. locks). Devices default to fully allowed.`,Bn=`downloading model…`,Vn=`error`,Hn=`idle`,Un=`installing engine…`,Wn=`loading…`,Gn=`ready`,Kn=`offline`,qn=`online`,Jn=`Read`,Yn=`Room`,Xn=`idle`,Zn=`listening`,Qn=`offline`,$n=`processing`,er=`speaking`,tr=`Type`,nr=`"%s" was deleted. A device that already downloaded it keeps its copy.`,rr=`The wake word runs on the device. Hover a word to see which languages it was trained on — most are English only.`,ir=`What you say to wake the device — this is how it appears in the list.`,ar=`A microWakeWord model: the .tflite file, ideally together with its .json. Other model types (openWakeWord, Porcupine) cannot be installed this way.`,or=`"%s" was uploaded. Select it above to activate it — the device downloads the model then.`,sr=`Click: load onto the device and switch on — replaces an older version of the same word`,cr=`"%s" is switched on — the device is downloading the model.`,lr=`"%s" is switched on instead of "%s" — the device is downloading the model.`,ur=`"%s" is now in the list, but every slot is taken. Switch another wake word off, then select "%s".`,dr=`Write`,fr=`Benchmark`,pr=`Details`,mr=`Download`,hr=`Expected`,gr=`Failures`,_r=`Folder`,vr=`Languages`,yr=`Model`,br=`Models`,xr=`Size`,Sr=`correct`,Cr=`downloaded`,wr=`downloading`,Tr=`failed`,Er=`parameters`,Dr=`speed`,Or=`timeouts`,kr=`fast`,Ar=`medium`,jr=`slow`,Mr=`testing`,Nr=`synthesis`,Pr={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s audio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`A satellite that is still configured appears again when it connects.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:an,custom_assistant_Answer:on,"custom_assistant_Audio file":`Audio file`,custom_assistant_Cancel:sn,custom_assistant_Chat:cn,"custom_assistant_Clear chat":`Clear chat`,"custom_assistant_Click for details":`Click for details`,custom_assistant_Close:ln,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Collapse all`,custom_assistant_Context:un,custom_assistant_Copied:dn,custom_assistant_Copy:fn,"custom_assistant_Copy everything as JSON":`Copy everything as JSON`,custom_assistant_Delete:pn,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Device cache cleared.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Dialog: everything you say becomes a question — until you end it`,"custom_assistant_Dialog: hearing you…":`Dialog: hearing you …`,"custom_assistant_Dialog: listening…":`Dialog: listening …`,"custom_assistant_Dialog: speaking…":`Dialog: speaking …`,"custom_assistant_Dialog: thinking…":`Dialog: thinking …`,"custom_assistant_Download as JSON":`Download as JSON`,"custom_assistant_End the dialog":`End the dialog`,custom_assistant_Error:mn,"custom_assistant_Expand all":`Expand all`,"custom_assistant_Follow-up":`Follow-up`,"custom_assistant_Hide disabled":`Hide disabled`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:hn,"custom_assistant_Last seen":`Last seen`,"custom_assistant_Listening…":`Listening…`,"custom_assistant_Loading…":`Loading…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Local model`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Name language: %s`,"custom_assistant_No answer":`No answer`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`No devices detected. Assign states to rooms and functions in ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`No messages yet. Type a question below.`,"custom_assistant_No processing steps were recorded for this request.":`No processing steps were recorded for this request. Details are kept for the latest 200 requests.`,"custom_assistant_No satellites registered yet.":`No satellites registered yet.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Nothing recognized`,"custom_assistant_Per-device permissions":`Per-device permissions`,"custom_assistant_Play answer (backend TTS)":`Play answer (backend TTS)`,"custom_assistant_Please select a .tflite model file":`Please select a .tflite model file`,custom_assistant_Question:gn,"custom_assistant_Read answers aloud":`Read answers aloud`,custom_assistant_Recognized:_n,custom_assistant_Record:vn,"custom_assistant_Recorded audio":`Recorded audio`,"custom_assistant_Refresh device cache":`Refresh device cache`,"custom_assistant_Remove satellite":`Remove satellite`,"custom_assistant_Remove satellite %s and all its states?":`Remove satellite %s and all its states?`,"custom_assistant_Reply audio":`Reply audio`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:yn,"custom_assistant_Request details":`Request details`,custom_assistant_Room:bn,custom_assistant_Routine:xn,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:Sn,custom_assistant_Satellites:Cn,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Save the configuration (the instance will restart) before chatting.`,custom_assistant_Script:wn,"custom_assistant_Send announcement":`Send announcement`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:Tn,custom_assistant_Speak:En,"custom_assistant_Speak on all satellites":`Speak on all satellites`,"custom_assistant_Speak the test sentence and recognize it":`Speak the test sentence and recognize it`,"custom_assistant_Speech output":`Speech output`,"custom_assistant_Speech recognition":`Speech recognition`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Speech synthesis`,custom_assistant_Spoken:Dn,"custom_assistant_Start the assistant instance to chat.":`Start the assistant instance to chat.`,"custom_assistant_Start the assistant instance to load the device list.":`Start the assistant instance to load the device list.`,custom_assistant_State:On,"custom_assistant_States read":`States read`,"custom_assistant_States written":`States written`,custom_assistant_Status:kn,custom_assistant_Steps:An,custom_assistant_Stop:jn,"custom_assistant_Stop listening":`Stop listening`,"custom_assistant_Stop reading answers aloud":`Stop reading answers aloud`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Test chat`,"custom_assistant_Test sentence":`Test sentence`,"custom_assistant_Test voice":`Test voice`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`The dialog needs speech recognition: enable voice on the Voice tab.`,"custom_assistant_The instance must be running to test the voice.":`The instance must be running to test the voice.`,"custom_assistant_The microphone could not be opened:":`The microphone could not be opened:`,"custom_assistant_The microphone only works over https or on localhost.":`The microphone only works over https or on localhost.`,"custom_assistant_Thinking…":`Thinking…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:Mn,custom_assistant_Tool:Nn,"custom_assistant_Tool calls":`Tool calls`,"custom_assistant_Tool result":`Tool result`,"custom_assistant_Tools & states":`Tools & states`,"custom_assistant_Total duration":`Total duration`,"custom_assistant_Translate all missing (%s)":`Translate all missing (%s)`,"custom_assistant_Translate name into %s":`Translate name into %s`,"custom_assistant_Type a message…":`Type a message…`,custom_assistant_Upload:Pn,"custom_assistant_Upload own wake word":`Upload own wake word`,"custom_assistant_Uploaded wake word":`Uploaded wake word`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Wake word phrase`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:Fn,"custom_assistant_change it on the Voice tab":`change it on the Voice tab`,custom_assistant_delete_wake_word_confirm:In,custom_assistant_device:Ln,custom_assistant_filter:Rn,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:zn,"custom_assistant_in progress":`in progress`,custom_assistant_llm_downloading:Bn,custom_assistant_llm_error:Vn,custom_assistant_llm_idle:Hn,custom_assistant_llm_installing:Un,custom_assistant_llm_loading:Wn,"custom_assistant_llm_not installed":`not installed`,custom_assistant_llm_ready:Gn,"custom_assistant_made in %s ms":`made in %s ms`,"custom_assistant_no name in %s (showing %s)":`No name in "%s" — showing "%s"`,custom_assistant_offline:Kn,custom_assistant_online:qn,custom_assistant_read:Jn,"custom_assistant_recognized in %s ms":`recognized in %s ms`,custom_assistant_room:Yn,custom_assistant_sat_idle:Xn,custom_assistant_sat_listening:Zn,custom_assistant_sat_offline:Qn,custom_assistant_sat_processing:$n,custom_assistant_sat_speaking:er,custom_assistant_type:tr,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:nr,custom_assistant_wake_word_hint:rr,custom_assistant_wake_word_phrase_hint:ir,custom_assistant_wake_word_upload_hint:ar,custom_assistant_wake_word_uploaded:or,"custom_assistant_Shipped with the adapter":`Shipped with the adapter`,custom_assistant_bundled_wake_word_hint:sr,custom_assistant_wake_word_installed:cr,custom_assistant_wake_word_installed_replaced:lr,custom_assistant_wake_word_installed_full:ur,custom_assistant_write:dr,"custom_assistant_Add a model":`Add a model`,"custom_assistant_Answer time":`Answer time`,"custom_assistant_Asked / answered / handed over":`Asked / answered / handed over`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly`,custom_assistant_Benchmark:fr,"custom_assistant_Delete model?":`Delete model?`,custom_assistant_Details:pr,custom_assistant_Download:mr,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Estimate from the model size, not measured. Use the benchmark for real numbers.`,custom_assistant_Expected:hr,custom_assistant_Failures:gr,"custom_assistant_First token":`First token`,custom_assistant_Folder:_r,"custom_assistant_Free on the disk":`Free on the disk`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Hugging Face links are fine, also hf:org/repo/file.gguf`,custom_assistant_Languages:vr,"custom_assistant_Load time":`Load time`,"custom_assistant_Loaded model":`Loaded model`,custom_assistant_Model:yr,custom_assistant_Models:br,"custom_assistant_No models in this folder yet. Download one below.":`No models in this folder yet. Download one below.`,"custom_assistant_Own model: link to a .gguf file":`Own model: link to a .gguf file`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Questions asked / answered by the model / handed over to the next tier`,"custom_assistant_Reset statistics":`Reset statistics`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Save the settings to load the selected model. The instance restarts.`,custom_assistant_Size:xr,"custom_assistant_Start the instance to manage the local models.":`Start the instance to manage the local models.`,"custom_assistant_The active model cannot be deleted":`The active model cannot be deleted`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`The engine is not installed yet. Install it on the main tab ("Install local model").`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`The file %s is deleted from the disk. Its statistics stay.`,"custom_assistant_Time until the first word: reading the question":`Time until the first word: reading the question`,"custom_assistant_Timeouts and errors among the questions asked":`Timeouts and errors among the questions asked`,"custom_assistant_Tokens/s":`Tokens/s`,custom_assistant_Use:`Use`,custom_assistant_correct:Sr,custom_assistant_downloaded:Cr,custom_assistant_downloading:wr,custom_assistant_failed:Tr,"custom_assistant_hand over":`hand over`,"custom_assistant_last used":`last used`,"custom_assistant_many languages":`many languages`,"custom_assistant_missed hand-overs":`missed hand-overs`,"custom_assistant_needless hand-overs":`needless hand-overs`,"custom_assistant_not enough space":`not enough space`,"custom_assistant_not the language of the assistant":`not the language of the assistant`,custom_assistant_parameters:Er,custom_assistant_speed:Dr,custom_assistant_timeouts:Or,"custom_assistant_wrong answers":`wrong answers`,"custom_assistant_very fast":`very fast`,custom_assistant_fast:kr,custom_assistant_medium:Ar,custom_assistant_slow:jr,custom_assistant_llm_benchmark:Mr,"Model folder":`Model folder`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.`,"custom_assistant_Start the instance to test the voice":`Start the instance to test the voice`,"custom_assistant_Try this voice":`Try this voice`,custom_assistant_synthesis:Nr},K=e({custom_assistant_Announcement:()=>Fr,custom_assistant_Answer:()=>Ir,custom_assistant_Benchmark:()=>Hi,custom_assistant_Cancel:()=>Lr,custom_assistant_Chat:()=>Rr,custom_assistant_Close:()=>zr,custom_assistant_Context:()=>Br,custom_assistant_Copied:()=>Vr,custom_assistant_Copy:()=>Hr,custom_assistant_Delete:()=>Ur,custom_assistant_Details:()=>Ui,custom_assistant_Download:()=>Wi,custom_assistant_Error:()=>Wr,custom_assistant_Expected:()=>Gi,custom_assistant_Failures:()=>Ki,custom_assistant_Folder:()=>qi,custom_assistant_Host:()=>Gr,custom_assistant_Languages:()=>Ji,custom_assistant_Model:()=>Yi,custom_assistant_Models:()=>Xi,custom_assistant_Question:()=>Kr,custom_assistant_Recognized:()=>qr,custom_assistant_Record:()=>Jr,custom_assistant_Request:()=>Yr,custom_assistant_Room:()=>Xr,custom_assistant_Routine:()=>Zr,custom_assistant_Satellite:()=>Qr,custom_assistant_Satellites:()=>$r,custom_assistant_Script:()=>ei,custom_assistant_Size:()=>Zi,custom_assistant_Source:()=>ti,custom_assistant_Speak:()=>ni,custom_assistant_Spoken:()=>ri,custom_assistant_State:()=>ii,custom_assistant_Status:()=>ai,custom_assistant_Steps:()=>oi,custom_assistant_Stop:()=>si,custom_assistant_Time:()=>ci,custom_assistant_Tool:()=>li,custom_assistant_Upload:()=>ui,custom_assistant_Use:()=>Qi,custom_assistant_auto:()=>di,custom_assistant_bundled_wake_word_hint:()=>Li,custom_assistant_correct:()=>$i,custom_assistant_delete_wake_word_confirm:()=>fi,custom_assistant_device:()=>pi,custom_assistant_downloaded:()=>ea,custom_assistant_downloading:()=>ta,custom_assistant_failed:()=>na,custom_assistant_fast:()=>oa,custom_assistant_filter:()=>mi,custom_assistant_hint:()=>hi,custom_assistant_llm_benchmark:()=>la,custom_assistant_llm_downloading:()=>gi,custom_assistant_llm_error:()=>_i,custom_assistant_llm_idle:()=>vi,custom_assistant_llm_installing:()=>yi,custom_assistant_llm_loading:()=>bi,custom_assistant_llm_ready:()=>xi,custom_assistant_medium:()=>sa,custom_assistant_offline:()=>Si,custom_assistant_online:()=>Ci,custom_assistant_parameters:()=>ra,custom_assistant_read:()=>wi,custom_assistant_room:()=>Ti,custom_assistant_sat_idle:()=>Ei,custom_assistant_sat_listening:()=>Di,custom_assistant_sat_offline:()=>Oi,custom_assistant_sat_processing:()=>ki,custom_assistant_sat_speaking:()=>Ai,custom_assistant_slow:()=>ca,custom_assistant_speed:()=>ia,custom_assistant_synthesis:()=>ua,custom_assistant_timeouts:()=>aa,custom_assistant_type:()=>ji,custom_assistant_wake_word_deleted:()=>Mi,custom_assistant_wake_word_hint:()=>Ni,custom_assistant_wake_word_installed:()=>Ri,custom_assistant_wake_word_installed_full:()=>Bi,custom_assistant_wake_word_installed_replaced:()=>zi,custom_assistant_wake_word_phrase_hint:()=>Pi,custom_assistant_wake_word_upload_hint:()=>Fi,custom_assistant_wake_word_uploaded:()=>Ii,custom_assistant_write:()=>Vi,default:()=>da}),Fr=`Anuncio`,Ir=`Respuesta`,Lr=`Cancel`,Rr=`Chat`,zr=`Close`,Br=`Contexto`,Vr=`Copiado`,Hr=`Copiar`,Ur=`Delete`,Wr=`Error`,Gr=`Anfitrión`,Kr=`Pregunta`,qr=`Reconocido`,Jr=`Grabar`,Yr=`Solicitud`,Xr=`Room`,Zr=`Routine`,Qr=`Satélite`,$r=`satélites`,ei=`Script`,ti=`Source`,ni=`Hablar`,ri=`Dicho`,ii=`State`,ai=`Estado`,oi=`Pasos`,si=`Detener`,ci=`Hora`,li=`Herramienta`,ui=`Subir`,di=`auto`,fi=`¿Eliminar "%s"? Ya no se ofrecerá a los dispositivos; un dispositivo que ya lo descargó lo conserva.`,pi=`Dispositivo`,mi=`Filtrar`,hi=`Desactive la opción de lectura para ocultar un dispositivo al asistente, o desactive la opción de escritura para mantenerlo en modo de solo lectura (por ejemplo, candados). Los dispositivos vienen configurados por defecto con acceso completo.`,gi=`Descargando modelo…`,_i=`error`,vi=`inactivo`,yi=`instalando el motor…`,bi=`cargando…`,xi=`listo`,Si=`desconectado`,Ci=`en línea`,wi=`Leer`,Ti=`Habitación`,Ei=`inactivo`,Di=`escuchando`,Oi=`desconectado`,ki=`tratamiento`,Ai=`discurso`,ji=`Tipo`,Mi=`"%s" se ha eliminado. Un dispositivo que ya lo descargó conserva su copia.`,Ni=`La palabra de activación se procesa en el dispositivo. Pasa el ratón sobre una palabra para ver en qué idiomas se entrenó — la mayoría solo en inglés.`,Pi=`Lo que dices para activar el dispositivo: así aparece en la lista.`,Fi=`Un modelo microWakeWord: el archivo .tflite, idealmente junto con su .json. Otros tipos de modelo (openWakeWord, Porcupine) no se pueden instalar de esta forma.`,Ii=`"%s" se ha subido. Selecciónalo arriba para activarlo: el dispositivo descargará entonces el modelo.`,Li=`Clic: cargar en el dispositivo y activar — sustituye una versión anterior de la misma palabra`,Ri=`"%s" está activada: el dispositivo descarga el modelo.`,zi=`"%s" está activada en lugar de "%s": el dispositivo descarga el modelo.`,Bi=`"%s" ya está en la lista, pero todas las posiciones están ocupadas. Desactiva otra palabra de activación y luego selecciona "%s".`,Vi=`Escribir`,Hi=`Prueba`,Ui=`Detalles`,Wi=`Descargar`,Gi=`Esperado`,Ki=`Fallos`,qi=`Carpeta`,Ji=`Idiomas`,Yi=`Modelo`,Xi=`Modelos`,Zi=`Tamaño`,Qi=`Usar`,$i=`correctas`,ea=`descargado`,ta=`descargando`,na=`falló`,ra=`parámetros`,ia=`velocidad`,aa=`tiempos agotados`,oa=`rápido`,sa=`media`,ca=`lento`,la=`probando`,ua=`síntesis`,da={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s de audio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Un satélite que sigue configurado vuelve a aparecer cuando se conecta.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:Fr,custom_assistant_Answer:Ir,"custom_assistant_Audio file":`Archivo de audio`,custom_assistant_Cancel:Lr,custom_assistant_Chat:Rr,"custom_assistant_Clear chat":`Chat claro`,"custom_assistant_Click for details":`Haz clic para ver detalles`,custom_assistant_Close:zr,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Contraer todo`,custom_assistant_Context:Br,custom_assistant_Copied:Vr,custom_assistant_Copy:Hr,"custom_assistant_Copy everything as JSON":`Copiar todo como JSON`,custom_assistant_Delete:Ur,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Se ha borrado la caché del dispositivo.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Diálogo: todo lo que digas se convierte en una pregunta, hasta que lo termines`,"custom_assistant_Dialog: hearing you…":`Diálogo: te oigo …`,"custom_assistant_Dialog: listening…":`Diálogo: escuchando …`,"custom_assistant_Dialog: speaking…":`Diálogo: hablando …`,"custom_assistant_Dialog: thinking…":`Diálogo: pensando …`,"custom_assistant_Download as JSON":`Descargar como JSON`,"custom_assistant_End the dialog":`Terminar el diálogo`,custom_assistant_Error:Wr,"custom_assistant_Expand all":`Expandir todo`,"custom_assistant_Follow-up":`Seguimiento`,"custom_assistant_Hide disabled":`Ocultar deshabilitado`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:Gr,"custom_assistant_Last seen":`Última vez visto`,"custom_assistant_Listening…":`Escuchando…`,"custom_assistant_Loading…":`Cargando…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Modelo local`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Idioma del nombre: %s`,"custom_assistant_No answer":`Sin respuesta`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`No se detectaron dispositivos. Asigne estados a las salas y funciones en ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Aún no hay mensajes. Escribe tu pregunta a continuación.`,"custom_assistant_No processing steps were recorded for this request.":`No se registraron pasos de procesamiento para esta solicitud. Los detalles se guardan para las últimas 200 solicitudes.`,"custom_assistant_No satellites registered yet.":`Aún no se han registrado satélites.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`No se reconoció nada`,"custom_assistant_Per-device permissions":`Permisos por dispositivo`,"custom_assistant_Play answer (backend TTS)":`Reproducir respuesta (TTS de backend)`,"custom_assistant_Please select a .tflite model file":`Selecciona un archivo de modelo .tflite`,custom_assistant_Question:Kr,"custom_assistant_Read answers aloud":`Lee las respuestas en voz alta.`,custom_assistant_Recognized:qr,custom_assistant_Record:Jr,"custom_assistant_Recorded audio":`Audio grabado`,"custom_assistant_Refresh device cache":`Actualizar la caché del dispositivo`,"custom_assistant_Remove satellite":`Eliminar satélite`,"custom_assistant_Remove satellite %s and all its states?":`¿Eliminar el satélite %s y todos sus estados?`,"custom_assistant_Reply audio":`Audio de la respuesta`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:Yr,"custom_assistant_Request details":`Detalles de la solicitud`,custom_assistant_Room:Xr,custom_assistant_Routine:Zr,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:Qr,custom_assistant_Satellites:$r,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Guarda la configuración (la instancia se reiniciará) antes de chatear.`,custom_assistant_Script:ei,"custom_assistant_Send announcement":`Enviar anuncio`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:ti,custom_assistant_Speak:ni,"custom_assistant_Speak on all satellites":`Hablar por todos los satélites`,"custom_assistant_Speak the test sentence and recognize it":`Decir la frase de prueba y reconocerla`,"custom_assistant_Speech output":`Salida de voz`,"custom_assistant_Speech recognition":`Reconocimiento de voz`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Síntesis de voz`,custom_assistant_Spoken:ri,"custom_assistant_Start the assistant instance to chat.":`Inicia la instancia del asistente para chatear.`,"custom_assistant_Start the assistant instance to load the device list.":`Inicie la instancia del asistente para cargar la lista de dispositivos.`,custom_assistant_State:ii,"custom_assistant_States read":`Estados leídos`,"custom_assistant_States written":`Estados escritos`,custom_assistant_Status:ai,custom_assistant_Steps:oi,custom_assistant_Stop:si,"custom_assistant_Stop listening":`Deja de escuchar`,"custom_assistant_Stop reading answers aloud":`Deja de leer las respuestas en voz alta.`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Chat de prueba`,"custom_assistant_Test sentence":`Frase de prueba`,"custom_assistant_Test voice":`Probar voz`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`El diálogo necesita reconocimiento de voz: activa la voz en la pestaña Voz.`,"custom_assistant_The instance must be running to test the voice.":`La instancia debe estar en ejecución para probar la voz.`,"custom_assistant_The microphone could not be opened:":`No se pudo abrir el micrófono:`,"custom_assistant_The microphone only works over https or on localhost.":`El micrófono solo funciona con https o en localhost.`,"custom_assistant_Thinking…":`Pensamiento…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:ci,custom_assistant_Tool:li,"custom_assistant_Tool calls":`Llamadas a herramientas`,"custom_assistant_Tool result":`Resultado de la herramienta`,"custom_assistant_Tools & states":`Herramientas y estados`,"custom_assistant_Total duration":`Duración total`,"custom_assistant_Translate all missing (%s)":`Traducir todos los (%s) faltantes`,"custom_assistant_Translate name into %s":`Traducir nombre a %s`,"custom_assistant_Type a message…":`Escribe un mensaje…`,custom_assistant_Upload:ui,"custom_assistant_Upload own wake word":`Subir palabra de activación propia`,"custom_assistant_Uploaded wake word":`Palabra de activación subida`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Frase de activación`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:di,"custom_assistant_change it on the Voice tab":`Cámbialo en la pestaña Voz.`,custom_assistant_delete_wake_word_confirm:fi,custom_assistant_device:pi,custom_assistant_filter:mi,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:hi,"custom_assistant_in progress":`en curso`,custom_assistant_llm_downloading:gi,custom_assistant_llm_error:_i,custom_assistant_llm_idle:vi,custom_assistant_llm_installing:yi,custom_assistant_llm_loading:bi,"custom_assistant_llm_not installed":`no instalado`,custom_assistant_llm_ready:xi,"custom_assistant_made in %s ms":`generado en %s ms`,"custom_assistant_no name in %s (showing %s)":`No se encontró ningún nombre en "%s" — se muestra "%s"`,custom_assistant_offline:Si,custom_assistant_online:Ci,custom_assistant_read:wi,"custom_assistant_recognized in %s ms":`reconocido en %s ms`,custom_assistant_room:Ti,custom_assistant_sat_idle:Ei,custom_assistant_sat_listening:Di,custom_assistant_sat_offline:Oi,custom_assistant_sat_processing:ki,custom_assistant_sat_speaking:Ai,custom_assistant_type:ji,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:Mi,custom_assistant_wake_word_hint:Ni,custom_assistant_wake_word_phrase_hint:Pi,custom_assistant_wake_word_upload_hint:Fi,custom_assistant_wake_word_uploaded:Ii,"custom_assistant_Shipped with the adapter":`Incluidas con el adaptador`,custom_assistant_bundled_wake_word_hint:Li,custom_assistant_wake_word_installed:Ri,custom_assistant_wake_word_installed_replaced:zi,custom_assistant_wake_word_installed_full:Bi,custom_assistant_write:Vi,"custom_assistant_Add a model":`Añadir un modelo`,"custom_assistant_Answer time":`Tiempo de respuesta`,"custom_assistant_Asked / answered / handed over":`Preguntadas / respondidas / derivadas`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Hace preguntas de prueba al modelo cargado en el idioma del asistente y en inglés: las preguntas sobre la casa debe derivarlas y las generales responderlas bien`,custom_assistant_Benchmark:Hi,"custom_assistant_Delete model?":`¿Eliminar el modelo?`,custom_assistant_Details:Ui,custom_assistant_Download:Wi,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Estimación por el tamaño del modelo, no medida. La prueba da cifras reales.`,custom_assistant_Expected:Gi,custom_assistant_Failures:Ki,"custom_assistant_First token":`Primer token`,custom_assistant_Folder:qi,"custom_assistant_Free on the disk":`Libre en el disco`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Sirven enlaces de Hugging Face, también hf:org/repo/file.gguf`,custom_assistant_Languages:Ji,"custom_assistant_Load time":`Tiempo de carga`,"custom_assistant_Loaded model":`Modelo cargado`,custom_assistant_Model:Yi,custom_assistant_Models:Xi,"custom_assistant_No models in this folder yet. Download one below.":`Todavía no hay modelos en esta carpeta. Descarga uno abajo.`,"custom_assistant_Own model: link to a .gguf file":`Modelo propio: enlace a un archivo .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Preguntas hechas / respondidas por el modelo / derivadas al siguiente nivel`,"custom_assistant_Reset statistics":`Restablecer estadísticas`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Guarda los ajustes para cargar el modelo elegido. La instancia se reinicia.`,custom_assistant_Size:Zi,"custom_assistant_Start the instance to manage the local models.":`Inicia la instancia para gestionar los modelos locales.`,"custom_assistant_The active model cannot be deleted":`El modelo activo no se puede eliminar`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`El motor aún no está instalado. Instálalo en la primera pestaña ("Instalar modelo local").`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`El archivo %s se elimina del disco. Sus estadísticas se conservan.`,"custom_assistant_Time until the first word: reading the question":`Tiempo hasta la primera palabra: leer la pregunta`,"custom_assistant_Timeouts and errors among the questions asked":`Tiempos agotados y errores entre las preguntas hechas`,"custom_assistant_Tokens/s":`Tokens/s`,custom_assistant_Use:Qi,custom_assistant_correct:$i,custom_assistant_downloaded:ea,custom_assistant_downloading:ta,custom_assistant_failed:na,"custom_assistant_hand over":`derivar`,"custom_assistant_last used":`último uso`,"custom_assistant_many languages":`muchos idiomas`,"custom_assistant_missed hand-overs":`derivaciones omitidas`,"custom_assistant_needless hand-overs":`derivaciones innecesarias`,"custom_assistant_not enough space":`espacio insuficiente`,"custom_assistant_not the language of the assistant":`no es el idioma del asistente`,custom_assistant_parameters:ra,custom_assistant_speed:ia,custom_assistant_timeouts:aa,"custom_assistant_wrong answers":`respuestas erróneas`,"custom_assistant_very fast":`muy rápido`,custom_assistant_fast:oa,custom_assistant_medium:sa,custom_assistant_slow:ca,custom_assistant_llm_benchmark:la,"Model folder":`Carpeta de modelos`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Ruta absoluta, p. ej. /mnt/ssd/llm. Vacío = carpeta de datos de la instancia. Los modelos ya descargados en otro sitio no se mueven.`,"custom_assistant_Start the instance to test the voice":`Inicia la instancia para probar la voz`,"custom_assistant_Try this voice":`Probar esta voz`,custom_assistant_synthesis:ua},fa=e({custom_assistant_Announcement:()=>pa,custom_assistant_Answer:()=>ma,custom_assistant_Benchmark:()=>xo,custom_assistant_Cancel:()=>ha,custom_assistant_Chat:()=>ga,custom_assistant_Close:()=>_a,custom_assistant_Context:()=>va,custom_assistant_Copied:()=>ya,custom_assistant_Copy:()=>ba,custom_assistant_Delete:()=>xa,custom_assistant_Details:()=>So,custom_assistant_Download:()=>Co,custom_assistant_Error:()=>Sa,custom_assistant_Expected:()=>wo,custom_assistant_Failures:()=>To,custom_assistant_Folder:()=>Eo,custom_assistant_Host:()=>Ca,custom_assistant_Languages:()=>Do,custom_assistant_Model:()=>Oo,custom_assistant_Models:()=>ko,custom_assistant_Question:()=>wa,custom_assistant_Recognized:()=>Ta,custom_assistant_Record:()=>Ea,custom_assistant_Request:()=>Da,custom_assistant_Room:()=>Oa,custom_assistant_Routine:()=>ka,custom_assistant_Satellite:()=>Aa,custom_assistant_Satellites:()=>ja,custom_assistant_Script:()=>Ma,custom_assistant_Size:()=>Ao,custom_assistant_Source:()=>Na,custom_assistant_Speak:()=>Pa,custom_assistant_Spoken:()=>Fa,custom_assistant_State:()=>Ia,custom_assistant_Status:()=>La,custom_assistant_Steps:()=>Ra,custom_assistant_Stop:()=>za,custom_assistant_Time:()=>Ba,custom_assistant_Tool:()=>Va,custom_assistant_Upload:()=>Ha,custom_assistant_Use:()=>jo,custom_assistant_auto:()=>Ua,custom_assistant_bundled_wake_word_hint:()=>go,custom_assistant_correct:()=>Mo,custom_assistant_delete_wake_word_confirm:()=>Wa,custom_assistant_device:()=>Ga,custom_assistant_downloaded:()=>No,custom_assistant_downloading:()=>Po,custom_assistant_failed:()=>Fo,custom_assistant_fast:()=>zo,custom_assistant_filter:()=>Ka,custom_assistant_hint:()=>qa,custom_assistant_llm_benchmark:()=>Ho,custom_assistant_llm_downloading:()=>Ja,custom_assistant_llm_error:()=>Ya,custom_assistant_llm_idle:()=>Xa,custom_assistant_llm_installing:()=>Za,custom_assistant_llm_loading:()=>Qa,custom_assistant_llm_ready:()=>$a,custom_assistant_medium:()=>Bo,custom_assistant_offline:()=>eo,custom_assistant_online:()=>to,custom_assistant_parameters:()=>Io,custom_assistant_read:()=>no,custom_assistant_room:()=>ro,custom_assistant_sat_idle:()=>io,custom_assistant_sat_listening:()=>ao,custom_assistant_sat_offline:()=>oo,custom_assistant_sat_processing:()=>so,custom_assistant_sat_speaking:()=>co,custom_assistant_slow:()=>Vo,custom_assistant_speed:()=>Lo,custom_assistant_synthesis:()=>Uo,custom_assistant_timeouts:()=>Ro,custom_assistant_type:()=>lo,custom_assistant_wake_word_deleted:()=>uo,custom_assistant_wake_word_hint:()=>fo,custom_assistant_wake_word_installed:()=>_o,custom_assistant_wake_word_installed_full:()=>yo,custom_assistant_wake_word_installed_replaced:()=>vo,custom_assistant_wake_word_phrase_hint:()=>po,custom_assistant_wake_word_upload_hint:()=>mo,custom_assistant_wake_word_uploaded:()=>ho,custom_assistant_write:()=>bo,default:()=>Wo}),pa=`Annonce`,ma=`Réponse`,ha=`Cancel`,ga=`Chat`,_a=`Close`,va=`Contexte`,ya=`Copié`,ba=`Copier`,xa=`Delete`,Sa=`Erreur`,Ca=`Hôte`,wa=`Question`,Ta=`Reconnu`,Ea=`Enregistrer`,Da=`Requête`,Oa=`Room`,ka=`Routine`,Aa=`Satellite`,ja=`Satellites`,Ma=`Script`,Na=`Source`,Pa=`Parler`,Fa=`Prononcé`,Ia=`State`,La=`Statut`,Ra=`Étapes`,za=`Arrêter`,Ba=`Heure`,Va=`Outil`,Ha=`Téléverser`,Ua=`auto`,Wa=`Supprimer « %s » ? Il ne sera plus proposé aux appareils ; un appareil qui l'a déjà téléchargé le conserve.`,Ga=`Appareil`,Ka=`Filtre`,qa=`Décochez l'option «\xA0Lecture\xA0» pour masquer un périphérique à l'assistant, ou décochez l'option «\xA0Écriture\xA0» pour le rendre accessible en lecture seule (par exemple, les verrous). Par défaut, tous les périphériques sont autorisés.`,Ja=`téléchargement du modèle…`,Ya=`erreur`,Xa=`inactif`,Za=`installation du moteur…`,Qa=`chargement…`,$a=`prêt`,eo=`hors ligne`,to=`en ligne`,no=`Lire`,ro=`Chambre`,io=`inactif`,ao=`écoute`,oo=`hors ligne`,so=`traitement`,co=`Parlant`,lo=`Taper`,uo=`« %s » a été supprimé. Un appareil qui l'a déjà téléchargé conserve sa copie.`,fo=`Le mot d'activation s'exécute sur l'appareil. Survolez un mot pour voir dans quelles langues il a été entraîné — la plupart uniquement en anglais.`,po=`Ce que vous dites pour réveiller l'appareil — c'est ainsi qu'il apparaît dans la liste.`,mo=`Un modèle microWakeWord : le fichier .tflite, idéalement avec son .json. Les autres types de modèles (openWakeWord, Porcupine) ne peuvent pas être installés ainsi.`,ho=`« %s » a été téléversé. Sélectionnez-le ci-dessus pour l'activer — l'appareil télécharge alors le modèle.`,go=`Clic : charger sur l'appareil et activer — remplace une version plus ancienne du même mot`,_o=`« %s » est activé — l'appareil télécharge le modèle.`,vo=`« %s » est activé à la place de « %s » — l'appareil télécharge le modèle.`,yo=`« %s » est maintenant dans la liste, mais tous les emplacements sont occupés. Désactivez d'abord un autre mot d'activation, puis sélectionnez « %s ».`,bo=`Écrire`,xo=`Test`,So=`Détails`,Co=`Télécharger`,wo=`Attendu`,To=`Échecs`,Eo=`Dossier`,Do=`Langues`,Oo=`Modèle`,ko=`Modèles`,Ao=`Taille`,jo=`Utiliser`,Mo=`correctes`,No=`téléchargé`,Po=`téléchargement`,Fo=`échec`,Io=`paramètres`,Lo=`vitesse`,Ro=`délais dépassés`,zo=`rapide`,Bo=`moyenne`,Vo=`lente`,Ho=`test en cours`,Uo=`synthèse`,Wo={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s d’audio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Un satellite encore configuré réapparaît dès qu’il se connecte.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:pa,custom_assistant_Answer:ma,"custom_assistant_Audio file":`Fichier audio`,custom_assistant_Cancel:ha,custom_assistant_Chat:ga,"custom_assistant_Clear chat":`Discussion claire`,"custom_assistant_Click for details":`Cliquer pour les détails`,custom_assistant_Close:_a,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Tout réduire`,custom_assistant_Context:va,custom_assistant_Copied:ya,custom_assistant_Copy:ba,"custom_assistant_Copy everything as JSON":`Tout copier en JSON`,custom_assistant_Delete:xa,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Cache du périphérique effacé.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Dialogue : tout ce que tu dis devient une question, jusqu’à ce que tu y mettes fin`,"custom_assistant_Dialog: hearing you…":`Dialogue : je t’entends …`,"custom_assistant_Dialog: listening…":`Dialogue : à l’écoute …`,"custom_assistant_Dialog: speaking…":`Dialogue : je parle …`,"custom_assistant_Dialog: thinking…":`Dialogue : réflexion …`,"custom_assistant_Download as JSON":`Télécharger en JSON`,"custom_assistant_End the dialog":`Terminer le dialogue`,custom_assistant_Error:Sa,"custom_assistant_Expand all":`Tout développer`,"custom_assistant_Follow-up":`Relance`,"custom_assistant_Hide disabled":`Masquer les fonctions désactivées`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:Ca,"custom_assistant_Last seen":`Dernière observation`,"custom_assistant_Listening…":`Écoute…`,"custom_assistant_Loading…":`Chargement…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Modèle local`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Langue du nom\xA0: %s`,"custom_assistant_No answer":`Pas de réponse`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Aucun appareil détecté. Attribuez des états aux salles et aux fonctions dans ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Aucun message pour l'instant. Posez votre question ci-dessous.`,"custom_assistant_No processing steps were recorded for this request.":`Aucune étape de traitement n'a été enregistrée pour cette requête. Les détails sont conservés pour les 200 dernières requêtes.`,"custom_assistant_No satellites registered yet.":`Aucun satellite enregistré pour le moment.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Rien de reconnu`,"custom_assistant_Per-device permissions":`Autorisations par appareil`,"custom_assistant_Play answer (backend TTS)":`Réponse de lecture (TTS backend)`,"custom_assistant_Please select a .tflite model file":`Veuillez sélectionner un fichier de modèle .tflite`,custom_assistant_Question:wa,"custom_assistant_Read answers aloud":`Lisez les réponses à voix haute`,custom_assistant_Recognized:Ta,custom_assistant_Record:Ea,"custom_assistant_Recorded audio":`Audio enregistré`,"custom_assistant_Refresh device cache":`Actualiser le cache de l'appareil`,"custom_assistant_Remove satellite":`Supprimer le satellite`,"custom_assistant_Remove satellite %s and all its states?":`Supprimer le satellite %s et tous ses états ?`,"custom_assistant_Reply audio":`Audio de la réponse`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:Da,"custom_assistant_Request details":`Détails de la requête`,custom_assistant_Room:Oa,custom_assistant_Routine:ka,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:Aa,custom_assistant_Satellites:ja,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Enregistrez la configuration (l'instance redémarrera) avant de discuter.`,custom_assistant_Script:Ma,"custom_assistant_Send announcement":`Envoyer l'annonce`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:Na,custom_assistant_Speak:Pa,"custom_assistant_Speak on all satellites":`Parlez sur tous les satellites`,"custom_assistant_Speak the test sentence and recognize it":`Prononcer la phrase de test et la reconnaître`,"custom_assistant_Speech output":`Synthèse vocale`,"custom_assistant_Speech recognition":`Reconnaissance vocale`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Synthèse vocale`,custom_assistant_Spoken:Fa,"custom_assistant_Start the assistant instance to chat.":`Démarrez l'instance de l'assistant pour discuter.`,"custom_assistant_Start the assistant instance to load the device list.":`Démarrez l'instance de l'assistant pour charger la liste des périphériques.`,custom_assistant_State:Ia,"custom_assistant_States read":`États lus`,"custom_assistant_States written":`États écrits`,custom_assistant_Status:La,custom_assistant_Steps:Ra,custom_assistant_Stop:za,"custom_assistant_Stop listening":`Arrêtez d'écouter`,"custom_assistant_Stop reading answers aloud":`Arrêtez de lire les réponses à voix haute`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Chat de test`,"custom_assistant_Test sentence":`Phrase de test`,"custom_assistant_Test voice":`Tester la voix`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`Le dialogue a besoin de la reconnaissance vocale : active la voix dans l’onglet Voix.`,"custom_assistant_The instance must be running to test the voice.":`L’instance doit être en cours d’exécution pour tester la voix.`,"custom_assistant_The microphone could not be opened:":`Impossible d’ouvrir le microphone :`,"custom_assistant_The microphone only works over https or on localhost.":`Le microphone ne fonctionne qu’en https ou sur localhost.`,"custom_assistant_Thinking…":`Pensée…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:Ba,custom_assistant_Tool:Va,"custom_assistant_Tool calls":`Appels d'outils`,"custom_assistant_Tool result":`Résultat de l'outil`,"custom_assistant_Tools & states":`Outils et états`,"custom_assistant_Total duration":`Durée totale`,"custom_assistant_Translate all missing (%s)":`Traduire tout ce qui est manquant (%s)`,"custom_assistant_Translate name into %s":`Traduire le nom en %s`,"custom_assistant_Type a message…":`Saisissez un message…`,custom_assistant_Upload:Ha,"custom_assistant_Upload own wake word":`Téléverser son propre mot d'activation`,"custom_assistant_Uploaded wake word":`Mot d'activation téléversé`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Phrase d'activation`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:Ua,"custom_assistant_change it on the Voice tab":`modifiez-le dans l'onglet Voix`,custom_assistant_delete_wake_word_confirm:Wa,custom_assistant_device:Ga,custom_assistant_filter:Ka,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:qa,"custom_assistant_in progress":`en cours`,custom_assistant_llm_downloading:Ja,custom_assistant_llm_error:Ya,custom_assistant_llm_idle:Xa,custom_assistant_llm_installing:Za,custom_assistant_llm_loading:Qa,"custom_assistant_llm_not installed":`non installé`,custom_assistant_llm_ready:$a,"custom_assistant_made in %s ms":`généré en %s ms`,"custom_assistant_no name in %s (showing %s)":`Aucun nom dans « %s » — affichage de « %s »`,custom_assistant_offline:eo,custom_assistant_online:to,custom_assistant_read:no,"custom_assistant_recognized in %s ms":`reconnu en %s ms`,custom_assistant_room:ro,custom_assistant_sat_idle:io,custom_assistant_sat_listening:ao,custom_assistant_sat_offline:oo,custom_assistant_sat_processing:so,custom_assistant_sat_speaking:co,custom_assistant_type:lo,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:uo,custom_assistant_wake_word_hint:fo,custom_assistant_wake_word_phrase_hint:po,custom_assistant_wake_word_upload_hint:mo,custom_assistant_wake_word_uploaded:ho,"custom_assistant_Shipped with the adapter":`Fournis avec l'adaptateur`,custom_assistant_bundled_wake_word_hint:go,custom_assistant_wake_word_installed:_o,custom_assistant_wake_word_installed_replaced:vo,custom_assistant_wake_word_installed_full:yo,custom_assistant_write:bo,"custom_assistant_Add a model":`Ajouter un modèle`,"custom_assistant_Answer time":`Temps de réponse`,"custom_assistant_Asked / answered / handed over":`Posées / répondues / transmises`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Pose des questions de test au modèle chargé dans la langue de l'assistant et en anglais : il doit transmettre les questions sur la maison et répondre juste aux questions générales`,custom_assistant_Benchmark:xo,"custom_assistant_Delete model?":`Supprimer le modèle ?`,custom_assistant_Details:So,custom_assistant_Download:Co,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Estimation selon la taille du modèle, non mesurée. Le test donne des chiffres réels.`,custom_assistant_Expected:wo,custom_assistant_Failures:To,"custom_assistant_First token":`Premier jeton`,custom_assistant_Folder:Eo,"custom_assistant_Free on the disk":`Libre sur le disque`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Les liens Hugging Face conviennent, aussi hf:org/repo/file.gguf`,custom_assistant_Languages:Do,"custom_assistant_Load time":`Temps de chargement`,"custom_assistant_Loaded model":`Modèle chargé`,custom_assistant_Model:Oo,custom_assistant_Models:ko,"custom_assistant_No models in this folder yet. Download one below.":`Aucun modèle dans ce dossier pour l'instant. Téléchargez-en un ci-dessous.`,"custom_assistant_Own model: link to a .gguf file":`Modèle personnel : lien vers un fichier .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Questions posées / répondues par le modèle / transmises au niveau suivant`,"custom_assistant_Reset statistics":`Réinitialiser les statistiques`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Enregistrez les paramètres pour charger le modèle choisi. L'instance redémarre.`,custom_assistant_Size:Ao,"custom_assistant_Start the instance to manage the local models.":`Démarrez l'instance pour gérer les modèles locaux.`,"custom_assistant_The active model cannot be deleted":`Le modèle actif ne peut pas être supprimé`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`Le moteur n'est pas encore installé. Installez-le dans le premier onglet (« Installer le modèle local »).`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Le fichier %s est supprimé du disque. Ses statistiques restent.`,"custom_assistant_Time until the first word: reading the question":`Temps avant le premier mot : lecture de la question`,"custom_assistant_Timeouts and errors among the questions asked":`Délais dépassés et erreurs parmi les questions posées`,"custom_assistant_Tokens/s":`Jetons/s`,custom_assistant_Use:jo,custom_assistant_correct:Mo,custom_assistant_downloaded:No,custom_assistant_downloading:Po,custom_assistant_failed:Fo,"custom_assistant_hand over":`transmettre`,"custom_assistant_last used":`dernière utilisation`,"custom_assistant_many languages":`nombreuses langues`,"custom_assistant_missed hand-overs":`transmissions manquées`,"custom_assistant_needless hand-overs":`transmissions inutiles`,"custom_assistant_not enough space":`espace insuffisant`,"custom_assistant_not the language of the assistant":`pas la langue de l'assistant`,custom_assistant_parameters:Io,custom_assistant_speed:Lo,custom_assistant_timeouts:Ro,"custom_assistant_wrong answers":`mauvaises réponses`,"custom_assistant_very fast":`très rapide`,custom_assistant_fast:zo,custom_assistant_medium:Bo,custom_assistant_slow:Vo,custom_assistant_llm_benchmark:Ho,"Model folder":`Dossier des modèles`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Chemin absolu, p. ex. /mnt/ssd/llm. Vide = dossier de données de l'instance. Les modèles déjà téléchargés ailleurs ne sont pas déplacés.`,"custom_assistant_Start the instance to test the voice":`Démarrez l'instance pour tester la voix`,"custom_assistant_Try this voice":`Essayer cette voix`,custom_assistant_synthesis:Uo},Go=e({custom_assistant_Announcement:()=>Ko,custom_assistant_Answer:()=>qo,custom_assistant_Benchmark:()=>Qs,custom_assistant_Cancel:()=>Jo,custom_assistant_Chat:()=>Yo,custom_assistant_Close:()=>Xo,custom_assistant_Context:()=>Zo,custom_assistant_Copied:()=>Qo,custom_assistant_Copy:()=>$o,custom_assistant_Delete:()=>es,custom_assistant_Details:()=>$s,custom_assistant_Download:()=>ec,custom_assistant_Error:()=>ts,custom_assistant_Expected:()=>tc,custom_assistant_Failures:()=>nc,custom_assistant_Folder:()=>rc,custom_assistant_Host:()=>ns,custom_assistant_Languages:()=>ic,custom_assistant_Model:()=>ac,custom_assistant_Models:()=>oc,custom_assistant_Question:()=>rs,custom_assistant_Recognized:()=>is,custom_assistant_Record:()=>as,custom_assistant_Request:()=>os,custom_assistant_Room:()=>ss,custom_assistant_Routine:()=>cs,custom_assistant_Satellite:()=>ls,custom_assistant_Satellites:()=>us,custom_assistant_Script:()=>ds,custom_assistant_Size:()=>sc,custom_assistant_Source:()=>fs,custom_assistant_Speak:()=>ps,custom_assistant_Spoken:()=>ms,custom_assistant_State:()=>hs,custom_assistant_Status:()=>gs,custom_assistant_Steps:()=>_s,custom_assistant_Stop:()=>vs,custom_assistant_Time:()=>`Ora`,custom_assistant_Tool:()=>ys,custom_assistant_Upload:()=>bs,custom_assistant_Use:()=>`Usa`,custom_assistant_auto:()=>xs,custom_assistant_bundled_wake_word_hint:()=>qs,custom_assistant_correct:()=>cc,custom_assistant_delete_wake_word_confirm:()=>Ss,custom_assistant_device:()=>Cs,custom_assistant_downloaded:()=>lc,custom_assistant_downloading:()=>uc,custom_assistant_failed:()=>dc,custom_assistant_fast:()=>hc,custom_assistant_filter:()=>ws,custom_assistant_hint:()=>Ts,custom_assistant_llm_benchmark:()=>vc,custom_assistant_llm_downloading:()=>Es,custom_assistant_llm_error:()=>Ds,custom_assistant_llm_idle:()=>Os,custom_assistant_llm_installing:()=>ks,custom_assistant_llm_loading:()=>As,custom_assistant_llm_ready:()=>js,custom_assistant_medium:()=>gc,custom_assistant_offline:()=>Ms,custom_assistant_online:()=>Ns,custom_assistant_parameters:()=>fc,custom_assistant_read:()=>Ps,custom_assistant_room:()=>Fs,custom_assistant_sat_idle:()=>Is,custom_assistant_sat_listening:()=>Ls,custom_assistant_sat_offline:()=>Rs,custom_assistant_sat_processing:()=>zs,custom_assistant_sat_speaking:()=>Bs,custom_assistant_slow:()=>_c,custom_assistant_speed:()=>pc,custom_assistant_synthesis:()=>yc,custom_assistant_timeouts:()=>mc,custom_assistant_type:()=>Vs,custom_assistant_wake_word_deleted:()=>Hs,custom_assistant_wake_word_hint:()=>Us,custom_assistant_wake_word_installed:()=>Js,custom_assistant_wake_word_installed_full:()=>Xs,custom_assistant_wake_word_installed_replaced:()=>Ys,custom_assistant_wake_word_phrase_hint:()=>Ws,custom_assistant_wake_word_upload_hint:()=>Gs,custom_assistant_wake_word_uploaded:()=>Ks,custom_assistant_write:()=>Zs,default:()=>bc}),Ko=`Annuncio`,qo=`Risposta`,Jo=`Cancel`,Yo=`Chat`,Xo=`Close`,Zo=`Contesto`,Qo=`Copiato`,$o=`Copia`,es=`Delete`,ts=`Errore`,ns=`Ospite`,rs=`Domanda`,is=`Riconosciuto`,as=`Registra`,os=`Richiesta`,ss=`Room`,cs=`Routine`,ls=`Satellitare`,us=`Satelliti`,ds=`Script`,fs=`Source`,ps=`Parlare`,ms=`Pronunciato`,hs=`State`,gs=`Stato`,_s=`Passaggi`,vs=`Stop`,ys=`Strumento`,bs=`Carica`,xs=`auto`,Ss=`Eliminare "%s"? Non verrà più offerto ai dispositivi; un dispositivo che l'ha già scaricato lo conserva.`,Cs=`Dispositivo`,ws=`Filtro`,Ts=`Deseleziona "Lettura" per nascondere un dispositivo all'assistente, oppure deseleziona "Scrittura" per mantenerlo in sola lettura (ad esempio, per bloccare le serrature). Per impostazione predefinita, i dispositivi sono completamente accessibili.`,Es=`modello di download…`,Ds=`errore`,Os=`oziare`,ks=`installazione del motore…`,As=`caricamento…`,js=`pronto`,Ms=`offline`,Ns=`online`,Ps=`Leggere`,Fs=`Camera`,Is=`oziare`,Ls=`ascolto`,Rs=`offline`,zs=`elaborazione`,Bs=`A proposito di`,Vs=`Tipo`,Hs=`"%s" è stato eliminato. Un dispositivo che l'ha già scaricato ne conserva la copia.`,Us=`La parola di attivazione viene elaborata sul dispositivo. Passa il mouse su una parola per vedere in quali lingue è stata addestrata — la maggior parte solo in inglese.`,Ws=`Ciò che dici per attivare il dispositivo: è così che appare nell'elenco.`,Gs=`Un modello microWakeWord: il file .tflite, preferibilmente insieme al suo .json. Altri tipi di modello (openWakeWord, Porcupine) non possono essere installati in questo modo.`,Ks=`"%s" è stato caricato. Selezionalo qui sopra per attivarlo: il dispositivo scaricherà allora il modello.`,qs=`Clic: carica sul dispositivo e attiva — sostituisce una versione precedente della stessa parola`,Js=`"%s" è attiva: il dispositivo scarica il modello.`,Ys=`"%s" è attiva al posto di "%s": il dispositivo scarica il modello.`,Xs=`"%s" ora è nell'elenco, ma tutti i posti sono occupati. Disattiva prima un'altra parola di attivazione, poi seleziona "%s".`,Zs=`Scrivere`,Qs=`Test`,$s=`Dettagli`,ec=`Scarica`,tc=`Atteso`,nc=`Errori`,rc=`Cartella`,ic=`Lingue`,ac=`Modello`,oc=`Modelli`,sc=`Dimensione`,cc=`corrette`,lc=`scaricato`,uc=`download in corso`,dc=`non riuscito`,fc=`parametri`,pc=`velocità`,mc=`timeout`,hc=`veloce`,gc=`media`,_c=`lenta`,vc=`test in corso`,yc=`sintesi`,bc={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s di audio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Un satellite ancora configurato ricompare quando si connette.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:Ko,custom_assistant_Answer:qo,"custom_assistant_Audio file":`File audio`,custom_assistant_Cancel:Jo,custom_assistant_Chat:Yo,"custom_assistant_Clear chat":`Chat chiara`,"custom_assistant_Click for details":`Clicca per i dettagli`,custom_assistant_Close:Xo,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Comprimi tutto`,custom_assistant_Context:Zo,custom_assistant_Copied:Qo,custom_assistant_Copy:$o,"custom_assistant_Copy everything as JSON":`Copia tutto come JSON`,custom_assistant_Delete:es,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Cache del dispositivo svuotata.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Dialogo: tutto ciò che dici diventa una domanda, finché non lo termini`,"custom_assistant_Dialog: hearing you…":`Dialogo: ti sento …`,"custom_assistant_Dialog: listening…":`Dialogo: in ascolto …`,"custom_assistant_Dialog: speaking…":`Dialogo: sto parlando …`,"custom_assistant_Dialog: thinking…":`Dialogo: sto pensando …`,"custom_assistant_Download as JSON":`Scarica come JSON`,"custom_assistant_End the dialog":`Termina il dialogo`,custom_assistant_Error:ts,"custom_assistant_Expand all":`Espandi tutto`,"custom_assistant_Follow-up":`Domanda di follow-up`,"custom_assistant_Hide disabled":`Nascondi disabilitato`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:ns,"custom_assistant_Last seen":`Ultimo avvistamento`,"custom_assistant_Listening…":`Ascolto…`,"custom_assistant_Loading…":`Caricamento…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Modello locale`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Lingua del nome: %s`,"custom_assistant_No answer":`Nessuna risposta`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Nessun dispositivo rilevato. Assegna stati a stanze e funzioni in ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Nessun messaggio ancora. Scrivi una domanda qui sotto.`,"custom_assistant_No processing steps were recorded for this request.":`Per questa richiesta non sono stati registrati passaggi di elaborazione. I dettagli vengono conservati per le ultime 200 richieste.`,"custom_assistant_No satellites registered yet.":`Nessun satellite ancora registrato.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Nulla riconosciuto`,"custom_assistant_Per-device permissions":`Autorizzazioni per dispositivo`,"custom_assistant_Play answer (backend TTS)":`Riproduci la risposta (TST di backend)`,"custom_assistant_Please select a .tflite model file":`Seleziona un file di modello .tflite`,custom_assistant_Question:rs,"custom_assistant_Read answers aloud":`Leggi le risposte ad alta voce`,custom_assistant_Recognized:is,custom_assistant_Record:as,"custom_assistant_Recorded audio":`Audio registrato`,"custom_assistant_Refresh device cache":`Aggiorna la cache del dispositivo`,"custom_assistant_Remove satellite":`Rimuovi satellite`,"custom_assistant_Remove satellite %s and all its states?":`Rimuovere il satellite %s e tutti i suoi stati?`,"custom_assistant_Reply audio":`Audio della risposta`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:os,"custom_assistant_Request details":`Dettagli della richiesta`,custom_assistant_Room:ss,custom_assistant_Routine:cs,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:ls,custom_assistant_Satellites:us,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Salva la configurazione (l'istanza si riavvierà) prima di iniziare la chat.`,custom_assistant_Script:ds,"custom_assistant_Send announcement":`Invia annuncio`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:fs,custom_assistant_Speak:ps,"custom_assistant_Speak on all satellites":`Comunicare su tutti i satelliti`,"custom_assistant_Speak the test sentence and recognize it":`Pronuncia la frase di prova e riconoscila`,"custom_assistant_Speech output":`Sintesi vocale`,"custom_assistant_Speech recognition":`Riconoscimento vocale`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Sintesi vocale`,custom_assistant_Spoken:ms,"custom_assistant_Start the assistant instance to chat.":`Avvia l'assistente per chattare.`,"custom_assistant_Start the assistant instance to load the device list.":`Avvia l'istanza dell'assistente per caricare l'elenco dei dispositivi.`,custom_assistant_State:hs,"custom_assistant_States read":`Stati letti`,"custom_assistant_States written":`Stati scritti`,custom_assistant_Status:gs,custom_assistant_Steps:_s,custom_assistant_Stop:vs,"custom_assistant_Stop listening":`Smetti di ascoltare`,"custom_assistant_Stop reading answers aloud":`Smetti di leggere le risposte ad alta voce`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Chat di prova`,"custom_assistant_Test sentence":`Frase di prova`,"custom_assistant_Test voice":`Prova voce`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`Il dialogo richiede il riconoscimento vocale: attiva la voce nella scheda Voce.`,"custom_assistant_The instance must be running to test the voice.":`L’istanza deve essere in esecuzione per provare la voce.`,"custom_assistant_The microphone could not be opened:":`Impossibile aprire il microfono:`,"custom_assistant_The microphone only works over https or on localhost.":`Il microfono funziona solo via https o su localhost.`,"custom_assistant_Thinking…":`Pensiero…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:`Ora`,custom_assistant_Tool:ys,"custom_assistant_Tool calls":`Chiamate agli strumenti`,"custom_assistant_Tool result":`Risultato dello strumento`,"custom_assistant_Tools & states":`Strumenti e stati`,"custom_assistant_Total duration":`Durata totale`,"custom_assistant_Translate all missing (%s)":`Traduci tutto ciò che manca (%s)`,"custom_assistant_Translate name into %s":`Traduci il nome in %s`,"custom_assistant_Type a message…":`Digita un messaggio…`,custom_assistant_Upload:bs,"custom_assistant_Upload own wake word":`Carica la tua parola di attivazione`,"custom_assistant_Uploaded wake word":`Parola di attivazione caricata`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Frase di attivazione`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:xs,"custom_assistant_change it on the Voice tab":`modificalo nella scheda Voce`,custom_assistant_delete_wake_word_confirm:Ss,custom_assistant_device:Cs,custom_assistant_filter:ws,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:Ts,"custom_assistant_in progress":`in corso`,custom_assistant_llm_downloading:Es,custom_assistant_llm_error:Ds,custom_assistant_llm_idle:Os,custom_assistant_llm_installing:ks,custom_assistant_llm_loading:As,"custom_assistant_llm_not installed":`non installato`,custom_assistant_llm_ready:js,"custom_assistant_made in %s ms":`generato in %s ms`,"custom_assistant_no name in %s (showing %s)":`Nessun nome in "%s" — visualizzazione di "%s"`,custom_assistant_offline:Ms,custom_assistant_online:Ns,custom_assistant_read:Ps,"custom_assistant_recognized in %s ms":`riconosciuto in %s ms`,custom_assistant_room:Fs,custom_assistant_sat_idle:Is,custom_assistant_sat_listening:Ls,custom_assistant_sat_offline:Rs,custom_assistant_sat_processing:zs,custom_assistant_sat_speaking:Bs,custom_assistant_type:Vs,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:Hs,custom_assistant_wake_word_hint:Us,custom_assistant_wake_word_phrase_hint:Ws,custom_assistant_wake_word_upload_hint:Gs,custom_assistant_wake_word_uploaded:Ks,"custom_assistant_Shipped with the adapter":`Fornite con l'adattatore`,custom_assistant_bundled_wake_word_hint:qs,custom_assistant_wake_word_installed:Js,custom_assistant_wake_word_installed_replaced:Ys,custom_assistant_wake_word_installed_full:Xs,custom_assistant_write:Zs,"custom_assistant_Add a model":`Aggiungi un modello`,"custom_assistant_Answer time":`Tempo di risposta`,"custom_assistant_Asked / answered / handed over":`Poste / risposte / passate`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Pone domande di prova al modello caricato nella lingua dell'assistente e in inglese: le domande sulla casa deve passarle, quelle generali risponderle correttamente`,custom_assistant_Benchmark:Qs,"custom_assistant_Delete model?":`Eliminare il modello?`,custom_assistant_Details:$s,custom_assistant_Download:ec,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Stima dalla dimensione del modello, non misurata. Il test fornisce valori reali.`,custom_assistant_Expected:tc,custom_assistant_Failures:nc,"custom_assistant_First token":`Primo token`,custom_assistant_Folder:rc,"custom_assistant_Free on the disk":`Libero sul disco`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Vanno bene i link di Hugging Face, anche hf:org/repo/file.gguf`,custom_assistant_Languages:ic,"custom_assistant_Load time":`Tempo di caricamento`,"custom_assistant_Loaded model":`Modello caricato`,custom_assistant_Model:ac,custom_assistant_Models:oc,"custom_assistant_No models in this folder yet. Download one below.":`Nessun modello in questa cartella. Scaricane uno qui sotto.`,"custom_assistant_Own model: link to a .gguf file":`Modello proprio: link a un file .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Domande poste / risposte dal modello / passate al livello successivo`,"custom_assistant_Reset statistics":`Azzera statistiche`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Salva le impostazioni per caricare il modello scelto. L'istanza si riavvia.`,custom_assistant_Size:sc,"custom_assistant_Start the instance to manage the local models.":`Avvia l'istanza per gestire i modelli locali.`,"custom_assistant_The active model cannot be deleted":`Il modello attivo non può essere eliminato`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`Il motore non è ancora installato. Installalo nella prima scheda ("Installa modello locale").`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Il file %s viene eliminato dal disco. Le sue statistiche restano.`,"custom_assistant_Time until the first word: reading the question":`Tempo fino alla prima parola: lettura della domanda`,"custom_assistant_Timeouts and errors among the questions asked":`Timeout ed errori tra le domande poste`,"custom_assistant_Tokens/s":`Token/s`,custom_assistant_Use:`Usa`,custom_assistant_correct:cc,custom_assistant_downloaded:lc,custom_assistant_downloading:uc,custom_assistant_failed:dc,"custom_assistant_hand over":`passare`,"custom_assistant_last used":`ultimo uso`,"custom_assistant_many languages":`molte lingue`,"custom_assistant_missed hand-overs":`passaggi mancati`,"custom_assistant_needless hand-overs":`passaggi inutili`,"custom_assistant_not enough space":`spazio insufficiente`,"custom_assistant_not the language of the assistant":`non è la lingua dell'assistente`,custom_assistant_parameters:fc,custom_assistant_speed:pc,custom_assistant_timeouts:mc,"custom_assistant_wrong answers":`risposte sbagliate`,"custom_assistant_very fast":`molto veloce`,custom_assistant_fast:hc,custom_assistant_medium:gc,custom_assistant_slow:_c,custom_assistant_llm_benchmark:vc,"Model folder":`Cartella dei modelli`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Percorso assoluto, ad es. /mnt/ssd/llm. Vuoto = cartella dati dell'istanza. I modelli già scaricati altrove non vengono spostati.`,"custom_assistant_Start the instance to test the voice":`Avvia l'istanza per provare la voce`,"custom_assistant_Try this voice":`Prova questa voce`,custom_assistant_synthesis:yc},xc=e({custom_assistant_Announcement:()=>Sc,custom_assistant_Answer:()=>Cc,custom_assistant_Benchmark:()=>kl,custom_assistant_Cancel:()=>wc,custom_assistant_Chat:()=>Tc,custom_assistant_Close:()=>Ec,custom_assistant_Context:()=>Dc,custom_assistant_Copied:()=>Oc,custom_assistant_Copy:()=>kc,custom_assistant_Delete:()=>Ac,custom_assistant_Details:()=>Al,custom_assistant_Download:()=>jl,custom_assistant_Error:()=>jc,custom_assistant_Expected:()=>Ml,custom_assistant_Failures:()=>Nl,custom_assistant_Folder:()=>`Map`,custom_assistant_Host:()=>Mc,custom_assistant_Languages:()=>Pl,custom_assistant_Model:()=>Fl,custom_assistant_Models:()=>Il,custom_assistant_Question:()=>Nc,custom_assistant_Recognized:()=>Pc,custom_assistant_Record:()=>Fc,custom_assistant_Request:()=>Ic,custom_assistant_Room:()=>Lc,custom_assistant_Routine:()=>Rc,custom_assistant_Satellite:()=>zc,custom_assistant_Satellites:()=>Bc,custom_assistant_Script:()=>Vc,custom_assistant_Size:()=>Ll,custom_assistant_Source:()=>Hc,custom_assistant_Speak:()=>Uc,custom_assistant_Spoken:()=>Wc,custom_assistant_State:()=>Gc,custom_assistant_Status:()=>Kc,custom_assistant_Steps:()=>qc,custom_assistant_Stop:()=>Jc,custom_assistant_Time:()=>Yc,custom_assistant_Tool:()=>Xc,custom_assistant_Upload:()=>Zc,custom_assistant_Use:()=>Rl,custom_assistant_auto:()=>Qc,custom_assistant_bundled_wake_word_hint:()=>wl,custom_assistant_correct:()=>zl,custom_assistant_delete_wake_word_confirm:()=>$c,custom_assistant_device:()=>el,custom_assistant_downloaded:()=>Bl,custom_assistant_downloading:()=>Vl,custom_assistant_failed:()=>Hl,custom_assistant_fast:()=>Kl,custom_assistant_filter:()=>tl,custom_assistant_hint:()=>nl,custom_assistant_llm_benchmark:()=>Yl,custom_assistant_llm_downloading:()=>rl,custom_assistant_llm_error:()=>il,custom_assistant_llm_idle:()=>al,custom_assistant_llm_installing:()=>ol,custom_assistant_llm_loading:()=>sl,custom_assistant_llm_ready:()=>cl,custom_assistant_medium:()=>ql,custom_assistant_offline:()=>ll,custom_assistant_online:()=>ul,custom_assistant_parameters:()=>Ul,custom_assistant_read:()=>dl,custom_assistant_room:()=>fl,custom_assistant_sat_idle:()=>pl,custom_assistant_sat_listening:()=>ml,custom_assistant_sat_offline:()=>hl,custom_assistant_sat_processing:()=>gl,custom_assistant_sat_speaking:()=>_l,custom_assistant_slow:()=>Jl,custom_assistant_speed:()=>Wl,custom_assistant_synthesis:()=>Xl,custom_assistant_timeouts:()=>Gl,custom_assistant_type:()=>vl,custom_assistant_wake_word_deleted:()=>yl,custom_assistant_wake_word_hint:()=>bl,custom_assistant_wake_word_installed:()=>Tl,custom_assistant_wake_word_installed_full:()=>Dl,custom_assistant_wake_word_installed_replaced:()=>El,custom_assistant_wake_word_phrase_hint:()=>xl,custom_assistant_wake_word_upload_hint:()=>Sl,custom_assistant_wake_word_uploaded:()=>Cl,custom_assistant_write:()=>Ol,default:()=>Zl}),Sc=`Aankondiging`,Cc=`Antwoord`,wc=`Cancel`,Tc=`Chat`,Ec=`Close`,Dc=`Context`,Oc=`Gekopieerd`,kc=`Kopiëren`,Ac=`Delete`,jc=`Fout`,Mc=`Gastheer`,Nc=`Vraag`,Pc=`Herkend`,Fc=`Opnemen`,Ic=`Verzoek`,Lc=`Room`,Rc=`Routine`,zc=`Satelliet`,Bc=`Satellieten`,Vc=`Script`,Hc=`Source`,Uc=`Spreken`,Wc=`Gesproken`,Gc=`State`,Kc=`Status`,qc=`Stappen`,Jc=`Stop`,Yc=`Tijd`,Xc=`Tool`,Zc=`Uploaden`,Qc=`auto`,$c=`"%s" verwijderen? Het wordt niet meer aan de apparaten aangeboden; een apparaat dat het al heeft gedownload, houdt het.`,el=`Apparaat`,tl=`Filter`,nl=`Schakel de optie 'Lezen' uit om een apparaat voor de assistent te verbergen, of schakel de optie 'Schrijven' uit om het apparaat alleen-lezen te houden (bijv. sloten). Apparaten zijn standaard volledig toegestaan.`,rl=`Model downloaden…`,il=`fout`,al=`inactief`,ol=`motor installeren…`,sl=`laden…`,cl=`klaar`,ll=`offline`,ul=`online`,dl=`Lezen`,fl=`Kamer`,pl=`inactief`,ml=`luisteren`,hl=`offline`,gl=`verwerking`,_l=`spreken`,vl=`Type`,yl=`"%s" is verwijderd. Een apparaat dat het al heeft gedownload, houdt zijn kopie.`,bl=`Het activeringswoord draait op het apparaat. Beweeg de muis over een woord om te zien in welke talen het getraind is — de meeste alleen Engels.`,xl=`Wat je zegt om het apparaat te wekken — zo verschijnt het in de lijst.`,Sl=`Een microWakeWord-model: het .tflite-bestand, bij voorkeur samen met de bijbehorende .json. Andere modeltypen (openWakeWord, Porcupine) kunnen zo niet worden geïnstalleerd.`,Cl=`"%s" is geüpload. Selecteer het hierboven om het te activeren — het apparaat downloadt dan het model.`,wl=`Klik: op het apparaat laden en inschakelen — vervangt een oudere versie van hetzelfde woord`,Tl=`"%s" is ingeschakeld — het apparaat downloadt het model.`,El=`"%s" is ingeschakeld in plaats van "%s" — het apparaat downloadt het model.`,Dl=`"%s" staat nu in de lijst, maar alle plaatsen zijn bezet. Schakel eerst een ander wekwoord uit en selecteer dan "%s".`,Ol=`Schrijven`,kl=`Test`,Al=`Details`,jl=`Downloaden`,Ml=`Verwacht`,Nl=`Fouten`,Pl=`Talen`,Fl=`Model`,Il=`Modellen`,Ll=`Grootte`,Rl=`Gebruiken`,zl=`goed`,Bl=`gedownload`,Vl=`bezig met downloaden`,Hl=`mislukt`,Ul=`parameters`,Wl=`snelheid`,Gl=`time-outs`,Kl=`snel`,ql=`gemiddeld`,Jl=`traag`,Yl=`test loopt`,Xl=`synthese`,Zl={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s audio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Een satelliet die nog geconfigureerd is, verschijnt weer zodra hij verbinding maakt.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:Sc,custom_assistant_Answer:Cc,"custom_assistant_Audio file":`Audiobestand`,custom_assistant_Cancel:wc,custom_assistant_Chat:Tc,"custom_assistant_Clear chat":`Duidelijke chat`,"custom_assistant_Click for details":`Klik voor details`,custom_assistant_Close:Ec,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Alles inklappen`,custom_assistant_Context:Dc,custom_assistant_Copied:Oc,custom_assistant_Copy:kc,"custom_assistant_Copy everything as JSON":`Alles als JSON kopiëren`,custom_assistant_Delete:Ac,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Apparaatcache gewist.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Dialoog: alles wat je zegt wordt een vraag, totdat je hem beëindigt`,"custom_assistant_Dialog: hearing you…":`Dialoog: hoort je …`,"custom_assistant_Dialog: listening…":`Dialoog: luistert …`,"custom_assistant_Dialog: speaking…":`Dialoog: spreekt …`,"custom_assistant_Dialog: thinking…":`Dialoog: denkt na …`,"custom_assistant_Download as JSON":`Downloaden als JSON`,"custom_assistant_End the dialog":`Dialoog beëindigen`,custom_assistant_Error:jc,"custom_assistant_Expand all":`Alles uitklappen`,"custom_assistant_Follow-up":`Vervolgvraag`,"custom_assistant_Hide disabled":`Verberg uitgeschakeld`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:Mc,"custom_assistant_Last seen":`Laatst gezien`,"custom_assistant_Listening…":`Luisteren…`,"custom_assistant_Loading…":`Laden…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Lokaal model`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Naamtaal: %s`,"custom_assistant_No answer":`Geen antwoord`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Geen apparaten gedetecteerd. Wijs statussen toe aan kamers en functies in ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Nog geen berichten. Typ hieronder een vraag.`,"custom_assistant_No processing steps were recorded for this request.":`Voor dit verzoek zijn geen verwerkingsstappen vastgelegd. Details worden bewaard voor de laatste 200 verzoeken.`,"custom_assistant_No satellites registered yet.":`Er zijn nog geen satellieten geregistreerd.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Niets herkend`,"custom_assistant_Per-device permissions":`Machtigingen per apparaat`,"custom_assistant_Play answer (backend TTS)":`Speel antwoord (backend TTS)`,"custom_assistant_Please select a .tflite model file":`Selecteer een .tflite-modelbestand`,custom_assistant_Question:Nc,"custom_assistant_Read answers aloud":`Lees de antwoorden hardop voor.`,custom_assistant_Recognized:Pc,custom_assistant_Record:Fc,"custom_assistant_Recorded audio":`Opgenomen audio`,"custom_assistant_Refresh device cache":`Vernieuw de apparaatcache.`,"custom_assistant_Remove satellite":`Satelliet verwijderen`,"custom_assistant_Remove satellite %s and all its states?":`Satelliet %s en al zijn states verwijderen?`,"custom_assistant_Reply audio":`Audio van het antwoord`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:Ic,"custom_assistant_Request details":`Details van het verzoek`,custom_assistant_Room:Lc,custom_assistant_Routine:Rc,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:zc,custom_assistant_Satellites:Bc,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Sla de configuratie op (het apparaat zal opnieuw opstarten) voordat je gaat chatten.`,custom_assistant_Script:Vc,"custom_assistant_Send announcement":`Aankondiging verzenden`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:Hc,custom_assistant_Speak:Uc,"custom_assistant_Speak on all satellites":`Communiceer via alle satellieten`,"custom_assistant_Speak the test sentence and recognize it":`Testzin uitspreken en herkennen`,"custom_assistant_Speech output":`Spraakuitvoer`,"custom_assistant_Speech recognition":`Spraakherkenning`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Spraaksynthese`,custom_assistant_Spoken:Wc,"custom_assistant_Start the assistant instance to chat.":`Start de assistent-instantie om te chatten.`,"custom_assistant_Start the assistant instance to load the device list.":`Start de assistent-instantie om de lijst met apparaten te laden.`,custom_assistant_State:Gc,"custom_assistant_States read":`Gelezen states`,"custom_assistant_States written":`Geschreven states`,custom_assistant_Status:Kc,custom_assistant_Steps:qc,custom_assistant_Stop:Jc,"custom_assistant_Stop listening":`Stop met luisteren`,"custom_assistant_Stop reading answers aloud":`Stop met het hardop voorlezen van antwoorden.`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Testchat`,"custom_assistant_Test sentence":`Testzin`,"custom_assistant_Test voice":`Stem testen`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`De dialoog heeft spraakherkenning nodig: schakel spraak in op het tabblad Stem.`,"custom_assistant_The instance must be running to test the voice.":`De instantie moet draaien om de stem te testen.`,"custom_assistant_The microphone could not be opened:":`De microfoon kon niet worden geopend:`,"custom_assistant_The microphone only works over https or on localhost.":`De microfoon werkt alleen via https of op localhost.`,"custom_assistant_Thinking…":`Aan het nadenken…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:Yc,custom_assistant_Tool:Xc,"custom_assistant_Tool calls":`Toolaanroepen`,"custom_assistant_Tool result":`Toolresultaat`,"custom_assistant_Tools & states":`Tools & states`,"custom_assistant_Total duration":`Totale duur`,"custom_assistant_Translate all missing (%s)":`Vertaal alle ontbrekende (%) tekens`,"custom_assistant_Translate name into %s":`Vertaal de naam naar %s`,"custom_assistant_Type a message…":`Typ een bericht…`,custom_assistant_Upload:Zc,"custom_assistant_Upload own wake word":`Eigen wekwoord uploaden`,"custom_assistant_Uploaded wake word":`Geüpload wekwoord`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Wekwoordzin`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:Qc,"custom_assistant_change it on the Voice tab":`Wijzig dit op het tabblad 'Stem'.`,custom_assistant_delete_wake_word_confirm:$c,custom_assistant_device:el,custom_assistant_filter:tl,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:nl,"custom_assistant_in progress":`bezig`,custom_assistant_llm_downloading:rl,custom_assistant_llm_error:il,custom_assistant_llm_idle:al,custom_assistant_llm_installing:ol,custom_assistant_llm_loading:sl,"custom_assistant_llm_not installed":`niet geïnstalleerd`,custom_assistant_llm_ready:cl,"custom_assistant_made in %s ms":`gemaakt in %s ms`,"custom_assistant_no name in %s (showing %s)":`Geen naam in "%s" — "%s" wordt weergegeven`,custom_assistant_offline:ll,custom_assistant_online:ul,custom_assistant_read:dl,"custom_assistant_recognized in %s ms":`herkend in %s ms`,custom_assistant_room:fl,custom_assistant_sat_idle:pl,custom_assistant_sat_listening:ml,custom_assistant_sat_offline:hl,custom_assistant_sat_processing:gl,custom_assistant_sat_speaking:_l,custom_assistant_type:vl,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:yl,custom_assistant_wake_word_hint:bl,custom_assistant_wake_word_phrase_hint:xl,custom_assistant_wake_word_upload_hint:Sl,custom_assistant_wake_word_uploaded:Cl,"custom_assistant_Shipped with the adapter":`Meegeleverd met de adapter`,custom_assistant_bundled_wake_word_hint:wl,custom_assistant_wake_word_installed:Tl,custom_assistant_wake_word_installed_replaced:El,custom_assistant_wake_word_installed_full:Dl,custom_assistant_write:Ol,"custom_assistant_Add a model":`Model toevoegen`,"custom_assistant_Answer time":`Antwoordtijd`,"custom_assistant_Asked / answered / handed over":`Gevraagd / beantwoord / doorgegeven`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Stelt het geladen model testvragen in de taal van de assistent en in het Engels: vragen over het huis moet het doorgeven, algemene correct beantwoorden`,custom_assistant_Benchmark:kl,"custom_assistant_Delete model?":`Model verwijderen?`,custom_assistant_Details:Al,custom_assistant_Download:jl,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Schatting op basis van de modelgrootte, niet gemeten. De test geeft echte cijfers.`,custom_assistant_Expected:Ml,custom_assistant_Failures:Nl,"custom_assistant_First token":`Eerste token`,custom_assistant_Folder:`Map`,"custom_assistant_Free on the disk":`Vrij op de schijf`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Hugging Face-links werken, ook hf:org/repo/file.gguf`,custom_assistant_Languages:Pl,"custom_assistant_Load time":`Laadtijd`,"custom_assistant_Loaded model":`Geladen model`,custom_assistant_Model:Fl,custom_assistant_Models:Il,"custom_assistant_No models in this folder yet. Download one below.":`Nog geen modellen in deze map. Download er hieronder een.`,"custom_assistant_Own model: link to a .gguf file":`Eigen model: link naar een .gguf-bestand`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Gestelde vragen / beantwoord door het model / doorgegeven aan de volgende laag`,"custom_assistant_Reset statistics":`Statistieken resetten`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Sla de instellingen op om het gekozen model te laden. De instantie herstart.`,custom_assistant_Size:Ll,"custom_assistant_Start the instance to manage the local models.":`Start de instantie om de lokale modellen te beheren.`,"custom_assistant_The active model cannot be deleted":`Het actieve model kan niet worden verwijderd`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`De engine is nog niet geïnstalleerd. Installeer hem op het eerste tabblad ("Lokaal model installeren").`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Het bestand %s wordt van de schijf verwijderd. De statistieken blijven.`,"custom_assistant_Time until the first word: reading the question":`Tijd tot het eerste woord: het lezen van de vraag`,"custom_assistant_Timeouts and errors among the questions asked":`Time-outs en fouten bij de gestelde vragen`,"custom_assistant_Tokens/s":`Tokens/s`,custom_assistant_Use:Rl,custom_assistant_correct:zl,custom_assistant_downloaded:Bl,custom_assistant_downloading:Vl,custom_assistant_failed:Hl,"custom_assistant_hand over":`doorgeven`,"custom_assistant_last used":`laatst gebruikt`,"custom_assistant_many languages":`veel talen`,"custom_assistant_missed hand-overs":`gemiste overdrachten`,"custom_assistant_needless hand-overs":`onnodige overdrachten`,"custom_assistant_not enough space":`te weinig ruimte`,"custom_assistant_not the language of the assistant":`niet de taal van de assistent`,custom_assistant_parameters:Ul,custom_assistant_speed:Wl,custom_assistant_timeouts:Gl,"custom_assistant_wrong answers":`foute antwoorden`,"custom_assistant_very fast":`zeer snel`,custom_assistant_fast:Kl,custom_assistant_medium:ql,custom_assistant_slow:Jl,custom_assistant_llm_benchmark:Yl,"Model folder":`Modelmap`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Absoluut pad, bijv. /mnt/ssd/llm. Leeg = gegevensmap van de instantie. Elders gedownloade modellen worden niet verplaatst.`,"custom_assistant_Start the instance to test the voice":`Start de instantie om de stem te testen`,"custom_assistant_Try this voice":`Deze stem proberen`,custom_assistant_synthesis:Xl},Ql=e({custom_assistant_Announcement:()=>$l,custom_assistant_Answer:()=>eu,custom_assistant_Benchmark:()=>ad,custom_assistant_Cancel:()=>tu,custom_assistant_Chat:()=>nu,custom_assistant_Close:()=>ru,custom_assistant_Context:()=>iu,custom_assistant_Copied:()=>au,custom_assistant_Copy:()=>ou,custom_assistant_Delete:()=>su,custom_assistant_Details:()=>od,custom_assistant_Download:()=>sd,custom_assistant_Error:()=>cu,custom_assistant_Expected:()=>cd,custom_assistant_Failures:()=>ld,custom_assistant_Folder:()=>ud,custom_assistant_Host:()=>lu,custom_assistant_Languages:()=>dd,custom_assistant_Model:()=>fd,custom_assistant_Models:()=>pd,custom_assistant_Question:()=>uu,custom_assistant_Recognized:()=>du,custom_assistant_Record:()=>fu,custom_assistant_Request:()=>pu,custom_assistant_Room:()=>mu,custom_assistant_Routine:()=>hu,custom_assistant_Satellite:()=>gu,custom_assistant_Satellites:()=>_u,custom_assistant_Script:()=>vu,custom_assistant_Size:()=>md,custom_assistant_Source:()=>yu,custom_assistant_Speak:()=>bu,custom_assistant_Spoken:()=>xu,custom_assistant_State:()=>Su,custom_assistant_Status:()=>Cu,custom_assistant_Steps:()=>wu,custom_assistant_Stop:()=>Tu,custom_assistant_Time:()=>Eu,custom_assistant_Tool:()=>Du,custom_assistant_Upload:()=>Ou,custom_assistant_Use:()=>hd,custom_assistant_auto:()=>ku,custom_assistant_bundled_wake_word_hint:()=>ed,custom_assistant_correct:()=>gd,custom_assistant_delete_wake_word_confirm:()=>Au,custom_assistant_device:()=>ju,custom_assistant_downloaded:()=>_d,custom_assistant_downloading:()=>vd,custom_assistant_failed:()=>yd,custom_assistant_fast:()=>Cd,custom_assistant_filter:()=>Mu,custom_assistant_hint:()=>Nu,custom_assistant_llm_benchmark:()=>Ed,custom_assistant_llm_downloading:()=>Pu,custom_assistant_llm_error:()=>Fu,custom_assistant_llm_idle:()=>Iu,custom_assistant_llm_installing:()=>Lu,custom_assistant_llm_loading:()=>Ru,custom_assistant_llm_ready:()=>zu,custom_assistant_medium:()=>wd,custom_assistant_offline:()=>Bu,custom_assistant_online:()=>Vu,custom_assistant_parameters:()=>bd,custom_assistant_read:()=>Hu,custom_assistant_room:()=>Uu,custom_assistant_sat_idle:()=>Wu,custom_assistant_sat_listening:()=>Gu,custom_assistant_sat_offline:()=>Ku,custom_assistant_sat_processing:()=>qu,custom_assistant_sat_speaking:()=>Ju,custom_assistant_slow:()=>Td,custom_assistant_speed:()=>xd,custom_assistant_synthesis:()=>Dd,custom_assistant_timeouts:()=>Sd,custom_assistant_type:()=>`Typ`,custom_assistant_wake_word_deleted:()=>Yu,custom_assistant_wake_word_hint:()=>Xu,custom_assistant_wake_word_installed:()=>td,custom_assistant_wake_word_installed_full:()=>rd,custom_assistant_wake_word_installed_replaced:()=>nd,custom_assistant_wake_word_phrase_hint:()=>Zu,custom_assistant_wake_word_upload_hint:()=>Qu,custom_assistant_wake_word_uploaded:()=>$u,custom_assistant_write:()=>id,default:()=>Od}),$l=`Ogłoszenie`,eu=`Odpowiedź`,tu=`Cancel`,nu=`Chat`,ru=`Close`,iu=`Kontekst`,au=`Skopiowano`,ou=`Kopiuj`,su=`Delete`,cu=`Błąd`,lu=`Gospodarz`,uu=`Pytanie`,du=`Rozpoznano`,fu=`Nagraj`,pu=`Żądanie`,mu=`Room`,hu=`Routine`,gu=`Satelita`,_u=`Satelity`,vu=`Script`,yu=`Source`,bu=`Mówić`,xu=`Wypowiedziano`,Su=`State`,Cu=`Status`,wu=`Kroki`,Tu=`Stop`,Eu=`Czas`,Du=`Narzędzie`,Ou=`Prześlij`,ku=`automatyczny`,Au=`Usunąć „%s”? Nie będzie już oferowane urządzeniom; urządzenie, które już je pobrało, zachowa je.`,ju=`Urządzenie`,Mu=`Filtr`,Nu=`Odznacz opcję „Odczyt”, aby ukryć urządzenie przed asystentem, lub odznacz opcję „Zapis”, aby zachować je tylko do odczytu (np. blokady). Domyślnie urządzenia mają pełne uprawnienia.`,Pu=`pobieranie modelu…`,Fu=`błąd`,Iu=`bezczynny`,Lu=`instalowanie silnika…`,Ru=`załadunek…`,zu=`gotowy`,Bu=`nieaktywny`,Vu=`w sieci`,Hu=`Czytać`,Uu=`Pokój`,Wu=`bezczynny`,Gu=`słuchający`,Ku=`nieaktywny`,qu=`przetwarzanie`,Ju=`mówiąc`,Yu=`„%s” zostało usunięte. Urządzenie, które już je pobrało, zachowuje swoją kopię.`,Xu=`Słowo aktywujące działa na urządzeniu. Najedź na słowo, aby zobaczyć, w jakich językach było trenowane — większość tylko po angielsku.`,Zu=`To, co mówisz, aby wybudzić urządzenie — tak pojawi się na liście.`,Qu=`Model microWakeWord: plik .tflite, najlepiej razem z jego plikiem .json. Innych typów modeli (openWakeWord, Porcupine) nie można zainstalować w ten sposób.`,$u=`„%s” zostało przesłane. Wybierz je powyżej, aby je aktywować — urządzenie pobierze wtedy model.`,ed=`Kliknięcie: wgraj na urządzenie i włącz — zastępuje starszą wersję tego samego słowa`,td=`„%s” jest włączone — urządzenie pobiera model.`,nd=`„%s” jest włączone zamiast „%s” — urządzenie pobiera model.`,rd=`„%s” jest teraz na liście, ale wszystkie miejsca są zajęte. Najpierw wyłącz inne słowo wybudzające, potem wybierz „%s”.`,id=`Pisać`,ad=`Test`,od=`Szczegóły`,sd=`Pobierz`,cd=`Oczekiwano`,ld=`Błędy`,ud=`Folder`,dd=`Języki`,fd=`Model`,pd=`Modele`,md=`Rozmiar`,hd=`Użyj`,gd=`poprawnie`,_d=`pobrano`,vd=`pobieranie`,yd=`niepowodzenie`,bd=`parametrów`,xd=`szybkość`,Sd=`przekroczenia czasu`,Cd=`szybko`,wd=`średnio`,Td=`wolno`,Ed=`test w toku`,Dd=`synteza`,Od={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s audio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Satelita, który jest nadal skonfigurowany, pojawi się ponownie po połączeniu.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:$l,custom_assistant_Answer:eu,"custom_assistant_Audio file":`Plik audio`,custom_assistant_Cancel:tu,custom_assistant_Chat:nu,"custom_assistant_Clear chat":`Wyczyść czat`,"custom_assistant_Click for details":`Kliknij, aby zobaczyć szczegóły`,custom_assistant_Close:ru,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Zwiń wszystko`,custom_assistant_Context:iu,custom_assistant_Copied:au,custom_assistant_Copy:ou,"custom_assistant_Copy everything as JSON":`Kopiuj wszystko jako JSON`,custom_assistant_Delete:su,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Pamięć podręczna urządzenia została wyczyszczona.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Dialog: wszystko, co powiesz, staje się pytaniem — dopóki go nie zakończysz`,"custom_assistant_Dialog: hearing you…":`Dialog: słyszę cię …`,"custom_assistant_Dialog: listening…":`Dialog: słucham …`,"custom_assistant_Dialog: speaking…":`Dialog: mówię …`,"custom_assistant_Dialog: thinking…":`Dialog: myślę …`,"custom_assistant_Download as JSON":`Pobierz jako JSON`,"custom_assistant_End the dialog":`Zakończ dialog`,custom_assistant_Error:cu,"custom_assistant_Expand all":`Rozwiń wszystko`,"custom_assistant_Follow-up":`Pytanie zwrotne`,"custom_assistant_Hide disabled":`Ukryj wyłączone`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:lu,"custom_assistant_Last seen":`Ostatnio widziany`,"custom_assistant_Listening…":`Słuchający…`,"custom_assistant_Loading…":`Ładowanie…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Model lokalny`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Język nazwy: %s`,"custom_assistant_No answer":`Brak odpowiedzi`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Nie wykryto urządzeń. Przypisz stany do pomieszczeń i funkcji w ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Brak wiadomości. Wpisz pytanie poniżej.`,"custom_assistant_No processing steps were recorded for this request.":`Dla tego żądania nie zapisano kroków przetwarzania. Szczegóły są przechowywane dla ostatnich 200 żądań.`,"custom_assistant_No satellites registered yet.":`Nie zarejestrowano jeszcze żadnych satelitów.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Nic nie rozpoznano`,"custom_assistant_Per-device permissions":`Uprawnienia na urządzenie`,"custom_assistant_Play answer (backend TTS)":`Odtwórz odpowiedź (TTS w tle)`,"custom_assistant_Please select a .tflite model file":`Wybierz plik modelu .tflite`,custom_assistant_Question:uu,"custom_assistant_Read answers aloud":`Przeczytaj odpowiedzi na głos`,custom_assistant_Recognized:du,custom_assistant_Record:fu,"custom_assistant_Recorded audio":`Nagrane audio`,"custom_assistant_Refresh device cache":`Odśwież pamięć podręczną urządzenia`,"custom_assistant_Remove satellite":`Usuń satelitę`,"custom_assistant_Remove satellite %s and all its states?":`Usunąć satelitę %s i wszystkie jego stany?`,"custom_assistant_Reply audio":`Audio odpowiedzi`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:pu,"custom_assistant_Request details":`Szczegóły żądania`,custom_assistant_Room:mu,custom_assistant_Routine:hu,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:gu,custom_assistant_Satellites:_u,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Przed rozpoczęciem czatu zapisz konfigurację (instancja zostanie uruchomiona ponownie).`,custom_assistant_Script:vu,"custom_assistant_Send announcement":`Wyślij ogłoszenie`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:yu,custom_assistant_Speak:bu,"custom_assistant_Speak on all satellites":`Mów na wszystkich satelitach`,"custom_assistant_Speak the test sentence and recognize it":`Wypowiedz zdanie testowe i je rozpoznaj`,"custom_assistant_Speech output":`Synteza mowy`,"custom_assistant_Speech recognition":`Rozpoznawanie mowy`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Synteza mowy`,custom_assistant_Spoken:xu,"custom_assistant_Start the assistant instance to chat.":`Uruchom asystenta, aby rozpocząć rozmowę.`,"custom_assistant_Start the assistant instance to load the device list.":`Uruchom instancję asystenta, aby załadować listę urządzeń.`,custom_assistant_State:Su,"custom_assistant_States read":`Odczytane stany`,"custom_assistant_States written":`Zapisane stany`,custom_assistant_Status:Cu,custom_assistant_Steps:wu,custom_assistant_Stop:Tu,"custom_assistant_Stop listening":`Przestań słuchać`,"custom_assistant_Stop reading answers aloud":`Przestań czytać odpowiedzi na głos`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Czat testowy`,"custom_assistant_Test sentence":`Zdanie testowe`,"custom_assistant_Test voice":`Testuj głos`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`Dialog wymaga rozpoznawania mowy: włącz głos na karcie Głos.`,"custom_assistant_The instance must be running to test the voice.":`Aby przetestować głos, instancja musi działać.`,"custom_assistant_The microphone could not be opened:":`Nie udało się otworzyć mikrofonu:`,"custom_assistant_The microphone only works over https or on localhost.":`Mikrofon działa tylko przez https lub na localhost.`,"custom_assistant_Thinking…":`Myślący…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:Eu,custom_assistant_Tool:Du,"custom_assistant_Tool calls":`Wywołania narzędzi`,"custom_assistant_Tool result":`Wynik narzędzia`,"custom_assistant_Tools & states":`Narzędzia i stany`,"custom_assistant_Total duration":`Całkowity czas`,"custom_assistant_Translate all missing (%s)":`Przetłumacz wszystkie brakujące (%s)`,"custom_assistant_Translate name into %s":`Przetłumacz nazwę na %s`,"custom_assistant_Type a message…":`Wpisz wiadomość…`,custom_assistant_Upload:Ou,"custom_assistant_Upload own wake word":`Prześlij własne słowo wybudzające`,"custom_assistant_Uploaded wake word":`Przesłane słowo wybudzające`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Fraza wybudzająca`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:ku,"custom_assistant_change it on the Voice tab":`zmień to na karcie Głos`,custom_assistant_delete_wake_word_confirm:Au,custom_assistant_device:ju,custom_assistant_filter:Mu,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:Nu,"custom_assistant_in progress":`w toku`,custom_assistant_llm_downloading:Pu,custom_assistant_llm_error:Fu,custom_assistant_llm_idle:Iu,custom_assistant_llm_installing:Lu,custom_assistant_llm_loading:Ru,"custom_assistant_llm_not installed":`nie zainstalowano`,custom_assistant_llm_ready:zu,"custom_assistant_made in %s ms":`wygenerowano w %s ms`,"custom_assistant_no name in %s (showing %s)":`Brak nazwy w "%s" — wyświetlanie "%s"`,custom_assistant_offline:Bu,custom_assistant_online:Vu,custom_assistant_read:Hu,"custom_assistant_recognized in %s ms":`rozpoznano w %s ms`,custom_assistant_room:Uu,custom_assistant_sat_idle:Wu,custom_assistant_sat_listening:Gu,custom_assistant_sat_offline:Ku,custom_assistant_sat_processing:qu,custom_assistant_sat_speaking:Ju,custom_assistant_type:`Typ`,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:Yu,custom_assistant_wake_word_hint:Xu,custom_assistant_wake_word_phrase_hint:Zu,custom_assistant_wake_word_upload_hint:Qu,custom_assistant_wake_word_uploaded:$u,"custom_assistant_Shipped with the adapter":`Dostarczone z adapterem`,custom_assistant_bundled_wake_word_hint:ed,custom_assistant_wake_word_installed:td,custom_assistant_wake_word_installed_replaced:nd,custom_assistant_wake_word_installed_full:rd,custom_assistant_write:id,"custom_assistant_Add a model":`Dodaj model`,"custom_assistant_Answer time":`Czas odpowiedzi`,"custom_assistant_Asked / answered / handed over":`Zadane / odpowiedziane / przekazane`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Zadaje załadowanemu modelowi pytania testowe w języku asystenta i po angielsku: pytania o dom musi przekazać dalej, ogólne poprawnie odpowiedzieć`,custom_assistant_Benchmark:ad,"custom_assistant_Delete model?":`Usunąć model?`,custom_assistant_Details:od,custom_assistant_Download:sd,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Szacunek na podstawie rozmiaru modelu, nie pomiar. Prawdziwe wartości daje test.`,custom_assistant_Expected:cd,custom_assistant_Failures:ld,"custom_assistant_First token":`Pierwszy token`,custom_assistant_Folder:ud,"custom_assistant_Free on the disk":`Wolne na dysku`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Linki Hugging Face są w porządku, także hf:org/repo/file.gguf`,custom_assistant_Languages:dd,"custom_assistant_Load time":`Czas ładowania`,"custom_assistant_Loaded model":`Załadowany model`,custom_assistant_Model:fd,custom_assistant_Models:pd,"custom_assistant_No models in this folder yet. Download one below.":`W tym folderze nie ma jeszcze modeli. Pobierz model poniżej.`,"custom_assistant_Own model: link to a .gguf file":`Własny model: link do pliku .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Zadane pytania / odpowiedziane przez model / przekazane do następnego poziomu`,"custom_assistant_Reset statistics":`Resetuj statystyki`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Zapisz ustawienia, aby załadować wybrany model. Instancja uruchomi się ponownie.`,custom_assistant_Size:md,"custom_assistant_Start the instance to manage the local models.":`Uruchom instancję, aby zarządzać modelami lokalnymi.`,"custom_assistant_The active model cannot be deleted":`Aktywnego modelu nie można usunąć`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`Silnik nie jest jeszcze zainstalowany. Zainstaluj go na pierwszej karcie („Zainstaluj model lokalny”).`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Plik %s zostanie usunięty z dysku. Jego statystyki zostaną.`,"custom_assistant_Time until the first word: reading the question":`Czas do pierwszego słowa: czytanie pytania`,"custom_assistant_Timeouts and errors among the questions asked":`Przekroczenia czasu i błędy wśród zadanych pytań`,"custom_assistant_Tokens/s":`Tokeny/s`,custom_assistant_Use:hd,custom_assistant_correct:gd,custom_assistant_downloaded:_d,custom_assistant_downloading:vd,custom_assistant_failed:yd,"custom_assistant_hand over":`przekazać`,"custom_assistant_last used":`ostatnio użyto`,"custom_assistant_many languages":`wiele języków`,"custom_assistant_missed hand-overs":`pominięte przekazania`,"custom_assistant_needless hand-overs":`zbędne przekazania`,"custom_assistant_not enough space":`za mało miejsca`,"custom_assistant_not the language of the assistant":`to nie język asystenta`,custom_assistant_parameters:bd,custom_assistant_speed:xd,custom_assistant_timeouts:Sd,"custom_assistant_wrong answers":`błędne odpowiedzi`,"custom_assistant_very fast":`bardzo szybko`,custom_assistant_fast:Cd,custom_assistant_medium:wd,custom_assistant_slow:Td,custom_assistant_llm_benchmark:Ed,"Model folder":`Folder modeli`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Ścieżka bezwzględna, np. /mnt/ssd/llm. Puste = folder danych instancji. Modele pobrane już gdzie indziej nie są przenoszone.`,"custom_assistant_Start the instance to test the voice":`Uruchom instancję, aby przetestować głos`,"custom_assistant_Try this voice":`Wypróbuj ten głos`,custom_assistant_synthesis:Dd},kd=e({custom_assistant_Announcement:()=>Ad,custom_assistant_Answer:()=>jd,custom_assistant_Benchmark:()=>Lf,custom_assistant_Cancel:()=>Md,custom_assistant_Chat:()=>Nd,custom_assistant_Close:()=>Pd,custom_assistant_Context:()=>Fd,custom_assistant_Copied:()=>Id,custom_assistant_Copy:()=>Ld,custom_assistant_Delete:()=>Rd,custom_assistant_Details:()=>Rf,custom_assistant_Download:()=>zf,custom_assistant_Error:()=>zd,custom_assistant_Expected:()=>Bf,custom_assistant_Failures:()=>Vf,custom_assistant_Folder:()=>Hf,custom_assistant_Host:()=>Bd,custom_assistant_Languages:()=>Uf,custom_assistant_Model:()=>Wf,custom_assistant_Models:()=>Gf,custom_assistant_Question:()=>Vd,custom_assistant_Recognized:()=>Hd,custom_assistant_Record:()=>Ud,custom_assistant_Request:()=>Wd,custom_assistant_Room:()=>Gd,custom_assistant_Routine:()=>Kd,custom_assistant_Satellite:()=>qd,custom_assistant_Satellites:()=>Jd,custom_assistant_Script:()=>Yd,custom_assistant_Size:()=>Kf,custom_assistant_Source:()=>Xd,custom_assistant_Speak:()=>Zd,custom_assistant_Spoken:()=>Qd,custom_assistant_State:()=>$d,custom_assistant_Status:()=>ef,custom_assistant_Steps:()=>tf,custom_assistant_Stop:()=>nf,custom_assistant_Time:()=>rf,custom_assistant_Tool:()=>af,custom_assistant_Upload:()=>of,custom_assistant_Use:()=>qf,custom_assistant_auto:()=>sf,custom_assistant_bundled_wake_word_hint:()=>Mf,custom_assistant_correct:()=>Jf,custom_assistant_delete_wake_word_confirm:()=>cf,custom_assistant_device:()=>lf,custom_assistant_downloaded:()=>Yf,custom_assistant_downloading:()=>Xf,custom_assistant_failed:()=>Zf,custom_assistant_fast:()=>tp,custom_assistant_filter:()=>uf,custom_assistant_hint:()=>df,custom_assistant_llm_benchmark:()=>ip,custom_assistant_llm_downloading:()=>ff,custom_assistant_llm_error:()=>pf,custom_assistant_llm_idle:()=>mf,custom_assistant_llm_installing:()=>hf,custom_assistant_llm_loading:()=>gf,custom_assistant_llm_ready:()=>_f,custom_assistant_medium:()=>np,custom_assistant_offline:()=>vf,custom_assistant_online:()=>yf,custom_assistant_parameters:()=>Qf,custom_assistant_read:()=>`Ler`,custom_assistant_room:()=>bf,custom_assistant_sat_idle:()=>xf,custom_assistant_sat_listening:()=>Sf,custom_assistant_sat_offline:()=>Cf,custom_assistant_sat_processing:()=>wf,custom_assistant_sat_speaking:()=>Tf,custom_assistant_slow:()=>rp,custom_assistant_speed:()=>$f,custom_assistant_synthesis:()=>ap,custom_assistant_timeouts:()=>ep,custom_assistant_type:()=>Ef,custom_assistant_wake_word_deleted:()=>Df,custom_assistant_wake_word_hint:()=>Of,custom_assistant_wake_word_installed:()=>Nf,custom_assistant_wake_word_installed_full:()=>Ff,custom_assistant_wake_word_installed_replaced:()=>Pf,custom_assistant_wake_word_phrase_hint:()=>kf,custom_assistant_wake_word_upload_hint:()=>Af,custom_assistant_wake_word_uploaded:()=>jf,custom_assistant_write:()=>If,default:()=>op}),Ad=`Anúncio`,jd=`Resposta`,Md=`Cancel`,Nd=`Chat`,Pd=`Close`,Fd=`Contexto`,Id=`Copiado`,Ld=`Copiar`,Rd=`Delete`,zd=`Erro`,Bd=`Hospedar`,Vd=`Pergunta`,Hd=`Reconhecido`,Ud=`Gravar`,Wd=`Pedido`,Gd=`Room`,Kd=`Routine`,qd=`Satélite`,Jd=`Satélites`,Yd=`Script`,Xd=`Source`,Zd=`Falar`,Qd=`Falado`,$d=`State`,ef=`Status`,tf=`Passos`,nf=`Parar`,rf=`Hora`,af=`Ferramenta`,of=`Carregar`,sf=`auto`,cf=`Eliminar "%s"? Deixará de ser oferecido aos dispositivos; um dispositivo que já o transferiu mantém-no.`,lf=`Dispositivo`,uf=`Filtro`,df=`Desmarque a opção "Ler" para ocultar um dispositivo do assistente ou desmarque a opção "Gravar" para mantê-lo somente leitura (por exemplo, fechaduras). Os dispositivos são configurados por padrão para permitir totalmente o acesso.`,ff=`baixando modelo…`,pf=`erro`,mf=`parado`,hf=`Instalando o motor…`,gf=`carregando…`,_f=`preparar`,vf=`offline`,yf=`on-line`,bf=`Sala`,xf=`parado`,Sf=`audição`,Cf=`offline`,wf=`processamento`,Tf=`Falando`,Ef=`Tipo`,Df=`"%s" foi eliminado. Um dispositivo que já o transferiu mantém a sua cópia.`,Of=`A palavra de ativação é processada no dispositivo. Passe o mouse sobre uma palavra para ver em quais idiomas ela foi treinada — a maioria apenas em inglês.`,kf=`O que diz para acordar o dispositivo — é assim que aparece na lista.`,Af=`Um modelo microWakeWord: o ficheiro .tflite, de preferência com o respetivo .json. Outros tipos de modelo (openWakeWord, Porcupine) não podem ser instalados desta forma.`,jf=`"%s" foi carregado. Selecione-o acima para o ativar — o dispositivo transfere então o modelo.`,Mf=`Clique: carregar no dispositivo e ativar — substitui uma versão anterior da mesma palavra`,Nf=`"%s" está ativada — o dispositivo descarrega o modelo.`,Pf=`"%s" está ativada em vez de "%s" — o dispositivo descarrega o modelo.`,Ff=`"%s" já está na lista, mas todas as posições estão ocupadas. Desative primeiro outra palavra de ativação e depois selecione "%s".`,If=`Escrever`,Lf=`Teste`,Rf=`Detalhes`,zf=`Baixar`,Bf=`Esperado`,Vf=`Falhas`,Hf=`Pasta`,Uf=`Idiomas`,Wf=`Modelo`,Gf=`Modelos`,Kf=`Tamanho`,qf=`Usar`,Jf=`corretas`,Yf=`baixado`,Xf=`baixando`,Zf=`falhou`,Qf=`parâmetros`,$f=`velocidade`,ep=`tempos esgotados`,tp=`rápido`,np=`média`,rp=`lento`,ip=`testando`,ap=`síntese`,op={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s s de áudio`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Um satélite que ainda está configurado reaparece quando se conecta.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:Ad,custom_assistant_Answer:jd,"custom_assistant_Audio file":`Ficheiro de áudio`,custom_assistant_Cancel:Md,custom_assistant_Chat:Nd,"custom_assistant_Clear chat":`Chat limpo`,"custom_assistant_Click for details":`Clique para ver detalhes`,custom_assistant_Close:Pd,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Recolher tudo`,custom_assistant_Context:Fd,custom_assistant_Copied:Id,custom_assistant_Copy:Ld,"custom_assistant_Copy everything as JSON":`Copiar tudo como JSON`,custom_assistant_Delete:Rd,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Cache do dispositivo limpo.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Diálogo: tudo o que disseres torna-se uma pergunta, até o terminares`,"custom_assistant_Dialog: hearing you…":`Diálogo: estou a ouvir-te …`,"custom_assistant_Dialog: listening…":`Diálogo: a ouvir …`,"custom_assistant_Dialog: speaking…":`Diálogo: a falar …`,"custom_assistant_Dialog: thinking…":`Diálogo: a pensar …`,"custom_assistant_Download as JSON":`Transferir como JSON`,"custom_assistant_End the dialog":`Terminar o diálogo`,custom_assistant_Error:zd,"custom_assistant_Expand all":`Expandir tudo`,"custom_assistant_Follow-up":`Seguimento`,"custom_assistant_Hide disabled":`Ocultar desativado`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:Bd,"custom_assistant_Last seen":`Última vez visto`,"custom_assistant_Listening…":`Audição…`,"custom_assistant_Loading…":`A carregar…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Modelo local`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Idioma do nome: %s`,"custom_assistant_No answer":`Sem resposta`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Nenhum dispositivo detectado. Atribua estados a salas e funções no ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Ainda não há mensagens. Digite sua pergunta abaixo.`,"custom_assistant_No processing steps were recorded for this request.":`Não foram registados passos de processamento para este pedido. Os detalhes são guardados para os últimos 200 pedidos.`,"custom_assistant_No satellites registered yet.":`Nenhum satélite registrado ainda.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Nada reconhecido`,"custom_assistant_Per-device permissions":`Permissões por dispositivo`,"custom_assistant_Play answer (backend TTS)":`Reproduzir resposta (TTS em segundo plano)`,"custom_assistant_Please select a .tflite model file":`Selecione um ficheiro de modelo .tflite`,custom_assistant_Question:Vd,"custom_assistant_Read answers aloud":`Leia as respostas em voz alta.`,custom_assistant_Recognized:Hd,custom_assistant_Record:Ud,"custom_assistant_Recorded audio":`Áudio gravado`,"custom_assistant_Refresh device cache":`Atualizar cache do dispositivo`,"custom_assistant_Remove satellite":`Remover satélite`,"custom_assistant_Remove satellite %s and all its states?":`Remover o satélite %s e todos os seus estados?`,"custom_assistant_Reply audio":`Áudio da resposta`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:Wd,"custom_assistant_Request details":`Detalhes do pedido`,custom_assistant_Room:Gd,custom_assistant_Routine:Kd,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:qd,custom_assistant_Satellites:Jd,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Salve a configuração (a instância será reiniciada) antes de iniciar o chat.`,custom_assistant_Script:Yd,"custom_assistant_Send announcement":`Enviar anúncio`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:Xd,custom_assistant_Speak:Zd,"custom_assistant_Speak on all satellites":`Fale em todos os satélites`,"custom_assistant_Speak the test sentence and recognize it":`Falar a frase de teste e reconhecê-la`,"custom_assistant_Speech output":`Saída de voz`,"custom_assistant_Speech recognition":`Reconhecimento de voz`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Síntese de voz`,custom_assistant_Spoken:Qd,"custom_assistant_Start the assistant instance to chat.":`Inicie a instância do assistente para conversar.`,"custom_assistant_Start the assistant instance to load the device list.":`Inicie a instância do assistente para carregar a lista de dispositivos.`,custom_assistant_State:$d,"custom_assistant_States read":`Estados lidos`,"custom_assistant_States written":`Estados escritos`,custom_assistant_Status:ef,custom_assistant_Steps:tf,custom_assistant_Stop:nf,"custom_assistant_Stop listening":`Pare de ouvir`,"custom_assistant_Stop reading answers aloud":`Pare de ler as respostas em voz alta.`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Chat de teste`,"custom_assistant_Test sentence":`Frase de teste`,"custom_assistant_Test voice":`Testar voz`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`O diálogo precisa de reconhecimento de voz: ativa a voz no separador Voz.`,"custom_assistant_The instance must be running to test the voice.":`A instância tem de estar em execução para testar a voz.`,"custom_assistant_The microphone could not be opened:":`Não foi possível abrir o microfone:`,"custom_assistant_The microphone only works over https or on localhost.":`O microfone só funciona via https ou em localhost.`,"custom_assistant_Thinking…":`Pensamento…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:rf,custom_assistant_Tool:af,"custom_assistant_Tool calls":`Chamadas de ferramentas`,"custom_assistant_Tool result":`Resultado da ferramenta`,"custom_assistant_Tools & states":`Ferramentas e estados`,"custom_assistant_Total duration":`Duração total`,"custom_assistant_Translate all missing (%s)":`Traduzir todos os (%s) ausentes`,"custom_assistant_Translate name into %s":`Traduzir nome para %s`,"custom_assistant_Type a message…":`Digite uma mensagem…`,custom_assistant_Upload:of,"custom_assistant_Upload own wake word":`Carregar palavra de ativação própria`,"custom_assistant_Uploaded wake word":`Palavra de ativação carregada`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Frase de ativação`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:sf,"custom_assistant_change it on the Voice tab":`Altere isso na guia Voz.`,custom_assistant_delete_wake_word_confirm:cf,custom_assistant_device:lf,custom_assistant_filter:uf,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:df,"custom_assistant_in progress":`em curso`,custom_assistant_llm_downloading:ff,custom_assistant_llm_error:pf,custom_assistant_llm_idle:mf,custom_assistant_llm_installing:hf,custom_assistant_llm_loading:gf,"custom_assistant_llm_not installed":`não instalado`,custom_assistant_llm_ready:_f,"custom_assistant_made in %s ms":`gerado em %s ms`,"custom_assistant_no name in %s (showing %s)":`Nenhum nome em "%s" — exibindo "%s"`,custom_assistant_offline:vf,custom_assistant_online:yf,custom_assistant_read:`Ler`,"custom_assistant_recognized in %s ms":`reconhecido em %s ms`,custom_assistant_room:bf,custom_assistant_sat_idle:xf,custom_assistant_sat_listening:Sf,custom_assistant_sat_offline:Cf,custom_assistant_sat_processing:wf,custom_assistant_sat_speaking:Tf,custom_assistant_type:Ef,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:Df,custom_assistant_wake_word_hint:Of,custom_assistant_wake_word_phrase_hint:kf,custom_assistant_wake_word_upload_hint:Af,custom_assistant_wake_word_uploaded:jf,"custom_assistant_Shipped with the adapter":`Incluídas com o adaptador`,custom_assistant_bundled_wake_word_hint:Mf,custom_assistant_wake_word_installed:Nf,custom_assistant_wake_word_installed_replaced:Pf,custom_assistant_wake_word_installed_full:Ff,custom_assistant_write:If,"custom_assistant_Add a model":`Adicionar um modelo`,"custom_assistant_Answer time":`Tempo de resposta`,"custom_assistant_Asked / answered / handed over":`Perguntadas / respondidas / encaminhadas`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Faz perguntas de teste ao modelo carregado no idioma do assistente e em inglês: perguntas sobre a casa deve encaminhar, as gerais responder corretamente`,custom_assistant_Benchmark:Lf,"custom_assistant_Delete model?":`Excluir o modelo?`,custom_assistant_Details:Rf,custom_assistant_Download:zf,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Estimativa pelo tamanho do modelo, não medida. O teste dá números reais.`,custom_assistant_Expected:Bf,custom_assistant_Failures:Vf,"custom_assistant_First token":`Primeiro token`,custom_assistant_Folder:Hf,"custom_assistant_Free on the disk":`Livre no disco`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Links do Hugging Face servem, também hf:org/repo/file.gguf`,custom_assistant_Languages:Uf,"custom_assistant_Load time":`Tempo de carregamento`,"custom_assistant_Loaded model":`Modelo carregado`,custom_assistant_Model:Wf,custom_assistant_Models:Gf,"custom_assistant_No models in this folder yet. Download one below.":`Ainda não há modelos nesta pasta. Baixe um abaixo.`,"custom_assistant_Own model: link to a .gguf file":`Modelo próprio: link para um arquivo .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Perguntas feitas / respondidas pelo modelo / encaminhadas ao próximo nível`,"custom_assistant_Reset statistics":`Redefinir estatísticas`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Salve as configurações para carregar o modelo escolhido. A instância reinicia.`,custom_assistant_Size:Kf,"custom_assistant_Start the instance to manage the local models.":`Inicie a instância para gerenciar os modelos locais.`,"custom_assistant_The active model cannot be deleted":`O modelo ativo não pode ser excluído`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`O motor ainda não está instalado. Instale-o na primeira aba ("Instalar modelo local").`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`O arquivo %s é excluído do disco. Suas estatísticas permanecem.`,"custom_assistant_Time until the first word: reading the question":`Tempo até a primeira palavra: leitura da pergunta`,"custom_assistant_Timeouts and errors among the questions asked":`Tempos esgotados e erros entre as perguntas feitas`,"custom_assistant_Tokens/s":`Tokens/s`,custom_assistant_Use:qf,custom_assistant_correct:Jf,custom_assistant_downloaded:Yf,custom_assistant_downloading:Xf,custom_assistant_failed:Zf,"custom_assistant_hand over":`encaminhar`,"custom_assistant_last used":`último uso`,"custom_assistant_many languages":`muitos idiomas`,"custom_assistant_missed hand-overs":`encaminhamentos perdidos`,"custom_assistant_needless hand-overs":`encaminhamentos desnecessários`,"custom_assistant_not enough space":`espaço insuficiente`,"custom_assistant_not the language of the assistant":`não é o idioma do assistente`,custom_assistant_parameters:Qf,custom_assistant_speed:$f,custom_assistant_timeouts:ep,"custom_assistant_wrong answers":`respostas erradas`,"custom_assistant_very fast":`muito rápido`,custom_assistant_fast:tp,custom_assistant_medium:np,custom_assistant_slow:rp,custom_assistant_llm_benchmark:ip,"Model folder":`Pasta dos modelos`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Caminho absoluto, p. ex. /mnt/ssd/llm. Vazio = pasta de dados da instância. Modelos já baixados em outro lugar não são movidos.`,"custom_assistant_Start the instance to test the voice":`Inicie a instância para testar a voz`,"custom_assistant_Try this voice":`Experimentar esta voz`,custom_assistant_synthesis:ap},sp=e({custom_assistant_Announcement:()=>cp,custom_assistant_Answer:()=>lp,custom_assistant_Benchmark:()=>hm,custom_assistant_Cancel:()=>up,custom_assistant_Chat:()=>dp,custom_assistant_Close:()=>fp,custom_assistant_Context:()=>pp,custom_assistant_Copied:()=>mp,custom_assistant_Copy:()=>hp,custom_assistant_Delete:()=>gp,custom_assistant_Details:()=>gm,custom_assistant_Download:()=>_m,custom_assistant_Error:()=>_p,custom_assistant_Expected:()=>vm,custom_assistant_Failures:()=>ym,custom_assistant_Folder:()=>bm,custom_assistant_Host:()=>vp,custom_assistant_Languages:()=>xm,custom_assistant_Model:()=>Sm,custom_assistant_Models:()=>Cm,custom_assistant_Question:()=>yp,custom_assistant_Recognized:()=>bp,custom_assistant_Record:()=>xp,custom_assistant_Request:()=>Sp,custom_assistant_Room:()=>Cp,custom_assistant_Routine:()=>wp,custom_assistant_Satellite:()=>Tp,custom_assistant_Satellites:()=>Ep,custom_assistant_Script:()=>Dp,custom_assistant_Size:()=>wm,custom_assistant_Source:()=>Op,custom_assistant_Speak:()=>kp,custom_assistant_Spoken:()=>Ap,custom_assistant_State:()=>jp,custom_assistant_Status:()=>Mp,custom_assistant_Steps:()=>Np,custom_assistant_Stop:()=>Pp,custom_assistant_Time:()=>Fp,custom_assistant_Tool:()=>Ip,custom_assistant_Upload:()=>Lp,custom_assistant_Use:()=>Tm,custom_assistant_auto:()=>Rp,custom_assistant_bundled_wake_word_hint:()=>um,custom_assistant_correct:()=>Em,custom_assistant_delete_wake_word_confirm:()=>zp,custom_assistant_device:()=>Bp,custom_assistant_downloaded:()=>Dm,custom_assistant_downloading:()=>Om,custom_assistant_failed:()=>km,custom_assistant_fast:()=>Nm,custom_assistant_filter:()=>Vp,custom_assistant_hint:()=>Hp,custom_assistant_llm_benchmark:()=>Im,custom_assistant_llm_downloading:()=>Up,custom_assistant_llm_error:()=>Wp,custom_assistant_llm_idle:()=>Gp,custom_assistant_llm_installing:()=>Kp,custom_assistant_llm_loading:()=>qp,custom_assistant_llm_ready:()=>Jp,custom_assistant_medium:()=>Pm,custom_assistant_offline:()=>Yp,custom_assistant_online:()=>Xp,custom_assistant_parameters:()=>Am,custom_assistant_read:()=>Zp,custom_assistant_room:()=>Qp,custom_assistant_sat_idle:()=>$p,custom_assistant_sat_listening:()=>em,custom_assistant_sat_offline:()=>tm,custom_assistant_sat_processing:()=>nm,custom_assistant_sat_speaking:()=>rm,custom_assistant_slow:()=>Fm,custom_assistant_speed:()=>jm,custom_assistant_synthesis:()=>Lm,custom_assistant_timeouts:()=>Mm,custom_assistant_type:()=>im,custom_assistant_wake_word_deleted:()=>am,custom_assistant_wake_word_hint:()=>om,custom_assistant_wake_word_installed:()=>dm,custom_assistant_wake_word_installed_full:()=>pm,custom_assistant_wake_word_installed_replaced:()=>fm,custom_assistant_wake_word_phrase_hint:()=>sm,custom_assistant_wake_word_upload_hint:()=>cm,custom_assistant_wake_word_uploaded:()=>lm,custom_assistant_write:()=>mm,default:()=>Rm}),cp=`Объявление`,lp=`Ответ`,up=`Отмена`,dp=`Чат`,fp=`Закрыть`,pp=`Контекст`,mp=`Скопировано`,hp=`Копировать`,gp=`Удалить`,_p=`Ошибка`,vp=`Хозяин`,yp=`Вопрос`,bp=`Распознано`,xp=`Записать`,Sp=`Запрос`,Cp=`Комната`,wp=`Сценарий`,Tp=`Спутник`,Ep=`Спутники`,Dp=`Скрипт`,Op=`Источник`,kp=`Говорить`,Ap=`Произнесено`,jp=`Состояние`,Mp=`Статус`,Np=`Шаги`,Pp=`Стоп`,Fp=`Время`,Ip=`Инструмент`,Lp=`Загрузить`,Rp=`авто`,zp=`Удалить «%s»? Оно больше не будет предлагаться устройствам; устройство, которое уже скачало его, сохранит его.`,Bp=`Устройство`,Vp=`Фильтр`,Hp=`Снимите флажок «Чтение», чтобы скрыть устройство от голосового помощника, или снимите флажок «Запись», чтобы оставить его только для чтения (например, блокировка). По умолчанию устройствам разрешен полный доступ.`,Up=`Загрузка модели…`,Wp=`ошибка`,Gp=`праздный`,Kp=`установка двигателя…`,qp=`Загрузка…`,Jp=`готовый`,Yp=`офлайн`,Xp=`онлайн`,Zp=`Читать`,Qp=`Комната`,$p=`праздный`,em=`слушание`,tm=`офлайн`,nm=`обработка`,rm=`Говорящий`,im=`Тип`,am=`«%s» удалено. Устройство, которое уже скачало его, сохраняет свою копию.`,om=`Слово активации обрабатывается на устройстве. Наведите курсор на слово, чтобы увидеть, на каких языках оно обучено — большинство только на английском.`,sm=`Что нужно сказать, чтобы разбудить устройство, — так оно будет показано в списке.`,cm=`Модель microWakeWord: файл .tflite, желательно вместе с его .json. Другие типы моделей (openWakeWord, Porcupine) так установить нельзя.`,lm=`«%s» загружено. Выберите его выше, чтобы активировать, — тогда устройство скачает модель.`,um=`Клик: загрузить на устройство и включить — заменяет более старую версию того же слова`,dm=`«%s» включено — устройство загружает модель.`,fm=`«%s» включено вместо «%s» — устройство загружает модель.`,pm=`«%s» теперь в списке, но все места заняты. Сначала отключите другое слово активации, затем выберите «%s».`,mm=`Писать`,hm=`Тест`,gm=`Подробности`,_m=`Скачать`,vm=`Ожидалось`,ym=`Сбои`,bm=`Папка`,xm=`Языки`,Sm=`Модель`,Cm=`Модели`,wm=`Размер`,Tm=`Использовать`,Em=`верно`,Dm=`скачано`,Om=`загружается`,km=`ошибка`,Am=`параметров`,jm=`скорость`,Mm=`тайм-ауты`,Nm=`быстро`,Pm=`средне`,Fm=`медленно`,Im=`идёт тест`,Lm=`синтез`,Rm={"custom_assistant_%s of %s active":`активно %s из %s`,"custom_assistant_%s s audio":`%s с аудио`,"custom_assistant_(no spoken answer)":`(без голосового ответа)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Сателлит, который всё ещё настроен, снова появится при подключении.`,"custom_assistant_All sources":`Все источники`,custom_assistant_Announcement:cp,custom_assistant_Answer:lp,"custom_assistant_Audio file":`Аудиофайл`,custom_assistant_Cancel:up,custom_assistant_Chat:dp,"custom_assistant_Clear chat":`Четкий чат`,"custom_assistant_Click for details":`Нажмите для подробностей`,custom_assistant_Close:fp,"custom_assistant_Cloud LLM":`Облачная LLM`,"custom_assistant_Collapse all":`Свернуть все`,custom_assistant_Context:pp,custom_assistant_Copied:mp,custom_assistant_Copy:hp,"custom_assistant_Copy everything as JSON":`Скопировать всё как JSON`,custom_assistant_Delete:gp,"custom_assistant_Delete the recorded history of all sources?":`Удалить записанную историю всех источников?`,"custom_assistant_Device cache cleared.":`Кэш устройства очищен.`,"custom_assistant_Device settings":`Настройки устройства`,"custom_assistant_Dialog: everything you say becomes a question":`Диалог: всё, что вы скажете, станет вопросом — пока вы его не завершите`,"custom_assistant_Dialog: hearing you…":`Диалог: слышу вас …`,"custom_assistant_Dialog: listening…":`Диалог: слушаю …`,"custom_assistant_Dialog: speaking…":`Диалог: говорю …`,"custom_assistant_Dialog: thinking…":`Диалог: думаю …`,"custom_assistant_Download as JSON":`Скачать как JSON`,"custom_assistant_End the dialog":`Завершить диалог`,custom_assistant_Error:_p,"custom_assistant_Expand all":`Развернуть все`,"custom_assistant_Follow-up":`Уточнение`,"custom_assistant_Hide disabled":`Скрыть отключено`,"custom_assistant_Hide processing details":`Скрыть детали обработки`,custom_assistant_Host:vp,"custom_assistant_Last seen":`Последний раз видели`,"custom_assistant_Listening…":`Слушаю…`,"custom_assistant_Loading…":`Загрузка…`,"custom_assistant_Local LLM":`Локальная LLM`,"custom_assistant_Local model":`Локальная модель`,"custom_assistant_Mic re-opened without wake word":`Микрофон снова открыт без слова активации (уточнение или вопрос)`,"custom_assistant_Name language: %s":`Название языка: %s`,"custom_assistant_No answer":`Нет ответа`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Устройства не обнаружены. Назначьте состояния комнатам и функциям в ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Сообщений пока нет. Задайте вопрос ниже.`,"custom_assistant_No processing steps were recorded for this request.":`Для этого запроса шаги обработки не сохранены. Подробности хранятся для последних 200 запросов.`,"custom_assistant_No satellites registered yet.":`Спутники пока не зарегистрированы.`,"custom_assistant_Not understood":`Не понято`,"custom_assistant_Nothing recognized":`Ничего не распознано`,"custom_assistant_Per-device permissions":`Разрешения для каждого устройства`,"custom_assistant_Play answer (backend TTS)":`Воспроизвести ответ (синтезатор речи на стороне сервера)`,"custom_assistant_Please select a .tflite model file":`Выберите файл модели .tflite`,custom_assistant_Question:yp,"custom_assistant_Read answers aloud":`Прочитайте ответы вслух.`,custom_assistant_Recognized:bp,custom_assistant_Record:xp,"custom_assistant_Recorded audio":`Записанное аудио`,"custom_assistant_Refresh device cache":`Обновить кэш устройства`,"custom_assistant_Remove satellite":`Удалить сателлит`,"custom_assistant_Remove satellite %s and all its states?":`Удалить сателлит %s со всеми его состояниями?`,"custom_assistant_Reply audio":`Аудио ответа`,"custom_assistant_Reply to a question":`Ответ на вопрос`,custom_assistant_Request:Sp,"custom_assistant_Request details":`Подробности запроса`,custom_assistant_Room:Cp,custom_assistant_Routine:wp,"custom_assistant_Rule-based NLU":`Правила NLU (локально)`,custom_assistant_Satellite:Tp,custom_assistant_Satellites:Ep,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Сохраните конфигурацию (при этом экземпляр перезапустится) перед началом чата.`,custom_assistant_Script:Dp,"custom_assistant_Send announcement":`Отправить объявление`,"custom_assistant_Settings for %s":`Настройки для %s`,"custom_assistant_Show processing details":`Показать детали обработки`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Показывает все запросы в реальном времени: сателлиты, Telegram, скрипты и этот чат.`,custom_assistant_Source:Op,custom_assistant_Speak:kp,"custom_assistant_Speak on all satellites":`Выступить на всех спутниках`,"custom_assistant_Speak the test sentence and recognize it":`Произнести тестовую фразу и распознать`,"custom_assistant_Speech output":`Синтез речи`,"custom_assistant_Speech recognition":`Распознавание речи`,"custom_assistant_Speech recognition time":`Время распознавания речи`,"custom_assistant_Speech synthesis":`Синтез речи`,custom_assistant_Spoken:Ap,"custom_assistant_Start the assistant instance to chat.":`Запустите экземпляр ассистента для начала чата.`,"custom_assistant_Start the assistant instance to load the device list.":`Запустите экземпляр помощника, чтобы загрузить список устройств.`,custom_assistant_State:jp,"custom_assistant_States read":`Прочитанные состояния`,"custom_assistant_States written":`Записанные состояния`,custom_assistant_Status:Mp,custom_assistant_Steps:Np,custom_assistant_Stop:Pp,"custom_assistant_Stop listening":`Прекратите слушать`,"custom_assistant_Stop reading answers aloud":`Прекратите зачитывать ответы вслух.`,"custom_assistant_Stop word":`Стоп-слово`,"custom_assistant_Test chat":`Тестовый чат`,"custom_assistant_Test sentence":`Тестовая фраза`,"custom_assistant_Test voice":`Проверить голос`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`Для диалога нужно распознавание речи: включите голос на вкладке «Голос».`,"custom_assistant_The instance must be running to test the voice.":`Для проверки голоса экземпляр должен быть запущен.`,"custom_assistant_The microphone could not be opened:":`Не удалось открыть микрофон:`,"custom_assistant_The microphone only works over https or on localhost.":`Микрофон работает только через https или на localhost.`,"custom_assistant_Thinking…":`Размышления…`,"custom_assistant_This satellite exposes no settings.":`Этот сателлит не предоставляет настроек.`,custom_assistant_Time:Fp,custom_assistant_Tool:Ip,"custom_assistant_Tool calls":`Вызовы инструментов`,"custom_assistant_Tool result":`Результат инструмента`,"custom_assistant_Tools & states":`Инструменты и состояния`,"custom_assistant_Total duration":`Общая длительность`,"custom_assistant_Translate all missing (%s)":`Переведите все отсутствующие (%s)`,"custom_assistant_Translate name into %s":`Переведите имя в %s`,"custom_assistant_Type a message…":`Введите сообщение…`,custom_assistant_Upload:Lp,"custom_assistant_Upload own wake word":`Загрузить своё слово активации`,"custom_assistant_Uploaded wake word":`Загруженное слово активации`,"custom_assistant_Wake word":`Слово активации`,"custom_assistant_Wake word phrase":`Фраза активации`,"custom_assistant_Wake words":`Слова активации`,custom_assistant_auto:Rp,"custom_assistant_change it on the Voice tab":`Измените это на вкладке «Голос».`,custom_assistant_delete_wake_word_confirm:zp,custom_assistant_device:Bp,custom_assistant_filter:Vp,"custom_assistant_follow-up":`продолжение`,custom_assistant_hint:Hp,"custom_assistant_in progress":`выполняется`,custom_assistant_llm_downloading:Up,custom_assistant_llm_error:Wp,custom_assistant_llm_idle:Gp,custom_assistant_llm_installing:Kp,custom_assistant_llm_loading:qp,"custom_assistant_llm_not installed":`не установлен`,custom_assistant_llm_ready:Jp,"custom_assistant_made in %s ms":`создано за %s мс`,"custom_assistant_no name in %s (showing %s)":`Имя отсутствует в "%s" — отображается "%s"`,custom_assistant_offline:Yp,custom_assistant_online:Xp,custom_assistant_read:Zp,"custom_assistant_recognized in %s ms":`распознано за %s мс`,custom_assistant_room:Qp,custom_assistant_sat_idle:$p,custom_assistant_sat_listening:em,custom_assistant_sat_offline:tm,custom_assistant_sat_processing:nm,custom_assistant_sat_speaking:rm,custom_assistant_type:im,"custom_assistant_waits for reply":`ждёт ответа`,custom_assistant_wake_word_deleted:am,custom_assistant_wake_word_hint:om,custom_assistant_wake_word_phrase_hint:sm,custom_assistant_wake_word_upload_hint:cm,custom_assistant_wake_word_uploaded:lm,"custom_assistant_Shipped with the adapter":`Поставляются с адаптером`,custom_assistant_bundled_wake_word_hint:um,custom_assistant_wake_word_installed:dm,custom_assistant_wake_word_installed_replaced:fm,custom_assistant_wake_word_installed_full:pm,custom_assistant_write:mm,"custom_assistant_Add a model":`Добавить модель`,"custom_assistant_Answer time":`Время ответа`,"custom_assistant_Asked / answered / handed over":`Задано / отвечено / передано`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Задаёт загруженной модели тестовые вопросы на языке ассистента и на английском: вопросы про дом она должна передать дальше, а на общие ответить правильно`,custom_assistant_Benchmark:hm,"custom_assistant_Delete model?":`Удалить модель?`,custom_assistant_Details:gm,custom_assistant_Download:_m,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Оценка по размеру модели, не измерение. Реальные цифры даёт тест.`,custom_assistant_Expected:vm,custom_assistant_Failures:ym,"custom_assistant_First token":`Первый токен`,custom_assistant_Folder:bm,"custom_assistant_Free on the disk":`Свободно на диске`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Подходят ссылки Hugging Face, а также hf:org/repo/file.gguf`,custom_assistant_Languages:xm,"custom_assistant_Load time":`Время загрузки`,"custom_assistant_Loaded model":`Загруженная модель`,custom_assistant_Model:Sm,custom_assistant_Models:Cm,"custom_assistant_No models in this folder yet. Download one below.":`В этой папке пока нет моделей. Скачайте модель ниже.`,"custom_assistant_Own model: link to a .gguf file":`Своя модель: ссылка на файл .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Задано вопросов / отвечено моделью / передано следующей ступени`,"custom_assistant_Reset statistics":`Сбросить статистику`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Сохраните настройки, чтобы загрузить выбранную модель. Инстанция перезапустится.`,custom_assistant_Size:wm,"custom_assistant_Start the instance to manage the local models.":`Запустите инстанцию, чтобы управлять локальными моделями.`,"custom_assistant_The active model cannot be deleted":`Активную модель удалить нельзя`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`Движок ещё не установлен. Установите его на первой вкладке («Установить локальную модель»).`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Файл %s будет удалён с диска. Статистика сохранится.`,"custom_assistant_Time until the first word: reading the question":`Время до первого слова: чтение вопроса`,"custom_assistant_Timeouts and errors among the questions asked":`Тайм-ауты и ошибки среди заданных вопросов`,"custom_assistant_Tokens/s":`Токенов/с`,custom_assistant_Use:Tm,custom_assistant_correct:Em,custom_assistant_downloaded:Dm,custom_assistant_downloading:Om,custom_assistant_failed:km,"custom_assistant_hand over":`передать`,"custom_assistant_last used":`последний раз`,"custom_assistant_many languages":`много языков`,"custom_assistant_missed hand-overs":`пропущенные передачи`,"custom_assistant_needless hand-overs":`лишние передачи`,"custom_assistant_not enough space":`мало места`,"custom_assistant_not the language of the assistant":`не язык ассистента`,custom_assistant_parameters:Am,custom_assistant_speed:jm,custom_assistant_timeouts:Mm,"custom_assistant_wrong answers":`неверные ответы`,"custom_assistant_very fast":`очень быстро`,custom_assistant_fast:Nm,custom_assistant_medium:Pm,custom_assistant_slow:Fm,custom_assistant_llm_benchmark:Im,"Model folder":`Папка моделей`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Абсолютный путь, например /mnt/ssd/llm. Пусто = папка данных инстанции. Уже скачанные в другое место модели не переносятся.`,"custom_assistant_Start the instance to test the voice":`Запустите экземпляр, чтобы проверить голос`,"custom_assistant_Try this voice":`Попробовать этот голос`,custom_assistant_synthesis:Lm},zm=e({custom_assistant_Announcement:()=>Bm,custom_assistant_Answer:()=>Vm,custom_assistant_Benchmark:()=>qh,custom_assistant_Cancel:()=>Hm,custom_assistant_Chat:()=>Um,custom_assistant_Close:()=>Wm,custom_assistant_Context:()=>Gm,custom_assistant_Copied:()=>Km,custom_assistant_Copy:()=>qm,custom_assistant_Delete:()=>Jm,custom_assistant_Details:()=>Jh,custom_assistant_Download:()=>Yh,custom_assistant_Error:()=>Ym,custom_assistant_Expected:()=>Xh,custom_assistant_Failures:()=>Zh,custom_assistant_Folder:()=>Qh,custom_assistant_Host:()=>Xm,custom_assistant_Languages:()=>$h,custom_assistant_Model:()=>eg,custom_assistant_Models:()=>tg,custom_assistant_Question:()=>Zm,custom_assistant_Recognized:()=>Qm,custom_assistant_Record:()=>$m,custom_assistant_Request:()=>eh,custom_assistant_Room:()=>th,custom_assistant_Routine:()=>nh,custom_assistant_Satellite:()=>rh,custom_assistant_Satellites:()=>ih,custom_assistant_Script:()=>ah,custom_assistant_Size:()=>ng,custom_assistant_Source:()=>oh,custom_assistant_Speak:()=>sh,custom_assistant_Spoken:()=>ch,custom_assistant_State:()=>lh,custom_assistant_Status:()=>uh,custom_assistant_Steps:()=>dh,custom_assistant_Stop:()=>fh,custom_assistant_Time:()=>ph,custom_assistant_Tool:()=>mh,custom_assistant_Upload:()=>hh,custom_assistant_Use:()=>rg,custom_assistant_auto:()=>gh,custom_assistant_bundled_wake_word_hint:()=>Hh,custom_assistant_correct:()=>ig,custom_assistant_delete_wake_word_confirm:()=>_h,custom_assistant_device:()=>vh,custom_assistant_downloaded:()=>ag,custom_assistant_downloading:()=>og,custom_assistant_failed:()=>sg,custom_assistant_fast:()=>dg,custom_assistant_filter:()=>yh,custom_assistant_hint:()=>bh,custom_assistant_llm_benchmark:()=>mg,custom_assistant_llm_downloading:()=>xh,custom_assistant_llm_error:()=>Sh,custom_assistant_llm_idle:()=>Ch,custom_assistant_llm_installing:()=>wh,custom_assistant_llm_loading:()=>Th,custom_assistant_llm_ready:()=>Eh,custom_assistant_medium:()=>fg,custom_assistant_offline:()=>Dh,custom_assistant_online:()=>Oh,custom_assistant_parameters:()=>cg,custom_assistant_read:()=>kh,custom_assistant_room:()=>Ah,custom_assistant_sat_idle:()=>jh,custom_assistant_sat_listening:()=>Mh,custom_assistant_sat_offline:()=>Nh,custom_assistant_sat_processing:()=>Ph,custom_assistant_sat_speaking:()=>Fh,custom_assistant_slow:()=>pg,custom_assistant_speed:()=>lg,custom_assistant_synthesis:()=>hg,custom_assistant_timeouts:()=>ug,custom_assistant_type:()=>Ih,custom_assistant_wake_word_deleted:()=>Lh,custom_assistant_wake_word_hint:()=>Rh,custom_assistant_wake_word_installed:()=>Uh,custom_assistant_wake_word_installed_full:()=>Gh,custom_assistant_wake_word_installed_replaced:()=>Wh,custom_assistant_wake_word_phrase_hint:()=>zh,custom_assistant_wake_word_upload_hint:()=>Bh,custom_assistant_wake_word_uploaded:()=>Vh,custom_assistant_write:()=>Kh,default:()=>gg}),Bm=`Оголошення`,Vm=`Відповідь`,Hm=`Cancel`,Um=`Chat`,Wm=`Close`,Gm=`Контекст`,Km=`Скопійовано`,qm=`Копіювати`,Jm=`Delete`,Ym=`Помилка`,Xm=`Хост`,Zm=`Питання`,Qm=`Розпізнано`,$m=`Записати`,eh=`Запит`,th=`Room`,nh=`Routine`,rh=`Супутник`,ih=`Супутники`,ah=`Script`,oh=`Source`,sh=`Говоріть`,ch=`Вимовлено`,lh=`State`,uh=`Статус`,dh=`Кроки`,fh=`Стоп`,ph=`Час`,mh=`Інструмент`,hh=`Завантажити`,gh=`авто`,_h=`Видалити «%s»? Його більше не буде запропоновано пристроям; пристрій, який уже завантажив його, збереже його.`,vh=`Пристрій`,yh=`Фільтр`,bh=`Зніміть позначку «Читання», щоб приховати пристрій від помічника, або «Запис», щоб залишити його в режимі лише для читання (наприклад, блокування). За замовчуванням пристрої повністю дозволені.`,xh=`завантаження моделі…`,Sh=`помилка`,Ch=`бездіяльність`,wh=`встановлення двигуна…`,Th=`завантаження…`,Eh=`готовий`,Dh=`офлайн`,Oh=`онлайн`,kh=`Читати`,Ah=`Кімната`,jh=`бездіяльність`,Mh=`прослуховування`,Nh=`офлайн`,Ph=`обробка`,Fh=`розмова`,Ih=`Тип`,Lh=`«%s» видалено. Пристрій, який уже завантажив його, зберігає свою копію.`,Rh=`Слово активації обробляється на пристрої. Наведіть курсор на слово, щоб побачити, якими мовами його навчено — більшість лише англійською.`,zh=`Що потрібно сказати, щоб розбудити пристрій, — так воно з'явиться у списку.`,Bh=`Модель microWakeWord: файл .tflite, бажано разом з його .json. Інші типи моделей (openWakeWord, Porcupine) так встановити не можна.`,Vh=`«%s» завантажено. Виберіть його вище, щоб активувати, — тоді пристрій завантажить модель.`,Hh=`Клік: завантажити на пристрій і ввімкнути — замінює старішу версію того самого слова`,Uh=`«%s» увімкнено — пристрій завантажує модель.`,Wh=`«%s» увімкнено замість «%s» — пристрій завантажує модель.`,Gh=`«%s» тепер у списку, але всі місця зайняті. Спершу вимкніть інше слово активації, потім виберіть «%s».`,Kh=`Написати`,qh=`Тест`,Jh=`Подробиці`,Yh=`Завантажити`,Xh=`Очікувалось`,Zh=`Збої`,Qh=`Папка`,$h=`Мови`,eg=`Модель`,tg=`Моделі`,ng=`Розмір`,rg=`Використати`,ig=`правильно`,ag=`завантажено`,og=`завантажується`,sg=`помилка`,cg=`параметрів`,lg=`швидкість`,ug=`тайм-аути`,dg=`швидко`,fg=`середньо`,pg=`повільно`,mg=`триває тест`,hg=`синтез`,gg={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s с аудіо`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`Сателіт, який усе ще налаштований, знову з’явиться після підключення.`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:Bm,custom_assistant_Answer:Vm,"custom_assistant_Audio file":`Аудіофайл`,custom_assistant_Cancel:Hm,custom_assistant_Chat:Um,"custom_assistant_Clear chat":`Очистити чат`,"custom_assistant_Click for details":`Натисніть для подробиць`,custom_assistant_Close:Wm,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`Згорнути все`,custom_assistant_Context:Gm,custom_assistant_Copied:Km,custom_assistant_Copy:qm,"custom_assistant_Copy everything as JSON":`Скопіювати все як JSON`,custom_assistant_Delete:Jm,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`Кеш пристрою очищено.`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`Діалог: усе, що ви скажете, стане запитанням — доки ви його не завершите`,"custom_assistant_Dialog: hearing you…":`Діалог: чую вас …`,"custom_assistant_Dialog: listening…":`Діалог: слухаю …`,"custom_assistant_Dialog: speaking…":`Діалог: говорю …`,"custom_assistant_Dialog: thinking…":`Діалог: думаю …`,"custom_assistant_Download as JSON":`Завантажити як JSON`,"custom_assistant_End the dialog":`Завершити діалог`,custom_assistant_Error:Ym,"custom_assistant_Expand all":`Розгорнути все`,"custom_assistant_Follow-up":`Уточнення`,"custom_assistant_Hide disabled":`Приховати вимкнено`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:Xm,"custom_assistant_Last seen":`Бачили востаннє`,"custom_assistant_Listening…":`Слухання…`,"custom_assistant_Loading…":`Завантаження…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`Локальна модель`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`Мова назви: %s`,"custom_assistant_No answer":`Немає відповіді`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`Пристроїв не виявлено. Призначте стани кімнатам та функціям в ioBroker.`,"custom_assistant_No messages yet. Type a question below.":`Поки що немає повідомлень. Введіть запитання нижче.`,"custom_assistant_No processing steps were recorded for this request.":`Для цього запиту кроки обробки не збережено. Подробиці зберігаються для останніх 200 запитів.`,"custom_assistant_No satellites registered yet.":`Поки що не зареєстровано жодного супутника.`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`Нічого не розпізнано`,"custom_assistant_Per-device permissions":`Дозволи для кожного пристрою`,"custom_assistant_Play answer (backend TTS)":`Відтворити відповідь (бекенд TTS)`,"custom_assistant_Please select a .tflite model file":`Виберіть файл моделі .tflite`,custom_assistant_Question:Zm,"custom_assistant_Read answers aloud":`Прочитайте відповіді вголос`,custom_assistant_Recognized:Qm,custom_assistant_Record:$m,"custom_assistant_Recorded audio":`Записане аудіо`,"custom_assistant_Refresh device cache":`Оновити кеш пристрою`,"custom_assistant_Remove satellite":`Видалити сателіт`,"custom_assistant_Remove satellite %s and all its states?":`Видалити сателіт %s з усіма його станами?`,"custom_assistant_Reply audio":`Аудіо відповіді`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:eh,"custom_assistant_Request details":`Подробиці запиту`,custom_assistant_Room:th,custom_assistant_Routine:nh,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:rh,custom_assistant_Satellites:ih,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`Збережіть конфігурацію (екземпляр перезавантажиться) перед спілкуванням у чаті.`,custom_assistant_Script:ah,"custom_assistant_Send announcement":`Надіслати оголошення`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:oh,custom_assistant_Speak:sh,"custom_assistant_Speak on all satellites":`Розмовляйте на всіх супутниках`,"custom_assistant_Speak the test sentence and recognize it":`Вимовити тестову фразу й розпізнати`,"custom_assistant_Speech output":`Синтез мовлення`,"custom_assistant_Speech recognition":`Розпізнавання мовлення`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`Синтез мовлення`,custom_assistant_Spoken:ch,"custom_assistant_Start the assistant instance to chat.":`Запустіть екземпляр помічника для спілкування в чаті.`,"custom_assistant_Start the assistant instance to load the device list.":`Запустіть екземпляр помічника, щоб завантажити список пристроїв.`,custom_assistant_State:lh,"custom_assistant_States read":`Прочитані стани`,"custom_assistant_States written":`Записані стани`,custom_assistant_Status:uh,custom_assistant_Steps:dh,custom_assistant_Stop:fh,"custom_assistant_Stop listening":`Перестань слухати`,"custom_assistant_Stop reading answers aloud":`Перестаньте читати відповіді вголос`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`Тестовий чат`,"custom_assistant_Test sentence":`Тестова фраза`,"custom_assistant_Test voice":`Перевірити голос`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`Для діалогу потрібне розпізнавання мовлення: увімкніть голос на вкладці «Голос».`,"custom_assistant_The instance must be running to test the voice.":`Щоб перевірити голос, екземпляр має бути запущений.`,"custom_assistant_The microphone could not be opened:":`Не вдалося відкрити мікрофон:`,"custom_assistant_The microphone only works over https or on localhost.":`Мікрофон працює лише через https або на localhost.`,"custom_assistant_Thinking…":`Мислення…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:ph,custom_assistant_Tool:mh,"custom_assistant_Tool calls":`Виклики інструментів`,"custom_assistant_Tool result":`Результат інструмента`,"custom_assistant_Tools & states":`Інструменти та стани`,"custom_assistant_Total duration":`Загальна тривалість`,"custom_assistant_Translate all missing (%s)":`Перекласти все, що відсутні (%s)`,"custom_assistant_Translate name into %s":`Перекладіть назву мовою %s`,"custom_assistant_Type a message…":`Введіть повідомлення…`,custom_assistant_Upload:hh,"custom_assistant_Upload own wake word":`Завантажити власне слово активації`,"custom_assistant_Uploaded wake word":`Завантажене слово активації`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`Фраза активації`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:gh,"custom_assistant_change it on the Voice tab":`змінити це на вкладці «Голос»`,custom_assistant_delete_wake_word_confirm:_h,custom_assistant_device:vh,custom_assistant_filter:yh,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:bh,"custom_assistant_in progress":`виконується`,custom_assistant_llm_downloading:xh,custom_assistant_llm_error:Sh,custom_assistant_llm_idle:Ch,custom_assistant_llm_installing:wh,custom_assistant_llm_loading:Th,"custom_assistant_llm_not installed":`не встановлено`,custom_assistant_llm_ready:Eh,"custom_assistant_made in %s ms":`створено за %s мс`,"custom_assistant_no name in %s (showing %s)":`Немає імені в "%s" — відображається "%s"`,custom_assistant_offline:Dh,custom_assistant_online:Oh,custom_assistant_read:kh,"custom_assistant_recognized in %s ms":`розпізнано за %s мс`,custom_assistant_room:Ah,custom_assistant_sat_idle:jh,custom_assistant_sat_listening:Mh,custom_assistant_sat_offline:Nh,custom_assistant_sat_processing:Ph,custom_assistant_sat_speaking:Fh,custom_assistant_type:Ih,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:Lh,custom_assistant_wake_word_hint:Rh,custom_assistant_wake_word_phrase_hint:zh,custom_assistant_wake_word_upload_hint:Bh,custom_assistant_wake_word_uploaded:Vh,"custom_assistant_Shipped with the adapter":`Постачаються з адаптером`,custom_assistant_bundled_wake_word_hint:Hh,custom_assistant_wake_word_installed:Uh,custom_assistant_wake_word_installed_replaced:Wh,custom_assistant_wake_word_installed_full:Gh,custom_assistant_write:Kh,"custom_assistant_Add a model":`Додати модель`,"custom_assistant_Answer time":`Час відповіді`,"custom_assistant_Asked / answered / handed over":`Задано / відповіли / передано`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`Ставить завантаженій моделі тестові питання мовою асистента та англійською: питання про дім вона має передати далі, а на загальні відповісти правильно`,custom_assistant_Benchmark:qh,"custom_assistant_Delete model?":`Видалити модель?`,custom_assistant_Details:Jh,custom_assistant_Download:Yh,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`Оцінка за розміром моделі, не вимірювання. Реальні цифри дає тест.`,custom_assistant_Expected:Xh,custom_assistant_Failures:Zh,"custom_assistant_First token":`Перший токен`,custom_assistant_Folder:Qh,"custom_assistant_Free on the disk":`Вільно на диску`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`Підходять посилання Hugging Face, а також hf:org/repo/file.gguf`,custom_assistant_Languages:$h,"custom_assistant_Load time":`Час завантаження`,"custom_assistant_Loaded model":`Завантажена модель`,custom_assistant_Model:eg,custom_assistant_Models:tg,"custom_assistant_No models in this folder yet. Download one below.":`У цій папці ще немає моделей. Завантажте модель нижче.`,"custom_assistant_Own model: link to a .gguf file":`Своя модель: посилання на файл .gguf`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`Поставлено питань / відповіла модель / передано наступному рівню`,"custom_assistant_Reset statistics":`Скинути статистику`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`Збережіть налаштування, щоб завантажити вибрану модель. Інстанція перезапуститься.`,custom_assistant_Size:ng,"custom_assistant_Start the instance to manage the local models.":`Запустіть інстанцію, щоб керувати локальними моделями.`,"custom_assistant_The active model cannot be deleted":`Активну модель видалити не можна`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`Рушій ще не встановлено. Встановіть його на першій вкладці («Встановити локальну модель»).`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`Файл %s буде видалено з диска. Статистика збережеться.`,"custom_assistant_Time until the first word: reading the question":`Час до першого слова: читання питання`,"custom_assistant_Timeouts and errors among the questions asked":`Тайм-аути та помилки серед поставлених питань`,"custom_assistant_Tokens/s":`Токенів/с`,custom_assistant_Use:rg,custom_assistant_correct:ig,custom_assistant_downloaded:ag,custom_assistant_downloading:og,custom_assistant_failed:sg,"custom_assistant_hand over":`передати`,"custom_assistant_last used":`востаннє`,"custom_assistant_many languages":`багато мов`,"custom_assistant_missed hand-overs":`пропущені передачі`,"custom_assistant_needless hand-overs":`зайві передачі`,"custom_assistant_not enough space":`мало місця`,"custom_assistant_not the language of the assistant":`не мова асистента`,custom_assistant_parameters:cg,custom_assistant_speed:lg,custom_assistant_timeouts:ug,"custom_assistant_wrong answers":`неправильні відповіді`,"custom_assistant_very fast":`дуже швидко`,custom_assistant_fast:dg,custom_assistant_medium:fg,custom_assistant_slow:pg,custom_assistant_llm_benchmark:mg,"Model folder":`Папка моделей`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`Абсолютний шлях, наприклад /mnt/ssd/llm. Порожньо = папка даних інстанції. Уже завантажені в інше місце моделі не переносяться.`,"custom_assistant_Start the instance to test the voice":`Запустіть екземпляр, щоб перевірити голос`,"custom_assistant_Try this voice":`Спробувати цей голос`,custom_assistant_synthesis:hg},_g=e({custom_assistant_Announcement:()=>vg,custom_assistant_Answer:()=>yg,custom_assistant_Benchmark:()=>C_,custom_assistant_Cancel:()=>bg,custom_assistant_Chat:()=>xg,custom_assistant_Close:()=>Sg,custom_assistant_Context:()=>Cg,custom_assistant_Copied:()=>wg,custom_assistant_Copy:()=>Tg,custom_assistant_Delete:()=>Eg,custom_assistant_Details:()=>w_,custom_assistant_Download:()=>T_,custom_assistant_Error:()=>Dg,custom_assistant_Expected:()=>E_,custom_assistant_Failures:()=>D_,custom_assistant_Folder:()=>O_,custom_assistant_Host:()=>Og,custom_assistant_Languages:()=>k_,custom_assistant_Model:()=>A_,custom_assistant_Models:()=>j_,custom_assistant_Question:()=>kg,custom_assistant_Recognized:()=>Ag,custom_assistant_Record:()=>jg,custom_assistant_Request:()=>Mg,custom_assistant_Room:()=>Ng,custom_assistant_Routine:()=>Pg,custom_assistant_Satellite:()=>Fg,custom_assistant_Satellites:()=>Ig,custom_assistant_Script:()=>Lg,custom_assistant_Size:()=>M_,custom_assistant_Source:()=>Rg,custom_assistant_Speak:()=>zg,custom_assistant_Spoken:()=>Bg,custom_assistant_State:()=>Vg,custom_assistant_Status:()=>Hg,custom_assistant_Steps:()=>Ug,custom_assistant_Stop:()=>Wg,custom_assistant_Time:()=>Gg,custom_assistant_Tool:()=>Kg,custom_assistant_Upload:()=>qg,custom_assistant_Use:()=>N_,custom_assistant_auto:()=>Jg,custom_assistant_bundled_wake_word_hint:()=>y_,custom_assistant_correct:()=>P_,custom_assistant_delete_wake_word_confirm:()=>Yg,custom_assistant_device:()=>Xg,custom_assistant_downloaded:()=>F_,custom_assistant_downloading:()=>I_,custom_assistant_failed:()=>L_,custom_assistant_fast:()=>`快`,custom_assistant_filter:()=>Zg,custom_assistant_hint:()=>Qg,custom_assistant_llm_benchmark:()=>H_,custom_assistant_llm_downloading:()=>$g,custom_assistant_llm_error:()=>e_,custom_assistant_llm_idle:()=>t_,custom_assistant_llm_installing:()=>n_,custom_assistant_llm_loading:()=>r_,custom_assistant_llm_ready:()=>i_,custom_assistant_medium:()=>V_,custom_assistant_offline:()=>a_,custom_assistant_online:()=>o_,custom_assistant_parameters:()=>R_,custom_assistant_read:()=>`读`,custom_assistant_room:()=>s_,custom_assistant_sat_idle:()=>c_,custom_assistant_sat_listening:()=>l_,custom_assistant_sat_offline:()=>u_,custom_assistant_sat_processing:()=>d_,custom_assistant_sat_speaking:()=>f_,custom_assistant_slow:()=>`慢`,custom_assistant_speed:()=>z_,custom_assistant_synthesis:()=>U_,custom_assistant_timeouts:()=>B_,custom_assistant_type:()=>p_,custom_assistant_wake_word_deleted:()=>m_,custom_assistant_wake_word_hint:()=>h_,custom_assistant_wake_word_installed:()=>b_,custom_assistant_wake_word_installed_full:()=>S_,custom_assistant_wake_word_installed_replaced:()=>x_,custom_assistant_wake_word_phrase_hint:()=>g_,custom_assistant_wake_word_upload_hint:()=>__,custom_assistant_wake_word_uploaded:()=>v_,custom_assistant_write:()=>`写`,default:()=>W_}),vg=`公告`,yg=`回答`,bg=`Cancel`,xg=`Chat`,Sg=`Close`,Cg=`上下文`,wg=`已复制`,Tg=`复制`,Eg=`Delete`,Dg=`错误`,Og=`主持人`,kg=`问题`,Ag=`识别结果`,jg=`录音`,Mg=`请求`,Ng=`Room`,Pg=`Routine`,Fg=`卫星`,Ig=`卫星`,Lg=`Script`,Rg=`Source`,zg=`说话`,Bg=`朗读内容`,Vg=`State`,Hg=`地位`,Ug=`步骤`,Wg=`停止`,Gg=`时间`,Kg=`工具`,qg=`上传`,Jg=`汽车`,Yg=`删除“%s”?它将不再提供给设备;已下载它的设备会保留它。`,Xg=`设备`,Zg=`筛选`,Qg=`取消勾选“读取”选项可将设备对语音助手隐藏,取消勾选“写入”选项可将其设置为只读(例如,锁定设备)。设备默认设置为完全允许访问。`,$g=`正在下载模型…`,e_=`错误`,t_=`闲置的`,n_=`安装发动机…`,r_=`加载中…`,i_=`准备好`,a_=`离线`,o_=`在线的`,s_=`房间`,c_=`闲置的`,l_=`聆听`,u_=`离线`,d_=`加工`,f_=`请讲`,p_=`类型`,m_=`“%s”已删除。已下载它的设备会保留其副本。`,h_=`唤醒词在设备上运行。将鼠标悬停在某个词上可查看它训练所用的语言——大多数仅支持英语。`,g_=`唤醒设备时要说的话——列表中会这样显示。`,__=`microWakeWord 模型:.tflite 文件,最好连同其 .json 一起。其他模型类型(openWakeWord、Porcupine)无法通过此方式安装。`,v_=`“%s”已上传。在上方选择它即可启用——设备会在此时下载模型。`,y_=`点击:加载到设备并启用——替换同一唤醒词的旧版本`,b_=`“%s”已启用——设备正在下载模型。`,x_=`“%s”已替代“%s”启用——设备正在下载模型。`,S_=`“%s”已在列表中,但所有位置都已占用。请先停用另一个唤醒词,然后选择“%s”。`,C_=`测试`,w_=`详情`,T_=`下载`,E_=`预期`,D_=`失败`,O_=`文件夹`,k_=`语言`,A_=`模型`,j_=`模型`,M_=`大小`,N_=`使用`,P_=`正确`,F_=`已下载`,I_=`下载中`,L_=`失败`,R_=`参数`,z_=`速度`,B_=`超时`,V_=`中等`,H_=`测试中`,U_=`合成`,W_={"custom_assistant_%s of %s active":`%s of %s active`,"custom_assistant_%s s audio":`%s 秒音频`,"custom_assistant_(no spoken answer)":`(no spoken answer)`,"custom_assistant_A satellite that is still configured appears again when it connects.":`仍在配置中的卫星设备在重新连接后会再次出现。`,"custom_assistant_All sources":`All sources`,custom_assistant_Announcement:vg,custom_assistant_Answer:yg,"custom_assistant_Audio file":`音频文件`,custom_assistant_Cancel:bg,custom_assistant_Chat:xg,"custom_assistant_Clear chat":`清晰聊天`,"custom_assistant_Click for details":`点击查看详情`,custom_assistant_Close:Sg,"custom_assistant_Cloud LLM":`Cloud LLM`,"custom_assistant_Collapse all":`全部折叠`,custom_assistant_Context:Cg,custom_assistant_Copied:wg,custom_assistant_Copy:Tg,"custom_assistant_Copy everything as JSON":`全部复制为 JSON`,custom_assistant_Delete:Eg,"custom_assistant_Delete the recorded history of all sources?":`Delete the recorded history of all sources?`,"custom_assistant_Device cache cleared.":`设备缓存已清除。`,"custom_assistant_Device settings":`Device settings`,"custom_assistant_Dialog: everything you say becomes a question":`对话:你说的每句话都会成为一个问题,直到你结束对话`,"custom_assistant_Dialog: hearing you…":`对话:正在听你说 …`,"custom_assistant_Dialog: listening…":`对话:正在聆听 …`,"custom_assistant_Dialog: speaking…":`对话:正在说话 …`,"custom_assistant_Dialog: thinking…":`对话:正在思考 …`,"custom_assistant_Download as JSON":`下载为 JSON`,"custom_assistant_End the dialog":`结束对话`,custom_assistant_Error:Dg,"custom_assistant_Expand all":`全部展开`,"custom_assistant_Follow-up":`追问`,"custom_assistant_Hide disabled":`隐藏已禁用`,"custom_assistant_Hide processing details":`Hide processing details`,custom_assistant_Host:Og,"custom_assistant_Last seen":`最后一次出现`,"custom_assistant_Listening…":`正在听……`,"custom_assistant_Loading…":`加载中…`,"custom_assistant_Local LLM":`Local LLM`,"custom_assistant_Local model":`本地模型`,"custom_assistant_Mic re-opened without wake word":`Mic re-opened without wake word (follow-up or question)`,"custom_assistant_Name language: %s":`名称语言:%s`,"custom_assistant_No answer":`无应答`,"custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.":`未检测到设备。请在ioBroker中为房间和功能分配状态。`,"custom_assistant_No messages yet. Type a question below.":`暂无消息。请在下方输入问题。`,"custom_assistant_No processing steps were recorded for this request.":`此请求没有记录处理步骤。仅保留最近 200 个请求的详细信息。`,"custom_assistant_No satellites registered yet.":`目前尚未注册任何卫星。`,"custom_assistant_Not understood":`Not understood`,"custom_assistant_Nothing recognized":`未识别到内容`,"custom_assistant_Per-device permissions":`每个设备的权限`,"custom_assistant_Play answer (backend TTS)":`播放答案(后端 TTS)`,"custom_assistant_Please select a .tflite model file":`请选择 .tflite 模型文件`,custom_assistant_Question:kg,"custom_assistant_Read answers aloud":`大声朗读答案`,custom_assistant_Recognized:Ag,custom_assistant_Record:jg,"custom_assistant_Recorded audio":`录制的音频`,"custom_assistant_Refresh device cache":`刷新设备缓存`,"custom_assistant_Remove satellite":`删除卫星设备`,"custom_assistant_Remove satellite %s and all its states?":`删除卫星设备 %s 及其所有状态?`,"custom_assistant_Reply audio":`回复音频`,"custom_assistant_Reply to a question":`Reply to a question`,custom_assistant_Request:Mg,"custom_assistant_Request details":`请求详情`,custom_assistant_Room:Ng,custom_assistant_Routine:Pg,"custom_assistant_Rule-based NLU":`Rule-based NLU (local)`,custom_assistant_Satellite:Fg,custom_assistant_Satellites:Ig,"custom_assistant_Save the configuration (the instance will restart) before chatting.":`聊天前请保存配置(实例将重启)。`,custom_assistant_Script:Lg,"custom_assistant_Send announcement":`发送公告`,"custom_assistant_Settings for %s":`Settings for %s`,"custom_assistant_Show processing details":`Show processing details`,"custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.":`Shows all requests live: satellites, Telegram, scripts and this chat.`,custom_assistant_Source:Rg,custom_assistant_Speak:zg,"custom_assistant_Speak on all satellites":`在所有卫星上通话`,"custom_assistant_Speak the test sentence and recognize it":`朗读测试句子并识别`,"custom_assistant_Speech output":`语音输出`,"custom_assistant_Speech recognition":`语音识别`,"custom_assistant_Speech recognition time":`Speech recognition time`,"custom_assistant_Speech synthesis":`语音合成`,custom_assistant_Spoken:Bg,"custom_assistant_Start the assistant instance to chat.":`启动助手实例进行聊天。`,"custom_assistant_Start the assistant instance to load the device list.":`启动助手实例以加载设备列表。`,custom_assistant_State:Vg,"custom_assistant_States read":`读取的状态`,"custom_assistant_States written":`写入的状态`,custom_assistant_Status:Hg,custom_assistant_Steps:Ug,custom_assistant_Stop:Wg,"custom_assistant_Stop listening":`别听了`,"custom_assistant_Stop reading answers aloud":`停止大声朗读答案`,"custom_assistant_Stop word":`Stop word`,"custom_assistant_Test chat":`测试聊天`,"custom_assistant_Test sentence":`测试句子`,"custom_assistant_Test voice":`测试语音`,"custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.":`对话需要语音识别:请在“嗓音”选项卡中启用语音。`,"custom_assistant_The instance must be running to test the voice.":`实例必须正在运行才能测试语音。`,"custom_assistant_The microphone could not be opened:":`无法打开麦克风:`,"custom_assistant_The microphone only works over https or on localhost.":`麦克风仅在 https 或 localhost 下可用。`,"custom_assistant_Thinking…":`思维…`,"custom_assistant_This satellite exposes no settings.":`This satellite exposes no settings.`,custom_assistant_Time:Gg,custom_assistant_Tool:Kg,"custom_assistant_Tool calls":`工具调用`,"custom_assistant_Tool result":`工具结果`,"custom_assistant_Tools & states":`工具和状态`,"custom_assistant_Total duration":`总耗时`,"custom_assistant_Translate all missing (%s)":`翻译所有缺失值(%s)`,"custom_assistant_Translate name into %s":`将名称翻译成 %s`,"custom_assistant_Type a message…":`输入消息…`,custom_assistant_Upload:qg,"custom_assistant_Upload own wake word":`上传自定义唤醒词`,"custom_assistant_Uploaded wake word":`已上传的唤醒词`,"custom_assistant_Wake word":`Wake word`,"custom_assistant_Wake word phrase":`唤醒短语`,"custom_assistant_Wake words":`Wake words`,custom_assistant_auto:Jg,"custom_assistant_change it on the Voice tab":`在“语音”选项卡上更改。`,custom_assistant_delete_wake_word_confirm:Yg,custom_assistant_device:Xg,custom_assistant_filter:Zg,"custom_assistant_follow-up":`follow-up`,custom_assistant_hint:Qg,"custom_assistant_in progress":`进行中`,custom_assistant_llm_downloading:$g,custom_assistant_llm_error:e_,custom_assistant_llm_idle:t_,custom_assistant_llm_installing:n_,custom_assistant_llm_loading:r_,"custom_assistant_llm_not installed":`未安装`,custom_assistant_llm_ready:i_,"custom_assistant_made in %s ms":`用时 %s 毫秒`,"custom_assistant_no name in %s (showing %s)":`“%s”中没有名称——显示“%s”`,custom_assistant_offline:a_,custom_assistant_online:o_,custom_assistant_read:`读`,"custom_assistant_recognized in %s ms":`识别用时 %s 毫秒`,custom_assistant_room:s_,custom_assistant_sat_idle:c_,custom_assistant_sat_listening:l_,custom_assistant_sat_offline:u_,custom_assistant_sat_processing:d_,custom_assistant_sat_speaking:f_,custom_assistant_type:p_,"custom_assistant_waits for reply":`waits for reply`,custom_assistant_wake_word_deleted:m_,custom_assistant_wake_word_hint:h_,custom_assistant_wake_word_phrase_hint:g_,custom_assistant_wake_word_upload_hint:__,custom_assistant_wake_word_uploaded:v_,"custom_assistant_Shipped with the adapter":`随适配器提供`,custom_assistant_bundled_wake_word_hint:y_,custom_assistant_wake_word_installed:b_,custom_assistant_wake_word_installed_replaced:x_,custom_assistant_wake_word_installed_full:S_,custom_assistant_write:`写`,"custom_assistant_Add a model":`添加模型`,"custom_assistant_Answer time":`回答时间`,"custom_assistant_Asked / answered / handed over":`提问 / 回答 / 转交`,"custom_assistant_Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly":`用助手语言和英语向已加载的模型提出测试问题:有关家居的问题必须转交,一般问题必须答对`,custom_assistant_Benchmark:C_,"custom_assistant_Delete model?":`删除模型?`,custom_assistant_Details:w_,custom_assistant_Download:T_,"custom_assistant_Estimate from the model size, not measured. Use the benchmark for real numbers.":`根据模型大小估算,并非实测。真实数据请运行测试。`,custom_assistant_Expected:E_,custom_assistant_Failures:D_,"custom_assistant_First token":`首个令牌`,custom_assistant_Folder:O_,"custom_assistant_Free on the disk":`磁盘可用`,"custom_assistant_Hugging Face links are fine, also hf:org/repo/file.gguf":`可使用 Hugging Face 链接,也可用 hf:org/repo/file.gguf`,custom_assistant_Languages:k_,"custom_assistant_Load time":`加载时间`,"custom_assistant_Loaded model":`已加载模型`,custom_assistant_Model:A_,custom_assistant_Models:j_,"custom_assistant_No models in this folder yet. Download one below.":`此文件夹中还没有模型。请在下方下载。`,"custom_assistant_Own model: link to a .gguf file":`自定义模型:.gguf 文件链接`,"custom_assistant_Questions asked / answered by the model / handed over to the next tier":`提问数 / 模型回答数 / 转交下一层数`,"custom_assistant_Reset statistics":`重置统计`,"custom_assistant_Save the settings to load the selected model. The instance restarts.":`保存设置以加载所选模型。实例将重新启动。`,custom_assistant_Size:M_,"custom_assistant_Start the instance to manage the local models.":`启动实例以管理本地模型。`,"custom_assistant_The active model cannot be deleted":`无法删除当前使用的模型`,'custom_assistant_The engine is not installed yet. Install it on the main tab ("Install local model").':`引擎尚未安装。请在第一个选项卡中安装(“安装本地模型”)。`,"custom_assistant_The file %s is deleted from the disk. Its statistics stay.":`文件 %s 将从磁盘删除。其统计数据会保留。`,"custom_assistant_Time until the first word: reading the question":`到第一个词的时间:读取问题`,"custom_assistant_Timeouts and errors among the questions asked":`提问中的超时和错误`,"custom_assistant_Tokens/s":`令牌/秒`,custom_assistant_Use:N_,custom_assistant_correct:P_,custom_assistant_downloaded:F_,custom_assistant_downloading:I_,custom_assistant_failed:L_,"custom_assistant_hand over":`转交`,"custom_assistant_last used":`最近使用`,"custom_assistant_many languages":`多种语言`,"custom_assistant_missed hand-overs":`漏转交`,"custom_assistant_needless hand-overs":`多余转交`,"custom_assistant_not enough space":`空间不足`,"custom_assistant_not the language of the assistant":`不是助手的语言`,custom_assistant_parameters:R_,custom_assistant_speed:z_,custom_assistant_timeouts:B_,"custom_assistant_wrong answers":`错误答案`,"custom_assistant_very fast":`非常快`,custom_assistant_fast:`快`,custom_assistant_medium:V_,custom_assistant_slow:`慢`,custom_assistant_llm_benchmark:H_,"Model folder":`模型文件夹`,"Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.":`绝对路径,例如 /mnt/ssd/llm。为空 = 实例的数据文件夹。已下载到其他位置的模型不会被移动。`,"custom_assistant_Start the instance to test the voice":`启动实例以测试声音`,"custom_assistant_Try this voice":`试听此声音`,custom_assistant_synthesis:U_};fe();var G_={},K_=Object.assign({"./i18n/de.json":W,"./i18n/en.json":G,"./i18n/es.json":K,"./i18n/fr.json":fa,"./i18n/it.json":Go,"./i18n/nl.json":xc,"./i18n/pl.json":Ql,"./i18n/pt.json":kd,"./i18n/ru.json":sp,"./i18n/uk.json":zm,"./i18n/zh-cn.json":_g});for(let[e,t]of Object.entries(K_)){var q_;let n=((q_=e.split(`/`).pop())==null?void 0:q_.replace(`.json`,``))||`en`;G_[n]=t.default}B.extendTranslations(G_);var J_=new Set([`temperature`,`humidity`,`illuminance`,`motion`,`door`,`window`,`windowTilt`,`fireAlarm`,`floodAlarm`,`camera`,`weatherCurrent`,`weatherForecast`,`warning`,`location`,`info`,`chart`,`image`,`instance`]);function Y_(e){return e===`lock`?{read:!0,write:!1}:{read:!0,write:!0}}var X_=[{value:`en`,label:`English`},{value:`de`,label:`Deutsch`},{value:`ru`,label:`Русский`},{value:`pt`,label:`Português`},{value:`nl`,label:`Nederlands`},{value:`fr`,label:`Français`},{value:`it`,label:`Italiano`},{value:`es`,label:`Español`},{value:`pl`,label:`Polski`},{value:`uk`,label:`Українська`},{value:`zh-cn`,label:`简体中文`}],Z_=class extends U{constructor(e){super(e),l(this,`aliveSubId`,``),l(this,`onAliveChange`,(e,t)=>{let n=!!(t!=null&&t.val);n!==this.state.alive&&this.setState({alive:n,loading:n},()=>{n&&this.loadDevices()})}),this.state={...this.state,devices:[],loading:!0,alive:!1,filter:``,edits:{},savingKey:``,translatingKeys:{},rowStatus:{},hideDisabled:!1}}rowColor(e){switch(this.state.rowStatus[e]){case`dirty`:return`rgba(128,128,128,0.20)`;case`saving`:return`rgba(244,67,54,0.20)`;case`saved`:return`rgba(76,175,80,0.28)`;default:return}}setRowStatus(e,t){this.setState(n=>{let r={...n.rowStatus};return t?r[e]=t:delete r[e],{rowStatus:r}})}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}get editLang(){return String(this.props.data.voiceLanguage||``)||B.getLanguage()}componentDidUpdate(e){String(e.data.voiceLanguage||``)!==String(this.props.data.voiceLanguage||``)&&Object.keys(this.state.edits).length&&this.setState({edits:{}})}async componentDidMount(){super.componentDidMount(),this.aliveSubId=`system.adapter.${this.instanceId}.alive`;let e=!1;try{let t=await this.props.oContext.socket.getState(this.aliveSubId);e=!!(t!=null&&t.val)}catch{e=!1}this.setState({alive:e},()=>void this.loadDevices()),this.props.oContext.socket.subscribeState(this.aliveSubId,this.onAliveChange)}componentWillUnmount(){var e;this.aliveSubId&&this.props.oContext.socket.unsubscribeState(this.aliveSubId,this.onAliveChange),(e=super.componentWillUnmount)==null||e.call(this)}async loadDevices(e=4){if(!this.state.alive){this.setState({loading:!1});return}let t=[];try{let e=await this.props.oContext.socket.sendTo(this.instanceId,`getDevices`,{language:B.getLanguage()});t=(Array.isArray(e)?e:[]).filter(e=>e.type!==`button`)}catch{t=[]}!t.length&&e>0?setTimeout(()=>{this.state.alive&&this.loadDevices(e-1)},1200):this.setState({devices:t,edits:{},loading:!1})}nameFor(e){let t=this.editLang,n=e.smartName;if(typeof n==`string`&&n)return{value:n,exact:!0,from:``};if(n&&typeof n==`object`){if(n[t])return{value:n[t],exact:!0,from:t};let e=n.en?`en`:Object.keys(n)[0];if(e&&n[e])return{value:n[e],exact:!1,from:e}}return{value:e.autoName||e.name||``,exact:!1,from:`auto`}}fieldValue(e){return this.state.edits[e.key]??this.nameFor(e).value}onNameChange(e,t){let n=this.state.devices.find(t=>t.key===e),r=n?this.nameFor(n).value:``;this.setState(n=>{let i={...n.rowStatus};return t===r?i[e]===`dirty`&&delete i[e]:i[e]=`dirty`,{edits:{...n.edits,[e]:t},rowStatus:i}})}flashSaved(e){this.setRowStatus(e,`saved`),setTimeout(()=>{this.state.rowStatus[e]===`saved`&&this.setRowStatus(e,null)},2e3)}applyLocalName(e,t,n){this.setState(r=>({devices:r.devices.map(r=>{if(r.key!==e)return r;let i=r.smartName&&typeof r.smartName==`object`?{...r.smartName}:typeof r.smartName==`string`&&r.smartName?{en:r.smartName}:{};return n?i[t]=n:delete i[t],{...r,smartName:i}}),edits:(()=>{let t={...r.edits};return delete t[e],t})()}))}async saveName(e){let t=this.state.edits[e.key];if(t===void 0||t===this.nameFor(e).value)return;let n=this.editLang;this.setState({savingKey:e.key}),this.setRowStatus(e.key,`saving`);try{await this.props.oContext.socket.sendTo(this.instanceId,`setDeviceName`,{stateId:e.key,name:t,language:n}),this.applyLocalName(e.key,n,t.trim()),this.flashSaved(e.key)}catch{this.setRowStatus(e.key,`dirty`)}this.setState({savingKey:``})}async translateName(e){let t=this.nameFor(e).value,n=e.key;if(!t||this.state.translatingKeys[n])return;let r=this.editLang;this.setState(e=>({translatingKeys:{...e.translatingKeys,[n]:!0}})),this.setRowStatus(n,`saving`);try{var i;let e=await this.props.oContext.socket.sendTo(this.instanceId,`translateName`,{text:t,targetLang:r}),a=e==null||(i=e.translation)==null?void 0:i.trim();a?(await this.props.oContext.socket.sendTo(this.instanceId,`setDeviceName`,{stateId:n,name:a,language:r}),this.applyLocalName(n,r,a),this.flashSaved(n)):this.setRowStatus(n,null)}catch{this.setRowStatus(n,null)}this.setState(e=>{let t={...e.translatingKeys};return delete t[n],{translatingKeys:t}})}async translateAllMissing(){let e=this.state.devices.filter(e=>!this.nameFor(e).exact&&!this.state.translatingKeys[e.key]);await Promise.all(e.map(e=>this.translateName(e)))}getAcl(e){var t;return((t=this.props.data.deviceAcl)==null?void 0:t[e.key])||Y_(e.type)}setAcl(e,t){let n=JSON.parse(JSON.stringify(this.props.data));n.deviceAcl=n.deviceAcl||{};let r=Y_(e.type),i={...n.deviceAcl[e.key]||r,...t};i.read===r.read&&i.write===r.write?delete n.deviceAcl[e.key]:n.deviceAcl[e.key]=i,this.props.onChange(n)}renderItem(){var e;if(this.state.loading)return A(g,{});if(!this.state.alive)return A(V,{sx:{p:2},color:`warning.main`,children:B.t(`custom_assistant_Start the assistant instance to load the device list.`)});if(!this.state.devices.length)return A(V,{sx:{p:2},children:B.t(`custom_assistant_No devices detected. Assign states to rooms and functions in ioBroker.`)});let t=this.state.filter.trim().toLowerCase(),i=t?this.state.devices.filter(e=>`${e.name} ${e.type} ${e.room}`.toLowerCase().includes(t)):this.state.devices;this.state.hideDisabled&&(i=i.filter(e=>this.getAcl(e).read));let a=this.props.oContext.themeType===`dark`;return R(P,{sx:{width:`100%`},children:[A(V,{variant:`h6`,sx:{mt:1},children:B.t(`custom_assistant_Per-device permissions`)}),A(V,{variant:`body2`,sx:{mb:1},color:`text.secondary`,children:B.t(`custom_assistant_hint`)}),R(P,{sx:{display:`flex`,alignItems:`center`,gap:1,mb:1,flexWrap:`wrap`},children:[A(w,{size:`small`,color:`primary`,variant:`outlined`,label:B.t(`custom_assistant_Name language: %s`,((e=X_.find(e=>e.value===this.editLang))==null?void 0:e.label)||this.editLang)}),A(V,{variant:`caption`,color:`text.secondary`,children:B.t(`custom_assistant_change it on the Voice tab`)}),(()=>{let e=this.state.devices.filter(e=>!this.nameFor(e).exact).length,t=Object.keys(this.state.translatingKeys).length>0;return A(k,{size:`small`,variant:`outlined`,startIcon:t?A(u,{size:14}):A(se,{}),disabled:!e||t,onClick:()=>void this.translateAllMissing(),children:B.t(`custom_assistant_Translate all missing (%s)`,e)})})(),A(P,{sx:{flex:1}}),A(v,{control:A(r,{size:`small`,checked:this.state.hideDisabled,onChange:e=>this.setState({hideDisabled:e.target.checked})}),label:B.t(`custom_assistant_Hide disabled`)}),A(I,{variant:`standard`,size:`small`,label:`Filter`,value:this.state.filter,onChange:e=>this.setState({filter:e.target.value}),sx:{width:320}})]}),A(he,{component:n,sx:{width:`100%`},children:R(Se,{size:`small`,children:[A(j,{children:R(z,{sx:{background:a?`#333`:`#DDD`},children:[A(H,{children:B.t(`custom_assistant_device`)}),A(H,{children:B.t(`custom_assistant_type`)}),A(H,{children:B.t(`custom_assistant_room`)}),A(H,{align:`center`,children:B.t(`custom_assistant_read`)}),A(H,{align:`center`,children:B.t(`custom_assistant_write`)})]})}),A(L,{children:i.map(e=>{let t=this.getAcl(e),n=e.writableStateIds.length>0&&!J_.has(e.type),r=!t.read;return R(z,{sx:{background:this.rowColor(e.key),opacity:r?.5:1,transition:`background-color 0.4s`},children:[R(H,{children:[(()=>{let t=this.nameFor(e),n=!!this.state.translatingKeys[e.key],r=this.state.savingKey===e.key||n;return R(P,{sx:{display:`flex`,alignItems:`flex-start`,gap:.5},children:[A(I,{variant:`standard`,size:`small`,fullWidth:!0,value:this.fieldValue(e),disabled:r,error:!t.exact&&!this.state.edits[e.key],helperText:!t.exact&&!this.state.edits[e.key]?B.t(`custom_assistant_no name in %s (showing %s)`,this.editLang,t.from===`auto`?B.t(`custom_assistant_auto`):t.from):` `,onChange:t=>this.onNameChange(e.key,t.target.value),onBlur:()=>void this.saveName(e),onKeyDown:e=>{e.key===`Enter`&&e.target.blur()},slotProps:{input:{endAdornment:this.state.savingKey===e.key?A(u,{size:14}):null}}}),A(N,{title:B.t(`custom_assistant_Translate name into %s`,this.editLang),children:A(`span`,{children:A(O,{size:`small`,disabled:r,onClick:()=>void this.translateName(e),children:n?A(u,{size:16}):A(se,{fontSize:`small`})})})})]})})(),e.stateIds.length?A(V,{variant:`caption`,component:`div`,sx:{wordBreak:`break-all`,fontStyle:`italic`,opacity:.7,fontSize:`smaller`},children:e.stateIds.join(`, `)}):null]}),A(H,{children:R(P,{sx:{display:`flex`,alignItems:`center`,gap:.75},children:[A(M,{type:e.type,style:{width:20,height:20}}),A(`span`,{children:B.t(`type-${e.type}`)})]})}),A(H,{children:e.room&&e.room!==`No room`?e.room:`-`}),A(H,{align:`center`,children:A(Te,{checked:t.read,onChange:()=>this.setAcl(e,{read:!t.read})})}),A(H,{align:`center`,children:A(Te,{checked:t.write&&n,disabled:!n,onChange:()=>this.setAcl(e,{write:!t.write})})})]},e.key)})})]})})]})}},Q_={chat:`Chat`,script:`custom_assistant_Script`,state:`custom_assistant_State`,telegram:`Telegram`,esphome:`ESPHome`,udp:`UDP`,native:`ioBroker`,wyoming:`Wyoming`},$_={stop:`custom_assistant_Stop word`,askReply:`custom_assistant_Reply to a question`,routine:`custom_assistant_Routine`,nlu:`custom_assistant_Rule-based NLU`,localLlm:`custom_assistant_Local LLM`,cloud:`custom_assistant_Cloud LLM`,none:`custom_assistant_Not understood`},ev={stop:`#78909c`,askReply:`#78909c`,routine:`#00897b`,nlu:`#43a047`,localLlm:`#8e24aa`,cloud:`#1e88e5`,none:`#e53935`},tv={...$_,request:`custom_assistant_Request`,stt:`custom_assistant_Speech recognition`,context:`custom_assistant_Context`,youtube:`YouTube`,tool:`custom_assistant_Tool`,state:`custom_assistant_State`,answer:`custom_assistant_Answer`,tts:`custom_assistant_Speech synthesis`,error:`custom_assistant_Error`},nv={...ev,request:`#607d8b`,stt:`#00838f`,context:`#8d6e63`,youtube:`#ff7043`,tool:`#fb8c00`,state:`#6d4c41`,answer:`#3949ab`,tts:`#00acc1`,error:`#c62828`};function rv(e){return typeof e==`string`?`"${e}"`:JSON.stringify(e)}function q(e){return e===void 0?``:Math.abs(e)<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(1)} s`}function iv(e){let t=e=>e.toLocaleString(),n=`${t(e.input)} in · ${t(e.output)} out`;return e.cacheRead&&(n+=` · ${t(e.cacheRead)} cached`),e.cacheWrite&&(n+=` · ${t(e.cacheWrite)} to cache`),n}var J=`ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`;async function av(e){try{return await navigator.clipboard.writeText(e),!0}catch{}let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return document.body.removeChild(t),n}function ov(e,t){let n=URL.createObjectURL(new Blob([t],{type:`application/json`})),r=document.createElement(`a`);r.href=n,r.download=e,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function sv(e){return`${e<0?`−`:`+`}${q(Math.abs(e))}`}function cv(e){let t=e.trim();if(/^[[{]/.test(t))try{return JSON.parse(t)}catch{return}}function lv(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function uv(e){return lv(e)&&typeof e.role==`string`&&(`content`in e||`tool_calls`in e)}function dv(e){return Array.isArray(e)&&e.length>0&&e.every(e=>lv(e)&&typeof e.type==`string`&&(`text`in e||`input`in e||`content`in e||`thinking`in e))}function fv(e){return A(N,{title:B.t(`custom_assistant_Copy`),children:A(O,{size:`small`,onClick:t=>{t.stopPropagation(),e.ctx.onCopy(e.text)},sx:{position:`absolute`,top:2,right:2,p:.25,opacity:.5,"&:hover":{opacity:1}},children:A(h,{sx:{fontSize:`0.9rem`}})})})}function pv(e){return R(P,{sx:{position:`relative`},children:[A(P,{component:`pre`,sx:{m:0,p:1,pr:3.5,fontFamily:J,fontSize:`0.74rem`,lineHeight:1.45,whiteSpace:`pre-wrap`,wordBreak:`break-word`,maxHeight:e.maxHeight??360,overflow:`auto`,borderRadius:1,background:e.ctx.dark?`rgba(255,255,255,0.05)`:`rgba(0,0,0,0.04)`},children:e.text}),A(fv,{text:e.text,ctx:e.ctx})]})}function mv(e){return A(pv,{text:JSON.stringify(e.value,null,2),ctx:e.ctx})}function hv(e){let t=cv(e.text);return t===void 0?e.text.length>100||e.text.includes(`
|
|
2
|
+
`)?A(pv,{text:e.text,ctx:e.ctx}):A(`span`,{style:{fontFamily:J,fontSize:`0.78rem`},children:rv(e.text)}):A(mv,{value:t,ctx:e.ctx})}var gv={system:`#757575`,user:`#1e88e5`,assistant:`#43a047`,tool:`#fb8c00`};function Y(e){return A(w,{size:`small`,label:e.label,sx:{height:18,fontSize:`0.68rem`,mr:.5,color:e.color?`#fff`:`inherit`,background:e.color||`rgba(127,127,127,0.25)`,"& .MuiChip-label":{px:.75}}})}function _v(e){let{block:t,ctx:n}=e,r=t.cache_control?A(Y,{label:`cache_control`}):null,i=null,a;return t.type===`text`?a=A(pv,{text:String(t.text??``),ctx:n}):t.type===`tool_use`?(i=`🔧 ${String(t.name)}`,a=A(mv,{value:t.input,ctx:n})):t.type===`tool_result`?(i=`↩ ${B.t(`custom_assistant_Tool result`)}`,a=typeof t.content==`string`?A(hv,{text:t.content,ctx:n}):A(mv,{value:t.content,ctx:n})):t.type===`thinking`?(i=`💭 thinking`,a=A(pv,{text:String(t.thinking??``),ctx:n})):a=A(mv,{value:t,ctx:n}),R(P,{sx:{mb:.75},children:[i||r?R(P,{sx:{display:`flex`,alignItems:`center`,mb:.25,fontFamily:J,fontSize:`0.76rem`},children:[A(`span`,{style:{marginRight:6},children:i}),r]}):null,a]})}function vv(e){let{msg:t,ctx:n}=e,r=String(t.role),i=t.content,a=Array.isArray(t.tool_calls)?t.tool_calls:[];return R(P,{sx:{mb:1,pl:1,borderLeft:`3px solid ${gv[r]||`#9e9e9e`}`},children:[A(P,{sx:{mb:.5},children:A(Y,{label:r,color:gv[r]})}),typeof i==`string`&&i?A(hv,{text:i,ctx:n}):null,dv(i)?i.map((e,t)=>A(_v,{block:e,ctx:n},t)):null,a.map((e,t)=>{let r=lv(e.function)?e.function:{},i=typeof r.arguments==`string`?cv(r.arguments)??r.arguments:r.arguments;return R(P,{sx:{mb:.75},children:[R(P,{sx:{fontFamily:J,fontSize:`0.76rem`,mb:.25},children:[`🔧 `,String(r.name)]}),A(mv,{value:i,ctx:n})]},t)})]})}function yv(e){let{value:t,ctx:n,depth:r}=e;if(t==null)return A(`span`,{style:{opacity:.5},children:`—`});if(typeof t==`string`)return A(hv,{text:t,ctx:n});if(typeof t!=`object`)return A(`span`,{style:{fontFamily:J,fontSize:`0.78rem`},children:String(t)});if(Array.isArray(t)&&t.length&&t.every(uv))return A(P,{children:t.map((e,t)=>A(vv,{msg:e,ctx:n},t))});if(dv(t))return A(P,{children:t.map((e,t)=>A(_v,{block:e,ctx:n},t))});if(uv(t))return A(vv,{msg:t,ctx:n});if(Array.isArray(t)&&t.every(e=>typeof e!=`object`||!e)){let e=t.map(e=>typeof e==`string`?e:JSON.stringify(e)).join(`, `);return e.length>160?A(pv,{text:e,ctx:n}):A(`span`,{style:{fontFamily:J,fontSize:`0.78rem`},children:e||`[]`})}return lv(t)&&r<2?A(bv,{data:t,ctx:n,depth:r+1}):A(mv,{value:t,ctx:n})}function bv(e){let n=Object.keys(e.data).filter(t=>e.data[t]!==void 0);return A(P,{sx:{display:`grid`,gridTemplateColumns:`minmax(90px, max-content) 1fr`,columnGap:1.5,rowGap:.5},children:n.map(n=>R(t.Fragment,{children:[A(P,{sx:{fontFamily:J,fontSize:`0.74rem`,opacity:.65,pt:`2px`},children:n}),A(P,{sx:{minWidth:0},children:A(yv,{value:e.data[n],ctx:e.ctx,depth:e.depth})})]},n))})}function X(e){return R(P,{sx:{minWidth:0},children:[A(V,{variant:`caption`,component:`div`,sx:{opacity:.6,lineHeight:1.2},children:e.label}),A(P,{sx:{fontSize:`0.85rem`,wordBreak:`break-word`},children:e.children})]})}function xv(e){let{entry:n,dark:r}=e,[i,o]=t.useState(void 0),[s,c]=t.useState(``),[l,f]=t.useState(0),[p,m]=t.useState({}),[g,te]=t.useState(!1),v=t.useRef(!1),ne=t.useRef(!1),{fetchTrace:b}=e,x=t.useCallback(async()=>{if(v.current)ne.current=!0;else{v.current=!0;try{do{ne.current=!1;try{let e=await b(n.id);c(e.error||``),o(e.error?null:e.steps??null)}catch(e){c(e.message)}}while(ne.current)}finally{v.current=!1}}},[b,n.id]);t.useEffect(()=>{x()},[n,x]);let S={dark:r,onCopy:e=>{av(e).then(e=>{e&&(te(!0),setTimeout(()=>te(!1),1500))})}},C=[...i||[]].map((e,t)=>({...e,i:t})).sort((e,t)=>e.t-t.t||e.i-t.i),w=Math.min(0,...C.map(e=>e.t)),T=Math.max(n.ms||0,...C.map(e=>e.t+(e.ms||0))),ie=Math.max(1,T-w),D=C.length>0&&C.every(e=>p[e.i]||e.data===void 0),ae=JSON.stringify({entry:n,steps:i??null},null,2),oe={p:1,borderRadius:1,background:r?`rgba(255,255,255,0.04)`:`rgba(0,0,0,0.03)`,whiteSpace:`pre-wrap`,wordBreak:`break-word`,fontSize:`0.9rem`},se=e=>{let t=e.level===`error`?`#c62828`:nv[e.stage]||`#9e9e9e`,n=e.data!==void 0||!!e.tokens,i=!!p[e.i],a=()=>m(t=>({...t,[e.i]:!t[e.i]})),o=(e.t-w)/ie*100,s=e.ms===void 0?0:Math.max(e.ms/ie*100,.4);return R(P,{sx:{borderBottom:`1px solid ${r?`#333`:`#eee`}`,background:e.level===`error`?`rgba(198,40,40,0.08)`:e.level===`warn`?`rgba(251,140,0,0.08)`:void 0},children:[R(P,{role:n?`button`:void 0,tabIndex:n?0:void 0,onClick:n?a:void 0,onKeyDown:e=>{n&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a())},sx:{display:`grid`,gridTemplateColumns:`64px 132px 1fr 64px 16px`,alignItems:`center`,columnGap:1,px:1,pt:.6,cursor:n?`pointer`:`default`,"&:hover":n?{background:r?`rgba(255,255,255,0.04)`:`rgba(0,0,0,0.03)`}:{}},children:[A(P,{sx:{fontFamily:J,fontSize:`0.72rem`,opacity:.6,textAlign:`right`},children:sv(e.t)}),A(P,{children:A(Y,{label:tv[e.stage]?B.t(tv[e.stage]):e.stage,color:nv[e.stage]})}),R(P,{sx:{fontSize:`0.82rem`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:i?`normal`:`nowrap`,color:e.level===`error`?`error.main`:e.level===`warn`?`warning.main`:void 0},title:e.title,children:[e.title,e.tokens?A(`span`,{style:{opacity:.6,fontSize:`0.72rem`,marginLeft:8},children:iv(e.tokens)}):null]}),A(P,{sx:{fontFamily:J,fontSize:`0.72rem`,textAlign:`right`,opacity:.8},children:q(e.ms)}),A(P,{sx:{fontSize:`0.7rem`,opacity:.5},children:n?i?`▾`:`▸`:``})]}),R(P,{sx:{position:`relative`,height:4,mx:1,mt:.4,mb:.6,ml:`calc(64px + 132px + 24px)`},children:[A(P,{sx:{position:`absolute`,inset:0,borderRadius:2,background:r?`rgba(255,255,255,0.05)`:`rgba(0,0,0,0.04)`}}),A(P,{sx:{position:`absolute`,top:s?0:-1,height:s?4:6,left:`${o}%`,width:s?`${s}%`:2,borderRadius:2,background:t}})]}),i&&n?R(P,{sx:{px:1,pb:1.5,ml:{xs:0,sm:`calc(64px + 8px)`}},children:[e.tokens?R(V,{variant:`caption`,component:`div`,sx:{mb:.5,opacity:.75},children:[`Tokens: `,iv(e.tokens)]}):null,e.data===void 0?null:A(yv,{value:e.data,ctx:S,depth:0})]}):null]},e.i)},j=()=>i===void 0&&!s?R(P,{sx:{display:`flex`,alignItems:`center`,gap:1,p:2},children:[A(u,{size:18}),A(V,{variant:`body2`,children:B.t(`custom_assistant_Loading…`)})]}):C.length?A(P,{children:C.map(se)}):A(V,{variant:`body2`,sx:{p:2,opacity:.7},children:s||B.t(`custom_assistant_No processing steps were recorded for this request.`)}),ce=()=>{let e={fontFamily:J,fontSize:`0.78rem`};return R(P,{sx:{p:1},children:[R(V,{variant:`subtitle2`,sx:{mb:.5},children:[B.t(`custom_assistant_Tool calls`),` (`,n.tools.length,`)`]}),n.tools.length?n.tools.map((t,n)=>R(P,{sx:{...e,mb:.75,color:t.error?`error.main`:void 0},children:[`🔧 `,A(`b`,{children:t.name}),`(`,JSON.stringify(t.args),`)`,` `,A(`span`,{style:{opacity:.6},children:q(t.ms)}),R(P,{sx:{pl:2.5,opacity:.85},children:[`→ `,t.error?`⚠ ${t.error}`:t.result]})]},n)):A(V,{variant:`body2`,sx:{opacity:.6,mb:1},children:`—`}),R(V,{variant:`subtitle2`,sx:{mt:2,mb:.5},children:[B.t(`custom_assistant_States read`),` (`,n.read.length,`)`]}),n.read.length?n.read.map(t=>R(P,{sx:e,children:[`📖 `,t]},t)):A(V,{variant:`body2`,sx:{opacity:.6},children:`—`}),R(V,{variant:`subtitle2`,sx:{mt:2,mb:.5},children:[B.t(`custom_assistant_States written`),` (`,n.written.length,`)`]}),n.written.length?n.written.map((t,n)=>R(P,{sx:e,children:[`✏️ `,t.id,` = `,rv(t.value)]},n)):A(V,{variant:`body2`,sx:{opacity:.6},children:`—`})]})},M=n.satellite||n.source,ue=new Date(n.ts).toLocaleString(void 0,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3});return R(ee,{open:!0,onClose:e.onClose,maxWidth:`lg`,fullWidth:!0,scroll:`paper`,slotProps:{paper:{sx:{height:`90vh`}}},children:[R(a,{sx:{display:`flex`,alignItems:`center`,gap:1,pr:1},children:[R(P,{sx:{flex:1,minWidth:0},children:[B.t(`custom_assistant_Request details`),A(V,{variant:`caption`,component:`span`,sx:{ml:1,opacity:.6,fontFamily:J},children:n.id})]}),g?A(V,{variant:`caption`,color:`success.main`,children:B.t(`custom_assistant_Copied`)}):null,A(N,{title:B.t(`custom_assistant_Copy everything as JSON`),children:A(O,{size:`small`,onClick:()=>S.onCopy(ae),children:A(h,{fontSize:`small`})})}),A(N,{title:B.t(`custom_assistant_Download as JSON`),children:A(O,{size:`small`,onClick:()=>ov(`assistant-request-${n.id}.json`,ae),children:A(y,{fontSize:`small`})})}),A(O,{size:`small`,onClick:e.onClose,children:A(_,{fontSize:`small`})})]}),R(re,{dividers:!0,children:[R(P,{sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:.5,mb:1},children:[A(Y,{label:B.t(Q_[n.transport]||n.transport)}),M&&M!==`chat`?A(Y,{label:M}):null,n.room&&n.room!==M?A(Y,{label:n.room}):null,n.wakeWord===void 0?null:A(Y,{label:`🎙 ${n.wakeWord||B.t(`custom_assistant_follow-up`)}`}),n.tier?A(Y,{label:B.t($_[n.tier]),color:ev[n.tier]}):null,n.detail?A(V,{variant:`caption`,sx:{fontFamily:J},children:n.detail}):null,n.done?null:R(P,{sx:{display:`flex`,alignItems:`center`,gap:.5,ml:1},children:[A(u,{size:12}),A(V,{variant:`caption`,children:B.t(`custom_assistant_in progress`)})]})]}),R(P,{sx:{display:`grid`,gridTemplateColumns:{xs:`1fr`,md:`1fr 1fr`},gap:1,mb:1.5},children:[R(P,{children:[A(V,{variant:`caption`,sx:{opacity:.6},children:B.t(`custom_assistant_Question`)}),A(P,{sx:oe,children:n.question})]}),R(P,{children:[A(V,{variant:`caption`,sx:{opacity:.6},children:B.t(n.error?`custom_assistant_Error`:`custom_assistant_Answer`)}),A(P,{sx:{...oe,color:n.error?`error.main`:void 0},children:n.error||n.answer||(n.done?A(`i`,{style:{opacity:.6},children:B.t(`custom_assistant_(no spoken answer)`)}):`…`)})]})]}),R(P,{sx:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(150px, 1fr))`,gap:1.5,mb:1.5},children:[A(X,{label:B.t(`custom_assistant_Time`),children:ue}),A(X,{label:B.t(`custom_assistant_Total duration`),children:n.done?q(n.ms):`…`}),A(X,{label:B.t(`custom_assistant_Source`),children:n.source||`—`}),n.audioMs===void 0?null:A(X,{label:B.t(`custom_assistant_Recorded audio`),children:q(n.audioMs)}),n.sttMs===void 0?null:A(X,{label:B.t(`custom_assistant_Speech recognition`),children:q(n.sttMs)}),n.ttsMs===void 0?null:A(X,{label:B.t(`custom_assistant_Speech synthesis`),children:q(n.ttsMs)}),n.replyAudioMs===void 0?null:A(X,{label:B.t(`custom_assistant_Reply audio`),children:q(n.replyAudioMs)}),n.tokens?A(X,{label:`Tokens`,children:iv(n.tokens)}):null,A(X,{label:B.t(`custom_assistant_Tool calls`),children:n.tools.length}),A(X,{label:B.t(`custom_assistant_States read`),children:n.read.length}),A(X,{label:B.t(`custom_assistant_States written`),children:n.written.length}),n.followUp?A(X,{label:B.t(`custom_assistant_Follow-up`),children:B.t(`custom_assistant_waits for reply`)}):null]}),R(P,{sx:{display:`flex`,alignItems:`center`,borderBottom:`1px solid ${r?`#444`:`#ddd`}`,mb:.5},children:[R(le,{value:l,onChange:(e,t)=>f(t),sx:{flex:1,minHeight:36,"& .MuiTab-root":{minHeight:36,py:0}},children:[A(de,{label:`${B.t(`custom_assistant_Steps`)}${C.length?` (${C.length})`:``}`}),A(de,{label:B.t(`custom_assistant_Tools & states`)}),A(de,{label:`JSON`})]}),l===0&&C.length?A(N,{title:B.t(D?`custom_assistant_Collapse all`:`custom_assistant_Expand all`),children:A(O,{size:`small`,onClick:()=>m(D?{}:Object.fromEntries(C.map(e=>[e.i,!0]))),children:A(D?we:E,{fontSize:`small`})})}):null]}),l===0?j():null,l===1?ce():null,l===2?A(pv,{text:ae,ctx:S,maxHeight:1e4}):null]}),A(d,{children:A(k,{onClick:e.onClose,children:B.t(`custom_assistant_Close`)})})]})}var Sv=16e3,Z=30,Cv=Sv*Z/1e3,wv=.02,Tv=400,Ev={minStartLevel:400,minEndLevel:240,startFactor:3.5,endFactor:2,silenceMs:1e3,longSilenceMs:1600,longAfterMs:2500,minSpeechMs:250,speechGapMs:300,maxMs:3e4,preRollMs:400,tailMs:300,warmupMs:150};function Dv(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n]*e[n];return Math.sqrt(t/e.length)}var Ov=class{constructor(e={}){l(this,`opts`,void 0),l(this,`pending`,new Int16Array),l(this,`floor`,null),l(this,`seenMs`,0),l(this,`history`,[]),l(this,`frames`,null),l(this,`speech`,!1),l(this,`voicedMs`,0),l(this,`quietMs`,0),l(this,`spokenMs`,0),l(this,`level`,0),this.opts={...Ev,...e}}get startLevel(){return Math.max(this.opts.minStartLevel,(this.floor??0)*this.opts.startFactor)}get endLevel(){return Math.min(this.startLevel,Math.max(this.opts.minEndLevel,(this.floor??0)*this.opts.endFactor))}get hearing(){return this.frames!==null}reset(){this.pending=new Int16Array,this.history=[],this.frames=null,this.speech=!1,this.voicedMs=0,this.quietMs=0,this.spokenMs=0,this.level=0}push(e){let t=e;this.pending.length&&(t=new Int16Array(this.pending.length+e.length),t.set(this.pending),t.set(e,this.pending.length));let n=0,r=null;for(;t.length-n>=Cv;){let e=t.slice(n,n+Cv);n+=Cv,r=this.frame(e)||r}return this.pending=t.slice(n),r}frame(e){let t=this.opts,n=Dv(e);if(this.level=n,this.seenMs+=Z,this.floor=this.floor===null?0:n<this.floor?n:this.frames?this.floor:this.floor+(n-this.floor)*wv,!this.frames)return this.history.push(e),this.history.length>Math.ceil(t.preRollMs/Z)+1&&this.history.shift(),this.seenMs>=t.warmupMs&&n>=this.startLevel&&(this.frames=this.history,this.history=[],this.voicedMs=Z,this.quietMs=0),null;this.frames.push(e);let r=n>=this.endLevel;if(!this.speech){if(r)this.voicedMs+=Z,this.quietMs=0;else if(this.quietMs+=Z,this.quietMs>=t.speechGapMs)return this.history=this.frames.slice(-(Math.ceil(t.preRollMs/Z)+1)),this.frames=null,null;return this.voicedMs>=t.minSpeechMs&&(this.speech=!0,this.spokenMs=this.voicedMs+this.quietMs),null}this.spokenMs+=Z,r?this.quietMs=0:this.quietMs+=Z;let i=this.spokenMs-this.quietMs,a=t.longAfterMs&&i>=t.longAfterMs?t.longSilenceMs:t.silenceMs;if(this.quietMs>=a||this.spokenMs>=t.maxMs){let e=Math.max(0,Math.floor((this.quietMs-t.tailMs)/Z)),n=this.frames.slice(0,this.frames.length-e);return this.reset(),kv(n)}return null}};function kv(e){let t=new Int16Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}var Av=class{constructor(e){l(this,`pos`,0),l(this,`last`,0),l(this,`ratio`,void 0),this.ratio=e/Sv}process(e){let t=new Int16Array(Math.ceil((e.length+1)/this.ratio)+1),n=0;for(;this.pos<e.length-1;){let r=Math.floor(this.pos),i=r<0?this.last:e[r],a=i+(e[r+1]-i)*(this.pos-r);t[n++]=Math.round(Math.max(-1,Math.min(1,a))*32767),this.pos+=this.ratio}return this.pos-=e.length,this.last=e.length?e[e.length-1]:this.last,t.subarray(0,n)}};function jv(e){let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)}var Mv=class{constructor(e){l(this,`handlers`,void 0),l(this,`context`,null),l(this,`stream`,null),l(this,`node`,null),l(this,`resampler`,null),l(this,`detector`,new Ov),l(this,`busy`,!1),l(this,`resumeAt`,0),l(this,`stopped`,!1),this.handlers=e}static get supported(){var e;return typeof window<`u`&&window.isSecureContext&&!!((e=navigator.mediaDevices)!=null&&e.getUserMedia)}async start(){let e=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,channelCount:1}});if(this.stopped){e.getTracks().forEach(e=>e.stop());return}let t=new AudioContext;t.state===`suspended`&&await t.resume();let n=t.createMediaStreamSource(e),r=t.createScriptProcessor(2048,1,1);this.resampler=new Av(t.sampleRate),r.onaudioprocess=e=>this.onAudio(e.inputBuffer.getChannelData(0)),n.connect(r),r.connect(t.destination),this.context=t,this.stream=e,this.node=r}stop(){var e,t;this.stopped=!0,this.node&&(this.node.onaudioprocess=null,this.node.disconnect()),(e=this.stream)==null||e.getTracks().forEach(e=>e.stop()),(t=this.context)==null||t.close().catch(()=>{}),this.node=null,this.stream=null,this.context=null}onAudio(e){var t,n,r,i;if(this.stopped||!this.resampler)return;let a=this.resampler.process(e);if(this.busy||Date.now()<this.resumeAt)return;let o=this.detector.push(a);(t=(n=this.handlers).onLevel)==null||t.call(n,Math.min(1,this.detector.level/this.detector.startLevel),this.detector.hearing),o&&(this.busy=!0,(r=(i=this.handlers).onLevel)==null||r.call(i,0,!1),this.handlers.onUtterance(o).catch(()=>{}).finally(()=>{this.busy=!1,this.resumeAt=Date.now()+Tv,this.detector.reset()}))}},Nv={},Pv=Object.assign({"./i18n/de.json":W,"./i18n/en.json":G,"./i18n/es.json":K,"./i18n/fr.json":fa,"./i18n/it.json":Go,"./i18n/nl.json":xc,"./i18n/pl.json":Ql,"./i18n/pt.json":kd,"./i18n/ru.json":sp,"./i18n/uk.json":zm,"./i18n/zh-cn.json":_g});for(let[e,t]of Object.entries(Pv)){var Fv;let n=((Fv=e.split(`/`).pop())==null?void 0:Fv.replace(`.json`,``))||`en`;Nv[n]=t.default}B.extendTranslations(Nv);function Iv(e){return e.satellite||e.source||e.transport}var Lv=class extends U{constructor(e){super(e),l(this,`scrollRef`,t.createRef()),l(this,`aliveSubId`,``),l(this,`journalSubId`,``),l(this,`recognition`,null),l(this,`voiceDialog`,null),l(this,`stopSpeaking`,null),l(this,`levelAt`,0),l(this,`scrollTimeout`,null),l(this,`onJournalChange`,(e,t)=>{if(!(t!=null&&t.val)||typeof t.val!=`string`)return;let n;try{n=JSON.parse(t.val)}catch{return}if(!(n!=null&&n.id))return;let r=this.isNearBottom();this.setState(e=>({entries:{...e.entries,[n.id]:n}}),()=>r&&this.scrollToBottom())}),l(this,`onAliveChange`,(e,t)=>{let n=!!(t!=null&&t.val),r=this.state.alive;this.setState({alive:n}),n||this.stopDialog(),n&&!r&&(this.checkTtsAvailable(),this.loadJournal())}),l(this,`onKeyDown`,e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),this.send())}),l(this,`fetchTrace`,async e=>await this.props.oContext.socket.sendTo(this.instanceId,`getJournalTrace`,{id:e})||{error:`no answer from the adapter`});let n=!0;try{n=window.localStorage.getItem(`assistant.chat.details`)!==`0`}catch{}this.state={...this.state,messages:[],entries:{},journalEnabled:null,showDetails:n,detailsId:``,filter:``,confirmClear:!1,input:``,sending:!1,alive:!1,listening:!1,speak:!1,ttsPlaying:``,ttsAvailable:!1,dialog:``,dialogLevel:0}}async checkTtsAvailable(){try{let e=await this.props.oContext.socket.sendTo(this.instanceId,`ttsAvailable`,{});this.setState({ttsAvailable:!!(e!=null&&e.available)})}catch{this.setState({ttsAvailable:!1})}}async loadJournal(){try{let e=await this.props.oContext.socket.sendTo(this.instanceId,`getJournal`,{});if(!e||e.enabled===void 0){this.setState({journalEnabled:!1});return}let t={};for(let n of e.entries||[])t[n.id]=n;this.setState(n=>({journalEnabled:!!e.enabled,entries:{...t,...n.entries}}),()=>this.scrollToBottom())}catch{this.setState({journalEnabled:!1})}}get speechSupported(){let e=window;return(!!e.SpeechRecognition||!!e.webkitSpeechRecognition)&&window.isSecureContext}get ttsSupported(){return typeof window<`u`&&`speechSynthesis`in window}speechLang(e){return{de:`de-DE`,en:`en-US`,ru:`ru-RU`,pt:`pt-PT`,nl:`nl-NL`,fr:`fr-FR`,it:`it-IT`,es:`es-ES`,pl:`pl-PL`,uk:`uk-UA`,"zh-cn":`zh-CN`}[e||B.getLanguage()]||`en-US`}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}async componentDidMount(){await super.componentDidMount(),this.aliveSubId=`system.adapter.${this.instanceId}.alive`,this.journalSubId=`${this.instanceId}.journal.last`;let e=!1;try{let t=await this.props.oContext.socket.getState(this.aliveSubId);e=!!(t!=null&&t.val)}catch{e=!1}this.setState({alive:e}),e&&(this.checkTtsAvailable(),this.loadJournal()),await this.props.oContext.socket.subscribeState(this.aliveSubId,this.onAliveChange),await this.props.oContext.socket.subscribeState(this.journalSubId,this.onJournalChange)}componentWillUnmount(){var e;this.aliveSubId&&this.props.oContext.socket.unsubscribeState(this.aliveSubId,this.onAliveChange),this.journalSubId&&this.props.oContext.socket.unsubscribeState(this.journalSubId,this.onJournalChange),this.scrollTimeout&&=(clearTimeout(this.scrollTimeout),null);try{var t;(t=this.recognition)==null||t.stop()}catch{}this.stopDialog(),this.ttsSupported&&window.speechSynthesis.cancel(),(e=super.componentWillUnmount)==null||e.call(this)}toggleListening(){if(this.state.listening){var e;(e=this.recognition)==null||e.stop();return}let t=window,n=t.SpeechRecognition||t.webkitSpeechRecognition;if(!n)return;let r=new n;r.lang=this.speechLang(),r.interimResults=!1,r.continuous=!1,r.onresult=e=>{var t;let n=((t=e.results)==null||(t=t[0])==null||(t=t[0])==null?void 0:t.transcript)||``;n&&this.setState({input:n},()=>void this.send())},r.onerror=()=>this.setState({listening:!1}),r.onend=()=>this.setState({listening:!1}),this.recognition=r,this.setState({listening:!0});try{r.start()}catch{this.setState({listening:!1})}}get voiceSettings(){let e=this.props.data||{};return{enabled:!!e.voiceEnabled,language:e.voiceLanguage||``}}async toggleDialog(){if(this.voiceDialog){this.stopDialog();return}try{var e;(e=this.recognition)==null||e.stop()}catch{}this.ttsSupported&&window.speechSynthesis.cancel();let t=new Mv({onUtterance:e=>this.dialogTurn(e),onLevel:(e,t)=>this.onDialogLevel(e,t)});this.voiceDialog=t,this.setState({dialog:`listening`,dialogLevel:0});try{await t.start()}catch(e){this.voiceDialog===t&&this.stopDialog(),this.addMessage({role:`error`,text:`${B.t(`custom_assistant_The microphone could not be opened:`)} ${e.message}`,ts:Date.now()})}}stopDialog(){var e,t;(e=this.voiceDialog)==null||e.stop(),this.voiceDialog=null,(t=this.stopSpeaking)==null||t.call(this),this.state.dialog&&this.setState({dialog:``,dialogLevel:0})}onDialogLevel(e,t){let n=Date.now();n-this.levelAt<100&&t===(this.state.dialog===`hearing`)||(this.levelAt=n,this.setState(n=>n.dialog===`listening`||n.dialog===`hearing`?{dialogLevel:e,dialog:t?`hearing`:`listening`}:null))}async dialogTurn(e){let t=this.voiceDialog;if(!t||!this.ready)return;let n=!!this.state.journalEnabled,r=this.state.filter&&this.state.filter!==`chat`?``:this.state.filter;this.setState({dialog:`thinking`,dialogLevel:0,sending:!0,filter:r});try{let r=await this.props.oContext.socket.sendTo(this.instanceId,`ask`,{audio:jv(e),format:`pcm`,sampleRate:Sv,spoken:!0});if(this.voiceDialog!==t)return;if(!r){this.addMessage({role:`error`,text:`no answer from the adapter`,ts:Date.now()});return}if(r.heard===``)return;n&&r.journaled||(r.heard&&this.addMessage({role:`user`,text:r.heard,ts:Date.now()}),this.addMessage(r.error===void 0?{role:`assistant`,text:r.answer??``,ts:Date.now()}:{role:`error`,text:r.error,ts:Date.now()})),r.answer&&(this.setState({dialog:`speaking`}),await this.speakAndWait(r.answer))}catch(e){this.addMessage({role:`error`,text:e.message,ts:Date.now()})}finally{this.setState({sending:!1}),this.voiceDialog===t&&this.setState({dialog:`listening`,dialogLevel:0})}}speakAndWait(e){return new Promise(t=>{let n=!1,r=null,i=()=>{n||(n=!0,clearTimeout(a),this.stopSpeaking=null,t())},a=setTimeout(i,15e3+e.length*120);this.stopSpeaking=()=>{r==null||r.pause(),this.ttsSupported&&window.speechSynthesis.cancel(),i()};let o=()=>{if(n||!this.ttsSupported){i();return}let t=new SpeechSynthesisUtterance(e);t.lang=this.speechLang(this.voiceSettings.language),t.onend=i,t.onerror=i,window.speechSynthesis.cancel(),window.speechSynthesis.speak(t)};this.state.ttsAvailable?(async()=>{try{let t=await this.props.oContext.socket.sendTo(this.instanceId,`tts`,{text:e});if(n)return;if(t!=null&&t.audio){r=new Audio(`data:${t.mime||`audio/wav`};base64,${t.audio}`),r.onended=i,r.onerror=i,await r.play();return}}catch{}o()})():o()})}speak(e){if(!this.ttsSupported||!e)return;window.speechSynthesis.cancel();let t=new SpeechSynthesisUtterance(e);t.lang=this.speechLang(),window.speechSynthesis.speak(t)}async playViaBackend(e,t){if(this.ready&&t){this.setState({ttsPlaying:e});try{let e=await this.props.oContext.socket.sendTo(this.instanceId,`tts`,{text:t});if(e!=null&&e.audio){let t=new Audio(`data:${e.mime||`audio/wav`};base64,${e.audio}`);t.onended=()=>this.setState({ttsPlaying:``}),t.onerror=()=>this.setState({ttsPlaying:``}),await t.play()}else this.setState({ttsPlaying:``})}catch{this.setState({ttsPlaying:``})}}}isNearBottom(){let e=this.scrollRef.current;return!e||e.scrollHeight-e.scrollTop-e.clientHeight<80}scrollToBottom(e){e||=0;let t=this.scrollRef.current;t?t.scrollTop=t.scrollHeight:e<15&&(this.scrollTimeout=setTimeout(()=>{this.scrollTimeout=null,this.scrollToBottom(e+1)},100))}get ready(){return this.state.alive&&!this.props.changed}addMessage(e){this.setState(t=>({messages:[...t.messages,e]}),()=>this.scrollToBottom())}async send(){let e=this.state.input.trim();if(!e||this.state.sending||!this.ready)return;let t=!!this.state.journalEnabled,n=this.state.filter&&this.state.filter!==`chat`?``:this.state.filter;this.setState({input:``,sending:!0,filter:n},()=>this.scrollToBottom()),t||this.addMessage({role:`user`,text:e,ts:Date.now()});try{let t=await this.props.oContext.socket.sendTo(this.instanceId,`ask`,{text:e});(t==null?void 0:t.error)===void 0?t!=null&&t.journaled||this.addMessage({role:`assistant`,text:(t==null?void 0:t.answer)??``,ts:Date.now()}):t.journaled||this.addMessage({role:`error`,text:t.error,ts:Date.now()}),this.state.speak&&t!=null&&t.answer&&this.speak(t.answer)}catch(e){this.addMessage({role:`error`,text:e.message,ts:Date.now()})}this.setState({sending:!1})}async refreshCache(){if(this.ready)try{await this.props.oContext.socket.sendTo(this.instanceId,`clearCache`,{}),this.addMessage({role:`info`,text:B.t(`custom_assistant_Device cache cleared.`),ts:Date.now()})}catch{}}async clearHistory(){if(this.setState({confirmClear:!1,messages:[],entries:{}}),this.state.journalEnabled&&this.state.alive)try{await this.props.oContext.socket.sendTo(this.instanceId,`clearJournal`,{})}catch{}}openDetails(e){var t;(t=window.getSelection())!=null&&t.toString()||this.setState({detailsId:e})}toggleDetails(){let e=!this.state.showDetails;this.setState({showDetails:e});try{window.localStorage.setItem(`assistant.chat.details`,e?`1`:`0`)}catch{}}bubbleColors(e){let t=this.props.oContext.themeType===`dark`;return e===`user`?{bg:t?`#1e88e5`:`#2196f3`,color:`#fff`}:e===`error`?{bg:t?`#5d1f1f`:`#f8d7da`,color:t?`#ffb4b4`:`#842029`}:{bg:t?`#3a3a3a`:`#eceff1`,color:t?`#eee`:`#111`}}renderBubble(e,t,r,i,a={}){let s=t===`user`,{bg:c,color:l}=this.bubbleColors(t);return A(P,{sx:{display:`flex`,justifyContent:s?`flex-end`:`flex-start`,mb:.5},children:R(n,{elevation:1,onClick:a.onClick,title:a.onClick?B.t(`custom_assistant_Click for details`):void 0,sx:{px:1.5,py:1,maxWidth:`75%`,background:c,color:l,borderRadius:2,whiteSpace:`pre-wrap`,wordBreak:`break-word`,cursor:a.onClick?`pointer`:void 0,outline:`2px solid transparent`,transition:`outline-color 0.15s`,"&:hover":a.onClick?{outlineColor:`rgba(127,127,127,0.45)`}:void 0},children:[a.header,A(V,{variant:`body2`,component:`div`,children:r}),R(P,{sx:{display:`flex`,alignItems:`center`,justifyContent:`flex-end`,gap:.5},children:[a.footer,a.playText&&this.state.ttsAvailable?A(N,{title:B.t(`custom_assistant_Play answer (backend TTS)`),children:A(`span`,{children:A(O,{size:`small`,disabled:!this.ready||this.state.ttsPlaying===e,onClick:t=>{t.stopPropagation(),this.playViaBackend(e,a.playText||``)},sx:{p:.25,color:`inherit`,opacity:.7},children:this.state.ttsPlaying===e?A(u,{size:12}):A(o,{sx:{fontSize:`0.9rem`}})})})}):null,A(V,{variant:`caption`,component:`div`,sx:{opacity:.6,fontSize:`0.65rem`},children:new Date(i).toLocaleTimeString()})]})]})},e)}renderMessage(e,t){return e.role===`info`?A(V,{variant:`caption`,component:`div`,sx:{textAlign:`center`,opacity:.6,my:1,fontStyle:`italic`},children:e.text},`m${t}`):this.renderBubble(`m${t}`,e.role,e.text,e.ts,{playText:e.role===`assistant`?e.text:void 0})}chip(e,n,r){let i=A(w,{size:`small`,label:e,sx:{height:18,fontSize:`0.68rem`,mr:.5,color:r?`#fff`:`inherit`,background:r||`rgba(127,127,127,0.25)`,"& .MuiChip-label":{px:.75}}});return n?A(N,{title:n,children:i},e):A(t.Fragment,{children:i},e)}renderOrigin(e){let t=[this.chip(B.t(Q_[e.transport]||e.transport))],n=e.satellite||(e.transport===`chat`||e.transport===`state`?``:e.source);return n&&t.push(this.chip(n,B.t(`custom_assistant_Source`))),e.room&&e.room!==n&&t.push(this.chip(e.room,B.t(`custom_assistant_Room`))),e.wakeWord!==void 0&&t.push(e.wakeWord?this.chip(`🎙 ${e.wakeWord}`,B.t(`custom_assistant_Wake word`)):this.chip(`🎙 ${B.t(`custom_assistant_follow-up`)}`,B.t(`custom_assistant_Mic re-opened without wake word`))),e.sttMs!==void 0&&t.push(this.chip(`STT ${q(e.sttMs)}`,B.t(`custom_assistant_Speech recognition time`))),A(P,{sx:{mb:.5,opacity:.9},children:t})}renderDetails(e){if(!this.state.showDetails)return null;let t={fontFamily:`monospace`,fontSize:`0.72rem`},n=[];for(let[r,i]of e.tools.entries())n.push(R(P,{sx:{...t,color:i.error?`error.main`:void 0},children:[`🔧 `,i.name,`(`,JSON.stringify(i.args),`) → `,i.error?`⚠ ${i.error}`:i.result,` `,``,A(`span`,{style:{opacity:.6},children:q(i.ms)})]},`t${r}`));e.read.length&&n.push(R(P,{sx:t,children:[`📖 `,e.read.join(`, `)]},`r`));for(let[r,i]of e.written.entries())n.push(R(P,{sx:t,children:[`✏️ `,i.id,` = `,rv(i.value)]},`w${r}`));return R(P,{onClick:()=>this.openDetails(e.id),title:B.t(`custom_assistant_Click for details`),sx:{ml:1,mb:1.5,pl:1,borderLeft:`2px solid rgba(127,127,127,0.35)`,opacity:.85,cursor:`pointer`,"&:hover":{opacity:1,borderLeftColor:`rgba(127,127,127,0.8)`}},children:[R(P,{sx:{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:.25},children:[e.tier?this.chip(B.t($_[e.tier]),void 0,ev[e.tier]):null,e.detail?A(V,{variant:`caption`,sx:{...t,mr:1},children:e.detail}):null,e.done?A(V,{variant:`caption`,sx:{opacity:.7,mr:1},children:q(e.ms)}):null,e.tokens?A(V,{variant:`caption`,sx:{opacity:.6,mr:1},children:iv(e.tokens)}):null,e.ttsMs===void 0?null:this.chip(`TTS ${q(e.ttsMs)}`,B.t(`custom_assistant_Speech synthesis`)),e.followUp?this.chip(B.t(`custom_assistant_waits for reply`)):null]}),n]})}renderEntry(e){let n=()=>this.openDetails(e.id),r;return r=e.done?e.error?this.renderBubble(`${e.id}a`,`error`,e.error,e.ts+(e.ms||0),{onClick:n}):this.renderBubble(`${e.id}a`,`assistant`,e.answer||A(`i`,{style:{opacity:.6},children:B.t(`custom_assistant_(no spoken answer)`)}),e.ts+(e.ms||0),{playText:e.answer||void 0,onClick:n}):R(P,{onClick:n,title:B.t(`custom_assistant_Click for details`),sx:{display:`flex`,alignItems:`center`,gap:1,p:1,opacity:.7,cursor:`pointer`},children:[A(u,{size:16}),A(V,{variant:`body2`,children:B.t(`custom_assistant_Thinking…`)})]},`${e.id}a`),R(t.Fragment,{children:[this.renderBubble(`${e.id}q`,`user`,e.question,e.ts,{header:this.renderOrigin(e),onClick:n}),r,this.renderDetails(e)]},e.id)}renderTimeline(){let{entries:e,messages:t,filter:n}=this.state,r=[];for(let t of Object.values(e))n&&Iv(t)!==n||r.push({ts:t.ts,el:()=>this.renderEntry(t)});return n&&n!==`chat`||t.forEach((e,t)=>r.push({ts:e.ts,el:()=>this.renderMessage(e,t)})),r.sort((e,t)=>e.ts-t.ts),r.map(e=>e.el())}renderFilter(){let e=[...new Set(Object.values(this.state.entries).map(Iv))].sort();return!this.state.journalEnabled||e.length<2?null:R(ve,{size:`small`,variant:`standard`,value:e.includes(this.state.filter)?this.state.filter:``,displayEmpty:!0,onChange:e=>this.setState({filter:String(e.target.value)}),sx:{mr:1,minWidth:140,fontSize:`0.85rem`},children:[A(oe,{value:``,children:B.t(`custom_assistant_All sources`)}),e.map(e=>A(oe,{value:e,children:e},e))]})}renderItem(){let e=this.props.oContext.themeType===`dark`,{alive:t,messages:n,entries:r,sending:o,input:s,listening:c,speak:l,journalEnabled:f,showDetails:p,dialog:h}=this.state,_=this.ready,v=this.renderTimeline(),y=!n.length&&!Object.keys(r).length;return R(P,{sx:{width:`100%`,display:`flex`,flexDirection:`column`,height:`calc(100vh - 300px)`},children:[R(P,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mb:1},children:[R(P,{children:[A(V,{variant:`h6`,children:B.t(f?`custom_assistant_Chat`:`custom_assistant_Test chat`)}),f?A(V,{variant:`caption`,sx:{opacity:.7},children:B.t(`custom_assistant_Shows all requests live: satellites, Telegram, scripts and this chat.`)}):null]}),R(P,{sx:{display:`flex`,alignItems:`center`},children:[this.renderFilter(),f?A(N,{title:B.t(p?`custom_assistant_Hide processing details`:`custom_assistant_Show processing details`),children:A(O,{size:`small`,color:p?`primary`:`default`,onClick:()=>this.toggleDetails(),children:A(p?ue:pe,{})})}):null,this.ttsSupported?A(N,{title:B.t(l?`custom_assistant_Stop reading answers aloud`:`custom_assistant_Read answers aloud`),children:A(O,{size:`small`,color:l?`primary`:`default`,onClick:()=>{l&&window.speechSynthesis.cancel(),this.setState({speak:!l})},children:A(l?F:i,{})})}):null,A(N,{title:B.t(`custom_assistant_Refresh device cache`),children:A(`span`,{children:A(O,{size:`small`,disabled:!_,onClick:()=>void this.refreshCache(),children:A(ne,{})})})}),A(N,{title:B.t(`custom_assistant_Clear chat`),children:A(`span`,{children:A(O,{size:`small`,disabled:y,onClick:()=>f?this.setState({confirmClear:!0}):void this.clearHistory(),children:A(ye,{})})})})]})]}),_?null:A(V,{sx:{p:2},color:`warning.main`,children:t?B.t(`custom_assistant_Save the configuration (the instance will restart) before chatting.`):B.t(`custom_assistant_Start the assistant instance to chat.`)}),R(P,{ref:this.scrollRef,sx:{flex:1,overflowY:`auto`,p:1,border:`1px solid ${e?`#444`:`#ccc`}`,borderRadius:1,background:e?`#1e1e1e`:`#fafafa`,mb:1},children:[v.length?v:A(V,{sx:{p:2,textAlign:`center`,opacity:.6},variant:`body2`,children:B.t(`custom_assistant_No messages yet. Type a question below.`)}),o&&!f?R(P,{sx:{display:`flex`,alignItems:`center`,gap:1,p:1,opacity:.7},children:[A(u,{size:16}),A(V,{variant:`body2`,children:B.t(`custom_assistant_Thinking…`)})]}):null]}),h?A(g,{sx:{mb:.5,height:3,borderRadius:1},variant:h===`thinking`||h===`speaking`?`indeterminate`:`determinate`,color:h===`hearing`?`error`:h===`speaking`?`secondary`:`primary`,value:Math.round(this.state.dialogLevel*100)}):null,R(P,{sx:{display:`flex`,alignItems:`flex-end`,gap:1},children:[Mv.supported?A(N,{title:B.t(h?`custom_assistant_End the dialog`:this.voiceSettings.enabled?`custom_assistant_Dialog: everything you say becomes a question`:`custom_assistant_The dialog needs speech recognition: enable voice on the Voice tab.`),children:A(`span`,{children:A(O,{color:h?`error`:`primary`,disabled:!h&&(!_||o||!this.voiceSettings.enabled),onClick:()=>void this.toggleDialog(),children:A(m,{})})})}):null,this.speechSupported&&!h?A(N,{title:B.t(c?`custom_assistant_Stop listening`:`custom_assistant_Speak`),children:A(`span`,{children:A(O,{color:c?`error`:`primary`,disabled:!_||o,onClick:()=>this.toggleListening(),children:A(T,{})})})}):null,A(I,{fullWidth:!0,multiline:!0,maxRows:4,size:`small`,variant:`outlined`,placeholder:B.t(h===`listening`?`custom_assistant_Dialog: listening…`:h===`hearing`?`custom_assistant_Dialog: hearing you…`:h===`thinking`?`custom_assistant_Dialog: thinking…`:h===`speaking`?`custom_assistant_Dialog: speaking…`:c?`custom_assistant_Listening…`:`custom_assistant_Type a message…`),value:s,disabled:!_||o||!!h,onChange:e=>this.setState({input:e.target.value}),onKeyDown:this.onKeyDown}),A(O,{color:`primary`,disabled:!_||o||!!h||!s.trim(),onClick:()=>void this.send(),children:A(te,{})})]}),this.state.detailsId&&r[this.state.detailsId]?A(xv,{entry:r[this.state.detailsId],fetchTrace:this.fetchTrace,dark:e,onClose:()=>this.setState({detailsId:``})}):null,R(ee,{open:this.state.confirmClear,onClose:()=>this.setState({confirmClear:!1}),children:[A(a,{children:B.t(`custom_assistant_Clear chat`)}),A(re,{children:A(V,{variant:`body2`,children:B.t(`custom_assistant_Delete the recorded history of all sources?`)})}),R(d,{children:[A(k,{color:`error`,variant:`contained`,onClick:()=>void this.clearHistory(),children:B.t(`custom_assistant_Delete`)}),A(k,{onClick:()=>this.setState({confirmClear:!1}),children:B.t(`custom_assistant_Cancel`)})]})]})]})}},Rv={},zv=Object.assign({"./i18n/de.json":W,"./i18n/en.json":G,"./i18n/es.json":K,"./i18n/fr.json":fa,"./i18n/it.json":Go,"./i18n/nl.json":xc,"./i18n/pl.json":Ql,"./i18n/pt.json":kd,"./i18n/ru.json":sp,"./i18n/uk.json":zm,"./i18n/zh-cn.json":_g});for(let[e,t]of Object.entries(zv)){var Bv;let n=((Bv=e.split(`/`).pop())==null?void 0:Bv.replace(`.json`,``))||`en`;Rv[n]=t.default}B.extendTranslations(Rv);var Vv={ready:`success`,error:`error`,installing:`info`,downloading:`info`,loading:`info`},Hv=class extends U{constructor(e){super(e),l(this,`statusId`,``),l(this,`progressId`,``),l(this,`onStatus`,(e,t)=>{this.setState({status:(t==null?void 0:t.val)||`idle`})}),l(this,`onProgress`,(e,t)=>{this.setState({progress:Number(t==null?void 0:t.val)||0})}),this.state={...this.state,status:`idle`,progress:0}}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}async componentDidMount(){super.componentDidMount(),this.statusId=`${this.instanceId}.localLlm.status`,this.progressId=`${this.instanceId}.localLlm.progress`;let e=this.props.oContext.socket;try{let t=await e.getState(this.statusId),n=await e.getState(this.progressId);this.setState({status:(t==null?void 0:t.val)||`idle`,progress:Number(n==null?void 0:n.val)||0})}catch{}e.subscribeState(this.statusId,this.onStatus),e.subscribeState(this.progressId,this.onProgress)}componentWillUnmount(){var e;let t=this.props.oContext.socket;this.statusId&&(t.unsubscribeState(this.statusId,this.onStatus),t.unsubscribeState(this.progressId,this.onProgress)),(e=super.componentWillUnmount)==null||e.call(this)}renderItem(){let{status:e,progress:t}=this.state,n=e===`installing`||e===`downloading`||e===`loading`,r=e===`downloading`;return R(P,{sx:{width:`100%`,mt:.5,mb:1},children:[R(P,{sx:{display:`flex`,alignItems:`center`,gap:1,mb:.5},children:[R(V,{variant:`body2`,children:[B.t(`custom_assistant_Local model`),`:`]}),A(w,{size:`small`,color:Vv[e]||`default`,variant:`outlined`,label:B.t(`custom_assistant_llm_${e}`)}),r?R(V,{variant:`body2`,children:[Math.round(t),`%`]}):null]}),n?A(g,{variant:r?`determinate`:`indeterminate`,value:r?t:void 0}):null]})}},Uv={},Wv=Object.assign({"./i18n/de.json":W,"./i18n/en.json":G,"./i18n/es.json":K,"./i18n/fr.json":fa,"./i18n/it.json":Go,"./i18n/nl.json":xc,"./i18n/pl.json":Ql,"./i18n/pt.json":kd,"./i18n/ru.json":sp,"./i18n/uk.json":zm,"./i18n/zh-cn.json":_g});for(let[e,t]of Object.entries(Wv)){var Gv;let n=((Gv=e.split(`/`).pop())==null?void 0:Gv.replace(`.json`,``))||`en`;Uv[n]=t.default}B.extendTranslations(Uv);var Q=(e,...t)=>B.t(`custom_assistant_${e}`,...t),Kv=[8,3,11];function qv(e,t){let n=/^(\d+)\.(\d+)\.(\d+)/.exec(e||``);if(!n)return!1;for(let e=0;e<3;e++){let r=Number(n[e+1]);if(r!==t[e])return r<t[e]}return!1}function $(e){return e>=1024**3?`${(e/1024**3).toFixed(2)} GB`:e>=1024**2?`${Math.round(e/1024**2)} MB`:`${Math.round(e/1024)} KB`}function Jv(e){return e==null?`-`:e>=1e4?`${Math.round(e/1e3)} s`:e>=1e3?`${(e/1e3).toFixed(1)} s`:`${Math.round(e)} ms`}function Yv(e){if(e===`multi`)return Q(`many languages`);try{return new Intl.DisplayNames([B.getLanguage()],{type:`language`}).of(e)||e}catch{return e}}var Xv=class extends U{constructor(e){super(e),l(this,`timer`,null),l(this,`aliveId`,``),l(this,`statusId`,``),l(this,`progressId`,``),l(this,`unmounted`,!1),l(this,`onAlive`,(e,t)=>{let n=!!(t!=null&&t.val);n!==this.state.alive&&this.setState({alive:n},()=>void this.refresh())}),l(this,`onStatus`,(e,t)=>{this.setState({status:(t==null?void 0:t.val)||``})}),l(this,`onProgress`,(e,t)=>{this.setState({progress:Number(t==null?void 0:t.val)||0})}),this.state={...this.state,list:null,alive:!1,error:``,url:``,busy:``,status:``,progress:0,confirmDelete:``,details:null,folderField:!1}}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}get form(){return this.props.data||{}}async componentDidMount(){super.componentDidMount();let e=this.props.oContext.socket;this.aliveId=`system.adapter.${this.instanceId}.alive`,this.statusId=`${this.instanceId}.localLlm.status`,this.progressId=`${this.instanceId}.localLlm.progress`;try{let t=await e.getState(this.aliveId),n=await e.getState(this.statusId),r=await e.getState(this.progressId);this.setState({alive:!!(t!=null&&t.val),status:(n==null?void 0:n.val)||``,progress:Number(r==null?void 0:r.val)||0})}catch{}await e.subscribeState(this.aliveId,this.onAlive),await e.subscribeState(this.statusId,this.onStatus),await e.subscribeState(this.progressId,this.onProgress),this.refresh(),this.checkAdmin()}async checkAdmin(){try{let e=await this.props.oContext.socket.getVersion();!this.unmounted&&(e==null?void 0:e.serverName)===`admin`&&qv(e.version,Kv)&&this.setState({folderField:!0})}catch{}}renderFolderField(){return this.state.folderField?A(I,{variant:`standard`,fullWidth:!0,sx:{mb:2},label:Q(`Model folder`),helperText:Q(`Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.`),value:this.form.localLlmModelDir||``,onChange:e=>void this.onChange(`localLlmModelDir`,e.target.value)}):null}componentWillUnmount(){var e;this.unmounted=!0,this.timer&&clearTimeout(this.timer);let t=this.props.oContext.socket;t.unsubscribeState(this.aliveId,this.onAlive),t.unsubscribeState(this.statusId,this.onStatus),t.unsubscribeState(this.progressId,this.onProgress),(e=super.componentWillUnmount)==null||e.call(this)}componentDidUpdate(e){var t;((t=e.data)==null?void 0:t.localLlmModelDir)!==this.form.localLlmModelDir&&this.refresh()}async send(e,t={}){let n=await this.props.oContext.socket.sendTo(this.instanceId,e,{dir:this.form.localLlmModelDir||``,active:this.form.localLlmModel||``,...t});if(n!=null&&n.error)throw Error(n.error);return n}async refresh(){if(this.timer&&=(clearTimeout(this.timer),null),!this.unmounted){if(!this.state.alive)this.setState({list:null});else try{let e=await this.send(`listLocalModels`);if(this.unmounted)return;this.setState({list:e,error:``});let t=e.downloads.some(e=>!e.error)||e.benchmarkRunning;this.timer=setTimeout(()=>void this.refresh(),t?1e3:1e4)}catch(e){this.setState({error:e.message}),this.timer=setTimeout(()=>void this.refresh(),1e4)}}}async run(e,t,n={}){this.setState({busy:e,error:``});try{await this.send(t,n)}catch(e){this.setState({error:e.message})}this.setState({busy:``}),await this.refresh()}useModel(e){this.props.onChange({...this.form,localLlmModel:e})}renderHeader(e){let t=this.form.localLlmModel||e.active,n=e.loaded&&t&&e.loaded!==t,r=e.disk?e.disk.total-e.disk.free:0;return R(P,{sx:{mb:2},children:[e.engineInstalled?null:A(c,{severity:`warning`,sx:{mb:1},children:Q(`The engine is not installed yet. Install it on the main tab ("Install local model").`)}),n?A(c,{severity:`info`,sx:{mb:1},children:Q(`Save the settings to load the selected model. The instance restarts.`)}):null,R(P,{sx:{display:`flex`,flexWrap:`wrap`,gap:2,alignItems:`center`},children:[R(V,{variant:`body2`,children:[Q(`Folder`),`: `,A(`code`,{children:e.dir})]}),R(V,{variant:`body2`,children:[Q(`Models`),`: `,e.models.length,`, `,$(e.totalBytes)]}),e.disk?A(N,{title:`${$(r)} / ${$(e.disk.total)}`,children:R(P,{sx:{minWidth:220},children:[R(V,{variant:`body2`,children:[Q(`Free on the disk`),`: `,$(e.disk.free)]}),A(g,{variant:`determinate`,value:e.disk.total?100*r/e.disk.total:0,color:e.disk.free<2*1024**3?`warning`:`primary`})]})}):null,this.state.status?A(w,{size:`small`,variant:`outlined`,color:this.state.status===`ready`?`success`:this.state.status===`error`?`error`:`default`,label:`${Q(`Loaded model`)}: ${B.t(`custom_assistant_llm_${this.state.status}`)}${[`downloading`,`benchmark`].includes(this.state.status)?` ${Math.round(this.state.progress)}%`:``}`}):null]})]})}renderBenchmark(e){let t=e.stats.benchmark;if(!t)return`-`;let n=t.cases-t.correct;return A(N,{title:Q(`Details`),children:A(w,{size:`small`,clickable:!0,onClick:()=>this.setState({details:e}),color:n===0?`success`:n<=t.cases/4?`warning`:`error`,label:`${t.correct}/${t.cases} · ${t.tokensPerSec} t/s`})})}renderModels(e){let t=this.form.localLlmModel||e.active;return e.models.length?A(P,{sx:{overflowX:`auto`},children:R(Se,{size:`small`,children:[A(j,{children:R(z,{children:[A(H,{children:Q(`Model`)}),A(H,{align:`right`,children:Q(`Size`)}),A(H,{align:`right`,children:A(N,{title:Q(`Questions asked / answered by the model / handed over to the next tier`),children:A(`span`,{children:Q(`Asked / answered / handed over`)})})}),A(H,{align:`right`,children:A(N,{title:Q(`Timeouts and errors among the questions asked`),children:A(`span`,{children:Q(`Failures`)})})}),A(H,{align:`right`,children:Q(`Tokens/s`)}),A(H,{align:`right`,children:A(N,{title:Q(`Time until the first word: reading the question`),children:A(`span`,{children:Q(`First token`)})})}),A(H,{align:`right`,children:Q(`Answer time`)}),A(H,{align:`right`,children:Q(`Load time`)}),A(H,{children:Q(`Benchmark`)}),A(H,{})]})}),A(L,{children:e.models.map(n=>{let r=n.stats,i=n.file===t,a=n.file===e.loaded;return R(z,{selected:i,children:[R(H,{children:[R(P,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:[i?A(s,{fontSize:`small`,color:`success`}):null,A(N,{title:n.url||n.file,children:A(`span`,{children:n.name})})]}),r.lastUsed?R(V,{variant:`caption`,sx:{opacity:.7},children:[Q(`last used`),` `,new Date(r.lastUsed).toLocaleString()]}):null]}),A(H,{align:`right`,children:$(n.sizeBytes)}),R(H,{align:`right`,children:[r.asked,` / `,r.answered,` / `,r.handoffs]}),A(H,{align:`right`,children:r.failureRate===null?`-`:`${Math.round(r.failureRate*100)} % (${r.timeouts+r.errors})`}),A(H,{align:`right`,children:r.tokensPerSec===null?`-`:r.tokensPerSec.toFixed(1)}),A(H,{align:`right`,children:Jv(r.avgFirstTokenMs)}),A(H,{align:`right`,children:Jv(r.avgAnswerMs)}),A(H,{align:`right`,children:r.loads?Jv(r.lastLoadMs):`-`}),A(H,{children:this.renderBenchmark(n)}),R(H,{sx:{whiteSpace:`nowrap`},children:[i?null:A(k,{size:`small`,onClick:()=>this.useModel(n.file),children:Q(`Use`)}),a?A(N,{title:Q(`Asks the loaded model test questions in the language of the assistant and in English: home questions must be handed over, general ones answered correctly`),children:A(`span`,{children:A(O,{size:`small`,disabled:!!this.state.busy||e.benchmarkRunning,onClick:()=>void this.run(`bench:${n.file}`,`benchmarkLocalModel`),children:A(be,{fontSize:`small`})})})}):null,A(N,{title:Q(`Reset statistics`),children:A(O,{size:`small`,onClick:()=>void this.run(`reset:${n.file}`,`resetLocalModelStats`,{file:n.file}),children:A(De,{fontSize:`small`})})}),A(N,{title:Q(i||a?`The active model cannot be deleted`:`Delete`),children:A(`span`,{children:A(O,{size:`small`,disabled:i||a,onClick:()=>this.setState({confirmDelete:n.file}),children:A(x,{fontSize:`small`})})})})]})]},n.file)})})]})}):A(V,{variant:`body2`,sx:{my:1},children:Q(`No models in this folder yet. Download one below.`)})}renderDownloads(e){return e.downloads.length?A(P,{sx:{my:2},children:e.downloads.map(e=>R(P,{sx:{mb:1},children:[R(P,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[R(V,{variant:`body2`,sx:{flexGrow:1},children:[e.file,`:`,` `,e.error?`${Q(`failed`)}: ${e.error}`:`${$(e.received)}${e.total?` / ${$(e.total)}`:``}`]}),e.error?null:A(N,{title:Q(`Cancel`),children:A(O,{size:`small`,onClick:()=>void this.run(`cancel:${e.file}`,`cancelLocalModelDownload`,{file:e.file}),children:A(_,{fontSize:`small`})})})]}),e.error?null:A(g,{variant:e.total?`determinate`:`indeterminate`,value:e.total?100*e.received/e.total:void 0})]},e.file))}):null}renderPresets(e){let t=B.getLanguage(),n=(e.language||`en`).split(`-`)[0],r=new Set(e.models.map(e=>e.file)),i=new Set(e.downloads.filter(e=>!e.error).map(e=>e.file));return A(P,{sx:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(280px, 1fr))`,gap:1.5,my:1},children:e.presets.map(a=>{let o=a.languages.includes(`multi`)||a.languages.includes(n),s=e.disk?a.sizeBytes+200*1024**2>e.disk.free:!1;return R(Ce,{variant:`outlined`,sx:{display:`flex`,flexDirection:`column`},children:[R(ce,{sx:{flexGrow:1,pb:1},children:[A(V,{variant:`subtitle2`,children:a.name}),R(P,{sx:{display:`flex`,flexWrap:`wrap`,gap:.5,my:.5},children:[A(w,{size:`small`,label:`${a.params} ${Q(`parameters`)}`}),A(w,{size:`small`,label:$(a.sizeBytes)}),A(N,{title:Q(`Estimate from the model size, not measured. Use the benchmark for real numbers.`),children:A(w,{size:`small`,variant:`outlined`,label:`${Q(`speed`)}: ${Q(a.speed)}`})})]}),A(V,{variant:`body2`,sx:{mb:.5},children:a.description[t]||a.description.en}),R(V,{variant:`caption`,color:o?`text.secondary`:`warning.main`,children:[Q(`Languages`),`: `,a.languages.map(Yv).join(`, `),o?``:`. ${Q(`not the language of the assistant`)}`]})]}),A(Ee,{children:A(k,{size:`small`,startIcon:A(y,{}),disabled:r.has(a.file)||i.has(a.file)||s||!!this.state.busy,onClick:()=>void this.run(`add:${a.id}`,`addLocalModel`,{preset:a.id}),children:r.has(a.file)?Q(`downloaded`):i.has(a.file)?Q(`downloading`):Q(s?`not enough space`:`Download`)})})]},a.id)})})}renderOwnLink(){return R(P,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,my:1},children:[A(I,{variant:`standard`,fullWidth:!0,label:Q(`Own model: link to a .gguf file`),helperText:Q(`Hugging Face links are fine, also hf:org/repo/file.gguf`),value:this.state.url,onChange:e=>this.setState({url:e.target.value})}),A(k,{variant:`outlined`,startIcon:A(y,{}),disabled:!this.state.url.trim()||!!this.state.busy,onClick:()=>void this.run(`add:url`,`addLocalModel`,{url:this.state.url.trim()}).then(()=>this.setState({url:this.state.error?this.state.url:``})),sx:{mt:1.5,whiteSpace:`nowrap`},children:Q(`Download`)})]})}renderDetails(){let e=this.state.details,t=e==null?void 0:e.stats.benchmark;return!e||!t?null:R(ee,{open:!0,fullWidth:!0,maxWidth:`md`,onClose:()=>this.setState({details:null}),children:[R(a,{children:[Q(`Benchmark`),`: `,e.name]}),R(re,{children:[R(V,{variant:`body2`,sx:{mb:1},children:[new Date(t.at).toLocaleString(),` · `,t.correct,`/`,t.cases,` `,Q(`correct`),` ·`,` `,Q(`missed hand-overs`),`: `,t.missedHandoffs,` · `,Q(`needless hand-overs`),`: `,t.needlessHandoffs,` `,`· `,Q(`wrong answers`),`: `,t.wrongAnswers,` · `,Q(`timeouts`),`: `,t.timeouts,` · `,t.tokensPerSec,` t/s · `,Q(`First token`),` `,Jv(t.avgFirstTokenMs),` · `,Q(`Answer time`),` `,Jv(t.avgMs)]}),R(Se,{size:`small`,children:[A(j,{children:R(z,{children:[A(H,{}),A(H,{children:Q(`Question`)}),A(H,{children:Q(`Expected`)}),A(H,{children:Q(`Answer`)}),A(H,{align:`right`,children:Q(`Time`)})]})}),A(L,{children:t.details.map((e,t)=>R(z,{children:[A(H,{children:e.ok?`✓`:`✗`}),R(H,{children:[`[`,e.lang,`] `,e.question]}),A(H,{children:e.expect===`handoff`?Q(`hand over`):e.expect}),A(H,{sx:{maxWidth:360,wordBreak:`break-word`},children:e.answer}),A(H,{align:`right`,children:Jv(e.ms)})]},t))})]})]}),A(d,{children:A(k,{onClick:()=>this.setState({details:null}),children:Q(`Close`)})})]})}renderConfirmDelete(){let e=this.state.confirmDelete;return e?R(ee,{open:!0,onClose:()=>this.setState({confirmDelete:``}),children:[A(a,{children:Q(`Delete model?`)}),A(re,{children:A(V,{children:Q(`The file %s is deleted from the disk. Its statistics stay.`,e)})}),R(d,{children:[A(k,{color:`error`,variant:`contained`,onClick:()=>{this.setState({confirmDelete:``}),this.run(`delete:${e}`,`deleteLocalModel`,{file:e})},children:Q(`Delete`)}),A(k,{onClick:()=>this.setState({confirmDelete:``}),children:Q(`Cancel`)})]})]}):null}renderItem(){if(!this.state.alive)return R(P,{sx:{width:`100%`},children:[this.renderFolderField(),A(c,{severity:`info`,children:Q(`Start the instance to manage the local models.`)})]});let e=this.state.list;return e?R(P,{sx:{width:`100%`},children:[this.renderFolderField(),this.state.error?A(c,{severity:`error`,sx:{mb:1},onClose:()=>this.setState({error:``}),children:this.state.error}):null,this.renderHeader(e),this.renderModels(e),this.renderDownloads(e),A(V,{variant:`h6`,sx:{mt:3},children:Q(`Add a model`)}),this.renderPresets(e),this.renderOwnLink(),this.renderDetails(),this.renderConfirmDelete()]}):R(P,{sx:{width:`100%`},children:[this.renderFolderField(),this.state.error?A(c,{severity:`error`,children:this.state.error}):A(g,{})]})}};function Zv(e){let t=``,n=e.replace(/^.*[\\/]/,``).toLowerCase().replace(/\.(tflite|json|onnx)$/,``).normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/ß/g,`ss`).split(/[^a-z0-9]+/).filter(Boolean).filter(e=>{let n=!t&&/^20(\d{2})(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])$/.exec(e);return n?(t=`${n[1]}${n[2]}${n[3]}`,!1):!(/^\d{4,}$/.test(e)||/^[0-9a-f]{4,8}$/.test(e)&&/\d/.test(e)&&/[a-f]/.test(e)||[`microwakeword`,`openwakeword`,`wakeword`].includes(e))});return t?`${t}_${n.join(`_`)||`wake_word`}`.slice(0,40):null}function Qv(e){return e.replace(/\.tflite$/i,``).split(/[_\-\s]+/).filter(Boolean).map(e=>e[0].toUpperCase()+e.slice(1)).join(` `)}function $v(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result).replace(/^data:[^,]*,/,``)),r.onerror=()=>n(r.error||Error(`read failed`)),r.readAsDataURL(e)})}function ey(e,t){if(!Number.isFinite(e))return String(e);if(t&&t>0&&t<1){let n=Math.min(6,Math.ceil(-Math.log10(t)-1e-6));return String(Number(e.toFixed(n)))}return String(Number(e.toPrecision(7)))}function ty(e){let t=e.replace(/^controls\./,``),n=t.indexOf(`.`);return n<0?``:t.slice(n+1)}var ny=[`currentVersion`,`latestVersion`,`check`,`install`,`progress`];function ry(e){let t=e.map(ty);return t.includes(`latestVersion`)&&t.includes(`install`)&&t.includes(`progress`)}function iy(e){return e.common.write===!1}function ay(e){var n,i;let{values:o,objects:s,loading:l,onWrite:m}=e,h=t.useMemo(()=>{try{let e=o.availableWakeWords;return e?JSON.parse(String(e)):null}catch{return null}},[o.availableWakeWords]),_=String(o.wakeWords??``).split(`,`).map(e=>e.trim()).filter(Boolean),te=e=>{let t=_.includes(e)?_.filter(t=>t!==e):[..._,e];m(`wakeWords`,t.join(`,`))},v=(h==null?void 0:h.max)||0,ne=v>0&&_.length>=v,y=t.useRef(null),[b,x]=t.useState(null),[S,C]=t.useState(!1),[T,E]=t.useState(null),[ie,D]=t.useState(null),[O,se]=t.useState([]),{sendTo:j}=e,ce=t.useCallback(async()=>{try{let e=await j(`listWakeWords`,{});se(Array.isArray(e==null?void 0:e.bundled)?e.bundled:[])}catch{se([])}},[j]);t.useEffect(()=>{ce()},[]);let le=async t=>{E(null),C(!0);try{var n;let r=await j(`installWakeWord`,{id:t.id,satellite:e.satId}),i=(r==null?void 0:r.phrase)||t.phrase;r!=null&&r.error?E({severity:`error`,text:r.error}):r!=null&&r.full?E({severity:`error`,text:B.t(`custom_assistant_wake_word_installed_full`,i,i)}):r!=null&&(n=r.replaced)!=null&&n.length?E({severity:`success`,text:B.t(`custom_assistant_wake_word_installed_replaced`,i,r.replaced.join(`, `))}):E({severity:`success`,text:B.t(`custom_assistant_wake_word_installed`,i)})}catch(e){E({severity:`error`,text:String(e.message||e)})}finally{C(!1),ce()}},M=O.filter(e=>{var t;return!e.installed&&!(h!=null&&(t=h.words)!=null&&t.some(t=>t.id===e.id))}),ue=async e=>{E(null);let t=Array.from(e||[]),n=t.find(e=>/\.tflite$/i.test(e.name)),r=t.find(e=>/\.json$/i.test(e.name));if(!n)E({severity:`error`,text:B.t(`custom_assistant_Please select a .tflite model file`)});else try{let e=r?await r.text():``,t=``;try{let n=e?JSON.parse(e):{};t=typeof n.wake_word==`string`?n.wake_word:``}catch{}x({fileName:n.name,model:await $v(n),config:e,configName:(r==null?void 0:r.name)||``,phrase:Zv(n.name)||t||Qv(n.name)})}catch(e){E({severity:`error`,text:String(e.message||e)})}},de=async()=>{if(b){C(!0);try{let e=await j(`uploadWakeWord`,{model:b.model,fileName:b.fileName,config:b.config||void 0,phrase:b.phrase.trim()});e!=null&&e.error?E({severity:`error`,text:e.error}):(x(null),E({severity:`success`,text:B.t(`custom_assistant_wake_word_uploaded`,(e==null?void 0:e.phrase)||b.phrase)}))}catch(e){E({severity:`error`,text:String(e.message||e)})}finally{C(!1),ce()}}},fe=async e=>{D(null),C(!0);try{let t=await j(`deleteWakeWord`,{id:e.id});E(t!=null&&t.error?{severity:`error`,text:t.error}:{severity:`success`,text:B.t(`custom_assistant_wake_word_deleted`,e.phrase)})}catch(e){E({severity:`error`,text:String(e.message||e)})}finally{C(!1),ce()}};function pe(e,t){let n=t=>o[`controls.${e}.${t}`],r=String(n(`currentVersion`)??``),i=String(n(`latestVersion`)??``),a=n(`inProgress`)===!0,c=Math.min(100,Math.max(0,Number(n(`progress`))||0)),l=e=>{let t=ny.indexOf(ty(e));return t<0?ny.length:t};return[...t].sort((e,t)=>l(e)-l(t)).map(e=>{let t=ty(e);if(t===`inProgress`)return null;if(t===`install`)return i&&i!==r&&!a?L(e):null;if(t===`check`)return a?null:L(e);if(t===`progress`){var n;if(!a)return null;let r=(n=s[e])==null||(n=n.common)==null?void 0:n.name;return R(P,{children:[R(V,{variant:`caption`,sx:{opacity:.7},children:[typeof r==`string`?r:t,c>0?` ${Math.round(c)} %`:``]}),A(g,{variant:c>0?`determinate`:`indeterminate`,value:c,sx:{height:8,borderRadius:4}})]},e)}return L(e)})}let he=Object.keys(s).sort(),F=new Map;for(let e of he){let t=e.replace(/^controls\./,``),n=t.indexOf(`.`),r=n<0?t:t.slice(0,n);F.set(r,[...F.get(r)||[],e])}function L(e){let t=s[e],n=t.common,i=n.name&&typeof n.name==`string`?n.name:e,a=o[e];if(n.role===`button`)return A(k,{size:`small`,variant:`outlined`,onClick:()=>m(e,!0),children:i},e);if(iy(t))return R(P,{children:[A(V,{variant:`caption`,sx:{opacity:.7},children:i}),A(V,{variant:`body2`,children:a==null?`—`:typeof a==`number`?ey(a,n.step):String(a)})]},e);if(n.type===`boolean`)return R(P,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[A(V,{variant:`body2`,children:i}),A(r,{size:`small`,checked:!!a,onChange:t=>m(e,t.target.checked)})]},e);if(n.states){let t=Array.isArray(n.states)?Object.fromEntries(n.states.map(e=>[e,e])):n.states;return R(p,{size:`small`,fullWidth:!0,children:[A(ae,{children:i}),A(ve,{label:i,value:a==null?``:String(a),onChange:t=>m(e,t.target.value),children:Object.entries(t).map(([e,t])=>A(oe,{value:e,children:t},e))})]},e)}if(n.type===`number`&&n.min!==void 0&&n.max!==void 0){let t=Number(a??n.min),r=n.step?Number(n.step.toPrecision(7)):1;return R(P,{children:[R(V,{variant:`body2`,children:[i,R(V,{component:`span`,variant:`caption`,sx:{ml:1,opacity:.7},children:[ey(t,r),n.unit||``,` (`,ey(n.min,r),`…`,ey(n.max,r),`)`]})]}),A(xe,{size:`small`,value:Number.isFinite(t)?t:n.min,min:n.min,max:n.max,step:r,onChangeCommitted:(t,n)=>{let i=Array.isArray(n)?n[0]:n;m(e,Number(ey(i,r)))},valueLabelDisplay:`auto`,valueLabelFormat:e=>ey(e,r)})]},e)}let c=a==null?``:String(a),l=t=>{t!==c&&m(e,t)};return A(I,{size:`small`,fullWidth:!0,label:i,defaultValue:c,onBlur:e=>l(e.target.value),onKeyDown:e=>{e.key===`Enter`&&l(e.target.value)}},`${e}\n${c}`)}return R(ee,{open:!0,onClose:e.onClose,maxWidth:`sm`,fullWidth:!0,children:[R(a,{children:[B.t(`custom_assistant_Settings for %s`,e.satId),e.room?A(V,{variant:`caption`,sx:{ml:1,opacity:.7},children:e.room}):null]}),A(re,{dividers:!0,children:l?A(P,{sx:{display:`flex`,justifyContent:`center`,p:3},children:A(u,{size:28})}):R(P,{sx:{display:`flex`,flexDirection:`column`,gap:2},children:[h!=null&&(n=h.words)!=null&&n.length?R(P,{children:[R(V,{variant:`subtitle2`,children:[B.t(`custom_assistant_Wake words`),A(V,{component:`span`,variant:`caption`,sx:{ml:1,opacity:.7},children:B.t(`custom_assistant_%s of %s active`,_.length,v)})]}),A(P,{sx:{display:`flex`,flexWrap:`wrap`,gap:.5,mt:1},children:h.words.map(e=>{let t=_.includes(e.id);return A(N,{title:e.custom?`${B.t(`custom_assistant_Uploaded wake word`)} · ${e.id}${e.languages.length?` · ${e.languages.join(`, `)}`:``}`:e.languages.join(`, `),children:A(w,{size:`small`,label:e.phrase||e.id,color:t?`primary`:`default`,variant:t?`filled`:`outlined`,icon:e.custom?A(_e,{}):void 0,disabled:!t&&ne||S,onClick:()=>te(e.id),onDelete:e.custom?()=>D(e):void 0,sx:{border:`1px solid`,borderColor:t?`primary.main`:`text.secondary`,bgcolor:t?void 0:`action.hover`,fontWeight:t?600:400}})},e.id)})}),A(V,{variant:`caption`,sx:{display:`block`,mt:.5,opacity:.7},children:B.t(`custom_assistant_wake_word_hint`)}),M.length?R(P,{sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:.5,mt:1},children:[R(V,{variant:`caption`,sx:{mr:.5,opacity:.7},children:[B.t(`custom_assistant_Shipped with the adapter`),`:`]}),M.map(e=>A(N,{title:`${e.languages.length?`${e.languages.join(`, `)} · `:``}${B.t(`custom_assistant_bundled_wake_word_hint`)}`,children:A(w,{size:`small`,variant:`outlined`,color:`primary`,label:e.phrase,icon:A(f,{}),disabled:S,onClick:()=>void le(e),sx:{borderStyle:`dashed`}})},e.id))]}):null,ie?A(c,{severity:`warning`,sx:{mt:1},action:R(me,{children:[A(k,{color:`inherit`,size:`small`,onClick:()=>void fe(ie),children:B.t(`custom_assistant_Delete`)}),A(k,{color:`inherit`,size:`small`,onClick:()=>D(null),children:B.t(`custom_assistant_Cancel`)})]}),children:B.t(`custom_assistant_delete_wake_word_confirm`,ie.phrase)}):null,A(`input`,{ref:y,type:`file`,accept:`.tflite,.json`,multiple:!0,style:{display:`none`},onChange:e=>{ue(e.target.files),e.target.value=``}}),b?R(P,{sx:{mt:1,p:1.5,border:`1px solid`,borderColor:`divider`,borderRadius:1,display:`flex`,flexDirection:`column`,gap:1},children:[R(V,{variant:`caption`,sx:{opacity:.7},children:[b.fileName,b.configName?` + ${b.configName}`:``]}),A(I,{size:`small`,fullWidth:!0,autoFocus:!0,label:B.t(`custom_assistant_Wake word phrase`),helperText:B.t(`custom_assistant_wake_word_phrase_hint`),value:b.phrase,onChange:e=>x({...b,phrase:e.target.value}),onKeyDown:e=>{e.key===`Enter`&&b.phrase.trim()&&de()}}),R(P,{sx:{display:`flex`,gap:1,justifyContent:`flex-end`},children:[A(k,{size:`small`,disabled:S,onClick:()=>x(null),children:B.t(`custom_assistant_Cancel`)}),A(k,{size:`small`,variant:`contained`,disabled:S||!b.phrase.trim(),startIcon:S?A(u,{size:14}):A(f,{}),onClick:()=>void de(),children:B.t(`custom_assistant_Upload`)})]})]}):A(N,{title:B.t(`custom_assistant_wake_word_upload_hint`),children:A(k,{size:`small`,variant:`outlined`,sx:{mt:1},startIcon:A(f,{}),disabled:S,onClick:()=>{var e;return(e=y.current)==null?void 0:e.click()},children:B.t(`custom_assistant_Upload own wake word`)})}),T?A(c,{severity:T.severity,sx:{mt:1},onClose:()=>E(null),children:T.text}):null]}):null,h!=null&&(i=h.words)!=null&&i.length&&F.size?A(ge,{}):null,[...F.entries()].map(([t,n])=>{var r;return R(P,{sx:{display:`flex`,flexDirection:`column`,gap:1},children:[n.length>1?A(V,{variant:`subtitle2`,sx:{opacity:.8},children:((r=e.groupNames)==null?void 0:r[t])||t}):null,ry(n)?pe(t,n):n.map(L)]},t)}),!F.size&&!h?A(V,{variant:`body2`,sx:{opacity:.7},children:B.t(`custom_assistant_This satellite exposes no settings.`)}):null]})}),A(d,{children:A(k,{onClick:e.onClose,children:B.t(`custom_assistant_Close`)})})]})}var oy={},sy=Object.assign({"./i18n/de.json":W,"./i18n/en.json":G,"./i18n/es.json":K,"./i18n/fr.json":fa,"./i18n/it.json":Go,"./i18n/nl.json":xc,"./i18n/pl.json":Ql,"./i18n/pt.json":kd,"./i18n/ru.json":sp,"./i18n/uk.json":zm,"./i18n/zh-cn.json":_g});for(let[e,t]of Object.entries(sy)){var cy;let n=((cy=e.split(`/`).pop())==null?void 0:cy.replace(`.json`,``))||`en`;oy[n]=t.default}B.extendTranslations(oy);var ly={idle:`default`,listening:`info`,processing:`warning`,speaking:`success`,offline:`error`},uy=`__all__`,dy=class extends U{constructor(e){super(e),l(this,`pattern`,``),l(this,`onState`,(e,t)=>{this.setState(n=>{let r={...n.sats},i=this.parse(e);i&&r[i.satId]&&(r[i.satId]={...r[i.satId]}),this.applyToMap(r,e,t);let a={...n.vals};return this.applyToVals(a,e,t),{sats:r,vals:a}})}),this.state={...this.state,sats:{},speak:{},vals:{},settingsFor:null,settingsObjects:{},settingsGroupNames:{},settingsLoading:!1,confirmDelete:null,deleteError:``}}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}async componentDidMount(){super.componentDidMount(),this.pattern=`${this.instanceId}.satellites.*`;try{let e=await this.props.oContext.socket.getForeignStates(this.pattern),t={},n={};for(let[r,i]of Object.entries(e||{}))this.applyToMap(t,r,i),this.applyToVals(n,r,i);this.setState({sats:t,vals:n})}catch{}this.props.oContext.socket.subscribeState(this.pattern,this.onState)}componentWillUnmount(){var e;this.pattern&&this.props.oContext.socket.unsubscribeState(this.pattern,this.onState),(e=super.componentWillUnmount)==null||e.call(this)}parse(e){let t=`${this.instanceId}.satellites.`;if(!e.startsWith(t))return null;let n=e.slice(t.length),r=n.indexOf(`.`);return r<0?null:{satId:n.slice(0,r),prop:n.slice(r+1)}}applyToMap(e,t,n){let r=this.parse(t);if(!r)return;let i=e[r.satId]||{status:`idle`,room:``,host:``,alive:!1,lastSeen:0};r.prop===`status`?i.status=String((n==null?void 0:n.val)??`idle`):r.prop===`room`?i.room=String((n==null?void 0:n.val)??``):r.prop===`host`?i.host=String((n==null?void 0:n.val)??``):r.prop===`alive`?i.alive=!!(n!=null&&n.val):r.prop===`lastSeen`&&(i.lastSeen=Number(n==null?void 0:n.val)||0),e[r.satId]=i}applyToVals(e,t,n){let r=this.parse(t);r&&(e[r.satId]={...e[r.satId]||{},[r.prop]:(n==null?void 0:n.val)??null})}async openSettings(e){this.setState({settingsFor:e,settingsObjects:{},settingsLoading:!0});let t=`${this.instanceId}.satellites.${e}.`;try{let e=await this.props.oContext.socket.getForeignObjects(`${t}controls.*`,`state`),r={};for(let[n,i]of Object.entries(e||{}))i!=null&&i.common&&(r[n.slice(t.length)]=i);let i=await this.props.oContext.socket.getForeignObjects(`${t}controls.*`,`channel`).catch(()=>({})),a={},o=B.getLanguage();for(let[e,r]of Object.entries(i||{})){var n;let i=r==null||(n=r.common)==null?void 0:n.name,s=typeof i==`string`?i:i&&(i[o]||i.en)||``;s&&(a[e.slice(`${t}controls.`.length)]=s)}this.setState({settingsObjects:r,settingsGroupNames:a,settingsLoading:!1})}catch{this.setState({settingsLoading:!1})}}writeSetting(e,t,n){this.props.oContext.socket.setState(`${this.instanceId}.satellites.${e}.${t}`,{val:n,ack:!1}).catch(()=>{})}announce(e){let t=(this.state.speak[e]||``).trim();if(!t)return;let n=e===uy?`${this.instanceId}.tts.text`:`${this.instanceId}.satellites.${e}.tts`;this.props.oContext.socket.setState(n,{val:t,ack:!1}).catch(()=>{}),this.setState(t=>({speak:{...t.speak,[e]:``}}))}async deleteSatellite(e){try{let t=await this.props.oContext.socket.sendTo(this.instanceId,`deleteSatellite`,{id:e});if(t!=null&&t.error){this.setState({deleteError:t.error});return}}catch(e){this.setState({deleteError:String((e==null?void 0:e.message)||e)});return}this.setState(t=>{let n={...t.sats},r={...t.vals};return delete n[e],delete r[e],{sats:n,vals:r,confirmDelete:null,deleteError:``}})}ago(e){if(!e)return`—`;let t=Math.max(0,Math.round((Date.now()-e)/1e3));return t<60?`${t} s`:t<3600?`${Math.round(t/60)} min`:t<86400?`${Math.round(t/3600)} h`:`${Math.round(t/86400)} d`}renderComposer(e,t){let n=this.state.speak[e]||``;return R(P,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:[A(I,{size:`small`,variant:`outlined`,placeholder:t,value:n,onChange:t=>this.setState(n=>({speak:{...n.speak,[e]:t.target.value}})),onKeyDown:t=>{t.key===`Enter`&&(t.preventDefault(),this.announce(e))},sx:{minWidth:180}}),A(N,{title:B.t(`custom_assistant_Send announcement`),children:A(`span`,{children:A(O,{size:`small`,color:`primary`,disabled:!n.trim(),onClick:()=>this.announce(e),children:A(S,{})})})})]})}renderItem(){var e;let t=Object.keys(this.state.sats).sort();return R(P,{sx:{width:`100%`},children:[R(P,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mb:1},children:[A(V,{variant:`h6`,children:B.t(`custom_assistant_Satellites`)}),t.length?this.renderComposer(uy,B.t(`custom_assistant_Speak on all satellites`)):null]}),t.length?R(Se,{size:`small`,sx:{"& td, & th":{px:1}},children:[A(j,{children:R(z,{children:[A(H,{}),A(H,{children:B.t(`custom_assistant_Satellite`)}),A(H,{children:B.t(`custom_assistant_room`)}),A(H,{children:B.t(`custom_assistant_Host`)}),A(H,{children:B.t(`custom_assistant_Status`)}),A(H,{children:B.t(`custom_assistant_Last seen`)}),A(H,{children:B.t(`custom_assistant_Announcement`)}),A(H,{})]})}),A(L,{children:t.map(e=>{let t=this.state.sats[e];return R(z,{children:[A(H,{sx:{width:24},children:A(N,{title:t.alive?B.t(`custom_assistant_online`):B.t(`custom_assistant_offline`),children:A(D,{sx:{fontSize:`0.8rem`,color:t.alive?`success.main`:`error.main`}})})}),A(H,{children:e}),A(H,{children:t.room||`—`}),A(H,{children:t.host||`—`}),A(H,{children:A(w,{size:`small`,variant:`outlined`,color:ly[t.status]||`default`,label:B.t(`custom_assistant_sat_${t.status}`)})}),A(H,{children:A(N,{title:t.lastSeen?new Date(t.lastSeen).toLocaleString():``,children:A(`span`,{children:this.ago(t.lastSeen)})})}),A(H,{children:this.renderComposer(e,B.t(`custom_assistant_Type a message…`))}),A(H,{sx:{width:40},children:t.alive?A(N,{title:B.t(`custom_assistant_Device settings`),children:A(O,{size:`small`,onClick:()=>void this.openSettings(e),children:A(ie,{})})}):A(N,{title:B.t(`custom_assistant_Remove satellite`),children:A(O,{size:`small`,onClick:()=>this.setState({confirmDelete:e,deleteError:``}),children:A(x,{})})})})]},e)})})]}):A(V,{sx:{p:2,opacity:.7},variant:`body2`,children:B.t(`custom_assistant_No satellites registered yet.`)}),this.state.settingsFor?A(ay,{instanceId:this.instanceId,satId:this.state.settingsFor,room:((e=this.state.sats[this.state.settingsFor])==null?void 0:e.room)||``,values:this.state.vals[this.state.settingsFor]||{},objects:this.state.settingsObjects,groupNames:this.state.settingsGroupNames,loading:this.state.settingsLoading,onWrite:(e,t)=>this.writeSetting(this.state.settingsFor,e,t),sendTo:(e,t)=>this.props.oContext.socket.sendTo(this.instanceId,e,t),onClose:()=>this.setState({settingsFor:null,settingsObjects:{},settingsGroupNames:{}})}):null,R(ee,{open:!!this.state.confirmDelete,onClose:()=>this.setState({confirmDelete:null,deleteError:``}),children:[A(a,{children:B.t(`custom_assistant_Remove satellite`)}),R(re,{children:[A(V,{variant:`body2`,children:B.t(`custom_assistant_Remove satellite %s and all its states?`,this.state.confirmDelete||``)}),A(V,{variant:`body2`,sx:{mt:1,opacity:.7},children:B.t(`custom_assistant_A satellite that is still configured appears again when it connects.`)}),this.state.deleteError?A(V,{variant:`body2`,color:`error`,sx:{mt:1},children:this.state.deleteError}):null]}),R(d,{children:[A(k,{color:`error`,variant:`contained`,onClick:()=>void this.deleteSatellite(this.state.confirmDelete),children:B.t(`custom_assistant_Delete`)}),A(k,{onClick:()=>this.setState({confirmDelete:null,deleteError:``}),children:B.t(`custom_assistant_Cancel`)})]})]})]})}},fy={de:`Hallo, ich bin dein ioBroker-Assistent. Im Wohnzimmer sind es 21,5 Grad.`,en:`Hello, I'm your ioBroker assistant. It is 21.5 degrees in the living room.`,ru:`Привет, я твой ассистент ioBroker. В гостиной 21,5 градуса.`,fr:`Bonjour, je suis ton assistant ioBroker. Il fait 21,5 degrés dans le salon.`,it:`Ciao, sono il tuo assistente ioBroker. In soggiorno ci sono 21,5 gradi.`,es:`Hola, soy tu asistente de ioBroker. En el salón hace 21,5 grados.`,nl:`Hallo, ik ben je ioBroker-assistent. In de woonkamer is het 21,5 graden.`,pl:`Cześć, jestem twoim asystentem ioBroker. W salonie jest 21,5 stopnia.`,pt:`Olá, sou o teu assistente ioBroker. Na sala estão 21,5 graus.`,uk:`Привіт, я твій асистент ioBroker. У вітальні 21,5 градуса.`,"zh-cn":`你好,我是你的 ioBroker 助手。客厅现在是 21.5 度。`,zh:`你好,我是你的 ioBroker 助手。客厅现在是 21.5 度。`,ja:`こんにちは、ioBroker アシスタントです。リビングは 21.5 度です。`,el:`Γεια σου, είμαι ο βοηθός σου ioBroker. Στο σαλόνι έχει 21,5 βαθμούς.`,tr:`Merhaba, ben ioBroker asistanınım. Oturma odasında sıcaklık 21,5 derece.`,cs:`Ahoj, jsem tvůj asistent ioBroker. V obývacím pokoji je 21,5 stupně.`,sv:`Hej, jag är din ioBroker-assistent. I vardagsrummet är det 21,5 grader.`};function py(e){let t=String(e||``).trim().toLowerCase();return fy[t]||fy[t.split(/[-_]/)[0]]||fy.en}var my={},hy=Object.assign({"./i18n/de.json":W,"./i18n/en.json":G,"./i18n/es.json":K,"./i18n/fr.json":fa,"./i18n/it.json":Go,"./i18n/nl.json":xc,"./i18n/pl.json":Ql,"./i18n/pt.json":kd,"./i18n/ru.json":sp,"./i18n/uk.json":zm,"./i18n/zh-cn.json":_g});for(let[e,t]of Object.entries(hy)){var gy;let n=((gy=e.split(`/`).pop())==null?void 0:gy.replace(`.json`,``))||`en`;my[n]=t.default}B.extendTranslations(my);var _y=16e3,vy=15e3;function yy(e,t){let n=e.reduce((e,t)=>e+t.length,0),r=new Float32Array(n),i=0;for(let t of e)r.set(t,i),i+=t.length;let a=t/_y,o=Math.floor(n/a),s=new DataView(new ArrayBuffer(44+o*2)),c=(e,t)=>[...t].forEach((t,n)=>s.setUint8(e+n,t.charCodeAt(0)));c(0,`RIFF`),s.setUint32(4,36+o*2,!0),c(8,`WAVE`),c(12,`fmt `),s.setUint32(16,16,!0),s.setUint16(20,1,!0),s.setUint16(22,1,!0),s.setUint32(24,_y,!0),s.setUint32(28,_y*2,!0),s.setUint16(32,2,!0),s.setUint16(34,16,!0),c(36,`data`),s.setUint32(40,o*2,!0);for(let e=0;e<o;e++){let t=e*a,n=Math.floor(t),i=r[n]+((r[n+1]??r[n])-r[n])*(t-n);s.setInt16(44+e*2,Math.max(-1,Math.min(1,i))*32767,!0)}return new Uint8Array(s.buffer)}function by(e){let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}var xy={DeviceAclComponent:Z_,ChatComponent:Lv,LocalLlmProgress:Hv,LocalModelsComponent:Xv,SatellitesComponent:dy,VoiceTestComponent:class extends U{constructor(e){super(e),l(this,`aliveId`,``),l(this,`audio`,null),l(this,`recorder`,null),l(this,`fileInput`,null),l(this,`onAlive`,(e,t)=>{this.setState({alive:!!(t!=null&&t.val)})}),l(this,`test`,async()=>{this.stop(),this.setState({busy:!0,result:null});let e=await this.synthesize(this.sentence);this.setState({busy:!1,result:e}),e.audio&&this.play(e)}),l(this,`roundTrip`,async()=>{let e=this.sentence;this.setState({sttBusy:`roundTrip`,sttResult:null});let t=await this.synthesize(e);if(!t.audio){this.setState({sttBusy:``,sttResult:{error:t.error||B.t(`custom_assistant_No answer`)}});return}let n=await this.transcribe(t.audio,`wav`);this.setState({sttBusy:``,sttResult:{...n,spoken:e}})}),l(this,`startRecording`,async()=>{this.setState({sttResult:null});try{let e=await navigator.mediaDevices.getUserMedia({audio:!0}),t=new AudioContext,n=t.createMediaStreamSource(e),r=t.createScriptProcessor(4096,1,1),i=[];r.onaudioprocess=e=>i.push(new Float32Array(e.inputBuffer.getChannelData(0))),n.connect(r),r.connect(t.destination);let a=setTimeout(()=>void this.stopRecording(),vy);this.recorder={context:t,stream:e,node:r,chunks:i,timer:a},this.setState({recording:!0})}catch(e){this.setState({sttResult:{error:e.message}})}}),l(this,`stopRecording`,async()=>{let e=this.closeRecorder();if(this.setState({recording:!1}),!(e!=null&&e.chunks.length))return;this.setState({sttBusy:`record`});let t=await this.transcribe(by(yy(e.chunks,e.rate)),`wav`);this.setState({sttBusy:``,sttResult:t})}),l(this,`onFile`,async e=>{var t;let n=(t=e.target.files)==null?void 0:t[0];if(e.target.value=``,!n)return;this.setState({sttBusy:`file`,sttResult:null});let r=new Uint8Array(await n.arrayBuffer()),i=(n.name.split(`.`).pop()||``).toLowerCase(),a=await this.transcribe(by(r),i);this.setState({sttBusy:``,sttResult:a})}),this.state={...this.state,alive:!1,text:``,busy:!1,playing:!1,result:null,sttBusy:``,recording:!1,sttResult:null}}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}get language(){let e=this.props.data;return String(e.voiceLanguage||B.getLanguage()||`en`)}get sentence(){return this.state.text.trim()||py(this.language)}async componentDidMount(){super.componentDidMount(),this.aliveId=`system.adapter.${this.instanceId}.alive`;let e=this.props.oContext.socket;try{let t=await e.getState(this.aliveId);this.setState({alive:!!(t!=null&&t.val)})}catch{}e.subscribeState(this.aliveId,this.onAlive)}componentWillUnmount(){var e;this.aliveId&&this.props.oContext.socket.unsubscribeState(this.aliveId,this.onAlive),this.stop(),this.closeRecorder(),(e=super.componentWillUnmount)==null||e.call(this)}stop(){this.audio&&=(this.audio.pause(),null),this.state.playing&&this.setState({playing:!1})}synthesize(e){return this.props.oContext.socket.sendTo(this.instanceId,`tts`,{text:e,language:this.language,config:this.props.data}).then(e=>e||{error:B.t(`custom_assistant_No answer`)}).catch(e=>({error:e.message}))}transcribe(e,t){return this.props.oContext.socket.sendTo(this.instanceId,`stt`,{audio:e,format:t,language:this.language,config:this.props.data}).then(e=>e||{error:B.t(`custom_assistant_No answer`)}).catch(e=>({error:e.message}))}play(e){let t=new Audio(`data:${e.mime||`audio/wav`};base64,${e.audio}`);t.onended=()=>this.stop(),t.onerror=()=>this.stop(),this.audio=t,this.setState({playing:!0}),t.play().catch(t=>{this.stop(),this.setState({result:{...e,error:t.message}})})}closeRecorder(){let e=this.recorder;if(!e)return null;this.recorder=null,clearTimeout(e.timer),e.node.disconnect(),e.stream.getTracks().forEach(e=>e.stop());let t=e.context.sampleRate;return e.context.close(),{chunks:e.chunks,rate:t}}renderTtsResult(){let e=this.state.result;if(!e)return null;if(e.error)return A(V,{variant:`body2`,color:`error`,sx:{wordBreak:`break-word`},children:e.error});let t=[e.sampleRate?`${e.sampleRate} Hz`:``,e.audioMs===void 0?``:B.t(`custom_assistant_%s s audio`,(e.audioMs/1e3).toFixed(1)),e.ms===void 0?``:B.t(`custom_assistant_made in %s ms`,e.ms)].filter(Boolean);return A(V,{variant:`body2`,sx:{opacity:.7},children:t.join(` · `)})}renderSttResult(){let e=this.state.sttResult;if(!e)return null;if(e.error)return A(V,{variant:`body2`,color:`error`,sx:{wordBreak:`break-word`},children:e.error});let t=[e.audioMs===void 0?``:B.t(`custom_assistant_%s s audio`,(e.audioMs/1e3).toFixed(1)),e.ms===void 0?``:B.t(`custom_assistant_recognized in %s ms`,e.ms)].filter(Boolean);return R(P,{children:[e.spoken?R(V,{variant:`body2`,children:[B.t(`custom_assistant_Spoken`),`: „`,e.spoken,`“`]}):null,R(V,{variant:`body2`,children:[B.t(`custom_assistant_Recognized`),`:`,` `,e.text?`„${e.text}“`:A(`i`,{children:B.t(`custom_assistant_Nothing recognized`)})]}),A(V,{variant:`body2`,sx:{opacity:.7},children:t.join(` · `)})]})}renderItem(){var e;let{alive:t,busy:n,playing:r,text:i,sttBusy:a,recording:s}=this.state,c=window.isSecureContext&&!!((e=navigator.mediaDevices)!=null&&e.getUserMedia),l=!t||!!a,d=(e,t)=>a===e?A(u,{size:16}):t;return R(P,{sx:{width:`100%`,mt:1,mb:1},children:[A(V,{variant:`subtitle2`,sx:{mb:.5},children:B.t(`custom_assistant_Speech output`)}),R(P,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[A(I,{variant:`standard`,fullWidth:!0,value:i,placeholder:py(this.language),label:B.t(`custom_assistant_Test sentence`),onChange:e=>this.setState({text:e.target.value}),onKeyDown:e=>{e.key===`Enter`&&t&&!n&&this.test()}}),A(k,{variant:`contained`,sx:{whiteSpace:`nowrap`,flexShrink:0},disabled:!t||n,startIcon:n?A(u,{size:16}):A(r?b:o,{}),onClick:()=>r?this.stop():void this.test(),children:B.t(r?`custom_assistant_Stop`:`custom_assistant_Test voice`)})]}),A(P,{sx:{mt:.5},children:this.renderTtsResult()}),A(V,{variant:`subtitle2`,sx:{mt:2,mb:.5},children:B.t(`custom_assistant_Speech recognition`)}),R(P,{sx:{display:`flex`,flexWrap:`wrap`,gap:1},children:[c?A(k,{variant:s?`contained`:`outlined`,color:s?`error`:`primary`,disabled:!t||!!a&&!s,startIcon:d(`record`,A(s?b:T,{})),onClick:()=>void(s?this.stopRecording():this.startRecording()),children:B.t(s?`custom_assistant_Stop`:`custom_assistant_Record`)}):null,A(k,{variant:`outlined`,disabled:l||s,startIcon:d(`file`,A(f,{})),onClick:()=>{var e;return(e=this.fileInput)==null?void 0:e.click()},children:B.t(`custom_assistant_Audio file`)}),A(k,{variant:`outlined`,disabled:l||s,startIcon:d(`roundTrip`,A(C,{})),onClick:()=>void this.roundTrip(),children:B.t(`custom_assistant_Speak the test sentence and recognize it`)}),A(`input`,{ref:e=>{this.fileInput=e},type:`file`,accept:`audio/*`,style:{display:`none`},onChange:e=>void this.onFile(e)})]}),c?null:A(V,{variant:`body2`,sx:{opacity:.7,mt:.5},children:B.t(`custom_assistant_The microphone only works over https or on localhost.`)}),A(P,{sx:{mt:.5},children:this.renderSttResult()}),t?null:A(V,{variant:`body2`,sx:{opacity:.7,mt:1},children:B.t(`custom_assistant_The instance must be running to test the voice.`)})]})}},VoiceRowTestComponent:class extends U{constructor(e){super(e),l(this,`aliveId`,``),l(this,`audio`,null),l(this,`onAlive`,(e,t)=>{this.setState({alive:!!(t!=null&&t.val)})}),l(this,`test`,async()=>{if(this.state.playing){this.stop();return}let e=this.row,t={...this.props.globalData||{},ttsVoices:[e]};this.setState({busy:!0,result:null});let n=await this.props.oContext.socket.sendTo(this.instanceId,`tts`,{text:py(e.language),language:e.language,config:t}).then(e=>e||{error:B.t(`custom_assistant_No answer`)}).catch(e=>({error:e.message}));if(this.setState({busy:!1,result:n}),!n.audio)return;let r=new Audio(`data:${n.mime||`audio/wav`};base64,${n.audio}`);r.onended=()=>this.stop(),r.onerror=()=>this.stop(),this.audio=r,this.setState({playing:!0}),r.play().catch(e=>{this.stop(),this.setState({result:{...n,error:e.message}})})}),this.state={...this.state,alive:!1,busy:!1,playing:!1,result:null}}get instanceId(){let e=this.props.oContext;return`${e.adapterName}.${e.instance}`}get row(){let e=this.props.data||{};return{language:String(e.language||``).trim(),voice:String(e.voice||``).trim(),model:String(e.model||``).trim()}}async componentDidMount(){super.componentDidMount(),this.aliveId=`system.adapter.${this.instanceId}.alive`;let e=this.props.oContext.socket;try{let t=await e.getState(this.aliveId);this.setState({alive:!!(t!=null&&t.val)})}catch{}e.subscribeState(this.aliveId,this.onAlive)}componentWillUnmount(){var e;this.aliveId&&this.props.oContext.socket.unsubscribeState(this.aliveId,this.onAlive),this.stop(),(e=super.componentWillUnmount)==null||e.call(this)}stop(){this.audio&&=(this.audio.pause(),null),this.state.playing&&this.setState({playing:!1})}tooltip(){let{alive:e,result:t}=this.state;return e?t!=null&&t.error?t.error:t!=null&&t.audio?[t.sampleRate?`${t.sampleRate} Hz`:``,t.audioMs?`${(t.audioMs/1e3).toFixed(1)} s`:``,t.ms?`${B.t(`custom_assistant_synthesis`)} ${t.ms} ms`:``].filter(Boolean).join(` · `):B.t(`custom_assistant_Try this voice`):B.t(`custom_assistant_Start the instance to test the voice`)}renderItem(){let{alive:e,busy:t,playing:n,result:r}=this.state,i=!e||t||!this.row.language;return A(N,{title:this.tooltip(),children:A(`span`,{children:A(O,{size:`small`,disabled:i,color:r!=null&&r.error?`error`:`primary`,onClick:this.test,children:t?A(u,{size:20}):A(n?b:o,{})})})})}}};export{xy as default};
|