/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin (https://github.com/phibr0/obsidian-commander) */ var Ve=Object.defineProperty,Fn=Object.defineProperties,Vn=Object.getOwnPropertyDescriptor,Wn=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var Qt=(t,e,o)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,We=(t,e)=>{for(var o in e||(e={}))Ct.call(e,o)&&Qt(t,o,e[o]);if(Fe)for(var o of Fe(e))eo.call(e,o)&&Qt(t,o,e[o]);return t},to=(t,e)=>Fn(t,Wn(e));var je=(t,e)=>{var o={};for(var n in t)Ct.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&Fe)for(var n of Fe(t))e.indexOf(n)<0&&eo.call(t,n)&&(o[n]=t[n]);return o};var Un=(t,e)=>{for(var o in e)Ve(t,o,{get:e[o],enumerable:!0})},qn=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of jn(e))!Ct.call(t,a)&&a!==o&&Ve(t,a,{get:()=>e[a],enumerable:!(n=Vn(e,a))||n.enumerable});return t};var Zn=t=>qn(Ve({},"__esModule",{value:!0}),t);var Ua={};Un(Ua,{default:()=>ft});module.exports=Zn(Ua);var Ue=require("obsidian");var wt=require("obsidian");var oo={};var no={"Open Commander Settings":"Otev\u0159\xEDt nastaven\xED Commandera","Open Macro Builder":"Otev\u0159\xEDt tv\u016Frce Maker","Change Icon":"Zm\u011Bnit ikonu",Rename:"P\u0159ejmenovat",Delete:"Smazat","Add command":"P\u0159idat p\u0159\xEDkaz","Add new":"P\u0159idat nov\xFD","This Command seems to have been removed. {{command_name}}":"Tento p\u0159\xEDkaz se zd\xE1 b\xFDt odstran\u011Bn. {{command_name}}","Choose a Command to add":"Vyberte p\u0159\xEDkaz k p\u0159id\xE1n\xED","to navigate":"pro navigaci","to choose an icon":"pro v\xFDb\u011Br ikony","to cancel":"pro zru\u0161en\xED","Use a custom name":"Pou\u017E\xEDt vlastn\xED jm\xE9no","Choose a custom Name for your new Command":"Vyberte vlastn\xED jm\xE9no pro v\xE1\u0161 nov\xFD p\u0159\xEDkaz","to save":"pro ulo\u017Een\xED","Choose a Icon for your new Command":"Vyberte ikonu pro v\xE1\u0161 nov\xFD p\u0159\xEDkaz","to choose a custom icon":"pro v\xFDb\u011Br vlastn\xED ikony","Remove Command":"Odstranit p\u0159\xEDkaz","Double click to rename":"Pro p\u0159ejmenov\xE1n\xED dvakr\xE1t klikn\u011Bte","This device":"Toto za\u0159\xEDzen\xED","Added by {{plugin_name}}.":"P\u0159id\xE1no pomoc\xED {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Varov\xE1n\xED: Tento p\u0159\xEDkaz je kontrolov\xE1n a nemus\xED fungovat ve v\u0161ech p\u0159\xEDpadech.","Move down":"P\u0159esunout dol\u016F","Move up":"P\u0159esunout nahoru","Change Mode (Currently: {{current_mode}})":"Zm\u011Bnit re\u017Eim (Nyn\xED: {{current_mode}})","Are you sure you want to delete the Command?":"Opravdu chcete smazat tento p\u0159\xEDkaz?","Remove and don't ask again":"Odstranit a u\u017E se neptat",Remove:"Odstranit",Cancel:"Zru\u0161it","Always ask before removing?":"V\u017Edy se pt\xE1t p\u0159ed odstran\u011Bn\xEDm?","Always show a Popup to confirm deletion of a Command.":"V\u017Edy zobrazovat vyskakovac\xED okno pro potvrzen\xED odstran\u011Bn\xED p\u0159\xEDkazu.",'Show "Add Command" Button':'Zobrazit tla\u010D\xEDtko "P\u0159idat p\u0159\xEDkaz"','Show the "Add Command" Button in every Menu. Requires restart.':'Zobrazit tla\u010D\xEDtko "P\u0159idat p\u0159\xEDkaz" ve v\u0161ech nab\xEDdk\xE1ch. Vy\u017Eaduje restart.',"Please restart Obsidian for these changes to take effect.":"Pros\xEDm restartujte Obsidian, aby se zm\u011Bny projevily.","Enable debugging":"Povolit lad\u011Bn\xED","Enable console output.":"Povolit v\xFDstup do konzole.",General:"Obecn\xE9","Editor Menu":"Kontextov\xE1 nab\xEDdka v editoru","File Menu":"Nab\xEDdka souboru","Left Ribbon":"Lev\xFD Ribbon","Right Ribbon":"Prav\xFD Ribbon",Titlebar:"Li\u0161ta aplikace",Statusbar:"Stavov\xE1 li\u0161ta","Page Header":"Hlavi\u010Dka str\xE1nky","Support development":"Podpo\u0159te v\xFDvoj","No commands here!":"Nejsou zde \u017E\xE1dn\xE9 p\u0159\xEDkazy!","Would you like to add one now?":"Chcete nyn\xED jeden p\u0159idat?","Hide Commands":"Skr\xFDt p\u0159\xEDkazy","Choose new":"Vyberte nov\xFD","Hide Commands of other Plugins":"Skr\xFDt p\u0159\xEDkazy jin\xFDch roz\u0161\xED\u0159en\xED",Icon:"Ikona",Name:"N\xE1zev","Custom Name":"Vlastn\xED n\xE1zev","Add command to all devices":"P\u0159idat p\u0159\xEDkaz na v\u0161echna za\u0159\xEDzen\xED","Add command only to mobile devices":"P\u0159idat p\u0159\xEDkaz pouze na mobiln\xED za\u0159\xEDzen\xED","Add command only to desktop devices":"P\u0159idat p\u0159\xEDkaz pouze na stoln\xED za\u0159\xEDzen\xED","Add command only to this device":"P\u0159idat p\u0159\xEDkaz pouze na toto za\u0159\xEDzen\xED",Done:"Hotovo","By Johnny\u2728 and phibr0":"Vytvo\u0159il Johnny\u2728 a phibr0","Leave feedback":"Zanechat zp\u011Btnou vazbu",Donate:"P\u0159isp\u011Bt","Share feedback, issues, and ideas with our feedback form.":"Sd\xEDlejte zp\u011Btnou vazbu, probl\xE9my a n\xE1pady pomoc\xED na\u0161eho formul\xE1\u0159e.","Consider donating to support development.":"Zva\u017Ete p\u0159\xEDsp\u011Bvek na podporu v\xFDvoje.",Save:"Ulo\u017Eit","This Command is not available on this device.":"Tento p\u0159\xEDkaz nen\xED dostupn\xFD na tomto za\u0159\xEDzen\xED.",Show:"Zobrazit",Hide:"Skr\xFDt","Hide other Commands":"Skr\xFDt ostatn\xED p\u0159\xEDkazy","Double click to enter custom value":"Dvakr\xE1t klikn\u011Bte pro zad\xE1n\xED vlastn\xED hodnoty","Restore default":"Restore default","Choose custom spacing for Command Buttons":"Vyberte vlastn\xED odsazen\xED pro tla\u010D\xEDtka p\u0159\xEDkaz\u016F","Change the spacing between commands. You can set different values on mobile and desktop.":"Zm\u011Bna odsazen\xED mezi p\u0159\xEDkazy. M\u016F\u017Eete nastavit r\u016Fzn\xE9 hodnoty na mobiln\xEDch a stoln\xEDch za\u0159\xEDzen\xEDch.",Warning:"Varov\xE1n\xED","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"Od verze Obsidian 0.16.0 je nutn\xE9 explicitn\u011B povolit z\xE1hlav\xED zobrazen\xED. Po povolen\xED je mo\u017En\xE9, \u017Ee budete muset restartovat Obsidian.","Open Appearance Settings":"Otev\u0159\xEDt nastaven\xED vzhledu",Explorer:"Pr\u016Fzkumn\xEDk"};var ao={};var io={"Open Commander Settings":"Commander Einstellungen \xF6ffnen","Open Macro Builder":"Makro Baukasten \xF6ffnen","Change Icon":"Symbol ver\xE4ndern",Rename:"Umbenennen",Delete:"L\xF6schen","Add command":"Befehl hinzuf\xFCgen","Add new":"Neuen Befehl hinzuf\xFCgen","This Command seems to have been removed. {{command_name}}":"Dieser Befehl wurde entfernt. {{command_name}}","Choose a Command to add":"W\xE4hle einen Befehl zum hinzuf\xFCgen","to navigate":"zum navigieren","to choose an icon":"um ein symbol auszuw\xE4hlen","to cancel":"zum abbrechen","Use a custom name":"Nutze einen benutzerdefinierten Namen","Choose a custom Name for your new Command":"W\xE4hle einen benutzerdefinierten Namen f\xFCr deinen neuen Befehl","to save":"zum speichern","Choose a Icon for your new Command":"W\xE4hle ein Symbol f\xFCr deinen neuen Befehl","to choose a custom icon":"um ein benutzerdefiniertes Symbol auszuw\xE4hlen","Remove Command":"Befehl entfernen","Double click to rename":"Zum umbenennen doppelklicken","This device":"Dieses Ger\xE4t","Added by {{plugin_name}}.":"Hinzugef\xFCgt von {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Warnung: Dieser Befehl wird nur unter bestimmten Vorraussetzungen ausgef\xFChrt.","Move down":"Nach unten","Move up":"Nach oben","Change Mode (Currently: {{current_mode}})":"Modus ver\xE4ndern (Momentan: {{current_mode}})","Are you sure you want to delete the Command?":"Bist du dir sicher, dass du diesen Befehl entfernen m\xF6chtest?","Remove and don't ask again":"Entfernen und Auswahl speichern",Remove:"Entfernen",Cancel:"Abbrechen","Always ask before removing?":"Immer fragen, bevor ein Befehl gel\xF6scht wird?","Always show a Popup to confirm deletion of a Command.":"Zeige immer ein Popup um L\xF6schen zu best\xE4tigen.",'Show "Add Command" Button':'Zeige "Befehl hinzuf\xFCgen" Knopf','Show the "Add Command" Button in every Menu. Requires restart.':'Zeige den "Befehl hinzuf\xFCgen" Knopf in jedem Men\xFC. Erfordert neustart.',"Please restart Obsidian for these changes to take effect.":"Bitte starte Obsidian neu, damit diese \xC4nderungen in Kraft treten.","Enable debugging":"Aktiviere debugging","Enable console output.":"Aktiviere Konsolen-Output (F\xFCr Entwickler)",General:"Allgemein","Editor Menu":"Editor-Men\xFC","File Menu":"Datei-Men\xFC","Left Ribbon":"Band","Right Ribbon":"Rechtes Band",Titlebar:"Titelleiste",Statusbar:"Statusleiste","Page Header":"Kopfzeile","Support development":"Entwicklung unterst\xFCtzen","No commands here!":"Keine Befehle da!","Would you like to add one now?":"M\xF6chtest du jetzt einen hinzuf\xFCgen?","Hide Commands":"Befehle verstecken","Choose new":"W\xE4hle neu","Hide Commands of other Plugins":"Hide Commands of other Plugins",Icon:"Symbol",Name:"Name","Custom Name":"Benutzerdefinierter Name","Add command to all devices":"F\xFCge Befehl allen Ger\xE4ten hinzu","Add command only to mobile devices":"F\xFCge Befehl nur Mobilen Ger\xE4ten hinzu","Add command only to desktop devices":"F\xFCge Befehl nur Desktop Ger\xE4ten hinzu","Add command only to this device":"F\xFCge Befehl nur diesem Ger\xE4t hinzu",Done:"Fertig","By Johnny\u2728 and phibr0":"Von Johnny\u2728 und phibr0","Leave feedback":"Feedback geben",Donate:"Spenden","Share feedback, issues, and ideas with our feedback form.":"Teile Feedback, Probleme und Ideen mit unserem Feedback Formular!","Consider donating to support development.":"Spende um die Entwicklung zu unterst\xFCtzen.",Save:"Speichern","This Command is not available on this device.":"Dieser Befehl ist auf diesem Ger\xE4t nicht verf\xFCgbar.",Show:"Anzeigen",Hide:"Verstecken","Hide other Commands":"Andere Befehle verstecken","Double click to enter custom value":"Doppelklicken um eigenen Wert einzutragen","Restore default":"Restore default","Choose custom spacing for Command Buttons":"W\xE4hle den Abstand zwischen Befehlen","Change the spacing between commands. You can set different values on mobile and desktop.":"Ver\xE4ndert den Abstand zwischen Befehlen.",Warning:"Achtung","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":'Ab Obsidian Version 0.16.0 m\xFCssen Sie den "View Header" explizit aktivieren. Anschlie\xDFend muss Obsidian neugestartet werden.',"Open Appearance Settings":"\xD6ffne Darstellungs-Einstellungen",Explorer:"Explorer"};var _t={"Open Commander Settings":"Open Commander Settings","Open Macro Builder":"Open Macro Builder","Change Icon":"Change Icon",Rename:"Rename",Delete:"Delete","Add command":"Add command","Add new":"Add new command","This Command seems to have been removed. {{command_name}}":"This Command seems to have been removed. {{command_name}}","Choose a Command to add":"Choose a Command to add","to navigate":"to navigate","to choose an icon":"to choose an icon","to cancel":"to cancel","Use a custom name":"Use a custom name","Choose a custom Name for your new Command":"Choose a custom Name for your new Command","to save":"to save","Choose a Icon for your new Command":"Choose a Icon for your new Command","to choose a custom icon":"to choose a custom icon","Remove Command":"Remove Command","Double click to rename":"Double click to rename","This device":"This device","Added by {{plugin_name}}.":"Added by {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Warning: This is a checked Command, meaning it might not run under every circumstance.","Move down":"Move down","Move up":"Move up","Change Mode (Currently: {{current_mode}})":"Change Mode (Currently: {{current_mode}})","Are you sure you want to delete the Command?":"Are you sure you want to delete the Command?","Remove and don't ask again":"Remove and don't ask again",Remove:"Remove",Cancel:"Cancel","Always ask before removing?":"Always ask before removing?","Always show a Popup to confirm deletion of a Command.":"Always show a Popup to confirm deletion of a Command.",'Show "Add Command" Button':'Show "Add Command" Button','Show the "Add Command" Button in every Menu. Requires restart.':'Show the "Add Command" Button in every Menu. Requires restart.',"Please restart Obsidian for these changes to take effect.":"Please restart Obsidian for these changes to take effect.","Enable debugging":"Enable debugging","Enable console output.":"Enable console output.",General:"General","Editor Menu":"Editor Menu","File Menu":"File Menu","Left Ribbon":"Ribbon","Right Ribbon":"Right Ribbon",Titlebar:"Titlebar",Statusbar:"Status Bar","Page Header":"Tab Bar","Support development":"Support development","No commands here!":"No commands here!","Would you like to add one now?":"Would you like to add one now?","Hide Commands":"Hide Commands","Choose new":"Choose new","Hide Commands of other Plugins":"Hide Commands of other Plugins",Icon:"Icon",Name:"Name","Custom Name":"Custom Name","Add command to all devices":"Add command to all devices","Add command only to mobile devices":"Add command only to mobile devices","Add command only to desktop devices":"Add command only to desktop devices","Add command only to this device":"Add command only to this device",Done:"Done","By Johnny\u2728 and phibr0":"By Johnny\u2728 and phibr0","Leave feedback":"Leave feedback",Donate:"Donate","Share feedback, issues, and ideas with our feedback form.":"Share feedback, issues, and ideas with our feedback form.","Consider donating to support development.":"Consider donating to support development.",Save:"Save","This Command is not available on this device.":"This Command is not available on this device.",Show:"Show",Hide:"Hide","Hide other Commands":"Hide other Commands","Double click to enter custom value":"Double click to enter custom value","Restore default":"Restore default","Choose custom spacing for Command Buttons":"Choose custom spacing for Command Buttons","Change the spacing between commands. You can set different values on mobile and desktop.":"Change the spacing between commands.",Warning:"Warning","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"As of Obsidian 0.16.0 you need to explicitly enable the Tab Title Bar. Once enabled, you might need to restart Obsidian.","Open Appearance Settings":"Open Appearance Settings",Explorer:"Explorer"};var ro={};var so={};var mo={"Open Commander Settings":"Ouvrir les param\xE8tres de Commander","Open Macro Builder":"Ouvrir le constructeur de Macro","Change Icon":"Changer l'ic\xF4ne",Rename:"Renommer",Delete:"Supprimer","Add command":"Ajouter une commande","Add new":"Ajouter une nouvelle commande","This Command seems to have been removed. {{command_name}}":"Cette commande semble avoir \xE9t\xE9 supprim\xE9e. {{command_name}}","Choose a Command to add":"Choisissez une commande \xE0 ajouter","to navigate":"pour naviguer","to choose an icon":"pour choisir une ic\xF4ne","to cancel":"pour annuler","Use a custom name":"Utiliser un nom personnalis\xE9","Choose a custom Name for your new Command":"Choisissez un nom personnalis\xE9 pour votre nouvelle commande","to save":"pour enregistrer","Choose a Icon for your new Command":"Choisissez une ic\xF4ne pour votre nouvelle commande","to choose a custom icon":"pour choisir une ic\xF4ne personnalis\xE9e","Remove Command":"Supprimer la commande","Double click to rename":"Double-cliquez pour renommer","This device":"Cet appareil","Added by {{plugin_name}}.":"Ajout\xE9 par {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Attention : Cette commande est coch\xE9e, ce qui signifie qu'elle pourrait ne pas fonctionner dans toutes les situations.","Move down":"Descendre","Move up":"Monter","Change Mode (Currently: {{current_mode}})":"Changer de mode (Actuellement : {{current_mode}})","Are you sure you want to delete the Command?":"\xCAtes-vous s\xFBr de vouloir supprimer la commande ?","Remove and don't ask again":"Supprimer et ne plus demander",Remove:"Supprimer",Cancel:"Annuler","Always ask before removing?":"Toujours demander avant de supprimer ?","Always show a Popup to confirm deletion of a Command.":"Toujours afficher une fen\xEAtre contextuelle pour confirmer la suppression d'une commande.",'Show "Add Command" Button':'Afficher le bouton "Ajouter une commande"','Show the "Add Command" Button in every Menu. Requires restart.':'Afficher le bouton "Ajouter une commande" dans chaque menu. N\xE9cessite un red\xE9marrage.',"Please restart Obsidian for these changes to take effect.":"Veuillez red\xE9marrer Obsidian pour que ces modifications prennent effet.","Enable debugging":"Activer le d\xE9bogage","Enable console output.":"Activer la sortie console.",General:"G\xE9n\xE9ral","Editor Menu":"Menu \xE9diteur","File Menu":"Menu fichier","Left Ribbon":"Ruban gauche","Right Ribbon":"Ruban droit",Titlebar:"Barre de titre",Statusbar:"Barre d'\xE9tat","Page Header":"En-t\xEAte de page","Support development":"Soutenir le d\xE9veloppement","No commands here!":"Aucune commande ici !","Would you like to add one now?":"Voulez-vous en ajouter une maintenant ?","Hide Commands":"Masquer les commandes","Choose new":"Choisir nouveau","Hide Commands of other Plugins":"Masquer les commandes d'autres plugins",Icon:"Ic\xF4ne",Name:"Nom","Custom Name":"Nom personnalis\xE9","Add command to all devices":"Ajouter la commande \xE0 tous les appareils","Add command only to mobile devices":"Ajouter la commande uniquement sur les appareils mobiles","Add command only to desktop devices":"Ajouter la commande uniquement sur les ordinateurs de bureau","Add command only to this device":"Ajouter la commande uniquement sur cet appareil",Done:"Termin\xE9","By Johnny\u2728 and phibr0":"Par Johnny\u2728 et phibr0","Leave feedback":"Laisser un commentaire",Donate:"Faire un don","Share feedback, issues, and ideas with our feedback form.":"Partagez vos commentaires, probl\xE8mes et id\xE9es avec notre formulaire de retour d'information.","Consider donating to support development.":"Envisagez de faire un don pour soutenir le d\xE9veloppement.",Save:"Enregistrer","This Command is not available on this device.":"Cette commande n'est pas disponible sur cet appareil.",Show:"Afficher",Hide:"Masquer","Hide other Commands":"Masquer les autres commandes","Double click to enter custom value":"Double-cliquez pour entrer une valeur personnalis\xE9e","Restore default":"Restore default","Choose custom spacing for Command Buttons":"Choisissez un espacement personnalis\xE9 pour les boutons de commande","Change the spacing between commands. You can set different values on mobile and desktop.":"Modifier l'espacement entre les commandes.",Warning:"Avertissement","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"\xC0 partir d'Obsidian 0.16.0, vous devez activer explicitement la barre de titre des onglets. Une fois activ\xE9e, il se peut que vous deviez red\xE9marrer Obsidian.","Open Appearance Settings":"Ouvrir les param\xE8tres d'apparence",Explorer:"Explorateur"};var co={};var lo={};var uo={};var po={};var fo={};var ho={"Open Commander Settings":"Open Commander Instellingen","Open Macro Builder":"Open Macro Bouwer","Change Icon":"Verander Icoon",Rename:"Hernoem",Delete:"Verwijder","Add command":"Voeg commando toe","Add new":"Voeg nieuw commando toe","This Command seems to have been removed. {{command_name}}":"Het lijkt er op dat dit commando is verwijderd. {{command_name}}","Choose a Command to add":"Kies een commando om toe te voegen","to navigate":"naar navigatie","to choose an icon":"naar kies een icoon","to cancel":"naar annuleren","Use a custom name":"Gebruik een aangepaste naam","Choose a custom Name for your new Command":"Kies een aangepaste naam voor je nieuwe commando","to save":"naar opslaan","Choose a Icon for your new Command":"Kies een icoon voor je nieuwe commando","to choose a custom icon":"to choose a custom icon","Remove Command":"Verwijder commando","Double click to rename":"Dubbel klik om te hernoemen","This device":"Dit apparaat","Added by {{plugin_name}}.":"Toegevoegd door {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Waarschuwing: Dit is een aangevinkte opdracht, wat betekent dat deze mogelijk niet onder alle omstandigheden wordt uitgevoerd.","Move down":"Naar beneden","Move up":"Naar boven","Change Mode (Currently: {{current_mode}})":"Verander modus (Currently: {{current_mode}})","Are you sure you want to delete the Command?":"Weet je zeker dat je dit commando wilt verwijderen??","Remove and don't ask again":"Verwijder en vraag niet opnieuw",Remove:"Verwijder",Cancel:"Annuleer","Always ask before removing?":"Altijd vragen voor verwijderen?","Always show a Popup to confirm deletion of a Command.":"Laat altijd een venster zien om het verwijderen van een commando te bevestigen.",'Show "Add Command" Button':'Laat "Voeg Commando toe" knop zien','Show the "Add Command" Button in every Menu. Requires restart.':'Laat de "Voeg Commenado toe" knop zien in elk menu. Vereist herstart.',"Please restart Obsidian for these changes to take effect.":"Start Obsidian a.u.b. opnieuw op om deze wijzigingen toe te passen.","Enable debugging":"Activeer debugging","Enable console output.":"Activeer console output.",General:"Algemeen","Editor Menu":"Editor Menu","File Menu":"Bestand Menu","Left Ribbon":"Linkse Lint","Right Ribbon":"Rechtse Lint",Titlebar:"Titelbalk",Statusbar:"Statusbalk","Page Header":"Pagina Kop","Support development":"Steun ontwikkeling","No commands here!":"Geen commando's hier!","Would you like to add one now?":"Zou je er \xE9\xE9n willen toevoegen?","Hide Commands":"Verberg Commando's","Choose new":"Kies nieuw","Hide Commands of other Plugins":"Verberg Commando's van andere Plugins",Icon:"Icoon",Name:"Naam","Custom Name":"Aangepaste naam","Add command to all devices":"Voeg commando toe aan alle apparaten","Add command only to mobile devices":"Voeg commando toe aan alleen mobiele apparaten","Add command only to desktop devices":"Voeg commando toe aan alleen dekstop apparaten","Add command only to this device":"Voed commando toe aan alleen dit apparaat",Done:"Klaar","By Johnny\u2728 and phibr0":"Door Johnny\u2728 en phibr0","Leave feedback":"Laat feedback achter",Donate:"Doneer","Share feedback, issues, and ideas with our feedback form.":"Deel feedback, problemen en idee\xEBn met ons feedback formulier.","Consider donating to support development.":"Overweeg te doneren om ontwikkeling te steunen.",Save:"Opslaan","This Command is not available on this device.":"Dit Commando is niet beschikbaar op dit apparaat.",Show:"Laat zien",Hide:"Verberg","Hide other Commands":"Verberg andere Commando's","Double click to enter custom value":"Dubbel klik om een aangepaste waarde in te vullen","Restore default":"Restore default","Choose custom spacing for Command Buttons":"Kies aangepaste regelafstand voor Commando Knoppen","Change the spacing between commands. You can set different values on mobile and desktop.":"Verander regelafstand tussen Commando's. Dit kan verschillen tussen mobiel en dekstop.",Warning:"Waarschuwing","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"Sinds Obsidian 0.16.0 moet je de kop expliciet inschakelen. Wanneer ingeschakeld moet je mogelijk Obsidian herstarten.","Open Appearance Settings":"Open Weergave Instellingen",Explorer:"Verkenner"};var vo={};var go={};var bo={};var Co={};var _o={};var yo={"Open Commander Settings":'\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 "Commander"',"Open Macro Builder":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043C\u0430\u043A\u0440\u043E\u0441\u043E\u0432","Change Icon":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u043E\u043A",Rename:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",Delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","Add command":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443","Add new":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u043A\u043E\u043C\u0430\u043D\u0434\u0443","This Command seems to have been removed. {{command_name}}":"\u042D\u0442\u0430 \u043A\u043E\u043C\u0430\u043D\u0434\u0430, \u043A\u0430\u0436\u0435\u0442\u0441\u044F, \u0431\u044B\u043B\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0430. {{command_name}}","Choose a Command to add":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F","to navigate":"\u0434\u043B\u044F \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","to choose an icon":"\u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u043E\u043A","to cancel":"\u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C","Use a custom name":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u0438\u043C\u044F","Choose a custom Name for your new Command":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0435 \u0438\u043C\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0439 \u043D\u043E\u0432\u043E\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u044B","to save":"\u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","Choose a Icon for your new Command":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u043E\u043A \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0439 \u043D\u043E\u0432\u043E\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u044B","to choose a custom icon":"\u0432\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0439 \u0437\u043D\u0430\u0447\u043E\u043A","Remove Command":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443","Double click to rename":"\u0414\u0432\u0430\u0436\u0434\u044B \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C","This device":"\u042D\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E","Added by {{plugin_name}}.":"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u043C {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435: \u044D\u0442\u043E \u043F\u0440\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u0430\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430, \u0442\u043E \u0435\u0441\u0442\u044C \u043E\u043D\u0430 \u043C\u043E\u0436\u0435\u0442 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u043B\u044E\u0431\u044B\u0445 \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430\u0445.","Move down":"\u0412\u043D\u0438\u0437","Move up":"\u0412\u0432\u0435\u0440\u0445","Change Mode (Currently: {{current_mode}})":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C (\u0421\u0435\u0439\u0447\u0430\u0441: {{current_mode}})","Are you sure you want to delete the Command?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443?","Remove and don't ask again":"\u0423\u0434\u0430\u043B\u0438\u0442\u0435 \u0438 \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u043F\u0440\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435",Remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430","Always ask before removing?":"\u0412\u0441\u0435\u0433\u0434\u0430 \u0441\u043F\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u043C?","Always show a Popup to confirm deletion of a Command.":"\u0412\u0441\u0435\u0433\u0434\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0432\u0441\u043F\u043B\u044B\u0432\u0430\u044E\u0449\u0435\u0435 \u043E\u043A\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u044B.",'Show "Add Command" Button':"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443\xBB",'Show the "Add Command" Button in every Menu. Requires restart.':"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443\xBB \u0432 \u043A\u0430\u0436\u0434\u043E\u043C \u043C\u0435\u043D\u044E. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430.","Please restart Obsidian for these changes to take effect.":"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 Obsidian, \u0447\u0442\u043E\u0431\u044B \u044D\u0442\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0432\u0441\u0442\u0443\u043F\u0438\u043B\u0438 \u0432 \u0441\u0438\u043B\u0443.","Enable debugging":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043B\u0430\u0434\u043A\u0443","Enable console output.":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u044B\u0432\u043E\u0434 \u043A\u043E\u043D\u0441\u043E\u043B\u0438.",General:"\u041E\u0431\u0449\u0435\u0435","Editor Menu":"\u041C\u0435\u043D\u044E \u0440\u0435\u0434\u0430\u043A\u0442\u043E\u0440\u0430","File Menu":"\u041C\u0435\u043D\u044E \xAB\u0424\u0430\u0439\u043B\xBB","Left Ribbon":"\u041B\u0435\u0432\u0430\u044F \u041B\u0435\u043D\u0442\u0430","Right Ribbon":"\u041F\u0440\u0430\u0432\u0430\u044F \u041B\u0435\u043D\u0442\u0430",Titlebar:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",Statusbar:"\u0421\u0442\u0430\u0442\u0443\u0441 \u0431\u0430\u0440","Page Header":"\u041F\u0430\u043D\u0435\u043B\u044C \u0432\u043A\u043B\u0430\u0434\u043E\u043A","Support development":"\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0438","No commands here!":"\u0417\u0434\u0435\u0441\u044C \u043D\u0435\u0442 \u043A\u043E\u043C\u0430\u043D\u0434!","Would you like to add one now?":"\u0425\u043E\u0442\u0438\u0442\u0435 \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0435\u0439\u0447\u0430\u0441?","Hide Commands":"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u044B","Choose new":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E","Hide Commands of other Plugins":"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u044B \u0434\u0440\u0443\u0433\u0438\u0445 \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u0432",Icon:"\u0418\u043A\u043E\u043D\u043A\u0430",Name:"\u0418\u043C\u044F","Custom Name":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0435 \u0438\u043C\u044F","Add command to all devices":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u043D\u0430 \u0432\u0441\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430","Add command only to mobile devices":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432","Add command only to desktop devices":'\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F "Desktop" \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432',"Add command only to this device":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u0430 \u044D\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",Done:"\u0413\u043E\u0442\u043E\u0432\u043E","By Johnny\u2728 and phibr0":'\u0421\u0434\u0435\u043B\u0430\u043B\u0438: "Johnny\u2728" \u0438 "phibr0"',"Leave feedback":"\u041E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",Donate:"\u041F\u043E\u0436\u0435\u0440\u0442\u0432\u043E\u0432\u0430\u0442\u044C","Share feedback, issues, and ideas with our feedback form.":"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u043E\u0442\u0437\u044B\u0432\u0430\u043C\u0438, \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430\u043C\u0438 \u0438 \u0438\u0434\u0435\u044F\u043C\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u043D\u0430\u0448\u0435\u0439 \u0444\u043E\u0440\u043C\u044B \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438.","Consider donating to support development.":"\u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u043E \u043F\u043E\u0436\u0435\u0440\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0438 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F.",Save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","This Command is not available on this device.":"This Command is not available on this device.",Show:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",Hide:"\u0421\u043F\u0440\u044F\u0442\u0430\u0442\u044C","Hide other Commands":"\u0421\u043F\u0440\u044F\u0442\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u044B","Double click to enter custom value":"\u0414\u0432\u0430\u0436\u0434\u044B \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0432\u0432\u0435\u0441\u0442\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","Restore default":"Restore default","Choose custom spacing for Command Buttons":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0439 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u043A\u043E\u043C\u0430\u043D\u0434\u043D\u044B\u043C\u0438 \u043A\u043D\u043E\u043F\u043A\u0430\u043C\u0438","Change the spacing between commands. You can set different values on mobile and desktop.":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u043A\u043E\u043C\u0430\u043D\u0434\u0430\u043C\u0438.",Warning:"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"\u041D\u0430\u0447\u0438\u043D\u0430\u044F \u0441 Obsidian 0.16.0 \u0432\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u044F\u0432\u043D\u043E \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430 \u0432\u043A\u043B\u0430\u0434\u043A\u0438. \u041F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u0430\u043C \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u0442\u0440\u0435\u0431\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C Obsidian.","Open Appearance Settings":"\u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430",Explorer:"\u0424\u0430\u0439\u043B\u043E\u0432\u044B\u0439 \u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440"};var wo={};var ko={"Open Commander Settings":"\u6253\u5F00 Commander \u8BBE\u7F6E","Open Macro Builder":"\u6253\u5F00\u5B8F\u6307\u4EE4\u751F\u6210\u5668","Change Icon":"\u66F4\u6362\u56FE\u6807",Rename:"\u91CD\u547D\u540D",Delete:"\u5220\u9664","Add command":"\u6DFB\u52A0\u547D\u4EE4","Add new":"\u6DFB\u52A0\u65B0\u547D\u4EE4","This Command seems to have been removed. {{command_name}}":"\u8BE5\u547D\u4EE4\u4F3C\u4E4E\u5DF2\u88AB\u79FB\u9664\u3002{{command_name}}","Choose a Command to add":"\u9009\u62E9\u4E00\u4E2A\u547D\u4EE4\u5E76\u6DFB\u52A0","to navigate":"\u5BFC\u822A","to choose an icon":"\u9009\u4E2D\u4E00\u4E2A\u56FE\u6807","to cancel":"\u53D6\u6D88","Use a custom name":"\u4F7F\u7528\u4E00\u4E2A\u81EA\u5B9A\u4E49\u540D\u79F0","Choose a custom Name for your new Command":"\u4E3A\u4F60\u7684\u65B0\u547D\u4EE4\u9009\u62E9\u4E00\u4E2A\u81EA\u5B9A\u4E49\u540D\u79F0","to save":"\u4FDD\u5B58","Choose a Icon for your new Command":"\u4E3A\u4F60\u7684\u65B0\u547D\u4EE4\u9009\u62E9\u4E00\u4E2A\u56FE\u6807","to choose a custom icon":"\u9009\u62E9\u4E00\u4E2A\u81EA\u5B9A\u4E49\u56FE\u6807","Remove Command":"\u79FB\u9664\u547D\u4EE4","Double click to rename":"\u53CC\u51FB\u4EE5\u91CD\u547D\u540D","This device":"\u8BE5\u8BBE\u5907","Added by {{plugin_name}}.":"\u7531{{plugin_name}}\u6DFB\u52A0\u3002","Warning: This is a checked Command, meaning it might not run under every circumstance.":"\u8B66\u544A\uFF1A\u8FD9\u662F\u4E00\u4E2A\u53D7\u68C0\u7684\u547D\u4EE4\uFF0C\u8FD9\u610F\u5473\u7740\u5B83\u672A\u5FC5\u80FD\u5728\u6240\u6709\u73AF\u5883\u4E0B\u8FD0\u884C\u3002","Move down":"\u5411\u4E0B\u79FB\u52A8","Move up":"\u5411\u4E0A\u79FB\u52A8","Change Mode (Currently: {{current_mode}})":"\u5207\u6362\u6A21\u5F0F\uFF08\u5F53\u524D\uFF1A{{current_mode}}\uFF09","Are you sure you want to delete the Command?":"\u662F\u5426\u786E\u8BA4\u79FB\u9664\u8BE5\u547D\u4EE4\uFF1F","Remove and don't ask again":"\u79FB\u9664\u4E14\u4E0D\u8981\u518D\u8BE2\u95EE",Remove:"\u79FB\u9664",Cancel:"\u53D6\u6D88","Always ask before removing?":"\u5728\u79FB\u9664\u524D\u603B\u662F\u8BE2\u95EE\uFF1F","Always show a Popup to confirm deletion of a Command.":"\u5728\u786E\u8BA4\u79FB\u9664\u547D\u4EE4\u524D\u603B\u662F\u5F39\u7A97\u3002",'Show "Add Command" Button':"\u663E\u793A\u201C\u6DFB\u52A0\u547D\u4EE4\u201D\u6309\u94AE",'Show the "Add Command" Button in every Menu. Requires restart.':"\u5728\u6BCF\u4E2A\u83DC\u5355\u90FD\u5C55\u793A\u201C\u6DFB\u52A0\u547D\u4EE4\u201D\u6309\u94AE\u3002\u9700\u8981\u91CD\u542F\u3002","Please restart Obsidian for these changes to take effect.":"\u8BF7\u91CD\u542F Obsidian \u4EE5\u4F7F\u8FD9\u4E9B\u66F4\u6539\u751F\u6548\u3002","Enable debugging":"\u542F\u7528\u9664\u9519","Enable console output.":"\u542F\u7528\u63A7\u5236\u53F0\u8F93\u51FA\u3002",General:"\u901A\u7528","Editor Menu":"\u7F16\u8F91\u5668\u83DC\u5355","File Menu":"\u6587\u4EF6\u83DC\u5355","Left Ribbon":"\u5DE6\u4FA7\u8FB9\u680F","Right Ribbon":"\u53F3\u4FA7\u8FB9\u680F",Titlebar:"\u6807\u9898\u680F",Statusbar:"\u72B6\u6001\u680F","Page Header":"\u9875\u9996","Support development":"\u652F\u6301\u5F00\u53D1","No commands here!":"\u8FD9\u91CC\u6CA1\u6709\u547D\u4EE4\uFF01","Would you like to add one now?":"\u4F60\u73B0\u5728\u60F3\u8981\u52A0\u4E00\u4E2A\u5417\uFF1F","Hide Commands":"\u9690\u85CF\u547D\u4EE4","Choose new":"\u9009\u62E9\u65B0\u7684","Hide Commands of other Plugins":"\u9690\u85CF\u5176\u4ED6\u63D2\u4EF6\u7684\u547D\u4EE4",Icon:"\u56FE\u6807",Name:"\u540D\u79F0","Custom Name":"\u81EA\u5B9A\u4E49\u540D\u79F0","Add command to all devices":"\u5411\u6240\u6709\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to mobile devices":"\u53EA\u5411\u79FB\u52A8\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to desktop devices":"\u53EA\u5411\u684C\u9762\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to this device":"\u53EA\u5411\u5F53\u524D\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4",Done:"\u5B8C\u6210","By Johnny\u2728 and phibr0":"\u7531 Johnny\u2728 \u548C phibr0 \u5F00\u53D1","Leave feedback":"\u7559\u4E0B\u53CD\u9988",Donate:"\u6350\u8D60","Share feedback, issues, and ideas with our feedback form.":"\u4EE5\u6211\u4EEC\u7684\u53CD\u9988\u8868\uFF0C\u5206\u4EAB\u53CD\u9988\u3001\u8BAE\u9898\u6216\u8005\u4F60\u7684\u60F3\u6CD5\u3002","Consider donating to support development.":"\u8003\u8651\u6350\u8D60\u4EE5\u652F\u6301\u5F00\u53D1\u3002",Save:"\u4FDD\u5B58","This Command is not available on this device.":"\u8FD9\u4E00\u547D\u4EE4\u5728\u5F53\u524D\u8BBE\u5907\u4E0D\u53EF\u7528\u3002",Show:"\u663E\u793A",Hide:"\u9690\u85CF","Hide other Commands":"\u9690\u85CF\u5176\u4F59\u547D\u4EE4","Double click to enter custom value":"\u53CC\u51FB\u4EE5\u6DFB\u52A0\u81EA\u5B9A\u4E49\u503C","Restore default":"Restore default","Choose custom spacing for Command Buttons":"\u4E3A\u547D\u4EE4\u6309\u94AE\u9009\u62E9\u81EA\u5B9A\u4E49\u95F4\u8DDD","Change the spacing between commands. You can set different values on mobile and desktop.":"\u6539\u53D8\u547D\u4EE4\u4E4B\u95F4\u7684\u95F4\u8DDD\u3002\u4F60\u53EF\u4EE5\u4E3A\u79FB\u52A8\u548C\u684C\u9762\u8BBE\u5907\u8BBE\u7F6E\u4E0D\u540C\u7684\u503C\u3002",Warning:"\u8B66\u544A","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"\u4ECE Obsidian 0.16.0 \u5F00\u59CB\uFF0C\u4F60\u9700\u8981\u663E\u5F0F\u542F\u7528\u6807\u7B7E\u9875\u6807\u9898\u680F\u3002\u542F\u7528\u540E\uFF0C\u9700\u8981\u91CD\u542F Obsidian \u624D\u80FD\u751F\u6548\u3002","Open Appearance Settings":"\u6253\u5F00\u5916\u89C2\u8BBE\u7F6E",Explorer:"\u6587\u4EF6\u7BA1\u7406\u5668"};var xo={"Open Commander Settings":"\u958B\u555F Commander \u8A2D\u5B9A","Open Macro Builder":"\u958B\u555F\u5DE8\u96C6\u5EFA\u7ACB\u5668","Change Icon":"\u8B8A\u66F4\u5716\u793A",Rename:"\u91CD\u65B0\u547D\u540D",Delete:"\u522A\u9664","Add command":"\u65B0\u589E\u547D\u4EE4","Add new":"\u65B0\u589E","This Command seems to have been removed. {{command_name}}":"\u6B64\u547D\u4EE4\u4F3C\u4E4E\u5DF2\u88AB\u79FB\u9664\u3002{{command_name}}","Choose a Command to add":"\u9078\u64C7\u8981\u65B0\u589E\u7684\u547D\u4EE4","to navigate":"\u5C0E\u89BD","to choose an icon":"\u9078\u64C7\u5716\u793A","to cancel":"\u53D6\u6D88","Use a custom name":"\u4F7F\u7528\u81EA\u8A02\u540D\u7A31","Choose a custom Name for your new Command":"\u70BA\u65B0\u547D\u4EE4\u9078\u64C7\u4E00\u500B\u81EA\u8A02\u540D\u7A31","to save":"\u5132\u5B58","Choose a Icon for your new Command":"\u70BA\u65B0\u547D\u4EE4\u9078\u64C7\u4E00\u500B\u5716\u793A","to choose a custom icon":"\u9078\u64C7\u81EA\u8A02\u5716\u793A","Remove Command":"\u79FB\u9664\u547D\u4EE4","Double click to rename":"\u9023\u6309\u5169\u4E0B\u4EE5\u91CD\u65B0\u547D\u540D","This device":"\u6B64\u88DD\u7F6E","Added by {{plugin_name}}.":"\u7531 {{plugin_name}} \u65B0\u589E\u3002","Warning: This is a checked Command, meaning it might not run under every circumstance.":"\u8B66\u544A\uFF1A\u6B64\u547D\u4EE4\u5305\u542B\u689D\u4EF6\u6AA2\u67E5\uFF0C\u4EE3\u8868\u5B83\u53EF\u80FD\u7121\u6CD5\u5728\u6240\u6709\u60C5\u6CC1\u4E0B\u57F7\u884C\u3002","Move down":"\u5411\u4E0B\u79FB\u52D5","Move up":"\u5411\u4E0A\u79FB\u52D5","Change Mode (Currently: {{current_mode}})":"\u5207\u63DB\u6A21\u5F0F\uFF08\u76EE\u524D\uFF1A{{current_mode}}\uFF09","Are you sure you want to delete the Command?":"\u78BA\u5B9A\u8981\u522A\u9664\u6B64\u547D\u4EE4\u55CE\uFF1F","Remove and don't ask again":"\u79FB\u9664\u4E14\u4E0D\u518D\u8A62\u554F",Remove:"\u79FB\u9664",Cancel:"\u53D6\u6D88","Always ask before removing?":"\u79FB\u9664\u524D\u4E00\u5F8B\u8A62\u554F\uFF1F","Always show a Popup to confirm deletion of a Command.":"\u522A\u9664\u547D\u4EE4\u6642\u4E00\u5F8B\u986F\u793A\u78BA\u8A8D\u5F48\u51FA\u8996\u7A97\u3002",'Show "Add Command" Button':"\u986F\u793A\u300C\u65B0\u589E\u547D\u4EE4\u300D\u6309\u9215",'Show the "Add Command" Button in every Menu. Requires restart.':"\u5728\u6BCF\u500B\u9078\u55AE\u4E2D\u986F\u793A\u300C\u65B0\u589E\u547D\u4EE4\u300D\u6309\u9215\u3002\u9700\u8981\u91CD\u65B0\u555F\u52D5\u3002","Please restart Obsidian for these changes to take effect.":"\u8ACB\u91CD\u65B0\u555F\u52D5 Obsidian \u4EE5\u4F7F\u9019\u4E9B\u8B8A\u66F4\u751F\u6548\u3002","Enable debugging":"\u555F\u7528\u9664\u932F","Enable console output.":"\u555F\u7528\u4E3B\u63A7\u53F0\u8F38\u51FA\u3002",General:"\u4E00\u822C","Editor Menu":"\u7DE8\u8F2F\u5668\u9078\u55AE","File Menu":"\u6A94\u6848\u9078\u55AE","Left Ribbon":"\u5DE6\u5074\u908A\u6B04","Right Ribbon":"\u53F3\u5074\u908A\u6B04",Titlebar:"\u6A19\u984C\u5217",Statusbar:"\u72C0\u614B\u5217","Page Header":"\u9801\u9996","Support development":"\u8D0A\u52A9\u958B\u767C","No commands here!":"\u9019\u88E1\u4EC0\u9EBC\u90FD\u6C92\u6709\uFF01","Would you like to add one now?":"\u8981\u589E\u52A0\u65B0\u7684\u547D\u4EE4\u55CE\uFF1F","Hide Commands":"\u96B1\u85CF\u547D\u4EE4","Choose new":"\u9078\u64C7\u65B0\u7684","Hide Commands of other Plugins":"\u96B1\u85CF\u5176\u4ED6\u5916\u639B\u7684\u547D\u4EE4",Icon:"\u5716\u793A",Name:"\u540D\u7A31","Custom Name":"\u81EA\u8A02\u540D\u7A31","Add command to all devices":"\u65B0\u589E\u547D\u4EE4\u81F3\u6240\u6709\u88DD\u7F6E","Add command only to mobile devices":"\u50C5\u65B0\u589E\u547D\u4EE4\u81F3\u884C\u52D5\u88DD\u7F6E","Add command only to desktop devices":"\u50C5\u65B0\u589E\u547D\u4EE4\u81F3\u684C\u9762\u88DD\u7F6E","Add command only to this device":"\u50C5\u65B0\u589E\u547D\u4EE4\u81F3\u6B64\u88DD\u7F6E",Done:"\u5B8C\u6210","By Johnny\u2728 and phibr0":"\u7531 Johnny\u2728 \u548C phibr0 \u958B\u767C","Leave feedback":"\u7559\u4E0B\u610F\u898B\u56DE\u994B",Donate:"\u8D0A\u52A9","Share feedback, issues, and ideas with our feedback form.":"\u900F\u904E\u8868\u55AE\uFF0C\u5206\u4EAB\u610F\u898B\u3001\u554F\u984C\u6216\u60A8\u7684\u60F3\u6CD5\u3002","Consider donating to support development.":"\u5354\u52A9\u6211\u5011\u958B\u767C\uFF0C\u6B61\u8FCE\u8D0A\u52A9\uFF01",Save:"\u5132\u5B58","This Command is not available on this device.":"\u6B64\u547D\u4EE4\u5728\u6B64\u88DD\u7F6E\u4E0A\u7121\u6CD5\u4F7F\u7528\u3002",Show:"\u986F\u793A",Hide:"\u96B1\u85CF","Hide other Commands":"\u96B1\u85CF\u5176\u4ED6\u547D\u4EE4","Double click to enter custom value":"\u9023\u6309\u5169\u4E0B\u4EE5\u8F38\u5165\u81EA\u8A02\u503C","Restore default":"Restore default","Choose custom spacing for Command Buttons":"\u9078\u64C7\u547D\u4EE4\u6309\u9215\u7684\u81EA\u8A02\u9593\u8DDD","Change the spacing between commands. You can set different values on mobile and desktop.":"\u8B8A\u66F4\u547D\u4EE4\u4E4B\u9593\u7684\u9593\u8DDD\u3002\u60A8\u53EF\u4EE5\u70BA\u884C\u52D5\u548C\u684C\u9762\u88DD\u7F6E\u8A2D\u5B9A\u4E0D\u540C\u7684\u503C\u3002",Warning:"\u8B66\u544A","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"\u81EA Obsidian 0.16.0 \u8D77\uFF0C\u60A8\u9700\u8981\u660E\u78BA\u555F\u7528\u300C\u6AA2\u8996\u6A19\u984C (View Header)\u300D\u3002","Open Appearance Settings":"\u958B\u555F\u5916\u89C0\u8A2D\u5B9A",Explorer:"\u6A94\u6848\u7E3D\u7BA1"};var va={ar:oo,cs:no,da:ao,de:io,en:_t,"en-gb":ro,es:so,fr:mo,hi:co,id:lo,it:uo,ja:po,ko:fo,nl:ho,nn:vo,pl:go,pt:bo,"pt-br":Co,ro:_o,ru:yo,tr:wo,"zh-cn":ko,"zh-tw":xo},yt=va[wt.moment.locale()];function u(t){return yt||console.error("Error: dictionary locale not found",wt.moment.locale()),yt&&yt[t]||_t[t]}var ne=class extends Ue.FuzzySuggestModal{constructor(e){super(e.app),this.plugin=e,this.commands=Object.values(e.app.commands.commands),this.setPlaceholder(u("Choose a Command to add")),this.setInstructions([{command:"\u2191\u2193",purpose:u("to navigate")},{command:"\u21B5",purpose:u("to choose an icon")},{command:"esc",purpose:u("to cancel")}])}async awaitSelection(){return this.open(),new Promise((e,o)=>{this.onChooseItem=n=>e(n),this.onClose=()=>window.setTimeout(()=>o(new Error("No Command selected")),0)})}renderSuggestion(e,o){if(o.addClass("mod-complex"),o.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(e.item.name),e.item.icon){let a=o.createDiv({cls:"suggestion-aux"});(0,Ue.setIcon)(a.createSpan({cls:"suggestion-flair"}),e.item.icon)}}getItems(){return this.commands}getItemText(e){return e.name}onChooseItem(e,o){}};var qe=require("obsidian"),ae={confirmDeletion:!0,showAddCommand:!1,debug:!1,editorMenu:[],fileMenu:[],leftRibbon:[],rightRibbon:[],titleBar:[],statusBar:[],pageHeader:[],macros:[],explorer:[],textToolbarCommands:[],hide:{statusbar:[],leftRibbon:[]},spacing:8,advancedToolbar:{rowHeight:48,rowCount:1,spacing:0,buttonWidth:48,columnLayout:!1,mappedIcons:[],tooltips:!1,heightOffset:0}},Mo=(0,qe.requireApiVersion)("1.7.3")?(0,qe.getIconIds)():["activity","airplay","alarm-check","alarm-clock-off","alarm-clock","alarm-minus","alarm-plus","album","alert-circle","alert-octagon","alert-triangle","align-center-horizontal","align-center-vertical","align-center","align-end-horizontal","align-end-vertical","align-horizontal-distribute-center","align-horizontal-distribute-end","align-horizontal-distribute-start","align-horizontal-justify-center","align-horizontal-justify-end","align-horizontal-justify-start","align-horizontal-space-around","align-horizontal-space-between","align-justify","align-left","align-right","align-start-horizontal","align-start-vertical","align-vertical-distribute-center","align-vertical-distribute-end","align-vertical-distribute-start","align-vertical-justify-center","align-vertical-justify-end","align-vertical-justify-start","align-vertical-space-around","align-vertical-space-between","anchor","aperture","archive","arrow-big-down","arrow-big-left","arrow-big-right","arrow-big-up","arrow-down-circle","arrow-down-left","arrow-down-right","arrow-down","arrow-left-circle","arrow-left-right","arrow-left","arrow-right-circle","arrow-right","arrow-up-circle","arrow-up-left","arrow-up-right","arrow-up","asterisk","at-sign","award","axe","banknote","bar-chart-2","bar-chart","baseline","battery-charging","battery-full","battery-low","battery-medium","battery","beaker","bell-minus","bell-off","bell-plus","bell-ring","bell","bike","binary","bitcoin","bluetooth-connected","bluetooth-off","bluetooth-searching","bluetooth","bold","book-open","book","bookmark-minus","bookmark-plus","bookmark","bot","box-select","box","briefcase","brush","bug","building-2","building","bus","calculator","calendar","camera-off","camera","car","carrot","cast","check-circle-2","check-circle","check-square","check","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down-up","chevrons-down","chevrons-left","chevrons-right","chevrons-up-down","chevrons-up","chrome","circle-slashed","circle","clipboard-check","clipboard-copy","clipboard-list","clipboard-x","clipboard","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","lucide-clock","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon","cloud-off","cloud-rain-wind","cloud-rain","cloud-snow","cloud-sun","lucide-cloud","cloudy","clover","code-2","code","codepen","codesandbox","coffee","coins","columns","command","compass","contact","contrast","cookie","copy","copyleft","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","crop","lucide-cross","crosshair","crown","currency","database","delete","dice-1","dice-2","dice-3","dice-4","dice-5","dice-6","disc","divide-circle","divide-square","divide","dollar-sign","download-cloud","download","dribbble","droplet","droplets","drumstick","edit-2","edit-3","edit","egg","equal-not","equal","eraser","euro","expand","external-link","eye-off","eye","facebook","fast-forward","feather","figma","file-check-2","file-check","file-code","file-digit","file-input","file-minus-2","file-minus","file-output","file-plus-2","file-plus","file-search","file-text","file-x-2","file-x","file","files","film","filter","flag-off","flag-triangle-left","flag-triangle-right","flag","flame","flashlight-off","flashlight","flask-conical","flask-round","folder-minus","folder-open","folder-plus","lucide-folder","form-input","forward","frame","framer","frown","function-square","gamepad-2","gamepad","gauge","gavel","gem","ghost","gift","git-branch-plus","git-branch","git-commit","git-fork","git-merge","git-pull-request","github","gitlab","glasses","globe-2","globe","grab","graduation-cap","grid","grip-horizontal","grip-vertical","hammer","hand-metal","hand","hard-drive","hard-hat","hash","haze","headphones","heart","help-circle","hexagon","highlighter","history","home","image-minus","image-off","image-plus","image","import","inbox","indent","indian-rupee","infinity","lucide-info","inspect","instagram","italic","japanese-yen","key","keyboard","landmark","lucide-languages","laptop-2","laptop","lasso-select","lasso","layers","layout-dashboard","layout-grid","layout-list","layout-template","layout","library","life-buoy","lightbulb-off","lightbulb","link-2-off","link-2","lucide-link","linkedin","list-checks","list-minus","list-ordered","list-plus","list-x","list","loader-2","loader","locate-fixed","locate-off","locate","lock","log-in","log-out","mail","map-pin","map","maximize-2","maximize","megaphone","meh","menu","message-circle","message-square","mic-off","mic","minimize-2","minimize","minus-circle","minus-square","minus","monitor-off","monitor-speaker","monitor","moon","more-horizontal","more-vertical","mountain-snow","mountain","mouse-pointer-2","mouse-pointer-click","mouse-pointer","mouse","move-diagonal-2","move-diagonal","move-horizontal","move-vertical","move","music","navigation-2","navigation","network","octagon","option","outdent","package-check","package-minus","package-plus","package-search","package-x","package","palette","palmtree","paperclip","pause-circle","pause-octagon","pause","pen-tool","lucide-pencil","percent","person-standing","phone-call","phone-forwarded","phone-incoming","phone-missed","phone-off","phone-outgoing","phone","pie-chart","piggy-bank","lucide-pin","pipette","plane","play-circle","play","plug-zap","plus-circle","plus-square","plus","pocket","podcast","pointer","pound-sterling","power-off","power","printer","qr-code","quote","radio-receiver","radio","redo","refresh-ccw","refresh-cw","regex","repeat-1","repeat","reply-all","reply","rewind","rocket","rocking-chair","rotate-ccw","rotate-cw","rss","ruler","russian-ruble","save","scale","scan-line","scan","scissors","screen-share-off","screen-share","lucide-search","send","separator-horizontal","separator-vertical","server-crash","server-off","server","settings-2","settings","share-2","share","sheet","shield-alert","shield-check","shield-close","shield-off","shield","shirt","shopping-bag","shopping-cart","shovel","shrink","shuffle","sidebar-close","sidebar-open","sidebar","sigma","signal-high","signal-low","signal-medium","signal-zero","signal","skip-back","skip-forward","skull","slack","slash","sliders","smartphone-charging","smartphone","smile","snowflake","sort-asc","sort-desc","speaker","sprout","square","star-half","lucide-star","stop-circle","stretch-horizontal","stretch-vertical","strikethrough","subscript","sun","sunrise","sunset","superscript","swiss-franc","switch-camera","table","tablet","tag","target","tent","terminal-square","terminal","text-cursor-input","text-cursor","thermometer-snowflake","thermometer-sun","thermometer","thumbs-down","thumbs-up","ticket","timer-off","timer-reset","timer","toggle-left","toggle-right","tornado","trash-2","lucide-trash","trello","trending-down","trending-up","triangle","truck","tv-2","tv","twitch","twitter","type","umbrella","underline","undo","unlink-2","unlink","unlock","upload-cloud","upload","user-check","user-minus","user-plus","user-x","user","users","verified","vibrate","video-off","video","view","voicemail","volume-1","volume-2","volume-x","volume","wallet","wand","watch","waves","webcam","wifi-off","wifi","wind","wrap-text","wrench","x-circle","x-octagon","x-square","x","youtube","zap-off","zap","zoom-in","zoom-out","search-large"];var Ze=require("obsidian");var H=class extends Ze.FuzzySuggestModal{constructor(e){super(e.app),this.plugin=e,this.setPlaceholder(u("Choose a Icon for your new Command")),this.setInstructions([{command:"\u2191\u2193",purpose:u("to navigate")},{command:"\u21B5",purpose:u("to choose a custom icon")},{command:"esc",purpose:u("to cancel")}])}async awaitSelection(){return this.open(),new Promise((e,o)=>{this.onChooseItem=n=>e(n),this.onClose=()=>window.setTimeout(()=>o(new Error("No Icon selected")),0)})}renderSuggestion(e,o){o.addClass("mod-complex"),o.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(e.item.replace("lucide-","").replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,r=>r.toUpperCase()));let a=o.createDiv({cls:"suggestion-aux"});(0,Ze.setIcon)(a.createSpan({cls:"suggestion-flair"}),e.item)}getItems(){return Mo}getItemText(e){return e}onChooseItem(e,o){}};var at=require("obsidian");var Eo=require("obsidian");var U=class extends Eo.SuggestModal{constructor(o,n){super(n.app);this.defaultName=o;this.plugin=n;this.setPlaceholder(u("Use a custom name")),this.resultContainerEl.addClass("cmdr-hide-suggestions"),this.setInstructions([{command:"",purpose:u("Choose a custom Name for your new Command")},{command:"\u21B5",purpose:u("to save")},{command:"esc",purpose:u("to cancel")}])}onOpen(){var a;super.onOpen(),this.inputEl.value=this.defaultName;let o=createDiv({cls:"cmdr-name-input-wrapper"});(a=this.inputEl.parentNode)==null||a.insertBefore(o,this.inputEl),o.appendChild(this.inputEl),o.parentElement.addClass("cmdr-name-input-wrapper-parent");let n=createEl("button",{text:u("Save"),cls:"mod-cta"});n.onclick=r=>this.selectSuggestion(this.inputEl.value,r),o.appendChild(n)}async awaitSelection(){return this.open(),new Promise((o,n)=>{this.onChooseSuggestion=a=>o(a),this.onClose=()=>window.setTimeout(()=>n(new Error("No Name selected")),0)})}getSuggestions(o){return[o]}renderSuggestion(o,n){}onChooseSuggestion(o,n){}};var Ge,C,Ao,ga,we,So,Lo,Xe={},No=[],ba=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ie(t,e){for(var o in e)t[o]=e[o];return t}function Ro(t){var e=t.parentNode;e&&e.removeChild(t)}function i(t,e,o){var n,a,r,d={};for(r in e)r=="key"?n=e[r]:r=="ref"?a=e[r]:d[r]=e[r];if(arguments.length>2&&(d.children=arguments.length>3?Ge.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)d[r]===void 0&&(d[r]=t.defaultProps[r]);return Je(t,d,n,a,null)}function Je(t,e,o,n,a){var r={type:t,props:e,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a==null?++Ao:a};return a==null&&C.vnode!=null&&C.vnode(r),r}function I(t){return t.children}function G(t,e){this.props=t,this.context=e}function ke(t,e){if(e==null)return t.__?ke(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e0?Je(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=o,h.__b=o.__b+1,(g=k[s])===null||g&&h.key==g.key&&h.type===g.type)k[s]=void 0;else for(b=0;b=o.__.length&&o.__.push({__V:Qe}),o.__[t]}function P(t){return tt=1,$o(Go,t)}function $o(t,e,o){var n=ot(Me++,2);if(n.t=t,!n.__c&&(n.__=[o?o(e):Go(void 0,e),function(r){var d=n.__N?n.__N[0]:n.__[0],c=n.t(d,r);d!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=B,!B.u)){B.u=!0;var a=B.shouldComponentUpdate;B.shouldComponentUpdate=function(r,d,c){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(s){return s.__c});if(l.every(function(s){return!s.__N}))return!a||a.call(this,r,d,c);var f=!1;return l.forEach(function(s){if(s.__N){var b=s.__[0];s.__=s.__N,s.__N=void 0,b!==s.__[0]&&(f=!0)}}),!(!f&&n.__c.props===r)&&(!a||a.call(this,r,d,c))}}return n.__N||n.__}function z(t,e){var o=ot(Me++,3);!C.__s&&Pt(o.__H,e)&&(o.__=t,o.i=e,B.__H.__h.push(o))}function St(t,e){var o=ot(Me++,4);!C.__s&&Pt(o.__H,e)&&(o.__=t,o.i=e,B.__h.push(o))}function K(t){return tt=5,nt(function(){return{current:t}},[])}function nt(t,e){var o=ot(Me++,7);return Pt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function wa(){for(var t;t=Yo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(et),t.__H.__h.forEach(Et),t.__H.__h=[]}catch(e){t.__H.__h=[],C.__e(e,t.__v)}}C.__b=function(t){B=null,jo&&jo(t)},C.__r=function(t){Uo&&Uo(t),Me=0;var e=(B=t.__c).__H;e&&(Mt===B?(e.__h=[],B.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Qe,o.__N=o.i=void 0})):(e.__h.forEach(et),e.__h.forEach(Et),e.__h=[])),Mt=B},C.diffed=function(t){qo&&qo(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Yo.push(e)!==1&&Wo===C.requestAnimationFrame||((Wo=C.requestAnimationFrame)||ka)(wa)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Qe&&(o.__=o.__V),o.i=void 0,o.__V=Qe})),Mt=B=null},C.__c=function(t,e){e.some(function(o){try{o.__h.forEach(et),o.__h=o.__h.filter(function(n){return!n.__||Et(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],C.__e(n,o.__v)}}),Zo&&Zo(t,e)},C.unmount=function(t){Jo&&Jo(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{et(n)}catch(a){e=a}}),o.__H=void 0,e&&C.__e(e,o.__v))};var Xo=typeof requestAnimationFrame=="function";function ka(t){var e,o=function(){clearTimeout(n),Xo&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(o,100);Xo&&(e=requestAnimationFrame(o))}function et(t){var e=B,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),B=e}function Et(t){var e=B;t.__c=t.__(),B=e}function Pt(t,e){return!t||t.length!==e.length||e.some(function(o,n){return o!==t[n]})}function Go(t,e){return typeof e=="function"?e(t):e}var It={};(function t(e,o,n,a){var r=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL);function d(){}function c(p){var m=o.exports.Promise,S=m!==void 0?m:e.Promise;return typeof S=="function"?new S(p):(p(d,d),null)}var l=(function(){var p=Math.floor(16.666666666666668),m,S,x={},L=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(m=function(T){var M=Math.random();return x[M]=requestAnimationFrame(function E(D){L===D||L+p-1{(0,at.setIcon)(r.current,t)},[t,e]),i("div",We({ref:r},o))}function J(t,e){let{isMobile:o,appId:n}=e.app;return t==="any"||t===n||t==="mobile"&&o||t==="desktop"&&!o}function Ee(t){var o,n;let e="";for(let a of(o=t.hide.leftRibbon)!=null?o:[])e+=`div.side-dock-ribbon-action[aria-label="${a}"] {display: none !important; content-visibility: hidden;}`;for(let a of t.hide.statusbar)e+=`div.status-bar-item.plugin-${a} {display: none !important; content-visibility: hidden;}`;(n=document.head.querySelector("style#cmdr"))==null||n.remove(),e&&document.head.appendChild(createEl("style",{attr:{id:"cmdr"},text:e,type:"text/css"}))}async function Tt({target:t}){let e=createEl("canvas",{cls:"cmdr-confetti-canvas"});activeDocument.body.appendChild(e);let o=Ko.create(e,{resize:!0,useWorker:!0}),n=t.getBoundingClientRect();await o({particleCount:at.Platform.isDesktop?160:80,startVelocity:55,spread:75,angle:90,drift:-1,ticks:250,origin:{x:(n.x+n.width/2)/activeWindow.innerWidth,y:(n.y+n.height/2)/activeWindow.innerHeight}}),e.remove()}function it(t){activeDocument.body.style.setProperty("--cmdr-spacing",`${t}px`)}function Se(t){let e=Object.keys(t.app.commands.commands).filter(n=>n.startsWith("cmdr:macro-"));for(let n of e)t.app.commands.removeCommand(n);let o=t.settings.macros;for(let[n,a]of o.entries())t.addCommand({id:`macro-${n}`,name:a.name,icon:a.icon,callback:()=>{t.executeMacro(Number(n))}})}function te(t){var n,a;let{classList:e,style:o}=document.body;o.setProperty("--at-button-height",((n=t.rowHeight)!=null?n:48)+"px"),o.setProperty("--at-button-width",((a=t.buttonWidth)!=null?a:48)+"px"),o.setProperty("--at-row-count",t.rowCount.toString()),o.setProperty("--at-spacing",t.spacing+"px"),o.setProperty("--at-offset",t.heightOffset+"px"),e.toggle("AT-multirow",t.rowCount>1),e.toggle("AT-row",!t.columnLayout),e.toggle("AT-column",t.columnLayout),e.toggle("AT-no-toolbar",t.rowCount===0)}function Qo(){let{classList:t,style:e}=document.body;e.removeProperty("--at-button-height"),e.removeProperty("--at-button-width"),e.removeProperty("--at-row-count"),e.removeProperty("--at-spacing"),e.removeProperty("--at-offset"),t.remove("AT-multirow"),t.remove("AT-row"),t.remove("AT-column"),t.remove("AT-no-toolbar"),t.remove("advanced-toolbar")}function rt(t,e){t.mappedIcons.forEach(o=>{let n=e.app.commands.commands[o.commandID];n?n.icon=o.iconID:t.mappedIcons=t.mappedIcons.filter(a=>a!==o)})}var An=require("obsidian");var Pe=require("obsidian");var tn=require("obsidian");function en({modal:t}){return i(I,null,i("p",null,u("Are you sure you want to delete the Command?")),i("div",{className:"modal-button-container"},i("button",{className:"mod-warning",onClick:async()=>{t.plugin.settings.confirmDeletion=!1,await t.plugin.saveSettings(),t.remove=!0,t.close()}},u("Remove and don't ask again")),i("button",{className:"mod-warning",onClick:()=>{t.remove=!0,t.close()}},u("Remove")),i("button",{onClick:()=>{t.remove=!1,t.close()}},u("Cancel"))))}var O=class extends tn.Modal{constructor(o){super(o.app);this.plugin=o}async onOpen(){this.titleEl.innerText=u("Remove Command"),this.containerEl.addClass("cmdr-confirm-delete-modal"),F(i(en,{modal:this}),this.contentEl)}async didChooseRemove(){return this.open(),new Promise(o=>{this.onClose=()=>{var n;return o((n=this.remove)!=null?n:!1)}})}onClose(){F(null,this.contentEl)}};var V=class{constructor(e,o){this.plugin=e,this.pairs=o}};var be=class extends V{constructor(o,n){super(o,n);this.actions=new Map;this.init(),this.plugin.register(()=>this.actions.forEach((a,r)=>this.removeAction(r)))}getFileExplorers(){return this.plugin.app.workspace.getLeavesOfType("file-explorer")}init(){this.plugin.app.workspace.onLayoutReady(()=>{for(let o of this.pairs)J(o.mode,this.plugin)&&(this.plugin.app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(a=>{this.addAction(o,a)})}),this.plugin.registerEvent(this.plugin.app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(a=>{this.addAction(o,a)})})))})}reorder(){this.actions.forEach((o,n)=>this.removeAction(n,!0)),this.init()}async addCommand(o){this.pairs.push(o),this.plugin.app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(a=>{this.addAction(o,a)})}),this.plugin.registerEvent(this.plugin.app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(a=>{this.addAction(o,a)})})),await this.plugin.saveSettings()}async removeCommand(o){this.pairs.remove(o),this.removeAction(o),await this.plugin.saveSettings()}buttonExists(o,n){return[...o.view.containerEl.querySelectorAll("div.nav-buttons-container > .cmdr.clickable-icon")].some(a=>a.getAttribute("data-cmdr")===n.icon+n.name)}addAction(o,n){var l,f,s,b,g;if(this.buttonExists(n,o))return;let a=createDiv({cls:"cmdr clickable-icon",attr:{"aria-label-position":"top","aria-label":o.name,"data-cmdr":o.icon+o.name}});this.actions.set(o,a),a.style.color=o.color==="#000000"||o.color===void 0?"inherit":o.color;let r=!1,d=()=>{a.empty(),(0,Pe.setIcon)(a,o.icon),a.onclick=()=>this.plugin.app.commands.executeCommandById(o.id)},c=()=>{a.empty(),(0,Pe.setIcon)(a,"trash"),a.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new O(this.plugin).didChooseRemove())&&await this.removeCommand(o)}};a.addEventListener("mouseleave",()=>{d(),r=!1}),a.addEventListener("mousemove",h=>{h.preventDefault(),h.stopImmediatePropagation(),h.shiftKey&&(r||c(),r=!0)}),a.addEventListener("contextmenu",h=>{h.stopImmediatePropagation(),new Pe.Menu().addItem(v=>{v.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let _=await q(this.plugin);await this.addCommand(_)})}).addSeparator().addItem(v=>{v.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let _=await new H(this.plugin).awaitSelection();_&&_!==o.icon&&(o.icon=_,await this.plugin.saveSettings(),this.reorder())})}).addItem(v=>{v.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let _=await new U(o.name,this.plugin).awaitSelection();_&&_!==o.name&&(o.name=_,await this.plugin.saveSettings(),this.reorder())})}).addItem(v=>{v.dom.addClass("is-warning"),v.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new O(this.plugin).didChooseRemove())&&await this.removeCommand(o)})}).showAtMouseEvent(h)}),d(),(g=(b=(s=(f=(l=n.view)==null?void 0:l.containerEl)==null?void 0:f.querySelector)==null?void 0:s.call(f,"div.nav-buttons-container"))==null?void 0:b.appendChild)==null||g.call(b,a)}removeAction(o,n=!1){let a=this.actions.get(o);if(a){if(n){a.remove(),this.actions.delete(o);return}a.addClass("cmdr-ribbon-removing"),a.addEventListener("transitionend",()=>{a.remove(),this.actions.delete(o)})}}};function on(t){var o,n,a;return(a=(n=(o=t.app.plugins)==null?void 0:o.plugins)==null?void 0:n["text-formatting-toolbar"])==null?void 0:a.api}var re=class extends V{constructor(e,o){super(e,o)}sync(){let e=on(this.plugin);e&&e.setCommands(this.pairs.map(o=>({id:o.id,icon:o.icon,name:o.name})))}static isAvailable(e){return on(e)!==void 0}async addCommand(e){this.pairs.push(e),await this.plugin.saveSettings(),this.sync()}async removeCommand(e){this.pairs.remove(e),await this.plugin.saveSettings(),this.sync()}reorder(){this.sync()}};var me=require("obsidian");var st=class extends V{async addCommand(e){this.pairs.push(e),await this.plugin.saveSettings()}async removeCommand(e){this.pairs.remove(e),await this.plugin.saveSettings()}reorder(){}addRemovableCommand(e,o,n,a,r){return d=>{var h;d.dom.addClass("cmdr","cmdr-menu-item"),d.dom.style.color=o.color==="#000000"||o.color===void 0?"inherit":o.color,d.setSection("cmdr");let c=createDiv({cls:"cmdr-menu-more-options"}),l=null;c.addEventListener("click",v=>{v.preventDefault(),v.stopImmediatePropagation(),l?(l.hide(),l=null):l=new me.Menu().addItem(_=>{_.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let y=await new H(n).awaitSelection();y&&y!==o.icon&&(o.icon=y,await n.saveSettings())})}).addItem(_=>{_.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let y=await new U(o.name,n).awaitSelection();y&&y!==o.name&&(o.name=y,await n.saveSettings())})}).addItem(_=>{_.dom.addClass("is-warning"),_.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!n.settings.confirmDeletion||await new O(n).didChooseRemove())&&await g()})}).showAtMouseEvent(v)}),(0,me.setIcon)(c,"more-vertical"),d.dom.append(c),d.setTitle((h=o.name)!=null?h:e.name).setIcon(o.icon).onClick(()=>n.app.commands.executeCommandById(o.id));let f=!1,s=()=>{c.removeClass("is-visible")},b=()=>{c.addClass("is-visible")},g=async()=>{d.dom.addClass("cmdr-removing"),a.registerDomEvent(d.dom,"transitionend",()=>{d.dom.remove()}),r.remove(o),await n.saveSettings()};a.registerDomEvent(d.dom,"mousemove",v=>{v.preventDefault(),v.stopImmediatePropagation(),f||b(),f=!0}),a.registerDomEvent(d.dom,"mouseleave",()=>{s(),f=!1}),s()}}addCommandAddButton(e,o,n){e.settings.showAddCommand&&o.addItem(a=>{a.setTitle(u("Add command")).setIcon("plus-circle").setSection("cmdr").onClick(async()=>{try{let r=await q(e);n.push(r),await e.saveSettings()}catch(r){}})})}},Ie=class extends st{applyEditorMenuCommands(e){return async(o,n,a)=>{this.addCommandAddButton(e,o,e.settings.editorMenu);for(let r of e.settings.editorMenu){let d=Q(r.id,e);d&&J(r.mode,e)&&(d.checkCallback&&!d.checkCallback(!0)||d.editorCheckCallback&&!d.editorCheckCallback(!0,n,a)||o.addItem(this.addRemovableCommand(d,r,e,o,e.settings.editorMenu)))}}}},Te=class extends st{applyFileMenuCommands(e){return async(o,n,a,r)=>{this.addCommandAddButton(e,o,e.settings.fileMenu);for(let d of e.settings.fileMenu){let c=Q(d.id,e);if(c&&!(c.checkCallback&&!c.checkCallback(!0))){if(c.editorCallback){if(!((r==null?void 0:r.view)instanceof me.MarkdownView))continue}else if(c.editorCheckCallback)if((r==null?void 0:r.view)instanceof me.MarkdownView){if(!c.editorCheckCallback(!0,r.view.editor,r.view))continue}else continue;o.addItem(this.addRemovableCommand(c,d,e,o,e.settings.fileMenu))}}}}};var ce=require("obsidian");var Ce=class extends V{constructor(o,n){super(o,n);this.buttons=new WeakMap;this.init()}addPageHeaderButton(o,n){let{id:a,icon:r,name:d}=n,{view:c}=o;if(!(c instanceof ce.ItemView))return;let l=this.buttonsFor(o,!0);if(!l||l.has(a))return;let f=c.addAction(r,d,()=>{this.plugin.app.workspace.setActiveLeaf(o,{focus:!0}),this.plugin.app.commands.executeCommandById(a)});l.set(a,f),f.addClasses(["cmdr-page-header",a]),f.style.color=n.color==="#000000"||n.color===void 0?"inherit":n.color,f.addEventListener("contextmenu",s=>{s.stopImmediatePropagation(),new ce.Menu().addItem(b=>{b.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let g=await q(this.plugin);await this.addCommand(g)})}).addSeparator().addItem(b=>{b.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let g=await new H(this.plugin).awaitSelection();g&&g!==n.icon&&(n.icon=g,await this.plugin.saveSettings(),await this.reorder())})}).addItem(b=>{b.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let g=await new U(n.name,this.plugin).awaitSelection();g&&g!==n.name&&(n.name=g,await this.plugin.saveSettings(),await this.reorder())})}).addItem(b=>{b.dom.addClass("is-warning"),b.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new O(this.plugin).didChooseRemove())&&await this.removeCommand(n)})}).showAtMouseEvent(s)})}init(){this.plugin.register(()=>{this.removeButtonsFromAllLeaves()}),this.plugin.registerEvent(this.plugin.app.workspace.on("layout-change",()=>{this.addButtonsToAllLeaves()})),this.plugin.app.workspace.onLayoutReady(()=>window.setTimeout(()=>this.addButtonsToAllLeaves(),100))}addAdderButton(o){var d;let{view:n}=o,a="cmdr-adder";if(!(n instanceof ce.ItemView)||(d=this.buttons.get(n))!=null&&d.has(a))return;let r=n.addAction("plus",u("Add new"),async()=>{await this.addCommand(await q(this.plugin))});r.addClasses(["cmdr",a]),this.buttons.has(n)||this.buttons.set(n,new Map),this.buttons.get(n).set(a,r)}addButtonsToAllLeaves(o=!1){window.requestAnimationFrame(()=>this.plugin.app.workspace.iterateAllLeaves(n=>this.addButtonsToLeaf(n,o)))}removeButtonsFromAllLeaves(){window.requestAnimationFrame(()=>this.plugin.app.workspace.iterateAllLeaves(o=>this.removeButtonsFromLeaf(o)))}buttonsFor(o,n=!1){if(o.view instanceof ce.ItemView)return n&&!this.buttons.has(o.view)&&this.buttons.set(o.view,new Map),this.buttons.get(o.view)}addButtonsToLeaf(o,n=!1){var a;if(o.view instanceof ce.ItemView){if(n)this.removeButtonsFromLeaf(o);else if((a=this.buttonsFor(o))!=null&&a.size)return;for(let r=this.pairs.length-1;r>=0;r--){let d=this.pairs[r];J(d.mode,this.plugin)&&this.addPageHeaderButton(o,d)}this.plugin.settings.showAddCommand&&this.addAdderButton(o)}}removeButtonsFromLeaf(o){let n=this.buttonsFor(o);if(n){for(let a of n.values())a.detach();n==null||n.clear()}}reorder(){this.addButtonsToAllLeaves(!0)}async addCommand(o){this.pairs.push(o),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}async removeCommand(o){this.pairs.remove(o),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}};var le=require("obsidian");var _e=class extends V{constructor(o,n){super(o,n);this.actions=new Map;this.addBtn=createDiv({cls:"cmdr status-bar-item cmdr-adder",attr:{"data-tooltip-position":"top","aria-label":u("Add new")}});this.init(),this.plugin.register(()=>this.actions.forEach((a,r)=>this.removeAction(r)))}init(){this.plugin.app.workspace.onLayoutReady(()=>{this.container=this.plugin.app.statusBar.containerEl;for(let o of this.pairs)Q(o.id,this.plugin)&&J(o.mode,this.plugin)&&this.addAction(o);this.plugin.registerDomEvent(this.container,"contextmenu",o=>{o.target===this.container&&new le.Menu().addItem(n=>{n.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let a=await q(this.plugin);await this.addCommand(a)})}).showAtMouseEvent(o)}),this.plugin.register(()=>this.addBtn.remove()),(0,le.setIcon)(this.addBtn,"plus"),this.addBtn.onclick=async()=>{let o=await q(this.plugin);await this.addCommand(o),this.reorder()},this.plugin.settings.showAddCommand&&this.container.prepend(this.addBtn)})}reorder(){this.addBtn.remove(),this.actions.forEach((o,n)=>this.removeAction(n,!0)),this.init()}async addCommand(o){this.pairs.push(o),this.addAction(o),await this.plugin.saveSettings()}async removeCommand(o){this.pairs.remove(o),this.removeAction(o),await this.plugin.saveSettings()}addAction(o){let n=createDiv({cls:"cmdr status-bar-item clickable-icon",attr:{"data-tooltip-position":"top","aria-label":o.name}});this.actions.set(o,n),n.style.color=o.color==="#000000"||o.color===void 0?"inherit":o.color;let a=!1,r=()=>{n.empty(),(0,le.setIcon)(n,o.icon),n.onclick=()=>this.plugin.app.commands.executeCommandById(o.id)},d=()=>{n.empty(),(0,le.setIcon)(n,"trash"),n.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new O(this.plugin).didChooseRemove())&&await this.removeCommand(o)}};n.addEventListener("mouseleave",()=>{r(),a=!1}),n.addEventListener("mousemove",c=>{c.preventDefault(),c.stopImmediatePropagation(),c.shiftKey&&(a||d(),a=!0)}),n.addEventListener("contextmenu",c=>{c.stopImmediatePropagation(),new le.Menu().addItem(l=>{l.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let f=await q(this.plugin);await this.addCommand(f)})}).addSeparator().addItem(l=>{l.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let f=await new H(this.plugin).awaitSelection();f&&f!==o.icon&&(o.icon=f,await this.plugin.saveSettings(),this.reorder())})}).addItem(l=>{l.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let f=await new U(o.name,this.plugin).awaitSelection();f&&f!==o.name&&(o.name=f,await this.plugin.saveSettings(),this.reorder())})}).addItem(l=>{l.dom.addClass("is-warning"),l.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new O(this.plugin).didChooseRemove())&&await this.removeCommand(o)})}).showAtMouseEvent(c)}),r(),this.container.prepend(n)}removeAction(o,n=!1){let a=this.actions.get(o);if(a){if(n){a.remove(),this.actions.delete(o);return}a.addClass("cmdr-ribbon-removing"),a.addEventListener("transitionend",()=>{a.remove(),this.actions.delete(o)})}}};var nn=require("obsidian");var ut=require("obsidian");var Z=require("obsidian");var Rt=require("obsidian");var an=["https://github.com/jsmorabito","https://github.com/phibr0","https://www.youtube.com/watch?v=dQw4w9WgXcQ"];function At(){let[t,e]=P(0);return i("div",{className:"cmdr-credits"},i("span",{onClick:()=>{e(o=>o+1),location.replace(an[t%an.length])}},u("By Johnny\u2728 and phibr0")))}function Ma(t,e){for(var o in e)t[o]=e[o];return t}function Nt(t,e){for(var o in t)if(o!=="__source"&&!(o in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function rn(t){this.props=t}function fn(t,e){function o(a){var r=this.props.ref,d=r==a.ref;return!d&&r&&(r.call?r(null):r.current=null),e?!e(this.props,a)||!d:Nt(this.props,a)}function n(a){return this.shouldComponentUpdate=o,i(t,a)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(rn.prototype=new G).isPureReactComponent=!0,rn.prototype.shouldComponentUpdate=function(t,e){return Nt(this.props,t)||Nt(this.state,e)};var sn=C.__b;C.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),sn&&sn(t)};var As=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Ea=C.__e;C.__e=function(t,e,o,n){if(t.then){for(var a,r=e;r=r.__;)if((a=r.__c)&&a.__c)return e.__e==null&&(e.__e=o.__e,e.__k=o.__k),a.__c(t,e)}Ea(t,e,o,n)};var dn=C.unmount;function hn(t,e,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ma({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return hn(n,e,o)})),t}function vn(t,e,o){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return vn(n,e,o)}),t.__c&&t.__c.__P===e&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Lt(){this.__u=0,this.t=null,this.__b=null}function gn(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function dt(){this.u=null,this.o=null}C.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),dn&&dn(t)},(Lt.prototype=new G).__c=function(t,e){var o=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var a=gn(n.__v),r=!1,d=function(){r||(r=!0,o.__R=null,a?a(c):c())};o.__R=d;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=vn(f,f.__c.__P,f.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.t.pop();)s.forceUpdate()}},l=e.__h===!0;n.__u++||l||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(d,d)},Lt.prototype.componentWillUnmount=function(){this.t=[]},Lt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=hn(this.__b,o,n.__O=n.__P)}this.__b=null}var a=e.__a&&i(I,null,t.fallback);return a&&(a.__h=null),[i(I,null,e.__a?null:t.children),a]};var mn=function(t,e,o){if(++o[1]===o[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{Tt(n),window.setTimeout(()=>location.replace("https://forms.gle/hPjn61G9bqqFb3256"),Math.random()*800+500)}},i(w,{icon:"message-square",size:20}),u("Leave feedback")),o=i("button",{className:"mod-cta",onClick:n=>{Tt(n),window.setTimeout(()=>location.replace("https://buymeacoffee.com/johnny1093"),Math.random()*800+500)}},i(w,{icon:"coffee",size:20}),u("Support development"));return i("div",{className:"cmdr-about"},Rt.Platform.isMobile&&[i("hr",null),e,o],Rt.Platform.isDesktop&&[i("div",{className:"setting-item mod-toggle",style:{width:"100%",borderTop:"1px solid var(--background-modifier-border)",paddingTop:"18px"}},i("div",{className:"setting-item-info"},i("div",{className:"setting-item-name"},u("Leave feedback")),i("div",{className:"setting-item-description"},u("Share feedback, issues, and ideas with our feedback form."))),i("div",{className:"setting-item-control"},e)),i("div",{className:"setting-item mod-toggle",style:{width:"100%"}},i("div",{className:"setting-item-info"},i("div",{className:"setting-item-name"},u("Donate")),i("div",{className:"setting-item-description"},u("Consider donating to support development."))),i("div",{className:"setting-item-control"},o)),i("hr",null)],i(ye,null),i("b",null,t.name),i(At,null),i("a",{className:"cmdr-version",href:"https://github.com/phibr0/obsidian-commander/releases/tag/"+t.version},t.version))}var W=require("obsidian");function Ht(t,e){let o,n;new W.Setting(t).setName(e.name).setDesc(e.desc).addSlider(a=>{n=a,a.setLimits(e.min,e.max,e.step).setValue(e.value).setDynamicTooltip().onChange(async r=>{await e.onChange(r),o.setDisabled(r===e.defaultValue)})}).addExtraButton(a=>{o=a,a.setIcon("reset").setTooltip(u("Restore default")).setDisabled(e.value===e.defaultValue).onClick(async()=>{n.setValue(e.defaultValue),await e.onChange(e.defaultValue),o.setDisabled(!0)})})}function Bt(t,e){if(t.empty(),Ht(t,{name:"Toolbar row count",desc:"Set how many rows the mobile toolbar should have. Set this to 0 to remove the toolbar.",min:0,max:5,step:1,value:e.settings.advancedToolbar.rowCount,defaultValue:ae.advancedToolbar.rowCount,onChange:async n=>{e.settings.advancedToolbar.rowCount=n,await e.saveSettings(),te(e.settings.advancedToolbar)}}),new W.Setting(t).setName("Column layout").setDesc("Use a column based layout instead of the default row. This makes it easier to arrange the commands.").addToggle(n=>n.setValue(e.settings.advancedToolbar.columnLayout).onChange(async a=>{e.settings.advancedToolbar.columnLayout=a,await e.saveSettings(),te(e.settings.advancedToolbar)})),Ht(t,{name:"Bottom offset",desc:"Offset the toolbar from the bottom of the screen. This is useful if the toolbar is partially obscured by other UI elements.",min:0,max:32,step:1,value:e.settings.advancedToolbar.heightOffset,defaultValue:ae.advancedToolbar.heightOffset,onChange:async n=>{e.settings.advancedToolbar.heightOffset=n,await e.saveSettings(),te(e.settings.advancedToolbar)}}),W.Platform.isMobile){let n=createFragment();n.appendChild(createEl("h3",{text:"Custom icons"})),t.appendChild(n),e.getCommandsWithoutIcons().forEach(a=>{new W.Setting(t).setName(a.name).setDesc(`ID: ${a.id}`).addButton(r=>{var c;let d=r.buttonEl.createDiv({cls:"AT-settings-icon"});if(a.icon)(0,W.setIcon)(d,a.icon);else{let l=(c=e.settings.advancedToolbar.mappedIcons.find(f=>f.commandID===a.id))==null?void 0:c.iconID;l?(0,W.setIcon)(d,l):r.setButtonText("No icon")}r.onClick(async()=>{let l=await new H(e).awaitSelection(),f=e.settings.advancedToolbar.mappedIcons.find(s=>s.commandID===a.id);f?f.iconID=l:e.settings.advancedToolbar.mappedIcons.push({commandID:a.id,iconID:l}),await e.saveSettings(),rt(e.settings.advancedToolbar,e),Bt(t,e)})}).addExtraButton(r=>{r.setIcon("reset").setTooltip("Reset to default - requires a restart").onClick(async()=>{e.settings.advancedToolbar.mappedIcons=e.settings.advancedToolbar.mappedIcons.filter(d=>d.commandID!==a.id),delete a.icon,delete e.app.commands.commands[a.id].icon,await e.saveSettings(),Bt(t,e),new W.Notice("If the default icon doesn't appear, you might have to restart Obsidian.")})})})}let o=t.appendChild(createDiv({cls:"cmdr-sep-con",attr:{style:"margin-top: 64px"}}));o.appendChild(createDiv({text:"Advanced settings",attr:{style:"margin-bottom: 8px; font-weight: bold"}})),new W.Setting(o).setName("Button height").setDesc("Change the height of each button inside the mobile toolbar (in px).").addText(n=>{var a,r;return n.setValue((r=(a=e.settings.advancedToolbar.rowHeight)==null?void 0:a.toString())!=null?r:"48").setPlaceholder("48").onChange(async d=>{let c=Number(d),l=isNaN(c);n.inputEl.toggleClass("is-invalid",l),l||(e.settings.advancedToolbar.rowHeight=c,await e.saveSettings(),te(e.settings.advancedToolbar))})}),new W.Setting(o).setName("Button width").setDesc("Change the width of each button inside the mobile toolbar (in px).").addText(n=>{var a,r;return n.setValue((r=(a=e.settings.advancedToolbar.buttonWidth)==null?void 0:a.toString())!=null?r:"48").setPlaceholder("48").onChange(async d=>{let c=Number(d),l=isNaN(c);n.inputEl.toggleClass("is-invalid",l),l||(e.settings.advancedToolbar.buttonWidth=c,await e.saveSettings(),te(e.settings.advancedToolbar))})}),Ht(o,{name:"Toolbar extra spacing",desc:"Some themes need extra spacing in the toolbar. If your toolbar doesn't wrap properly, try increasing this value.",min:0,max:64,step:1,value:e.settings.advancedToolbar.spacing,defaultValue:ae.advancedToolbar.spacing,onChange:async n=>{e.settings.advancedToolbar.spacing=n,await e.saveSettings(),te(e.settings.advancedToolbar)}})}function zt({plugin:t}){let e=K(null);return z(()=>(e.current&&Bt(e.current,t),()=>{e.current&&e.current.empty()}),[]),i(I,null,i("div",{className:"cmdr-sep-con callout","data-callout":"info"},i("span",{className:"cmdr-callout-warning"},i(w,{icon:"alert-circle"})," ","Info"),i("p",{className:"cmdr-warning-description"},"The Toolbar is only available in Obsidian Mobile. ",W.Platform.isMobile&&i(I,null,"To configure which Commands show up in the Toolbar, open the Mobile Settings.")),W.Platform.isMobile&&i("button",{onClick:()=>{t.app.setting.openTabById("interface")},className:"mod-cta"},"Open mobile settings")),i("div",{ref:e,className:"cmdr-advanced-toolbar-settings",style:{paddingBottom:"128px"}}))}var pe=require("obsidian");var kn=require("obsidian");var wn=require("obsidian");var mt=({initialColor:t,onChange:e})=>{let o=K(null);return z(()=>(o.current&&new wn.ColorComponent(o.current).setValue(t).onChange(e),()=>{var n,a;(a=(n=o.current)==null?void 0:n.empty)==null||a.call(n)}),[e,t]),i("div",{ref:o,className:"cmdr-flex cmdr-items-center"})};function Ot({plugin:t,modal:e}){var n;let[,o]=P(0);return z(()=>{let a=()=>{o(r=>r+1)};return addEventListener("cmdr-icon-changed",a),()=>removeEventListener("cmdr-icon-changed",a)},[]),i("div",{className:"cmdr-mobile-modify-grid"},i("div",{className:"cmdr-mobile-modify-option",onClick:e.handleNewIcon},i("span",null,u("Icon")),i("span",{className:"cmdr-flex cmdr-gap-1"},i(w,{icon:e.pair.icon,size:20,className:"clickable-icon",style:{marginRight:"0px"}}),i(mt,{initialColor:(n=e.pair.color)!=null?n:"#000",onChange:e.handleColorChange}))),i("div",{className:"cmdr-mobile-modify-option"},i("span",null,u("Name")),i("input",{onBlur:({currentTarget:a})=>e.handleRename(a.value),type:"text",placeholder:u("Custom Name"),value:e.pair.name})),i("div",{className:"cmdr-mobile-modify-option"},i("select",{className:"dropdown",value:e.pair.mode,onChange:({currentTarget:a})=>e.handleModeChange(a.value)},i("option",{value:"any"},u("Add command to all devices")),i("option",{value:"mobile"},u("Add command only to mobile devices")),i("option",{value:"desktop"},u("Add command only to desktop devices")),i("option",{value:t.app.appId},u("Add command only to this device")))),i("div",{className:"modal-button-container"},i("button",{className:"mod-cta",onClick:()=>e.close()},u("Done"))))}var ue=class extends kn.Modal{constructor(o,n,a,r,d,c){super(o.app);this.plugin=o;this.pair=n;this.handleRename=a;this.handleNewIcon=r;this.handleModeChange=d;this.handleColorChange=c}async onOpen(){this.titleEl.innerText=this.pair.name,F(i(Ot,{plugin:this.plugin,modal:this}),this.contentEl)}onClose(){F(null,this.contentEl)}};function Ae({value:t,handleChange:e,ariaLabel:o}){let[n,a]=P(!1),r=K(null),[d,c]=P(0);return z(()=>{var l,f;(l=r==null?void 0:r.current)==null||l.select(),(f=r==null?void 0:r.current)==null||f.focus()}),i("div",{class:"cmdr-editable"},n?i("input",{type:"text",value:t,style:{width:d+25+"px"},onKeyDown:l=>{l.key==="Enter"&&l.target.value.length>0&&(a(!1),e(l))},onBlur:()=>a(!1),ref:r}):i("span",{onDblClick:({target:l})=>{var f;c((f=l==null?void 0:l.offsetWidth)!=null?f:0),a(!0)},"aria-label":o},t))}function Ft({plugin:t,pair:e,handleRemove:o,handleDown:n,handleUp:a,handleNewIcon:r,handleRename:d,handleModeChange:c,handleColorChange:l,sortable:f=!0}){var k;let s=Q(e.id,t);if(!s)return i(I,null,pe.Platform.isDesktop&&i("div",{className:"setting-item mod-toggle"},i(w,{icon:"alert-triangle",size:20,className:"cmdr-icon clickable-icon mod-warning"}),i("div",{className:"setting-item-info"},i("div",{className:"setting-item-name"},e.name),i("div",{className:"setting-item-description"},u("This Command is not available on this device."))),i("div",{className:"setting-item-control"},i("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":u("Delete")},i(w,{icon:"lucide-trash"})))),pe.Platform.isMobile&&i("div",{className:"mobile-option-setting-item",onClick:()=>{new pe.Notice(u("This Command is not available on this device."))}},i("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},i(w,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),i("span",{className:"mobile-option-setting-item-option-icon mod-warning"},i(w,{icon:"alert-triangle",size:22})),i("span",{className:"mobile-option-setting-item-name"},e.name)));let b=s.id.split(":").first(),g=t.app.plugins.manifests[b],h=!g,v=Object.prototype.hasOwnProperty.call(s,"checkCallback")||Object.prototype.hasOwnProperty.call(s,"editorCheckCallback"),_=Fa(e.mode),y=e.mode.match(/desktop|mobile|any/)?e.mode[0].toUpperCase()+e.mode.substring(1):u("This device");return i(I,null,pe.Platform.isDesktop&&i("div",{className:"setting-item mod-toggle"},i(w,{icon:e.icon,size:20,"aria-label":u("Choose new"),onClick:r,className:"cmdr-icon clickable-icon"}),i("div",{className:"setting-item-info"},i("div",{className:"setting-item-name"},i(Ae,{ariaLabel:u("Double click to rename"),handleChange:({target:A})=>{var Y;d((Y=A==null?void 0:A.value)!=null?Y:"")},value:e.name}),e.name!==s.name&&i("span",{style:"margin-left: .8ex"},"(",s.name,")")),i("div",{className:"setting-item-description"},u("Added by {{plugin_name}}.".replace("{{plugin_name}}",h?"Obsidian":g.name))," ",v?u("Warning: This is a checked Command, meaning it might not run under every circumstance."):"")),i("div",{className:"setting-item-control"},i(mt,{initialColor:(k=e.color)!=null?k:"#000",onChange:l}),f&&i(I,null,i(w,{icon:"arrow-down",className:"setting-editor-extra-setting-button clickable-icon",onClick:n,"aria-label":u("Move down")}),i(w,{icon:"arrow-up",className:"setting-editor-extra-setting-button clickable-icon",onClick:a,"aria-label":u("Move up")})),i(w,{icon:_,className:"setting-editor-extra-setting-button clickable-icon",onClick:()=>c(),"aria-label":u("Change Mode (Currently: {{current_mode}})").replace("{{current_mode}}",y)}),i("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":u("Delete")},i(w,{icon:"lucide-trash"})))),pe.Platform.isMobile&&i("div",{className:"mobile-option-setting-item"},i("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},i(w,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),i("span",{className:"mobile-option-setting-item-option-icon"},i(w,{icon:e.icon,size:22,onClick:()=>{new ue(t,e,d,r,c,l).open()}})),i("span",{className:"mobile-option-setting-item-name",onClick:()=>{new ue(t,e,d,r,c,l).open()}},e.name,e.name!==s.name&&i("span",{className:"cmdr-option-setting-name"},"(",s.name,")")),i("span",{className:"mobile-option-setting-item-option-icon"},f&&i(I,null,i(w,{icon:"arrow-down",className:"clickable-icon",onClick:n}),i(w,{icon:"arrow-up",className:"clickable-icon",onClick:a})),i(w,{icon:"three-horizontal-bars",className:"clickable-icon",onClick:()=>{new ue(t,e,d,r,c,l).open()}}))))}function Fa(t){return t==="mobile"?"smartphone":t==="desktop"?"monitor":t==="any"?"cmdr-all-devices":"airplay"}function Vt(t,e,o){let n=e<0?t.length+e:e;if(n>=0&&na(d=>d+1);return i(I,null,i(Va.Provider,{value:t},i("div",{className:"cmdr-sep-con"},t.pairs.map((d,c)=>{if(d.mode.match(/desktop|mobile|any/)||d.mode===e.app.appId)return i(Ft,{plugin:e,sortable:n,key:d.id,pair:d,handleRemove:async()=>{(!e.settings.confirmDeletion||await new O(e).didChooseRemove())&&(await t.removeCommand(d),r())},handleUp:()=>{Vt(t.pairs,c,c-1),t.reorder(),r()},handleDown:()=>{Vt(t.pairs,c,c+1),t.reorder(),r()},handleRename:async l=>{d.name=l,await e.saveSettings(),await t.reorder(),r()},handleNewIcon:async()=>{let l=await new H(e).awaitSelection();l&&l!==d.icon&&(d.icon=l,await e.saveSettings(),await t.reorder(),r()),dispatchEvent(new Event("cmdr-icon-changed"))},handleModeChange:async l=>{let f=["any","desktop","mobile",e.app.appId],s=f.indexOf(d.mode);s===3&&(s=-1),d.mode=l||f[s+1],await e.saveSettings(),await t.reorder(),r()},handleColorChange:async l=>{d.color=l,await e.saveSettings(),await t.reorder(),r()}})})),!t.pairs.some(d=>J(d.mode,e)||d.mode.match(/mobile|desktop/))&&i("div",{class:"cmdr-commands-empty"},i(ye,null),i("h3",null,u("No commands here!")),i("span",null,u("Would you like to add one now?"))),xn.Platform.isMobile&&i("hr",null),i("div",{className:"cmdr-add-new-wrapper"},i("button",{className:"mod-cta",onClick:async()=>{let d=await q(e);await t.addCommand(d),await t.reorder(),r()}},u("Add command")))),o)}function ct({title:t,children:e}){let[o,n]=P(!1);return i("div",{className:"cmdr-accordion cmdr-sep-con","aria-expanded":o},i("div",{className:"cmdr-accordion-header cmdr-mb-1",onClick:()=>{n(!o)}},i(w,{className:"cmdr-accordion-chevron clickable-icon",icon:"chevron-down",size:24}),i("span",null,t)),i("div",{className:"cmdr-accordion-content",style:{maxHeight:[e].flat().length*120+"px"}},e))}function Wt({name:t,description:e,children:o,className:n}){return i("div",{className:`setting-item ${n}`},i("div",{className:"setting-item-info"},i("div",{className:"setting-item-name"},t),i("div",{className:"setting-item-description"},e)),i("div",{className:"setting-item-control"},o))}function jt(t){let[e,o]=P(t.value);return i(Wt,{name:t.name,description:t.description,className:"mod-toggle"},i("div",{className:`checkbox-container ${e?"is-enabled":""}`,onClick:()=>{o(!e),t.changeHandler(e)}}))}function Ut({name:t,description:e,changeHandler:o,value:n,hideLabel:a,showLabel:r}){let[d,c]=P(n);return i(Wt,{name:t,description:e,className:"mod-toggle"},i(w,{"aria-label":d?r:a,icon:d?"eye-off":"eye",size:20,className:"clickable-icon",onClick:()=>{c(!d),o(d)}}))}function lt(o){var n=o,{defaultValue:t}=n,e=je(n,["defaultValue"]);var d,c,l;let[a,r]=P(e.value);return i(Wt,{description:e.description,name:e.name,className:"cmdr-slider"},i("div",{class:"cmdr-flex cmdr-items-center"},t!==void 0&&i(w,{"aria-label":u("Restore default"),icon:"reset",size:16,className:`clickable-icon${a===t?" is-disabled":""}`,"aria-disabled":a===t,onClick:a===t?void 0:()=>{r(t),e.changeHandler(t)}}),i(Ae,{ariaLabel:u("Double click to enter custom value"),value:a.toString(),handleChange:({target:f})=>{let s=Number(f.value);!isNaN(s)&&a!==s&&(r(s),e.changeHandler(s))}}),i("input",{class:"slider",type:"range",min:(d=e.min)!=null?d:"0",max:(c=e.max)!=null?c:"32",step:(l=e.step)!=null?l:"1",value:a,onPointerMove:({target:f})=>{let s=Number(f.value);!isNaN(s)&&a!==s&&(r(s),e.changeHandler(s))}})))}function Mn({plugin:t}){let[e,o]=P([]),n=t.settings.hide.leftRibbon;return z(()=>{o(t.app.workspace.leftRibbon.items.map(a=>({name:a.title,icon:a.icon})))},[]),i(I,null,i("hr",null),i(ct,{title:u("Hide other Commands")},e.map(a=>i(Ut,{name:a.name,description:"",hideLabel:u("Hide"),showLabel:u("Show"),changeHandler:async r=>{r?n.contains(a.name)&&n.remove(a.name):n.push(a.name),Ee(t.settings),await t.saveSettings()},value:n.contains(a.name)}))))}function En({plugin:t}){let e=t.settings.hide.statusbar,[o,n]=P([]);return z(()=>{let r=[...t.app.statusBar.containerEl.getElementsByClassName("status-bar-item")].map(d=>[...d.classList].find(c=>c.startsWith("plugin-"))).filter(d=>d).map(d=>d.substring(7));n(r.map(d=>t.app.plugins.manifests[d]||{id:d,name:d.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,c=>c.toUpperCase()),description:"Core Plugin"}))},[]),i(I,null,i("hr",null),i(ct,{title:u("Hide other Commands")},o.map(a=>i(Ut,{name:a.name,description:a.description,value:e.contains(a.id),hideLabel:u("Hide"),showLabel:u("Show"),changeHandler:async r=>{r?e.contains(a.id)&&e.remove(a.id):e.push(a.id),Ee(t.settings),await t.saveSettings()}}))))}var In=require("obsidian");var Pn=require("obsidian");function Sn({plugin:t,macro:e,onSave:o,onCancel:n}){let[a,r]=P(e.name||"Macro Name"),[d,c]=P(e.icon||"star"),[l,f]=P(e.startup||!1),[s,b]=P(JSON.parse(JSON.stringify(e.macro))||[]),g=async()=>{let v=await new ne(t).awaitSelection();v&&b([...s,{action:0,commandId:v.id}])},h=async()=>{b([...s,{action:1,delay:250}])};return i("div",null,i("div",{class:"setting-item cmdr-mm-item"},i("div",null,i("span",null,"Name"),i("input",{type:"text",placeholder:"Macro Name",value:a,onChange:v=>r(v.currentTarget.value),width:"100%"})),i("div",null,i("span",null,"Icon"),i("button",{onClick:async()=>c(await new H(t).awaitSelection())},i(w,{icon:d})))),s.map((v,_)=>{switch(v.action){case 0:{let y=Q(v.commandId,t);return i("div",{class:"setting-item cmdr-mm-item"},i("div",null,i("button",{onClick:async()=>{let k=await new ne(t).awaitSelection();b(s.map((A,Y)=>Y===_?to(We({},A),{commandId:k.id}):A))}},(y==null?void 0:y.name)||"Cannot find Command")),i("div",null,i("div",{class:"cmdr-mm-action-options"},i(w,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(_===s.length-1)return;let k=[...s],A=k[_];k[_]=k[_+1],k[_+1]=A,b(k)}}),i(w,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(_===0)return;let k=[...s],A=k[_];k[_]=k[_-1],k[_-1]=A,b(k)}}),i(w,{class:"clickable-icon",icon:"cross",onClick:()=>{b(s.filter((k,A)=>A!==_))}}))))}case 1:return i("div",{class:"setting-item cmdr-mm-item"},i("div",null,i(lt,{name:"Delay",min:0,max:1e4,step:50,description:"Delay in milliseconds",value:v.delay,changeHandler:y=>{v.delay=y}})),i("div",null,i("div",{class:"cmdr-mm-action-options"},i(w,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(_===s.length-1)return;let y=[...s],k=y[_];y[_]=y[_+1],y[_+1]=k,b(y)}}),i(w,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(_===0)return;let y=[...s],k=y[_];y[_]=y[_-1],y[_-1]=k,b(y)}}),i(w,{class:"clickable-icon",icon:"cross",onClick:()=>{b(s.filter((y,k)=>k!==_))}}))));case 2:return i("div",null,"Editor: ",v.action);case 3:return i("div",null,"Loop: ",v.times)}}),i("div",{className:"setting-item cmdr-mm-actions cmdr-justify-between"},i("div",{className:"cmdr-flex cmdr-items-center cmdr-justify-self-start"},i("input",{type:"checkbox",id:"checkbox",checked:l,onChange:({target:v})=>{var _;f((_=v==null?void 0:v.checked)!=null?_:!1)}}),i("label",{htmlFor:"checkbox"},"Auto-Run on Startup")),i("div",null,i("button",{onClick:g},"Add Command"),i("button",{onClick:h},"Add Delay"))),i("div",{className:"cmdr-mm-control"},i("button",{class:s.length===0?"disabled":"mod-cta",disabled:s.length===0,onClick:()=>{s.length&&o({macro:s,name:a,icon:d,startup:l})}},"Save"),i("button",{onClick:n},"Cancel")))}var Le=class extends Pn.Modal{constructor(e,o,n){super(e.app),this.macro=o,this.plugin=e,this.onSave=n}onOpen(){this.titleEl.setText("Macro builder"),F(i(Sn,{plugin:this.plugin,macro:this.macro,onSave:this.onSave,onCancel:()=>this.close()}),this.contentEl)}onClose(){F(null,this.contentEl)}};function qt({plugin:t,macros:e}){let[,o]=P(0),n=()=>o(d=>d+1),a=(d,c)=>{let l=s=>{e.splice(c!==void 0?c:e.length,c!==void 0?1:0,s),t.saveSettings(),n(),Se(t),f.close()},f=new Le(t,d,l);f.open()},r=d=>{e.splice(d,1),t.saveSettings(),n(),Se(t)};return i(I,null,i("div",{className:"cmdr-sep-con"},e.map((d,c)=>i("div",{class:"setting-item mod-toggle"},i("div",{className:"setting-item-info"},i("div",{className:"setting-item-name"},d.name),i("div",{className:"setting-item-description"},d.macro.length," Actions")),i("div",{className:"setting-item-control"},i("button",{"aria-label":"Edit Macro",onClick:()=>a(d,c)},i(w,{icon:"lucide-pencil"})),i("button",{"aria-label":"Delete",class:"mod-warning",onClick:async()=>{(!t.settings.confirmDeletion||await new O(t).didChooseRemove())&&r(c)}},i(w,{icon:"trash"})))))),!e.length&&i("div",{class:"cmdr-commands-empty"},i(ye,null),i("h3",null,"No Macros yet!"),i("span",null,u("Would you like to add one now?"))),In.Platform.isMobile&&i("hr",null),i("div",{className:"cmdr-add-new-wrapper"},i("button",{class:"mod-cta",onClick:()=>a({name:"",macro:[],icon:"star"})},"Add Macro")))}function Ne({plugin:t,mobileMode:e}){let[o,n]=P(0),[a,r]=P(!0),d=({key:l,shiftKey:f})=>{f&&l==="Tab"?o>0?n((o-1)%c.length):n(c.length-1):l==="Tab"&&n((o+1)%c.length)};z(()=>(addEventListener("keydown",d),()=>removeEventListener("keydown",d)),[o]),Z.Platform.isMobile&&z(()=>{let l=document.querySelector(".modal-setting-back-button"),f=l.cloneNode(!0);l.parentNode.replaceChild(f,l),r(!0)},[]),z(()=>{let l=document.querySelector(".modal-setting-back-button");l&&(a?(l.parentElement.lastChild.textContent="Commander",l.onclick=()=>t.app.setting.closeActiveTab()):(l.parentElement.lastChild.textContent=c[o].name,l.onclick=()=>r(!0)))},[a]);let c=nt(()=>[{name:u("General"),tab:i(I,null,i(jt,{name:u("Always ask before removing?"),description:u("Always show a Popup to confirm deletion of a Command."),value:t.settings.confirmDeletion,changeHandler:async l=>{t.settings.confirmDeletion=!l,await t.saveSettings()}}),i(jt,{value:t.settings.showAddCommand,name:u('Show "Add Command" Button'),description:'Show the "Add Command" Button in every Menu.',changeHandler:async l=>{t.settings.showAddCommand=!l,await t.manager.pageHeader.reorder(),await t.saveSettings()}}),i(lt,{value:t.settings.spacing,defaultValue:ae.spacing,name:u("Choose custom spacing for Command Buttons"),description:u("Change the spacing between commands. You can set different values on mobile and desktop."),changeHandler:async l=>{it(l),t.settings.spacing=l,await t.saveSettings()}}))},{name:u("Left Ribbon"),tab:i(oe,{manager:t.manager.leftRibbon,plugin:t,sortable:!1},i(Mn,{plugin:t}),i("div",{className:"cmdr-sep-con callout","data-callout":"warning"},i("span",{className:"cmdr-callout-warning"},i(w,{icon:"alert-triangle"})," ","Reordering and Sorting"),i("p",{className:"cmdr-warning-description"},"As of Obsidian 1.1.0 you can reorder the Buttons in the left ribbon by dragging. This will replace the old sorting feature.")))},{name:u("Page Header"),tab:i(oe,{manager:t.manager.pageHeader,plugin:t},i("hr",null),i("div",{className:"cmdr-sep-con callout","data-callout":"warning"},i("span",{className:"cmdr-callout-warning"},i(w,{icon:"alert-triangle"})," ",u("Warning")),i("p",{className:"cmdr-warning-description"},u("As of Obsidian 0.16.0 you need to explicitly enable the View Header.")),i("button",{onClick:()=>{t.app.setting.openTabById("appearance"),window.setTimeout(()=>{var l,f,s,b;t.app.setting.activeTab.containerEl.scroll({behavior:"smooth",top:250}),(b=(s=(f=(l=t.app.setting.activeTab.containerEl.querySelectorAll(".setting-item-heading")[1].nextSibling)==null?void 0:l.nextSibling)==null?void 0:f.nextSibling)==null?void 0:s.addClass)==null||b.call(s,"cmdr-cta")},50)},className:"mod-cta"},u("Open Appearance Settings"))))},{name:u("Statusbar"),tab:i(oe,{manager:t.manager.statusBar,plugin:t},i(En,{plugin:t}))},{name:u("Editor Menu"),tab:i(oe,{manager:t.manager.editorMenu,plugin:t})},{name:u("File Menu"),tab:i(oe,{manager:t.manager.fileMenu,plugin:t})},{name:u("Explorer"),tab:i(oe,{manager:t.manager.explorerManager,plugin:t},i("hr",null),i("div",{className:"cmdr-sep-con callout","data-callout":"warning"},i("span",{className:"cmdr-callout-warning"},i(w,{icon:"alert-triangle"})," ",u("Warning")),i("p",{className:"cmdr-warning-description"},"When clicking on a Command in the Explorer, the Explorer view will become focused. This might interfere with Commands that are supposed to be executed on an active File/Explorer.")))},...re.isAvailable(t)?[{name:"Text Toolbar",tab:i(oe,{manager:t.manager.textToolbarIntegration,plugin:t})}]:[],{name:Z.Platform.isMobile?"Mobile Toolbar":"Toolbar",tab:i(zt,{plugin:t})},{name:"Macros",tab:i(qt,{plugin:t,macros:t.settings.macros})}],[]);return i(I,null,Z.Platform.isDesktop&&i("div",{className:"cmdr-setting-title"},i("h1",null,t.manifest.name)),(Z.Platform.isDesktop||a)&&i(ja,{tabs:c,activeTab:o,setActiveTab:n,setOpen:r}),i("div",{class:`cmdr-setting-content ${e?"cmdr-mobile":""}`},(Z.Platform.isDesktop||!a)&&c[o].tab,(Z.Platform.isMobile&&a||Z.Platform.isDesktop&&o===0)&&i(Dt,{manifest:t.manifest})))}function ja({tabs:t,activeTab:e,setActiveTab:o,setOpen:n}){let a=K(null),r=d=>{var c;d.preventDefault(),(c=a.current)==null||c.scrollBy({left:d.deltaY>0?16:-16})};return z(()=>{let d=a.current;if(!(!d||Z.Platform.isMobile))return d.addEventListener("wheel",r),()=>d.removeEventListener("wheel",r)},[]),z(()=>{var d;return(d=document.querySelector(".cmdr-tab-active"))==null?void 0:d.scrollIntoView({behavior:"smooth",block:"nearest"})},[e]),i("nav",{class:`cmdr-setting-header ${Z.Platform.isMobile?"cmdr-mobile":""}`,ref:a},i("div",{class:`cmdr-setting-tab-group ${Z.Platform.isMobile?"vertical-tab-header-group-items":""}`},t.map((d,c)=>i("div",{className:`cmdr-tab ${e===c?"cmdr-tab-active":""} ${Z.Platform.isMobile?"vertical-tab-nav-item":""}`,onClick:()=>{o(c),n(!1)}},d.name,Z.Platform.isMobile&&i(w,{className:"vertical-tab-nav-item-chevron cmdr-block",icon:"chevron-right",size:24})))),Z.Platform.isDesktop&&i("div",{className:"cmdr-fill"}))}var Re=class extends ut.PluginSettingTab{constructor(e){super(e.app,e),this.plugin=e}display(){F(i(Ne,{plugin:this.plugin,mobileMode:ut.Platform.isMobile}),this.containerEl)}hide(){F(null,this.containerEl)}};var pt=require("obsidian");var De=class extends pt.Modal{constructor(e){super(e.app),this.plugin=e,this.containerEl.addClass("cmdr-setting-modal")}onOpen(){let e=pt.Platform.isMobile;F(i(Ne,{plugin:this.plugin,mobileMode:e}),this.contentEl)}onClose(){F(null,this.contentEl)}};var Tn=require("obsidian");function Zt(){(0,Tn.addIcon)("cmdr-all-devices",'')}var He=class extends V{constructor(e){super(e,e.settings.leftRibbon),this.plugin=e,this.plugin.settings.leftRibbon.forEach(o=>{this.addCommand(o,!1)}),this.plugin.app.workspace.onLayoutReady(()=>{})}async addCommand(e,o=!0){if(o&&(this.plugin.settings.leftRibbon.push(e),await this.plugin.saveSettings()),J(e.mode,this.plugin)){this.plugin.addRibbonIcon(e.icon,e.name,()=>this.plugin.app.commands.executeCommandById(e.id));let n=this.plugin.app.workspace.leftRibbon.items.find(a=>a.icon===e.icon&&a.title===e.name);n&&(n.buttonEl.style.color=e.color==="#000000"||e.color===void 0?"inherit":e.color),this.plugin.register(()=>this.removeCommand(e,!1))}}async removeCommand(e,o=!0){o&&(this.plugin.settings.leftRibbon.remove(e),await this.plugin.saveSettings());let n=this.plugin.app.workspace.leftRibbon.items.find(a=>a.icon===e.icon&&a.title===e.name);n&&(n.buttonEl.remove(),this.plugin.app.workspace.leftRibbon.items.remove(n))}reorder(){this.plugin.settings.leftRibbon.forEach(e=>{this.removeCommand(e,!1),this.addCommand(e,!1)})}};var ft=class extends An.Plugin{async executeStartupMacros(){this.settings.macros.forEach((e,o)=>{e.startup&&this.executeMacro(o)})}async executeMacro(e){let o=this.settings.macros[e];if(!o)throw new Error("Macro not found");for(let n of o.macro)switch(n.action){case 0:{this.app.commands.executeCommandById(n.commandId);continue}case 1:{await new Promise(a=>window.setTimeout(a,n.delay));continue}case 2:continue;case 3:{for(let a=0;anew De(this).open()}),this.registerEvent(this.app.workspace.on("editor-menu",this.manager.editorMenu.applyEditorMenuCommands(this))),this.registerEvent(this.app.workspace.on("file-menu",this.manager.fileMenu.applyFileMenuCommands(this))),this.app.workspace.onLayoutReady(()=>{Ee(this.settings),Se(this),it(this.settings.spacing),te(this.settings.advancedToolbar),rt(this.settings.advancedToolbar,this),this.executeStartupMacros(),this.manager.textToolbarIntegration.reorder()})}onunload(){var e;(e=document.head.querySelector("style#cmdr"))==null||e.remove(),Qo()}async loadSettings(){let e=Object.assign({},ae,await this.loadData());this.settings=e}async saveSettings(){await this.saveData(this.settings)}listActiveToolbarCommands(){return this.app.vault.getConfig("mobileToolbarCommands")}getCommands(){let e=[];return this.listActiveToolbarCommands().forEach(o=>{let n=this.app.commands.commands[o];n&&e.push(n)}),e}getCommandsWithoutIcons(e=!0){let o=[];return this.getCommands().forEach(n=>{n&&!n.icon&&o.push(n)}),e&&this.getCommands().forEach(n=>{this.settings.advancedToolbar.mappedIcons.find(a=>a.commandID===n.id)&&o.push(n)}),o}}; /* by phibr0 */ /* nosourcemap */