p-backlog 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +138 -0
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/dist/cli.js +2451 -1479
- package/dist/web/assets/CodeTab-D7apweTn.js +1 -0
- package/dist/web/assets/CostTab-Cbq-tBpi.js +1 -0
- package/dist/web/assets/EffectTab-CSJBH_A_.js +1 -0
- package/dist/web/assets/Figure-BkubK2zp.js +1 -0
- package/dist/web/assets/OverviewTab-D1S-xV7F.js +1 -0
- package/dist/web/assets/Page-DcJkvJR8.js +81 -0
- package/dist/web/assets/QualityTab-Bvo5sLJL.js +1 -0
- package/dist/web/assets/ShareBar-CVoET5r9.js +1 -0
- package/dist/web/assets/StatsPage-CC1pIw6W.js +1 -0
- package/dist/web/assets/StatsTabState-DsgM-E6r.js +1 -0
- package/dist/web/assets/StatsTable-Dfk5L9ju.js +1 -0
- package/dist/web/assets/UnavailableRepos-DEI_jdL7.js +1 -0
- package/dist/web/assets/index-CrooTAtB.js +2 -0
- package/dist/web/assets/start-CTwcHqnH.js +257 -0
- package/dist/web/assets/start-D3XxrO_Y.css +1 -0
- package/dist/web/assets/use-grain-panel-C8dF5mz1.js +69 -0
- package/dist/web/assets/web-paths-Cv9UykyI.js +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +6 -6
- package/skill/backlog/SKILL.md +2 -2
- package/skill/backlog-en/SKILL.md +1 -1
- package/dist/web/assets/CodeTab-BokbzP4a.js +0 -1
- package/dist/web/assets/CostTab-D91_w1H0.js +0 -1
- package/dist/web/assets/EffectTab-CRlWfFF0.js +0 -1
- package/dist/web/assets/Figure-CO87y2TD.js +0 -1
- package/dist/web/assets/OverviewTab-naYN8aXk.js +0 -1
- package/dist/web/assets/Page-BHZdQQhE.js +0 -59
- package/dist/web/assets/QualityTab-BMfBa6YW.js +0 -1
- package/dist/web/assets/ShareBar-DBiU0f9_.js +0 -1
- package/dist/web/assets/StatsPage-Dr1pco7X.js +0 -1
- package/dist/web/assets/StatsTabState-CePos7h7.js +0 -1
- package/dist/web/assets/StatsTable-CqH14eSD.js +0 -1
- package/dist/web/assets/UnavailableRepos-BBbuCPNM.js +0 -1
- package/dist/web/assets/index-DpWYLB0A.js +0 -2
- package/dist/web/assets/start-Cw9zPEW-.js +0 -42
- package/dist/web/assets/start-DCkTSXpO.css +0 -1
- package/dist/web/assets/use-grain-panel-BKTkjTK3.js +0 -55
- package/dist/web/assets/web-paths-yWGbLD6t.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,dn as t,h as n,j as r,mt as i}from"./Page-BHZdQQhE.js";import{a,i as o,n as s,o as c,s as l}from"./StatsTabState-CePos7h7.js";import{t as u}from"./PanelRows.module-rg1MXy2z.js";import{t as d}from"./StatsTable-CqH14eSD.js";import{_ as f,b as p,h as m,i as h,p as g,t as _}from"./use-grain-panel-BKTkjTK3.js";var v=t(),y=`var(--chart-bar-neutral)`,b=`var(--chart-line-green)`;function x({periods:t,grain:n}){let{stats:i}=e(),a=r(),o=[{key:`decided`,label:i.decidedCandidates,shape:`bar`,color:y,format:p(a)},{key:`precision`,label:i.precision,shape:`line`,color:b,axis:`right`,sparse:!0,format:g}];return(0,v.jsx)(m,{name:i.accuracyTitle,grain:n,summary:i.accuracySummary(h(n,t)),data:t,series:o,axes:{left:f,right:{domain:[0,1],tickFormatter:g}}})}function S({rows:t,weeks:n,days:r,windows:i,methodRows:o,matchRows:s}){let{stats:u,core:f}=e(),p=a(),{grain:m,periods:h,period:y,toggle:b}=_(`accuracy`,`week`,{weeks:n,days:r},i),S=p.of(`weeks`,i.weeks),w=[...o,...s],T=e=>{switch(e.evidence){case`source-changed`:return e.by===`unknown`?u.beforeMethodRecorded:u.checkedBy(f.checkMethodLabel(e.by));case`duplicate`:return e.by===`unknown`?u.beforeMatchRecorded:u.matchedBy(f.duplicateMatchLabel(e.by))}},E=e=>w.filter(t=>t.evidence===e).map(e=>C(u,e,T(e)));return(0,v.jsx)(c,{title:u.accuracyTitle,period:y,aside:t.length===0?void 0:b,children:t.length===0?(0,v.jsx)(l,{children:u.noCandidates}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l,{children:u.accuracyHint}),(0,v.jsx)(x,{periods:h,grain:m}),(0,v.jsx)(l,{children:S}),(0,v.jsx)(d,{label:u.accuracyTable(S),head:u.accuracyHead,rows:t.flatMap(e=>[{key:e.evidence,tone:e.evidence===`total`?`total`:void 0,cells:[f.evidenceLabel(e.evidence),e.candidates,e.closed,e.verified,e.open,g(e.precision)]},...E(e.evidence).map(t=>({...t,key:`${e.evidence}-${t.key}`}))])})]})})}function C(e,t,n){return{key:t.by,tone:`child`,cells:[e.splitRow(n),t.candidates,t.closed,t.verified,t.open,g(t.precision)]}}function w({graph:t,period:n}){let{stats:r,core:i}=e(),o=a(),{projects:s,filter:f}=t;return f.filtered===0&&s.every(e=>e.state===`none`)?(0,v.jsx)(c,{title:r.graphTitle,children:(0,v.jsx)(l,{children:r.graphMissing(e=>(0,v.jsx)(`code`,{children:e},e))})}):(0,v.jsxs)(c,{title:r.graphTitle,children:[(0,v.jsx)(l,{children:r.graphHint}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:o.labelled(r.filteredTitle,n)}),f.filtered===0?(0,v.jsx)(l,{children:r.nothingFiltered}):(0,v.jsx)(d,{label:r.filteredTable,head:r.filteredHead,rows:[{key:`filtered`,cells:[r.filteredByGraph,f.filtered]},{key:`caught`,cells:[r.filteredCaught,f.caught]},{key:`missed`,cells:[r.filteredMissed,f.missed]},{key:`quiet`,cells:[r.filteredQuiet,f.quiet]}]})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:r.periodCaption(r.projects,r.periodNow)}),(0,v.jsx)(d,{label:r.graphByProject,head:r.graphHead,rows:s.map(e=>({key:e.projectId,cells:[e.name,i.graphStateLabel(e.state),e.pinned,T(e)]}))})]})]})}function T({state:e,pinned:t,resolved:n}){return e===`none`||e===`unreadable`?`—`:`${n} (${g(t===0?null:n/t)})`}function E({rows:t,period:n}){let{stats:r,core:i}=e(),o=a();return(0,v.jsx)(c,{title:r.categoriesTitle,period:o.of(`weeks`,n),children:t.length===0?(0,v.jsx)(l,{children:r.categoriesEmpty}):(0,v.jsx)(d,{label:r.categoriesTitle,head:r.categoriesHead,rows:t.map(e=>({key:e.category,cells:[i.categoryRowLabel(e.category),e.open,e.weight,e.created,e.closed]}))})})}function D({found:t,branches:n,period:r}){let{stats:i,core:o}=e(),s=a();return(0,v.jsxs)(c,{title:i.originTitle,period:s.of(`weeks`,r),children:[(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:i.foundTitle}),(0,v.jsx)(d,{label:i.foundTitle,head:i.foundHead,rows:t.map(e=>({key:e.found,cells:[o.foundRowLabel(e.found),e.created,e.open,e.fixed]}))})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:i.branchesTitle}),n.length===0?(0,v.jsx)(l,{children:i.branchesEmpty}):(0,v.jsx)(d,{label:i.branchesTitle,head:i.branchesHead,rows:n.map(e=>({key:e.label,cells:[(0,v.jsx)(`code`,{children:e.label}),e.created,e.open]}))})]})]})}function O(){let{projectId:e}=i(),t=n(`quality`,e);return(0,v.jsx)(s,{query:t,children:e=>(0,v.jsx)(k,{report:e})})}function k({report:e}){return(0,v.jsxs)(`div`,{className:o.blocks,children:[(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(S,{rows:e.accuracy,weeks:e.accuracyWeeks,days:e.accuracyDays,windows:e.periods,methodRows:e.methodAccuracy,matchRows:e.matchAccuracy})}),(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(w,{graph:e.graph,period:e.periods.weeks})}),(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(E,{rows:e.categories,period:e.periods.weeks})}),(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(D,{found:e.found,branches:e.branches,period:e.periods.weeks})})]})}export{O as QualityTab};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dn as e}from"./Page-BHZdQQhE.js";import{a as t}from"./start-Cw9zPEW-.js";var n={share:`_share_cpxwy_1`},r=e();function i({share:e}){return(0,r.jsx)(t,{fraction:e,className:n.share,"aria-hidden":`true`})}export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,Sn as t,a as n,d as r,dn as i,fn as a,h as o,i as s,mt as c,t as l}from"./Page-BHZdQQhE.js";import{c as u,i as d,m as f}from"./web-paths-yWGbLD6t.js";import{f as p,l as m,m as h,p as g,s as _,u as v}from"./start-Cw9zPEW-.js";var y=t(a(),1),b={page:`_page_1nss1_1`,scopeNote:`_scopeNote_1nss1_7`,signals:`_signals_1nss1_13`,signalsTitle:`_signalsTitle_1nss1_18`,tabs:`_tabs_1nss1_28`,tab:`_tab_1nss1_28`,tabActive:`_tabActive_1nss1_53`,tabPending:`_tabPending_1nss1_58`},x=i();function S(){let{projectId:t}=c(),i=r(),a=o(`signals`,t),{app:S,core:C,stats:w}=e(),T=t===void 0?w.projects:m(i.data,t),E=w.heading(T),D=g()??h[0],O=p(t),k=(0,y.useRef)(null),A=w.docTitle(D.key===`overview`?E:`${w.tabs[D.key]} · ${E}`);return _(A),(0,x.jsxs)(`main`,{id:`content`,tabIndex:-1,className:b.page,"aria-busy":O!==void 0||void 0,children:[(0,x.jsx)(l,{ref:k,children:E}),t===void 0&&i.data!==void 0&&(0,x.jsx)(`p`,{className:b.scopeNote,children:v(i.data,S)}),(a.data?.signals.length??0)>0&&(0,x.jsxs)(s,{as:`div`,className:b.signals,role:`status`,"aria-labelledby":`stats-signals-heading`,children:[(0,x.jsx)(`strong`,{id:`stats-signals-heading`,className:b.signalsTitle,children:w.alerts}),(0,x.jsx)(`ul`,{children:a.data?.signals.map(e=>(0,x.jsx)(`li`,{children:C.signal(e)},e.kind))})]}),(0,x.jsx)(`nav`,{className:b.tabs,"aria-label":w.tabsLabel,children:h.map(e=>(0,x.jsx)(u,{to:d(e.key,t),className:n(b.tab,e===D&&b.tabActive,e===O&&b.tabPending),"aria-current":e===D?`page`:void 0,children:w.tabs[e.key]},e.key))}),(0,x.jsx)(f,{context:{heading:k}})]})}export{S as StatsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,Sn as t,a as n,dn as r,fn as i,i as a,j as o,k as s,n as c,pt as l}from"./Page-BHZdQQhE.js";import{l as u,p as d}from"./index-DpWYLB0A.js";import{d as f,o as p}from"./start-Cw9zPEW-.js";var m=t(i(),1),h={caption:`_caption_1c6r3_1`},g={panel:`_panel_crp6l_1`,head:`_head_crp6l_14`,heading:`_heading_crp6l_22`,title:`_title_crp6l_29`},_=r();function v({title:e,period:t,aside:n,children:r}){let i=(0,m.useId)(),a=(0,m.useId)();return(0,_.jsxs)(`section`,{className:g.panel,"aria-labelledby":i,"aria-describedby":t===void 0?void 0:a,children:[(0,_.jsxs)(`div`,{className:g.head,children:[(0,_.jsxs)(`div`,{className:g.heading,children:[(0,_.jsx)(`h2`,{id:i,className:g.title,children:e}),t!==void 0&&(0,_.jsx)(`p`,{id:a,className:h.caption,children:t})]}),n]}),r]})}function y({children:e}){return(0,_.jsx)(`p`,{className:h.caption,children:e})}function b(){let{stats:t}=e(),n=o(),r=(e,r)=>t.periodCaption(e,d(n,r.from,r.to));return{of:(e,n)=>r(t.periodWindows[e],n),labelled:r}}var x={content:`_content_10qjz_1`,warning:`_warning_10qjz_8`,blocks:`_blocks_10qjz_14`,wide:`_wide_10qjz_20`,tabNote:`_tabNote_10qjz_24`};function S({query:t,empty:n,children:r}){let{stats:i}=e(),a=T(t,n),o=D(i,a),s=a.kind===`failed`?a.error:null,u=a.kind===`ready`||a.kind===`failed`?a.report:void 0,d=E(a),{status:m,keepFocus:h}=p(d===`hidden`,l()?.heading);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(c,{ref:m,state:d,children:[o!==null&&(0,_.jsx)(`p`,{children:o}),s!==null&&(0,_.jsx)(f,{error:s,fetching:t.isFetching,onRetry:()=>{h(),t.refetch()}})]}),u!==void 0&&(0,_.jsx)(`div`,{className:x.content,children:r(u)})]})}function C({query:t,children:n}){let{stats:r}=e(),i=o(),s=t.data?.invalidJournalLines??0,c=t.data?.unknownJournalLines??0,l=t.data?.unparsedTasks??0,u=[s>0?r.invalidJournalLines(s):null,c>0?r.unknownJournalLines(c):null,l>0?r.unparsedTasks(l):null].filter(e=>e!==null);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a,{className:x.warning,shown:u.length>0,role:`status`,children:u.join(` `)}),(0,_.jsx)(S,{query:t,empty:{isEmpty:e=>e.taskCount===0,message:r.noTasks},children:e=>(0,_.jsxs)(_.Fragment,{children:[n(e),(0,_.jsx)(w,{children:O(r,i,e.journalSince)})]})})]})}function w({children:e}){return(0,_.jsx)(`p`,{className:n(h.caption,x.tabNote),children:e})}function T({error:e,data:t},n){if(s(e)===`notFound`)return{kind:`notFound`};let r=t!==void 0&&n?.isEmpty(t)!==!0?t:void 0;return e===null?t===void 0?{kind:`loading`}:r===void 0&&n!==void 0?{kind:`empty`,message:n.message}:{kind:`ready`,report:t}:{kind:`failed`,error:e,report:r}}function E(e){switch(e.kind){case`ready`:return`hidden`;case`loading`:return`waiting`;case`notFound`:case`failed`:case`empty`:return`shown`}}function D(e,t){switch(t.kind){case`notFound`:return e.projectNotFound;case`loading`:return e.loading;case`empty`:return t.message;case`failed`:case`ready`:return null}}function O(e,t,n){return n===null?e.journalEmpty:e.journalSince(u(t,n))}export{b as a,h as c,x as i,C as n,v as o,w as r,y as s,S as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,dn as t,j as n}from"./Page-BHZdQQhE.js";import{g as r}from"./index-DpWYLB0A.js";var i={scroll:`_scroll_ggj36_1`,table:`_table_ggj36_15`,child:`_child_ggj36_46`,total:`_total_ggj36_50`},a=t();function o({label:t,head:o,rows:s}){let{stats:c}=e(),l=n(),u=e=>typeof e==`number`?r(l,e):e;return(0,a.jsx)(`div`,{className:i.scroll,tabIndex:0,role:`region`,"aria-label":c.tableLabel(t),children:(0,a.jsxs)(`table`,{className:i.table,children:[(0,a.jsx)(`thead`,{children:(0,a.jsx)(`tr`,{children:o.map(e=>(0,a.jsx)(`th`,{scope:`col`,children:e},e))})}),(0,a.jsx)(`tbody`,{children:s.map(e=>(0,a.jsx)(`tr`,{className:e.tone&&i[e.tone],children:e.cells.map((e,t)=>t===0?(0,a.jsx)(`th`,{scope:`row`,children:u(e)},o[t]):(0,a.jsx)(`td`,{children:u(e)},o[t]))},e.key))})]})})}export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,dn as t,i as n}from"./Page-BHZdQQhE.js";import{i as r}from"./StatsTabState-CePos7h7.js";var i=t();function a({repos:t}){let{stats:a}=e();return t.map(e=>(0,i.jsx)(n,{className:r.warning,role:`status`,children:a.unavailableRepo(e)},e))}export{a as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/start-Cw9zPEW-.js","assets/Page-BHZdQQhE.js","assets/Page-CiLGp04P.css","assets/web-paths-yWGbLD6t.js","assets/start-DCkTSXpO.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function t(e,t=`|`){return e.map(e=>y(e)).join(t)}function n(e,t){return typeof t==`bigint`?t.toString():t}var r=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function i(e){return new r(e)}function a(e){return e==null}function o(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function s(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function c(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function l(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function u(e){return l(e._zod.def)??e._zod.def.shape}function d(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return c(this,t,e),e},enumerable:!0,configurable:!0})}function f(e,t,n){t in e?c(e,t,n):e[t]=n}function p(e,t,n,r){let i=u(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?d(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):f(e,a,r?r(n.value,a):n.value))}}function ee(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?d(e,n,()=>t[n]):f(e,n,r.value))}}function m(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function te(e){return JSON.stringify(e)}function ne(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var re=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function h(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ie=i(()=>{if(I.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function g(e){if(h(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return h(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function _(e){return g(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ae=new Set([`string`,`number`,`symbol`]);function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function v(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function se(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function y(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ce(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var le={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ue={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function de(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return p(i,e,b(e,t)),v(e,m(n,{shape:i,checks:[]}))}function b(e,t){let n=u(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(b(e,t)),a={};return p(a,e,Reflect.ownKeys(u(e)).filter(e=>!i.has(e))),v(e,m(n,{shape:a,checks:[]}))}function pe(e,t){if(!g(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=u(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return v(e,m(e._zod.def,{shape:x(e,t)}))}function x(e,t){let n={};return p(n,e,Reflect.ownKeys(u(e))),ee(n,t),n}function me(e,t){if(!g(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return v(e,m(e._zod.def,{shape:x(e,t)}))}function he(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return p(n,e,Reflect.ownKeys(u(e))),p(n,t,Reflect.ownKeys(u(t))),v(e,m(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ge(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(b(t,n)):void 0,o={};return p(o,t,Reflect.ownKeys(u(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),v(t,m(t._zod.def,{shape:o,checks:[]}))}function _e(e,t,n){let r=n?new Set(b(t,n)):void 0,i={};return p(i,t,Reflect.ownKeys(u(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),v(t,m(t._zod.def,{shape:i}))}function ve(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ye(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function be(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function S(e){return typeof e==`string`?e:e?.message}function xe(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Se(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:S(e.inst?._zod.def?.error?.(e))??S(a?.(e))??S(t?.error?.(e))??S(n.customError?.(e))??S(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Ce=/[\uD800-\uDBFF]/;function C(e){let t=e.length;if(!Ce.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function w(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function T(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function E(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function D(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):we(e,n,r.value)}}function O(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function k(e,t,n){return O(e,t,n,!1)}function A(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return O(this,n,r(this))},set(e){O(this,n,e)}})}return t}function we(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:O(this,t,n.bind(this))},set(e){O(this,t,e)}})}function Te(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var j,M=!1,Ee={configurable:!0,get(){M=!0}};function De(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&j!==e._zod){j=void 0;return}j=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Ee);let e=M;M=!1;try{let r=n(this);return M?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),M||=e,r}catch(n){throw delete this[t],M||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function Oe(e,t,n,r){let i=Te(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var ke=`~constantCatch`;function Ae(e){let t=()=>e;return t[ke]=!0,t}var N,je=Object.freeze({status:`aborted`}),P={value:void 0,enumerable:!1},F=`captureStackTrace`in Error?Error:null;function Me(e){let t=F;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return F=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function Ne(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){P.value=new a(r);try{Object.defineProperty(n,"_zod",P)}finally{P.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),D(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Me(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Pe=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Fe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(N=globalThis).__zod_globalConfig??(N.__zod_globalConfig={});var I=globalThis.__zod_globalConfig;function L(e){return e&&Object.assign(I,e),I}var R=36e5,z=24*R,Ie=7*z,Le=10;function Re(e){return e.slice(0,Le)}var ze=100;function B(e){return Math.round(e*10)/10}function Be(e){return Math.round(e*ze)}function Ve(e){return e.reduce((e,t)=>e+t,0)}var He=[`ru`,`en`];function V(e){return e===`ru`?`ru-RU`:`en-US`}function H(e,t){return t.toLocaleString(V(e))}function Ue(e,t){return H(e,Math.round(t))}function We(e,t){return t.toLocaleDateString(V(e),{day:`2-digit`,month:`2-digit`})}function Ge(e,t){return new Date(t).toLocaleDateString(V(e),{day:`2-digit`,month:`2-digit`,year:`2-digit`})}var U={day:`numeric`,month:`short`};function Ke(e,t){return W(t).toLocaleDateString(V(e),U)}function qe(e,t,n){return new Intl.DateTimeFormat(V(e),U).formatRange(W(t),W(n))}function W(e){return new Date(`${Re(e)}T00:00:00`)}function Je(e,t){return new Date(t).toLocaleString(V(e),{day:`2-digit`,month:`2-digit`,year:`numeric`,hour:`2-digit`,minute:`2-digit`})}function Ye(e,t){return B(t).toLocaleString(V(e),{useGrouping:!1})}function G(e,t){return t===null?`—`:`$${t.toLocaleString(V(e),{minimumFractionDigits:2,maximumFractionDigits:2})}`}var Xe=new Intl.PluralRules(V(`ru`));function K(e,t,n,r){if(!Number.isInteger(e))return n;switch(Xe.select(e)){case`one`:return t;case`many`:return r;case`zero`:case`two`:case`few`:case`other`:return n}}function q(e,t,n){return e===1?t:n}function J(e,t,n,r){return`${H(`ru`,e)} ${K(e,t,n,r)}`}function Ze(e,t,n){return`${H(`en`,e)} ${q(e,t,n)}`}var Y={crashTitle:`The backlog interface crashed`,crashHint:`Reload the page. If the error keeps happening, restart the backlog server.`,serverErrorPrefixed:e=>`Server returned an error: ${e}. Retry; if it keeps failing, restart the backlog server.`,serverStatusError:e=>`Server returned an error ${e}. Retry; if it keeps failing, restart the backlog server.`,unreachableMessage:e=>[`The backlog server is not responding. Start it: `,e(`backlog serve`),` — or install it as a service so it starts on its own: `,e(`backlog service install`)],scopeNote:(e,t)=>`${e} of ${t} ${q(t,`project`,`projects`)} included`,bootLoadError:`Couldn't load the interface — reload the page`,bootSettingsError:`Backlog server is not responding`,bootRetry:`Retry`},X={crashTitle:`Интерфейс беклога сломался`,crashHint:`Обновите страницу. Если ошибка повторится, перезапустите сервер беклога.`,serverErrorPrefixed:e=>`Сервер вернул ошибку: ${e}. Повторите; если не проходит — перезапустите сервер беклога.`,serverStatusError:e=>`Сервер вернул ошибку ${e}. Повторите; если не проходит — перезапустите сервер беклога.`,unreachableMessage:e=>[`Сервер беклога не отвечает. Запустите его: `,e(`backlog serve`),` — или установите службой, чтобы он поднимался сам: `,e(`backlog service install`)],scopeNote:(e,t)=>`учтено ${e} из ${J(t,`проекта`,`проектов`,`проектов`)}`,bootLoadError:`Не удалось загрузить интерфейс — обновите страницу`,bootSettingsError:`Сервер беклога не отвечает`,bootRetry:`Повторить`};function Z(e){return`${e(X)} · ${e(Y)}`}var Qe=`modulepreload`,$e=function(e){return`/`+e},Q={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=$e(t,n),t=s(t),t in Q)return;Q[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Qe,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};L({jitless:!0}),$(async()=>{let{startApp:e}=await import(`./start-Cw9zPEW-.js`);return{startApp:e}},__vite__mapDeps([0,1,2,3,4])).then(({startApp:e})=>e()).catch(et);function et(){let e=document.createElement(`p`);e.setAttribute(`role`,`alert`),e.textContent=Z(e=>e.bootLoadError),(document.getElementById(`root`)??document.body).replaceChildren(e)}export{e as $,je as A,re as B,Be as C,_ as Ct,Pe as D,Ie as E,ve as F,De as G,v as H,ie as I,oe as J,A as K,c as L,I as M,ue as N,Fe as O,le as P,s as Q,xe as R,Ve as S,me as St,R as T,y as Tt,C as U,o as V,Ae as W,pe as X,ye as Y,Se as Z,Ue as _,de as _t,Ze as a,E as at,V as b,l as bt,K as c,he as ct,Ke as d,a as dt,w as et,We as f,fe as ft,H as g,ge as gt,G as h,T as ht,Y as i,g as it,L as j,Ne as k,Ge as l,m as lt,Ye as m,O as mt,Z as n,Oe as nt,J as o,t as ot,qe as p,ce as pt,te as q,X as r,h as rt,q as s,n as st,$ as t,k as tt,Je as u,se as ut,W as v,be as vt,z as w,ne as wt,B as x,_e as xt,He as y,ae as yt,i as z};
|