From a2a57bafc280c0cde8ffcef158383d4f1b6d1fb7 Mon Sep 17 00:00:00 2001 From: Editor Deployment Bot Date: Mon, 18 Mar 2024 09:34:45 +0000 Subject: [PATCH] Build Mon Mar 18 09:34:45 UTC 2024 --- assets/{cs-CZ--okNJMLP.js => cs-CZ-_-ySsZ7d.js} | 2 +- assets/{de-DE-vwhqblEz.js => de-DE-r7yMmVoN.js} | 2 +- assets/{el-GR-xAZUGXPa.js => el-GR-x0BxZ-xk.js} | 2 +- assets/{es-ES-NI-qxCWZ.js => es-ES-dfLL8V64.js} | 2 +- assets/{fr-FR-e_f8XltA.js => fr-FR-wGONkQcm.js} | 2 +- assets/{index-yb8y1pMW.js => index-Jht01FPN.js} | 2 +- assets/{nl-NL-134vhINp.js => nl-NL-J1dCa0Tl.js} | 2 +- assets/{zh-CN-IyN_Tbc-.js => zh-CN-7gH46_uW.js} | 2 +- assets/{zh-TW-b9HaxZsI.js => zh-TW-hqqIkR1a.js} | 2 +- index.html | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) rename assets/{cs-CZ--okNJMLP.js => cs-CZ-_-ySsZ7d.js} (81%) rename assets/{de-DE-vwhqblEz.js => de-DE-r7yMmVoN.js} (82%) rename assets/{el-GR-xAZUGXPa.js => el-GR-x0BxZ-xk.js} (84%) rename assets/{es-ES-NI-qxCWZ.js => es-ES-dfLL8V64.js} (81%) rename assets/{fr-FR-e_f8XltA.js => fr-FR-wGONkQcm.js} (81%) rename assets/{index-yb8y1pMW.js => index-Jht01FPN.js} (91%) rename assets/{nl-NL-134vhINp.js => nl-NL-J1dCa0Tl.js} (81%) rename assets/{zh-CN-IyN_Tbc-.js => zh-CN-7gH46_uW.js} (81%) rename assets/{zh-TW-b9HaxZsI.js => zh-TW-hqqIkR1a.js} (81%) diff --git a/assets/cs-CZ--okNJMLP.js b/assets/cs-CZ-_-ySsZ7d.js similarity index 81% rename from assets/cs-CZ--okNJMLP.js rename to assets/cs-CZ-_-ySsZ7d.js index 26cafbc65..0b541b327 100644 --- a/assets/cs-CZ--okNJMLP.js +++ b/assets/cs-CZ-_-ySsZ7d.js @@ -6,4 +6,4 @@ const e={"cutting-button":"Cutting","finish-button":"Finish","select-tracks-butt `,"segments-text-aria":`Segment {{index}}. {{segmentStatus}}. Start: {{start}}. End: {{end}}. `},u={"headline-text":"Workflow Configuration","satisfied-text":"Satisfied with your configuration?","confirm-button":"Yes, start processing"},c={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Episode Metadata","submit-button":"Submit","submit-button-tooltip":"Confirm your changes","reset-button":"Reset","reset-button-tooltip":"Undo all your changes","submit-helpertext":`Make changes as you like, then hit the {{buttonName}} button. Note that you will still have to start processing for your changes to take effect.`,validation:{required:"Required","duration-format":"Format must be HH:MM:SS",datetime:"Invalid"},labels:{title:"Title",subject:"Subject",description:"Description",language:"Language",rightsHolder:"Rights",license:"License",isPartOf:"Series",creator:"Presenter(s)",contributor:"Contributor(s)",startDate:"Start date",duration:"Duration",location:"Location",source:"Source",created:"Created",publisher:"Publisher",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Slovenian","LANGUAGES-PORTUGESE":"Portuguese","LANGUAGES-ROMANSH":"Romansh","LANGUAGES-ARABIC":"Arabic","LANGUAGES-POLISH":"Polish","LANGUAGES-ITALIAN":"Italian","LANGUAGES-CHINESE":"Chinese","LANGUAGES-FINNISH":"Finnish","LANGUAGES-DANISH":"Danish","LANGUAGES-UKRAINIAN":"Ukrainian","LANGUAGES-FRENCH":"French","LANGUAGES-SPANISH":"Spanish","LANGUAGES-GERMAN_CH":"Swiss German","LANGUAGES-NORWEGIAN":"Norwegian","LANGUAGES-RUSSIAN":"Russian","LANGUAGES-JAPANESE":"Japanese","LANGUAGES-DUTCH":"Dutch","LANGUAGES-TURKISH":"Turkish","LANGUAGES-HINDI":"Hindi","LANGUAGES-SWEDISH":"Swedish","LANGUAGES-ENGLISH":"English","LANGUAGES-GERMAN":"German"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC-BY-ND","EVENTS-LICENSE-CCBYNCND":"CC-BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC-BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"All rights reserved","EVENTS-LICENSE-CCBYSA":"CC-BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC-BY"},"calendar-prev":"Previous","calendar-next":"Next"},d={title:"Thumbnail Editor",noThumbnailAvailable:"No Thumbnail available",previewImageAlt:"Thumbnail for track",buttonGenerate:"Generate","buttonGenerate-tooltip":"Generate a new thumbnail from the current timeline marker position","buttonGenerate-tooltip-aria":"Generate a new thumbnail from the current timeline marker position",buttonUpload:"Upload","buttonUpload-tooltip":"Upload an image","buttonUpload-tooltip-aria":"Upload an image",buttonUseForOtherThumbnails:"Use for all tracks","buttonUseForOtherThumbnails-tooltip":"Use the thumbnail for all tracks","buttonUseForOtherThumbnails-tooltip-aria":"Use the thumbnail for all tracks",buttonDiscard:"Discard","buttonDiscard-tooltip":"Discard the thumbnail for this track","buttonDiscard-tooltip-aria":"Discard the thumbnail for this track",buttonGenerateAll:"Generate All","buttonGenerateAll-tooltip":"Generate new thumbnails for all tracks from the current timeline marker position","buttonGenerateAll-tooltip-aria":"Generate new thumbnails for all tracks from the current timeline marker position",explanation:"Upload or generate a thumbnail for each track.",primary:"Primary",secondary:"Secondary"},m={rowTitle:"Change thumbnail here",from:"from"},h={"generic-message":"A critical error has occurred!",details:"Details: ","workflowActive-errorTitle":"Temporarily unavailable","workflowActive-errorMessage":"This event is being processed. Please wait until the process is finished."},g={"main-heading":"Welcome to the Video Editor","contact-admin":"If you were trying to edit a specific video but are seeing this page, please contact your administrator.","start-editing-1":"To start editing, specify the parameter ","start-editing-2":" with the media package id of the video you wish to edit.","link-to-documentation":"More information about configuring the video editor is available in the administration guide at "},b={"error-details-text":`Details: {{errorMessage}} -`,"error-text":"An error has occurred. Please wait a bit and try again.","goBack-button":"No, take me back","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},p={title:"Select track(s) for processing",trackInactive:"inactive",deleteTrackText:"Delete Track",restoreTrackText:"Restore Track",cannotDeleteTrackText:"Cannot Delete Track",deleteTrackTooltip:"Do not encode and publish this track.",restoreTrackTooltip:"Encode and publish this track.",cannotDeleteTrackTooltip:"Cannot remove this track from publication."},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},k={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},A={selectVideoLabel:"Video Flavors"},f={overviewTimelineTooltip:"Timeline overview"},v={header:"Shortcuts",defaultGroupName:"General",missingLabel:"Unknown",groupVideoPlayer:"Video Player",groupCuttingView:"Cutting",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"Failed to load overview",videoPlayButton:"Play/Pause Video",scrubberLeft:"Move left",scrubberRight:"Move right",scrubberIncrease:"Move faster",scrubberDecrease:"Move slower"},E={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},w={language:"Language"},N={mainMenu:e,cuttingActions:t,video:o,finishMenu:i,save:a,discard:n,theEnd:r,workflowSelection:s,timeline:l,workflowConfig:u,metadata:c,thumbnail:d,thumbnailSimple:m,error:h,landing:g,various:b,trackSelection:p,subtitles:S,subtitleList:k,subtitleVideoArea:A,subtitleTimeline:f,keyboardControls:v,theme:E,language:w};export{t as cuttingActions,N as default,n as discard,h as error,i as finishMenu,v as keyboardControls,g as landing,w as language,e as mainMenu,c as metadata,a as save,k as subtitleList,f as subtitleTimeline,A as subtitleVideoArea,S as subtitles,r as theEnd,E as theme,d as thumbnail,m as thumbnailSimple,l as timeline,p as trackSelection,b as various,o as video,u as workflowConfig,s as workflowSelection}; +`,"error-text":"An error has occurred. Please wait a bit and try again.","goBack-button":"No, take me back","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},p={title:"Select track(s) for processing",trackInactive:"inactive",deleteTrackText:"Delete Track",restoreTrackText:"Restore Track",cannotDeleteTrackText:"Cannot Delete Track",deleteTrackTooltip:"Do not encode and publish this track.",restoreTrackTooltip:"Encode and publish this track.",cannotDeleteTrackTooltip:"Cannot remove this track from publication."},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},k={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},A={selectVideoLabel:"Video Flavors"},f={overviewTimelineTooltip:"Timeline overview"},v={header:"Shortcuts",defaultGroupName:"General",missingLabel:"Unknown",groupVideoPlayer:"Video Player",groupCuttingView:"Cutting",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"Failed to load overview",videoPlayButton:"Play/Pause Video",scrubberLeft:"Move left",scrubberRight:"Move right",scrubberIncrease:"Move faster",scrubberDecrease:"Move slower"},E={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},w={language:"Language"},N={mainMenu:e,cuttingActions:t,video:o,finishMenu:i,save:a,discard:n,theEnd:r,workflowSelection:s,timeline:l,workflowConfig:u,metadata:c,thumbnail:d,thumbnailSimple:m,error:h,landing:g,various:b,trackSelection:p,subtitles:S,subtitleList:k,subtitleVideoArea:A,subtitleTimeline:f,keyboardControls:v,theme:E,language:w};export{t as cuttingActions,N as default,n as discard,h as error,i as finishMenu,v as keyboardControls,g as landing,w as language,e as mainMenu,c as metadata,a as save,k as subtitleList,f as subtitleTimeline,A as subtitleVideoArea,S as subtitles,r as theEnd,E as theme,d as thumbnail,m as thumbnailSimple,l as timeline,p as trackSelection,b as various,o as video,u as workflowConfig,s as workflowSelection}; diff --git a/assets/de-DE-vwhqblEz.js b/assets/de-DE-r7yMmVoN.js similarity index 82% rename from assets/de-DE-vwhqblEz.js rename to assets/de-DE-r7yMmVoN.js index e27fbf092..be53c7650 100644 --- a/assets/de-DE-vwhqblEz.js +++ b/assets/de-DE-r7yMmVoN.js @@ -6,4 +6,4 @@ const e={"cutting-button":"Schneiden","finish-button":"Fertigstellen","select-tr `,"segments-text-aria":`Segment {{index}}. {{segmentStatus}}. Start: {{start}}. Ende: {{end}}. `},u={"headline-text":"Workflow Konfiguration","satisfied-text":"Sind Sie zufrieden mit Ihrer Konfiguration?","confirm-button":"Ja, Verarbeitung starten"},d={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Video Metadaten","submit-button":"Abschicken","submit-button-tooltip":"Bestätigen Sie Ihre Änderungen","reset-button":"Zurücksetzen","reset-button-tooltip":"Alle Änderungen rückgängig machen","submit-helpertext":`Machen Sie so viele Änderungen, wie Sie möchten, dann drücken Sie den {{buttonName}} Button. Beachten Sie, dass Sie noch die Verarbeitung starten müssen, damit Ihre Änderungen wirksam werden.`,validation:{required:"Erforderlich","duration-format":"Format muss HH:MM:SS sein",datetime:"Ungültig"},labels:{title:"Titel",subject:"Betreff",description:"Beschreibung",language:"Sprache",rightsHolder:"Rechte",license:"Lizenz",isPartOf:"Serie",creator:"Vortragende(r)",contributor:"Mitwirkende(r)",startDate:"Startdatum",duration:"Dauer",location:"Ort",source:"Quelle",created:"Erstellt am",publisher:"Herausgeber",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Slowenisch","LANGUAGES-PORTUGESE":"Portugiesisch","LANGUAGES-ROMANSH":"Rätoromanisch","LANGUAGES-ARABIC":"Arabisch","LANGUAGES-POLISH":"Polnisch","LANGUAGES-ITALIAN":"Italienisch","LANGUAGES-CHINESE":"Chinesisch","LANGUAGES-FINNISH":"Finnisch","LANGUAGES-DANISH":"Dänisch","LANGUAGES-UKRAINIAN":"Ukrainisch","LANGUAGES-FRENCH":"Französisch","LANGUAGES-SPANISH":"Spanisch","LANGUAGES-GERMAN_CH":"Schweizerdeutsch","LANGUAGES-NORWEGIAN":"Norwegisch","LANGUAGES-RUSSIAN":"Russisch","LANGUAGES-JAPANESE":"Japanisch","LANGUAGES-DUTCH":"Niederländisch","LANGUAGES-TURKISH":"Türkisch","LANGUAGES-HINDI":"Hindi","LANGUAGES-SWEDISH":"Schwedisch","LANGUAGES-ENGLISH":"Englisch","LANGUAGES-GERMAN":"Deutsch"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC-BY-ND","EVENTS-LICENSE-CCBYNCND":"CC-BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC-BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"Alle Rechte vorbehalten","EVENTS-LICENSE-CCBYSA":"CC-BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC-BY"},"calendar-prev":"Vorherige","calendar-next":"Nächste"},c={title:"Vorschaubildeditor",noThumbnailAvailable:"Kein Vorschaubild verfügbar",previewImageAlt:"Vorschaubild für Spur",buttonGenerate:"Generieren","buttonGenerate-tooltip":"Erstelle ein neues Vorschaubild aus der aktuellen Position des Zeitmarkers","buttonGenerate-tooltip-aria":"Erstelle ein neues Vorschaubild aus der aktuellen Position des Zeitmarkers",buttonUpload:"Hochladen","buttonUpload-tooltip":"Ein Bild hochladen","buttonUpload-tooltip-aria":"Ein Bild hochladen",buttonUseForOtherThumbnails:"Für alle Spuren verwenden","buttonUseForOtherThumbnails-tooltip":"Benutze das Vorschaubild für alle Spuren","buttonUseForOtherThumbnails-tooltip-aria":"Benutze das Vorschaubild für alle Spuren",buttonDiscard:"Verwerfen","buttonDiscard-tooltip":"Verwerfe Vorschaubild für diese Spur","buttonDiscard-tooltip-aria":"Verwerfe Vorschaubild für diese Spur",buttonGenerateAll:"Alle generieren","buttonGenerateAll-tooltip":"Erstelle ein neues Vorschaubild für alle Spuren aus der aktuellen Position des Zeitmarkers","buttonGenerateAll-tooltip-aria":"Erstelle ein neues Vorschaubild für alle Spuren aus der aktuellen Position des Zeitmarkers",explanation:"Erstelle oder lade ein Vorschaubild für jede Spur hoch.",primary:"Primär",secondary:"Sekundär"},h={rowTitle:"Vorschaubilder hier ändern",from:"von"},m={"generic-message":"Ein kritischer Fehler ist aufgetreten!",details:"Details: ","workflowActive-errorTitle":"Vorübergehend nicht verfügbar","workflowActive-errorMessage":"Dieses Video wird verarbeitet Bitte warten Sie, bis der Prozess abgeschlossen ist."},g={"main-heading":"Willkommen im Video-Editor","contact-admin":"Falls Sie versucht haben, ein bestimmtes Video zu bearbeiten, aber diese Seite sehen, wenden Sie sich bitte an Ihren Administrator.","start-editing-1":"Um mit der Bearbeitung zu beginnen, geben Sie den Parameter an ","start-editing-2":" mit der Mediapaket ID des Videos, das Sie bearbeiten möchten.","link-to-documentation":"Weitere Informationen zur Konfiguration des Video-Editors finden Sie im Administrationshandbuch unter "},b={"error-details-text":`Details: {{errorMessage}} -`,"error-text":"Ein Fehler ist aufgetreten. Bitte versuchen Sie es später noch einmal.","goBack-button":"Nein, zurück","callback-button-system":"Zurück zu {{system}}","callback-button-generic":"Zurück zu vorherigem System"},S={title:"Spur(en) für die Verarbeitung auswählen",trackInactive:"inaktiv",deleteTrackText:"Spur löschen",restoreTrackText:"Spur wiederherstellen",cannotDeleteTrackText:"Spur kann nicht gelöscht werden",deleteTrackTooltip:"Diese Spur nicht verarbeiten und veröffentlichen.",restoreTrackTooltip:"Diese Spur verarbeiten und veröffentlichen.",cannotDeleteTrackTooltip:"Diese Spur kann nicht entfernt werden."},p={"selectSubtitleButton-tooltip":"Untertitel für {{title}} bearbeiten","selectSubtitleButton-tooltip-aria":"{{title}} zur Bearbeitung von Untertiteln auswählen","createSubtitleButton-tooltip":"Öffnet einen Dialog zum Erstellen neuer Untertitel","createSubtitleButton-clicked-tooltip-aria":"Enthält einen Dialog zum Erstellen neuer Untertitel","createSubtitleButton-createButton":"Erstellen","createSubtitleButton-createButton-tooltip":"Beginne eine neue Untertiteldatei mit dem ausgewählten Titel.","createSubtitleDropdown-label":"Wähle eine Sprache",backButton:"Zurück","backButton-tooltip":"Zurück zur Untertitelauswahl","downloadButton-title":"Herunterladen","downloadButton-tooltip":"Untertitel als vtt-Datei herunterladen",editTitle:"Untertitel-Editor - {{title}}","editTitle-loading":"Lädt",generic:"Unspezifiziert",autoGenerated:"Automatisch generiert"},k={"startTime-tooltip":"Beginn des Segments","startTime-tooltip-aria":"Beginnt bei","endTime-tooltip":"Ende des Segments","endTime-tooltip-aria":"Endet bei",addSegmentAbove:"Segment oberhalb hinzufügen",addSegmentBelow:"Segment unterhalb hinzufügen",jumpToSegmentAbove:"Zum Segment oberhalb springen",jumpToSegmentBelow:"Zum Segment unterhalb springen",deleteSegment:"Segment löschen"},f={selectVideoLabel:"Video Flavors"},E={overviewTimelineTooltip:"Zeitleiste-Übersicht"},A={header:"Tastenkürzel",defaultGroupName:"Allgemein",missingLabel:"Unbekannt",groupVideoPlayer:"Videoplayer",groupCuttingView:"Schneiden",groupCuttingViewScrubber:"Zeitleiste",groupSubtitleList:"Untertitel",sequenceSeparator:"oder",genericError:"Fehler beim Laden der Übersicht",videoPlayButton:"Video abspielen/pausieren",scrubberLeft:"Nach links",scrubberRight:"Nach rechts",scrubberIncrease:"Schneller bewegen",scrubberDecrease:"Langsamer"},N={appearance:"Aussehen",dark:"Dunkel",light:"Hell",auto:"Auto","dark-high-contrast":"Dunkel (hoher Kontrast)","light-high-contrast":"Hell (hoher Kontrast)"},w={language:"Sprache"},V={mainMenu:e,cuttingActions:t,video:n,finishMenu:i,save:r,discard:o,theEnd:a,workflowSelection:s,timeline:l,workflowConfig:u,metadata:d,thumbnail:c,thumbnailSimple:h,error:m,landing:g,various:b,trackSelection:S,subtitles:p,subtitleList:k,subtitleVideoArea:f,subtitleTimeline:E,keyboardControls:A,theme:N,language:w};export{t as cuttingActions,V as default,o as discard,m as error,i as finishMenu,A as keyboardControls,g as landing,w as language,e as mainMenu,d as metadata,r as save,k as subtitleList,E as subtitleTimeline,f as subtitleVideoArea,p as subtitles,a as theEnd,N as theme,c as thumbnail,h as thumbnailSimple,l as timeline,S as trackSelection,b as various,n as video,u as workflowConfig,s as workflowSelection}; +`,"error-text":"Ein Fehler ist aufgetreten. Bitte versuchen Sie es später noch einmal.","goBack-button":"Nein, zurück","callback-button-system":"Zurück zu {{system}}","callback-button-generic":"Zurück zu vorherigem System"},S={title:"Spur(en) für die Verarbeitung auswählen",trackInactive:"inaktiv",deleteTrackText:"Spur löschen",restoreTrackText:"Spur wiederherstellen",cannotDeleteTrackText:"Spur kann nicht gelöscht werden",deleteTrackTooltip:"Diese Spur nicht verarbeiten und veröffentlichen.",restoreTrackTooltip:"Diese Spur verarbeiten und veröffentlichen.",cannotDeleteTrackTooltip:"Diese Spur kann nicht entfernt werden."},p={"selectSubtitleButton-tooltip":"Untertitel für {{title}} bearbeiten","selectSubtitleButton-tooltip-aria":"{{title}} zur Bearbeitung von Untertiteln auswählen","createSubtitleButton-tooltip":"Öffnet einen Dialog zum Erstellen neuer Untertitel","createSubtitleButton-clicked-tooltip-aria":"Enthält einen Dialog zum Erstellen neuer Untertitel","createSubtitleButton-createButton":"Erstellen","createSubtitleButton-createButton-tooltip":"Beginne eine neue Untertiteldatei mit dem ausgewählten Titel.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Wähle eine Sprache",backButton:"Zurück","backButton-tooltip":"Zurück zur Untertitelauswahl","downloadButton-title":"Herunterladen","downloadButton-tooltip":"Untertitel als vtt-Datei herunterladen",editTitle:"Untertitel-Editor - {{title}}","editTitle-loading":"Lädt",generic:"Unspezifiziert",autoGenerated:"Automatisch generiert"},k={"startTime-tooltip":"Beginn des Segments","startTime-tooltip-aria":"Beginnt bei","endTime-tooltip":"Ende des Segments","endTime-tooltip-aria":"Endet bei",addSegmentAbove:"Segment oberhalb hinzufügen",addSegmentBelow:"Segment unterhalb hinzufügen",jumpToSegmentAbove:"Zum Segment oberhalb springen",jumpToSegmentBelow:"Zum Segment unterhalb springen",deleteSegment:"Segment löschen"},f={selectVideoLabel:"Video Flavors"},E={overviewTimelineTooltip:"Zeitleiste-Übersicht"},A={header:"Tastenkürzel",defaultGroupName:"Allgemein",missingLabel:"Unbekannt",groupVideoPlayer:"Videoplayer",groupCuttingView:"Schneiden",groupCuttingViewScrubber:"Zeitleiste",groupSubtitleList:"Untertitel",sequenceSeparator:"oder",genericError:"Fehler beim Laden der Übersicht",videoPlayButton:"Video abspielen/pausieren",scrubberLeft:"Nach links",scrubberRight:"Nach rechts",scrubberIncrease:"Schneller bewegen",scrubberDecrease:"Langsamer"},N={appearance:"Aussehen",dark:"Dunkel",light:"Hell",auto:"Auto","dark-high-contrast":"Dunkel (hoher Kontrast)","light-high-contrast":"Hell (hoher Kontrast)"},w={language:"Sprache"},V={mainMenu:e,cuttingActions:t,video:n,finishMenu:i,save:r,discard:o,theEnd:a,workflowSelection:s,timeline:l,workflowConfig:u,metadata:d,thumbnail:c,thumbnailSimple:h,error:m,landing:g,various:b,trackSelection:S,subtitles:p,subtitleList:k,subtitleVideoArea:f,subtitleTimeline:E,keyboardControls:A,theme:N,language:w};export{t as cuttingActions,V as default,o as discard,m as error,i as finishMenu,A as keyboardControls,g as landing,w as language,e as mainMenu,d as metadata,r as save,k as subtitleList,E as subtitleTimeline,f as subtitleVideoArea,p as subtitles,a as theEnd,N as theme,c as thumbnail,h as thumbnailSimple,l as timeline,S as trackSelection,b as various,n as video,u as workflowConfig,s as workflowSelection}; diff --git a/assets/el-GR-xAZUGXPa.js b/assets/el-GR-x0BxZ-xk.js similarity index 84% rename from assets/el-GR-xAZUGXPa.js rename to assets/el-GR-x0BxZ-xk.js index 71ae50eff..3cb1b55ab 100644 --- a/assets/el-GR-xAZUGXPa.js +++ b/assets/el-GR-x0BxZ-xk.js @@ -6,4 +6,4 @@ const t={"cutting-button":"Περικοπή","finish-button":"Ολοκλήρωσ `,"segments-text-aria":`Τμήμα {{index}}. {{segmentStatus}}. Έναρξη: {{start}}. Τέλος: {{end}}. `},u={"headline-text":"Ρύθμισεις παραμέτρων ροής εργασίας","satisfied-text":"Ικανοποιημένος με τις ρυθμίσεις σας;","confirm-button":"Ναι, έναρξη επεξεργασίας"},c={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Μεταδεδομένα επεισοδίου","submit-button":"Υποβολή","submit-button-tooltip":"Επιβεβαίωση αλλαγών","reset-button":"Επαναφορά","reset-button-tooltip":"Αναίρεση όλων των αλλαγών σας","submit-helpertext":`Κάντε αλλαγές όπως θέλετε και μετά πατήστε το κουμπί {{buttonName}}. Σημειώστε ότι θα πρέπει να ξεκινήσετε την επεξεργασία για να τεθούν σε ισχύ οι αλλαγές σας.`,validation:{required:"Απαιτείται","duration-format":"Η μορφή πρέπει να είναι HH:MM:SS",datetime:"Μη έγκυρος"},labels:{title:"Τίτλος",subject:"Θέμα",description:"Περιγραφή",language:"Γλώσσα",rightsHolder:"Δικαιώματα",license:"Άδεια χρήσης",isPartOf:"Σειρά",creator:"Παρουσιαστής(ές)",contributor:"Χορηγός(οι)",startDate:"Ημερομηνία έναρξης",duration:"Διάρκεια",location:"Τοποθεσία",source:"Πηγή",created:"Δημιουργήθηκε",publisher:"Εκδότης",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Σλοβενικά","LANGUAGES-PORTUGESE":"Πορτογαλικά","LANGUAGES-ROMANSH":"Ρωμανικά","LANGUAGES-ARABIC":"Αραβικά","LANGUAGES-POLISH":"Πολωνικά","LANGUAGES-ITALIAN":"Ιταλικά","LANGUAGES-CHINESE":"Κινέζικα","LANGUAGES-FINNISH":"Φινλανδικά","LANGUAGES-DANISH":"Δανικά","LANGUAGES-UKRAINIAN":"Ουκρανικά","LANGUAGES-FRENCH":"Γαλλικά","LANGUAGES-SPANISH":"Ισπανικά","LANGUAGES-GERMAN_CH":"Ελβετικά Γερμανικά","LANGUAGES-NORWEGIAN":"Νορβηγικά","LANGUAGES-RUSSIAN":"Ρωσικά","LANGUAGES-JAPANESE":"Ιαπωνικά","LANGUAGES-DUTCH":"Ολλανδικά","LANGUAGES-TURKISH":"Τουρκικά","LANGUAGES-HINDI":"Χίντι","LANGUAGES-SWEDISH":"Σουηδικά","LANGUAGES-ENGLISH":"Αγγλικά","LANGUAGES-GERMAN":"Γερμανικά"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC BY-ND","EVENTS-LICENSE-CCBYNCND":"CC BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"Με επιφύλαξη παντός δικαιώματος","EVENTS-LICENSE-CCBYSA":"CC-BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC-BY"},"calendar-prev":"Προηγούμενο","calendar-next":"Επόμενο"},b={title:"Επεξεργαστής μικρογραφίας",noThumbnailAvailable:"Δεν υπάρχει διαθέσιμη μικρογραφία",previewImageAlt:"Μικρογραφία για το κομμάτι",buttonGenerate:"Δημιουργία","buttonGenerate-tooltip":"Δημιουργία νέας μικρογραφίας από την τρέχουσα θέση σήμανσης χρονολογίου","buttonGenerate-tooltip-aria":"Δημιουργία νέας μικρογραφίας από την τρέχουσα θέση σήμανσης χρονολογίου",buttonUpload:"Ανέβασμα","buttonUpload-tooltip":"Ανέβασμα Εικόνας","buttonUpload-tooltip-aria":"Ανέβασμα Εικόνας",buttonUseForOtherThumbnails:"Χρήση για όλα τα κομμάτια","buttonUseForOtherThumbnails-tooltip":"Χρήση της μικρογραφίας για όλα τα κομμάτια","buttonUseForOtherThumbnails-tooltip-aria":"Χρήση της μικρογραφίας για όλα τα κομμάτια",buttonDiscard:"Απόρριψη","buttonDiscard-tooltip":"Απόρριψη της μικρογραφίας για αυτό το κομμάτι","buttonDiscard-tooltip-aria":"Απόρριψη της μικρογραφίας για αυτό το κομμάτι",buttonGenerateAll:"Δημιουργία Όλων","buttonGenerateAll-tooltip":"Δημιουργία νέων εικόνων επισκόπησης για όλα τα κομμάτια από την τρέχουσα θέση του χρονοδιαγράμματος","buttonGenerateAll-tooltip-aria":"Δημιουργία νέων εικόνων επισκόπησης για όλα τα κομμάτια από την τρέχουσα θέση του χρονοδιαγράμματος",explanation:"Ανεβάστε ή δημιουργήστε μια μικρογραφία για κάθε κομμάτι.",primary:"Κύριο",secondary:"Δευτερεύων"},m={rowTitle:"Αλλαγή μικρογραφίας εδώ",from:"απο"},d={"generic-message":"Παρουσιάστηκε ένα κρίσιμο σφάλμα",details:"Λεπτομέρειες: ","workflowActive-errorTitle":"Προσωρινά μη διαθέσιμη","workflowActive-errorMessage":"Αυτή η εκδήλωση επεξεργάζεται. Παρακαλώ περιμένετε μέχρι να ολοκληρωθεί η διαδικασία."},p={"main-heading":"Καλώς ήρθατε στον επεξεργαστή βίντεο","contact-admin":"Αν προσπαθούσατε να επεξεργαστείτε ένα συγκεκριμένο βίντεο, αλλά βλέπετε αυτή τη σελίδα, παρακαλούμε επικοινωνήστε με το διαχειριστή σας.","start-editing-1":"Για να ξεκινήσετε την επεξεργασία, καθορίστε την παράμετρο ","start-editing-2":" με το πακέτο πολυμέσων id του βίντεο που θέλετε να επεξεργαστείτε.","link-to-documentation":"Περισσότερες πληροφορίες για τη ρύθμιση παραμέτρων του επεξεργαστή βίντεο είναι διαθέσιμες στον οδηγό διαχείρισης στο "},S={"error-details-text":`Λεπτομέρειες: {{errorMessage}} -`,"error-text":"Παρουσιάστηκε σφάλμα. Παρακαλώ περιμένετε λίγο και προσπαθήστε ξανά.","goBack-button":"Όχι, πήγαινέ με πίσω","callback-button-system":"Επιστροφή στο {{system}}","callback-button-generic":"Επιστροφή στο προηγούμενο σύστημα"},A={title:"Επιλογή κομματιού(ών) για επεξεργασία",trackInactive:"ανενεργό",deleteTrackText:"Διαγραφή Κομματιού",restoreTrackText:"Επαναφορά Κομματιού",cannotDeleteTrackText:"Αδυναμία Διαγραφής Κομματιού",deleteTrackTooltip:"Να μην κωδικοποιηθεί και δημοσιευτεί αυτό το κομμάτι.",restoreTrackTooltip:"Κωδικοποίηση και δημοσίευση αυτού του κομματιού.",cannotDeleteTrackTooltip:"Δεν είναι δυνατή η αφαίρεση αυτού του κομματιού από τη δημοσίευση."},N={"selectSubtitleButton-tooltip":"Επεξεργασία υποτίτλων για {{title}}","selectSubtitleButton-tooltip-aria":"Επιλέξτε {{title}} για επεξεργασία υποτίτλων","createSubtitleButton-tooltip":"Ανοίγει ένα διάλογο για τη δημιουργία νέων υποτίτλων","createSubtitleButton-clicked-tooltip-aria":"Περιέχει ένα διάλογο για τη δημιουργία νέων υποτίτλων","createSubtitleButton-createButton":"Δημιουργία","createSubtitleButton-createButton-tooltip":"Ξεκινήστε ένα νέο αρχείο υποτίτλων με τον επιλεγμένο τίτλο.","createSubtitleDropdown-label":"Επιλέξτε μια γλώσσα",backButton:"Επιστροφή","backButton-tooltip":"Επιστροφή στην επιλογή υποτίτλων","downloadButton-title":"Λήψη","downloadButton-tooltip":"Λήψη υποτίτλων ως αρχείο vtt",editTitle:"Επεξεργαστής υποτίτλων - {{title}}","editTitle-loading":"Φόρτωση",generic:"Γενικά",autoGenerated:"Αυτόματη δημιουργία"},E={"startTime-tooltip":"Έναρξη του τμήματος","startTime-tooltip-aria":"Ξεκινώντας από {0}","endTime-tooltip":"Τέλος του τμήματος","endTime-tooltip-aria":"Τελειώνει στις",addSegmentAbove:"Προσθήκη τμήματος πάνω",addSegmentBelow:"Προσθήκη τμήματος κάτω",jumpToSegmentAbove:"Μετάβαση στο τμήμα πάνω",jumpToSegmentBelow:"Μετάβαση στο τμήμα κάτω",deleteSegment:"Διαγραφή τμήματος"},g={selectVideoLabel:"Τύποι Βίντεο"},G={overviewTimelineTooltip:"Επισκόπηση χρονολογίου"},C={header:"Συντομεύσεις",defaultGroupName:"Γενικά",missingLabel:"Άγνωστο",groupVideoPlayer:"Αναπαραγωγή Βίντεο",groupCuttingView:"Περικοπή",groupCuttingViewScrubber:"Χρονολόγιο",groupSubtitleList:"Υπότιτλοι",sequenceSeparator:"ή",genericError:"Αποτυχία φόρτωσης επισκόπησης",videoPlayButton:"Αναπαραγωγή/Παύση Βίντεο",scrubberLeft:"Μετακίνηση αριστερά",scrubberRight:"Μετακίνηση δεξιά",scrubberIncrease:"Μετακίνηση γρηγορότερα",scrubberDecrease:"Μετακίνηση πιο αργά"},h={appearance:"Εμφάνιση",dark:"Σκοτεινό",light:"Φωτεινό",auto:"Αυτόματο","dark-high-contrast":"Σκοτεινό (Υψηλή αντίθεση)","light-high-contrast":"Φωτεινό (Υψηλή αντίθεση)"},L={language:"Γλώσσα"},T={mainMenu:t,cuttingActions:e,video:o,finishMenu:i,save:n,discard:a,theEnd:r,workflowSelection:l,timeline:s,workflowConfig:u,metadata:c,thumbnail:b,thumbnailSimple:m,error:d,landing:p,various:S,trackSelection:A,subtitles:N,subtitleList:E,subtitleVideoArea:g,subtitleTimeline:G,keyboardControls:C,theme:h,language:L};export{e as cuttingActions,T as default,a as discard,d as error,i as finishMenu,C as keyboardControls,p as landing,L as language,t as mainMenu,c as metadata,n as save,E as subtitleList,G as subtitleTimeline,g as subtitleVideoArea,N as subtitles,r as theEnd,h as theme,b as thumbnail,m as thumbnailSimple,s as timeline,A as trackSelection,S as various,o as video,u as workflowConfig,l as workflowSelection}; +`,"error-text":"Παρουσιάστηκε σφάλμα. Παρακαλώ περιμένετε λίγο και προσπαθήστε ξανά.","goBack-button":"Όχι, πήγαινέ με πίσω","callback-button-system":"Επιστροφή στο {{system}}","callback-button-generic":"Επιστροφή στο προηγούμενο σύστημα"},A={title:"Επιλογή κομματιού(ών) για επεξεργασία",trackInactive:"ανενεργό",deleteTrackText:"Διαγραφή Κομματιού",restoreTrackText:"Επαναφορά Κομματιού",cannotDeleteTrackText:"Αδυναμία Διαγραφής Κομματιού",deleteTrackTooltip:"Να μην κωδικοποιηθεί και δημοσιευτεί αυτό το κομμάτι.",restoreTrackTooltip:"Κωδικοποίηση και δημοσίευση αυτού του κομματιού.",cannotDeleteTrackTooltip:"Δεν είναι δυνατή η αφαίρεση αυτού του κομματιού από τη δημοσίευση."},N={"selectSubtitleButton-tooltip":"Επεξεργασία υποτίτλων για {{title}}","selectSubtitleButton-tooltip-aria":"Επιλέξτε {{title}} για επεξεργασία υποτίτλων","createSubtitleButton-tooltip":"Ανοίγει ένα διάλογο για τη δημιουργία νέων υποτίτλων","createSubtitleButton-clicked-tooltip-aria":"Περιέχει ένα διάλογο για τη δημιουργία νέων υποτίτλων","createSubtitleButton-createButton":"Δημιουργία","createSubtitleButton-createButton-tooltip":"Ξεκινήστε ένα νέο αρχείο υποτίτλων με τον επιλεγμένο τίτλο.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Επιλέξτε μια γλώσσα",backButton:"Επιστροφή","backButton-tooltip":"Επιστροφή στην επιλογή υποτίτλων","downloadButton-title":"Λήψη","downloadButton-tooltip":"Λήψη υποτίτλων ως αρχείο vtt",editTitle:"Επεξεργαστής υποτίτλων - {{title}}","editTitle-loading":"Φόρτωση",generic:"Γενικά",autoGenerated:"Αυτόματη δημιουργία"},E={"startTime-tooltip":"Έναρξη του τμήματος","startTime-tooltip-aria":"Ξεκινώντας από {0}","endTime-tooltip":"Τέλος του τμήματος","endTime-tooltip-aria":"Τελειώνει στις",addSegmentAbove:"Προσθήκη τμήματος πάνω",addSegmentBelow:"Προσθήκη τμήματος κάτω",jumpToSegmentAbove:"Μετάβαση στο τμήμα πάνω",jumpToSegmentBelow:"Μετάβαση στο τμήμα κάτω",deleteSegment:"Διαγραφή τμήματος"},g={selectVideoLabel:"Τύποι Βίντεο"},G={overviewTimelineTooltip:"Επισκόπηση χρονολογίου"},C={header:"Συντομεύσεις",defaultGroupName:"Γενικά",missingLabel:"Άγνωστο",groupVideoPlayer:"Αναπαραγωγή Βίντεο",groupCuttingView:"Περικοπή",groupCuttingViewScrubber:"Χρονολόγιο",groupSubtitleList:"Υπότιτλοι",sequenceSeparator:"ή",genericError:"Αποτυχία φόρτωσης επισκόπησης",videoPlayButton:"Αναπαραγωγή/Παύση Βίντεο",scrubberLeft:"Μετακίνηση αριστερά",scrubberRight:"Μετακίνηση δεξιά",scrubberIncrease:"Μετακίνηση γρηγορότερα",scrubberDecrease:"Μετακίνηση πιο αργά"},h={appearance:"Εμφάνιση",dark:"Σκοτεινό",light:"Φωτεινό",auto:"Αυτόματο","dark-high-contrast":"Σκοτεινό (Υψηλή αντίθεση)","light-high-contrast":"Φωτεινό (Υψηλή αντίθεση)"},L={language:"Γλώσσα"},T={mainMenu:t,cuttingActions:e,video:o,finishMenu:i,save:n,discard:a,theEnd:r,workflowSelection:l,timeline:s,workflowConfig:u,metadata:c,thumbnail:b,thumbnailSimple:m,error:d,landing:p,various:S,trackSelection:A,subtitles:N,subtitleList:E,subtitleVideoArea:g,subtitleTimeline:G,keyboardControls:C,theme:h,language:L};export{e as cuttingActions,T as default,a as discard,d as error,i as finishMenu,C as keyboardControls,p as landing,L as language,t as mainMenu,c as metadata,n as save,E as subtitleList,G as subtitleTimeline,g as subtitleVideoArea,N as subtitles,r as theEnd,h as theme,b as thumbnail,m as thumbnailSimple,s as timeline,A as trackSelection,S as various,o as video,u as workflowConfig,l as workflowSelection}; diff --git a/assets/es-ES-NI-qxCWZ.js b/assets/es-ES-dfLL8V64.js similarity index 81% rename from assets/es-ES-NI-qxCWZ.js rename to assets/es-ES-dfLL8V64.js index b9d49952f..4e27894a6 100644 --- a/assets/es-ES-NI-qxCWZ.js +++ b/assets/es-ES-dfLL8V64.js @@ -6,4 +6,4 @@ const e={"cutting-button":"Dividir","finish-button":"Finalizar","select-tracks-b `,"segments-text-aria":`Segmento {{index}}. {{segmentStatus}}. Inicio: {{start}}. Final: {{end}}. `},c={"headline-text":"Configuración del flujo de trabajo","satisfied-text":"¿Satisfecho con su configuración?","confirm-button":"Iniciar proceso"},u={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Metadatos de episodio","submit-button":"Enviar","submit-button-tooltip":"Confirmar cambios","reset-button":"Reestablecer","reset-button-tooltip":"Deshacer todos los cambios","submit-helpertext":`Haz cambios a su gusto, luego pulse el botón {{buttonName}}. Tenga en cuenta que todavía tendrá que empezar el procesamiento para que los cambios surtan efecto.`,validation:{required:"Requerido","duration-format":"El formato debe ser HH:MM:SS",datetime:"Inválido"},labels:{title:"Título",subject:"Tema",description:"Descripción",language:"Idioma",rightsHolder:"Derechos",license:"Licencia",isPartOf:"Series",creator:"Ponente(s)",contributor:"Colaborador(es)",startDate:"Fecha de inicio",duration:"Duración",location:"Ubicación",source:"Fuente",created:"Creado el",publisher:"Editor",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Esloveno","LANGUAGES-PORTUGESE":"Portugués","LANGUAGES-ROMANSH":"Rumano","LANGUAGES-ARABIC":"Árabe","LANGUAGES-POLISH":"Polaco","LANGUAGES-ITALIAN":"Italiano","LANGUAGES-CHINESE":"Chino","LANGUAGES-FINNISH":"Finlandés","LANGUAGES-DANISH":"Danés","LANGUAGES-UKRAINIAN":"Ucraniano","LANGUAGES-FRENCH":"Francés","LANGUAGES-SPANISH":"Español","LANGUAGES-GERMAN_CH":"Alemán suizo","LANGUAGES-NORWEGIAN":"Noruego","LANGUAGES-RUSSIAN":"Ruso","LANGUAGES-JAPANESE":"Japonés","LANGUAGES-DUTCH":"Neerlandés","LANGUAGES-TURKISH":"Turco","LANGUAGES-HINDI":"Hindi","LANGUAGES-SWEDISH":"Sueco","LANGUAGES-ENGLISH":"Inglés","LANGUAGES-GERMAN":"Alemán"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC BY-ND","EVENTS-LICENSE-CCBYNCND":"CC BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"Todos los derechos reservados","EVENTS-LICENSE-CCBYSA":"CC BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC-BY"},"calendar-prev":"Anterior","calendar-next":"Siguiente"},d={title:"Editor de miniatura",noThumbnailAvailable:"No hay miniaturas disponibles",previewImageAlt:"Miniatura de la pista",buttonGenerate:"Generar","buttonGenerate-tooltip":"Generar una nueva miniatura desde la posición actual del control deslizante","buttonGenerate-tooltip-aria":"Generar una nueva miniatura desde la posición actual del control deslizante",buttonUpload:"Cargar","buttonUpload-tooltip":"Cargar una imagen","buttonUpload-tooltip-aria":"Cargar una imagen",buttonUseForOtherThumbnails:"Usar para todas las pistas","buttonUseForOtherThumbnails-tooltip":"Usar la miniatura para todas las pistas","buttonUseForOtherThumbnails-tooltip-aria":"Usar la miniatura para todas las pistas",buttonDiscard:"Descartar","buttonDiscard-tooltip":"Descartar la miniatura de esta pista","buttonDiscard-tooltip-aria":"Descartar la miniatura de esta pista",buttonGenerateAll:"Generar todo","buttonGenerateAll-tooltip":"Generar una nueva miniatura desde la posición actual del control deslizante","buttonGenerateAll-tooltip-aria":"Generar una nueva miniatura desde la posición actual del control deslizante",explanation:"Subir o generar una miniatura para cada pista.",primary:"Primario",secondary:"Secundario"},m={rowTitle:"Cambiar miniatura",from:"desde"},p={"generic-message":"¡Un error critico ha ocurrido!",details:"Detalles: ","workflowActive-errorTitle":"No disponible temporalmente","workflowActive-errorMessage":"Este evento está siendo procesado. Por favor, espere hasta que el proceso haya terminado."},b={"main-heading":"Bienvenido al editor de vídeos","contact-admin":"Si intentas editar un vídeo específico pero estás viendo esta página, por favor contacta a tu administrador.","start-editing-1":"Para empezar a editar, especifique el parámetro ","start-editing-2":' con el "id" del paquete multimedia del vídeo que desea editar.',"link-to-documentation":"Más información sobre cómo configurar el editor de vídeo está disponible en la guía de administración en "},g={"error-details-text":`Detalles: {{errorMessage}} -`,"error-text":"Ha ocurrido un error. Por favor, espere un poco e inténtelo de nuevo.","goBack-button":"¡De ninguna manera! Volver atrás","callback-button-system":"Volver a {{system}}","callback-button-generic":"Back to previous system"},S={title:"Seleccionar la(s) pista(s) a procesar",trackInactive:"inactivo",deleteTrackText:"Eliminar pista",restoreTrackText:"Restaurar pista",cannotDeleteTrackText:"No se puede eliminar la pista",deleteTrackTooltip:"No procesar ni publicar esta pista.",restoreTrackTooltip:"Procesar y publicar esta pista.",cannotDeleteTrackTooltip:"No se puede eliminar esta pista de la publicación."},A={"selectSubtitleButton-tooltip":"Editar subtítulos para {{title}}","selectSubtitleButton-tooltip-aria":"Seleccionar {{title}} para editar subtítulos","createSubtitleButton-tooltip":"Abre un diálogo para crear nuevos subtítulos","createSubtitleButton-clicked-tooltip-aria":"Contiene un diálogo para crear nuevos subtítulos","createSubtitleButton-createButton":"Crear","createSubtitleButton-createButton-tooltip":"Inicia un nuevo archivo de subtítulos con el título elegido.","createSubtitleDropdown-label":"Seleccione un idioma",backButton:"Atras","backButton-tooltip":"Volver a la selección de subtítulos","downloadButton-title":"Descargar","downloadButton-tooltip":"Descargar subtítulo como un archivo vtt",editTitle:"Editor de subtítulos - {{title}}","editTitle-loading":"Cargando",generic:"Generico",autoGenerated:"Autogenerado"},v={"startTime-tooltip":"Inicio del segmento","startTime-tooltip-aria":"A partir de","endTime-tooltip":"Fin del segmento","endTime-tooltip-aria":"Finaliza en",addSegmentAbove:"Añadir segmento arriba",addSegmentBelow:"Añadir segmento debajo",jumpToSegmentAbove:"Saltar al segmento superior",jumpToSegmentBelow:"Saltar al segmento inferior",deleteSegment:"Eliminar segmento"},E={selectVideoLabel:"Sabores del vídeo"},N={overviewTimelineTooltip:"Previsualización de la línea de tiempo"},C={header:"Atajos",defaultGroupName:"General",missingLabel:"Desconocido",groupVideoPlayer:"Reproductor de vídeo",groupCuttingView:"Dividir",groupCuttingViewScrubber:"Línea de tiempo",groupSubtitleList:"Subtítulos",sequenceSeparator:"o",genericError:"Error al cargar la vista general",videoPlayButton:"Reproducir/Pausar vídeo",scrubberLeft:"Mover a la izquierda",scrubberRight:"Mover a la derecha",scrubberIncrease:"Mover más rápido",scrubberDecrease:"Mover más lento"},G={appearance:"Apariencia",dark:"Oscuro",light:"Claro",auto:"Auto","dark-high-contrast":"Oscuro (alto contraste)","light-high-contrast":"Claro (alto contraste)"},h={language:"Idioma"},f={mainMenu:e,cuttingActions:t,video:a,finishMenu:o,save:r,discard:i,theEnd:n,workflowSelection:s,timeline:l,workflowConfig:c,metadata:u,thumbnail:d,thumbnailSimple:m,error:p,landing:b,various:g,trackSelection:S,subtitles:A,subtitleList:v,subtitleVideoArea:E,subtitleTimeline:N,keyboardControls:C,theme:G,language:h};export{t as cuttingActions,f as default,i as discard,p as error,o as finishMenu,C as keyboardControls,b as landing,h as language,e as mainMenu,u as metadata,r as save,v as subtitleList,N as subtitleTimeline,E as subtitleVideoArea,A as subtitles,n as theEnd,G as theme,d as thumbnail,m as thumbnailSimple,l as timeline,S as trackSelection,g as various,a as video,c as workflowConfig,s as workflowSelection}; +`,"error-text":"Ha ocurrido un error. Por favor, espere un poco e inténtelo de nuevo.","goBack-button":"¡De ninguna manera! Volver atrás","callback-button-system":"Volver a {{system}}","callback-button-generic":"Back to previous system"},S={title:"Seleccionar la(s) pista(s) a procesar",trackInactive:"inactivo",deleteTrackText:"Eliminar pista",restoreTrackText:"Restaurar pista",cannotDeleteTrackText:"No se puede eliminar la pista",deleteTrackTooltip:"No procesar ni publicar esta pista.",restoreTrackTooltip:"Procesar y publicar esta pista.",cannotDeleteTrackTooltip:"No se puede eliminar esta pista de la publicación."},A={"selectSubtitleButton-tooltip":"Editar subtítulos para {{title}}","selectSubtitleButton-tooltip-aria":"Seleccionar {{title}} para editar subtítulos","createSubtitleButton-tooltip":"Abre un diálogo para crear nuevos subtítulos","createSubtitleButton-clicked-tooltip-aria":"Contiene un diálogo para crear nuevos subtítulos","createSubtitleButton-createButton":"Crear","createSubtitleButton-createButton-tooltip":"Inicia un nuevo archivo de subtítulos con el título elegido.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Seleccione un idioma",backButton:"Atras","backButton-tooltip":"Volver a la selección de subtítulos","downloadButton-title":"Descargar","downloadButton-tooltip":"Descargar subtítulo como un archivo vtt",editTitle:"Editor de subtítulos - {{title}}","editTitle-loading":"Cargando",generic:"Generico",autoGenerated:"Autogenerado"},v={"startTime-tooltip":"Inicio del segmento","startTime-tooltip-aria":"A partir de","endTime-tooltip":"Fin del segmento","endTime-tooltip-aria":"Finaliza en",addSegmentAbove:"Añadir segmento arriba",addSegmentBelow:"Añadir segmento debajo",jumpToSegmentAbove:"Saltar al segmento superior",jumpToSegmentBelow:"Saltar al segmento inferior",deleteSegment:"Eliminar segmento"},E={selectVideoLabel:"Sabores del vídeo"},N={overviewTimelineTooltip:"Previsualización de la línea de tiempo"},C={header:"Atajos",defaultGroupName:"General",missingLabel:"Desconocido",groupVideoPlayer:"Reproductor de vídeo",groupCuttingView:"Dividir",groupCuttingViewScrubber:"Línea de tiempo",groupSubtitleList:"Subtítulos",sequenceSeparator:"o",genericError:"Error al cargar la vista general",videoPlayButton:"Reproducir/Pausar vídeo",scrubberLeft:"Mover a la izquierda",scrubberRight:"Mover a la derecha",scrubberIncrease:"Mover más rápido",scrubberDecrease:"Mover más lento"},G={appearance:"Apariencia",dark:"Oscuro",light:"Claro",auto:"Auto","dark-high-contrast":"Oscuro (alto contraste)","light-high-contrast":"Claro (alto contraste)"},h={language:"Idioma"},f={mainMenu:e,cuttingActions:t,video:a,finishMenu:o,save:r,discard:i,theEnd:n,workflowSelection:s,timeline:l,workflowConfig:c,metadata:u,thumbnail:d,thumbnailSimple:m,error:p,landing:b,various:g,trackSelection:S,subtitles:A,subtitleList:v,subtitleVideoArea:E,subtitleTimeline:N,keyboardControls:C,theme:G,language:h};export{t as cuttingActions,f as default,i as discard,p as error,o as finishMenu,C as keyboardControls,b as landing,h as language,e as mainMenu,u as metadata,r as save,v as subtitleList,N as subtitleTimeline,E as subtitleVideoArea,A as subtitles,n as theEnd,G as theme,d as thumbnail,m as thumbnailSimple,l as timeline,S as trackSelection,g as various,a as video,c as workflowConfig,s as workflowSelection}; diff --git a/assets/fr-FR-e_f8XltA.js b/assets/fr-FR-wGONkQcm.js similarity index 81% rename from assets/fr-FR-e_f8XltA.js rename to assets/fr-FR-wGONkQcm.js index 9ae1d43ee..0622656da 100644 --- a/assets/fr-FR-e_f8XltA.js +++ b/assets/fr-FR-wGONkQcm.js @@ -6,4 +6,4 @@ const e={"cutting-button":"Editer","finish-button":"Terminer","select-tracks-but `,"segments-text-aria":`Segment {{index}}. {{segmentStatus}}. Début : {{start}}. Fin : {{end}}. `},u={"headline-text":"Configuration du workflow","satisfied-text":"Satisfait de votre configuration ?","confirm-button":"Oui, commencer le traitement"},c={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Métadonnées de l’épisode","submit-button":"Envoyer","submit-button-tooltip":"Valider les modifications","reset-button":"Réinitialiser","reset-button-tooltip":"Annuler tous les changements","submit-helpertext":`Faites des changements comme vous le souhaitez, puis cliquez sur le bouton {{buttonName}} . Notez que vous devrez quand même commencer à traiter pour que vos changements prennent effet.`,validation:{required:"Requis","duration-format":"Le format doit être HH:MM:SS",datetime:"Invalide"},labels:{title:"Titre",subject:"Sujet",description:"Description",language:"Langue",rightsHolder:"Droits",license:"Licence",isPartOf:"Séries",creator:"Présentateur(s)",contributor:"Contributeur(s)",startDate:"Date de début ",duration:"Durée",location:"Lieu",source:"Source",created:"Créé le",publisher:"Editeur",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Slovaque","LANGUAGES-PORTUGESE":"Portuguese","LANGUAGES-ROMANSH":"Romanche","LANGUAGES-ARABIC":"Arabe","LANGUAGES-POLISH":"Polonais","LANGUAGES-ITALIAN":"Italien","LANGUAGES-CHINESE":"Chinois","LANGUAGES-FINNISH":"Finnois","LANGUAGES-DANISH":"Danois","LANGUAGES-UKRAINIAN":"Ukrainien","LANGUAGES-FRENCH":"Français","LANGUAGES-SPANISH":"Espagnol","LANGUAGES-GERMAN_CH":"Suisse-allemand","LANGUAGES-NORWEGIAN":"Norvégien","LANGUAGES-RUSSIAN":"Russe","LANGUAGES-JAPANESE":"Japonais","LANGUAGES-DUTCH":"Néerlandais","LANGUAGES-TURKISH":"Turc","LANGUAGES-HINDI":"Hindi","LANGUAGES-SWEDISH":"Suédois","LANGUAGES-ENGLISH":"Anglais","LANGUAGES-GERMAN":"Allemand"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC BY-ND","EVENTS-LICENSE-CCBYNCND":"CC BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"Tous droits réservés","EVENTS-LICENSE-CCBYSA":"CC BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC BY"},"calendar-prev":"Previous","calendar-next":"Next"},d={title:"Thumbnail Editor",noThumbnailAvailable:"No Thumbnail available",previewImageAlt:"Thumbnail for track",buttonGenerate:"Generate","buttonGenerate-tooltip":"Generate a new thumbnail from the current timeline marker position","buttonGenerate-tooltip-aria":"Generate a new thumbnail from the current timeline marker position",buttonUpload:"Upload","buttonUpload-tooltip":"Upload an image","buttonUpload-tooltip-aria":"Upload an image",buttonUseForOtherThumbnails:"Use for all tracks","buttonUseForOtherThumbnails-tooltip":"Use the thumbnail for all tracks","buttonUseForOtherThumbnails-tooltip-aria":"Use the thumbnail for all tracks",buttonDiscard:"Discard","buttonDiscard-tooltip":"Discard the thumbnail for this track","buttonDiscard-tooltip-aria":"Discard the thumbnail for this track",buttonGenerateAll:"Generate All","buttonGenerateAll-tooltip":"Generate new thumbnails for all tracks from the current timeline marker position","buttonGenerateAll-tooltip-aria":"Generate new thumbnails for all tracks from the current timeline marker position",explanation:"Upload or generate a thumbnail for each track.",primary:"Primary",secondary:"Secondary"},m={rowTitle:"Change thumbnail here",from:"from"},p={"generic-message":"Une erreur critique s'est produite.",details:"Détails : ","workflowActive-errorTitle":"Temporairement indisponible","workflowActive-errorMessage":"This event is being processed. Please wait until the process is finished."},g={"main-heading":"Bienvenue dans l'éditeur de vidéo","contact-admin":"Si vous essayez de modifier une vidéo spécifique mais que vous voyez cette page, veuillez contacter votre administrateur.","start-editing-1":"Pour commencer à éditer, spécifiez le paramètre ","start-editing-2":" avec l'identifiant du média de la vidéo que vous souhaitez modifier.","link-to-documentation":"Plus d'informations sur la configuration de l'éditeur de vidéo sont disponibles dans le guide d'administration à "},b={"error-details-text":`Détails : {{errorMessage}} -`,"error-text":"Une erreur s\\'est produite. Veuillez réessayer.","goBack-button":"Non, laissez-moi revenir en arrière.","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},h={title:"Select track(s) for processing",trackInactive:"inactif",deleteTrackText:"Supprimer la piste",restoreTrackText:"Restaurer la piste",cannotDeleteTrackText:"Impossible de supprimer la piste",deleteTrackTooltip:"Ne pas encoder et publier cette piste.",restoreTrackTooltip:"Encoder et publier cette piste.",cannotDeleteTrackTooltip:"Impossible de supprimer cette piste de la publication."},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},v={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},f={selectVideoLabel:"Video Flavors"},A={overviewTimelineTooltip:"Timeline overview"},E={header:"Shortcuts",defaultGroupName:"Général",missingLabel:"Inconnu",groupVideoPlayer:"Video Player",groupCuttingView:"Editer",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"Impossible de charger l'aperçu",videoPlayButton:"Lecture/Pause de la vidéo",scrubberLeft:"Déplacer vers la gauche",scrubberRight:"Déplacer vers la droite",scrubberIncrease:"Move faster",scrubberDecrease:"Déplacement plus lent"},N={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},k={language:"Langue"},C={mainMenu:e,cuttingActions:t,video:o,finishMenu:i,save:r,discard:n,theEnd:a,workflowSelection:s,timeline:l,workflowConfig:u,metadata:c,thumbnail:d,thumbnailSimple:m,error:p,landing:g,various:b,trackSelection:h,subtitles:S,subtitleList:v,subtitleVideoArea:f,subtitleTimeline:A,keyboardControls:E,theme:N,language:k};export{t as cuttingActions,C as default,n as discard,p as error,i as finishMenu,E as keyboardControls,g as landing,k as language,e as mainMenu,c as metadata,r as save,v as subtitleList,A as subtitleTimeline,f as subtitleVideoArea,S as subtitles,a as theEnd,N as theme,d as thumbnail,m as thumbnailSimple,l as timeline,h as trackSelection,b as various,o as video,u as workflowConfig,s as workflowSelection}; +`,"error-text":"Une erreur s\\'est produite. Veuillez réessayer.","goBack-button":"Non, laissez-moi revenir en arrière.","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},h={title:"Select track(s) for processing",trackInactive:"inactif",deleteTrackText:"Supprimer la piste",restoreTrackText:"Restaurer la piste",cannotDeleteTrackText:"Impossible de supprimer la piste",deleteTrackTooltip:"Ne pas encoder et publier cette piste.",restoreTrackTooltip:"Encoder et publier cette piste.",cannotDeleteTrackTooltip:"Impossible de supprimer cette piste de la publication."},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},v={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},f={selectVideoLabel:"Video Flavors"},A={overviewTimelineTooltip:"Timeline overview"},E={header:"Shortcuts",defaultGroupName:"Général",missingLabel:"Inconnu",groupVideoPlayer:"Video Player",groupCuttingView:"Editer",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"Impossible de charger l'aperçu",videoPlayButton:"Lecture/Pause de la vidéo",scrubberLeft:"Déplacer vers la gauche",scrubberRight:"Déplacer vers la droite",scrubberIncrease:"Move faster",scrubberDecrease:"Déplacement plus lent"},N={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},k={language:"Langue"},C={mainMenu:e,cuttingActions:t,video:o,finishMenu:i,save:r,discard:n,theEnd:a,workflowSelection:s,timeline:l,workflowConfig:u,metadata:c,thumbnail:d,thumbnailSimple:m,error:p,landing:g,various:b,trackSelection:h,subtitles:S,subtitleList:v,subtitleVideoArea:f,subtitleTimeline:A,keyboardControls:E,theme:N,language:k};export{t as cuttingActions,C as default,n as discard,p as error,i as finishMenu,E as keyboardControls,g as landing,k as language,e as mainMenu,c as metadata,r as save,v as subtitleList,A as subtitleTimeline,f as subtitleVideoArea,S as subtitles,a as theEnd,N as theme,d as thumbnail,m as thumbnailSimple,l as timeline,h as trackSelection,b as various,o as video,u as workflowConfig,s as workflowSelection}; diff --git a/assets/index-yb8y1pMW.js b/assets/index-Jht01FPN.js similarity index 91% rename from assets/index-yb8y1pMW.js rename to assets/index-Jht01FPN.js index 33e20550a..50bb5e08f 100644 --- a/assets/index-yb8y1pMW.js +++ b/assets/index-Jht01FPN.js @@ -396,7 +396,7 @@ PERFORMANCE OF THIS SOFTWARE. cursor: -webkit-grab; cursor: grab; } `);var a,c=(a="indiana-scroll-container",function($,_e){if(!$)return a;var et;typeof $=="string"?et=$:_e=$;var tt=a;return et&&(tt+="__"+et),tt+(_e?Object.keys(_e).reduce(function(nt,rt){var ot=_e[rt];return ot&&(nt+=" "+(typeof ot=="boolean"?tt+"--"+rt:tt+"--"+rt+"_"+ot)),nt},""):"")}),p=function($){function _e(et){var tt=$.call(this,et)||this;return tt.onEndScroll=function(){tt.scrolling=!1,!tt.pressed&&tt.started&&tt.processEnd()},tt.onScroll=function(nt){var rt=tt.container.current;rt.scrollLeft===tt.scrollLeft&&rt.scrollTop===tt.scrollTop||(tt.scrolling=!0,tt.processScroll(nt),tt.onEndScroll())},tt.onTouchStart=function(nt){var rt=tt.props.nativeMobileScroll;if(tt.isDraggable(nt.target))if(tt.internal=!0,rt&&tt.scrolling)tt.pressed=!0;else{var ot=nt.touches[0];tt.processClick(nt,ot.clientX,ot.clientY),!rt&&tt.props.stopPropagation&&nt.stopPropagation()}},tt.onTouchEnd=function(nt){var rt=tt.props.nativeMobileScroll;tt.pressed&&(!tt.started||tt.scrolling&&rt?tt.pressed=!1:tt.processEnd(),tt.forceUpdate())},tt.onTouchMove=function(nt){var rt=tt.props.nativeMobileScroll;if(tt.pressed&&(!rt||!tt.isMobile)){var ot=nt.touches[0];ot&&tt.processMove(nt,ot.clientX,ot.clientY),nt.preventDefault(),tt.props.stopPropagation&&nt.stopPropagation()}},tt.onMouseDown=function(nt){tt.isDraggable(nt.target)&&tt.isScrollable()&&(tt.internal=!0,tt.props.buttons.indexOf(nt.button)!==-1&&(tt.processClick(nt,nt.clientX,nt.clientY),nt.preventDefault(),tt.props.stopPropagation&&nt.stopPropagation()))},tt.onMouseMove=function(nt){tt.pressed&&(tt.processMove(nt,nt.clientX,nt.clientY),nt.preventDefault(),tt.props.stopPropagation&&nt.stopPropagation())},tt.onMouseUp=function(nt){tt.pressed&&(tt.started?tt.processEnd():(tt.internal=!1,tt.pressed=!1,tt.forceUpdate(),tt.props.onClick&&tt.props.onClick(nt)),nt.preventDefault(),tt.props.stopPropagation&&nt.stopPropagation())},tt.container=React$5.createRef(),tt.onEndScroll=l$1(tt.onEndScroll,300),tt.scrolling=!1,tt.started=!1,tt.pressed=!1,tt.internal=!1,tt.getRef=tt.getRef.bind(tt),tt}return function(et,tt){function nt(){this.constructor=et}n(et,tt),et.prototype=tt===null?Object.create(tt):(nt.prototype=tt.prototype,new nt)}(_e,$),_e.prototype.componentDidMount=function(){var et=this.props.nativeMobileScroll,tt=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),tt.addEventListener("touchstart",this.onTouchStart,{passive:!1}),tt.addEventListener("mousedown",this.onMouseDown,{passive:!1}),et&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},_e.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},_e.prototype.getElement=function(){return this.container.current},_e.prototype.isMobileDevice=function(){return window.orientation!==void 0||navigator.userAgent.indexOf("IEMobile")!==-1},_e.prototype.isDraggable=function(et){var tt=this.props.ignoreElements;if(tt){var nt=et.closest(tt);return nt===null||nt.contains(this.getElement())}return!0},_e.prototype.isScrollable=function(){var et=this.container.current;return et&&(et.scrollWidth>et.clientWidth||et.scrollHeight>et.clientHeight)},_e.prototype.processClick=function(et,tt,nt){var rt=this.container.current;this.scrollLeft=rt.scrollLeft,this.scrollTop=rt.scrollTop,this.clientX=tt,this.clientY=nt,this.pressed=!0},_e.prototype.processStart=function(et){et===void 0&&(et=!0);var tt=this.props.onStartScroll;this.started=!0,et&&document.body.classList.add("indiana-dragging"),tt&&tt({external:!this.internal}),this.forceUpdate()},_e.prototype.processScroll=function(et){if(this.started){var tt=this.props.onScroll;tt&&tt({external:!this.internal})}else this.processStart(!1)},_e.prototype.processMove=function(et,tt,nt){var rt=this.props,ot=rt.horizontal,it=rt.vertical,st=rt.activationDistance,lt=rt.onScroll,ct=this.container.current;this.started?(ot&&(ct.scrollLeft-=tt-this.clientX),it&&(ct.scrollTop-=nt-this.clientY),lt&<({external:!this.internal}),this.clientX=tt,this.clientY=nt,this.scrollLeft=ct.scrollLeft,this.scrollTop=ct.scrollTop):(ot&&Math.abs(tt-this.clientX)>st||it&&Math.abs(nt-this.clientY)>st)&&(this.clientX=tt,this.clientY=nt,this.processStart())},_e.prototype.processEnd=function(){var et=this.props.onEndScroll;this.container.current&&et&&et({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},_e.prototype.getRef=function(et){[this.container,this.props.innerRef].forEach(function(tt){tt&&(typeof tt=="function"?tt(et):tt.current=et)})},_e.prototype.render=function(){var et=this.props,tt=et.children,nt=et.draggingClassName,rt=et.className,ot=et.style,it=et.hideScrollbars,st=et.component;return React$5.createElement(st,{className:i(rt,this.pressed&&nt,c({dragging:this.pressed,"hide-scrollbars":it,"native-scroll":this.isMobile})),style:ot,ref:this.getRef,onScroll:this.onScroll},tt)},_e.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},_e}(reactExports.PureComponent),_ref$f={name:"1xjlggp",styles:"position:relative;width:100%;height:250px"},_ref2$9={name:"ml2wbh",styles:"overflow:hidden;width:100%;height:215px"},_ref3$5={name:"ogvti2",styles:"height:10px"},_ref4$4={name:"6zvml7",styles:"position:relative;height:100px"};const SubtitleTimeline=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=useAppDispatch(),tt=useAppSelector(selectDuration),nt=useAppSelector(selectCurrentlyAt),{ref:rt,width:ot=1}=useResizeObserver(),it=reactExports.useRef(null),{ref:st,width:lt=1}=useResizeObserver(),ft=css({position:"relative",width:tt/1e4*100+"%",paddingLeft:"50%",paddingRight:"50%"},"",""),dt=yt=>{const vt=yt.currentTarget.getBoundingClientRect(),Et=yt.clientX-vt.left;et(setClickTriggered(!0)),et(setCurrentlyAt(Et/lt*tt))};reactExports.useEffect(()=>{if(nt!==void 0&&it.current){const yt=it.current.scrollWidth-it.current.clientWidth;it.current.scrollTo(Math.round(nt/tt*yt),0)}},[nt,tt,ot]);const[pt,ht]=reactExports.useState(1e3);useHotkeys(KEYMAP.timeline.left.key,()=>et(setCurrentlyAt(Math.max(nt-pt,0))),{},[nt,pt]),useHotkeys(KEYMAP.timeline.right.key,()=>et(setCurrentlyAt(Math.min(nt+pt,tt))),{},[nt,pt,tt]),useHotkeys(KEYMAP.timeline.increase.key,()=>ht(yt=>Math.min(yt*10,1e6)),{},[pt]),useHotkeys(KEYMAP.timeline.decrease.key,()=>ht(yt=>Math.max(yt/10,1)),{},[pt]);const gt=yt=>{if(!yt.external&&it&&it.current){const vt=it.current.scrollLeft,Et=it.current.scrollWidth-it.current.clientWidth;et(setCurrentlyAt(vt/Et*tt))}};return jsxs("div",{css:_ref$f,children:[jsx$1("div",{css:css({position:"absolute",width:"2px",height:"200px",...it.current&&{left:it.current.clientWidth/2},top:"10px",background:`${_e.text}`,zIndex:100},"","")}),jsx$1(p,{innerRef:it,css:_ref2$9,vertical:!1,horizontal:!0,onEndScroll:gt,ignoreElements:"#no-scrolling",children:jsxs("div",{ref:rt,css:ft,children:[jsx$1("div",{css:_ref3$5}),jsx$1(TimelineSubtitleSegmentsList,{timelineWidth:ot}),jsxs("div",{css:_ref4$4,children:[jsx$1(Waveforms,{timelineHeight:120}),jsx$1(SegmentsList,{timelineWidth:ot,timelineHeight:120,styleByActiveSegment:!1,tabable:!1})]})]})}),jsx$1(ThemedTooltip,{title:$("subtitleTimeline.overviewTimelineTooltip"),children:jsx$1("div",{onMouseDown:yt=>dt(yt),css:css({position:"relative",width:"100%",height:"15px",background:`linear-gradient(to right, grey ${nt/tt*100}%, - lightgrey ${nt/tt*100}%)`,borderRadius:"3px"},"",""),ref:st,children:jsx$1("div",{css:css({position:"absolute",width:"2px",height:"100%",left:nt/tt*lt,top:0,background:"black"},"","")})})})]})},TimelineSubtitleSegmentsList=({timelineWidth:$})=>{var nt;const et=useAppSelector(selectSelectedSubtitleById);return jsx$1("div",{css:css({position:"relative",width:"100%",height:"80px",overflow:"hidden"},"",""),children:(nt=et==null?void 0:et.cues)==null?void 0:nt.map((rt,ot)=>jsx$1(TimelineSubtitleSegment,{timelineWidth:$,cue:rt,height:80,index:ot},rt.idInternal))})},TimelineSubtitleSegment=React$5.memo($=>{const _e=useAppDispatch(),et=useAppSelector(selectSelectedSubtitleId),tt=useAppSelector(selectDuration),[nt,rt]=reactExports.useState(0),[ot,it]=reactExports.useState(0),[st,lt]=reactExports.useState(0),[ct,ft]=reactExports.useState(0),[dt,pt]=reactExports.useState({x:0,y:0}),[ht,gt]=reactExports.useState(!1),yt=React$5.useRef(null),vt=useTheme();reactExports.useEffect(()=>{pt({x:$.cue.startTime/tt*$.timelineWidth,y:0})},[$.cue.startTime,tt,$.timelineWidth]),reactExports.useEffect(()=>{rt(($.cue.endTime-$.cue.startTime)/tt*$.timelineWidth),it($.height),lt(0),ft(0)},[tt,$.cue.endTime,$.cue.startTime,$.height,$.timelineWidth]);const Et=(St,Pt)=>{St<0&&(St=0),Pt{let Mt=st,Rt=ct;const kt=Pt.height-ot,Nt=Pt.width-nt;At[0]==="n"?Rt-=kt:At[0]==="s"&&(Rt+=kt),At[At.length-1]==="w"?Mt-=Nt:At[At.length-1]==="e"&&(Mt+=Nt),rt(Pt.width),it(Pt.height),lt(Mt),ft(Rt)},Tt=(St,{handle:Pt})=>{const Mt=nt/$.timelineWidth*tt,Rt=$.cue.endTime-$.cue.startTime-Mt;let kt=$.cue.startTime,Nt=$.cue.endTime;Pt==="w"&&(kt=$.cue.startTime+Rt),Pt==="e"&&(Nt=$.cue.endTime+Rt),Et(kt,Nt),rt(($.cue.endTime-$.cue.startTime)/tt*$.timelineWidth),it($.height),lt(0),ft(0)},xt=St=>{gt(!0)},$t=(St,Pt)=>{const{x:At}=Pt;Et(At/$.timelineWidth*tt,At/$.timelineWidth*tt+($.cue.endTime-$.cue.startTime)),gt(!1)},wt=()=>{_e(setCurrentlyAt($.cue.startTime)),_e(setFocusSegmentTriggered(!0)),_e(setFocusSegmentId($.cue.idInternal)),_e(setFocusSegmentTriggered2(!0))},mt=css({position:"absolute",width:nt,height:ot,margin:`${ct}px 0px 0px ${st}px`,background:`${vt.subtitle_segment_bg}`,border:`${vt.subtitle_segment_border}`,borderRadius:"5px",boxSizing:"border-box",zIndex:1,cursor:ht?"grabbing":"grab",display:"flex",alignItems:"center"},"",""),Ct=css({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",padding:"8px",color:`${vt.subtitle_segment_text}`},"","");return jsx$1(Draggable$1,{onStart:xt,onStop:$t,defaultPosition:{x:10,y:10},position:dt,axis:"x",bounds:"parent",nodeRef:yt,cancel:".react-resizable-handle",children:jsx$1(Resizable,{height:ot,width:nt,onResize:Ot,onResizeStop:Tt,resizeHandles:["w"],children:jsx$1("div",{css:mt,ref:yt,onClick:wt,id:"no-scrolling",children:jsx$1("span",{css:Ct,children:$.cue.text})})})})});function _extends(){return _extends=Object.assign?Object.assign.bind():function($){for(var _e=1;_e=0)&&(et[nt]=$[nt]);return et}function ErrorMessage($){var _e=$.showError,et=$.meta,tt=$.formHelperTextProps,nt=$.helperText;return _e?React$5.createElement(FormHelperText$1,_extends({},tt),et.error||et.submitError):nt?React$5.createElement(FormHelperText$1,_extends({},tt),nt):React$5.createElement(React$5.Fragment,null)}var config={subscription:{error:!0,submitError:!0,dirtySinceLastSubmit:!0,touched:!0,modified:!0}},useFieldForErrors=function $(_e){return useField(_e,config)},showErrorOnChange=function $(_e){var et=_e.meta,tt=et.submitError,nt=et.dirtySinceLastSubmit,rt=et.error,ot=et.touched,it=et.modified;return!!((tt&&!nt||rt)&&(ot||it))},_excluded$4=["name","label","data","children","required","multiple","helperText","fieldProps","inputLabelProps","formControlProps","formHelperTextProps","menuItemProps","showError"],_excluded2$4=["name","value","onChange"];function Select($){var _e=$.name,et=$.label,tt=$.data,nt=$.children,rt=$.required,ot=$.multiple,it=$.helperText,st=$.fieldProps,lt=$.inputLabelProps,ct=$.formControlProps,ft=$.formHelperTextProps,dt=$.menuItemProps,pt=$.showError,ht=pt===void 0?showErrorOnChange:pt,gt=_objectWithoutPropertiesLoose($,_excluded$4);if(!tt&&!nt)throw new Error("Please specify either children or data as an attribute.");var yt=gt.variant,vt=useFieldForErrors(_e),Et=ht(vt);return React$5.createElement(Field,_extends({name:_e,render:function(Tt){var xt=Tt.input,$t=xt.name,wt=xt.value,mt=xt.onChange,Ct=_objectWithoutPropertiesLoose(xt,_excluded2$4),St=ot&&!wt?[]:wt,Pt="select-input-"+$t;return React$5.createElement(FormControl$1,_extends({required:rt,error:Et,fullWidth:!0,variant:yt},ct),!!et&&React$5.createElement(InputLabel$1,_extends({id:Pt},lt),et),React$5.createElement(Select$1$1,_extends({name:$t,value:St,onChange:mt,multiple:ot,label:et,labelId:Pt,inputProps:_extends({required:rt},Ct)},gt),tt?tt.map(function(At){return React$5.createElement(MenuItem$1,_extends({value:At.value,key:At.value,disabled:At.disabled},dt),At.label)}):nt),React$5.createElement(ErrorMessage,{showError:Et,meta:vt.meta,formHelperTextProps:ft,helperText:it}))}},st))}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let $=0;$<256;++$)byteToHex.push(($+256).toString(16).slice(1));function unsafeStringify($,_e=0){return byteToHex[$[_e+0]]+byteToHex[$[_e+1]]+byteToHex[$[_e+2]]+byteToHex[$[_e+3]]+"-"+byteToHex[$[_e+4]]+byteToHex[$[_e+5]]+"-"+byteToHex[$[_e+6]]+byteToHex[$[_e+7]]+"-"+byteToHex[$[_e+8]]+byteToHex[$[_e+9]]+"-"+byteToHex[$[_e+10]]+byteToHex[$[_e+11]]+byteToHex[$[_e+12]]+byteToHex[$[_e+13]]+byteToHex[$[_e+14]]+byteToHex[$[_e+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4($,_e,et){if(native.randomUUID&&!_e&&!$)return native.randomUUID();$=$||{};const tt=$.random||($.rng||rng)();if(tt[6]=tt[6]&15|64,tt[8]=tt[8]&63|128,_e){et=et||0;for(let nt=0;nt<16;++nt)_e[et+nt]=tt[nt];return _e}return unsafeStringify(tt)}const SubtitleSelect=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectSubtitlesFromOpencast),et=useAppSelector(selectSubtitles),[tt,nt]=reactExports.useState([]),[rt,ot]=reactExports.useState([]);reactExports.useEffect(()=>{const ct={...settings.subtitles.languages};let ft=_e.filter(yt=>!et[yt.id]).map(yt=>({id:yt.id,tags:yt.tags}));ft=Object.entries(et).map(yt=>({id:yt[0],tags:yt[1].tags})).concat(ft);const dt=_e.reduce((yt,vt)=>{const Et=vt.tags.find(Ot=>Ot.startsWith("lang:"));return Et&&yt.push({id:vt.id,lang:Et.split(":")[1].trim()}),yt},[]),pt=Object.entries(et).reduce((yt,vt)=>{const Et=vt[1].tags.find(Ot=>Ot.startsWith("lang:"));return Et&&yt.push({id:vt[0],lang:Et.split(":")[1].trim()}),yt},[]),ht=dt.concat(pt),gt=Object.entries(ct).reduce((yt,vt)=>(ht.find(Et=>Et.lang===vt[1].lang)?delete ct[vt[0]]:yt.push(it(vt[1])),yt),[]).map(yt=>({id:v4(),tags:yt}));nt(ft),ot(gt)},[_e,et,$]);const it=ct=>Object.entries(ct).map(ft=>`${ft[0]}: ${ft[1]}`).concat(),st=css({display:"flex",flexDirection:"row",justifyContent:"center",flexWrap:"wrap",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:st,children:[(()=>{const ct=[];if(settings.subtitles.languages===void 0)return ct;for(const ft of tt){let dt=ft.tags.find(ht=>ht.startsWith("lang:"));dt=dt?dt.split(":")[1].trim():void 0;const pt=dt?((settings.subtitles||{}).icons||{})[dt]:void 0;ct.push(jsx$1(SubtitleSelectButton,{id:ft.id,title:generateButtonTitle(ft.tags,$),icon:pt},ft.id))}return ct.sort((ft,dt)=>ft.props.title.localeCompare(dt.props.title))})(),jsx$1(SubtitleAddButton,{subtitlesForDropdown:rt})]})};var _ref$e={name:"1k5vjoe",styles:"overflow:hidden;text-overflow:ellipsis;min-width:0"};const SubtitleSelectButton=({id:$,title:_e,icon:et})=>{const{t:tt}=useTranslation(),nt=useTheme(),rt=useAppDispatch(),ot=css({fontSize:"2.5em",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",background:`${nt.background_finish_menu_icon}`,color:`${nt.text}`,borderRadius:"50%",width:"90px",height:"90px"},"",""),it=_ref$e;return jsx$1(ThemedTooltip,{title:tt("subtitles.selectSubtitleButton-tooltip",{title:_e}),children:jsxs("div",{css:[basicButtonStyle(nt),tileButtonStyle(nt),"",""],role:"button",tabIndex:0,"aria-label":tt("subtitles.selectSubtitleButton-tooltip-aria",{title:_e}),onClick:()=>{rt(setIsDisplayEditView(!0)),rt(setSelectedSubtitleId($))},onKeyDown:st=>{(st.key===" "||st.key==="Enter")&&(rt(setIsDisplayEditView(!0)),rt(setSelectedSubtitleId($)))},children:[et&&jsx$1("div",{css:ot,children:et}),jsx$1("div",{css:it,children:_e??tt("subtitles.generic")+" "+$})]})})},SubtitleAddButton=({subtitlesForDropdown:$})=>{const{t:_e}=useTranslation(),et=useTheme(),tt=useAppDispatch(),[nt,rt]=reactExports.useState(!0),ot=()=>{const ft=[];for(const dt of $){const pt=generateButtonTitle(dt.tags,_e);ft.push({label:pt??_e("subtitles.generic")+" "+dt.id,value:dt.id})}return ft.sort((dt,pt)=>dt.label.localeCompare(pt.label)),ft},it=ft=>{const dt=ft.selectedSubtitle,pt=$.find(gt=>gt.id===dt),ht=pt?pt.tags:[];tt(setSubtitle({identifier:dt,subtitles:{cues:[],tags:ht}})),rt(!0),tt(setIsDisplayEditView(!0)),tt(setSelectedSubtitleId(dt))},st=css({display:nt?"flex":"none"},"",""),lt=css({display:nt?"none":"flex",flexDirection:"column",...flexGapReplacementStyle(30,!1),width:"80%",padding:"20px"},"",""),ct=css({padding:"10px 5px",width:"100%",boxShadow:"",border:`1px solid ${et.text}`,backgroundColor:`${et.background}`,color:`${et.text}`,"&[disabled]":{opacity:"0.6",cursor:"not-allowed"}},"","");return jsx$1(ThemedTooltip,{title:nt?_e("subtitles.createSubtitleButton-tooltip"):"",children:jsxs("div",{css:[basicButtonStyle(et),tileButtonStyle(et),!nt&&disableButtonAnimation,"",""],role:"button",tabIndex:0,"aria-label":_e(nt?"subtitles.createSubtitleButton-tooltip":"subtitles.createSubtitleButton-clicked-tooltip-aria"),onClick:()=>rt(!1),onKeyDown:ft=>{(ft.key===" "||ft.key==="Enter")&&rt(!1)},children:[jsx$1(LuPlus,{css:[st,"font-size:42px;",""]}),jsx$1(ReactFinalForm,{onSubmit:it,subscription:{submitting:!0,pristine:!0},render:({handleSubmit:ft,submitting:dt,pristine:pt})=>jsxs("form",{onSubmit:ht=>{ft(ht)},css:lt,children:[jsx$1(ThemeProvider,{theme:subtitleSelectStyle(et),children:jsx$1(Select,{css:css({backgroundColor:`${et.background}`},"",""),label:_e("subtitles.createSubtitleDropdown-label")??void 0,name:"selectedSubtitle",data:ot()})}),jsx$1(ThemedTooltip,{title:_e(dt||pt?"subtitles.createSubtitleButton-createButton-disabled-tooltip":"subtitles.createSubtitleButton-createButton-tooltip"),children:jsx$1("span",{children:jsx$1("button",{css:[basicButtonStyle(et),ct,"",""],type:"submit","aria-label":_e("subtitles.createSubtitleButton-createButton-tooltip"),disabled:dt||pt,children:_e("subtitles.createSubtitleButton-createButton")})})})]})})]})})};function generateButtonTitle($,_e){let et=$.find(lt=>lt.startsWith("lang:"));et=et?et.split(":")[1].trim():void 0,et=languageCodeToName(et==null?void 0:et.trim())??et;let tt="";const nt=$.find(lt=>lt.startsWith("type:"));(nt?nt.split(":")[1].trim()==="closed-caption":void 0)&&(tt="[CC]");let ot="";const it=$.find(lt=>lt.startsWith("generator-type:"));return(it?it.split(":")[1].trim()==="auto":void 0)&&(ot="("+_e("subtitles.autoGenerated")+")"),tt+" "+et+" "+ot}var _ref$d={name:"fxdlmq",styles:"display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%"},_ref2$8={name:"y63ki6",styles:"display:flex;flex-direction:column;padding-right:20px;padding-left:20px;gap:20px;height:100%"};const SubtitleEditor=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),[et,tt]=reactExports.useState(void 0),nt=useAppSelector(selectSelectedSubtitleById),rt=useAppSelector(selectSelectedSubtitleId),ot=useAppSelector(pt=>selectSubtitlesFromOpencastById(pt,rt)),it=useTheme();reactExports.useEffect(()=>{if((nt==null?void 0:nt.cues)===void 0&&ot!==void 0&&ot.subtitle!==void 0&&rt)try{_e(setSubtitle({identifier:rt,subtitles:{cues:parseSubtitle(ot.subtitle),tags:ot.tags}}))}catch(pt){pt instanceof Error?tt(pt.message):tt(String(pt))}else(nt==null?void 0:nt.cues)===void 0&&ot===void 0&&rt&&_e(setSubtitle({identifier:rt,subtitles:{cues:[],tags:[]}}))},[_e,ot,nt,rt]);const st=()=>nt?generateButtonTitle(nt.tags,$):$("subtitles.editTitle-loading"),lt=_ref2$8,ct=_ref$d,ft=css({display:"flex",flexDirection:"row",flexGrow:1,justifyContent:"space-between",alignItems:"top",width:"100%",paddingTop:"10px",paddingBottom:"10px",...flexGapReplacementStyle(30,!0),borderBottom:`${it.menuBorder}`},"","");return jsx$1("div",{css:lt,children:et!==void 0?jsx$1("span",{children:"Subtitle Parsing Error(s): "+et}):jsxs(Fragment,{children:[jsxs("div",{css:ct,children:[jsx$1(BackButton,{}),jsx$1("div",{css:[titleStyle(it),titleStyleBold(it),"",""],children:$("subtitles.editTitle",{title:st()})}),jsx$1(DownloadButton,{})]}),jsxs("div",{css:ft,children:[jsx$1(SubtitleListEditor,{}),jsx$1(SubtitleVideoArea,{})]}),jsx$1(SubtitleTimeline,{})]})})};var _ref3$4={name:"11g4mt0",styles:"font-size:16px"};const DownloadButton=()=>{const $=useAppSelector(selectSelectedSubtitleById),_e=()=>{const rt=new Blob([serializeSubtitle($.cues)],{type:"text/vtt"}),ot=window.URL.createObjectURL(rt),it=document.createElement("a");it.setAttribute("href",ot);const st=generateButtonTitle($.tags,et).trimEnd();it.setAttribute("download",`${st}.vtt`),it.click()},{t:et}=useTranslation(),tt=useTheme(),nt=css({fontSize:"16px",height:"10px",padding:"16px",justifyContent:"space-around",boxShadow:`${tt.boxShadow}`,background:`${tt.element_bg}`},"","");return jsx$1(ThemedTooltip,{title:et("subtitles.downloadButton-tooltip"),children:jsxs("div",{css:[basicButtonStyle(tt),nt,"",""],role:"button",onClick:()=>_e(),children:[jsx$1(LuDownload,{css:_ref3$4}),jsx$1("span",{children:et("subtitles.downloadButton-title")})]})})};var _ref4$3={name:"1qg6oif",styles:"font-size:24px"};const BackButton=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=useAppDispatch(),tt=css({height:"10px",padding:"16px",boxShadow:`${_e.boxShadow}`,background:`${_e.element_bg}`,justifyContent:"space-around"},"","");return jsx$1(ThemedTooltip,{title:$("subtitles.backButton-tooltip"),children:jsxs("div",{css:[basicButtonStyle(_e),tt,"",""],role:"button",tabIndex:0,"aria-label":$("subtitles.backButton-tooltip"),onClick:()=>et(setIsDisplayEditView(!1)),onKeyDown:nt=>{(nt.key===" "||nt.key==="Enter")&&et(setIsDisplayEditView(!1))},children:[jsx$1(LuChevronLeft,{css:_ref4$3}),jsx$1("span",{children:$("subtitles.backButton")})]})})},Subtitle=()=>{const $=useAppSelector(selectIsDisplayEditView);return jsx$1(Fragment,{children:$?jsx$1(SubtitleEditor,{}):jsx$1(SubtitleSelect,{})})},FinishMenu=()=>{const $=css({display:"flex",flexDirection:"row",justifyContent:"center",flexWrap:"wrap",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:$,children:[jsx$1(FinishMenuButton,{Icon:LuSave,stateName:"Save changes"}),jsx$1(FinishMenuButton,{Icon:LuDatabase,stateName:"Start processing"}),jsx$1(FinishMenuButton,{Icon:LuXCircle,stateName:"Discard changes"})]})};var _ref$c={name:"5sg0uh",styles:"padding:0px 20px"},_ref2$7={name:"g0m1w5",styles:"font-size:36px"};const FinishMenuButton=({Icon:$,stateName:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=useAppDispatch(),rt=()=>{nt(setState(_e)),nt(setPageNumber(1))};let ot;switch(_e){case"Save changes":ot=et("finishMenu.save-button");break;case"Start processing":ot=et("finishMenu.start-button");break;case"Discard changes":ot=et("finishMenu.discard-button");break;default:ot="Could not load String value";break}const it=css({display:"flex",justifyContent:"center",alignItems:"center",background:`${tt.background_finish_menu_icon}`,color:`${tt.text}`,borderRadius:"50%",width:"90px",height:"90px"},"",""),st=_ref$c;return jsxs("div",{css:[basicButtonStyle(tt),tileButtonStyle(tt),"",""],role:"button",tabIndex:0,onClick:rt,onKeyDown:lt=>{(lt.key===" "||lt.key==="Enter")&&rt()},children:[jsx$1("div",{css:it,children:jsx$1($,{css:_ref2$7})}),jsx$1("div",{css:st,children:ot})]})};var _ref$b={name:"rhwgco",styles:"font-size:80px"},_ref2$6={name:"vavmm1",styles:"max-width:500px"};const Save=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectFinishState),et=useAppSelector(selectStatus$1),tt=useAppSelector(selectError$1),nt=useAppSelector(selectPostStatus),rt=useAppSelector(selectPostError),ot=useTheme(),it=useAppSelector(selectHasChanges$1),st=useAppSelector(selectHasChanges$2),lt=useAppSelector(selectHasChanges),ct=css({height:"100%",display:_e!=="Save changes"?"none":"flex",flexDirection:"column",alignItems:"center",...flexGapReplacementStyle(30,!1)},"",""),ft=()=>et==="success"&&nt==="success"&&!st&&!it&&!lt?jsxs(Fragment,{children:[jsx$1(LuCheckCircle,{css:_ref$b}),jsx$1("div",{children:$("save.success-text")}),jsx$1(CallbackButton,{})]}):jsxs(Fragment,{children:[jsx$1("span",{css:_ref2$6,children:$("save.info-text")}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:0,label:$("various.goBack-button"),Icon:LuChevronLeft}),jsx$1(SaveButton,{})]})]});return jsxs("div",{css:ct,children:[jsx$1("h1",{children:$("save.headline-text")}),ft(),jsxs("div",{css:errorBoxStyle(et==="failed",ot),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),tt?$("various.error-details-text",{errorMessage:tt}):$("various.error-text"),jsx$1("br",{})]}),jsxs("div",{css:errorBoxStyle(nt==="failed",ot),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),rt?$("various.error-details-text",{errorMessage:rt}):$("various.error-text"),jsx$1("br",{})]})]})},SaveButton=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useAppSelector(selectSegments),tt=useAppSelector(selectTracks),nt=useAppSelector(selectSubtitles),rt=useAppSelector(selectStatus$1),ot=useAppSelector(selectPostStatus),it=useTheme(),[st,lt]=reactExports.useState(!1);let ct=LuSave,ft=!1,dt=null;rt==="failed"||ot==="failed"?(ct=LuAlertCircle,ft=!1,dt=$("save.confirmButton-failed-tooltip")):rt==="success"&&ot==="success"?(ct=LuCheck,ft=!1,dt=$("save.confirmButton-success-tooltip")):(rt==="loading"||ot==="loading")&&(ct=LuLoader,ft=!0,dt=$("save.confirmButton-attempting-tooltip"));const pt=()=>{if(rt==="success")return $("save.success-tooltip-aria")},ht=()=>{const yt=[];for(const vt in nt)yt.push({id:vt,subtitle:serializeSubtitle(nt[vt].cues),tags:nt[vt].tags});return yt},gt=()=>{lt(!0),_e(postMetadata())};return reactExports.useEffect(()=>{ot==="success"&&st&&(lt(!1),_e(postVideoInformation({segments:et,tracks:tt,subtitles:ht()})))},[ot]),reactExports.useEffect(()=>{rt==="success"&&ot==="success"&&(_e(setHasChanges$2(!1)),_e(setHasChanges$1(!1)),_e(setHasChanges(!1)))},[_e,ot,rt]),jsx$1(ThemedTooltip,{title:dt??(dt=""),children:jsxs("div",{css:[basicButtonStyle(it),navigationButtonStyle(it),"",""],role:"button",tabIndex:0,onClick:gt,onKeyDown:yt=>{(yt.key===" "||yt.key==="Enter")&>()},children:[jsx$1(ct,{css:ft?spinningStyle:void 0}),jsx$1("span",{children:$("save.confirm-button")}),jsx$1("div",{css:ariaLive,"aria-live":"polite","aria-atomic":"true",children:pt()})]})})},Discard=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectFinishState),et=css({display:_e!=="Discard changes"?"none":"flex",flexDirection:"column",alignItems:"center",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:et,children:[jsx$1("h1",{children:$("discard.headline-text")}),jsx$1("span",{children:$("discard.info-text")}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:0,label:$("various.goBack-button"),Icon:LuChevronLeft}),jsx$1(DiscardButton,{})]})]})},DiscardButton=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useTheme(),tt=()=>{_e(setEnd({hasEnded:!0,value:"discarded"}))};return jsxs("div",{css:[basicButtonStyle(et),navigationButtonStyle(et),"",""],role:"button",tabIndex:0,onClick:tt,onKeyDown:nt=>{(nt.key===" "||nt.key==="Enter")&&tt()},children:[jsx$1(LuXCircle,{}),jsx$1("span",{children:$("discard.confirm-button")})]})};var _ref$a={name:"rhwgco",styles:"font-size:80px"};const WorkflowConfiguration=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectStatus),et=useAppSelector(selectError),tt=useAppSelector(selectPostStatus),nt=useAppSelector(selectPostError),rt=useTheme(),ot=css({display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:ot,children:[jsx$1("h2",{children:$("workflowConfig.headline-text")}),jsx$1(LuMoreHorizontal,{css:_ref$a}),"Placeholder",jsx$1("div",{children:$("workflowConfig.satisfied-text")}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:1,label:$("various.goBack-button"),Icon:LuChevronLeft}),jsx$1(SaveAndProcessButton,{text:$("workflowConfig.confirm-button")})]}),jsxs("div",{css:errorBoxStyle(_e==="failed",rt),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),et?$("various.error-details-text",{errorMessage:et}):$("various.error-text"),jsx$1("br",{})]}),jsxs("div",{css:errorBoxStyle(tt==="failed",rt),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),nt?$("various.error-details-text",{errorMessage:nt}):$("various.error-text"),jsx$1("br",{})]})]})},SaveAndProcessButton=({text:$})=>{const _e=useAppDispatch(),et=useAppSelector(selectSelectedWorkflowId),tt=useAppSelector(selectSegments),nt=useAppSelector(selectTracks),rt=useAppSelector(selectSubtitles),ot=useAppSelector(selectStatus),it=useAppSelector(selectPostStatus),[st,lt]=reactExports.useState(!1),ct=useTheme();reactExports.useEffect(()=>{ot==="success"&&it==="success"&&(_e(setEnd({hasEnded:!0,value:"success"})),_e(setHasChanges$2(!1)),_e(setHasChanges$1(!1)),_e(setHasChanges(!1)))},[_e,it,ot]);const ft=()=>{const yt=[];for(const vt in rt)yt.push({id:vt,subtitle:serializeSubtitle(rt[vt].cues),tags:rt[vt].tags});return yt},dt=()=>{lt(!0),_e(postMetadata())};reactExports.useEffect(()=>{it==="success"&&st&&(lt(!1),_e(postVideoInformationWithWorkflow({segments:tt,tracks:nt,workflow:[{id:et}],subtitles:ft()})))},[it]);let pt=LuDatabase,ht=!1;ot==="failed"||it==="failed"?(pt=LuAlertCircle,ht=!1):ot==="success"&&it==="success"?(pt=LuCheck,ht=!1):(ot==="loading"||it==="loading")&&(pt=LuLoader,ht=!0);const gt=css({padding:"16px",boxShadow:`${ct.boxShadow}`,background:`${ct.element_bg}`},"","");return jsxs("div",{css:[basicButtonStyle(ct),gt,"",""],role:"button",tabIndex:0,onClick:dt,onKeyDown:yt=>{(yt.key===" "||yt.key==="Enter")&&dt()},children:[jsx$1(pt,{css:ht?spinningStyle:void 0}),jsx$1("span",{children:$})]})},WorkflowSelection=()=>{const{t:$}=useTranslation(),_e=useAppDispatch();let et=useAppSelector(selectWorkflows);et=[...et].sort((gt,yt)=>yt.displayOrder-gt.displayOrder);const tt=useAppSelector(selectFinishState),nt=useAppSelector(selectPageNumber),rt=useTheme(),ot=useAppSelector(selectStatus),it=useAppSelector(selectError),st=useAppSelector(selectStatus$1),lt=useAppSelector(selectError$1),ct=css({padding:"20px",display:tt==="Start processing"&&nt===1?"flex":"none",flexDirection:"column",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(30,!1)},"",""),ft=css({display:"flex",flexDirection:"column",alignItems:"left",...flexGapReplacementStyle(20,!1),flexWrap:"wrap",maxHeight:"50vh"},"","");reactExports.useEffect(()=>{et.length>=1&&_e(setSelectedWorkflowIndex(et[0].id))},[_e,et]);const dt=gt=>{_e(setSelectedWorkflowIndex(gt.target.value))},pt=(gt,yt,vt,Et,Ot,Tt)=>jsxs("div",{css:ct,children:[jsx$1("h2",{children:gt}),yt,vt&&jsx$1(RadioGroup$1,{css:ft,defaultValue:et[0].id,name:"Workflow Selection Area",onChange:dt,children:et.map((xt,$t)=>jsx$1(WorkflowButton,{stateName:xt.name,workflowId:xt.id,workflowDescription:xt.description},xt.id))}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:0,label:$("workflowSelection.back-button"),Icon:LuChevronLeft}),Et]}),jsxs("div",{css:errorBoxStyle(Ot==="failed",rt),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),Tt?$("various.error-details-text",{errorMessage:it}):$("various.error-text"),jsx$1("br",{})]})]});return et.length<=0?pt($("workflowSelection.saveAndProcess-text"),jsxs(Trans,{i18nKey:"workflowSelection.noWorkflows-text",children:["There are no workflows to process your changes with.",jsx$1("br",{}),"Please save your changes and contact an administrator."]}),!1,jsx$1(SaveButton,{}),st,lt):et.length===1?pt($("workflowSelection.saveAndProcess-text"),jsxs(Trans,{i18nKey:"workflowSelection.oneWorkflow-text",children:["The video will be cut and processed with the workflow ",{workflow:et[0].name},".",jsx$1("br",{}),"This will take some time."]}),!1,jsx$1(SaveAndProcessButton,{text:$("workflowSelection.startProcessing-button")}),ot,it):pt($("workflowSelection.selectWF-text"),jsx$1("div",{children:$("workflowSelection.manyWorkflows-text")}),!0,jsx$1(SaveAndProcessButton,{text:$("workflowSelection.startProcessing-button")}),ot,it)};var _ref$9={name:"1esfuip",styles:"width:100%;padding:5px 0px;font-size:larger"},_ref2$5={name:"rpvv6v",styles:"display:flex;flex-direction:column;max-width:500px;padding-top:2px"};const WorkflowButton=({stateName:$,workflowId:_e,workflowDescription:et})=>jsx$1(FormControlLabel$1,{value:_e,control:jsx$1(WorkflowSelectRadio,{}),label:jsxs("div",{css:_ref2$5,children:[jsx$1("div",{css:_ref$9,children:$}),jsx$1("div",{children:et})]})}),WorkflowSelectRadio=$=>{const _e=useTheme(),et=css({alignSelf:"start",color:`${_e.text}`,"&$checked":{color:`${_e.text}`}},"","");return jsx$1(Radio$1,{color:"default",css:et,...$})},Finish=()=>{const $=useAppSelector(selectPageNumber);return jsxs("div",{children:[jsx$1("div",{css:css({display:$!==0?"none":"block"},"",""),children:jsx$1(FinishMenu,{})}),jsxs("div",{css:css({display:$!==1?"none":"block"},"",""),children:[jsx$1(Save,{}),jsx$1(WorkflowSelection,{}),jsx$1(Discard,{})]}),jsx$1("div",{css:css({display:$!==2?"none":"block"},"",""),children:jsx$1(WorkflowConfiguration,{})})]})},PageButton=({pageNumber:$,label:_e,Icon:et})=>{const tt=useTheme(),nt=useAppDispatch(),rt=()=>{nt(setPageNumber($))},ot=css({minWidth:"100px",padding:"16px",justifyContent:"center",boxShadow:`${tt.boxShadow}`,background:`${tt.element_bg}`},"","");return jsxs("div",{css:[basicButtonStyle(tt),ot,"",""],role:"button",tabIndex:0,onClick:rt,onKeyDown:it=>{(it.key===" "||it.key==="Enter")&&rt()},children:[jsx$1(et,{}),jsx$1("span",{children:_e})]})},CallbackButton=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=()=>{window.open(settings.callbackUrl,"_self")};return jsx$1(Fragment,{children:settings.callbackUrl!==void 0&&jsxs("div",{css:[basicButtonStyle(_e),navigationButtonStyle(_e),"",""],role:"button",tabIndex:0,onClick:et,onKeyDown:tt=>{(tt.key===" "||tt.key==="Enter")&&et()},children:[jsx$1(LuDoorOpen,{}),jsx$1("span",{children:settings.callbackSystem?$("various.callback-button-system",{system:settings.callbackSystem}):$("various.callback-button-generic")})]})})},Group=({name:$,entries:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=css({display:"flex",flexDirection:"column",width:"460px",maxWidth:"50vw",background:`${tt.menu_background}`,borderRadius:"5px",boxShadow:`${tt.boxShadow_tiles}`,boxSizing:"border-box",padding:"0px 20px 20px 20px"},"",""),rt=css({color:`${tt.text}`},"","");return jsxs("div",{css:nt,children:[jsx$1("h3",{css:rt,children:et($)}),Object.entries(_e).map(([ot,it],st)=>jsx$1(Entry,{name:ot,sequences:it},st))]})};var _ref$8={name:"e3kmv8",styles:"align-self:center;font-size:20px;font-weight:bold"};const Entry=({name:$,sequences:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=css({display:"flex",flexFlow:"column nowrap",justifyContent:"left",width:"100%",padding:"10px 0px",...flexGapReplacementStyle(10,!0)},"",""),rt=css({fontWeight:"bold",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"break-word",color:`${tt.text}`},"",""),ot=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(10,!0)},"",""),it=css({borderRadius:"4px",borderWidth:"2px",borderStyle:"solid",borderColor:`${tt.singleKey_border}`,background:`${tt.singleKey_bg}`,boxShadow:`${tt.singleKey_boxShadow}`,padding:"10px",color:`${tt.text}`},"",""),st=_ref$8;return jsxs("div",{css:nt,children:[jsx$1("div",{css:rt,children:jsx$1(Trans,{children:$||et("keyboardControls.missingLabel")})}),_e.map((lt,ct,ft)=>jsxs("div",{css:ot,children:[lt.map((dt,pt)=>jsxs("div",{css:ot,children:[jsx$1("div",{css:it,children:dt}),lt.length-1!==pt&&jsx$1("div",{css:st,children:"+"})]},pt)),jsx$1("div",{css:st,children:jsx$1(Trans,{children:ft.length-1!==ct&&et("keyboardControls.sequenceSeparator")})})]},ct))]})},KeyboardControls=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=css({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",...flexGapReplacementStyle(30,!0)},"",""),tt=()=>{if(KEYMAP&&Object.keys(KEYMAP).length>0){const rt=[];return Object.entries(KEYMAP).forEach(([ot,it],st)=>{const lt={};Object.entries(it).forEach(([,ct])=>{const ft=ct.key.split(",").map(dt=>dt.trim());lt[ct.name]=Object.entries(ft).map(([,dt])=>dt.split("+").map(pt=>rewriteKeys(pt.trim())))}),rt.push(jsx$1(Group,{name:getGroupName(ot),entries:lt},st))}),jsx$1("div",{css:et,children:rt})}return jsx$1("div",{children:$("keyboardControls.genericError")})};return jsxs("div",{css:css({display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},"",""),children:[jsx$1("div",{css:[titleStyle(_e),titleStyleBold(_e),"",""],children:$("keyboardControls.header")}),tt()]})},l=$=>{const _e=typeof $=="function",et=reactExports.useRef($);reactExports.useEffect(()=>{et.current=$}),reactExports.useEffect(()=>{if(_e){const tt=nt=>{const rt=et.current(nt);if(typeof rt=="string")return nt.preventDefault(),nt.returnValue=rt;if(nt.defaultPrevented)return nt.returnValue=""};return window.addEventListener("beforeunload",tt),()=>{window.removeEventListener("beforeunload",tt)}}},[_e])};var _ref5$2={name:"45o8ii",styles:"display:flex;width:100%;flex-direction:column;align-items:center"},_ref6$1={name:"1sw39oc",styles:"display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center"};const Thumbnail=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useTheme(),tt=useAppSelector(selectOriginalThumbnails),nt=React$5.useRef([]),rt=React$5.useRef([]),ot=(dt,pt)=>{const ht=nt.current[pt].captureVideo();_e(setThumbnail({id:dt.id,uri:ht})),_e(setHasChanges$2(!0))},it=dt=>{const pt=rt.current[dt];pt!==null&&pt.click()},st=(dt,pt)=>{const ht=dt.target.files&&dt.target.files[0];if(!ht||ht.type.split("/")[0]!=="image")return;const gt=new FileReader;gt.onload=yt=>{if(yt.target&&yt.target.result){const vt=yt.target.result.toString();_e(setThumbnail({id:pt.id,uri:vt})),_e(setHasChanges$2(!0))}},gt.readAsDataURL(ht)},lt=dt=>{var pt;_e(setThumbnail({id:dt,uri:(pt=tt.find(ht=>ht.id===dt))==null?void 0:pt.uri}))},ct=_ref6$1,ft=_ref5$2;return jsxs("div",{css:ct,children:[jsx$1("div",{css:[titleStyle(et),titleStyleBold(et),"",""],children:$("thumbnail.title")}),jsx$1(ThumbnailTable,{inputRefs:rt,generateRefs:nt,generate:ot,upload:it,uploadCallback:st,discard:lt}),jsxs("div",{css:ft,children:[jsx$1(VideoPlayers,{refs:nt,widthInPercent:100,maxHeightInPixel:420}),jsxs("div",{css:videosStyle(et),children:[jsx$1(Timeline,{timelineHeight:125,styleByActiveSegment:!1,selectIsPlaying:selectIsPlaying$1,selectCurrentlyAt:selectCurrentlyAt$1,setIsPlaying:setIsPlaying$1,setCurrentlyAt:setCurrentlyAt$1,setClickTriggered:setClickTriggered$1}),jsx$1(VideoControls,{selectCurrentlyAt:selectCurrentlyAt$1,selectIsPlaying:selectIsPlaying$1,selectIsMuted,selectVolume,selectIsPlayPreview:selectIsPlayPreview$1,setIsPlaying:setIsPlaying$1,setIsMuted,setVolume,setIsPlayPreview:setIsPlayPreview$1})]})]})]})},ThumbnailTable=({inputRefs:$,generateRefs:_e,generate:et,upload:tt,uploadCallback:nt,discard:rt})=>{const ot=useAppSelector(selectVideos),it=css({display:"flex",width:"100%",flexDirection:"row",justifyContent:"center",...flexGapReplacementStyle(10,!1),paddingBottom:"20px"},"","");return jsx$1(Fragment,{children:(()=>{const lt=ot.find(ct=>ct.thumbnailPriority===0);return settings.thumbnail.simpleMode&<!==void 0?jsx$1("div",{css:it,children:jsx$1(ThumbnailTableSingleRow,{track:lt,index:ot.indexOf(lt),inputRefs:$,generate:et,upload:tt,uploadCallback:nt,discard:rt})}):jsxs(Fragment,{children:[ot.length>1&&jsx$1(AffectAllRow,{tracks:ot,generate:et}),jsx$1("div",{css:it,children:ot.map((ct,ft)=>jsx$1(ThumbnailTableRow,{track:ct,index:ft,inputRefs:$,generateRef:_e.current[ft],generate:et,upload:tt,uploadCallback:nt,discard:rt},ft))})]})})()})},ThumbnailTableRow=({track:$,index:_e,inputRefs:et,generateRef:tt,generate:nt,upload:rt,uploadCallback:ot,discard:it})=>{const{t:st}=useTranslation(),lt=useTheme(),ct=tt?tt.getWidth()+40:void 0,ft=dt=>isNaN(dt)?"":dt===0?" - "+st("thumbnail.primary"):dt===1?" - "+st("thumbnail.secondary"):dt<0?"":" - "+dt;return jsxs("div",{css:[backgroundBoxStyle(lt),thumbnailTableRowStyle(ct),"",""],children:[jsx$1("div",{css:thumbnailTableRowTitleStyle,children:$.flavor.type+ft($.thumbnailPriority)}),jsxs("div",{css:thumbnailTableRowRowStyle,children:[jsx$1(ThumbnailDisplayer,{track:$}),jsx$1(ThumbnailButtons,{track:$,index:_e,inputRefs:et,generate:nt,upload:rt,uploadCallback:ot,discard:it})]},_e)]},_e)};var _ref3$3={name:"0",styles:""},_ref4$2={name:"zxzqpl",styles:"width:100%;max-width:457px;aspect-ratio:16/9"};const ThumbnailDisplayer=({track:$})=>{const{t:_e}=useTranslation(),et=useTheme(),tt=_ref4$2,nt=_ref3$3,rt=css({width:"100vw",backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center",color:`${et.text}`},"","");return jsx$1(Fragment,{children:$.thumbnailUri!==null&&$.thumbnailUri!==void 0?jsx$1("img",{src:$.thumbnailUri,alt:_e("thumbnail.previewImageAlt")+": "+$.flavor.type,css:[tt,nt,"",""]}):jsx$1("div",{css:[tt,rt,"",""],children:jsx$1("span",{children:_e("thumbnail.noThumbnailAvailable")})})})};var _ref2$4={name:"12srrhn",styles:"border-top:1px solid #DDD;;width:100%"};const ThumbnailButtons=({track:$,index:_e,inputRefs:et,generate:tt,upload:nt,uploadCallback:rt,discard:ot})=>{const{t:it}=useTranslation(),st=useAppDispatch(),lt=useAppSelector(selectTracks),ct=dt=>{if(dt===void 0)return;const pt=[];for(const ht of lt)pt.push({id:ht.id,uri:dt});st(setThumbnails(pt)),st(setHasChanges$2(!0))},ft=_ref2$4;return jsxs("div",{css:thumbnailButtonsStyle,children:[jsx$1(ThumbnailButton,{handler:()=>{tt($,_e)},text:it("thumbnail.buttonGenerate"),tooltipText:it("thumbnail.buttonGenerate-tooltip"),ariaLabel:it("thumbnail.buttonGenerate-tooltip-aria"),Icon:LuCamera,active:!0}),jsx$1("div",{css:ft}),jsx$1(ThumbnailButton,{handler:()=>{nt(_e)},text:it("thumbnail.buttonUpload"),tooltipText:it("thumbnail.buttonUpload-tooltip"),ariaLabel:it("thumbnail.buttonUpload-tooltip-aria"),Icon:LuUpload,active:!0}),jsx$1("input",{style:{display:"none"},ref:dt=>{et.current[_e]=dt},type:"file",accept:"image/*",onChange:dt=>rt(dt,$),"aria-hidden":"true"}),jsx$1("div",{css:ft}),lt.length>1&&jsxs(Fragment,{children:[jsx$1(ThumbnailButton,{handler:()=>{ct($.thumbnailUri)},text:it("thumbnail.buttonUseForOtherThumbnails"),tooltipText:it("thumbnail.buttonUseForOtherThumbnails-tooltip"),ariaLabel:it("thumbnail.buttonUseForOtherThumbnails-tooltip-aria"),Icon:LuCopy,active:!!($.thumbnailUri&&$.thumbnailUri.startsWith("data"))}),jsx$1("div",{css:ft})]}),jsx$1(ThumbnailButton,{handler:()=>{ot($.id)},text:it("thumbnail.buttonDiscard"),tooltipText:it("thumbnail.buttonDiscard-tooltip"),ariaLabel:it("thumbnail.buttonDiscard-tooltip-aria"),Icon:LuXCircle,active:!!($.thumbnailUri&&$.thumbnailUri.startsWith("data"))})]})},ThumbnailButton=({handler:$,text:_e,tooltipText:et,ariaLabel:tt,Icon:nt,active:rt})=>{const ot=useTheme(),it=React$5.useRef(null),st=()=>{var ct;rt&&$(),(ct=it.current)==null||ct.blur()},lt=ct=>{rt&&(ct.key===" "||ct.key==="Enter")&&$()};return jsx$1(ThemedTooltip,{title:et,children:jsxs("div",{css:thumbnailButtonStyle(rt,ot),ref:it,role:"button",tabIndex:0,"aria-label":tt,onClick:st,onKeyDown:lt,children:[jsx$1(nt,{}),_e]})})};var _ref$7={name:"1axfq7n",styles:"display:flex;flex-direction:row;width:100%;height:50px;padding:20px;gap:20px;justify-content:center;align-items:center"};const AffectAllRow=({generate:$,tracks:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=()=>{for(let it=0;it<_e.length;it++)$(_e[it],it)},rt=_ref$7,ot=css({height:"100%",minWidth:"200px",boxShadow:`${tt.boxShadow}`,background:`${tt.element_bg}`},"","");return jsx$1("div",{css:rt,children:jsx$1(ThemedTooltip,{title:et("thumbnail.buttonGenerateAll-tooltip"),children:jsxs("div",{css:[basicButtonStyle(tt),ot,"",""],role:"button",tabIndex:0,"aria-label":et("thumbnail.buttonGenerateAll-tooltip-aria"),onClick:()=>{nt()},onKeyDown:it=>{(it.key===" "||it.key==="Enter")&&nt()},children:[jsx$1(LuCamera,{}),et("thumbnail.buttonGenerateAll")]})})})};var _ref7$1={name:"1d3w5wq",styles:"width:100%"};const ThumbnailTableSingleRow=({track:$,index:_e,inputRefs:et,generate:tt,upload:nt,uploadCallback:rt,discard:ot})=>{const{t:it}=useTranslation(),st=useTheme();return jsxs("div",{css:[backgroundBoxStyle(st),thumbnailTableRowStyle(500),"",""],children:[jsx$1("div",{css:thumbnailTableRowTitleStyle,children:it("thumbnailSimple.rowTitle")}),jsx$1("hr",{css:_ref7$1}),jsxs("div",{css:thumbnailTableRowRowStyle,children:[jsx$1(ThumbnailDisplayer,{track:$}),jsx$1(ThumbnailButtonsSimple,{track:$,index:_e,inputRefs:et,generate:tt,upload:nt,uploadCallback:rt,discard:ot})]},_e)]},_e)},ThumbnailButtonsSimple=({track:$,index:_e,generate:et,inputRefs:tt,upload:nt,uploadCallback:rt,discard:ot})=>{const{t:it}=useTranslation(),st=useAppSelector(selectTracks);return jsxs("div",{css:thumbnailButtonsStyle,children:[st.map((lt,ct)=>jsx$1(ThumbnailButton,{handler:()=>{et($,ct)},text:it("thumbnail.buttonGenerate")+" "+it("thumbnailSimple.from")+" "+lt.flavor.type,tooltipText:it("thumbnail.buttonGenerate-tooltip"),ariaLabel:it("thumbnail.buttonGenerate-tooltip-aria"),Icon:LuCamera,active:!0},ct)),jsx$1(ThumbnailButton,{handler:()=>{nt(_e)},text:it("thumbnail.buttonUpload"),tooltipText:it("thumbnail.buttonUpload-tooltip"),ariaLabel:it("thumbnail.buttonUpload-tooltip-aria"),Icon:LuUpload,active:!0}),jsx$1("input",{style:{display:"none"},ref:lt=>{tt.current[_e]=lt},type:"file",accept:"image/*",onChange:lt=>rt(lt,$),"aria-hidden":"true"}),jsx$1(ThumbnailButton,{handler:()=>{ot($.id)},text:it("thumbnail.buttonDiscard"),tooltipText:it("thumbnail.buttonDiscard-tooltip"),ariaLabel:it("thumbnail.buttonDiscard-tooltip-aria"),Icon:LuXCircle,active:!!($.thumbnailUri&&$.thumbnailUri.startsWith("data"))})]})},thumbnailTableRowStyle=$=>css({display:"flex",flexDirection:"column",width:"100%",maxWidth:`${$}px`},"",""),thumbnailTableRowTitleStyle={name:"rqugg4",styles:"text-align:left;font-size:larger;font-weight:bold;&:first-letter{text-transform:capitalize;}"},thumbnailTableRowRowStyle=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(20,!0),justifyContent:"space-around",flexWrap:"wrap"},"",""),thumbnailButtonsStyle={name:"xtio98",styles:"@media (max-width: 1550px){width:100%;}display:flex;flex-direction:column"},thumbnailButtonStyle=($,_e)=>[$?basicButtonStyle(_e):deactivatedButtonStyle,{width:"100%",height:"100%",background:`${_e.element_bg}`,justifySelf:"center",alignSelf:"center",padding:"0px 4px"}];var _ref$6={name:"1grdz10",styles:"border-left:2px solid #DDD;;height:32px"};const CuttingActions=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=(rt,ot)=>{var it;_e(rt()),ot&&((it=ot.current)==null||it.blur())};useHotkeys(KEYMAP.cutting.cut.key,()=>et(cut),{preventDefault:!0},[cut]),useHotkeys(KEYMAP.cutting.delete.key,()=>et(markAsDeletedOrAlive),{preventDefault:!0},[markAsDeletedOrAlive]),useHotkeys(KEYMAP.cutting.mergeLeft.key,()=>et(mergeLeft),{preventDefault:!0},[mergeLeft]),useHotkeys(KEYMAP.cutting.mergeRight.key,()=>et(mergeRight),{preventDefault:!0},[mergeRight]);const tt=css({display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},"",""),nt=_ref$6;return jsxs("div",{css:tt,children:[jsx$1(CuttingActionsButton,{Icon:LuScissors,actionName:$("cuttingActions.cut-button"),actionHandler:et,action:cut,tooltip:$("cuttingActions.cut-tooltip",{hotkeyName:rewriteKeys(KEYMAP.cutting.cut.key)}),ariaLabelText:$("cuttingActions.cut-tooltip-aria",{hotkeyName:rewriteKeys(KEYMAP.cutting.cut.key)})}),jsx$1("div",{css:nt}),jsx$1(MarkAsDeletedButton,{actionHandler:et,action:markAsDeletedOrAlive,hotKeyName:rewriteKeys(KEYMAP.cutting.delete.key)}),jsx$1("div",{css:nt}),jsx$1(CuttingActionsButton,{Icon:LuChevronLeft,actionName:$("cuttingActions.mergeLeft-button"),actionHandler:et,action:mergeLeft,tooltip:$("cuttingActions.mergeLeft-tooltip",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeLeft.key)}),ariaLabelText:$("cuttingActions.mergeLeft-tooltip-aria",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeLeft.key)})}),jsx$1("div",{css:nt}),jsx$1(CuttingActionsButton,{Icon:LuChevronRight,actionName:$("cuttingActions.mergeRight-button"),actionHandler:et,action:mergeRight,tooltip:$("cuttingActions.mergeRight-tooltip",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeRight.key)}),ariaLabelText:$("cuttingActions.mergeRight-tooltip-aria",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeRight.key)})}),jsx$1("div",{css:nt}),jsx$1(CuttingActionsButton,{Icon:LuMoveHorizontal,actionName:$("cuttingActions.merge-all-button"),actionHandler:et,action:mergeAll,tooltip:$("cuttingActions.merge-all-tooltip"),ariaLabelText:$("cuttingActions.merge-all-tooltip-aria")})]})},cuttingActionButtonStyle={name:"10rtstj",styles:"padding:16px"},CuttingActionsButton=({Icon:$,actionName:_e,actionHandler:et,action:tt,tooltip:nt,ariaLabelText:rt})=>{const ot=React$5.useRef(null),it=useTheme();return jsx$1(ThemedTooltip,{title:nt,children:jsxs("div",{css:[basicButtonStyle(it),cuttingActionButtonStyle,"",""],ref:ot,role:"button",tabIndex:0,"aria-label":rt,onClick:()=>et(tt,ot),onKeyDown:st=>{(st.key===" "||st.key==="Enter")&&et(tt)},children:[jsx$1($,{}),jsx$1("span",{children:_e})]})})},MarkAsDeletedButton=({actionHandler:$,action:_e,hotKeyName:et})=>{const{t:tt}=useTranslation(),nt=useAppSelector(selectIsCurrentSegmentAlive),rt=React$5.useRef(null),ot=useTheme();return jsx$1(ThemedTooltip,{title:tt("cuttingActions.delete-restore-tooltip",{hotkeyName:et}),children:jsxs("div",{css:[basicButtonStyle(ot),cuttingActionButtonStyle,"",""],ref:rt,role:"button",tabIndex:0,"aria-label":tt("cuttingActions.delete-restore-tooltip-aria",{hotkeyName:et}),onClick:()=>$(_e,rt),onKeyDown:it=>{(it.key===" "||it.key==="Enter")&&$(_e)},children:[nt?jsx$1(LuTrash,{}):jsx$1(SvgTrashRestore,{css:customIconStyle}),jsx$1("div",{children:tt(nt?"cuttingActions.delete-button":"cuttingActions.restore-button")})]})})};var _ref$5={name:"1o568l3",styles:"display:flex;width:auto;flex-direction:column;justify-content:center;align-items:center"};const Cutting=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useAppSelector(st=>st.videoState.status),tt=useAppSelector(st=>st.videoState.error),nt=useAppSelector(selectDuration),rt=useTheme(),ot=useAppSelector(st=>st.videoState.errorReason);return reactExports.useEffect(()=>{et==="idle"?_e(fetchVideoInformation()):et==="failed"?_e(setError(ot==="workflowActive"?{error:!0,errorTitle:$("error.workflowActive-errorTitle"),errorMessage:$("error.workflowActive-errorMessage"),errorIcon:LuMoreHorizontal}:{error:!0,errorMessage:$("video.comError-text"),errorDetails:tt})):et==="success"&&nt===null&&_e(setError({error:!0,errorMessage:$("video.durationError-text"),errorDetails:tt}))},[et,_e,tt,$,ot,nt]),jsxs("div",{css:_ref$5,children:[jsx$1(CuttingHeader,{}),jsx$1(VideoPlayers,{refs:void 0}),jsxs("div",{css:videosStyle(rt),children:[jsx$1(Timeline,{timelineHeight:260,selectIsPlaying:selectIsPlaying$1,selectCurrentlyAt:selectCurrentlyAt$1,setIsPlaying:setIsPlaying$1,setCurrentlyAt:setCurrentlyAt$1,setClickTriggered:setClickTriggered$1}),jsx$1(CuttingActions,{}),jsx$1(VideoControls,{selectCurrentlyAt:selectCurrentlyAt$1,selectIsPlaying:selectIsPlaying$1,selectIsMuted,selectVolume,selectIsPlayPreview:selectIsPlayPreview$1,setIsPlaying:setIsPlaying$1,setIsMuted,setVolume,setIsPlayPreview:setIsPlayPreview$1})]})]})},CuttingHeader=()=>{const $=useAppSelector(selectTitle),_e=useAppSelector(selectTitleFromEpisodeDc),et=useTheme();return jsx$1("div",{css:[titleStyle(et),titleStyleBold(et),"",""],children:_e||$})};var _ref2$3={name:"qdeacm",styles:"flex-direction:column"},_ref3$2={name:"d7emys",styles:"flex-direction:column;justify-content:space-around"},_ref4$1={name:"n35wdo",styles:"flex-direction:column;align-content:space-around"},_ref5$1={name:"d7emys",styles:"flex-direction:column;justify-content:space-around"},_ref6={name:"n35wdo",styles:"flex-direction:column;align-content:space-around"},_ref7={name:"0",styles:""},_ref8={name:"qdeacm",styles:"flex-direction:column"};const MainContent=()=>{const $=useAppSelector(selectMainMenuState),_e=useAppSelector(selectHasChanges$2),et=useAppSelector(selectHasChanges$1),tt=useAppSelector(selectHasChanges),nt=useTheme();l(ht=>{(_e||et||tt)&&ht.preventDefault()});const rt=css({display:"flex",width:"100%",paddingRight:"20px",paddingLeft:"20px",...flexGapReplacementStyle(20,!1),background:`${nt.background}`,overflow:"auto"},"",""),ot=_ref8,it=_ref7,st=_ref6,lt=_ref5$1,ct=_ref4$1,ft=_ref3$2,dt=_ref2$3;return jsx$1(Fragment,{children:(()=>{if($===MainMenuStateNames.cutting)return jsx$1("div",{css:[rt,ot,"",""],role:"main",children:jsx$1(Cutting,{})});if($===MainMenuStateNames.metadata)return jsx$1("div",{css:[rt,it,"",""],role:"main",children:jsx$1(Metadata,{})});if($===MainMenuStateNames.trackSelection)return jsx$1("div",{css:[rt,st,"",""],role:"main",children:jsx$1(TrackSelection,{})});if($===MainMenuStateNames.subtitles)return jsx$1("div",{css:[rt,lt,"",""],role:"main",children:jsx$1(Subtitle,{})});if($===MainMenuStateNames.thumbnail)return jsx$1("div",{css:[rt,ct,"",""],role:"main",children:jsx$1(Thumbnail,{})});if($===MainMenuStateNames.finish)return jsx$1("div",{css:[rt,ft,"",""],role:"main",children:jsx$1(Finish,{})});if($===MainMenuStateNames.keyboardControls)return jsx$1("div",{css:[rt,dt,"",""],role:"main",children:jsx$1(KeyboardControls,{})})})()})};var _ref$4={name:"rhwgco",styles:"font-size:80px"},_ref2$2={name:"rhwgco",styles:"font-size:80px"};const TheEnd=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectEndState),et=()=>{if(_e==="discarded")return $("theEnd.discarded-text");if(_e==="success")return $("theEnd.info-text")},tt=css({width:"100%",height:"calc(100% - 64px)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(20,!1)},"",""),nt=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(20,!1)},"","");return jsxs("div",{css:tt,children:[_e==="discarded"?jsx$1(LuXCircle,{css:_ref$4}):jsx$1(LuCheckCircle,{css:_ref2$2}),jsx$1("div",{children:et()}),jsxs("div",{css:nt,children:[jsx$1(CallbackButton,{}),_e==="discarded"&&jsx$1(StartOverButton,{})]})]})},StartOverButton=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=()=>{window.location.reload()};return jsx$1(ThemedTooltip,{title:$("theEnd.startOver-tooltip"),children:jsx$1("div",{css:[basicButtonStyle(_e),navigationButtonStyle(_e),"",""],role:"button",tabIndex:0,onClick:et,onKeyDown:tt=>{(tt.key===" "||tt.key==="Enter")&&et()},children:jsx$1("span",{children:$("theEnd.startOver-button")})})})};var _ref$3={name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"},_ref2$1={name:"rhwgco",styles:"font-size:80px"},_ref3$1={name:"rhwgco",styles:"font-size:80px"};const Error$1=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectErrorTitle),et=useAppSelector(selectErrorMessage),tt=useAppSelector(selectErrorDetails),nt=useAppSelector(selectErrorIcon),rt=_ref$3,ot=css({height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(10,!1)},"","");return jsxs("div",{css:ot,children:[jsx$1("div",{children:_e||$("error.generic-message")}),nt?jsx$1(nt,{css:_ref2$1}):jsx$1(LuFrown,{css:_ref3$1}),jsx$1("span",{children:et}),jsx$1("br",{}),tt&&jsxs("div",{css:rt,children:[jsx$1("span",{children:$("error.details")}),jsx$1("br",{}),jsx$1("span",{children:tt})]})]})};var _ref$2={name:"oaz9xn",styles:"height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;a{color:#007bff;text-decoration:none;}li{margin:5px;}code{user-select:all;color:#e83e8c;}"};const Landing=()=>{const{t:$}=useTranslation();return jsxs("div",{css:_ref$2,children:[jsx$1("h1",{children:$("landing.main-heading")}),jsxs("div",{children:[jsx$1("li",{children:$("landing.contact-admin")}),jsxs("li",{children:[$("landing.start-editing-1"),jsx$1("code",{children:" ?id=[media-package-id]"}),$("landing.start-editing-2")]}),jsxs("li",{children:[$("landing.link-to-documentation"),jsx$1("a",{href:"https://docs.opencast.org/stable/admin/modules/editor/",children:"docs.opencast.org"})]})]})]})},Lock=()=>{const $=`${settings.opencast.url}/editor/${settings.id}/lock`,_e=useAppDispatch(),et=useAppSelector(lt=>lt.videoState.lockingActive),tt=useAppSelector(lt=>lt.videoState.lockRefresh),nt=useAppSelector(lt=>lt.videoState.lockState),rt=useAppSelector(lt=>lt.videoState.lock),ot=useAppSelector(selectIsEnd);function it(){const lt=`user=${rt.user}&uuid=${rt.uuid}`;client.post($,lt,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then(()=>_e(setLock(!0))).catch(ct=>{_e(setLock(!1)),_e(setError({error:!0,errorDetails:ct,errorIcon:LuLock,errorTitle:"Video editing locked",errorMessage:"This video is currently being edited by another user"}))})}function st(){et&&nt&&client.delete($+"/"+rt.uuid).then(()=>{console.info("Lock released"),_e(setLock(!1))})}return reactExports.useEffect(()=>{et&&it()},[et]),useInterval(async()=>{it()},et?tt:null),l(lt=>{st()}),reactExports.useEffect(()=>{ot&&st()},[ot]),jsx$1(Fragment,{})};var _ref$1={name:"1np9i38",styles:"display:flex;flex-direction:row;height:calc(100% - 64px)"};const Body=()=>{const $=useAppSelector(selectIsEnd),_e=useAppSelector(selectIsError),et=()=>settings.id?$?jsxs("div",{children:[jsx$1(Lock,{}),jsx$1(TheEnd,{})]}):_e?jsx$1(Error$1,{}):jsxs("div",{css:tt,children:[jsx$1(Lock,{}),jsx$1(MainMenu,{}),jsx$1(MainContent,{})]}):jsx$1(Landing,{}),tt=_ref$1;return jsx$1(React$5.Fragment,{children:et()})};function HiOutlineTranslate($){return GenIcon({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"}}]})($)}const SvgOpencastEditor=$=>reactExports.createElement("svg",{id:"Ebene_1",x:"0px",y:"0px",width:"165.18565mm",height:"32.482224mm",viewBox:"0 0 585.30348 115.09449",enableBackground:"new 0 0 717.17 540",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnssvg:"http://www.w3.org/2000/svg",...$},reactExports.createElement("g",{id:"g3",style:{fill:"#ffffff",fillOpacity:1},transform:"matrix(1.1241114,0,0,1.1241114,-189.53592,-271.99556)"},reactExports.createElement("g",{id:"g5",style:{fill:"#ffffff",fillOpacity:1}},reactExports.createElement("path",{style:{fill:"#ffffff",fillOpacity:1},d:"m 219.23899,257.72546 0.001,0.58345 -34.86996,34.85638 34.90819,34.84282 v 0.37499 l 0.1875,-0.18749 0.12088,0.12088 35.13763,-35.1512 -35.1771,-35.16352 -0.016,0.016 -0.29234,-0.29234 z m 28.15352,0.20846 0.0222,16.51664 0.17268,0.17269 v 0.0222 l 18.63457,18.63333 -18.80725,18.80725 0.0173,16.50553 0.17146,-0.17146 v 0.10362 l 35.13763,-35.1512 -0.0518,-0.0518 0.0518,-0.0518 -35.34856,-35.33499 z m 72.20199,16.2465 c -1.78847,0.0374 -3.57301,0.34057 -5.24857,0.88319 -5.81212,1.92127 -9.6997,7.60532 -10.64391,13.49208 -1.00035,5.97702 -0.32001,12.69391 3.68695,17.49973 2.86126,3.62624 7.46708,5.64618 12.05997,5.53844 3.69724,0.0383 7.43955,-1.11894 10.24303,-3.58086 4.29493,-3.62438 6.19657,-9.36277 6.20453,-14.85634 0.16567,-5.46563 -1.39919,-11.28717 -5.5335,-15.08577 -2.87648,-2.76943 -6.83387,-3.97285 -10.7685,-3.89047 z m 183.39383,0.007 c -3.93323,-0.0442 -8.08277,0.75109 -10.91281,3.6339 -2.91388,3.00152 -3.34765,7.8227 -1.73925,11.57028 1.54457,3.40377 5.01183,5.29586 8.30149,6.68437 2.12469,1.0487 4.7021,2.06857 5.59888,4.45172 0.60057,1.74353 -0.57646,3.63317 -2.28568,4.14457 -4.28556,1.40174 -9.14636,-0.17066 -12.37946,-3.16764 v 8.07083 c 0.22966,0.12812 0.46414,0.24772 0.70186,0.36018 4.03605,1.76778 8.63829,1.98967 12.94687,1.29148 3.55077,-0.53025 7.06756,-2.66144 8.3459,-6.15149 0.98226,-2.92198 1.02285,-6.30603 -0.33551,-9.12054 -1.81091,-3.59949 -5.70527,-5.29994 -9.17112,-6.90392 -1.81573,-0.95665 -4.11706,-1.96629 -4.67622,-4.14458 -0.4685,-1.9159 1.18536,-3.59331 2.95302,-3.97682 3.56971,-0.87438 7.50092,0.0677 10.46629,2.18824 v -7.54165 c -1.94706,-0.81239 -4.04827,-1.19326 -6.14656,-1.32232 -0.54862,-0.0369 -1.10581,-0.0603 -1.6677,-0.0666 z m -57.50847,0.001 c -5.24443,0 -9.50914,1.79985 -12.79638,5.39782 -3.28851,3.5986 -4.93279,8.28992 -4.93279,14.07306 0,5.43138 1.46288,9.77864 4.38635,13.04062 2.92283,3.26198 6.93659,4.89331 12.04271,4.89331 3.91374,0 7.08632,-0.63986 9.51402,-1.91687 v -7.44173 c -2.4277,1.54731 -5.10542,2.32022 -8.02888,2.32022 -3.06241,0 -5.49909,-1.03805 -7.30976,-3.1146 -1.8094,-2.07592 -2.7137,-4.86378 -2.7137,-8.3607 0,-3.64849 0.95786,-6.53995 2.87652,-8.67524 1.91867,-2.13528 4.44013,-3.20341 7.56633,-3.20341 2.84578,0 5.382,0.72347 7.60949,2.16973 v -7.84509 c -2.22812,-0.89112 -4.96393,-1.33712 -8.21391,-1.33712 z m -225.97196,0.31208 18.55808,18.55808 -18.66293,18.66293 -18.60372,-18.55808 z m 121.01178,0.29357 v 36.16761 h 7.49601 v -12.45964 h 3.57223 c 4.023,0 7.23549,-1.12169 9.64108,-3.36623 2.40622,-2.24518 3.608,-5.18316 3.608,-8.81587 0,-7.68412 -4.1917,-11.52587 -12.57559,-11.52587 z m 28.28797,0 v 36.16761 h 19.95441 v -6.60789 h -12.45963 v -8.27312 h 10.88322 v -6.60789 h -10.88322 v -8.04492 h 11.69486 v -6.63379 z m 24.39133,0 v 36.16884 h 7.07662 v -19.87547 c 0,-2.62284 -0.0619,-4.57288 -0.18503,-5.85051 h 0.0913 c 0.31009,0.67197 0.8668,1.67232 1.6714,3.00112 l 13.71411,22.72363 h 7.56385 v -36.16761 h -7.07785 v 20.00252 c 0,2.47191 0.0618,4.12799 0.18626,4.96733 h -0.0925 c -0.51093,-0.97449 -1.06703,-1.95901 -1.67017,-2.95055 l -13.20343,-22.0193 h -8.07453 z m 73.93259,0 -12.11425,36.16761 h 8.1214 l 2.34489,-8.04492 h 11.83302 l 2.36833,8.04492 h 8.1658 l -11.83301,-36.16761 z m 46.62033,0 v 6.63379 h 9.44495 v 29.53382 h 7.51698 v -29.53382 h 9.49182 10e-4 v -6.63379 h -26.45499 z m -165.73621,6.25511 h 2.94684 c 3.99206,0 5.9862,1.85874 5.9862,5.57544 0,3.7988 -1.99477,5.70003 -5.9862,5.70003 h -2.94684 z m -28.80235,0.15172 c 0.18612,-0.008 0.37292,-0.008 0.56125,0 0.60875,-10e-5 1.2194,0.059 1.81325,0.19489 3.48121,0.74389 5.50196,4.24534 6.06021,7.52562 0.63876,3.99683 0.64114,8.43096 -1.50487,12.00447 -1.48677,2.57327 -4.54648,3.98356 -7.47134,3.58086 -3.55247,-0.29975 -6.09331,-3.49763 -6.9027,-6.76701 -0.93637,-3.95463 -0.87612,-8.34514 0.95103,-12.04394 1.19246,-2.50172 3.70148,-4.37577 6.49317,-4.49489 z m 152.07145,0.0506 h 0.18626 c 0.10736,1.26122 0.29295,2.34458 0.55631,3.25276 l 3.57223,12.15742 h -8.51365 l 3.61786,-12.25734 c 0.30946,-1.04206 0.50331,-2.09309 0.58099,-3.15284 z",id:"polygon7"})),reactExports.createElement("g",{id:"g9",style:{fill:"#ffffff",fillOpacity:1}}),reactExports.createElement("g",{id:"g13",style:{fill:"#ffffff",fillOpacity:1}})),reactExports.createElement("g",{id:"g35",style:{fill:"#000000",fillOpacity:1},transform:"translate(-166.65349,-231.21359)"}),reactExports.createElement("g",{id:"g39",style:{fill:"#000000",fillOpacity:1},transform:"translate(-166.65349,-231.21359)"}),reactExports.createElement("g",{id:"g43",style:{fill:"#000000",fillOpacity:1},transform:"translate(-166.65349,-231.21359)"}),reactExports.createElement("g",{"aria-label":"EDITOR",id:"text824"},reactExports.createElement("path",{d:"m 425.88736,77.535515 h 18.0375 c 0.6,0 1.125,-0.4875 1.125,-1.125 0,-0.6 -0.525,-1.125 -1.125,-1.125 h -16.9125 v -11.25 h 12.4125 c 0.6375,0 1.125,-0.525 1.125,-1.1625 0,-0.6375 -0.4875,-1.125 -1.125,-1.125 h -12.4125 v -11.25 h 16.9125 c 0.6,0 1.125,-0.525 1.125,-1.125 0,-0.6375 -0.525,-1.125 -1.125,-1.125 h -18.0375 c -0.6375,0 -1.125,0.4875 -1.125,1.125 v 27.0375 c 0,0.6375 0.4875,1.125 1.125,1.125 z",style:{fill:"#ffffff"},id:"path176"}),reactExports.createElement("path",{d:"m 451.61239,77.535515 h 6.75 c 8.5875,0 14.6625,-6.075 14.6625,-14.6625 0,-8.55 -6.075,-14.625 -14.6625,-14.625 h -6.75 c -0.675,0 -1.125,0.45 -1.125,1.125 v 27.0375 c 0,0.675 0.45,1.125 1.125,1.125 z m 1.125,-2.025 v -25.2375 h 5.625 c 7.275,0 12.4125,5.3625 12.4125,12.6 0,7.275 -5.1375,12.6375 -12.4125,12.6375 z",style:{fill:"#ffffff"},id:"path178"}),reactExports.createElement("path",{d:"m 480.14988,77.535515 c 0.6375,0 1.125,-0.4875 1.125,-1.125 v -27.0375 c 0,-0.6375 -0.4875,-1.125 -1.125,-1.125 -0.6375,0 -1.125,0.4875 -1.125,1.125 v 27.0375 c 0,0.6375 0.4875,1.125 1.125,1.125 z",style:{fill:"#ffffff"},id:"path180"}),reactExports.createElement("path",{d:"m 507.82489,48.248015 h -21.225 c -0.6,0 -1.0125,0.4125 -1.0125,1.0125 0,0.6 0.4125,1.0125 1.0125,1.0125 h 9.4875 v 26.1375 c 0,0.6375 0.4875,1.125 1.125,1.125 0.6375,0 1.125,-0.4875 1.125,-1.125 v -26.1375 h 9.4875 c 0.6,0 1.0125,-0.4125 1.0125,-1.0125 0,-0.6 -0.4125,-1.0125 -1.0125,-1.0125 z",style:{fill:"#ffffff"},id:"path182"}),reactExports.createElement("path",{d:"m 524.8124,77.910515 c 8.55,0 15,-6.45 15,-15.0375 0,-8.55 -6.45,-15 -15,-15 -8.5875,0 -15.0375,6.45 -15.0375,15 0,8.5875 6.45,15.0375 15.0375,15.0375 z m 0,-2.25 c -7.275,0 -12.7875,-5.5125 -12.7875,-12.7875 0,-7.2375 5.5125,-12.75 12.7875,-12.75 7.2375,0 12.75,5.5125 12.75,12.75 0,7.275 -5.5125,12.7875 -12.75,12.7875 z",style:{fill:"#ffffff"},id:"path184"}),reactExports.createElement("path",{d:"m 563.62489,75.810515 -6.45,-10.3125 c 3.7875,-1.0875 6.3,-4.2375 6.3,-8.3625 0,-5.2125 -3.9,-8.8875 -9.375,-8.8875 h -7.1625 c -0.675,0 -1.125,0.45 -1.125,1.125 v 27.0375 c 0,0.675 0.45,1.125 1.125,1.125 0.675,0 1.125,-0.45 1.125,-1.125 v -10.5 h 6.0375 0.675 l 6.9,11.025 c 0.225,0.3375 0.45,0.6 1.0125,0.6 1.1625,0 1.575,-0.7125 0.9375,-1.725 z m -15.5625,-12.15 v -13.1625 h 6.0375 c 4.1625,0 7.125,2.7375 7.125,6.6375 0,3.825 -2.9625,6.525 -7.125,6.525 z",style:{fill:"#ffffff"},id:"path186"}))),consoleLogger={type:"logger",log($){this.output("log",$)},warn($){this.output("warn",$)},error($){this.output("error",$)},output($,_e){console&&console[$]&&console[$].apply(console,_e)}};class Logger{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(_e,et)}init(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=et.prefix||"i18next:",this.logger=_e||consoleLogger,this.options=et,this.debug=et.debug}log(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"log","",!0)}warn(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"warn","",!0)}error(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"error","")}deprecate(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"warn","WARNING DEPRECATED: ",!0)}forward(_e,et,tt,nt){return nt&&!this.debug?null:(typeof _e[0]=="string"&&(_e[0]=`${tt}${this.prefix} ${_e[0]}`),this.logger[et](_e))}create(_e){return new Logger(this.logger,{prefix:`${this.prefix}:${_e}:`,...this.options})}clone(_e){return _e=_e||this.options,_e.prefix=_e.prefix||this.prefix,new Logger(this.logger,_e)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(_e,et){return _e.split(" ").forEach(tt=>{this.observers[tt]=this.observers[tt]||[],this.observers[tt].push(et)}),this}off(_e,et){if(this.observers[_e]){if(!et){delete this.observers[_e];return}this.observers[_e]=this.observers[_e].filter(tt=>tt!==et)}}emit(_e){for(var et=arguments.length,tt=new Array(et>1?et-1:0),nt=1;nt{ot(...tt)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(ot=>{ot.apply(ot,[_e,...tt])})}}function defer(){let $,_e;const et=new Promise((tt,nt)=>{$=tt,_e=nt});return et.resolve=$,et.reject=_e,et}function makeString($){return $==null?"":""+$}function copy($,_e,et){$.forEach(tt=>{_e[tt]&&(et[tt]=_e[tt])})}function getLastOfPath($,_e,et){function tt(ot){return ot&&ot.indexOf("###")>-1?ot.replace(/###/g,"."):ot}function nt(){return!$||typeof $=="string"}const rt=typeof _e!="string"?[].concat(_e):_e.split(".");for(;rt.length>1;){if(nt())return{};const ot=tt(rt.shift());!$[ot]&&et&&($[ot]=new et),Object.prototype.hasOwnProperty.call($,ot)?$=$[ot]:$={}}return nt()?{}:{obj:$,k:tt(rt.shift())}}function setPath($,_e,et){const{obj:tt,k:nt}=getLastOfPath($,_e,Object);tt[nt]=et}function pushPath($,_e,et,tt){const{obj:nt,k:rt}=getLastOfPath($,_e,Object);nt[rt]=nt[rt]||[],tt&&(nt[rt]=nt[rt].concat(et)),tt||nt[rt].push(et)}function getPath($,_e){const{obj:et,k:tt}=getLastOfPath($,_e);if(et)return et[tt]}function getPathWithDefaults($,_e,et){const tt=getPath($,et);return tt!==void 0?tt:getPath(_e,et)}function deepExtend($,_e,et){for(const tt in _e)tt!=="__proto__"&&tt!=="constructor"&&(tt in $?typeof $[tt]=="string"||$[tt]instanceof String||typeof _e[tt]=="string"||_e[tt]instanceof String?et&&($[tt]=_e[tt]):deepExtend($[tt],_e[tt],et):$[tt]=_e[tt]);return $}function regexEscape($){return $.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape($){return typeof $=="string"?$.replace(/[&<>"'\/]/g,_e=>_entityMap[_e]):$}const chars=[" ",",","?","!",";"];function looksLikeObjectPath($,_e,et){_e=_e||"",et=et||"";const tt=chars.filter(ot=>_e.indexOf(ot)<0&&et.indexOf(ot)<0);if(tt.length===0)return!0;const nt=new RegExp(`(${tt.map(ot=>ot==="?"?"\\?":ot).join("|")})`);let rt=!nt.test($);if(!rt){const ot=$.indexOf(et);ot>0&&!nt.test($.substring(0,ot))&&(rt=!0)}return rt}function deepFind($,_e){let et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!$)return;if($[_e])return $[_e];const tt=_e.split(et);let nt=$;for(let rt=0;rtrt+ot;)ot++,it=tt.slice(rt,rt+ot).join(et),st=nt[it];if(st===void 0)return;if(st===null)return null;if(_e.endsWith(it)){if(typeof st=="string")return st;if(it&&typeof st[it]=="string")return st[it]}const lt=tt.slice(rt+ot).join(et);return lt?deepFind(st,lt,et):void 0}nt=nt[tt[rt]]}return nt}function getCleanedCode($){return $&&$.indexOf("_")>0?$.replace("_","-"):$}class ResourceStore extends EventEmitter{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=_e||{},this.options=et,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(_e){this.options.ns.indexOf(_e)<0&&this.options.ns.push(_e)}removeNamespaces(_e){const et=this.options.ns.indexOf(_e);et>-1&&this.options.ns.splice(et,1)}getResource(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const rt=nt.keySeparator!==void 0?nt.keySeparator:this.options.keySeparator,ot=nt.ignoreJSONStructure!==void 0?nt.ignoreJSONStructure:this.options.ignoreJSONStructure;let it=[_e,et];tt&&typeof tt!="string"&&(it=it.concat(tt)),tt&&typeof tt=="string"&&(it=it.concat(rt?tt.split(rt):tt)),_e.indexOf(".")>-1&&(it=_e.split("."));const st=getPath(this.data,it);return st||!ot||typeof tt!="string"?st:deepFind(this.data&&this.data[_e]&&this.data[_e][et],tt,rt)}addResource(_e,et,tt,nt){let rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const ot=rt.keySeparator!==void 0?rt.keySeparator:this.options.keySeparator;let it=[_e,et];tt&&(it=it.concat(ot?tt.split(ot):tt)),_e.indexOf(".")>-1&&(it=_e.split("."),nt=et,et=it[1]),this.addNamespaces(et),setPath(this.data,it,nt),rt.silent||this.emit("added",_e,et,tt,nt)}addResources(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const rt in tt)(typeof tt[rt]=="string"||Object.prototype.toString.apply(tt[rt])==="[object Array]")&&this.addResource(_e,et,rt,tt[rt],{silent:!0});nt.silent||this.emit("added",_e,et,tt)}addResourceBundle(_e,et,tt,nt,rt){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},it=[_e,et];_e.indexOf(".")>-1&&(it=_e.split("."),nt=tt,tt=et,et=it[1]),this.addNamespaces(et);let st=getPath(this.data,it)||{};nt?deepExtend(st,tt,rt):st={...st,...tt},setPath(this.data,it,st),ot.silent||this.emit("added",_e,et,tt)}removeResourceBundle(_e,et){this.hasResourceBundle(_e,et)&&delete this.data[_e][et],this.removeNamespaces(et),this.emit("removed",_e,et)}hasResourceBundle(_e,et){return this.getResource(_e,et)!==void 0}getResourceBundle(_e,et){return et||(et=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(_e,et)}:this.getResource(_e,et)}getDataByLanguage(_e){return this.data[_e]}hasLanguageSomeTranslations(_e){const et=this.getDataByLanguage(_e);return!!(et&&Object.keys(et)||[]).find(nt=>et[nt]&&Object.keys(et[nt]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor($){this.processors[$.name]=$},handle($,_e,et,tt,nt){return $.forEach(rt=>{this.processors[rt]&&(_e=this.processors[rt].process(_e,et,tt,nt))}),_e}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],_e,this),this.options=et,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(_e){_e&&(this.language=_e)}exists(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(_e==null)return!1;const tt=this.resolve(_e,et);return tt&&tt.res!==void 0}extractFromKey(_e,et){let tt=et.nsSeparator!==void 0?et.nsSeparator:this.options.nsSeparator;tt===void 0&&(tt=":");const nt=et.keySeparator!==void 0?et.keySeparator:this.options.keySeparator;let rt=et.ns||this.options.defaultNS||[];const ot=tt&&_e.indexOf(tt)>-1,it=!this.options.userDefinedKeySeparator&&!et.keySeparator&&!this.options.userDefinedNsSeparator&&!et.nsSeparator&&!looksLikeObjectPath(_e,tt,nt);if(ot&&!it){const st=_e.match(this.interpolator.nestingRegexp);if(st&&st.length>0)return{key:_e,namespaces:rt};const lt=_e.split(tt);(tt!==nt||tt===nt&&this.options.ns.indexOf(lt[0])>-1)&&(rt=lt.shift()),_e=lt.join(nt)}return typeof rt=="string"&&(rt=[rt]),{key:_e,namespaces:rt}}translate(_e,et,tt){if(typeof et!="object"&&this.options.overloadTranslationOptionHandler&&(et=this.options.overloadTranslationOptionHandler(arguments)),typeof et=="object"&&(et={...et}),et||(et={}),_e==null)return"";Array.isArray(_e)||(_e=[String(_e)]);const nt=et.returnDetails!==void 0?et.returnDetails:this.options.returnDetails,rt=et.keySeparator!==void 0?et.keySeparator:this.options.keySeparator,{key:ot,namespaces:it}=this.extractFromKey(_e[_e.length-1],et),st=it[it.length-1],lt=et.lng||this.language,ct=et.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lt&<.toLowerCase()==="cimode"){if(ct){const Tt=et.nsSeparator||this.options.nsSeparator;return nt?{res:`${st}${Tt}${ot}`,usedKey:ot,exactUsedKey:ot,usedLng:lt,usedNS:st,usedParams:this.getUsedParamsDetails(et)}:`${st}${Tt}${ot}`}return nt?{res:ot,usedKey:ot,exactUsedKey:ot,usedLng:lt,usedNS:st,usedParams:this.getUsedParamsDetails(et)}:ot}const ft=this.resolve(_e,et);let dt=ft&&ft.res;const pt=ft&&ft.usedKey||ot,ht=ft&&ft.exactUsedKey||ot,gt=Object.prototype.toString.apply(dt),yt=["[object Number]","[object Function]","[object RegExp]"],vt=et.joinArrays!==void 0?et.joinArrays:this.options.joinArrays,Et=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Et&&dt&&(typeof dt!="string"&&typeof dt!="boolean"&&typeof dt!="number")&&yt.indexOf(gt)<0&&!(typeof vt=="string"&>==="[object Array]")){if(!et.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Tt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(pt,dt,{...et,ns:it}):`key '${ot} (${this.language})' returned an object instead of string.`;return nt?(ft.res=Tt,ft.usedParams=this.getUsedParamsDetails(et),ft):Tt}if(rt){const Tt=gt==="[object Array]",xt=Tt?[]:{},$t=Tt?ht:pt;for(const wt in dt)if(Object.prototype.hasOwnProperty.call(dt,wt)){const mt=`${$t}${rt}${wt}`;xt[wt]=this.translate(mt,{...et,joinArrays:!1,ns:it}),xt[wt]===mt&&(xt[wt]=dt[wt])}dt=xt}}else if(Et&&typeof vt=="string"&>==="[object Array]")dt=dt.join(vt),dt&&(dt=this.extendTranslation(dt,_e,et,tt));else{let Tt=!1,xt=!1;const $t=et.count!==void 0&&typeof et.count!="string",wt=Translator.hasDefaultValue(et),mt=$t?this.pluralResolver.getSuffix(lt,et.count,et):"",Ct=et.ordinal&&$t?this.pluralResolver.getSuffix(lt,et.count,{ordinal:!1}):"",St=et[`defaultValue${mt}`]||et[`defaultValue${Ct}`]||et.defaultValue;!this.isValidLookup(dt)&&wt&&(Tt=!0,dt=St),this.isValidLookup(dt)||(xt=!0,dt=ot);const At=(et.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&xt?void 0:dt,Mt=wt&&St!==dt&&this.options.updateMissing;if(xt||Tt||Mt){if(this.logger.log(Mt?"updateKey":"missingKey",lt,st,ot,Mt?St:dt),rt){const Ft=this.resolve(ot,{...et,keySeparator:!1});Ft&&Ft.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Rt=[];const kt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,et.lng||this.language);if(this.options.saveMissingTo==="fallback"&&kt&&kt[0])for(let Ft=0;Ft{const Bt=wt&&Dt!==dt?Dt:At;this.options.missingKeyHandler?this.options.missingKeyHandler(Ft,st,Lt,Bt,Mt,et):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ft,st,Lt,Bt,Mt,et),this.emit("missingKey",Ft,st,Lt,dt)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$t?Rt.forEach(Ft=>{this.pluralResolver.getSuffixes(Ft,et).forEach(Lt=>{Nt([Ft],ot+Lt,et[`defaultValue${Lt}`]||St)})}):Nt(Rt,ot,St))}dt=this.extendTranslation(dt,_e,et,ft,tt),xt&&dt===ot&&this.options.appendNamespaceToMissingKey&&(dt=`${st}:${ot}`),(xt||Tt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?dt=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${st}:${ot}`:ot,Tt?dt:void 0):dt=this.options.parseMissingKeyHandler(dt))}return nt?(ft.res=dt,ft.usedParams=this.getUsedParamsDetails(et),ft):dt}extendTranslation(_e,et,tt,nt,rt){var ot=this;if(this.i18nFormat&&this.i18nFormat.parse)_e=this.i18nFormat.parse(_e,{...this.options.interpolation.defaultVariables,...tt},tt.lng||this.language||nt.usedLng,nt.usedNS,nt.usedKey,{resolved:nt});else if(!tt.skipInterpolation){tt.interpolation&&this.interpolator.init({...tt,interpolation:{...this.options.interpolation,...tt.interpolation}});const lt=typeof _e=="string"&&(tt&&tt.interpolation&&tt.interpolation.skipOnVariables!==void 0?tt.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let ct;if(lt){const dt=_e.match(this.interpolator.nestingRegexp);ct=dt&&dt.length}let ft=tt.replace&&typeof tt.replace!="string"?tt.replace:tt;if(this.options.interpolation.defaultVariables&&(ft={...this.options.interpolation.defaultVariables,...ft}),_e=this.interpolator.interpolate(_e,ft,tt.lng||this.language,tt),lt){const dt=_e.match(this.interpolator.nestingRegexp),pt=dt&&dt.length;ct1&&arguments[1]!==void 0?arguments[1]:{},tt,nt,rt,ot,it;return typeof _e=="string"&&(_e=[_e]),_e.forEach(st=>{if(this.isValidLookup(tt))return;const lt=this.extractFromKey(st,et),ct=lt.key;nt=ct;let ft=lt.namespaces;this.options.fallbackNS&&(ft=ft.concat(this.options.fallbackNS));const dt=et.count!==void 0&&typeof et.count!="string",pt=dt&&!et.ordinal&&et.count===0&&this.pluralResolver.shouldUseIntlApi(),ht=et.context!==void 0&&(typeof et.context=="string"||typeof et.context=="number")&&et.context!=="",gt=et.lngs?et.lngs:this.languageUtils.toResolveHierarchy(et.lng||this.language,et.fallbackLng);ft.forEach(yt=>{this.isValidLookup(tt)||(it=yt,!checkedLoadedFor[`${gt[0]}-${yt}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(it)&&(checkedLoadedFor[`${gt[0]}-${yt}`]=!0,this.logger.warn(`key "${nt}" for languages "${gt.join(", ")}" won't get resolved as namespace "${it}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),gt.forEach(vt=>{if(this.isValidLookup(tt))return;ot=vt;const Et=[ct];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Et,ct,vt,yt,et);else{let Tt;dt&&(Tt=this.pluralResolver.getSuffix(vt,et.count,et));const xt=`${this.options.pluralSeparator}zero`,$t=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(dt&&(Et.push(ct+Tt),et.ordinal&&Tt.indexOf($t)===0&&Et.push(ct+Tt.replace($t,this.options.pluralSeparator)),pt&&Et.push(ct+xt)),ht){const wt=`${ct}${this.options.contextSeparator}${et.context}`;Et.push(wt),dt&&(Et.push(wt+Tt),et.ordinal&&Tt.indexOf($t)===0&&Et.push(wt+Tt.replace($t,this.options.pluralSeparator)),pt&&Et.push(wt+xt))}}let Ot;for(;Ot=Et.pop();)this.isValidLookup(tt)||(rt=Ot,tt=this.getResource(vt,yt,Ot,et))}))})}),{res:tt,usedKey:nt,exactUsedKey:rt,usedLng:ot,usedNS:it}}isValidLookup(_e){return _e!==void 0&&!(!this.options.returnNull&&_e===null)&&!(!this.options.returnEmptyString&&_e==="")}getResource(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(_e,et,tt,nt):this.resourceStore.getResource(_e,et,tt,nt)}getUsedParamsDetails(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const et=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],tt=_e.replace&&typeof _e.replace!="string";let nt=tt?_e.replace:_e;if(tt&&typeof _e.count<"u"&&(nt.count=_e.count),this.options.interpolation.defaultVariables&&(nt={...this.options.interpolation.defaultVariables,...nt}),!tt){nt={...nt};for(const rt of et)delete nt[rt]}return nt}static hasDefaultValue(_e){const et="defaultValue";for(const tt in _e)if(Object.prototype.hasOwnProperty.call(_e,tt)&&et===tt.substring(0,et.length)&&_e[tt]!==void 0)return!0;return!1}}function capitalize($){return $.charAt(0).toUpperCase()+$.slice(1)}class LanguageUtil{constructor(_e){this.options=_e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(_e){if(_e=getCleanedCode(_e),!_e||_e.indexOf("-")<0)return null;const et=_e.split("-");return et.length===2||(et.pop(),et[et.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(et.join("-"))}getLanguagePartFromCode(_e){if(_e=getCleanedCode(_e),!_e||_e.indexOf("-")<0)return _e;const et=_e.split("-");return this.formatLanguageCode(et[0])}formatLanguageCode(_e){if(typeof _e=="string"&&_e.indexOf("-")>-1){const et=["hans","hant","latn","cyrl","cans","mong","arab"];let tt=_e.split("-");return this.options.lowerCaseLng?tt=tt.map(nt=>nt.toLowerCase()):tt.length===2?(tt[0]=tt[0].toLowerCase(),tt[1]=tt[1].toUpperCase(),et.indexOf(tt[1].toLowerCase())>-1&&(tt[1]=capitalize(tt[1].toLowerCase()))):tt.length===3&&(tt[0]=tt[0].toLowerCase(),tt[1].length===2&&(tt[1]=tt[1].toUpperCase()),tt[0]!=="sgn"&&tt[2].length===2&&(tt[2]=tt[2].toUpperCase()),et.indexOf(tt[1].toLowerCase())>-1&&(tt[1]=capitalize(tt[1].toLowerCase())),et.indexOf(tt[2].toLowerCase())>-1&&(tt[2]=capitalize(tt[2].toLowerCase()))),tt.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?_e.toLowerCase():_e}isSupportedCode(_e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(_e=this.getLanguagePartFromCode(_e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(_e)>-1}getBestMatchFromCodes(_e){if(!_e)return null;let et;return _e.forEach(tt=>{if(et)return;const nt=this.formatLanguageCode(tt);(!this.options.supportedLngs||this.isSupportedCode(nt))&&(et=nt)}),!et&&this.options.supportedLngs&&_e.forEach(tt=>{if(et)return;const nt=this.getLanguagePartFromCode(tt);if(this.isSupportedCode(nt))return et=nt;et=this.options.supportedLngs.find(rt=>{if(rt===nt)return rt;if(!(rt.indexOf("-")<0&&nt.indexOf("-")<0)&&rt.indexOf(nt)===0)return rt})}),et||(et=this.getFallbackCodes(this.options.fallbackLng)[0]),et}getFallbackCodes(_e,et){if(!_e)return[];if(typeof _e=="function"&&(_e=_e(et)),typeof _e=="string"&&(_e=[_e]),Object.prototype.toString.apply(_e)==="[object Array]")return _e;if(!et)return _e.default||[];let tt=_e[et];return tt||(tt=_e[this.getScriptPartFromCode(et)]),tt||(tt=_e[this.formatLanguageCode(et)]),tt||(tt=_e[this.getLanguagePartFromCode(et)]),tt||(tt=_e.default),tt||[]}toResolveHierarchy(_e,et){const tt=this.getFallbackCodes(et||this.options.fallbackLng||[],_e),nt=[],rt=ot=>{ot&&(this.isSupportedCode(ot)?nt.push(ot):this.logger.warn(`rejecting language code not found in supportedLngs: ${ot}`))};return typeof _e=="string"&&(_e.indexOf("-")>-1||_e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&rt(this.formatLanguageCode(_e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&rt(this.getScriptPartFromCode(_e)),this.options.load!=="currentOnly"&&rt(this.getLanguagePartFromCode(_e))):typeof _e=="string"&&rt(this.formatLanguageCode(_e)),tt.forEach(ot=>{nt.indexOf(ot)<0&&rt(this.formatLanguageCode(ot))}),nt}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function($){return+($>1)},2:function($){return+($!=1)},3:function($){return 0},4:function($){return $%10==1&&$%100!=11?0:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?1:2},5:function($){return $==0?0:$==1?1:$==2?2:$%100>=3&&$%100<=10?3:$%100>=11?4:5},6:function($){return $==1?0:$>=2&&$<=4?1:2},7:function($){return $==1?0:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?1:2},8:function($){return $==1?0:$==2?1:$!=8&&$!=11?2:3},9:function($){return+($>=2)},10:function($){return $==1?0:$==2?1:$<7?2:$<11?3:4},11:function($){return $==1||$==11?0:$==2||$==12?1:$>2&&$<20?2:3},12:function($){return+($%10!=1||$%100==11)},13:function($){return+($!==0)},14:function($){return $==1?0:$==2?1:$==3?2:3},15:function($){return $%10==1&&$%100!=11?0:$%10>=2&&($%100<10||$%100>=20)?1:2},16:function($){return $%10==1&&$%100!=11?0:$!==0?1:2},17:function($){return $==1||$%10==1&&$%100!=11?0:1},18:function($){return $==0?0:$==1?1:2},19:function($){return $==1?0:$==0||$%100>1&&$%100<11?1:$%100>10&&$%100<20?2:3},20:function($){return $==1?0:$==0||$%100>0&&$%100<20?1:2},21:function($){return $%100==1?1:$%100==2?2:$%100==3||$%100==4?3:0},22:function($){return $==1?0:$==2?1:($<0||$>10)&&$%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const $={};return sets.forEach(_e=>{_e.lngs.forEach(et=>{$[et]={numbers:_e.nr,plurals:_rulesPluralsTypes[_e.fc]}})}),$}class PluralResolver{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=_e,this.options=et,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(_e,et){this.rules[_e]=et}getRule(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(_e),{type:et.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[_e]||this.rules[this.languageUtils.getLanguagePartFromCode(_e)]}needsPlural(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const tt=this.getRule(_e,et);return this.shouldUseIntlApi()?tt&&tt.resolvedOptions().pluralCategories.length>1:tt&&tt.numbers.length>1}getPluralFormsOfKey(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(_e,tt).map(nt=>`${et}${nt}`)}getSuffixes(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const tt=this.getRule(_e,et);return tt?this.shouldUseIntlApi()?tt.resolvedOptions().pluralCategories.sort((nt,rt)=>suffixesOrder[nt]-suffixesOrder[rt]).map(nt=>`${this.options.prepend}${et.ordinal?`ordinal${this.options.prepend}`:""}${nt}`):tt.numbers.map(nt=>this.getSuffix(_e,nt,et)):[]}getSuffix(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const nt=this.getRule(_e,tt);return nt?this.shouldUseIntlApi()?`${this.options.prepend}${tt.ordinal?`ordinal${this.options.prepend}`:""}${nt.select(et)}`:this.getSuffixRetroCompatible(nt,et):(this.logger.warn(`no plural rule found for: ${_e}`),"")}getSuffixRetroCompatible(_e,et){const tt=_e.noAbs?_e.plurals(et):_e.plurals(Math.abs(et));let nt=_e.numbers[tt];this.options.simplifyPluralSuffix&&_e.numbers.length===2&&_e.numbers[0]===1&&(nt===2?nt="plural":nt===1&&(nt=""));const rt=()=>this.options.prepend&&nt.toString()?this.options.prepend+nt.toString():nt.toString();return this.options.compatibilityJSON==="v1"?nt===1?"":typeof nt=="number"?`_plural_${nt.toString()}`:rt():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&_e.numbers.length===2&&_e.numbers[0]===1?rt():this.options.prepend&&tt.toString()?this.options.prepend+tt.toString():tt.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults($,_e,et){let tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",nt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,rt=getPathWithDefaults($,_e,et);return!rt&&nt&&typeof et=="string"&&(rt=deepFind($,et,tt),rt===void 0&&(rt=deepFind(_e,et,tt))),rt}class Interpolator{constructor(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=_e,this.format=_e.interpolation&&_e.interpolation.format||(et=>et),this.init(_e)}init(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_e.interpolation||(_e.interpolation={escapeValue:!0});const et=_e.interpolation;this.escape=et.escape!==void 0?et.escape:escape,this.escapeValue=et.escapeValue!==void 0?et.escapeValue:!0,this.useRawValueToEscape=et.useRawValueToEscape!==void 0?et.useRawValueToEscape:!1,this.prefix=et.prefix?regexEscape(et.prefix):et.prefixEscaped||"{{",this.suffix=et.suffix?regexEscape(et.suffix):et.suffixEscaped||"}}",this.formatSeparator=et.formatSeparator?et.formatSeparator:et.formatSeparator||",",this.unescapePrefix=et.unescapeSuffix?"":et.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":et.unescapeSuffix||"",this.nestingPrefix=et.nestingPrefix?regexEscape(et.nestingPrefix):et.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=et.nestingSuffix?regexEscape(et.nestingSuffix):et.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=et.nestingOptionsSeparator?et.nestingOptionsSeparator:et.nestingOptionsSeparator||",",this.maxReplaces=et.maxReplaces?et.maxReplaces:1e3,this.alwaysFormat=et.alwaysFormat!==void 0?et.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const _e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(_e,"g");const et=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(et,"g");const tt=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(tt,"g")}interpolate(_e,et,tt,nt){let rt,ot,it;const st=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function lt(ht){return ht.replace(/\$/g,"$$$$")}const ct=ht=>{if(ht.indexOf(this.formatSeparator)<0){const Et=deepFindWithDefaults(et,st,ht,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Et,void 0,tt,{...nt,...et,interpolationkey:ht}):Et}const gt=ht.split(this.formatSeparator),yt=gt.shift().trim(),vt=gt.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(et,st,yt,this.options.keySeparator,this.options.ignoreJSONStructure),vt,tt,{...nt,...et,interpolationkey:yt})};this.resetRegExp();const ft=nt&&nt.missingInterpolationHandler||this.options.missingInterpolationHandler,dt=nt&&nt.interpolation&&nt.interpolation.skipOnVariables!==void 0?nt.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:ht=>lt(ht)},{regex:this.regexp,safeValue:ht=>this.escapeValue?lt(this.escape(ht)):lt(ht)}].forEach(ht=>{for(it=0;rt=ht.regex.exec(_e);){const gt=rt[1].trim();if(ot=ct(gt),ot===void 0)if(typeof ft=="function"){const vt=ft(_e,rt,nt);ot=typeof vt=="string"?vt:""}else if(nt&&Object.prototype.hasOwnProperty.call(nt,gt))ot="";else if(dt){ot=rt[0];continue}else this.logger.warn(`missed to pass in variable ${gt} for interpolating ${_e}`),ot="";else typeof ot!="string"&&!this.useRawValueToEscape&&(ot=makeString(ot));const yt=ht.safeValue(ot);if(_e=_e.replace(rt[0],yt),dt?(ht.regex.lastIndex+=ot.length,ht.regex.lastIndex-=rt[0].length):ht.regex.lastIndex=0,it++,it>=this.maxReplaces)break}}),_e}nest(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt,rt,ot;function it(st,lt){const ct=this.nestingOptionsSeparator;if(st.indexOf(ct)<0)return st;const ft=st.split(new RegExp(`${ct}[ ]*{`));let dt=`{${ft[1]}`;st=ft[0],dt=this.interpolate(dt,ot);const pt=dt.match(/'/g),ht=dt.match(/"/g);(pt&&pt.length%2===0&&!ht||ht.length%2!==0)&&(dt=dt.replace(/'/g,'"'));try{ot=JSON.parse(dt),lt&&(ot={...lt,...ot})}catch(gt){return this.logger.warn(`failed parsing options string in nesting for key ${st}`,gt),`${st}${ct}${dt}`}return delete ot.defaultValue,st}for(;nt=this.nestingRegexp.exec(_e);){let st=[];ot={...tt},ot=ot.replace&&typeof ot.replace!="string"?ot.replace:ot,ot.applyPostProcessor=!1,delete ot.defaultValue;let lt=!1;if(nt[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(nt[1])){const ct=nt[1].split(this.formatSeparator).map(ft=>ft.trim());nt[1]=ct.shift(),st=ct,lt=!0}if(rt=et(it.call(this,nt[1].trim(),ot),ot),rt&&nt[0]===_e&&typeof rt!="string")return rt;typeof rt!="string"&&(rt=makeString(rt)),rt||(this.logger.warn(`missed to resolve ${nt[1]} for nesting ${_e}`),rt=""),lt&&(rt=st.reduce((ct,ft)=>this.format(ct,ft,tt.lng,{...tt,interpolationkey:nt[1].trim()}),rt.trim())),_e=_e.replace(nt[0],rt),this.regexp.lastIndex=0}return _e}}function parseFormatStr($){let _e=$.toLowerCase().trim();const et={};if($.indexOf("(")>-1){const tt=$.split("(");_e=tt[0].toLowerCase().trim();const nt=tt[1].substring(0,tt[1].length-1);_e==="currency"&&nt.indexOf(":")<0?et.currency||(et.currency=nt.trim()):_e==="relativetime"&&nt.indexOf(":")<0?et.range||(et.range=nt.trim()):nt.split(";").forEach(ot=>{if(!ot)return;const[it,...st]=ot.split(":"),lt=st.join(":").trim().replace(/^'+|'+$/g,"");et[it.trim()]||(et[it.trim()]=lt),lt==="false"&&(et[it.trim()]=!1),lt==="true"&&(et[it.trim()]=!0),isNaN(lt)||(et[it.trim()]=parseInt(lt,10))})}return{formatName:_e,formatOptions:et}}function createCachedFormatter($){const _e={};return function(tt,nt,rt){const ot=nt+JSON.stringify(rt);let it=_e[ot];return it||(it=$(getCleanedCode(nt),rt),_e[ot]=it),it(tt)}}class Formatter{constructor(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=_e,this.formats={number:createCachedFormatter((et,tt)=>{const nt=new Intl.NumberFormat(et,{...tt});return rt=>nt.format(rt)}),currency:createCachedFormatter((et,tt)=>{const nt=new Intl.NumberFormat(et,{...tt,style:"currency"});return rt=>nt.format(rt)}),datetime:createCachedFormatter((et,tt)=>{const nt=new Intl.DateTimeFormat(et,{...tt});return rt=>nt.format(rt)}),relativetime:createCachedFormatter((et,tt)=>{const nt=new Intl.RelativeTimeFormat(et,{...tt});return rt=>nt.format(rt,tt.range||"day")}),list:createCachedFormatter((et,tt)=>{const nt=new Intl.ListFormat(et,{...tt});return rt=>nt.format(rt)})},this.init(_e)}init(_e){const tt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=tt.formatSeparator?tt.formatSeparator:tt.formatSeparator||","}add(_e,et){this.formats[_e.toLowerCase().trim()]=et}addCached(_e,et){this.formats[_e.toLowerCase().trim()]=createCachedFormatter(et)}format(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return et.split(this.formatSeparator).reduce((it,st)=>{const{formatName:lt,formatOptions:ct}=parseFormatStr(st);if(this.formats[lt]){let ft=it;try{const dt=nt&&nt.formatParams&&nt.formatParams[nt.interpolationkey]||{},pt=dt.locale||dt.lng||nt.locale||nt.lng||tt;ft=this.formats[lt](it,pt,{...ct,...nt,...dt})}catch(dt){this.logger.warn(dt)}return ft}else this.logger.warn(`there was no format function for ${lt}`);return it},_e)}}function removePending($,_e){$.pending[_e]!==void 0&&(delete $.pending[_e],$.pendingCount--)}class Connector extends EventEmitter{constructor(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=_e,this.store=et,this.services=tt,this.languageUtils=tt.languageUtils,this.options=nt,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=nt.maxParallelReads||10,this.readingCalls=0,this.maxRetries=nt.maxRetries>=0?nt.maxRetries:5,this.retryTimeout=nt.retryTimeout>=1?nt.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(tt,nt.backend,nt)}queueLoad(_e,et,tt,nt){const rt={},ot={},it={},st={};return _e.forEach(lt=>{let ct=!0;et.forEach(ft=>{const dt=`${lt}|${ft}`;!tt.reload&&this.store.hasResourceBundle(lt,ft)?this.state[dt]=2:this.state[dt]<0||(this.state[dt]===1?ot[dt]===void 0&&(ot[dt]=!0):(this.state[dt]=1,ct=!1,ot[dt]===void 0&&(ot[dt]=!0),rt[dt]===void 0&&(rt[dt]=!0),st[ft]===void 0&&(st[ft]=!0)))}),ct||(it[lt]=!0)}),(Object.keys(rt).length||Object.keys(ot).length)&&this.queue.push({pending:ot,pendingCount:Object.keys(ot).length,loaded:{},errors:[],callback:nt}),{toLoad:Object.keys(rt),pending:Object.keys(ot),toLoadLanguages:Object.keys(it),toLoadNamespaces:Object.keys(st)}}loaded(_e,et,tt){const nt=_e.split("|"),rt=nt[0],ot=nt[1];et&&this.emit("failedLoading",rt,ot,et),tt&&this.store.addResourceBundle(rt,ot,tt),this.state[_e]=et?-1:2;const it={};this.queue.forEach(st=>{pushPath(st.loaded,[rt],ot),removePending(st,_e),et&&st.errors.push(et),st.pendingCount===0&&!st.done&&(Object.keys(st.loaded).forEach(lt=>{it[lt]||(it[lt]={});const ct=st.loaded[lt];ct.length&&ct.forEach(ft=>{it[lt][ft]===void 0&&(it[lt][ft]=!0)})}),st.done=!0,st.errors.length?st.callback(st.errors):st.callback())}),this.emit("loaded",it),this.queue=this.queue.filter(st=>!st.done)}read(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,ot=arguments.length>5?arguments[5]:void 0;if(!_e.length)return ot(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:_e,ns:et,fcName:tt,tried:nt,wait:rt,callback:ot});return}this.readingCalls++;const it=(lt,ct)=>{if(this.readingCalls--,this.waitingReads.length>0){const ft=this.waitingReads.shift();this.read(ft.lng,ft.ns,ft.fcName,ft.tried,ft.wait,ft.callback)}if(lt&&ct&&nt{this.read.call(this,_e,et,tt,nt+1,rt*2,ot)},rt);return}ot(lt,ct)},st=this.backend[tt].bind(this.backend);if(st.length===2){try{const lt=st(_e,et);lt&&typeof lt.then=="function"?lt.then(ct=>it(null,ct)).catch(it):it(null,lt)}catch(lt){it(lt)}return}return st(_e,et,it)}prepareLoading(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),nt&&nt();typeof _e=="string"&&(_e=this.languageUtils.toResolveHierarchy(_e)),typeof et=="string"&&(et=[et]);const rt=this.queueLoad(_e,et,tt,nt);if(!rt.toLoad.length)return rt.pending.length||nt(),null;rt.toLoad.forEach(ot=>{this.loadOne(ot)})}load(_e,et,tt){this.prepareLoading(_e,et,{},tt)}reload(_e,et,tt){this.prepareLoading(_e,et,{reload:!0},tt)}loadOne(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const tt=_e.split("|"),nt=tt[0],rt=tt[1];this.read(nt,rt,"read",void 0,void 0,(ot,it)=>{ot&&this.logger.warn(`${et}loading namespace ${rt} for language ${nt} failed`,ot),!ot&&it&&this.logger.log(`${et}loaded namespace ${rt} for language ${nt}`,it),this.loaded(_e,ot,it)})}saveMissing(_e,et,tt,nt,rt){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},it=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(et)){this.logger.warn(`did not save key "${tt}" as the namespace "${et}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(tt==null||tt==="")){if(this.backend&&this.backend.create){const st={...ot,isUpdate:rt},lt=this.backend.create.bind(this.backend);if(lt.length<6)try{let ct;lt.length===5?ct=lt(_e,et,tt,nt,st):ct=lt(_e,et,tt,nt),ct&&typeof ct.then=="function"?ct.then(ft=>it(null,ft)).catch(it):it(null,ct)}catch(ct){it(ct)}else lt(_e,et,tt,nt,it,st)}!_e||!_e[0]||this.store.addResource(_e[0],et,tt,nt)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(_e){let et={};if(typeof _e[1]=="object"&&(et=_e[1]),typeof _e[1]=="string"&&(et.defaultValue=_e[1]),typeof _e[2]=="string"&&(et.tDescription=_e[2]),typeof _e[2]=="object"||typeof _e[3]=="object"){const tt=_e[3]||_e[2];Object.keys(tt).forEach(nt=>{et[nt]=tt[nt]})}return et},interpolation:{escapeValue:!0,format:($,_e,et,tt)=>$,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions($){return typeof $.ns=="string"&&($.ns=[$.ns]),typeof $.fallbackLng=="string"&&($.fallbackLng=[$.fallbackLng]),typeof $.fallbackNS=="string"&&($.fallbackNS=[$.fallbackNS]),$.supportedLngs&&$.supportedLngs.indexOf("cimode")<0&&($.supportedLngs=$.supportedLngs.concat(["cimode"])),$}function noop(){}function bindMemberFunctions($){Object.getOwnPropertyNames(Object.getPrototypeOf($)).forEach(et=>{typeof $[et]=="function"&&($[et]=$[et].bind($))})}class I18n extends EventEmitter{constructor(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(_e),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),et&&!this.isInitialized&&!_e.isClone){if(!this.options.initImmediate)return this.init(_e,et),this;setTimeout(()=>{this.init(_e,et)},0)}}init(){var _e=this;let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=arguments.length>1?arguments[1]:void 0;typeof et=="function"&&(tt=et,et={}),!et.defaultNS&&et.defaultNS!==!1&&et.ns&&(typeof et.ns=="string"?et.defaultNS=et.ns:et.ns.indexOf("translation")<0&&(et.defaultNS=et.ns[0]));const nt=get();this.options={...nt,...this.options,...transformOptions(et)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...nt.interpolation,...this.options.interpolation}),et.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=et.keySeparator),et.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=et.nsSeparator);function rt(ct){return ct?typeof ct=="function"?new ct:ct:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(rt(this.modules.logger),this.options):baseLogger.init(null,this.options);let ct;this.modules.formatter?ct=this.modules.formatter:typeof Intl<"u"&&(ct=Formatter);const ft=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const dt=this.services;dt.logger=baseLogger,dt.resourceStore=this.store,dt.languageUtils=ft,dt.pluralResolver=new PluralResolver(ft,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ct&&(!this.options.interpolation.format||this.options.interpolation.format===nt.interpolation.format)&&(dt.formatter=rt(ct),dt.formatter.init(dt,this.options),this.options.interpolation.format=dt.formatter.format.bind(dt.formatter)),dt.interpolator=new Interpolator(this.options),dt.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},dt.backendConnector=new Connector(rt(this.modules.backend),dt.resourceStore,dt,this.options),dt.backendConnector.on("*",function(pt){for(var ht=arguments.length,gt=new Array(ht>1?ht-1:0),yt=1;yt1?ht-1:0),yt=1;yt{pt.init&&pt.init(this)})}if(this.format=this.options.interpolation.format,tt||(tt=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const ct=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ct.length>0&&ct[0]!=="dev"&&(this.options.lng=ct[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(ct=>{this[ct]=function(){return _e.store[ct](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(ct=>{this[ct]=function(){return _e.store[ct](...arguments),_e}});const st=defer(),lt=()=>{const ct=(ft,dt)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),st.resolve(dt),tt(ft,dt)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return ct(null,this.t.bind(this));this.changeLanguage(this.options.lng,ct)};return this.options.resources||!this.options.initImmediate?lt():setTimeout(lt,0),st}loadResources(_e){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const nt=typeof _e=="string"?_e:this.language;if(typeof _e=="function"&&(tt=_e),!this.options.resources||this.options.partialBundledLanguages){if(nt&&nt.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return tt();const rt=[],ot=it=>{if(!it||it==="cimode")return;this.services.languageUtils.toResolveHierarchy(it).forEach(lt=>{lt!=="cimode"&&rt.indexOf(lt)<0&&rt.push(lt)})};nt?ot(nt):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(st=>ot(st)),this.options.preload&&this.options.preload.forEach(it=>ot(it)),this.services.backendConnector.load(rt,this.options.ns,it=>{!it&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),tt(it)})}else tt(null)}reloadResources(_e,et,tt){const nt=defer();return _e||(_e=this.languages),et||(et=this.options.ns),tt||(tt=noop),this.services.backendConnector.reload(_e,et,rt=>{nt.resolve(),tt(rt)}),nt}use(_e){if(!_e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!_e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return _e.type==="backend"&&(this.modules.backend=_e),(_e.type==="logger"||_e.log&&_e.warn&&_e.error)&&(this.modules.logger=_e),_e.type==="languageDetector"&&(this.modules.languageDetector=_e),_e.type==="i18nFormat"&&(this.modules.i18nFormat=_e),_e.type==="postProcessor"&&postProcessor.addPostProcessor(_e),_e.type==="formatter"&&(this.modules.formatter=_e),_e.type==="3rdParty"&&this.modules.external.push(_e),this}setResolvedLanguage(_e){if(!(!_e||!this.languages)&&!(["cimode","dev"].indexOf(_e)>-1))for(let et=0;et-1)&&this.store.hasLanguageSomeTranslations(tt)){this.resolvedLanguage=tt;break}}}changeLanguage(_e,et){var tt=this;this.isLanguageChangingTo=_e;const nt=defer();this.emit("languageChanging",_e);const rt=st=>{this.language=st,this.languages=this.services.languageUtils.toResolveHierarchy(st),this.resolvedLanguage=void 0,this.setResolvedLanguage(st)},ot=(st,lt)=>{lt?(rt(lt),this.translator.changeLanguage(lt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",lt),this.logger.log("languageChanged",lt)):this.isLanguageChangingTo=void 0,nt.resolve(function(){return tt.t(...arguments)}),et&&et(st,function(){return tt.t(...arguments)})},it=st=>{!_e&&!st&&this.services.languageDetector&&(st=[]);const lt=typeof st=="string"?st:this.services.languageUtils.getBestMatchFromCodes(st);lt&&(this.language||rt(lt),this.translator.language||this.translator.changeLanguage(lt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(lt)),this.loadResources(lt,ct=>{ot(ct,lt)})};return!_e&&this.services.languageDetector&&!this.services.languageDetector.async?it(this.services.languageDetector.detect()):!_e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(it):this.services.languageDetector.detect(it):it(_e),nt}getFixedT(_e,et,tt){var nt=this;const rt=function(ot,it){let st;if(typeof it!="object"){for(var lt=arguments.length,ct=new Array(lt>2?lt-2:0),ft=2;ft`${st.keyPrefix}${dt}${ht}`):pt=st.keyPrefix?`${st.keyPrefix}${dt}${ot}`:ot,nt.t(pt,st)};return typeof _e=="string"?rt.lng=_e:rt.lngs=_e,rt.ns=et,rt.keyPrefix=tt,rt}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(_e){this.options.defaultNS=_e}hasLoadedNamespace(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const tt=et.lng||this.resolvedLanguage||this.languages[0],nt=this.options?this.options.fallbackLng:!1,rt=this.languages[this.languages.length-1];if(tt.toLowerCase()==="cimode")return!0;const ot=(it,st)=>{const lt=this.services.backendConnector.state[`${it}|${st}`];return lt===-1||lt===2};if(et.precheck){const it=et.precheck(this,ot);if(it!==void 0)return it}return!!(this.hasResourceBundle(tt,_e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ot(tt,_e)&&(!nt||ot(rt,_e)))}loadNamespaces(_e,et){const tt=defer();return this.options.ns?(typeof _e=="string"&&(_e=[_e]),_e.forEach(nt=>{this.options.ns.indexOf(nt)<0&&this.options.ns.push(nt)}),this.loadResources(nt=>{tt.resolve(),et&&et(nt)}),tt):(et&&et(),Promise.resolve())}loadLanguages(_e,et){const tt=defer();typeof _e=="string"&&(_e=[_e]);const nt=this.options.preload||[],rt=_e.filter(ot=>nt.indexOf(ot)<0);return rt.length?(this.options.preload=nt.concat(rt),this.loadResources(ot=>{tt.resolve(),et&&et(ot)}),tt):(et&&et(),Promise.resolve())}dir(_e){if(_e||(_e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!_e)return"rtl";const et=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],tt=this.services&&this.services.languageUtils||new LanguageUtil(get());return et.indexOf(tt.getLanguagePartFromCode(_e))>-1||_e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=arguments.length>1?arguments[1]:void 0;return new I18n(_e,et)}cloneInstance(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const tt=_e.forkResourceStore;tt&&delete _e.forkResourceStore;const nt={...this.options,..._e,isClone:!0},rt=new I18n(nt);return(_e.debug!==void 0||_e.prefix!==void 0)&&(rt.logger=rt.logger.clone(_e)),["store","services","language"].forEach(it=>{rt[it]=this[it]}),rt.services={...this.services},rt.services.utils={hasLoadedNamespace:rt.hasLoadedNamespace.bind(rt)},tt&&(rt.store=new ResourceStore(this.store.data,nt),rt.services.resourceStore=rt.store),rt.translator=new Translator(rt.services,nt),rt.translator.on("*",function(it){for(var st=arguments.length,lt=new Array(st>1?st-1:0),ct=1;ct{const{t:$}=useTranslation(),{scheme:_e}=useColorScheme(),et=css({paddingLeft:"8px",opacity:_e==="dark"?"0.8":"1",height:"100%","> *":{height:"calc(100% - 12px)"},outline:"unset","&:hover":{backgroundColor:"unset"},"&:focus":{backgroundColor:"unset"}},"","");return jsx$1(MainMenuButton,{Icon:SvgOpencastEditor,stateName:MainMenuStateNames.cutting,bottomText:"",ariaLabelText:$("mainMenu.cutting-button"),customCSS:et,iconCustomCSS:_ref2})},LanguageButton=()=>{const{t:$}=useTranslation(),_e=st=>st===instance.resolvedLanguage,et=st=>{instance.changeLanguage(st)},tt=st=>new Intl.DisplayNames([st],{type:"language"}).of(st),nt=instance.options.resources&&Object.keys(instance.options.resources),rt=nt==null?void 0:nt.map(st=>({value:st,label:tt(st)}));if(rt===void 0)return jsx$1(Fragment,{});const ot=Object.values(rt).map(st=>checkboxMenuItem({checked:_e(st.value),children:jsx$1(Fragment,{children:st.label}),onClick:()=>{et(st==null?void 0:st.value)}})),it=$("language.language");return jsx$1(WithHeaderMenu,{menu:{label:it,items:ot,breakpoint:BREAKPOINT_SMALL},children:jsx$1(HeaderButton,{Icon:HiOutlineTranslate,label:it})})},ThemeButton=()=>{const{t:$}=useTranslation(),{scheme:_e,isAuto:et,update:tt}=useColorScheme(),nt=et?"auto":_e,ot=["auto","light","dark","light-high-contrast","dark-high-contrast"].map(it=>checkboxMenuItem({checked:nt===it,children:jsx$1(Fragment,{children:$(`theme.${it}`)}),onClick:()=>tt(it)}));return jsx$1(WithHeaderMenu,{menu:{label:$("theme.appearance"),items:ot,breakpoint:BREAKPOINT_MEDIUM},children:jsx$1(HeaderButton,{Icon:_e==="light"||_e==="light-high-contrast"?LuMoon:LuSun,label:$("theme.appearance")})})};var _ref={name:"1ebfir2",styles:"display:flex;align-items:center;font-size:22px"};const HeaderButton=React$5.forwardRef(({Icon:$,label:_e,...et},tt)=>{const nt=useTheme(),rt=css({display:"flex",alignItems:"center",...flexGapReplacementStyle(8,!1),fontSize:16,fontFamily:"inherit",fontWeight:500,color:`${nt.header_text}`,outline:`${nt.menuButton_outline}`,padding:"6px 8px",":hover, :active":{outline:`2px solid ${nt.metadata_highlight}`,backgroundColor:nt.header_button_hover_bg,color:`${nt.header_text}`},":focus":{backgroundColor:"inherit",color:`${nt.header_text}`},":focus:hover":{backgroundColor:nt.header_button_hover_bg,color:`${nt.header_text}`}},"",""),ot=_ref;return jsxs(ProtoButton,{...et,ref:tt,css:[basicButtonStyle(nt),rt,"",""],children:[jsx$1($,{css:ot}),jsx$1("span",{css:css({[`@media (max-width: ${BREAKPOINT_MEDIUM}px)`]:{display:"none"}},"",""),children:_e})]})});function App(){return jsxs("div",{className:"App",children:[jsx$1(GlobalStyle,{}),jsx$1(Header,{}),jsx$1(Body,{})]})}const scriptRel="modulepreload",assetsURL=function($){return"/"+$},seen={},__vitePreload=function $(_e,et,tt){let nt=Promise.resolve();if(et&&et.length>0){const rt=document.getElementsByTagName("link");nt=Promise.all(et.map(ot=>{if(ot=assetsURL(ot),ot in seen)return;seen[ot]=!0;const it=ot.endsWith(".css"),st=it?'[rel="stylesheet"]':"";if(!!tt)for(let ft=rt.length-1;ft>=0;ft--){const dt=rt[ft];if(dt.href===ot&&(!it||dt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${ot}"]${st}`))return;const ct=document.createElement("link");if(ct.rel=it?"stylesheet":scriptRel,it||(ct.as="script",ct.crossOrigin=""),ct.href=ot,document.head.appendChild(ct),it)return new Promise((ft,dt)=>{ct.addEventListener("load",ft),ct.addEventListener("error",()=>dt(new Error(`Unable to preload CSS for ${ot}`)))})}))}return nt.then(()=>_e()).catch(rt=>{const ot=new Event("vite:preloadError",{cancelable:!0});if(ot.payload=rt,window.dispatchEvent(ot),!ot.defaultPrevented)throw rt})};var arr=[],each=arr.forEach,slice=arr.slice;function defaults($){return each.call(slice.call(arguments,1),function(_e){if(_e)for(var et in _e)$[et]===void 0&&($[et]=_e[et])}),$}var fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,serializeCookie=function $(_e,et,tt){var nt=tt||{};nt.path=nt.path||"/";var rt=encodeURIComponent(et),ot="".concat(_e,"=").concat(rt);if(nt.maxAge>0){var it=nt.maxAge-0;if(Number.isNaN(it))throw new Error("maxAge should be a Number");ot+="; Max-Age=".concat(Math.floor(it))}if(nt.domain){if(!fieldContentRegExp.test(nt.domain))throw new TypeError("option domain is invalid");ot+="; Domain=".concat(nt.domain)}if(nt.path){if(!fieldContentRegExp.test(nt.path))throw new TypeError("option path is invalid");ot+="; Path=".concat(nt.path)}if(nt.expires){if(typeof nt.expires.toUTCString!="function")throw new TypeError("option expires is invalid");ot+="; Expires=".concat(nt.expires.toUTCString())}if(nt.httpOnly&&(ot+="; HttpOnly"),nt.secure&&(ot+="; Secure"),nt.sameSite){var st=typeof nt.sameSite=="string"?nt.sameSite.toLowerCase():nt.sameSite;switch(st){case!0:ot+="; SameSite=Strict";break;case"lax":ot+="; SameSite=Lax";break;case"strict":ot+="; SameSite=Strict";break;case"none":ot+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return ot},cookie={create:function $(_e,et,tt,nt){var rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};tt&&(rt.expires=new Date,rt.expires.setTime(rt.expires.getTime()+tt*60*1e3)),nt&&(rt.domain=nt),document.cookie=serializeCookie(_e,encodeURIComponent(et),rt)},read:function $(_e){for(var et="".concat(_e,"="),tt=document.cookie.split(";"),nt=0;nt-1&&(tt=window.location.hash.substring(window.location.hash.indexOf("?")));for(var nt=tt.substring(1),rt=nt.split("&"),ot=0;ot0){var st=rt[ot].substring(0,it);st===_e.lookupQuerystring&&(et=rt[ot].substring(it+1))}}}return et}},hasLocalStorageSupport=null,localStorageAvailable=function $(){if(hasLocalStorageSupport!==null)return hasLocalStorageSupport;try{hasLocalStorageSupport=window!=="undefined"&&window.localStorage!==null;var _e="i18next.translate.boo";window.localStorage.setItem(_e,"foo"),window.localStorage.removeItem(_e)}catch{hasLocalStorageSupport=!1}return hasLocalStorageSupport},localStorage={name:"localStorage",lookup:function $(_e){var et;if(_e.lookupLocalStorage&&localStorageAvailable()){var tt=window.localStorage.getItem(_e.lookupLocalStorage);tt&&(et=tt)}return et},cacheUserLanguage:function $(_e,et){et.lookupLocalStorage&&localStorageAvailable()&&window.localStorage.setItem(et.lookupLocalStorage,_e)}},hasSessionStorageSupport=null,sessionStorageAvailable=function $(){if(hasSessionStorageSupport!==null)return hasSessionStorageSupport;try{hasSessionStorageSupport=window!=="undefined"&&window.sessionStorage!==null;var _e="i18next.translate.boo";window.sessionStorage.setItem(_e,"foo"),window.sessionStorage.removeItem(_e)}catch{hasSessionStorageSupport=!1}return hasSessionStorageSupport},sessionStorage={name:"sessionStorage",lookup:function $(_e){var et;if(_e.lookupSessionStorage&&sessionStorageAvailable()){var tt=window.sessionStorage.getItem(_e.lookupSessionStorage);tt&&(et=tt)}return et},cacheUserLanguage:function $(_e,et){et.lookupSessionStorage&&sessionStorageAvailable()&&window.sessionStorage.setItem(et.lookupSessionStorage,_e)}},navigator$1={name:"navigator",lookup:function $(_e){var et=[];if(typeof navigator<"u"){if(navigator.languages)for(var tt=0;tt0?et:void 0}},htmlTag={name:"htmlTag",lookup:function $(_e){var et,tt=_e.htmlTag||(typeof document<"u"?document.documentElement:null);return tt&&typeof tt.getAttribute=="function"&&(et=tt.getAttribute("lang")),et}},path={name:"path",lookup:function $(_e){var et;if(typeof window<"u"){var tt=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(tt instanceof Array)if(typeof _e.lookupFromPathIndex=="number"){if(typeof tt[_e.lookupFromPathIndex]!="string")return;et=tt[_e.lookupFromPathIndex].replace("/","")}else et=tt[0].replace("/","")}return et}},subdomain={name:"subdomain",lookup:function $(_e){var et=typeof _e.lookupFromSubdomainIndex=="number"?_e.lookupFromSubdomainIndex+1:1,tt=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(tt)return tt[et]}};function getDefaults(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(_e){return _e}}}var Browser=function(){function $(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2(this,$),this.type="languageDetector",this.detectors={},this.init(_e,et)}return _createClass$2($,[{key:"init",value:function(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=et||{languageUtils:{}},this.options=defaults(tt,this.options||{},getDefaults()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(rt){return rt.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=nt,this.addDetector(cookie$1),this.addDetector(querystring),this.addDetector(localStorage),this.addDetector(sessionStorage),this.addDetector(navigator$1),this.addDetector(htmlTag),this.addDetector(path),this.addDetector(subdomain)}},{key:"addDetector",value:function(et){this.detectors[et.name]=et}},{key:"detect",value:function(et){var tt=this;et||(et=this.options.order);var nt=[];return et.forEach(function(rt){if(tt.detectors[rt]){var ot=tt.detectors[rt].lookup(tt.options);ot&&typeof ot=="string"&&(ot=[ot]),ot&&(nt=nt.concat(ot))}}),nt=nt.map(function(rt){return tt.options.convertDetectedLanguage(rt)}),this.services.languageUtils.getBestMatchFromCodes?nt:nt.length>0?nt[0]:null}},{key:"cacheUserLanguage",value:function(et,tt){var nt=this;tt||(tt=this.options.caches),tt&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(et)>-1||tt.forEach(function(rt){nt.detectors[rt]&&nt.detectors[rt].cacheUserLanguage(et,nt.options)}))}}]),$}();Browser.type="languageDetector";const locales=["de-DE.json","en-US.json","es-ES.json","fr-FR.json","nl-NL.json","zh-CN.json","zh-TW.json"],locales$1=Object.freeze(Object.defineProperty({__proto__:null,default:locales},Symbol.toStringTag,{value:"Module"})),debug=!!new URLSearchParams(window.location.search).get("debug"),resources={},data=Object.assign({"./locales/cs-CZ.json":()=>__vitePreload(()=>import("./cs-CZ--okNJMLP.js"),__vite__mapDeps([])),"./locales/de-DE.json":()=>__vitePreload(()=>import("./de-DE-vwhqblEz.js"),__vite__mapDeps([])),"./locales/el-GR.json":()=>__vitePreload(()=>import("./el-GR-xAZUGXPa.js"),__vite__mapDeps([])),"./locales/en-US.json":()=>__vitePreload(()=>import("./en-US-_-ySsZ7d.js"),__vite__mapDeps([])),"./locales/es-ES.json":()=>__vitePreload(()=>import("./es-ES-NI-qxCWZ.js"),__vite__mapDeps([])),"./locales/fr-FR.json":()=>__vitePreload(()=>import("./fr-FR-e_f8XltA.js"),__vite__mapDeps([])),"./locales/locales.json":()=>__vitePreload(()=>Promise.resolve().then(()=>locales$1),void 0),"./locales/nl-NL.json":()=>__vitePreload(()=>import("./nl-NL-134vhINp.js"),__vite__mapDeps([])),"./locales/zh-CN.json":()=>__vitePreload(()=>import("./zh-CN-IyN_Tbc-.js"),__vite__mapDeps([])),"./locales/zh-TW.json":()=>__vitePreload(()=>import("./zh-TW-b9HaxZsI.js"),__vite__mapDeps([]))});for(const $ in data){const _e=$.replace(/^.*[\\/]/,"").replace(/\..*$/,"");if(!locales.some(nt=>nt.includes(_e)))continue;const et=_e.replace(/-.*$/,""),tt=locales.filter(nt=>nt.indexOf(et)===0).length===1;data[$]().then(nt=>{const rt=JSON.parse(JSON.stringify(nt));tt||(resources[_e]={translation:rt}),resources[et]={translation:rt}})}instance.use(initReactI18next).use(Browser).init({resources,fallbackLng:["en-US","en"],nonExplicitSupportedLngs:!0,debug});debug&&(console.debug("language",instance.language),console.debug("languages",instance.languages));const container=document.getElementById("root");if(!container)throw new Error("Failed to find the root element");const root=client$1.createRoot(container),initialize=Promise.race([init(),sleep(600)]);initialize.then(()=>{root.render(jsx$1(React$5.StrictMode,{children:jsx$1(Provider_default,{store,children:jsx$1(ColorSchemeProvider,{children:jsx$1(App,{})})})}))},$=>root.render(jsxs("p",{children:[`Fatal error while loading app: ${$.message}`,jsx$1("br",{}),"This might be caused by a incorrect configuration by the system administrator."]}))); + lightgrey ${nt/tt*100}%)`,borderRadius:"3px"},"",""),ref:st,children:jsx$1("div",{css:css({position:"absolute",width:"2px",height:"100%",left:nt/tt*lt,top:0,background:"black"},"","")})})})]})},TimelineSubtitleSegmentsList=({timelineWidth:$})=>{var nt;const et=useAppSelector(selectSelectedSubtitleById);return jsx$1("div",{css:css({position:"relative",width:"100%",height:"80px",overflow:"hidden"},"",""),children:(nt=et==null?void 0:et.cues)==null?void 0:nt.map((rt,ot)=>jsx$1(TimelineSubtitleSegment,{timelineWidth:$,cue:rt,height:80,index:ot},rt.idInternal))})},TimelineSubtitleSegment=React$5.memo($=>{const _e=useAppDispatch(),et=useAppSelector(selectSelectedSubtitleId),tt=useAppSelector(selectDuration),[nt,rt]=reactExports.useState(0),[ot,it]=reactExports.useState(0),[st,lt]=reactExports.useState(0),[ct,ft]=reactExports.useState(0),[dt,pt]=reactExports.useState({x:0,y:0}),[ht,gt]=reactExports.useState(!1),yt=React$5.useRef(null),vt=useTheme();reactExports.useEffect(()=>{pt({x:$.cue.startTime/tt*$.timelineWidth,y:0})},[$.cue.startTime,tt,$.timelineWidth]),reactExports.useEffect(()=>{rt(($.cue.endTime-$.cue.startTime)/tt*$.timelineWidth),it($.height),lt(0),ft(0)},[tt,$.cue.endTime,$.cue.startTime,$.height,$.timelineWidth]);const Et=(St,Pt)=>{St<0&&(St=0),Pt{let Mt=st,Rt=ct;const kt=Pt.height-ot,Nt=Pt.width-nt;At[0]==="n"?Rt-=kt:At[0]==="s"&&(Rt+=kt),At[At.length-1]==="w"?Mt-=Nt:At[At.length-1]==="e"&&(Mt+=Nt),rt(Pt.width),it(Pt.height),lt(Mt),ft(Rt)},Tt=(St,{handle:Pt})=>{const Mt=nt/$.timelineWidth*tt,Rt=$.cue.endTime-$.cue.startTime-Mt;let kt=$.cue.startTime,Nt=$.cue.endTime;Pt==="w"&&(kt=$.cue.startTime+Rt),Pt==="e"&&(Nt=$.cue.endTime+Rt),Et(kt,Nt),rt(($.cue.endTime-$.cue.startTime)/tt*$.timelineWidth),it($.height),lt(0),ft(0)},xt=St=>{gt(!0)},$t=(St,Pt)=>{const{x:At}=Pt;Et(At/$.timelineWidth*tt,At/$.timelineWidth*tt+($.cue.endTime-$.cue.startTime)),gt(!1)},wt=()=>{_e(setCurrentlyAt($.cue.startTime)),_e(setFocusSegmentTriggered(!0)),_e(setFocusSegmentId($.cue.idInternal)),_e(setFocusSegmentTriggered2(!0))},mt=css({position:"absolute",width:nt,height:ot,margin:`${ct}px 0px 0px ${st}px`,background:`${vt.subtitle_segment_bg}`,border:`${vt.subtitle_segment_border}`,borderRadius:"5px",boxSizing:"border-box",zIndex:1,cursor:ht?"grabbing":"grab",display:"flex",alignItems:"center"},"",""),Ct=css({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",padding:"8px",color:`${vt.subtitle_segment_text}`},"","");return jsx$1(Draggable$1,{onStart:xt,onStop:$t,defaultPosition:{x:10,y:10},position:dt,axis:"x",bounds:"parent",nodeRef:yt,cancel:".react-resizable-handle",children:jsx$1(Resizable,{height:ot,width:nt,onResize:Ot,onResizeStop:Tt,resizeHandles:["w"],children:jsx$1("div",{css:mt,ref:yt,onClick:wt,id:"no-scrolling",children:jsx$1("span",{css:Ct,children:$.cue.text})})})})});function _extends(){return _extends=Object.assign?Object.assign.bind():function($){for(var _e=1;_e=0)&&(et[nt]=$[nt]);return et}function ErrorMessage($){var _e=$.showError,et=$.meta,tt=$.formHelperTextProps,nt=$.helperText;return _e?React$5.createElement(FormHelperText$1,_extends({},tt),et.error||et.submitError):nt?React$5.createElement(FormHelperText$1,_extends({},tt),nt):React$5.createElement(React$5.Fragment,null)}var config={subscription:{error:!0,submitError:!0,dirtySinceLastSubmit:!0,touched:!0,modified:!0}},useFieldForErrors=function $(_e){return useField(_e,config)},showErrorOnChange=function $(_e){var et=_e.meta,tt=et.submitError,nt=et.dirtySinceLastSubmit,rt=et.error,ot=et.touched,it=et.modified;return!!((tt&&!nt||rt)&&(ot||it))},_excluded$4=["name","label","data","children","required","multiple","helperText","fieldProps","inputLabelProps","formControlProps","formHelperTextProps","menuItemProps","showError"],_excluded2$4=["name","value","onChange"];function Select($){var _e=$.name,et=$.label,tt=$.data,nt=$.children,rt=$.required,ot=$.multiple,it=$.helperText,st=$.fieldProps,lt=$.inputLabelProps,ct=$.formControlProps,ft=$.formHelperTextProps,dt=$.menuItemProps,pt=$.showError,ht=pt===void 0?showErrorOnChange:pt,gt=_objectWithoutPropertiesLoose($,_excluded$4);if(!tt&&!nt)throw new Error("Please specify either children or data as an attribute.");var yt=gt.variant,vt=useFieldForErrors(_e),Et=ht(vt);return React$5.createElement(Field,_extends({name:_e,render:function(Tt){var xt=Tt.input,$t=xt.name,wt=xt.value,mt=xt.onChange,Ct=_objectWithoutPropertiesLoose(xt,_excluded2$4),St=ot&&!wt?[]:wt,Pt="select-input-"+$t;return React$5.createElement(FormControl$1,_extends({required:rt,error:Et,fullWidth:!0,variant:yt},ct),!!et&&React$5.createElement(InputLabel$1,_extends({id:Pt},lt),et),React$5.createElement(Select$1$1,_extends({name:$t,value:St,onChange:mt,multiple:ot,label:et,labelId:Pt,inputProps:_extends({required:rt},Ct)},gt),tt?tt.map(function(At){return React$5.createElement(MenuItem$1,_extends({value:At.value,key:At.value,disabled:At.disabled},dt),At.label)}):nt),React$5.createElement(ErrorMessage,{showError:Et,meta:vt.meta,formHelperTextProps:ft,helperText:it}))}},st))}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let $=0;$<256;++$)byteToHex.push(($+256).toString(16).slice(1));function unsafeStringify($,_e=0){return byteToHex[$[_e+0]]+byteToHex[$[_e+1]]+byteToHex[$[_e+2]]+byteToHex[$[_e+3]]+"-"+byteToHex[$[_e+4]]+byteToHex[$[_e+5]]+"-"+byteToHex[$[_e+6]]+byteToHex[$[_e+7]]+"-"+byteToHex[$[_e+8]]+byteToHex[$[_e+9]]+"-"+byteToHex[$[_e+10]]+byteToHex[$[_e+11]]+byteToHex[$[_e+12]]+byteToHex[$[_e+13]]+byteToHex[$[_e+14]]+byteToHex[$[_e+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4($,_e,et){if(native.randomUUID&&!_e&&!$)return native.randomUUID();$=$||{};const tt=$.random||($.rng||rng)();if(tt[6]=tt[6]&15|64,tt[8]=tt[8]&63|128,_e){et=et||0;for(let nt=0;nt<16;++nt)_e[et+nt]=tt[nt];return _e}return unsafeStringify(tt)}const SubtitleSelect=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectSubtitlesFromOpencast),et=useAppSelector(selectSubtitles),[tt,nt]=reactExports.useState([]),[rt,ot]=reactExports.useState([]);reactExports.useEffect(()=>{const ct={...settings.subtitles.languages};let ft=_e.filter(yt=>!et[yt.id]).map(yt=>({id:yt.id,tags:yt.tags}));ft=Object.entries(et).map(yt=>({id:yt[0],tags:yt[1].tags})).concat(ft);const dt=_e.reduce((yt,vt)=>{const Et=vt.tags.find(Ot=>Ot.startsWith("lang:"));return Et&&yt.push({id:vt.id,lang:Et.split(":")[1].trim()}),yt},[]),pt=Object.entries(et).reduce((yt,vt)=>{const Et=vt[1].tags.find(Ot=>Ot.startsWith("lang:"));return Et&&yt.push({id:vt[0],lang:Et.split(":")[1].trim()}),yt},[]),ht=dt.concat(pt),gt=Object.entries(ct).reduce((yt,vt)=>(ht.find(Et=>Et.lang===vt[1].lang)?delete ct[vt[0]]:yt.push(it(vt[1])),yt),[]).map(yt=>({id:v4(),tags:yt}));nt(ft),ot(gt)},[_e,et,$]);const it=ct=>Object.entries(ct).map(ft=>`${ft[0]}:${ft[1]}`).concat(),st=css({display:"flex",flexDirection:"row",justifyContent:"center",flexWrap:"wrap",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:st,children:[(()=>{const ct=[];if(settings.subtitles.languages===void 0)return ct;for(const ft of tt){let dt=ft.tags.find(ht=>ht.startsWith("lang:"));dt=dt?dt.split(":")[1].trim():void 0;const pt=dt?((settings.subtitles||{}).icons||{})[dt]:void 0;ct.push(jsx$1(SubtitleSelectButton,{id:ft.id,title:generateButtonTitle(ft.tags,$),icon:pt},ft.id))}return ct.sort((ft,dt)=>ft.props.title.localeCompare(dt.props.title))})(),jsx$1(SubtitleAddButton,{subtitlesForDropdown:rt})]})};var _ref$e={name:"1k5vjoe",styles:"overflow:hidden;text-overflow:ellipsis;min-width:0"};const SubtitleSelectButton=({id:$,title:_e,icon:et})=>{const{t:tt}=useTranslation(),nt=useTheme(),rt=useAppDispatch(),ot=css({fontSize:"2.5em",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",background:`${nt.background_finish_menu_icon}`,color:`${nt.text}`,borderRadius:"50%",width:"90px",height:"90px"},"",""),it=_ref$e;return jsx$1(ThemedTooltip,{title:tt("subtitles.selectSubtitleButton-tooltip",{title:_e}),children:jsxs("div",{css:[basicButtonStyle(nt),tileButtonStyle(nt),"",""],role:"button",tabIndex:0,"aria-label":tt("subtitles.selectSubtitleButton-tooltip-aria",{title:_e}),onClick:()=>{rt(setIsDisplayEditView(!0)),rt(setSelectedSubtitleId($))},onKeyDown:st=>{(st.key===" "||st.key==="Enter")&&(rt(setIsDisplayEditView(!0)),rt(setSelectedSubtitleId($)))},children:[et&&jsx$1("div",{css:ot,children:et}),jsx$1("div",{css:it,children:_e??tt("subtitles.generic")+" "+$})]})})},SubtitleAddButton=({subtitlesForDropdown:$})=>{const{t:_e}=useTranslation(),et=useTheme(),tt=useAppDispatch(),[nt,rt]=reactExports.useState(!0),ot=()=>{const ft=[];for(const dt of $){const pt=generateButtonTitle(dt.tags,_e);ft.push({label:pt??_e("subtitles.generic")+" "+dt.id,value:dt.id})}return ft.sort((dt,pt)=>dt.label.localeCompare(pt.label)),ft},it=ft=>{const dt=ft.selectedSubtitle,pt=$.find(gt=>gt.id===dt),ht=pt?pt.tags:[];tt(setSubtitle({identifier:dt,subtitles:{cues:[],tags:ht}})),rt(!0),tt(setIsDisplayEditView(!0)),tt(setSelectedSubtitleId(dt))},st=css({display:nt?"flex":"none"},"",""),lt=css({display:nt?"none":"flex",flexDirection:"column",...flexGapReplacementStyle(30,!1),width:"80%",padding:"20px"},"",""),ct=css({padding:"10px 5px",width:"100%",boxShadow:"",border:`1px solid ${et.text}`,backgroundColor:`${et.background}`,color:`${et.text}`,"&[disabled]":{opacity:"0.6",cursor:"not-allowed"}},"","");return jsx$1(ThemedTooltip,{title:nt?_e("subtitles.createSubtitleButton-tooltip"):"",children:jsxs("div",{css:[basicButtonStyle(et),tileButtonStyle(et),!nt&&disableButtonAnimation,"",""],role:"button",tabIndex:0,"aria-label":_e(nt?"subtitles.createSubtitleButton-tooltip":"subtitles.createSubtitleButton-clicked-tooltip-aria"),onClick:()=>rt(!1),onKeyDown:ft=>{(ft.key===" "||ft.key==="Enter")&&rt(!1)},children:[jsx$1(LuPlus,{css:[st,"font-size:42px;",""]}),jsx$1(ReactFinalForm,{onSubmit:it,subscription:{submitting:!0,pristine:!0},render:({handleSubmit:ft,submitting:dt,pristine:pt})=>jsxs("form",{onSubmit:ht=>{ft(ht)},css:lt,children:[jsx$1(ThemeProvider,{theme:subtitleSelectStyle(et),children:jsx$1(Select,{css:css({backgroundColor:`${et.background}`},"",""),label:_e("subtitles.createSubtitleDropdown-label")??void 0,name:"selectedSubtitle",data:ot()})}),jsx$1(ThemedTooltip,{title:_e(dt||pt?"subtitles.createSubtitleButton-createButton-disabled-tooltip":"subtitles.createSubtitleButton-createButton-tooltip"),children:jsx$1("span",{children:jsx$1("button",{css:[basicButtonStyle(et),ct,"",""],type:"submit","aria-label":_e("subtitles.createSubtitleButton-createButton-tooltip"),disabled:dt||pt,children:_e("subtitles.createSubtitleButton-createButton")})})})]})})]})})};function generateButtonTitle($,_e){let et=$.find(lt=>lt.startsWith("lang:"));et=et?et.split(":")[1].trim():void 0,et=languageCodeToName(et==null?void 0:et.trim())??et;let tt="";const nt=$.find(lt=>lt.startsWith("type:"));(nt?nt.split(":")[1].trim()==="closed-caption":void 0)&&(tt="[CC]");let ot="";const it=$.find(lt=>lt.startsWith("generator-type:"));return(it?it.split(":")[1].trim()==="auto":void 0)&&(ot="("+_e("subtitles.autoGenerated")+")"),tt+" "+et+" "+ot}var _ref$d={name:"fxdlmq",styles:"display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%"},_ref2$8={name:"y63ki6",styles:"display:flex;flex-direction:column;padding-right:20px;padding-left:20px;gap:20px;height:100%"};const SubtitleEditor=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),[et,tt]=reactExports.useState(void 0),nt=useAppSelector(selectSelectedSubtitleById),rt=useAppSelector(selectSelectedSubtitleId),ot=useAppSelector(pt=>selectSubtitlesFromOpencastById(pt,rt)),it=useTheme();reactExports.useEffect(()=>{if((nt==null?void 0:nt.cues)===void 0&&ot!==void 0&&ot.subtitle!==void 0&&rt)try{_e(setSubtitle({identifier:rt,subtitles:{cues:parseSubtitle(ot.subtitle),tags:ot.tags}}))}catch(pt){pt instanceof Error?tt(pt.message):tt(String(pt))}else(nt==null?void 0:nt.cues)===void 0&&ot===void 0&&rt&&_e(setSubtitle({identifier:rt,subtitles:{cues:[],tags:[]}}))},[_e,ot,nt,rt]);const st=()=>nt?generateButtonTitle(nt.tags,$):$("subtitles.editTitle-loading"),lt=_ref2$8,ct=_ref$d,ft=css({display:"flex",flexDirection:"row",flexGrow:1,justifyContent:"space-between",alignItems:"top",width:"100%",paddingTop:"10px",paddingBottom:"10px",...flexGapReplacementStyle(30,!0),borderBottom:`${it.menuBorder}`},"","");return jsx$1("div",{css:lt,children:et!==void 0?jsx$1("span",{children:"Subtitle Parsing Error(s): "+et}):jsxs(Fragment,{children:[jsxs("div",{css:ct,children:[jsx$1(BackButton,{}),jsx$1("div",{css:[titleStyle(it),titleStyleBold(it),"",""],children:$("subtitles.editTitle",{title:st()})}),jsx$1(DownloadButton,{})]}),jsxs("div",{css:ft,children:[jsx$1(SubtitleListEditor,{}),jsx$1(SubtitleVideoArea,{})]}),jsx$1(SubtitleTimeline,{})]})})};var _ref3$4={name:"11g4mt0",styles:"font-size:16px"};const DownloadButton=()=>{const $=useAppSelector(selectSelectedSubtitleById),_e=()=>{const rt=new Blob([serializeSubtitle($.cues)],{type:"text/vtt"}),ot=window.URL.createObjectURL(rt),it=document.createElement("a");it.setAttribute("href",ot);const st=generateButtonTitle($.tags,et).trimEnd();it.setAttribute("download",`${st}.vtt`),it.click()},{t:et}=useTranslation(),tt=useTheme(),nt=css({fontSize:"16px",height:"10px",padding:"16px",justifyContent:"space-around",boxShadow:`${tt.boxShadow}`,background:`${tt.element_bg}`},"","");return jsx$1(ThemedTooltip,{title:et("subtitles.downloadButton-tooltip"),children:jsxs("div",{css:[basicButtonStyle(tt),nt,"",""],role:"button",onClick:()=>_e(),children:[jsx$1(LuDownload,{css:_ref3$4}),jsx$1("span",{children:et("subtitles.downloadButton-title")})]})})};var _ref4$3={name:"1qg6oif",styles:"font-size:24px"};const BackButton=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=useAppDispatch(),tt=css({height:"10px",padding:"16px",boxShadow:`${_e.boxShadow}`,background:`${_e.element_bg}`,justifyContent:"space-around"},"","");return jsx$1(ThemedTooltip,{title:$("subtitles.backButton-tooltip"),children:jsxs("div",{css:[basicButtonStyle(_e),tt,"",""],role:"button",tabIndex:0,"aria-label":$("subtitles.backButton-tooltip"),onClick:()=>et(setIsDisplayEditView(!1)),onKeyDown:nt=>{(nt.key===" "||nt.key==="Enter")&&et(setIsDisplayEditView(!1))},children:[jsx$1(LuChevronLeft,{css:_ref4$3}),jsx$1("span",{children:$("subtitles.backButton")})]})})},Subtitle=()=>{const $=useAppSelector(selectIsDisplayEditView);return jsx$1(Fragment,{children:$?jsx$1(SubtitleEditor,{}):jsx$1(SubtitleSelect,{})})},FinishMenu=()=>{const $=css({display:"flex",flexDirection:"row",justifyContent:"center",flexWrap:"wrap",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:$,children:[jsx$1(FinishMenuButton,{Icon:LuSave,stateName:"Save changes"}),jsx$1(FinishMenuButton,{Icon:LuDatabase,stateName:"Start processing"}),jsx$1(FinishMenuButton,{Icon:LuXCircle,stateName:"Discard changes"})]})};var _ref$c={name:"5sg0uh",styles:"padding:0px 20px"},_ref2$7={name:"g0m1w5",styles:"font-size:36px"};const FinishMenuButton=({Icon:$,stateName:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=useAppDispatch(),rt=()=>{nt(setState(_e)),nt(setPageNumber(1))};let ot;switch(_e){case"Save changes":ot=et("finishMenu.save-button");break;case"Start processing":ot=et("finishMenu.start-button");break;case"Discard changes":ot=et("finishMenu.discard-button");break;default:ot="Could not load String value";break}const it=css({display:"flex",justifyContent:"center",alignItems:"center",background:`${tt.background_finish_menu_icon}`,color:`${tt.text}`,borderRadius:"50%",width:"90px",height:"90px"},"",""),st=_ref$c;return jsxs("div",{css:[basicButtonStyle(tt),tileButtonStyle(tt),"",""],role:"button",tabIndex:0,onClick:rt,onKeyDown:lt=>{(lt.key===" "||lt.key==="Enter")&&rt()},children:[jsx$1("div",{css:it,children:jsx$1($,{css:_ref2$7})}),jsx$1("div",{css:st,children:ot})]})};var _ref$b={name:"rhwgco",styles:"font-size:80px"},_ref2$6={name:"vavmm1",styles:"max-width:500px"};const Save=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectFinishState),et=useAppSelector(selectStatus$1),tt=useAppSelector(selectError$1),nt=useAppSelector(selectPostStatus),rt=useAppSelector(selectPostError),ot=useTheme(),it=useAppSelector(selectHasChanges$1),st=useAppSelector(selectHasChanges$2),lt=useAppSelector(selectHasChanges),ct=css({height:"100%",display:_e!=="Save changes"?"none":"flex",flexDirection:"column",alignItems:"center",...flexGapReplacementStyle(30,!1)},"",""),ft=()=>et==="success"&&nt==="success"&&!st&&!it&&!lt?jsxs(Fragment,{children:[jsx$1(LuCheckCircle,{css:_ref$b}),jsx$1("div",{children:$("save.success-text")}),jsx$1(CallbackButton,{})]}):jsxs(Fragment,{children:[jsx$1("span",{css:_ref2$6,children:$("save.info-text")}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:0,label:$("various.goBack-button"),Icon:LuChevronLeft}),jsx$1(SaveButton,{})]})]});return jsxs("div",{css:ct,children:[jsx$1("h1",{children:$("save.headline-text")}),ft(),jsxs("div",{css:errorBoxStyle(et==="failed",ot),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),tt?$("various.error-details-text",{errorMessage:tt}):$("various.error-text"),jsx$1("br",{})]}),jsxs("div",{css:errorBoxStyle(nt==="failed",ot),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),rt?$("various.error-details-text",{errorMessage:rt}):$("various.error-text"),jsx$1("br",{})]})]})},SaveButton=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useAppSelector(selectSegments),tt=useAppSelector(selectTracks),nt=useAppSelector(selectSubtitles),rt=useAppSelector(selectStatus$1),ot=useAppSelector(selectPostStatus),it=useTheme(),[st,lt]=reactExports.useState(!1);let ct=LuSave,ft=!1,dt=null;rt==="failed"||ot==="failed"?(ct=LuAlertCircle,ft=!1,dt=$("save.confirmButton-failed-tooltip")):rt==="success"&&ot==="success"?(ct=LuCheck,ft=!1,dt=$("save.confirmButton-success-tooltip")):(rt==="loading"||ot==="loading")&&(ct=LuLoader,ft=!0,dt=$("save.confirmButton-attempting-tooltip"));const pt=()=>{if(rt==="success")return $("save.success-tooltip-aria")},ht=()=>{const yt=[];for(const vt in nt)yt.push({id:vt,subtitle:serializeSubtitle(nt[vt].cues),tags:nt[vt].tags});return yt},gt=()=>{lt(!0),_e(postMetadata())};return reactExports.useEffect(()=>{ot==="success"&&st&&(lt(!1),_e(postVideoInformation({segments:et,tracks:tt,subtitles:ht()})))},[ot]),reactExports.useEffect(()=>{rt==="success"&&ot==="success"&&(_e(setHasChanges$2(!1)),_e(setHasChanges$1(!1)),_e(setHasChanges(!1)))},[_e,ot,rt]),jsx$1(ThemedTooltip,{title:dt??(dt=""),children:jsxs("div",{css:[basicButtonStyle(it),navigationButtonStyle(it),"",""],role:"button",tabIndex:0,onClick:gt,onKeyDown:yt=>{(yt.key===" "||yt.key==="Enter")&>()},children:[jsx$1(ct,{css:ft?spinningStyle:void 0}),jsx$1("span",{children:$("save.confirm-button")}),jsx$1("div",{css:ariaLive,"aria-live":"polite","aria-atomic":"true",children:pt()})]})})},Discard=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectFinishState),et=css({display:_e!=="Discard changes"?"none":"flex",flexDirection:"column",alignItems:"center",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:et,children:[jsx$1("h1",{children:$("discard.headline-text")}),jsx$1("span",{children:$("discard.info-text")}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:0,label:$("various.goBack-button"),Icon:LuChevronLeft}),jsx$1(DiscardButton,{})]})]})},DiscardButton=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useTheme(),tt=()=>{_e(setEnd({hasEnded:!0,value:"discarded"}))};return jsxs("div",{css:[basicButtonStyle(et),navigationButtonStyle(et),"",""],role:"button",tabIndex:0,onClick:tt,onKeyDown:nt=>{(nt.key===" "||nt.key==="Enter")&&tt()},children:[jsx$1(LuXCircle,{}),jsx$1("span",{children:$("discard.confirm-button")})]})};var _ref$a={name:"rhwgco",styles:"font-size:80px"};const WorkflowConfiguration=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectStatus),et=useAppSelector(selectError),tt=useAppSelector(selectPostStatus),nt=useAppSelector(selectPostError),rt=useTheme(),ot=css({display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",...flexGapReplacementStyle(30,!1)},"","");return jsxs("div",{css:ot,children:[jsx$1("h2",{children:$("workflowConfig.headline-text")}),jsx$1(LuMoreHorizontal,{css:_ref$a}),"Placeholder",jsx$1("div",{children:$("workflowConfig.satisfied-text")}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:1,label:$("various.goBack-button"),Icon:LuChevronLeft}),jsx$1(SaveAndProcessButton,{text:$("workflowConfig.confirm-button")})]}),jsxs("div",{css:errorBoxStyle(_e==="failed",rt),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),et?$("various.error-details-text",{errorMessage:et}):$("various.error-text"),jsx$1("br",{})]}),jsxs("div",{css:errorBoxStyle(tt==="failed",rt),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),nt?$("various.error-details-text",{errorMessage:nt}):$("various.error-text"),jsx$1("br",{})]})]})},SaveAndProcessButton=({text:$})=>{const _e=useAppDispatch(),et=useAppSelector(selectSelectedWorkflowId),tt=useAppSelector(selectSegments),nt=useAppSelector(selectTracks),rt=useAppSelector(selectSubtitles),ot=useAppSelector(selectStatus),it=useAppSelector(selectPostStatus),[st,lt]=reactExports.useState(!1),ct=useTheme();reactExports.useEffect(()=>{ot==="success"&&it==="success"&&(_e(setEnd({hasEnded:!0,value:"success"})),_e(setHasChanges$2(!1)),_e(setHasChanges$1(!1)),_e(setHasChanges(!1)))},[_e,it,ot]);const ft=()=>{const yt=[];for(const vt in rt)yt.push({id:vt,subtitle:serializeSubtitle(rt[vt].cues),tags:rt[vt].tags});return yt},dt=()=>{lt(!0),_e(postMetadata())};reactExports.useEffect(()=>{it==="success"&&st&&(lt(!1),_e(postVideoInformationWithWorkflow({segments:tt,tracks:nt,workflow:[{id:et}],subtitles:ft()})))},[it]);let pt=LuDatabase,ht=!1;ot==="failed"||it==="failed"?(pt=LuAlertCircle,ht=!1):ot==="success"&&it==="success"?(pt=LuCheck,ht=!1):(ot==="loading"||it==="loading")&&(pt=LuLoader,ht=!0);const gt=css({padding:"16px",boxShadow:`${ct.boxShadow}`,background:`${ct.element_bg}`},"","");return jsxs("div",{css:[basicButtonStyle(ct),gt,"",""],role:"button",tabIndex:0,onClick:dt,onKeyDown:yt=>{(yt.key===" "||yt.key==="Enter")&&dt()},children:[jsx$1(pt,{css:ht?spinningStyle:void 0}),jsx$1("span",{children:$})]})},WorkflowSelection=()=>{const{t:$}=useTranslation(),_e=useAppDispatch();let et=useAppSelector(selectWorkflows);et=[...et].sort((gt,yt)=>yt.displayOrder-gt.displayOrder);const tt=useAppSelector(selectFinishState),nt=useAppSelector(selectPageNumber),rt=useTheme(),ot=useAppSelector(selectStatus),it=useAppSelector(selectError),st=useAppSelector(selectStatus$1),lt=useAppSelector(selectError$1),ct=css({padding:"20px",display:tt==="Start processing"&&nt===1?"flex":"none",flexDirection:"column",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(30,!1)},"",""),ft=css({display:"flex",flexDirection:"column",alignItems:"left",...flexGapReplacementStyle(20,!1),flexWrap:"wrap",maxHeight:"50vh"},"","");reactExports.useEffect(()=>{et.length>=1&&_e(setSelectedWorkflowIndex(et[0].id))},[_e,et]);const dt=gt=>{_e(setSelectedWorkflowIndex(gt.target.value))},pt=(gt,yt,vt,Et,Ot,Tt)=>jsxs("div",{css:ct,children:[jsx$1("h2",{children:gt}),yt,vt&&jsx$1(RadioGroup$1,{css:ft,defaultValue:et[0].id,name:"Workflow Selection Area",onChange:dt,children:et.map((xt,$t)=>jsx$1(WorkflowButton,{stateName:xt.name,workflowId:xt.id,workflowDescription:xt.description},xt.id))}),jsxs("div",{css:backOrContinueStyle,children:[jsx$1(PageButton,{pageNumber:0,label:$("workflowSelection.back-button"),Icon:LuChevronLeft}),Et]}),jsxs("div",{css:errorBoxStyle(Ot==="failed",rt),role:"alert",children:[jsx$1("span",{children:$("various.error-text")}),jsx$1("br",{}),Tt?$("various.error-details-text",{errorMessage:it}):$("various.error-text"),jsx$1("br",{})]})]});return et.length<=0?pt($("workflowSelection.saveAndProcess-text"),jsxs(Trans,{i18nKey:"workflowSelection.noWorkflows-text",children:["There are no workflows to process your changes with.",jsx$1("br",{}),"Please save your changes and contact an administrator."]}),!1,jsx$1(SaveButton,{}),st,lt):et.length===1?pt($("workflowSelection.saveAndProcess-text"),jsxs(Trans,{i18nKey:"workflowSelection.oneWorkflow-text",children:["The video will be cut and processed with the workflow ",{workflow:et[0].name},".",jsx$1("br",{}),"This will take some time."]}),!1,jsx$1(SaveAndProcessButton,{text:$("workflowSelection.startProcessing-button")}),ot,it):pt($("workflowSelection.selectWF-text"),jsx$1("div",{children:$("workflowSelection.manyWorkflows-text")}),!0,jsx$1(SaveAndProcessButton,{text:$("workflowSelection.startProcessing-button")}),ot,it)};var _ref$9={name:"1esfuip",styles:"width:100%;padding:5px 0px;font-size:larger"},_ref2$5={name:"rpvv6v",styles:"display:flex;flex-direction:column;max-width:500px;padding-top:2px"};const WorkflowButton=({stateName:$,workflowId:_e,workflowDescription:et})=>jsx$1(FormControlLabel$1,{value:_e,control:jsx$1(WorkflowSelectRadio,{}),label:jsxs("div",{css:_ref2$5,children:[jsx$1("div",{css:_ref$9,children:$}),jsx$1("div",{children:et})]})}),WorkflowSelectRadio=$=>{const _e=useTheme(),et=css({alignSelf:"start",color:`${_e.text}`,"&$checked":{color:`${_e.text}`}},"","");return jsx$1(Radio$1,{color:"default",css:et,...$})},Finish=()=>{const $=useAppSelector(selectPageNumber);return jsxs("div",{children:[jsx$1("div",{css:css({display:$!==0?"none":"block"},"",""),children:jsx$1(FinishMenu,{})}),jsxs("div",{css:css({display:$!==1?"none":"block"},"",""),children:[jsx$1(Save,{}),jsx$1(WorkflowSelection,{}),jsx$1(Discard,{})]}),jsx$1("div",{css:css({display:$!==2?"none":"block"},"",""),children:jsx$1(WorkflowConfiguration,{})})]})},PageButton=({pageNumber:$,label:_e,Icon:et})=>{const tt=useTheme(),nt=useAppDispatch(),rt=()=>{nt(setPageNumber($))},ot=css({minWidth:"100px",padding:"16px",justifyContent:"center",boxShadow:`${tt.boxShadow}`,background:`${tt.element_bg}`},"","");return jsxs("div",{css:[basicButtonStyle(tt),ot,"",""],role:"button",tabIndex:0,onClick:rt,onKeyDown:it=>{(it.key===" "||it.key==="Enter")&&rt()},children:[jsx$1(et,{}),jsx$1("span",{children:_e})]})},CallbackButton=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=()=>{window.open(settings.callbackUrl,"_self")};return jsx$1(Fragment,{children:settings.callbackUrl!==void 0&&jsxs("div",{css:[basicButtonStyle(_e),navigationButtonStyle(_e),"",""],role:"button",tabIndex:0,onClick:et,onKeyDown:tt=>{(tt.key===" "||tt.key==="Enter")&&et()},children:[jsx$1(LuDoorOpen,{}),jsx$1("span",{children:settings.callbackSystem?$("various.callback-button-system",{system:settings.callbackSystem}):$("various.callback-button-generic")})]})})},Group=({name:$,entries:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=css({display:"flex",flexDirection:"column",width:"460px",maxWidth:"50vw",background:`${tt.menu_background}`,borderRadius:"5px",boxShadow:`${tt.boxShadow_tiles}`,boxSizing:"border-box",padding:"0px 20px 20px 20px"},"",""),rt=css({color:`${tt.text}`},"","");return jsxs("div",{css:nt,children:[jsx$1("h3",{css:rt,children:et($)}),Object.entries(_e).map(([ot,it],st)=>jsx$1(Entry,{name:ot,sequences:it},st))]})};var _ref$8={name:"e3kmv8",styles:"align-self:center;font-size:20px;font-weight:bold"};const Entry=({name:$,sequences:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=css({display:"flex",flexFlow:"column nowrap",justifyContent:"left",width:"100%",padding:"10px 0px",...flexGapReplacementStyle(10,!0)},"",""),rt=css({fontWeight:"bold",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"break-word",color:`${tt.text}`},"",""),ot=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(10,!0)},"",""),it=css({borderRadius:"4px",borderWidth:"2px",borderStyle:"solid",borderColor:`${tt.singleKey_border}`,background:`${tt.singleKey_bg}`,boxShadow:`${tt.singleKey_boxShadow}`,padding:"10px",color:`${tt.text}`},"",""),st=_ref$8;return jsxs("div",{css:nt,children:[jsx$1("div",{css:rt,children:jsx$1(Trans,{children:$||et("keyboardControls.missingLabel")})}),_e.map((lt,ct,ft)=>jsxs("div",{css:ot,children:[lt.map((dt,pt)=>jsxs("div",{css:ot,children:[jsx$1("div",{css:it,children:dt}),lt.length-1!==pt&&jsx$1("div",{css:st,children:"+"})]},pt)),jsx$1("div",{css:st,children:jsx$1(Trans,{children:ft.length-1!==ct&&et("keyboardControls.sequenceSeparator")})})]},ct))]})},KeyboardControls=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=css({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",...flexGapReplacementStyle(30,!0)},"",""),tt=()=>{if(KEYMAP&&Object.keys(KEYMAP).length>0){const rt=[];return Object.entries(KEYMAP).forEach(([ot,it],st)=>{const lt={};Object.entries(it).forEach(([,ct])=>{const ft=ct.key.split(",").map(dt=>dt.trim());lt[ct.name]=Object.entries(ft).map(([,dt])=>dt.split("+").map(pt=>rewriteKeys(pt.trim())))}),rt.push(jsx$1(Group,{name:getGroupName(ot),entries:lt},st))}),jsx$1("div",{css:et,children:rt})}return jsx$1("div",{children:$("keyboardControls.genericError")})};return jsxs("div",{css:css({display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},"",""),children:[jsx$1("div",{css:[titleStyle(_e),titleStyleBold(_e),"",""],children:$("keyboardControls.header")}),tt()]})},l=$=>{const _e=typeof $=="function",et=reactExports.useRef($);reactExports.useEffect(()=>{et.current=$}),reactExports.useEffect(()=>{if(_e){const tt=nt=>{const rt=et.current(nt);if(typeof rt=="string")return nt.preventDefault(),nt.returnValue=rt;if(nt.defaultPrevented)return nt.returnValue=""};return window.addEventListener("beforeunload",tt),()=>{window.removeEventListener("beforeunload",tt)}}},[_e])};var _ref5$2={name:"45o8ii",styles:"display:flex;width:100%;flex-direction:column;align-items:center"},_ref6$1={name:"1sw39oc",styles:"display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center"};const Thumbnail=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useTheme(),tt=useAppSelector(selectOriginalThumbnails),nt=React$5.useRef([]),rt=React$5.useRef([]),ot=(dt,pt)=>{const ht=nt.current[pt].captureVideo();_e(setThumbnail({id:dt.id,uri:ht})),_e(setHasChanges$2(!0))},it=dt=>{const pt=rt.current[dt];pt!==null&&pt.click()},st=(dt,pt)=>{const ht=dt.target.files&&dt.target.files[0];if(!ht||ht.type.split("/")[0]!=="image")return;const gt=new FileReader;gt.onload=yt=>{if(yt.target&&yt.target.result){const vt=yt.target.result.toString();_e(setThumbnail({id:pt.id,uri:vt})),_e(setHasChanges$2(!0))}},gt.readAsDataURL(ht)},lt=dt=>{var pt;_e(setThumbnail({id:dt,uri:(pt=tt.find(ht=>ht.id===dt))==null?void 0:pt.uri}))},ct=_ref6$1,ft=_ref5$2;return jsxs("div",{css:ct,children:[jsx$1("div",{css:[titleStyle(et),titleStyleBold(et),"",""],children:$("thumbnail.title")}),jsx$1(ThumbnailTable,{inputRefs:rt,generateRefs:nt,generate:ot,upload:it,uploadCallback:st,discard:lt}),jsxs("div",{css:ft,children:[jsx$1(VideoPlayers,{refs:nt,widthInPercent:100,maxHeightInPixel:420}),jsxs("div",{css:videosStyle(et),children:[jsx$1(Timeline,{timelineHeight:125,styleByActiveSegment:!1,selectIsPlaying:selectIsPlaying$1,selectCurrentlyAt:selectCurrentlyAt$1,setIsPlaying:setIsPlaying$1,setCurrentlyAt:setCurrentlyAt$1,setClickTriggered:setClickTriggered$1}),jsx$1(VideoControls,{selectCurrentlyAt:selectCurrentlyAt$1,selectIsPlaying:selectIsPlaying$1,selectIsMuted,selectVolume,selectIsPlayPreview:selectIsPlayPreview$1,setIsPlaying:setIsPlaying$1,setIsMuted,setVolume,setIsPlayPreview:setIsPlayPreview$1})]})]})]})},ThumbnailTable=({inputRefs:$,generateRefs:_e,generate:et,upload:tt,uploadCallback:nt,discard:rt})=>{const ot=useAppSelector(selectVideos),it=css({display:"flex",width:"100%",flexDirection:"row",justifyContent:"center",...flexGapReplacementStyle(10,!1),paddingBottom:"20px"},"","");return jsx$1(Fragment,{children:(()=>{const lt=ot.find(ct=>ct.thumbnailPriority===0);return settings.thumbnail.simpleMode&<!==void 0?jsx$1("div",{css:it,children:jsx$1(ThumbnailTableSingleRow,{track:lt,index:ot.indexOf(lt),inputRefs:$,generate:et,upload:tt,uploadCallback:nt,discard:rt})}):jsxs(Fragment,{children:[ot.length>1&&jsx$1(AffectAllRow,{tracks:ot,generate:et}),jsx$1("div",{css:it,children:ot.map((ct,ft)=>jsx$1(ThumbnailTableRow,{track:ct,index:ft,inputRefs:$,generateRef:_e.current[ft],generate:et,upload:tt,uploadCallback:nt,discard:rt},ft))})]})})()})},ThumbnailTableRow=({track:$,index:_e,inputRefs:et,generateRef:tt,generate:nt,upload:rt,uploadCallback:ot,discard:it})=>{const{t:st}=useTranslation(),lt=useTheme(),ct=tt?tt.getWidth()+40:void 0,ft=dt=>isNaN(dt)?"":dt===0?" - "+st("thumbnail.primary"):dt===1?" - "+st("thumbnail.secondary"):dt<0?"":" - "+dt;return jsxs("div",{css:[backgroundBoxStyle(lt),thumbnailTableRowStyle(ct),"",""],children:[jsx$1("div",{css:thumbnailTableRowTitleStyle,children:$.flavor.type+ft($.thumbnailPriority)}),jsxs("div",{css:thumbnailTableRowRowStyle,children:[jsx$1(ThumbnailDisplayer,{track:$}),jsx$1(ThumbnailButtons,{track:$,index:_e,inputRefs:et,generate:nt,upload:rt,uploadCallback:ot,discard:it})]},_e)]},_e)};var _ref3$3={name:"0",styles:""},_ref4$2={name:"zxzqpl",styles:"width:100%;max-width:457px;aspect-ratio:16/9"};const ThumbnailDisplayer=({track:$})=>{const{t:_e}=useTranslation(),et=useTheme(),tt=_ref4$2,nt=_ref3$3,rt=css({width:"100vw",backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center",color:`${et.text}`},"","");return jsx$1(Fragment,{children:$.thumbnailUri!==null&&$.thumbnailUri!==void 0?jsx$1("img",{src:$.thumbnailUri,alt:_e("thumbnail.previewImageAlt")+": "+$.flavor.type,css:[tt,nt,"",""]}):jsx$1("div",{css:[tt,rt,"",""],children:jsx$1("span",{children:_e("thumbnail.noThumbnailAvailable")})})})};var _ref2$4={name:"12srrhn",styles:"border-top:1px solid #DDD;;width:100%"};const ThumbnailButtons=({track:$,index:_e,inputRefs:et,generate:tt,upload:nt,uploadCallback:rt,discard:ot})=>{const{t:it}=useTranslation(),st=useAppDispatch(),lt=useAppSelector(selectTracks),ct=dt=>{if(dt===void 0)return;const pt=[];for(const ht of lt)pt.push({id:ht.id,uri:dt});st(setThumbnails(pt)),st(setHasChanges$2(!0))},ft=_ref2$4;return jsxs("div",{css:thumbnailButtonsStyle,children:[jsx$1(ThumbnailButton,{handler:()=>{tt($,_e)},text:it("thumbnail.buttonGenerate"),tooltipText:it("thumbnail.buttonGenerate-tooltip"),ariaLabel:it("thumbnail.buttonGenerate-tooltip-aria"),Icon:LuCamera,active:!0}),jsx$1("div",{css:ft}),jsx$1(ThumbnailButton,{handler:()=>{nt(_e)},text:it("thumbnail.buttonUpload"),tooltipText:it("thumbnail.buttonUpload-tooltip"),ariaLabel:it("thumbnail.buttonUpload-tooltip-aria"),Icon:LuUpload,active:!0}),jsx$1("input",{style:{display:"none"},ref:dt=>{et.current[_e]=dt},type:"file",accept:"image/*",onChange:dt=>rt(dt,$),"aria-hidden":"true"}),jsx$1("div",{css:ft}),lt.length>1&&jsxs(Fragment,{children:[jsx$1(ThumbnailButton,{handler:()=>{ct($.thumbnailUri)},text:it("thumbnail.buttonUseForOtherThumbnails"),tooltipText:it("thumbnail.buttonUseForOtherThumbnails-tooltip"),ariaLabel:it("thumbnail.buttonUseForOtherThumbnails-tooltip-aria"),Icon:LuCopy,active:!!($.thumbnailUri&&$.thumbnailUri.startsWith("data"))}),jsx$1("div",{css:ft})]}),jsx$1(ThumbnailButton,{handler:()=>{ot($.id)},text:it("thumbnail.buttonDiscard"),tooltipText:it("thumbnail.buttonDiscard-tooltip"),ariaLabel:it("thumbnail.buttonDiscard-tooltip-aria"),Icon:LuXCircle,active:!!($.thumbnailUri&&$.thumbnailUri.startsWith("data"))})]})},ThumbnailButton=({handler:$,text:_e,tooltipText:et,ariaLabel:tt,Icon:nt,active:rt})=>{const ot=useTheme(),it=React$5.useRef(null),st=()=>{var ct;rt&&$(),(ct=it.current)==null||ct.blur()},lt=ct=>{rt&&(ct.key===" "||ct.key==="Enter")&&$()};return jsx$1(ThemedTooltip,{title:et,children:jsxs("div",{css:thumbnailButtonStyle(rt,ot),ref:it,role:"button",tabIndex:0,"aria-label":tt,onClick:st,onKeyDown:lt,children:[jsx$1(nt,{}),_e]})})};var _ref$7={name:"1axfq7n",styles:"display:flex;flex-direction:row;width:100%;height:50px;padding:20px;gap:20px;justify-content:center;align-items:center"};const AffectAllRow=({generate:$,tracks:_e})=>{const{t:et}=useTranslation(),tt=useTheme(),nt=()=>{for(let it=0;it<_e.length;it++)$(_e[it],it)},rt=_ref$7,ot=css({height:"100%",minWidth:"200px",boxShadow:`${tt.boxShadow}`,background:`${tt.element_bg}`},"","");return jsx$1("div",{css:rt,children:jsx$1(ThemedTooltip,{title:et("thumbnail.buttonGenerateAll-tooltip"),children:jsxs("div",{css:[basicButtonStyle(tt),ot,"",""],role:"button",tabIndex:0,"aria-label":et("thumbnail.buttonGenerateAll-tooltip-aria"),onClick:()=>{nt()},onKeyDown:it=>{(it.key===" "||it.key==="Enter")&&nt()},children:[jsx$1(LuCamera,{}),et("thumbnail.buttonGenerateAll")]})})})};var _ref7$1={name:"1d3w5wq",styles:"width:100%"};const ThumbnailTableSingleRow=({track:$,index:_e,inputRefs:et,generate:tt,upload:nt,uploadCallback:rt,discard:ot})=>{const{t:it}=useTranslation(),st=useTheme();return jsxs("div",{css:[backgroundBoxStyle(st),thumbnailTableRowStyle(500),"",""],children:[jsx$1("div",{css:thumbnailTableRowTitleStyle,children:it("thumbnailSimple.rowTitle")}),jsx$1("hr",{css:_ref7$1}),jsxs("div",{css:thumbnailTableRowRowStyle,children:[jsx$1(ThumbnailDisplayer,{track:$}),jsx$1(ThumbnailButtonsSimple,{track:$,index:_e,inputRefs:et,generate:tt,upload:nt,uploadCallback:rt,discard:ot})]},_e)]},_e)},ThumbnailButtonsSimple=({track:$,index:_e,generate:et,inputRefs:tt,upload:nt,uploadCallback:rt,discard:ot})=>{const{t:it}=useTranslation(),st=useAppSelector(selectTracks);return jsxs("div",{css:thumbnailButtonsStyle,children:[st.map((lt,ct)=>jsx$1(ThumbnailButton,{handler:()=>{et($,ct)},text:it("thumbnail.buttonGenerate")+" "+it("thumbnailSimple.from")+" "+lt.flavor.type,tooltipText:it("thumbnail.buttonGenerate-tooltip"),ariaLabel:it("thumbnail.buttonGenerate-tooltip-aria"),Icon:LuCamera,active:!0},ct)),jsx$1(ThumbnailButton,{handler:()=>{nt(_e)},text:it("thumbnail.buttonUpload"),tooltipText:it("thumbnail.buttonUpload-tooltip"),ariaLabel:it("thumbnail.buttonUpload-tooltip-aria"),Icon:LuUpload,active:!0}),jsx$1("input",{style:{display:"none"},ref:lt=>{tt.current[_e]=lt},type:"file",accept:"image/*",onChange:lt=>rt(lt,$),"aria-hidden":"true"}),jsx$1(ThumbnailButton,{handler:()=>{ot($.id)},text:it("thumbnail.buttonDiscard"),tooltipText:it("thumbnail.buttonDiscard-tooltip"),ariaLabel:it("thumbnail.buttonDiscard-tooltip-aria"),Icon:LuXCircle,active:!!($.thumbnailUri&&$.thumbnailUri.startsWith("data"))})]})},thumbnailTableRowStyle=$=>css({display:"flex",flexDirection:"column",width:"100%",maxWidth:`${$}px`},"",""),thumbnailTableRowTitleStyle={name:"rqugg4",styles:"text-align:left;font-size:larger;font-weight:bold;&:first-letter{text-transform:capitalize;}"},thumbnailTableRowRowStyle=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(20,!0),justifyContent:"space-around",flexWrap:"wrap"},"",""),thumbnailButtonsStyle={name:"xtio98",styles:"@media (max-width: 1550px){width:100%;}display:flex;flex-direction:column"},thumbnailButtonStyle=($,_e)=>[$?basicButtonStyle(_e):deactivatedButtonStyle,{width:"100%",height:"100%",background:`${_e.element_bg}`,justifySelf:"center",alignSelf:"center",padding:"0px 4px"}];var _ref$6={name:"1grdz10",styles:"border-left:2px solid #DDD;;height:32px"};const CuttingActions=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=(rt,ot)=>{var it;_e(rt()),ot&&((it=ot.current)==null||it.blur())};useHotkeys(KEYMAP.cutting.cut.key,()=>et(cut),{preventDefault:!0},[cut]),useHotkeys(KEYMAP.cutting.delete.key,()=>et(markAsDeletedOrAlive),{preventDefault:!0},[markAsDeletedOrAlive]),useHotkeys(KEYMAP.cutting.mergeLeft.key,()=>et(mergeLeft),{preventDefault:!0},[mergeLeft]),useHotkeys(KEYMAP.cutting.mergeRight.key,()=>et(mergeRight),{preventDefault:!0},[mergeRight]);const tt=css({display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},"",""),nt=_ref$6;return jsxs("div",{css:tt,children:[jsx$1(CuttingActionsButton,{Icon:LuScissors,actionName:$("cuttingActions.cut-button"),actionHandler:et,action:cut,tooltip:$("cuttingActions.cut-tooltip",{hotkeyName:rewriteKeys(KEYMAP.cutting.cut.key)}),ariaLabelText:$("cuttingActions.cut-tooltip-aria",{hotkeyName:rewriteKeys(KEYMAP.cutting.cut.key)})}),jsx$1("div",{css:nt}),jsx$1(MarkAsDeletedButton,{actionHandler:et,action:markAsDeletedOrAlive,hotKeyName:rewriteKeys(KEYMAP.cutting.delete.key)}),jsx$1("div",{css:nt}),jsx$1(CuttingActionsButton,{Icon:LuChevronLeft,actionName:$("cuttingActions.mergeLeft-button"),actionHandler:et,action:mergeLeft,tooltip:$("cuttingActions.mergeLeft-tooltip",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeLeft.key)}),ariaLabelText:$("cuttingActions.mergeLeft-tooltip-aria",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeLeft.key)})}),jsx$1("div",{css:nt}),jsx$1(CuttingActionsButton,{Icon:LuChevronRight,actionName:$("cuttingActions.mergeRight-button"),actionHandler:et,action:mergeRight,tooltip:$("cuttingActions.mergeRight-tooltip",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeRight.key)}),ariaLabelText:$("cuttingActions.mergeRight-tooltip-aria",{hotkeyName:rewriteKeys(KEYMAP.cutting.mergeRight.key)})}),jsx$1("div",{css:nt}),jsx$1(CuttingActionsButton,{Icon:LuMoveHorizontal,actionName:$("cuttingActions.merge-all-button"),actionHandler:et,action:mergeAll,tooltip:$("cuttingActions.merge-all-tooltip"),ariaLabelText:$("cuttingActions.merge-all-tooltip-aria")})]})},cuttingActionButtonStyle={name:"10rtstj",styles:"padding:16px"},CuttingActionsButton=({Icon:$,actionName:_e,actionHandler:et,action:tt,tooltip:nt,ariaLabelText:rt})=>{const ot=React$5.useRef(null),it=useTheme();return jsx$1(ThemedTooltip,{title:nt,children:jsxs("div",{css:[basicButtonStyle(it),cuttingActionButtonStyle,"",""],ref:ot,role:"button",tabIndex:0,"aria-label":rt,onClick:()=>et(tt,ot),onKeyDown:st=>{(st.key===" "||st.key==="Enter")&&et(tt)},children:[jsx$1($,{}),jsx$1("span",{children:_e})]})})},MarkAsDeletedButton=({actionHandler:$,action:_e,hotKeyName:et})=>{const{t:tt}=useTranslation(),nt=useAppSelector(selectIsCurrentSegmentAlive),rt=React$5.useRef(null),ot=useTheme();return jsx$1(ThemedTooltip,{title:tt("cuttingActions.delete-restore-tooltip",{hotkeyName:et}),children:jsxs("div",{css:[basicButtonStyle(ot),cuttingActionButtonStyle,"",""],ref:rt,role:"button",tabIndex:0,"aria-label":tt("cuttingActions.delete-restore-tooltip-aria",{hotkeyName:et}),onClick:()=>$(_e,rt),onKeyDown:it=>{(it.key===" "||it.key==="Enter")&&$(_e)},children:[nt?jsx$1(LuTrash,{}):jsx$1(SvgTrashRestore,{css:customIconStyle}),jsx$1("div",{children:tt(nt?"cuttingActions.delete-button":"cuttingActions.restore-button")})]})})};var _ref$5={name:"1o568l3",styles:"display:flex;width:auto;flex-direction:column;justify-content:center;align-items:center"};const Cutting=()=>{const{t:$}=useTranslation(),_e=useAppDispatch(),et=useAppSelector(st=>st.videoState.status),tt=useAppSelector(st=>st.videoState.error),nt=useAppSelector(selectDuration),rt=useTheme(),ot=useAppSelector(st=>st.videoState.errorReason);return reactExports.useEffect(()=>{et==="idle"?_e(fetchVideoInformation()):et==="failed"?_e(setError(ot==="workflowActive"?{error:!0,errorTitle:$("error.workflowActive-errorTitle"),errorMessage:$("error.workflowActive-errorMessage"),errorIcon:LuMoreHorizontal}:{error:!0,errorMessage:$("video.comError-text"),errorDetails:tt})):et==="success"&&nt===null&&_e(setError({error:!0,errorMessage:$("video.durationError-text"),errorDetails:tt}))},[et,_e,tt,$,ot,nt]),jsxs("div",{css:_ref$5,children:[jsx$1(CuttingHeader,{}),jsx$1(VideoPlayers,{refs:void 0}),jsxs("div",{css:videosStyle(rt),children:[jsx$1(Timeline,{timelineHeight:260,selectIsPlaying:selectIsPlaying$1,selectCurrentlyAt:selectCurrentlyAt$1,setIsPlaying:setIsPlaying$1,setCurrentlyAt:setCurrentlyAt$1,setClickTriggered:setClickTriggered$1}),jsx$1(CuttingActions,{}),jsx$1(VideoControls,{selectCurrentlyAt:selectCurrentlyAt$1,selectIsPlaying:selectIsPlaying$1,selectIsMuted,selectVolume,selectIsPlayPreview:selectIsPlayPreview$1,setIsPlaying:setIsPlaying$1,setIsMuted,setVolume,setIsPlayPreview:setIsPlayPreview$1})]})]})},CuttingHeader=()=>{const $=useAppSelector(selectTitle),_e=useAppSelector(selectTitleFromEpisodeDc),et=useTheme();return jsx$1("div",{css:[titleStyle(et),titleStyleBold(et),"",""],children:_e||$})};var _ref2$3={name:"qdeacm",styles:"flex-direction:column"},_ref3$2={name:"d7emys",styles:"flex-direction:column;justify-content:space-around"},_ref4$1={name:"n35wdo",styles:"flex-direction:column;align-content:space-around"},_ref5$1={name:"d7emys",styles:"flex-direction:column;justify-content:space-around"},_ref6={name:"n35wdo",styles:"flex-direction:column;align-content:space-around"},_ref7={name:"0",styles:""},_ref8={name:"qdeacm",styles:"flex-direction:column"};const MainContent=()=>{const $=useAppSelector(selectMainMenuState),_e=useAppSelector(selectHasChanges$2),et=useAppSelector(selectHasChanges$1),tt=useAppSelector(selectHasChanges),nt=useTheme();l(ht=>{(_e||et||tt)&&ht.preventDefault()});const rt=css({display:"flex",width:"100%",paddingRight:"20px",paddingLeft:"20px",...flexGapReplacementStyle(20,!1),background:`${nt.background}`,overflow:"auto"},"",""),ot=_ref8,it=_ref7,st=_ref6,lt=_ref5$1,ct=_ref4$1,ft=_ref3$2,dt=_ref2$3;return jsx$1(Fragment,{children:(()=>{if($===MainMenuStateNames.cutting)return jsx$1("div",{css:[rt,ot,"",""],role:"main",children:jsx$1(Cutting,{})});if($===MainMenuStateNames.metadata)return jsx$1("div",{css:[rt,it,"",""],role:"main",children:jsx$1(Metadata,{})});if($===MainMenuStateNames.trackSelection)return jsx$1("div",{css:[rt,st,"",""],role:"main",children:jsx$1(TrackSelection,{})});if($===MainMenuStateNames.subtitles)return jsx$1("div",{css:[rt,lt,"",""],role:"main",children:jsx$1(Subtitle,{})});if($===MainMenuStateNames.thumbnail)return jsx$1("div",{css:[rt,ct,"",""],role:"main",children:jsx$1(Thumbnail,{})});if($===MainMenuStateNames.finish)return jsx$1("div",{css:[rt,ft,"",""],role:"main",children:jsx$1(Finish,{})});if($===MainMenuStateNames.keyboardControls)return jsx$1("div",{css:[rt,dt,"",""],role:"main",children:jsx$1(KeyboardControls,{})})})()})};var _ref$4={name:"rhwgco",styles:"font-size:80px"},_ref2$2={name:"rhwgco",styles:"font-size:80px"};const TheEnd=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectEndState),et=()=>{if(_e==="discarded")return $("theEnd.discarded-text");if(_e==="success")return $("theEnd.info-text")},tt=css({width:"100%",height:"calc(100% - 64px)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(20,!1)},"",""),nt=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(20,!1)},"","");return jsxs("div",{css:tt,children:[_e==="discarded"?jsx$1(LuXCircle,{css:_ref$4}):jsx$1(LuCheckCircle,{css:_ref2$2}),jsx$1("div",{children:et()}),jsxs("div",{css:nt,children:[jsx$1(CallbackButton,{}),_e==="discarded"&&jsx$1(StartOverButton,{})]})]})},StartOverButton=()=>{const{t:$}=useTranslation(),_e=useTheme(),et=()=>{window.location.reload()};return jsx$1(ThemedTooltip,{title:$("theEnd.startOver-tooltip"),children:jsx$1("div",{css:[basicButtonStyle(_e),navigationButtonStyle(_e),"",""],role:"button",tabIndex:0,onClick:et,onKeyDown:tt=>{(tt.key===" "||tt.key==="Enter")&&et()},children:jsx$1("span",{children:$("theEnd.startOver-button")})})})};var _ref$3={name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"},_ref2$1={name:"rhwgco",styles:"font-size:80px"},_ref3$1={name:"rhwgco",styles:"font-size:80px"};const Error$1=()=>{const{t:$}=useTranslation(),_e=useAppSelector(selectErrorTitle),et=useAppSelector(selectErrorMessage),tt=useAppSelector(selectErrorDetails),nt=useAppSelector(selectErrorIcon),rt=_ref$3,ot=css({height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(10,!1)},"","");return jsxs("div",{css:ot,children:[jsx$1("div",{children:_e||$("error.generic-message")}),nt?jsx$1(nt,{css:_ref2$1}):jsx$1(LuFrown,{css:_ref3$1}),jsx$1("span",{children:et}),jsx$1("br",{}),tt&&jsxs("div",{css:rt,children:[jsx$1("span",{children:$("error.details")}),jsx$1("br",{}),jsx$1("span",{children:tt})]})]})};var _ref$2={name:"oaz9xn",styles:"height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;a{color:#007bff;text-decoration:none;}li{margin:5px;}code{user-select:all;color:#e83e8c;}"};const Landing=()=>{const{t:$}=useTranslation();return jsxs("div",{css:_ref$2,children:[jsx$1("h1",{children:$("landing.main-heading")}),jsxs("div",{children:[jsx$1("li",{children:$("landing.contact-admin")}),jsxs("li",{children:[$("landing.start-editing-1"),jsx$1("code",{children:" ?id=[media-package-id]"}),$("landing.start-editing-2")]}),jsxs("li",{children:[$("landing.link-to-documentation"),jsx$1("a",{href:"https://docs.opencast.org/stable/admin/modules/editor/",children:"docs.opencast.org"})]})]})]})},Lock=()=>{const $=`${settings.opencast.url}/editor/${settings.id}/lock`,_e=useAppDispatch(),et=useAppSelector(lt=>lt.videoState.lockingActive),tt=useAppSelector(lt=>lt.videoState.lockRefresh),nt=useAppSelector(lt=>lt.videoState.lockState),rt=useAppSelector(lt=>lt.videoState.lock),ot=useAppSelector(selectIsEnd);function it(){const lt=`user=${rt.user}&uuid=${rt.uuid}`;client.post($,lt,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then(()=>_e(setLock(!0))).catch(ct=>{_e(setLock(!1)),_e(setError({error:!0,errorDetails:ct,errorIcon:LuLock,errorTitle:"Video editing locked",errorMessage:"This video is currently being edited by another user"}))})}function st(){et&&nt&&client.delete($+"/"+rt.uuid).then(()=>{console.info("Lock released"),_e(setLock(!1))})}return reactExports.useEffect(()=>{et&&it()},[et]),useInterval(async()=>{it()},et?tt:null),l(lt=>{st()}),reactExports.useEffect(()=>{ot&&st()},[ot]),jsx$1(Fragment,{})};var _ref$1={name:"1np9i38",styles:"display:flex;flex-direction:row;height:calc(100% - 64px)"};const Body=()=>{const $=useAppSelector(selectIsEnd),_e=useAppSelector(selectIsError),et=()=>settings.id?$?jsxs("div",{children:[jsx$1(Lock,{}),jsx$1(TheEnd,{})]}):_e?jsx$1(Error$1,{}):jsxs("div",{css:tt,children:[jsx$1(Lock,{}),jsx$1(MainMenu,{}),jsx$1(MainContent,{})]}):jsx$1(Landing,{}),tt=_ref$1;return jsx$1(React$5.Fragment,{children:et()})};function HiOutlineTranslate($){return GenIcon({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"}}]})($)}const SvgOpencastEditor=$=>reactExports.createElement("svg",{id:"Ebene_1",x:"0px",y:"0px",width:"165.18565mm",height:"32.482224mm",viewBox:"0 0 585.30348 115.09449",enableBackground:"new 0 0 717.17 540",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnssvg:"http://www.w3.org/2000/svg",...$},reactExports.createElement("g",{id:"g3",style:{fill:"#ffffff",fillOpacity:1},transform:"matrix(1.1241114,0,0,1.1241114,-189.53592,-271.99556)"},reactExports.createElement("g",{id:"g5",style:{fill:"#ffffff",fillOpacity:1}},reactExports.createElement("path",{style:{fill:"#ffffff",fillOpacity:1},d:"m 219.23899,257.72546 0.001,0.58345 -34.86996,34.85638 34.90819,34.84282 v 0.37499 l 0.1875,-0.18749 0.12088,0.12088 35.13763,-35.1512 -35.1771,-35.16352 -0.016,0.016 -0.29234,-0.29234 z m 28.15352,0.20846 0.0222,16.51664 0.17268,0.17269 v 0.0222 l 18.63457,18.63333 -18.80725,18.80725 0.0173,16.50553 0.17146,-0.17146 v 0.10362 l 35.13763,-35.1512 -0.0518,-0.0518 0.0518,-0.0518 -35.34856,-35.33499 z m 72.20199,16.2465 c -1.78847,0.0374 -3.57301,0.34057 -5.24857,0.88319 -5.81212,1.92127 -9.6997,7.60532 -10.64391,13.49208 -1.00035,5.97702 -0.32001,12.69391 3.68695,17.49973 2.86126,3.62624 7.46708,5.64618 12.05997,5.53844 3.69724,0.0383 7.43955,-1.11894 10.24303,-3.58086 4.29493,-3.62438 6.19657,-9.36277 6.20453,-14.85634 0.16567,-5.46563 -1.39919,-11.28717 -5.5335,-15.08577 -2.87648,-2.76943 -6.83387,-3.97285 -10.7685,-3.89047 z m 183.39383,0.007 c -3.93323,-0.0442 -8.08277,0.75109 -10.91281,3.6339 -2.91388,3.00152 -3.34765,7.8227 -1.73925,11.57028 1.54457,3.40377 5.01183,5.29586 8.30149,6.68437 2.12469,1.0487 4.7021,2.06857 5.59888,4.45172 0.60057,1.74353 -0.57646,3.63317 -2.28568,4.14457 -4.28556,1.40174 -9.14636,-0.17066 -12.37946,-3.16764 v 8.07083 c 0.22966,0.12812 0.46414,0.24772 0.70186,0.36018 4.03605,1.76778 8.63829,1.98967 12.94687,1.29148 3.55077,-0.53025 7.06756,-2.66144 8.3459,-6.15149 0.98226,-2.92198 1.02285,-6.30603 -0.33551,-9.12054 -1.81091,-3.59949 -5.70527,-5.29994 -9.17112,-6.90392 -1.81573,-0.95665 -4.11706,-1.96629 -4.67622,-4.14458 -0.4685,-1.9159 1.18536,-3.59331 2.95302,-3.97682 3.56971,-0.87438 7.50092,0.0677 10.46629,2.18824 v -7.54165 c -1.94706,-0.81239 -4.04827,-1.19326 -6.14656,-1.32232 -0.54862,-0.0369 -1.10581,-0.0603 -1.6677,-0.0666 z m -57.50847,0.001 c -5.24443,0 -9.50914,1.79985 -12.79638,5.39782 -3.28851,3.5986 -4.93279,8.28992 -4.93279,14.07306 0,5.43138 1.46288,9.77864 4.38635,13.04062 2.92283,3.26198 6.93659,4.89331 12.04271,4.89331 3.91374,0 7.08632,-0.63986 9.51402,-1.91687 v -7.44173 c -2.4277,1.54731 -5.10542,2.32022 -8.02888,2.32022 -3.06241,0 -5.49909,-1.03805 -7.30976,-3.1146 -1.8094,-2.07592 -2.7137,-4.86378 -2.7137,-8.3607 0,-3.64849 0.95786,-6.53995 2.87652,-8.67524 1.91867,-2.13528 4.44013,-3.20341 7.56633,-3.20341 2.84578,0 5.382,0.72347 7.60949,2.16973 v -7.84509 c -2.22812,-0.89112 -4.96393,-1.33712 -8.21391,-1.33712 z m -225.97196,0.31208 18.55808,18.55808 -18.66293,18.66293 -18.60372,-18.55808 z m 121.01178,0.29357 v 36.16761 h 7.49601 v -12.45964 h 3.57223 c 4.023,0 7.23549,-1.12169 9.64108,-3.36623 2.40622,-2.24518 3.608,-5.18316 3.608,-8.81587 0,-7.68412 -4.1917,-11.52587 -12.57559,-11.52587 z m 28.28797,0 v 36.16761 h 19.95441 v -6.60789 h -12.45963 v -8.27312 h 10.88322 v -6.60789 h -10.88322 v -8.04492 h 11.69486 v -6.63379 z m 24.39133,0 v 36.16884 h 7.07662 v -19.87547 c 0,-2.62284 -0.0619,-4.57288 -0.18503,-5.85051 h 0.0913 c 0.31009,0.67197 0.8668,1.67232 1.6714,3.00112 l 13.71411,22.72363 h 7.56385 v -36.16761 h -7.07785 v 20.00252 c 0,2.47191 0.0618,4.12799 0.18626,4.96733 h -0.0925 c -0.51093,-0.97449 -1.06703,-1.95901 -1.67017,-2.95055 l -13.20343,-22.0193 h -8.07453 z m 73.93259,0 -12.11425,36.16761 h 8.1214 l 2.34489,-8.04492 h 11.83302 l 2.36833,8.04492 h 8.1658 l -11.83301,-36.16761 z m 46.62033,0 v 6.63379 h 9.44495 v 29.53382 h 7.51698 v -29.53382 h 9.49182 10e-4 v -6.63379 h -26.45499 z m -165.73621,6.25511 h 2.94684 c 3.99206,0 5.9862,1.85874 5.9862,5.57544 0,3.7988 -1.99477,5.70003 -5.9862,5.70003 h -2.94684 z m -28.80235,0.15172 c 0.18612,-0.008 0.37292,-0.008 0.56125,0 0.60875,-10e-5 1.2194,0.059 1.81325,0.19489 3.48121,0.74389 5.50196,4.24534 6.06021,7.52562 0.63876,3.99683 0.64114,8.43096 -1.50487,12.00447 -1.48677,2.57327 -4.54648,3.98356 -7.47134,3.58086 -3.55247,-0.29975 -6.09331,-3.49763 -6.9027,-6.76701 -0.93637,-3.95463 -0.87612,-8.34514 0.95103,-12.04394 1.19246,-2.50172 3.70148,-4.37577 6.49317,-4.49489 z m 152.07145,0.0506 h 0.18626 c 0.10736,1.26122 0.29295,2.34458 0.55631,3.25276 l 3.57223,12.15742 h -8.51365 l 3.61786,-12.25734 c 0.30946,-1.04206 0.50331,-2.09309 0.58099,-3.15284 z",id:"polygon7"})),reactExports.createElement("g",{id:"g9",style:{fill:"#ffffff",fillOpacity:1}}),reactExports.createElement("g",{id:"g13",style:{fill:"#ffffff",fillOpacity:1}})),reactExports.createElement("g",{id:"g35",style:{fill:"#000000",fillOpacity:1},transform:"translate(-166.65349,-231.21359)"}),reactExports.createElement("g",{id:"g39",style:{fill:"#000000",fillOpacity:1},transform:"translate(-166.65349,-231.21359)"}),reactExports.createElement("g",{id:"g43",style:{fill:"#000000",fillOpacity:1},transform:"translate(-166.65349,-231.21359)"}),reactExports.createElement("g",{"aria-label":"EDITOR",id:"text824"},reactExports.createElement("path",{d:"m 425.88736,77.535515 h 18.0375 c 0.6,0 1.125,-0.4875 1.125,-1.125 0,-0.6 -0.525,-1.125 -1.125,-1.125 h -16.9125 v -11.25 h 12.4125 c 0.6375,0 1.125,-0.525 1.125,-1.1625 0,-0.6375 -0.4875,-1.125 -1.125,-1.125 h -12.4125 v -11.25 h 16.9125 c 0.6,0 1.125,-0.525 1.125,-1.125 0,-0.6375 -0.525,-1.125 -1.125,-1.125 h -18.0375 c -0.6375,0 -1.125,0.4875 -1.125,1.125 v 27.0375 c 0,0.6375 0.4875,1.125 1.125,1.125 z",style:{fill:"#ffffff"},id:"path176"}),reactExports.createElement("path",{d:"m 451.61239,77.535515 h 6.75 c 8.5875,0 14.6625,-6.075 14.6625,-14.6625 0,-8.55 -6.075,-14.625 -14.6625,-14.625 h -6.75 c -0.675,0 -1.125,0.45 -1.125,1.125 v 27.0375 c 0,0.675 0.45,1.125 1.125,1.125 z m 1.125,-2.025 v -25.2375 h 5.625 c 7.275,0 12.4125,5.3625 12.4125,12.6 0,7.275 -5.1375,12.6375 -12.4125,12.6375 z",style:{fill:"#ffffff"},id:"path178"}),reactExports.createElement("path",{d:"m 480.14988,77.535515 c 0.6375,0 1.125,-0.4875 1.125,-1.125 v -27.0375 c 0,-0.6375 -0.4875,-1.125 -1.125,-1.125 -0.6375,0 -1.125,0.4875 -1.125,1.125 v 27.0375 c 0,0.6375 0.4875,1.125 1.125,1.125 z",style:{fill:"#ffffff"},id:"path180"}),reactExports.createElement("path",{d:"m 507.82489,48.248015 h -21.225 c -0.6,0 -1.0125,0.4125 -1.0125,1.0125 0,0.6 0.4125,1.0125 1.0125,1.0125 h 9.4875 v 26.1375 c 0,0.6375 0.4875,1.125 1.125,1.125 0.6375,0 1.125,-0.4875 1.125,-1.125 v -26.1375 h 9.4875 c 0.6,0 1.0125,-0.4125 1.0125,-1.0125 0,-0.6 -0.4125,-1.0125 -1.0125,-1.0125 z",style:{fill:"#ffffff"},id:"path182"}),reactExports.createElement("path",{d:"m 524.8124,77.910515 c 8.55,0 15,-6.45 15,-15.0375 0,-8.55 -6.45,-15 -15,-15 -8.5875,0 -15.0375,6.45 -15.0375,15 0,8.5875 6.45,15.0375 15.0375,15.0375 z m 0,-2.25 c -7.275,0 -12.7875,-5.5125 -12.7875,-12.7875 0,-7.2375 5.5125,-12.75 12.7875,-12.75 7.2375,0 12.75,5.5125 12.75,12.75 0,7.275 -5.5125,12.7875 -12.75,12.7875 z",style:{fill:"#ffffff"},id:"path184"}),reactExports.createElement("path",{d:"m 563.62489,75.810515 -6.45,-10.3125 c 3.7875,-1.0875 6.3,-4.2375 6.3,-8.3625 0,-5.2125 -3.9,-8.8875 -9.375,-8.8875 h -7.1625 c -0.675,0 -1.125,0.45 -1.125,1.125 v 27.0375 c 0,0.675 0.45,1.125 1.125,1.125 0.675,0 1.125,-0.45 1.125,-1.125 v -10.5 h 6.0375 0.675 l 6.9,11.025 c 0.225,0.3375 0.45,0.6 1.0125,0.6 1.1625,0 1.575,-0.7125 0.9375,-1.725 z m -15.5625,-12.15 v -13.1625 h 6.0375 c 4.1625,0 7.125,2.7375 7.125,6.6375 0,3.825 -2.9625,6.525 -7.125,6.525 z",style:{fill:"#ffffff"},id:"path186"}))),consoleLogger={type:"logger",log($){this.output("log",$)},warn($){this.output("warn",$)},error($){this.output("error",$)},output($,_e){console&&console[$]&&console[$].apply(console,_e)}};class Logger{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(_e,et)}init(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=et.prefix||"i18next:",this.logger=_e||consoleLogger,this.options=et,this.debug=et.debug}log(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"log","",!0)}warn(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"warn","",!0)}error(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"error","")}deprecate(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return this.forward(et,"warn","WARNING DEPRECATED: ",!0)}forward(_e,et,tt,nt){return nt&&!this.debug?null:(typeof _e[0]=="string"&&(_e[0]=`${tt}${this.prefix} ${_e[0]}`),this.logger[et](_e))}create(_e){return new Logger(this.logger,{prefix:`${this.prefix}:${_e}:`,...this.options})}clone(_e){return _e=_e||this.options,_e.prefix=_e.prefix||this.prefix,new Logger(this.logger,_e)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(_e,et){return _e.split(" ").forEach(tt=>{this.observers[tt]=this.observers[tt]||[],this.observers[tt].push(et)}),this}off(_e,et){if(this.observers[_e]){if(!et){delete this.observers[_e];return}this.observers[_e]=this.observers[_e].filter(tt=>tt!==et)}}emit(_e){for(var et=arguments.length,tt=new Array(et>1?et-1:0),nt=1;nt{ot(...tt)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(ot=>{ot.apply(ot,[_e,...tt])})}}function defer(){let $,_e;const et=new Promise((tt,nt)=>{$=tt,_e=nt});return et.resolve=$,et.reject=_e,et}function makeString($){return $==null?"":""+$}function copy($,_e,et){$.forEach(tt=>{_e[tt]&&(et[tt]=_e[tt])})}function getLastOfPath($,_e,et){function tt(ot){return ot&&ot.indexOf("###")>-1?ot.replace(/###/g,"."):ot}function nt(){return!$||typeof $=="string"}const rt=typeof _e!="string"?[].concat(_e):_e.split(".");for(;rt.length>1;){if(nt())return{};const ot=tt(rt.shift());!$[ot]&&et&&($[ot]=new et),Object.prototype.hasOwnProperty.call($,ot)?$=$[ot]:$={}}return nt()?{}:{obj:$,k:tt(rt.shift())}}function setPath($,_e,et){const{obj:tt,k:nt}=getLastOfPath($,_e,Object);tt[nt]=et}function pushPath($,_e,et,tt){const{obj:nt,k:rt}=getLastOfPath($,_e,Object);nt[rt]=nt[rt]||[],tt&&(nt[rt]=nt[rt].concat(et)),tt||nt[rt].push(et)}function getPath($,_e){const{obj:et,k:tt}=getLastOfPath($,_e);if(et)return et[tt]}function getPathWithDefaults($,_e,et){const tt=getPath($,et);return tt!==void 0?tt:getPath(_e,et)}function deepExtend($,_e,et){for(const tt in _e)tt!=="__proto__"&&tt!=="constructor"&&(tt in $?typeof $[tt]=="string"||$[tt]instanceof String||typeof _e[tt]=="string"||_e[tt]instanceof String?et&&($[tt]=_e[tt]):deepExtend($[tt],_e[tt],et):$[tt]=_e[tt]);return $}function regexEscape($){return $.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape($){return typeof $=="string"?$.replace(/[&<>"'\/]/g,_e=>_entityMap[_e]):$}const chars=[" ",",","?","!",";"];function looksLikeObjectPath($,_e,et){_e=_e||"",et=et||"";const tt=chars.filter(ot=>_e.indexOf(ot)<0&&et.indexOf(ot)<0);if(tt.length===0)return!0;const nt=new RegExp(`(${tt.map(ot=>ot==="?"?"\\?":ot).join("|")})`);let rt=!nt.test($);if(!rt){const ot=$.indexOf(et);ot>0&&!nt.test($.substring(0,ot))&&(rt=!0)}return rt}function deepFind($,_e){let et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!$)return;if($[_e])return $[_e];const tt=_e.split(et);let nt=$;for(let rt=0;rtrt+ot;)ot++,it=tt.slice(rt,rt+ot).join(et),st=nt[it];if(st===void 0)return;if(st===null)return null;if(_e.endsWith(it)){if(typeof st=="string")return st;if(it&&typeof st[it]=="string")return st[it]}const lt=tt.slice(rt+ot).join(et);return lt?deepFind(st,lt,et):void 0}nt=nt[tt[rt]]}return nt}function getCleanedCode($){return $&&$.indexOf("_")>0?$.replace("_","-"):$}class ResourceStore extends EventEmitter{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=_e||{},this.options=et,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(_e){this.options.ns.indexOf(_e)<0&&this.options.ns.push(_e)}removeNamespaces(_e){const et=this.options.ns.indexOf(_e);et>-1&&this.options.ns.splice(et,1)}getResource(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const rt=nt.keySeparator!==void 0?nt.keySeparator:this.options.keySeparator,ot=nt.ignoreJSONStructure!==void 0?nt.ignoreJSONStructure:this.options.ignoreJSONStructure;let it=[_e,et];tt&&typeof tt!="string"&&(it=it.concat(tt)),tt&&typeof tt=="string"&&(it=it.concat(rt?tt.split(rt):tt)),_e.indexOf(".")>-1&&(it=_e.split("."));const st=getPath(this.data,it);return st||!ot||typeof tt!="string"?st:deepFind(this.data&&this.data[_e]&&this.data[_e][et],tt,rt)}addResource(_e,et,tt,nt){let rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const ot=rt.keySeparator!==void 0?rt.keySeparator:this.options.keySeparator;let it=[_e,et];tt&&(it=it.concat(ot?tt.split(ot):tt)),_e.indexOf(".")>-1&&(it=_e.split("."),nt=et,et=it[1]),this.addNamespaces(et),setPath(this.data,it,nt),rt.silent||this.emit("added",_e,et,tt,nt)}addResources(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const rt in tt)(typeof tt[rt]=="string"||Object.prototype.toString.apply(tt[rt])==="[object Array]")&&this.addResource(_e,et,rt,tt[rt],{silent:!0});nt.silent||this.emit("added",_e,et,tt)}addResourceBundle(_e,et,tt,nt,rt){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},it=[_e,et];_e.indexOf(".")>-1&&(it=_e.split("."),nt=tt,tt=et,et=it[1]),this.addNamespaces(et);let st=getPath(this.data,it)||{};nt?deepExtend(st,tt,rt):st={...st,...tt},setPath(this.data,it,st),ot.silent||this.emit("added",_e,et,tt)}removeResourceBundle(_e,et){this.hasResourceBundle(_e,et)&&delete this.data[_e][et],this.removeNamespaces(et),this.emit("removed",_e,et)}hasResourceBundle(_e,et){return this.getResource(_e,et)!==void 0}getResourceBundle(_e,et){return et||(et=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(_e,et)}:this.getResource(_e,et)}getDataByLanguage(_e){return this.data[_e]}hasLanguageSomeTranslations(_e){const et=this.getDataByLanguage(_e);return!!(et&&Object.keys(et)||[]).find(nt=>et[nt]&&Object.keys(et[nt]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor($){this.processors[$.name]=$},handle($,_e,et,tt,nt){return $.forEach(rt=>{this.processors[rt]&&(_e=this.processors[rt].process(_e,et,tt,nt))}),_e}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],_e,this),this.options=et,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(_e){_e&&(this.language=_e)}exists(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(_e==null)return!1;const tt=this.resolve(_e,et);return tt&&tt.res!==void 0}extractFromKey(_e,et){let tt=et.nsSeparator!==void 0?et.nsSeparator:this.options.nsSeparator;tt===void 0&&(tt=":");const nt=et.keySeparator!==void 0?et.keySeparator:this.options.keySeparator;let rt=et.ns||this.options.defaultNS||[];const ot=tt&&_e.indexOf(tt)>-1,it=!this.options.userDefinedKeySeparator&&!et.keySeparator&&!this.options.userDefinedNsSeparator&&!et.nsSeparator&&!looksLikeObjectPath(_e,tt,nt);if(ot&&!it){const st=_e.match(this.interpolator.nestingRegexp);if(st&&st.length>0)return{key:_e,namespaces:rt};const lt=_e.split(tt);(tt!==nt||tt===nt&&this.options.ns.indexOf(lt[0])>-1)&&(rt=lt.shift()),_e=lt.join(nt)}return typeof rt=="string"&&(rt=[rt]),{key:_e,namespaces:rt}}translate(_e,et,tt){if(typeof et!="object"&&this.options.overloadTranslationOptionHandler&&(et=this.options.overloadTranslationOptionHandler(arguments)),typeof et=="object"&&(et={...et}),et||(et={}),_e==null)return"";Array.isArray(_e)||(_e=[String(_e)]);const nt=et.returnDetails!==void 0?et.returnDetails:this.options.returnDetails,rt=et.keySeparator!==void 0?et.keySeparator:this.options.keySeparator,{key:ot,namespaces:it}=this.extractFromKey(_e[_e.length-1],et),st=it[it.length-1],lt=et.lng||this.language,ct=et.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lt&<.toLowerCase()==="cimode"){if(ct){const Tt=et.nsSeparator||this.options.nsSeparator;return nt?{res:`${st}${Tt}${ot}`,usedKey:ot,exactUsedKey:ot,usedLng:lt,usedNS:st,usedParams:this.getUsedParamsDetails(et)}:`${st}${Tt}${ot}`}return nt?{res:ot,usedKey:ot,exactUsedKey:ot,usedLng:lt,usedNS:st,usedParams:this.getUsedParamsDetails(et)}:ot}const ft=this.resolve(_e,et);let dt=ft&&ft.res;const pt=ft&&ft.usedKey||ot,ht=ft&&ft.exactUsedKey||ot,gt=Object.prototype.toString.apply(dt),yt=["[object Number]","[object Function]","[object RegExp]"],vt=et.joinArrays!==void 0?et.joinArrays:this.options.joinArrays,Et=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Et&&dt&&(typeof dt!="string"&&typeof dt!="boolean"&&typeof dt!="number")&&yt.indexOf(gt)<0&&!(typeof vt=="string"&>==="[object Array]")){if(!et.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Tt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(pt,dt,{...et,ns:it}):`key '${ot} (${this.language})' returned an object instead of string.`;return nt?(ft.res=Tt,ft.usedParams=this.getUsedParamsDetails(et),ft):Tt}if(rt){const Tt=gt==="[object Array]",xt=Tt?[]:{},$t=Tt?ht:pt;for(const wt in dt)if(Object.prototype.hasOwnProperty.call(dt,wt)){const mt=`${$t}${rt}${wt}`;xt[wt]=this.translate(mt,{...et,joinArrays:!1,ns:it}),xt[wt]===mt&&(xt[wt]=dt[wt])}dt=xt}}else if(Et&&typeof vt=="string"&>==="[object Array]")dt=dt.join(vt),dt&&(dt=this.extendTranslation(dt,_e,et,tt));else{let Tt=!1,xt=!1;const $t=et.count!==void 0&&typeof et.count!="string",wt=Translator.hasDefaultValue(et),mt=$t?this.pluralResolver.getSuffix(lt,et.count,et):"",Ct=et.ordinal&&$t?this.pluralResolver.getSuffix(lt,et.count,{ordinal:!1}):"",St=et[`defaultValue${mt}`]||et[`defaultValue${Ct}`]||et.defaultValue;!this.isValidLookup(dt)&&wt&&(Tt=!0,dt=St),this.isValidLookup(dt)||(xt=!0,dt=ot);const At=(et.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&xt?void 0:dt,Mt=wt&&St!==dt&&this.options.updateMissing;if(xt||Tt||Mt){if(this.logger.log(Mt?"updateKey":"missingKey",lt,st,ot,Mt?St:dt),rt){const Ft=this.resolve(ot,{...et,keySeparator:!1});Ft&&Ft.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Rt=[];const kt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,et.lng||this.language);if(this.options.saveMissingTo==="fallback"&&kt&&kt[0])for(let Ft=0;Ft{const Bt=wt&&Dt!==dt?Dt:At;this.options.missingKeyHandler?this.options.missingKeyHandler(Ft,st,Lt,Bt,Mt,et):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ft,st,Lt,Bt,Mt,et),this.emit("missingKey",Ft,st,Lt,dt)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$t?Rt.forEach(Ft=>{this.pluralResolver.getSuffixes(Ft,et).forEach(Lt=>{Nt([Ft],ot+Lt,et[`defaultValue${Lt}`]||St)})}):Nt(Rt,ot,St))}dt=this.extendTranslation(dt,_e,et,ft,tt),xt&&dt===ot&&this.options.appendNamespaceToMissingKey&&(dt=`${st}:${ot}`),(xt||Tt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?dt=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${st}:${ot}`:ot,Tt?dt:void 0):dt=this.options.parseMissingKeyHandler(dt))}return nt?(ft.res=dt,ft.usedParams=this.getUsedParamsDetails(et),ft):dt}extendTranslation(_e,et,tt,nt,rt){var ot=this;if(this.i18nFormat&&this.i18nFormat.parse)_e=this.i18nFormat.parse(_e,{...this.options.interpolation.defaultVariables,...tt},tt.lng||this.language||nt.usedLng,nt.usedNS,nt.usedKey,{resolved:nt});else if(!tt.skipInterpolation){tt.interpolation&&this.interpolator.init({...tt,interpolation:{...this.options.interpolation,...tt.interpolation}});const lt=typeof _e=="string"&&(tt&&tt.interpolation&&tt.interpolation.skipOnVariables!==void 0?tt.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let ct;if(lt){const dt=_e.match(this.interpolator.nestingRegexp);ct=dt&&dt.length}let ft=tt.replace&&typeof tt.replace!="string"?tt.replace:tt;if(this.options.interpolation.defaultVariables&&(ft={...this.options.interpolation.defaultVariables,...ft}),_e=this.interpolator.interpolate(_e,ft,tt.lng||this.language,tt),lt){const dt=_e.match(this.interpolator.nestingRegexp),pt=dt&&dt.length;ct1&&arguments[1]!==void 0?arguments[1]:{},tt,nt,rt,ot,it;return typeof _e=="string"&&(_e=[_e]),_e.forEach(st=>{if(this.isValidLookup(tt))return;const lt=this.extractFromKey(st,et),ct=lt.key;nt=ct;let ft=lt.namespaces;this.options.fallbackNS&&(ft=ft.concat(this.options.fallbackNS));const dt=et.count!==void 0&&typeof et.count!="string",pt=dt&&!et.ordinal&&et.count===0&&this.pluralResolver.shouldUseIntlApi(),ht=et.context!==void 0&&(typeof et.context=="string"||typeof et.context=="number")&&et.context!=="",gt=et.lngs?et.lngs:this.languageUtils.toResolveHierarchy(et.lng||this.language,et.fallbackLng);ft.forEach(yt=>{this.isValidLookup(tt)||(it=yt,!checkedLoadedFor[`${gt[0]}-${yt}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(it)&&(checkedLoadedFor[`${gt[0]}-${yt}`]=!0,this.logger.warn(`key "${nt}" for languages "${gt.join(", ")}" won't get resolved as namespace "${it}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),gt.forEach(vt=>{if(this.isValidLookup(tt))return;ot=vt;const Et=[ct];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Et,ct,vt,yt,et);else{let Tt;dt&&(Tt=this.pluralResolver.getSuffix(vt,et.count,et));const xt=`${this.options.pluralSeparator}zero`,$t=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(dt&&(Et.push(ct+Tt),et.ordinal&&Tt.indexOf($t)===0&&Et.push(ct+Tt.replace($t,this.options.pluralSeparator)),pt&&Et.push(ct+xt)),ht){const wt=`${ct}${this.options.contextSeparator}${et.context}`;Et.push(wt),dt&&(Et.push(wt+Tt),et.ordinal&&Tt.indexOf($t)===0&&Et.push(wt+Tt.replace($t,this.options.pluralSeparator)),pt&&Et.push(wt+xt))}}let Ot;for(;Ot=Et.pop();)this.isValidLookup(tt)||(rt=Ot,tt=this.getResource(vt,yt,Ot,et))}))})}),{res:tt,usedKey:nt,exactUsedKey:rt,usedLng:ot,usedNS:it}}isValidLookup(_e){return _e!==void 0&&!(!this.options.returnNull&&_e===null)&&!(!this.options.returnEmptyString&&_e==="")}getResource(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(_e,et,tt,nt):this.resourceStore.getResource(_e,et,tt,nt)}getUsedParamsDetails(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const et=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],tt=_e.replace&&typeof _e.replace!="string";let nt=tt?_e.replace:_e;if(tt&&typeof _e.count<"u"&&(nt.count=_e.count),this.options.interpolation.defaultVariables&&(nt={...this.options.interpolation.defaultVariables,...nt}),!tt){nt={...nt};for(const rt of et)delete nt[rt]}return nt}static hasDefaultValue(_e){const et="defaultValue";for(const tt in _e)if(Object.prototype.hasOwnProperty.call(_e,tt)&&et===tt.substring(0,et.length)&&_e[tt]!==void 0)return!0;return!1}}function capitalize($){return $.charAt(0).toUpperCase()+$.slice(1)}class LanguageUtil{constructor(_e){this.options=_e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(_e){if(_e=getCleanedCode(_e),!_e||_e.indexOf("-")<0)return null;const et=_e.split("-");return et.length===2||(et.pop(),et[et.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(et.join("-"))}getLanguagePartFromCode(_e){if(_e=getCleanedCode(_e),!_e||_e.indexOf("-")<0)return _e;const et=_e.split("-");return this.formatLanguageCode(et[0])}formatLanguageCode(_e){if(typeof _e=="string"&&_e.indexOf("-")>-1){const et=["hans","hant","latn","cyrl","cans","mong","arab"];let tt=_e.split("-");return this.options.lowerCaseLng?tt=tt.map(nt=>nt.toLowerCase()):tt.length===2?(tt[0]=tt[0].toLowerCase(),tt[1]=tt[1].toUpperCase(),et.indexOf(tt[1].toLowerCase())>-1&&(tt[1]=capitalize(tt[1].toLowerCase()))):tt.length===3&&(tt[0]=tt[0].toLowerCase(),tt[1].length===2&&(tt[1]=tt[1].toUpperCase()),tt[0]!=="sgn"&&tt[2].length===2&&(tt[2]=tt[2].toUpperCase()),et.indexOf(tt[1].toLowerCase())>-1&&(tt[1]=capitalize(tt[1].toLowerCase())),et.indexOf(tt[2].toLowerCase())>-1&&(tt[2]=capitalize(tt[2].toLowerCase()))),tt.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?_e.toLowerCase():_e}isSupportedCode(_e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(_e=this.getLanguagePartFromCode(_e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(_e)>-1}getBestMatchFromCodes(_e){if(!_e)return null;let et;return _e.forEach(tt=>{if(et)return;const nt=this.formatLanguageCode(tt);(!this.options.supportedLngs||this.isSupportedCode(nt))&&(et=nt)}),!et&&this.options.supportedLngs&&_e.forEach(tt=>{if(et)return;const nt=this.getLanguagePartFromCode(tt);if(this.isSupportedCode(nt))return et=nt;et=this.options.supportedLngs.find(rt=>{if(rt===nt)return rt;if(!(rt.indexOf("-")<0&&nt.indexOf("-")<0)&&rt.indexOf(nt)===0)return rt})}),et||(et=this.getFallbackCodes(this.options.fallbackLng)[0]),et}getFallbackCodes(_e,et){if(!_e)return[];if(typeof _e=="function"&&(_e=_e(et)),typeof _e=="string"&&(_e=[_e]),Object.prototype.toString.apply(_e)==="[object Array]")return _e;if(!et)return _e.default||[];let tt=_e[et];return tt||(tt=_e[this.getScriptPartFromCode(et)]),tt||(tt=_e[this.formatLanguageCode(et)]),tt||(tt=_e[this.getLanguagePartFromCode(et)]),tt||(tt=_e.default),tt||[]}toResolveHierarchy(_e,et){const tt=this.getFallbackCodes(et||this.options.fallbackLng||[],_e),nt=[],rt=ot=>{ot&&(this.isSupportedCode(ot)?nt.push(ot):this.logger.warn(`rejecting language code not found in supportedLngs: ${ot}`))};return typeof _e=="string"&&(_e.indexOf("-")>-1||_e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&rt(this.formatLanguageCode(_e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&rt(this.getScriptPartFromCode(_e)),this.options.load!=="currentOnly"&&rt(this.getLanguagePartFromCode(_e))):typeof _e=="string"&&rt(this.formatLanguageCode(_e)),tt.forEach(ot=>{nt.indexOf(ot)<0&&rt(this.formatLanguageCode(ot))}),nt}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function($){return+($>1)},2:function($){return+($!=1)},3:function($){return 0},4:function($){return $%10==1&&$%100!=11?0:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?1:2},5:function($){return $==0?0:$==1?1:$==2?2:$%100>=3&&$%100<=10?3:$%100>=11?4:5},6:function($){return $==1?0:$>=2&&$<=4?1:2},7:function($){return $==1?0:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?1:2},8:function($){return $==1?0:$==2?1:$!=8&&$!=11?2:3},9:function($){return+($>=2)},10:function($){return $==1?0:$==2?1:$<7?2:$<11?3:4},11:function($){return $==1||$==11?0:$==2||$==12?1:$>2&&$<20?2:3},12:function($){return+($%10!=1||$%100==11)},13:function($){return+($!==0)},14:function($){return $==1?0:$==2?1:$==3?2:3},15:function($){return $%10==1&&$%100!=11?0:$%10>=2&&($%100<10||$%100>=20)?1:2},16:function($){return $%10==1&&$%100!=11?0:$!==0?1:2},17:function($){return $==1||$%10==1&&$%100!=11?0:1},18:function($){return $==0?0:$==1?1:2},19:function($){return $==1?0:$==0||$%100>1&&$%100<11?1:$%100>10&&$%100<20?2:3},20:function($){return $==1?0:$==0||$%100>0&&$%100<20?1:2},21:function($){return $%100==1?1:$%100==2?2:$%100==3||$%100==4?3:0},22:function($){return $==1?0:$==2?1:($<0||$>10)&&$%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const $={};return sets.forEach(_e=>{_e.lngs.forEach(et=>{$[et]={numbers:_e.nr,plurals:_rulesPluralsTypes[_e.fc]}})}),$}class PluralResolver{constructor(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=_e,this.options=et,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(_e,et){this.rules[_e]=et}getRule(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(_e),{type:et.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[_e]||this.rules[this.languageUtils.getLanguagePartFromCode(_e)]}needsPlural(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const tt=this.getRule(_e,et);return this.shouldUseIntlApi()?tt&&tt.resolvedOptions().pluralCategories.length>1:tt&&tt.numbers.length>1}getPluralFormsOfKey(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(_e,tt).map(nt=>`${et}${nt}`)}getSuffixes(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const tt=this.getRule(_e,et);return tt?this.shouldUseIntlApi()?tt.resolvedOptions().pluralCategories.sort((nt,rt)=>suffixesOrder[nt]-suffixesOrder[rt]).map(nt=>`${this.options.prepend}${et.ordinal?`ordinal${this.options.prepend}`:""}${nt}`):tt.numbers.map(nt=>this.getSuffix(_e,nt,et)):[]}getSuffix(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const nt=this.getRule(_e,tt);return nt?this.shouldUseIntlApi()?`${this.options.prepend}${tt.ordinal?`ordinal${this.options.prepend}`:""}${nt.select(et)}`:this.getSuffixRetroCompatible(nt,et):(this.logger.warn(`no plural rule found for: ${_e}`),"")}getSuffixRetroCompatible(_e,et){const tt=_e.noAbs?_e.plurals(et):_e.plurals(Math.abs(et));let nt=_e.numbers[tt];this.options.simplifyPluralSuffix&&_e.numbers.length===2&&_e.numbers[0]===1&&(nt===2?nt="plural":nt===1&&(nt=""));const rt=()=>this.options.prepend&&nt.toString()?this.options.prepend+nt.toString():nt.toString();return this.options.compatibilityJSON==="v1"?nt===1?"":typeof nt=="number"?`_plural_${nt.toString()}`:rt():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&_e.numbers.length===2&&_e.numbers[0]===1?rt():this.options.prepend&&tt.toString()?this.options.prepend+tt.toString():tt.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults($,_e,et){let tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",nt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,rt=getPathWithDefaults($,_e,et);return!rt&&nt&&typeof et=="string"&&(rt=deepFind($,et,tt),rt===void 0&&(rt=deepFind(_e,et,tt))),rt}class Interpolator{constructor(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=_e,this.format=_e.interpolation&&_e.interpolation.format||(et=>et),this.init(_e)}init(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_e.interpolation||(_e.interpolation={escapeValue:!0});const et=_e.interpolation;this.escape=et.escape!==void 0?et.escape:escape,this.escapeValue=et.escapeValue!==void 0?et.escapeValue:!0,this.useRawValueToEscape=et.useRawValueToEscape!==void 0?et.useRawValueToEscape:!1,this.prefix=et.prefix?regexEscape(et.prefix):et.prefixEscaped||"{{",this.suffix=et.suffix?regexEscape(et.suffix):et.suffixEscaped||"}}",this.formatSeparator=et.formatSeparator?et.formatSeparator:et.formatSeparator||",",this.unescapePrefix=et.unescapeSuffix?"":et.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":et.unescapeSuffix||"",this.nestingPrefix=et.nestingPrefix?regexEscape(et.nestingPrefix):et.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=et.nestingSuffix?regexEscape(et.nestingSuffix):et.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=et.nestingOptionsSeparator?et.nestingOptionsSeparator:et.nestingOptionsSeparator||",",this.maxReplaces=et.maxReplaces?et.maxReplaces:1e3,this.alwaysFormat=et.alwaysFormat!==void 0?et.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const _e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(_e,"g");const et=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(et,"g");const tt=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(tt,"g")}interpolate(_e,et,tt,nt){let rt,ot,it;const st=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function lt(ht){return ht.replace(/\$/g,"$$$$")}const ct=ht=>{if(ht.indexOf(this.formatSeparator)<0){const Et=deepFindWithDefaults(et,st,ht,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Et,void 0,tt,{...nt,...et,interpolationkey:ht}):Et}const gt=ht.split(this.formatSeparator),yt=gt.shift().trim(),vt=gt.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(et,st,yt,this.options.keySeparator,this.options.ignoreJSONStructure),vt,tt,{...nt,...et,interpolationkey:yt})};this.resetRegExp();const ft=nt&&nt.missingInterpolationHandler||this.options.missingInterpolationHandler,dt=nt&&nt.interpolation&&nt.interpolation.skipOnVariables!==void 0?nt.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:ht=>lt(ht)},{regex:this.regexp,safeValue:ht=>this.escapeValue?lt(this.escape(ht)):lt(ht)}].forEach(ht=>{for(it=0;rt=ht.regex.exec(_e);){const gt=rt[1].trim();if(ot=ct(gt),ot===void 0)if(typeof ft=="function"){const vt=ft(_e,rt,nt);ot=typeof vt=="string"?vt:""}else if(nt&&Object.prototype.hasOwnProperty.call(nt,gt))ot="";else if(dt){ot=rt[0];continue}else this.logger.warn(`missed to pass in variable ${gt} for interpolating ${_e}`),ot="";else typeof ot!="string"&&!this.useRawValueToEscape&&(ot=makeString(ot));const yt=ht.safeValue(ot);if(_e=_e.replace(rt[0],yt),dt?(ht.regex.lastIndex+=ot.length,ht.regex.lastIndex-=rt[0].length):ht.regex.lastIndex=0,it++,it>=this.maxReplaces)break}}),_e}nest(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt,rt,ot;function it(st,lt){const ct=this.nestingOptionsSeparator;if(st.indexOf(ct)<0)return st;const ft=st.split(new RegExp(`${ct}[ ]*{`));let dt=`{${ft[1]}`;st=ft[0],dt=this.interpolate(dt,ot);const pt=dt.match(/'/g),ht=dt.match(/"/g);(pt&&pt.length%2===0&&!ht||ht.length%2!==0)&&(dt=dt.replace(/'/g,'"'));try{ot=JSON.parse(dt),lt&&(ot={...lt,...ot})}catch(gt){return this.logger.warn(`failed parsing options string in nesting for key ${st}`,gt),`${st}${ct}${dt}`}return delete ot.defaultValue,st}for(;nt=this.nestingRegexp.exec(_e);){let st=[];ot={...tt},ot=ot.replace&&typeof ot.replace!="string"?ot.replace:ot,ot.applyPostProcessor=!1,delete ot.defaultValue;let lt=!1;if(nt[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(nt[1])){const ct=nt[1].split(this.formatSeparator).map(ft=>ft.trim());nt[1]=ct.shift(),st=ct,lt=!0}if(rt=et(it.call(this,nt[1].trim(),ot),ot),rt&&nt[0]===_e&&typeof rt!="string")return rt;typeof rt!="string"&&(rt=makeString(rt)),rt||(this.logger.warn(`missed to resolve ${nt[1]} for nesting ${_e}`),rt=""),lt&&(rt=st.reduce((ct,ft)=>this.format(ct,ft,tt.lng,{...tt,interpolationkey:nt[1].trim()}),rt.trim())),_e=_e.replace(nt[0],rt),this.regexp.lastIndex=0}return _e}}function parseFormatStr($){let _e=$.toLowerCase().trim();const et={};if($.indexOf("(")>-1){const tt=$.split("(");_e=tt[0].toLowerCase().trim();const nt=tt[1].substring(0,tt[1].length-1);_e==="currency"&&nt.indexOf(":")<0?et.currency||(et.currency=nt.trim()):_e==="relativetime"&&nt.indexOf(":")<0?et.range||(et.range=nt.trim()):nt.split(";").forEach(ot=>{if(!ot)return;const[it,...st]=ot.split(":"),lt=st.join(":").trim().replace(/^'+|'+$/g,"");et[it.trim()]||(et[it.trim()]=lt),lt==="false"&&(et[it.trim()]=!1),lt==="true"&&(et[it.trim()]=!0),isNaN(lt)||(et[it.trim()]=parseInt(lt,10))})}return{formatName:_e,formatOptions:et}}function createCachedFormatter($){const _e={};return function(tt,nt,rt){const ot=nt+JSON.stringify(rt);let it=_e[ot];return it||(it=$(getCleanedCode(nt),rt),_e[ot]=it),it(tt)}}class Formatter{constructor(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=_e,this.formats={number:createCachedFormatter((et,tt)=>{const nt=new Intl.NumberFormat(et,{...tt});return rt=>nt.format(rt)}),currency:createCachedFormatter((et,tt)=>{const nt=new Intl.NumberFormat(et,{...tt,style:"currency"});return rt=>nt.format(rt)}),datetime:createCachedFormatter((et,tt)=>{const nt=new Intl.DateTimeFormat(et,{...tt});return rt=>nt.format(rt)}),relativetime:createCachedFormatter((et,tt)=>{const nt=new Intl.RelativeTimeFormat(et,{...tt});return rt=>nt.format(rt,tt.range||"day")}),list:createCachedFormatter((et,tt)=>{const nt=new Intl.ListFormat(et,{...tt});return rt=>nt.format(rt)})},this.init(_e)}init(_e){const tt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=tt.formatSeparator?tt.formatSeparator:tt.formatSeparator||","}add(_e,et){this.formats[_e.toLowerCase().trim()]=et}addCached(_e,et){this.formats[_e.toLowerCase().trim()]=createCachedFormatter(et)}format(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return et.split(this.formatSeparator).reduce((it,st)=>{const{formatName:lt,formatOptions:ct}=parseFormatStr(st);if(this.formats[lt]){let ft=it;try{const dt=nt&&nt.formatParams&&nt.formatParams[nt.interpolationkey]||{},pt=dt.locale||dt.lng||nt.locale||nt.lng||tt;ft=this.formats[lt](it,pt,{...ct,...nt,...dt})}catch(dt){this.logger.warn(dt)}return ft}else this.logger.warn(`there was no format function for ${lt}`);return it},_e)}}function removePending($,_e){$.pending[_e]!==void 0&&(delete $.pending[_e],$.pendingCount--)}class Connector extends EventEmitter{constructor(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=_e,this.store=et,this.services=tt,this.languageUtils=tt.languageUtils,this.options=nt,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=nt.maxParallelReads||10,this.readingCalls=0,this.maxRetries=nt.maxRetries>=0?nt.maxRetries:5,this.retryTimeout=nt.retryTimeout>=1?nt.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(tt,nt.backend,nt)}queueLoad(_e,et,tt,nt){const rt={},ot={},it={},st={};return _e.forEach(lt=>{let ct=!0;et.forEach(ft=>{const dt=`${lt}|${ft}`;!tt.reload&&this.store.hasResourceBundle(lt,ft)?this.state[dt]=2:this.state[dt]<0||(this.state[dt]===1?ot[dt]===void 0&&(ot[dt]=!0):(this.state[dt]=1,ct=!1,ot[dt]===void 0&&(ot[dt]=!0),rt[dt]===void 0&&(rt[dt]=!0),st[ft]===void 0&&(st[ft]=!0)))}),ct||(it[lt]=!0)}),(Object.keys(rt).length||Object.keys(ot).length)&&this.queue.push({pending:ot,pendingCount:Object.keys(ot).length,loaded:{},errors:[],callback:nt}),{toLoad:Object.keys(rt),pending:Object.keys(ot),toLoadLanguages:Object.keys(it),toLoadNamespaces:Object.keys(st)}}loaded(_e,et,tt){const nt=_e.split("|"),rt=nt[0],ot=nt[1];et&&this.emit("failedLoading",rt,ot,et),tt&&this.store.addResourceBundle(rt,ot,tt),this.state[_e]=et?-1:2;const it={};this.queue.forEach(st=>{pushPath(st.loaded,[rt],ot),removePending(st,_e),et&&st.errors.push(et),st.pendingCount===0&&!st.done&&(Object.keys(st.loaded).forEach(lt=>{it[lt]||(it[lt]={});const ct=st.loaded[lt];ct.length&&ct.forEach(ft=>{it[lt][ft]===void 0&&(it[lt][ft]=!0)})}),st.done=!0,st.errors.length?st.callback(st.errors):st.callback())}),this.emit("loaded",it),this.queue=this.queue.filter(st=>!st.done)}read(_e,et,tt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,ot=arguments.length>5?arguments[5]:void 0;if(!_e.length)return ot(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:_e,ns:et,fcName:tt,tried:nt,wait:rt,callback:ot});return}this.readingCalls++;const it=(lt,ct)=>{if(this.readingCalls--,this.waitingReads.length>0){const ft=this.waitingReads.shift();this.read(ft.lng,ft.ns,ft.fcName,ft.tried,ft.wait,ft.callback)}if(lt&&ct&&nt{this.read.call(this,_e,et,tt,nt+1,rt*2,ot)},rt);return}ot(lt,ct)},st=this.backend[tt].bind(this.backend);if(st.length===2){try{const lt=st(_e,et);lt&&typeof lt.then=="function"?lt.then(ct=>it(null,ct)).catch(it):it(null,lt)}catch(lt){it(lt)}return}return st(_e,et,it)}prepareLoading(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),nt&&nt();typeof _e=="string"&&(_e=this.languageUtils.toResolveHierarchy(_e)),typeof et=="string"&&(et=[et]);const rt=this.queueLoad(_e,et,tt,nt);if(!rt.toLoad.length)return rt.pending.length||nt(),null;rt.toLoad.forEach(ot=>{this.loadOne(ot)})}load(_e,et,tt){this.prepareLoading(_e,et,{},tt)}reload(_e,et,tt){this.prepareLoading(_e,et,{reload:!0},tt)}loadOne(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const tt=_e.split("|"),nt=tt[0],rt=tt[1];this.read(nt,rt,"read",void 0,void 0,(ot,it)=>{ot&&this.logger.warn(`${et}loading namespace ${rt} for language ${nt} failed`,ot),!ot&&it&&this.logger.log(`${et}loaded namespace ${rt} for language ${nt}`,it),this.loaded(_e,ot,it)})}saveMissing(_e,et,tt,nt,rt){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},it=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(et)){this.logger.warn(`did not save key "${tt}" as the namespace "${et}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(tt==null||tt==="")){if(this.backend&&this.backend.create){const st={...ot,isUpdate:rt},lt=this.backend.create.bind(this.backend);if(lt.length<6)try{let ct;lt.length===5?ct=lt(_e,et,tt,nt,st):ct=lt(_e,et,tt,nt),ct&&typeof ct.then=="function"?ct.then(ft=>it(null,ft)).catch(it):it(null,ct)}catch(ct){it(ct)}else lt(_e,et,tt,nt,it,st)}!_e||!_e[0]||this.store.addResource(_e[0],et,tt,nt)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(_e){let et={};if(typeof _e[1]=="object"&&(et=_e[1]),typeof _e[1]=="string"&&(et.defaultValue=_e[1]),typeof _e[2]=="string"&&(et.tDescription=_e[2]),typeof _e[2]=="object"||typeof _e[3]=="object"){const tt=_e[3]||_e[2];Object.keys(tt).forEach(nt=>{et[nt]=tt[nt]})}return et},interpolation:{escapeValue:!0,format:($,_e,et,tt)=>$,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions($){return typeof $.ns=="string"&&($.ns=[$.ns]),typeof $.fallbackLng=="string"&&($.fallbackLng=[$.fallbackLng]),typeof $.fallbackNS=="string"&&($.fallbackNS=[$.fallbackNS]),$.supportedLngs&&$.supportedLngs.indexOf("cimode")<0&&($.supportedLngs=$.supportedLngs.concat(["cimode"])),$}function noop(){}function bindMemberFunctions($){Object.getOwnPropertyNames(Object.getPrototypeOf($)).forEach(et=>{typeof $[et]=="function"&&($[et]=$[et].bind($))})}class I18n extends EventEmitter{constructor(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(_e),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),et&&!this.isInitialized&&!_e.isClone){if(!this.options.initImmediate)return this.init(_e,et),this;setTimeout(()=>{this.init(_e,et)},0)}}init(){var _e=this;let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=arguments.length>1?arguments[1]:void 0;typeof et=="function"&&(tt=et,et={}),!et.defaultNS&&et.defaultNS!==!1&&et.ns&&(typeof et.ns=="string"?et.defaultNS=et.ns:et.ns.indexOf("translation")<0&&(et.defaultNS=et.ns[0]));const nt=get();this.options={...nt,...this.options,...transformOptions(et)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...nt.interpolation,...this.options.interpolation}),et.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=et.keySeparator),et.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=et.nsSeparator);function rt(ct){return ct?typeof ct=="function"?new ct:ct:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(rt(this.modules.logger),this.options):baseLogger.init(null,this.options);let ct;this.modules.formatter?ct=this.modules.formatter:typeof Intl<"u"&&(ct=Formatter);const ft=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const dt=this.services;dt.logger=baseLogger,dt.resourceStore=this.store,dt.languageUtils=ft,dt.pluralResolver=new PluralResolver(ft,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ct&&(!this.options.interpolation.format||this.options.interpolation.format===nt.interpolation.format)&&(dt.formatter=rt(ct),dt.formatter.init(dt,this.options),this.options.interpolation.format=dt.formatter.format.bind(dt.formatter)),dt.interpolator=new Interpolator(this.options),dt.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},dt.backendConnector=new Connector(rt(this.modules.backend),dt.resourceStore,dt,this.options),dt.backendConnector.on("*",function(pt){for(var ht=arguments.length,gt=new Array(ht>1?ht-1:0),yt=1;yt1?ht-1:0),yt=1;yt{pt.init&&pt.init(this)})}if(this.format=this.options.interpolation.format,tt||(tt=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const ct=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ct.length>0&&ct[0]!=="dev"&&(this.options.lng=ct[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(ct=>{this[ct]=function(){return _e.store[ct](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(ct=>{this[ct]=function(){return _e.store[ct](...arguments),_e}});const st=defer(),lt=()=>{const ct=(ft,dt)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),st.resolve(dt),tt(ft,dt)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return ct(null,this.t.bind(this));this.changeLanguage(this.options.lng,ct)};return this.options.resources||!this.options.initImmediate?lt():setTimeout(lt,0),st}loadResources(_e){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const nt=typeof _e=="string"?_e:this.language;if(typeof _e=="function"&&(tt=_e),!this.options.resources||this.options.partialBundledLanguages){if(nt&&nt.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return tt();const rt=[],ot=it=>{if(!it||it==="cimode")return;this.services.languageUtils.toResolveHierarchy(it).forEach(lt=>{lt!=="cimode"&&rt.indexOf(lt)<0&&rt.push(lt)})};nt?ot(nt):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(st=>ot(st)),this.options.preload&&this.options.preload.forEach(it=>ot(it)),this.services.backendConnector.load(rt,this.options.ns,it=>{!it&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),tt(it)})}else tt(null)}reloadResources(_e,et,tt){const nt=defer();return _e||(_e=this.languages),et||(et=this.options.ns),tt||(tt=noop),this.services.backendConnector.reload(_e,et,rt=>{nt.resolve(),tt(rt)}),nt}use(_e){if(!_e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!_e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return _e.type==="backend"&&(this.modules.backend=_e),(_e.type==="logger"||_e.log&&_e.warn&&_e.error)&&(this.modules.logger=_e),_e.type==="languageDetector"&&(this.modules.languageDetector=_e),_e.type==="i18nFormat"&&(this.modules.i18nFormat=_e),_e.type==="postProcessor"&&postProcessor.addPostProcessor(_e),_e.type==="formatter"&&(this.modules.formatter=_e),_e.type==="3rdParty"&&this.modules.external.push(_e),this}setResolvedLanguage(_e){if(!(!_e||!this.languages)&&!(["cimode","dev"].indexOf(_e)>-1))for(let et=0;et-1)&&this.store.hasLanguageSomeTranslations(tt)){this.resolvedLanguage=tt;break}}}changeLanguage(_e,et){var tt=this;this.isLanguageChangingTo=_e;const nt=defer();this.emit("languageChanging",_e);const rt=st=>{this.language=st,this.languages=this.services.languageUtils.toResolveHierarchy(st),this.resolvedLanguage=void 0,this.setResolvedLanguage(st)},ot=(st,lt)=>{lt?(rt(lt),this.translator.changeLanguage(lt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",lt),this.logger.log("languageChanged",lt)):this.isLanguageChangingTo=void 0,nt.resolve(function(){return tt.t(...arguments)}),et&&et(st,function(){return tt.t(...arguments)})},it=st=>{!_e&&!st&&this.services.languageDetector&&(st=[]);const lt=typeof st=="string"?st:this.services.languageUtils.getBestMatchFromCodes(st);lt&&(this.language||rt(lt),this.translator.language||this.translator.changeLanguage(lt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(lt)),this.loadResources(lt,ct=>{ot(ct,lt)})};return!_e&&this.services.languageDetector&&!this.services.languageDetector.async?it(this.services.languageDetector.detect()):!_e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(it):this.services.languageDetector.detect(it):it(_e),nt}getFixedT(_e,et,tt){var nt=this;const rt=function(ot,it){let st;if(typeof it!="object"){for(var lt=arguments.length,ct=new Array(lt>2?lt-2:0),ft=2;ft`${st.keyPrefix}${dt}${ht}`):pt=st.keyPrefix?`${st.keyPrefix}${dt}${ot}`:ot,nt.t(pt,st)};return typeof _e=="string"?rt.lng=_e:rt.lngs=_e,rt.ns=et,rt.keyPrefix=tt,rt}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(_e){this.options.defaultNS=_e}hasLoadedNamespace(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const tt=et.lng||this.resolvedLanguage||this.languages[0],nt=this.options?this.options.fallbackLng:!1,rt=this.languages[this.languages.length-1];if(tt.toLowerCase()==="cimode")return!0;const ot=(it,st)=>{const lt=this.services.backendConnector.state[`${it}|${st}`];return lt===-1||lt===2};if(et.precheck){const it=et.precheck(this,ot);if(it!==void 0)return it}return!!(this.hasResourceBundle(tt,_e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ot(tt,_e)&&(!nt||ot(rt,_e)))}loadNamespaces(_e,et){const tt=defer();return this.options.ns?(typeof _e=="string"&&(_e=[_e]),_e.forEach(nt=>{this.options.ns.indexOf(nt)<0&&this.options.ns.push(nt)}),this.loadResources(nt=>{tt.resolve(),et&&et(nt)}),tt):(et&&et(),Promise.resolve())}loadLanguages(_e,et){const tt=defer();typeof _e=="string"&&(_e=[_e]);const nt=this.options.preload||[],rt=_e.filter(ot=>nt.indexOf(ot)<0);return rt.length?(this.options.preload=nt.concat(rt),this.loadResources(ot=>{tt.resolve(),et&&et(ot)}),tt):(et&&et(),Promise.resolve())}dir(_e){if(_e||(_e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!_e)return"rtl";const et=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],tt=this.services&&this.services.languageUtils||new LanguageUtil(get());return et.indexOf(tt.getLanguagePartFromCode(_e))>-1||_e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=arguments.length>1?arguments[1]:void 0;return new I18n(_e,et)}cloneInstance(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const tt=_e.forkResourceStore;tt&&delete _e.forkResourceStore;const nt={...this.options,..._e,isClone:!0},rt=new I18n(nt);return(_e.debug!==void 0||_e.prefix!==void 0)&&(rt.logger=rt.logger.clone(_e)),["store","services","language"].forEach(it=>{rt[it]=this[it]}),rt.services={...this.services},rt.services.utils={hasLoadedNamespace:rt.hasLoadedNamespace.bind(rt)},tt&&(rt.store=new ResourceStore(this.store.data,nt),rt.services.resourceStore=rt.store),rt.translator=new Translator(rt.services,nt),rt.translator.on("*",function(it){for(var st=arguments.length,lt=new Array(st>1?st-1:0),ct=1;ct{const{t:$}=useTranslation(),{scheme:_e}=useColorScheme(),et=css({paddingLeft:"8px",opacity:_e==="dark"?"0.8":"1",height:"100%","> *":{height:"calc(100% - 12px)"},outline:"unset","&:hover":{backgroundColor:"unset"},"&:focus":{backgroundColor:"unset"}},"","");return jsx$1(MainMenuButton,{Icon:SvgOpencastEditor,stateName:MainMenuStateNames.cutting,bottomText:"",ariaLabelText:$("mainMenu.cutting-button"),customCSS:et,iconCustomCSS:_ref2})},LanguageButton=()=>{const{t:$}=useTranslation(),_e=st=>st===instance.resolvedLanguage,et=st=>{instance.changeLanguage(st)},tt=st=>new Intl.DisplayNames([st],{type:"language"}).of(st),nt=instance.options.resources&&Object.keys(instance.options.resources),rt=nt==null?void 0:nt.map(st=>({value:st,label:tt(st)}));if(rt===void 0)return jsx$1(Fragment,{});const ot=Object.values(rt).map(st=>checkboxMenuItem({checked:_e(st.value),children:jsx$1(Fragment,{children:st.label}),onClick:()=>{et(st==null?void 0:st.value)}})),it=$("language.language");return jsx$1(WithHeaderMenu,{menu:{label:it,items:ot,breakpoint:BREAKPOINT_SMALL},children:jsx$1(HeaderButton,{Icon:HiOutlineTranslate,label:it})})},ThemeButton=()=>{const{t:$}=useTranslation(),{scheme:_e,isAuto:et,update:tt}=useColorScheme(),nt=et?"auto":_e,ot=["auto","light","dark","light-high-contrast","dark-high-contrast"].map(it=>checkboxMenuItem({checked:nt===it,children:jsx$1(Fragment,{children:$(`theme.${it}`)}),onClick:()=>tt(it)}));return jsx$1(WithHeaderMenu,{menu:{label:$("theme.appearance"),items:ot,breakpoint:BREAKPOINT_MEDIUM},children:jsx$1(HeaderButton,{Icon:_e==="light"||_e==="light-high-contrast"?LuMoon:LuSun,label:$("theme.appearance")})})};var _ref={name:"1ebfir2",styles:"display:flex;align-items:center;font-size:22px"};const HeaderButton=React$5.forwardRef(({Icon:$,label:_e,...et},tt)=>{const nt=useTheme(),rt=css({display:"flex",alignItems:"center",...flexGapReplacementStyle(8,!1),fontSize:16,fontFamily:"inherit",fontWeight:500,color:`${nt.header_text}`,outline:`${nt.menuButton_outline}`,padding:"6px 8px",":hover, :active":{outline:`2px solid ${nt.metadata_highlight}`,backgroundColor:nt.header_button_hover_bg,color:`${nt.header_text}`},":focus":{backgroundColor:"inherit",color:`${nt.header_text}`},":focus:hover":{backgroundColor:nt.header_button_hover_bg,color:`${nt.header_text}`}},"",""),ot=_ref;return jsxs(ProtoButton,{...et,ref:tt,css:[basicButtonStyle(nt),rt,"",""],children:[jsx$1($,{css:ot}),jsx$1("span",{css:css({[`@media (max-width: ${BREAKPOINT_MEDIUM}px)`]:{display:"none"}},"",""),children:_e})]})});function App(){return jsxs("div",{className:"App",children:[jsx$1(GlobalStyle,{}),jsx$1(Header,{}),jsx$1(Body,{})]})}const scriptRel="modulepreload",assetsURL=function($){return"/"+$},seen={},__vitePreload=function $(_e,et,tt){let nt=Promise.resolve();if(et&&et.length>0){const rt=document.getElementsByTagName("link");nt=Promise.all(et.map(ot=>{if(ot=assetsURL(ot),ot in seen)return;seen[ot]=!0;const it=ot.endsWith(".css"),st=it?'[rel="stylesheet"]':"";if(!!tt)for(let ft=rt.length-1;ft>=0;ft--){const dt=rt[ft];if(dt.href===ot&&(!it||dt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${ot}"]${st}`))return;const ct=document.createElement("link");if(ct.rel=it?"stylesheet":scriptRel,it||(ct.as="script",ct.crossOrigin=""),ct.href=ot,document.head.appendChild(ct),it)return new Promise((ft,dt)=>{ct.addEventListener("load",ft),ct.addEventListener("error",()=>dt(new Error(`Unable to preload CSS for ${ot}`)))})}))}return nt.then(()=>_e()).catch(rt=>{const ot=new Event("vite:preloadError",{cancelable:!0});if(ot.payload=rt,window.dispatchEvent(ot),!ot.defaultPrevented)throw rt})};var arr=[],each=arr.forEach,slice=arr.slice;function defaults($){return each.call(slice.call(arguments,1),function(_e){if(_e)for(var et in _e)$[et]===void 0&&($[et]=_e[et])}),$}var fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,serializeCookie=function $(_e,et,tt){var nt=tt||{};nt.path=nt.path||"/";var rt=encodeURIComponent(et),ot="".concat(_e,"=").concat(rt);if(nt.maxAge>0){var it=nt.maxAge-0;if(Number.isNaN(it))throw new Error("maxAge should be a Number");ot+="; Max-Age=".concat(Math.floor(it))}if(nt.domain){if(!fieldContentRegExp.test(nt.domain))throw new TypeError("option domain is invalid");ot+="; Domain=".concat(nt.domain)}if(nt.path){if(!fieldContentRegExp.test(nt.path))throw new TypeError("option path is invalid");ot+="; Path=".concat(nt.path)}if(nt.expires){if(typeof nt.expires.toUTCString!="function")throw new TypeError("option expires is invalid");ot+="; Expires=".concat(nt.expires.toUTCString())}if(nt.httpOnly&&(ot+="; HttpOnly"),nt.secure&&(ot+="; Secure"),nt.sameSite){var st=typeof nt.sameSite=="string"?nt.sameSite.toLowerCase():nt.sameSite;switch(st){case!0:ot+="; SameSite=Strict";break;case"lax":ot+="; SameSite=Lax";break;case"strict":ot+="; SameSite=Strict";break;case"none":ot+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return ot},cookie={create:function $(_e,et,tt,nt){var rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};tt&&(rt.expires=new Date,rt.expires.setTime(rt.expires.getTime()+tt*60*1e3)),nt&&(rt.domain=nt),document.cookie=serializeCookie(_e,encodeURIComponent(et),rt)},read:function $(_e){for(var et="".concat(_e,"="),tt=document.cookie.split(";"),nt=0;nt-1&&(tt=window.location.hash.substring(window.location.hash.indexOf("?")));for(var nt=tt.substring(1),rt=nt.split("&"),ot=0;ot0){var st=rt[ot].substring(0,it);st===_e.lookupQuerystring&&(et=rt[ot].substring(it+1))}}}return et}},hasLocalStorageSupport=null,localStorageAvailable=function $(){if(hasLocalStorageSupport!==null)return hasLocalStorageSupport;try{hasLocalStorageSupport=window!=="undefined"&&window.localStorage!==null;var _e="i18next.translate.boo";window.localStorage.setItem(_e,"foo"),window.localStorage.removeItem(_e)}catch{hasLocalStorageSupport=!1}return hasLocalStorageSupport},localStorage={name:"localStorage",lookup:function $(_e){var et;if(_e.lookupLocalStorage&&localStorageAvailable()){var tt=window.localStorage.getItem(_e.lookupLocalStorage);tt&&(et=tt)}return et},cacheUserLanguage:function $(_e,et){et.lookupLocalStorage&&localStorageAvailable()&&window.localStorage.setItem(et.lookupLocalStorage,_e)}},hasSessionStorageSupport=null,sessionStorageAvailable=function $(){if(hasSessionStorageSupport!==null)return hasSessionStorageSupport;try{hasSessionStorageSupport=window!=="undefined"&&window.sessionStorage!==null;var _e="i18next.translate.boo";window.sessionStorage.setItem(_e,"foo"),window.sessionStorage.removeItem(_e)}catch{hasSessionStorageSupport=!1}return hasSessionStorageSupport},sessionStorage={name:"sessionStorage",lookup:function $(_e){var et;if(_e.lookupSessionStorage&&sessionStorageAvailable()){var tt=window.sessionStorage.getItem(_e.lookupSessionStorage);tt&&(et=tt)}return et},cacheUserLanguage:function $(_e,et){et.lookupSessionStorage&&sessionStorageAvailable()&&window.sessionStorage.setItem(et.lookupSessionStorage,_e)}},navigator$1={name:"navigator",lookup:function $(_e){var et=[];if(typeof navigator<"u"){if(navigator.languages)for(var tt=0;tt0?et:void 0}},htmlTag={name:"htmlTag",lookup:function $(_e){var et,tt=_e.htmlTag||(typeof document<"u"?document.documentElement:null);return tt&&typeof tt.getAttribute=="function"&&(et=tt.getAttribute("lang")),et}},path={name:"path",lookup:function $(_e){var et;if(typeof window<"u"){var tt=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(tt instanceof Array)if(typeof _e.lookupFromPathIndex=="number"){if(typeof tt[_e.lookupFromPathIndex]!="string")return;et=tt[_e.lookupFromPathIndex].replace("/","")}else et=tt[0].replace("/","")}return et}},subdomain={name:"subdomain",lookup:function $(_e){var et=typeof _e.lookupFromSubdomainIndex=="number"?_e.lookupFromSubdomainIndex+1:1,tt=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(tt)return tt[et]}};function getDefaults(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(_e){return _e}}}var Browser=function(){function $(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2(this,$),this.type="languageDetector",this.detectors={},this.init(_e,et)}return _createClass$2($,[{key:"init",value:function(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=et||{languageUtils:{}},this.options=defaults(tt,this.options||{},getDefaults()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(rt){return rt.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=nt,this.addDetector(cookie$1),this.addDetector(querystring),this.addDetector(localStorage),this.addDetector(sessionStorage),this.addDetector(navigator$1),this.addDetector(htmlTag),this.addDetector(path),this.addDetector(subdomain)}},{key:"addDetector",value:function(et){this.detectors[et.name]=et}},{key:"detect",value:function(et){var tt=this;et||(et=this.options.order);var nt=[];return et.forEach(function(rt){if(tt.detectors[rt]){var ot=tt.detectors[rt].lookup(tt.options);ot&&typeof ot=="string"&&(ot=[ot]),ot&&(nt=nt.concat(ot))}}),nt=nt.map(function(rt){return tt.options.convertDetectedLanguage(rt)}),this.services.languageUtils.getBestMatchFromCodes?nt:nt.length>0?nt[0]:null}},{key:"cacheUserLanguage",value:function(et,tt){var nt=this;tt||(tt=this.options.caches),tt&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(et)>-1||tt.forEach(function(rt){nt.detectors[rt]&&nt.detectors[rt].cacheUserLanguage(et,nt.options)}))}}]),$}();Browser.type="languageDetector";const locales=["de-DE.json","en-US.json","es-ES.json","fr-FR.json","nl-NL.json","zh-CN.json","zh-TW.json"],locales$1=Object.freeze(Object.defineProperty({__proto__:null,default:locales},Symbol.toStringTag,{value:"Module"})),debug=!!new URLSearchParams(window.location.search).get("debug"),resources={},data=Object.assign({"./locales/cs-CZ.json":()=>__vitePreload(()=>import("./cs-CZ-_-ySsZ7d.js"),__vite__mapDeps([])),"./locales/de-DE.json":()=>__vitePreload(()=>import("./de-DE-r7yMmVoN.js"),__vite__mapDeps([])),"./locales/el-GR.json":()=>__vitePreload(()=>import("./el-GR-x0BxZ-xk.js"),__vite__mapDeps([])),"./locales/en-US.json":()=>__vitePreload(()=>import("./en-US-_-ySsZ7d.js"),__vite__mapDeps([])),"./locales/es-ES.json":()=>__vitePreload(()=>import("./es-ES-dfLL8V64.js"),__vite__mapDeps([])),"./locales/fr-FR.json":()=>__vitePreload(()=>import("./fr-FR-wGONkQcm.js"),__vite__mapDeps([])),"./locales/locales.json":()=>__vitePreload(()=>Promise.resolve().then(()=>locales$1),void 0),"./locales/nl-NL.json":()=>__vitePreload(()=>import("./nl-NL-J1dCa0Tl.js"),__vite__mapDeps([])),"./locales/zh-CN.json":()=>__vitePreload(()=>import("./zh-CN-7gH46_uW.js"),__vite__mapDeps([])),"./locales/zh-TW.json":()=>__vitePreload(()=>import("./zh-TW-hqqIkR1a.js"),__vite__mapDeps([]))});for(const $ in data){const _e=$.replace(/^.*[\\/]/,"").replace(/\..*$/,"");if(!locales.some(nt=>nt.includes(_e)))continue;const et=_e.replace(/-.*$/,""),tt=locales.filter(nt=>nt.indexOf(et)===0).length===1;data[$]().then(nt=>{const rt=JSON.parse(JSON.stringify(nt));tt||(resources[_e]={translation:rt}),resources[et]={translation:rt}})}instance.use(initReactI18next).use(Browser).init({resources,fallbackLng:["en-US","en"],nonExplicitSupportedLngs:!0,debug});debug&&(console.debug("language",instance.language),console.debug("languages",instance.languages));const container=document.getElementById("root");if(!container)throw new Error("Failed to find the root element");const root=client$1.createRoot(container),initialize=Promise.race([init(),sleep(600)]);initialize.then(()=>{root.render(jsx$1(React$5.StrictMode,{children:jsx$1(Provider_default,{store,children:jsx$1(ColorSchemeProvider,{children:jsx$1(App,{})})})}))},$=>root.render(jsxs("p",{children:[`Fatal error while loading app: ${$.message}`,jsx$1("br",{}),"This might be caused by a incorrect configuration by the system administrator."]}))); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] diff --git a/assets/nl-NL-134vhINp.js b/assets/nl-NL-J1dCa0Tl.js similarity index 81% rename from assets/nl-NL-134vhINp.js rename to assets/nl-NL-J1dCa0Tl.js index 604ac4dba..0b64e00e5 100644 --- a/assets/nl-NL-134vhINp.js +++ b/assets/nl-NL-J1dCa0Tl.js @@ -6,4 +6,4 @@ const e={"cutting-button":"Knippen","finish-button":"Opslaan","select-tracks-but `,"segments-text-aria":`Segment {{index}}. {{segmentStatus}}. Begin: {{start}}. Eindigt: {{end}}. `},u={"headline-text":"Workflow configuratie","satisfied-text":"Tevreden met je configuratie?","confirm-button":"Ja, begin met verwerken"},d={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Aflevering Metadata","submit-button":"Verzenden","submit-button-tooltip":"Wijzigingen bevestigen","reset-button":"Reset","reset-button-tooltip":"Al u wijzigingen ongedaan maken","submit-helpertext":`Maak wijzigingen zoals u wilt, en druk dan op de {{buttonName}} knop. Merk op dat u nog steeds moet beginnen met verwerken om de wijzigingen door te voeren.`,validation:{required:"Verplicht","duration-format":"Formaat moet HH:MM:SS zijn",datetime:"Ongeldig"},labels:{title:"Titel",subject:"Onderwerp",description:"Beschrijving",language:"Taal",rightsHolder:"Rechten",license:"Licentie",isPartOf:"Series",creator:"Presentator(en)",contributor:"Bijdrager(s)",startDate:"Startdatum",duration:"Duur",location:"Locatie",source:"Bron",created:"Aangemaakt",publisher:"Uitgever",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Sloveens","LANGUAGES-PORTUGESE":"Portuguese","LANGUAGES-ROMANSH":"Reto-Romaans","LANGUAGES-ARABIC":"Arabisch","LANGUAGES-POLISH":"Pools","LANGUAGES-ITALIAN":"Italiaans","LANGUAGES-CHINESE":"Chinees","LANGUAGES-FINNISH":"Fins","LANGUAGES-DANISH":"Deens","LANGUAGES-UKRAINIAN":"Oekraïens","LANGUAGES-FRENCH":"Frans","LANGUAGES-SPANISH":"Spaans","LANGUAGES-GERMAN_CH":"Zwitsers Duits","LANGUAGES-NORWEGIAN":"Noors","LANGUAGES-RUSSIAN":"Russisch","LANGUAGES-JAPANESE":"Japans","LANGUAGES-DUTCH":"Nederlands","LANGUAGES-TURKISH":"Turks","LANGUAGES-HINDI":"Hindi","LANGUAGES-SWEDISH":"Zweeds","LANGUAGES-ENGLISH":"Engels","LANGUAGES-GERMAN":"Duits"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC-BY-ND","EVENTS-LICENSE-CCBYNCND":"CC-BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC-BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"Alle rechten voorbehouden","EVENTS-LICENSE-CCBYSA":"CC-BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC-BY"},"calendar-prev":"Previous","calendar-next":"Next"},c={title:"Thumbnail Editor",noThumbnailAvailable:"No Thumbnail available",previewImageAlt:"Thumbnail for track",buttonGenerate:"Generate","buttonGenerate-tooltip":"Generate a new thumbnail from the current timeline marker position","buttonGenerate-tooltip-aria":"Generate a new thumbnail from the current timeline marker position",buttonUpload:"Upload","buttonUpload-tooltip":"Upload an image","buttonUpload-tooltip-aria":"Upload an image",buttonUseForOtherThumbnails:"Use for all tracks","buttonUseForOtherThumbnails-tooltip":"Use the thumbnail for all tracks","buttonUseForOtherThumbnails-tooltip-aria":"Use the thumbnail for all tracks",buttonDiscard:"Discard","buttonDiscard-tooltip":"Discard the thumbnail for this track","buttonDiscard-tooltip-aria":"Discard the thumbnail for this track",buttonGenerateAll:"Generate All","buttonGenerateAll-tooltip":"Generate new thumbnails for all tracks from the current timeline marker position","buttonGenerateAll-tooltip-aria":"Generate new thumbnails for all tracks from the current timeline marker position",explanation:"Upload or generate a thumbnail for each track.",primary:"Primary",secondary:"Secondary"},m={rowTitle:"Change thumbnail here",from:"from"},g={"generic-message":"Er is een kritische fout opgetreden!",details:"Details: ","workflowActive-errorTitle":"Temporarily unavailable","workflowActive-errorMessage":"This event is being processed. Please wait until the process is finished."},p={"main-heading":"Welkom in de Video Editor","contact-admin":"Als u een specifieke video probeerde te bewerken maar deze pagina ziet, neem dan contact op met uw beheerder.","start-editing-1":"Om te beginnen met bewerken, geef de parameter aan ","start-editing-2":" met het ID van het media-pakket van de video die u wilt bewerken.","link-to-documentation":"Er is meer informatie over het configureren van de video-editor beschikbaar in de beheergids op "},b={"error-details-text":`Details: {{errorMessage}} -`,"error-text":"Er is een fout opgetreden. Wacht even en probeer het opnieuw.","goBack-button":"Nee, breng me terug","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},h={title:"Select track(s) for processing",trackInactive:"inactief",deleteTrackText:"Verwijder spoor",restoreTrackText:"Herstel spoor",cannotDeleteTrackText:"Spoor kan niet verwijdert worden",deleteTrackTooltip:"Deze spoor niet coderen en publiceren.",restoreTrackTooltip:"Encodeer en publiceer deze spoor.",cannotDeleteTrackTooltip:"Kan deze spoor niet uit de publicatie verwijderen."},k={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},v={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},S={selectVideoLabel:"Video Flavors"},w={overviewTimelineTooltip:"Timeline overview"},A={header:"Shortcuts",defaultGroupName:"General",missingLabel:"Unknown",groupVideoPlayer:"Video Player",groupCuttingView:"Knippen",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"Failed to load overview",videoPlayButton:"Play/Pause Video",scrubberLeft:"Move left",scrubberRight:"Move right",scrubberIncrease:"Move faster",scrubberDecrease:"Move slower"},f={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},E={language:"Taal"},N={mainMenu:e,cuttingActions:t,video:o,finishMenu:n,save:i,discard:a,theEnd:r,workflowSelection:s,timeline:l,workflowConfig:u,metadata:d,thumbnail:c,thumbnailSimple:m,error:g,landing:p,various:b,trackSelection:h,subtitles:k,subtitleList:v,subtitleVideoArea:S,subtitleTimeline:w,keyboardControls:A,theme:f,language:E};export{t as cuttingActions,N as default,a as discard,g as error,n as finishMenu,A as keyboardControls,p as landing,E as language,e as mainMenu,d as metadata,i as save,v as subtitleList,w as subtitleTimeline,S as subtitleVideoArea,k as subtitles,r as theEnd,f as theme,c as thumbnail,m as thumbnailSimple,l as timeline,h as trackSelection,b as various,o as video,u as workflowConfig,s as workflowSelection}; +`,"error-text":"Er is een fout opgetreden. Wacht even en probeer het opnieuw.","goBack-button":"Nee, breng me terug","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},h={title:"Select track(s) for processing",trackInactive:"inactief",deleteTrackText:"Verwijder spoor",restoreTrackText:"Herstel spoor",cannotDeleteTrackText:"Spoor kan niet verwijdert worden",deleteTrackTooltip:"Deze spoor niet coderen en publiceren.",restoreTrackTooltip:"Encodeer en publiceer deze spoor.",cannotDeleteTrackTooltip:"Kan deze spoor niet uit de publicatie verwijderen."},k={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},v={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},S={selectVideoLabel:"Video Flavors"},w={overviewTimelineTooltip:"Timeline overview"},A={header:"Shortcuts",defaultGroupName:"General",missingLabel:"Unknown",groupVideoPlayer:"Video Player",groupCuttingView:"Knippen",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"Failed to load overview",videoPlayButton:"Play/Pause Video",scrubberLeft:"Move left",scrubberRight:"Move right",scrubberIncrease:"Move faster",scrubberDecrease:"Move slower"},f={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},E={language:"Taal"},N={mainMenu:e,cuttingActions:t,video:o,finishMenu:n,save:i,discard:a,theEnd:r,workflowSelection:s,timeline:l,workflowConfig:u,metadata:d,thumbnail:c,thumbnailSimple:m,error:g,landing:p,various:b,trackSelection:h,subtitles:k,subtitleList:v,subtitleVideoArea:S,subtitleTimeline:w,keyboardControls:A,theme:f,language:E};export{t as cuttingActions,N as default,a as discard,g as error,n as finishMenu,A as keyboardControls,p as landing,E as language,e as mainMenu,d as metadata,i as save,v as subtitleList,w as subtitleTimeline,S as subtitleVideoArea,k as subtitles,r as theEnd,f as theme,c as thumbnail,m as thumbnailSimple,l as timeline,h as trackSelection,b as various,o as video,u as workflowConfig,s as workflowSelection}; diff --git a/assets/zh-CN-IyN_Tbc-.js b/assets/zh-CN-7gH46_uW.js similarity index 81% rename from assets/zh-CN-IyN_Tbc-.js rename to assets/zh-CN-7gH46_uW.js index 0fef99a8d..d6ee8f176 100644 --- a/assets/zh-CN-IyN_Tbc-.js +++ b/assets/zh-CN-7gH46_uW.js @@ -6,4 +6,4 @@ const e={"cutting-button":"裁剪","finish-button":"完成","select-tracks-butto `,"segments-text-aria":`Segment {{index}}. {{segmentStatus}}. Start: {{start}}. End: {{end}}. `},c={"headline-text":"Workflow Configuration","satisfied-text":"Satisfied with your configuration?","confirm-button":"Yes, start processing"},u={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"Episode Metadata","submit-button":"Submit","submit-button-tooltip":"Confirm your changes","reset-button":"Reset","reset-button-tooltip":"Undo all your changes","submit-helpertext":`Make changes as you like, then hit the {{buttonName}} button. Note that you will still have to start processing for your changes to take effect.`,validation:{required:"Required","duration-format":"Format must be HH:MM:SS",datetime:"Invalid"},labels:{title:"Title",subject:"Subject",description:"Description",language:"Language",rightsHolder:"Rights",license:"License",isPartOf:"Series",creator:"Presenter(s)",contributor:"Contributor(s)",startDate:"Start date",duration:"Duration",location:"Location",source:"Source",created:"Created",publisher:"Publisher",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"Slovenian","LANGUAGES-PORTUGESE":"Portuguese","LANGUAGES-ROMANSH":"Romansh","LANGUAGES-ARABIC":"Arabic","LANGUAGES-POLISH":"Polish","LANGUAGES-ITALIAN":"Italian","LANGUAGES-CHINESE":"Chinese","LANGUAGES-FINNISH":"Finnish","LANGUAGES-DANISH":"Danish","LANGUAGES-UKRAINIAN":"Ukrainian","LANGUAGES-FRENCH":"French","LANGUAGES-SPANISH":"Spanish","LANGUAGES-GERMAN_CH":"Swiss German","LANGUAGES-NORWEGIAN":"Norwegian","LANGUAGES-RUSSIAN":"Russian","LANGUAGES-JAPANESE":"Japanese","LANGUAGES-DUTCH":"Dutch","LANGUAGES-TURKISH":"Turkish","LANGUAGES-HINDI":"Hindi","LANGUAGES-SWEDISH":"Swedish","LANGUAGES-ENGLISH":"English","LANGUAGES-GERMAN":"German"},license:{"EVENTS-LICENSE-CC0":"CC0","EVENTS-LICENSE-CCBYND":"CC-BY-ND","EVENTS-LICENSE-CCBYNCND":"CC-BY-NC-ND","EVENTS-LICENSE-CCBYNCSA":"CC-BY-NC-SA","EVENTS-LICENSE-ALLRIGHTS":"All rights reserved","EVENTS-LICENSE-CCBYSA":"CC-BY-SA","EVENTS-LICENSE-CCBYNC":"CC-BY-NC","EVENTS-LICENSE-CCBY":"CC-BY"},"calendar-prev":"Previous","calendar-next":"Next"},d={title:"Thumbnail Editor",noThumbnailAvailable:"No Thumbnail available",previewImageAlt:"Thumbnail for track",buttonGenerate:"Generate","buttonGenerate-tooltip":"Generate a new thumbnail from the current timeline marker position","buttonGenerate-tooltip-aria":"Generate a new thumbnail from the current timeline marker position",buttonUpload:"Upload","buttonUpload-tooltip":"Upload an image","buttonUpload-tooltip-aria":"Upload an image",buttonUseForOtherThumbnails:"Use for all tracks","buttonUseForOtherThumbnails-tooltip":"Use the thumbnail for all tracks","buttonUseForOtherThumbnails-tooltip-aria":"Use the thumbnail for all tracks",buttonDiscard:"Discard","buttonDiscard-tooltip":"Discard the thumbnail for this track","buttonDiscard-tooltip-aria":"Discard the thumbnail for this track",buttonGenerateAll:"Generate All","buttonGenerateAll-tooltip":"Generate new thumbnails for all tracks from the current timeline marker position","buttonGenerateAll-tooltip-aria":"Generate new thumbnails for all tracks from the current timeline marker position",explanation:"Upload or generate a thumbnail for each track.",primary:"Primary",secondary:"Secondary"},m={rowTitle:"Change thumbnail here",from:"from"},h={"generic-message":"A critical error has occurred!",details:"Details: ","workflowActive-errorTitle":"Temporarily unavailable","workflowActive-errorMessage":"This event is being processed. Please wait until the process is finished."},g={"main-heading":"Welcome to the Video Editor","contact-admin":"If you were trying to edit a specific video but are seeing this page, please contact your administrator.","start-editing-1":"To start editing, specify the parameter ","start-editing-2":" with the media package id of the video you wish to edit.","link-to-documentation":"More information about configuring the video editor is available in the administration guide at "},b={"error-details-text":`Details: {{errorMessage}} -`,"error-text":"An error has occurred. Please wait a bit and try again.","goBack-button":"No, take me back","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},p={title:"Select track(s) for processing",trackInactive:"inactive",deleteTrackText:"Delete Track",restoreTrackText:"Restore Track",cannotDeleteTrackText:"Cannot Delete Track",deleteTrackTooltip:"Do not encode and publish this track.",restoreTrackTooltip:"Encode and publish this track.",cannotDeleteTrackTooltip:"Cannot remove this track from publication."},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},k={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},A={selectVideoLabel:"Video Flavors"},f={overviewTimelineTooltip:"Timeline overview"},v={header:"Shortcuts",defaultGroupName:"General",missingLabel:"Unknown",groupVideoPlayer:"Video Player",groupCuttingView:"裁剪",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"字幕",sequenceSeparator:"or",genericError:"Failed to load overview",videoPlayButton:"Play/Pause Video",scrubberLeft:"Move left",scrubberRight:"Move right",scrubberIncrease:"Move faster",scrubberDecrease:"Move slower"},E={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},w={language:"Language"},N={mainMenu:e,cuttingActions:t,video:o,finishMenu:i,save:a,discard:n,theEnd:r,workflowSelection:s,timeline:l,workflowConfig:c,metadata:u,thumbnail:d,thumbnailSimple:m,error:h,landing:g,various:b,trackSelection:p,subtitles:S,subtitleList:k,subtitleVideoArea:A,subtitleTimeline:f,keyboardControls:v,theme:E,language:w};export{t as cuttingActions,N as default,n as discard,h as error,i as finishMenu,v as keyboardControls,g as landing,w as language,e as mainMenu,u as metadata,a as save,k as subtitleList,f as subtitleTimeline,A as subtitleVideoArea,S as subtitles,r as theEnd,E as theme,d as thumbnail,m as thumbnailSimple,l as timeline,p as trackSelection,b as various,o as video,c as workflowConfig,s as workflowSelection}; +`,"error-text":"An error has occurred. Please wait a bit and try again.","goBack-button":"No, take me back","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},p={title:"Select track(s) for processing",trackInactive:"inactive",deleteTrackText:"Delete Track",restoreTrackText:"Restore Track",cannotDeleteTrackText:"Cannot Delete Track",deleteTrackTooltip:"Do not encode and publish this track.",restoreTrackTooltip:"Encode and publish this track.",cannotDeleteTrackTooltip:"Cannot remove this track from publication."},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},k={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},A={selectVideoLabel:"Video Flavors"},f={overviewTimelineTooltip:"Timeline overview"},v={header:"Shortcuts",defaultGroupName:"General",missingLabel:"Unknown",groupVideoPlayer:"Video Player",groupCuttingView:"裁剪",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"字幕",sequenceSeparator:"or",genericError:"Failed to load overview",videoPlayButton:"Play/Pause Video",scrubberLeft:"Move left",scrubberRight:"Move right",scrubberIncrease:"Move faster",scrubberDecrease:"Move slower"},E={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},w={language:"Language"},N={mainMenu:e,cuttingActions:t,video:o,finishMenu:i,save:a,discard:n,theEnd:r,workflowSelection:s,timeline:l,workflowConfig:c,metadata:u,thumbnail:d,thumbnailSimple:m,error:h,landing:g,various:b,trackSelection:p,subtitles:S,subtitleList:k,subtitleVideoArea:A,subtitleTimeline:f,keyboardControls:v,theme:E,language:w};export{t as cuttingActions,N as default,n as discard,h as error,i as finishMenu,v as keyboardControls,g as landing,w as language,e as mainMenu,u as metadata,a as save,k as subtitleList,f as subtitleTimeline,A as subtitleVideoArea,S as subtitles,r as theEnd,E as theme,d as thumbnail,m as thumbnailSimple,l as timeline,p as trackSelection,b as various,o as video,c as workflowConfig,s as workflowSelection}; diff --git a/assets/zh-TW-b9HaxZsI.js b/assets/zh-TW-hqqIkR1a.js similarity index 81% rename from assets/zh-TW-b9HaxZsI.js rename to assets/zh-TW-hqqIkR1a.js index 087c60f2e..1be95467f 100644 --- a/assets/zh-TW-b9HaxZsI.js +++ b/assets/zh-TW-hqqIkR1a.js @@ -5,4 +5,4 @@ const t={"cutting-button":"裁剪","finish-button":"完成","select-tracks-butto `},s={"generateWaveform-text":"生成波形","segment-tooltip":"片段{{segment}}","scrubber-text-aria":`Timeline marker. {{currentTime}}. Active segment: {{segment}}. {{segmentStatus}}. Controls: {{moveLeft}} and {{moveRight}} to move the timeline marker. {{increase}} and {{decrease}} to increase/decrease the move delta. `,"segments-text-aria":`片段 {{index}}. {{segmentStatus}}. 開始: {{start}}. 結束: {{end}}. `},u={"headline-text":"工作流程配置","satisfied-text":"對您的配置滿意嗎?","confirm-button":"是的,開始處理"},c={"EVENTS-EVENTS-DETAILS-CATALOG-EPISODE":"劇集後設資料","submit-button":"提交","submit-button-tooltip":"確認您的變更","reset-button":"重置","reset-button-tooltip":"取消所有更改","submit-helpertext":`根據需要進行更改,然後點擊 {{buttonName}} 按鈕。 -請注意,您仍然必須開始處理才能使更改生效。`,validation:{required:"必須的","duration-format":"格式必須為 HH:MM:SS",datetime:"不合法"},labels:{title:"標題",subject:"主旨",description:"描述",language:"語言",rightsHolder:"版權所有人",license:"版權",isPartOf:"系列",creator:"演講者",contributor:"貢獻者",startDate:"開始日期",duration:"持續時間",location:"位置",source:"來源",created:"建立",publisher:"發行人",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"斯洛文尼亞語","LANGUAGES-PORTUGESE":"Portuguese","LANGUAGES-ROMANSH":"羅曼什語","LANGUAGES-ARABIC":"阿拉伯語","LANGUAGES-POLISH":"波蘭語","LANGUAGES-ITALIAN":"意大利語","LANGUAGES-CHINESE":"繁體中文","LANGUAGES-FINNISH":"芬蘭語","LANGUAGES-DANISH":"丹麥語","LANGUAGES-UKRAINIAN":"烏克蘭","LANGUAGES-FRENCH":"法語","LANGUAGES-SPANISH":"西班牙語","LANGUAGES-GERMAN_CH":"瑞士德語","LANGUAGES-NORWEGIAN":"挪威","LANGUAGES-RUSSIAN":"俄語","LANGUAGES-JAPANESE":"日語","LANGUAGES-DUTCH":"荷蘭語","LANGUAGES-TURKISH":"土耳其語","LANGUAGES-HINDI":"印度語","LANGUAGES-SWEDISH":"瑞典語","LANGUAGES-ENGLISH":"英語","LANGUAGES-GERMAN":"德語"},license:{"EVENTS-LICENSE-CC0":"創作共享 CC0","EVENTS-LICENSE-CCBYND":"CC-BY-ND 創作分享-姓名標示-禁止改作","EVENTS-LICENSE-CCBYNCND":"創作分享-姓名標示-非商業性使用-禁止改作","EVENTS-LICENSE-CCBYNCSA":"創作分享-姓名標示-非商業性使用-相同方式分享","EVENTS-LICENSE-ALLRIGHTS":"保留所有權利","EVENTS-LICENSE-CCBYSA":"創作分享-姓名標示-相同方式分享","EVENTS-LICENSE-CCBYNC":"創作分享-姓名標示-非商業性使用","EVENTS-LICENSE-CCBY":"創作分享-姓名標示"},"calendar-prev":"Previous","calendar-next":"Next"},m={title:"Thumbnail Editor",noThumbnailAvailable:"No Thumbnail available",previewImageAlt:"Thumbnail for track",buttonGenerate:"Generate","buttonGenerate-tooltip":"Generate a new thumbnail from the current timeline marker position","buttonGenerate-tooltip-aria":"Generate a new thumbnail from the current timeline marker position",buttonUpload:"Upload","buttonUpload-tooltip":"Upload an image","buttonUpload-tooltip-aria":"Upload an image",buttonUseForOtherThumbnails:"Use for all tracks","buttonUseForOtherThumbnails-tooltip":"Use the thumbnail for all tracks","buttonUseForOtherThumbnails-tooltip-aria":"Use the thumbnail for all tracks",buttonDiscard:"Discard","buttonDiscard-tooltip":"Discard the thumbnail for this track","buttonDiscard-tooltip-aria":"Discard the thumbnail for this track",buttonGenerateAll:"Generate All","buttonGenerateAll-tooltip":"Generate new thumbnails for all tracks from the current timeline marker position","buttonGenerateAll-tooltip-aria":"Generate new thumbnails for all tracks from the current timeline marker position",explanation:"Upload or generate a thumbnail for each track.",primary:"Primary",secondary:"Secondary"},d={rowTitle:"Change thumbnail here",from:"from"},b={"generic-message":"發生嚴重錯誤!",details:"細節: ","workflowActive-errorTitle":"Temporarily unavailable","workflowActive-errorMessage":"This event is being processed. Please wait until the process is finished."},g={"main-heading":"歡迎使用影片編輯器","contact-admin":"如果您嘗試編輯特定影片但看到此頁面時,請聯繫您的管理員。","start-editing-1":"要開始編輯,請指定參數 ","start-editing-2":" 使用您要編輯的影片的媒體識別 ID。","link-to-documentation":"有關配置影片編輯器的更多信息,請參閱管理指南,網址為 "},p={"error-details-text":"詳細訊息:{{errorMessage}}","error-text":"發生了錯誤。 請稍等,然後再重試。","goBack-button":"不,回到上一步","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},h={title:"Select track(s) for processing",trackInactive:"不活動的",deleteTrackText:"刪除影音軌道",restoreTrackText:"還原影音軌道",cannotDeleteTrackText:"無法刪除影音軌道",deleteTrackTooltip:"請勿編碼和發佈此影音軌道。",restoreTrackTooltip:"編碼並發佈此影音軌道",cannotDeleteTrackTooltip:"無法從發佈的影片中刪除此影音軌道。"},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},A={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},E={selectVideoLabel:"Video Flavors"},N={overviewTimelineTooltip:"Timeline overview"},k={header:"Shortcuts",defaultGroupName:"一般",missingLabel:"未知",groupVideoPlayer:"Video Player",groupCuttingView:"裁剪",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"無法載入概觀資料",videoPlayButton:"播放/暫停 影片",scrubberLeft:"往左移",scrubberRight:"往右移",scrubberIncrease:"Move faster",scrubberDecrease:"移動慢一點"},f={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},G={language:"語言"},v={mainMenu:t,cuttingActions:e,video:o,finishMenu:i,save:a,discard:n,theEnd:r,workflowSelection:l,timeline:s,workflowConfig:u,metadata:c,thumbnail:m,thumbnailSimple:d,error:b,landing:g,various:p,trackSelection:h,subtitles:S,subtitleList:A,subtitleVideoArea:E,subtitleTimeline:N,keyboardControls:k,theme:f,language:G};export{e as cuttingActions,v as default,n as discard,b as error,i as finishMenu,k as keyboardControls,g as landing,G as language,t as mainMenu,c as metadata,a as save,A as subtitleList,N as subtitleTimeline,E as subtitleVideoArea,S as subtitles,r as theEnd,f as theme,m as thumbnail,d as thumbnailSimple,s as timeline,h as trackSelection,p as various,o as video,u as workflowConfig,l as workflowSelection}; +請注意,您仍然必須開始處理才能使更改生效。`,validation:{required:"必須的","duration-format":"格式必須為 HH:MM:SS",datetime:"不合法"},labels:{title:"標題",subject:"主旨",description:"描述",language:"語言",rightsHolder:"版權所有人",license:"版權",isPartOf:"系列",creator:"演講者",contributor:"貢獻者",startDate:"開始日期",duration:"持續時間",location:"位置",source:"來源",created:"建立",publisher:"發行人",identifier:"UID"},language:{"LANGUAGES-SLOVENIAN":"斯洛文尼亞語","LANGUAGES-PORTUGESE":"Portuguese","LANGUAGES-ROMANSH":"羅曼什語","LANGUAGES-ARABIC":"阿拉伯語","LANGUAGES-POLISH":"波蘭語","LANGUAGES-ITALIAN":"意大利語","LANGUAGES-CHINESE":"繁體中文","LANGUAGES-FINNISH":"芬蘭語","LANGUAGES-DANISH":"丹麥語","LANGUAGES-UKRAINIAN":"烏克蘭","LANGUAGES-FRENCH":"法語","LANGUAGES-SPANISH":"西班牙語","LANGUAGES-GERMAN_CH":"瑞士德語","LANGUAGES-NORWEGIAN":"挪威","LANGUAGES-RUSSIAN":"俄語","LANGUAGES-JAPANESE":"日語","LANGUAGES-DUTCH":"荷蘭語","LANGUAGES-TURKISH":"土耳其語","LANGUAGES-HINDI":"印度語","LANGUAGES-SWEDISH":"瑞典語","LANGUAGES-ENGLISH":"英語","LANGUAGES-GERMAN":"德語"},license:{"EVENTS-LICENSE-CC0":"創作共享 CC0","EVENTS-LICENSE-CCBYND":"CC-BY-ND 創作分享-姓名標示-禁止改作","EVENTS-LICENSE-CCBYNCND":"創作分享-姓名標示-非商業性使用-禁止改作","EVENTS-LICENSE-CCBYNCSA":"創作分享-姓名標示-非商業性使用-相同方式分享","EVENTS-LICENSE-ALLRIGHTS":"保留所有權利","EVENTS-LICENSE-CCBYSA":"創作分享-姓名標示-相同方式分享","EVENTS-LICENSE-CCBYNC":"創作分享-姓名標示-非商業性使用","EVENTS-LICENSE-CCBY":"創作分享-姓名標示"},"calendar-prev":"Previous","calendar-next":"Next"},m={title:"Thumbnail Editor",noThumbnailAvailable:"No Thumbnail available",previewImageAlt:"Thumbnail for track",buttonGenerate:"Generate","buttonGenerate-tooltip":"Generate a new thumbnail from the current timeline marker position","buttonGenerate-tooltip-aria":"Generate a new thumbnail from the current timeline marker position",buttonUpload:"Upload","buttonUpload-tooltip":"Upload an image","buttonUpload-tooltip-aria":"Upload an image",buttonUseForOtherThumbnails:"Use for all tracks","buttonUseForOtherThumbnails-tooltip":"Use the thumbnail for all tracks","buttonUseForOtherThumbnails-tooltip-aria":"Use the thumbnail for all tracks",buttonDiscard:"Discard","buttonDiscard-tooltip":"Discard the thumbnail for this track","buttonDiscard-tooltip-aria":"Discard the thumbnail for this track",buttonGenerateAll:"Generate All","buttonGenerateAll-tooltip":"Generate new thumbnails for all tracks from the current timeline marker position","buttonGenerateAll-tooltip-aria":"Generate new thumbnails for all tracks from the current timeline marker position",explanation:"Upload or generate a thumbnail for each track.",primary:"Primary",secondary:"Secondary"},d={rowTitle:"Change thumbnail here",from:"from"},b={"generic-message":"發生嚴重錯誤!",details:"細節: ","workflowActive-errorTitle":"Temporarily unavailable","workflowActive-errorMessage":"This event is being processed. Please wait until the process is finished."},g={"main-heading":"歡迎使用影片編輯器","contact-admin":"如果您嘗試編輯特定影片但看到此頁面時,請聯繫您的管理員。","start-editing-1":"要開始編輯,請指定參數 ","start-editing-2":" 使用您要編輯的影片的媒體識別 ID。","link-to-documentation":"有關配置影片編輯器的更多信息,請參閱管理指南,網址為 "},p={"error-details-text":"詳細訊息:{{errorMessage}}","error-text":"發生了錯誤。 請稍等,然後再重試。","goBack-button":"不,回到上一步","callback-button-system":"Back to {{system}}","callback-button-generic":"Back to previous system"},h={title:"Select track(s) for processing",trackInactive:"不活動的",deleteTrackText:"刪除影音軌道",restoreTrackText:"還原影音軌道",cannotDeleteTrackText:"無法刪除影音軌道",deleteTrackTooltip:"請勿編碼和發佈此影音軌道。",restoreTrackTooltip:"編碼並發佈此影音軌道",cannotDeleteTrackTooltip:"無法從發佈的影片中刪除此影音軌道。"},S={"selectSubtitleButton-tooltip":"Edit subtitles for {{title}}","selectSubtitleButton-tooltip-aria":"Select {{title}} for subtitle editing","createSubtitleButton-tooltip":"Opens a dialog for creating new subtitles","createSubtitleButton-clicked-tooltip-aria":"Contains a dialog for creating new subtitles","createSubtitleButton-createButton":"Create","createSubtitleButton-createButton-tooltip":"Start a new subtitle file with the chosen title.","createSubtitleButton-createButton-disabled-tooltip":"Please pick a language from the dropdown above.","createSubtitleDropdown-label":"Pick a language",backButton:"Back","backButton-tooltip":"Return to subtitle selection","downloadButton-title":"Download","downloadButton-tooltip":"Download subtitle as vtt file",editTitle:"Subtitle Editor - {{title}}","editTitle-loading":"Loading",generic:"Generic",autoGenerated:"Auto-generated"},A={"startTime-tooltip":"Beginning of the segment","startTime-tooltip-aria":"Beginning at","endTime-tooltip":"End of the segment","endTime-tooltip-aria":"Ending at",addSegmentAbove:"Add segment above",addSegmentBelow:"Add segment below",jumpToSegmentAbove:"Jump to segment above",jumpToSegmentBelow:"Jump to segment below",deleteSegment:"Delete segment"},E={selectVideoLabel:"Video Flavors"},N={overviewTimelineTooltip:"Timeline overview"},k={header:"Shortcuts",defaultGroupName:"一般",missingLabel:"未知",groupVideoPlayer:"Video Player",groupCuttingView:"裁剪",groupCuttingViewScrubber:"Timeline",groupSubtitleList:"Subtitles",sequenceSeparator:"or",genericError:"無法載入概觀資料",videoPlayButton:"播放/暫停 影片",scrubberLeft:"往左移",scrubberRight:"往右移",scrubberIncrease:"Move faster",scrubberDecrease:"移動慢一點"},f={appearance:"Appearance",dark:"Dark",light:"Light",auto:"Auto","dark-high-contrast":"Dark (High contrast)","light-high-contrast":"Light (High contrast)"},G={language:"語言"},v={mainMenu:t,cuttingActions:e,video:o,finishMenu:i,save:a,discard:n,theEnd:r,workflowSelection:l,timeline:s,workflowConfig:u,metadata:c,thumbnail:m,thumbnailSimple:d,error:b,landing:g,various:p,trackSelection:h,subtitles:S,subtitleList:A,subtitleVideoArea:E,subtitleTimeline:N,keyboardControls:k,theme:f,language:G};export{e as cuttingActions,v as default,n as discard,b as error,i as finishMenu,k as keyboardControls,g as landing,G as language,t as mainMenu,c as metadata,a as save,A as subtitleList,N as subtitleTimeline,E as subtitleVideoArea,S as subtitles,r as theEnd,f as theme,m as thumbnail,d as thumbnailSimple,s as timeline,h as trackSelection,p as various,o as video,u as workflowConfig,l as workflowSelection}; diff --git a/index.html b/index.html index d8fcee46d..f76b7f909 100644 --- a/index.html +++ b/index.html @@ -49,7 +49,7 @@ stroke-linecap: round; } - +