dev-process-kit 0.3.1 → 0.3.3

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.
Files changed (32) hide show
  1. package/dist/boards.js +1 -1
  2. package/dist/chunks/{shared-Dd8JfvQe.js → shared-8-7i0SJv.js} +16 -16
  3. package/dist/chunks/shared-B3gYWxeF.js +1 -0
  4. package/dist/chunks/{shared-ubG0-RQ-.js → shared-BAlmAjut.js} +2 -2
  5. package/dist/chunks/{shared-CF2_VP2x.js → shared-C9Mo56gs.js} +13 -13
  6. package/dist/chunks/{shared-2OsWmhrI.js → shared-CLrs15X7.js} +1 -1
  7. package/dist/chunks/{shared-Dn92ukYW.js → shared-CMe6_Sdn.js} +1 -1
  8. package/dist/chunks/shared-CVEzSR4J.js +3 -0
  9. package/dist/chunks/{shared-Dql0ZVdC.js → shared-CkaifYF3.js} +9 -9
  10. package/dist/chunks/{shared-Be43xweD.js → shared-ComyWGLL.js} +2 -2
  11. package/dist/chunks/{shared-CeCpFPDQ.js → shared-D-lFQPYy.js} +37 -37
  12. package/dist/chunks/{shared-B8ZhyjWv.js → shared-D7lvvzdN.js} +444 -316
  13. package/dist/chunks/shared-DIYD6Tuj.js +1 -0
  14. package/dist/chunks/{shared-DJtGS7Ct.js → shared-DTIEx3lM.js} +22 -22
  15. package/dist/chunks/{shared-DIEJ9E2G.js → shared-DpOLnWXG.js} +62 -62
  16. package/dist/chunks/{shared-C0M3Ib7z.js → shared-DstEY0ER.js} +1 -1
  17. package/dist/chunks/{shared-egtdNQhY.js → shared-DvpWdbzP.js} +20 -20
  18. package/dist/chunks/shared-MI4Xe0aq.js +1868 -0
  19. package/dist/chunks/{shared-BXywwm1a.js → shared-ZjHQZcxc.js} +397 -373
  20. package/dist/components.js +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/sync.js +1 -0
  23. package/dist/views/delegation-poker.js +1 -1
  24. package/dist/views/plain.js +1 -1
  25. package/dist/views/prototype.js +1 -1
  26. package/dist/views/slides.js +1 -1
  27. package/dist/views/task-board.js +1 -1
  28. package/dist/views/usm.js +1 -1
  29. package/package.json +2 -1
  30. package/dist/chunks/shared-B57TT0rn.js +0 -1
  31. package/dist/chunks/shared-C89fKgKG.js +0 -1868
  32. package/dist/chunks/shared-LHG2FbnK.js +0 -1
@@ -1,4 +1,4 @@
1
- import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H as v,bx as O,y as j,ah as R}from"./shared-B8ZhyjWv.js";import{L as D}from"./shared-CjW1DhGL.js";const N=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]],H=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]],K=z(class extends C{constructor(){super(...arguments),this.key=d}render(e,r){return this.key=e,r}update(e,[r,t]){return r!==this.key&&(L(e),this.key=r),t}}),P=B({en:{comment:"Comment",commentOn:e=>`Comment on ${e}`,submit:"Send",cancel:"Cancel"},ja:{comment:"\u30B3\u30E1\u30F3\u30C8",commentOn:e=>`${e}\u3078\u306E\u30B3\u30E1\u30F3\u30C8`,submit:"\u9001\u4FE1",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB"}}),S=(e,r,t={})=>({body:e,notes:r,submission:e.trim()||null,label:t.label??null,error:t.error??null,key:t.key??null,choice:t.choice??null,submitLabel:t.submitLabel??null}),F=(e,r,t)=>{const a=()=>{r.submission!==null&&t({kind:"comment",body:r.submission})};return n`<div
1
+ import{aT as z,aU as C,a5 as d,aV as L,_ as B,ag as n,ay as p,aW as E,aX as M,A as v,aY as O,t as j,a4 as R}from"./shared-D7lvvzdN.js";import{L as D}from"./shared-CjW1DhGL.js";const N=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]],K=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]],P=z(class extends C{constructor(){super(...arguments),this.key=d}render(e,r){return this.key=e,r}update(e,[r,t]){return r!==this.key&&(L(e),this.key=r),t}}),S=B({en:{comment:"Comment",commentOn:e=>`Comment on ${e}`,submit:"Send",cancel:"Cancel"},ja:{comment:"\u30B3\u30E1\u30F3\u30C8",commentOn:e=>`${e}\u3078\u306E\u30B3\u30E1\u30F3\u30C8`,submit:"\u9001\u4FE1",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB"}}),U=(e,r,t={})=>({body:e,notes:r,submission:e.trim()||null,label:t.label??null,error:t.error??null,key:t.key??null,choice:t.choice??null,submitLabel:t.submitLabel??null}),F=(e,r,t)=>{const a=()=>{r.submission!==null&&t({kind:"comment",body:r.submission})};return n`<div
2
2
  class="comment-pop"
3
3
  popover="manual"
4
4
  role="dialog"
@@ -46,7 +46,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
46
46
  <span>${a.label}</span>
47
47
  </label>`)}
48
48
  </fieldset>
49
- ${t===void 0?d:n`<p class="comment-kind-hint">${t}</p>`}`},$=(e,r)=>{const t=e.trim();if(t==="")return null;try{return t.startsWith("/")?new URL(t,r):new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`)}catch{return null}},U=e=>`${e.origin}${e.pathname.replace(/\/+$/,"")}`,W=(e,r)=>{const t=e.trim();return t.startsWith("/")?$(t,r)?.href??t:/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`},X=e=>{try{return new URL(e).host||e}catch{return e}},_=b(E),J=b(M),V=b(H),q=b(D),h=b(N),Q=(e,r,t)=>{const a=r.length-1;if(e==="ArrowRight")return r[t===a?0:t+1];if(e==="ArrowLeft")return r[t===0?a:t-1];if(e==="Home")return r[0];if(e==="End")return r[a]},Y=e=>{const{view:r,send:t,labels:a}=e,o=s=>i=>{const l=r.tabs[s],k=i.key==="Enter"||i.key===" "?l:Q(i.key,r.tabs,s);k!==void 0&&(i.preventDefault(),t({kind:"activate",id:k.id,focus:!0}))};return n`<div class="browser-tabs">
49
+ ${t===void 0?d:n`<p class="comment-kind-hint">${t}</p>`}`},$=(e,r)=>{const t=e.trim();if(t==="")return null;try{return t.startsWith("/")?new URL(t,r):new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`)}catch{return null}},H=e=>`${e.origin}${e.pathname.replace(/\/+$/,"")}`,W=(e,r)=>{const t=e.trim();return t.startsWith("/")?$(t,r)?.href??t:/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`},X=e=>{try{return new URL(e).host||e}catch{return e}},_=p(E),V=p(M),J=p(K),Y=p(D),g=p(N),q=(e,r,t)=>{const a=r.length-1;if(e==="ArrowRight")return r[t===a?0:t+1];if(e==="ArrowLeft")return r[t===0?a:t-1];if(e==="Home")return r[0];if(e==="End")return r[a]},Q=e=>{const{view:r,send:t,labels:a}=e,o=s=>i=>{const l=r.tabs[s],k=i.key==="Enter"||i.key===" "?l:q(i.key,r.tabs,s);k!==void 0&&(i.preventDefault(),t({kind:"activate",id:k.id,focus:!0}))};return n`<div class="browser-tabs">
50
50
  <div class="browser-tab-list" role="tablist" aria-label=${a.tabs}>
51
51
  ${r.tabs.map((s,i)=>n`<div
52
52
  class="browser-tab"
@@ -57,7 +57,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
57
57
  @click=${()=>t({kind:"activate",id:s.id})}
58
58
  @keydown=${o(i)}
59
59
  >
60
- <span class="browser-favicon">${h()}</span>
60
+ <span class="browser-favicon">${g()}</span>
61
61
  <span class="browser-tab-title">${s.title}</span>
62
62
  ${y(e,s.id)}
63
63
  </div>`)}
@@ -80,7 +80,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
80
80
  @click=${t=>{t.stopPropagation(),e.send({kind:"close-tab",id:r})}}
81
81
  >
82
82
  ${j()}
83
- </button>`,Z={back:_,forward:J,reload:V},c=(e,r)=>{const{view:t,send:a,labels:o}=e,s=o[r],i={back:!t.canBack,forward:!t.canForward,reload:t.entry?.kind!=="page"}[r];return n`<button
83
+ </button>`,Z={back:_,forward:V,reload:J},c=(e,r)=>{const{view:t,send:a,labels:o}=e,s=o[r],i={back:!t.canBack,forward:!t.canForward,reload:t.entry?.kind!=="page"}[r];return n`<button
84
84
  class=${`browser-nav browser-${r}`}
85
85
  type="button"
86
86
  aria-label=${s}
@@ -92,7 +92,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
92
92
  </button>`},ee=e=>{const{view:r,send:t,labels:a,phone:o}=e,s=r.profile??a.guest;return n`<div class="browser-toolbar">
93
93
  ${o?d:n`${c(e,"back")} ${c(e,"forward")} ${c(e,"reload")}`}
94
94
  <div class="browser-address-form">
95
- <span class="browser-lock">${r.entry?.kind==="page"?q():h()}</span>
95
+ <span class="browser-lock">${r.entry?.kind==="page"?Y():g()}</span>
96
96
  <input
97
97
  class="browser-address"
98
98
  type="text"
@@ -109,7 +109,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
109
109
  <span class="browser-avatar" aria-hidden="true">${Array.from(s)[0]??""}</span>
110
110
  ${o?d:n`<span class="browser-profile-name">${s}</span>`}
111
111
  </span>
112
- </div>`},re=e=>n`${e.phone?d:Y(e)} ${ee(e)}
112
+ </div>`},re=e=>n`${e.phone?d:Q(e)} ${ee(e)}
113
113
  <div class="browser-progress" aria-hidden="true"></div>`,te=e=>{if(!e.phone)return d;const{view:r,send:t,labels:a}=e;return n`<div class="browser-bottom">
114
114
  ${c(e,"back")} ${c(e,"forward")}
115
115
  <button
@@ -135,7 +135,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
135
135
  </div>`},ae=e=>{const{view:r,send:t,labels:a}=e;return n`<div class="browser-switcher" role="dialog" aria-label=${a.tabs}>
136
136
  ${r.tabs.map(o=>n`<div class="browser-card" aria-current=${o.active?"true":d}>
137
137
  <button class="browser-card-open" type="button" @click=${()=>t({kind:"activate",id:o.id})}>
138
- <span class="browser-favicon">${h()}</span>
138
+ <span class="browser-favicon">${g()}</span>
139
139
  <span class="browser-card-title">${o.title}</span>
140
140
  <span class="browser-card-url">${o.url}</span>
141
141
  </button>
@@ -159,7 +159,7 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
159
159
  <p>${e.unreachableBody}</p>
160
160
  <code>${r}</code>
161
161
  </div>`,ne=(e,r)=>{const t=e.view.entry;return n`${e.phone&&e.switcher?ae(e):d}
162
- ${t?.kind==="unreachable"?se(e.labels,t.url):r===void 0?oe(e):r}`},p=e=>JSON.stringify(Object.entries(e).filter(([,r])=>r!==void 0).sort(([r],[t])=>r<t?-1:r>t?1:0)),m=(e,r)=>e?.kind==="page"&&p(e.page)===r,w=e=>`tab-${e}`,ie=e=>({tabs:[{id:w(1),history:[{kind:"page",page:e}],index:0}],activeId:w(1),seen:p(e),nextId:2}),de={id:"",history:[],index:0},u=e=>e.tabs.find(r=>r.id===e.activeId)??e.tabs[0]??de,x=e=>{const r=u(e);return r.history[r.index]},le=e=>u(e).index>0,ce=e=>{const r=u(e);return r.index<r.history.length-1},T=(e,r)=>({...e,tabs:e.tabs.map(t=>t.id===e.activeId?r(t):t)}),g=(e,r)=>T(e,t=>({...t,history:[...t.history.slice(0,t.index+1),r],index:t.index+1})),f=e=>{const r=x(e);return r?.kind==="page"?{...e,seen:p(r.page)}:e},I=(e,r)=>{const t=u(e),a=t.index+r;return a<0||a>=t.history.length?e:f(T(e,o=>({...o,index:a})))},A=(e,r,t)=>{const a=w(e.nextId),o=e.tabs.findIndex(s=>s.id===e.activeId)+1;return f({...e,tabs:[...e.tabs.slice(0,o),{id:a,history:[r],index:0},...e.tabs.slice(o)],activeId:t?e.activeId:a,nextId:e.nextId+1})},be=(e,r)=>{const t=e.tabs.findIndex(s=>s.id===r);if(t<0)return e;if(e.tabs.length===1){const s=w(e.nextId);return{...e,tabs:[{id:s,history:[{kind:"new-tab"}],index:0}],activeId:s,nextId:e.nextId+1}}const a=e.tabs.filter(s=>s.id!==r);if(r!==e.activeId)return{...e,tabs:a};const o=a[t]??a[t-1];return f({...e,tabs:a,activeId:o?.id??e.activeId})},pe=(e,r)=>{const t=r===null?null:p(r);if(t===e.seen)return e;const a={...e,seen:t};return r===null||t===null||m(x(e),t)?a:g(a,{kind:"page",page:r})},ue=(e,r)=>{const t=p(r);return m(x(e),t)?e.seen===t?e:{...e,seen:t}:g({...e,seen:t},{kind:"page",page:r})},we=(e,r)=>{switch(r.kind){case"observe":return pe(e,r.page);case"visit":return ue(e,r.page);case"back":return I(e,-1);case"forward":return I(e,1);case"open-tab":return A(e,r.entry,r.background);case"new-tab":return A(e,{kind:"new-tab"},!1);case"unreachable":return g(e,{kind:"unreachable",url:r.url});case"activate":return e.tabs.some(t=>t.id===r.id)&&r.id!==e.activeId?f({...e,activeId:r.id}):e;case"close-tab":return be(e,r.id);default:return e}},xe=R`
162
+ ${t?.kind==="unreachable"?se(e.labels,t.url):r===void 0?oe(e):r}`},b=e=>JSON.stringify(Object.entries(e).filter(([,r])=>r!==void 0).sort(([r],[t])=>r<t?-1:r>t?1:0)),m=(e,r)=>e?.kind==="page"&&b(e.page)===r,w=e=>`tab-${e}`,ie=e=>({tabs:[{id:w(1),history:[{kind:"page",page:e}],index:0}],activeId:w(1),seen:b(e),nextId:2}),de={id:"",history:[],index:0},u=e=>e.tabs.find(r=>r.id===e.activeId)??e.tabs[0]??de,x=e=>{const r=u(e);return r.history[r.index]},le=e=>u(e).index>0,ce=e=>{const r=u(e);return r.index<r.history.length-1},T=(e,r)=>({...e,tabs:e.tabs.map(t=>t.id===e.activeId?r(t):t)}),h=(e,r)=>T(e,t=>({...t,history:[...t.history.slice(0,t.index+1),r],index:t.index+1})),f=e=>{const r=x(e);return r?.kind==="page"?{...e,seen:b(r.page)}:e},I=(e,r)=>{const t=u(e),a=t.index+r;return a<0||a>=t.history.length?e:f(T(e,o=>({...o,index:a})))},A=(e,r,t)=>{const a=w(e.nextId),o=e.tabs.findIndex(s=>s.id===e.activeId)+1;return f({...e,tabs:[...e.tabs.slice(0,o),{id:a,history:[r],index:0},...e.tabs.slice(o)],activeId:t?e.activeId:a,nextId:e.nextId+1})},pe=(e,r)=>{const t=e.tabs.findIndex(s=>s.id===r);if(t<0)return e;if(e.tabs.length===1){const s=w(e.nextId);return{...e,tabs:[{id:s,history:[{kind:"new-tab"}],index:0}],activeId:s,nextId:e.nextId+1}}const a=e.tabs.filter(s=>s.id!==r);if(r!==e.activeId)return{...e,tabs:a};const o=a[t]??a[t-1];return f({...e,tabs:a,activeId:o?.id??e.activeId})},be=(e,r)=>{const t=r===null?null:b(r);if(t===e.seen)return e;const a={...e,seen:t};return r===null||t===null||m(x(e),t)?a:h(a,{kind:"page",page:r})},ue=(e,r)=>{const t=b(r);return m(x(e),t)?e.seen===t?e:{...e,seen:t}:h({...e,seen:t},{kind:"page",page:r})},we=(e,r)=>{switch(r.kind){case"observe":return be(e,r.page);case"visit":return ue(e,r.page);case"back":return I(e,-1);case"forward":return I(e,1);case"open-tab":return A(e,r.entry,r.background);case"new-tab":return A(e,{kind:"new-tab"},!1);case"unreachable":return h(e,{kind:"unreachable",url:r.url});case"activate":return e.tabs.some(t=>t.id===r.id)&&r.id!==e.activeId?f({...e,activeId:r.id}):e;case"close-tab":return pe(e,r.id);default:return e}},xe=R`
163
163
  /*
164
164
  * A tab strip on a darker band, the active tab merged into the toolbar below
165
165
  * it, round navigation buttons, a pill address bar and the profile of the
@@ -683,4 +683,4 @@ import{bs as z,bt as C,ai as d,bu as L,a5 as B,as as n,b0 as b,bv as E,bw as M,H
683
683
  top: 8px;
684
684
  right: 8px;
685
685
  }
686
- `;export{$ as a,U as b,P as c,u as d,ce as e,le as f,xe as g,X as h,K as i,x as j,re as k,ne as l,te as m,we as n,S as p,F as r,ie as s,W as t};
686
+ `;export{$ as a,H as b,S as c,u as d,ce as e,le as f,xe as g,X as h,P as i,x as j,re as k,ne as l,te as m,we as n,U as p,F as r,ie as s,W as t};
@@ -1,4 +1,4 @@
1
- import{aj as l,ah as d,B as u,as as p,ax as h,bi as k,bJ as f,ac as g}from"./shared-B8ZhyjWv.js";const m={github:l`<path fill-rule="evenodd" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>`,gitlab:l`<path d="M8 15 1.2 9.9a.7.7 0 0 1-.25-.78L2.7 2.6a.35.35 0 0 1 .66 0L5.1 7.6h5.8l1.74-5a.35.35 0 0 1 .66 0l1.75 6.52a.7.7 0 0 1-.25.78z"></path>`,jira:l`<path d="M14.6 7.4 8.6 1.4 8 .8 3.5 5.3 1.4 7.4a.85.85 0 0 0 0 1.2l4.1 4.1L8 15.2l4.5-4.5.07-.07 2.03-2.03a.85.85 0 0 0 0-1.2zM8 9.9 5.9 8 8 5.9 10.1 8z"></path>`,linear:l`<path d="M1.2 9.4a6.9 6.9 0 0 0 5.4 5.4zM1 7.3l7.7 7.7a7 7 0 0 0 1.9-.5L1.5 5.4a7 7 0 0 0-.5 1.9zm1.2-3.1 9.6 9.6a7 7 0 0 0 1.2-1.1L3.3 3a7 7 0 0 0-1.1 1.2zM4.3 2.3a7 7 0 1 1 9.4 9.4z"></path>`,figma:l`<path d="M5.5 1h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm2.3 0h2.3a2.3 2.3 0 1 1 0 4.6H7.8zm2.3 4.6a2.3 2.3 0 1 1 0 4.6 2.3 2.3 0 0 1 0-4.6zM5.5 5.6h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm0 4.6h2.3v2.3a2.3 2.3 0 1 1-2.3-2.3z"></path>`,notion:l`<path fill-rule="evenodd" d="M2.5 1.6 11 1c1 0 1.3.1 2 .6l2.1 1.5c.4.3.5.4.5.7v9.6c0 .7-.3 1.1-1.1 1.2l-9.4.6c-.6 0-.9-.1-1.2-.5L1.9 12c-.3-.5-.5-.8-.5-1.3V2.8c0-.6.3-1.1 1.1-1.2zM5 4.4v8.9l8.6-.5V4zm1 1.2 2.9-.2 3 4.7V5.6l-.8-.1v-.5l2-.1v.6l-.6.1v6.1l-.9.1-3.5-5.4v4.9l.8.2v.5l-2.3.1v-.5l.6-.2V6.4l-.8-.1z"></path>`},x=i=>i==="web"?u():p`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${m[i]}</svg>`,b=d`
1
+ import{a6 as o,a4 as d,x as p,ag as u}from"./shared-D7lvvzdN.js";import{v as h,L as k,Q as f,j as m}from"./shared-CVEzSR4J.js";const g={github:o`<path fill-rule="evenodd" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>`,gitlab:o`<path d="M8 15 1.2 9.9a.7.7 0 0 1-.25-.78L2.7 2.6a.35.35 0 0 1 .66 0L5.1 7.6h5.8l1.74-5a.35.35 0 0 1 .66 0l1.75 6.52a.7.7 0 0 1-.25.78z"></path>`,jira:o`<path d="M14.6 7.4 8.6 1.4 8 .8 3.5 5.3 1.4 7.4a.85.85 0 0 0 0 1.2l4.1 4.1L8 15.2l4.5-4.5.07-.07 2.03-2.03a.85.85 0 0 0 0-1.2zM8 9.9 5.9 8 8 5.9 10.1 8z"></path>`,linear:o`<path d="M1.2 9.4a6.9 6.9 0 0 0 5.4 5.4zM1 7.3l7.7 7.7a7 7 0 0 0 1.9-.5L1.5 5.4a7 7 0 0 0-.5 1.9zm1.2-3.1 9.6 9.6a7 7 0 0 0 1.2-1.1L3.3 3a7 7 0 0 0-1.1 1.2zM4.3 2.3a7 7 0 1 1 9.4 9.4z"></path>`,figma:o`<path d="M5.5 1h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm2.3 0h2.3a2.3 2.3 0 1 1 0 4.6H7.8zm2.3 4.6a2.3 2.3 0 1 1 0 4.6 2.3 2.3 0 0 1 0-4.6zM5.5 5.6h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm0 4.6h2.3v2.3a2.3 2.3 0 1 1-2.3-2.3z"></path>`,notion:o`<path fill-rule="evenodd" d="M2.5 1.6 11 1c1 0 1.3.1 2 .6l2.1 1.5c.4.3.5.4.5.7v9.6c0 .7-.3 1.1-1.1 1.2l-9.4.6c-.6 0-.9-.1-1.2-.5L1.9 12c-.3-.5-.5-.8-.5-1.3V2.8c0-.6.3-1.1 1.1-1.2zM5 4.4v8.9l8.6-.5V4zm1 1.2 2.9-.2 3 4.7V5.6l-.8-.1v-.5l2-.1v.6l-.6.1v6.1l-.9.1-3.5-5.4v4.9l.8.2v.5l-2.3.1v-.5l.6-.2V6.4l-.8-.1z"></path>`},x=i=>i==="web"?p():u`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${g[i]}</svg>`,v=d`
2
2
  .link-mark {
3
3
  fill: currentColor;
4
4
  }
@@ -40,4 +40,4 @@ import{aj as l,ah as d,B as u,as as p,ax as h,bi as k,bJ as f,ac as g}from"./sha
40
40
  text-overflow: ellipsis;
41
41
  white-space: nowrap;
42
42
  }
43
- `,s=/^[A-Z][A-Z0-9]+-\d+$/,c=i=>{let e=i;try{e=decodeURIComponent(i)}catch{}return e.replace(/[-_+]+/g," ").trim()},v=(i,e)=>{if(i!=="github.com")return null;const[t,n,r,a]=e;if(t===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(n===void 0)return{kind:"github",text:t,title:t};const o=`${t}/${n}`;return(r==="issues"||r==="pull"||r==="discussions")&&a&&/^\d+$/.test(a)?{kind:"github",text:`#${a}`,title:`${o}#${a}`}:r==="commit"&&a?{kind:"github",text:a.slice(0,7),title:`${o}@${a}`}:{kind:"github",text:o,title:o}},w=(i,e)=>{if(i!=="gitlab.com")return null;const t=e.indexOf("-"),n=(t<0?e:e.slice(0,t)).join("/"),r=t<0?void 0:e[t+1],a=t<0?void 0:e[t+2];if(a&&/^\d+$/.test(a)){if(r==="issues")return{kind:"gitlab",text:`#${a}`,title:`${n}#${a}`};if(r==="merge_requests")return{kind:"gitlab",text:`!${a}`,title:`${n}!${a}`}}return{kind:"gitlab",text:n||"GitLab",title:n||i}},$=(i,e,t)=>{if(!e.endsWith(".atlassian.net")&&!e.startsWith("jira."))return null;const n=(t[0]==="browse"?t[1]:void 0)??i.searchParams.get("selectedIssue")??t.find(r=>s.test(r));return n&&s.test(n)?{kind:"jira",text:n,title:`${e} ${n}`}:{kind:"jira",text:"Jira",title:e}},z=(i,e)=>{if(i!=="linear.app")return null;const t=e[1]==="issue"?e[2]?.toUpperCase():void 0;return t&&s.test(t)?{kind:"linear",text:t,title:t}:{kind:"linear",text:"Linear",title:i}},L=(i,e)=>{if(i!=="figma.com")return null;const[t,,n]=e;if((t==="file"||t==="design"||t==="proto"||t==="board")&&n){const r=c(n);return{kind:"figma",text:r,title:r}}return{kind:"figma",text:"Figma",title:i}},M=(i,e)=>{if(i!=="notion.so"&&!i.endsWith(".notion.site"))return null;const n=(e.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),r=n===""?"Notion":c(n);return{kind:"notion",text:r,title:r}},j=i=>{let e;try{e=new URL(i)}catch{return{kind:"web",text:i,title:i}}const t=e.hostname.replace(/^www\./,""),n=e.pathname.split("/").filter(r=>r!=="");return v(t,n)??w(t,n)??$(e,t,n)??z(t,n)??L(t,n)??M(t,n)??{kind:"web",text:t,title:i}},y=h(g(),f(),k(i=>/^https?:\/\//i.test(i),"a link must be an http(s) URL"));export{x as a,j as d,y as h,b as l};
43
+ `,s=/^[A-Z][A-Z0-9]+-\d+$/,c=i=>{let e=i;try{e=decodeURIComponent(i)}catch{}return e.replace(/[-_+]+/g," ").trim()},b=(i,e)=>{if(i!=="github.com")return null;const[t,n,r,a]=e;if(t===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(n===void 0)return{kind:"github",text:t,title:t};const l=`${t}/${n}`;return(r==="issues"||r==="pull"||r==="discussions")&&a&&/^\d+$/.test(a)?{kind:"github",text:`#${a}`,title:`${l}#${a}`}:r==="commit"&&a?{kind:"github",text:a.slice(0,7),title:`${l}@${a}`}:{kind:"github",text:l,title:l}},w=(i,e)=>{if(i!=="gitlab.com")return null;const t=e.indexOf("-"),n=(t<0?e:e.slice(0,t)).join("/"),r=t<0?void 0:e[t+1],a=t<0?void 0:e[t+2];if(a&&/^\d+$/.test(a)){if(r==="issues")return{kind:"gitlab",text:`#${a}`,title:`${n}#${a}`};if(r==="merge_requests")return{kind:"gitlab",text:`!${a}`,title:`${n}!${a}`}}return{kind:"gitlab",text:n||"GitLab",title:n||i}},$=(i,e,t)=>{if(!e.endsWith(".atlassian.net")&&!e.startsWith("jira."))return null;const n=(t[0]==="browse"?t[1]:void 0)??i.searchParams.get("selectedIssue")??t.find(r=>s.test(r));return n&&s.test(n)?{kind:"jira",text:n,title:`${e} ${n}`}:{kind:"jira",text:"Jira",title:e}},z=(i,e)=>{if(i!=="linear.app")return null;const t=e[1]==="issue"?e[2]?.toUpperCase():void 0;return t&&s.test(t)?{kind:"linear",text:t,title:t}:{kind:"linear",text:"Linear",title:i}},L=(i,e)=>{if(i!=="figma.com")return null;const[t,,n]=e;if((t==="file"||t==="design"||t==="proto"||t==="board")&&n){const r=c(n);return{kind:"figma",text:r,title:r}}return{kind:"figma",text:"Figma",title:i}},M=(i,e)=>{if(i!=="notion.so"&&!i.endsWith(".notion.site"))return null;const n=(e.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),r=n===""?"Notion":c(n);return{kind:"notion",text:r,title:r}},j=i=>{let e;try{e=new URL(i)}catch{return{kind:"web",text:i,title:i}}const t=e.hostname.replace(/^www\./,""),n=e.pathname.split("/").filter(r=>r!=="");return b(t,n)??w(t,n)??$(e,t,n)??z(t,n)??L(t,n)??M(t,n)??{kind:"web",text:t,title:i}},y=h(m(),f(),k(i=>/^https?:\/\//i.test(i),"a link must be an http(s) URL"));export{x as a,j as d,y as h,v as l};
@@ -1,15 +1,15 @@
1
- import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as se,p as ne,a9 as ae,a5 as oe,S as g,C as E,h as re,aH as T,ai as d,as as r,by as de,aZ as le,b5 as ce,y as N,ah as pe,V as C}from"./shared-B8ZhyjWv.js";import{a as ue}from"./shared-C0M3Ib7z.js";const P=["title","section","content"],he=$({id:ee,layout:p(se(P),"content"),title:te(u(),ie(1)),subtitle:p(u(),""),points:p(S(u()),[]),notes:p(u(),"")}),q=$({title:p(u(),""),slides:p(S(he),[])}),A=t=>{const e=X(q,t),i=new Set;for(const s of e.slides){if(i.has(s.id))throw new Error(`duplicate slide id: ${s.id}`);i.add(s.id)}return{title:e.title,slides:e.slides}},z=()=>({title:"",slides:[]}),l=(t,e)=>e===void 0?-1:t.slides.findIndex(i=>i.id===e),D=(t,e)=>t.slides[l(t,e)],c="SET_SLIDE_NOTES",me=ae({notes:u()}),b={[c]:ne(c,"slide",me)},H={setNotes:(t,e)=>({type:c,target:{type:"slide",id:t},payload:{notes:e}})},M=(t,e)=>{switch(e.type){case c:{if(e.target.type!=="slide")return null;const i=l(t,e.target.id);if(i===-1)return null;const s=b[c].parse(e);if(s===null)return null;const{notes:a}=s.payload;return{...t,slides:t.slides.map((n,o)=>o===i?{...n,notes:a}:n)}}default:return null}},v=oe({en:{wholeDeck:"Whole deck",slideGroup:"Slide",outline:"Slides",previous:"Previous slide",next:"Next slide",position:(t,e)=>`Slide ${t} of ${e}`,present:"Present",presentation:"Presentation",exitPresentation:"Exit presentation",speakerNotes:"Speaker notes",speakerNotesHint:"Only the presenter sees these. They are never projected.",speakerNotesPlaceholder:"What to say on this slide",saveNotes:"Save notes",commentOnSlide:"Comment on this slide",commentPlaceholder:"A question, or what should change (passed to the agent)",addComment:"Add comment",deleteComment:"Delete this comment",submitHint:"\u2318 / Ctrl + Enter",fullscreen:"Full screen",fullscreenHint:"\u2190 \u2192 to move \xB7 Esc to leave",noSlidesBefore:"There are no slides yet. Add them to ",noSlidesAfter:" in the base data."},ja:{wholeDeck:"\u30C7\u30C3\u30AD\u5168\u4F53",slideGroup:"\u30B9\u30E9\u30A4\u30C9",outline:"\u30B9\u30E9\u30A4\u30C9",previous:"\u524D\u306E\u30B9\u30E9\u30A4\u30C9",next:"\u6B21\u306E\u30B9\u30E9\u30A4\u30C9",position:(t,e)=>`${e} \u679A\u4E2D ${t} \u679A\u76EE`,present:"\u30D7\u30EC\u30BC\u30F3",presentation:"\u30D7\u30EC\u30BC\u30F3\u8868\u793A",exitPresentation:"\u30D7\u30EC\u30BC\u30F3\u3092\u7D42\u4E86",speakerNotes:"\u30B9\u30D4\u30FC\u30AB\u30FC\u30CE\u30FC\u30C8",speakerNotesHint:"\u767A\u8868\u8005\u3060\u3051\u306B\u898B\u3048\u307E\u3059\u3002\u30B9\u30E9\u30A4\u30C9\u306B\u306F\u6295\u5F71\u3055\u308C\u307E\u305B\u3093\u3002",speakerNotesPlaceholder:"\u3053\u306E\u30B9\u30E9\u30A4\u30C9\u3067\u8A71\u3059\u3053\u3068",saveNotes:"\u30CE\u30FC\u30C8\u3092\u4FDD\u5B58",commentOnSlide:"\u3053\u306E\u30B9\u30E9\u30A4\u30C9\u306B\u30B3\u30E1\u30F3\u30C8",commentPlaceholder:"\u8CEA\u554F\u3084\u3001\u5909\u3048\u3066\u307B\u3057\u3044\u3053\u3068\uFF08Agent \u306B\u6E21\u308B\uFF09",addComment:"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteComment:"\u3053\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",submitHint:"\u2318 / Ctrl + Enter",fullscreen:"\u5168\u753B\u9762\u8868\u793A",fullscreenHint:"\u2190 \u2192 \u3067\u79FB\u52D5 \xB7 Esc \u3067\u623B\u308B",noSlidesBefore:"\u30B9\u30E9\u30A4\u30C9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002base data \u306E ",noSlidesAfter:" \u306B\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}}),f="present",k="1",m=t=>t[f]===k,O=t=>({[f]:t?k:null}),j=t=>t.title===""?"Slides":t.title,x=(t,e)=>`${e+1}. ${t.title}`,F=(t,e,i)=>{switch(i.type){case"slide":{const s=l(e,i.id),a=e.slides[s];return a===void 0?i.id:x(a,s)}case"page":return t.wholeDeck;default:return i.id}},L=(t,e,i)=>{const s=F(t,i,e.target);return e.type===c?{title:t.speakerNotes,targetLabel:s,tone:"update"}:{title:e.type,targetLabel:s,tone:"meta"}},_=t=>`${t.type} ${g(t.target)} ${JSON.stringify(t.payload)}`,K=(t,e)=>e.slides.map((i,s)=>({value:g({type:"slide",id:i.id}),label:x(i,s),group:t.slideGroup})),R=(t,e,i)=>{const s=l(e,i.slide),a=e.slides[s];return a===void 0?null:{value:g({type:"slide",id:a.id}),label:x(a,s),group:t.slideGroup}},B=(t,e)=>{const i=t.slides[l(t,e.slide)]??t.slides[0],s={...e};return i?s.slide=i.id:delete s.slide,(i===void 0||!m(e))&&delete s[f],s},w=(t,e)=>{const i=l(t,e.slide),s=i===-1?0:i,a=t.slides[s];return a===void 0?null:{slide:a,index:s,total:t.slides.length,previous:t.slides[s-1],next:t.slides[s+1]}},ge=(t,e)=>t.filter(i=>i.type===E&&i.target.type==="slide"&&i.target.id===e).map(i=>({id:i.id,body:re(i)})).filter(i=>i.body!==""),G=(t,e)=>{switch(e.type){case"slide":return D(t,e.id)!==void 0;case"page":return!0;default:return!1}},I=t=>{const e=v(t);return{kind:"view",name:"slides",label:"Slides",addable:!1,parseBase:A,emptyBase:z,actions:b,apply:M,hasTarget:G,describe:(i,s)=>L(e,i,s),serialize:_,resolveNavigation:B,navigationFor:(i,s)=>s.type==="slide"?{slide:s.id}:null,commentTargets:i=>K(e,i),currentTarget:(i,s)=>R(e,i,s),title:j}},fe={ArrowRight:"next",PageDown:"next",ArrowLeft:"previous",PageUp:"previous",Home:"first",End:"last"},U=t=>t.altKey===!0||t.ctrlKey===!0||t.metaKey===!0||t.shiftKey===!0?null:fe[t.key]??null,Y=(t,e,i)=>{const s=t.slides.length-1;if(s<0)return;const a=Math.max(l(t,e),0),n={next:Math.min(a+1,s),previous:Math.max(a-1,0),first:0,last:s}[i];return t.slides[n]?.id},be=(t,e)=>{const{state:i,navigation:s}=t,a=s.slide;return r`
1
+ import{_ as X,L as g,C as $,g as ee,al as S,a5 as d,ag as r,aZ as te,aw as ie,aD as ne,t as E,a4 as se,V as T}from"./shared-D7lvvzdN.js";import{a as ae}from"./shared-DstEY0ER.js";import{m as oe,q as N,k as p,h as C,j as u,C as re,v as de,w as le,x as ce,d as pe,o as ue}from"./shared-CVEzSR4J.js";const q=["title","section","content"],he=N({id:re,layout:p(ce(q),"content"),title:de(u(),le(1)),subtitle:p(u(),""),points:p(C(u()),[]),notes:p(u(),"")}),P=N({title:p(u(),""),slides:p(C(he),[])}),A=t=>{const e=oe(P,t),i=new Set;for(const n of e.slides){if(i.has(n.id))throw new Error(`duplicate slide id: ${n.id}`);i.add(n.id)}return{title:e.title,slides:e.slides}},z=()=>({title:"",slides:[]}),l=(t,e)=>e===void 0?-1:t.slides.findIndex(i=>i.id===e),D=(t,e)=>t.slides[l(t,e)],c="SET_SLIDE_NOTES",me=ue({notes:u()}),b={[c]:pe(c,"slide",me)},H={setNotes:(t,e)=>({type:c,target:{type:"slide",id:t},payload:{notes:e}})},M=(t,e)=>{switch(e.type){case c:{if(e.target.type!=="slide")return null;const i=l(t,e.target.id);if(i===-1)return null;const n=b[c].parse(e);if(n===null)return null;const{notes:a}=n.payload;return{...t,slides:t.slides.map((s,o)=>o===i?{...s,notes:a}:s)}}default:return null}},v=X({en:{wholeDeck:"Whole deck",slideGroup:"Slide",outline:"Slides",previous:"Previous slide",next:"Next slide",position:(t,e)=>`Slide ${t} of ${e}`,present:"Present",presentation:"Presentation",exitPresentation:"Exit presentation",speakerNotes:"Speaker notes",speakerNotesHint:"Only the presenter sees these. They are never projected.",speakerNotesPlaceholder:"What to say on this slide",saveNotes:"Save notes",commentOnSlide:"Comment on this slide",commentPlaceholder:"A question, or what should change (passed to the agent)",addComment:"Add comment",deleteComment:"Delete this comment",submitHint:"\u2318 / Ctrl + Enter",fullscreen:"Full screen",fullscreenHint:"\u2190 \u2192 to move \xB7 Esc to leave",noSlidesBefore:"There are no slides yet. Add them to ",noSlidesAfter:" in the base data."},ja:{wholeDeck:"\u30C7\u30C3\u30AD\u5168\u4F53",slideGroup:"\u30B9\u30E9\u30A4\u30C9",outline:"\u30B9\u30E9\u30A4\u30C9",previous:"\u524D\u306E\u30B9\u30E9\u30A4\u30C9",next:"\u6B21\u306E\u30B9\u30E9\u30A4\u30C9",position:(t,e)=>`${e} \u679A\u4E2D ${t} \u679A\u76EE`,present:"\u30D7\u30EC\u30BC\u30F3",presentation:"\u30D7\u30EC\u30BC\u30F3\u8868\u793A",exitPresentation:"\u30D7\u30EC\u30BC\u30F3\u3092\u7D42\u4E86",speakerNotes:"\u30B9\u30D4\u30FC\u30AB\u30FC\u30CE\u30FC\u30C8",speakerNotesHint:"\u767A\u8868\u8005\u3060\u3051\u306B\u898B\u3048\u307E\u3059\u3002\u30B9\u30E9\u30A4\u30C9\u306B\u306F\u6295\u5F71\u3055\u308C\u307E\u305B\u3093\u3002",speakerNotesPlaceholder:"\u3053\u306E\u30B9\u30E9\u30A4\u30C9\u3067\u8A71\u3059\u3053\u3068",saveNotes:"\u30CE\u30FC\u30C8\u3092\u4FDD\u5B58",commentOnSlide:"\u3053\u306E\u30B9\u30E9\u30A4\u30C9\u306B\u30B3\u30E1\u30F3\u30C8",commentPlaceholder:"\u8CEA\u554F\u3084\u3001\u5909\u3048\u3066\u307B\u3057\u3044\u3053\u3068\uFF08Agent \u306B\u6E21\u308B\uFF09",addComment:"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteComment:"\u3053\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",submitHint:"\u2318 / Ctrl + Enter",fullscreen:"\u5168\u753B\u9762\u8868\u793A",fullscreenHint:"\u2190 \u2192 \u3067\u79FB\u52D5 \xB7 Esc \u3067\u623B\u308B",noSlidesBefore:"\u30B9\u30E9\u30A4\u30C9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002base data \u306E ",noSlidesAfter:" \u306B\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}}),f="present",k="1",m=t=>t[f]===k,O=t=>({[f]:t?k:null}),j=t=>t.title===""?"Slides":t.title,x=(t,e)=>`${e+1}. ${t.title}`,L=(t,e,i)=>{switch(i.type){case"slide":{const n=l(e,i.id),a=e.slides[n];return a===void 0?i.id:x(a,n)}case"page":return t.wholeDeck;default:return i.id}},F=(t,e,i)=>{const n=L(t,i,e.target);return e.type===c?{title:t.speakerNotes,targetLabel:n,tone:"update"}:{title:e.type,targetLabel:n,tone:"meta"}},_=t=>`${t.type} ${g(t.target)} ${JSON.stringify(t.payload)}`,K=(t,e)=>e.slides.map((i,n)=>({value:g({type:"slide",id:i.id}),label:x(i,n),group:t.slideGroup})),R=(t,e,i)=>{const n=l(e,i.slide),a=e.slides[n];return a===void 0?null:{value:g({type:"slide",id:a.id}),label:x(a,n),group:t.slideGroup}},B=(t,e)=>{const i=t.slides[l(t,e.slide)]??t.slides[0],n={...e};return i?n.slide=i.id:delete n.slide,(i===void 0||!m(e))&&delete n[f],n},w=(t,e)=>{const i=l(t,e.slide),n=i===-1?0:i,a=t.slides[n];return a===void 0?null:{slide:a,index:n,total:t.slides.length,previous:t.slides[n-1],next:t.slides[n+1]}},ge=(t,e)=>t.filter(i=>i.type===$&&i.target.type==="slide"&&i.target.id===e).map(i=>({id:i.id,body:ee(i)})).filter(i=>i.body!==""),G=(t,e)=>{switch(e.type){case"slide":return D(t,e.id)!==void 0;case"page":return!0;default:return!1}},I=t=>{const e=v(t);return{kind:"view",name:"slides",label:"Slides",addable:!1,parseBase:A,emptyBase:z,actions:b,apply:M,hasTarget:G,describe:(i,n)=>F(e,i,n),serialize:_,resolveNavigation:B,navigationFor:(i,n)=>n.type==="slide"?{slide:n.id}:null,commentTargets:i=>K(e,i),currentTarget:(i,n)=>R(e,i,n),title:j}},fe={ArrowRight:"next",PageDown:"next",ArrowLeft:"previous",PageUp:"previous",Home:"first",End:"last"},U=t=>t.altKey===!0||t.ctrlKey===!0||t.metaKey===!0||t.shiftKey===!0?null:fe[t.key]??null,Y=(t,e,i)=>{const n=t.slides.length-1;if(n<0)return;const a=Math.max(l(t,e),0),s={next:Math.min(a+1,n),previous:Math.max(a-1,0),first:0,last:n}[i];return t.slides[s]?.id},be=(t,e)=>{const{state:i,navigation:n}=t,a=n.slide;return r`
2
2
  <nav class="outline" aria-label=${e.outline}>
3
3
  <div class="outline-head">
4
4
  <span class="dpk-label">${e.outline}</span>
5
5
  <span class="dpk-label">${i.slides.length}</span>
6
6
  </div>
7
7
  <ol class="dpk-navlist outline-list">
8
- ${T(i.slides,n=>n.id,(n,o)=>{const h=n.id===a,y=t.commentCount({type:"slide",id:n.id});return r`
9
- <li class="outline-row" data-current=${String(h)} data-layout=${n.layout}>
10
- <a href=${t.hashFor({slide:n.id})} aria-current=${h?"page":d}>
8
+ ${S(i.slides,s=>s.id,(s,o)=>{const h=s.id===a,y=t.commentCount({type:"slide",id:s.id});return r`
9
+ <li class="outline-row" data-current=${String(h)} data-layout=${s.layout}>
10
+ <a href=${t.hashFor({slide:s.id})} aria-current=${h?"page":d}>
11
11
  <span class="outline-index">${String(o+1).padStart(2,"0")}</span>
12
- <span class="outline-title">${n.title}</span>
12
+ <span class="outline-title">${s.title}</span>
13
13
  ${y>0?r`<span class="outline-note">${y}</span>`:d}
14
14
  </a>
15
15
  </li>
@@ -34,18 +34,18 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
34
34
  </div>
35
35
  <span class="slide-number" aria-hidden="true">${e+1}</span>
36
36
  </article>
37
- `,W=(t,e)=>{const i=t.slides.filter(s=>s.id!==e);return i.length===0?d:r`<div class="parked" aria-hidden="true">
38
- ${i.map(s=>r`<slot name=${`preview:${s.id}`}></slot>`)}
39
- </div>`},J=(t,e)=>{const{position:i,onStep:s,prefix:a}=e;return r`<div class="${a}-move">
37
+ `,W=(t,e)=>{const i=t.slides.filter(n=>n.id!==e);return i.length===0?d:r`<div class="parked" aria-hidden="true">
38
+ ${i.map(n=>r`<slot name=${`preview:${n.id}`}></slot>`)}
39
+ </div>`},J=(t,e)=>{const{position:i,onStep:n,prefix:a}=e;return r`<div class="${a}-move">
40
40
  <button
41
41
  class="dpk-icon-btn ${a}-prev"
42
42
  type="button"
43
43
  aria-label=${t.previous}
44
44
  title=${t.previous}
45
45
  ?disabled=${!i.hasPrevious}
46
- @click=${()=>s("previous")}
46
+ @click=${()=>n("previous")}
47
47
  >
48
- ${de()}
48
+ ${te()}
49
49
  </button>
50
50
  <span class="deck-counter" role="status" aria-label=${t.position(i.index+1,i.total)}>
51
51
  <strong>${i.index+1}</strong> / ${i.total}
@@ -56,13 +56,13 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
56
56
  aria-label=${t.next}
57
57
  title=${t.next}
58
58
  ?disabled=${!i.hasNext}
59
- @click=${()=>s("next")}
59
+ @click=${()=>n("next")}
60
60
  >
61
- ${le()}
61
+ ${ie()}
62
62
  </button>
63
- </div>`},ve=(t,e,i,s)=>e?r`<button class="dpk-btn ${s}" type="button" title=${t.fullscreenHint} @click=${i}>
64
- ${ce()} ${t.fullscreen}
65
- </button>`:d,ke=(t,e,i)=>{const s=w(t.state,t.navigation);if(s===null)return d;const{slide:a,index:n,total:o}=s,h=a.notes.trim();return r`
63
+ </div>`},ve=(t,e,i,n)=>e?r`<button class="dpk-btn ${n}" type="button" title=${t.fullscreenHint} @click=${i}>
64
+ ${ne()} ${t.fullscreen}
65
+ </button>`:d,ke=(t,e,i)=>{const n=w(t.state,t.navigation);if(n===null)return d;const{slide:a,index:s,total:o}=n,h=a.notes.trim();return r`
66
66
  <div
67
67
  class="presentation"
68
68
  popover="manual"
@@ -71,12 +71,12 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
71
71
  aria-label=${e.presentation}
72
72
  tabindex="-1"
73
73
  >
74
- <div class="presentation-stage">${V(a,n)}</div>
74
+ <div class="presentation-stage">${V(a,s)}</div>
75
75
  <div class="presentation-bar" role="group" aria-label=${e.presentation}>
76
- ${J(e,{position:{index:n,total:o,hasPrevious:s.previous!==void 0,hasNext:s.next!==void 0},onStep:i.onStep,prefix:"presentation"})}
76
+ ${J(e,{position:{index:s,total:o,hasPrevious:n.previous!==void 0,hasNext:n.next!==void 0},onStep:i.onStep,prefix:"presentation"})}
77
77
  ${ve(e,i.canFullscreen,i.onFullscreen,"deck-fullscreen")}
78
78
  <button class="dpk-btn presentation-exit" type="button" @click=${i.onExit}>
79
- ${N()} ${e.exitPresentation}
79
+ ${E()} ${e.exitPresentation}
80
80
  </button>
81
81
  </div>
82
82
  ${h===""?d:r`<aside class="presentation-notes" aria-label=${e.speakerNotes}>
@@ -85,7 +85,7 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
85
85
  </aside>`}
86
86
  ${W(t.state,a.id)}
87
87
  </div>
88
- `},xe=(t,e,i)=>{const s=i.textFor(e),a=s.trim()!==e.notes;return r`<section class="slide-notes" aria-label=${t.speakerNotes}>
88
+ `},xe=(t,e,i)=>{const n=i.textFor(e),a=n.trim()!==e.notes;return r`<section class="slide-notes" aria-label=${t.speakerNotes}>
89
89
  <div class="slide-notes-head">
90
90
  <span class="dpk-label">${t.speakerNotes}</span>
91
91
  <span class="slide-notes-hint">${t.speakerNotesHint}</span>
@@ -95,9 +95,9 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
95
95
  data-dpk-text-key=${`slide:${e.id}`}
96
96
  aria-label=${t.speakerNotes}
97
97
  placeholder=${t.speakerNotesPlaceholder}
98
- .value=${s}
99
- @input=${n=>{n.currentTarget instanceof HTMLTextAreaElement&&i.onDraft(e,n.currentTarget.value)}}
100
- @keydown=${n=>{n.isComposing||n.key!=="Enter"||!(n.metaKey||n.ctrlKey)||(n.preventDefault(),a&&i.onSave(e.id))}}
98
+ .value=${n}
99
+ @input=${s=>{s.currentTarget instanceof HTMLTextAreaElement&&i.onDraft(e,s.currentTarget.value)}}
100
+ @keydown=${s=>{s.isComposing||s.key!=="Enter"||!(s.metaKey||s.ctrlKey)||(s.preventDefault(),a&&i.onSave(e.id))}}
101
101
  ></textarea>
102
102
  <div class="slide-notes-actions">
103
103
  <span class="slide-notes-submit-hint">${t.submitHint}</span>
@@ -110,15 +110,15 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
110
110
  ${t.saveNotes}
111
111
  </button>
112
112
  </div>
113
- </section>`},we=(t,e,i)=>{const s=w(t.state,t.navigation);if(s===null)return r`<div class="deck">
113
+ </section>`},we=(t,e,i)=>{const n=w(t.state,t.navigation);if(n===null)return r`<div class="deck">
114
114
  <p class="dpk-empty deck-empty">${e.noSlidesBefore}<code>slides</code>${e.noSlidesAfter}</p>
115
- </div>`;const{slide:a,index:n,total:o}=s;return r`
115
+ </div>`;const{slide:a,index:s,total:o}=n;return r`
116
116
  <div class="deck">
117
- <div class="stage">${V(a,n)}</div>
117
+ <div class="stage">${V(a,s)}</div>
118
118
  <div class="dpk-toolbar deck-bar">
119
- ${J(e,{position:{index:n,total:o,hasPrevious:s.previous!==void 0,hasNext:s.next!==void 0},onStep:i.onStep,prefix:"deck"})}
119
+ ${J(e,{position:{index:s,total:o,hasPrevious:n.previous!==void 0,hasNext:n.next!==void 0},onStep:i.onStep,prefix:"deck"})}
120
120
  <div class="deck-progress" aria-hidden="true">
121
- <span style=${`width:${(n+1)/o*100}%`}></span>
121
+ <span style=${`width:${(s+1)/o*100}%`}></span>
122
122
  </div>
123
123
  <button class="dpk-btn deck-present" type="button" title=${e.fullscreenHint} @click=${i.onPresent}>
124
124
  ${e.present}
@@ -128,19 +128,19 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
128
128
  ${ye(e,a,ge(t.comments,a.id),i)}
129
129
  ${W(t.state,a.id)}
130
130
  </div>
131
- `},ye=(t,e,i,s)=>{const a=s.draftFor(e.id),n=a.trim()!=="";return r`
131
+ `},ye=(t,e,i,n)=>{const a=n.draftFor(e.id),s=a.trim()!=="";return r`
132
132
  <section class="slide-comments" aria-label=${t.commentOnSlide}>
133
133
  ${i.length===0?d:r`<ul class="slide-comment-list">
134
- ${T(i,o=>o.id,o=>r`<li>
134
+ ${S(i,o=>o.id,o=>r`<li>
135
135
  <span class="slide-comment-body">${o.body}</span>
136
136
  <button
137
137
  class="dpk-icon-btn slide-comment-delete"
138
138
  type="button"
139
139
  aria-label=${t.deleteComment}
140
140
  title=${t.deleteComment}
141
- @click=${()=>s.onDeleteComment(o.id)}
141
+ @click=${()=>n.onDeleteComment(o.id)}
142
142
  >
143
- ${N()}
143
+ ${E()}
144
144
  </button>
145
145
  </li>`)}
146
146
  </ul>`}
@@ -150,15 +150,15 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
150
150
  aria-label=${t.commentOnSlide}
151
151
  placeholder=${t.commentPlaceholder}
152
152
  .value=${a}
153
- @input=${o=>{o.currentTarget instanceof HTMLTextAreaElement&&s.onDraft(e.id,o.currentTarget.value)}}
154
- @keydown=${o=>{o.isComposing||o.key!=="Enter"||!(o.metaKey||o.ctrlKey)||(o.preventDefault(),n&&s.onComment(e.id))}}
153
+ @input=${o=>{o.currentTarget instanceof HTMLTextAreaElement&&n.onDraft(e.id,o.currentTarget.value)}}
154
+ @keydown=${o=>{o.isComposing||o.key!=="Enter"||!(o.metaKey||o.ctrlKey)||(o.preventDefault(),s&&n.onComment(e.id))}}
155
155
  ></textarea>
156
156
  <div class="slide-comment-actions">
157
157
  <button
158
158
  class="dpk-btn dpk-btn--accent slide-comment-submit"
159
159
  type="button"
160
- ?disabled=${!n}
161
- @click=${()=>s.onComment(e.id)}
160
+ ?disabled=${!s}
161
+ @click=${()=>n.onComment(e.id)}
162
162
  >
163
163
  ${t.addComment}
164
164
  </button>
@@ -166,7 +166,7 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
166
166
  </div>
167
167
  </div>
168
168
  </section>
169
- `},$e=pe`
169
+ `},$e=se`
170
170
  /* ------------------------------------------------------------ outline */
171
171
 
172
172
  .outline-head {
@@ -764,4 +764,4 @@ import{au as X,av as $,aw as p,aa as S,ac as u,aM as ee,ax as te,ay as ie,az as
764
764
  transition: none;
765
765
  }
766
766
  }
767
- `,Se='input, textarea, select, [contenteditable]:not([contenteditable="false"])',Ee=t=>t instanceof HTMLElement&&(t.isContentEditable||t.matches(Se)),Te=t=>{for(let e=t;e!==null;){if(e.hasAttribute("hidden"))return!1;const i=e.getRootNode();e=e.parentElement??(i instanceof ShadowRoot?i.host:null)}return!0};class Z extends C{static{this.styles=[C.styles,ue,$e]}#t=new Map;#e=new Map;#s=!1;#n={slide:"",count:0};definitionFor(e){return I(e)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.#r)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.#r)}renderRegions(e){const i=v(this.locale),s=m(e.navigation),a={canFullscreen:document.fullscreenEnabled===!0,draftFor:n=>this.#t.get(n)??"",notes:{textFor:n=>this.#e.get(n.id)??n.notes,onDraft:(n,o)=>this.#p(n,o),onSave:n=>this.#u(n)},onStep:n=>this.#a(n),onPresent:()=>this.#i(!0),onExit:()=>this.#i(!1),onFullscreen:()=>this.#h(),onDraft:(n,o)=>this.#o(n,o),onComment:n=>this.#c(n),onDeleteComment:n=>this.removeAction(n)};return{sidebar:s?d:be(e,i),sidebarHidden:s||e.state.slides.length===0,main:s?ke(e,i,a):we(e,i,a)}}updated(){super.updated(),this.#d(),this.#l()}#d(){const e=m(this.navigation);e&&!this.#s&&this.renderRoot.querySelector(".presentation")?.focus(),this.#s=e}#l(){const e=this.renderRoot.querySelector(".slide-comment-list"),i={slide:this.navigation.slide??"",count:e?.childElementCount??0},s=this.#n;this.#n=i,!(e===null||i.slide===s.slide&&i.count<=s.count)&&(e.scrollTop=e.scrollHeight)}#a(e){const i=Y(this.derivation.state,this.navigation.slide,e);i!==void 0&&this.navigate({slide:i})}#i(e){this.navigate(O(e))}#o(e,i){const s=new Map(this.#t);i===""?s.delete(e):s.set(e,i),this.#t=s,this.requestUpdate()}#c(e){const i=(this.#t.get(e)??"").trim();if(i==="")return;this.dispatch({type:E,target:{type:"slide",id:e},payload:{body:i}}).ok&&this.#o(e,"")}#p(e,i){const s=new Map(this.#e);i===e.notes?s.delete(e.id):s.set(e.id,i),this.#e=s,this.requestUpdate()}#u(e){const i=(this.#e.get(e)??"").trim();if(!this.dispatch(H.setNotes(e,i)).ok)return;const a=new Map(this.#e);a.delete(e),this.#e=a,this.requestUpdate()}#h(){const e=this.renderRoot.querySelector(".presentation");!(e instanceof HTMLElement)||document.fullscreenElement!==null||e.requestFullscreen().catch(()=>{})}#r=e=>{if(e.defaultPrevented||!Te(this))return;if(e.key==="Escape"){if(!m(this.navigation)||this.notesOpen||e.isComposing)return;e.preventDefault(),this.#i(!1);return}const i=U(e);i===null||e.composedPath().some(Ee)||(e.preventDefault(),this.#a(i))}}const Q=()=>{customElements.get("dpk-view-slides")||customElements.define("dpk-view-slides",Z)},Ne=Object.freeze(Object.defineProperty({__proto__:null,DpkViewSlides:Z,PRESENT_KEY:f,PRESENT_ON:k,SET_SLIDE_NOTES:c,SLIDE_LAYOUTS:P,applySlidesAction:M,defineSlidesElement:Q,describeSlidesAction:L,emptySlidesBase:z,findSlide:D,findSlideIndex:l,parseSlidesBase:A,resolveSlidesNavigation:B,serializeSlidesAction:_,slideKeyStep:U,slidePosition:w,slidesAction:H,slidesActions:b,slidesBaseSchema:q,slidesCommentTargets:K,slidesCurrentTarget:R,slidesDefinitionFor:I,slidesHasTarget:G,slidesMessages:v,slidesPresentation:O,slidesPresenting:m,slidesTargetLabel:F,slidesTitle:j,stepSlide:Y},Symbol.toStringTag,{value:"Module"}));export{Q as d,Ne as i};
767
+ `,Se='input, textarea, select, [contenteditable]:not([contenteditable="false"])',Ee=t=>t instanceof HTMLElement&&(t.isContentEditable||t.matches(Se)),Te=t=>{for(let e=t;e!==null;){if(e.hasAttribute("hidden"))return!1;const i=e.getRootNode();e=e.parentElement??(i instanceof ShadowRoot?i.host:null)}return!0};class Z extends T{static{this.styles=[T.styles,ae,$e]}#t=new Map;#e=new Map;#n=!1;#s={slide:"",count:0};definitionFor(e){return I(e)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.#r)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.#r)}renderRegions(e){const i=v(this.locale),n=m(e.navigation),a={canFullscreen:document.fullscreenEnabled===!0,draftFor:s=>this.#t.get(s)??"",notes:{textFor:s=>this.#e.get(s.id)??s.notes,onDraft:(s,o)=>this.#p(s,o),onSave:s=>this.#u(s)},onStep:s=>this.#a(s),onPresent:()=>this.#i(!0),onExit:()=>this.#i(!1),onFullscreen:()=>this.#h(),onDraft:(s,o)=>this.#o(s,o),onComment:s=>this.#c(s),onDeleteComment:s=>this.removeAction(s)};return{sidebar:n?d:be(e,i),sidebarHidden:n||e.state.slides.length===0,main:n?ke(e,i,a):we(e,i,a)}}updated(){super.updated(),this.#d(),this.#l()}#d(){const e=m(this.navigation);e&&!this.#n&&this.renderRoot.querySelector(".presentation")?.focus(),this.#n=e}#l(){const e=this.renderRoot.querySelector(".slide-comment-list"),i={slide:this.navigation.slide??"",count:e?.childElementCount??0},n=this.#s;this.#s=i,!(e===null||i.slide===n.slide&&i.count<=n.count)&&(e.scrollTop=e.scrollHeight)}#a(e){const i=Y(this.derivation.state,this.navigation.slide,e);i!==void 0&&this.navigate({slide:i})}#i(e){this.navigate(O(e))}#o(e,i){const n=new Map(this.#t);i===""?n.delete(e):n.set(e,i),this.#t=n,this.requestUpdate()}#c(e){const i=(this.#t.get(e)??"").trim();if(i==="")return;this.dispatch({type:$,target:{type:"slide",id:e},payload:{body:i}}).ok&&this.#o(e,"")}#p(e,i){const n=new Map(this.#e);i===e.notes?n.delete(e.id):n.set(e.id,i),this.#e=n,this.requestUpdate()}#u(e){const i=(this.#e.get(e)??"").trim();if(!this.dispatch(H.setNotes(e,i)).ok)return;const a=new Map(this.#e);a.delete(e),this.#e=a,this.requestUpdate()}#h(){const e=this.renderRoot.querySelector(".presentation");!(e instanceof HTMLElement)||document.fullscreenElement!==null||e.requestFullscreen().catch(()=>{})}#r=e=>{if(e.defaultPrevented||!Te(this))return;if(e.key==="Escape"){if(!m(this.navigation)||this.notesOpen||e.isComposing)return;e.preventDefault(),this.#i(!1);return}const i=U(e);i===null||e.composedPath().some(Ee)||(e.preventDefault(),this.#a(i))}}const Q=()=>{customElements.get("dpk-view-slides")||customElements.define("dpk-view-slides",Z)},Ne=Object.freeze(Object.defineProperty({__proto__:null,DpkViewSlides:Z,PRESENT_KEY:f,PRESENT_ON:k,SET_SLIDE_NOTES:c,SLIDE_LAYOUTS:q,applySlidesAction:M,defineSlidesElement:Q,describeSlidesAction:F,emptySlidesBase:z,findSlide:D,findSlideIndex:l,parseSlidesBase:A,resolveSlidesNavigation:B,serializeSlidesAction:_,slideKeyStep:U,slidePosition:w,slidesAction:H,slidesActions:b,slidesBaseSchema:P,slidesCommentTargets:K,slidesCurrentTarget:R,slidesDefinitionFor:I,slidesHasTarget:G,slidesMessages:v,slidesPresentation:O,slidesPresenting:m,slidesTargetLabel:L,slidesTitle:j,stepSlide:Y},Symbol.toStringTag,{value:"Module"}));export{Q as d,Ne as i};