gitifact 0.8.2 → 0.8.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 (106) hide show
  1. package/README.md +45 -37
  2. package/dist/THIRD_PARTY_NOTICES.txt +26 -0
  3. package/dist/browser/assets/HgiRefresh-UIdBFt6N.js +1 -0
  4. package/dist/browser/assets/{Markdown-B9QJ2Ao-.js → Markdown-CR_AHfxJ.js} +1 -1
  5. package/dist/browser/assets/Selector-CPFOT7Wj.js +2 -0
  6. package/dist/browser/assets/Tab-DL11wx1W.js +1 -0
  7. package/dist/browser/assets/{Table-LdzcI4YS.js → Table-BK5793GP.js} +2 -2
  8. package/dist/browser/assets/Token-BnQGlhSv.js +2 -0
  9. package/dist/browser/assets/Token-Bqkc8eyB.css +1 -0
  10. package/dist/browser/assets/about-3BiGgi3V.js +3 -0
  11. package/dist/browser/assets/activity-timeline-CCrOFWbb.js +2 -0
  12. package/dist/browser/assets/{appearance-DgDbwXAm.js → appearance-DyJA06C4.js} +1 -1
  13. package/dist/browser/assets/changelog-DMiOCVuF.js +1 -0
  14. package/dist/browser/assets/commit-CMw0y1Oj.js +4 -0
  15. package/dist/browser/assets/contributor-Cg_cxulE.js +1 -0
  16. package/dist/browser/assets/contributors-ol5bZm_T.js +1 -0
  17. package/dist/browser/assets/contributors._email-BoTYVUTP.js +1 -0
  18. package/dist/browser/assets/contributors.index-DrdKDOYt.js +1 -0
  19. package/dist/browser/assets/dashboard.index-BUzgcF91.js +1 -0
  20. package/dist/browser/assets/document-C2htw6u5.js +2 -0
  21. package/dist/browser/assets/document-Cmx0e6kz.css +1 -0
  22. package/dist/browser/assets/document-CteWuasx.js +19 -0
  23. package/dist/browser/assets/features-DUHxz0_L.css +1 -0
  24. package/dist/browser/assets/features-haTu80rD.js +2 -0
  25. package/dist/browser/assets/features._featureId-CHZA4Y9C.js +1 -0
  26. package/dist/browser/assets/features.index-BY8ScP1y.js +1 -0
  27. package/dist/browser/assets/getting-started-GU6t7LF-.js +1 -0
  28. package/dist/browser/assets/git-D2zVLj_w.js +1 -0
  29. package/dist/browser/assets/index-D1JeDnJc.css +1 -0
  30. package/dist/browser/assets/index-DaKOj2qL.js +49 -0
  31. package/dist/browser/assets/instructions-mU0nkIyN.js +1 -0
  32. package/dist/browser/assets/instructions._instructionId-D-pztPg5.js +1 -0
  33. package/dist/browser/assets/instructions.agents-WcmyZITb.js +1 -0
  34. package/dist/browser/assets/instructions.index-BEJLVyZD.js +1 -0
  35. package/dist/browser/assets/lazyRouteComponent-DcCLQOpn.js +1 -0
  36. package/dist/browser/assets/load-more-YVDkQmcp.js +1 -0
  37. package/dist/browser/assets/lottie_light-DSIvQuvH.js +2 -0
  38. package/dist/browser/assets/{search-palette-CDmYAo36.css → page-header-DTEyUWBS.css} +1 -1
  39. package/dist/browser/assets/page-header-rHElc4Gv.js +246 -0
  40. package/dist/browser/assets/records._recordId-CQAy7eOv.js +1 -0
  41. package/dist/browser/assets/records.commits._commit-BP1KDLvt.js +1 -0
  42. package/dist/browser/assets/records.index-CZ6iNU57.js +1 -0
  43. package/dist/browser/assets/records.working-Bv9veUIm.js +1 -0
  44. package/dist/browser/assets/rocket-loader-CMSP4Jri.js +1 -0
  45. package/dist/browser/assets/settings-D2ZdL-Vu.js +1 -0
  46. package/dist/browser/assets/useInfiniteQuery-guh_cfSb.js +1 -0
  47. package/dist/browser/assets/useKeyboardHint-BD_Jlpwp.js +1 -0
  48. package/dist/browser/index.html +34 -13
  49. package/dist/browser/licenses/rocket-in-space-lottie.txt +29 -0
  50. package/dist/i18n/en/block.md +4 -6
  51. package/dist/i18n/en/changelog.md +17 -0
  52. package/dist/i18n/en/docs/commit.md +1 -1
  53. package/dist/i18n/en/docs/workflow.md +7 -7
  54. package/dist/i18n/ko/block.md +4 -6
  55. package/dist/i18n/ko/changelog.md +17 -0
  56. package/dist/i18n/ko/docs/commit.md +1 -1
  57. package/dist/i18n/ko/docs/workflow.md +5 -5
  58. package/dist/main.js +411 -150
  59. package/package.json +1 -1
  60. package/dist/browser/assets/Banner-DQ1G6Jkv.js +0 -1
  61. package/dist/browser/assets/Selector-BlDYK5Fb.js +0 -2
  62. package/dist/browser/assets/Tab-BoCyIuQw.js +0 -1
  63. package/dist/browser/assets/Token-CYBSUyAu.js +0 -1
  64. package/dist/browser/assets/about-ClxCgIMf.js +0 -3
  65. package/dist/browser/assets/activity-timeline-i0lmNZ1o.js +0 -2
  66. package/dist/browser/assets/changelog-CxmMo2wk.css +0 -1
  67. package/dist/browser/assets/changelog-bGtJx397.js +0 -2
  68. package/dist/browser/assets/commit-5TIiQrYh.js +0 -4
  69. package/dist/browser/assets/contributor-C1R6Q471.js +0 -1
  70. package/dist/browser/assets/contributors-DjNETDIr.js +0 -1
  71. package/dist/browser/assets/contributors._email-DXxCGNZx.js +0 -1
  72. package/dist/browser/assets/contributors.index-ByVvGuYC.js +0 -1
  73. package/dist/browser/assets/dashboard-CMSj2wu3.css +0 -1
  74. package/dist/browser/assets/dashboard.index-RoAwRn4H.js +0 -1
  75. package/dist/browser/assets/document-BwoITy_-.js +0 -2
  76. package/dist/browser/assets/document-CwA2dxtP.js +0 -19
  77. package/dist/browser/assets/document-DEGaf2yT.css +0 -1
  78. package/dist/browser/assets/features-CttwIYBf.js +0 -2
  79. package/dist/browser/assets/features-ZYCEDoiE.css +0 -1
  80. package/dist/browser/assets/features._featureId-DPctVYNz.js +0 -1
  81. package/dist/browser/assets/features.index-lcNtlMn8.js +0 -1
  82. package/dist/browser/assets/getting-started-Chwezama.js +0 -1
  83. package/dist/browser/assets/git-CtsTwkaq.js +0 -1
  84. package/dist/browser/assets/git-D_wcK2vC.css +0 -1
  85. package/dist/browser/assets/index-CmU7dwFQ.css +0 -1
  86. package/dist/browser/assets/index-iSt1IRzY.js +0 -48
  87. package/dist/browser/assets/instructions-DULmclHB.js +0 -1
  88. package/dist/browser/assets/instructions._instructionId-CBz40hpF.js +0 -1
  89. package/dist/browser/assets/instructions.agents-CDpXylSu.js +0 -1
  90. package/dist/browser/assets/instructions.index-BZ5tCMZJ.js +0 -1
  91. package/dist/browser/assets/lazyRouteComponent-DhTs_UEV.js +0 -1
  92. package/dist/browser/assets/load-more-DxscRoh6.js +0 -1
  93. package/dist/browser/assets/page-header-B9LQWl7J.js +0 -1
  94. package/dist/browser/assets/page-header-atX8Nsmd.css +0 -1
  95. package/dist/browser/assets/records-Dk3shbYl.css +0 -1
  96. package/dist/browser/assets/records-page-B4tDip2H.css +0 -1
  97. package/dist/browser/assets/records-page-BjyFUmMr.js +0 -1
  98. package/dist/browser/assets/records._recordId-vwjWdPRX.js +0 -1
  99. package/dist/browser/assets/records.commits._commit-CYYgrOxv.js +0 -1
  100. package/dist/browser/assets/records.index-N49ep6ay.js +0 -1
  101. package/dist/browser/assets/records.working-CcYY8eyI.js +0 -1
  102. package/dist/browser/assets/request-state-BeiYxf95.js +0 -1
  103. package/dist/browser/assets/search-palette-BCEUlRVv.js +0 -561
  104. package/dist/browser/assets/settings-I5Mn86wq.js +0 -1
  105. package/dist/browser/assets/useInfiniteQuery-tqfloUvn.js +0 -1
  106. package/dist/browser/assets/useKeyboardHint-HHpn4XUs.js +0 -1
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{bt as r,cn as i,fn as a,ht as o,mt as s,o as c}from"./page-header-rHElc4Gv.js";import{n as l,s as u}from"./document-C2htw6u5.js";import{w as d}from"./Icon-DPaLmsmh.js";import{t as f}from"./contributor-Cg_cxulE.js";var p=e=>new Date(e).toDateString();function m(e){let t=[],n;for(let r of e){let e=t.at(-1);if(e&&e.commit===r.commit){e.events.push(r);continue}let i=p(r.date)!==n;n=p(r.date),t.push({commit:r.commit,events:[r],day:i?r.date:void 0})}return t}var h=(e,t)=>e.id.startsWith(`H-`)&&t.id.startsWith(`H-`)&&e.title===t.title&&e.sections.length===t.sections.length&&e.sections.every((e,n)=>e.key===t.sections[n].key&&e.body===t.sections[n].body);function g(e){let t=[],n=[];for(let r of e){if(!r.records.length){n.push(r);continue}for(let e of r.records){let n=t.find(t=>t.ids.includes(e.id)||t.record&&h(t.record,e));n?(n.ids.includes(e.id)||n.ids.push(e.id),n.events.includes(r)||n.events.push(r)):t.push({key:e.id,ids:[e.id],record:e,events:[r],missing:!1})}}return n.length&&t.push({key:``,ids:[],record:null,events:n,missing:n.some(e=>e.types.some(e=>e!==`created`))}),t}var _=e(n(),1),v={timeline:`_timeline_j2p3o_1`,commit:`_commit_j2p3o_4`,day:`_day_j2p3o_7`,commitRow:`_commitRow_j2p3o_8`,commitNode:`_commitNode_j2p3o_9`,commitBody:`_commitBody_j2p3o_10`,commitHead:`_commitHead_j2p3o_11`,commitWho:`_commitWho_j2p3o_12`,commitWhen:`_commitWhen_j2p3o_13`,commitAuthor:`_commitAuthor_j2p3o_14`,commitMeta:`_commitMeta_j2p3o_16`,commitMetaLink:`_commitMetaLink_j2p3o_18`,commitMore:`_commitMore_j2p3o_21`,recordRows:`_recordRows_j2p3o_25`,recordRow:`_recordRow_j2p3o_25`,recordRowPreview:`_recordRowPreview_j2p3o_28`,reasonGroup:`_reasonGroup_j2p3o_30`,recordName:`_recordName_j2p3o_31`,records:`_records_j2p3o_33`,record:`_record_j2p3o_25`,recordBadge:`_recordBadge_j2p3o_38`,recordTitle:`_recordTitle_j2p3o_39`,recordPath:`_recordPath_j2p3o_41`,recordFeature:`_recordFeature_j2p3o_42`,recordDot:`_recordDot_j2p3o_43`,oneLine:`_oneLine_j2p3o_48`},y=t();function b({event:e,features:t,record:n}){a();let i=e.after??e.before,o=e.kind===`requirement`||e.kind===`design`?t.find(e=>e.id===i?.specId):void 0;return(0,y.jsxs)(s,{as:`li`,gap:2,className:v.record,children:[(0,y.jsx)(s,{gap:0,className:v.recordBadge,children:(0,y.jsx)(l,{event:e})}),(0,y.jsxs)(`span`,{className:v.recordPath,children:[o&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{className:v.recordFeature,children:o.title}),(0,y.jsx)(`span`,{className:v.recordDot,"aria-hidden":!0,children:`·`})]}),n?(0,y.jsx)(r,{to:`/records/$recordId`,params:{recordId:n},hash:e.id,className:v.recordTitle,children:i?.title??e.id}):(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:e.commit},hash:e.id,className:v.recordTitle,children:i?.title??e.id})]})]})}function x(e){return(((e.sections.find(e=>e.key===`decision`)??e.sections[0])?.body??``).split(`
2
+ `).map(e=>e.trim()).find(Boolean)??``).replace(/^[-*]\s+/,``).replace(/`([^`]*)`/g,`$1`).replace(/\*\*([^*]+)\*\*/g,`$1`).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`)}var S=3;function C({record:e,events:t,features:n}){a();let s=x(e);return(0,y.jsxs)(o,{as:`li`,gap:1,className:v.recordRow,children:[(0,y.jsx)(r,{to:`/records/$recordId`,params:{recordId:e.id},className:v.recordName,children:e.title}),s&&(0,y.jsx)(d,{type:`supporting`,color:`secondary`,className:v.recordRowPreview,children:s}),(0,y.jsx)(o,{as:`ul`,gap:0,className:v.records,"aria-label":i(`activity.changedRecords`),children:t.slice(0,S).map(t=>(0,y.jsx)(b,{event:t,features:n,record:e.id},t.key))}),t.length>S&&(0,y.jsx)(r,{to:`/records/$recordId`,params:{recordId:e.id},className:v.commitMore,children:i(`activity.moreRecords`,{count:t.length-S})})]})}var w=3;function T(e){let t=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),n=Math.round((t(new Date)-t(new Date(e)))/864e5);return n===0?i(`activity.today`):n===1?i(`activity.yesterday`):void 0}var E=(0,_.memo)(function({events:e,day:t,features:n,hidden:c}){a();let l=e[0],p=g(e),m=p.filter(e=>e.record),h=p.find(e=>!e.record);return(0,y.jsxs)(o,{as:`li`,gap:0,className:v.commit,children:[t&&(0,y.jsxs)(s,{gap:2,className:v.day,children:[(0,y.jsx)(d,{type:`supporting`,weight:`semibold`,children:T(t)}),(0,y.jsx)(d,{type:`supporting`,color:`secondary`,children:(0,y.jsx)(u,{value:t,format:`date_weekday`,hasTooltip:!1})})]}),(0,y.jsxs)(s,{gap:4,className:v.commitRow,children:[(0,y.jsx)(o,{gap:0,className:v.commitNode,children:(0,y.jsx)(f,{name:l.author,email:l.email,avatarOnly:!0})}),(0,y.jsxs)(o,{gap:5,className:v.commitBody,children:[(0,y.jsxs)(o,{gap:1,className:v.commitHead,children:[(0,y.jsxs)(s,{gap:3,className:v.commitWho,children:[(0,y.jsx)(r,{to:`/contributors/$email`,params:{email:l.email},className:v.commitAuthor,children:l.author}),(0,y.jsxs)(s,{gap:3,className:v.commitWhen,children:[!!m.length&&(0,y.jsx)(d,{type:`supporting`,color:`secondary`,children:i(`activity.commitRecords`,{count:m.length})}),e.length+c>1&&(0,y.jsx)(d,{type:`supporting`,color:`secondary`,children:i(`activity.recordCount`,{count:e.length+c})}),(0,y.jsx)(u,{value:l.date,format:`relative`})]})]}),(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:l.commit},className:v.commitMetaLink,children:(0,y.jsxs)(s,{gap:2,className:v.commitMeta,children:[(0,y.jsx)(d,{type:`code`,color:`secondary`,children:l.commit.slice(0,7)}),(0,y.jsx)(d,{type:`supporting`,color:`secondary`,className:v.oneLine,children:l.message})]})})]}),!!m.length&&(0,y.jsx)(o,{as:`ul`,gap:0,className:v.recordRows,"aria-label":i(`event.records`),children:m.slice(0,w).map(e=>(0,y.jsx)(C,{record:e.record,events:e.events,features:n},e.key))}),m.length>w&&(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:l.commit},search:{tab:`records`},className:v.commitMore,children:i(`activity.moreCommitRecords`,{count:m.length-w})}),h&&(0,y.jsxs)(o,{gap:2,className:v.reasonGroup,children:[h.missing&&(0,y.jsx)(d,{color:`secondary`,children:i(`activity.noRecord`)}),(0,y.jsx)(o,{as:`ul`,gap:0,className:v.records,"aria-label":i(`commit.documents`),children:h.events.map(e=>(0,y.jsx)(b,{event:e,features:n},e.key))})]}),c>0&&(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:l.commit},search:{tab:`documents`},className:v.commitMore,children:i(`activity.moreRecords`,{count:c})})]})]})]})},(e,t)=>e.day===t.day&&e.features===t.features&&e.hidden===t.hidden&&e.events.length===t.events.length&&e.events.every((e,n)=>e===t.events[n]));function D({events:e,features:t,hidden:n}){return a(),(0,y.jsx)(o,{as:`ol`,"aria-label":i(`activity.list`),gap:0,className:v.timeline,children:m(e).map(e=>(0,y.jsx)(E,{events:e.events,day:e.day,features:t,hidden:n?.[e.commit]??0},e.commit))})}var O=[[3,2],[4],[2,2],[5]],k=[[3,2],[4],[2]];function A({isPlain:e=!1}={}){a();let t=e?{}:{role:`status`,"aria-label":i(`request.loadingProject`),"aria-busy":!0};return(0,y.jsx)(o,{gap:0,className:v.timeline,...t,children:(e?k:O).map((e,t)=>(0,y.jsxs)(s,{gap:4,className:`${v.commit} ${v.commitRow}`,"aria-hidden":`true`,children:[(0,y.jsx)(o,{gap:0,className:v.commitNode,children:(0,y.jsx)(c,{index:t,width:`var(--spacing-6)`,height:`var(--spacing-6)`,radius:`rounded`})}),(0,y.jsxs)(o,{gap:5,className:v.commitBody,children:[(0,y.jsxs)(o,{gap:1,className:v.commitHead,children:[(0,y.jsxs)(s,{gap:3,className:v.commitWho,children:[(0,y.jsx)(c,{index:t,width:`6rem`,height:`var(--spacing-4)`}),(0,y.jsx)(c,{index:t,width:`3rem`,height:`var(--spacing-3)`})]}),(0,y.jsxs)(s,{gap:2,className:v.commitMeta,children:[(0,y.jsx)(c,{index:t,width:`3.5rem`,height:`var(--spacing-3)`}),(0,y.jsx)(c,{index:t,width:`${38-t*4}%`,height:`var(--spacing-3)`})]})]}),e.map((e,n)=>(0,y.jsxs)(o,{gap:2,className:v.reasonGroup,children:[(0,y.jsxs)(o,{gap:2,className:v.reasonText,children:[(0,y.jsx)(c,{index:t,width:`100%`,height:`var(--spacing-4)`}),(0,y.jsx)(c,{index:t,width:`${52+n*14}%`,height:`var(--spacing-4)`})]}),(0,y.jsx)(o,{gap:0,className:v.records,children:Array.from({length:e},(e,t)=>(0,y.jsxs)(s,{gap:2,className:v.record,children:[(0,y.jsx)(s,{gap:0,className:v.recordType,children:(0,y.jsx)(c,{index:t,width:`2.75rem`,height:`var(--spacing-5)`,radius:2})}),(0,y.jsx)(c,{index:t,width:`3.5rem`,height:`var(--spacing-3)`}),(0,y.jsx)(c,{index:t,width:`${30-t*3}%`,height:`var(--spacing-4)`})]},t))})]},n))]})]},t))})}var j={context:()=>i(`record.section.context`),decision:()=>i(`record.section.decision`),alternatives:()=>i(`record.section.alternatives`)};export{g as a,x as i,A as n,D as r,j as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{q as t}from"./themeProps-CkLe5zXY.js";var n=e(t(),1),r=[`system`,`light`,`dark`],i=[`stone`,`sage`,`olive`,`slate`,`clay`],a={sage:{body:[`#e9ece5`,`#1b1d1b`],surface:[`#fafaf4`,`#232623`],card:[`#fffffb`,`#292c29`],muted:[`#edf0e6`,`#2d312d`],accent:[`#4e6748`,`#b5c99c`],tint:[`#e3ead9`,`#303a2d`],text:[`#3b4439`,`#e8ebe5`],secondary:[`#606c5b`,`#adb3a9`],border:[`#d8dfd0`,`#393f38`],inputBorder:[`#c8d0c0`,`#4b5248`]},olive:{body:[`#f5f5f1`,`#10110d`],surface:[`#fdfdfc`,`#191a15`],card:[`#ffffff`,`#22241d`],muted:[`#edede7`,`#292b23`],accent:[`#5e6b18`,`#92a245`],tint:[`#ecf3d5`,`#2c3112`],text:[`#36372e`,`#f2f2ee`],secondary:[`#5b5c4f`,`#abac9e`],border:[`#e3e3dd`,`#ffffff1a`],inputBorder:[`#cecfc6`,`#ffffff33`],onAccent:[`#fafeef`,`#101304`]},slate:{body:[`#e9edf3`,`#171c25`],surface:[`#f9fbff`,`#212936`],card:[`#ffffff`,`#2a3443`],muted:[`#eaf0f9`,`#2d394c`],accent:[`#385ca8`,`#a9c5ff`],tint:[`#e1eaff`,`#304365`],text:[`#36415a`,`#edf2fa`],secondary:[`#5c6a80`,`#acbad0`],border:[`#d4deed`,`#3b4960`],inputBorder:[`#c4cfdf`,`#4b5a70`]},clay:{body:[`#efe8e1`,`#211b19`],surface:[`#fcf9f5`,`#2d2420`],card:[`#fffdfa`,`#382d27`],muted:[`#f1e8df`,`#40322b`],accent:[`#965239`,`#e6b099`],tint:[`#f3e2d8`,`#50382d`],text:[`#473b34`,`#f4ebe3`],secondary:[`#79695e`,`#c5b2a4`],border:[`#e3d6ca`,`#534139`],inputBorder:[`#d5c6b8`,`#655248`]}},o={"--color-text-primary":[`#3a3a40`,`#f3f3f5`],"--color-icon-primary":[`#3a3a40`,`#f3f3f5`]},s={body:[`#f3f3f5`,`#111015`],surface:[`#ffffff`,`#1b1b1f`],accent:[`#25252a`,`#f3f3f5`],text:[`#3a3a40`,`#f3f3f5`]};function c(e){let t=e=>[e[0],e[1]];return{"--color-background-body":t(e.body),"--color-background-surface":t(e.surface),"--color-background-card":t(e.card),"--color-background-popover":t(e.card),"--color-background-muted":t(e.muted),"--color-accent":t(e.accent),"--color-accent-muted":t(e.tint),"--color-on-accent":e.onAccent?t(e.onAccent):[`#ffffff`,e.body[1]],"--color-text-accent":t(e.text),"--color-icon-accent":t(e.text),"--color-text-primary":t(e.text),"--color-icon-primary":t(e.text),"--color-text-secondary":t(e.secondary),"--color-icon-secondary":t(e.secondary),"--color-border":t(e.border),"--color-border-emphasized":t(e.inputBorder)}}var l=`gitifact-appearance`,u={mode:`system`,palette:`stone`},d=new Set;function f(){try{let e=JSON.parse(window.localStorage.getItem(l)??`null`);return{mode:r.includes(e?.mode)?e.mode:u.mode,palette:i.includes(e?.palette)?e.palette:u.palette}}catch{return u}}var p=f();function m(e){p={...p,...e};try{window.localStorage.setItem(l,JSON.stringify(p))}catch{}d.forEach(e=>e())}window.addEventListener(`storage`,e=>{e.key===l&&(p=f(),d.forEach(e=>e()))});var h=e=>(d.add(e),()=>{d.delete(e)}),g=()=>(0,n.useSyncExternalStore)(h,()=>p);export{m as a,g as c,i,a as n,o,c as r,s,r as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{q as t}from"./themeProps-CkLe5zXY.js";var n=e(t(),1),r=[`system`,`light`,`dark`],i=[`stone`,`sage`,`olive`,`slate`,`clay`],a={sage:{body:[`#e9ece5`,`#1b1d1b`],surface:[`#fafaf4`,`#232623`],card:[`#fffffb`,`#292c29`],muted:[`#edf0e6`,`#2d312d`],accent:[`#4e6748`,`#b5c99c`],tint:[`#e3ead9`,`#303a2d`],text:[`#3b4439`,`#e8ebe5`],secondary:[`#606c5b`,`#adb3a9`],border:[`#d8dfd0`,`#393f38`],inputBorder:[`#c8d0c0`,`#4b5248`]},olive:{body:[`#f5f5f1`,`#10110d`],surface:[`#fdfdfc`,`#191a15`],card:[`#ffffff`,`#22241d`],muted:[`#edede7`,`#292b23`],accent:[`#5e6b18`,`#92a245`],tint:[`#ecf3d5`,`#2c3112`],text:[`#36372e`,`#f2f2ee`],secondary:[`#5b5c4f`,`#abac9e`],border:[`#e3e3dd`,`#ffffff1a`],inputBorder:[`#cecfc6`,`#ffffff33`],onAccent:[`#fafeef`,`#101304`]},slate:{body:[`#e9edf3`,`#171c25`],surface:[`#f9fbff`,`#212936`],card:[`#ffffff`,`#2a3443`],muted:[`#eaf0f9`,`#2d394c`],accent:[`#385ca8`,`#a9c5ff`],tint:[`#e1eaff`,`#304365`],text:[`#36415a`,`#edf2fa`],secondary:[`#5c6a80`,`#acbad0`],border:[`#d4deed`,`#3b4960`],inputBorder:[`#c4cfdf`,`#4b5a70`]},clay:{body:[`#efe8e1`,`#211b19`],surface:[`#fcf9f5`,`#2d2420`],card:[`#fffdfa`,`#382d27`],muted:[`#f1e8df`,`#40322b`],accent:[`#965239`,`#e6b099`],tint:[`#f3e2d8`,`#50382d`],text:[`#473b34`,`#f4ebe3`],secondary:[`#79695e`,`#c5b2a4`],border:[`#e3d6ca`,`#534139`],inputBorder:[`#d5c6b8`,`#655248`]}},o={"--color-text-primary":[`#3a3a40`,`#f3f3f5`],"--color-icon-primary":[`#3a3a40`,`#f3f3f5`]},s={body:[`#f3f3f5`,`#111015`],surface:[`#ffffff`,`#1b1b1f`],accent:[`#25252a`,`#f3f3f5`],text:[`#3a3a40`,`#f3f3f5`]};function c(e){let t=e=>[e[0],e[1]];return{"--color-background-body":t(e.body),"--color-background-surface":t(e.surface),"--color-background-card":t(e.card),"--color-background-popover":t(e.card),"--color-background-muted":t(e.muted),"--color-accent":t(e.accent),"--color-accent-muted":t(e.tint),"--color-on-accent":e.onAccent?t(e.onAccent):[`#ffffff`,e.body[1]],"--color-text-accent":t(e.text),"--color-icon-accent":t(e.text),"--color-text-primary":t(e.text),"--color-icon-primary":t(e.text),"--color-text-secondary":t(e.secondary),"--color-icon-secondary":t(e.secondary),"--color-border":t(e.border),"--color-border-emphasized":t(e.inputBorder)}}var l=`gitifact-appearance`,u={mode:`system`,palette:`stone`},d=new Set;function f(){try{let e=JSON.parse(window.localStorage.getItem(l)??`null`);return{mode:r.includes(e?.mode)?e.mode:u.mode,palette:i.includes(e?.palette)?e.palette:u.palette}}catch{return u}}var p=f();function m(e){p={...p,...e};try{window.localStorage.setItem(l,JSON.stringify(p))}catch{}d.forEach(e=>e())}window.addEventListener(`storage`,e=>{e.key===l&&(p=f(),d.forEach(e=>e()))});var h=e=>(d.add(e),()=>{d.delete(e)}),g=()=>(0,n.useSyncExternalStore)(h,()=>p),_=()=>p;export{i as a,s as c,c as i,g as l,r as n,m as o,a as r,o as s,_ as t};
@@ -0,0 +1 @@
1
+ import{p as e}from"./index-DaKOj2qL.js";var t=e;export{t as component};
@@ -0,0 +1,4 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{a as r,r as i,s as a}from"./document-CteWuasx.js";import{A as o,Ct as s,E as c,F as l,St as u,V as d,_ as f,a as p,bt as m,cn as h,fn as g,g as _,h as v,ht as y,k as b,l as x,mt as S,rn as C,t as w,u as ee,v as T,xt as E}from"./page-header-rHElc4Gv.js";import{h as D,i as te,n as ne,r as O,s as re}from"./document-C2htw6u5.js";import{g as ie,p as ae}from"./Table-BK5793GP.js";import{t as oe}from"./useMediaQuery-twbHF0pO.js";import{w as k}from"./Icon-DPaLmsmh.js";import{n as se}from"./IconButton-Br-4XhQr.js";import{c as ce}from"./Markdown-CR_AHfxJ.js";import{t as le}from"./Selector-CPFOT7Wj.js";import{i as ue}from"./lazyRouteComponent-DcCLQOpn.js";import{n as A,t as j}from"./Tab-DL11wx1W.js";import{t as M}from"./useInfiniteQuery-guh_cfSb.js";import{i as N,r as P,t as F}from"./Token-BnQGlhSv.js";import{t as I}from"./load-more-YVDkQmcp.js";import{t as de}from"./contributor-Cg_cxulE.js";import{a as fe,i as L,t as R}from"./activity-timeline-CCrOFWbb.js";function z(e){let t=s();return u(t.stores.location,ue(e,t))}var B=e(n(),1),pe=4e6;function V(e,t){let n=e.length,r=t.length;if(n*r>pe)return[...e.map(()=>`del`),...t.map(()=>`add`)];let i=r+1,a=new Uint32Array((n+1)*i);for(let o=n-1;o>=0;o--)for(let n=r-1;n>=0;n--)a[o*i+n]=e[o]===t[n]?a[(o+1)*i+n+1]+1:Math.max(a[(o+1)*i+n],a[o*i+n+1]);let o=[],s=0,c=0;for(;s<n&&c<r;)e[s]===t[c]?(o.push(`same`),s++,c++):a[(s+1)*i+c]>=a[s*i+c+1]?(o.push(`del`),s++):(o.push(`add`),c++);for(;s++<n;)o.push(`del`);for(;c++<r;)o.push(`add`);return o}var H=e=>e===null?[]:e.replace(/\r\n/g,`
2
+ `).replace(/\n$/,``).split(`
3
+ `);function me(e,t){let n=H(e),r=H(t),i=[],a=0,o=0;for(let e of V(n,r))e===`same`?(i.push({type:`same`,text:n[a],old:a+1,new:o+1}),a++,o++):e===`del`?(i.push({type:`del`,text:n[a],old:a+1}),a++):(i.push({type:`add`,text:r[o],new:o+1}),o++);return i}function he(e,t=3){let n=[],r=0,i=(e,t)=>{if(!t.length)return;let r=n[n.length-1];e===`lines`&&r?.kind===`lines`?r.lines.push(...t):n.push({kind:e,lines:t})};for(;r<e.length;){let n=r,a=e[r].type===`same`;for(;n<e.length&&e[n].type===`same`===a;)n++;let o=e.slice(r,n);if(!a)i(`lines`,o);else{let a=r===0?0:t,s=n===e.length?0:t;o.length>a+s+1?(i(`lines`,o.slice(0,a)),i(`fold`,o.slice(a,o.length-s)),i(`lines`,o.slice(o.length-s))):i(`lines`,o)}r=n}return n}var U=e=>e.match(/\s+|[\p{L}\p{N}_]+|[^\s\p{L}\p{N}_]/gu)??[];function ge(e,t){let n=U(e),r=U(t),i={before:[],after:[]},a=0,o=0,s=(e,t,n)=>{let r=e[e.length-1];r&&r.changed===n?r.text+=t:e.push({text:t,changed:n})};for(let e of V(n,r))e===`same`?(s(i.before,n[a],!1),s(i.after,r[o],!1),a++,o++):e===`del`?s(i.before,n[a++],!0):s(i.after,r[o++],!0);return i}function W(e){let t=[],n=0;for(;n<e.length;){if(e[n].type===`same`){t.push([e[n],e[n]]),n++;continue}let r=[],i=[];for(;n<e.length&&e[n].type!==`same`;)(e[n].type===`del`?r:i).push(e[n++]);for(let e=0;e<Math.max(r.length,i.length);e++)t.push([r[e],i[e]])}return t}var G={frame:`_frame_196wm_4`,diff:`_diff_196wm_3`,numberColumn:`_numberColumn_196wm_8`,signColumn:`_signColumn_196wm_9`,number:`_number_196wm_8`,numberRight:`_numberRight_196wm_11`,split:`_split_196wm_11`,sign:`_sign_196wm_9`,code:`_code_196wm_14`,del:`_del_196wm_15`,add:`_add_196wm_16`,empty:`_empty_196wm_19`,word:`_word_196wm_21`,foldRow:`_foldRow_196wm_23`,"token-keyword":`_token-keyword_196wm_28`,"token-string":`_token-string_196wm_29`,"token-comment":`_token-comment_196wm_30`,"token-number":`_token-number_196wm_31`,"token-function":`_token-function_196wm_32`,"token-type":`_token-type_196wm_33`,"token-tag":`_token-tag_196wm_34`,"token-attribute":`_token-attribute_196wm_35`,"token-property":`_token-property_196wm_36`,"token-operator":`_token-operator_196wm_37`,"token-constant":`_token-constant_196wm_38`,"token-punctuation":`_token-punctuation_196wm_39`,"token-variable":`_token-variable_196wm_40`},K=t();function _e(e){let t=new Map;for(let[n,r]of W(e)){if(!n||!r||n===r)continue;let e=ge(n.text,r.text);e.after.filter(e=>!e.changed).reduce((e,t)=>e+t.text.trim().length,0)*4<Math.max(n.text.trim().length,r.text.trim().length)||(t.set(n,e.before),t.set(r,e.after))}return t}function ve(e){return{ts:`typescript`,tsx:`tsx`,mts:`typescript`,cts:`typescript`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jsx:`jsx`,json:`json`,css:`css`,html:`html`,md:`markdown`,yml:`yaml`,yaml:`yaml`,sh:`bash`,bash:`bash`,py:`python`,sql:`sql`,toml:`toml`}[/\.([A-Za-z0-9]+)$/.exec(e??``)?.[1]?.toLowerCase()??``]??`plaintext`}function ye({text:e,tokens:t}){if(!t?.length)return(0,K.jsx)(K.Fragment,{children:e});let n=[],r=0;for(let i of t)i.start>r&&n.push(e.slice(r,i.start)),n.push((0,K.jsx)(`span`,{className:G[`token-`+i.type]??``,children:e.slice(i.start,i.end)},i.start)),r=i.end;return r<e.length&&n.push(e.slice(r)),(0,K.jsx)(K.Fragment,{children:n.map((e,t)=>(0,K.jsx)(B.Fragment,{children:e},t))})}function q({line:e,marks:t,tokens:n}){if(!e)return null;let r=t.get(e);return r?(0,K.jsx)(K.Fragment,{children:r.map((e,t)=>e.changed?(0,K.jsx)(`mark`,{className:G.word,children:e.text},t):(0,K.jsx)(B.Fragment,{children:e.text},t))}):(0,K.jsx)(ye,{text:e.text||` `,tokens:n.get(e)})}var be={same:``,del:`−`,add:`+`};function J({before:e,after:t,label:n,language:r=`plaintext`}){g();let i=oe(`(min-width: 1024px)`)?`split`:`unified`,[a,o]=(0,B.useState)(new Set),s=(0,B.useMemo)(()=>me(e,t),[e,t]),c=(0,B.useMemo)(()=>_e(s),[s]),l=(0,B.useMemo)(()=>{let n=new Map;for(let[i,a]of[[e,`del`],[t,`add`]]){if(i===null)continue;let e=ce(i.replace(/\r\n/g,`
4
+ `).replace(/\n$/,``),r),t=0;for(let r of s)if(r.type===`same`||r.type===a){let i=e[t++];i&&n.set(r,i)}}return n},[e,t,r,s]),u=(0,B.useMemo)(()=>he(s),[s]);return s.some(e=>e.type!==`same`)?(0,K.jsx)(y,{gap:0,className:G.frame,children:(0,K.jsxs)(`table`,{className:`${G.diff} ${i===`split`?G.split:``}`,"aria-label":n,children:[(0,K.jsx)(`colgroup`,{children:(i===`split`?[`number`,`code`,`number`,`code`]:[`number`,`number`,`sign`,`code`]).map((e,t)=>(0,K.jsx)(`col`,{className:e===`number`?G.numberColumn:e===`sign`?G.signColumn:void 0},t))}),(0,K.jsx)(`tbody`,{children:u.map((e,t)=>e.kind===`fold`&&!a.has(t)?(0,K.jsx)(`tr`,{className:G.foldRow,children:(0,K.jsx)(`td`,{colSpan:4,children:(0,K.jsx)(se,{variant:`ghost`,size:`sm`,label:h(`diff.unfold`,{count:e.lines.length}),onClick:()=>o(new Set(a).add(t))})})},t):i===`split`?W(e.lines).map(([e,n],r)=>(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{className:`${G.number} ${e?G[e.type]:G.empty}`,children:e?.old??``}),(0,K.jsx)(`td`,{className:`${G.code} ${e?G[e.type]:G.empty}`,children:(0,K.jsx)(q,{line:e,marks:c,tokens:l})}),(0,K.jsx)(`td`,{className:`${G.number} ${G.numberRight} ${n?G[n.type]:G.empty}`,children:n?.new??``}),(0,K.jsx)(`td`,{className:`${G.code} ${n?G[n.type]:G.empty}`,children:(0,K.jsx)(q,{line:n,marks:c,tokens:l})})]},t+`:`+r)):e.lines.map((e,n)=>(0,K.jsxs)(`tr`,{className:G[e.type],children:[(0,K.jsx)(`td`,{className:G.number,children:e.old??``}),(0,K.jsx)(`td`,{className:`${G.number} ${G.numberRight}`,children:e.new??``}),(0,K.jsx)(`td`,{className:G.sign,"aria-hidden":!0,children:be[e.type]}),(0,K.jsx)(`td`,{className:G.code,children:(0,K.jsx)(q,{line:e,marks:c,tokens:l})})]},t+`:`+n)))})]})}):(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`diff.bodyUnchanged`)})}var Y={fields:`_fields_17s6f_2`,field:`_field_17s6f_2`,fieldName:`_fieldName_17s6f_4`,fieldBefore:`_fieldBefore_17s6f_5`,fieldAfter:`_fieldAfter_17s6f_6`},xe=e=>e.id??e.url??e.title??``;function Se(e,t,n){let r=e=>e.title??(e.id?n(e.id):e.url)??``,i=[],a=(e,t,n)=>{t!==n&&i.push({name:e,before:[t||`—`],after:[n||`—`],list:!1})},o=(e,t,n,r,a)=>{let o=new Set(t.map(r)),s=new Set(n.map(r)),c=t.filter(e=>!s.has(r(e))).map(a),l=n.filter(e=>!o.has(r(e))).map(a);(c.length||l.length)&&i.push({name:e,before:c,after:l,list:!0})};return a(`title`,e.title,t.title),a(`description`,e.description,t.description),a(`order`,e.order?.toString()??``,t.order?.toString()??``),o(`requirements`,e.requirements??[],t.requirements??[],e=>e,n),o(`sources`,e.sources??[],t.sources??[],xe,r),a(`path`,e.path,t.path),i}function Ce({before:e,after:t,features:n}){g();let r=a(),i=Se(e,t,e=>n.flatMap(e=>e.requirements).find(t=>t.id===e)?.title??r.instructions?.find(t=>t.id===e)?.title??e);return(0,K.jsxs)(y,{gap:4,children:[!!i.length&&(0,K.jsx)(y,{as:`section`,gap:2,"aria-label":h(`diff.fields`),className:Y.fields,children:i.map(e=>(0,K.jsxs)(S,{gap:2,wrap:`wrap`,className:Y.field,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:Y.fieldName,children:e.name}),e.list?(0,K.jsxs)(K.Fragment,{children:[e.before.map(e=>(0,K.jsx)(`del`,{className:Y.fieldBefore,children:e},`-`+e)),e.after.map(e=>(0,K.jsx)(`ins`,{className:Y.fieldAfter,children:e},`+`+e))]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`del`,{className:Y.fieldBefore,children:e.before[0]}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:`→`}),(0,K.jsx)(`ins`,{className:Y.fieldAfter,children:e.after[0]})]})]},e.name))}),(0,K.jsx)(J,{before:e.body,after:t.body,label:h(`diff.body`),language:`markdown`})]})}var X={commitPage:`_commitPage_18dvh_2`,commitHeading:`_commitHeading_18dvh_3`,commitMeta:`_commitMeta_18dvh_5`,commitHash:`_commitHash_18dvh_6`,commitHashLink:`_commitHashLink_18dvh_7`,commitSection:`_commitSection_18dvh_8`,reason:`_reason_18dvh_9`,reasonRecords:`_reasonRecords_18dvh_10`,reasonRecord:`_reasonRecord_18dvh_10`,change:`_change_18dvh_15`,changeHead:`_changeHead_18dvh_17`,changePlace:`_changePlace_18dvh_19`,readingSection:`_readingSection_18dvh_21`,sourceRow:`_sourceRow_18dvh_22`,sourcePath:`_sourcePath_18dvh_23`,sourceAdded:`_sourceAdded_18dvh_24`,sourceRemoved:`_sourceRemoved_18dvh_25`,recordList:`_recordList_18dvh_27`,recordItem:`_recordItem_18dvh_28`,recordLink:`_recordLink_18dvh_30`,recordItemMeta:`_recordItemMeta_18dvh_32`,recordCommit:`_recordCommit_18dvh_34`,recordCommitMessage:`_recordCommitMessage_18dvh_35`,recordSections:`_recordSections_18dvh_36`,documentRow:`_documentRow_18dvh_39`,documentTitle:`_documentTitle_18dvh_40`,commitPanel:`_commitPanel_18dvh_42`,recordEntry:`_recordEntry_18dvh_43`,recordItemHead:`_recordItemHead_18dvh_45`,split:`_split_18dvh_48`,splitList:`_splitList_18dvh_49`,splitContent:`_splitContent_18dvh_53`,splitPicker:`_splitPicker_18dvh_54`,splitPickerMore:`_splitPickerMore_18dvh_54`,recordCommitLinks:`_recordCommitLinks_18dvh_62`,commitBack:`_commitBack_18dvh_63`};function we({change:{event:e,before:t,after:n},features:r,head:a}){g();let o=n??t,s=t=>e.kind===`design`?(0,K.jsx)(te,{design:t,path:t.path,features:r}):(0,K.jsx)(i,{headingLevelStart:4,path:t.path,children:t.body});return(0,K.jsxs)(y,{gap:4,children:[(0,K.jsxs)(S,{gap:3,wrap:`wrap`,className:X.changePlace,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:e.id}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:o?.path}),e.kind===`wiki`?null:e.kind===`instruction`?n&&(0,K.jsx)(m,{to:`/instructions/$instructionId`,params:{instructionId:e.id},children:h(`event.currentInstruction`)}):(0,K.jsx)(m,{to:`/features/$featureId`,params:{featureId:o?.specId??``},search:{...e.kind===`feature`?{}:{selected:e.id,tab:e.kind===`design`?`design`:`requirements`}},...e.kind===`feature`?{}:{hash:e.id},children:h(`event.currentFeature`)}),a&&(0,K.jsx)(m,{to:`/records`,search:{q:e.id},children:h(`commit.documentHistory`)})]}),t&&n?(0,K.jsx)(Ce,{before:t,after:n,features:r}):n?s(n):t?s(t):(0,K.jsx)(k,{color:`secondary`,children:h(`event.noContent`)})]})}function Te({change:e,features:t,head:n,current:r}){g();let i=e.after??e.before;return(0,K.jsxs)(y,{id:e.event.id,as:`section`,gap:4,"aria-label":i?.title??e.event.id,className:X.change,...r?{"aria-current":`location`}:{},children:[(0,K.jsxs)(S,{gap:2,wrap:`wrap`,className:X.changeHead,children:[(0,K.jsx)(ne,{event:e.event}),(0,K.jsx)(C,{level:3,children:i?.title??e.event.id})]}),(0,K.jsx)(we,{change:e,features:t,head:n})]})}function Ee({id:e,useChange:t,features:n,head:r}){g();let i=t(e);return i.error?(0,K.jsx)(P,{error:i.error,retry:()=>{i.refetch()}}):i.data?(0,K.jsx)(Te,{change:i.data,features:n,head:r,current:!1}):(0,K.jsx)(P,{})}function De({label:e,summary:t,footer:n,items:r,children:i}){let a=E(),o=r.find(e=>e.selected);return(0,K.jsxs)(S,{gap:0,className:X.split,children:[(0,K.jsxs)(y,{as:`nav`,gap:2,"aria-label":e,className:X.splitList,children:[t,(0,K.jsx)(ie,{density:`compact`,children:r.map(e=>(0,K.jsx)(ae,{label:e.label,description:e.description,href:e.href,isSelected:e.selected,startContent:e.start,endContent:e.end},e.key))}),n]}),(0,K.jsxs)(y,{gap:3,className:X.splitContent,children:[(0,K.jsx)(y,{gap:0,className:X.splitPicker,children:(0,K.jsx)(le,{label:e,isLabelHidden:!0,width:`100%`,value:o?.key??``,options:r.map(e=>({value:e.key,label:e.label,...e.description?{description:e.description}:{}})),onChange:e=>{let t=r.find(t=>t.key===e);t&&a({href:t.href})}})}),n&&(0,K.jsx)(y,{gap:0,className:X.splitPickerMore,children:n}),i]})]})}function Z({label:e,changes:t,useChange:n,features:r,head:i,documentId:a,href:o,more:s}){g();let c=t.find(e=>e.id===a)??t[0];return c?(0,K.jsx)(De,{label:e,footer:s,items:t.map(e=>({key:e.key,label:e.title,description:e.types.map(e=>h(`change.${e}`)).join(` · `),start:(0,K.jsx)(O,{kind:e.kind}),href:o(e.id),selected:e===c})),children:(0,K.jsx)(Ee,{id:c.id,useChange:n,features:r,head:i},c.key)}):null}var Oe=e=>({key:e.key,id:e.id,kind:e.kind,types:e.types,title:(e.after??e.before)?.title??e.id});function ke(e){let t=e?.pages,n=t?.[0];return n?{...n,changes:t.flatMap(e=>e.changes)}:void 0}var Ae=(e,t)=>function(n){return d(v(e,t,n))};function je({session:e,commit:t,file:n}){g();let r=d(_(e,t,n.path));return r.error?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,role:`alert`,children:h(`source.fileFailed`)}):r.data?r.data.binary?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`source.binary`)}):r.data.tooLarge?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`source.tooLarge`)}):(0,K.jsx)(J,{before:r.data.before,after:r.data.after,label:h(`source.fileDiff`,{path:n.path}),language:ve(n.path)}):(0,K.jsx)(P,{placeholder:(0,K.jsx)(N,{label:h(`source.fileLoading`)})})}var Me={added:`green`,modified:`blue`,deleted:`red`,renamed:`purple`},Ne={added:`A`,modified:`M`,deleted:`D`,renamed:`R`},Pe=()=>({added:h(`source.added`),modified:h(`source.modified`),deleted:h(`source.deleted`),renamed:h(`source.renamed`)}),Fe=e=>{let t=e.lastIndexOf(`/`);return t<0?{name:e,folder:``}:{name:e.slice(t+1),folder:e.slice(0,t)}};function Ie({session:e,commit:t,file:n,href:r}){g();let i=M(f(e,t)),a=i.data?.pages.flatMap(e=>e.files)??[],o=a.find(e=>e.path===n),s=d({..._(e,t,n??``),enabled:!!i.data&&!!n&&!o});if(i.error)return(0,K.jsx)(k,{type:`supporting`,color:`secondary`,role:`alert`,children:h(`source.listFailed`)});if(!i.data)return(0,K.jsx)(P,{placeholder:(0,K.jsx)(N,{label:h(`source.listLoading`)})});if(!a.length)return(0,K.jsx)(k,{color:`secondary`,children:h(`source.none`)});let c=o??(n?s.data?.file:a[0]);return(0,K.jsx)(De,{label:h(`source.title`),summary:(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`source.count`,{count:i.data.pages[0].total})}),footer:(0,K.jsx)(I,{label:h(`source.more`),query:i}),items:a.map(e=>{let{name:t,folder:n}=Fe(e.path);return{key:e.path,label:t,description:e.previousPath?`${e.previousPath} →`:n||void 0,href:r(e.path),selected:e===c,start:(0,K.jsx)(F,{label:Ne[e.status],color:Me[e.status],size:`sm`}),end:(0,K.jsxs)(S,{gap:1,children:[e.additions!==null&&(0,K.jsxs)(k,{type:`supporting`,className:X.sourceAdded,children:[`+`,e.additions]}),e.deletions!==null&&(0,K.jsxs)(k,{type:`supporting`,className:X.sourceRemoved,children:[`−`,e.deletions]})]})}}),children:c?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(S,{gap:2,className:X.sourceRow,children:[(0,K.jsx)(F,{label:Pe()[c.status],color:Me[c.status],size:`sm`}),(0,K.jsx)(k,{className:X.sourcePath,children:c.previousPath?`${c.previousPath} → ${c.path}`:c.path})]}),(0,K.jsx)(je,{session:e,commit:t,file:c},c.path)]}):s.error?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,role:`alert`,children:h(`source.fileFailed`)}):(0,K.jsx)(P,{placeholder:(0,K.jsx)(N,{label:h(`source.fileLoading`)})})})}function Le({title:e,commit:t,hash:n,children:r}){return g(),(0,K.jsxs)(y,{gap:4,className:X.commitHeading,children:[(0,K.jsx)(C,{level:1,children:e}),(0,K.jsxs)(S,{gap:4,wrap:`wrap`,className:X.commitMeta,children:[(0,K.jsx)(de,{name:t.author,email:t.email}),(0,K.jsx)(re,{value:t.date,format:`relative`}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:new Date(t.date).toLocaleString()}),n??(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:X.commitHash,children:t.commit.slice(0,12)}),t.committer!==t.author&&(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`event.committer`,{name:t.committer})})]}),r]})}function Re({commit:e,search:t,documentId:n,session:r,features:i,head:a}){g();let o=E(),s=M(T(r,e)),c=M(f(r,e)),l=ke((0,B.useDeferredValue)(s.data)),u=l?fe(l.changes):[],d=u.filter(e=>e.record),_=t.tab??(n||!d.length?`documents`:`records`);if((0,B.useEffect)(()=>{l&&n&&_===`documents`&&document.getElementById(n)?.scrollIntoView({block:`start`})},[l,n,_]),s.error)return(0,K.jsx)(P,{error:s.error,retry:()=>{s.refetch()}});if(!l)return(0,K.jsx)(P,{});let v=u.find(e=>!e.record&&e.missing),b=t=>{o({to:`/records/commits/$commit`,params:{commit:e},search:{tab:t}})},x=e=>e===void 0?``:` ${e}`;return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`commit.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsx)(Le,{title:l.message,commit:l}),(0,K.jsxs)(A,{role:`tablist`,value:_,onChange:b,hasDivider:!0,children:[(0,K.jsx)(j,{value:`records`,label:h(`commit.tab.records`)+x(d.length),panelId:`commit-records`}),(0,K.jsx)(j,{value:`documents`,label:h(`commit.tab.documents`)+x(l.total),panelId:`commit-documents`}),(0,K.jsx)(j,{value:`code`,label:h(`commit.tab.code`)+x(c.data?.pages[0]?.total),panelId:`commit-code`})]}),_===`records`&&(0,K.jsxs)(y,{id:`commit-records`,role:`tabpanel`,"aria-label":h(`event.records`),gap:3,className:X.commitPanel,children:[d.length?(0,K.jsx)(y,{as:`ul`,gap:0,className:X.recordList,children:d.map(e=>{let t=L(e.record);return(0,K.jsxs)(y,{as:`li`,gap:1,className:X.recordEntry,children:[(0,K.jsxs)(S,{gap:3,className:X.recordItemHead,children:[(0,K.jsx)(m,{to:`/records/$recordId`,params:{recordId:e.record.id},className:X.recordLink,children:e.record.title}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:X.recordItemMeta,children:h(`activity.recordCount`,{count:e.events.length})})]}),t&&(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:t})]},e.key)})}):(0,K.jsx)(k,{color:`secondary`,children:h(`event.noRecords`)}),(0,K.jsx)(I,{label:h(`commit.moreRecords`),query:s}),v&&(0,K.jsxs)(y,{gap:2,children:[(0,K.jsx)(k,{color:`secondary`,children:h(`event.noRecord`)}),(0,K.jsx)(S,{gap:2,wrap:`wrap`,className:X.reasonRecords,children:v.events.map(t=>(0,K.jsxs)(m,{to:`/records/commits/$commit`,params:{commit:e},search:{tab:`documents`},hash:t.id,className:X.reasonRecord,children:[(0,K.jsx)(O,{kind:t.kind}),(t.after??t.before)?.title??t.id]},t.key))})]})]}),_===`documents`&&(0,K.jsx)(y,{id:`commit-documents`,role:`tabpanel`,"aria-label":h(`commit.documents`),gap:0,className:X.commitPanel,children:l.changes.length?(0,K.jsx)(Z,{label:h(`commit.documents`),changes:l.changes.map(Oe),useChange:Ae(r,e),features:i,head:a,documentId:n,more:(0,K.jsx)(I,{label:h(`commit.moreDocuments`),query:s}),href:t=>`/records/commits/${encodeURIComponent(e)}?tab=documents#${encodeURIComponent(t)}`}):(0,K.jsx)(p,{isCompact:!0,title:h(`commit.noDocuments`),description:h(`commit.noDocumentsDescription`)})}),_===`code`&&(0,K.jsx)(y,{id:`commit-code`,role:`tabpanel`,"aria-label":h(`source.title`),gap:0,className:X.commitPanel,children:(0,K.jsx)(Ie,{session:r,commit:e,file:t.file,href:t=>`/records/commits/${encodeURIComponent(e)}?tab=code&file=${encodeURIComponent(t)}`})})]})}function ze({commit:e,search:t}){g();let n=z({select:e=>e.hash})||void 0;return(0,K.jsx)(D,{header:w,title:h(`nav.history`),root:`/records`,hasTitle:!1,isWide:!0,trail:()=>[{label:e.slice(0,12)}],children:({checkout:r,session:i})=>(0,K.jsx)(Re,{commit:e,search:t,documentId:n,session:i,features:r.index.features,head:r.head})})}function Be({session:e,commit:t,others:n}){g();let r=M(f(e,t)).data?.pages[0]?.total;return!n&&!r?null:(0,K.jsxs)(S,{gap:4,wrap:`wrap`,className:X.recordCommitLinks,children:[n>0&&(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:t},search:{tab:`records`},children:h(`record.otherRecords`,{count:n})}),!!r&&(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:t},search:{tab:`code`},children:h(`record.codeFiles`,{count:r})})]})}function Ve({record:e}){return g(),(0,K.jsx)(y,{gap:6,className:X.recordSections,children:e.sections.map(e=>(0,K.jsxs)(y,{as:`section`,gap:2,"aria-label":R[e.key](),children:[(0,K.jsx)(C,{level:2,children:R[e.key]()}),(0,K.jsx)(i,{headingLevelStart:3,children:e.body})]},e.key))})}var Q=e=>({key:e.id,id:e.id,kind:e.kind,types:e.types,title:e.title}),He=e=>function(t){let n=d(b(e,t));return{data:n.data&&{event:Q(n.data.change),before:n.data.before,after:n.data.after},error:n.error,refetch:n.refetch}};function Ue({recordId:e,documentId:t,session:n,features:r,head:i}){g();let a=d(o(n));if(a.error)return(0,K.jsx)(P,{error:a.error,retry:()=>{a.refetch()}});if(!a.data)return(0,K.jsx)(P,{});let s=a.data.records.find(t=>t.id===e);if(!s)return(0,K.jsx)(p,{isCompact:!0,title:h(`record.missing`)});let c=a.data.changes.filter(e=>s.docs.includes(e.id)).map(Q);return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`record.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsxs)(y,{gap:4,className:X.commitHeading,children:[(0,K.jsx)(C,{level:1,children:s.title}),(0,K.jsxs)(S,{gap:2,className:X.recordCommit,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:s.id}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,"aria-hidden":!0,children:`·`}),(0,K.jsx)(m,{to:`/records/working`,className:X.recordCommitMessage,children:h(`working.title`)}),s.draft&&(0,K.jsx)(F,{label:h(`working.draft`),color:`yellow`,size:`sm`})]})]}),(0,K.jsx)(Ve,{record:s}),(0,K.jsxs)(y,{as:`section`,gap:3,"aria-label":h(`record.documents`),className:X.commitSection,children:[(0,K.jsx)(C,{level:2,children:h(`record.documents`)}),c.length?(0,K.jsx)(Z,{label:h(`record.documents`),changes:c,useChange:He(n),features:r,head:i,documentId:t,href:t=>`/records/${encodeURIComponent(e)}#${encodeURIComponent(t)}`}):(0,K.jsx)(k,{color:`secondary`,children:h(`working.noExplained`)})]})]})}function We({recordId:e,documentId:t,session:n,features:r,head:i}){g();let a=d(c(n,i,e)),o=a.data?.commit,s=M({...T(n,o??``,e),enabled:!!o}),u=ke((0,B.useDeferredValue)(s.data));if((0,B.useEffect)(()=>{u&&t&&document.getElementById(t)?.scrollIntoView({block:`start`})},[u,t]),a.error instanceof l&&a.error.code===`NOT_FOUND`)return(0,K.jsx)(Ue,{recordId:e,documentId:t,session:n,features:r,head:i});let f=a.error??s.error;if(f)return(0,K.jsx)(P,{error:f,retry:()=>{a.error?a.refetch():s.refetch()}});if(!u||!o||!a.data)return(0,K.jsx)(P,{});let p=a.data.record,_=u.changes.map(Oe);return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`record.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsxs)(Le,{title:p.title,commit:u,hash:(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:o},className:X.commitHashLink,children:o.slice(0,12)}),children:[(0,K.jsxs)(S,{gap:2,className:X.recordCommit,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:p.id}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,"aria-hidden":!0,children:`·`}),(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:o},className:X.recordCommitMessage,children:u.message})]}),(0,K.jsx)(Be,{session:n,commit:o,others:a.data.others})]}),(0,K.jsx)(Ve,{record:p}),(0,K.jsxs)(y,{as:`section`,gap:3,"aria-label":h(`record.documents`),className:X.commitSection,children:[(0,K.jsx)(C,{level:2,children:h(`record.documents`)}),(0,K.jsx)(Z,{label:h(`record.documents`),changes:_,useChange:Ae(n,o),features:r,head:i,documentId:t,more:(0,K.jsx)(I,{label:h(`commit.moreDocuments`),query:s}),href:t=>`/records/${encodeURIComponent(e)}#${encodeURIComponent(t)}`})]})]})}function Ge({recordId:e}){g();let t=z({select:e=>e.hash})||void 0;return(0,K.jsx)(D,{header:w,title:h(`nav.history`),root:`/records`,hasTitle:!1,isWide:!0,trail:()=>[{label:e}],children:({checkout:n,session:r})=>n.head?(0,K.jsx)(We,{recordId:e,documentId:t,session:r,features:n.index.features,head:n.head}):(0,K.jsx)(p,{kind:`empty`,title:h(`history.emptyTitle`),description:h(`history.emptyDescription`)})})}function Ke({search:e,documentId:t,session:n,features:r,head:i}){g();let a=E(),s=d(o(n)),c=s.data;if(s.error)return(0,K.jsx)(P,{error:s.error,retry:()=>{s.refetch()}});if(!c)return(0,K.jsx)(P,{});let l=e.tab??(t||!c.records.length?`documents`:`records`),u=c.changes.filter(e=>c.withoutRecord.includes(e.id));return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`working.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsxs)(y,{gap:2,className:X.commitHeading,children:[(0,K.jsx)(C,{level:1,children:h(`working.title`)}),(0,K.jsx)(k,{color:`secondary`,children:h(`working.description`)})]}),(0,K.jsxs)(A,{role:`tablist`,value:l,onChange:e=>{a({to:`/records/working`,search:{tab:e}})},hasDivider:!0,children:[(0,K.jsx)(j,{value:`records`,label:`${h(`commit.tab.records`)} ${c.records.length}`,panelId:`working-records`}),(0,K.jsx)(j,{value:`documents`,label:`${h(`commit.tab.documents`)} ${c.changes.length}`,panelId:`working-documents`})]}),l===`records`&&(0,K.jsxs)(y,{id:`working-records`,role:`tabpanel`,"aria-label":h(`event.records`),gap:3,className:X.commitPanel,children:[c.records.length?(0,K.jsx)(y,{as:`ul`,gap:0,className:X.recordList,children:c.records.map(e=>{let t=L(e);return(0,K.jsxs)(y,{as:`li`,gap:1,className:X.recordEntry,children:[(0,K.jsxs)(S,{gap:3,className:X.recordItemHead,children:[(0,K.jsxs)(S,{gap:2,vAlign:`center`,children:[(0,K.jsx)(m,{to:`/records/$recordId`,params:{recordId:e.id},className:X.recordLink,children:e.title}),e.draft&&(0,K.jsx)(F,{label:h(`working.draft`),color:`yellow`,size:`sm`})]}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:X.recordItemMeta,children:h(`activity.recordCount`,{count:e.docs.length})})]}),t&&(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:t})]},e.id)})}):(0,K.jsx)(k,{color:`secondary`,children:h(`working.noRecords`)}),!!u.length&&(0,K.jsxs)(y,{gap:2,children:[(0,K.jsx)(k,{color:`secondary`,children:h(`event.noRecord`)}),(0,K.jsx)(S,{gap:2,wrap:`wrap`,className:X.reasonRecords,children:u.map(e=>(0,K.jsxs)(m,{to:`/records/working`,search:{tab:`documents`},hash:e.id,className:X.reasonRecord,children:[(0,K.jsx)(O,{kind:e.kind}),e.title]},e.id))})]})]}),l===`documents`&&(0,K.jsx)(y,{id:`working-documents`,role:`tabpanel`,"aria-label":h(`commit.documents`),gap:0,className:X.commitPanel,children:c.changes.length?(0,K.jsx)(Z,{label:h(`commit.documents`),changes:c.changes.map(Q),useChange:He(n),features:r,head:i,documentId:t,href:e=>`/records/working?tab=documents#${encodeURIComponent(e)}`}):(0,K.jsx)(p,{isCompact:!0,title:h(`working.noDocuments`)})})]})}function qe({search:e}){g();let t=z({select:e=>e.hash})||void 0;return(0,K.jsx)(D,{header:w,title:h(`nav.history`),root:`/records`,hasTitle:!1,isWide:!0,trail:()=>[{label:h(`working.title`)}],children:({checkout:n,session:r})=>(0,K.jsx)(Ke,{search:e,documentId:t,session:r,features:n.index.features,head:n.head})})}var Je=(e,t)=>{let n=decodeURIComponent(t);return e.includes(n)?n:e[0]};async function $(e,t,n,i,a){let o=Je(i,a);if(!o)return;let s=await e.ensureQueryData(v(t,n,o)).catch(()=>void 0);s&&await r([s.before?.body,s.after?.body])}async function Ye(e,t,n,r){let{session:i}=await x(e);if(!i)return;let[a]=await Promise.all([e.ensureInfiniteQueryData(T(i,t)).catch(()=>void 0),ee(e.ensureInfiniteQueryData(f(i,t)))]),o=a?.pages[0];o&&(n??(r||!o.changes.some(e=>e.records.length)?`documents`:`records`))===`documents`&&await $(e,i,t,o.changes.map(e=>e.id),r)}async function Xe(e,t,n){let{session:r,checkout:i}=await x(e);if(!r||!i?.head)return;let a=await e.ensureQueryData(c(r,i.head,t)).catch(()=>void 0);if(!a){await ee(e.ensureQueryData(o(r)));return}let s=(await e.ensureInfiniteQueryData(T(r,a.commit,t)).catch(()=>void 0))?.pages[0];s&&await $(e,r,a.commit,s.changes.map(e=>e.id),n)}async function Ze(e,t,n){let{session:i}=await x(e);if(!i)return;let a=await e.ensureQueryData(o(i)).catch(()=>void 0);if(!a||(t??(n||!a.records.length?`documents`:`records`))!==`documents`)return;let s=Je(a.changes.map(e=>e.id),n),c=s?await e.ensureQueryData(b(i,s)).catch(()=>void 0):void 0;c&&await r([c.before?.body,c.after?.body])}export{Ge as a,qe as i,Xe as n,ze as o,Ze as r,Ye as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,l as n,n as r,q as i}from"./themeProps-CkLe5zXY.js";import{n as ee}from"./useIsomorphicLayoutEffect-BiEJxDg_.js";import{bt as a,mt as o}from"./page-header-rHElc4Gv.js";import{C as s}from"./Table-BK5793GP.js";import{a as c}from"./useMediaQuery-twbHF0pO.js";import{E as te,W as ne,_ as re}from"./Icon-DPaLmsmh.js";import{r as ie}from"./IconButton-Br-4XhQr.js";import{t as ae}from"./useDevWarning-Dudfg3qF.js";var l=e(i(),1),oe=(0,l.createContext)(36);oe.displayName=`AvatarSizeContext`;var u=(0,l.createContext)(null);u.displayName=`AvatarStatusLabelContext`;var d=(0,l.createContext)(null);d.displayName=`AvatarGroupContext`;function f(){return(0,l.use)(d)}var p=n(),m=(1-1/Math.SQRT2)/2,h=.4;function g(e){if(typeof e==`number`)return e;switch(e){case`xsm`:return 20;case`sm`:return 24;case`md`:return 36;case`lg`:return 48;case`xl`:return 128}}var _={circle:{"--_avatar-radius":`xeincmr`,$$css:!0},rounded:{"--_avatar-radius":`xdarwi0`,$$css:!0},square:{"--_avatar-radius":`x877142`,$$css:!0}},v={wrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x3nfvp2`,kmuXW:`x2lah0s`,kaIpWk:`xbc78cj`,$$css:!0},fallback:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,kWkggS:`x17x4s8c`,kMwMTN:`xv1l7n4`,kMv6JI:`x9ynric`,k63SB2:`x1e4wzip`,kP9fke:`xtvhhri`,$$css:!0},status:{kVAEAm:`x10l6tqk`,$$css:!0},interactive:{kysU6D:`xjyslct`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMwMTN:`x1heor9g`,kVVagm:`xln7xf2`,kybGjl:`x1hl2dhg`,kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xbc78cj`,$$css:!0}},y={kGuDYH:`xdmh292`,$$css:!0},b={krVfgx:`x1nqzi6q`,kt4wiu:`xqxgn94`,k3aq6I:`x4v1no5 xqgnvz5`,$$css:!0},x={size:e=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],fontSize:e=>[y,{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e*h}px`)}],statusPositionCircle:e=>[b,{"--x-bottom":(e=>typeof e==`number`?e+`px`:e??void 0)(e*m),"--x-insetInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e*m)}],statusPositionCorner:{krVfgx:`x1ey2m1c`,kt4wiu:`xtijo5x`,k3aq6I:`xv8yid9 x10fxb7p`,$$css:!0}},se={ring:{kMzoRj:`xdh2fpr`,ksu8eU:`x1y0btm7`,kVAM5u:`x1touxvs`,kWkggS:`x10xzikg`,kB7OPa:`x1afcbsf`,$$css:!0},overlap:{keTefX:`x1sik18w`,$$css:!0}},ce={"--_avatar-group-overlap":`xlz5hwt`,$$css:!0},le={overlap:e=>[ce,{"--x---_avatar-group-overlap":`${e}px`==null?void 0:`${e}px`}]};function ue(e){let t=e.trim().split(/\s+/);return t.length===0?``:t.length===1?s(t[0]).toUpperCase():(s(t[0])+s(t[t.length-1])).toUpperCase()}function S(e){if(!(0,l.isValidElement)(e))return;let{label:t}=e.props;return typeof t==`string`&&t!==``?t:void 0}function C(e){return typeof e==`string`&&e.trim()!==``?e:void 0}function de(e){return e!=null&&e!==``?{role:`img`,"aria-label":e}:{role:`presentation`,"aria-hidden":`true`}}function w(e,t,n){return t&&n?e(`@astryx.avatar.nameWithStatus`,{name:t,status:n}):t||n}function T(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function fe({size:e}){return(0,p.jsx)(`svg`,{width:e*.6,height:e*.6,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,p.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})})}function E({alt:e,"data-testid":n,fallbackSrc:i,name:a,size:o=`md`,shape:s=`circle`,src:d,status:m,tooltip:h=!0,href:y,as:b,target:ce,rel:E,onClick:D,xstyle:O,className:k,style:A,ref:j,...M}){let[pe,me]=(0,l.useState)(void 0),[he,ge]=(0,l.useState)(void 0),N=d&&pe!==d,P=!N&&i&&he!==i,F=C(a),_e=C(e),ve=!N&&!P&&F,ye=!N&&!P&&!F,I=re(),L=_e||F,R=w(I,L,S(m)),be=de(R),z=R?{"aria-label":R}:void 0,B=f(),V=B?.size??o,H=B?.shape??s,U=(0,l.useMemo)(()=>g(V),[V]),W=(h===!1?void 0:typeof h==`string`?h:F)?.trim(),G=W!=null&&W!==``,xe=typeof h==`string`,K=ee({placement:`above`,isEnabled:G}),q=G&&xe?{"aria-describedby":[M[`aria-describedby`],K.describedBy].filter(Boolean).join(` `)||void 0}:null,J=y!=null,Y=!J&&D!=null,X=J||Y,Se=ie(b),Ce=C(M[`aria-label`])??C(M[`aria-labelledby`]);ae(`Avatar`,"an interactive avatar (with `href` or `onClick`) needs a meaningful accessible name. Pass `alt` or `name`.",X&&!L&&Ce==null);let we=(0,l.useRef)({label:void 0,update:null}),{"aria-hidden":Te,"aria-label":Ee,role:De}=M,Oe=(0,l.useCallback)(e=>{if(e==null)return;let t=we.current;return t.update=()=>{let n=w(I,L,C(t.label)??S(m));Ee??T(e,`aria-label`,n),X||(De??e.setAttribute(`role`,n?`img`:`presentation`),Te??T(e,`aria-hidden`,n?void 0:`true`))},t.update(),()=>{t.update=null}},[Te,Ee,De,X,L,m,I]),Z=te(j,G?K.ref:void 0,Oe),Q=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d xb3r6kr x87ps6o xbc78cj`,children:[N&&(0,p.jsx)(`img`,{src:d,alt:``,onError:()=>me(d),className:`xh8yej3 x5yr21d xl1xv1r`}),P&&(0,p.jsx)(`img`,{src:i,alt:``,onError:()=>ge(i),className:`xh8yej3 x5yr21d xl1xv1r`}),ve&&(0,p.jsx)(`div`,{...c(r(`avatar-fallback`,{size:V}),t(v.fallback,x.fontSize(U))),children:ue(F)}),ye&&(0,p.jsx)(`div`,{...c(r(`avatar-fallback`,{size:V}),{className:`x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d x17x4s8c xv1l7n4 x9ynric x1e4wzip xtvhhri`}),children:(0,p.jsx)(fe,{size:U})})]}),m&&(0,p.jsx)(`div`,{...t(v.status,H===`circle`?x.statusPositionCircle(U):x.statusPositionCorner),children:m})]}),$=c(r(`avatar`,{size:V,shape:H}),ne.focusVisible(v.wrapper,x.size(U),X&&v.interactive,B&&se.ring,B&&se.overlap,B&&le.overlap(-B.overlap),_[H],O),k,A),ke,Ae=M;return ke=J?(0,p.jsx)(Se,{...z,...Ae,...q,ref:Z,href:y,target:ce,rel:E,"data-avatar-item":``,"data-testid":n,onClick:D,...$,children:Q}):Y?(0,p.jsx)(`button`,{...z,...Ae,...q,ref:Z,type:`button`,"data-avatar-item":``,"data-testid":n,onClick:D,...$,children:Q}):(0,p.jsx)(`div`,{...be,...M,ref:Z,tabIndex:G&&!B?0:void 0,"data-testid":n,...q,...$,children:Q}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(oe,{value:U,children:(0,p.jsx)(u,{value:we,children:ke})}),G?K.renderTooltip(W):null]})}E.displayName=`Avatar`;var D={person:`_person_1q3et_2`,personName:`_personName_1q3et_3`},O=[`#96a27b`,`#f5dfa1`,`#fac2a7`,`#a8bbc5`,`#b4c49f`,`#c7bbd2`],k=[`<path d="M28 92C18 72 29 38 52 34C60 32 71 32 79 36C99 45 109 75 101 92C95 105 37 106 28 92Z"/><path d="M63 34C69 29 70 24 68 21M66 34C73 32 77 29 78 25" fill="none"/><g fill="#193b30" stroke="none"><circle cx="47" cy="69" r="4"/><circle cx="80" cy="64" r="4"/></g><path d="M59 79Q65 84 71 78" fill="none"/>`,`<path d="M29 48Q29 29 48 29H75L99 53V86Q99 102 82 102H47Q28 102 28 84Z"/><path d="M75 30V45Q75 55 86 54H98" fill="none"/><ellipse cx="47" cy="67" rx="6" ry="7"/><ellipse cx="79" cy="67" rx="6" ry="7"/><g fill="#193b30" stroke="none"><ellipse cx="49" cy="67" rx="3" ry="5"/><ellipse cx="81" cy="67" rx="3" ry="5"/></g><path d="M61 83H65" fill="none"/>`,`<path d="M28 91C20 70 31 45 51 40Q64 36 78 41C98 48 107 72 101 91C95 105 37 105 28 91Z"/><path d="M62 38C43 34 39 24 40 19C53 19 62 26 62 38ZM68 37C68 23 79 15 90 16C88 29 80 35 68 37Z"/><g fill="#193b30" stroke="none"><circle cx="48" cy="69" r="4"/><circle cx="80" cy="69" r="4"/></g><path d="M59 82Q64 87 70 81" fill="none"/>`];function A(e){let t=2166136261;for(let n of e.toLowerCase())t=Math.imul(t^n.charCodeAt(0),16777619)>>>0;let n=k[t%k.length],r=O[Math.floor(t/k.length)%O.length];return`data:image/svg+xml,`+encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><rect width="128" height="128" fill="${r}"/><g fill="#fff4df" stroke="#193b30" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round">${n}</g></svg>`)}var j=e=>`/contributors/`+encodeURIComponent(e);function M({name:e,email:t,avatarOnly:n=!1,size:r=`sm`}){return(0,p.jsxs)(o,{gap:2,className:D.person,children:[(0,p.jsx)(E,{name:e,src:A(t),shape:`circle`,size:r,href:j(t)}),!n&&(0,p.jsx)(a,{to:`/contributors/$email`,params:{email:t},className:D.personName,children:e})]})}export{g as a,f as c,E as i,A as n,_ as o,j as r,d as s,M as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,n,q as r}from"./themeProps-CkLe5zXY.js";import{C as i,F as a,V as o,a as s,an as c,b as l,bt as u,cn as d,fn as f,ht as p,l as m,ln as h,mt as g,nt as _,rn as v,t as y,u as b,y as x}from"./page-header-rHElc4Gv.js";import{c as S,h as C,n as w,s as T}from"./document-C2htw6u5.js";import{a as E}from"./useMediaQuery-twbHF0pO.js";import{E as D,W as O,w as k}from"./Icon-DPaLmsmh.js";import{r as A}from"./IconButton-Br-4XhQr.js";import{t as j}from"./useInfiniteQuery-guh_cfSb.js";import{n as M,t as N}from"./Grid-DCCm_m5g.js";import{r as P}from"./Token-BnQGlhSv.js";import{t as F}from"./load-more-YVDkQmcp.js";import{i as I,n as L,r as R}from"./contributor-Cg_cxulE.js";var z=e(r(),1),B=t(),V={interactive:{kVAEAm:`x1n2onr6`,kkrTdU:`x1ypdohk x16khyan`,kybGjl:`x1hl2dhg`,kMwMTN:`x1heor9g`,$$css:!0},overlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kloYau:`x2q1x1w`,kRicXK:`x1ywzrc5`,kPNhGg:`x97pup0`,kA8PQs:`x1dlmc9c`,ks3ayO:`xyhc2n1`,kAcZsS:`x1k7wiig`,$$css:!0},hoverOnPointer:{k8t4tK:`x1912f9e`,$$css:!0},borderless:{kMzoRj:`xc342km`,$$css:!0},bordered:{kVAM5u:`x14i3s5s`,kZCmMZ:`xs19ii7`,kwRFfy:`x12frdag`,kLKAdn:`x1nex4ik`,kGO01o:`xbv1mwh`,k1ekBW:`xshfolx`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},borderedHoverOnPointer:{kpsWHe:`x1xwh4np`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0}};function H({label:e,onClick:t,onMouseUp:r,href:i,target:a,isDisabled:o=!1,children:s,padding:l,variant:u=`default`,elevation:d=`none`,width:f,height:p,maxWidth:m,ref:h,xstyle:g,className:_,style:v,...y}){let b=(0,z.useRef)(null),x=(0,z.useRef)(null),S=A(),{onClick:C,onMouseUp:w}=c({containerRef:b,interactiveRef:x,onClick:t,href:i,target:a,disabled:o}),T=r?e=>{w(e),r(e)}:w,k=i!=null,j=u==="default";return(0,B.jsxs)(M,{ref:D(h,b),width:f,height:p,maxWidth:m,padding:l,variant:u,elevation:d,...E(n(`clickable-card`,{variant:u}),O.focusWithin(),_,v),xstyle:[V.interactive,j?V.bordered:V.borderless,!o&&V.overlay,!o&&V.hoverOnPointer,!o&&j&&V.borderedHoverOnPointer,o&&V.disabled,g],onClick:o?void 0:C,onMouseUp:o?void 0:T,...y,children:[k?(0,B.jsx)(S,{ref:x,href:i,target:a,"aria-label":e,"aria-disabled":o||void 0,tabIndex:o?-1:0,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}):(0,B.jsx)(`button`,{ref:x,type:`button`,"aria-label":e,disabled:o,onClick:t,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}),s]})}H.displayName=`ClickableCard`;var U={featureDetail:`_featureDetail_yozgk_1`,featureBack:`_featureBack_yozgk_2`,entryBody:`_entryBody_yozgk_7`,entryTitle:`_entryTitle_yozgk_8`,personCard:`_personCard_yozgk_10`,personCardBody:`_personCardBody_yozgk_11`,personStats:`_personStats_yozgk_12`,personHero:`_personHero_yozgk_13`,personActivityRow:`_personActivityRow_yozgk_14`,personSection:`_personSection_yozgk_16`,oneLine:`_oneLine_yozgk_19`};async function W(e,t,n){let{session:r,checkout:a}=await m(e);if(!r)return;if(!t){await b(e.ensureInfiniteQueryData(l(r,n.q)));return}let o=await e.ensureQueryData(x(r,t)).catch(()=>void 0);o&&a?.head&&await b(e.ensureInfiniteQueryData(i(r,a.head,{author:o.person.email},10)))}function G({session:e,head:t,email:n,search:r}){return f(),n?(0,B.jsx)(K,{session:e,head:t,email:n}):(0,B.jsx)(q,{session:e,search:r})}function K({session:e,head:t,email:n}){let r=o(x(e,n));return r.error instanceof a&&r.error.code===`NOT_FOUND`?(0,B.jsx)(s,{kind:`not-found`,title:d(`contributors.notFoundTitle`),description:d(`contributors.notFoundDescription`,{email:n}),actions:(0,B.jsx)(u,{to:`/contributors`,children:d(`contributors.backToList`)})}):r.error?(0,B.jsx)(P,{error:r.error,retry:()=>{r.refetch()}}):r.data?(0,B.jsx)(J,{session:e,head:t,person:r.data.person,features:r.data.features}):(0,B.jsx)(P,{})}function q({session:e,search:t}){f();let n=j({...l(e,t.q),placeholderData:_}),r=(0,z.useDeferredValue)(n.data);if(n.error)return(0,B.jsx)(P,{error:n.error,retry:()=>{n.refetch()}});if(!r)return(0,B.jsx)(P,{});let i=r.pages.flatMap(e=>e.people);return i.length?(0,B.jsxs)(p,{gap:3,children:[(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.count`,{count:r.pages[0].total})}),(0,B.jsx)(N,{columns:{minWidth:220,repeat:`fill`},gap:3,children:i.map(e=>(0,B.jsx)(H,{label:e.name,href:R(e.email),padding:4,elevation:`none`,children:(0,B.jsxs)(p,{gap:3,className:U.personCard,children:[(0,B.jsx)(I,{name:e.name,src:L(e.email),shape:`circle`,size:`lg`}),(0,B.jsxs)(p,{gap:1,className:U.personCardBody,children:[(0,B.jsx)(k,{weight:`semibold`,className:U.oneLine,children:e.name}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,className:U.oneLine,children:e.email})]}),(0,B.jsxs)(g,{gap:3,wrap:`wrap`,className:U.personStats,children:[(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.cardCommits`,{count:e.commits})}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.cardFeatures`,{count:e.features})}),(0,B.jsx)(T,{value:e.latest,format:`relative`})]})]})},e.email))}),(0,B.jsx)(g,{gap:0,children:(0,B.jsx)(F,{label:d(`contributors.more`),query:n})})]}):(0,B.jsx)(s,{kind:t.q?`search`:`empty`,title:d(`contributors.emptyTitle`),description:d(`contributors.emptyDescription`)})}function J({session:e,head:t,person:n,features:r}){f();let a=j({...i(e,t??``,{author:n.email},10),enabled:!!t}).data?.pages[0]?.events??[];return(0,B.jsxs)(p,{as:`article`,"aria-label":d(`contributors.detail`),gap:0,className:U.featureDetail,children:[(0,B.jsx)(u,{to:`/contributors`,className:U.featureBack,children:d(`contributors.back`)}),(0,B.jsxs)(g,{gap:5,className:U.personHero,children:[(0,B.jsx)(I,{name:n.name,src:L(n.email),shape:`circle`,size:72}),(0,B.jsxs)(p,{gap:2,className:U.entryBody,children:[(0,B.jsx)(v,{level:1,children:n.name}),(0,B.jsx)(k,{color:`secondary`,children:n.email}),(0,B.jsxs)(g,{gap:4,wrap:`wrap`,children:[(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.gitCommits`,{count:n.commits})}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`contributors.latest`,{time:(0,B.jsx)(T,{value:n.latest,format:`relative`,type:`inherit`,color:`inherit`})})}),(0,B.jsx)(u,{to:`/records`,search:{author:n.email},children:d(`contributors.activity`)})]})]})]}),(0,B.jsxs)(p,{gap:4,className:U.personSection,children:[(0,B.jsx)(v,{level:3,children:d(`contributors.features`)}),r.length?(0,B.jsx)(N,{columns:{minWidth:220,repeat:`fill`},gap:3,children:r.map(e=>(0,B.jsx)(H,{label:e.title,href:`/features/${encodeURIComponent(e.id)}`,padding:4,elevation:`none`,children:(0,B.jsxs)(p,{gap:1,children:[(0,B.jsx)(k,{weight:`semibold`,className:U.oneLine,children:e.title}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.featureShare`,{commits:e.commits,requirements:e.requirements})})]})},e.id))}):(0,B.jsx)(k,{color:`secondary`,children:d(`contributors.noSpecCommits`)})]}),(0,B.jsxs)(p,{gap:4,className:U.personSection,children:[(0,B.jsx)(v,{level:3,children:d(`activity.recent`)}),a.length?(0,B.jsx)(p,{gap:0,className:U.personActivity,children:a.map(e=>(0,B.jsxs)(g,{gap:3,className:U.personActivityRow,children:[(0,B.jsx)(w,{event:e}),(0,B.jsx)(u,{to:`/records/commits/$commit`,params:{commit:e.commit},hash:e.id,className:U.entryTitle,children:(e.after??e.before)?.title??e.id}),(0,B.jsx)(T,{value:e.date,format:`relative`})]},e.key))}):(0,B.jsx)(k,{color:`secondary`,children:d(`contributors.noRecentActivity`)})]})]})}function Y({email:e,search:t,change:n}){return f(),(0,B.jsx)(C,{header:y,title:d(`nav.contributors`),root:`/contributors`,hasTitle:!e,trail:t=>{let n=e?t.index.people.find(t=>t.email===e):void 0;return n?[{label:n.name}]:[]},...e?{}:{filters:()=>(0,B.jsx)(S,{label:d(`filters.search`),placeholder:d(`filters.searchContributors`),value:t.q??``,onChange:e=>n({...t,q:e||void 0},!0)})},children:({checkout:n,session:r})=>(0,B.jsx)(G,{session:r,head:n.head,email:e,search:t})})}export{W as n,Y as t};
@@ -0,0 +1 @@
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{t}from"./contributors-ol5bZm_T.js";import{u as n}from"./index-DaKOj2qL.js";var r=e();function i(){let e=n.useSearch(),{email:i}=n.useParams(),a=n.useNavigate();return(0,r.jsx)(t,{email:i,search:e,change:(e,t)=>{a({search:e,replace:t??!1})}})}export{i as component};
@@ -0,0 +1 @@
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{t}from"./contributors-ol5bZm_T.js";import{d as n}from"./index-DaKOj2qL.js";var r=e();function i(){let e=n.useSearch(),i=n.useNavigate();return(0,r.jsx)(t,{search:e,change:(e,t)=>{i({search:e,replace:t??!1})}})}export{i as component};
@@ -0,0 +1 @@
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{l as t}from"./index-DaKOj2qL.js";var n=e();function r(){return(0,n.jsx)(t,{})}export{r as component};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TimestampHoverCard-B5JBaQDZ.js","assets/rolldown-runtime-hePW80VL.js","assets/themeProps-CkLe5zXY.js","assets/Icon-DPaLmsmh.js","assets/useMediaQuery-twbHF0pO.js","assets/preload-helper-BZ1Pz5am.js","assets/IconButton-Br-4XhQr.js","assets/useIsomorphicLayoutEffect-BiEJxDg_.js","assets/HoverCard-Bpt8LVFT.js","assets/useClipboard-Cqx6Upy7.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,l as n,n as r,q as i}from"./themeProps-CkLe5zXY.js";import{c as a,n as o,o as s,r as c,s as l}from"./document-CteWuasx.js";import{n as u}from"./useIsomorphicLayoutEffect-BiEJxDg_.js";import{D as d,F as f,M as p,V as m,bt as h,cn as g,fn as _,ft as v,ht as y,ln as ee,m as te,mt as b,p as x,pt as S,r as C,rn as w,un as T}from"./page-header-rHElc4Gv.js";import{g as E,p as D}from"./Table-BK5793GP.js";import{a as O}from"./useMediaQuery-twbHF0pO.js";import{C as ne,E as re,G as k,S as A,_ as j,n as ie,t as M,v as ae,w as N}from"./Icon-DPaLmsmh.js";import{t as P}from"./preload-helper-BZ1Pz5am.js";import{n as F,s as oe,t as I}from"./IconButton-Br-4XhQr.js";import{a as se,i as ce,o as le}from"./Markdown-CR_AHfxJ.js";import{t as L}from"./useDevWarning-Dudfg3qF.js";import{t as ue}from"./HoverCard-Bpt8LVFT.js";import{r as R,t as z}from"./Token-BnQGlhSv.js";import{n as de,t as B}from"./HgiRefresh-UIdBFt6N.js";var V=e(i(),1),H=n();function fe(e,t){let n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`,calendar:`gregory`}).formatToParts(new Date(e)),r=Object.fromEntries(n.filter(e=>e.type!==`literal`).map(e=>[e.type,Number(e.value)]));return{year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second}}var U={date:{month:`short`,day:`numeric`,year:`numeric`},date_long:{year:`numeric`,month:`long`,day:`numeric`},date_weekday:{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`}};function W(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function pe(e,t=[],n){return{ariaLabelledBy:n?W(n.labelID,e):void 0,ariaDescribedBy:W(n?.describedByIDs,...t)}}function G(){return(0,V.use)(ae).locale}var K={warning:`warning`,error:`error`,success:`success`},q={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},me={statusButton:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMwMTN:`x1heor9g`,kkrTdU:`x1ypdohk x16khyan`,kfzvcC:`x67bb7w`,kaIpWk:`xjspbzw`,kInvED:`x7s97pk`,$$css:!0}};function he({status:e,statusVariant:n=`attached`,isInGroup:i=!1,size:a=`md`}){let o=j(),s=n===`tooltip`&&!!e?.message,[c,l]=(0,V.useState)(void 0),d=u({placement:`above`,isEnabled:s,isOpen:c}),f=(0,V.useCallback)(()=>{l(void 0)},[]),p=(0,V.useCallback)(()=>{typeof window>`u`||typeof window.matchMedia!=`function`||!window.matchMedia(`(hover: none)`).matches||l(e=>e!==!0)},[]);if((0,V.useEffect)(()=>{if(c!==!0)return;let e=e=>{e.key===`Escape`&&l(void 0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[c]),!e||i||n===`detached`)return{statusIcon:null,describedBy:void 0};let m=(0,H.jsx)(M,{icon:K[e.type],size:a,color:e.type,...r(`input-status-icon`,{size:a,status:e.type})});return s?{statusIcon:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`button`,{type:`button`,ref:d.ref,"aria-label":o(q[e.type]),"aria-describedby":d.describedBy,onClick:p,onBlur:f,...t(k.focusVisible,me.statusButton),children:m}),d.renderTooltip(e.message)]}),describedBy:d.describedBy}:{statusIcon:m,describedBy:void 0}}var ge=[[`path`,{d:`M9 14L11 16L15 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8.00002 4L8 4.99997C7.99998 5.94279 7.99998 6.4142 8.29287 6.7071C8.58577 7 9.05718 7 10 7L14 7C14.9428 7 15.4142 7 15.7071 6.70711C16 6.41421 16 5.94281 16 5V4`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M14.45 4L13.7149 4.1492C13.7853 4.49569 14.088 4.746 14.4416 4.74995L14.45 4ZM9.54997 4L9.55835 4.74995C9.91188 4.746 10.2146 4.49569 10.285 4.1492L9.54997 4ZM19.1213 4.87868L19.6517 4.34835L19.6517 4.34835L19.1213 4.87868ZM19.1213 21.1213L19.6517 21.6517V21.6517L19.1213 21.1213ZM16 4.01732L16.0226 3.26766C16.0179 3.26752 16.0131 3.26742 16.0084 3.26737L16 4.01732ZM4.87868 4.87868L5.40901 5.40901V5.40901L4.87868 4.87868ZM8 4.01732L7.99162 3.26737C7.98688 3.26742 7.98215 3.26752 7.97741 3.26766L8 4.01732ZM14.45 4L15.185 3.8508C14.8838 2.36703 13.5732 1.25 12 1.25V2V2.75C12.8457 2.75 13.5529 3.35073 13.7149 4.1492L14.45 4ZM12 2V1.25C10.4268 1.25 9.11615 2.36703 8.81496 3.8508L9.54997 4L10.285 4.1492C10.4471 3.35073 11.1542 2.75 12 2.75V2ZM20 10H20.75C20.75 8.60699 20.7516 7.48678 20.6335 6.60825C20.5125 5.70814 20.2536 4.95027 19.6517 4.34835L19.1213 4.87868L18.591 5.40901C18.8678 5.68577 19.0482 6.07435 19.1469 6.80812C19.2484 7.56347 19.25 8.56458 19.25 10H20ZM20 16H20.75V10H20H19.25V16H20ZM20 16H19.25C19.25 17.4354 19.2484 18.4365 19.1469 19.1919C19.0482 19.9257 18.8678 20.3142 18.591 20.591L19.1213 21.1213L19.6517 21.6517C20.2536 21.0497 20.5125 20.2919 20.6335 19.3918C20.7516 18.5132 20.75 17.393 20.75 16H20ZM14 22V22.75C15.393 22.75 16.5132 22.7516 17.3918 22.6335C18.2919 22.5125 19.0497 22.2536 19.6517 21.6517L19.1213 21.1213L18.591 20.591C18.3142 20.8678 17.9257 21.0482 17.1919 21.1469C16.4365 21.2484 15.4354 21.25 14 21.25V22ZM16 4.01732L15.9774 4.76698C17.5421 4.81413 18.1804 4.99842 18.591 5.40901L19.1213 4.87868L19.6517 4.34835C18.7796 3.47633 17.5648 3.31413 16.0226 3.26766L16 4.01732ZM10 22V22.75H14V22V21.25H10V22ZM10 22V21.25C8.56458 21.25 7.56347 21.2484 6.80812 21.1469C6.07434 21.0482 5.68577 20.8678 5.40901 20.591L4.87868 21.1213L4.34835 21.6517C4.95027 22.2536 5.70814 22.5125 6.60825 22.6335C7.48678 22.7516 8.60699 22.75 10 22.75V22ZM4 16H3.25C3.25 17.393 3.24841 18.5132 3.36652 19.3918C3.48754 20.2919 3.74643 21.0497 4.34835 21.6517L4.87868 21.1213L5.40901 20.591C5.13225 20.3142 4.9518 19.9257 4.85315 19.1919C4.75159 18.4365 4.75 17.4354 4.75 16H4ZM4 10H4.75C4.75 8.56458 4.75159 7.56347 4.85315 6.80812C4.9518 6.07435 5.13225 5.68577 5.40901 5.40901L4.87868 4.87868L4.34835 4.34835C3.74643 4.95027 3.48754 5.70814 3.36652 6.60825C3.24841 7.48678 3.25 8.60699 3.25 10H4ZM8 4.01732L7.97741 3.26766C6.43521 3.31413 5.22037 3.47633 4.34835 4.34835L4.87868 4.87868L5.40901 5.40901C5.8196 4.99842 6.4579 4.81413 8.02259 4.76698L8 4.01732ZM4 10H3.25V16H4H4.75V10H4ZM8 4.01732L8.00838 4.76728L9.55835 4.74995L9.54997 4L9.54159 3.25005L7.99162 3.26737L8 4.01732ZM16 4.01732L16.0084 3.26737L14.4583 3.25005L14.45 4L14.4416 4.74995L15.9916 4.76728L16 4.01732Z`,fill:`currentColor`,key:`2`}]],_e={base:{kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,kY2c9j:`x1vjfegm`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kVAM5u:`xvy26l8 x6q1khz`,"--_field-radius":`x1832zxr`,kaIpWk:`xvdfih8`,kWkggS:`x10xzikg`,k1ekBW:`x12zzom9`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,kGVxlE:`x1gnnqk1 x1xqjsvb xuihb5h`,kI3sdo:`x1a2a7pz`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,$$css:!0}},ve={warning:{kVAM5u:`x8wg1ba`,$$css:!0},error:{kVAM5u:`x1ofxpqo`,$$css:!0},success:{kVAM5u:`x16m2moy`,$$css:!0}},ye={warning:{kGVxlE:`x1gnnqk1 x9156jc`,$$css:!0},error:{kGVxlE:`x1gnnqk1 x1bgmis8`,$$css:!0},success:{kGVxlE:`x1gnnqk1 x8wp45d`,$$css:!0}},be={warning:{kVAM5u:`x8wg1ba xa1yw2k`,$$css:!0},error:{kVAM5u:`x1ofxpqo xk2sxw7`,$$css:!0},success:{kVAM5u:`x16m2moy xyq33ac`,$$css:!0}},xe={button:{kZKoxP:`x1qx5ct2`,kmuXW:`x2lah0s`,kVAEAm:`x1n2onr6`,"--_input-clear-hit-inset":`xtoycft x181bpwf`,"--_input-clear-hit-content":`xqxtgf4 xp8r40j`,k5JduY:`xh3pasq`,kwXMNM:`x1j6awrg`,kv0HGH:`xht581f`,$$css:!0}};function Se({label:e,onClick:t,onPointerDown:n,onClickCapture:i,xstyle:a,iconClassName:o}){let{className:s}=r(`input-clear-icon`),{className:c}=r(`input-clear-button`);return(0,H.jsx)(F,{variant:`ghost`,size:`sm`,label:e,className:c,icon:(0,H.jsx)(M,{icon:`close`,size:`sm`,color:`secondary`,className:o==null?s:`${s} ${o}`}),onClick:t,onPointerDown:n,onClickCapture:i,isIconOnly:!0,xstyle:[xe.button,a]})}function Ce(e){return Se(e)}function we(e){return Se(e)}Ce.displayName=`InputClearButton`;var Te={inGroup:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kZKoxP:`x5yr21d`,keTefX:`xd10s4z x1pwwqoy`,krdFHd:`x15mokao x8eehn2`,kVL7Gh:`xbiv7yw x1xrp5p4`,kfmiAY:`x1ga7v0g x1tzxhge`,kT0f0o:`x16uus16 x1rmb4wm`,kXnDq0:`x1rm9qnc`,$$css:!0}},Ee=(0,V.createContext)(null);Ee.displayName=`InputGroupContext`;function De(){return(0,V.use)(Ee)}var Oe={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}};function ke({type:e=`text`,label:n,isLabelHidden:i=!1,description:a,isOptional:o=!1,isRequired:s=!1,isDisabled:c=!1,isReadOnly:l=!1,disabledMessage:d,startIcon:f,status:p,statusVariant:m=`attached`,size:h,onChange:g,changeAction:_,isLoading:v=!1,value:y,placeholder:ee,labelTooltip:te,hasClear:b=!1,hasAutoFocus:x=!1,htmlName:S,onEnter:C,onKeyDown:w,width:T,xstyle:E,className:D,style:k,ref:M,...ae}){let N=j(),P=ce({isRequired:s,isOptional:o}),F=A(h,`md`),I=(0,V.useId)(),L=(0,V.useId)(),ue=(0,V.useId)(),R=(0,V.useId)(),z=(0,V.useRef)(null),de=(0,V.useRef)(null),B=De(),[,fe]=(0,V.useTransition)(),[U,W]=(0,V.useOptimistic)(y),G=v||U!==y,K=c&&!!d,q=u({placement:`above`,focusTrigger:`always`,isEnabled:K}),{statusIcon:me,describedBy:ge}=he({status:p,statusVariant:m,isInGroup:!!B}),{ariaLabelledBy:xe,ariaDescribedBy:Se}=pe(L,[a?ue:null,!B&&m!==`tooltip`&&p?.message?R:null,ge,K?q.describedBy:null],B),we=e=>{if(c||l)return;let t=e.target.value;g?.(t,e),_&&!e.defaultPrevented&&fe(async()=>{W(t),await _(t,e)})},Ee=(0,V.useCallback)(()=>{g?.(``,null),z.current?.focus()},[g]),{onClick:ke,onMouseUp:J}=le({containerRef:de,inputRef:z,disabled:c}),Ae=(0,H.jsxs)(`div`,{ref:e=>{de.current=e,q.ref(e)},onClick:ke,onMouseUp:J,...O(r(`text-input`,{size:F,status:p?.type??null,disabled:c?`disabled`:null,readonly:l?`readonly`:null}),t(_e.base,Oe[F],c&&_e.disabled,p&&ve[p.type],p&&!c&&ye[p.type],p&&be[p.type],B&&Te.inGroup,E),D,k),children:[f&&ie(f,{size:`sm`,color:`secondary`}),B&&(0,H.jsx)(oe,{id:L,children:n}),(0,H.jsx)(`input`,{...ae,ref:re(M,z),id:I,name:c?void 0:S,type:e,value:U,onChange:we,onKeyDown:C||w?e=>{e.key===`Enter`&&C?.(),w?.(e)}:void 0,placeholder:ee,disabled:c&&!K,"aria-disabled":K?`true`:void 0,readOnly:l||K||void 0,autoFocus:x,"data-autofocus":x||void 0,"aria-describedby":Se,"aria-required":P?`true`:void 0,"aria-invalid":p?.type===`error`?`true`:void 0,"aria-busy":G||void 0,"aria-labelledby":xe,...{0:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 x6pjikd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5`},1:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 x6pjikd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv`}}[!!c<<0]}),b&&y!==``&&!c&&!l&&(0,H.jsx)(Ce,{label:N(`@astryx.textInput.clearLabel`,{label:n}),onClick:Ee}),G&&(0,H.jsx)(ne,{size:`sm`}),me]});return B?(0,H.jsxs)(H.Fragment,{children:[Ae,K&&q.renderTooltip(d)]}):(0,H.jsxs)(se,{label:n,isLabelHidden:i,description:a,inputID:I,descriptionID:a?ue:void 0,isOptional:o,isRequired:s,isDisabled:c,status:p?{type:p.type,message:p.message,messageID:p.message?R:void 0}:void 0,statusVariant:m,labelTooltip:te,width:T,children:[Ae,K&&q.renderTooltip(d)]})}ke.displayName=`TextInput`;var J={page:`_page_otq4r_3`,content:`_content_otq4r_5`,reveal:`_reveal_otq4r_1`,column:`_column_otq4r_10`,pageTitle:`_pageTitle_otq4r_11`,filters:`_filters_otq4r_12`,filtersSticky:`_filtersSticky_otq4r_13`,entryBody:`_entryBody_otq4r_15`,headerActions:`_headerActions_otq4r_17`,headerTime:`_headerTime_otq4r_22`,wide:`_wide_otq4r_30`,staleNotice:`_staleNotice_otq4r_33`},Ae=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]];function je({size:e=16}){return(0,H.jsx)(S,{data:Ae,size:e})}var Me={helpCard:`_helpCard_wqyxv_1`};function Ne({title:e,description:t}){_();let[n,r]=(0,V.useState)(!1),[i,a]=(0,V.useState)(!1),[o,s]=(0,V.useState)(!1),c=!o&&(i||n),l=(0,V.useRef)(null);(0,V.useEffect)(()=>{if(!c)return;let e=()=>{a(!1),r(!1)},t=t=>{let n=t.target;if(!(n instanceof Node)||l.current?.contains(n))return;let r=l.current?.getAttribute(`aria-controls`);r&&document.getElementById(r)?.contains(n)||e()},n=t=>{t.key===`Escape`&&(e(),s(!0))};return document.addEventListener(`pointerdown`,t,!0),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`pointerdown`,t,!0),document.removeEventListener(`keydown`,n)}},[c]);let u=(0,V.useRef)(void 0),d=(e,t)=>{clearTimeout(u.current),u.current=setTimeout(()=>r(e),t)};return(0,V.useEffect)(()=>()=>clearTimeout(u.current),[]),(0,H.jsx)(ue,{label:e,content:(0,H.jsx)(N,{children:t}),className:Me.helpCard,placement:`below`,alignment:`start`,touchTrigger:`none`,focusTrigger:`never`,hasHoverIndication:!1,isOpen:c,children:(0,H.jsx)(I,{ref:l,label:g(`common.description`,{title:e}),icon:(0,H.jsx)(je,{}),variant:`ghost`,size:`sm`,onClick:()=>{i?(a(!1),s(!0)):(a(!0),s(!1))},onMouseEnter:()=>d(!0,150),onMouseLeave:()=>{s(!1),d(!1,150)},onFocus:()=>d(!0,0),onBlur:()=>d(!1,0)})})}function Pe(e,t,n){let r=v(),[i,a]=(0,V.useState)(void 0);return(0,V.useEffect)(()=>{a(void 0)},[n]),(0,V.useEffect)(()=>{if(t===void 0)return;let n=!1,i=()=>{document.visibilityState===`visible`&&r.fetchQuery(d(e)).then(e=>{n||a(e.stamp)},()=>void 0)};return document.addEventListener(`visibilitychange`,i),window.addEventListener(`focus`,i),()=>{n=!0,document.removeEventListener(`visibilitychange`,i),window.removeEventListener(`focus`,i)}},[r,e,t]),t!==void 0&&i!==void 0&&i!==t}function Fe({isRefreshing:e,onRefresh:t}){return _(),(0,H.jsx)(de,{status:`info`,title:g(`stale.title`),description:g(`stale.description`),endContent:(0,H.jsx)(F,{label:g(`common.refresh`),isDisabled:e,onClick:t})})}function Ie(e){let t=m(p());return!t.data||t.error?(0,H.jsx)(R,{error:t.error,retry:()=>{t.refetch()}}):(0,H.jsx)(Le,{session:t.data,...e},t.data.sessionId)}function Le({session:e,header:t,title:n,description:r,root:i,trail:a,hasTitle:s,isWide:c=!1,filters:l,children:u}){_();let d=m(x(e)),p=v(),h=new Set([...te,`browser-working`,`browser-working-change`]),S=()=>{d.refetch(),p.invalidateQueries({predicate:e=>h.has(String(e.queryKey[0]))})},C=Pe(e,d.data?.stamp,d.dataUpdatedAt),E=d.error instanceof f&&d.error.code===`SESSION_CHANGED`,D=E?void 0:d.data,O=!!D,ne=[{label:n,to:i},...D&&a?a(D):[]],re=(0,H.jsxs)(b,{gap:3,className:J.headerActions,children:[D&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,className:J.headerTime,children:ee(`header.observedAt`,{time:(0,H.jsx)(`time`,{dateTime:D.observedAt,children:new Date(D.observedAt).toLocaleString(T())})})}),(0,H.jsx)(I,{label:g(`common.refresh`),icon:(0,H.jsx)(B,{}),variant:`ghost`,size:`sm`,isLoading:d.isFetching,isDisabled:d.isFetching,onClick:S})]});return(0,H.jsxs)(y,{gap:0,className:J.page,children:[(0,H.jsx)(t,{trail:ne,actions:re}),(0,H.jsxs)(y,{gap:0,className:c?`${J.column} ${J.wide}`:J.column,children:[s&&(0,H.jsxs)(b,{gap:2,vAlign:`center`,className:J.pageTitle,children:[(0,H.jsx)(w,{level:1,children:n}),r&&(0,H.jsx)(Ne,{title:n,description:r})]}),C&&D&&(0,H.jsx)(y,{gap:0,className:J.staleNotice,children:(0,H.jsx)(Fe,{isRefreshing:d.isFetching,onRefresh:S})}),d.error&&D&&(0,H.jsxs)(y,{padding:4,role:`alert`,children:[(0,H.jsx)(N,{children:d.error.message}),(0,H.jsx)(N,{children:g(`history.staleData`)})]}),!D&&d.error&&(0,H.jsx)(R,{error:d.error,retry:()=>{E?window.location.reload():d.refetch()}}),O&&l&&(0,H.jsx)(b,{gap:3,wrap:`wrap`,className:`${J.filters} ${J.filtersSticky}`,children:l(D)}),O&&(0,H.jsx)(y,{gap:3,className:J.content,children:(0,H.jsx)(o,{index:D.index,children:u({checkout:D,session:e})})})]})]})}var Re=[[`path`,{d:`M8 7L16 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8 11L12 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],ze=[[`path`,{d:`M19 17L19 11C19 8.17157 19 6.75736 18.1213 5.87868C17.2426 5 15.8284 5 13 5H10M10 5C10 4.29977 11.9943 2.99153 12.5 2.5M10 5C10 5.70023 11.9943 7.00847 12.5 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M5 7.5L5 13.5C5 16.3284 5 17.7426 5.87868 18.6213C6.75736 19.5 8.17157 19.5 11 19.5H14M14 19.5C14 20.2002 12.0057 21.5085 11.5 22M14 19.5C14 18.7998 12.0057 17.4915 11.5 17`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}],[`circle`,{cx:`5`,cy:`5`,r:`2`,stroke:`currentColor`,strokeWidth:`1.5`,key:`3`}]],Be=[[`path`,{d:`M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`circle`,{cx:`12`,cy:`6.99988`,r:`4`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Ve=[[`path`,{d:`M15.2141 5.98239L16.6158 4.58063C17.39 3.80646 18.6452 3.80646 19.4194 4.58063C20.1935 5.3548 20.1935 6.60998 19.4194 7.38415L18.0176 8.78591M15.2141 5.98239L6.98023 14.2163C5.93493 15.2616 5.41226 15.7842 5.05637 16.4211C4.70047 17.058 4.3424 18.5619 4 20C5.43809 19.6576 6.94199 19.2995 7.57889 18.9436C8.21579 18.5877 8.73844 18.0651 9.78375 17.0198L18.0176 8.78591M15.2141 5.98239L18.0176 8.78591`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11 20H17`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]];function Y(e){return function(t){return(0,H.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,focusable:`false`,...t,children:e.map(([e,t],n)=>(0,V.createElement)(e,{...t,key:n}))})}}var He=Y(C),Ue=Y(ge),We=Y(Re),Ge=Y(ze),Ke=Y(Be),qe=Y(Ve);function Je({label:e,placeholder:t,value:n,onChange:r}){let[i,a]=(0,V.useState)(n),o=(0,V.useRef)(n),s=(0,V.useRef)([]),c=(0,V.useRef)(void 0);return(0,V.useEffect)(()=>()=>{clearTimeout(c.current)},[]),(0,V.useEffect)(()=>{if(n===o.current){s.current=[];return}let e=s.current.indexOf(n);if(e>=0){s.current.splice(0,e+1);return}s.current=[],o.current=n,a(n)},[n]),(0,H.jsx)(ke,{label:e,isLabelHidden:!0,placeholder:t,value:i,startIcon:He,hasClear:!0,onChange:e=>{o.current=e,a(e),clearTimeout(c.current),c.current=setTimeout(()=>{s.current.push(e),r(e)},500)}})}var Ye={year:`numeric`,month:`long`,day:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`},Xe={hour:`numeric`,minute:`2-digit`},Ze={year:`numeric`,month:`short`,day:`numeric`,...Xe};function X(e){return String(e).padStart(2,`0`)}function Qe(e,t){return t===void 0?{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()}:fe(e.getTime(),t)}function Z(e,t,n,{timeZone:r,isTimezoneShown:i=!1,timeZoneNameStyle:a=`short`}={}){let o=r===void 0?{}:{timeZone:r},s=i?{timeZoneName:`short`}:{};switch(t){case`full`:return new Intl.DateTimeFormat(n,{...Ye,timeZoneName:a,...o,calendar:`gregory`}).format(e);case`date`:return new Intl.DateTimeFormat(n,{...U.date,...o,calendar:`gregory`}).format(e);case`date_long`:return new Intl.DateTimeFormat(n,{...U.date_long,...o,calendar:`gregory`}).format(e);case`date_weekday`:return new Intl.DateTimeFormat(n,{...U.date_weekday,...o,calendar:`gregory`}).format(e);case`date_time`:return new Intl.DateTimeFormat(n,{...Ze,...s,...o,calendar:`gregory`}).format(e);case`time`:return new Intl.DateTimeFormat(n,{...Xe,...s,...o}).format(e);case`system_date`:{let t=Qe(e,r);return`${t.year}-${X(t.month)}-${X(t.day)}`}case`system_date_time`:{let t=Qe(e,r);return`${t.year}-${X(t.month)}-${X(t.day)} ${X(t.hour)}:${X(t.minute)}:${X(t.second)}`}case`system_time`:{let t=Qe(e,r);return`${X(t.hour)}:${X(t.minute)}:${X(t.second)}`}case`unix_seconds`:return String(Math.floor(e.getTime()/1e3))}}var $e=60,et=3600,Q=86400,tt=30*Q,nt=365*Q,rt=30,it=new Map;function at(e,t,n){let r=JSON.stringify([e,t,n]),i=it.get(r);return i??(i=new Intl.RelativeTimeFormat(e,{numeric:n,style:t}),it.set(r,i)),i}function ot(e,t,n,r){let i=Math.round((t.getTime()-e.getTime())/1e3),a=Math.abs(i);if(a<10||i<0&&a<=rt)return at(n,r,`auto`).format(0,`second`);let o,s;a<$e?(o=a,s=`second`):a<et?(o=Math.floor(a/$e),s=`minute`):a<Q?(o=Math.floor(a/et),s=`hour`):a<tt?(o=Math.floor(a/Q),s=`day`):a<nt?(o=Math.floor(a/tt),s=`month`):(o=Math.floor(a/nt),s=`year`);let c=i<0?o:-o;return at(n,r,r===`long`&&s===`day`&&c===-1?`auto`:`always`).format(c,s)}var st=`local`,ct=new Set;function lt(e){if(e!==void 0&&e.toLowerCase()!==st){try{new Intl.DateTimeFormat(`en-US`,{timeZone:e})}catch{ct.has(e)||(ct.add(e),`${JSON.stringify(e)}`);return}return e}}function ut(e){return e===void 0?st:e.toLowerCase()}function dt(e,t,n){return e===`full`?!0:e===`date_time`||e===`time`?t||n:!1}function ft(e,t,n){let r=t.map(e=>lt(e.timezoneID)),i=new Set(r.map(ut)).size>1;return t.map((t,a)=>{let o=t.format??`full`,s=r[a];return{...t.label===void 0?{}:{label:t.label},isCopyable:t.isCopyable??!1,value:Z(e,o,n,{timeZone:s,isTimezoneShown:dt(o,i,s!==void 0)})}})}var pt=(0,V.lazy)(async()=>P(()=>import(`./TimestampHoverCard-B5JBaQDZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),mt=60,ht=3600,gt=86400,_t=7*gt;function vt(e){return typeof e==`number`?new Date(e<0xe8d4a51000?e*1e3:e):new Date(e)}function yt(e){let t=Math.abs(e);return t<mt?1e3:t<ht?3e4:t<gt?6e4:3e5}function bt(e){return e!==`relative`&&e!==`relative_short`&&e!==`auto`}function xt(e){return e===`relative`||e===`relative_short`}function St({value:e,format:t=`auto`,autoThreshold:n=_t,hasTooltip:i=!0,tooltipEntries:a,isTimezoneShown:o=!1,isLive:s=!1,type:c=`supporting`,size:l,color:u=`secondary`,weight:d,xstyle:f,className:p,style:m,ref:h,"data-testid":g,..._}){let v=j(),y=G(),ee=(0,V.useRef)(null),te=re(h,ee),[b,x]=(0,V.useState)(()=>new Date),S=vt(e),C=!Number.isNaN(S.getTime()),w=C?S.toISOString():``,T=Math.round((b.getTime()-S.getTime())/1e3),E=t===`auto`?Math.abs(T)<=n?`relative`:`date_time`:t,D=C?E===`relative`?ot(S,b,y,`long`):E===`relative_short`?ot(S,b,y,`narrow`):bt(E)?Z(S,E,y,{isTimezoneShown:o}):``:``,ne=C?Z(S,`full`,y):``,k=C?Z(S,`full`,y,{timeZoneNameStyle:`long`}):``;if((0,V.useEffect)(()=>{if(!s||!C||!xt(E))return;let e=yt(T),t=setInterval(()=>{x(new Date)},e);return()=>clearInterval(t)},[s,C,E,T]),L(`Timestamp`,`could not parse value ${JSON.stringify(e)} as a date. Rendering nothing.`,!C),!C)return null;let A=a!==void 0&&a.length>0?a:void 0,ie=i&&(xt(E)||A!==void 0),M=A===void 0?[{value:ne,isCopyable:!0}]:ft(S,A,y),ae=O(r(`timestamp`,{format:E}),{className:p,style:m}),P=(0,H.jsx)(N,{type:c,size:l,color:u,weight:d,xstyle:f,...ae,children:(0,H.jsx)(`time`,{ref:te,dateTime:w,"data-testid":g,className:`xt0psk2 xjb2p0i x1j61x8r x1qlqyl8 x15bjb6t x1heor9g x1pd3egz`,..._,...xt(E)&&k!==``?{"aria-label":k}:{},...ie?{tabIndex:0}:{},children:D})});return ie?(0,H.jsx)(V.Suspense,{fallback:P,children:(0,H.jsx)(pt,{lines:M,label:v(`@astryx.timestamp.detailsLabel`),children:P})}):P}St.displayName=`Timestamp`;var Ct={related:`_related_zz4ck_2`};function wt({label:e,children:t}){return(0,H.jsxs)(y,{as:`section`,gap:1,"aria-label":e,className:Ct.related,children:[(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:e}),(0,H.jsx)(E,{density:`compact`,children:t})]})}function $({title:e,description:t}){return(0,H.jsx)(D,{label:e,...t?{description:typeof t==`string`?(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:t}):t}:{}})}var Tt={titleMark:`_titleMark_w8ln4_2`,relations:`_relations_w8ln4_4`};function Et({sources:e,path:t}){_();let n=l();return(0,H.jsx)(wt,{label:g(`design.sources`),children:e.map((e,r)=>{let i=e.url?a(e.url,t,n):e.path?a(Ot(t,e.path),t,n):{kind:`missing`,path:e.id??``},o=i.kind===`external`?Dt(i.href):i.kind===`instruction`?i.path.replace(/^\.gitifact\//,``):i.kind===`agents`?i.path:i.kind===`missing`?g(`link.missing`,{path:i.path}):i.kind===`outside`?i.path:``;return(0,H.jsx)($,{title:(0,H.jsx)(s,{link:i,children:e.title??e.id}),description:(e.note||o)&&(0,H.jsxs)(b,{gap:2,wrap:`wrap`,children:[e.note&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:e.note}),o&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:o})]})},r)})})}var Dt=e=>{try{return new URL(e).hostname}catch{return e}};function Ot(e,t){let n=e.split(`/`).slice(0,-1),r=t.split(`/`),i=0;for(;i<n.length&&i<r.length-1&&n[i]===r[i];)i++;return[...Array(n.length-i).fill(`..`),...r.slice(i)].join(`/`)}function kt({design:e,path:t,features:n,eyebrow:r,footer:i}){_();let a=e.requirements??[];return(0,H.jsxs)(y,{gap:4,children:[(0,H.jsxs)(y,{gap:2,children:[r,(0,H.jsx)(w,{level:3,children:(0,H.jsx)(`mark`,{className:Tt.titleMark,children:e.title})}),e.description&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:e.description})]}),(0,H.jsx)(c,{headingLevelStart:4,path:t,children:e.body}),(!!a.length||!!e.sources?.length||i)&&(0,H.jsxs)(y,{gap:4,className:Tt.relations,children:[!!a.length&&(0,H.jsx)(wt,{label:g(`design.relatedRequirements`),children:a.map(e=>{let t=n.find(t=>t.requirements.some(t=>t.id===e)),r=t?.requirements.find(t=>t.id===e);return t&&r?(0,H.jsx)($,{title:(0,H.jsx)(h,{to:`/features/$featureId`,params:{featureId:t.id},search:{selected:e,tab:`requirements`},hash:e,children:r.title}),description:r.description},e):(0,H.jsx)($,{title:(0,H.jsx)(N,{color:`secondary`,children:g(`design.missingRequirement`,{id:e})})},e)})}),!!e.sources?.length&&(0,H.jsx)(Et,{sources:e.sources,path:t}),i]})]})}var At={feature:`default`,requirement:`teal`,design:`orange`,wiki:`pink`,instruction:`cyan`};function jt({kind:e}){_();let t={feature:g(`kind.feature`),requirement:g(`kind.requirement`),design:g(`kind.design`),wiki:g(`kind.wiki`),instruction:g(`kind.instruction`)};return(0,H.jsx)(z,{label:t[e],color:At[e],size:`sm`})}var Mt={badge:`_badge_sibhz_3`,"#":`_#_sibhz_1`},Nt={created:`green`,modified:`blue`,deleted:`red`,moved:`purple`},Pt=e=>e.types.includes(`deleted`)?`deleted`:e.types.includes(`modified`)?`modified`:e.types.includes(`moved`)?`moved`:`created`;function Ft({event:e}){_();let t={created:g(`change.created`),modified:g(`change.modified`),deleted:g(`change.deleted`),moved:g(`change.moved`)};return(0,H.jsxs)(`span`,{className:Mt.badge,children:[(0,H.jsx)(z,{label:e.types.map(e=>t[e]).join(` · `),color:Nt[Pt(e)],size:`sm`}),(0,H.jsx)(jt,{kind:e.kind})]})}var It={added:`green`,modified:`blue`,deleted:`red`};function Lt({state:e}){if(_(),e===`committed`)return null;let t={added:g(`state.added`),modified:g(`state.modified`),deleted:g(`state.deleted`)};return(0,H.jsx)(z,{label:t[e],color:It[e],size:`sm`})}export{ge as C,_e as S,Te as _,$ as a,ve as b,Je as c,We as d,Ue as f,De as g,Ie as h,kt as i,Ge as l,Re as m,Ft as n,wt as o,Ke as p,jt as r,St as s,Lt as t,qe as u,Ce as v,pe as w,ye as x,we as y};
@@ -0,0 +1 @@
1
+ @keyframes _reveal_otq4r_1{0%{opacity:0}}._page_otq4r_3{min-width:0}._content_otq4r_5{padding:var(--spacing-4) var(--spacing-5);min-width:0;animation:.22s ease-out both _reveal_otq4r_1}@media (prefers-reduced-motion:reduce){._content_otq4r_5{animation:none}}._column_otq4r_10{width:100%;min-width:0;max-width:64rem;margin-inline:auto}._pageTitle_otq4r_11{padding-inline:var(--spacing-5);padding-block:var(--spacing-6) var(--spacing-2)}._filters_otq4r_12{padding:var(--spacing-3) var(--spacing-5)}._filtersSticky_otq4r_13{top:var(--gitifact-topbar-height);z-index:2;background:var(--color-background-surface);border-bottom:1px solid var(--color-border);position:sticky}._entryBody_otq4r_15{flex:1;min-width:0}._headerActions_otq4r_17{white-space:nowrap;flex-shrink:0;align-items:center}@media (width<48rem){._headerTime_otq4r_22{display:none}._filters_otq4r_12{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}._filters_otq4r_12>*{min-width:0}._filters_otq4r_12>:first-child{grid-column:1/-1}._filters_otq4r_12>*>:last-child,._filters_otq4r_12>*>:last-child>button{width:100%}}._wide_otq4r_30{max-width:96rem}._staleNotice_otq4r_33{padding-top:var(--spacing-4)}._helpCard_wqyxv_1{background:var(--color-background-popover);border:var(--border-width) solid var(--color-border-emphasized);box-shadow:var(--shadow-med)}._related_zz4ck_2{min-width:0}._related_zz4ck_2 a{font-size:.9375rem}._titleMark_w8ln4_2{color:inherit;background:0 0;background-image:linear-gradient(transparent 55%, var(--color-background-yellow) 55%, var(--color-background-yellow) 94%, transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.15em}._relations_w8ln4_4{padding-block-start:var(--spacing-2)}._badge_sibhz_3{flex:none;align-items:center;display:inline-flex}._badge_sibhz_3>.astryx-token:first-child:not(#_\#_sibhz_1):not(#_\#_sibhz_1){border-start-end-radius:0;border-end-end-radius:0}._badge_sibhz_3>.astryx-token:last-child:not(#_\#_sibhz_1):not(#_\#_sibhz_1){border-start-start-radius:0;border-end-start-radius:0}