dev-process-kit 0.4.1 → 0.4.2
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/dist/boards.js +1 -1
- package/dist/chunks/{shared-DVAXtJwE.js → shared-4JaCIu01.js} +1 -1
- package/dist/chunks/{shared-DKxWTptq.js → shared-C-ujfGnT.js} +1 -1
- package/dist/chunks/{shared-CpI8ATFw.js → shared-CHQBlCl0.js} +1 -1
- package/dist/chunks/{shared-Dp6JBc2T.js → shared-CMWEqwI3.js} +1 -1
- package/dist/chunks/shared-CsLKVrK7.js +6912 -0
- package/dist/chunks/{shared-tkjGdHLh.js → shared-D0_BoWj3.js} +1 -1
- package/dist/chunks/{shared-zDGLGSqj.js → shared-D1ZujbZA.js} +1 -1
- package/dist/chunks/{shared-CVBp1_S_.js → shared-D2fmf6zb.js} +1 -1
- package/dist/chunks/{shared-DIEHJb_n.js → shared-D80rPPNF.js} +1 -1
- package/dist/chunks/{shared-DFW6nDO8.js → shared-DErYmK9C.js} +9 -2
- package/dist/chunks/{shared-C1y1ymFB.js → shared-DPD_cXES.js} +1 -1
- package/dist/chunks/{shared-DPayIyBW.js → shared-HkbNG84_.js} +1 -1
- package/dist/chunks/{shared-UIN_s3sw.js → shared-JOvfFoxb.js} +1 -1
- package/dist/chunks/{shared-BOQp0U9U.js → shared-KHA87RsJ.js} +114 -115
- package/dist/chunks/{shared-DOAi2-QH.js → shared-SjAP9bK0.js} +1 -1
- package/dist/chunks/{shared-giADQT1w.js → shared-_0Ev6y6i.js} +4 -4
- package/dist/chunks/shared-lVXxL9i3.js +1 -0
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/views/delegation-poker.js +1 -1
- package/dist/views/plain.js +1 -1
- package/dist/views/prototype.js +1 -1
- package/dist/views/slides.js +1 -1
- package/dist/views/task-board.js +1 -1
- package/dist/views/usm.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/shared-BTu8ZSVC.js +0 -1
- package/dist/chunks/shared-BjLRqdzA.js +0 -6724
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aK as _,ap as B,_ as ze,L as Ce,a5 as n,ag as d,u as _e,aN as Be,aO as Le,al as S,aH as j,aI as Pe,B as Ne,a_ as L,a4 as Re,V as Y,aM as Ge,k as Ie,av as Qe}from"./shared-giADQT1w.js";import{a as Ue}from"./shared-zDGLGSqj.js";import{D as Me,d as He}from"./shared-Dp6JBc2T.js";import{m as We,q as u,k as l,h as w,x as $,j as g,C as b,g as V,v as J,w as X,d as y,e as Ke,z as Fe,D as je,y as Ye,l as P,p as Ve,b as Je,f as E}from"./shared-CJZKj_HI.js";import{o as T}from"./shared-BTu8ZSVC.js";const Z=["working","waiting","blocked","done"],D=["todo","doing","blocked","done"],ee=["agent","human"],v=J(g(),X(1)),Xe=u({id:b,name:v,kind:l($(ee),"agent")}),Ze=u({id:b,title:v,status:l($(D),"todo"),assignee:l(b),note:l(g()),design:l(b),proposed:l(V(),!1),reason:l(g()),questions:B}),ea=u({id:b,label:l(g()),href:v,kind:l(g()),description:l(g()),questions:B}),aa=u({id:b,title:v,body:l(g()),questions:B}),ta=u({id:b,ref:l(v),title:v,description:l(g()),blocking:l(V(),!1),assumption:l(g())}),ae=u({title:l(g(),""),status:l($(Z)),designs:l(w(aa),[]),members:l(w(Xe),[]),todos:l(w(Ze),[]),outputs:l(w(ea),[]),questions:l(w(ta),[])}),O=(a,e)=>{const t=new Set;for(const s of e){if(t.has(s))throw new Error(`duplicate ${a} id: ${s}`);t.add(s)}},k=a=>a===void 0||a.trim()===""?null:a,te=a=>{const e=We(ae,a);O("member",e.members.map(o=>o.id)),O("design",e.designs.map(o=>o.id)),O("todo",e.todos.map(o=>o.id)),O("output",e.outputs.map(o=>o.id)),O("question",e.questions.map(o=>o.id));const t=new Set(e.members.map(o=>o.id));for(const o of e.todos)if(o.assignee!==void 0&&!t.has(o.assignee))throw new Error(`todo ${o.id} is assigned to ${o.assignee}, which is not in members`);const s=new Set(e.designs.map(o=>o.id));for(const o of e.todos)if(o.design!==void 0&&!s.has(o.design))throw new Error(`todo ${o.id} belongs to ${o.design}, which is not in designs`);for(const o of e.questions)if(!o.blocking&&k(o.assumption)===null)throw new Error(`question ${o.id} does not block, so it needs the assumption the agent works on`);return{title:e.title,status:e.status??null,designs:e.designs.map(o=>({id:o.id,title:o.title,body:k(o.body),..._(o.questions)})),members:e.members,todos:e.todos.map(o=>({id:o.id,title:o.title,status:o.status,assignee:o.assignee??null,note:k(o.note),design:o.design??null,proposed:o.proposed,reason:k(o.reason),added:!1,..._(o.questions)})),outputs:e.outputs.map(o=>({id:o.id,label:k(o.label),href:o.href,kind:k(o.kind),description:k(o.description),..._(o.questions)})),questions:e.questions.map((o,r)=>({id:o.id,ref:o.ref??`Q${r+1}`,title:o.title,description:k(o.description),blocking:o.blocking,assumption:k(o.assumption)})),answers:{},decisions:{}}},oe=()=>({title:"",status:null,designs:[],members:[],todos:[],outputs:[],questions:[],answers:{},decisions:{}}),q=(a,e)=>e===null?void 0:a.members.find(t=>t.id===e),h=(a,e)=>a.todos.find(t=>t.id===e),N=(a,e)=>a.designs.find(t=>t.id===e),se=(a,e)=>a.todos.filter(t=>t.design===e),z=(a,e)=>a.questions.find(t=>t.id===e),re=(a,e)=>{const t=a.answers[e.id];return t===void 0?!1:t.kind==="approve"||t.text.trim()!==""},R=(a,e)=>!e.proposed||a.decisions[e.id]==="accept",C=(a,e)=>R(a,e)&&q(a,e.assignee)?.kind==="human",de=(a,e,t)=>{const s={...a};return t===null?delete s[e]:s[e]=t,s},G=(a,e,t)=>({...a,answers:de(a.answers,e,t)}),oa=(a,e,t)=>({...a,decisions:de(a.decisions,e,t)}),sa=(a,e,t)=>({...a,todos:a.todos.map(s=>s.id===e?t(s):s)}),f={ANSWER_QUESTION:y("ANSWER_QUESTION","question",Fe("kind",[u({kind:P("approve")}),u({kind:P("answer"),text:g()}),u({kind:P("clear")})])),DECIDE_PROPOSAL:y("DECIDE_PROPOSAL","todo",u({decision:$(["accept","decline","clear"])})),SET_TODO_STATUS:y("SET_TODO_STATUS","todo",u({status:$(D)})),ADD_TODO:y("ADD_TODO","page",u({id:b,title:J(g(),Ye(),X(1)),assignee:je(b)}),{dedupeKey:Ke}),DELETE_TODO:y("DELETE_TODO","todo",u({}))},ne={type:"page",id:"task-board"},I=(a,e)=>({type:"ANSWER_QUESTION",target:{type:"question",id:a},payload:e}),ie=(a,e)=>({type:"DECIDE_PROPOSAL",target:{type:"todo",id:a},payload:{decision:e}}),Q=(a,e)=>({type:"SET_TODO_STATUS",target:{type:"todo",id:a},payload:{status:e}}),le=(a,e,t)=>({type:"ADD_TODO",target:ne,payload:{id:a,title:e,assignee:t}}),pe=a=>({type:"DELETE_TODO",target:{type:"todo",id:a},payload:{}}),ce=(a,e)=>{const t=Ve(f,e);if(t===null)return null;const s=t.target.id;switch(t.type){case"ANSWER_QUESTION":{const o=z(a,s);if(o===void 0)return null;const r=t.payload;return r.kind==="clear"?G(a,s,null):r.kind==="approve"?o.assumption===null?null:G(a,s,{kind:"approve"}):G(a,s,{kind:"answer",text:r.text})}case"DECIDE_PROPOSAL":{if(h(a,s)?.proposed!==!0)return null;const{decision:o}=t.payload;return oa(a,s,o==="clear"?null:o)}case"SET_TODO_STATUS":{const o=h(a,s);if(o===void 0||!C(a,o))return null;const{status:r}=t.payload;return sa(a,s,i=>({...i,status:r}))}case"ADD_TODO":{const{payload:o}=t;return h(a,o.id)!==void 0||o.assignee!==null&&q(a,o.assignee)===void 0?null:{...a,todos:[...a.todos,{id:o.id,title:o.title,status:"todo",assignee:o.assignee,note:null,design:null,proposed:!1,reason:null,added:!0}]}}case"DELETE_TODO":return h(a,s)?.added!==!0?null:{...a,todos:a.todos.filter(o=>o.id!==s)};default:return Je(t)}},U=ze({en:{wholeBoard:"Whole board",statusWorking:"Working",statusWaiting:"Waiting on you",statusBlocked:"Blocked",statusDone:"Done",todoTodo:"To do",todoDoing:"In progress",todoBlocked:"Blocked",todoDone:"Done",kindAgent:"Agent",kindHuman:"Human",designs:"Design docs",designTasks:"Tasks under this design",noDesigns:"The agent has not written a design doc yet.",noDesignTasks:"No task is linked to this design doc yet.",tabs:"Board sections",tabDesigns:"Design Docs",tabQuestions:"Questions",tabTasks:"Tasks",openCount:a=>`${a} open`,noQuestions:"The agent has nothing to ask right now.",questions:"Questions from the agent",questionsProgress:(a,e)=>`${a} of ${e} replied`,blockingGroup:"Blocking \u2014 the agent waits for your decision",provisionalGroup:"Going ahead on an assumption \u2014 the agent adjusts if you answer otherwise",blockingTag:"Blocking",assumption:"Assumption",recommendation:"Agent recommends",approveAssumption:"OK, go with this",approveRecommendation:"OK, go with the recommendation",answerOther:"Answer differently",answerOf:a=>`Your answer to ${a}`,answerPlaceholder:"What you expect instead\u2026",blockingPlaceholder:"Your decision\u2026",approvedTag:"Approved",answeredTag:"Answered",progress:(a,e)=>`${a} of ${e} done`,noTodosYet:"No todos yet",tasksBoard:"Tasks by status",laneCount:a=>a===1?"1 task":`${a} tasks`,laneEmpty:"Nothing here",dragHint:"Drop on another column to change the status",assignee:"Assignee",unassigned:"Unassigned",memberOption:(a,e)=>`${a} (${e})`,statusOf:a=>`Status of \u201C${a}\u201D`,filterTodos:"Show todos",filterAll:"All",filterHuman:"People",addedTag:"Added by you",changedTag:"Changed",removeAdded:"Remove this todo you added",newTodo:"New todo",newTodoPlaceholder:"Add a todo for the agent\u2026",newTodoAssignee:"Assignee of the new todo",addTodo:"Add",proposedMark:"Proposed by the agent",reason:"Why",accept:"Accept",decline:"Decline",decisionOf:a=>`Decision on \u201C${a}\u201D`,acceptedTag:"Accepted",declinedTag:"Declined",undoDecision:"Undo",outputs:"Outputs",noOutputs:"Nothing has been produced yet.",copy:a=>`Copy ${a}`,copied:"Copied",commentOn:a=>`Comment on ${a}`,todoGroup:"Todo",designGroup:"Design Doc",proposalGroup:"Proposal",questionGroup:"Question",approved:"Approve the assumption",answered:"Answer",answerCleared:"Clear the reply",accepted:"Accept the proposal",declined:"Decline the proposal",decisionCleared:"Clear the decision",statusChanged:"Change the status",todoAdded:"Add a todo",todoRemoved:"Remove the added todo",quoted:a=>`\u2192 \u201C${a}\u201D`,change:(a,e)=>`${a} \u2192 ${e}`},ja:{wholeBoard:"\u30DC\u30FC\u30C9\u5168\u4F53",statusWorking:"\u4F5C\u696D\u4E2D",statusWaiting:"\u3042\u306A\u305F\u306E\u8FD4\u7B54\u5F85\u3061",statusBlocked:"\u30D6\u30ED\u30C3\u30AF\u4E2D",statusDone:"\u5B8C\u4E86",todoTodo:"\u672A\u7740\u624B",todoDoing:"\u9032\u884C\u4E2D",todoBlocked:"\u30D6\u30ED\u30C3\u30AF",todoDone:"\u5B8C\u4E86",kindAgent:"Agent",kindHuman:"\u4EBA\u9593",designs:"Design Doc",designTasks:"\u3053\u306E Design Doc \u306E\u30BF\u30B9\u30AF",noDesigns:"Agent \u306F\u307E\u3060 Design Doc \u3092\u66F8\u3044\u3066\u3044\u307E\u305B\u3093\u3002",noDesignTasks:"\u3053\u306E Design Doc \u306B\u7D10\u3065\u304F\u30BF\u30B9\u30AF\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",tabs:"\u30DC\u30FC\u30C9\u306E\u533A\u5206",tabDesigns:"Design Doc",tabQuestions:"\u8CEA\u554F",tabTasks:"\u30BF\u30B9\u30AF",openCount:a=>`\u672A\u56DE\u7B54 ${a} \u4EF6`,noQuestions:"\u4ECA Agent \u304B\u3089\u805E\u304D\u305F\u3044\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",questions:"Agent \u304B\u3089\u306E\u8CEA\u554F",questionsProgress:(a,e)=>`\u8FD4\u7B54\u6E08\u307F ${a} / ${e}`,blockingGroup:"\u30D6\u30ED\u30C3\u30AB\u30FC \u2014 \u6C7A\u3081\u3066\u3082\u3089\u3046\u307E\u3067\u5148\u306B\u9032\u3081\u306A\u3044",provisionalGroup:"\u4EEE\u306E\u524D\u63D0\u3067\u9032\u884C\u4E2D \u2014 \u9055\u3048\u3070\u65B9\u91DD\u3092\u76F4\u3059",blockingTag:"\u30D6\u30ED\u30C3\u30AB\u30FC",assumption:"\u4EEE\u56DE\u7B54",recommendation:"Agent \u306E\u63A8\u5968",approveAssumption:"\u3053\u306E\u524D\u63D0\u3067 OK",approveRecommendation:"\u63A8\u5968\u3069\u304A\u308A\u3067 OK",answerOther:"\u5225\u306E\u56DE\u7B54\u3092\u3059\u308B",answerOf:a=>`${a} \u3078\u306E\u56DE\u7B54`,answerPlaceholder:"\u671F\u5F85\u3059\u308B\u56DE\u7B54\u3092\u5165\u529B\u2026",blockingPlaceholder:"\u3069\u3046\u3059\u308B\u304B\u3092\u5165\u529B\u2026",approvedTag:"\u627F\u8A8D\u6E08\u307F",answeredTag:"\u56DE\u7B54\u6E08\u307F",progress:(a,e)=>`${e} \u4EF6\u4E2D ${a} \u4EF6\u5B8C\u4E86`,noTodosYet:"Todo \u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",tasksBoard:"\u72B6\u614B\u3054\u3068\u306E\u30BF\u30B9\u30AF",laneCount:a=>`${a} \u4EF6`,laneEmpty:"\u306A\u3057",dragHint:"\u5225\u306E\u5217\u306B\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u3068\u72B6\u614B\u304C\u5909\u308F\u308A\u307E\u3059",assignee:"\u62C5\u5F53",unassigned:"\u672A\u5272\u308A\u5F53\u3066",memberOption:(a,e)=>`${a}\uFF08${e}\uFF09`,statusOf:a=>`\u300C${a}\u300D\u306E\u72B6\u614B`,filterTodos:"\u8868\u793A\u3059\u308B Todo",filterAll:"\u3059\u3079\u3066",filterHuman:"\u4EBA\u9593\u306E\u62C5\u5F53",addedTag:"\u3042\u306A\u305F\u304C\u8FFD\u52A0",changedTag:"\u5909\u66F4\u3042\u308A",removeAdded:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3059",newTodo:"\u65B0\u3057\u3044 Todo",newTodoPlaceholder:"Agent \u306B\u983C\u3080 Todo \u3092\u8FFD\u52A0\u2026",newTodoAssignee:"\u65B0\u3057\u3044 Todo \u306E\u62C5\u5F53",addTodo:"\u8FFD\u52A0",proposedMark:"Agent \u304B\u3089\u306E\u63D0\u6848",reason:"\u306A\u305C",accept:"\u627F\u8A8D",decline:"\u898B\u9001\u308A",decisionOf:a=>`\u300C${a}\u300D\u306E\u5224\u65AD`,acceptedTag:"\u627F\u8A8D\u6E08\u307F",declinedTag:"\u898B\u9001\u308A",undoDecision:"\u53D6\u308A\u6D88\u3059",outputs:"\u6210\u679C\u7269",noOutputs:"\u307E\u3060\u6210\u679C\u7269\u306F\u3042\u308A\u307E\u305B\u3093\u3002",copy:a=>`${a} \u3092\u30B3\u30D4\u30FC`,copied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",commentOn:a=>`${a} \u306B\u30B3\u30E1\u30F3\u30C8`,todoGroup:"Todo",designGroup:"Design Doc",proposalGroup:"\u63D0\u6848",questionGroup:"\u8CEA\u554F",approved:"\u524D\u63D0\u3092\u627F\u8A8D",answered:"\u56DE\u7B54",answerCleared:"\u8FD4\u7B54\u3092\u30AF\u30EA\u30A2",accepted:"\u63D0\u6848\u3092\u627F\u8A8D",declined:"\u63D0\u6848\u3092\u898B\u9001\u308A",decisionCleared:"\u63D0\u6848\u306E\u5224\u65AD\u3092\u30AF\u30EA\u30A2",statusChanged:"\u72B6\u614B\u3092\u5909\u66F4",todoAdded:"Todo \u3092\u8FFD\u52A0",todoRemoved:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3057",quoted:a=>`\u2192 \u300C${a}\u300D`,change:(a,e)=>`${a} \u2192 ${e}`}}),ra=(a,e)=>{switch(e){case"working":return a.statusWorking;case"waiting":return a.statusWaiting;case"blocked":return a.statusBlocked;case"done":return a.statusDone}},x=(a,e)=>{switch(e){case"todo":return a.todoTodo;case"doing":return a.todoDoing;case"blocked":return a.todoBlocked;case"done":return a.todoDone}},da=(a,e)=>e==="agent"?a.kindAgent:a.kindHuman,na=(a,e,t)=>t===null?a.unassigned:q(e,t)?.name??t,ue=a=>a.title===""?"Task Context Board":a.title,ge=(a,e,t)=>{switch(t.type){case"todo":{const s=h(e,t.id);return`${s?.proposed===!0?a.proposalGroup:a.todoGroup} \xB7 ${s?.title??t.id}`}case"design":{const s=N(e,t.id);return`${a.designGroup} \xB7 ${s?.title??t.id}`}case"question":{const s=z(e,t.id);return s===void 0?t.id:`${s.ref} \xB7 ${s.title}`}case"page":return a.wholeBoard;default:return t.id}},ia=(a,e)=>{switch(e){case"accept":return{title:a.accepted,tone:"update"};case"decline":return{title:a.declined,tone:"update"};case"clear":return{title:a.decisionCleared,tone:"delete"}}},la=(a,e,t)=>{switch(t.type){case"ANSWER_QUESTION":{const s=E(f.ANSWER_QUESTION,t);if(s.kind==="clear")return{title:a.answerCleared,tone:"delete"};if(s.kind==="approve"){const o=z(e,t.target.id)?.assumption??null;return{title:a.approved,tone:"update",...o===null?{}:{body:a.quoted(o)}}}return{title:a.answered,tone:"update",body:a.quoted(s.text.slice(0,120))}}case"DECIDE_PROPOSAL":return ia(a,E(f.DECIDE_PROPOSAL,t).decision);case"SET_TODO_STATUS":{const{status:s}=E(f.SET_TODO_STATUS,t),o=h(e,t.target.id)?.status,r=x(a,s);return{title:a.statusChanged,tone:"update",body:o===void 0?r:a.change(x(a,o),r)}}case"ADD_TODO":{const s=E(f.ADD_TODO,t);return{title:a.todoAdded,tone:"create",targetLabel:`${a.todoGroup} \xB7 ${s.title}`,...s.assignee===null?{}:{body:`${a.assignee}: ${na(a,e,s.assignee)}`}}}case"DELETE_TODO":return{title:a.todoRemoved,tone:"delete"};default:return{title:t.type,tone:"meta"}}},be=(a,e,t,s)=>{let o;try{o=la(a,s??t,e)}catch{o={title:e.type,tone:"meta"}}return{title:o.title,targetLabel:o.targetLabel??ge(a,t,e.target),tone:o.tone,...o.body===void 0?{}:{summary:o.body}}},ke=a=>`${a.type} ${Ce(a.target)} ${JSON.stringify(a.payload)}`,he=(a,e)=>[...e.questions.map(t=>({value:`question:${t.id}`,label:`${t.ref} \xB7 ${t.title}`,group:a.questionGroup})),...e.todos.map(t=>({value:`todo:${t.id}`,label:t.title,group:t.proposed?a.proposalGroup:a.todoGroup})),...e.designs.map(t=>({value:`design:${t.id}`,label:t.title,group:a.designGroup}))],fe=(a,e)=>e,pa=(a,e,t)=>{const s=a.answers[e.id];return{id:e.id,ref:e.ref,title:e.title,description:e.description,blocking:e.blocking,assumption:e.assumption,reply:s?.kind??"none",resolved:re(a,e),draft:s?.kind==="answer"?s.text:"",comments:t(`question:${e.id}`)}},me=(a,e)=>{const t=a.questions.map(o=>pa(a,o,e)),s=t.filter(o=>o.resolved).length;return{blocking:t.filter(o=>o.blocking),provisional:t.filter(o=>!o.blocking),resolved:s,total:t.length,open:t.length-s,blockingOpen:t.filter(o=>o.blocking&&!o.resolved).length}},ca={todo:"gray",doing:"blue",blocked:"red",done:"green"},ve=(a,e,t,s=null)=>{const o=e.designs.find(r=>r.id===s)??e.designs[0];return{items:e.designs.map(r=>({id:r.id,title:r.title,taskCount:se(e,r.id).length})),selected:o===void 0?null:ua(a,e,o,t)}},ua=(a,e,t,s)=>({id:t.id,title:t.title,body:t.body,tasks:se(e,t.id).map(o=>({id:o.id,title:o.title,status:o.status,statusLabel:x(a,o.status),proposal:o.proposed?e.decisions[o.id]??"pending":null})),comments:s(`design:${t.id}`),...t.questions===void 0?{}:{questions:t.questions}}),ga=(a,e,t,s,o)=>{const r=h(t,s.id),i=q(e,s.assignee),c=s.design===null?void 0:N(e,s.design);return{id:s.id,title:s.title,note:s.note,reason:s.reason,design:c===void 0?null:{id:c.id,title:c.title},status:s.status,statusLabel:x(a,s.status),assignee:s.assignee,assigneeName:i?.name??null,assigneeKind:i?.kind??null,editable:C(e,s),proposal:s.proposed?e.decisions[s.id]??"pending":null,added:s.added,changed:r!==void 0&&r.status!==s.status,comments:o(`todo:${s.id}`),...s.questions===void 0?{}:{questions:s.questions}}},xe=(a,e,t,s,o="all")=>{const r=e.members.some(p=>p.kind==="human"),i=r?o:"all",c=e.todos.map(p=>ga(a,e,t,p,s)),K=p=>p.assigneeKind==="human",Ee=i==="human"?c.filter(K):c,A=e.todos.filter(p=>R(e,p)),F=A.filter(p=>p.status==="done").length;return{lanes:D.map(p=>({status:p,label:x(a,p),tone:ca[p],cards:Ee.filter(qe=>qe.status===p)})),filter:i,canFilter:r,humanCount:c.filter(K).length,progress:{done:F,total:A.length,label:A.length===0?a.noTodosYet:a.progress(F,A.length)},statuses:D.map(p=>({value:p,label:x(a,p)})),members:e.members.map(p=>({id:p.id,label:a.memberOption(p.name,da(a,p.kind))}))}},we=a=>{if(!/^[a-z][a-z\d+.-]*:\/\//i.test(a))return{kind:"path"};try{return{kind:"url",host:new URL(a).host}}catch{return{kind:"path"}}},$e=a=>a.outputs.map(e=>({id:e.id,title:e.label??e.href,labelled:e.label!==null,href:e.href,kind:e.kind,description:e.description,place:we(e.href),...e.questions===void 0?{}:{questions:e.questions}})),ye=(a,e)=>{switch(e.type){case"todo":return h(a,e.id)!==void 0;case"design":return N(a,e.id)!==void 0;case"question":return z(a,e.id)!==void 0;case"page":return!0;default:return!1}},Te=a=>{const e=U(a);return{kind:"view",name:"task-board",label:"Task Context Board",addable:!1,parseBase:te,emptyBase:oe,actions:f,apply:ce,hasTarget:ye,describe:(t,s,o)=>be(e,t,s,o),serialize:ke,resolveNavigation:fe,commentTargets:t=>he(e,t),title:ue}},M=(a,e,t,s)=>d`
|
|
1
|
+
import{aK as _,ap as B,_ as ze,L as Ce,a5 as n,ag as d,u as _e,aN as Be,aO as Le,al as S,aH as j,aI as Pe,B as Ne,a_ as L,a4 as Re,V as Y,aM as Ge,k as Ie,av as Qe}from"./shared-_0Ev6y6i.js";import{a as Ue}from"./shared-D1ZujbZA.js";import{D as Me,d as He}from"./shared-CMWEqwI3.js";import{m as We,q as u,k as l,h as w,x as $,j as g,C as b,g as V,v as J,w as X,d as y,e as Ke,z as Fe,D as je,y as Ye,l as P,p as Ve,b as Je,f as E}from"./shared-CJZKj_HI.js";import{o as T}from"./shared-lVXxL9i3.js";const Z=["working","waiting","blocked","done"],D=["todo","doing","blocked","done"],ee=["agent","human"],v=J(g(),X(1)),Xe=u({id:b,name:v,kind:l($(ee),"agent")}),Ze=u({id:b,title:v,status:l($(D),"todo"),assignee:l(b),note:l(g()),design:l(b),proposed:l(V(),!1),reason:l(g()),questions:B}),ea=u({id:b,label:l(g()),href:v,kind:l(g()),description:l(g()),questions:B}),aa=u({id:b,title:v,body:l(g()),questions:B}),ta=u({id:b,ref:l(v),title:v,description:l(g()),blocking:l(V(),!1),assumption:l(g())}),ae=u({title:l(g(),""),status:l($(Z)),designs:l(w(aa),[]),members:l(w(Xe),[]),todos:l(w(Ze),[]),outputs:l(w(ea),[]),questions:l(w(ta),[])}),O=(a,e)=>{const t=new Set;for(const s of e){if(t.has(s))throw new Error(`duplicate ${a} id: ${s}`);t.add(s)}},k=a=>a===void 0||a.trim()===""?null:a,te=a=>{const e=We(ae,a);O("member",e.members.map(o=>o.id)),O("design",e.designs.map(o=>o.id)),O("todo",e.todos.map(o=>o.id)),O("output",e.outputs.map(o=>o.id)),O("question",e.questions.map(o=>o.id));const t=new Set(e.members.map(o=>o.id));for(const o of e.todos)if(o.assignee!==void 0&&!t.has(o.assignee))throw new Error(`todo ${o.id} is assigned to ${o.assignee}, which is not in members`);const s=new Set(e.designs.map(o=>o.id));for(const o of e.todos)if(o.design!==void 0&&!s.has(o.design))throw new Error(`todo ${o.id} belongs to ${o.design}, which is not in designs`);for(const o of e.questions)if(!o.blocking&&k(o.assumption)===null)throw new Error(`question ${o.id} does not block, so it needs the assumption the agent works on`);return{title:e.title,status:e.status??null,designs:e.designs.map(o=>({id:o.id,title:o.title,body:k(o.body),..._(o.questions)})),members:e.members,todos:e.todos.map(o=>({id:o.id,title:o.title,status:o.status,assignee:o.assignee??null,note:k(o.note),design:o.design??null,proposed:o.proposed,reason:k(o.reason),added:!1,..._(o.questions)})),outputs:e.outputs.map(o=>({id:o.id,label:k(o.label),href:o.href,kind:k(o.kind),description:k(o.description),..._(o.questions)})),questions:e.questions.map((o,r)=>({id:o.id,ref:o.ref??`Q${r+1}`,title:o.title,description:k(o.description),blocking:o.blocking,assumption:k(o.assumption)})),answers:{},decisions:{}}},oe=()=>({title:"",status:null,designs:[],members:[],todos:[],outputs:[],questions:[],answers:{},decisions:{}}),q=(a,e)=>e===null?void 0:a.members.find(t=>t.id===e),h=(a,e)=>a.todos.find(t=>t.id===e),N=(a,e)=>a.designs.find(t=>t.id===e),se=(a,e)=>a.todos.filter(t=>t.design===e),z=(a,e)=>a.questions.find(t=>t.id===e),re=(a,e)=>{const t=a.answers[e.id];return t===void 0?!1:t.kind==="approve"||t.text.trim()!==""},R=(a,e)=>!e.proposed||a.decisions[e.id]==="accept",C=(a,e)=>R(a,e)&&q(a,e.assignee)?.kind==="human",de=(a,e,t)=>{const s={...a};return t===null?delete s[e]:s[e]=t,s},G=(a,e,t)=>({...a,answers:de(a.answers,e,t)}),oa=(a,e,t)=>({...a,decisions:de(a.decisions,e,t)}),sa=(a,e,t)=>({...a,todos:a.todos.map(s=>s.id===e?t(s):s)}),f={ANSWER_QUESTION:y("ANSWER_QUESTION","question",Fe("kind",[u({kind:P("approve")}),u({kind:P("answer"),text:g()}),u({kind:P("clear")})])),DECIDE_PROPOSAL:y("DECIDE_PROPOSAL","todo",u({decision:$(["accept","decline","clear"])})),SET_TODO_STATUS:y("SET_TODO_STATUS","todo",u({status:$(D)})),ADD_TODO:y("ADD_TODO","page",u({id:b,title:J(g(),Ye(),X(1)),assignee:je(b)}),{dedupeKey:Ke}),DELETE_TODO:y("DELETE_TODO","todo",u({}))},ne={type:"page",id:"task-board"},I=(a,e)=>({type:"ANSWER_QUESTION",target:{type:"question",id:a},payload:e}),ie=(a,e)=>({type:"DECIDE_PROPOSAL",target:{type:"todo",id:a},payload:{decision:e}}),Q=(a,e)=>({type:"SET_TODO_STATUS",target:{type:"todo",id:a},payload:{status:e}}),le=(a,e,t)=>({type:"ADD_TODO",target:ne,payload:{id:a,title:e,assignee:t}}),pe=a=>({type:"DELETE_TODO",target:{type:"todo",id:a},payload:{}}),ce=(a,e)=>{const t=Ve(f,e);if(t===null)return null;const s=t.target.id;switch(t.type){case"ANSWER_QUESTION":{const o=z(a,s);if(o===void 0)return null;const r=t.payload;return r.kind==="clear"?G(a,s,null):r.kind==="approve"?o.assumption===null?null:G(a,s,{kind:"approve"}):G(a,s,{kind:"answer",text:r.text})}case"DECIDE_PROPOSAL":{if(h(a,s)?.proposed!==!0)return null;const{decision:o}=t.payload;return oa(a,s,o==="clear"?null:o)}case"SET_TODO_STATUS":{const o=h(a,s);if(o===void 0||!C(a,o))return null;const{status:r}=t.payload;return sa(a,s,i=>({...i,status:r}))}case"ADD_TODO":{const{payload:o}=t;return h(a,o.id)!==void 0||o.assignee!==null&&q(a,o.assignee)===void 0?null:{...a,todos:[...a.todos,{id:o.id,title:o.title,status:"todo",assignee:o.assignee,note:null,design:null,proposed:!1,reason:null,added:!0}]}}case"DELETE_TODO":return h(a,s)?.added!==!0?null:{...a,todos:a.todos.filter(o=>o.id!==s)};default:return Je(t)}},U=ze({en:{wholeBoard:"Whole board",statusWorking:"Working",statusWaiting:"Waiting on you",statusBlocked:"Blocked",statusDone:"Done",todoTodo:"To do",todoDoing:"In progress",todoBlocked:"Blocked",todoDone:"Done",kindAgent:"Agent",kindHuman:"Human",designs:"Design docs",designTasks:"Tasks under this design",noDesigns:"The agent has not written a design doc yet.",noDesignTasks:"No task is linked to this design doc yet.",tabs:"Board sections",tabDesigns:"Design Docs",tabQuestions:"Questions",tabTasks:"Tasks",openCount:a=>`${a} open`,noQuestions:"The agent has nothing to ask right now.",questions:"Questions from the agent",questionsProgress:(a,e)=>`${a} of ${e} replied`,blockingGroup:"Blocking \u2014 the agent waits for your decision",provisionalGroup:"Going ahead on an assumption \u2014 the agent adjusts if you answer otherwise",blockingTag:"Blocking",assumption:"Assumption",recommendation:"Agent recommends",approveAssumption:"OK, go with this",approveRecommendation:"OK, go with the recommendation",answerOther:"Answer differently",answerOf:a=>`Your answer to ${a}`,answerPlaceholder:"What you expect instead\u2026",blockingPlaceholder:"Your decision\u2026",approvedTag:"Approved",answeredTag:"Answered",progress:(a,e)=>`${a} of ${e} done`,noTodosYet:"No todos yet",tasksBoard:"Tasks by status",laneCount:a=>a===1?"1 task":`${a} tasks`,laneEmpty:"Nothing here",dragHint:"Drop on another column to change the status",assignee:"Assignee",unassigned:"Unassigned",memberOption:(a,e)=>`${a} (${e})`,statusOf:a=>`Status of \u201C${a}\u201D`,filterTodos:"Show todos",filterAll:"All",filterHuman:"People",addedTag:"Added by you",changedTag:"Changed",removeAdded:"Remove this todo you added",newTodo:"New todo",newTodoPlaceholder:"Add a todo for the agent\u2026",newTodoAssignee:"Assignee of the new todo",addTodo:"Add",proposedMark:"Proposed by the agent",reason:"Why",accept:"Accept",decline:"Decline",decisionOf:a=>`Decision on \u201C${a}\u201D`,acceptedTag:"Accepted",declinedTag:"Declined",undoDecision:"Undo",outputs:"Outputs",noOutputs:"Nothing has been produced yet.",copy:a=>`Copy ${a}`,copied:"Copied",commentOn:a=>`Comment on ${a}`,todoGroup:"Todo",designGroup:"Design Doc",proposalGroup:"Proposal",questionGroup:"Question",approved:"Approve the assumption",answered:"Answer",answerCleared:"Clear the reply",accepted:"Accept the proposal",declined:"Decline the proposal",decisionCleared:"Clear the decision",statusChanged:"Change the status",todoAdded:"Add a todo",todoRemoved:"Remove the added todo",quoted:a=>`\u2192 \u201C${a}\u201D`,change:(a,e)=>`${a} \u2192 ${e}`},ja:{wholeBoard:"\u30DC\u30FC\u30C9\u5168\u4F53",statusWorking:"\u4F5C\u696D\u4E2D",statusWaiting:"\u3042\u306A\u305F\u306E\u8FD4\u7B54\u5F85\u3061",statusBlocked:"\u30D6\u30ED\u30C3\u30AF\u4E2D",statusDone:"\u5B8C\u4E86",todoTodo:"\u672A\u7740\u624B",todoDoing:"\u9032\u884C\u4E2D",todoBlocked:"\u30D6\u30ED\u30C3\u30AF",todoDone:"\u5B8C\u4E86",kindAgent:"Agent",kindHuman:"\u4EBA\u9593",designs:"Design Doc",designTasks:"\u3053\u306E Design Doc \u306E\u30BF\u30B9\u30AF",noDesigns:"Agent \u306F\u307E\u3060 Design Doc \u3092\u66F8\u3044\u3066\u3044\u307E\u305B\u3093\u3002",noDesignTasks:"\u3053\u306E Design Doc \u306B\u7D10\u3065\u304F\u30BF\u30B9\u30AF\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",tabs:"\u30DC\u30FC\u30C9\u306E\u533A\u5206",tabDesigns:"Design Doc",tabQuestions:"\u8CEA\u554F",tabTasks:"\u30BF\u30B9\u30AF",openCount:a=>`\u672A\u56DE\u7B54 ${a} \u4EF6`,noQuestions:"\u4ECA Agent \u304B\u3089\u805E\u304D\u305F\u3044\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",questions:"Agent \u304B\u3089\u306E\u8CEA\u554F",questionsProgress:(a,e)=>`\u8FD4\u7B54\u6E08\u307F ${a} / ${e}`,blockingGroup:"\u30D6\u30ED\u30C3\u30AB\u30FC \u2014 \u6C7A\u3081\u3066\u3082\u3089\u3046\u307E\u3067\u5148\u306B\u9032\u3081\u306A\u3044",provisionalGroup:"\u4EEE\u306E\u524D\u63D0\u3067\u9032\u884C\u4E2D \u2014 \u9055\u3048\u3070\u65B9\u91DD\u3092\u76F4\u3059",blockingTag:"\u30D6\u30ED\u30C3\u30AB\u30FC",assumption:"\u4EEE\u56DE\u7B54",recommendation:"Agent \u306E\u63A8\u5968",approveAssumption:"\u3053\u306E\u524D\u63D0\u3067 OK",approveRecommendation:"\u63A8\u5968\u3069\u304A\u308A\u3067 OK",answerOther:"\u5225\u306E\u56DE\u7B54\u3092\u3059\u308B",answerOf:a=>`${a} \u3078\u306E\u56DE\u7B54`,answerPlaceholder:"\u671F\u5F85\u3059\u308B\u56DE\u7B54\u3092\u5165\u529B\u2026",blockingPlaceholder:"\u3069\u3046\u3059\u308B\u304B\u3092\u5165\u529B\u2026",approvedTag:"\u627F\u8A8D\u6E08\u307F",answeredTag:"\u56DE\u7B54\u6E08\u307F",progress:(a,e)=>`${e} \u4EF6\u4E2D ${a} \u4EF6\u5B8C\u4E86`,noTodosYet:"Todo \u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",tasksBoard:"\u72B6\u614B\u3054\u3068\u306E\u30BF\u30B9\u30AF",laneCount:a=>`${a} \u4EF6`,laneEmpty:"\u306A\u3057",dragHint:"\u5225\u306E\u5217\u306B\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u3068\u72B6\u614B\u304C\u5909\u308F\u308A\u307E\u3059",assignee:"\u62C5\u5F53",unassigned:"\u672A\u5272\u308A\u5F53\u3066",memberOption:(a,e)=>`${a}\uFF08${e}\uFF09`,statusOf:a=>`\u300C${a}\u300D\u306E\u72B6\u614B`,filterTodos:"\u8868\u793A\u3059\u308B Todo",filterAll:"\u3059\u3079\u3066",filterHuman:"\u4EBA\u9593\u306E\u62C5\u5F53",addedTag:"\u3042\u306A\u305F\u304C\u8FFD\u52A0",changedTag:"\u5909\u66F4\u3042\u308A",removeAdded:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3059",newTodo:"\u65B0\u3057\u3044 Todo",newTodoPlaceholder:"Agent \u306B\u983C\u3080 Todo \u3092\u8FFD\u52A0\u2026",newTodoAssignee:"\u65B0\u3057\u3044 Todo \u306E\u62C5\u5F53",addTodo:"\u8FFD\u52A0",proposedMark:"Agent \u304B\u3089\u306E\u63D0\u6848",reason:"\u306A\u305C",accept:"\u627F\u8A8D",decline:"\u898B\u9001\u308A",decisionOf:a=>`\u300C${a}\u300D\u306E\u5224\u65AD`,acceptedTag:"\u627F\u8A8D\u6E08\u307F",declinedTag:"\u898B\u9001\u308A",undoDecision:"\u53D6\u308A\u6D88\u3059",outputs:"\u6210\u679C\u7269",noOutputs:"\u307E\u3060\u6210\u679C\u7269\u306F\u3042\u308A\u307E\u305B\u3093\u3002",copy:a=>`${a} \u3092\u30B3\u30D4\u30FC`,copied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",commentOn:a=>`${a} \u306B\u30B3\u30E1\u30F3\u30C8`,todoGroup:"Todo",designGroup:"Design Doc",proposalGroup:"\u63D0\u6848",questionGroup:"\u8CEA\u554F",approved:"\u524D\u63D0\u3092\u627F\u8A8D",answered:"\u56DE\u7B54",answerCleared:"\u8FD4\u7B54\u3092\u30AF\u30EA\u30A2",accepted:"\u63D0\u6848\u3092\u627F\u8A8D",declined:"\u63D0\u6848\u3092\u898B\u9001\u308A",decisionCleared:"\u63D0\u6848\u306E\u5224\u65AD\u3092\u30AF\u30EA\u30A2",statusChanged:"\u72B6\u614B\u3092\u5909\u66F4",todoAdded:"Todo \u3092\u8FFD\u52A0",todoRemoved:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3057",quoted:a=>`\u2192 \u300C${a}\u300D`,change:(a,e)=>`${a} \u2192 ${e}`}}),ra=(a,e)=>{switch(e){case"working":return a.statusWorking;case"waiting":return a.statusWaiting;case"blocked":return a.statusBlocked;case"done":return a.statusDone}},x=(a,e)=>{switch(e){case"todo":return a.todoTodo;case"doing":return a.todoDoing;case"blocked":return a.todoBlocked;case"done":return a.todoDone}},da=(a,e)=>e==="agent"?a.kindAgent:a.kindHuman,na=(a,e,t)=>t===null?a.unassigned:q(e,t)?.name??t,ue=a=>a.title===""?"Task Context Board":a.title,ge=(a,e,t)=>{switch(t.type){case"todo":{const s=h(e,t.id);return`${s?.proposed===!0?a.proposalGroup:a.todoGroup} \xB7 ${s?.title??t.id}`}case"design":{const s=N(e,t.id);return`${a.designGroup} \xB7 ${s?.title??t.id}`}case"question":{const s=z(e,t.id);return s===void 0?t.id:`${s.ref} \xB7 ${s.title}`}case"page":return a.wholeBoard;default:return t.id}},ia=(a,e)=>{switch(e){case"accept":return{title:a.accepted,tone:"update"};case"decline":return{title:a.declined,tone:"update"};case"clear":return{title:a.decisionCleared,tone:"delete"}}},la=(a,e,t)=>{switch(t.type){case"ANSWER_QUESTION":{const s=E(f.ANSWER_QUESTION,t);if(s.kind==="clear")return{title:a.answerCleared,tone:"delete"};if(s.kind==="approve"){const o=z(e,t.target.id)?.assumption??null;return{title:a.approved,tone:"update",...o===null?{}:{body:a.quoted(o)}}}return{title:a.answered,tone:"update",body:a.quoted(s.text.slice(0,120))}}case"DECIDE_PROPOSAL":return ia(a,E(f.DECIDE_PROPOSAL,t).decision);case"SET_TODO_STATUS":{const{status:s}=E(f.SET_TODO_STATUS,t),o=h(e,t.target.id)?.status,r=x(a,s);return{title:a.statusChanged,tone:"update",body:o===void 0?r:a.change(x(a,o),r)}}case"ADD_TODO":{const s=E(f.ADD_TODO,t);return{title:a.todoAdded,tone:"create",targetLabel:`${a.todoGroup} \xB7 ${s.title}`,...s.assignee===null?{}:{body:`${a.assignee}: ${na(a,e,s.assignee)}`}}}case"DELETE_TODO":return{title:a.todoRemoved,tone:"delete"};default:return{title:t.type,tone:"meta"}}},be=(a,e,t,s)=>{let o;try{o=la(a,s??t,e)}catch{o={title:e.type,tone:"meta"}}return{title:o.title,targetLabel:o.targetLabel??ge(a,t,e.target),tone:o.tone,...o.body===void 0?{}:{summary:o.body}}},ke=a=>`${a.type} ${Ce(a.target)} ${JSON.stringify(a.payload)}`,he=(a,e)=>[...e.questions.map(t=>({value:`question:${t.id}`,label:`${t.ref} \xB7 ${t.title}`,group:a.questionGroup})),...e.todos.map(t=>({value:`todo:${t.id}`,label:t.title,group:t.proposed?a.proposalGroup:a.todoGroup})),...e.designs.map(t=>({value:`design:${t.id}`,label:t.title,group:a.designGroup}))],fe=(a,e)=>e,pa=(a,e,t)=>{const s=a.answers[e.id];return{id:e.id,ref:e.ref,title:e.title,description:e.description,blocking:e.blocking,assumption:e.assumption,reply:s?.kind??"none",resolved:re(a,e),draft:s?.kind==="answer"?s.text:"",comments:t(`question:${e.id}`)}},me=(a,e)=>{const t=a.questions.map(o=>pa(a,o,e)),s=t.filter(o=>o.resolved).length;return{blocking:t.filter(o=>o.blocking),provisional:t.filter(o=>!o.blocking),resolved:s,total:t.length,open:t.length-s,blockingOpen:t.filter(o=>o.blocking&&!o.resolved).length}},ca={todo:"gray",doing:"blue",blocked:"red",done:"green"},ve=(a,e,t,s=null)=>{const o=e.designs.find(r=>r.id===s)??e.designs[0];return{items:e.designs.map(r=>({id:r.id,title:r.title,taskCount:se(e,r.id).length})),selected:o===void 0?null:ua(a,e,o,t)}},ua=(a,e,t,s)=>({id:t.id,title:t.title,body:t.body,tasks:se(e,t.id).map(o=>({id:o.id,title:o.title,status:o.status,statusLabel:x(a,o.status),proposal:o.proposed?e.decisions[o.id]??"pending":null})),comments:s(`design:${t.id}`),...t.questions===void 0?{}:{questions:t.questions}}),ga=(a,e,t,s,o)=>{const r=h(t,s.id),i=q(e,s.assignee),c=s.design===null?void 0:N(e,s.design);return{id:s.id,title:s.title,note:s.note,reason:s.reason,design:c===void 0?null:{id:c.id,title:c.title},status:s.status,statusLabel:x(a,s.status),assignee:s.assignee,assigneeName:i?.name??null,assigneeKind:i?.kind??null,editable:C(e,s),proposal:s.proposed?e.decisions[s.id]??"pending":null,added:s.added,changed:r!==void 0&&r.status!==s.status,comments:o(`todo:${s.id}`),...s.questions===void 0?{}:{questions:s.questions}}},xe=(a,e,t,s,o="all")=>{const r=e.members.some(p=>p.kind==="human"),i=r?o:"all",c=e.todos.map(p=>ga(a,e,t,p,s)),K=p=>p.assigneeKind==="human",Ee=i==="human"?c.filter(K):c,A=e.todos.filter(p=>R(e,p)),F=A.filter(p=>p.status==="done").length;return{lanes:D.map(p=>({status:p,label:x(a,p),tone:ca[p],cards:Ee.filter(qe=>qe.status===p)})),filter:i,canFilter:r,humanCount:c.filter(K).length,progress:{done:F,total:A.length,label:A.length===0?a.noTodosYet:a.progress(F,A.length)},statuses:D.map(p=>({value:p,label:x(a,p)})),members:e.members.map(p=>({id:p.id,label:a.memberOption(p.name,da(a,p.kind))}))}},we=a=>{if(!/^[a-z][a-z\d+.-]*:\/\//i.test(a))return{kind:"path"};try{return{kind:"url",host:new URL(a).host}}catch{return{kind:"path"}}},$e=a=>a.outputs.map(e=>({id:e.id,title:e.label??e.href,labelled:e.label!==null,href:e.href,kind:e.kind,description:e.description,place:we(e.href),...e.questions===void 0?{}:{questions:e.questions}})),ye=(a,e)=>{switch(e.type){case"todo":return h(a,e.id)!==void 0;case"design":return N(a,e.id)!==void 0;case"question":return z(a,e.id)!==void 0;case"page":return!0;default:return!1}},Te=a=>{const e=U(a);return{kind:"view",name:"task-board",label:"Task Context Board",addable:!1,parseBase:te,emptyBase:oe,actions:f,apply:ce,hasTarget:ye,describe:(t,s,o)=>be(e,t,s,o),serialize:ke,resolveNavigation:fe,commentTargets:t=>he(e,t),title:ue}},M=(a,e,t,s)=>d`
|
|
2
2
|
<button
|
|
3
3
|
class="dpk-icon-btn board-comment"
|
|
4
4
|
type="button"
|
|
@@ -1701,7 +1701,7 @@ The brief is too long for a comment, so it is stored in this artifact's database
|
|
|
1701
1701
|
</div>
|
|
1702
1702
|
`)}
|
|
1703
1703
|
</div>
|
|
1704
|
-
`}#u(e,n){if(n.disabled)return;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();const r=e.key==="ArrowDown"?1:-1;if(this.#t)this.#i=rm(this.#i,r,n.options.length);else{this.#t=!0;const o=Wn(n.options,n.value);this.#i=o>=0?o:gi(r>0?0:n.options.length-1,n.options.length)}this.#e.requestUpdate();return}if(e.key==="Enter"||e.key===" "){if(e.preventDefault(),!this.#t){this.#t=!0,this.#i=Wn(n.options,n.value),this.#e.requestUpdate();return}const r=n.options[gi(this.#i,n.options.length)];r&&this.#k(r.value,n);return}if(e.key==="Tab"||e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1)return;e.preventDefault(),this.#r+=e.key,clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#r=""},lm);const s=this.#t?this.#i:Wn(n.options,n.value),i=om(n.options,this.#r,s);if(i!==null){if(this.#i=i,!this.#t){const r=n.options[i]?.value;r!==void 0&&this.#k(r,n);return}this.#e.requestUpdate()}}#h=()=>{if(this.#a?.disabled)return;if(this.#t){this.#p();return}const e=this.#a;this.#t=!0,this.#i=e?Wn(e.options,e.value):-1,this.#e.requestUpdate()};#k(e,n){this.#p(),e!==n.value&&n.onChange(e)}#p(){this.#t&&(this.#t=!1,this.#i=-1,this.#e.requestUpdate())}#x(){const e=`[data-dpk-select="${this.#n}"]`,n=this.#e.renderRoot.querySelector(`button.dpk-rich-select${e}`),s=this.#e.renderRoot.querySelector(`.dpk-rich-select-listbox${e}`);!n||!s||this.#s.open(s,n,{width:Math.max(n.offsetWidth,160),height:280},{placement:"bottom-start"})}}class dm{#e;#n=new Map;constructor(e){this.#e=e}get(e){const n=this.#n.get(e);if(n)return n;const s=new Gt(this.#e);return this.#n.set(e,s),s}}const ge="0.4.
|
|
1704
|
+
`}#u(e,n){if(n.disabled)return;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();const r=e.key==="ArrowDown"?1:-1;if(this.#t)this.#i=rm(this.#i,r,n.options.length);else{this.#t=!0;const o=Wn(n.options,n.value);this.#i=o>=0?o:gi(r>0?0:n.options.length-1,n.options.length)}this.#e.requestUpdate();return}if(e.key==="Enter"||e.key===" "){if(e.preventDefault(),!this.#t){this.#t=!0,this.#i=Wn(n.options,n.value),this.#e.requestUpdate();return}const r=n.options[gi(this.#i,n.options.length)];r&&this.#k(r.value,n);return}if(e.key==="Tab"||e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1)return;e.preventDefault(),this.#r+=e.key,clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#r=""},lm);const s=this.#t?this.#i:Wn(n.options,n.value),i=om(n.options,this.#r,s);if(i!==null){if(this.#i=i,!this.#t){const r=n.options[i]?.value;r!==void 0&&this.#k(r,n);return}this.#e.requestUpdate()}}#h=()=>{if(this.#a?.disabled)return;if(this.#t){this.#p();return}const e=this.#a;this.#t=!0,this.#i=e?Wn(e.options,e.value):-1,this.#e.requestUpdate()};#k(e,n){this.#p(),e!==n.value&&n.onChange(e)}#p(){this.#t&&(this.#t=!1,this.#i=-1,this.#e.requestUpdate())}#x(){const e=`[data-dpk-select="${this.#n}"]`,n=this.#e.renderRoot.querySelector(`button.dpk-rich-select${e}`),s=this.#e.renderRoot.querySelector(`.dpk-rich-select-listbox${e}`);!n||!s||this.#s.open(s,n,{width:Math.max(n.offsetWidth,160),height:280},{placement:"bottom-start"})}}class dm{#e;#n=new Map;constructor(e){this.#e=e}get(e){const n=this.#n.get(e);if(n)return n;const s=new Gt(this.#e);return this.#n.set(e,s),s}}const ge="0.4.2",fi=t=>{const e=t.derivation();return{base:e.base,state:e.state,navigation:t.navigation(),actions:t.controller().actions,comments:e.comments,stale:e.stale,issues:t.issues(),grill:e.grill,answers:e.answers}},cm=t=>{const e=t.derivation();return{state:e.state,base:e.base,navigation:t.navigation(),actions:t.controller().actions,comments:e.comments,stale:e.stale,commentCount:n=>{const s=typeof n=="string"?n:_(n);return e.commentsByTarget.get(s)?.length??0},dispatch:n=>t.dispatch(n),dispatchBatch:n=>t.dispatchBatch(n),navigate:(n,s)=>t.navigate(n,s),hashFor:n=>t.hashFor(n),requestComment:n=>t.requestComment(n)}},Xa=(t,e)=>{const n=()=>fi(t);return{version:ge,template:t.definition.name,host:e,ready:t.ready,get base(){return t.controller().base},get state(){return t.derivation().state},get navigation(){return t.navigation()},get actions(){return t.controller().actions},get comments(){return t.derivation().comments},get stale(){return t.derivation().stale},get issues(){return t.issues()},dispatch:s=>t.dispatch(s),dispatchBatch:s=>t.dispatchBatch(s),comment:(s,i)=>t.dispatch({type:I,target:s,payload:{body:i}}),editComment:(s,i)=>t.editComment(s,i),removeAction:s=>t.removeAction(s),clearActions:()=>t.clearActions(),importDraft:s=>t.controller().replaceActions(s),navigate:(s,i)=>t.navigate(s,i),hashFor:s=>t.hashFor(s),snapshot:n,exportDraft:()=>t.controller().exportDraft(ge),exportBrief:()=>t.brief?.(n())??zn(n(),t.controller().definition,ge),subscribe:s=>t.subscribe(s)}},pm='the <script type="application/json"> child is empty',hm='no <script type="application/json"> child found';class um{#e;#n;#s=null;#t;constructor(e){this.#e=e}get error(){return this.#s}read(){return this.#o(this.#r()).state}observe(){this.#t===void 0&&(this.#t=new MutationObserver(()=>this.#i()),this.#t.observe(this.#e.host,{childList:!0,subtree:!0,characterData:!0}))}disconnect(){this.#t?.disconnect(),this.#t=void 0}#i(){const e=this.#r();e!==this.#n&&this.#e.onChange(this.#o(e))}#r(){const e=this.#e.script();return e===null?null:e.textContent??""}#o(e){if(this.#n=e,e===null||e.trim().length===0)return this.#e.optional()?this.#s=null:(this.#s=e===null?hm:pm,console.warn(`[dev-process-kit] ${this.#e.name()} has ${e===null?"no":"an empty"} base JSON; starting from an empty state.`)),{state:this.#e.empty(),error:this.#s};try{const n=this.#e.parse(JSON.parse(e));return this.#s=null,{state:n,error:null}}catch(n){return console.error("[dev-process-kit] invalid base data:",n),this.#s=n instanceof Error?n.message:String(n),{state:this.#e.empty(),error:this.#s}}}}const gm=8e3,fm=t=>t.localName==="script"&&t.getAttribute("type")==="application/json"&&t.hasAttribute(Fr);class mm{#e;#n;#s=null;#t=null;#i=!1;#r=null;#o=null;#a="";#l=null;#d=new Map;#c=new Set;constructor(e,n){this.#e=e,this.#n=n,e.addController(this)}get view(){return this.#s&&this.#r?Vp(this.#s,this.#r):null}get log(){return this.#s}get error(){return this.#t}hostConnected(){!this.#h()&&!this.#k()&&this.#A(),document.addEventListener("pointerdown",this.#m,!0),document.addEventListener("keydown",this.#S)}hostUpdate(){!this.#h()&&this.#k()&&this.#v()}hostDisconnected(){this.#v(),document.removeEventListener("pointerdown",this.#m,!0),document.removeEventListener("keydown",this.#S);for(const e of this.#d.values())e.handle!==null&&clearTimeout(e.handle);this.#d.clear()}send(e){!this.#s||!this.#r||(this.#r=jp(this.#s,this.#r,e),this.#p(),this.#f(),this.#e.requestUpdate())}toggleList(){this.send({kind:this.#r?.list.open?"close-list":"open-list"})}show(e){const n=this.#s?Xe(this.#s).flatMap(s=>s.entries).find(s=>s.key===e):void 0;n&&(this.send({kind:"jump",key:e}),this.#n.show(n))}pause(e){const n=this.#c.size>0;if(this.#c.add(e),n)return;const s=Date.now();for(const i of this.#d.values())i.handle!==null&&clearTimeout(i.handle),i.handle=null,i.remaining=Math.max(0,i.deadline-s)}resume(e){if(!(!this.#c.delete(e)||this.#c.size>0))for(const[n,s]of this.#d)this.#w(n,s)}#u(){return`${this.#n.storageKey()}:seen-changes`}#h(){return this.#s!==null||this.#t!==null||this.#i}#k(){const e=[...this.#e.children].find(fm);if(!e)return!1;if(this.#n.ignored?.()===!0)return console.warn("[dev-process-kit] a change log inside <dpk-page> is ignored: put it directly under <dpk-app>, qualify its targets with the page (`story:x@demo`) and prefix its navigate keys (`demo.step=\u2026`)."),this.#i=!0,!0;let n;try{n=JSON.parse(e.textContent??"")}catch(i){return this.#x(i instanceof Error?i.message:String(i))}const s=qp(n);return s.ok?(this.#s=s.log,this.#o=this.#n.persist()?ue(Kr):Z(Kr),this.#r=Bp(s.log,this.#o.read(this.#u())),this.#p(),this.#f(),this.#n.read?.(s.log),this.#e.requestUpdate(),!0):this.#x(s.error)}#p(){if(!this.#s||!this.#r)return;const e=Gp(this.#s,this.#r),n=JSON.stringify(e);n!==this.#a&&(this.#a=n,this.#o?.write(this.#u(),e))}#x(e){return console.error("[dev-process-kit] invalid change log:",e),this.#t=e,this.#e.requestUpdate(),!0}#A(){this.#l=new MutationObserver(()=>{(this.#h()||this.#k())&&this.#v()}),this.#l.observe(this.#e,{childList:!0})}#v(){this.#l?.disconnect(),this.#l=null}#f(){const e=new Set(this.view?.toasts.map(n=>n.key)??[]);for(const[n,s]of this.#d)e.has(n)||(s.handle!==null&&clearTimeout(s.handle),this.#d.delete(n));for(const n of e){if(this.#d.has(n))continue;const s={handle:null,deadline:0,remaining:gm};this.#d.set(n,s),this.#c.size===0&&this.#w(n,s)}}#w(e,n){n.deadline=Date.now()+n.remaining,n.handle=setTimeout(()=>{n.handle=null,this.send({kind:"close-toast",key:e})},n.remaining)}#m=e=>{!this.#r?.list.open||this.#n.inside(e.composedPath())||this.send({kind:"close-list"})};#S=e=>{e.key!=="Escape"||!this.#r?.list.open||this.send({kind:"close-list"})}}const{I:km}=pp,Ja=t=>t,bm=t=>t.strings===void 0,el=()=>document.createComment(""),Wt=(t,e,n)=>{const s=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(n===void 0){const r=s.insertBefore(el(),i),o=s.insertBefore(el(),i);n=new km(r,o,t,t.options)}else{const r=n._$AB.nextSibling,o=n._$AM,a=o!==t;if(a){let l;n._$AQ?.(t),n._$AM=t,n._$AP!==void 0&&(l=t._$AU)!==o._$AU&&n._$AP(l)}if(r!==i||a){let l=n._$AA;for(;l!==r;){const p=Ja(l).nextSibling;Ja(s).insertBefore(l,i),l=p}}}return n},je=(t,e,n=t)=>(t._$AI(e,n),t),vm={},mi=(t,e=vm)=>t._$AH=e,xm=t=>t._$AH,ki=t=>{t._$AR(),t._$AA.remove()},tl=(t,e,n)=>{const s=new Map;for(let i=e;i<=n;i++)s.set(t[i],i);return s},Fe=Bt(class extends In{constructor(t){if(super(t),t.type!==ve.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let s;n===void 0?n=e:e!==void 0&&(s=e);const i=[],r=[];let o=0;for(const a of t)i[o]=s?s(a,o):o,r[o]=n(a,o),o++;return{values:r,keys:i}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,s]){const i=xm(t),{values:r,keys:o}=this.dt(e,n,s);if(!Array.isArray(i))return this.ut=o,r;const a=this.ut??=[],l=[];let p,h,d=0,f=i.length-1,c=0,g=r.length-1;for(;d<=f&&c<=g;)if(i[d]===null)d++;else if(i[f]===null)f--;else if(a[d]===o[c])l[c]=je(i[d],r[c]),d++,c++;else if(a[f]===o[g])l[g]=je(i[f],r[g]),f--,g--;else if(a[d]===o[g])l[g]=je(i[d],r[g]),Wt(t,l[g+1],i[d]),d++,g--;else if(a[f]===o[c])l[c]=je(i[f],r[c]),Wt(t,i[d],i[f]),f--,c++;else if(p===void 0&&(p=tl(o,c,g),h=tl(a,d,f)),p.has(a[d]))if(p.has(a[f])){const u=h.get(o[c]),k=u!==void 0?i[u]:null;if(k===null){const v=Wt(t,i[d]);je(v,r[c]),l[c]=v}else l[c]=je(k,r[c]),Wt(t,i[d],k),i[u]=null;c++}else ki(i[f]),f--;else ki(i[d]),d++;for(;c<=g;){const u=Wt(t,l[g+1]);je(u,r[c]),l[c++]=u}for(;d<=f;){const u=i[d++];u!==null&&ki(u)}return this.ut=o,mi(t,l),V}}),Kn="dpk-changes",wm=(t,e,n)=>{const s=t.unread>0?e.changesUnread(t.unread):e.changes;return m`<button
|
|
1705
1705
|
class="dpk-chrome-action dpk-bell"
|
|
1706
1706
|
type="button"
|
|
1707
1707
|
aria-controls=${Kn}
|
|
@@ -3948,7 +3948,7 @@ The brief is too long for a comment, so it is stored in this artifact's database
|
|
|
3948
3948
|
>
|
|
3949
3949
|
${Ef()}
|
|
3950
3950
|
</button>
|
|
3951
|
-
</div>`,Tb=t=>{const e=t[0];return e instanceof HTMLElement?e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"?!0:e.isContentEditable:!1},Rb=t=>{const e=t.key.toLowerCase();return(t.metaKey||t.ctrlKey)&&!t.altKey&&!t.shiftKey&&e==="z"},Mb=t=>{if(!(t.metaKey||t.ctrlKey)||t.altKey)return!1;const e=t.key.toLowerCase();return e==="z"&&t.shiftKey||e==="y"&&!t.shiftKey};class Ob{#e;constructor(e,n){this.#e=n,e.addController(this)}hostConnected(){document.addEventListener("keydown",this.#n)}hostDisconnected(){document.removeEventListener("keydown",this.#n)}#n=e=>{e.isComposing||e.defaultPrevented||Tb(e.composedPath())||(Mb(e)?(e.preventDefault(),this.#e.redo()):Rb(e)&&(e.preventDefault(),this.#e.undo()))}}const _b=(t,e)=>{switch(t.status){case"connecting":return e.syncConnecting;case"synced":return e.syncSynced;case"pending":return e.syncPending(t.unsent);case"offline":return e.syncOffline;case"error":return e.syncError}},Pb=O({protocol:K(cs),self:O({id:x(),name:W(x())}),open:sc()}),Jl=(t,e)=>{let n;const s={protocol:cs,storageKey:e.storageKey,template:e.template,connect:i=>{if(n!==void 0)return;const r=C(Pb,i);if(!r.success){console.warn("[dev-process-kit] dpk-sync-request: ignored a host that is not protocol 1",i);return}n={protocol:cs,self:r.output.self,open:o=>i.open(o)}}};return t.dispatchEvent(new CustomEvent(nc,{detail:s,bubbles:!0,composed:!0})),n},Lb=`script[type="application/json"]:not([${Fr}]):not([${Ks}])`,zb=`script[type="application/json"][${Ks}]`,Ib=30,ed={width:360,height:480},Pi="dpk-review",Db=t=>{try{return t.matches(":popover-open")}catch{return!1}},Nb=()=>new Promise(t=>requestAnimationFrame(()=>t())),td=t=>t>0?String(t):null;class as extends X{static{this.styles=[Wl,Pr,Lr,Gl,ql]}static{this.properties={storageKey:{type:String,attribute:"storage-key"},storage:{type:String},notes:{type:String},theme:{type:String},notesOpen:{state:!0},settingsOpen:{state:!0},reviewSection:{state:!0}}}#e=st;#n=null;#s=null;#t="current";#i=null;#r=null;#o;#a;#l={open:e=>this.#pe(e),answer:(e,n)=>this.#ze(e,n),next:e=>this.#me(e),pickRound:e=>{this.#t=e,this.#r=null,this.requestUpdate()}};#d=!1;#c=new Bk(this);#u=cb;#h=new ab(this,{persistKey:()=>this.storage==="off"||this.storage==="memory"?null:this.#se});#k=new ek(this,()=>this.storage!=="off"&&this.storage!=="memory");#p=new Xm(this);#x=new Nk(this);#A=new Eb(this,{persist:()=>this.storage!=="off"&&this.storage!=="memory",storageKey:()=>`${this.storageKey??rt(this.#se)}:unsent-text`});#v=null;#f=new mm(this,{persist:()=>this.storage!=="off"&&this.storage!=="memory",storageKey:()=>this.storageKey??rt(this.definition.name),inside:e=>e.some(n=>n instanceof Element&&(n.id===Kn||n.classList.contains("dpk-bell"))),show:e=>{this.#Be(e)},ignored:()=>this.#g!==null,read:e=>this.#b?.setAddressed(e.addressed??Oe)});#w={toggleList:()=>this.#f.toggleList(),openList:()=>this.#f.send({kind:"open-list"}),show:e=>this.#f.show(e),dismiss:e=>this.#f.send({kind:"close-toast",key:e}),readAll:()=>this.#f.send({kind:"read-all"}),pause:e=>this.#f.pause(e),resume:e=>this.#f.resume(e)};#m=new Gm(this,{persist:()=>this.storage!=="off"&&this.storage!=="memory",storageKey:()=>this.storageKey??rt(this.definition.name),log:()=>this.#f.log});#S=new po(this);#$=new Gn(this);#y=new yu(this,{state:()=>this.controller.derivation.state,messages:()=>Go(this.locale)});#C=Vt;#U=new Wg(this,{dialog:()=>this.renderRoot.querySelector(`#${Ti}`),open:()=>this.settingsOpen,dismiss:()=>{this.settingsOpen=!1}});#M={undo:()=>this.controller.undo(),redo:()=>this.controller.redo()};#E=new xk(this,{surface:()=>this.renderRoot.querySelector(".dpk-floating-menu"),header:()=>this.renderRoot.querySelector(".dpk-menu-slot"),area:()=>this.#Oe(),persistKey:()=>this.storage==="off"||this.storage==="memory"?null:this.#se});constructor(){super(),this.settingsOpen=!1,new Kk(this,{surface:()=>this.renderRoot.querySelector(`#${Pi}`),anchor:()=>this.renderRoot.querySelector(".dpk-floating-menu"),trigger:()=>this.renderRoot.querySelector(".dpk-review-toggles"),open:()=>this.notesOpen,close:()=>{this.notesOpen=!1}}),this.#o=new Rk(this,{active:()=>this.#e.questions.length>0,bindings:()=>this.#g!==null||!this.#b?[]:Ek(this,this.#e,this.derivation.answers,this.notesOpen&&this.reviewSection==="questions"?Ai(this.#e,this.#s):null,(e,n)=>this.grillRefsOf(e,n)),open:e=>this.#pe(e),labelOf:e=>R(this.locale).grillOpen(`${e.ref} \xB7 ${e.title}`),gutterOf:e=>this.contains(e)&&this.#De(e)==="main"}),this.#a=new Fm(this,{active:()=>this.#m.enabled,bindings:()=>this.#g!==null?[]:Bm(this,this.#m.state,this.#f.log),onToggle:e=>this.#m.toggle(e),labelOf:e=>{const n=R(this.locale);return e==="checked"?n.checkModeChecked:e==="stale"?n.checkModeStale:n.checkModeUnchecked}}),new qk(this,()=>this.#g===null?this.renderRoot.querySelector(".dpk-header"):null)}#H=new Gt(this);#B=new Gt(this);#K=new Gt(this);#z=new Uk(this,()=>this.storage!=="off"&&this.storage!=="memory",()=>this.#g===null,()=>{this.#b?.setTemplate(this.definition),this.#b?.setGrill({grill:this.#e,locale:this.locale})});#_;#b;#T=Rt;#j=null;#I=new Set;#P=new um({host:this,name:()=>`<${this.tagName.toLowerCase()}>`,script:()=>this.scriptOf(Lb),parse:e=>this.definition.parseBase(e),empty:()=>this.definition.emptyBase(),optional:()=>Xf(this),onChange:e=>this.#st(e)});#J;#F;#L=[];#ee="";#V;#oe=new Promise(e=>{this.#V=e});#Y;#D=new Promise(e=>{this.#Y=e});#N;#g=null;#Z;#Q=!1;get locale(){return this.#R()?.locale()??this.#z.locale}get definition(){const e=this.locale;return this.#_?.locale!==e&&(this.#_={locale:e,value:this.definitionFor(e)}),this.#_.value}get liveDefinition(){return this.#b?.definition??this.definition}connectedCallback(){Qf(),this.#g=ui(this),this.toggleAttribute("data-dpk-page-content",this.#g!==null),this.#g===null&&!this.#Q&&(this.#Q=!0,new Ob(this,this.#M)),super.connectedCallback(),this.dataset.template=this.definition.name,this.#d||(this.#d=!0,this.notesOpen=this.notes==="on"||this.notes==="open"||this.notes==="comments"||this.notes==="changes"||this.notes==="questions",this.reviewSection=this.notes==="changes"||this.notes==="questions"?this.notes:"comments"),this.#G(),this.#g===null&&this.hashMode!=="off"&&window.addEventListener("hashchange",this.#Ae),this.addEventListener("click",this.#Re),this.addEventListener("dpk-comment-targets-change",this.#O),this.addEventListener("dpk-comment-request",this.#Ee),this.addEventListener("dpk-comment-submit",this.#Ce),this.addEventListener("dpk-element-action",this.#Te),this.#g===null&&this.addEventListener("dpk-board-rendered",this.#ne),this.#F??=new MutationObserver(this.#O),this.#O()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||this.#b?.close()}),window.removeEventListener("hashchange",this.#Ae),this.removeEventListener("click",this.#Re),this.#P.disconnect(),this.#F?.disconnect(),this.removeEventListener("dpk-comment-targets-change",this.#O),this.removeEventListener("dpk-comment-request",this.#Ee),this.removeEventListener("dpk-comment-submit",this.#Ce),this.removeEventListener("dpk-element-action",this.#Te),this.removeEventListener("dpk-board-rendered",this.#ne)}#G(e=0){if(this.#b){this.#b.reopen(),this.#te();return}if(this.parentElement?.localName==="dpk-page"&&customElements.get("dpk-page")===void 0){customElements.whenDefined("dpk-page").then(()=>this.#G(e));return}if(this.childNodes.length===0&&e<2){queueMicrotask(()=>this.#G(e+1));return}const s=this.pendingStart();if(s!==null){s.then(()=>this.#G(e));return}this.#et()}#te(){this.#J||(this.#J=this.#b?.subscribe(()=>this.#it()))}willUpdate(){const e=this.#R();this.dataset.theme=e?.theme()??this.#k.resolve(_e(this.theme)),e!==null&&this.#b&&this.#Z!==e.locale()&&(this.#Z=e.locale(),this.#b.setTemplate(this.definition))}updated(){this.#lt(),this.#at(),this.#He(),this.#Ie(),this.#ae(),this.#g!==null&&this.dispatchEvent(new Event("dpk-board-rendered",{bubbles:!0,composed:!0}))}#ne=e=>{e.target!==this&&(e.stopPropagation(),this.#o.refresh(),this.#a.refresh())};#ae(){if(this.#g!==null)return;const n=this.renderRoot.querySelector(".dpk-floating-menu")?.getBoundingClientRect().width??0,i=`${ok(this.#E.placement.spot,n)}px`;this.style.getPropertyValue("--dpk-floating-menu-clearance")!==i&&this.style.setProperty("--dpk-floating-menu-clearance",i)}get api(){return this.#N??=this.#Je(),this.#N}get started(){return this.#D}get controller(){if(!this.#b)throw new Error(`<${this.tagName.toLowerCase()}> is not initialized yet`);return this.#b}get componentSnapshot(){return this.#b?.componentSnapshot??null}get derivation(){return this.controller.derivation}get navigation(){return this.#g===null?this.#T:this.#W()}get board(){return this.#g}get hasOwnSidebar(){return this.renderRoot.querySelector(".dpk-sidebar")!==null}get sidebarFoldSide(){return this.hasOwnSidebar?this.sidebarLayout.side:null}get sidebarFolded(){const e=this.sidebarFoldSide;return e===null?null:this.renderRoot.querySelector("dpk-internal-layout-sidebar")?.foldedOn(e)??null}toggleSidebarFold(){const e=this.sidebarFoldSide;e!==null&&(this.renderRoot.querySelector("dpk-internal-layout-sidebar")?.toggleFold(e),this.requestUpdate())}dispatch(e){if(this.#g!==null)return this.#he(s=>s.dispatch(this.#ye(e)));const n=this.controller.dispatch(e);return n.ok&&this.#A.settle([e.payload,e.note]),n.ok||(this.requestUpdate(),this.dispatchEvent(new CustomEvent("dpk-error",{detail:{issues:n.issues},bubbles:!0,composed:!0})),this.#q()),n}dispatchBatch(e){if(this.#g!==null)return this.#he(s=>s.dispatchBatch(e.map(i=>this.#ye(i))));const n=this.controller.dispatchBatch(e);return n.ok&&this.#A.settle(e.flatMap(s=>[s.payload,s.note])),n.ok||(this.requestUpdate(),this.dispatchEvent(new CustomEvent("dpk-error",{detail:{issues:n.issues},bubbles:!0,composed:!0})),this.#q()),n}editComment(e,n){if(this.#g!==null)return this.#he(i=>i.editComment(e,n));const s=this.controller.editComment(e,n);return s.ok&&this.#A.settle([n]),s.ok||(this.requestUpdate(),this.dispatchEvent(new CustomEvent("dpk-error",{detail:{issues:s.issues},bubbles:!0,composed:!0})),this.#q()),s}removeAction(e){this.#g!==null?this.#R()?.removeAction(e):this.controller.removeAction(e)}async#le(){if(this.#g!==null||this.controller.sync===null){this.clearActions();return}const e=this.controller.prepareClear(),n=R(this.locale);await this.#S.ask({title:n.clearSharedTitle,body:n.clearSharedBody,confirmLabel:n.clearSharedOk,cancelLabel:n.clearSharedCancel,tone:"danger"})&&e()}clearActions(){if(this.#g===null){this.controller.clearActions();return}const e=this.#R();for(const n of this.controller.actions)e?.removeAction(n.id)}navigate(e,n={}){if(this.#g!==null){this.#R()?.navigate(this.#$e(e),n);return}const s=Qe(this.#W());this.#T=fn(this.#T,e,this.definition.navigationHierarchy),this.#re(n.replace??!1);const i=Qe(this.#W());this.requestUpdate(),s!==i&&(this.#q(),this.dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:this.#T},bubbles:!0,composed:!0})))}hashFor(e){const n=this.#R();if(n!==null)return n.hashFor(this.#$e(e));const s=this.#W();return Qe(this.definition.resolveNavigation(this.derivation.state,fn(s,e,this.definition.navigationHierarchy)))}requestComment(e){if(this.#g!==null){this.#R()?.requestComment(_(this.#we(e,"page")));return}this.#j=typeof e=="string"?e:_(e),this.notesOpen=!0,this.reviewSection="comments",this.requestUpdate()}get settingsSections(){if(!this.#b)return[];const e=this.#ie();return this.#xe(this.renderSettingsSections(e))}openSettings(e=Vt){const n=this.#Qe();if(n===null||n===this){this.#C=e,this.settingsOpen=!0,this.requestUpdate();return}n.openSettings(e)}renderSettingsSections(e){return[]}settingsSwitches(e){const n=this.definition.settings?.(e.state);return n===void 0||n.items.length===0?null:{settings:n,flip:s=>{this.dispatch(s)}}}get settingsTriggerIntents(){return{open:this.settingsOpen,toggle:()=>{if(this.settingsOpen){this.settingsOpen=!1;return}this.openSettings()}}}get canSendToClaude(){return this.#p.available}sendToClaude(){return this.#p.send({brief:this.api.exportBrief(),draft:$s(this.derivation.actions),anchor:this})}renderReviewPanel(e){return m`<dpk-comment-panel
|
|
3951
|
+
</div>`,Tb=t=>{const e=t[0];return e instanceof HTMLElement?e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"?!0:e.isContentEditable:!1},Rb=t=>{const e=t.key.toLowerCase();return(t.metaKey||t.ctrlKey)&&!t.altKey&&!t.shiftKey&&e==="z"},Mb=t=>{if(!(t.metaKey||t.ctrlKey)||t.altKey)return!1;const e=t.key.toLowerCase();return e==="z"&&t.shiftKey||e==="y"&&!t.shiftKey};class Ob{#e;constructor(e,n){this.#e=n,e.addController(this)}hostConnected(){document.addEventListener("keydown",this.#n)}hostDisconnected(){document.removeEventListener("keydown",this.#n)}#n=e=>{e.isComposing||e.defaultPrevented||Tb(e.composedPath())||(Mb(e)?(e.preventDefault(),this.#e.redo()):Rb(e)&&(e.preventDefault(),this.#e.undo()))}}const _b=(t,e)=>{switch(t.status){case"connecting":return e.syncConnecting;case"synced":return e.syncSynced;case"pending":return e.syncPending(t.unsent);case"offline":return e.syncOffline;case"error":return e.syncError}},Pb=O({protocol:K(cs),self:O({id:x(),name:W(x())}),open:sc()}),Jl=(t,e)=>{let n;const s={protocol:cs,storageKey:e.storageKey,template:e.template,connect:i=>{if(n!==void 0)return;const r=C(Pb,i);if(!r.success){console.warn("[dev-process-kit] dpk-sync-request: ignored a host that is not protocol 1",i);return}n={protocol:cs,self:r.output.self,open:o=>i.open(o)}}};return t.dispatchEvent(new CustomEvent(nc,{detail:s,bubbles:!0,composed:!0})),n},Lb=`script[type="application/json"]:not([${Fr}]):not([${Ks}])`,zb=`script[type="application/json"][${Ks}]`,Ib=30,ed={width:360,height:480},Pi="dpk-review",Db=t=>{try{return t.matches(":popover-open")}catch{return!1}},Nb=()=>new Promise(t=>requestAnimationFrame(()=>t())),td=t=>t>0?String(t):null;class as extends X{static{this.styles=[Wl,Pr,Lr,Gl,ql]}static{this.properties={storageKey:{type:String,attribute:"storage-key"},storage:{type:String},notes:{type:String},theme:{type:String},notesOpen:{state:!0},settingsOpen:{state:!0},reviewSection:{state:!0}}}#e=st;#n=null;#s=null;#t="current";#i=null;#r=null;#o;#a;#l={open:e=>this.#pe(e),answer:(e,n)=>this.#ze(e,n),next:e=>this.#me(e),pickRound:e=>{this.#t=e,this.#r=null,this.requestUpdate()}};#d=!1;#c=new Bk(this);#u=cb;#h=new ab(this,{persistKey:()=>this.storage==="off"||this.storage==="memory"?null:this.#se});#k=new ek(this,()=>this.storage!=="off"&&this.storage!=="memory");#p=new Xm(this);#x=new Nk(this);#A=new Eb(this,{persist:()=>this.storage!=="off"&&this.storage!=="memory",storageKey:()=>`${this.storageKey??rt(this.#se)}:unsent-text`});#v=null;#f=new mm(this,{persist:()=>this.storage!=="off"&&this.storage!=="memory",storageKey:()=>this.storageKey??rt(this.definition.name),inside:e=>e.some(n=>n instanceof Element&&(n.id===Kn||n.classList.contains("dpk-bell"))),show:e=>{this.#Be(e)},ignored:()=>this.#g!==null,read:e=>this.#b?.setAddressed(e.addressed??Oe)});#w={toggleList:()=>this.#f.toggleList(),openList:()=>this.#f.send({kind:"open-list"}),show:e=>this.#f.show(e),dismiss:e=>this.#f.send({kind:"close-toast",key:e}),readAll:()=>this.#f.send({kind:"read-all"}),pause:e=>this.#f.pause(e),resume:e=>this.#f.resume(e)};#m=new Gm(this,{persist:()=>this.storage!=="off"&&this.storage!=="memory",storageKey:()=>this.storageKey??rt(this.definition.name),log:()=>this.#f.log});#S=new po(this);#$=new Gn(this);#y=new yu(this,{state:()=>this.controller.derivation.state,messages:()=>Go(this.locale)});#C=Vt;#U=new Wg(this,{dialog:()=>this.renderRoot.querySelector(`#${Ti}`),open:()=>this.settingsOpen,dismiss:()=>{this.settingsOpen=!1}});#M={undo:()=>this.controller.undo(),redo:()=>this.controller.redo()};#E=new xk(this,{surface:()=>this.renderRoot.querySelector(".dpk-floating-menu"),header:()=>this.renderRoot.querySelector(".dpk-menu-slot"),area:()=>this.#Oe(),persistKey:()=>this.storage==="off"||this.storage==="memory"?null:this.#se});constructor(){super(),this.settingsOpen=!1,new Kk(this,{surface:()=>this.renderRoot.querySelector(`#${Pi}`),anchor:()=>this.renderRoot.querySelector(".dpk-floating-menu"),trigger:()=>this.renderRoot.querySelector(".dpk-review-toggles"),open:()=>this.notesOpen,close:()=>{this.notesOpen=!1}}),this.#o=new Rk(this,{active:()=>this.#e.questions.length>0,bindings:()=>this.#g!==null||!this.#b?[]:Ek(this,this.#e,this.derivation.answers,this.notesOpen&&this.reviewSection==="questions"?Ai(this.#e,this.#s):null,(e,n)=>this.grillRefsOf(e,n)),open:e=>this.#pe(e),labelOf:e=>R(this.locale).grillOpen(`${e.ref} \xB7 ${e.title}`),gutterOf:e=>this.contains(e)&&this.#De(e)==="main"}),this.#a=new Fm(this,{active:()=>this.#m.enabled,bindings:()=>this.#g!==null?[]:Bm(this,this.#m.state,this.#f.log),onToggle:e=>this.#m.toggle(e),labelOf:e=>{const n=R(this.locale);return e==="checked"?n.checkModeChecked:e==="stale"?n.checkModeStale:n.checkModeUnchecked}}),new qk(this,()=>this.#g===null?this.renderRoot.querySelector(".dpk-header"):null)}#H=new Gt(this);#B=new Gt(this);#K=new Gt(this);#z=new Uk(this,()=>this.storage!=="off"&&this.storage!=="memory",()=>this.#g===null,()=>{this.#b?.setTemplate(this.definition),this.#b?.setGrill({grill:this.#e,locale:this.locale})});#_;#b;#T=Rt;#j=null;#I=new Set;#P=new um({host:this,name:()=>`<${this.tagName.toLowerCase()}>`,script:()=>this.scriptOf(Lb),parse:e=>this.definition.parseBase(e),empty:()=>this.definition.emptyBase(),optional:()=>this.baseOptional(),onChange:e=>this.#st(e)});#J;#F;#L=[];#ee="";#V;#oe=new Promise(e=>{this.#V=e});#Y;#D=new Promise(e=>{this.#Y=e});#N;#g=null;#Z;#Q=!1;get locale(){return this.#R()?.locale()??this.#z.locale}get definition(){const e=this.locale;return this.#_?.locale!==e&&(this.#_={locale:e,value:this.definitionFor(e)}),this.#_.value}get liveDefinition(){return this.#b?.definition??this.definition}connectedCallback(){Qf(),this.#g=ui(this),this.toggleAttribute("data-dpk-page-content",this.#g!==null),this.#g===null&&!this.#Q&&(this.#Q=!0,new Ob(this,this.#M)),super.connectedCallback(),this.dataset.template=this.definition.name,this.#d||(this.#d=!0,this.notesOpen=this.notes==="on"||this.notes==="open"||this.notes==="comments"||this.notes==="changes"||this.notes==="questions",this.reviewSection=this.notes==="changes"||this.notes==="questions"?this.notes:"comments"),this.#G(),this.#g===null&&this.hashMode!=="off"&&window.addEventListener("hashchange",this.#Ae),this.addEventListener("click",this.#Re),this.addEventListener("dpk-comment-targets-change",this.#O),this.addEventListener("dpk-comment-request",this.#Ee),this.addEventListener("dpk-comment-submit",this.#Ce),this.addEventListener("dpk-element-action",this.#Te),this.#g===null&&this.addEventListener("dpk-board-rendered",this.#ne),this.#F??=new MutationObserver(this.#O),this.#O()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||this.#b?.close()}),window.removeEventListener("hashchange",this.#Ae),this.removeEventListener("click",this.#Re),this.#P.disconnect(),this.#F?.disconnect(),this.removeEventListener("dpk-comment-targets-change",this.#O),this.removeEventListener("dpk-comment-request",this.#Ee),this.removeEventListener("dpk-comment-submit",this.#Ce),this.removeEventListener("dpk-element-action",this.#Te),this.removeEventListener("dpk-board-rendered",this.#ne)}#G(e=0){if(this.#b){this.#b.reopen(),this.#te();return}if(this.parentElement?.localName==="dpk-page"&&customElements.get("dpk-page")===void 0){customElements.whenDefined("dpk-page").then(()=>this.#G(e));return}if(this.childNodes.length===0&&e<2){queueMicrotask(()=>this.#G(e+1));return}const s=this.pendingStart();if(s!==null){s.then(()=>this.#G(e));return}this.#et()}#te(){this.#J||(this.#J=this.#b?.subscribe(()=>this.#it()))}willUpdate(){const e=this.#R();this.dataset.theme=e?.theme()??this.#k.resolve(_e(this.theme)),e!==null&&this.#b&&this.#Z!==e.locale()&&(this.#Z=e.locale(),this.#b.setTemplate(this.definition))}updated(){this.#lt(),this.#at(),this.#He(),this.#Ie(),this.#ae(),this.#g!==null&&this.dispatchEvent(new Event("dpk-board-rendered",{bubbles:!0,composed:!0}))}#ne=e=>{e.target!==this&&(e.stopPropagation(),this.#o.refresh(),this.#a.refresh())};#ae(){if(this.#g!==null)return;const n=this.renderRoot.querySelector(".dpk-floating-menu")?.getBoundingClientRect().width??0,i=`${ok(this.#E.placement.spot,n)}px`;this.style.getPropertyValue("--dpk-floating-menu-clearance")!==i&&this.style.setProperty("--dpk-floating-menu-clearance",i)}get api(){return this.#N??=this.#Je(),this.#N}get started(){return this.#D}get controller(){if(!this.#b)throw new Error(`<${this.tagName.toLowerCase()}> is not initialized yet`);return this.#b}get componentSnapshot(){return this.#b?.componentSnapshot??null}get derivation(){return this.controller.derivation}get navigation(){return this.#g===null?this.#T:this.#W()}get board(){return this.#g}get hasOwnSidebar(){return this.renderRoot.querySelector(".dpk-sidebar")!==null}get sidebarFoldSide(){return this.hasOwnSidebar?this.sidebarLayout.side:null}get sidebarFolded(){const e=this.sidebarFoldSide;return e===null?null:this.renderRoot.querySelector("dpk-internal-layout-sidebar")?.foldedOn(e)??null}toggleSidebarFold(){const e=this.sidebarFoldSide;e!==null&&(this.renderRoot.querySelector("dpk-internal-layout-sidebar")?.toggleFold(e),this.requestUpdate())}dispatch(e){if(this.#g!==null)return this.#he(s=>s.dispatch(this.#ye(e)));const n=this.controller.dispatch(e);return n.ok&&this.#A.settle([e.payload,e.note]),n.ok||(this.requestUpdate(),this.dispatchEvent(new CustomEvent("dpk-error",{detail:{issues:n.issues},bubbles:!0,composed:!0})),this.#q()),n}dispatchBatch(e){if(this.#g!==null)return this.#he(s=>s.dispatchBatch(e.map(i=>this.#ye(i))));const n=this.controller.dispatchBatch(e);return n.ok&&this.#A.settle(e.flatMap(s=>[s.payload,s.note])),n.ok||(this.requestUpdate(),this.dispatchEvent(new CustomEvent("dpk-error",{detail:{issues:n.issues},bubbles:!0,composed:!0})),this.#q()),n}editComment(e,n){if(this.#g!==null)return this.#he(i=>i.editComment(e,n));const s=this.controller.editComment(e,n);return s.ok&&this.#A.settle([n]),s.ok||(this.requestUpdate(),this.dispatchEvent(new CustomEvent("dpk-error",{detail:{issues:s.issues},bubbles:!0,composed:!0})),this.#q()),s}removeAction(e){this.#g!==null?this.#R()?.removeAction(e):this.controller.removeAction(e)}async#le(){if(this.#g!==null||this.controller.sync===null){this.clearActions();return}const e=this.controller.prepareClear(),n=R(this.locale);await this.#S.ask({title:n.clearSharedTitle,body:n.clearSharedBody,confirmLabel:n.clearSharedOk,cancelLabel:n.clearSharedCancel,tone:"danger"})&&e()}clearActions(){if(this.#g===null){this.controller.clearActions();return}const e=this.#R();for(const n of this.controller.actions)e?.removeAction(n.id)}navigate(e,n={}){if(this.#g!==null){this.#R()?.navigate(this.#$e(e),n);return}const s=Qe(this.#W());this.#T=fn(this.#T,e,this.definition.navigationHierarchy),this.#re(n.replace??!1);const i=Qe(this.#W());this.requestUpdate(),s!==i&&(this.#q(),this.dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:this.#T},bubbles:!0,composed:!0})))}hashFor(e){const n=this.#R();if(n!==null)return n.hashFor(this.#$e(e));const s=this.#W();return Qe(this.definition.resolveNavigation(this.derivation.state,fn(s,e,this.definition.navigationHierarchy)))}requestComment(e){if(this.#g!==null){this.#R()?.requestComment(_(this.#we(e,"page")));return}this.#j=typeof e=="string"?e:_(e),this.notesOpen=!0,this.reviewSection="comments",this.requestUpdate()}get settingsSections(){if(!this.#b)return[];const e=this.#ie();return this.#xe(this.renderSettingsSections(e))}openSettings(e=Vt){const n=this.#Qe();if(n===null||n===this){this.#C=e,this.settingsOpen=!0,this.requestUpdate();return}n.openSettings(e)}renderSettingsSections(e){return[]}settingsSwitches(e){const n=this.definition.settings?.(e.state);return n===void 0||n.items.length===0?null:{settings:n,flip:s=>{this.dispatch(s)}}}get settingsTriggerIntents(){return{open:this.settingsOpen,toggle:()=>{if(this.settingsOpen){this.settingsOpen=!1;return}this.openSettings()}}}get canSendToClaude(){return this.#p.available}sendToClaude(){return this.#p.send({brief:this.api.exportBrief(),draft:$s(this.derivation.actions),anchor:this})}renderReviewPanel(e){return m`<dpk-comment-panel
|
|
3952
3952
|
.definition=${this.controller.definition}
|
|
3953
3953
|
.state=${e.state}
|
|
3954
3954
|
.navigation=${e.navigation}
|
|
@@ -4131,7 +4131,7 @@ The brief is too long for a comment, so it is stored in this artifact's database
|
|
|
4131
4131
|
</button>`)}
|
|
4132
4132
|
</div>
|
|
4133
4133
|
</div>
|
|
4134
|
-
</div>`}#xe(e){return e.map(n=>({id:n.id,label:n.label,render:()=>n.render(this.#ie())}))}#Ze(e){this.#C=e,this.requestUpdate()}#Qe(){if(this.#g===null)return this;let e=this.parentNode;for(;e!==null;){if(e instanceof as&&e.board===null)return e;e=e.parentNode}return null}#Xe(){return this.#y.render()}get sidebarLayout(){return Ua}get mainLayout(){return"flow"}hasSidebarContent(){return this.querySelector(':scope > [slot="sidebar"]')!==null}hasAsideContent(){return this.querySelector(':scope > [slot="aside"]')!==null}hasFooterContent(){return this.querySelector(':scope > [slot="footer"]')!==null}context(){return this.#ie()}#R(){return this.#g===null?null:Za(this)}get#se(){return this.#g===null?this.definition.name:`${this.definition.name}@${this.#g}`}#he(e){const n=this.#R();if(n===null)return{ok:!1,issues:[{path:"board",message:"the page is not ready yet"}]};const s=e(n);return this.requestUpdate(),s}#we(e,n){const s=this.#R(),i=this.#g,r=un(e,n);return i===null||s===null?r:Wa(r,i,s.pageNames())}#ye(e){const n=this.controller.descriptorFor(e.type)?.targetType??"page";return{...e,target:this.#we(e.target,n)}}#$e(e){const n=this.#R(),s=this.#g;return n===null||s===null?e:im(n.navigation(),s,e,n.pageNames(),this.definition.navigationHierarchy)}#ue(){return{definition:this.definition,controller:()=>this.controller,derivation:()=>this.derivation,ready:this.#oe,navigation:()=>this.#W(),issues:()=>this.controller.lastIssues,dispatch:e=>this.dispatch(e),dispatchBatch:e=>this.dispatchBatch(e),subscribe:e=>(this.#I.add(e),()=>{this.#I.delete(e)}),editComment:(e,n)=>this.editComment(e,n),removeAction:e=>this.removeAction(e),clearActions:()=>this.clearActions(),navigate:(e,n)=>this.navigate(e,n),hashFor:e=>this.hashFor(e),requestComment:e=>this.requestComment(e),brief:e=>this.buildBrief(e)}}#Je(){return Xa(this.#ue(),this)}#Se(){return fi(this.#ue())}#ie(){return cm(this.#ue())}#W(){const e=this.#R(),n=this.#g===null?this.#T:Be(e?.navigation()??Rt,this.#g);return this.#b?this.definition.resolveNavigation(this.derivation.state,n):n}#et(){const e=this.#P.read(),n=this.#g!==null;this.#e=n?st:this.readGrill(),this.#tt(),this.#T=n||this.hashMode==="off"?Rt:jl(),this.#Z=this.locale;const s=this.storageKey,i=n?void 0:Jl(this,{storageKey:s??rt(this.definition.name),template:this.definition.name});this.#b=new ba({definition:this.definition,base:e,storage:n||i!==void 0?null:this.#nt(),grill:{grill:this.#e,locale:this.locale},...typeof s=="string"?{storageKey:s}:{},...i===void 0?{}:{sync:i},settled:()=>!n&&this.#P.error===null&&this.#n===null&&this.draftSettled()}),this.#te(),n||this.#b.setAddressed(this.#f.log?.addressed??Oe),this.#O(),this.#re(!0),this.#Y?.();const r=tm(this);r===null?this.#V?.():r.then(()=>this.#V?.()),this.#P.observe(),this.requestUpdate()}#tt(){this.querySelector(`:scope > [slot="${Yl}"]`)!==null&&console.warn(`[dev-process-kit] <${this.tagName.toLowerCase()}> no longer shows slot="${Yl}"; slot each piece as slot="${Oi}" data-name="\u2026" instead.`)}#nt(){return this.storage==="off"?null:this.storage==="memory"?new ei:ti()}scriptOf(e){return this.querySelector(e)}pendingStart(){return null}draftSettled(){return!0}get hashMode(){return"auto"}buildBrief(e){return zn(e,this.controller.definition,ge,this.#f.log?.addressed??Oe)}readGrill(){return this.#n=null,this.parseGrillScript(this.scriptOf(zb))}parseGrillScript(e,n){if(!e?.textContent||e.textContent.trim().length===0)return st;try{return og(JSON.parse(e.textContent))}catch(s){console.error(`[dev-process-kit] invalid questions${n===void 0?"":` in ${n}`}:`,s);const i=s instanceof Error?s.message:String(s);return this.#n=n===void 0?i:`${n}: ${i}`,st}}refreshGrill(){this.#g!==null||!this.#b||(this.#e=this.readGrill(),this.#b.setGrill({grill:this.#e,locale:this.locale}),this.requestUpdate())}grillRefsOf(e,n){return[n]}#st(e){this.#g===null&&(this.#e=this.readGrill()),this.controller.setGrill({grill:this.#e,locale:this.locale}),this.controller.setBase(e.state),this.requestUpdate()}#q(){const e=this.#Se();for(const n of this.#I)n(e)}#it(){if(!this.isConnected){this.requestUpdate(),this.#q();return}this.#g===null&&this.#re(!0),$l(this.#L,this.controller.actions),Sl(this.#L,this.controller.actions),queueMicrotask(this.#O),this.requestUpdate(),this.#q(),this.#g===null&&this.dispatchEvent(new CustomEvent("dpk-change",{detail:this.#Se(),bubbles:!0,composed:!0}))}#re(e){if(this.#g!==null)return;const n=this.#W();this.#T=n,this.hashMode!=="off"&&Hk(n,e)}#Ae=()=>{this.#T=jl(),this.#re(!0),this.requestUpdate(),this.#q(),this.dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:this.#T},bubbles:!0,composed:!0}))};#O=()=>{if(this.#F?.disconnect(),this.#L=tk(this,s=>{this.isConnected&&this.#F?.observe(s,{childList:!0,subtree:!0})}),!this.#b)return;$l(this.#L,this.#b.actions),Sl(this.#L,this.#b.actions);const e=sk(this.#L),n=this.adoptedComponentProviders();this.#b.setComponentSnapshot(n.length===0?e:{targets:e.targets,providers:[...e.providers,...n]}),this.#rt()};adoptedComponentProviders(){return[]}#rt(){if(this.#g===null||!this.#b)return;const e=this.#b.componentSnapshot,n=JSON.stringify([e.targets,e.providers]);n!==this.#ee&&(this.#ee=n,this.dispatchEvent(new CustomEvent("dpk-comment-targets-change",{bubbles:!0,composed:!0})))}#Ee=e=>{if(e.stopPropagation(),!(e instanceof CustomEvent)||!this.#b)return;const n=e.detail;typeof n!="object"||n===null||!("target"in n)||typeof n.target!="string"||(this.#O(),!this.controller.definition.commentTargets(this.derivation.state,this.navigation).some(i=>i.value===n.target))||this.requestComment(n.target)};#Ce=e=>{if(e.stopPropagation(),!(e instanceof CustomEvent)||!e.cancelable||!this.#b)return;const n=C(lh,e.detail);if(!n.success)return;this.#O();const{target:s,body:i}=n.output;if(!this.controller.definition.commentTargets(this.derivation.state,this.navigation).some(a=>a.value===s))return;this.dispatch({type:I,target:s,payload:{body:i}}).ok&&e.preventDefault()};#Te=e=>{if(e.stopPropagation(),!(e instanceof CustomEvent)||!e.cancelable||!this.#b)return;const n=C(rh,e.detail);if(!n.success)return;this.#O();const{type:s,target:i,payload:r}=n.output;if(!this.controller.definition.commentTargets(this.derivation.state,this.navigation).some(l=>l.value===i))return;this.dispatch({type:s,target:i,payload:r}).ok&&e.preventDefault()};#Re=e=>{for(const n of e.composedPath()){if(!(n instanceof Element))continue;if(n===this||n.hasAttribute("data-template"))break;const s=n.getAttribute("data-dpk-navigate");if(s!==null){e.preventDefault(),this.navigate(gn(s.includes("=")?s:`step=${s}`));return}const i=n.getAttribute("data-dpk-comment");if(i!==null){e.preventDefault(),this.requestComment(i);return}}};#ot(e){const n=lb(this,e.memo),s=pb(this.#u,n),i=this.#h,r=a=>{this.#u=a,this.requestUpdate()},o=i.handlers;return m`<div
|
|
4134
|
+
</div>`}#xe(e){return e.map(n=>({id:n.id,label:n.label,render:()=>n.render(this.#ie())}))}#Ze(e){this.#C=e,this.requestUpdate()}#Qe(){if(this.#g===null)return this;let e=this.parentNode;for(;e!==null;){if(e instanceof as&&e.board===null)return e;e=e.parentNode}return null}#Xe(){return this.#y.render()}get sidebarLayout(){return Ua}get mainLayout(){return"flow"}hasSidebarContent(){return this.querySelector(':scope > [slot="sidebar"]')!==null}hasAsideContent(){return this.querySelector(':scope > [slot="aside"]')!==null}hasFooterContent(){return this.querySelector(':scope > [slot="footer"]')!==null}context(){return this.#ie()}#R(){return this.#g===null?null:Za(this)}get#se(){return this.#g===null?this.definition.name:`${this.definition.name}@${this.#g}`}#he(e){const n=this.#R();if(n===null)return{ok:!1,issues:[{path:"board",message:"the page is not ready yet"}]};const s=e(n);return this.requestUpdate(),s}#we(e,n){const s=this.#R(),i=this.#g,r=un(e,n);return i===null||s===null?r:Wa(r,i,s.pageNames())}#ye(e){const n=this.controller.descriptorFor(e.type)?.targetType??"page";return{...e,target:this.#we(e.target,n)}}#$e(e){const n=this.#R(),s=this.#g;return n===null||s===null?e:im(n.navigation(),s,e,n.pageNames(),this.definition.navigationHierarchy)}#ue(){return{definition:this.definition,controller:()=>this.controller,derivation:()=>this.derivation,ready:this.#oe,navigation:()=>this.#W(),issues:()=>this.controller.lastIssues,dispatch:e=>this.dispatch(e),dispatchBatch:e=>this.dispatchBatch(e),subscribe:e=>(this.#I.add(e),()=>{this.#I.delete(e)}),editComment:(e,n)=>this.editComment(e,n),removeAction:e=>this.removeAction(e),clearActions:()=>this.clearActions(),navigate:(e,n)=>this.navigate(e,n),hashFor:e=>this.hashFor(e),requestComment:e=>this.requestComment(e),brief:e=>this.buildBrief(e)}}#Je(){return Xa(this.#ue(),this)}#Se(){return fi(this.#ue())}#ie(){return cm(this.#ue())}#W(){const e=this.#R(),n=this.#g===null?this.#T:Be(e?.navigation()??Rt,this.#g);return this.#b?this.definition.resolveNavigation(this.derivation.state,n):n}#et(){const e=this.#P.read(),n=this.#g!==null;this.#e=n?st:this.readGrill(),this.#tt(),this.#T=n||this.hashMode==="off"?Rt:jl(),this.#Z=this.locale;const s=this.storageKey,i=n?void 0:Jl(this,{storageKey:s??rt(this.definition.name),template:this.definition.name});this.#b=new ba({definition:this.definition,base:e,storage:n||i!==void 0?null:this.#nt(),grill:{grill:this.#e,locale:this.locale},...typeof s=="string"?{storageKey:s}:{},...i===void 0?{}:{sync:i},settled:()=>!n&&this.#P.error===null&&this.#n===null&&this.draftSettled()}),this.#te(),n||this.#b.setAddressed(this.#f.log?.addressed??Oe),this.#O(),this.#re(!0),this.#Y?.();const r=tm(this);r===null?this.#V?.():r.then(()=>this.#V?.()),this.#P.observe(),this.requestUpdate()}#tt(){this.querySelector(`:scope > [slot="${Yl}"]`)!==null&&console.warn(`[dev-process-kit] <${this.tagName.toLowerCase()}> no longer shows slot="${Yl}"; slot each piece as slot="${Oi}" data-name="\u2026" instead.`)}#nt(){return this.storage==="off"?null:this.storage==="memory"?new ei:ti()}scriptOf(e){return this.querySelector(e)}baseOptional(){return Xf(this)}pendingStart(){return null}draftSettled(){return!0}get hashMode(){return"auto"}buildBrief(e){return zn(e,this.controller.definition,ge,this.#f.log?.addressed??Oe)}readGrill(){return this.#n=null,this.parseGrillScript(this.scriptOf(zb))}parseGrillScript(e,n){if(!e?.textContent||e.textContent.trim().length===0)return st;try{return og(JSON.parse(e.textContent))}catch(s){console.error(`[dev-process-kit] invalid questions${n===void 0?"":` in ${n}`}:`,s);const i=s instanceof Error?s.message:String(s);return this.#n=n===void 0?i:`${n}: ${i}`,st}}refreshGrill(){this.#g!==null||!this.#b||(this.#e=this.readGrill(),this.#b.setGrill({grill:this.#e,locale:this.locale}),this.requestUpdate())}grillRefsOf(e,n){return[n]}#st(e){this.#g===null&&(this.#e=this.readGrill()),this.controller.setGrill({grill:this.#e,locale:this.locale}),this.controller.setBase(e.state),this.requestUpdate()}#q(){const e=this.#Se();for(const n of this.#I)n(e)}#it(){if(!this.isConnected){this.requestUpdate(),this.#q();return}this.#g===null&&this.#re(!0),$l(this.#L,this.controller.actions),Sl(this.#L,this.controller.actions),queueMicrotask(this.#O),this.requestUpdate(),this.#q(),this.#g===null&&this.dispatchEvent(new CustomEvent("dpk-change",{detail:this.#Se(),bubbles:!0,composed:!0}))}#re(e){if(this.#g!==null)return;const n=this.#W();this.#T=n,this.hashMode!=="off"&&Hk(n,e)}#Ae=()=>{this.#T=jl(),this.#re(!0),this.requestUpdate(),this.#q(),this.dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:this.#T},bubbles:!0,composed:!0}))};#O=()=>{if(this.#F?.disconnect(),this.#L=tk(this,s=>{this.isConnected&&this.#F?.observe(s,{childList:!0,subtree:!0})}),!this.#b)return;$l(this.#L,this.#b.actions),Sl(this.#L,this.#b.actions);const e=sk(this.#L),n=this.adoptedComponentProviders();this.#b.setComponentSnapshot(n.length===0?e:{targets:e.targets,providers:[...e.providers,...n]}),this.#rt()};adoptedComponentProviders(){return[]}#rt(){if(this.#g===null||!this.#b)return;const e=this.#b.componentSnapshot,n=JSON.stringify([e.targets,e.providers]);n!==this.#ee&&(this.#ee=n,this.dispatchEvent(new CustomEvent("dpk-comment-targets-change",{bubbles:!0,composed:!0})))}#Ee=e=>{if(e.stopPropagation(),!(e instanceof CustomEvent)||!this.#b)return;const n=e.detail;typeof n!="object"||n===null||!("target"in n)||typeof n.target!="string"||(this.#O(),!this.controller.definition.commentTargets(this.derivation.state,this.navigation).some(i=>i.value===n.target))||this.requestComment(n.target)};#Ce=e=>{if(e.stopPropagation(),!(e instanceof CustomEvent)||!e.cancelable||!this.#b)return;const n=C(lh,e.detail);if(!n.success)return;this.#O();const{target:s,body:i}=n.output;if(!this.controller.definition.commentTargets(this.derivation.state,this.navigation).some(a=>a.value===s))return;this.dispatch({type:I,target:s,payload:{body:i}}).ok&&e.preventDefault()};#Te=e=>{if(e.stopPropagation(),!(e instanceof CustomEvent)||!e.cancelable||!this.#b)return;const n=C(rh,e.detail);if(!n.success)return;this.#O();const{type:s,target:i,payload:r}=n.output;if(!this.controller.definition.commentTargets(this.derivation.state,this.navigation).some(l=>l.value===i))return;this.dispatch({type:s,target:i,payload:r}).ok&&e.preventDefault()};#Re=e=>{for(const n of e.composedPath()){if(!(n instanceof Element))continue;if(n===this||n.hasAttribute("data-template"))break;const s=n.getAttribute("data-dpk-navigate");if(s!==null){e.preventDefault(),this.navigate(gn(s.includes("=")?s:`step=${s}`));return}const i=n.getAttribute("data-dpk-comment");if(i!==null){e.preventDefault(),this.requestComment(i);return}}};#ot(e){const n=lb(this,e.memo),s=pb(this.#u,n),i=this.#h,r=a=>{this.#u=a,this.requestUpdate()},o=i.handlers;return m`<div
|
|
4135
4135
|
class="dpk-supplements"
|
|
4136
4136
|
?hidden=${n.length===0}
|
|
4137
4137
|
?data-open=${s!==null}
|
|
@@ -4410,7 +4410,7 @@ ${s}`:`${t.slice(0,n)}${s}${t.slice(n)}`},ev=O({title:D(x())}),tv={schema:ic(),m
|
|
|
4410
4410
|
::slotted([hidden]) {
|
|
4411
4411
|
display: none !important;
|
|
4412
4412
|
}
|
|
4413
|
-
`;class yv extends as{static{this.styles=[Wl,Pr,Lr,Gl,ql,wv]}static{this.properties={pageNav:{type:String,attribute:"page-nav"},hash:{type:String}}}get hashMode(){return this.hash==="off"?"off":"auto"}#e=!1;#n=!1;#s="";#t="";#i=new WeakMap;#r=new WeakMap;#o=new Map;#a=new Map;#l;#d=null;#c=!1;#u=!1;#h;#k=new Gn(this);constructor(){super(),new pn(this,{open:()=>this.#c,closesOn:e=>!e.some(n=>n instanceof Element&&(n.id===Yt||n.matches(".dpk-page-switcher-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.#N()})}pageContents(){return[]}definitionFor(e){return iv({pages:()=>this.#C(),base:()=>this.#S(),catalog:()=>this.#U(),messages:Jn(e)})}connectedCallback(){super.connectedCallback(),this.addEventListener("dpk-comment-targets-change",this.#A),this.addEventListener("dpk-navigate",this.#x),this.addEventListener(Li,this.#p),this.#d=this.navigation,this.api.ready.then(()=>{this.#n=!0,this.#s=this.#y(this.#f()),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dpk-comment-targets-change",this.#A),this.removeEventListener("dpk-navigate",this.#x),this.removeEventListener(Li,this.#p),this.#D()}#p=e=>{if(!(e instanceof CustomEvent)||!Hb(e.detail))return;const n=e.target;!(n instanceof HTMLElement)||!ad(n)||n.parentElement!==this||(this.#r.set(n,e.detail.status==="ready"),!(!this.#n||!this.#e)&&(n.hasAttribute(gt)?this.requestUpdate():this.#$()))};#x=e=>{if(e.target!==this||!(e instanceof CustomEvent))return;const n=e.detail;if(typeof n!="object"||n===null||!("navigation"in n))return;const s=n.navigation;if(!fv(s))return;const i=this.#d;if(this.#d=s,i!==null)for(const r of this.#v()){const o=this.#w(r),a=Be(i,o),l=Be(s,o);mv(a,l)||(r.content??r).dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:l},bubbles:!0,composed:!0}))}};#A=()=>{this.#n&&this.controller.setTemplate(this.definition)};get[jn](){if(this.#n)return this.#l??={locale:()=>this.locale,theme:()=>this.dataset.theme,navigation:()=>this.navigation,pageNames:()=>new Set(this.#v().map(e=>this.#w(e))),dispatch:e=>this.dispatch(e),dispatchBatch:e=>this.dispatchBatch(e),editComment:(e,n)=>this.editComment(e,n),removeAction:e=>this.removeAction(e),clearActions:()=>this.clearActions(),navigate:(e,n)=>this.navigate(e,n),hashFor:e=>this.hashFor(e),requestComment:e=>this.requestComment(e)},this.#l}adoptedComponentProviders(){return this.#v().flatMap(e=>e.componentSnapshot?.providers??[])}#v(){return Array.from(this.children).filter(ad)}#f(){return this.#v().filter(e=>!e.hasAttribute(gt))}#w(e){return e.getAttribute(ut)??""}#m(e){return e.getAttribute("label")??e.definition.label}#S(){const e=this.#f();return{layout:e.map(n=>({id:this.#w(n),kind:n.definition.kind,content:n.definition.name,label:this.#m(n)})),pages:Object.fromEntries(e.map(n=>[this.#w(n),n.contentState?.status==="ready"?n.api.base:{}]))}}#$(){this.#i=new WeakMap,this.controller.setBase({...this.controller.base,...this.#S()}),this.refreshGrill()}#y(e){return e.map(n=>this.#w(n)).join(" ")}#C(){return this.#v().map(e=>({id:this.#w(e),label:this.#m(e),definition:e.liveDefinition??e.definition}))}#U(){const e=this.locale,n=this.#o.get(e);if(n!==void 0)return n;const s=this.pageContents(),i=s.flatMap(({kind:r,name:o})=>{const a=this.#M(r,o,e);return a===void 0?[]:[a]});return i.length===s.length&&this.#o.set(e,i),i}#M(e,n,s){const i=`${e==="view"?"dpk-view":"dpk-board"}-${n}`;if(customElements.get(i)===void 0)return;const r=document.createElement(i);r.setAttribute("lang",s);const o="definition"in r?r.definition:void 0;return hv(o)?o:void 0}#E(){return this.pageContents().filter(e=>e.addable!==!1&&this.#H(e))}#H(e){const n=`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.name}`;if(customElements.get(n)!==void 0)return!0;const s=_r();return e.kind==="view"?rd(e.name,s)!==null:od(s)!==null}async#B(e){const n=this.locale,s=this.#M(e.kind,e.name,n);if(s!==void 0)return s;const i=_r(),r=e.kind==="view"?rd(e.name,i):od(i);if(r===null)return;const o=e.kind==="view"?`view:${e.name}`:"boards";let a=this.#a.get(o);a??=import(r),this.#a.set(o,a);try{await a}catch(l){this.#a.delete(o),console.error(`dev-process-kit: could not load ${e.kind} "${e.name}" from ${r}`,l);return}return await customElements.whenDefined(`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.name}`),this.#M(e.kind,e.name,n)}async#K(e){await this.#B(e)!==void 0&&this.#G(e)}#z(e){return this.#v().find(n=>this.#w(n)===e.id)?.definition??this.#U().find(n=>n.kind===e.kind&&n.name===e.content)}#_(e){return this.pageContents().find(n=>n.kind===e.kind&&n.name===e.content)?.icon??bv}pendingStart(){return this.#e?null:this.#b().then(()=>{this.#e=!0;for(const e of this.#v())this.#r.set(e,e.contentState?.status==="ready")})}draftSettled(){return this.#e&&this.#f().every(e=>this.#r.get(e)===!0)}#b(){return customElements.whenDefined("dpk-page").then(()=>Promise.all(this.#v().map(e=>e.ready))).then(()=>{})}#T(){this.#n&&this.#b().then(()=>{const e=this.#y(this.#f());e!==this.#s&&(this.#s=e,this.#$())})}scriptOf(e){return this.querySelector(`:scope > ${e}`)}readGrill(){const e=super.readGrill(),n=this.#j();return this.#t=this.#y(n),Wb(e,n.map(s=>{const i=this.#w(s);return{page:i,grill:this.parseGrillScript(s.content?.querySelector(uv)??null,`@${i}`)}}))}#j(){const e=this.#f();if(!this.#n)return e;const n=new Set(this.api.state.layout.map(s=>s.id));return e.filter(s=>n.has(this.#w(s)))}grillRefsOf(e,n){return Kb(n,Vb(e))}get mainLayout(){return"fill"}buildBrief(e){const n=e.state.layout.flatMap(s=>{const i=this.#z(s);return i===void 0?[]:[{id:s.id,label:s.label,definition:i}]});return Jb(super.buildBrief(e),Xb(n,e.actions))}#I(e,n){return e.layout.find(s=>s.id===n[ye])}#P(){return this.pageNav==="none"}renderRegions(e){return{main:m`<div class="dpk-app-pages"><slot @slotchange=${()=>this.#T()}></slot></div>`}}renderHeaderLead(e){if(this.#P())return b;const n=e.state.layout,s=this.#I(e.state,e.navigation);return this.#J(n,s,this.definition.title(e.state),this.#E())}#J(e,n,s,i){if(e.length===0&&i.length===0)return b;const r=Jn(this.locale),o={open:()=>this.#oe(),scheduleClose:()=>this.#Y()};return m`
|
|
4413
|
+
`;class yv extends as{static{this.styles=[Wl,Pr,Lr,Gl,ql,wv]}static{this.properties={pageNav:{type:String,attribute:"page-nav"},hash:{type:String}}}get hashMode(){return this.hash==="off"?"off":"auto"}#e=!1;#n=!1;#s="";#t="";#i=new WeakMap;#r=new WeakMap;#o=new Map;#a=new Map;#l;#d=null;#c=!1;#u=!1;#h;#k=new Gn(this);constructor(){super(),new pn(this,{open:()=>this.#c,closesOn:e=>!e.some(n=>n instanceof Element&&(n.id===Yt||n.matches(".dpk-page-switcher-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.#N()})}pageContents(){return[]}baseOptional(){return!0}definitionFor(e){return iv({pages:()=>this.#C(),base:()=>this.#S(),catalog:()=>this.#U(),messages:Jn(e)})}connectedCallback(){super.connectedCallback(),this.addEventListener("dpk-comment-targets-change",this.#A),this.addEventListener("dpk-navigate",this.#x),this.addEventListener(Li,this.#p),this.#d=this.navigation,this.api.ready.then(()=>{this.#n=!0,this.#s=this.#y(this.#f()),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dpk-comment-targets-change",this.#A),this.removeEventListener("dpk-navigate",this.#x),this.removeEventListener(Li,this.#p),this.#D()}#p=e=>{if(!(e instanceof CustomEvent)||!Hb(e.detail))return;const n=e.target;!(n instanceof HTMLElement)||!ad(n)||n.parentElement!==this||(this.#r.set(n,e.detail.status==="ready"),!(!this.#n||!this.#e)&&(n.hasAttribute(gt)?this.requestUpdate():this.#$()))};#x=e=>{if(e.target!==this||!(e instanceof CustomEvent))return;const n=e.detail;if(typeof n!="object"||n===null||!("navigation"in n))return;const s=n.navigation;if(!fv(s))return;const i=this.#d;if(this.#d=s,i!==null)for(const r of this.#v()){const o=this.#w(r),a=Be(i,o),l=Be(s,o);mv(a,l)||(r.content??r).dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:l},bubbles:!0,composed:!0}))}};#A=()=>{this.#n&&this.controller.setTemplate(this.definition)};get[jn](){if(this.#n)return this.#l??={locale:()=>this.locale,theme:()=>this.dataset.theme,navigation:()=>this.navigation,pageNames:()=>new Set(this.#v().map(e=>this.#w(e))),dispatch:e=>this.dispatch(e),dispatchBatch:e=>this.dispatchBatch(e),editComment:(e,n)=>this.editComment(e,n),removeAction:e=>this.removeAction(e),clearActions:()=>this.clearActions(),navigate:(e,n)=>this.navigate(e,n),hashFor:e=>this.hashFor(e),requestComment:e=>this.requestComment(e)},this.#l}adoptedComponentProviders(){return this.#v().flatMap(e=>e.componentSnapshot?.providers??[])}#v(){return Array.from(this.children).filter(ad)}#f(){return this.#v().filter(e=>!e.hasAttribute(gt))}#w(e){return e.getAttribute(ut)??""}#m(e){return e.getAttribute("label")??e.definition.label}#S(){const e=this.#f();return{layout:e.map(n=>({id:this.#w(n),kind:n.definition.kind,content:n.definition.name,label:this.#m(n)})),pages:Object.fromEntries(e.map(n=>[this.#w(n),n.contentState?.status==="ready"?n.api.base:{}]))}}#$(){this.#i=new WeakMap,this.controller.setBase({...this.controller.base,...this.#S()}),this.refreshGrill()}#y(e){return e.map(n=>this.#w(n)).join(" ")}#C(){return this.#v().map(e=>({id:this.#w(e),label:this.#m(e),definition:e.liveDefinition??e.definition}))}#U(){const e=this.locale,n=this.#o.get(e);if(n!==void 0)return n;const s=this.pageContents(),i=s.flatMap(({kind:r,name:o})=>{const a=this.#M(r,o,e);return a===void 0?[]:[a]});return i.length===s.length&&this.#o.set(e,i),i}#M(e,n,s){const i=`${e==="view"?"dpk-view":"dpk-board"}-${n}`;if(customElements.get(i)===void 0)return;const r=document.createElement(i);r.setAttribute("lang",s);const o="definition"in r?r.definition:void 0;return hv(o)?o:void 0}#E(){return this.pageContents().filter(e=>e.addable!==!1&&this.#H(e))}#H(e){const n=`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.name}`;if(customElements.get(n)!==void 0)return!0;const s=_r();return e.kind==="view"?rd(e.name,s)!==null:od(s)!==null}async#B(e){const n=this.locale,s=this.#M(e.kind,e.name,n);if(s!==void 0)return s;const i=_r(),r=e.kind==="view"?rd(e.name,i):od(i);if(r===null)return;const o=e.kind==="view"?`view:${e.name}`:"boards";let a=this.#a.get(o);a??=import(r),this.#a.set(o,a);try{await a}catch(l){this.#a.delete(o),console.error(`dev-process-kit: could not load ${e.kind} "${e.name}" from ${r}`,l);return}return await customElements.whenDefined(`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.name}`),this.#M(e.kind,e.name,n)}async#K(e){await this.#B(e)!==void 0&&this.#G(e)}#z(e){return this.#v().find(n=>this.#w(n)===e.id)?.definition??this.#U().find(n=>n.kind===e.kind&&n.name===e.content)}#_(e){return this.pageContents().find(n=>n.kind===e.kind&&n.name===e.content)?.icon??bv}pendingStart(){return this.#e?null:this.#b().then(()=>{this.#e=!0;for(const e of this.#v())this.#r.set(e,e.contentState?.status==="ready")})}draftSettled(){return this.#e&&this.#f().every(e=>this.#r.get(e)===!0)}#b(){return customElements.whenDefined("dpk-page").then(()=>Promise.all(this.#v().map(e=>e.ready))).then(()=>{})}#T(){this.#n&&this.#b().then(()=>{const e=this.#y(this.#f());e!==this.#s&&(this.#s=e,this.#$())})}scriptOf(e){return this.querySelector(`:scope > ${e}`)}readGrill(){const e=super.readGrill(),n=this.#j();return this.#t=this.#y(n),Wb(e,n.map(s=>{const i=this.#w(s);return{page:i,grill:this.parseGrillScript(s.content?.querySelector(uv)??null,`@${i}`)}}))}#j(){const e=this.#f();if(!this.#n)return e;const n=new Set(this.api.state.layout.map(s=>s.id));return e.filter(s=>n.has(this.#w(s)))}grillRefsOf(e,n){return Kb(n,Vb(e))}get mainLayout(){return"fill"}buildBrief(e){const n=e.state.layout.flatMap(s=>{const i=this.#z(s);return i===void 0?[]:[{id:s.id,label:s.label,definition:i}]});return Jb(super.buildBrief(e),Xb(n,e.actions))}#I(e,n){return e.layout.find(s=>s.id===n[ye])}#P(){return this.pageNav==="none"}renderRegions(e){return{main:m`<div class="dpk-app-pages"><slot @slotchange=${()=>this.#T()}></slot></div>`}}renderHeaderLead(e){if(this.#P())return b;const n=e.state.layout,s=this.#I(e.state,e.navigation);return this.#J(n,s,this.definition.title(e.state),this.#E())}#J(e,n,s,i){if(e.length===0&&i.length===0)return b;const r=Jn(this.locale),o={open:()=>this.#oe(),scheduleClose:()=>this.#Y()};return m`
|
|
4414
4414
|
${lv(Sf,this.#c,e.length,r,o,{active:n===void 0?null:this.#Q(n,this.#F(e,n),s)})}
|
|
4415
4415
|
${this.#c?dv(this.#L(e,n,s,i),r,{cancelClose:()=>this.#D(),scheduleClose:()=>this.#Y()}):b}
|
|
4416
4416
|
`}#F(e,n){return e.findIndex(s=>s.id===n.id)}#L(e,n,s,i){const r=Jn(this.locale);if(this.#u)return i.map(a=>({key:`content:${a.kind}:${a.name}`,label:a.label,icon:a.icon,current:!1,kind:"action",activate:()=>{this.#N(),this.#K(a)}}));const o=e.map((a,l)=>{const p=this.#Q(a,l,s),h=a.id===n?.id;return{key:`page:${a.id}`,label:p,icon:this.#_(a),current:h,activate:()=>{this.#N(),this.navigate({[ye]:a.id})},...h?{rename:{label:r.renamePage,commit:d=>this.#V(a.id,d)}}:{},...e.length>1?{remove:{label:r.removePage(p),activate:()=>this.#te(a.id)}}:{}}});return i.length===0?o:[...o,{key:"add",label:r.addPage,icon:oi,current:!1,kind:"action",activate:()=>{this.#u=!0,this.requestUpdate(),this.#ee()}}]}#ee(){this.updateComplete.then(()=>{this.renderRoot.querySelector(`#${Yt} .dpk-page-switcher-option`)?.focus()})}#V(e,n){this.dispatch({type:"RENAME_PAGE",target:Ue,payload:{page:e,label:n}})}#oe(){this.#D(),!this.#c&&(this.#c=!0,this.requestUpdate())}#Y(){this.#D(),this.#h=setTimeout(()=>this.#N(),xv)}#D(){this.#h!==void 0&&(clearTimeout(this.#h),this.#h=void 0)}#N(){this.#D(),!(!this.#c&&!this.#u)&&(this.#c=!1,this.#u=!1,this.requestUpdate())}renderSettingsSections(e){const n=this.#Z(e);return n===null?[]:n.settingsSections.map(s=>({id:s.id,label:s.label,render:()=>s.render()}))}settingsSwitches(e){const n=this.#I(e.state,e.navigation),s=n===void 0?void 0:this.#g(n.id);if(n===void 0||s===void 0)return null;const i=s.definition.settings?.(e.state.pages[n.id]);return i===void 0||i.items.length===0?null:{settings:i,flip:r=>{s.api.dispatch(r)}}}#g(e){return this.#v().find(n=>this.#w(n)===e)}#Z(e){const n=this.#I(e.state,e.navigation),s=(n===void 0?void 0:this.#g(n.id))?.content??null;return pv(s)?s:null}#Q(e,n,s){const i=this.#z(e);return i!==void 0&&e.label===i.label?n===0?s:Jn(this.locale).pageFallback(n+1):e.label}#G(e){const n=new Set([...this.api.state.layout.map(r=>r.id),...Array.from(this.children,r=>r.getAttribute(ut)??"")]),s=sv(e.name,n);this.dispatch({type:"ADD_PAGE",target:Ue,payload:{page:s,kind:e.kind,content:e.name,label:e.label}}).ok&&this.navigate({[ye]:s})}#te(e){const n=this.controller.actions,s=n.find(r=>{if(!we(r.target))return!1;const o=sn(kt,r);return o?.type==="ADD_PAGE"&&o.payload.page===e}),i=this.#S().layout.some(r=>r.id===e);if(s===void 0||i){this.dispatch({type:"REMOVE_PAGE",target:Ue,payload:{page:e}});return}for(const r of n)Zb(r,e)&&this.removeAction(r.id)}updated(){super.updated(),this.#ne(),this.#ae()}#ne(){const e=this.renderRoot.querySelector(`#${Yt}`),n=this.renderRoot.querySelector(".dpk-page-switcher-trigger");!e||!n||kv(e)||this.#k.open(e,n,vv,{placement:"bottom-end"})}#ae(){if(!this.#e)return;const e=this.api.state.layout,n=new Set(e.map(a=>a.id));this.#y(this.#j())!==this.#t&&this.refreshGrill();for(const a of this.#v())a.hasAttribute(gt)&&!n.has(this.#w(a))&&a.remove();const s=new Set(Array.from(this.children,a=>a.getAttribute(ut)));for(const a of e)s.has(a.id)||this.#le(a);const i=this.controller.actions,r=this.navigation[ye];let o=!1;for(const a of this.#v()){const l=this.#w(a);a.hidden=l!==r||!n.has(l),this.#de(a)&&(this.#i.get(a)!==i&&(this.#i.set(a,i),a.controller.replaceActions(gv(i,l)),o=!0),a.refreshContent(),a.deliver())}o&&this.settingsOpen&&this.requestUpdate()}#le(e){const n="dpk-page",s=`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.content}`;if(customElements.get(n)===void 0||customElements.get(s)===void 0)return;const i=document.createElement(n);i.setAttribute(ut,e.id),i.setAttribute("label",e.label),i.setAttribute(gt,"");const r=document.createElement(s);i.append(r),i.hidden=!0,this.append(i)}#de(e){const n=this.#r.get(e);return n!==void 0?n:(this.#r.set(e,!1),e.ready.then(()=>{const s=e.contentState?.status==="ready";this.#r.set(e,s),s&&this.requestUpdate()}),!1)}}const $v=[{kind:"view",name:"usm",label:"User Story Mapping",icon:w(Sc)},{kind:"view",name:"prototype",label:"UX Prototype",icon:w(Mc),addable:!1},{kind:"view",name:"task-board",label:"Task Context Board",icon:w(cr),addable:!1},{kind:"view",name:"delegation-poker",label:"Delegation Poker",icon:w(Uc),addable:!1},{kind:"view",name:"slides",label:"Slides",icon:w(Ic),addable:!1},{kind:"view",name:"plain",label:"Plain",icon:w(dr),addable:!1},{kind:"board",name:"er-diagram",label:"ER diagram",icon:w(fc),addable:!1},{kind:"board",name:"state-diagram",label:"State diagram",icon:w(uc),addable:!1},{kind:"board",name:"sequence-diagram",label:"Sequence diagram",icon:w(oc),addable:!1},{kind:"board",name:"dependency-graph",label:"Dependency graph",icon:w(kc),addable:!1},{kind:"board",name:"architecture-map",label:"Architecture map",icon:w(dc),addable:!1},{kind:"board",name:"mind-map",label:"Mind map",icon:w(bc),addable:!1},{kind:"board",name:"event-storming",label:"Event Storming",icon:w(Wc)},{kind:"board",name:"example-mapping",label:"Example Mapping",icon:w(pr)},{kind:"board",name:"whiteboard",label:"Whiteboard",icon:w(Pc)},{kind:"board",name:"kanban",label:"Kanban",icon:w(cr)}];class ld extends yv{pageContents(){return $v}}const Sv=()=>{customElements.get("dpk-app")||customElements.define("dpk-app",ld)},dd=Bt(class extends In{constructor(t){if(super(t),t.type!==ve.PROPERTY&&t.type!==ve.ATTRIBUTE&&t.type!==ve.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!bm(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===V||e===b)return e;const n=t.element,s=t.name;if(t.type===ve.PROPERTY){if(e===n[s])return V}else if(t.type===ve.BOOLEAN_ATTRIBUTE){if(!!e===n.hasAttribute(s))return V}else if(t.type===ve.ATTRIBUTE&&n.getAttribute(s)===e+"")return V;return mi(t),e}});function zi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ge=zi();function cd(t){Ge=t}var We={exec:()=>null};function bt(t){let e=[];return n=>{let s=Math.max(0,Math.min(3,n-1)),i=e[s];return i||(i=t(s),e[s]=i),i}}function S(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(N.caret,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,e)};return s}var Av=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),N={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:bt(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:bt(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:bt(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:bt(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:bt(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Qt})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:bt(t=>new RegExp(`^ {0,${t}}>`))},Ev=/^(?:[ \t]*(?:\n|$))+/,Cv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Tv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ii=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,pd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hd=S(pd).replace(/bull/g,Ii).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Mv=S(pd).replace(/bull/g,Ii).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Di=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ov=/^[^\n]+/,Ni=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_v=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ni).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pv=S(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ii).getRegex(),Qt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",qi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lv=S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",qi).replace("tag",Qt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ud=t=>S(Di).replace("hr",Zt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qt).getRegex(),zv=ud(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Iv=ud(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Dv=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Iv).getRegex(),Ui={blockquote:Dv,code:Cv,def:_v,fences:Tv,heading:Rv,hr:Zt,html:Lv,lheading:hd,list:Pv,newline:Ev,paragraph:zv,table:We,text:Ov},gd=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qt).getRegex(),Nv={...Ui,lheading:Mv,table:gd,paragraph:S(Di).replace("hr",Zt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qt).getRegex()},qv={...Ui,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(Di).replace("hr",Zt).replace("heading",` *#{1,6} *[^
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a5 as r}from"./shared-_0Ev6y6i.js";const t=o=>o??r;export{t as o};
|
package/dist/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s,d as e,a as o}from"./chunks/shared-
|
|
1
|
+
import{s,d as e,a as o}from"./chunks/shared-_0Ev6y6i.js";import{C as t,b as i,P as r,Q as n,D as m,E as p,v as l,M as f,V as d,W as c,c as D,e as C,f as E,g as S,h as k,i as g,j as T,k as R,l as A,m as O,n as b,R as h,S as u,o as N,p as _,q as M,r as v,t as y,u as I,w as P,x as w,y as x,z as L,A as B,B as F,F as G,G as H,H as V,I as K,J as U,K as j,L as q,N as z,O as Q}from"./chunks/shared-_0Ev6y6i.js";import{r as a}from"./chunks/shared-KHA87RsJ.js";import{D as W,a as J,b as X,c as Y,d as Z,e as $,f as aa,g as sa,h as ea,i as oa,j as ta,k as ia,l as ra,m as na,n as ma,o as pa,p as la,S as fa,q as da,s as ca,t as Da,u as Ca,v as Ea,w as Sa,x as ka,y as ga,z as Ta,A as Ra,B as Aa,C as Oa,E as ba,F as ha,G as ua,H as Na,I as _a,J as Ma,K as va,L as ya,M as Ia,N as Pa,O as wa,P as xa,Q as La,R as Ba,T as Fa}from"./chunks/shared-KHA87RsJ.js";import{S as Ga,a as Ha,b as Va,d as Ka,c as Ua,e as ja,p as qa,f as za,t as Qa}from"./chunks/shared-CJZKj_HI.js";import{C as Wa,a as Ja,D as Xa,b as Ya,c as Za,M as $a,d as as,e as ss,f as es,g as os,h as ts,i as is,j as rs,k as ns,l as ms,m as ps,n as ls,p as fs,r as ds,s as cs,o as Ds,q as Cs}from"./chunks/shared-DErYmK9C.js";import{D as Es,d as Ss,p as ks}from"./chunks/shared-CMWEqwI3.js";import{a as gs}from"./chunks/shared-D1ZujbZA.js";import{c as Ts,a as Rs}from"./chunks/shared-D0_BoWj3.js";import{m as As}from"./chunks/shared-C-ujfGnT.js";s({entry:"components.js",url:import.meta.url,views:[],register:()=>{a(),e(),o()}});export{t as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,Wa as CORNER_SLOT,Ja as CORNER_SUB_SLOT,W as DpkAlternatives,J as DpkBrowser,X as DpkChecklist,Y as DpkCode,Z as DpkCodeGroup,$ as DpkCombobox,r as DpkCommentPanel,aa as DpkCommentPopover,Xa as DpkCommentThread,sa as DpkCommentable,ea as DpkConfirmDialog,oa as DpkDialogPanel,ta as DpkDiff,ia as DpkExtendRightClick,ra as DpkFormalSpec,n as DpkInlineEdit,na as DpkLineChart,Ya as DpkMatrix,Es as DpkSelect,ma as DpkSelectionBar,Za as DpkTable,pa as DpkTabs,la as DpkTagFilter,m as DraftController,p as EMPTY_NAVIGATION,l as FRAMEWORK_VERSION,$a as MATRIX_REORDER_COLUMN_EVENT,as as MATRIX_REORDER_ROW_EVENT,ss as MATRIX_REORDER_SUB_COLUMN_EVENT,f as MemoryDraftStorage,fa as SUGGEST_CHANGE,Ga as SYNC_PROTOCOL,Ha as SYNC_REQUEST_EVENT,d as ViewElement,c as WebStorageDraftStorage,es as allLeaves,D as appendAction,Va as assertNever,gs as atomStyles,C as buildAgentBrief,Ts as cardAtom,os as cellSlot,ts as columnHeadSlot,E as commentActionSchema,S as commentBody,k as commentTargetKey,Rs as controlAtom,g as controls,T as createActionId,R as createEntityId,A as dedupeKeyOf,O as defaultStorage,b as defaultStorageKey,Ka as defineAction,da as defineAlternatives,ca as defineAtomStyles,Da as defineBrowser,Ca as defineChecklist,Ea as defineCode,Sa as defineCodeGroup,ka as defineCombobox,h as defineCommentPanel,ga as defineCommentPopover,is as defineCommentThread,Ta as defineCommentable,Ra as defineConfirmDialog,Aa as defineDialogPanel,Oa as defineDiff,ba as defineExtendRightClick,ha as defineFormalSpec,u as defineInlineEdit,ua as defineLineChart,rs as defineMatrix,Ss as defineSelect,Na as defineSelectionBar,ns as defineTable,_a as defineTabs,Ma as defineTagFilter,N as derive,Ua as draftActionEnvelopeSchema,ja as entityDedupeKey,_ as formatHash,ms as hasSubColumns,M as iconArrowDown,v as iconArrowUp,y as iconClose,I as iconComment,P as iconGrip,w as iconLink,x as iconMove,L as iconPencil,B as iconPlus,F as iconTrash,ps as leafDraggable,ls as leavesOf,G as liveActions,As as mockAtom,va as parseAlternativesData,ya as parseChecklistData,Ia as parseCodeGroupData,Pa as parseComboboxData,wa as parseExtendRightClickData,xa as parseFormalSpecData,H as parseHash,ks as parseSelectData,fs as parseTableData,La as parseTagFilterData,V as parseTargetRef,Ba as parseUnifiedDiff,qa as parseViewAction,K as patchNavigation,za as payloadFor,Fa as registerAtoms,a as registerComponentElements,ds as rowHeadSlot,U as serializeDraft,j as slugify,cs as spanOf,Ds as subColumnEdgeOf,Cs as subColumnHeadSlot,q as targetRef,Qa as targetSchema,z as toTarget,Q as tokens};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,s as m,d as e,T as p,U as n,v as t}from"./chunks/shared-
|
|
1
|
+
import{a,s as m,d as e,T as p,U as n,v as t}from"./chunks/shared-_0Ev6y6i.js";import{C as d,X as f,P as l,Q as D,Y as g,D as k,M as E,V as B,W as c,e as y,g as u,k as S,m as A,n as C,o as h,p as M,G as v,H as P,I as b,K as I,L as R}from"./chunks/shared-_0Ev6y6i.js";import{r}from"./chunks/shared-CsLKVrK7.js";import{B as V,a as N,b as K,D as O,c as T,d as W,e as j,f as w,g as x,h as F,i as H,j as _,k as G}from"./chunks/shared-CsLKVrK7.js";import{r as s}from"./chunks/shared-KHA87RsJ.js";import{j as L,l as U,m as q}from"./chunks/shared-KHA87RsJ.js";import{b as Q,d as X,e as Y,p as z,f as J}from"./chunks/shared-CJZKj_HI.js";import{d as Z}from"./chunks/shared-CHQBlCl0.js";import{i as $}from"./chunks/shared-CHQBlCl0.js";import{d as aa}from"./chunks/shared-HkbNG84_.js";import{i as ea}from"./chunks/shared-HkbNG84_.js";import{d as ra}from"./chunks/shared-DPD_cXES.js";import{i as sa}from"./chunks/shared-DPD_cXES.js";import{d as oa}from"./chunks/shared-D2fmf6zb.js";import{i as ta}from"./chunks/shared-D2fmf6zb.js";import{d as ia}from"./chunks/shared-SjAP9bK0.js";import{i as ma}from"./chunks/shared-SjAP9bK0.js";import{d as pa}from"./chunks/shared-JOvfFoxb.js";import{i as na}from"./chunks/shared-JOvfFoxb.js";const o=()=>{ra(),pa(),aa(),oa(),ia(),Z(),a()},i=["prototype","usm","plain","slides","task-board","delegation-poker"],da=()=>{s(),r(),o(),e(),a(),p(t,i,n,import.meta.url)};m({entry:"index.js",url:import.meta.url,views:i,register:()=>{s(),r(),o(),e(),a()}});export{V as BoardCanvasChromeElement,N as BoardCanvasElement,K as BoardChromeBase,d as COMMENT_ACTION,f as DpkApp,O as DpkBoardArchitectureMap,T as DpkBoardDependencyGraph,W as DpkBoardErDiagram,j as DpkBoardEventStorming,w as DpkBoardExampleMapping,x as DpkBoardKanban,F as DpkBoardMindMap,H as DpkBoardSequenceDiagram,_ as DpkBoardStateDiagram,G as DpkBoardWhiteboard,l as DpkCommentPanel,L as DpkDiff,U as DpkFormalSpec,D as DpkInlineEdit,q as DpkLineChart,g as DpkPage,k as DraftController,t as FRAMEWORK_VERSION,E as MemoryDraftStorage,B as ViewElement,c as WebStorageDraftStorage,Q as assertNever,y as buildAgentBrief,u as commentBody,S as createEntityId,A as defaultStorage,C as defaultStorageKey,X as defineAction,e as defineAppElement,a as definePageElement,$ as delegationPoker,h as derive,Y as entityDedupeKey,M as formatHash,v as parseHash,P as parseTargetRef,z as parseViewAction,b as patchNavigation,J as payloadFor,ea as plain,sa as prototype,da as registerAllElements,r as registerBoardElements,s as registerComponentElements,o as registerViewElements,ta as slides,I as slugify,R as targetRef,ma as taskBoard,na as usm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-_0Ev6y6i.js";import{C as r,b as i,P as n,Q as m,D as c,E as l,v as p,M as d,V as f,W as g,c as E,e as A,f as S,g as y,h as C,i as T,j as N,k as O,l as D,m as P,n as u,o as I,p as R,q as k,r as v,t as M,u as h,w,x as _,y as K,z as V,A as b,B,F,G,H,I as L,J as W,K as Y,L as j,N as x,O as z}from"../chunks/shared-_0Ev6y6i.js";import{d as Q}from"../chunks/shared-CHQBlCl0.js";import{i as U}from"../chunks/shared-CHQBlCl0.js";import{S as q,a as J,b as X,d as Z,c as $,e as aa,p as ea,f as sa,t as ta}from"../chunks/shared-CJZKj_HI.js";a({entry:"views/delegation-poker.js",url:import.meta.url,views:["delegation-poker"],register:()=>{e(),s(),Q(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,l as EMPTY_NAVIGATION,p as FRAMEWORK_VERSION,d as MemoryDraftStorage,q as SYNC_PROTOCOL,J as SYNC_REQUEST_EVENT,f as ViewElement,g as WebStorageDraftStorage,E as appendAction,X as assertNever,A as buildAgentBrief,S as commentActionSchema,y as commentBody,C as commentTargetKey,T as controls,N as createActionId,O as createEntityId,D as dedupeKeyOf,P as defaultStorage,u as defaultStorageKey,Z as defineAction,U as delegationPoker,I as derive,$ as draftActionEnvelopeSchema,aa as entityDedupeKey,R as formatHash,k as iconArrowDown,v as iconArrowUp,M as iconClose,h as iconComment,w as iconGrip,_ as iconLink,K as iconMove,V as iconPencil,b as iconPlus,B as iconTrash,F as liveActions,G as parseHash,H as parseTargetRef,ea as parseViewAction,L as patchNavigation,sa as payloadFor,W as serializeDraft,Y as slugify,j as targetRef,ta as targetSchema,x as toTarget,z as tokens};
|
package/dist/views/plain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,R as e,S as s,d as t,a as i}from"../chunks/shared-
|
|
1
|
+
import{s as a,R as e,S as s,d as t,a as i}from"../chunks/shared-_0Ev6y6i.js";import{C as o,b as n,P as r,Q as m,D as c,E as l,v as p,M as f,V as d,W as E,c as g,e as A,f as S,g as y,h as C,i as T,j as N,k as O,l as u,m as D,n as I,o as P,p as R,q as v,r as M,t as h,u as w,w as _,x as K,y as V,z as b,A as k,B,F,G,H,I as L,J as W,K as Y,L as j,N as x,O as z}from"../chunks/shared-_0Ev6y6i.js";import{d as Q}from"../chunks/shared-HkbNG84_.js";import{i as U}from"../chunks/shared-HkbNG84_.js";import{S as q,a as J,b as X,d as Z,c as $,e as aa,p as ea,f as sa,t as ta}from"../chunks/shared-CJZKj_HI.js";a({entry:"views/plain.js",url:import.meta.url,views:["plain"],register:()=>{e(),s(),Q(),t(),i()}});export{o as COMMENT_ACTION,n as COMMENT_DESCRIPTOR,r as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,l as EMPTY_NAVIGATION,p as FRAMEWORK_VERSION,f as MemoryDraftStorage,q as SYNC_PROTOCOL,J as SYNC_REQUEST_EVENT,d as ViewElement,E as WebStorageDraftStorage,g as appendAction,X as assertNever,A as buildAgentBrief,S as commentActionSchema,y as commentBody,C as commentTargetKey,T as controls,N as createActionId,O as createEntityId,u as dedupeKeyOf,D as defaultStorage,I as defaultStorageKey,Z as defineAction,P as derive,$ as draftActionEnvelopeSchema,aa as entityDedupeKey,R as formatHash,v as iconArrowDown,M as iconArrowUp,h as iconClose,w as iconComment,_ as iconGrip,K as iconLink,V as iconMove,b as iconPencil,k as iconPlus,B as iconTrash,F as liveActions,G as parseHash,H as parseTargetRef,ea as parseViewAction,L as patchNavigation,sa as payloadFor,U as plain,W as serializeDraft,Y as slugify,j as targetRef,ta as targetSchema,x as toTarget,z as tokens};
|
package/dist/views/prototype.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-_0Ev6y6i.js";import{C as r,b as i,P as n,Q as m,D as p,E as c,v as f,M as l,V as d,W as E,c as y,e as g,f as A,g as S,h as C,i as T,j as N,k as O,l as u,m as D,n as I,o as P,p as R,q as v,r as M,t as h,u as w,w as _,x as K,y as V,z as b,A as k,B,F,G,H,I as L,J as W,K as Y,L as j,N as x,O as z}from"../chunks/shared-_0Ev6y6i.js";import{d as Q}from"../chunks/shared-DPD_cXES.js";import{i as U}from"../chunks/shared-DPD_cXES.js";import{S as q,a as J,b as X,d as Z,c as $,e as aa,p as ea,f as sa,t as ta}from"../chunks/shared-CJZKj_HI.js";a({entry:"views/prototype.js",url:import.meta.url,views:["prototype"],register:()=>{e(),s(),Q(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,p as DraftController,c as EMPTY_NAVIGATION,f as FRAMEWORK_VERSION,l as MemoryDraftStorage,q as SYNC_PROTOCOL,J as SYNC_REQUEST_EVENT,d as ViewElement,E as WebStorageDraftStorage,y as appendAction,X as assertNever,g as buildAgentBrief,A as commentActionSchema,S as commentBody,C as commentTargetKey,T as controls,N as createActionId,O as createEntityId,u as dedupeKeyOf,D as defaultStorage,I as defaultStorageKey,Z as defineAction,P as derive,$ as draftActionEnvelopeSchema,aa as entityDedupeKey,R as formatHash,v as iconArrowDown,M as iconArrowUp,h as iconClose,w as iconComment,_ as iconGrip,K as iconLink,V as iconMove,b as iconPencil,k as iconPlus,B as iconTrash,F as liveActions,G as parseHash,H as parseTargetRef,ea as parseViewAction,L as patchNavigation,sa as payloadFor,U as prototype,W as serializeDraft,Y as slugify,j as targetRef,ta as targetSchema,x as toTarget,z as tokens};
|
package/dist/views/slides.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,R as e,S as s,d as t,a as i}from"../chunks/shared-
|
|
1
|
+
import{s as a,R as e,S as s,d as t,a as i}from"../chunks/shared-_0Ev6y6i.js";import{C as o,b as r,P as n,Q as m,D as c,E as l,v as d,M as f,V as p,W as E,c as g,e as A,f as S,g as y,h as C,i as T,j as N,k as O,l as u,m as D,n as I,o as R,p as v,q as M,r as P,t as h,u as w,w as _,x as K,y as V,z as b,A as k,B,F,G,H,I as L,J as W,K as Y,L as j,N as x,O as z}from"../chunks/shared-_0Ev6y6i.js";import{d as Q}from"../chunks/shared-D2fmf6zb.js";import{i as U}from"../chunks/shared-D2fmf6zb.js";import{S as q,a as J,b as X,d as Z,c as $,e as aa,p as ea,f as sa,t as ta}from"../chunks/shared-CJZKj_HI.js";a({entry:"views/slides.js",url:import.meta.url,views:["slides"],register:()=>{e(),s(),Q(),t(),i()}});export{o as COMMENT_ACTION,r as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,l as EMPTY_NAVIGATION,d as FRAMEWORK_VERSION,f as MemoryDraftStorage,q as SYNC_PROTOCOL,J as SYNC_REQUEST_EVENT,p as ViewElement,E as WebStorageDraftStorage,g as appendAction,X as assertNever,A as buildAgentBrief,S as commentActionSchema,y as commentBody,C as commentTargetKey,T as controls,N as createActionId,O as createEntityId,u as dedupeKeyOf,D as defaultStorage,I as defaultStorageKey,Z as defineAction,R as derive,$ as draftActionEnvelopeSchema,aa as entityDedupeKey,v as formatHash,M as iconArrowDown,P as iconArrowUp,h as iconClose,w as iconComment,_ as iconGrip,K as iconLink,V as iconMove,b as iconPencil,k as iconPlus,B as iconTrash,F as liveActions,G as parseHash,H as parseTargetRef,ea as parseViewAction,L as patchNavigation,sa as payloadFor,W as serializeDraft,U as slides,Y as slugify,j as targetRef,ta as targetSchema,x as toTarget,z as tokens};
|
package/dist/views/task-board.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-_0Ev6y6i.js";import{C as r,b as i,P as n,Q as m,D as c,E as d,v as f,M as p,V as l,W as E,c as g,e as A,f as S,g as T,h as y,i as C,j as N,k as O,l as u,m as D,n as I,o as R,p as k,q as v,r as M,t as P,u as h,w,x as b,y as _,z as K,A as V,B,F,G,H,I as L,J as W,K as Y,L as j,N as x,O as z}from"../chunks/shared-_0Ev6y6i.js";import{d as Q}from"../chunks/shared-SjAP9bK0.js";import{i as U}from"../chunks/shared-SjAP9bK0.js";import{S as q,a as J,b as X,d as Z,c as $,e as aa,p as ea,f as sa,t as ta}from"../chunks/shared-CJZKj_HI.js";a({entry:"views/task-board.js",url:import.meta.url,views:["task-board"],register:()=>{e(),s(),Q(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,d as EMPTY_NAVIGATION,f as FRAMEWORK_VERSION,p as MemoryDraftStorage,q as SYNC_PROTOCOL,J as SYNC_REQUEST_EVENT,l as ViewElement,E as WebStorageDraftStorage,g as appendAction,X as assertNever,A as buildAgentBrief,S as commentActionSchema,T as commentBody,y as commentTargetKey,C as controls,N as createActionId,O as createEntityId,u as dedupeKeyOf,D as defaultStorage,I as defaultStorageKey,Z as defineAction,R as derive,$ as draftActionEnvelopeSchema,aa as entityDedupeKey,k as formatHash,v as iconArrowDown,M as iconArrowUp,P as iconClose,h as iconComment,w as iconGrip,b as iconLink,_ as iconMove,K as iconPencil,V as iconPlus,B as iconTrash,F as liveActions,G as parseHash,H as parseTargetRef,ea as parseViewAction,L as patchNavigation,sa as payloadFor,W as serializeDraft,Y as slugify,j as targetRef,ta as targetSchema,U as taskBoard,x as toTarget,z as tokens};
|
package/dist/views/usm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,R as e,S as s,d as t,a as o}from"../chunks/shared-_0Ev6y6i.js";import{C as r,b as i,P as n,Q as m,D as c,E as f,v as p,M as d,V as l,W as E,c as T,e as g,f as A,g as C,h as D,i as S,j as u,k as y,l as N,m as O,n as M,o as h,p as I,q as R,r as b,t as k,u as v,w as P,x as w,y as _,z as K,A as V,B as x,F as j,G as B,H as F,I as G,J as H,K as L,L as U,N as W,O as Y}from"../chunks/shared-_0Ev6y6i.js";import{i as z,j as Q,k as q}from"../chunks/shared-DErYmK9C.js";import{D as J,b as X,c as Z}from"../chunks/shared-DErYmK9C.js";import{d as $}from"../chunks/shared-JOvfFoxb.js";import{i as aa}from"../chunks/shared-JOvfFoxb.js";import{S as ea,a as sa,b as ta,d as oa,c as ra,e as ia,p as na,f as ma,t as ca}from"../chunks/shared-CJZKj_HI.js";a({entry:"views/usm.js",url:import.meta.url,views:["usm"],register:()=>{e(),z(),s(),Q(),q(),$(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,J as DpkCommentThread,m as DpkInlineEdit,X as DpkMatrix,Z as DpkTable,c as DraftController,f as EMPTY_NAVIGATION,p as FRAMEWORK_VERSION,d as MemoryDraftStorage,ea as SYNC_PROTOCOL,sa as SYNC_REQUEST_EVENT,l as ViewElement,E as WebStorageDraftStorage,T as appendAction,ta as assertNever,g as buildAgentBrief,A as commentActionSchema,C as commentBody,D as commentTargetKey,S as controls,u as createActionId,y as createEntityId,N as dedupeKeyOf,O as defaultStorage,M as defaultStorageKey,oa as defineAction,h as derive,ra as draftActionEnvelopeSchema,ia as entityDedupeKey,I as formatHash,R as iconArrowDown,b as iconArrowUp,k as iconClose,v as iconComment,P as iconGrip,w as iconLink,_ as iconMove,K as iconPencil,V as iconPlus,x as iconTrash,j as liveActions,B as parseHash,F as parseTargetRef,na as parseViewAction,G as patchNavigation,ma as payloadFor,H as serializeDraft,L as slugify,U as targetRef,ca as targetSchema,W as toTarget,Y as tokens,aa as usm};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a5 as r}from"./shared-giADQT1w.js";const t=o=>o??r;export{t as o};
|