4 lines
134 KiB
JavaScript
4 lines
134 KiB
JavaScript
var Xi=Object.defineProperty;var Ji=(l,e,t)=>e in l?Xi(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t;var Wt=(l,e,t)=>Ji(l,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=t(o);fetch(o.href,s)}})();function Q(){}function qn(l){return l()}function hl(){return Object.create(null)}function fe(l){l.forEach(qn)}function Gn(l){return typeof l=="function"}function ct(l,e){return l!=l?e==e:l!==e||l&&typeof l=="object"||typeof l=="function"}let It;function Dt(l,e){return l===e?!0:(It||(It=document.createElement("a")),It.href=e,l===It.href)}function Yi(l){return Object.keys(l).length===0}function Zi(l){return l??""}function c(l,e){l.appendChild(e)}function g(l,e,t){l.insertBefore(e,t||null)}function y(l){l.parentNode&&l.parentNode.removeChild(l)}function je(l,e){for(let t=0;t<l.length;t+=1)l[t]&&l[t].d(e)}function u(l){return document.createElement(l)}function z(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function A(l){return document.createTextNode(l)}function k(){return A(" ")}function Qe(){return A("")}function L(l,e,t,n){return l.addEventListener(e,t,n),()=>l.removeEventListener(e,t,n)}function At(l){return function(e){return e.preventDefault(),l.call(this,e)}}function ot(l){return function(e){return e.stopPropagation(),l.call(this,e)}}function at(l){return function(e){e.target===this&&l.call(this,e)}}function i(l,e,t){t==null?l.removeAttribute(e):l.getAttribute(e)!==t&&l.setAttribute(e,t)}function Et(l){return l===""?null:+l}function Qi(l){return Array.from(l.childNodes)}function V(l,e){e=""+e,l.data!==e&&(l.data=e)}function ge(l,e){l.value=e??""}function Re(l,e,t,n){t==null?l.style.removeProperty(e):l.style.setProperty(e,t,"")}function wl(l,e,t){for(let n=0;n<l.options.length;n+=1){const o=l.options[n];if(o.__value===e){o.selected=!0;return}}(!t||e!==void 0)&&(l.selectedIndex=-1)}function xi(l){const e=l.querySelector(":checked");return e&&e.__value}function wt(l,e,t){l.classList.toggle(e,!!t)}function $i(l,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(l,{detail:e,bubbles:t,cancelable:n})}let Ft;function Nt(l){Ft=l}function Xt(){if(!Ft)throw new Error("Function called outside component initialization");return Ft}function Xn(l){Xt().$$.on_mount.push(l)}function Jn(l){Xt().$$.on_destroy.push(l)}function Ot(){const l=Xt();return(e,t,{cancelable:n=!1}={})=>{const o=l.$$.callbacks[e];if(o){const s=$i(e,t,{cancelable:n});return o.slice().forEach(r=>{r.call(l,s)}),!s.defaultPrevented}return!0}}function er(l,e){const t=l.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const vt=[],bl=[];let ht=[];const kl=[],tr=Promise.resolve();let qt=!1;function lr(){qt||(qt=!0,tr.then(Yn))}function Lt(l){ht.push(l)}const Kt=new Set;let _t=0;function Yn(){if(_t!==0)return;const l=Ft;do{try{for(;_t<vt.length;){const e=vt[_t];_t++,Nt(e),nr(e.$$)}}catch(e){throw vt.length=0,_t=0,e}for(Nt(null),vt.length=0,_t=0;bl.length;)bl.pop()();for(let e=0;e<ht.length;e+=1){const t=ht[e];Kt.has(t)||(Kt.add(t),t())}ht.length=0}while(vt.length);for(;kl.length;)kl.pop()();qt=!1,Kt.clear(),Nt(l)}function nr(l){if(l.fragment!==null){l.update(),fe(l.before_update);const e=l.dirty;l.dirty=[-1],l.fragment&&l.fragment.p(l.ctx,e),l.after_update.forEach(Lt)}}function or(l){const e=[],t=[];ht.forEach(n=>l.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ht=e}const Mt=new Set;let st;function Ye(){st={r:0,c:[],p:st}}function Ze(){st.r||fe(st.c),st=st.p}function se(l,e){l&&l.i&&(Mt.delete(l),l.i(e))}function pe(l,e,t,n){if(l&&l.o){if(Mt.has(l))return;Mt.add(l),st.c.push(()=>{Mt.delete(l),n&&(t&&l.d(1),n())}),l.o(e)}else n&&n()}function ce(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}function ir(l,e){pe(l,1,1,()=>{e.delete(l.key)})}function rr(l,e,t,n,o,s,r,a,f,m,b,v){let _=l.length,h=s.length,w=_;const T={};for(;w--;)T[l[w].key]=w;const S=[],C=new Map,I=new Map,F=[];for(w=h;w--;){const D=v(o,s,w),M=t(D);let B=r.get(M);B?F.push(()=>B.p(D,e)):(B=m(M,D),B.c()),C.set(M,S[w]=B),M in T&&I.set(M,Math.abs(w-T[M]))}const N=new Set,R=new Set;function O(D){se(D,1),D.m(a,b),r.set(D.key,D),b=D.first,h--}for(;_&&h;){const D=S[h-1],M=l[_-1],B=D.key,j=M.key;D===M?(b=D.first,_--,h--):C.has(j)?!r.has(B)||N.has(B)?O(D):R.has(j)?_--:I.get(B)>I.get(j)?(R.add(B),O(D)):(N.add(j),_--):(f(M,r),_--)}for(;_--;){const D=l[_];C.has(D.key)||f(D,r)}for(;h;)O(S[h-1]);return fe(F),S}function nt(l){l&&l.c()}function et(l,e,t){const{fragment:n,after_update:o}=l.$$;n&&n.m(e,t),Lt(()=>{const s=l.$$.on_mount.map(qn).filter(Gn);l.$$.on_destroy?l.$$.on_destroy.push(...s):fe(s),l.$$.on_mount=[]}),o.forEach(Lt)}function tt(l,e){const t=l.$$;t.fragment!==null&&(or(t.after_update),fe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sr(l,e){l.$$.dirty[0]===-1&&(vt.push(l),lr(),l.$$.dirty.fill(0)),l.$$.dirty[e/31|0]|=1<<e%31}function ft(l,e,t,n,o,s,r=null,a=[-1]){const f=Ft;Nt(l);const m=l.$$={fragment:null,ctx:[],props:s,update:Q,not_equal:o,bound:hl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:hl(),dirty:a,skip_bound:!1,root:e.target||f.$$.root};r&&r(m.root);let b=!1;if(m.ctx=t?t(l,e.props||{},(v,_,...h)=>{const w=h.length?h[0]:_;return m.ctx&&o(m.ctx[v],m.ctx[v]=w)&&(!m.skip_bound&&m.bound[v]&&m.bound[v](w),b&&sr(l,v)),_}):[],m.update(),b=!0,fe(m.before_update),m.fragment=n?n(m.ctx):!1,e.target){if(e.hydrate){const v=Qi(e.target);m.fragment&&m.fragment.l(v),v.forEach(y)}else m.fragment&&m.fragment.c();e.intro&&se(l.$$.fragment),et(l,e.target,e.anchor),Yn()}Nt(f)}class ut{constructor(){Wt(this,"$$");Wt(this,"$$set")}$destroy(){tt(this,1),this.$destroy=Q}$on(e,t){if(!Gn(t))return Q;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Yi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const cr="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(cr);function ar(l){let e,t;return{c(){e=z("path"),t=z("polyline"),i(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),i(t,"points","14 2 14 8 20 8")},m(n,o){g(n,e,o),g(n,t,o)},d(n){n&&(y(e),y(t))}}}function fr(l){let e,t,n,o,s;return{c(){e=z("path"),t=z("polyline"),n=z("line"),o=z("line"),s=z("polyline"),i(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),i(t,"points","14 2 14 8 20 8"),i(n,"x1","16"),i(n,"y1","13"),i(n,"x2","8"),i(n,"y2","13"),i(o,"x1","16"),i(o,"y1","17"),i(o,"x2","8"),i(o,"y2","17"),i(s,"points","10 9 9 9 8 9")},m(r,a){g(r,e,a),g(r,t,a),g(r,n,a),g(r,o,a),g(r,s,a)},d(r){r&&(y(e),y(t),y(n),y(o),y(s))}}}function ur(l){let e,t;return{c(){e=z("polyline"),t=z("polyline"),i(e,"points","16 18 22 12 16 6"),i(t,"points","8 6 2 12 8 18")},m(n,o){g(n,e,o),g(n,t,o)},d(n){n&&(y(e),y(t))}}}function dr(l){let e,t,n,o;return{c(){e=z("path"),t=z("polyline"),n=z("line"),o=z("rect"),i(e,"d","M21 8v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8"),i(t,"points","7 3 12 8 17 3"),i(n,"x1","3"),i(n,"y1","8"),i(n,"x2","21"),i(n,"y2","8"),i(o,"x","10"),i(o,"y","12"),i(o,"width","4"),i(o,"height","4"),i(o,"rx","1")},m(s,r){g(s,e,r),g(s,t,r),g(s,n,r),g(s,o,r)},d(s){s&&(y(e),y(t),y(n),y(o))}}}function mr(l){let e,t,n,o,s;return{c(){e=z("path"),t=z("polyline"),n=z("line"),o=z("line"),s=z("line"),i(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),i(t,"points","14 2 14 8 20 8"),i(n,"x1","9"),i(n,"y1","12"),i(n,"x2","15"),i(n,"y2","12"),i(o,"x1","9"),i(o,"y1","15"),i(o,"x2","13"),i(o,"y2","15"),i(s,"x1","12"),i(s,"y1","15"),i(s,"x2","12"),i(s,"y2","18")},m(r,a){g(r,e,a),g(r,t,a),g(r,n,a),g(r,o,a),g(r,s,a)},d(r){r&&(y(e),y(t),y(n),y(o),y(s))}}}function pr(l){let e,t,n,o,s,r;return{c(){e=z("path"),t=z("polyline"),n=z("line"),o=z("line"),s=z("line"),r=z("line"),i(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),i(t,"points","14 2 14 8 20 8"),i(n,"x1","8"),i(n,"y1","12"),i(n,"x2","16"),i(n,"y2","12"),i(o,"x1","8"),i(o,"y1","16"),i(o,"x2","16"),i(o,"y2","16"),i(s,"x1","8"),i(s,"y1","14"),i(s,"x2","12"),i(s,"y2","14"),i(r,"x1","12"),i(r,"y1","12"),i(r,"x2","12"),i(r,"y2","18")},m(a,f){g(a,e,f),g(a,t,f),g(a,n,f),g(a,o,f),g(a,s,f),g(a,r,f)},d(a){a&&(y(e),y(t),y(n),y(o),y(s),y(r))}}}function _r(l){let e,t,n,o;return{c(){e=z("path"),t=z("polyline"),n=z("line"),o=z("line"),i(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),i(t,"points","14 2 14 8 20 8"),i(n,"x1","16"),i(n,"y1","13"),i(n,"x2","8"),i(n,"y2","13"),i(o,"x1","16"),i(o,"y1","17"),i(o,"x2","8"),i(o,"y2","17")},m(s,r){g(s,e,r),g(s,t,r),g(s,n,r),g(s,o,r)},d(s){s&&(y(e),y(t),y(n),y(o))}}}function vr(l){let e,t,n,o,s;return{c(){e=z("path"),t=z("polyline"),n=z("line"),o=z("line"),s=z("line"),i(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),i(t,"points","14 2 14 8 20 8"),i(n,"x1","8"),i(n,"y1","12"),i(n,"x2","16"),i(n,"y2","12"),i(o,"x1","8"),i(o,"y1","16"),i(o,"x2","16"),i(o,"y2","16"),i(s,"x1","8"),i(s,"y1","14"),i(s,"x2","12"),i(s,"y2","14")},m(r,a){g(r,e,a),g(r,t,a),g(r,n,a),g(r,o,a),g(r,s,a)},d(r){r&&(y(e),y(t),y(n),y(o),y(s))}}}function hr(l){let e,t,n;return{c(){e=z("path"),t=z("circle"),n=z("circle"),i(e,"d","M9 18V5l12-2v13"),i(t,"cx","6"),i(t,"cy","18"),i(t,"r","3"),i(n,"cx","18"),i(n,"cy","16"),i(n,"r","3")},m(o,s){g(o,e,s),g(o,t,s),g(o,n,s)},d(o){o&&(y(e),y(t),y(n))}}}function wr(l){let e,t;return{c(){e=z("rect"),t=z("polyline"),i(e,"x","2"),i(e,"y","4"),i(e,"width","20"),i(e,"height","16"),i(e,"rx","2"),i(t,"points","10 9 16 12 10 15 10 9")},m(n,o){g(n,e,o),g(n,t,o)},d(n){n&&(y(e),y(t))}}}function br(l){let e,t,n;return{c(){e=z("rect"),t=z("circle"),n=z("polyline"),i(e,"x","3"),i(e,"y","3"),i(e,"width","18"),i(e,"height","18"),i(e,"rx","2"),i(e,"ry","2"),i(t,"cx","8.5"),i(t,"cy","8.5"),i(t,"r","1.5"),i(n,"points","21 15 16 10 5 21")},m(o,s){g(o,e,s),g(o,t,s),g(o,n,s)},d(o){o&&(y(e),y(t),y(n))}}}function kr(l){let e;return{c(){e=z("path"),i(e,"d","M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function yr(l){let e;function t(s,r){return s[0]==="folder"?kr:s[0]==="image"?br:s[0]==="video"?wr:s[0]==="audio"?hr:s[0]==="pdf"?vr:s[0]==="document"?_r:s[0]==="spreadsheet"?pr:s[0]==="presentation"?mr:s[0]==="archive"?dr:s[0]==="code"?ur:s[0]==="text"?fr:ar}let n=t(l),o=n(l);return{c(){e=z("svg"),o.c(),i(e,"width",l[1]),i(e,"height",l[1]),i(e,"viewBox","0 0 24 24"),i(e,"fill","none"),i(e,"stroke","currentColor"),i(e,"stroke-width","1.5"),i(e,"stroke-linecap","round"),i(e,"stroke-linejoin","round"),i(e,"xmlns","http://www.w3.org/2000/svg")},m(s,r){g(s,e,r),o.m(e,null)},p(s,[r]){n!==(n=t(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e,null))),r&2&&i(e,"width",s[1]),r&2&&i(e,"height",s[1])},i:Q,o:Q,d(s){s&&y(e),o.d()}}}function gr(l,e,t){let{kind:n="generic"}=e,{size:o=20}=e;return l.$$set=s=>{"kind"in s&&t(0,n=s.kind),"size"in s&&t(1,o=s.size)},[n,o]}class Zn extends ut{constructor(e){super(),ft(this,e,gr,yr,ct,{kind:0,size:1})}}const Cr={"nav.today":"Сегодня","nav.inbox":"Неразобранное","nav.activity":"Активность","nav.clients":"Клиенты","nav.projects":"Проекты","nav.recipes":"Рецепты","nav.documents":"Документы","nav.archive":"Архив","nav.sections":"Разделы","nav.cases":"Дела","nav.noCases":"Нет дел","nav.sync":"Синхронизация","nav.syncSettings":"Настройки синхронизации","nav.syncNow":"Синхронизировать","nav.selectPrompt":"Выберите раздел или дело","nav.brand":"Верстак","nav.system":"Системное","nav.workspace":"Рабочее пространство","nav.noNodes":"Нет узлов","nav.openFolder":"Открыть папку","nav.createInside":"Создать внутри","tab.overview":"Обзор","tab.notes":"Заметки","tab.files":"Файлы","tab.actions":"Действия","tab.worklog":"Журнал","tab.activity":"Активность","common.save":"Сохранить","common.cancel":"Отмена","common.delete":"Удалить","common.rename":"Переименовать","common.close":"Закрыть","common.create":"Создать","common.confirm":"Подтверждение","common.back":"← Назад","common.loading":"Загрузка...","common.error":"Ошибка:","common.yes":"Да","common.ok":"OK","common.copy":"Копировать","common.cut":"Вырезать","common.paste":"Вставить","common.duplicate":"Дублировать","common.run":"Запустить","common.test":"Test","common.testAgain":"Проверить","common.connect":"Подключиться","common.disconnect":"Отключиться","common.settings":"Настройки","common.name":"Название","common.type":"Тип","common.section":"Раздел","common.created":"Создано","common.empty":"Нет","common.newName":"Новое имя","welcome.title":"Верстак","welcome.selectSection":"Выберите раздел в боковой панели.","welcome.createCase":"Или создайте новое дело кнопкой «+».","welcome.addCase":"Добавить дело","event.noteCreated":"Заметка создана","event.noteUpdated":"Заметка изменена","event.fileAdded":"Файл добавлен","event.fileDeleted":"Файл удалён","event.fileRenamed":"Файл переименован","event.fileCopied":"Файл скопирован","event.fileMoved":"Файл перемещён","event.folderAdded":"Папка добавлена","event.folderDeleted":"Папка удалена","event.folderRenamed":"Папка переименована","event.caseCreated":"Дело создано","event.caseUpdated":"Дело изменено","kind.project":"Проект","kind.client":"Клиент","kind.document":"Документ","kind.recipe":"Рецепт","kind.archive":"Архив","kind.case":"Дело","action.openUrl":"Открыть URL","action.openFile":"Открыть файл","action.openFolder":"Открыть папку","action.runCommand":"Запустить команду","action.runScript":"Запустить скрипт","action.openTerminal":"Открыть терминал","action.launchApp":"Запустить приложение","action.addAction":"+ Добавить действие","action.newAction":"Новое действие","action.noActions":"Действий пока нет","action.run":"Запустить","action.dataUrl":"URL","action.dataPath":"Путь","action.dataCommand":"Команда","action.urlPlaceholder":"https://example.com","action.pathPlaceholder":"/path/to/file","action.commandPlaceholder":"команда","action.namePlaceholder":"Например: Открыть сайт","note.add":"+ Добавить заметку","note.new":"Новая заметка","note.title":"Название заметки","note.noNotes":"Нет заметок","note.createFirst":"Создайте первую заметку для этого дела.","note.placeholder":"Начните писать...","note.unsavedTitle":"Несохранённые изменения","note.unsavedMessage":"Закрыть редактор? Все несохранённые изменения будут потеряны.","note.unsavedClose":"Закрыть","file.addFile":"+ Добавить файл","file.addFolder":"+ Добавить папку","file.newFile":"+ Новый файл","file.addFileSimple":"Добавить файл","file.addFolderSimple":"Добавить папку","file.noFiles":"В этой папке пока нет файлов","file.noFilesCase":"В этом проекте пока нет файлов","file.hint":"Добавьте файл или папку, чтобы сохранить материалы проекта.","file.root":"Файлы","file.preview":"Предпросмотр","file.openExternal":"Открыть во внешней программе","file.openFolder":"Открыть папку","file.showInExplorer":"Показать в проводнике","file.more":"Ещё","file.delete":"Удалить","file.ariaFolder":"Папка","file.ariaFile":"Файл","file.scanning":"Сканирование...","file.pickSingle":"Выберите файл","file.pickMultiple":"Выберите файлы","file.pickDirectory":"Выберите папку","file.importTitle":"Добавить в","file.importFiles":"Файлов:","file.importFolders":"Папок:","file.importSize":"Размер:","file.importCopy":"Скопировать","file.importLink":"Привязать","file.selectCaseFirst":"Сначала выберите дело для добавления файлов","worklog.title":"Журнал","worklog.whatDone":"Что сделано","worklog.minutes":"Мин","worklog.min":"мин","worklog.log":"Записать","worklog.empty":"Записей работы пока нет","sync.title":"Синхронизация","sync.settings":"Настройки синхронизации","sync.status":"Статус","sync.server":"Сервер","sync.device":"Устройство","sync.deviceId":"ID устройства","sync.unpushed":"Неотправлено","sync.lastSync":"Последняя синх.","sync.revoked":"Отозвано","sync.connected":"Подключено","sync.notConnected":"Не подключено","sync.disabled":"Отключена","sync.serverUrl":"URL сервера","sync.serverUrlPlaceholder":"https://example.com:47732","sync.username":"Логин","sync.usernamePlaceholder":"username","sync.password":"Пароль","sync.passwordPlaceholder":"password","sync.autoSync":"Автосинхронизация (мин, 0 = отключено)","sync.saveInterval":"Сохранить интервал","sync.syncNow":"Синхронизировать","sync.disconnect":"Отключиться","sync.connect":"Подключиться","sync.test":"Проверить","sync.settingsSaved":"интервал сохранён","today.title":"Сегодня","today.changedCases":"Изменён сегодня","today.timeline":"Лента за сегодня","today.empty":"Сегодня пока тихо","today.emptyHint":"Здесь появятся дела, заметки, файлы и действия, с которыми вы работали сегодня.","today.plural.case_one":"дело","today.plural.case_few":"дела","today.plural.case_many":"дел","today.plural.note_one":"заметка","today.plural.note_few":"заметки","today.plural.note_many":"заметок","today.plural.file_one":"файл","today.plural.file_few":"файла","today.plural.file_many":"файлов","today.plural.event_one":"событие","today.plural.event_few":"события","today.plural.event_many":"событий","activity.title":"Активность","activity.empty":"Активность пока не зафиксирована","activity.perCaseEmpty":"Активность пока не зафиксирована","overview.type":"Тип","overview.section":"Раздел","overview.created":"Создано","overview.newNote":"Новая заметка","overview.addFile":"Добавить файл","overview.addAction":"Добавить действие","overview.logTime":"Записать время","overview.recentNotes":"Последние заметки","overview.recentEntries":"Последние записи","rename.title":"Переименовать","rename.emptyError":"Имя не может быть пустым","rename.invalidError":"Недопустимое имя","delete.confirmTitle":"Удаление","delete.confirmMessage":"Удалить","delete.folder":"папку","delete.file":"файл","template.optionNone":"Без шаблона","template.optional":"Шаблон (опционально)","mime.jpeg":"Изображение JPEG","mime.png":"Изображение PNG","mime.gif":"Изображение GIF","mime.webp":"Изображение WebP","mime.svg":"Изображение SVG","mime.bmp":"Изображение BMP","mime.tiff":"Изображение TIFF","mime.avif":"Изображение AVIF","mime.pdf":"PDF документ","mime.word":"Документ Word","mime.excel":"Таблица Excel","mime.ppt":"Презентация PowerPoint","mime.zip":"ZIP архив","mime.gzip":"GZIP архив","mime.tar":"TAR архив","mime.sevenz":"7z архив","mime.rar":"RAR архив","mime.text":"Текстовый файл","mime.html":"HTML файл","mime.css":"CSS файл","mime.js":"JavaScript файл","mime.json":"JSON файл","mime.xml":"XML файл","mime.yaml":"YAML файл","mime.binary":"Бинарный файл","mime.executable":"Исполняемый файл","mime.folder":"Папка","mime.unknown":"Неизвестно","mime.file":"Файл","error.nameEmpty":"Имя не может быть пустым","error.nameInvalid":"Недопустимое имя","error.selectCaseFirst":"Сначала выберите дело","common.open":"Открыть","delete.files":"файлов ({count})","file.namePrompt":"Введите имя файла:","file.pdfUnavailable":"Предпросмотр PDF недоступен.","file.previewUnavailable":"Предпросмотр недоступен для этого типа файлов.","case.new":"Новое дело","case.namePlaceholder":"Название дела","error.generic":"Произошла ошибка","error.invalidCredentials":"Неверный логин или пароль","error.accountBlocked":"Аккаунт заблокирован","error.emailNotConfirmed":"Email не подтверждён","error.tokenInvalid":"Неверный или просроченный токен","error.tokenExpired":"Срок действия токена истёк"},Sr={"nav.today":"Today","nav.inbox":"Inbox","nav.activity":"Activity","nav.clients":"Clients","nav.projects":"Projects","nav.recipes":"Recipes","nav.documents":"Documents","nav.archive":"Archive","nav.system":"System","nav.workspace":"Workspace","nav.noNodes":"No nodes","nav.openFolder":"Open folder","nav.createInside":"Create inside","tab.overview":"Overview","tab.notes":"Notes","tab.files":"Files","tab.actions":"Actions","tab.worklog":"Work Log","tab.activity":"Activity","common.save":"Save","common.cancel":"Cancel","common.delete":"Delete","common.rename":"Rename","common.close":"Close","common.create":"Create","common.confirm":"Confirm","common.back":"← Back","common.loading":"Loading...","common.error":"Error:","common.yes":"Yes","common.ok":"OK","common.run":"Run","common.name":"Name","common.settings":"Settings","welcome.title":"Verstak","welcome.selectSection":"Select a section in the sidebar.","welcome.addCase":"Add case","event.noteCreated":"Note created","event.noteUpdated":"Note updated","event.fileAdded":"File added","event.fileDeleted":"File deleted","event.fileRenamed":"File renamed","event.fileCopied":"File copied","event.fileMoved":"File moved","event.caseCreated":"Case created","action.openUrl":"Open URL","action.openFile":"Open file","action.openFolder":"Open folder","action.runCommand":"Run command","action.runScript":"Run script","action.openTerminal":"Open terminal","action.launchApp":"Launch app","note.add":"+ Add note","note.noNotes":"No notes","note.title":"Note title","note.placeholder":"Start writing...","file.addFile":"+ Add file","file.addFolder":"+ Add folder","file.preview":"Preview","file.openExternal":"Open in external program","file.openFolder":"Open folder","file.delete":"Delete","file.pickSingle":"Select file","file.pickDirectory":"Select folder","sync.title":"Sync","sync.settings":"Sync settings","sync.status":"Status","sync.server":"Server","sync.device":"Device","sync.connected":"Connected","sync.notConnected":"Not connected","sync.disabled":"Disabled","error.generic":"An error occurred","error.invalidCredentials":"Invalid username or password"},yl={ru:Cr,en:Sr};let gl="ru";function p(l,e){var o;const t=yl[gl];let n=t==null?void 0:t[l];if(n==null&&gl!=="ru"&&(n=(o=yl.ru)==null?void 0:o[l]),n==null&&(n=l),e!=null)for(const[s,r]of Object.entries(e))n=n.replace(`{${s}}`,String(r));return n}function Pt(l){if(l==null||l<0)return"—";if(l===0)return"0 B";const e=["B","KB","MB","GB"],t=Math.min(Math.floor(Math.log(l)/Math.log(1024)),e.length-1),n=l/Math.pow(1024,t);return(t===0?n.toFixed(0):n.toFixed(1))+" "+e[t]}const Gt={"image/jpeg":p("mime.jpeg"),"image/png":p("mime.png"),"image/gif":p("mime.gif"),"image/webp":p("mime.webp"),"image/svg+xml":p("mime.svg"),"image/bmp":p("mime.bmp"),"image/tiff":p("mime.tiff"),"image/avif":p("mime.avif"),"application/pdf":p("mime.pdf"),"application/msword":p("mime.word"),"application/vnd.openxmlformats-officedocument.wordprocessingml.document":p("mime.word"),"application/vnd.ms-excel":p("mime.excel"),"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":p("mime.excel"),"application/vnd.ms-powerpoint":p("mime.ppt"),"application/vnd.openxmlformats-officedocument.presentationml.presentation":p("mime.ppt"),"application/zip":p("mime.zip"),"application/gzip":p("mime.gzip"),"application/x-tar":p("mime.tar"),"application/x-7z-compressed":p("mime.sevenz"),"application/x-rar-compressed":p("mime.rar"),"text/plain":p("mime.text"),"text/html":p("mime.html"),"text/css":p("mime.css"),"text/javascript":p("mime.js"),"application/json":p("mime.json"),"application/xml":p("mime.xml"),"application/x-yaml":p("mime.yaml"),"application/octet-stream":p("mime.binary"),"application/x-msdos-program":p("mime.executable"),"inode/directory":p("mime.folder")};function Cl(l){return l?Gt[l]||l:p("mime.unknown")}function Tr(l){if(l.type==="folder")return p("mime.folder");const e=(l.mime||"").toLowerCase();if(Gt[e])return Gt[e];const n=(l.name||"").toLowerCase().split(".").pop();return n?n.toUpperCase():p("mime.file")}function Qn(l){if(l.type==="folder")return"folder";const e=(l.mime||"").toLowerCase();if(e.startsWith("image/"))return"image";if(e.startsWith("video/"))return"video";if(e.startsWith("audio/"))return"audio";if(e.startsWith("text/"))return"text";if(e.includes("pdf"))return"pdf";if(e.includes("word")||e.includes("document"))return"document";if(e.includes("spreadsheet")||e.includes("excel"))return"spreadsheet";if(e.includes("presentation")||e.includes("powerpoint"))return"presentation";if(e.includes("zip")||e.includes("tar")||e.includes("gzip")||e.includes("rar")||e.includes("7z")||e.includes("compress"))return"archive";if(e.includes("json")||e.includes("xml")||e.includes("yaml")||e.includes("javascript")||e.includes("css")||e.includes("html"))return"code";const n=(l.name||"").toLowerCase().split(".").pop();return["js","ts","jsx","tsx","vue","svelte","py","rs","go","c","cpp","h","hpp","java","kt","swift","rb","php","pl","sh","bash","zsh","fish","yml","yaml","json","xml","toml","ini","cfg","conf","md","markdown","css","scss","less","sass","sql","graphql","proto","gradle","cmake","makefile","dockerfile","env","gitignore"].includes(n)?"code":"generic"}const Nr=["image/jpeg","image/png","image/gif","image/webp","image/bmp","image/tiff","image/avif","image/svg+xml"],Fr=["text/plain","text/html","text/css","text/javascript","application/json","application/xml","application/x-yaml","text/x-shellscript"],Ir=["txt","log","conf","ini","yaml","yml","json","xml","csv","sh","py","js","ts","css","html","md","markdown","cfg"],Ar=["jpg","jpeg","png","gif","webp","bmp","tiff","tif","avif","svg"];function xn(l){const e=(l.mime||"").toLowerCase(),n=(l.name||"").toLowerCase().split(".").pop();return Nr.includes(e)||Ar.includes(n)}function $n(l){const e=(l.mime||"").toLowerCase(),n=(l.name||"").toLowerCase().split(".").pop();return Fr.includes(e)||Ir.includes(n)&&n!=="md"&&n!=="markdown"}function eo(l){return(l.mime||"").toLowerCase().includes("pdf")}function to(l){const e=(l.name||"").toLowerCase();return e.endsWith(".md")||e.endsWith(".markdown")}function Mr(l){return xn(l)||eo(l)}function Dr(l){return $n(l)||to(l)}function Er(l){let e,t,n,o=Pt(l[0].size)+"",s;return{c(){e=u("span"),e.textContent="·",t=k(),n=u("span"),s=A(o),i(e,"class","meta-sep svelte-1u905d2")},m(r,a){g(r,e,a),g(r,t,a),g(r,n,a),c(n,s)},p(r,a){a&1&&o!==(o=Pt(r[0].size)+"")&&V(s,o)},d(r){r&&(y(e),y(t),y(n))}}}function Lr(l){let e,t,n;return{c(){e=u("button"),e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line></svg>',i(e,"class","action-btn svelte-1u905d2"),i(e,"title",p("file.openFolder")),i(e,"aria-label",p("file.openFolder"))},m(o,s){g(o,e,s),t||(n=L(e,"click",ot(l[27])),t=!0)},p:Q,d(o){o&&y(e),t=!1,n()}}}function Pr(l){let e,t,n,o,s;return{c(){e=u("button"),e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>',t=k(),n=u("button"),n.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',i(e,"class","action-btn svelte-1u905d2"),i(e,"title",p("file.preview")),i(e,"aria-label",p("file.preview")),i(n,"class","action-btn svelte-1u905d2"),i(n,"title",p("file.openExternal")),i(n,"aria-label",p("file.openExternal"))},m(r,a){g(r,e,a),g(r,t,a),g(r,n,a),o||(s=[L(e,"click",ot(l[26])),L(n,"click",ot(l[8]))],o=!0)},p:Q,d(r){r&&(y(e),y(t),y(n)),o=!1,fe(s)}}}function Sl(l){let e,t,n,o,s,r,a,f,m=p("common.open")+"",b,v,_,h,w,T,S,C,I=p("file.openExternal")+"",F,N,R,O,D,M,B,j,P,H,q=p("common.rename")+"",J,G,U,K,ee,Y,X,Se=p("common.duplicate")+"",Ae,Ue,re,te,$,le,oe,Me,Be,qe=p("common.cut")+"",De,de,x,he,Te,Ge,Xe,Ve=p("common.copy")+"",be,He,Ie,ke,me,ie,_e,Ce,we,ze=p("common.delete")+"",Ee,We,ye,ve=l[5]&&Or(l);return{c(){e=u("div"),t=k(),n=u("div"),o=u("button"),s=z("svg"),r=z("path"),a=z("circle"),f=k(),b=A(m),v=k(),_=u("button"),h=z("svg"),w=z("path"),T=z("polyline"),S=z("line"),C=k(),F=A(I),N=k(),ve&&ve.c(),R=k(),O=u("div"),D=k(),M=u("button"),B=z("svg"),j=z("path"),P=z("path"),H=k(),J=A(q),G=k(),U=u("button"),K=z("svg"),ee=z("rect"),Y=z("path"),X=k(),Ae=A(Se),Ue=k(),re=u("button"),te=z("svg"),$=z("circle"),le=z("circle"),oe=z("line"),Me=z("line"),Be=k(),De=A(qe),de=k(),x=u("button"),he=z("svg"),Te=z("rect"),Ge=z("path"),Xe=k(),be=A(Ve),He=k(),Ie=u("div"),ke=k(),me=u("button"),ie=z("svg"),_e=z("polyline"),Ce=z("path"),we=k(),Ee=A(ze),i(e,"class","menu-backdrop svelte-1u905d2"),i(e,"role","presentation"),i(r,"d","M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"),i(a,"cx","12"),i(a,"cy","12"),i(a,"r","3"),i(s,"width","14"),i(s,"height","14"),i(s,"viewBox","0 0 24 24"),i(s,"fill","none"),i(s,"stroke","currentColor"),i(s,"stroke-width","2"),i(s,"stroke-linecap","round"),i(s,"stroke-linejoin","round"),i(o,"class","menu-item svelte-1u905d2"),i(o,"role","menuitem"),i(w,"d","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"),i(T,"points","15 3 21 3 21 9"),i(S,"x1","10"),i(S,"y1","14"),i(S,"x2","21"),i(S,"y2","3"),i(h,"width","14"),i(h,"height","14"),i(h,"viewBox","0 0 24 24"),i(h,"fill","none"),i(h,"stroke","currentColor"),i(h,"stroke-width","2"),i(h,"stroke-linecap","round"),i(h,"stroke-linejoin","round"),i(_,"class","menu-item svelte-1u905d2"),i(_,"role","menuitem"),i(O,"class","menu-sep svelte-1u905d2"),i(j,"d","M12 20h9"),i(P,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),i(B,"width","14"),i(B,"height","14"),i(B,"viewBox","0 0 24 24"),i(B,"fill","none"),i(B,"stroke","currentColor"),i(B,"stroke-width","2"),i(B,"stroke-linecap","round"),i(B,"stroke-linejoin","round"),i(M,"class","menu-item svelte-1u905d2"),i(M,"role","menuitem"),i(ee,"x","9"),i(ee,"y","9"),i(ee,"width","13"),i(ee,"height","13"),i(ee,"rx","2"),i(ee,"ry","2"),i(Y,"d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"),i(K,"width","14"),i(K,"height","14"),i(K,"viewBox","0 0 24 24"),i(K,"fill","none"),i(K,"stroke","currentColor"),i(K,"stroke-width","2"),i(K,"stroke-linecap","round"),i(K,"stroke-linejoin","round"),i(U,"class","menu-item svelte-1u905d2"),i(U,"role","menuitem"),i($,"cx","6"),i($,"cy","6"),i($,"r","3"),i(le,"cx","6"),i(le,"cy","18"),i(le,"r","3"),i(oe,"x1","20"),i(oe,"y1","4"),i(oe,"x2","8.12"),i(oe,"y2","15.88"),i(Me,"x1","8.12"),i(Me,"y1","8.12"),i(Me,"x2","20"),i(Me,"y2","20"),i(te,"width","14"),i(te,"height","14"),i(te,"viewBox","0 0 24 24"),i(te,"fill","none"),i(te,"stroke","currentColor"),i(te,"stroke-width","2"),i(te,"stroke-linecap","round"),i(te,"stroke-linejoin","round"),i(re,"class","menu-item svelte-1u905d2"),i(re,"role","menuitem"),i(Te,"x","9"),i(Te,"y","9"),i(Te,"width","13"),i(Te,"height","13"),i(Te,"rx","2"),i(Te,"ry","2"),i(Ge,"d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"),i(he,"width","14"),i(he,"height","14"),i(he,"viewBox","0 0 24 24"),i(he,"fill","none"),i(he,"stroke","currentColor"),i(he,"stroke-width","2"),i(he,"stroke-linecap","round"),i(he,"stroke-linejoin","round"),i(x,"class","menu-item svelte-1u905d2"),i(x,"role","menuitem"),i(Ie,"class","menu-sep svelte-1u905d2"),i(_e,"points","3 6 5 6 21 6"),i(Ce,"d","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"),i(ie,"width","14"),i(ie,"height","14"),i(ie,"viewBox","0 0 24 24"),i(ie,"fill","none"),i(ie,"stroke","currentColor"),i(ie,"stroke-width","2"),i(ie,"stroke-linecap","round"),i(ie,"stroke-linejoin","round"),i(me,"class","menu-item menu-item-danger svelte-1u905d2"),i(me,"role","menuitem"),i(n,"class","menu svelte-1u905d2"),i(n,"role","menu")},m(ne,Ne){g(ne,e,Ne),g(ne,t,Ne),g(ne,n,Ne),c(n,o),c(o,s),c(s,r),c(s,a),c(o,f),c(o,b),c(n,v),c(n,_),c(_,h),c(h,w),c(h,T),c(h,S),c(_,C),c(_,F),c(n,N),ve&&ve.m(n,null),c(n,R),c(n,O),c(n,D),c(n,M),c(M,B),c(B,j),c(B,P),c(M,H),c(M,J),c(n,G),c(n,U),c(U,K),c(K,ee),c(K,Y),c(U,X),c(U,Ae),c(n,Ue),c(n,re),c(re,te),c(te,$),c(te,le),c(te,oe),c(te,Me),c(re,Be),c(re,De),c(n,de),c(n,x),c(x,he),c(he,Te),c(he,Ge),c(x,Xe),c(x,be),c(n,He),c(n,Ie),c(n,ke),c(n,me),c(me,ie),c(ie,_e),c(ie,Ce),c(me,we),c(me,Ee),We||(ye=[L(e,"click",ot(l[17])),L(o,"click",l[15]),L(_,"click",l[8]),L(M,"click",l[11]),L(U,"click",l[12]),L(re,"click",l[13]),L(x,"click",l[14]),L(me,"click",l[10]),L(n,"click",ot(l[25]))],We=!0)},p(ne,Ne){ne[5]&&ve.p(ne,Ne)},d(ne){ne&&(y(e),y(t),y(n)),ve&&ve.d(),We=!1,fe(ye)}}}function Or(l){let e,t,n,o,s=p("file.showInExplorer")+"",r,a,f;return{c(){e=u("button"),t=z("svg"),n=z("path"),o=k(),r=A(s),i(n,"d","M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"),i(t,"width","14"),i(t,"height","14"),i(t,"viewBox","0 0 24 24"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"stroke-width","2"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round"),i(e,"class","menu-item svelte-1u905d2"),i(e,"role","menuitem")},m(m,b){g(m,e,b),c(e,t),c(t,n),c(e,o),c(e,r),a||(f=L(e,"click",l[9]),a=!0)},p:Q,d(m){m&&y(e),a=!1,f()}}}function jr(l){let e,t,n,o,s,r,a=l[0].name+"",f,m,b,v,_,h,w,T,S,C,I,F,N,R,O,D,M,B,j,P,H,q;n=new Zn({props:{kind:l[4],size:22}});let J=!l[5]&&Er(l);function G(Y,X){return Y[5]?Lr:Pr}let K=G(l)(l),ee=l[2]&&Sl(l);return{c(){e=u("div"),t=u("div"),nt(n.$$.fragment),o=k(),s=u("div"),r=u("div"),f=A(a),b=k(),v=u("div"),_=u("span"),_.textContent=`${l[6]}`,h=k(),J&&J.c(),w=k(),T=u("div"),K.c(),S=k(),C=u("button"),I=z("svg"),F=z("circle"),N=z("circle"),R=z("circle"),O=k(),D=u("button"),D.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>',B=k(),ee&&ee.c(),j=Qe(),i(t,"class","file-row-icon svelte-1u905d2"),i(r,"class","file-row-name svelte-1u905d2"),i(r,"title",m=l[0].name),i(v,"class","file-row-meta svelte-1u905d2"),i(s,"class","file-row-body svelte-1u905d2"),i(F,"cx","12"),i(F,"cy","5"),i(F,"r","2"),i(N,"cx","12"),i(N,"cy","12"),i(N,"r","2"),i(R,"cx","12"),i(R,"cy","19"),i(R,"r","2"),i(I,"width","16"),i(I,"height","16"),i(I,"viewBox","0 0 24 24"),i(I,"fill","currentColor"),i(C,"class","action-btn svelte-1u905d2"),i(C,"title",p("file.more")),i(C,"aria-label",p("file.more")),i(C,"aria-expanded",l[2]),i(D,"class","action-btn action-btn-danger svelte-1u905d2"),i(D,"title",p("common.delete")),i(D,"aria-label",p("common.delete")),i(T,"class","file-row-actions svelte-1u905d2"),i(e,"class","file-row svelte-1u905d2"),i(e,"role","button"),i(e,"tabindex","0"),i(e,"draggable","true"),i(e,"aria-label",M=l[5]?p("file.ariaFolder")+" "+l[0].name:p("file.ariaFile")+" "+l[0].name),wt(e,"file-row--selected",l[1])},m(Y,X){g(Y,e,X),c(e,t),et(n,t,null),c(e,o),c(e,s),c(s,r),c(r,f),c(s,b),c(s,v),c(v,_),c(v,h),J&&J.m(v,null),c(e,w),c(e,T),K.m(T,null),c(T,S),c(T,C),c(C,I),c(I,F),c(I,N),c(I,R),c(T,O),c(T,D),g(Y,B,X),ee&&ee.m(Y,X),g(Y,j,X),P=!0,H||(q=[L(window,"click",l[17]),L(C,"click",ot(l[16])),L(D,"click",ot(l[10])),L(e,"click",l[7]),L(e,"contextmenu",l[21]),L(e,"dragstart",l[18]),L(e,"dragover",l[19]),L(e,"drop",l[20])],H=!0)},p(Y,[X]){(!P||X&1)&&a!==(a=Y[0].name+"")&&V(f,a),(!P||X&1&&m!==(m=Y[0].name))&&i(r,"title",m),Y[5]||J.p(Y,X),K.p(Y,X),(!P||X&4)&&i(C,"aria-expanded",Y[2]),(!P||X&1&&M!==(M=Y[5]?p("file.ariaFolder")+" "+Y[0].name:p("file.ariaFile")+" "+Y[0].name))&&i(e,"aria-label",M),(!P||X&2)&&wt(e,"file-row--selected",Y[1]),Y[2]?ee?ee.p(Y,X):(ee=Sl(Y),ee.c(),ee.m(j.parentNode,j)):ee&&(ee.d(1),ee=null)},i(Y){P||(se(n.$$.fragment,Y),P=!0)},o(Y){pe(n.$$.fragment,Y),P=!1},d(Y){Y&&(y(e),y(B),y(j)),tt(n),J&&J.d(),K.d(),ee&&ee.d(Y),H=!1,fe(q)}}}function Br(l,e,t){let{item:n}=e,{selected:o=!1}=e,{onDragStart:s}=e,{onDragOver:r}=e,{onDrop:a}=e;const f=Ot(),m=Qn(n),b=n.type==="folder",v=Tr(n);let _=!1,h=null;function w(U){U.ctrlKey||U.metaKey?f("toggleSelect",n.id):U.shiftKey?f("rangeSelect",n.id):h?(clearTimeout(h),h=null,b?f("navigate",n.id):f("preview",n)):h=setTimeout(()=>{h=null,f("selectOne",n.id)},250)}function T(){f("openExternal",n.fileId)}function S(){f("showInFolder",n.id)}function C(){t(2,_=!1),f("delete",{id:n.id,type:n.type})}function I(){t(2,_=!1),f("rename",{id:n.id,name:n.name})}function F(){t(2,_=!1),f("duplicate",n.id)}function N(){t(2,_=!1),f("cut",n.id)}function R(){t(2,_=!1),f("copy",n.id)}function O(){t(2,_=!1),b?f("navigate",n.id):f("preview",n)}function D(){t(2,_=!_)}function M(){t(2,_=!1)}function B(U){s&&s(U,n.id)}function j(U){r&&b&&r(U,n.id)}function P(U){a&&b&&a(U,n.id)}function H(U){U.preventDefault(),t(2,_=!0)}function q(U){er.call(this,l,U)}const J=()=>f("preview",n),G=()=>f("navigate",n.id);return l.$$set=U=>{"item"in U&&t(0,n=U.item),"selected"in U&&t(1,o=U.selected),"onDragStart"in U&&t(22,s=U.onDragStart),"onDragOver"in U&&t(23,r=U.onDragOver),"onDrop"in U&&t(24,a=U.onDrop)},[n,o,_,f,m,b,v,w,T,S,C,I,F,N,R,O,D,M,B,j,P,H,s,r,a,q,J,G]}class zr extends ut{constructor(e){super(),ft(this,e,Br,jr,ct,{item:0,selected:1,onDragStart:22,onDragOver:23,onDrop:24})}}function Tl(l,e,t){const n=l.slice();return n[4]=e[t],n[6]=t,n}function Rr(l){let e;return{c(){e=u("span"),e.textContent="/",i(e,"class","sep svelte-csi2lb")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function Ur(l){let e,t=l[4].name+"",n,o,s;function r(){return l[2](l[6])}return{c(){e=u("button"),n=A(t),i(e,"class","crumb crumb--link svelte-csi2lb")},m(a,f){g(a,e,f),c(e,n),o||(s=L(e,"click",r),o=!0)},p(a,f){l=a,f&1&&t!==(t=l[4].name+"")&&V(n,t)},d(a){a&&y(e),o=!1,s()}}}function Vr(l){let e,t=l[4].name+"",n;return{c(){e=u("span"),n=A(t),i(e,"class","crumb crumb--current svelte-csi2lb")},m(o,s){g(o,e,s),c(e,n)},p(o,s){s&1&&t!==(t=o[4].name+"")&&V(n,t)},d(o){o&&y(e)}}}function Nl(l){let e,t,n=l[6]>0&&Rr();function o(a,f){return a[6]===a[0].length-1?Vr:Ur}let s=o(l),r=s(l);return{c(){n&&n.c(),e=k(),r.c(),t=Qe()},m(a,f){n&&n.m(a,f),g(a,e,f),r.m(a,f),g(a,t,f)},p(a,f){s===(s=o(a))&&r?r.p(a,f):(r.d(1),r=s(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){a&&(y(e),y(t)),n&&n.d(a),r.d(a)}}}function Hr(l){let e,t=ce(l[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Nl(Tl(l,t,o));return{c(){e=u("nav");for(let o=0;o<n.length;o+=1)n[o].c();i(e,"class","breadcrumbs svelte-csi2lb")},m(o,s){g(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[s]){if(s&3){t=ce(o[0]);let r;for(r=0;r<t.length;r+=1){const a=Tl(o,t,r);n[r]?n[r].p(a,s):(n[r]=Nl(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:Q,o:Q,d(o){o&&y(e),je(n,o)}}}function Wr(l,e,t){let{crumbs:n=[]}=e;const o=Ot();function s(a){o("navigate",a)}const r=a=>s(a);return l.$$set=a=>{"crumbs"in a&&t(0,n=a.crumbs)},[n,s,r]}class lo extends ut{constructor(e){super(),ft(this,e,Wr,Hr,ct,{crumbs:0})}}function Kr(l){let e,t,n,o,s,r;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("file.previewUnavailable")}`,n=k(),o=u("button"),o.textContent=`${p("file.openExternal")}`,i(o,"class","btn btn-sm svelte-1cw3u0m"),i(e,"class","preview-status svelte-1cw3u0m")},m(a,f){g(a,e,f),c(e,t),c(e,n),c(e,o),s||(r=L(o,"click",l[9]),s=!0)},p:Q,d(a){a&&y(e),s=!1,r()}}}function qr(l){let e,t;function n(r,a){return a&2&&(e=null),e==null&&(e=!!(r[1]&&r[1].startsWith("data:"))),e?Qr:Zr}let o=n(l,-1),s=o(l);return{c(){s.c(),t=Qe()},m(r,a){s.m(r,a),g(r,t,a)},p(r,a){o===(o=n(r,a))&&s?s.p(r,a):(s.d(1),s=o(r),s&&(s.c(),s.m(t.parentNode,t)))},d(r){r&&y(t),s.d(r)}}}function Gr(l){let e,t,n;return{c(){e=u("pre"),t=u("code"),n=A(l[1]),i(e,"class","preview-text svelte-1cw3u0m")},m(o,s){g(o,e,s),c(e,t),c(t,n)},p(o,s){s&2&&V(n,o[1])},d(o){o&&y(e)}}}function Xr(l){let e,t,n,o;return{c(){e=u("div"),t=u("img"),Dt(t.src,n=l[1])||i(t,"src",n),i(t,"alt",o=l[0].name),i(t,"class","preview-image svelte-1cw3u0m"),i(e,"class","preview-image-container svelte-1cw3u0m")},m(s,r){g(s,e,r),c(e,t)},p(s,r){r&2&&!Dt(t.src,n=s[1])&&i(t,"src",n),r&1&&o!==(o=s[0].name)&&i(t,"alt",o)},d(s){s&&y(e)}}}function Jr(l){let e,t,n,o,s,r,a;return{c(){e=u("div"),t=u("p"),n=A(l[3]),o=k(),s=u("button"),s.textContent=`${p("file.openExternal")}`,i(s,"class","btn btn-sm svelte-1cw3u0m"),i(e,"class","preview-status svelte-1cw3u0m")},m(f,m){g(f,e,m),c(e,t),c(t,n),c(e,o),c(e,s),r||(a=L(s,"click",l[9]),r=!0)},p(f,m){m&8&&V(n,f[3])},d(f){f&&y(e),r=!1,a()}}}function Yr(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("common.loading")}`,i(e,"class","preview-status svelte-1cw3u0m")},m(n,o){g(n,e,o),c(e,t)},p:Q,d(n){n&&y(e)}}}function Zr(l){let e,t,n,o,s,r;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("file.pdfUnavailable")}`,n=k(),o=u("button"),o.textContent=`${p("file.openExternal")}`,i(o,"class","btn btn-sm svelte-1cw3u0m"),i(e,"class","preview-status svelte-1cw3u0m")},m(a,f){g(a,e,f),c(e,t),c(e,n),c(e,o),s||(r=L(o,"click",l[9]),s=!0)},p:Q,d(a){a&&y(e),s=!1,r()}}}function Qr(l){let e,t,n;return{c(){e=u("div"),t=u("embed"),Dt(t.src,n=l[1])||i(t,"src",n),i(t,"type","application/pdf"),i(t,"class","preview-pdf svelte-1cw3u0m"),i(e,"class","preview-pdf-container svelte-1cw3u0m")},m(o,s){g(o,e,s),c(e,t)},p(o,s){s&2&&!Dt(t.src,n=o[1])&&i(t,"src",n)},d(o){o&&y(e)}}}function xr(l){let e,t,n,o,s,r,a,f=l[0].name+"",m,b,v,_,h=Pt(l[0].size)+"",w,T,S=Cl(l[0].mime)+"",C,I,F,N,R,O,D,M,B,j,P,H;s=new Zn({props:{kind:l[8],size:18}});function q(U,K){return U[2]?Yr:U[3]?Jr:U[6]&&U[1]?Xr:U[5]&&U[1]?Gr:U[4]?qr:Kr}let J=q(l),G=J(l);return{c(){e=u("div"),t=u("div"),n=u("header"),o=u("div"),nt(s.$$.fragment),r=k(),a=u("span"),m=A(f),v=k(),_=u("div"),w=A(h),T=A(" · "),C=A(S),I=k(),F=u("div"),N=u("button"),N.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',R=k(),O=u("button"),O.innerHTML='<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',D=k(),M=u("div"),G.c(),i(a,"class","preview-name svelte-1cw3u0m"),i(a,"title",b=l[0].name),i(o,"class","preview-title svelte-1cw3u0m"),i(_,"class","preview-meta svelte-1cw3u0m"),i(N,"class","action-btn svelte-1cw3u0m"),i(N,"title",p("file.openExternal")),i(N,"aria-label",p("file.openExternal")),i(O,"class","action-btn action-btn-close svelte-1cw3u0m"),i(O,"title","Close"),i(O,"aria-label","Close preview"),i(F,"class","preview-actions svelte-1cw3u0m"),i(n,"class","preview-header svelte-1cw3u0m"),i(M,"class","preview-body svelte-1cw3u0m"),i(t,"class","modal svelte-1cw3u0m"),i(e,"class","overlay svelte-1cw3u0m"),i(e,"role","dialog"),i(e,"aria-modal","true"),i(e,"aria-label",B=`Preview: ${l[0].name}`)},m(U,K){g(U,e,K),c(e,t),c(t,n),c(n,o),et(s,o,null),c(o,r),c(o,a),c(a,m),c(n,v),c(n,_),c(_,w),c(_,T),c(_,C),c(n,I),c(n,F),c(F,N),c(F,R),c(F,O),c(t,D),c(t,M),G.m(M,null),j=!0,P||(H=[L(N,"click",l[9]),L(O,"click",l[10]),L(e,"click",at(l[11]))],P=!0)},p(U,[K]){(!j||K&1)&&f!==(f=U[0].name+"")&&V(m,f),(!j||K&1&&b!==(b=U[0].name))&&i(a,"title",b),(!j||K&1)&&h!==(h=Pt(U[0].size)+"")&&V(w,h),(!j||K&1)&&S!==(S=Cl(U[0].mime)+"")&&V(C,S),J===(J=q(U))&&G?G.p(U,K):(G.d(1),G=J(U),G&&(G.c(),G.m(M,null))),(!j||K&1&&B!==(B=`Preview: ${U[0].name}`))&&i(e,"aria-label",B)},i(U){j||(se(s.$$.fragment,U),j=!0)},o(U){pe(s.$$.fragment,U),j=!1},d(U){U&&y(e),tt(s),G.d(),P=!1,fe(H)}}}function $r(l,e,t){let n,o,s,{item:r}=e,{content:a=""}=e,{loading:f=!1}=e,{error:m=""}=e;const b=Ot(),v=Qn(r);function _(S){S.key==="Escape"&&b("close")}function h(){b("openExternal",r.fileId)}Xn(()=>{window.addEventListener("keydown",_)}),Jn(()=>{window.removeEventListener("keydown",_)});const w=()=>b("close"),T=()=>b("close");return l.$$set=S=>{"item"in S&&t(0,r=S.item),"content"in S&&t(1,a=S.content),"loading"in S&&t(2,f=S.loading),"error"in S&&t(3,m=S.error)},l.$$.update=()=>{l.$$.dirty&3&&t(6,n=xn(r)&&a&&a.startsWith("data:")),l.$$.dirty&1&&t(5,o=$n(r)||to(r)),l.$$.dirty&1&&t(4,s=eo(r))},[r,a,f,m,s,o,n,b,v,h,w,T]}class es extends ut{constructor(e){super(),ft(this,e,$r,xr,ct,{item:0,content:1,loading:2,error:3})}}function ts(l){let e,t,n,o,s,r,a,f,m,b,v,_,h,w,T,S,C;return{c(){e=u("div"),t=u("div"),n=u("h3"),o=A(l[0]),s=k(),r=u("p"),a=A(l[1]),f=k(),m=u("div"),b=u("button"),v=A(l[2]),h=k(),w=u("button"),T=A(l[3]),i(n,"class","svelte-1fv6yyk"),i(r,"class","message svelte-1fv6yyk"),i(b,"class",_="btn "+(l[4]?"btn-danger":"btn-primary")+" svelte-1fv6yyk"),i(w,"class","btn svelte-1fv6yyk"),i(m,"class","actions svelte-1fv6yyk"),i(t,"class","modal svelte-1fv6yyk"),i(e,"class","overlay svelte-1fv6yyk"),i(e,"role","dialog"),i(e,"aria-modal","true"),i(e,"aria-label",l[0])},m(I,F){g(I,e,F),c(e,t),c(t,n),c(n,o),c(t,s),c(t,r),c(r,a),c(t,f),c(t,m),c(m,b),c(b,v),c(m,h),c(m,w),c(w,T),S||(C=[L(b,"click",l[6]),L(w,"click",l[7]),L(e,"click",at(l[8]))],S=!0)},p(I,[F]){F&1&&V(o,I[0]),F&2&&V(a,I[1]),F&4&&V(v,I[2]),F&16&&_!==(_="btn "+(I[4]?"btn-danger":"btn-primary")+" svelte-1fv6yyk")&&i(b,"class",_),F&8&&V(T,I[3]),F&1&&i(e,"aria-label",I[0])},i:Q,o:Q,d(I){I&&y(e),S=!1,fe(C)}}}function ls(l,e,t){let{title:n=p("common.confirm")}=e,{message:o=""}=e,{confirmText:s=p("common.delete")}=e,{cancelText:r=p("common.cancel")}=e,{danger:a=!1}=e;const f=Ot(),m=()=>f("confirm"),b=()=>f("cancel"),v=()=>f("cancel");return l.$$set=_=>{"title"in _&&t(0,n=_.title),"message"in _&&t(1,o=_.message),"confirmText"in _&&t(2,s=_.confirmText),"cancelText"in _&&t(3,r=_.cancelText),"danger"in _&&t(4,a=_.danger)},[n,o,s,r,a,f,m,b,v]}class ns extends ut{constructor(e){super(),ft(this,e,ls,ts,ct,{title:0,message:1,confirmText:2,cancelText:3,danger:4})}}function Fl(l,e,t){const n=l.slice();return n[10]=e[t],n}function os(l){let e;return{c(){e=u("span"),i(e,"class","tree-spacer")},m(t,n){g(t,e,n)},p:Q,d(t){t&&y(e)}}}function is(l){let e,t=l[1][l[10].id]?"▼":"▶",n;return{c(){e=u("span"),n=A(t),i(e,"class","tree-arrow")},m(o,s){g(o,e,s),c(e,n)},p(o,s){s&3&&t!==(t=o[1][o[10].id]?"▼":"▶")&&V(n,t)},d(o){o&&y(e)}}}function Il(l){let e,t;return e=new no({props:{nodes:l[10].children,expanded:l[1],selectedNodeId:l[2],level:l[3]+1,onSelect:l[4],onToggle:l[5],onContextMenu:l[6]}}),{c(){nt(e.$$.fragment)},m(n,o){et(e,n,o),t=!0},p(n,o){const s={};o&1&&(s.nodes=n[10].children),o&2&&(s.expanded=n[1]),o&4&&(s.selectedNodeId=n[2]),o&8&&(s.level=n[3]+1),o&16&&(s.onSelect=n[4]),o&32&&(s.onToggle=n[5]),o&64&&(s.onContextMenu=n[6]),e.$set(s)},i(n){t||(se(e.$$.fragment,n),t=!0)},o(n){pe(e.$$.fragment,n),t=!1},d(n){tt(e,n)}}}function Al(l){let e,t,n,o,s=l[10].title+"",r,a,f,m,b,v;function _(F,N){return F[10].children&&F[10].children.length>0?is:os}let h=_(l),w=h(l);function T(){return l[7](l[10])}function S(){return l[8](l[10])}function C(...F){return l[9](l[10],...F)}let I=l[1][l[10].id]&&l[10].children&&l[10].children.length>0&&Il(l);return{c(){e=u("div"),t=u("button"),w.c(),n=k(),o=u("span"),r=A(s),a=k(),I&&I.c(),f=Qe(),i(t,"class","tree-toggle"),i(o,"class","tree-label"),i(e,"class","tree-item"),Re(e,"padding-left",l[3]*16+8+"px"),wt(e,"selected",l[2]===l[10].id)},m(F,N){g(F,e,N),c(e,t),w.m(t,null),c(e,n),c(e,o),c(o,r),g(F,a,N),I&&I.m(F,N),g(F,f,N),m=!0,b||(v=[L(t,"click",T),L(t,"contextmenu",At(ss)),L(o,"click",S),L(o,"contextmenu",At(cs)),L(e,"contextmenu",At(C))],b=!0)},p(F,N){l=F,h===(h=_(l))&&w?w.p(l,N):(w.d(1),w=h(l),w&&(w.c(),w.m(t,null))),(!m||N&1)&&s!==(s=l[10].title+"")&&V(r,s),(!m||N&8)&&Re(e,"padding-left",l[3]*16+8+"px"),(!m||N&5)&&wt(e,"selected",l[2]===l[10].id),l[1][l[10].id]&&l[10].children&&l[10].children.length>0?I?(I.p(l,N),N&3&&se(I,1)):(I=Il(l),I.c(),se(I,1),I.m(f.parentNode,f)):I&&(Ye(),pe(I,1,1,()=>{I=null}),Ze())},i(F){m||(se(I),m=!0)},o(F){pe(I),m=!1},d(F){F&&(y(e),y(a),y(f)),w.d(),I&&I.d(F),b=!1,fe(v)}}}function rs(l){let e,t,n=ce(l[0]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Al(Fl(l,n,r));const s=r=>pe(o[r],1,1,()=>{o[r]=null});return{c(){for(let r=0;r<o.length;r+=1)o[r].c();e=Qe()},m(r,a){for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(r,a);g(r,e,a),t=!0},p(r,[a]){if(a&127){n=ce(r[0]);let f;for(f=0;f<n.length;f+=1){const m=Fl(r,n,f);o[f]?(o[f].p(m,a),se(o[f],1)):(o[f]=Al(m),o[f].c(),se(o[f],1),o[f].m(e.parentNode,e))}for(Ye(),f=n.length;f<o.length;f+=1)s(f);Ze()}},i(r){if(!t){for(let a=0;a<n.length;a+=1)se(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)pe(o[a]);t=!1},d(r){r&&y(e),je(o,r)}}}const ss=l=>l.stopPropagation(),cs=l=>l.stopPropagation();function as(l,e,t){let{nodes:n=[]}=e,{expanded:o={}}=e,{selectedNodeId:s=""}=e,{level:r=0}=e,{onSelect:a}=e,{onToggle:f}=e,{onContextMenu:m}=e;const b=h=>f&&f(h.id),v=h=>a&&a(h),_=(h,w)=>m&&m(w,h);return l.$$set=h=>{"nodes"in h&&t(0,n=h.nodes),"expanded"in h&&t(1,o=h.expanded),"selectedNodeId"in h&&t(2,s=h.selectedNodeId),"level"in h&&t(3,r=h.level),"onSelect"in h&&t(4,a=h.onSelect),"onToggle"in h&&t(5,f=h.onToggle),"onContextMenu"in h&&t(6,m=h.onContextMenu)},[n,o,s,r,a,f,m,b,v,_]}class no extends ut{constructor(e){super(),ft(this,e,as,rs,ct,{nodes:0,expanded:1,selectedNodeId:2,level:3,onSelect:4,onToggle:5,onContextMenu:6})}}function Ml(l,e,t){const n=l.slice();return n[212]=e[t],n}function Dl(l,e,t){const n=l.slice();return n[215]=e[t],n}function El(l,e,t){const n=l.slice();return n[234]=e[t],n}function Ll(l,e,t){const n=l.slice();return n[234]=e[t],n}function Pl(l,e,t){const n=l.slice();return n[242]=e[t],n}function Ol(l,e,t){const n=l.slice();return n[234]=e[t],n}function jl(l,e,t){const n=l.slice();return n[234]=e[t],n}function Bl(l,e,t){const n=l.slice();return n[218]=e[t],n}function zl(l,e,t){const n=l.slice();return n[229]=e[t],n}function Rl(l,e,t){const n=l.slice();return n[226]=e[t],n}function Ul(l,e,t){const n=l.slice();return n[221]=e[t],n}function Vl(l,e,t){const n=l.slice();return n[218]=e[t],n}function Hl(l,e,t){const n=l.slice();return n[221]=e[t],n}function Wl(l,e,t){const n=l.slice();return n[237]=e[t],n}function Kl(l,e,t){const n=l.slice();return n[249]=e[t],n}function ql(l,e,t){const n=l.slice();return n[252]=e[t],n}function Gl(l){let e,t=l[252].label+"",n,o,s,r,a;function f(){return l[125](l[252])}return{c(){e=u("button"),n=A(t),o=k(),i(e,"class",s="nav-item "+(l[8]===l[252].id?"selected":"")+" svelte-owriro")},m(m,b){g(m,e,b),c(e,n),c(e,o),r||(a=L(e,"click",f),r=!0)},p(m,b){l=m,b[0]&1&&t!==(t=l[252].label+"")&&V(n,t),b[0]&257&&s!==(s="nav-item "+(l[8]===l[252].id?"selected":"")+" svelte-owriro")&&i(e,"class",s)},d(m){m&&y(e),r=!1,a()}}}function fs(l){let e;return{c(){e=u("div"),e.textContent=`${p("nav.noNodes")}`,i(e,"class","nav-empty svelte-owriro")},m(t,n){g(t,e,n)},p:Q,i:Q,o:Q,d(t){t&&y(e)}}}function us(l){var n;let e,t;return e=new no({props:{nodes:l[1],expanded:l[32],selectedNodeId:((n=l[9])==null?void 0:n.id)||"",onSelect:l[62],onToggle:l[92],onContextMenu:l[90]}}),{c(){nt(e.$$.fragment)},m(o,s){et(e,o,s),t=!0},p(o,s){var a;const r={};s[0]&2&&(r.nodes=o[1]),s[1]&2&&(r.expanded=o[32]),s[0]&512&&(r.selectedNodeId=((a=o[9])==null?void 0:a.id)||""),e.$set(r)},i(o){t||(se(e.$$.fragment,o),t=!0)},o(o){pe(e.$$.fragment,o),t=!1},d(o){tt(e,o)}}}function ds(l){let e;return{c(){e=u("span"),e.textContent=`${p("nav.selectPrompt")}`,i(e,"class","crumb placeholder svelte-owriro")},m(t,n){g(t,e,n)},p:Q,d(t){t&&y(e)}}}function ms(l){let e,t=ce(l[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Xl(Kl(l,t,o));return{c(){e=u("span");for(let o=0;o<n.length;o+=1)n[o].c();i(e,"class","crumb svelte-owriro")},m(o,s){g(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,s){if(s[0]&257){t=ce(o[0]);let r;for(r=0;r<t.length;r+=1){const a=Kl(o,t,r);n[r]?n[r].p(a,s):(n[r]=Xl(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function ps(l){let e,t=l[9].title+"",n,o,s,r=l[9].type+"",a;return{c(){e=u("span"),n=A(t),o=k(),s=u("span"),a=A(r),i(e,"class","crumb svelte-owriro"),i(s,"class","crumb-type svelte-owriro")},m(f,m){g(f,e,m),c(e,n),g(f,o,m),g(f,s,m),c(s,a)},p(f,m){m[0]&512&&t!==(t=f[9].title+"")&&V(n,t),m[0]&512&&r!==(r=f[9].type+"")&&V(a,r)},d(f){f&&(y(e),y(o),y(s))}}}function Xl(l){let e=(l[249].id===l[8]?l[249].label:"")+"",t;return{c(){t=A(e)},m(n,o){g(n,t,o)},p(n,o){o[0]&257&&e!==(e=(n[249].id===n[8]?n[249].label:"")+"")&&V(t,e)},d(n){n&&y(t)}}}function Jl(l){let e,t,n,o,s,r,a,f,m=l[52].unpushedOps>0&&Yl(l);return{c(){e=u("button"),t=z("svg"),n=z("polyline"),o=z("polyline"),s=z("path"),r=k(),m&&m.c(),i(n,"points","23 4 23 10 17 10"),i(n,"class","svelte-owriro"),i(o,"points","1 20 1 14 7 14"),i(o,"class","svelte-owriro"),i(s,"d","M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"),i(s,"class","svelte-owriro"),i(t,"width","16"),i(t,"height","16"),i(t,"viewBox","0 0 24 24"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"stroke-width","2"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round"),i(t,"class","svelte-owriro"),i(e,"class","header-sync-btn svelte-owriro"),e.disabled=l[53],i(e,"title",p("nav.syncNow"))},m(b,v){g(b,e,v),c(e,t),c(t,n),c(t,o),c(t,s),c(e,r),m&&m.m(e,null),a||(f=L(e,"click",l[124]),a=!0)},p(b,v){b[52].unpushedOps>0?m?m.p(b,v):(m=Yl(b),m.c(),m.m(e,null)):m&&(m.d(1),m=null),v[1]&4194304&&(e.disabled=b[53])},d(b){b&&y(e),m&&m.d(),a=!1,f()}}}function Yl(l){let e,t=l[52].unpushedOps+"",n;return{c(){e=u("span"),n=A(t),i(e,"class","sync-badge svelte-owriro")},m(o,s){g(o,e,s),c(e,n)},p(o,s){s[1]&2097152&&t!==(t=o[52].unpushedOps+"")&&V(n,t)},d(o){o&&y(e)}}}function Zl(l){let e,t,n,o,s,r;return{c(){e=u("div"),t=A(l[7]),n=k(),o=u("button"),o.innerHTML='<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-owriro"><line x1="18" y1="6" x2="6" y2="18" class="svelte-owriro"></line><line x1="6" y1="6" x2="18" y2="18" class="svelte-owriro"></line></svg>',i(o,"class","dismiss-btn svelte-owriro"),i(o,"aria-label","Dismiss"),i(e,"class","error-banner svelte-owriro")},m(a,f){g(a,e,f),c(e,t),c(e,n),c(e,o),s||(r=[L(o,"click",ot(l[126])),L(e,"click",l[127])],s=!0)},p(a,f){f[0]&128&&V(t,a[7])},d(a){a&&y(e),s=!1,fe(r)}}}function _s(l){let e,t,n;function o(a,f){if(a[28])return gs;if(a[0].length>0)return ys;if(a[7])return ks}let s=o(l),r=s&&s(l);return{c(){e=u("div"),t=u("h2"),t.textContent=`${p("welcome.title")}`,n=k(),r&&r.c(),i(t,"class","svelte-owriro"),i(e,"class","welcome svelte-owriro")},m(a,f){g(a,e,f),c(e,t),c(e,n),r&&r.m(e,null)},p(a,f){s===(s=o(a))&&r?r.p(a,f):(r&&r.d(1),r=s&&s(a),r&&(r.c(),r.m(e,null)))},i:Q,o:Q,d(a){a&&y(e),r&&r.d()}}}function vs(l){let e,t,n,o;function s(f,m){return f[4].length===0?Ss:Cs}let r=s(l),a=r(l);return{c(){e=u("div"),t=u("div"),n=u("h2"),n.textContent=`${p("activity.title")}`,o=k(),a.c(),i(n,"class","svelte-owriro"),i(t,"class","activity-feed-header svelte-owriro"),i(e,"class","activity-feed svelte-owriro")},m(f,m){g(f,e,m),c(e,t),c(t,n),c(e,o),a.m(e,null)},p(f,m){r===(r=s(f))&&a?a.p(f,m):(a.d(1),a=r(f),a&&(a.c(),a.m(e,null)))},i:Q,o:Q,d(f){f&&y(e),a.d()}}}function hs(l){let e,t,n,o,s,r=l[3].date+"",a,f,m,b=l[3].summary&&$l(l);function v(w,T){return w[3].groups&&w[3].groups.length>0?Ns:Ts}let _=v(l),h=_(l);return{c(){e=u("div"),t=u("div"),n=u("h2"),n.textContent=`${p("today.title")}`,o=k(),s=u("span"),a=A(r),f=k(),b&&b.c(),m=k(),h.c(),i(n,"class","svelte-owriro"),i(s,"class","today-date svelte-owriro"),i(t,"class","today-header svelte-owriro"),i(e,"class","today-dashboard svelte-owriro")},m(w,T){g(w,e,T),c(e,t),c(t,n),c(t,o),c(t,s),c(s,a),c(e,f),b&&b.m(e,null),c(e,m),h.m(e,null)},p(w,T){T[0]&8&&r!==(r=w[3].date+"")&&V(a,r),w[3].summary?b?b.p(w,T):(b=$l(w),b.c(),b.m(e,m)):b&&(b.d(1),b=null),_===(_=v(w))&&h?h.p(w,T):(h.d(1),h=_(w),h&&(h.c(),h.m(e,null)))},i:Q,o:Q,d(w){w&&y(e),b&&b.d(),h.d()}}}function ws(l){let e,t,n,o,s,r,a=ce(l[60]),f=[];for(let _=0;_<a.length;_+=1)f[_]=fn(Wl(l,a,_));const m=[Ps,Ls,Es,Ds,Ms,As],b=[];function v(_,h){return _[10]==="overview"?0:_[10]==="notes"?1:_[10]==="files"?2:_[10]==="actions"?3:_[10]==="worklog"?4:_[10]==="activity"?5:-1}return~(o=v(l))&&(s=b[o]=m[o](l)),{c(){e=u("div");for(let _=0;_<f.length;_+=1)f[_].c();t=k(),n=u("div"),s&&s.c(),i(e,"class","tabs svelte-owriro"),i(n,"class","tab-content svelte-owriro")},m(_,h){g(_,e,h);for(let w=0;w<f.length;w+=1)f[w]&&f[w].m(e,null);g(_,t,h),g(_,n,h),~o&&b[o].m(n,null),r=!0},p(_,h){if(h[0]&1536|h[1]&536870952|h[2]&2|h[3]&65536){a=ce(_[60]);let T;for(T=0;T<a.length;T+=1){const S=Wl(_,a,T);f[T]?f[T].p(S,h):(f[T]=fn(S),f[T].c(),f[T].m(e,null))}for(;T<f.length;T+=1)f[T].d(1);f.length=a.length}let w=o;o=v(_),o===w?~o&&b[o].p(_,h):(s&&(Ye(),pe(b[w],1,1,()=>{b[w]=null}),Ze()),~o?(s=b[o],s?s.p(_,h):(s=b[o]=m[o](_),s.c()),se(s,1),s.m(n,null)):s=null)},i(_){r||(se(s),r=!0)},o(_){pe(s),r=!1},d(_){_&&(y(e),y(t),y(n)),je(f,_),~o&&b[o].d()}}}function bs(l){let e,t,n,o=l[12].title+"",s,r,a,f,m,b,v,_,h,w,T,S=l[12].dirty&&Tn();return{c(){e=u("div"),t=u("div"),n=u("span"),s=A(o),r=k(),S&&S.c(),a=k(),f=u("div"),m=u("button"),m.textContent=`${p("common.save")}`,b=k(),v=u("button"),v.textContent=`${p("common.close")}`,_=k(),h=u("textarea"),i(n,"class","note-title svelte-owriro"),i(m,"class","btn btn-primary svelte-owriro"),i(v,"class","btn svelte-owriro"),i(f,"class","note-editor-actions svelte-owriro"),i(t,"class","note-editor-header svelte-owriro"),i(h,"class","note-textarea svelte-owriro"),i(h,"placeholder",p("note.placeholder")),i(e,"class","note-editor svelte-owriro")},m(C,I){g(C,e,I),c(e,t),c(t,n),c(n,s),c(t,r),S&&S.m(t,null),c(t,a),c(t,f),c(f,m),c(f,b),c(f,v),c(e,_),c(e,h),ge(h,l[12].content),w||(T=[L(m,"click",l[102]),L(v,"click",l[100]),L(h,"input",l[128]),L(h,"input",l[101])],w=!0)},p(C,I){I[0]&4096&&o!==(o=C[12].title+"")&&V(s,o),C[12].dirty?S||(S=Tn(),S.c(),S.m(t,a)):S&&(S.d(1),S=null),I[0]&4096&&ge(h,C[12].content)},i:Q,o:Q,d(C){C&&y(e),S&&S.d(),w=!1,fe(T)}}}function ks(l){let e,t=p("common.error")+"",n,o,s;return{c(){e=u("p"),n=A(t),o=k(),s=A(l[7]),i(e,"class","error-text svelte-owriro")},m(r,a){g(r,e,a),c(e,n),c(e,o),c(e,s)},p(r,a){a[0]&128&&V(s,r[7])},d(r){r&&y(e)}}}function ys(l){let e,t,n;return{c(){e=u("p"),e.textContent=`${p("welcome.selectSection")}`,t=k(),n=u("p"),n.textContent=`${p("welcome.createCase")}`,i(e,"class","svelte-owriro"),i(n,"class","hint svelte-owriro")},m(o,s){g(o,e,s),g(o,t,s),g(o,n,s)},p:Q,d(o){o&&(y(e),y(t),y(n))}}}function gs(l){let e;return{c(){e=u("p"),e.textContent=`${p("common.loading")}`,i(e,"class","svelte-owriro")},m(t,n){g(t,e,n)},p:Q,d(t){t&&y(e)}}}function Cs(l){let e,t=ce(l[4]),n=[];for(let o=0;o<t.length;o+=1)n[o]=xl(El(l,t,o));return{c(){e=u("div");for(let o=0;o<n.length;o+=1)n[o].c();i(e,"class","activity-feed-events svelte-owriro")},m(o,s){g(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,s){if(s[0]&16|s[3]&16908288){t=ce(o[4]);let r;for(r=0;r<t.length;r+=1){const a=El(o,t,r);n[r]?n[r].p(a,s):(n[r]=xl(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function Ss(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("activity.empty")}`,i(t,"class","svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},p:Q,d(n){n&&y(e)}}}function Ql(l){let e,t=l[234].targetType+"",n;return{c(){e=u("span"),n=A(t),i(e,"class","activity-feed-target svelte-owriro")},m(o,s){g(o,e,s),c(e,n)},p(o,s){s[0]&16&&t!==(t=o[234].targetType+"")&&V(n,t)},d(o){o&&y(e)}}}function xl(l){let e,t,n=bt(l[234].eventType)+"",o,s,r,a,f=l[234].title+"",m,b,v,_,h=l[110](l[234].eventType)+"",w,T,S,C,I=$e(l[234].createdAt)+"",F,N,R=xe(l[234].createdAt)+"",O,D,M,B,j=l[234].targetType&&Ql(l);function P(){return l[161](l[234])}function H(...q){return l[162](l[234],...q)}return{c(){e=u("div"),t=u("span"),o=A(n),s=k(),r=u("div"),a=u("span"),m=A(f),b=k(),v=u("div"),_=u("span"),w=A(h),T=k(),j&&j.c(),S=k(),C=u("span"),F=A(I),N=k(),O=A(R),D=k(),i(t,"class","activity-feed-icon svelte-owriro"),i(a,"class","activity-feed-title svelte-owriro"),i(_,"class","activity-feed-type svelte-owriro"),i(C,"class","activity-feed-time svelte-owriro"),i(v,"class","activity-feed-meta svelte-owriro"),i(r,"class","activity-feed-body svelte-owriro"),i(e,"class","activity-feed-event svelte-owriro"),i(e,"role","button"),i(e,"tabindex","0")},m(q,J){g(q,e,J),c(e,t),c(t,o),c(e,s),c(e,r),c(r,a),c(a,m),c(r,b),c(r,v),c(v,_),c(_,w),c(v,T),j&&j.m(v,null),c(v,S),c(v,C),c(C,F),c(C,N),c(C,O),c(e,D),M||(B=[L(e,"click",P),L(e,"keydown",H)],M=!0)},p(q,J){l=q,J[0]&16&&n!==(n=bt(l[234].eventType)+"")&&V(o,n),J[0]&16&&f!==(f=l[234].title+"")&&V(m,f),J[0]&16&&h!==(h=l[110](l[234].eventType)+"")&&V(w,h),l[234].targetType?j?j.p(l,J):(j=Ql(l),j.c(),j.m(v,S)):j&&(j.d(1),j=null),J[0]&16&&I!==(I=$e(l[234].createdAt)+"")&&V(F,I),J[0]&16&&R!==(R=xe(l[234].createdAt)+"")&&V(O,R)},d(q){q&&y(e),j&&j.d(),M=!1,fe(B)}}}function $l(l){let e,t,n,o=l[3].summary.changedCases>0&&en(l),s=l[3].summary.notes>0&&tn(l),r=l[3].summary.files>0&&ln(l);return{c(){e=u("div"),o&&o.c(),t=k(),s&&s.c(),n=k(),r&&r.c(),i(e,"class","today-summary svelte-owriro")},m(a,f){g(a,e,f),o&&o.m(e,null),c(e,t),s&&s.m(e,null),c(e,n),r&&r.m(e,null)},p(a,f){a[3].summary.changedCases>0?o?o.p(a,f):(o=en(a),o.c(),o.m(e,t)):o&&(o.d(1),o=null),a[3].summary.notes>0?s?s.p(a,f):(s=tn(a),s.c(),s.m(e,n)):s&&(s.d(1),s=null),a[3].summary.files>0?r?r.p(a,f):(r=ln(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(a){a&&y(e),o&&o.d(),s&&s.d(),r&&r.d()}}}function en(l){let e,t=l[3].summary.changedCases+"",n,o,s=it(l[3].summary.changedCases,p("today.plural.case_one"),p("today.plural.case_few"),p("today.plural.case_many"))+"",r;return{c(){e=u("span"),n=A(t),o=k(),r=A(s),i(e,"class","summary-chip svelte-owriro")},m(a,f){g(a,e,f),c(e,n),c(e,o),c(e,r)},p(a,f){f[0]&8&&t!==(t=a[3].summary.changedCases+"")&&V(n,t),f[0]&8&&s!==(s=it(a[3].summary.changedCases,p("today.plural.case_one"),p("today.plural.case_few"),p("today.plural.case_many"))+"")&&V(r,s)},d(a){a&&y(e)}}}function tn(l){let e,t=l[3].summary.notes+"",n,o,s=it(l[3].summary.notes,p("today.plural.note_one"),p("today.plural.note_few"),p("today.plural.note_many"))+"",r;return{c(){e=u("span"),n=A(t),o=k(),r=A(s),i(e,"class","summary-chip svelte-owriro")},m(a,f){g(a,e,f),c(e,n),c(e,o),c(e,r)},p(a,f){f[0]&8&&t!==(t=a[3].summary.notes+"")&&V(n,t),f[0]&8&&s!==(s=it(a[3].summary.notes,p("today.plural.note_one"),p("today.plural.note_few"),p("today.plural.note_many"))+"")&&V(r,s)},d(a){a&&y(e)}}}function ln(l){let e,t=l[3].summary.files+"",n,o,s=it(l[3].summary.files,p("today.plural.file_one"),p("today.plural.file_few"),p("today.plural.file_many"))+"",r;return{c(){e=u("span"),n=A(t),o=k(),r=A(s),i(e,"class","summary-chip svelte-owriro")},m(a,f){g(a,e,f),c(e,n),c(e,o),c(e,r)},p(a,f){f[0]&8&&t!==(t=a[3].summary.files+"")&&V(n,t),f[0]&8&&s!==(s=it(a[3].summary.files,p("today.plural.file_one"),p("today.plural.file_few"),p("today.plural.file_many"))+"")&&V(r,s)},d(a){a&&y(e)}}}function Ts(l){let e,t,n,o;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("today.empty")}`,n=k(),o=u("p"),o.textContent=`${p("today.emptyHint")}`,i(t,"class","svelte-owriro"),i(o,"class","hint svelte-owriro"),i(e,"class","today-empty svelte-owriro")},m(s,r){g(s,e,r),c(e,t),c(e,n),c(e,o)},p:Q,d(s){s&&y(e)}}}function Ns(l){let e,t,n=ce(l[3].groups),o=[];for(let r=0;r<n.length;r+=1)o[r]=sn(Pl(l,n,r));let s=l[3].events&&l[3].events.length>0&&cn(l);return{c(){for(let r=0;r<o.length;r+=1)o[r].c();e=k(),s&&s.c(),t=Qe()},m(r,a){for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(r,a);g(r,e,a),s&&s.m(r,a),g(r,t,a)},p(r,a){if(a[0]&8|a[3]&17170432){n=ce(r[3].groups);let f;for(f=0;f<n.length;f+=1){const m=Pl(r,n,f);o[f]?o[f].p(m,a):(o[f]=sn(m),o[f].c(),o[f].m(e.parentNode,e))}for(;f<o.length;f+=1)o[f].d(1);o.length=n.length}r[3].events&&r[3].events.length>0?s?s.p(r,a):(s=cn(r),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(r){r&&(y(e),y(t)),je(o,r),s&&s.d(r)}}}function nn(l){let e,t=l[242].events.length+"",n,o,s=it(l[242].events.length,p("today.plural.event_one"),p("today.plural.event_few"),p("today.plural.event_many"))+"",r;return{c(){e=u("span"),n=A(t),o=k(),r=A(s),i(e,"class","today-case-count svelte-owriro")},m(a,f){g(a,e,f),c(e,n),c(e,o),c(e,r)},p(a,f){f[0]&8&&t!==(t=a[242].events.length+"")&&V(n,t),f[0]&8&&s!==(s=it(a[242].events.length,p("today.plural.event_one"),p("today.plural.event_few"),p("today.plural.event_many"))+"")&&V(r,s)},d(a){a&&y(e)}}}function Fs(l){let e;return{c(){e=u("div"),e.textContent=`${p("today.changedCases")}`,i(e,"class","today-events-empty svelte-owriro")},m(t,n){g(t,e,n)},p:Q,d(t){t&&y(e)}}}function Is(l){let e,t=ce(l[242].events),n=[];for(let o=0;o<t.length;o+=1)n[o]=rn(Ol(l,t,o));return{c(){e=u("div");for(let o=0;o<n.length;o+=1)n[o].c();i(e,"class","today-events svelte-owriro")},m(o,s){g(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,s){if(s[0]&8|s[3]&16908288){t=ce(o[242].events);let r;for(r=0;r<t.length;r+=1){const a=Ol(o,t,r);n[r]?n[r].p(a,s):(n[r]=rn(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function on(l){let e,t=l[234].targetType+"",n;return{c(){e=u("span"),n=A(t),i(e,"class","activity-event-target svelte-owriro")},m(o,s){g(o,e,s),c(e,n)},p(o,s){s[0]&8&&t!==(t=o[234].targetType+"")&&V(n,t)},d(o){o&&y(e)}}}function rn(l){let e,t,n=bt(l[234].eventType)+"",o,s,r,a=l[234].title+"",f,m,b,v=l[110](l[234].eventType)+"",_,h,w,T,S=xe(l[234].createdAt)+"",C,I,F,N=l[234].targetType&&on(l);function R(){return l[157](l[242])}function O(...D){return l[158](l[242],...D)}return{c(){e=u("div"),t=u("span"),o=A(n),s=k(),r=u("span"),f=A(a),m=k(),b=u("span"),_=A(v),h=k(),N&&N.c(),w=k(),T=u("span"),C=A(S),i(t,"class","today-event-icon svelte-owriro"),i(r,"class","today-event-title svelte-owriro"),i(b,"class","today-event-type svelte-owriro"),i(T,"class","today-event-time svelte-owriro"),i(e,"class","today-event svelte-owriro"),i(e,"role","button"),i(e,"tabindex","0")},m(D,M){g(D,e,M),c(e,t),c(t,o),c(e,s),c(e,r),c(r,f),c(e,m),c(e,b),c(b,_),c(e,h),N&&N.m(e,null),c(e,w),c(e,T),c(T,C),I||(F=[L(e,"click",R),L(e,"keydown",O)],I=!0)},p(D,M){l=D,M[0]&8&&n!==(n=bt(l[234].eventType)+"")&&V(o,n),M[0]&8&&a!==(a=l[234].title+"")&&V(f,a),M[0]&8&&v!==(v=l[110](l[234].eventType)+"")&&V(_,v),l[234].targetType?N?N.p(l,M):(N=on(l),N.c(),N.m(e,w)):N&&(N.d(1),N=null),M[0]&8&&S!==(S=xe(l[234].createdAt)+"")&&V(C,S)},d(D){D&&y(e),N&&N.d(),I=!1,fe(F)}}}function sn(l){let e,t,n,o=l[242].nodeTitle+"",s,r,a,f=l[111](l[242].nodeKind)+"",m,b,v,_,h=xe(l[242].lastActivityAt)+"",w,T,S,C,I=l[242].events&&nn(l);function F(){return l[155](l[242])}function N(...M){return l[156](l[242],...M)}function R(M,B){return M[242].events&&M[242].events.length>0?Is:Fs}let O=R(l),D=O(l);return{c(){e=u("div"),t=u("div"),n=u("span"),s=A(o),r=k(),a=u("span"),m=A(f),b=k(),I&&I.c(),v=k(),_=u("span"),w=A(h),T=k(),D.c(),i(n,"class","today-case-title svelte-owriro"),i(a,"class","today-case-type svelte-owriro"),i(_,"class","today-case-time svelte-owriro"),i(t,"class","today-case-header svelte-owriro"),i(t,"role","button"),i(t,"tabindex","0"),i(e,"class","today-case svelte-owriro")},m(M,B){g(M,e,B),c(e,t),c(t,n),c(n,s),c(t,r),c(t,a),c(a,m),c(t,b),I&&I.m(t,null),c(t,v),c(t,_),c(_,w),c(e,T),D.m(e,null),S||(C=[L(t,"click",F),L(t,"keydown",N)],S=!0)},p(M,B){l=M,B[0]&8&&o!==(o=l[242].nodeTitle+"")&&V(s,o),B[0]&8&&f!==(f=l[111](l[242].nodeKind)+"")&&V(m,f),l[242].events?I?I.p(l,B):(I=nn(l),I.c(),I.m(t,v)):I&&(I.d(1),I=null),B[0]&8&&h!==(h=xe(l[242].lastActivityAt)+"")&&V(w,h),O===(O=R(l))&&D?D.p(l,B):(D.d(1),D=O(l),D&&(D.c(),D.m(e,null)))},d(M){M&&y(e),I&&I.d(),D.d(),S=!1,fe(C)}}}function cn(l){let e,t,n,o=ce(l[3].events),s=[];for(let r=0;r<o.length;r+=1)s[r]=an(Ll(l,o,r));return{c(){e=u("div"),t=u("h3"),t.textContent=`${p("today.timeline")}`,n=k();for(let r=0;r<s.length;r+=1)s[r].c();i(t,"class","svelte-owriro"),i(e,"class","today-timeline svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(e,null)},p(r,a){if(a[0]&8|a[3]&16908288){o=ce(r[3].events);let f;for(f=0;f<o.length;f+=1){const m=Ll(r,o,f);s[f]?s[f].p(m,a):(s[f]=an(m),s[f].c(),s[f].m(e,null))}for(;f<s.length;f+=1)s[f].d(1);s.length=o.length}},d(r){r&&y(e),je(s,r)}}}function an(l){let e,t,n,o,s=l[234].title+"",r,a,f,m=l[110](l[234].eventType)+"",b,v,_,h=xe(l[234].createdAt)+"",w,T,S,C;function I(){return l[159](l[234])}function F(...N){return l[160](l[234],...N)}return{c(){e=u("div"),t=u("span"),n=k(),o=u("span"),r=A(s),a=k(),f=u("span"),b=A(m),v=k(),_=u("span"),w=A(h),T=k(),i(t,"class","timeline-dot svelte-owriro"),i(o,"class","timeline-title svelte-owriro"),i(f,"class","timeline-type svelte-owriro"),i(_,"class","timeline-time svelte-owriro"),i(e,"class","timeline-event svelte-owriro"),i(e,"role","button"),i(e,"tabindex","0")},m(N,R){g(N,e,R),c(e,t),c(e,n),c(e,o),c(o,r),c(e,a),c(e,f),c(f,b),c(e,v),c(e,_),c(_,w),c(e,T),S||(C=[L(e,"click",I),L(e,"keydown",F)],S=!0)},p(N,R){l=N,R[0]&8&&s!==(s=l[234].title+"")&&V(r,s),R[0]&8&&m!==(m=l[110](l[234].eventType)+"")&&V(b,m),R[0]&8&&h!==(h=xe(l[234].createdAt)+"")&&V(w,h)},d(N){N&&y(e),S=!1,fe(C)}}}function fn(l){let e,t=l[237].label+"",n,o,s;function r(){return l[129](l[237])}return{c(){e=u("button"),n=A(t),i(e,"class",Zi(l[109](l[237].id))+" svelte-owriro")},m(a,f){g(a,e,f),c(e,n),o||(s=L(e,"click",r),o=!0)},p(a,f){l=a},d(a){a&&y(e),o=!1,s()}}}function As(l){let e;function t(s,r){return s[5].length===0?js:Os}let n=t(l),o=n(l);return{c(){e=u("div"),o.c(),i(e,"class","activity-tab svelte-owriro")},m(s,r){g(s,e,r),o.m(e,null)},p(s,r){n===(n=t(s))&&o?o.p(s,r):(o.d(1),o=n(s),o&&(o.c(),o.m(e,null)))},i:Q,o:Q,d(s){s&&y(e),o.d()}}}function Ms(l){let e,t,n,o,s,r,a,f=p("worklog.log")+"",m,b,v,_,h;function w(C,I){return C[14].length===0?zs:Bs}let T=w(l),S=T(l);return{c(){e=u("div"),t=u("div"),n=u("input"),o=k(),s=u("input"),r=k(),a=u("button"),m=A(f),v=k(),S.c(),i(n,"type","text"),i(n,"placeholder",p("worklog.whatDone")),i(n,"class","svelte-owriro"),i(s,"type","number"),i(s,"placeholder",p("worklog.minutes")),i(s,"min","1"),i(s,"class","svelte-owriro"),i(a,"class","btn btn-primary svelte-owriro"),a.disabled=b=!l[16].trim()||!l[15],i(t,"class","worklog-form svelte-owriro"),i(e,"class","worklog-tab svelte-owriro")},m(C,I){g(C,e,I),c(e,t),c(t,n),ge(n,l[16]),c(t,o),c(t,s),ge(s,l[15]),c(t,r),c(t,a),c(a,m),c(e,v),S.m(e,null),_||(h=[L(n,"input",l[153]),L(s,"input",l[154]),L(a,"click",l[103])],_=!0)},p(C,I){I[0]&65536&&n.value!==C[16]&&ge(n,C[16]),I[0]&32768&&Et(s.value)!==C[15]&&ge(s,C[15]),I[0]&98304&&b!==(b=!C[16].trim()||!C[15])&&(a.disabled=b),T===(T=w(C))&&S?S.p(C,I):(S.d(1),S=T(C),S&&(S.c(),S.m(e,null)))},i:Q,o:Q,d(C){C&&y(e),S.d(),_=!1,fe(h)}}}function Ds(l){let e,t,n,o,s,r;function a(b,v){return b[13].length===0?Us:Rs}let f=a(l),m=f(l);return{c(){e=u("div"),t=u("div"),n=u("button"),n.textContent=`${p("action.addAction")}`,o=k(),m.c(),i(n,"class","btn btn-primary svelte-owriro"),i(t,"class","tab-toolbar svelte-owriro"),i(e,"class","actions-tab svelte-owriro")},m(b,v){g(b,e,v),c(e,t),c(t,n),c(e,o),m.m(e,null),s||(r=L(n,"click",l[112]),s=!0)},p(b,v){f===(f=a(b))&&m?m.p(b,v):(m.d(1),m=f(b),m&&(m.c(),m.m(e,null)))},i:Q,o:Q,d(b){b&&y(e),m.d(),s=!1,r()}}}function Es(l){let e,t,n,o=p("file.addFile")+"",s,r,a,f=p("file.addFolder")+"",m,b,v,_,h,w,T,S,C,I,F,N,R,O=l[41].items.length>0&&_n(l);const D=[Hs,Vs],M=[];function B(H,q){return H[33]?0:1}w=B(l),T=M[w]=D[w](l);let j=l[29]&&!l[31]&&hn(),P=l[37]&&wn(l);return{c(){e=u("div"),t=u("div"),n=u("button"),s=A(o),r=k(),a=u("button"),m=A(f),b=k(),v=u("button"),v.textContent=`${p("file.newFile")}`,_=k(),O&&O.c(),h=k(),T.c(),S=k(),j&&j.c(),C=k(),P&&P.c(),I=Qe(),i(n,"class","btn btn-primary svelte-owriro"),n.disabled=l[29],i(a,"class","btn svelte-owriro"),a.disabled=l[29],i(v,"class","btn svelte-owriro"),i(t,"class","tab-toolbar svelte-owriro"),i(e,"class","files-tab svelte-owriro")},m(H,q){g(H,e,q),c(e,t),c(t,n),c(n,s),c(t,r),c(t,a),c(a,m),c(t,b),c(t,v),c(t,_),O&&O.m(t,null),c(e,h),M[w].m(e,null),c(e,S),j&&j.m(e,null),g(H,C,q),P&&P.m(H,q),g(H,I,q),F=!0,N||(R=[L(n,"click",l[104]),L(a,"click",l[105]),L(v,"click",l[69])],N=!0)},p(H,q){(!F||q[0]&536870912)&&(n.disabled=H[29]),(!F||q[0]&536870912)&&(a.disabled=H[29]),H[41].items.length>0?O?O.p(H,q):(O=_n(H),O.c(),O.m(t,null)):O&&(O.d(1),O=null);let J=w;w=B(H),w===J?M[w].p(H,q):(Ye(),pe(M[J],1,1,()=>{M[J]=null}),Ze(),T=M[w],T?T.p(H,q):(T=M[w]=D[w](H),T.c()),se(T,1),T.m(e,S)),H[29]&&!H[31]?j||(j=hn(),j.c(),j.m(e,null)):j&&(j.d(1),j=null),H[37]?P?(P.p(H,q),q[1]&64&&se(P,1)):(P=wn(H),P.c(),se(P,1),P.m(I.parentNode,I)):P&&(Ye(),pe(P,1,1,()=>{P=null}),Ze())},i(H){F||(se(T),se(P),F=!0)},o(H){pe(T),pe(P),F=!1},d(H){H&&(y(e),y(C),y(I)),O&&O.d(),M[w].d(),j&&j.d(),P&&P.d(H),N=!1,fe(R)}}}function Ls(l){let e,t,n,o,s,r,a,f=l[22]&&bn(l);function m(_,h){return _[11].length===0&&!_[22]?Js:Xs}let b=m(l),v=b(l);return{c(){e=u("div"),t=u("div"),n=u("button"),n.textContent=`${p("note.add")}`,o=k(),f&&f.c(),s=k(),v.c(),i(n,"class","btn btn-primary svelte-owriro"),i(t,"class","tab-toolbar svelte-owriro"),i(e,"class","notes-tab svelte-owriro")},m(_,h){g(_,e,h),c(e,t),c(t,n),c(e,o),f&&f.m(e,null),c(e,s),v.m(e,null),r||(a=L(n,"click",l[96]),r=!0)},p(_,h){_[22]?f?f.p(_,h):(f=bn(_),f.c(),f.m(e,s)):f&&(f.d(1),f=null),b===(b=m(_))&&v?v.p(_,h):(v.d(1),v=b(_),v&&(v.c(),v.m(e,null)))},i:Q,o:Q,d(_){_&&y(e),f&&f.d(),v.d(),r=!1,a()}}}function Ps(l){let e,t,n=l[9].title+"",o,s,r,a,f,m,b=l[9].type+"",v,_,h,w,T,S=(l[9].section||"—")+"",C,I,F,N,R,O=$e(l[9].createdAt)+"",D,M,B,j,P,H,q,J,G=p("overview.newNote")+"",U,K,ee,Y,X,Se,Ae=p("overview.addFile")+"",Ue,re,te,$,le,oe,Me=p("overview.addAction")+"",Be,qe,De,de,x,he,Te,Ge=p("overview.logTime")+"",Xe,Ve,be,He,Ie,ke=l[11].length>0&&yn(l),me=l[14].length>0&&Cn(l);return{c(){e=u("div"),t=u("h2"),o=A(n),s=k(),r=u("div"),a=u("div"),f=u("span"),f.textContent=`${p("overview.type")}`,m=u("span"),v=A(b),_=k(),h=u("div"),w=u("span"),w.textContent=`${p("overview.section")}`,T=u("span"),C=A(S),I=k(),F=u("div"),N=u("span"),N.textContent=`${p("overview.created")}`,R=u("span"),D=A(O),M=k(),B=u("div"),j=u("button"),P=z("svg"),H=z("path"),q=z("path"),J=k(),U=A(G),K=k(),ee=u("button"),Y=z("svg"),X=z("path"),Se=k(),Ue=A(Ae),re=k(),te=u("button"),$=z("svg"),le=z("polygon"),oe=k(),Be=A(Me),qe=k(),De=u("button"),de=z("svg"),x=z("circle"),he=z("polyline"),Te=k(),Xe=A(Ge),Ve=k(),ke&&ke.c(),be=k(),me&&me.c(),i(t,"class","svelte-owriro"),i(f,"class","meta-label svelte-owriro"),i(m,"class","svelte-owriro"),i(a,"class","meta-item svelte-owriro"),i(w,"class","meta-label svelte-owriro"),i(T,"class","svelte-owriro"),i(h,"class","meta-item svelte-owriro"),i(N,"class","meta-label svelte-owriro"),i(R,"class","svelte-owriro"),i(F,"class","meta-item svelte-owriro"),i(r,"class","meta-grid svelte-owriro"),i(H,"d","M12 20h9"),i(H,"class","svelte-owriro"),i(q,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),i(q,"class","svelte-owriro"),i(P,"width","16"),i(P,"height","16"),i(P,"viewBox","0 0 24 24"),i(P,"fill","none"),i(P,"stroke","currentColor"),i(P,"stroke-width","2"),i(P,"stroke-linecap","round"),i(P,"stroke-linejoin","round"),i(P,"class","svelte-owriro"),i(j,"class","qa-btn svelte-owriro"),i(X,"d","M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"),i(X,"class","svelte-owriro"),i(Y,"width","16"),i(Y,"height","16"),i(Y,"viewBox","0 0 24 24"),i(Y,"fill","none"),i(Y,"stroke","currentColor"),i(Y,"stroke-width","2"),i(Y,"stroke-linecap","round"),i(Y,"stroke-linejoin","round"),i(Y,"class","svelte-owriro"),i(ee,"class","qa-btn svelte-owriro"),i(le,"points","13 2 3 14 12 14 11 22 21 10 12 10 13 2"),i(le,"class","svelte-owriro"),i($,"width","16"),i($,"height","16"),i($,"viewBox","0 0 24 24"),i($,"fill","none"),i($,"stroke","currentColor"),i($,"stroke-width","2"),i($,"stroke-linecap","round"),i($,"stroke-linejoin","round"),i($,"class","svelte-owriro"),i(te,"class","qa-btn svelte-owriro"),i(x,"cx","12"),i(x,"cy","12"),i(x,"r","10"),i(x,"class","svelte-owriro"),i(he,"points","12 6 12 12 16 14"),i(he,"class","svelte-owriro"),i(de,"width","16"),i(de,"height","16"),i(de,"viewBox","0 0 24 24"),i(de,"fill","none"),i(de,"stroke","currentColor"),i(de,"stroke-width","2"),i(de,"stroke-linecap","round"),i(de,"stroke-linejoin","round"),i(de,"class","svelte-owriro"),i(De,"class","qa-btn svelte-owriro"),i(B,"class","quick-actions svelte-owriro"),i(e,"class","overview svelte-owriro")},m(ie,_e){g(ie,e,_e),c(e,t),c(t,o),c(e,s),c(e,r),c(r,a),c(a,f),c(a,m),c(m,v),c(r,_),c(r,h),c(h,w),c(h,T),c(T,C),c(r,I),c(r,F),c(F,N),c(F,R),c(R,D),c(e,M),c(e,B),c(B,j),c(j,P),c(P,H),c(P,q),c(j,J),c(j,U),c(B,K),c(B,ee),c(ee,Y),c(Y,X),c(ee,Se),c(ee,Ue),c(B,re),c(B,te),c(te,$),c($,le),c(te,oe),c(te,Be),c(B,qe),c(B,De),c(De,de),c(de,x),c(de,he),c(De,Te),c(De,Xe),c(e,Ve),ke&&ke.m(e,null),c(e,be),me&&me.m(e,null),He||(Ie=[L(j,"click",l[130]),L(ee,"click",l[131]),L(te,"click",l[112]),L(De,"click",l[132])],He=!0)},p(ie,_e){_e[0]&512&&n!==(n=ie[9].title+"")&&V(o,n),_e[0]&512&&b!==(b=ie[9].type+"")&&V(v,b),_e[0]&512&&S!==(S=(ie[9].section||"—")+"")&&V(C,S),_e[0]&512&&O!==(O=$e(ie[9].createdAt)+"")&&V(D,O),ie[11].length>0?ke?ke.p(ie,_e):(ke=yn(ie),ke.c(),ke.m(e,be)):ke&&(ke.d(1),ke=null),ie[14].length>0?me?me.p(ie,_e):(me=Cn(ie),me.c(),me.m(e,null)):me&&(me.d(1),me=null)},i:Q,o:Q,d(ie){ie&&y(e),ke&&ke.d(),me&&me.d(),He=!1,fe(Ie)}}}function Os(l){let e,t=ce(l[5]),n=[];for(let o=0;o<t.length;o+=1)n[o]=dn(jl(l,t,o));return{c(){e=u("div");for(let o=0;o<n.length;o+=1)n[o].c();i(e,"class","activity-events svelte-owriro")},m(o,s){g(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,s){if(s[0]&32|s[3]&131072){t=ce(o[5]);let r;for(r=0;r<t.length;r+=1){const a=jl(o,t,r);n[r]?n[r].p(a,s):(n[r]=dn(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function js(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("activity.perCaseEmpty")}`,i(t,"class","svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},p:Q,d(n){n&&y(e)}}}function un(l){let e,t=l[234].targetType+"",n;return{c(){e=u("span"),n=A(t),i(e,"class","activity-event-target svelte-owriro")},m(o,s){g(o,e,s),c(e,n)},p(o,s){s[0]&32&&t!==(t=o[234].targetType+"")&&V(n,t)},d(o){o&&y(e)}}}function dn(l){let e,t,n=bt(l[234].eventType)+"",o,s,r,a=l[234].title+"",f,m,b,v=l[110](l[234].eventType)+"",_,h,w,T,S=xe(l[234].createdAt)+"",C,I,F=l[234].targetType&&un(l);return{c(){e=u("div"),t=u("span"),o=A(n),s=k(),r=u("span"),f=A(a),m=k(),b=u("span"),_=A(v),h=k(),F&&F.c(),w=k(),T=u("span"),C=A(S),I=k(),i(t,"class","activity-event-icon svelte-owriro"),i(r,"class","activity-event-title svelte-owriro"),i(b,"class","activity-event-type svelte-owriro"),i(T,"class","activity-event-time svelte-owriro"),i(e,"class","activity-event svelte-owriro")},m(N,R){g(N,e,R),c(e,t),c(t,o),c(e,s),c(e,r),c(r,f),c(e,m),c(e,b),c(b,_),c(e,h),F&&F.m(e,null),c(e,w),c(e,T),c(T,C),c(e,I)},p(N,R){R[0]&32&&n!==(n=bt(N[234].eventType)+"")&&V(o,n),R[0]&32&&a!==(a=N[234].title+"")&&V(f,a),R[0]&32&&v!==(v=N[110](N[234].eventType)+"")&&V(_,v),N[234].targetType?F?F.p(N,R):(F=un(N),F.c(),F.m(e,w)):F&&(F.d(1),F=null),R[0]&32&&S!==(S=xe(N[234].createdAt)+"")&&V(C,S)},d(N){N&&y(e),F&&F.d()}}}function Bs(l){let e,t=ce(l[14]),n=[];for(let o=0;o<t.length;o+=1)n[o]=mn(Bl(l,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Qe()},m(o,s){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,s);g(o,e,s)},p(o,s){if(s[0]&16384){t=ce(o[14]);let r;for(r=0;r<t.length;r+=1){const a=Bl(o,t,r);n[r]?n[r].p(a,s):(n[r]=mn(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function zs(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("worklog.empty")}`,i(t,"class","svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},p:Q,d(n){n&&y(e)}}}function mn(l){let e,t,n=l[218].summary+"",o,s,r,a=l[218].minutes+"",f,m,b=p("worklog.min")+"",v,_,h=$e(l[218].createdAt)+"",w,T;return{c(){e=u("div"),t=u("div"),o=A(n),s=k(),r=u("div"),f=A(a),m=k(),v=A(b),_=A(" · "),w=A(h),T=k(),i(t,"class","svelte-owriro"),i(r,"class","wl-meta svelte-owriro"),i(e,"class","worklog-entry svelte-owriro")},m(S,C){g(S,e,C),c(e,t),c(t,o),c(e,s),c(e,r),c(r,f),c(r,m),c(r,v),c(r,_),c(r,w),c(e,T)},p(S,C){C[0]&16384&&n!==(n=S[218].summary+"")&&V(o,n),C[0]&16384&&a!==(a=S[218].minutes+"")&&V(f,a),C[0]&16384&&h!==(h=$e(S[218].createdAt)+"")&&V(w,h)},d(S){S&&y(e)}}}function Rs(l){let e,t=ce(l[13]),n=[];for(let o=0;o<t.length;o+=1)n[o]=pn(zl(l,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Qe()},m(o,s){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,s);g(o,e,s)},p(o,s){if(s[0]&8192|s[3]&12582912){t=ce(o[13]);let r;for(r=0;r<t.length;r+=1){const a=zl(o,t,r);n[r]?n[r].p(a,s):(n[r]=pn(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function Us(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("action.noActions")}`,i(t,"class","svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},p:Q,d(n){n&&y(e)}}}function pn(l){let e,t,n,o=l[229].title+"",s,r,a,f=l[116](l[229].type)+"",m,b,v,_=l[229].data+"",h,w,T,S,C,I,F,N,R;function O(){return l[151](l[229])}function D(){return l[152](l[229])}return{c(){e=u("div"),t=u("div"),n=u("span"),s=A(o),r=k(),a=u("span"),m=A(f),b=k(),v=u("span"),h=A(_),w=k(),T=u("div"),S=u("button"),S.textContent=`${p("action.run")}`,C=k(),I=u("button"),I.innerHTML='<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-owriro"><polyline points="3 6 5 6 21 6" class="svelte-owriro"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" class="svelte-owriro"></path></svg>',F=k(),i(n,"class","action-title svelte-owriro"),i(a,"class","action-type svelte-owriro"),i(v,"class","action-data svelte-owriro"),i(t,"class","action-info svelte-owriro"),i(S,"class","btn btn-sm svelte-owriro"),i(I,"class","btn btn-sm btn-danger svelte-owriro"),i(T,"class","action-btns svelte-owriro"),i(e,"class","action-card svelte-owriro")},m(M,B){g(M,e,B),c(e,t),c(t,n),c(n,s),c(t,r),c(t,a),c(a,m),c(t,b),c(t,v),c(v,h),c(e,w),c(e,T),c(T,S),c(T,C),c(T,I),c(e,F),N||(R=[L(S,"click",O),L(I,"click",D)],N=!0)},p(M,B){l=M,B[0]&8192&&o!==(o=l[229].title+"")&&V(s,o),B[0]&8192&&f!==(f=l[116](l[229].type)+"")&&V(m,f),B[0]&8192&&_!==(_=l[229].data+"")&&V(h,_)},d(M){M&&y(e),N=!1,fe(R)}}}function _n(l){let e,t=p("common.paste")+"",n,o,s=l[41].items.length+"",r,a,f;return{c(){e=u("button"),n=A(t),o=k(),r=A(s),i(e,"class","btn svelte-owriro")},m(m,b){g(m,e,b),c(e,n),c(e,o),c(e,r),a||(f=L(e,"click",l[74]),a=!0)},p(m,b){b[1]&1024&&s!==(s=m[41].items.length+"")&&V(r,s)},d(m){m&&y(e),a=!1,f()}}}function Vs(l){let e,t,n,o,s,r,a;const f=[Ks,Ws],m=[];function b(w,T){return w[35].length>0?0:1}e=b(l),t=m[e]=f[e](l);const v=[Gs,qs],_=[];function h(w,T){return w[36].length===0?0:1}return o=h(l),s=_[o]=v[o](l),{c(){t.c(),n=k(),s.c(),r=Qe()},m(w,T){m[e].m(w,T),g(w,n,T),_[o].m(w,T),g(w,r,T),a=!0},p(w,T){let S=e;e=b(w),e===S?m[e].p(w,T):(Ye(),pe(m[S],1,1,()=>{m[S]=null}),Ze(),t=m[e],t?t.p(w,T):(t=m[e]=f[e](w),t.c()),se(t,1),t.m(n.parentNode,n));let C=o;o=h(w),o===C?_[o].p(w,T):(Ye(),pe(_[C],1,1,()=>{_[C]=null}),Ze(),s=_[o],s?s.p(w,T):(s=_[o]=v[o](w),s.c()),se(s,1),s.m(r.parentNode,r))},i(w){a||(se(t),se(s),a=!0)},o(w){pe(t),pe(s),a=!1},d(w){w&&(y(n),y(r)),m[e].d(w),_[o].d(w)}}}function Hs(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("common.loading")}`,i(t,"class","svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},p:Q,i:Q,o:Q,d(n){n&&y(e)}}}function Ws(l){let e,t;return e=new lo({props:{crumbs:[{name:p("file.root")}]}}),{c(){nt(e.$$.fragment)},m(n,o){et(e,n,o),t=!0},p:Q,i(n){t||(se(e.$$.fragment,n),t=!0)},o(n){pe(e.$$.fragment,n),t=!1},d(n){tt(e,n)}}}function Ks(l){let e,t,n,o,s,r,a,f=p("common.back")+"",m,b,v,_;return e=new lo({props:{crumbs:[{name:p("file.root")},...l[35]]}}),e.$on("navigate",l[137]),{c(){nt(e.$$.fragment),t=k(),n=u("button"),o=z("svg"),s=z("line"),r=z("polyline"),a=k(),m=A(f),i(s,"x1","19"),i(s,"y1","12"),i(s,"x2","5"),i(s,"y2","12"),i(s,"class","svelte-owriro"),i(r,"points","12 19 5 12 12 5"),i(r,"class","svelte-owriro"),i(o,"width","14"),i(o,"height","14"),i(o,"viewBox","0 0 24 24"),i(o,"fill","none"),i(o,"stroke","currentColor"),i(o,"stroke-width","2"),i(o,"stroke-linecap","round"),i(o,"stroke-linejoin","round"),i(o,"class","svelte-owriro"),i(n,"class","btn btn-sm back-btn svelte-owriro")},m(h,w){et(e,h,w),g(h,t,w),g(h,n,w),c(n,o),c(o,s),c(o,r),c(n,a),c(n,m),b=!0,v||(_=L(n,"click",l[65]),v=!0)},p(h,w){const T={};w[1]&16&&(T.crumbs=[{name:p("file.root")},...h[35]]),e.$set(T)},i(h){b||(se(e.$$.fragment,h),b=!0)},o(h){pe(e.$$.fragment,h),b=!1},d(h){h&&(y(t),y(n)),tt(e,h),v=!1,_()}}}function qs(l){let e,t=[],n=new Map,o,s=ce(l[36]);const r=a=>a[226].id;for(let a=0;a<s.length;a+=1){let f=Rl(l,s,a),m=r(f);n.set(m,t[a]=vn(m,f))}return{c(){e=u("div");for(let a=0;a<t.length;a+=1)t[a].c();i(e,"class","file-list svelte-owriro")},m(a,f){g(a,e,f);for(let m=0;m<t.length;m+=1)t[m]&&t[m].m(e,null);o=!0},p(a,f){f[1]&2080|f[2]&519972|f[3]&32768&&(s=ce(a[36]),Ye(),t=rr(t,f,r,1,a,s,n,e,ir,vn,null,Rl),Ze())},i(a){if(!o){for(let f=0;f<s.length;f+=1)se(t[f]);o=!0}},o(a){for(let f=0;f<t.length;f+=1)pe(t[f]);o=!1},d(a){a&&y(e);for(let f=0;f<t.length;f+=1)t[f].d()}}}function Gs(l){let e,t,n,o,s=(l[35].length>0?p("file.noFiles"):p("file.noFilesCase"))+"",r,a,f,m,b,v,_,h,w,T;return{c(){e=u("div"),t=u("div"),t.innerHTML='<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="svelte-owriro"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" class="svelte-owriro"></path><polyline points="14 2 14 8 20 8" class="svelte-owriro"></polyline></svg>',n=k(),o=u("p"),r=A(s),a=k(),f=u("p"),f.textContent=`${p("file.hint")}`,m=k(),b=u("div"),v=u("button"),v.textContent=`${p("file.addFileSimple")}`,_=k(),h=u("button"),h.textContent=`${p("file.addFolderSimple")}`,i(t,"class","empty-icon svelte-owriro"),i(o,"class","svelte-owriro"),i(f,"class","hint svelte-owriro"),i(v,"class","btn btn-primary svelte-owriro"),i(h,"class","btn svelte-owriro"),i(b,"class","empty-actions svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(S,C){g(S,e,C),c(e,t),c(e,n),c(e,o),c(o,r),c(e,a),c(e,f),c(e,m),c(e,b),c(b,v),c(b,_),c(b,h),w||(T=[L(v,"click",l[104]),L(h,"click",l[105])],w=!0)},p(S,C){C[1]&16&&s!==(s=(S[35].length>0?p("file.noFiles"):p("file.noFilesCase"))+"")&&V(r,s)},i:Q,o:Q,d(S){S&&y(e),w=!1,fe(T)}}}function vn(l,e){let t,n,o;return n=new zr({props:{item:e[226],selected:e[42].includes(e[226].id),onDragStart:e[78],onDragOver:e[79],onDrop:e[80]}}),n.$on("navigate",e[138]),n.$on("preview",e[139]),n.$on("openExternal",e[140]),n.$on("showInFolder",e[141]),n.$on("delete",e[142]),n.$on("rename",e[143]),n.$on("duplicate",e[144]),n.$on("cut",e[145]),n.$on("copy",e[146]),n.$on("selectOne",e[147]),n.$on("toggleSelect",e[148]),n.$on("rangeSelect",e[149]),{key:l,first:null,c(){t=Qe(),nt(n.$$.fragment),this.first=t},m(s,r){g(s,t,r),et(n,s,r),o=!0},p(s,r){e=s;const a={};r[1]&32&&(a.item=e[226]),r[1]&2080&&(a.selected=e[42].includes(e[226].id)),n.$set(a)},i(s){o||(se(n.$$.fragment,s),o=!0)},o(s){pe(n.$$.fragment,s),o=!1},d(s){s&&y(t),tt(n,s)}}}function hn(l){let e,t;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("file.scanning")}`,i(t,"class","svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},d(n){n&&y(e)}}}function wn(l){let e,t;return e=new es({props:{item:l[37],content:l[38],loading:l[39],error:l[40]}}),e.$on("close",l[68]),e.$on("openExternal",l[150]),{c(){nt(e.$$.fragment)},m(n,o){et(e,n,o),t=!0},p(n,o){const s={};o[1]&64&&(s.item=n[37]),o[1]&128&&(s.content=n[38]),o[1]&256&&(s.loading=n[39]),o[1]&512&&(s.error=n[40]),e.$set(s)},i(n){t||(se(e.$$.fragment,n),t=!0)},o(n){pe(e.$$.fragment,n),t=!1},d(n){tt(e,n)}}}function bn(l){let e,t,n,o,s,r,a,f,m;return{c(){e=u("div"),t=u("input"),n=k(),o=u("div"),s=u("button"),s.textContent=`${p("common.create")}`,r=k(),a=u("button"),a.textContent=`${p("common.cancel")}`,i(t,"type","text"),i(t,"placeholder",p("note.title")),i(t,"class","svelte-owriro"),i(s,"class","btn btn-primary svelte-owriro"),i(a,"class","btn svelte-owriro"),i(o,"class","form-actions svelte-owriro"),i(e,"class","create-form svelte-owriro")},m(b,v){g(b,e,v),c(e,t),ge(t,l[23]),c(e,n),c(e,o),c(o,s),c(o,r),c(o,a),f||(m=[L(t,"input",l[134]),L(t,"keydown",l[135]),L(s,"click",l[98]),L(a,"click",l[97])],f=!0)},p(b,v){v[0]&8388608&&t.value!==b[23]&&ge(t,b[23])},d(b){b&&y(e),f=!1,fe(m)}}}function Xs(l){let e,t=ce(l[11]),n=[];for(let o=0;o<t.length;o+=1)n[o]=kn(Ul(l,t,o));return{c(){e=u("div");for(let o=0;o<n.length;o+=1)n[o].c();i(e,"class","notes-list svelte-owriro")},m(o,s){g(o,e,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,s){if(s[0]&2048|s[3]&64){t=ce(o[11]);let r;for(r=0;r<t.length;r+=1){const a=Ul(o,t,r);n[r]?n[r].p(a,s):(n[r]=kn(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&y(e),je(n,o)}}}function Js(l){let e,t,n;return{c(){e=u("div"),t=u("p"),t.textContent=`${p("note.noNotes")}`,n=u("p"),n.textContent=`${p("note.createFirst")}`,i(t,"class","svelte-owriro"),i(n,"class","hint svelte-owriro"),i(e,"class","empty-state svelte-owriro")},m(o,s){g(o,e,s),c(e,t),c(e,n)},p:Q,d(o){o&&y(e)}}}function kn(l){let e,t,n=l[221].title+"",o,s,r,a=$e(l[221].createdAt)+"",f,m,b,v;function _(){return l[136](l[221])}return{c(){e=u("div"),t=u("div"),o=A(n),s=k(),r=u("div"),f=A(a),m=k(),i(t,"class","note-card-title svelte-owriro"),i(r,"class","note-card-date svelte-owriro"),i(e,"class","note-card svelte-owriro")},m(h,w){g(h,e,w),c(e,t),c(t,o),c(e,s),c(e,r),c(r,f),c(e,m),b||(v=L(e,"click",_),b=!0)},p(h,w){l=h,w[0]&2048&&n!==(n=l[221].title+"")&&V(o,n),w[0]&2048&&a!==(a=$e(l[221].createdAt)+"")&&V(f,a)},d(h){h&&y(e),b=!1,v()}}}function yn(l){let e,t,n,o=ce(l[11].slice(0,5)),s=[];for(let r=0;r<o.length;r+=1)s[r]=gn(Hl(l,o,r));return{c(){e=u("div"),t=u("h3"),t.textContent=`${p("overview.recentNotes")}`,n=k();for(let r=0;r<s.length;r+=1)s[r].c();i(t,"class","svelte-owriro"),i(e,"class","recent-section svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(e,null)},p(r,a){if(a[0]&2048|a[3]&64){o=ce(r[11].slice(0,5));let f;for(f=0;f<o.length;f+=1){const m=Hl(r,o,f);s[f]?s[f].p(m,a):(s[f]=gn(m),s[f].c(),s[f].m(e,null))}for(;f<s.length;f+=1)s[f].d(1);s.length=o.length}},d(r){r&&y(e),je(s,r)}}}function gn(l){let e,t,n=l[221].title+"",o,s,r=$e(l[221].createdAt)+"",a,f,m,b;function v(){return l[133](l[221])}return{c(){e=u("div"),t=u("span"),o=A(n),s=u("span"),a=A(r),f=k(),i(t,"class","svelte-owriro"),i(s,"class","recent-date svelte-owriro"),i(e,"class","recent-note svelte-owriro")},m(_,h){g(_,e,h),c(e,t),c(t,o),c(e,s),c(s,a),c(e,f),m||(b=L(e,"click",v),m=!0)},p(_,h){l=_,h[0]&2048&&n!==(n=l[221].title+"")&&V(o,n),h[0]&2048&&r!==(r=$e(l[221].createdAt)+"")&&V(a,r)},d(_){_&&y(e),m=!1,b()}}}function Cn(l){let e,t,n,o=ce(l[14].slice(0,3)),s=[];for(let r=0;r<o.length;r+=1)s[r]=Sn(Vl(l,o,r));return{c(){e=u("div"),t=u("h3"),t.textContent=`${p("overview.recentEntries")}`,n=k();for(let r=0;r<s.length;r+=1)s[r].c();i(t,"class","svelte-owriro"),i(e,"class","recent-section svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(e,null)},p(r,a){if(a[0]&16384){o=ce(r[14].slice(0,3));let f;for(f=0;f<o.length;f+=1){const m=Vl(r,o,f);s[f]?s[f].p(m,a):(s[f]=Sn(m),s[f].c(),s[f].m(e,null))}for(;f<s.length;f+=1)s[f].d(1);s.length=o.length}},d(r){r&&y(e),je(s,r)}}}function Sn(l){let e,t=l[218].summary+"",n,o,s=l[218].minutes+"",r,a,f=p("worklog.min")+"",m,b;return{c(){e=u("div"),n=A(t),o=A(" ("),r=A(s),a=k(),m=A(f),b=A(")"),i(e,"class","recent-entry svelte-owriro")},m(v,_){g(v,e,_),c(e,n),c(e,o),c(e,r),c(e,a),c(e,m),c(e,b)},p(v,_){_[0]&16384&&t!==(t=v[218].summary+"")&&V(n,t),_[0]&16384&&s!==(s=v[218].minutes+"")&&V(r,s)},d(v){v&&y(e)}}}function Tn(l){let e;return{c(){e=u("span"),e.textContent="●",i(e,"class","dirty-mark svelte-owriro")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function Nn(l){let e,t,n,o=(l[20]?l[20].title:l[19]?p("nav.createInside"):p("case.new"))+"",s,r,a,f,m,b,v,_,h,w,T,S,C,I,F=l[19]&&Fn(l);return{c(){e=u("div"),t=u("div"),n=u("h3"),s=A(o),r=k(),F&&F.c(),a=k(),f=u("div"),m=u("label"),m.textContent=`${p("common.name")}`,b=k(),v=u("input"),_=k(),h=u("div"),w=u("button"),w.textContent=`${p("common.create")}`,T=k(),S=u("button"),S.textContent=`${p("common.cancel")}`,i(n,"class","svelte-owriro"),i(m,"class","svelte-owriro"),i(v,"type","text"),i(v,"placeholder",p("case.namePlaceholder")),v.autofocus=!0,i(v,"class","svelte-owriro"),i(f,"class","form-group svelte-owriro"),i(w,"class","btn btn-primary svelte-owriro"),i(S,"class","btn svelte-owriro"),i(h,"class","modal-actions svelte-owriro"),i(t,"class","modal svelte-owriro"),i(e,"class","modal-overlay svelte-owriro")},m(N,R){g(N,e,R),c(e,t),c(t,n),c(n,s),c(t,r),F&&F.m(t,null),c(t,a),c(t,f),c(f,m),c(f,b),c(f,v),ge(v,l[18]),c(t,_),c(t,h),c(h,w),c(h,T),c(h,S),v.focus(),C||(I=[L(v,"input",l[163]),L(v,"keydown",l[164]),L(w,"click",l[89]),L(S,"click",l[88]),L(e,"click",at(l[88]))],C=!0)},p(N,R){R[0]&1572864&&o!==(o=(N[20]?N[20].title:N[19]?p("nav.createInside"):p("case.new"))+"")&&V(s,o),N[19]?F?F.p(N,R):(F=Fn(N),F.c(),F.m(t,a)):F&&(F.d(1),F=null),R[0]&262144&&v.value!==N[18]&&ge(v,N[18])},d(N){N&&y(e),F&&F.d(),C=!1,fe(I)}}}function Fn(l){let e,t=p("nav.createInside")+"",n,o,s=l[19].title+"",r,a;return{c(){e=u("div"),n=A(t),o=A(" «"),r=A(s),a=A("»"),i(e,"class","create-context svelte-owriro")},m(f,m){g(f,e,m),c(e,n),c(e,o),c(e,r),c(e,a)},p(f,m){m[0]&524288&&s!==(s=f[19].title+"")&&V(r,s)},d(f){f&&y(e)}}}function In(l){let e,t,n,o,s,r,a,f,m,b,v=l[21].node&&An(l);return{c(){e=u("div"),t=u("div"),v&&v.c(),n=k(),o=u("button"),o.textContent=`${p("common.rename")}`,s=k(),r=u("button"),r.textContent=`${p("common.delete")}`,a=k(),f=u("button"),f.textContent=`${p("nav.openFolder")}`,i(o,"class","context-menu-item svelte-owriro"),i(r,"class","context-menu-item danger svelte-owriro"),i(f,"class","context-menu-item svelte-owriro"),i(t,"class","context-menu svelte-owriro"),Re(t,"left",l[21].x+"px"),Re(t,"top",l[21].y+"px"),i(e,"class","context-menu-backdrop svelte-owriro")},m(_,h){g(_,e,h),c(e,t),v&&v.m(t,null),c(t,n),c(t,o),c(t,s),c(t,r),c(t,a),c(t,f),m||(b=[L(o,"click",l[166]),L(r,"click",l[167]),L(f,"click",l[168]),L(e,"click",l[91]),L(e,"contextmenu",At(l[91]))],m=!0)},p(_,h){_[21].node?v?v.p(_,h):(v=An(_),v.c(),v.m(t,n)):v&&(v.d(1),v=null),h[0]&2097152&&Re(t,"left",_[21].x+"px"),h[0]&2097152&&Re(t,"top",_[21].y+"px")},d(_){_&&y(e),v&&v.d(),m=!1,fe(b)}}}function An(l){let e,t,n,o,s=ce(l[2].length>0?l[2]:[{id:"",title:p("template.optionNone"),icon:""}]),r=[];for(let a=0;a<s.length;a+=1)r[a]=Mn(Dl(l,s,a));return{c(){e=u("div"),e.textContent=`${p("common.create")}`,t=k();for(let a=0;a<r.length;a+=1)r[a].c();n=k(),o=u("div"),i(e,"class","context-menu-section svelte-owriro"),i(o,"class","context-menu-divider svelte-owriro")},m(a,f){g(a,e,f),g(a,t,f);for(let m=0;m<r.length;m+=1)r[m]&&r[m].m(a,f);g(a,n,f),g(a,o,f)},p(a,f){if(f[0]&4|f[2]&16777216){s=ce(a[2].length>0?a[2]:[{id:"",title:p("template.optionNone"),icon:""}]);let m;for(m=0;m<s.length;m+=1){const b=Dl(a,s,m);r[m]?r[m].p(b,f):(r[m]=Mn(b),r[m].c(),r[m].m(n.parentNode,n))}for(;m<r.length;m+=1)r[m].d(1);r.length=s.length}},d(a){a&&(y(e),y(t),y(n),y(o)),je(r,a)}}}function Mn(l){let e,t=(l[215].icon||"📄")+"",n,o,s=l[215].title+"",r,a,f;function m(){return l[165](l[215])}return{c(){e=u("button"),n=A(t),o=k(),r=A(s),i(e,"class","context-menu-item svelte-owriro")},m(b,v){g(b,e,v),c(e,n),c(e,o),c(e,r),a||(f=L(e,"click",m),a=!0)},p(b,v){l=b,v[0]&4&&t!==(t=(l[215].icon||"📄")+"")&&V(n,t),v[0]&4&&s!==(s=l[215].title+"")&&V(r,s)},d(b){b&&y(e),a=!1,f()}}}function Dn(l){let e,t,n,o,s,r,a,f,m,b,v,_,h,w,T,S,C=(l[26]==="open_url"?p("action.dataUrl"):l[26]==="open_folder"||l[26]==="open_file"?p("action.dataPath"):p("action.dataCommand"))+"",I,F,N,R,O,D,M,B,j,P,H,q=ce(l[59]),J=[];for(let G=0;G<q.length;G+=1)J[G]=En(Ml(l,q,G));return{c(){e=u("div"),t=u("div"),n=u("h3"),n.textContent=`${p("action.newAction")}`,o=k(),s=u("div"),r=u("label"),r.textContent=`${p("common.name")}`,a=k(),f=u("input"),m=k(),b=u("div"),v=u("label"),v.textContent=`${p("common.type")}`,_=k(),h=u("select");for(let G=0;G<J.length;G+=1)J[G].c();w=k(),T=u("div"),S=u("label"),I=A(C),F=k(),N=u("input"),O=k(),D=u("div"),M=u("button"),M.textContent=`${p("common.create")}`,B=k(),j=u("button"),j.textContent=`${p("common.cancel")}`,i(n,"class","svelte-owriro"),i(r,"class","svelte-owriro"),i(f,"type","text"),i(f,"placeholder",p("action.namePlaceholder")),f.autofocus=!0,i(f,"class","svelte-owriro"),i(s,"class","form-group svelte-owriro"),i(v,"class","svelte-owriro"),i(h,"class","svelte-owriro"),l[26]===void 0&&Lt(()=>l[171].call(h)),i(b,"class","form-group svelte-owriro"),i(S,"class","svelte-owriro"),i(N,"type","text"),i(N,"placeholder",R=l[26]==="open_url"?p("action.urlPlaceholder"):l[26]==="open_folder"||l[26]==="open_file"?p("action.pathPlaceholder"):p("action.commandPlaceholder")),i(N,"class","svelte-owriro"),i(T,"class","form-group svelte-owriro"),i(M,"class","btn btn-primary svelte-owriro"),i(j,"class","btn svelte-owriro"),i(D,"class","modal-actions svelte-owriro"),i(t,"class","modal svelte-owriro"),i(e,"class","modal-overlay svelte-owriro")},m(G,U){g(G,e,U),c(e,t),c(t,n),c(t,o),c(t,s),c(s,r),c(s,a),c(s,f),ge(f,l[25]),c(t,m),c(t,b),c(b,v),c(b,_),c(b,h);for(let K=0;K<J.length;K+=1)J[K]&&J[K].m(h,null);wl(h,l[26],!0),c(t,w),c(t,T),c(T,S),c(S,I),c(T,F),c(T,N),ge(N,l[27]),c(t,O),c(t,D),c(D,M),c(D,B),c(D,j),f.focus(),P||(H=[L(f,"input",l[169]),L(f,"keydown",l[170]),L(h,"change",l[171]),L(N,"input",l[172]),L(N,"keydown",l[173]),L(M,"click",l[114]),L(j,"click",l[113]),L(e,"click",at(l[113]))],P=!0)},p(G,U){if(U[0]&33554432&&f.value!==G[25]&&ge(f,G[25]),U[1]&268435456){q=ce(G[59]);let K;for(K=0;K<q.length;K+=1){const ee=Ml(G,q,K);J[K]?J[K].p(ee,U):(J[K]=En(ee),J[K].c(),J[K].m(h,null))}for(;K<J.length;K+=1)J[K].d(1);J.length=q.length}U[0]&67108864|U[1]&268435456&&wl(h,G[26]),U[0]&67108864&&C!==(C=(G[26]==="open_url"?p("action.dataUrl"):G[26]==="open_folder"||G[26]==="open_file"?p("action.dataPath"):p("action.dataCommand"))+"")&&V(I,C),U[0]&67108864|U[1]&268435456&&R!==(R=G[26]==="open_url"?p("action.urlPlaceholder"):G[26]==="open_folder"||G[26]==="open_file"?p("action.pathPlaceholder"):p("action.commandPlaceholder"))&&i(N,"placeholder",R),U[0]&134217728&&N.value!==G[27]&&ge(N,G[27])},d(G){G&&y(e),je(J,G),P=!1,fe(H)}}}function En(l){let e,t=l[212].label+"",n;return{c(){e=u("option"),n=A(t),e.__value=l[212].id,ge(e,e.__value),i(e,"class","svelte-owriro")},m(o,s){g(o,e,s),c(e,n)},p:Q,d(o){o&&y(e)}}}function Ln(l){let e,t,n,o=p("file.importTitle")+"",s,r,a=(l[9]?l[9].title:"")+"",f,m,b,v,_,h,w,T=l[30].files+"",S,C,I,F,N,R=l[30].folders+"",O,D,M,B,j,P=(l[30].totalBytes/1024).toFixed(1)+"",H,q,J,G,U,K,ee,Y,X,Se,Ae,Ue,re=l[30].isDangerous&&Pn(l);return{c(){e=u("div"),t=u("div"),n=u("h3"),s=A(o),r=A(" «"),f=A(a),m=A("»"),b=k(),v=u("div"),_=u("div"),h=u("span"),h.textContent=`${p("file.importFiles")}`,w=u("span"),S=A(T),C=k(),I=u("div"),F=u("span"),F.textContent=`${p("file.importFolders")}`,N=u("span"),O=A(R),D=k(),M=u("div"),B=u("span"),B.textContent=`${p("file.importSize")}`,j=u("span"),H=A(P),q=A(" KB"),J=k(),re&&re.c(),G=k(),U=u("div"),K=u("button"),K.textContent=`${p("file.importCopy")}`,ee=k(),Y=u("button"),Y.textContent=`${p("file.importLink")}`,X=k(),Se=u("button"),Se.textContent=`${p("common.cancel")}`,i(n,"class","svelte-owriro"),i(h,"class","svelte-owriro"),i(w,"class","svelte-owriro"),i(_,"class","summary-row svelte-owriro"),i(F,"class","svelte-owriro"),i(N,"class","svelte-owriro"),i(I,"class","summary-row svelte-owriro"),i(B,"class","svelte-owriro"),i(j,"class","svelte-owriro"),i(M,"class","summary-row svelte-owriro"),i(v,"class","import-summary svelte-owriro"),i(K,"class","btn btn-primary svelte-owriro"),i(Y,"class","btn svelte-owriro"),i(Se,"class","btn svelte-owriro"),i(U,"class","modal-actions svelte-owriro"),i(t,"class","modal svelte-owriro"),i(e,"class","modal-overlay svelte-owriro")},m(te,$){g(te,e,$),c(e,t),c(t,n),c(n,s),c(n,r),c(n,f),c(n,m),c(t,b),c(t,v),c(v,_),c(_,h),c(_,w),c(w,S),c(v,C),c(v,I),c(I,F),c(I,N),c(N,O),c(v,D),c(v,M),c(M,B),c(M,j),c(j,H),c(j,q),c(v,J),re&&re.m(v,null),c(t,G),c(t,U),c(U,K),c(U,ee),c(U,Y),c(U,X),c(U,Se),Ae||(Ue=[L(K,"click",l[174]),L(Y,"click",l[175]),L(Se,"click",l[107]),L(e,"click",at(l[107]))],Ae=!0)},p(te,$){$[0]&512&&a!==(a=(te[9]?te[9].title:"")+"")&&V(f,a),$[0]&1073741824&&T!==(T=te[30].files+"")&&V(S,T),$[0]&1073741824&&R!==(R=te[30].folders+"")&&V(O,R),$[0]&1073741824&&P!==(P=(te[30].totalBytes/1024).toFixed(1)+"")&&V(H,P),te[30].isDangerous?re?re.p(te,$):(re=Pn(te),re.c(),re.m(v,null)):re&&(re.d(1),re=null)},d(te){te&&y(e),re&&re.d(),Ae=!1,fe(Ue)}}}function Pn(l){let e,t,n,o,s,r,a=l[30].dangerReason+"",f;return{c(){e=u("div"),t=z("svg"),n=z("path"),o=z("line"),s=z("line"),r=k(),f=A(a),i(n,"d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"),i(n,"class","svelte-owriro"),i(o,"x1","12"),i(o,"y1","9"),i(o,"x2","12"),i(o,"y2","13"),i(o,"class","svelte-owriro"),i(s,"x1","12"),i(s,"y1","17"),i(s,"x2","12.01"),i(s,"y2","17"),i(s,"class","svelte-owriro"),i(t,"width","14"),i(t,"height","14"),i(t,"viewBox","0 0 24 24"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"stroke-width","2"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round"),i(t,"class","svelte-owriro"),i(e,"class","summary-warn svelte-owriro")},m(m,b){g(m,e,b),c(e,t),c(t,n),c(t,o),c(t,s),c(e,r),c(e,f)},p(m,b){b[0]&1073741824&&a!==(a=m[30].dangerReason+"")&&V(f,a)},d(m){m&&y(e)}}}function On(l){let e,t,n,o,s,r,a,f,m,b,v,_,h,w,T,S,C=l[50]&&jn(l);return{c(){e=u("div"),t=u("div"),n=u("h3"),n.textContent=`${p("rename.title")}`,o=k(),s=u("div"),r=u("label"),r.textContent=`${p("common.newName")}`,a=k(),f=u("input"),m=k(),C&&C.c(),b=k(),v=u("div"),_=u("button"),_.textContent=`${p("common.rename")}`,h=k(),w=u("button"),w.textContent=`${p("common.cancel")}`,i(n,"class","svelte-owriro"),i(r,"class","svelte-owriro"),i(f,"type","text"),i(f,"class","svelte-owriro"),i(s,"class","form-group svelte-owriro"),i(_,"class","btn btn-primary svelte-owriro"),i(w,"class","btn svelte-owriro"),i(v,"class","modal-actions svelte-owriro"),i(t,"class","modal svelte-owriro"),i(e,"class","modal-overlay svelte-owriro")},m(I,F){g(I,e,F),c(e,t),c(t,n),c(t,o),c(t,s),c(s,r),c(s,a),c(s,f),ge(f,l[49]),c(t,m),C&&C.m(t,null),c(t,b),c(t,v),c(v,_),c(v,h),c(v,w),T||(S=[L(f,"input",l[176]),L(f,"keydown",l[83]),L(_,"click",l[81]),L(w,"click",l[82]),L(e,"click",at(l[82]))],T=!0)},p(I,F){F[1]&262144&&f.value!==I[49]&&ge(f,I[49]),I[50]?C?C.p(I,F):(C=jn(I),C.c(),C.m(t,b)):C&&(C.d(1),C=null)},d(I){I&&y(e),C&&C.d(),T=!1,fe(S)}}}function jn(l){let e,t;return{c(){e=u("div"),t=A(l[50]),i(e,"class","rename-error svelte-owriro")},m(n,o){g(n,e,o),c(e,t)},p(n,o){o[1]&524288&&V(t,n[50])},d(n){n&&y(e)}}}function Bn(l){let e,t;return e=new ns({props:{title:l[44],message:l[45],confirmText:l[47],danger:l[46]}}),e.$on("confirm",l[84]),e.$on("cancel",l[85]),{c(){nt(e.$$.fragment)},m(n,o){et(e,n,o),t=!0},p(n,o){const s={};o[1]&8192&&(s.title=n[44]),o[1]&16384&&(s.message=n[45]),o[1]&65536&&(s.confirmText=n[47]),o[1]&32768&&(s.danger=n[46]),e.$set(s)},i(n){t||(se(e.$$.fragment,n),t=!0)},o(n){pe(e.$$.fragment,n),t=!1},d(n){tt(e,n)}}}function zn(l){let e,t,n,o,s,r,a,f,m,b,v,_,h,w=p("sync.saveInterval")+"",T,S,C,I,F,N,R,O=l[52]&&Rn(l);function D(P,H){var q;return(q=P[52])!=null&&q.configured?ec:$s}let M=D(l),B=M(l),j=l[58]&&Kn(l);return{c(){e=u("div"),t=u("div"),n=u("h3"),n.textContent=`${p("sync.settings")}`,o=k(),O&&O.c(),s=k(),B.c(),r=k(),a=u("div"),f=u("div"),m=u("label"),m.textContent=`${p("sync.autoSync")}`,b=k(),v=u("input"),_=k(),h=u("button"),T=A(w),S=k(),j&&j.c(),C=k(),I=u("div"),F=u("button"),F.textContent=`${p("common.close")}`,i(n,"class","svelte-owriro"),i(m,"class","svelte-owriro"),i(v,"type","number"),i(v,"placeholder","0"),i(v,"min","0"),i(v,"class","svelte-owriro"),i(f,"class","form-group svelte-owriro"),i(h,"class","btn svelte-owriro"),h.disabled=l[53],Re(a,"margin-top","16px"),Re(a,"padding-top","16px"),Re(a,"border-top","1px solid #2a2a3c"),i(a,"class","svelte-owriro"),i(F,"class","btn svelte-owriro"),i(I,"class","modal-actions svelte-owriro"),Re(I,"margin-top","12px"),i(t,"class","modal modal-sync svelte-owriro"),i(e,"class","modal-overlay svelte-owriro")},m(P,H){g(P,e,H),c(e,t),c(t,n),c(t,o),O&&O.m(t,null),c(t,s),B.m(t,null),c(t,r),c(t,a),c(a,f),c(f,m),c(f,b),c(f,v),ge(v,l[57]),c(a,_),c(a,h),c(h,T),c(t,S),j&&j.m(t,null),c(t,C),c(t,I),c(I,F),N||(R=[L(v,"input",l[180]),L(h,"click",l[121]),L(F,"click",l[119]),L(e,"click",at(l[119]))],N=!0)},p(P,H){P[52]?O?O.p(P,H):(O=Rn(P),O.c(),O.m(t,s)):O&&(O.d(1),O=null),M===(M=D(P))&&B?B.p(P,H):(B.d(1),B=M(P),B&&(B.c(),B.m(t,r))),H[1]&67108864&&Et(v.value)!==P[57]&&ge(v,P[57]),H[1]&4194304&&(h.disabled=P[53]),P[58]?j?j.p(P,H):(j=Kn(P),j.c(),j.m(t,C)):j&&(j.d(1),j=null)},d(P){P&&y(e),O&&O.d(),B.d(),j&&j.d(),N=!1,fe(R)}}}function Rn(l){let e,t,n,o,s,r,a,f,m,b,v,_,h=l[52].unpushedOps+"",w,T;function S(D,M){return D[52].revoked?xs:D[52].connected?Qs:D[52].configured?Zs:Ys}let C=S(l),I=C(l),F=l[52].serverUrl&&Un(l),N=l[52].deviceName&&Vn(l),R=l[52].deviceId&&!l[52].deviceName&&Hn(l),O=l[52].lastSyncAt&&Wn(l);return{c(){e=u("div"),t=u("div"),n=u("span"),n.textContent=`${p("sync.status")}`,o=k(),s=u("span"),I.c(),r=k(),F&&F.c(),a=k(),N&&N.c(),f=k(),R&&R.c(),m=k(),b=u("div"),v=u("span"),v.textContent=`${p("sync.unpushed")}`,_=u("span"),w=A(h),T=k(),O&&O.c(),i(n,"class","sync-label svelte-owriro"),i(s,"class","sync-value svelte-owriro"),i(t,"class","sync-row svelte-owriro"),i(v,"class","sync-label svelte-owriro"),i(_,"class","sync-value svelte-owriro"),i(b,"class","sync-row svelte-owriro"),i(e,"class","sync-status svelte-owriro")},m(D,M){g(D,e,M),c(e,t),c(t,n),c(t,o),c(t,s),I.m(s,null),c(e,r),F&&F.m(e,null),c(e,a),N&&N.m(e,null),c(e,f),R&&R.m(e,null),c(e,m),c(e,b),c(b,v),c(b,_),c(_,w),c(e,T),O&&O.m(e,null)},p(D,M){C!==(C=S(D))&&(I.d(1),I=C(D),I&&(I.c(),I.m(s,null))),D[52].serverUrl?F?F.p(D,M):(F=Un(D),F.c(),F.m(e,a)):F&&(F.d(1),F=null),D[52].deviceName?N?N.p(D,M):(N=Vn(D),N.c(),N.m(e,f)):N&&(N.d(1),N=null),D[52].deviceId&&!D[52].deviceName?R?R.p(D,M):(R=Hn(D),R.c(),R.m(e,m)):R&&(R.d(1),R=null),M[1]&2097152&&h!==(h=D[52].unpushedOps+"")&&V(w,h),D[52].lastSyncAt?O?O.p(D,M):(O=Wn(D),O.c(),O.m(e,null)):O&&(O.d(1),O=null)},d(D){D&&y(e),I.d(),F&&F.d(),N&&N.d(),R&&R.d(),O&&O.d()}}}function Ys(l){let e;return{c(){e=u("span"),e.textContent=`${p("sync.disabled")}`,Re(e,"color","#666"),i(e,"class","svelte-owriro")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function Zs(l){let e;return{c(){e=u("span"),e.textContent=`${p("sync.notConnected")}`,Re(e,"color","#f59e0b"),i(e,"class","svelte-owriro")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function Qs(l){let e;return{c(){e=u("span"),e.textContent=`${p("sync.connected")}`,Re(e,"color","#34d399"),i(e,"class","svelte-owriro")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function xs(l){let e;return{c(){e=u("span"),e.textContent=`${p("sync.revoked")}`,Re(e,"color","#ff6b6b"),i(e,"class","svelte-owriro")},m(t,n){g(t,e,n)},d(t){t&&y(e)}}}function Un(l){let e,t,n,o=l[52].serverUrl+"",s;return{c(){e=u("div"),t=u("span"),t.textContent=`${p("sync.server")}`,n=u("span"),s=A(o),i(t,"class","sync-label svelte-owriro"),i(n,"class","sync-value mono svelte-owriro"),i(e,"class","sync-row svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n),c(n,s)},p(r,a){a[1]&2097152&&o!==(o=r[52].serverUrl+"")&&V(s,o)},d(r){r&&y(e)}}}function Vn(l){let e,t,n,o=l[52].deviceName+"",s;return{c(){e=u("div"),t=u("span"),t.textContent=`${p("sync.device")}`,n=u("span"),s=A(o),i(t,"class","sync-label svelte-owriro"),i(n,"class","sync-value svelte-owriro"),i(e,"class","sync-row svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n),c(n,s)},p(r,a){a[1]&2097152&&o!==(o=r[52].deviceName+"")&&V(s,o)},d(r){r&&y(e)}}}function Hn(l){let e,t,n,o=l[52].deviceId+"",s;return{c(){e=u("div"),t=u("span"),t.textContent=`${p("sync.deviceId")}`,n=u("span"),s=A(o),i(t,"class","sync-label svelte-owriro"),i(n,"class","sync-value mono svelte-owriro"),i(e,"class","sync-row svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n),c(n,s)},p(r,a){a[1]&2097152&&o!==(o=r[52].deviceId+"")&&V(s,o)},d(r){r&&y(e)}}}function Wn(l){let e,t,n,o=l[52].lastSyncAt+"",s;return{c(){e=u("div"),t=u("span"),t.textContent=`${p("sync.lastSync")}`,n=u("span"),s=A(o),i(t,"class","sync-label svelte-owriro"),i(n,"class","sync-value svelte-owriro"),i(e,"class","sync-row svelte-owriro")},m(r,a){g(r,e,a),c(e,t),c(e,n),c(n,s)},p(r,a){a[1]&2097152&&o!==(o=r[52].lastSyncAt+"")&&V(s,o)},d(r){r&&y(e)}}}function $s(l){let e,t,n,o,s,r,a,f,m,b,v,_,h,w,T,S,C,I=p("sync.test")+"",F,N,R,O,D=p("sync.connect")+"",M,B,j;return{c(){e=u("div"),t=u("label"),t.textContent=`${p("sync.serverUrl")}`,n=k(),o=u("input"),s=k(),r=u("div"),a=u("label"),a.textContent=`${p("sync.username")}`,f=k(),m=u("input"),b=k(),v=u("div"),_=u("label"),_.textContent=`${p("sync.password")}`,h=k(),w=u("input"),T=k(),S=u("div"),C=u("button"),F=A(I),R=k(),O=u("button"),M=A(D),i(t,"class","svelte-owriro"),i(o,"type","text"),i(o,"placeholder",p("sync.serverUrlPlaceholder")),i(o,"class","svelte-owriro"),i(e,"class","form-group svelte-owriro"),i(a,"class","svelte-owriro"),i(m,"type","text"),i(m,"placeholder",p("sync.usernamePlaceholder")),i(m,"class","svelte-owriro"),i(r,"class","form-group svelte-owriro"),i(_,"class","svelte-owriro"),i(w,"type","password"),i(w,"placeholder",p("sync.passwordPlaceholder")),i(w,"class","svelte-owriro"),i(v,"class","form-group svelte-owriro"),i(C,"class","btn svelte-owriro"),C.disabled=N=l[53]||!l[54],i(O,"class","btn btn-primary svelte-owriro"),O.disabled=l[53],i(S,"class","modal-actions svelte-owriro"),Re(S,"margin-top","12px")},m(P,H){g(P,e,H),c(e,t),c(e,n),c(e,o),ge(o,l[54]),g(P,s,H),g(P,r,H),c(r,a),c(r,f),c(r,m),ge(m,l[55]),g(P,b,H),g(P,v,H),c(v,_),c(v,h),c(v,w),ge(w,l[56]),g(P,T,H),g(P,S,H),c(S,C),c(C,F),c(S,R),c(S,O),c(O,M),B||(j=[L(o,"input",l[177]),L(m,"input",l[178]),L(w,"input",l[179]),L(C,"click",l[122]),L(O,"click",l[120])],B=!0)},p(P,H){H[1]&8388608&&o.value!==P[54]&&ge(o,P[54]),H[1]&16777216&&m.value!==P[55]&&ge(m,P[55]),H[1]&33554432&&w.value!==P[56]&&ge(w,P[56]),H[1]&12582912&&N!==(N=P[53]||!P[54])&&(C.disabled=N),H[1]&4194304&&(O.disabled=P[53])},d(P){P&&(y(e),y(s),y(r),y(b),y(v),y(T),y(S)),B=!1,fe(j)}}}function ec(l){let e,t,n=p("sync.syncNow")+"",o,s,r,a=p("sync.disconnect")+"",f,m,b;return{c(){e=u("div"),t=u("button"),o=A(n),s=k(),r=u("button"),f=A(a),i(t,"class","btn svelte-owriro"),t.disabled=l[53],i(r,"class","btn btn-danger svelte-owriro"),r.disabled=l[53],i(e,"class","sync-connected-actions svelte-owriro")},m(v,_){g(v,e,_),c(e,t),c(t,o),c(e,s),c(e,r),c(r,f),m||(b=[L(t,"click",l[124]),L(r,"click",l[123])],m=!0)},p(v,_){_[1]&4194304&&(t.disabled=v[53]),_[1]&4194304&&(r.disabled=v[53])},d(v){v&&y(e),m=!1,fe(b)}}}function Kn(l){let e,t;return{c(){e=u("div"),t=A(l[58]),i(e,"class","sync-result svelte-owriro"),Re(e,"margin-top","8px")},m(n,o){g(n,e,o),c(e,t)},p(n,o){o[1]&134217728&&V(t,n[58])},d(n){n&&y(e)}}}function tc(l){var kt;let e,t,n,o,s,r,a,f,m,b,v,_,h,w,T,S,C,I,F,N,R,O,D,M,B,j,P,H,q,J,G,U,K,ee,Y,X,Se,Ae,Ue,re,te,$,le,oe,Me,Be,qe,De,de,x,he,Te,Ge,Xe,Ve=ce(l[0]),be=[];for(let W=0;W<Ve.length;W+=1)be[W]=Gl(ql(l,Ve,W));const He=[us,fs],Ie=[];function ke(W,ae){return W[1].length>0?0:1}F=ke(l),N=Ie[F]=He[F](l);function me(W,ae){return W[9]?ps:W[8]?ms:ds}let ie=me(l),_e=ie(l),Ce=((kt=l[52])==null?void 0:kt.configured)&&Jl(l),we=l[7]&&Zl(l);const ze=[bs,ws,hs,vs,_s],Ee=[];function We(W,ae){return W[12]?0:W[9]?1:W[8]==="today"&&W[3]?2:W[8]==="activity"?3:4}le=We(l),oe=Ee[le]=ze[le](l);let ye=l[17]&&Nn(l),ve=l[21].visible&&In(l),ne=l[24]&&Dn(l),Ne=l[31]&&l[30]&&Ln(l),Le=l[48]&&On(l),Fe=l[43]&&Bn(l),Oe=l[51]&&zn(l);return{c(){var W;e=u("div"),t=u("aside"),n=u("div"),o=u("span"),o.textContent="⚒",s=k(),r=u("span"),r.textContent=`${p("nav.brand")}`,a=k(),f=u("nav"),m=u("div"),b=u("div"),b.textContent=`${p("nav.system")}`,v=k();for(let ae=0;ae<be.length;ae+=1)be[ae].c();_=k(),h=u("div"),w=u("div"),T=u("span"),T.textContent=`${p("nav.workspace")}`,S=k(),C=u("button"),C.textContent="+",I=k(),N.c(),R=k(),O=u("div"),D=u("button"),M=z("svg"),B=z("polyline"),j=z("polyline"),P=z("path"),H=k(),q=u("span"),J=k(),G=u("span"),G.textContent=`${p("nav.sync")}`,U=k(),K=u("span"),ee=A(l[6]),Y=k(),X=u("main"),Se=u("header"),Ae=u("div"),_e.c(),Ue=k(),re=u("div"),Ce&&Ce.c(),te=k(),we&&we.c(),$=k(),oe.c(),Me=k(),ye&&ye.c(),Be=k(),ve&&ve.c(),qe=k(),ne&&ne.c(),De=k(),Ne&&Ne.c(),de=k(),Le&&Le.c(),x=k(),Fe&&Fe.c(),he=k(),Oe&&Oe.c(),i(o,"class","logo svelte-owriro"),i(r,"class","brand-name svelte-owriro"),i(n,"class","sidebar-brand svelte-owriro"),i(b,"class","nav-label svelte-owriro"),i(m,"class","nav-group svelte-owriro"),i(T,"class","svelte-owriro"),i(C,"class","nav-add-btn svelte-owriro"),i(C,"title",p("common.create")),i(w,"class","nav-label-row svelte-owriro"),i(h,"class","nav-group svelte-owriro"),i(f,"class","sidebar-nav svelte-owriro"),i(B,"points","23 4 23 10 17 10"),i(B,"class","svelte-owriro"),i(j,"points","1 20 1 14 7 14"),i(j,"class","svelte-owriro"),i(P,"d","M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"),i(P,"class","svelte-owriro"),i(M,"width","16"),i(M,"height","16"),i(M,"viewBox","0 0 24 24"),i(M,"fill","none"),i(M,"stroke","currentColor"),i(M,"stroke-width","2"),i(M,"stroke-linecap","round"),i(M,"stroke-linejoin","round"),i(M,"class","svelte-owriro"),i(q,"class","sync-dot svelte-owriro"),wt(q,"active",(W=l[52])==null?void 0:W.configured),i(G,"class","sidebar-sync-label svelte-owriro"),i(D,"class","sidebar-sync-btn svelte-owriro"),i(D,"title",p("nav.syncSettings")),i(K,"class","version svelte-owriro"),i(O,"class","sidebar-footer svelte-owriro"),i(t,"class","sidebar svelte-owriro"),i(Ae,"class","header-left svelte-owriro"),i(re,"class","header-right svelte-owriro"),i(Se,"class","header svelte-owriro"),i(X,"class","main svelte-owriro"),i(e,"class","app svelte-owriro")},m(W,ae){g(W,e,ae),c(e,t),c(t,n),c(n,o),c(n,s),c(n,r),c(t,a),c(t,f),c(f,m),c(m,b),c(m,v);for(let Je=0;Je<be.length;Je+=1)be[Je]&&be[Je].m(m,null);c(f,_),c(f,h),c(h,w),c(w,T),c(w,S),c(w,C),c(h,I),Ie[F].m(h,null),c(t,R),c(t,O),c(O,D),c(D,M),c(M,B),c(M,j),c(M,P),c(D,H),c(D,q),c(D,J),c(D,G),c(O,U),c(O,K),c(K,ee),c(e,Y),c(e,X),c(X,Se),c(Se,Ae),_e.m(Ae,null),c(Se,Ue),c(Se,re),Ce&&Ce.m(re,null),c(X,te),we&&we.m(X,null),c(X,$),Ee[le].m(X,null),c(X,Me),ye&&ye.m(X,null),c(X,Be),ve&&ve.m(X,null),c(X,qe),ne&&ne.m(X,null),c(X,De),Ne&&Ne.m(X,null),c(X,de),Le&&Le.m(X,null),c(X,x),Fe&&Fe.m(X,null),c(X,he),Oe&&Oe.m(X,null),Te=!0,Ge||(Xe=[L(C,"click",l[87]),L(D,"click",l[118])],Ge=!0)},p(W,ae){var mt,pt;if(ae[0]&257|ae[1]&1073741824){Ve=ce(W[0]);let Ke;for(Ke=0;Ke<Ve.length;Ke+=1){const yt=ql(W,Ve,Ke);be[Ke]?be[Ke].p(yt,ae):(be[Ke]=Gl(yt),be[Ke].c(),be[Ke].m(m,null))}for(;Ke<be.length;Ke+=1)be[Ke].d(1);be.length=Ve.length}let Je=F;F=ke(W),F===Je?Ie[F].p(W,ae):(Ye(),pe(Ie[Je],1,1,()=>{Ie[Je]=null}),Ze(),N=Ie[F],N?N.p(W,ae):(N=Ie[F]=He[F](W),N.c()),se(N,1),N.m(h,null)),(!Te||ae[1]&2097152)&&wt(q,"active",(mt=W[52])==null?void 0:mt.configured),(!Te||ae[0]&64)&&V(ee,W[6]),ie===(ie=me(W))&&_e?_e.p(W,ae):(_e.d(1),_e=ie(W),_e&&(_e.c(),_e.m(Ae,null))),(pt=W[52])!=null&&pt.configured?Ce?Ce.p(W,ae):(Ce=Jl(W),Ce.c(),Ce.m(re,null)):Ce&&(Ce.d(1),Ce=null),W[7]?we?we.p(W,ae):(we=Zl(W),we.c(),we.m(X,$)):we&&(we.d(1),we=null);let dt=le;le=We(W),le===dt?Ee[le].p(W,ae):(Ye(),pe(Ee[dt],1,1,()=>{Ee[dt]=null}),Ze(),oe=Ee[le],oe?oe.p(W,ae):(oe=Ee[le]=ze[le](W),oe.c()),se(oe,1),oe.m(X,Me)),W[17]?ye?ye.p(W,ae):(ye=Nn(W),ye.c(),ye.m(X,Be)):ye&&(ye.d(1),ye=null),W[21].visible?ve?ve.p(W,ae):(ve=In(W),ve.c(),ve.m(X,qe)):ve&&(ve.d(1),ve=null),W[24]?ne?ne.p(W,ae):(ne=Dn(W),ne.c(),ne.m(X,De)):ne&&(ne.d(1),ne=null),W[31]&&W[30]?Ne?Ne.p(W,ae):(Ne=Ln(W),Ne.c(),Ne.m(X,de)):Ne&&(Ne.d(1),Ne=null),W[48]?Le?Le.p(W,ae):(Le=On(W),Le.c(),Le.m(X,x)):Le&&(Le.d(1),Le=null),W[43]?Fe?(Fe.p(W,ae),ae[1]&4096&&se(Fe,1)):(Fe=Bn(W),Fe.c(),se(Fe,1),Fe.m(X,he)):Fe&&(Ye(),pe(Fe,1,1,()=>{Fe=null}),Ze()),W[51]?Oe?Oe.p(W,ae):(Oe=zn(W),Oe.c(),Oe.m(X,null)):Oe&&(Oe.d(1),Oe=null)},i(W){Te||(se(N),se(oe),se(Fe),Te=!0)},o(W){pe(N),pe(oe),pe(Fe),Te=!1},d(W){W&&y(e),je(be,W),Ie[F].d(),_e.d(),Ce&&Ce.d(),we&&we.d(),Ee[le].d(),ye&&ye.d(),ve&&ve.d(),ne&&ne.d(),Ne&&Ne.d(),Le&&Le.d(),Fe&&Fe.d(),Oe&&Oe.d(),Ge=!1,fe(Xe)}}}function Z(l,...e){try{if(window.go&&window.go.main&&window.go.main.App){const t=window.go.main.App[l];if(typeof t=="function")return t(...e)}}catch(t){console.error("Wails call error:",l,t)}return Promise.reject(new Error("Wails not connected: "+l))}function bt(l){return l==="note_created"||l==="file_added"||l==="folder_added"||l==="node_created"?"+":l==="file_deleted"||l==="folder_deleted"?"×":l==="file_renamed"||l==="folder_renamed"||l==="note_updated"||l==="node_updated"?"~":l==="file_copied"?"⧉":l==="file_moved"?"→":"•"}function xe(l){if(!l)return"";try{return new Date(l).toLocaleTimeString("ru-RU",{hour:"2-digit",minute:"2-digit"})}catch{return""}}function $e(l){if(!l)return"";try{return new Date(l).toLocaleDateString("ru-RU",{day:"numeric",month:"short"})}catch{return l}}function it(l,e,t,n){return l=Math.abs(l)%100,l>=5&&l<=20?n:(l%=10,l===1?e:l>=2&&l<=4?t:n)}function lc(l,e,t){let n=[],o=[],s=[],r=null,a=[],f=0,m=!0,b=[],v="",_="",h="",w=null,T="overview",S=[],C=null,I=[],F=[],N=[],R="",O="",D=!1,M="",B=null,j=null,P={visible:!1,x:0,y:0,node:null},H=!1,q="",J=!1,G="",U="open_url",K="",ee=[{id:"open_url",label:p("action.openUrl")},{id:"open_file",label:p("action.openFile")},{id:"open_folder",label:p("action.openFolder")},{id:"run_command",label:p("action.runCommand")},{id:"run_script",label:p("action.runScript")},{id:"open_terminal",label:p("action.openTerminal")},{id:"launch_app",label:p("action.launchApp")}],Y=!0,X=!1,Se=null,Ae=!1,Ue="",re={},te=!1,$=null,le=[],oe=[],Me=null,Be="",qe=!1,De="",de={items:[],mode:"copy"},x=[],he=[],Te=!1,Ge="",Xe="",Ve=!1,be=p("common.delete"),He=null,Ie=null,ke=!1,me="",ie="",_e="",Ce=!1,we=null,ze=!1,Ee="",We="",ye="",ve=0,ne="";const Ne=[{id:"overview",label:p("tab.overview")},{id:"notes",label:p("tab.notes")},{id:"files",label:p("tab.files")},{id:"actions",label:p("tab.actions")},{id:"worklog",label:p("tab.worklog")},{id:"activity",label:p("tab.activity")}];let Le=null;Xn(async()=>{try{t(6,v=await Z("VerstakVersion")||"verstak-gui/v2"),t(0,n=await Z("ListSystemViews")||[]),t(1,o=await Z("ListWorkspaceTree")||[]),t(2,s=await Z("ListEnabledTemplates")||[])}catch(d){t(7,_=String(d)),t(0,n=[{id:"today",label:p("nav.today")},{id:"inbox",label:p("nav.inbox")},{id:"activity",label:p("nav.activity")}]),t(1,o=[]),t(2,s=[])}window.runtime&&window.runtime.EventsOn&&(window.runtime.EventsOn("files-dropped",Mo),Le=()=>window.runtime.EventsOff("files-dropped")),window.addEventListener("keydown",tl),t(28,Y=!1),St()}),Jn(()=>{Le&&Le(),window.removeEventListener("keydown",tl)});async function Fe(d){t(8,h=d),t(9,w=null),t(10,T="overview"),t(11,S=[]),I=[],t(13,F=[]),t(14,N=[]),t(17,D=!1),t(7,_=""),t(3,r=null),t(4,a=[]),f=0,m=!0;try{d==="today"?t(3,r=await Z("ListTodayView")||{cases:[]}):d==="activity"&&(t(4,a=await Z("ListActivityFeed",50,0)||[]),f=a.length,m=a.length===50)}catch(E){t(7,_=String(E)),t(3,r={cases:[]}),t(4,a=[])}}async function Oe(d){t(9,w=d),t(10,T="overview"),t(11,S=[]),I=[],t(13,F=[]),t(14,N=[]),t(32,re={}),t(36,oe=[]),t(35,le=[]),t(34,$=null),t(37,Me=null),t(38,Be=""),t(42,x=[]),he=[],t(12,C=null),t(17,D=!1),t(22,H=!1),t(7,_=""),t(5,b=[]),await kt(d.id)}async function kt(d){try{t(11,S=await Z("ListNotes",d)||[])}catch{}try{I=await Z("ListFiles",d)||[]}catch{}try{t(13,F=await Z("ListActions",d)||[])}catch{}try{t(14,N=await Z("ListWorklog",d)||[])}catch{}try{t(5,b=await Z("ListActivityByNode",d,50,0)||[])}catch{}}async function W(d){t(33,te=!0);try{let E=await Z("ListItems",d)||[];E.sort((ue,Pe)=>ue.type!==Pe.type?ue.type==="folder"?-1:1:(ue.name||"").localeCompare(Pe.name||"")),t(36,oe=E)}catch{t(36,oe=[])}t(33,te=!1)}async function ae(d){if(w){try{const E=await Z("GetNodeDetail",d);E&&t(35,le=[...le,{id:d,name:E.title}])}catch{t(35,le=[...le,{id:d,name:"..."}])}t(34,$=d),await W(d)}}function Je(){if(le.length<2)t(35,le=[]),t(34,$=null),W(w.id);else{const d=le[le.length-2];t(35,le=le.slice(0,-1)),t(34,$=d.id),W(d.id)}}function dt(d){const E=le[d];t(35,le=le.slice(0,d+1)),t(34,$=E.id),W(E.id)}async function mt(d){t(37,Me=d),t(38,Be=""),t(40,De=""),t(39,qe=!0);try{Mr(d)?t(38,Be=await Z("GetFileBase64",d.fileId)||""):Dr(d)&&t(38,Be=await Z("ReadFileText",d.fileId)||"")}catch(E){t(40,De=String(E))}t(39,qe=!1)}function pt(){t(37,Me=null),t(38,Be=""),t(40,De="")}async function Ke(){const d=prompt(p("file.namePrompt"));if(!(!d||!d.trim()))try{const E=$||w.id;await Z("CreateEmptyFile",E,d.trim()),await W(E)}catch(E){t(7,_=String(E))}}async function yt(d){try{await Z("DuplicateNode",d);const E=$||w.id;await W(E)}catch(E){t(7,_=String(E))}}function Jt(d){const E=oe.find(ue=>ue.id===d);E&&Bt(E.id,E.name)}function Yt(d){t(41,de={items:[d],mode:"cut"})}function Zt(d){t(41,de={items:[d],mode:"copy"})}async function Qt(){if(de.items.length===0)return;const d=$||w.id;try{if(de.mode==="copy")for(const E of de.items)await Z("DuplicateNode",E);else for(const E of de.items)await Z("MoveNode",E,d);t(41,de={items:[],mode:"copy"}),await W(d)}catch(E){t(7,_=String(E))}}function xt(d){x.includes(d)?t(42,x=x.filter(E=>E!==d)):t(42,x=[...x,d])}function $t(d){t(42,x=[d])}function oo(){t(42,x=oe.map(d=>d.id))}function el(d){if(oe.length===0)return;const E=x.length>0?x[x.length-1]:oe[0].id,ue=oe.findIndex(rt=>rt.id===E),Pe=oe.findIndex(rt=>rt.id===d);if(ue===-1||Pe===-1)return;const Tt=Math.min(ue,Pe),Ht=Math.max(ue,Pe),Gi=oe.slice(Tt,Ht+1).map(rt=>rt.id),vl=new Set(x);Gi.forEach(rt=>vl.add(rt)),t(42,x=[...vl])}function io(){t(42,x=[])}function jt(d){return d.length>0?d:oe.map(E=>E.id)}async function ro(){const d=jt(x),E=oe.find(Pe=>Pe.id===d[0]);let ue;d.length===1&&(E==null?void 0:E.type)==="folder"?ue=p("delete.folder"):d.length===1?ue=p("delete.file"):ue=p("delete.files",{count:d.length}),gt({title:p("delete.confirmTitle"),message:p("delete.confirmMessage")+" "+ue+"?",confirmText:p("common.delete"),danger:!0,onConfirm:async()=>{for(const Tt of d)try{await Z("DeleteFileOrFolder",Tt)}catch(Ht){t(7,_=String(Ht))}t(42,x=[]);const Pe=$||w.id;await W(Pe)}})}function so(){const d=jt(x);t(41,de={items:d,mode:"cut"}),t(42,x=[])}function co(){const d=jt(x);t(41,de={items:d,mode:"copy"}),t(42,x=[])}function ao(d,E){const ue=x.includes(E)?x:[E];he=ue,d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",ue.join(","))}function fo(d,E){const ue=oe.find(Pe=>Pe.id===E);ue&&ue.type==="folder"&&(d.preventDefault(),d.dataTransfer.dropEffect="move")}async function uo(d,E){if(d.preventDefault(),he.length!==0){for(const ue of he)try{await Z("MoveNode",ue,E)}catch(Pe){t(7,_=String(Pe))}he=[],t(42,x=[]),await W($||w.id)}}function tl(d){if(T==="files"&&!(d.target.tagName==="INPUT"||d.target.tagName==="TEXTAREA"))if(d.ctrlKey||d.metaKey)d.key==="c"||d.key==="C"?(d.preventDefault(),co()):d.key==="x"||d.key==="X"?(d.preventDefault(),so()):d.key==="v"||d.key==="V"?(d.preventDefault(),Qt()):d.key==="a"||d.key==="A"?(d.preventDefault(),oo()):d.key==="o"||d.key==="O"?(d.preventDefault(),mo()):d.key==="Enter"&&(d.preventDefault(),ll());else if(d.key==="Enter")d.preventDefault(),ll();else if(d.key==="Delete"||d.key==="Backspace"){if(Me){d.preventDefault(),pt();return}if(x.length>0){d.preventDefault(),ro();return}if(d.key==="Backspace"&&le.length>0){d.preventDefault(),Je();return}}else if(d.key==="Escape"){if(Me){pt();return}if(x.length>0){io();return}}else d.key==="F2"&&(d.preventDefault(),po())}function ll(){if(x.length===1){const d=oe.find(E=>E.id===x[0]);d&&(d.type==="folder"?ae(d.id):mt(d))}}function mo(){if(x.length===1){const d=oe.find(E=>E.id===x[0]);d&&d.fileId&&Z("OpenFile",d.fileId)}}function Bt(d,E){me=d,t(49,ie=E),t(50,_e=""),t(48,ke=!0)}function po(){if(x.length===1){const d=oe.find(E=>E.id===x[0]);d&&Bt(d.id,d.name)}}async function nl(){const d=ie.trim();if(!d){t(50,_e=p("rename.emptyError"));return}try{await Z("ValidateName",d)}catch{t(50,_e=p("rename.invalidError"));return}t(48,ke=!1),me="";try{await Z("RenameNode",me,d);const E=$||w.id;await W(E)}catch(E){t(7,_=String(E))}}function _o(){t(48,ke=!1),me="",t(49,ie=""),t(50,_e="")}function vo(d){d.key==="Enter"?nl():t(50,_e="")}function gt(d){t(44,Ge=d.title||p("common.confirm")),t(45,Xe=d.message||""),t(46,Ve=d.danger!==void 0?d.danger:!0),t(47,be=d.confirmText||p("common.delete")),He=d.onConfirm||null,Ie=d.onCancel||null,t(43,Te=!0)}function ol(){t(43,Te=!1),He=null,Ie=null}function ho(){He&&He(),ol()}function wo(){Ie&&Ie(),ol()}function il(d){t(19,B=P.node),t(20,j=d),t(18,M=""),t(17,D=!0),Ct()}function bo(){t(19,B=null),t(20,j=null),t(18,M=""),t(17,D=!0)}function ko(){t(17,D=!1),t(18,M=""),t(19,B=null),t(20,j=null)}async function rl(){if(M.trim())try{const d=B?B.id:"",E=j?j.id:"";if(await Z("CreateNodeFromTemplate",d,M.trim(),E),t(17,D=!1),t(18,M=""),t(19,B=null),t(20,j=null),t(1,o=await Z("ListWorkspaceTree")||o),!d){const ue=await Z("ListWorkspaceTree")||o;t(1,o=ue)}}catch(d){t(7,_=String(d))}}function yo(d,E){t(21,P={visible:!0,x:d.clientX,y:d.clientY,node:E})}function Ct(){t(21,P={visible:!1,x:0,y:0,node:null})}function go(d){t(32,re={...re,[d]:!re[d]})}function sl(d){Bt(d.id,d.title),Ct()}function cl(d){Ct(),gt({title:p("delete.confirmTitle"),message:p("delete.confirmMessage")+" "+d.title+"?",confirmText:p("common.delete"),danger:!0,onConfirm:async()=>{try{await Z("DeleteNode",d.id),t(1,o=await Z("ListWorkspaceTree")||o),w&&w.id===d.id&&t(9,w=null)}catch(E){t(7,_=String(E))}}})}async function al(d){Ct();try{await Z("OpenNodeFolder",d.id)}catch(E){t(7,_=String(E))}}function fl(){t(22,H=!0),t(23,q="")}function Co(){t(22,H=!1),t(23,q="")}async function ul(){if(!(!q.trim()||!w))try{const d=await Z("CreateNote",w.id,q.trim());t(11,S=[...S,d&&d.id?d:{id:Date.now().toString(),title:q.trim(),createdAt:new Date().toISOString()}]),t(22,H=!1),t(23,q="")}catch{const E={id:Date.now().toString(),title:q.trim(),createdAt:new Date().toISOString()};t(11,S=[...S,E]),t(22,H=!1),t(23,q="")}}async function zt(d){if(C&&C.dirty){gt({title:p("note.unsavedTitle"),message:p("note.unsavedMessage"),confirmText:p("note.unsavedClose"),danger:!1,onConfirm:async()=>{await dl(d)}});return}await dl(d)}async function dl(d){try{const E=await Z("ReadNote",d.id);t(12,C={id:d.id,title:d.title,content:E||"",dirty:!1})}catch{t(12,C={id:d.id,title:d.title,content:"# "+d.title+`
|
||
|
||
`,dirty:!1})}}function So(){if(C&&C.dirty){gt({title:p("note.unsavedTitle"),message:p("note.unsavedMessage"),confirmText:p("note.unsavedClose"),danger:!1,onConfirm:()=>{t(12,C=null)}});return}t(12,C=null)}function To(d){C&&(t(12,C.content=d.target.value,C),t(12,C.dirty=!0,C))}async function No(){if(C)try{await Z("SaveNote",C.id,C.content),t(12,C.dirty=!1,C)}catch{t(12,C.dirty=!1,C)}}async function Fo(){const d=parseInt(R,10);if(!(!O.trim()||isNaN(d)||d<=0||!w)){try{const E=await Z("CreateWorklog",w.id,O.trim(),d);t(14,N=[...N,E&&E.id?E:{id:Date.now().toString(),nodeId:w.id,summary:O.trim(),minutes:d,createdAt:new Date().toISOString()}])}catch{t(14,N=[...N,{id:Date.now().toString(),nodeId:w.id,summary:O.trim(),minutes:d,createdAt:new Date().toISOString()}])}t(16,O=""),t(15,R="")}}async function ml(){const d=await Z("PickFile");d&&await Rt(w.id,d)}async function Io(){const d=await Z("PickDirectory");d&&await Rt(w.id,d)}async function Rt(d,E){t(29,X=!0);try{const ue=await Z("PreviewImport",E);t(30,Se=ue),Ue=E,t(31,Ae=!0)}catch(ue){t(7,_=String(ue))}t(29,X=!1)}async function Ut(d){try{const E=d==="copy"?await Z("AddPathCopy",w.id,Ue):await Z("AddPathLink",w.id,Ue);t(31,Ae=!1),t(30,Se=null),t(35,le=[]),t(34,$=null),await Promise.all([kt(w.id),W(w.id)])}catch(E){t(7,_=String(E))}}function Ao(){t(31,Ae=!1),t(30,Se=null)}async function pl({id:d,type:E}){const ue=p(E==="folder"?"delete.folder":"delete.file");gt({title:p("delete.confirmTitle"),message:p("delete.confirmMessage")+" "+ue+"?",confirmText:p("common.delete"),danger:!0,onConfirm:async()=>{try{await Z("DeleteFileOrFolder",d),I=I.filter(Tt=>Tt.nodeId!==d);const Pe=$||w.id;await W(Pe)}catch(Pe){t(7,_=String(Pe))}}})}async function Mo(d){if(!d||d.length===0)return;if(!w){t(7,_=p("error.selectCaseFirst"));return}const E=d[0];await Rt(w.id,E)}function Do(d){return T===d?"tab active":"tab"}function Eo(d){return{note_created:p("event.noteCreated"),note_updated:p("event.noteUpdated"),file_added:p("event.fileAdded"),file_deleted:p("event.fileDeleted"),file_renamed:p("event.fileRenamed"),file_copied:p("event.fileCopied"),file_moved:p("event.fileMoved"),folder_added:p("event.folderAdded"),folder_deleted:p("event.folderDeleted"),folder_renamed:p("event.folderRenamed"),node_created:p("event.caseCreated"),node_updated:p("event.caseUpdated")}[d]||d}function Lo(d){return{project:p("kind.project"),client:p("kind.client"),document:p("kind.document"),recipe:p("kind.recipe"),archive:p("kind.archive"),case:p("kind.case")}[d]||d||p("kind.case")}function Po(){t(24,J=!0),t(25,G=""),t(26,U="open_url"),t(27,K="")}function Oo(){t(24,J=!1),t(25,G=""),t(27,K="")}async function Vt(){if(!(!G.trim()||!K.trim()||!w))try{const d=await Z("CreateAction",w.id,U,G.trim(),K.trim());d&&d.id&&t(13,F=[...F,d]),t(24,J=!1),t(25,G=""),t(27,K="")}catch(d){t(7,_=String(d))}}async function _l(d){try{await Z("DeleteAction",d),t(13,F=F.filter(E=>E.id!==d))}catch(E){t(7,_=String(E))}}function jo(d){const E=ee.find(ue=>ue.id===d);return E?E.label:d}async function lt(d){try{const E=await Z("GetNodeDetail",d);E&&Oe(E)}catch(E){t(7,_=String(E))}}async function St(){try{t(52,we=await Z("SyncStatus"))}catch{t(52,we={configured:!1,serverUrl:"",deviceId:"",unpushedOps:0,lastSyncAt:"",syncInterval:0})}}function Bo(){t(51,Ce=!0),t(54,Ee=(we==null?void 0:we.serverUrl)||""),t(55,We=""),t(56,ye=""),t(57,ve=(we==null?void 0:we.syncInterval)||0),t(58,ne="")}function zo(){t(51,Ce=!1),t(58,ne="")}async function Ro(){t(53,ze=!0),t(58,ne="");try{await Z("SyncConfigure",Ee,We,ye),ve>0&&await Z("SyncSetInterval",ve),t(56,ye=""),t(55,We=""),await St(),t(51,Ce=!1)}catch(d){t(58,ne="err: "+String(d))}t(53,ze=!1)}async function Uo(){t(53,ze=!0),t(58,ne="");try{await Z("SyncSetInterval",ve),t(58,ne=p("sync.settingsSaved")),await St()}catch(d){t(58,ne="err: "+String(d))}t(53,ze=!1)}async function Vo(){t(53,ze=!0),t(58,ne="");try{await Z("SyncTestConnection",Ee,We,ye),t(58,ne="connection ok")}catch(d){t(58,ne="connection failed: "+String(d))}t(53,ze=!1)}async function Ho(){t(53,ze=!0),t(58,ne="");try{await Z("SyncDisconnect"),t(58,ne="disconnected"),await St()}catch(d){t(58,ne="err: "+String(d))}t(53,ze=!1)}async function Wo(){t(53,ze=!0),t(58,ne="");try{const d=await Z("SyncNow");t(58,ne="pushed "+d.pushed+", pulled "+d.pulled+" (seq "+d.serverSequence+")"),await St()}catch(d){t(58,ne="err: "+String(d))}t(53,ze=!1)}const Ko=d=>Fe(d.id),qo=()=>t(7,_=""),Go=()=>t(7,_="");function Xo(){C.content=this.value,t(12,C)}const Jo=d=>{t(10,T=d.id),d.id==="files"&&w&&oe.length===0&&!$&&W(w.id)},Yo=()=>{t(10,T="notes"),fl()},Zo=()=>{t(10,T="files"),ml()},Qo=()=>t(10,T="worklog"),xo=d=>zt(d);function $o(){q=this.value,t(23,q)}const ei=d=>d.key==="Enter"&&ul(),ti=d=>zt(d),li=d=>{const E=d.detail;E===0?(t(35,le=[]),t(34,$=null),W(w.id)):dt(E-1)},ni=d=>ae(d.detail),oi=d=>mt(d.detail),ii=d=>Z("OpenFile",d.detail),ri=d=>Z("OpenFolder",d.detail),si=d=>pl(d.detail),ci=d=>Jt(d.detail.id),ai=d=>yt(d.detail),fi=d=>Yt(d.detail),ui=d=>Zt(d.detail),di=d=>$t(d.detail),mi=d=>xt(d.detail),pi=d=>el(d.detail),_i=d=>Z("OpenFile",d.detail),vi=d=>Z("RunAction",d.id),hi=d=>_l(d.id);function wi(){O=this.value,t(16,O)}function bi(){R=Et(this.value),t(15,R)}const ki=d=>lt(d.nodeId),yi=(d,E)=>E.key==="Enter"&<(d.nodeId),gi=d=>lt(d.nodeId),Ci=(d,E)=>E.key==="Enter"&<(d.nodeId),Si=d=>lt(d.nodeId),Ti=(d,E)=>E.key==="Enter"&<(d.nodeId),Ni=d=>lt(d.nodeId),Fi=(d,E)=>E.key==="Enter"&<(d.nodeId);function Ii(){M=this.value,t(18,M)}const Ai=d=>d.key==="Enter"&&rl(),Mi=d=>il(d),Di=()=>sl(P.node),Ei=()=>cl(P.node),Li=()=>al(P.node);function Pi(){G=this.value,t(25,G)}const Oi=d=>d.key==="Enter"&&Vt();function ji(){U=xi(this),t(26,U),t(59,ee)}function Bi(){K=this.value,t(27,K)}const zi=d=>d.key==="Enter"&&Vt(),Ri=()=>Ut("copy"),Ui=()=>Ut("link");function Vi(){ie=this.value,t(49,ie)}function Hi(){Ee=this.value,t(54,Ee)}function Wi(){We=this.value,t(55,We)}function Ki(){ye=this.value,t(56,ye)}function qi(){ve=Et(this.value),t(57,ve)}return[n,o,s,r,a,b,v,_,h,w,T,S,C,F,N,R,O,D,M,B,j,P,H,q,J,G,U,K,Y,X,Se,Ae,re,te,$,le,oe,Me,Be,qe,De,de,x,Te,Ge,Xe,Ve,be,ke,ie,_e,Ce,we,ze,Ee,We,ye,ve,ne,ee,Ne,Fe,Oe,W,ae,Je,dt,mt,pt,Ke,yt,Jt,Yt,Zt,Qt,xt,$t,el,ao,fo,uo,nl,_o,vo,ho,wo,il,bo,ko,rl,yo,Ct,go,sl,cl,al,fl,Co,ul,zt,So,To,No,Fo,ml,Io,Ut,Ao,pl,Do,Eo,Lo,Po,Oo,Vt,_l,jo,lt,Bo,zo,Ro,Uo,Vo,Ho,Wo,Ko,qo,Go,Xo,Jo,Yo,Zo,Qo,xo,$o,ei,ti,li,ni,oi,ii,ri,si,ci,ai,fi,ui,di,mi,pi,_i,vi,hi,wi,bi,ki,yi,gi,Ci,Si,Ti,Ni,Fi,Ii,Ai,Mi,Di,Ei,Li,Pi,Oi,ji,Bi,zi,Ri,Ui,Vi,Hi,Wi,Ki,qi]}class nc extends ut{constructor(e){super(),ft(this,e,lc,tc,ct,{},null,[-1,-1,-1,-1,-1,-1,-1,-1,-1])}}new nc({target:document.getElementById("app")});
|