@thxgg/steward 0.1.15 → 0.1.17

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 (158) hide show
  1. package/.env.example +6 -0
  2. package/.output/nitro.json +1 -1
  3. package/.output/public/_nuxt/{qKRNa41x.js → 4r0X30JV.js} +1 -1
  4. package/.output/public/_nuxt/{uTyw4SRK.js → BMdjSp24.js} +1 -1
  5. package/.output/public/_nuxt/{BubpH_wW.js → BSZqAKg4.js} +1 -1
  6. package/.output/public/_nuxt/{nYTZJhvT.js → BdjPva1I.js} +1 -1
  7. package/.output/public/_nuxt/Beeir9iR.js +1 -0
  8. package/.output/public/_nuxt/Bh3vsUvl.js +1 -0
  9. package/.output/public/_nuxt/{CMu9GKTH.js → BlTKcjLJ.js} +2 -2
  10. package/.output/public/_nuxt/{BDqHART1.js → By7gAVcL.js} +1 -1
  11. package/.output/public/_nuxt/CbJfCtEa.js +1 -0
  12. package/.output/public/_nuxt/CbkpNvIu.js +141 -0
  13. package/.output/public/_nuxt/CmhLcqDu.js +1 -0
  14. package/.output/public/_nuxt/DC6iPLz1.js +30 -0
  15. package/.output/public/_nuxt/{C_NevjZD.js → DD--ojY9.js} +1 -1
  16. package/.output/public/_nuxt/Detail.DSyVQNdr.css +1 -0
  17. package/.output/public/_nuxt/DhKWRjCh.js +60 -0
  18. package/.output/public/_nuxt/_prd_.BkpxMFSV.css +1 -0
  19. package/.output/public/_nuxt/builds/latest.json +1 -1
  20. package/.output/public/_nuxt/builds/meta/f3f42dbd-d501-442b-871c-3d06157e7aa1.json +1 -0
  21. package/.output/public/_nuxt/c1sXju8w.js +1 -0
  22. package/.output/public/_nuxt/eGCjCghR.js +1 -0
  23. package/.output/public/_nuxt/nX8Sf7cz.js +13 -0
  24. package/.output/server/chunks/_/git-api.mjs +100 -7
  25. package/.output/server/chunks/_/git-api.mjs.map +1 -1
  26. package/.output/server/chunks/_/git.mjs +3 -10
  27. package/.output/server/chunks/_/git.mjs.map +1 -1
  28. package/.output/server/chunks/_/prd-service.mjs +234 -0
  29. package/.output/server/chunks/_/prd-service.mjs.map +1 -0
  30. package/.output/server/chunks/_/task-graph.mjs +3 -3
  31. package/.output/server/chunks/_/task-graph.mjs.map +1 -1
  32. package/.output/server/chunks/_/watcher.mjs +26 -46
  33. package/.output/server/chunks/_/watcher.mjs.map +1 -1
  34. package/.output/server/chunks/build/{Detail-DC-KJQ1f.mjs → Detail-MGwP_u2d.mjs} +63 -34
  35. package/.output/server/chunks/build/Detail-MGwP_u2d.mjs.map +1 -0
  36. package/.output/server/chunks/build/DiffViewer-styles-1.mjs-BFsE2PCW.mjs +4 -0
  37. package/.output/server/chunks/build/DiffViewer-styles-1.mjs-BFsE2PCW.mjs.map +1 -0
  38. package/.output/server/chunks/build/DiffViewer-styles.D2bqX3nK.mjs +8 -0
  39. package/.output/server/chunks/build/DiffViewer-styles.D2bqX3nK.mjs.map +1 -0
  40. package/.output/server/chunks/build/DiffViewer-styles.FoV36wuV.mjs +10 -0
  41. package/.output/server/chunks/build/DiffViewer-styles.FoV36wuV.mjs.map +1 -0
  42. package/.output/server/chunks/build/Viewer-styles.D6wYWFb1.mjs +8 -0
  43. package/.output/server/chunks/build/Viewer-styles.D6wYWFb1.mjs.map +1 -0
  44. package/.output/server/chunks/build/{_prd_-C1C4GAhW.mjs → _prd_-C-Aj4fVa.mjs} +75 -33
  45. package/.output/server/chunks/build/_prd_-C-Aj4fVa.mjs.map +1 -0
  46. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  47. package/.output/server/chunks/build/{default-DWCOHHTE.mjs → default-Cao5eO80.mjs} +4 -3
  48. package/.output/server/chunks/build/default-Cao5eO80.mjs.map +1 -0
  49. package/.output/server/chunks/build/error-404-Bf6kdO80.mjs +2 -1
  50. package/.output/server/chunks/build/error-500-D_bcARXN.mjs +2 -1
  51. package/.output/server/chunks/build/{index-CckL_NBD.mjs → index-ByZO4Bvq.mjs} +2 -2
  52. package/.output/server/chunks/build/index-ByZO4Bvq.mjs.map +1 -0
  53. package/.output/server/chunks/build/{index-QVeSHT3L.mjs → index-ljj9uTXI.mjs} +8 -5
  54. package/.output/server/chunks/build/index-ljj9uTXI.mjs.map +1 -0
  55. package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs +1 -1
  56. package/.output/server/chunks/build/{repo-graph-CTEkxiYd.mjs → repo-graph-EuhMeFt7.mjs} +25 -10
  57. package/.output/server/chunks/build/repo-graph-EuhMeFt7.mjs.map +1 -0
  58. package/.output/server/chunks/build/server.mjs +7 -6
  59. package/.output/server/chunks/build/styles.mjs +4 -4
  60. package/.output/server/chunks/build/{usePrd-SqcxGyFU.mjs → usePrd-f7ylhIqs.mjs} +10 -34
  61. package/.output/server/chunks/build/usePrd-f7ylhIqs.mjs.map +1 -0
  62. package/.output/server/chunks/nitro/nitro.mjs +1149 -720
  63. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  64. package/.output/server/chunks/routes/api/browse.get.mjs +12 -6
  65. package/.output/server/chunks/routes/api/browse.get.mjs.map +1 -1
  66. package/.output/server/chunks/routes/api/index.get.mjs +2 -1
  67. package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
  68. package/.output/server/chunks/routes/api/index.post.mjs +3 -2
  69. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
  70. package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs +11 -13
  71. package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs.map +1 -1
  72. package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs +11 -6
  73. package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs.map +1 -1
  74. package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs +31 -12
  75. package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs.map +1 -1
  76. package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs +13 -13
  77. package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs.map +1 -1
  78. package/.output/server/chunks/routes/api/repos/_repoId/graph.get.mjs +5 -1
  79. package/.output/server/chunks/routes/api/repos/_repoId/graph.get.mjs.map +1 -1
  80. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/graph.get.mjs +14 -1
  81. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/graph.get.mjs.map +1 -1
  82. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs +20 -9
  83. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs.map +1 -1
  84. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs +20 -85
  85. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs.map +1 -1
  86. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs +20 -9
  87. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs.map +1 -1
  88. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs +30 -50
  89. package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs.map +1 -1
  90. package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs +19 -49
  91. package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs.map +1 -1
  92. package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs +6 -13
  93. package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs.map +1 -1
  94. package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs +2 -1
  95. package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs.map +1 -1
  96. package/.output/server/chunks/routes/api/runtime.get.mjs +3 -2
  97. package/.output/server/chunks/routes/api/runtime.get.mjs.map +1 -1
  98. package/.output/server/chunks/routes/api/watch.get.mjs +5 -4
  99. package/.output/server/chunks/routes/api/watch.get.mjs.map +1 -1
  100. package/.output/server/chunks/routes/renderer.mjs +1 -1
  101. package/.output/server/index.mjs +3 -2
  102. package/.output/server/index.mjs.map +1 -1
  103. package/.output/server/node_modules/zod/index.js +4 -0
  104. package/.output/server/node_modules/zod/package.json +118 -0
  105. package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
  106. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  107. package/.output/server/node_modules/zod/v3/external.js +6 -0
  108. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  109. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  110. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  111. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  112. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  113. package/.output/server/node_modules/zod/v3/types.js +3693 -0
  114. package/.output/server/package.json +2 -1
  115. package/README.md +7 -2
  116. package/dist/host/src/api/prds.js +6 -172
  117. package/dist/host/src/api/repos.js +3 -16
  118. package/dist/host/src/api/state.js +7 -2
  119. package/dist/host/src/executor-runner.js +368 -0
  120. package/dist/host/src/executor.js +138 -260
  121. package/dist/host/src/index.js +7 -2
  122. package/dist/host/src/mcp.js +27 -1
  123. package/dist/host/src/ui.js +18 -3
  124. package/dist/server/utils/change-events.js +33 -0
  125. package/dist/server/utils/git.js +11 -16
  126. package/dist/server/utils/prd-service.js +235 -0
  127. package/dist/server/utils/prd-state.js +57 -45
  128. package/dist/server/utils/repos.js +58 -13
  129. package/dist/server/utils/state-schema.js +61 -0
  130. package/dist/server/utils/task-graph.js +2 -2
  131. package/package.json +2 -1
  132. package/.output/public/_nuxt/-k8zG74W.js +0 -61
  133. package/.output/public/_nuxt/B-5VWizU.js +0 -1
  134. package/.output/public/_nuxt/BMAq0QVD.js +0 -42
  135. package/.output/public/_nuxt/BPeTf9dd.js +0 -1
  136. package/.output/public/_nuxt/C2HGkiSP.js +0 -1
  137. package/.output/public/_nuxt/CVvrkZkq.js +0 -1
  138. package/.output/public/_nuxt/Detail.CzXXlavD.css +0 -1
  139. package/.output/public/_nuxt/_prd_.KTotLoF_.css +0 -1
  140. package/.output/public/_nuxt/builds/meta/c1a7997d-8d53-4718-ad03-a977e05e2523.json +0 -1
  141. package/.output/public/_nuxt/qt5OEWHC.js +0 -1
  142. package/.output/public/_nuxt/wbj-mIhK.js +0 -1
  143. package/.output/server/chunks/build/Detail-DC-KJQ1f.mjs.map +0 -1
  144. package/.output/server/chunks/build/DiffViewer-styles-1.mjs-D0sb4vsK.mjs +0 -4
  145. package/.output/server/chunks/build/DiffViewer-styles-1.mjs-D0sb4vsK.mjs.map +0 -1
  146. package/.output/server/chunks/build/DiffViewer-styles.CkSjCQ0r.mjs +0 -10
  147. package/.output/server/chunks/build/DiffViewer-styles.CkSjCQ0r.mjs.map +0 -1
  148. package/.output/server/chunks/build/DiffViewer-styles.FJJuYjYB.mjs +0 -8
  149. package/.output/server/chunks/build/DiffViewer-styles.FJJuYjYB.mjs.map +0 -1
  150. package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs +0 -8
  151. package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs.map +0 -1
  152. package/.output/server/chunks/build/_prd_-C1C4GAhW.mjs.map +0 -1
  153. package/.output/server/chunks/build/default-DWCOHHTE.mjs.map +0 -1
  154. package/.output/server/chunks/build/index-CckL_NBD.mjs.map +0 -1
  155. package/.output/server/chunks/build/index-QVeSHT3L.mjs.map +0 -1
  156. package/.output/server/chunks/build/repo-graph-CTEkxiYd.mjs.map +0 -1
  157. package/.output/server/chunks/build/usePrd-SqcxGyFU.mjs.map +0 -1
  158. package/.output/server/node_modules/shiki/dist/bundle-web.mjs +0 -366
@@ -1,61 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./Cn7AkR1O.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./DxSwrfjg.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./5X7smno1.js","./DGP4VlC8.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./BYV0-3_D.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./fKv21gyL.js","./Yzrsuije.js","./DZu-aV2c.js","./CpOuai2O.js","./CeZK1NFH.js","./CGscLIrv.js","./Bhrxn6JZ.js","./CmIQRyeF.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./YqXBG_HV.js","./BR5kRUq4.js","./CLZrNe3w.js","./m17aaUwq.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./CXZktZb0.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./DMwsHuHA.js","./CQ8jqdy-.js","./mjskCLCv.js","./83L43bj1.js","./B1dDrJ26.js","./TsXTqZ29.js","./Dph4kLrZ.js","./DhmSosst.js","./BzTr9Aqm.js","./DJjDtW9f.js","./BLmx8bSh.js","./BVQ-GDCI.js","./DsumFeuD.js","./COcwbKMJ.js","./DQwYQDb2.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Dzze3sRP.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DYoxhk2S.js","./CZhp0h8q.js","./CxLEBnE3.js","./Cm3UrAx6.js","./RNghxpo_.js","./DEthMvLe.js","./DqQDbK_p.js","./CW8IKDeL.js","./BEDo0Tqx.js","./yv6CvBhz.js"])))=>i.map(i=>d[i]);
2
- import{_ as Ni}from"./wbj-mIhK.js";import{u as Jr,c as ei,a as ti,b as It,P as zi,B as ri,C as ii,d as Bi,e as Fi,L as Ui,R as Hi,G as qi}from"./C_NevjZD.js";import{c as pt,d as ai,P as We,e as _e,r as Dt,u as Gi,a as ji,b as Wi,B as Or,F as Qi}from"./qt5OEWHC.js";import{C as Yi,E as Sr,c as Xi,g as Ki,a as Zi,b as Ji,d as ea,M as Cr,e as Vr,f as ta,_ as ra,h as ia}from"./BMAq0QVD.js";import{g as B,v as ar,o as A,x as ae,w as D,b as y,l as p,y as X,q as U,z as Rt,A as ni,s as $,B as aa,C as na,D as oa,E as sa,n as Ae,G as la,p as ua,c as O,a as M,t as re,d as De,_ as n,k as Se,H as de,I as oi,F as si,r as li,J as pa,K as ca,L as Pt,M as ma,j as da,m as Mr,i as _a}from"./CMu9GKTH.js";import{u as ui,f as pi,E as fa,a as ha,g as ga,w as Ea,A as $r}from"./C2HGkiSP.js";import{_ as ka}from"./DlAUqK2U.js";import"./nYTZJhvT.js";const Ta=pt("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);const ba=pt("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);const va=pt("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Nr=pt("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);const Aa=pt("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),[xa,Ra]=ei("RovingFocusGroup");var ya=B({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(i,{expose:e,emit:t}){const a=i,r=t,{loop:l,orientation:s,dir:c}=ar(a),u=Jr(c),d=ai(a,"currentTabStopId",r,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),m=U(!1),_=U(!1),E=U(0),{getItems:k,CollectionSlot:v}=ui({isProvider:!0});function S(C){const V=!_.value;if(C.currentTarget&&C.target===C.currentTarget&&V&&!m.value){const P=new CustomEvent(fa,ha);if(C.currentTarget.dispatchEvent(P),r("entryFocus",P),!P.defaultPrevented){const w=k().map(G=>G.ref).filter(G=>G.dataset.disabled!==""),J=w.find(G=>G.getAttribute("data-active")===""),K=w.find(G=>G.getAttribute("data-highlighted")===""),fe=w.find(G=>G.id===d.value),he=[J,K,fe,...w].filter(Boolean);pi(he,a.preventScrollOnEntryFocus)}}_.value=!1}function ue(){setTimeout(()=>{_.value=!1},1)}return e({getItems:k}),Ra({loop:l,dir:u,orientation:s,currentTabStopId:d,onItemFocus:C=>{d.value=C},onItemShiftTab:()=>{m.value=!0},onFocusableItemAdd:()=>{E.value++},onFocusableItemRemove:()=>{E.value--}}),(C,V)=>(A(),ae(p(v),null,{default:D(()=>[y(p(We),{tabindex:m.value||E.value===0?-1:0,"data-orientation":p(s),as:C.as,"as-child":C.asChild,dir:p(u),style:{outline:"none"},onMousedown:V[0]||(V[0]=P=>_.value=!0),onMouseup:ue,onFocus:S,onBlur:V[1]||(V[1]=P=>m.value=!1)},{default:D(()=>[X(C.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),La=ya,wa=B({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(i){const e=i,t=xa(),a=ti(),r=$(()=>e.tabStopId||a),l=$(()=>t.currentTabStopId.value===r.value),{getItems:s,CollectionItem:c}=ui();Rt(()=>{e.focusable&&t.onFocusableItemAdd()}),ni(()=>{e.focusable&&t.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){t.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const m=ga(d,t.orientation.value,t.dir.value);if(m!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!e.allowShiftKey&&d.shiftKey)return;d.preventDefault();let _=[...s().map(E=>E.ref).filter(E=>E.dataset.disabled!=="")];if(m==="last")_.reverse();else if(m==="prev"||m==="next"){m==="prev"&&_.reverse();const E=_.indexOf(d.currentTarget);_=t.loop.value?Ea(_,E+1):_.slice(E+1)}aa(()=>pi(_))}}return(d,m)=>(A(),ae(p(c),null,{default:D(()=>[y(p(We),{tabindex:l.value?0:-1,"data-orientation":p(t).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:m[0]||(m[0]=_=>{d.focusable?p(t).onItemFocus(r.value):_.preventDefault()}),onFocus:m[1]||(m[1]=_=>p(t).onItemFocus(r.value)),onKeydown:u},{default:D(()=>[X(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Ia=wa;const[nr,Da]=ei("TabsRoot");var Pa=B({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,a=e,{orientation:r,unmountOnHide:l,dir:s}=ar(t),c=Jr(s);It();const u=ai(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),d=U(),m=na(new Set);return Da({modelValue:u,changeModelValue:_=>{u.value=_},orientation:r,dir:c,unmountOnHide:l,activationMode:t.activationMode,baseId:ti(void 0,"reka-tabs"),tabsList:d,contentIds:m,registerContent:_=>{m.value=new Set([...m.value,_])},unregisterContent:_=>{const E=new Set(m.value);E.delete(_),m.value=E}}),(_,E)=>(A(),ae(p(We),{dir:p(c),"data-orientation":p(r),"as-child":_.asChild,as:_.as},{default:D(()=>[X(_.$slots,"default",{modelValue:p(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Oa=Pa;function ci(i,e){return`${i}-trigger-${e}`}function mi(i,e){return`${i}-content-${e}`}var Sa=B({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(i){const e=i,{forwardRef:t}=It(),a=nr(),r=$(()=>ci(a.baseId,e.value)),l=$(()=>mi(a.baseId,e.value)),s=$(()=>e.value===a.modelValue.value),c=U(s.value);return Rt(()=>{a.registerContent(e.value),requestAnimationFrame(()=>{c.value=!1})}),oa(()=>{a.unregisterContent(e.value)}),(u,d)=>(A(),ae(p(zi),{present:u.forceMount||s.value,"force-mount":""},{default:D(({present:m})=>[y(p(We),{id:l.value,ref:p(t),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":s.value?"active":"inactive","data-orientation":p(a).orientation.value,"aria-labelledby":r.value,hidden:!m,tabindex:"0",style:sa({animationDuration:c.value?"0s":void 0})},{default:D(()=>[!p(a).unmountOnHide.value||m?X(u.$slots,"default",{key:0}):Ae("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Ca=Sa,Va=B({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(i){const e=i,{loop:t}=ar(e),{forwardRef:a,currentElement:r}=It(),l=nr();return l.tabsList=r,(s,c)=>(A(),ae(p(La),{"as-child":"",orientation:p(l).orientation.value,dir:p(l).dir.value,loop:p(t)},{default:D(()=>[y(p(We),{ref:p(a),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":p(l).orientation.value},{default:D(()=>[X(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Ma=Va,$a=B({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(i){const e=i,{forwardRef:t}=It(),a=nr(),r=$(()=>ci(a.baseId,e.value)),l=$(()=>a.contentIds.value.has(e.value)?mi(a.baseId,e.value):void 0),s=$(()=>e.value===a.modelValue.value);return(c,u)=>(A(),ae(p(Ia),{"as-child":"",focusable:!c.disabled,active:s.value},{default:D(()=>[y(p(We),{id:r.value,ref:p(t),role:"tab",type:c.as==="button"?"button":void 0,as:c.as,"as-child":c.asChild,"aria-selected":s.value?"true":"false","aria-controls":l.value,"data-state":s.value?"active":"inactive",disabled:c.disabled,"data-disabled":c.disabled?"":void 0,"data-orientation":p(a).orientation.value,onMousedown:u[0]||(u[0]=ua(d=>{!c.disabled&&d.ctrlKey===!1?p(a).changeModelValue(c.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=la(d=>p(a).changeModelValue(c.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=p(a).activationMode!=="manual";!s.value&&!c.disabled&&d&&p(a).changeModelValue(c.value)})},{default:D(()=>[X(c.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Na=$a;const za={key:0,class:"flex flex-wrap items-center gap-3 text-sm"},Ba={key:0,class:"flex items-center gap-1.5 text-muted-foreground"},Fa={key:1,class:"flex items-center gap-1.5 text-muted-foreground"},Ua=["href"],Ha={key:4,class:"flex items-center gap-1.5 text-muted-foreground"},qa=B({__name:"Meta",props:{metadata:{}},setup(i){const e=i,t=$(()=>{const r=e.metadata.status?.toLowerCase();return r?r.includes("complete")||r.includes("done")||r.includes("progress")||r.includes("active")?"default":r.includes("draft")?"secondary":r.includes("blocked")||r.includes("paused")?"destructive":"secondary":"secondary"}),a=$(()=>e.metadata.author||e.metadata.date||e.metadata.status||e.metadata.shortcutStory);return(r,l)=>p(a)?(A(),O("div",za,[i.metadata.author?(A(),O("div",Ba,[y(p(Aa),{class:"size-3.5"}),M("span",null,re(i.metadata.author),1)])):Ae("",!0),i.metadata.date?(A(),O("div",Fa,[y(p(Yi),{class:"size-3.5"}),M("span",null,re(i.metadata.date),1)])):Ae("",!0),i.metadata.status?(A(),ae(p(ri),{key:2,variant:p(t),class:"gap-1"},{default:D(()=>[y(p(ba),{class:"size-3"}),De(" "+re(i.metadata.status),1)]),_:1},8,["variant"])):Ae("",!0),i.metadata.shortcutStory&&i.metadata.shortcutUrl?(A(),O("a",{key:3,href:i.metadata.shortcutUrl,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 text-primary hover:underline"},[y(p(Sr),{class:"size-3.5"}),M("span",null,re(i.metadata.shortcutStory),1)],8,Ua)):i.metadata.shortcutStory?(A(),O("span",Ha,[y(p(Sr),{class:"size-3.5"}),M("span",null,re(i.metadata.shortcutStory),1)])):Ae("",!0)])):Ae("",!0)}}),Ga=Object.assign(qa,{__name:"PrdMeta"});function or(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Me=or();function di(i){Me=i}var Ce={exec:()=>null};function L(i,e=""){let t=typeof i=="string"?i:i.source,a={replace:(r,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(ie.caret,"$1"),t=t.replace(r,s),a},getRegex:()=>new RegExp(t,e)};return a}var ja=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ie={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}>`)},Wa=/^(?:[ \t]*(?:\n|$))+/,Qa=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ya=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ct=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,_i=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fi=L(_i).replace(/bull/g,sr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ka=L(_i).replace(/bull/g,sr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Za=/^[^\n]+/,ur=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ja=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ur).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),en=L(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sr).getRegex(),Ot="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",pr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tn=L("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",pr).replace("tag",Ot).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hi=L(lr).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ot).getRegex(),rn=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",hi).getRegex(),cr={blockquote:rn,code:Qa,def:Ja,fences:Ya,heading:Xa,hr:ct,html:tn,lheading:fi,list:en,newline:Wa,paragraph:hi,table:Ce,text:Za},zr=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ot).getRegex(),an={...cr,lheading:Ka,table:zr,paragraph:L(lr).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ot).getRegex()},nn={...cr,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ce,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(lr).replace("hr",ct).replace("heading",` *#{1,6} *[^
3
- ]`).replace("lheading",fi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},on=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gi=/^( {2,}|\\)\n(?!\s*$)/,ln=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,St=/[\p{P}\p{S}]/u,mr=/[\s\p{P}\p{S}]/u,Ei=/[^\s\p{P}\p{S}]/u,un=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mr).getRegex(),ki=/(?!~)[\p{P}\p{S}]/u,pn=/(?!~)[\s\p{P}\p{S}]/u,cn=/(?:[^\s\p{P}\p{S}]|~)/u,Ti=/(?![*_])[\p{P}\p{S}]/u,mn=/(?![*_])[\s\p{P}\p{S}]/u,dn=/(?:[^\s\p{P}\p{S}]|[*_])/u,_n=L(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ja?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),bi=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,fn=L(bi,"u").replace(/punct/g,St).getRegex(),hn=L(bi,"u").replace(/punct/g,ki).getRegex(),vi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",gn=L(vi,"gu").replace(/notPunctSpace/g,Ei).replace(/punctSpace/g,mr).replace(/punct/g,St).getRegex(),En=L(vi,"gu").replace(/notPunctSpace/g,cn).replace(/punctSpace/g,pn).replace(/punct/g,ki).getRegex(),kn=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ei).replace(/punctSpace/g,mr).replace(/punct/g,St).getRegex(),Tn=L(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ti).getRegex(),bn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vn=L(bn,"gu").replace(/notPunctSpace/g,dn).replace(/punctSpace/g,mn).replace(/punct/g,Ti).getRegex(),An=L(/\\(punct)/,"gu").replace(/punct/g,St).getRegex(),xn=L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rn=L(pr).replace("(?:-->|$)","-->").getRegex(),yn=L("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ln=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",yt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ai=L(/^!?\[(label)\]\[(ref)\]/).replace("label",yt).replace("ref",ur).getRegex(),xi=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",ur).getRegex(),wn=L("reflink|nolink(?!\\()","g").replace("reflink",Ai).replace("nolink",xi).getRegex(),Br=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,dr={_backpedal:Ce,anyPunctuation:An,autolink:xn,blockSkip:_n,br:gi,code:sn,del:Ce,delLDelim:Ce,delRDelim:Ce,emStrongLDelim:fn,emStrongRDelimAst:gn,emStrongRDelimUnd:kn,escape:on,link:Ln,nolink:xi,punctuation:un,reflink:Ai,reflinkSearch:wn,tag:yn,text:ln,url:Ce},In={...dr,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",yt).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yt).getRegex()},Zt={...dr,emStrongRDelimAst:En,emStrongLDelim:hn,delLDelim:Tn,delRDelim:vn,url:L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Br).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Br).getRegex()},Dn={...Zt,br:L(gi).replace("{2,}","*").getRegex(),text:L(Zt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bt={normal:cr,gfm:an,pedantic:nn},rt={normal:dr,gfm:Zt,breaks:Dn,pedantic:In},Pn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fr=i=>Pn[i];function be(i,e){if(e){if(ie.escapeTest.test(i))return i.replace(ie.escapeReplace,Fr)}else if(ie.escapeTestNoEncode.test(i))return i.replace(ie.escapeReplaceNoEncode,Fr);return i}function Ur(i){try{i=encodeURI(i).replace(ie.percentDecode,"%")}catch{return null}return i}function Hr(i,e){let t=i.replace(ie.findPipe,(l,s,c)=>{let u=!1,d=s;for(;--d>=0&&c[d]==="\\";)u=!u;return u?"|":" |"}),a=t.split(ie.splitPipe),r=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length<e;)a.push("");for(;r<a.length;r++)a[r]=a[r].trim().replace(ie.slashPipe,"|");return a}function it(i,e,t){let a=i.length;if(a===0)return"";let r=0;for(;r<a&&i.charAt(a-r-1)===e;)r++;return i.slice(0,a-r)}function On(i,e){if(i.indexOf(e[1])===-1)return-1;let t=0;for(let a=0;a<i.length;a++)if(i[a]==="\\")a++;else if(i[a]===e[0])t++;else if(i[a]===e[1]&&(t--,t<0))return a;return t>0?-2:-1}function Sn(i,e=0){let t=e,a="";for(let r of i)if(r===" "){let l=4-t%4;a+=" ".repeat(l),t+=l}else a+=r,t++;return a}function qr(i,e,t,a,r){let l=e.href,s=e.title||null,c=i[1].replace(r.other.outputLinkReplace,"$1");a.state.inLink=!0;let u={type:i[0].charAt(0)==="!"?"image":"link",raw:t,href:l,title:s,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,u}function Cn(i,e,t){let a=i.match(t.other.indentCodeCompensation);if(a===null)return e;let r=a[1];return e.split(`
4
- `).map(l=>{let s=l.match(t.other.beginningSpace);if(s===null)return l;let[c]=s;return c.length>=r.length?l.slice(r.length):l}).join(`
5
- `)}var Lt=class{options;rules;lexer;constructor(i){this.options=i||Me}space(i){let e=this.rules.block.newline.exec(i);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(i){let e=this.rules.block.code.exec(i);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:it(t,`
6
- `)}}}fences(i){let e=this.rules.block.fences.exec(i);if(e){let t=e[0],a=Cn(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:a}}}heading(i){let e=this.rules.block.heading.exec(i);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let a=it(t,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(t=a.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(i){let e=this.rules.block.hr.exec(i);if(e)return{type:"hr",raw:it(e[0],`
7
- `)}}blockquote(i){let e=this.rules.block.blockquote.exec(i);if(e){let t=it(e[0],`
8
- `).split(`
9
- `),a="",r="",l=[];for(;t.length>0;){let s=!1,c=[],u;for(u=0;u<t.length;u++)if(this.rules.other.blockquoteStart.test(t[u]))c.push(t[u]),s=!0;else if(!s)c.push(t[u]);else break;t=t.slice(u);let d=c.join(`
10
- `),m=d.replace(this.rules.other.blockquoteSetextReplace,`
11
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
12
- ${d}`:d,r=r?`${r}
13
- ${m}`:m;let _=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,l,!0),this.lexer.state.top=_,t.length===0)break;let E=l.at(-1);if(E?.type==="code")break;if(E?.type==="blockquote"){let k=E,v=k.raw+`
14
- `+t.join(`
15
- `),S=this.blockquote(v);l[l.length-1]=S,a=a.substring(0,a.length-k.raw.length)+S.raw,r=r.substring(0,r.length-k.text.length)+S.text;break}else if(E?.type==="list"){let k=E,v=k.raw+`
16
- `+t.join(`
17
- `),S=this.list(v);l[l.length-1]=S,a=a.substring(0,a.length-E.raw.length)+S.raw,r=r.substring(0,r.length-k.raw.length)+S.raw,t=v.substring(l.at(-1).raw.length).split(`
18
- `);continue}}return{type:"blockquote",raw:a,tokens:l,text:r}}}list(i){let e=this.rules.block.list.exec(i);if(e){let t=e[1].trim(),a=t.length>1,r={type:"list",raw:"",ordered:a,start:a?+t.slice(0,-1):"",loose:!1,items:[]};t=a?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=a?t:"[*+-]");let l=this.rules.other.listItemRegex(t),s=!1;for(;i;){let u=!1,d="",m="";if(!(e=l.exec(i))||this.rules.block.hr.test(i))break;d=e[0],i=i.substring(d.length);let _=Sn(e[2].split(`
19
- `,1)[0],e[1].length),E=i.split(`
20
- `,1)[0],k=!_.trim(),v=0;if(this.options.pedantic?(v=2,m=_.trimStart()):k?v=e[1].length+1:(v=_.search(this.rules.other.nonSpaceChar),v=v>4?1:v,m=_.slice(v),v+=e[1].length),k&&this.rules.other.blankLine.test(E)&&(d+=E+`
21
- `,i=i.substring(E.length+1),u=!0),!u){let S=this.rules.other.nextBulletRegex(v),ue=this.rules.other.hrRegex(v),C=this.rules.other.fencesBeginRegex(v),V=this.rules.other.headingBeginRegex(v),P=this.rules.other.htmlBeginRegex(v),w=this.rules.other.blockquoteBeginRegex(v);for(;i;){let J=i.split(`
22
- `,1)[0],K;if(E=J,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),K=E):K=E.replace(this.rules.other.tabCharGlobal," "),C.test(E)||V.test(E)||P.test(E)||w.test(E)||S.test(E)||ue.test(E))break;if(K.search(this.rules.other.nonSpaceChar)>=v||!E.trim())m+=`
23
- `+K.slice(v);else{if(k||_.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(_)||V.test(_)||ue.test(_))break;m+=`
24
- `+E}k=!E.trim(),d+=J+`
25
- `,i=i.substring(J.length+1),_=K.slice(v)}}r.loose||(s?r.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),r.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),r.raw+=d}let c=r.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let u of r.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),u.tokens[0]?.type==="text"||u.tokens[0]?.type==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(u.raw);if(d){let m={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};u.checked=m.checked,r.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=m.raw+u.tokens[0].raw,u.tokens[0].text=m.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(m)):u.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):u.tokens.unshift(m)}}if(!r.loose){let d=u.tokens.filter(_=>_.type==="space"),m=d.length>0&&d.some(_=>this.rules.other.anyLine.test(_.raw));r.loose=m}}if(r.loose)for(let u of r.items){u.loose=!0;for(let d of u.tokens)d.type==="text"&&(d.type="paragraph")}return r}}html(i){let e=this.rules.block.html.exec(i);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(i){let e=this.rules.block.def.exec(i);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:a,title:r}}}table(i){let e=this.rules.block.table.exec(i);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=Hr(e[1]),a=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
26
- `):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===a.length){for(let s of a)this.rules.other.tableAlignRight.test(s)?l.align.push("right"):this.rules.other.tableAlignCenter.test(s)?l.align.push("center"):this.rules.other.tableAlignLeft.test(s)?l.align.push("left"):l.align.push(null);for(let s=0;s<t.length;s++)l.header.push({text:t[s],tokens:this.lexer.inline(t[s]),header:!0,align:l.align[s]});for(let s of r)l.rows.push(Hr(s,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(i){let e=this.rules.block.lheading.exec(i);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(i){let e=this.rules.block.paragraph.exec(i);if(e){let t=e[1].charAt(e[1].length-1)===`
27
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(i){let e=this.rules.block.text.exec(i);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(i){let e=this.rules.inline.escape.exec(i);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(i){let e=this.rules.inline.tag.exec(i);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(i){let e=this.rules.inline.link.exec(i);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let l=it(t.slice(0,-1),"\\");if((t.length-l.length)%2===0)return}else{let l=On(e[2],"()");if(l===-2)return;if(l>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let a=e[2],r="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],r=l[3])}else r=e[3]?e[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?a=a.slice(1):a=a.slice(1,-1)),qr(e,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(i,e){let t;if((t=this.rules.inline.reflink.exec(i))||(t=this.rules.inline.nolink.exec(i))){let a=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[a.toLowerCase()];if(!r){let l=t[0].charAt(0);return{type:"text",raw:l,text:l}}return qr(t,r,t[0],this.lexer,this.rules)}}emStrong(i,e,t=""){let a=this.rules.inline.emStrongLDelim.exec(i);if(!(!a||a[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!t||this.rules.inline.punctuation.exec(t))){let r=[...a[0]].length-1,l,s,c=r,u=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,e=e.slice(-1*i.length+r);(a=d.exec(e))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(s=[...l].length,a[3]||a[4]){c+=s;continue}else if((a[5]||a[6])&&r%3&&!((r+s)%3)){u+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c+u);let m=[...a[0]][0].length,_=i.slice(0,r+a.index+m+s);if(Math.min(r,s)%2){let k=_.slice(1,-1);return{type:"em",raw:_,text:k,tokens:this.lexer.inlineTokens(k)}}let E=_.slice(2,-2);return{type:"strong",raw:_,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(i){let e=this.rules.inline.code.exec(i);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return a&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(i){let e=this.rules.inline.br.exec(i);if(e)return{type:"br",raw:e[0]}}del(i,e,t=""){let a=this.rules.inline.delLDelim.exec(i);if(a&&(!a[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...a[0]].length-1,l,s,c=r,u=this.rules.inline.delRDelim;for(u.lastIndex=0,e=e.slice(-1*i.length+r);(a=u.exec(e))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l||(s=[...l].length,s!==r))continue;if(a[3]||a[4]){c+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c);let d=[...a[0]][0].length,m=i.slice(0,r+a.index+d+s),_=m.slice(r,-r);return{type:"del",raw:m,text:_,tokens:this.lexer.inlineTokens(_)}}}}autolink(i){let e=this.rules.inline.autolink.exec(i);if(e){let t,a;return e[2]==="@"?(t=e[1],a="mailto:"+t):(t=e[1],a=t),{type:"link",raw:e[0],text:t,href:a,tokens:[{type:"text",raw:t,text:t}]}}}url(i){let e;if(e=this.rules.inline.url.exec(i)){let t,a;if(e[2]==="@")t=e[0],a="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?a="http://"+e[0]:a=e[0]}return{type:"link",raw:e[0],text:t,href:a,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(i){let e=this.rules.inline.text.exec(i);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},ce=class Jt{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Me,this.options.tokenizer=this.options.tokenizer||new Lt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ie,block:bt.normal,inline:rt.normal};this.options.pedantic?(t.block=bt.pedantic,t.inline=rt.pedantic):this.options.gfm&&(t.block=bt.gfm,this.options.breaks?t.inline=rt.breaks:t.inline=rt.gfm),this.tokenizer.rules=t}static get rules(){return{block:bt,inline:rt}}static lex(e,t){return new Jt(t).lex(e)}static lexInline(e,t){return new Jt(t).inlineTokens(e)}lex(e){e=e.replace(ie.carriageReturn,`
28
- `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let a=this.inlineQueue[t];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],a=!1){for(this.options.pedantic&&(e=e.replace(ie.tabCharGlobal," ").replace(ie.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(s=>(r=s.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let s=t.at(-1);r.raw.length===1&&s!==void 0?s.raw+=`
29
- `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
30
- `)?"":`
31
- `)+r.raw,s.text+=`
32
- `+r.text,this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
33
- `)?"":`
34
- `)+r.raw,s.text+=`
35
- `+r.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startBlock){let s=1/0,c=e.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},c),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(l=e.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){let s=t.at(-1);a&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
36
- `)?"":`
37
- `)+r.raw,s.text+=`
38
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),a=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
39
- `)?"":`
40
- `)+r.raw,s.text+=`
41
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let a=e,r=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,r.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)l=r[2]?r[2].length:0,a=a.slice(0,r.index+l)+"["+"a".repeat(r[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let s=!1,c="";for(;e;){s||(c=""),s=!1;let u;if(this.options.extensions?.inline?.some(m=>(u=m.call({lexer:this},e,t))?(e=e.substring(u.raw.length),t.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let m=t.at(-1);u.type==="text"&&m?.type==="text"?(m.raw+=u.raw,m.text+=u.text):t.push(u);continue}if(u=this.tokenizer.emStrong(e,a,c)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.del(e,a,c)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),t.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),t.push(u);continue}let d=e;if(this.options.extensions?.startInline){let m=1/0,_=e.slice(1),E;this.options.extensions.startInline.forEach(k=>{E=k.call({lexer:this},_),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(d=e.substring(0,m+1))}if(u=this.tokenizer.inlineText(d)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(c=u.raw.slice(-1)),s=!0;let m=t.at(-1);m?.type==="text"?(m.raw+=u.raw,m.text+=u.text):t.push(u);continue}if(e){let m="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return t}},wt=class{options;parser;constructor(i){this.options=i||Me}space(i){return""}code({text:i,lang:e,escaped:t}){let a=(e||"").match(ie.notSpaceStart)?.[0],r=i.replace(ie.endingNewline,"")+`
42
- `;return a?'<pre><code class="language-'+be(a)+'">'+(t?r:be(r,!0))+`</code></pre>
43
- `:"<pre><code>"+(t?r:be(r,!0))+`</code></pre>
44
- `}blockquote({tokens:i}){return`<blockquote>
45
- ${this.parser.parse(i)}</blockquote>
46
- `}html({text:i}){return i}def(i){return""}heading({tokens:i,depth:e}){return`<h${e}>${this.parser.parseInline(i)}</h${e}>
47
- `}hr(i){return`<hr>
48
- `}list(i){let e=i.ordered,t=i.start,a="";for(let s=0;s<i.items.length;s++){let c=i.items[s];a+=this.listitem(c)}let r=e?"ol":"ul",l=e&&t!==1?' start="'+t+'"':"";return"<"+r+l+`>
49
- `+a+"</"+r+`>
50
- `}listitem(i){return`<li>${this.parser.parse(i.tokens)}</li>
51
- `}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
52
- `}table(i){let e="",t="";for(let r=0;r<i.header.length;r++)t+=this.tablecell(i.header[r]);e+=this.tablerow({text:t});let a="";for(let r=0;r<i.rows.length;r++){let l=i.rows[r];t="";for(let s=0;s<l.length;s++)t+=this.tablecell(l[s]);a+=this.tablerow({text:t})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
53
- <thead>
54
- `+e+`</thead>
55
- `+a+`</table>
56
- `}tablerow({text:i}){return`<tr>
57
- ${i}</tr>
58
- `}tablecell(i){let e=this.parser.parseInline(i.tokens),t=i.header?"th":"td";return(i.align?`<${t} align="${i.align}">`:`<${t}>`)+e+`</${t}>
59
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${be(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:e,tokens:t}){let a=this.parser.parseInline(t),r=Ur(i);if(r===null)return a;i=r;let l='<a href="'+i+'"';return e&&(l+=' title="'+be(e)+'"'),l+=">"+a+"</a>",l}image({href:i,title:e,text:t,tokens:a}){a&&(t=this.parser.parseInline(a,this.parser.textRenderer));let r=Ur(i);if(r===null)return be(t);i=r;let l=`<img src="${i}" alt="${be(t)}"`;return e&&(l+=` title="${be(e)}"`),l+=">",l}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:be(i.text)}},_r=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},me=class er{options;renderer;textRenderer;constructor(e){this.options=e||Me,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _r}static parse(e,t){return new er(t).parse(e)}static parseInline(e,t){return new er(t).parseInline(e)}parse(e){let t="";for(let a=0;a<e.length;a++){let r=e[a];if(this.options.extensions?.renderers?.[r.type]){let s=r,c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){t+=c||"";continue}}let l=r;switch(l.type){case"space":{t+=this.renderer.space(l);break}case"hr":{t+=this.renderer.hr(l);break}case"heading":{t+=this.renderer.heading(l);break}case"code":{t+=this.renderer.code(l);break}case"table":{t+=this.renderer.table(l);break}case"blockquote":{t+=this.renderer.blockquote(l);break}case"list":{t+=this.renderer.list(l);break}case"checkbox":{t+=this.renderer.checkbox(l);break}case"html":{t+=this.renderer.html(l);break}case"def":{t+=this.renderer.def(l);break}case"paragraph":{t+=this.renderer.paragraph(l);break}case"text":{t+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(e,t=this.renderer){let a="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){a+=c||"";continue}}let s=l;switch(s.type){case"escape":{a+=t.text(s);break}case"html":{a+=t.html(s);break}case"link":{a+=t.link(s);break}case"image":{a+=t.image(s);break}case"checkbox":{a+=t.checkbox(s);break}case"strong":{a+=t.strong(s);break}case"em":{a+=t.em(s);break}case"codespan":{a+=t.codespan(s);break}case"br":{a+=t.br(s);break}case"del":{a+=t.del(s);break}case"text":{a+=t.text(s);break}default:{let c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}},ut=class{options;block;constructor(i){this.options=i||Me}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(){return this.block?ce.lex:ce.lexInline}provideParser(){return this.block?me.parse:me.parseInline}},Vn=class{defaults=or();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=me;Renderer=wt;TextRenderer=_r;Lexer=ce;Tokenizer=Lt;Hooks=ut;constructor(...i){this.use(...i)}walkTokens(i,e){let t=[];for(let a of i)switch(t=t.concat(e.call(this,a)),a.type){case"table":{let r=a;for(let l of r.header)t=t.concat(this.walkTokens(l.tokens,e));for(let l of r.rows)for(let s of l)t=t.concat(this.walkTokens(s.tokens,e));break}case"list":{let r=a;t=t.concat(this.walkTokens(r.items,e));break}default:{let r=a;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(l=>{let s=r[l].flat(1/0);t=t.concat(this.walkTokens(s,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...i){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(t=>{let a={...t};if(a.async=this.defaults.async||a.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let l=e.renderers[r.name];l?e.renderers[r.name]=function(...s){let c=r.renderer.apply(this,s);return c===!1&&(c=l.apply(this,s)),c}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[r.level];l?l.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),a.extensions=e),t.renderer){let r=this.defaults.renderer||new wt(this.defaults);for(let l in t.renderer){if(!(l in r))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,c=t.renderer[s],u=r[s];r[s]=(...d)=>{let m=c.apply(r,d);return m===!1&&(m=u.apply(r,d)),m||""}}a.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Lt(this.defaults);for(let l in t.tokenizer){if(!(l in r))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,c=t.tokenizer[s],u=r[s];r[s]=(...d)=>{let m=c.apply(r,d);return m===!1&&(m=u.apply(r,d)),m}}a.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new ut;for(let l in t.hooks){if(!(l in r))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,c=t.hooks[s],u=r[s];ut.passThroughHooks.has(l)?r[s]=d=>{if(this.defaults.async&&ut.passThroughHooksRespectAsync.has(l))return(async()=>{let _=await c.call(r,d);return u.call(r,_)})();let m=c.call(r,d);return u.call(r,m)}:r[s]=(...d)=>{if(this.defaults.async)return(async()=>{let _=await c.apply(r,d);return _===!1&&(_=await u.apply(r,d)),_})();let m=c.apply(r,d);return m===!1&&(m=u.apply(r,d)),m}}a.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,l=t.walkTokens;a.walkTokens=function(s){let c=[];return c.push(l.call(this,s)),r&&(c=c.concat(r.call(this,s))),c}}this.defaults={...this.defaults,...a}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,e){return ce.lex(i,e??this.defaults)}parser(i,e){return me.parse(i,e??this.defaults)}parseMarkdown(i){return(e,t)=>{let a={...t},r={...this.defaults,...a},l=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=i),r.async)return(async()=>{let s=r.hooks?await r.hooks.preprocess(e):e,c=await(r.hooks?await r.hooks.provideLexer():i?ce.lex:ce.lexInline)(s,r),u=r.hooks?await r.hooks.processAllTokens(c):c;r.walkTokens&&await Promise.all(this.walkTokens(u,r.walkTokens));let d=await(r.hooks?await r.hooks.provideParser():i?me.parse:me.parseInline)(u,r);return r.hooks?await r.hooks.postprocess(d):d})().catch(l);try{r.hooks&&(e=r.hooks.preprocess(e));let s=(r.hooks?r.hooks.provideLexer():i?ce.lex:ce.lexInline)(e,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let c=(r.hooks?r.hooks.provideParser():i?me.parse:me.parseInline)(s,r);return r.hooks&&(c=r.hooks.postprocess(c)),c}catch(s){return l(s)}}}onError(i,e){return t=>{if(t.message+=`
60
- Please report this to https://github.com/markedjs/marked.`,i){let a="<p>An error occurred:</p><pre>"+be(t.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(t);throw t}}},Ve=new Vn;function I(i,e){return Ve.parse(i,e)}I.options=I.setOptions=function(i){return Ve.setOptions(i),I.defaults=Ve.defaults,di(I.defaults),I};I.getDefaults=or;I.defaults=Me;I.use=function(...i){return Ve.use(...i),I.defaults=Ve.defaults,di(I.defaults),I};I.walkTokens=function(i,e){return Ve.walkTokens(i,e)};I.parseInline=Ve.parseInline;I.Parser=me;I.parser=me.parse;I.Renderer=wt;I.TextRenderer=_r;I.Lexer=ce;I.lexer=ce.lex;I.Tokenizer=Lt;I.Hooks=ut;I.parse=I;I.options;I.setOptions;I.use;I.walkTokens;I.parseInline;me.parse;ce.lex;const Ri=[{id:"abap",name:"ABAP",import:(()=>n(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>n(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>n(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>n(()=>import("./DxNHbxmM.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>n(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>n(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>n(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>n(()=>import("./Cn7AkR1O.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>n(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>n(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>n(()=>import("./Dv7Oe6Be.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>n(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>n(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>n(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>n(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>n(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>n(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>n(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>n(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>n(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>n(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>n(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>n(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>n(()=>import("./VCDPK7BO.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>n(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>n(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>n(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>n(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>n(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>n(()=>import("./BYV0-3_D.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>n(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>n(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>n(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>n(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>n(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>n(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>n(()=>import("./fKv21gyL.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>n(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>n(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>n(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>n(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>n(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>n(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>n(()=>import("./CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>n(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>n(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>n(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>n(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>n(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>n(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>n(()=>import("./DZu-aV2c.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>n(()=>import("./CpOuai2O.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>n(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>n(()=>import("./C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>n(()=>import("./CGscLIrv.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>n(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>n(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>n(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>n(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>n(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>n(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>n(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>n(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>n(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>n(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>n(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>n(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>n(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>n(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>n(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>n(()=>import("./YqXBG_HV.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>n(()=>import("./BR5kRUq4.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>n(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>n(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>n(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>n(()=>import("./CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>n(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>n(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>n(()=>import("./CLZrNe3w.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>n(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>n(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>n(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>n(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>n(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>n(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>n(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>n(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>n(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>n(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>n(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>n(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>n(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>n(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>n(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>n(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>n(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>n(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>n(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>n(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>n(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>n(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>n(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>n(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>n(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>n(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>n(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>n(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>n(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>n(()=>import("./DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>n(()=>import("./DMwsHuHA.js"),__vite__mapDeps([63,64,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>n(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>n(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>n(()=>import("./mjskCLCv.js"),__vite__mapDeps([65,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>n(()=>import("./BtvRca6l.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>n(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>n(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>n(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>n(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>n(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>n(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>n(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>n(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>n(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>n(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>n(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>n(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>n(()=>import("./B93PlW-d.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>n(()=>import("./Ba13S78F.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>n(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>n(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>n(()=>import("./BrzmwbiE.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>n(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([69,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>n(()=>import("./DhmSosst.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>n(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>n(()=>import("./C-sUppwS.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>n(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>n(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>n(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>n(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>n(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>n(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>n(()=>import("./BzTr9Aqm.js"),__vite__mapDeps([71,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>n(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>n(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>n(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>n(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>n(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>n(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>n(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>n(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>n(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>n(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>n(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>n(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>n(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>n(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>n(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>n(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([74,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>n(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>n(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>n(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>n(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>n(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>n(()=>import("./DsumFeuD.js"),__vite__mapDeps([75,1,2,3,76]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>n(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>n(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>n(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>n(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>n(()=>import("./BhRPY-oY.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>n(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>n(()=>import("./DQwYQDb2.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>n(()=>import("./Bhrxn6JZ.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>n(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>n(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([79,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>n(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>n(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>n(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>n(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>n(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>n(()=>import("./BqTXFGrv.js"),__vite__mapDeps([80,81]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>n(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>n(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([82,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>n(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>n(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>n(()=>import("./Dzze3sRP.js"),__vite__mapDeps([83,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>n(()=>import("./BRZ36xJF.js"),__vite__mapDeps([84,85]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>n(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>n(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>n(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>n(()=>import("./DM8c43g1.js"),__vite__mapDeps([86,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>n(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>n(()=>import("./BH7IYjvW.js"),__vite__mapDeps([87,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>n(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>n(()=>import("./Dg5xB15N.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>n(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>n(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>n(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>n(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>n(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>n(()=>import("./CZhp0h8q.js"),__vite__mapDeps([89,90,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>n(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>n(()=>import("./CQ8jqdy-.js"),__vite__mapDeps([64,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>n(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>n(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>n(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>n(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>n(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>n(()=>import("./RNghxpo_.js"),__vite__mapDeps([92,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>n(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>n(()=>import("./BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>n(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>n(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>n(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>n(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>n(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>n(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>n(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>n(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>n(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>n(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>n(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>n(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>n(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>n(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>n(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>n(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>n(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>n(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>n(()=>import("./yv6CvBhz.js"),__vite__mapDeps([97,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>n(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>n(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>n(()=>import("./VOosw3JB.js"),[],import.meta.url))}],Mn=Object.fromEntries(Ri.map(i=>[i.id,i.import])),$n=Object.fromEntries(Ri.flatMap(i=>i.aliases?.map(e=>[e,i.import])||[])),Nn={...Mn,...$n},zn=Zi({langs:Nn,themes:Ji,engine:()=>ea(n(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Bn}=Xi(zn,{guessEmbeddedLanguages:Ki});const{entries:yi,setPrototypeOf:Gr,isFrozen:Fn,getPrototypeOf:Un,getOwnPropertyDescriptor:Hn}=Object;let{freeze:ne,seal:le,create:tr}=Object,{apply:rr,construct:ir}=typeof Reflect<"u"&&Reflect;ne||(ne=function(e){return e});le||(le=function(e){return e});rr||(rr=function(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),l=2;l<a;l++)r[l-2]=arguments[l];return e.apply(t,r)});ir||(ir=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return new e(...a)});const vt=oe(Array.prototype.forEach),qn=oe(Array.prototype.lastIndexOf),jr=oe(Array.prototype.pop),at=oe(Array.prototype.push),Gn=oe(Array.prototype.splice),xt=oe(String.prototype.toLowerCase),Ht=oe(String.prototype.toString),qt=oe(String.prototype.match),nt=oe(String.prototype.replace),jn=oe(String.prototype.indexOf),Wn=oe(String.prototype.trim),pe=oe(Object.prototype.hasOwnProperty),te=oe(RegExp.prototype.test),ot=Qn(TypeError);function oe(i){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return rr(i,e,a)}}function Qn(i){return function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return ir(i,t)}}function x(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xt;Gr&&Gr(i,null);let a=e.length;for(;a--;){let r=e[a];if(typeof r=="string"){const l=t(r);l!==r&&(Fn(e)||(e[a]=l),r=l)}i[r]=!0}return i}function Yn(i){for(let e=0;e<i.length;e++)pe(i,e)||(i[e]=null);return i}function ve(i){const e=tr(null);for(const[t,a]of yi(i))pe(i,t)&&(Array.isArray(a)?e[t]=Yn(a):a&&typeof a=="object"&&a.constructor===Object?e[t]=ve(a):e[t]=a);return e}function st(i,e){for(;i!==null;){const a=Hn(i,e);if(a){if(a.get)return oe(a.get);if(typeof a.value=="function")return oe(a.value)}i=Un(i)}function t(){return null}return t}const Wr=ne(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Gt=ne(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jt=ne(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xn=ne(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wt=ne(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kn=ne(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qr=ne(["#text"]),Yr=ne(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qt=ne(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xr=ne(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),At=ne(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zn=le(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jn=le(/<%[\w\W]*|[\w\W]*%>/gm),eo=le(/\$\{[\w\W]*/gm),to=le(/^data-[\-\w.\u00B7-\uFFFF]+$/),ro=le(/^aria-[\-\w]+$/),Li=le(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),io=le(/^(?:\w+script|data):/i),ao=le(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wi=le(/^html$/i),no=le(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kr=Object.freeze({__proto__:null,ARIA_ATTR:ro,ATTR_WHITESPACE:ao,CUSTOM_ELEMENT:no,DATA_ATTR:to,DOCTYPE_NAME:wi,ERB_EXPR:Jn,IS_ALLOWED_URI:Li,IS_SCRIPT_OR_DATA:io,MUSTACHE_EXPR:Zn,TMPLIT_EXPR:eo});const lt={element:1,text:3,progressingInstruction:7,comment:8,document:9},oo=function(){return typeof window>"u"?null:window},so=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(a=t.getAttribute(r));const l="dompurify"+(a?"#"+a:"");try{return e.createPolicy(l,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},Zr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ii(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo();const e=b=>Ii(b);if(e.version="3.3.1",e.removed=[],!i||!i.document||i.document.nodeType!==lt.document||!i.Element)return e.isSupported=!1,e;let{document:t}=i;const a=t,r=a.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:d,NamedNodeMap:m=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:_,DOMParser:E,trustedTypes:k}=i,v=u.prototype,S=st(v,"cloneNode"),ue=st(v,"remove"),C=st(v,"nextSibling"),V=st(v,"childNodes"),P=st(v,"parentNode");if(typeof s=="function"){const b=t.createElement("template");b.content&&b.content.ownerDocument&&(t=b.content.ownerDocument)}let w,J="";const{implementation:K,createNodeIterator:fe,createDocumentFragment:he,getElementsByTagName:G}=t,{importNode:ge}=a;let F=Zr();e.isSupported=typeof yi=="function"&&typeof P=="function"&&K&&K.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Pe,ERB_EXPR:$e,TMPLIT_EXPR:Ne,DATA_ATTR:Qe,ARIA_ATTR:mt,IS_SCRIPT_OR_DATA:Ct,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:dt}=Kr;let{IS_ALLOWED_URI:Ye}=Kr,H=null;const Xe=x({},[...Wr,...Gt,...jt,...Wt,...Qr]);let j=null;const _t=x({},[...Yr,...Qt,...Xr,...At]);let z=Object.seal(tr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Be=null;const Ee=Object.seal(tr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,Ke=!0,h=!1,g=!0,R=!1,Q=!0,ee=!1,Ze=!1,Je=!1,we=!1,Ie=!1,ht=!1,fr=!0,hr=!1;const Di="user-content-";let Vt=!0,et=!1,Fe={},ke=null;const Mt=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let gr=null;const Er=x({},["audio","video","img","source","image","track"]);let $t=null;const kr=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let Ue=Re,Nt=!1,zt=null;const Pi=x({},[gt,Et,Re],Ht);let kt=x({},["mi","mo","mn","ms","mtext"]),Tt=x({},["annotation-xml"]);const Oi=x({},["title","style","font","a","script"]);let tt=null;const Si=["application/xhtml+xml","text/html"],Ci="text/html";let W=null,He=null;const Vi=t.createElement("form"),Tr=function(o){return o instanceof RegExp||o instanceof Function},Bt=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(He&&He===o)){if((!o||typeof o!="object")&&(o={}),o=ve(o),tt=Si.indexOf(o.PARSER_MEDIA_TYPE)===-1?Ci:o.PARSER_MEDIA_TYPE,W=tt==="application/xhtml+xml"?Ht:xt,H=pe(o,"ALLOWED_TAGS")?x({},o.ALLOWED_TAGS,W):Xe,j=pe(o,"ALLOWED_ATTR")?x({},o.ALLOWED_ATTR,W):_t,zt=pe(o,"ALLOWED_NAMESPACES")?x({},o.ALLOWED_NAMESPACES,Ht):Pi,$t=pe(o,"ADD_URI_SAFE_ATTR")?x(ve(kr),o.ADD_URI_SAFE_ATTR,W):kr,gr=pe(o,"ADD_DATA_URI_TAGS")?x(ve(Er),o.ADD_DATA_URI_TAGS,W):Er,ke=pe(o,"FORBID_CONTENTS")?x({},o.FORBID_CONTENTS,W):Mt,xe=pe(o,"FORBID_TAGS")?x({},o.FORBID_TAGS,W):ve({}),Be=pe(o,"FORBID_ATTR")?x({},o.FORBID_ATTR,W):ve({}),Fe=pe(o,"USE_PROFILES")?o.USE_PROFILES:!1,ft=o.ALLOW_ARIA_ATTR!==!1,Ke=o.ALLOW_DATA_ATTR!==!1,h=o.ALLOW_UNKNOWN_PROTOCOLS||!1,g=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=o.SAFE_FOR_TEMPLATES||!1,Q=o.SAFE_FOR_XML!==!1,ee=o.WHOLE_DOCUMENT||!1,we=o.RETURN_DOM||!1,Ie=o.RETURN_DOM_FRAGMENT||!1,ht=o.RETURN_TRUSTED_TYPE||!1,Je=o.FORCE_BODY||!1,fr=o.SANITIZE_DOM!==!1,hr=o.SANITIZE_NAMED_PROPS||!1,Vt=o.KEEP_CONTENT!==!1,et=o.IN_PLACE||!1,Ye=o.ALLOWED_URI_REGEXP||Li,Ue=o.NAMESPACE||Re,kt=o.MATHML_TEXT_INTEGRATION_POINTS||kt,Tt=o.HTML_INTEGRATION_POINTS||Tt,z=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&Tr(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&Tr(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(Ke=!1),Ie&&(we=!0),Fe&&(H=x({},Qr),j=[],Fe.html===!0&&(x(H,Wr),x(j,Yr)),Fe.svg===!0&&(x(H,Gt),x(j,Qt),x(j,At)),Fe.svgFilters===!0&&(x(H,jt),x(j,Qt),x(j,At)),Fe.mathMl===!0&&(x(H,Wt),x(j,Xr),x(j,At))),o.ADD_TAGS&&(typeof o.ADD_TAGS=="function"?Ee.tagCheck=o.ADD_TAGS:(H===Xe&&(H=ve(H)),x(H,o.ADD_TAGS,W))),o.ADD_ATTR&&(typeof o.ADD_ATTR=="function"?Ee.attributeCheck=o.ADD_ATTR:(j===_t&&(j=ve(j)),x(j,o.ADD_ATTR,W))),o.ADD_URI_SAFE_ATTR&&x($t,o.ADD_URI_SAFE_ATTR,W),o.FORBID_CONTENTS&&(ke===Mt&&(ke=ve(ke)),x(ke,o.FORBID_CONTENTS,W)),o.ADD_FORBID_CONTENTS&&(ke===Mt&&(ke=ve(ke)),x(ke,o.ADD_FORBID_CONTENTS,W)),Vt&&(H["#text"]=!0),ee&&x(H,["html","head","body"]),H.table&&(x(H,["tbody"]),delete xe.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=o.TRUSTED_TYPES_POLICY,J=w.createHTML("")}else w===void 0&&(w=so(k,r)),w!==null&&typeof J=="string"&&(J=w.createHTML(""));ne&&ne(o),He=o}},br=x({},[...Gt,...jt,...Xn]),vr=x({},[...Wt,...Kn]),Mi=function(o){let f=P(o);(!f||!f.tagName)&&(f={namespaceURI:Ue,tagName:"template"});const T=xt(o.tagName),N=xt(f.tagName);return zt[o.namespaceURI]?o.namespaceURI===Et?f.namespaceURI===Re?T==="svg":f.namespaceURI===gt?T==="svg"&&(N==="annotation-xml"||kt[N]):!!br[T]:o.namespaceURI===gt?f.namespaceURI===Re?T==="math":f.namespaceURI===Et?T==="math"&&Tt[N]:!!vr[T]:o.namespaceURI===Re?f.namespaceURI===Et&&!Tt[N]||f.namespaceURI===gt&&!kt[N]?!1:!vr[T]&&(Oi[T]||!br[T]):!!(tt==="application/xhtml+xml"&&zt[o.namespaceURI]):!1},Te=function(o){at(e.removed,{element:o});try{P(o).removeChild(o)}catch{ue(o)}},Oe=function(o,f){try{at(e.removed,{attribute:f.getAttributeNode(o),from:f})}catch{at(e.removed,{attribute:null,from:f})}if(f.removeAttribute(o),o==="is")if(we||Ie)try{Te(f)}catch{}else try{f.setAttribute(o,"")}catch{}},Ar=function(o){let f=null,T=null;if(Je)o="<remove></remove>"+o;else{const q=qt(o,/^[\r\n\t ]+/);T=q&&q[0]}tt==="application/xhtml+xml"&&Ue===Re&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const N=w?w.createHTML(o):o;if(Ue===Re)try{f=new E().parseFromString(N,tt)}catch{}if(!f||!f.documentElement){f=K.createDocument(Ue,"template",null);try{f.documentElement.innerHTML=Nt?J:N}catch{}}const Z=f.body||f.documentElement;return o&&T&&Z.insertBefore(t.createTextNode(T),Z.childNodes[0]||null),Ue===Re?G.call(f,ee?"html":"body")[0]:ee?f.documentElement:Z},xr=function(o){return fe.call(o.ownerDocument||o,o,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ft=function(o){return o instanceof _&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof m)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},Rr=function(o){return typeof c=="function"&&o instanceof c};function ye(b,o,f){vt(b,T=>{T.call(e,o,f,He)})}const yr=function(o){let f=null;if(ye(F.beforeSanitizeElements,o,null),Ft(o))return Te(o),!0;const T=W(o.nodeName);if(ye(F.uponSanitizeElement,o,{tagName:T,allowedTags:H}),Q&&o.hasChildNodes()&&!Rr(o.firstElementChild)&&te(/<[/\w!]/g,o.innerHTML)&&te(/<[/\w!]/g,o.textContent)||o.nodeType===lt.progressingInstruction||Q&&o.nodeType===lt.comment&&te(/<[/\w]/g,o.data))return Te(o),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(T))&&(!H[T]||xe[T])){if(!xe[T]&&wr(T)&&(z.tagNameCheck instanceof RegExp&&te(z.tagNameCheck,T)||z.tagNameCheck instanceof Function&&z.tagNameCheck(T)))return!1;if(Vt&&!ke[T]){const N=P(o)||o.parentNode,Z=V(o)||o.childNodes;if(Z&&N){const q=Z.length;for(let se=q-1;se>=0;--se){const Le=S(Z[se],!0);Le.__removalCount=(o.__removalCount||0)+1,N.insertBefore(Le,C(o))}}}return Te(o),!0}return o instanceof u&&!Mi(o)||(T==="noscript"||T==="noembed"||T==="noframes")&&te(/<\/no(script|embed|frames)/i,o.innerHTML)?(Te(o),!0):(R&&o.nodeType===lt.text&&(f=o.textContent,vt([Pe,$e,Ne],N=>{f=nt(f,N," ")}),o.textContent!==f&&(at(e.removed,{element:o.cloneNode()}),o.textContent=f)),ye(F.afterSanitizeElements,o,null),!1)},Lr=function(o,f,T){if(fr&&(f==="id"||f==="name")&&(T in t||T in Vi))return!1;if(!(Ke&&!Be[f]&&te(Qe,f))){if(!(ft&&te(mt,f))){if(!(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(f,o))){if(!j[f]||Be[f]){if(!(wr(o)&&(z.tagNameCheck instanceof RegExp&&te(z.tagNameCheck,o)||z.tagNameCheck instanceof Function&&z.tagNameCheck(o))&&(z.attributeNameCheck instanceof RegExp&&te(z.attributeNameCheck,f)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(f,o))||f==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&te(z.tagNameCheck,T)||z.tagNameCheck instanceof Function&&z.tagNameCheck(T))))return!1}else if(!$t[f]){if(!te(Ye,nt(T,ze,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&o!=="script"&&jn(T,"data:")===0&&gr[o])){if(!(h&&!te(Ct,nt(T,ze,"")))){if(T)return!1}}}}}}}return!0},wr=function(o){return o!=="annotation-xml"&&qt(o,dt)},Ir=function(o){ye(F.beforeSanitizeAttributes,o,null);const{attributes:f}=o;if(!f||Ft(o))return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let N=f.length;for(;N--;){const Z=f[N],{name:q,namespaceURI:se,value:Le}=Z,qe=W(q),Ut=Le;let Y=q==="value"?Ut:Wn(Ut);if(T.attrName=qe,T.attrValue=Y,T.keepAttr=!0,T.forceKeepAttr=void 0,ye(F.uponSanitizeAttribute,o,T),Y=T.attrValue,hr&&(qe==="id"||qe==="name")&&(Oe(q,o),Y=Di+Y),Q&&te(/((--!?|])>)|<\/(style|title|textarea)/i,Y)){Oe(q,o);continue}if(qe==="attributename"&&qt(Y,"href")){Oe(q,o);continue}if(T.forceKeepAttr)continue;if(!T.keepAttr){Oe(q,o);continue}if(!g&&te(/\/>/i,Y)){Oe(q,o);continue}R&&vt([Pe,$e,Ne],Pr=>{Y=nt(Y,Pr," ")});const Dr=W(o.nodeName);if(!Lr(Dr,qe,Y)){Oe(q,o);continue}if(w&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!se)switch(k.getAttributeType(Dr,qe)){case"TrustedHTML":{Y=w.createHTML(Y);break}case"TrustedScriptURL":{Y=w.createScriptURL(Y);break}}if(Y!==Ut)try{se?o.setAttributeNS(se,q,Y):o.setAttribute(q,Y),Ft(o)?Te(o):jr(e.removed)}catch{Oe(q,o)}}ye(F.afterSanitizeAttributes,o,null)},$i=function b(o){let f=null;const T=xr(o);for(ye(F.beforeSanitizeShadowDOM,o,null);f=T.nextNode();)ye(F.uponSanitizeShadowNode,f,null),yr(f),Ir(f),f.content instanceof l&&b(f.content);ye(F.afterSanitizeShadowDOM,o,null)};return e.sanitize=function(b){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,T=null,N=null,Z=null;if(Nt=!b,Nt&&(b="<!-->"),typeof b!="string"&&!Rr(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw ot("dirty is not a string, aborting")}else throw ot("toString is not a function");if(!e.isSupported)return b;if(Ze||Bt(o),e.removed=[],typeof b=="string"&&(et=!1),et){if(b.nodeName){const Le=W(b.nodeName);if(!H[Le]||xe[Le])throw ot("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof c)f=Ar("<!---->"),T=f.ownerDocument.importNode(b,!0),T.nodeType===lt.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?f=T:f.appendChild(T);else{if(!we&&!R&&!ee&&b.indexOf("<")===-1)return w&&ht?w.createHTML(b):b;if(f=Ar(b),!f)return we?null:ht?J:""}f&&Je&&Te(f.firstChild);const q=xr(et?b:f);for(;N=q.nextNode();)yr(N),Ir(N),N.content instanceof l&&$i(N.content);if(et)return b;if(we){if(Ie)for(Z=he.call(f.ownerDocument);f.firstChild;)Z.appendChild(f.firstChild);else Z=f;return(j.shadowroot||j.shadowrootmode)&&(Z=ge.call(a,Z,!0)),Z}let se=ee?f.outerHTML:f.innerHTML;return ee&&H["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&te(wi,f.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
61
- `+se),R&&vt([Pe,$e,Ne],Le=>{se=nt(se,Le," ")}),w&&ht?w.createHTML(se):se},e.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(b),Ze=!0},e.clearConfig=function(){He=null,Ze=!1},e.isValidAttribute=function(b,o,f){He||Bt({});const T=W(b),N=W(o);return Lr(T,N,f)},e.addHook=function(b,o){typeof o=="function"&&at(F[b],o)},e.removeHook=function(b,o){if(o!==void 0){const f=qn(F[b],o);return f===-1?void 0:Gn(F[b],f,1)[0]}return jr(F[b])},e.removeHooks=function(b){F[b]=[]},e.removeAllHooks=function(){F=Zr()},e}var lo=Ii();const uo={class:"prd-viewer"},po={key:0,class:"flex items-center justify-center py-8"},co=["innerHTML"],mo=B({__name:"Viewer",props:{content:{}},setup(i){const e=i,t=U(""),a=U(!0),r={ADD_TAGS:["style"],ADD_ATTR:["style","class","target","rel"]},l=new I.Renderer;l.link=({href:d,title:m,text:_})=>{const E=m?` title="${m}"`:"";return`<a href="${d}"${E} target="_blank" rel="noopener noreferrer">${_}</a>`};async function s(d,m){try{return await Bn(d,{lang:m||"text",themes:{light:"github-light",dark:"github-dark"}})}catch{return`<pre><code class="language-${m}">${c(d)}</code></pre>`}}function c(d){return d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}async function u(d){const m=/```(\w*)\n([\s\S]*?)```/g,_=[];let E=0;const k=d.replace(m,(C,V,P)=>{const w=`CODEBLOCK${E++}PLACEHOLDER`;return _.push({placeholder:w,lang:V||"text",code:P.trim()}),w});I.setOptions({renderer:l,gfm:!0,breaks:!0});let v=await I.parse(k);const S=_.map(async({placeholder:C,lang:V,code:P})=>{const w=await s(P,V);return{placeholder:C,highlighted:w}}),ue=await Promise.all(S);for(const{placeholder:C,highlighted:V}of ue)v=v.replace(`<p>${C}</p>`,V),v=v.replace(C,V);return lo.sanitize(v,r)}return Se(()=>e.content,async d=>{if(d){a.value=!0;try{t.value=await u(d)}finally{a.value=!1}}},{immediate:!0}),(d,m)=>(A(),O("div",uo,[p(a)?(A(),O("div",po,[...m[0]||(m[0]=[M("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):(A(),O("div",{key:1,class:"prose prose-sm dark:prose-invert max-w-none",innerHTML:p(t)},null,8,co))]))}}),_o=Object.assign(mo,{__name:"PrdViewer"}),fo=B({__name:"Card",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card",class:de(p(_e)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class))},[X(t.$slots,"default")],2))}}),ho=Object.assign(fo,{__name:"UiCard"}),go=B({__name:"CardAction",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-action",class:de(p(_e)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e.class))},[X(t.$slots,"default")],2))}});Object.assign(go,{__name:"UiCardAction"});const Eo=B({__name:"CardContent",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-content",class:de(p(_e)("px-6",e.class))},[X(t.$slots,"default")],2))}}),ko=Object.assign(Eo,{__name:"UiCardContent"}),To=B({__name:"CardDescription",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("p",{"data-slot":"card-description",class:de(p(_e)("text-muted-foreground text-sm",e.class))},[X(t.$slots,"default")],2))}});Object.assign(To,{__name:"UiCardDescription"});const bo=B({__name:"CardFooter",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-footer",class:de(p(_e)("flex items-center px-6 [.border-t]:pt-6",e.class))},[X(t.$slots,"default")],2))}});Object.assign(bo,{__name:"UiCardFooter"});const vo=B({__name:"CardHeader",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-header",class:de(p(_e)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class))},[X(t.$slots,"default")],2))}});Object.assign(vo,{__name:"UiCardHeader"});const Ao=B({__name:"CardTitle",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("h3",{"data-slot":"card-title",class:de(p(_e)("leading-none font-semibold",e.class))},[X(t.$slots,"default")],2))}});Object.assign(Ao,{__name:"UiCardTitle"});const xo={class:"flex items-center justify-between gap-2 mb-1.5"},Ro={class:"text-sm font-medium leading-snug"},yo={class:"text-muted-foreground"},Lo={key:0,class:"mt-2 flex items-center gap-1.5 text-xs text-destructive"},wo=B({__name:"Card",props:{task:{},blockedBy:{}},emits:["click"],setup(i,{emit:e}){const t=i,a=e,r=$(()=>{switch(t.task.category){case"setup":return{label:"Setup",variant:"secondary"};case"feature":return{label:"Feature",variant:"default"};case"integration":return{label:"Integration",variant:"outline"};case"testing":return{label:"Testing",variant:"secondary"};case"documentation":return{label:"Docs",variant:"secondary"};default:return{label:t.task.category,variant:"secondary"}}}),l=$(()=>{switch(t.task.priority){case"critical":return{icon:$r,class:"text-destructive",label:"Critical"};case"high":return{icon:$r,class:"text-orange-500",label:"High"};case"medium":return{icon:Cr,class:"text-muted-foreground",label:"Medium"};case"low":return{icon:Ta,class:"text-muted-foreground",label:"Low"};default:return{icon:Cr,class:"text-muted-foreground",label:"Unknown"}}}),s=$(()=>t.blockedBy&&t.blockedBy.length>0),c=$(()=>{const _=t.task.id.match(/(\d+)$/)?.[1];return _?parseInt(_,10):0}),u=$(()=>t.blockedBy?.length??0);function d(){a("click",t.task)}return(m,_)=>(A(),ae(p(ho),{class:de(["cursor-pointer py-0 gap-0 transition-all hover:shadow-md hover:border-primary/50",{"opacity-60":p(s)}]),onClick:d},{default:D(()=>[y(p(ko),{class:"p-2.5"},{default:D(()=>[M("div",xo,[y(p(ri),{variant:p(r).variant,class:"text-xs"},{default:D(()=>[De(re(p(r).label),1)]),_:1},8,["variant"]),(A(),ae(oi(p(l).icon),{class:de(["size-4",p(l).class]),title:p(l).label},null,8,["class","title"]))]),M("h4",Ro,[M("span",yo,"#"+re(p(c)),1),De(" "+re(i.task.title),1)]),p(s)?(A(),O("div",Lo,[y(p(ii),{class:"size-3.5"}),M("span",null,"Blocked by "+re(p(u))+" task"+re(p(u)===1?"":"s"),1)])):Ae("",!0)]),_:1})]),_:1},8,["class"]))}}),Io=Object.assign(wo,{__name:"TasksCard"}),Do={class:"flex h-full min-w-56 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card"},Po={class:"text-sm font-medium"},Oo={class:"ml-auto text-xs text-muted-foreground"},So={class:"scrollbar-hide min-h-0 flex-1 overflow-y-auto p-1.5"},Co={class:"space-y-1.5"},Vo={key:0,class:"py-8 text-center text-sm text-muted-foreground"},Mo=B({__name:"Column",props:{status:{},tasks:{},blockedByMap:{}},emits:["taskClick"],setup(i,{emit:e}){const t=i,a=e,r=$(()=>{switch(t.status){case"pending":return{label:"Pending",icon:Vr,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"};case"in_progress":return{label:"In Progress",icon:va,headerClass:"bg-blue-500/10",iconClass:"text-blue-500"};case"completed":return{label:"Completed",icon:ta,headerClass:"bg-green-500/10",iconClass:"text-green-500"};default:return{label:t.status,icon:Vr,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"}}});function l(c){return t.blockedByMap?.get(c)??[]}function s(c){a("taskClick",c)}return(c,u)=>{const d=Io;return A(),O("div",Do,[M("div",{class:de(["flex items-center gap-2 rounded-t-lg border-b border-border px-3 py-2",p(r).headerClass])},[(A(),ae(oi(p(r).icon),{class:de(["size-4",p(r).iconClass])},null,8,["class"])),M("h3",Po,re(p(r).label),1),M("span",Oo,re(i.tasks.length),1)],2),M("div",So,[M("div",Co,[(A(!0),O(si,null,li(i.tasks,m=>(A(),ae(d,{key:m.id,task:m,"blocked-by":l(m.id),onClick:s},null,8,["task","blocked-by"]))),128)),i.tasks.length===0?(A(),O("div",Vo," No tasks ")):Ae("",!0)])])])}}}),$o=Object.assign(ka(Mo,[["__scopeId","data-v-a1317eba"]]),{__name:"TasksColumn"}),No={class:"flex h-full gap-3 overflow-x-auto pb-2"},zo=B({__name:"Board",props:{tasks:{}},emits:["taskClick"],setup(i,{emit:e}){const t=i,a=e;function r(_){const k=_.id.match(/(\d+)$/)?.[1];return k?parseInt(k,10):0}const l=$(()=>t.tasks.filter(_=>_.status==="pending").sort((_,E)=>r(_)-r(E))),s=$(()=>t.tasks.filter(_=>_.status==="in_progress").sort((_,E)=>r(_)-r(E))),c=$(()=>t.tasks.filter(_=>_.status==="completed").sort((_,E)=>{const k=_.completedAt?new Date(_.completedAt).getTime():0;return(E.completedAt?new Date(E.completedAt).getTime():0)-k})),u=$(()=>{const _=new Map,E=new Set(c.value.map(k=>k.id));for(const k of t.tasks)if(k.dependencies.length>0){const v=k.dependencies.filter(S=>!E.has(S));v.length>0&&_.set(k.id,v)}return _}),d=[{status:"pending",tasks:l},{status:"in_progress",tasks:s},{status:"completed",tasks:c}];function m(_){a("taskClick",_)}return(_,E)=>{const k=$o;return A(),O("div",No,[(A(),O(si,null,li(d,v=>y(k,{key:v.status,status:v.status,tasks:v.tasks.value,"blocked-by-map":p(u),onTaskClick:m},null,8,["status","tasks","blocked-by-map"])),64))])}}}),Bo=Object.assign(zo,{__name:"TasksBoard"}),Fo=B({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,a=e,r=Dt(t,"class"),l=Bi(r,a);return(s,c)=>(A(),ae(p(Oa),Pt({"data-slot":"tabs"},p(l),{class:p(_e)("flex flex-col gap-2",t.class)}),{default:D(u=>[X(s.$slots,"default",pa(ca(u)))]),_:3},16,["class"]))}}),Uo=Object.assign(Fo,{__name:"UiTabs"}),Ho=B({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(i){const e=i,t=Dt(e,"class");return(a,r)=>(A(),ae(p(Ca),Pt({"data-slot":"tabs-content",class:p(_e)("flex-1 outline-none",e.class)},p(t)),{default:D(()=>[X(a.$slots,"default")]),_:3},16,["class"]))}}),Yt=Object.assign(Ho,{__name:"UiTabsContent"}),qo=B({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(i){const e=i,t=Dt(e,"class");return(a,r)=>(A(),ae(p(Ma),Pt({"data-slot":"tabs-list"},p(t),{class:p(_e)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e.class)}),{default:D(()=>[X(a.$slots,"default")]),_:3},16,["class"]))}}),Go=Object.assign(qo,{__name:"UiTabsList"}),jo=B({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(i){const e=i,t=Dt(e,"class"),a=Fi(t);return(r,l)=>(A(),ae(p(Na),Pt({"data-slot":"tabs-trigger",class:p(_e)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class)},p(a)),{default:D(()=>[X(r.$slots,"default")]),_:3},16,["class"]))}}),Xt=Object.assign(jo,{__name:"UiTabsTrigger"}),Wo={class:"h-full p-4 md:p-6"},Qo={key:0,class:"flex h-full items-center justify-center"},Yo={class:"flex flex-col items-center gap-4"},Xo={key:1,class:"flex h-full items-center justify-center"},Ko={class:"flex max-w-md flex-col items-center gap-4 text-center"},Zo={class:"text-sm text-muted-foreground"},Jo={class:"flex gap-3"},es={key:2,class:"mx-auto max-w-6xl space-y-6"},ts={class:"space-y-2"},rs={class:"text-2xl font-bold tracking-tight"},is={key:0,class:"text-xs text-muted-foreground"},as={class:"rounded-lg border border-border bg-card p-4 md:p-6"},ns={key:0,class:"h-[calc(100vh-280px)] min-h-[400px]"},os={key:1,class:"py-12 text-center"},ss={class:"h-[calc(100vh-300px)] min-h-[440px] motion-safe:transition-[opacity,transform] motion-safe:duration-200 motion-safe:ease-[var(--ease-out-cubic)] motion-reduce:transition-none"},Kt="prd-viewer-tab",Ge="task",je="taskPrd",hs=B({__name:"[prd]",setup(i){function e(h){return h==="document"||h==="board"||h==="graph"}function t(h){if(typeof h=="string"){const g=h.trim();return g.length>0?g:null}if(Array.isArray(h)&&h.length>0){const g=h[0];if(typeof g=="string"){const R=g.trim();return R.length>0?R:null}}return null}const a=ma(),r=da(),{selectRepo:l}=Gi(),{fetchDocument:s,fetchTasks:c,fetchProgress:u,fetchTaskCommits:d,fetchPrdGraph:m}=ji(),{showError:_}=Wi(),E=$(()=>a.params.repo),k=$(()=>a.params.prd),v=U(null),S=U(null),ue=U(null),C=U(!0),V=U(null),P=U("document"),w=U(null),J=U(!1),K=U(null),fe=U({}),he=U(null),G=U(null),ge=U(!1),F=U([]),Pe=$(()=>t(a.query[Ge])),$e=$(()=>t(a.query[je])),Ne=$(()=>Pe.value?{taskId:Pe.value,prdSlug:$e.value||k.value}:null);function Qe(h,g){fe.value={...fe.value,[h]:g}}async function mt(h){if(h===k.value)return S.value;if(Object.prototype.hasOwnProperty.call(fe.value,h))return fe.value[h]??null;const g=await c(h);return Qe(h,g),g}function Ct(){const h={};for(const[g,R]of Object.entries(a.query))if(!(g===Ge||g===je)){if(typeof R=="string"){h[g]=R;continue}if(Array.isArray(R)){const Q=R.filter(ee=>typeof ee=="string");Q.length>0&&(h[g]=Q)}}return h}async function ze(h,g=null){const R=Ct();h&&(R[Ge]=h,g&&g!==k.value&&(R[je]=g));const Q=typeof R[Ge]=="string"?R[Ge]:null,ee=typeof R[je]=="string"?R[je]:null;Pe.value===Q&&$e.value===ee||await r.replace({query:R})}async function dt(h,g){he.value=h,G.value=g,ge.value=!0,F.value=[],await ze(h.id,g),F.value=await d(g,h.id)}async function Ye(){const h=Ne.value;if(!h){he.value=null,G.value=null,F.value=[],ge.value=!1;return}const R=(await mt(h.prdSlug))?.tasks.find(ee=>ee.id===h.taskId);if(!R){he.value=null,G.value=null,F.value=[],ge.value=!1,_("Task unavailable",`Could not find ${h.taskId} in ${h.prdSlug}.`),await ze(null);return}const Q=he.value?.id===R.id&&G.value===h.prdSlug;he.value=R,G.value=h.prdSlug,ge.value=!0,Q||(F.value=await d(h.prdSlug,R.id))}const H=$(()=>{const h=new Map,g=G.value||k.value,R=g===k.value?S.value:fe.value[g]??null;if(!R?.tasks)return h;for(const Q of R.tasks)h.set(Q.id,Q.title);return h});function Xe(h){h.key===Kt&&h.newValue&&e(h.newValue)&&(P.value=h.newValue)}Rt(()=>{const h=localStorage.getItem(Kt);h&&e(h)&&(P.value=h),window.addEventListener("storage",Xe)}),ni(()=>{window.removeEventListener("storage",Xe)}),Se(P,h=>{localStorage.setItem(Kt,h)});const j=_a("fileChangeEvent",U(null));async function _t(){const h=await s(k.value);h&&(v.value=h)}async function z(){const[h,g]=await Promise.all([c(k.value),u(k.value)]);S.value=h,ue.value=g,Qe(k.value,h)}async function xe(h=!1){J.value=!0;try{if(!h&&w.value?.prdSlug===k.value)return;const g=await m(k.value);if(!g){K.value="Failed to load PRD graph.";return}w.value=g,K.value=null}finally{J.value=!1}}async function Be(h=!1){P.value==="graph"&&await xe(h)}async function Ee(){C.value=!0,V.value=null,K.value=null,w.value=null,fe.value={};try{l(E.value);const[h,g,R]=await Promise.all([s(k.value),c(k.value),u(k.value)]);if(!h){V.value=`PRD "${k.value}" not found in this repository.`;return}v.value=h,S.value=g,ue.value=R,Qe(k.value,g),!g&&P.value==="board"&&(P.value="document"),await Be(),await Ye()}catch(h){const g=h;g.statusCode===404?V.value=`PRD "${k.value}" not found. Check if the file exists in docs/prd/.`:g.statusCode===500?(V.value="Server error while loading the PRD. Check the file format.",_("Server error",g.data?.message||"Failed to read PRD file")):(V.value="Failed to load PRD document. Please try again.",_("Load failed","Could not fetch the PRD document"))}finally{C.value=!1}}Se(P,async h=>{h==="graph"&&await Be()}),Se(()=>[a.query[Ge],a.query[je],k.value],async()=>{C.value||await Ye()}),Se(ge,async h=>{!h&&Ne.value&&await ze(null)}),Se(()=>j.value,async h=>{if(!h)return;if(h.category==="prd"){await _t(),P.value==="graph"&&await xe(!0);return}if(h.category!=="tasks"&&h.category!=="progress")return;const g=h.path?.includes(`/${k.value}/`)??!1;g&&(await z(),w.value=null),P.value==="graph"&&g&&await xe(!0)}),Rt(Ee),Se([E,k],Ee);async function ft(h){await dt(h,k.value)}async function Ke(h){const R=(await mt(h.prdSlug))?.tasks.find(Q=>Q.id===h.taskId);if(!R){_("Task unavailable",`Could not find ${h.taskId} in ${h.prdSlug}.`);return}await dt(R,h.prdSlug)}return(h,g)=>{const R=Ni,Q=Ga,ee=_o,Ze=Bo,Je=ia,we=ra;return A(),O("div",Wo,[p(C)?(A(),O("div",Qo,[M("div",Yo,[y(p(Ui),{class:"size-8 animate-spin text-primary"}),g[2]||(g[2]=M("p",{class:"text-sm text-muted-foreground"},"Loading PRD...",-1))])])):p(V)?(A(),O("div",Xo,[M("div",Ko,[y(p(ii),{class:"size-12 text-destructive"}),g[5]||(g[5]=M("h2",{class:"text-lg font-semibold"},"Error Loading PRD",-1)),M("p",Zo,re(p(V)),1),M("div",Jo,[y(p(Or),{variant:"outline",size:"sm",onClick:Ee},{default:D(()=>[y(p(Hi),{class:"mr-2 size-4"}),g[3]||(g[3]=De(" Retry ",-1))]),_:1}),y(R,{to:"/"},{default:D(()=>[y(p(Or),{variant:"ghost",size:"sm"},{default:D(()=>[...g[4]||(g[4]=[De(" Go back home ",-1)])]),_:1})]),_:1})])])])):p(v)?(A(),O("div",es,[M("div",ts,[M("h1",rs,re(p(v).name),1),y(Q,{metadata:p(v).metadata},null,8,["metadata"])]),y(p(Uo),{modelValue:p(P),"onUpdate:modelValue":g[0]||(g[0]=Ie=>Mr(P)?P.value=Ie:null),class:"w-full"},{default:D(()=>[y(p(Go),null,{default:D(()=>[y(p(Xt),{value:"document",class:"gap-2"},{default:D(()=>[y(p(Qi),{class:"size-4"}),g[6]||(g[6]=De(" Document ",-1))]),_:1}),y(p(Xt),{value:"board",class:"gap-2",disabled:!p(S)},{default:D(()=>[y(p(Nr),{class:"size-4"}),g[7]||(g[7]=De(" Task Board ",-1)),p(S)?(A(),O("span",is," ("+re(p(S).tasks.length)+") ",1)):Ae("",!0)]),_:1},8,["disabled"]),y(p(Xt),{value:"graph",class:"gap-2"},{default:D(()=>[y(p(qi),{class:"size-4"}),g[8]||(g[8]=De(" Graph ",-1))]),_:1})]),_:1}),y(p(Yt),{value:"document",class:"mt-4"},{default:D(()=>[M("div",as,[y(ee,{content:p(v).content},null,8,["content"])])]),_:1}),y(p(Yt),{value:"board",class:"mt-4"},{default:D(()=>[p(S)?(A(),O("div",ns,[y(Ze,{tasks:p(S).tasks,onTaskClick:ft},null,8,["tasks"])])):(A(),O("div",os,[y(p(Nr),{class:"mx-auto size-12 text-muted-foreground/50"}),g[9]||(g[9]=M("p",{class:"mt-4 text-muted-foreground"}," No tasks found for this PRD ",-1)),g[10]||(g[10]=M("p",{class:"mt-1 text-sm text-muted-foreground/70"}," Task state has not been generated for this PRD yet. ",-1))]))]),_:1}),y(p(Yt),{value:"graph",class:"mt-4"},{default:D(()=>[M("div",ss,[y(Je,{payload:p(w),scope:"prd",loading:p(J),error:p(K),onTaskClick:Ke},null,8,["payload","loading","error"])])]),_:1})]),_:1},8,["modelValue"])])):Ae("",!0),y(we,{open:p(ge),"onUpdate:open":g[1]||(g[1]=Ie=>Mr(ge)?ge.value=Ie:null),task:p(he),"task-titles":p(H),commits:p(F),"repo-id":p(E),"task-prd-slug":p(G),"current-prd-slug":p(k)},null,8,["open","task","task-titles","commits","repo-id","task-prd-slug","current-prd-slug"])])}}});export{hs as default};
@@ -1 +0,0 @@
1
- import{s as O,l as e,a1 as bt,g as D,k as ne,o as u,x as g,L as q,c as S,n as U,F as te,r as se,v as xt,B as fe,w as p,y as L,q as C,b as m,G as be,p as ke,ac as wt,z as re,A as ve,ad as Ct,j as Qe,M as Me,a as c,t as z,ae as kt,af as St,m as ye,H as le,d as J,a2 as $t,J as Ie,K as Pe,aa as Te,ag as Xe,ab as Et,$ as Rt,ah as Dt}from"./CMu9GKTH.js";import{c as xe,m as Fe,h as At,f as Ye,d as Ze,P as ie,g as Ae,u as Se,o as Bt,B as me,b as et,a as Ve,F as Oe,r as Z,e as Q,n as It}from"./qt5OEWHC.js";import{q as Pt,V as Tt,u as Ft,c as we,a as $e,b as Ot,r as Lt,f as Mt,p as tt,g as Vt,o as zt,n as qt,i as jt,j as Kt,k as Ht,l as Ut,S as Nt,G as st,L as Gt,C as Wt,R as at,B as Jt,d as he,s as Qt,t as ze,v as ot,w as nt,x as lt,X as rt,e as Ee,y as Xt,z as Yt,A as Zt,h as es,K as ts}from"./C_NevjZD.js";import{F as ss,I as as,a as Le}from"./qKRNa41x.js";import{b as qe,u as je,g as os,A as ns}from"./C2HGkiSP.js";import{_ as ls}from"./wbj-mIhK.js";const it=xe("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const ut=xe("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);const rs=xe("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const dt=xe("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const is=xe("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);function us(a,t,s){const o=a.findIndex(l=>Fe(l,t)),i=a.findIndex(l=>Fe(l,s));if(o===-1||i===-1)return[];const[r,n]=[o,i].sort((l,f)=>l-f);return a.slice(r,n+1)}function ds(a){const t=O(()=>e(a)),s=O(()=>new Intl.Collator("en",{usage:"search",...t.value}));return{startsWith:(n,l)=>l.length===0?!0:(n=n.normalize("NFC"),l=l.normalize("NFC"),s.value.compare(n.slice(0,l.length),l)===0),endsWith:(n,l)=>l.length===0?!0:(n=n.normalize("NFC"),l=l.normalize("NFC"),s.value.compare(n.slice(-l.length),l)===0),contains:(n,l)=>{if(l.length===0)return!0;n=n.normalize("NFC"),l=l.normalize("NFC");let f=0;const v=l.length;for(;f+v<=n.length;f++){const y=n.slice(f,f+v);if(s.value.compare(l,y)===0)return!0}return!1}}}function cs(a){return O(()=>bt(a)?!!At(a)?.closest("form"):!0)}function ps(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}function fs(a){const t=Ye("",1e3);return{search:t,handleTypeaheadSearch:(i,r)=>{t.value=t.value+i;{const n=Pt(),l=r.map(_=>({..._,textValue:_.value?.textValue??_.ref.textContent?.trim()??""})),f=l.find(_=>_.ref===n),v=l.map(_=>_.textValue),y=vs(v,t.value,f?.textValue),d=l.find(_=>_.textValue===y);return d&&d.ref.focus(),d?.ref}},resetTypeahead:()=>{t.value=""}}}function ms(a,t){return a.map((s,o)=>a[(t+o)%a.length])}function vs(a,t,s){const i=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,r=s?a.indexOf(s):-1;let n=ms(a,Math.max(r,0));i.length===1&&(n=n.filter(v=>v!==s));const f=n.find(v=>v.toLowerCase().startsWith(i.toLowerCase()));return f!==s?f:void 0}var hs=D({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(a){const t=a,{primitiveElement:s,currentElement:o}=qe(),i=O(()=>t.checked??t.value);return ne(i,(r,n)=>{if(!o.value)return;const l=o.value,f=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(f,"value").set;if(y&&r!==n){const d=new Event("input",{bubbles:!0}),_=new Event("change",{bubbles:!0});y.call(l,r),l.dispatchEvent(d),l.dispatchEvent(_)}}),(r,n)=>(u(),g(Tt,q({ref_key:"primitiveElement",ref:s},{...t,...r.$attrs},{as:"input"}),null,16))}}),Ne=hs,gs=D({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(a){const t=a,s=O(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),o=O(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((i,r)=>typeof i=="object"?Object.entries(i).map(([n,l])=>({name:`${t.name}[${r}][${n}]`,value:l})):{name:`${t.name}[${r}]`,value:i}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([i,r])=>({name:`${t.name}[${i}]`,value:r})):[]);return(i,r)=>(u(),S(te,null,[U(" We render single input if it's required "),s.value?(u(),g(Ne,q({key:i.name},{...t,...i.$attrs},{name:i.name,value:i.value}),null,16,["name","value"])):(u(!0),S(te,{key:1},se(o.value,n=>(u(),g(Ne,q({key:n.name},{ref_for:!0},{...t,...i.$attrs},{name:n.name,value:n.value}),null,16,["name","value"]))),128))],2112))}}),ys=gs;function _s(a,t,s){return a===void 0?!1:Array.isArray(a)?a.some(o=>_e(o,t,s)):_e(a,t,s)}function _e(a,t,s){return a===void 0||t===void 0?!1:typeof a=="string"?a===t:typeof s=="function"?s(a,t):typeof s=="string"?a?.[s]===t?.[s]:Fe(a,t)}const[Ke,bs]=we("ListboxRoot");var xs=D({__name:"ListboxRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:"vertical"},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:"toggle"},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","highlight","entryFocus","leave"],setup(a,{expose:t,emit:s}){const o=a,i=s,{multiple:r,highlightOnHover:n,orientation:l,disabled:f,selectionBehavior:v,dir:y}=xt(o),{getItems:d}=je({isProvider:!0}),{handleTypeaheadSearch:_}=fs(),{primitiveElement:A,currentElement:w}=qe(),T=ps(),F=Ft(y),b=cs(w),M=C(),R=C(!1),j=C(!0),B=Ze(o,"modelValue",i,{defaultValue:o.defaultValue??(r.value?[]:void 0),passive:o.modelValue===void 0,deep:!0});function ae(h){if(R.value=!0,o.multiple){const k=Array.isArray(B.value)?[...B.value]:[],E=k.findIndex(H=>_e(H,h,o.by));o.selectionBehavior==="toggle"?(E===-1?k.push(h):k.splice(E,1),B.value=k):(B.value=[h],M.value=h)}else o.selectionBehavior==="toggle"&&_e(B.value,h,o.by)?B.value=void 0:B.value=h;setTimeout(()=>{R.value=!1},1)}const K=C(null),oe=C(null),ee=C(!1),G=C(!1),X=Ae(),W=Ae(),Y=Ae();function $(){return d().map(h=>h.ref).filter(h=>h.dataset.disabled!=="")}function I(h,k=!0){if(!h)return;K.value=h,j.value&&K.value.focus(),k&&K.value.scrollIntoView({block:"nearest"});const E=d().find(H=>H.ref===h);i("highlight",E)}function N(h){if(ee.value)Y.trigger(h);else{const k=d().find(E=>_e(E.value,h,o.by));k&&(K.value=k.ref,I(k.ref))}}function ue(h){K.value&&K.value.isConnected&&(h.preventDefault(),h.stopPropagation(),G.value||K.value.click())}function V(h){if(j.value){if(R.value=!0,ee.value)W.trigger(h);else{const k=h.altKey||h.ctrlKey||h.metaKey;if(k&&h.key==="a"&&r.value){const E=d(),H=E.map(ce=>ce.value);B.value=[...H],h.preventDefault(),I(E[E.length-1].ref)}else if(!k){const E=_(h.key,d());E&&I(E)}}setTimeout(()=>{R.value=!1},1)}}function x(){G.value=!0}function P(){fe(()=>{G.value=!1})}function de(){fe(()=>{const h=new KeyboardEvent("keydown",{key:"PageUp"});He(h)})}function De(h){const k=K.value;k?.isConnected&&(oe.value=k),K.value=null,i("leave",h)}function gt(h){const k=new CustomEvent("listbox.entryFocus",{bubbles:!1,cancelable:!0});if(h.currentTarget?.dispatchEvent(k),i("entryFocus",k),!k.defaultPrevented)if(oe.value)I(oe.value);else{const E=$()?.[0];I(E)}}function He(h){const k=os(h,l.value,F.value);if(!k)return;let E=$();if(K.value){if(k==="last")E.reverse();else if(k==="prev"||k==="next"){k==="prev"&&E.reverse();const H=E.indexOf(K.value);E=E.slice(H+1)}yt(h,E[0])}if(E.length){const H=!K.value&&k==="prev"?E.length-1:0;I(E[H])}if(ee.value)return W.trigger(h)}function yt(h,k){if(!(ee.value||o.selectionBehavior!=="replace"||!r.value||!Array.isArray(B.value)||(h.altKey||h.ctrlKey||h.metaKey)&&!h.shiftKey)&&h.shiftKey){const H=d().filter(ge=>ge.ref.dataset.disabled!=="");let ce=H.find(ge=>ge.ref===k)?.value;if(h.key===T.END?ce=H[H.length-1].value:h.key===T.HOME&&(ce=H[0].value),!ce||!M.value)return;const _t=us(H.map(ge=>ge.value),M.value,ce);B.value=_t}}async function Ue(h){if(await fe(),ee.value)X.trigger(h);else{const k=$(),E=k.find(H=>H.dataset.state==="checked");E?I(E):k.length&&I(k[0])}}return ne(B,()=>{R.value||fe(()=>{Ue()})},{immediate:!0,deep:!0}),t({highlightedElement:K,highlightItem:N,highlightFirstItem:de,highlightSelected:Ue,getItems:d}),bs({modelValue:B,onValueChange:ae,multiple:r,orientation:l,dir:F,disabled:f,highlightOnHover:n,highlightedElement:K,isVirtual:ee,virtualFocusHook:X,virtualKeydownHook:W,virtualHighlightHook:Y,by:o.by,firstValue:M,selectionBehavior:v,focusable:j,onLeave:De,onEnter:gt,changeHighlight:I,onKeydownEnter:ue,onKeydownNavigation:He,onKeydownTypeAhead:V,onCompositionStart:x,onCompositionEnd:P,highlightFirstItem:de}),(h,k)=>(u(),g(e(ie),{ref_key:"primitiveElement",ref:A,as:h.as,"as-child":h.asChild,dir:e(F),"data-disabled":e(f)?"":void 0,onPointerleave:De,onFocusout:k[0]||(k[0]=async E=>{const H=E.relatedTarget||E.target;await fe(),K.value&&e(w)&&!e(w).contains(H)&&De(E)})},{default:p(()=>[L(h.$slots,"default",{modelValue:e(B)}),e(b)&&h.name?(u(),g(e(ys),{key:0,name:h.name,value:e(B),disabled:e(f),required:h.required},null,8,["name","value","disabled","required"])):U("v-if",!0)]),_:3},8,["as","as-child","dir","data-disabled"]))}}),ws=xs,Cs=D({__name:"ListboxContent",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const{CollectionSlot:t}=je(),s=Ke(),o=Ye(!1,10);return(i,r)=>(u(),g(e(t),null,{default:p(()=>[m(e(ie),{role:"listbox",as:i.as,"as-child":i.asChild,tabindex:e(s).focusable.value?e(s).highlightedElement.value?"-1":"0":"-1","aria-orientation":e(s).orientation.value,"aria-multiselectable":!!e(s).multiple.value,"data-orientation":e(s).orientation.value,onMousedown:r[0]||(r[0]=ke(n=>o.value=!0,["left"])),onFocus:r[1]||(r[1]=n=>{e(o)||e(s).onEnter(n)}),onKeydown:[r[2]||(r[2]=be(n=>{e(s).orientation.value==="vertical"&&(n.key==="ArrowLeft"||n.key==="ArrowRight")||e(s).orientation.value==="horizontal"&&(n.key==="ArrowUp"||n.key==="ArrowDown")||(n.preventDefault(),e(s).focusable.value&&e(s).onKeydownNavigation(n))},["down","up","left","right","home","end"])),be(e(s).onKeydownEnter,["enter"]),e(s).onKeydownTypeAhead]},{default:p(()=>[L(i.$slots,"default")]),_:3},8,["as","as-child","tabindex","aria-orientation","aria-multiselectable","data-orientation","onKeydown"])]),_:3}))}}),ks=Cs,Ss=D({__name:"ListboxFilter",props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"input"}},emits:["update:modelValue"],setup(a,{emit:t}){const s=a,i=Ze(s,"modelValue",t,{defaultValue:"",passive:s.modelValue===void 0}),r=Ke(),{primitiveElement:n,currentElement:l}=qe(),f=O(()=>s.disabled||r.disabled.value||!1),v=C();return wt(()=>v.value=r.highlightedElement.value?.id),re(()=>{r.focusable.value=!1,setTimeout(()=>{s.autoFocus&&l.value?.focus()},1)}),ve(()=>{r.focusable.value=!0}),(y,d)=>(u(),g(e(ie),{ref_key:"primitiveElement",ref:n,as:y.as,"as-child":y.asChild,value:e(i),disabled:f.value?"":void 0,"data-disabled":f.value?"":void 0,"aria-disabled":f.value??void 0,"aria-activedescendant":v.value,type:"text",onKeydown:[be(ke(e(r).onKeydownNavigation,["prevent"]),["down","up","home","end"]),be(e(r).onKeydownEnter,["enter"])],onInput:d[0]||(d[0]=_=>{i.value=_.target.value,e(r).highlightFirstItem()}),onCompositionstart:e(r).onCompositionStart,onCompositionend:e(r).onCompositionEnd},{default:p(()=>[L(y.$slots,"default",{modelValue:e(i)})]),_:3},8,["as","as-child","value","disabled","data-disabled","aria-disabled","aria-activedescendant","onKeydown","onCompositionstart","onCompositionend"]))}}),$s=Ss;const[Es,Rs]=we("ListboxGroup");var Ds=D({__name:"ListboxGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const t=a,s=$e(void 0,"reka-listbox-group");return Rs({id:s}),(o,i)=>(u(),g(e(ie),q({role:"group"},t,{"aria-labelledby":e(s)}),{default:p(()=>[L(o.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),As=Ds,Bs=D({__name:"ListboxGroupLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(a){const t=a,s=Es({id:""});return(o,i)=>(u(),g(e(ie),q(t,{id:e(s).id}),{default:p(()=>[L(o.$slots,"default")]),_:3},16,["id"]))}}),Is=Bs;const Ps="listbox.select",[Oo,Ts]=we("ListboxItem");var Fs=D({__name:"ListboxItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},emits:["select"],setup(a,{emit:t}){const s=a,o=t,i=$e(void 0,"reka-listbox-item"),{CollectionItem:r}=je(),{forwardRef:n,currentElement:l}=Ot(),f=Ke(),v=O(()=>l.value===f.highlightedElement.value),y=O(()=>_s(f.modelValue.value,s.value,f.by)),d=O(()=>f.disabled.value||s.disabled);async function _(w){o("select",w),!w?.defaultPrevented&&!d.value&&w&&(f.onValueChange(s.value),f.changeHighlight(l.value))}function A(w){const T={originalEvent:w,value:s.value};Lt(Ps,_,T)}return Ts({isSelected:y}),(w,T)=>(u(),g(e(r),{value:w.value},{default:p(()=>[Ct([v.value,y.value],()=>m(e(ie),q({id:e(i)},w.$attrs,{ref:e(n),role:"option",tabindex:e(f).focusable.value?v.value?"0":"-1":-1,"aria-selected":y.value,as:w.as,"as-child":w.asChild,disabled:d.value?"":void 0,"data-disabled":d.value?"":void 0,"data-highlighted":v.value?"":void 0,"data-state":y.value?"checked":"unchecked",onClick:A,onKeydown:be(ke(A,["prevent"]),["space"]),onPointermove:T[0]||(T[0]=()=>{e(f).highlightedElement.value!==e(l)&&e(f).highlightOnHover.value&&!e(f).focusable.value&&e(f).changeHighlight(e(l),!1)})}),{default:p(()=>[L(w.$slots,"default")]),_:3},16,["id","tabindex","aria-selected","as","as-child","disabled","data-disabled","data-highlighted","data-state","onKeydown"]),T,1)]),_:3},8,["value"]))}}),Os=Fs;const Ls={class:"flex items-center gap-2 truncate"},Ms={class:"truncate"},Vs={key:0,class:"absolute top-full right-0 z-[9999] mt-1 w-[280px] rounded-md border bg-popover p-1 text-popover-foreground shadow-md"},zs={class:"max-h-[200px] overflow-y-auto"},qs=["aria-selected","onClick"],js={class:"flex flex-1 flex-col gap-0.5 overflow-hidden text-left"},Ks={class:"truncate font-medium"},Hs={class:"truncate text-xs text-muted-foreground"},Us=["onClick"],Ns={key:1,class:"px-2 py-1.5 text-sm text-muted-foreground"},Gs={key:2,class:"my-1 h-px bg-border"},Ws={class:"space-y-2"},Js={class:"flex gap-2"},Qs={key:0,class:"text-sm text-destructive"},Xs={key:0,class:"space-y-2 rounded-md border p-3"},Ys={class:"flex items-center gap-2 text-sm"},Zs=["disabled"],ea={class:"flex-1 truncate font-mono text-xs text-muted-foreground"},ta={class:"max-h-[200px] overflow-y-auto"},sa={key:0,class:"py-2 text-center text-sm text-muted-foreground"},aa={key:1,class:"py-2 text-center text-sm text-muted-foreground"},oa=["onClick"],na={class:"truncate"},la={key:0},ra={key:1},ia=D({__name:"RepoSelector",setup(a,{expose:t}){const s=Qe(),o=Me(),{repos:i,currentRepo:r,currentRepoId:n,selectRepo:l,addRepo:f,removeRepo:v}=Se(),{showSuccess:y}=et(),d=C(!1),_=C(""),A=C(null);Bt(A,()=>{d.value&&(d.value=!1,_.value="")}),ne(()=>o.fullPath,()=>{d.value=!1,_.value=""});async function w(V){l(V),d.value=!1,_.value="";try{const P=(await $fetch(`/api/repos/${V}/prds`))?.[0];P?s.push(`/${V}/${P.slug}`):s.push("/")}catch{s.push("/")}}function T(){d.value=!1,G.value=!0}const F=C(!1),b=C(""),M=C(""),R=C([]),j=C(!1),B=O(()=>!!M.value&&M.value!==b.value);async function ae(V){j.value=!0;try{const x=await $fetch("/api/browse",{query:{path:V||b.value||void 0}});b.value=x.current,M.value=x.parent,R.value=x.directories}catch{}finally{j.value=!1}}function K(){F.value=!0,ae(X.value||void 0)}function oe(V){X.value=V,F.value=!1,W.value=null}function ee(){B.value&&ae(M.value)}const G=C(!1),X=C(""),W=C(null),Y=C(!1),$=O(()=>{if(!_.value)return i.value;const V=_.value.toLowerCase();return i.value?.filter(x=>x.name.toLowerCase().includes(V)||x.path.toLowerCase().includes(V))??[]});async function I(){if(!X.value.trim()){W.value="Please enter a repository path";return}Y.value=!0,W.value=null;try{const V=await f(X.value.trim());if(G.value=!1,X.value="",y("Repository added",V?.name||"Successfully added repository"),V?.id)try{const P=(await $fetch(`/api/repos/${V.id}/prds`))?.[0];P&&s.push(`/${V.id}/${P.slug}`)}catch{}}catch(V){if(V instanceof Error){const x=V;W.value=x.data?.message||V.message}else W.value="Failed to add repository"}finally{Y.value=!1}}async function N(V,x){V.stopPropagation(),await v(x)}function ue(){G.value=!1,X.value="",W.value=null}return t({openAddDialog:()=>{G.value=!0}}),(V,x)=>(u(),S("div",{ref_key:"dropdownRef",ref:A,class:"relative"},[c("button",{type:"button",class:"inline-flex h-8 w-[200px] items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm font-normal ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",onClick:x[0]||(x[0]=P=>d.value=!e(d))},[c("span",Ls,[m(e(ss),{class:"size-4 shrink-0 text-muted-foreground"}),c("span",Ms,z(e(r)?.name??"Select repository"),1)]),m(e(Mt),{class:"size-4 shrink-0 opacity-50"})]),e(d)?(u(),S("div",Vs,[kt(c("input",{"onUpdate:modelValue":x[1]||(x[1]=P=>ye(_)?_.value=P:null),type:"text",placeholder:"Search repositories...",class:"mb-1 h-9 w-full rounded-md border border-input bg-background px-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"},null,512),[[St,e(_)]]),c("div",zs,[e($)?.length?(u(!0),S(te,{key:0},se(e($),P=>(u(),S("div",{key:P.id,class:"group flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer",role:"option","aria-selected":e(n)===P.id,onClick:de=>w(P.id)},[m(e(tt),{class:le(["size-4 shrink-0",e(n)===P.id?"opacity-100":"opacity-0"])},null,8,["class"]),c("div",js,[c("span",Ks,z(P.name),1),c("span",Hs,z(P.path),1)]),c("button",{type:"button",class:"ml-auto opacity-0 group-hover:opacity-100 p-1 hover:bg-destructive/10 rounded transition-opacity",title:"Remove repository",onClick:de=>N(de,P.id)},[m(e(is),{class:"size-3.5 text-destructive"})],8,Us)],8,qs))),128)):(u(),S("div",Ns," No repositories found. ")),e($)?.length?(u(),S("div",Gs)):U("",!0),c("button",{type:"button",class:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground",onClick:T},[m(e(Vt),{class:"size-4"}),x[5]||(x[5]=c("span",null,"Add repository...",-1))])])])):U("",!0),m(e(zt),{open:e(G),"onUpdate:open":x[4]||(x[4]=P=>G.value=P)},{default:p(()=>[m(e(qt),{side:"right",class:"flex h-full flex-col",onEscapeKeyDown:ue},{default:p(()=>[m(e(jt),{class:"px-6"},{default:p(()=>[m(e(Kt),null,{default:p(()=>[...x[6]||(x[6]=[J("Add Repository",-1)])]),_:1}),m(e(Ht),null,{default:p(()=>[...x[7]||(x[7]=[J(" Enter the absolute path to a repository containing PRD documents. ",-1)])]),_:1})]),_:1}),c("form",{id:"add-repo-form",class:"min-h-0 flex-1 space-y-4 overflow-y-auto px-6",onSubmit:ke(I,["prevent"])},[c("div",Ws,[x[8]||(x[8]=c("label",{for:"repo-path",class:"text-sm font-medium"}," Repository Path ",-1)),c("div",Js,[m(e(as),{id:"repo-path",modelValue:e(X),"onUpdate:modelValue":x[2]||(x[2]=P=>ye(X)?X.value=P:null),placeholder:"/path/to/your/project","aria-invalid":!!e(W),disabled:e(Y),class:"flex-1"},null,8,["modelValue","aria-invalid","disabled"]),m(e(me),{type:"button",variant:"outline",size:"icon",disabled:e(Y),onClick:K},{default:p(()=>[m(e(Le),{class:"size-4"})]),_:1},8,["disabled"])]),e(W)?(u(),S("p",Qs,z(e(W)),1)):U("",!0),x[9]||(x[9]=c("p",{class:"text-xs text-muted-foreground"},[J(" The repository should contain a "),c("code",{class:"rounded bg-muted px-1"},"docs/prd/"),J(" directory with markdown files. ")],-1))]),e(F)?(u(),S("div",Xs,[c("div",Ys,[c("button",{type:"button",class:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-xs text-muted-foreground hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50",disabled:!e(B),onClick:ee},[m(e(ns),{class:"size-3"}),x[10]||(x[10]=J(" Up ",-1))],8,Zs),c("span",ea,z(e(b)),1),m(e(me),{type:"button",variant:"ghost",size:"sm",class:"h-7 text-xs",onClick:x[3]||(x[3]=P=>oe(e(b)))},{default:p(()=>[...x[11]||(x[11]=[J(" Select ",-1)])]),_:1})]),c("div",ta,[e(j)?(u(),S("div",sa," Loading... ")):e(R).length?(u(!0),S(te,{key:2},se(e(R),P=>(u(),S("button",{key:P.path,type:"button",class:"flex w-full items-center gap-2 rounded px-2 py-1 text-sm hover:bg-accent",onClick:de=>ae(P.path)},[m(e(Le),{class:"size-4 text-muted-foreground"}),c("span",na,z(P.name),1)],8,oa))),128)):(u(),S("div",aa," No subdirectories "))])])):U("",!0)],32),m(e(Ut),{class:"px-6 pb-6"},{default:p(()=>[m(e(me),{type:"button",variant:"outline",disabled:e(Y),onClick:ue},{default:p(()=>[...x[12]||(x[12]=[J(" Cancel ",-1)])]),_:1},8,["disabled"]),m(e(me),{type:"submit",form:"add-repo-form",disabled:e(Y)},{default:p(()=>[e(Y)?(u(),S("span",la,"Adding...")):(u(),S("span",ra,"Add Repository"))]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])],512))}}),ua=Object.assign(ia,{__name:"LayoutRepoSelector"}),da={class:"flex h-full w-64 flex-col border-r border-border bg-background"},ca={class:"p-2"},pa={key:1,class:"flex items-center justify-center py-8"},fa={key:2,class:"px-2 py-8 text-center"},ma={key:3,class:"px-2 py-8 text-center"},va={key:4,class:"px-2 py-8 text-center"},ha={key:5,class:"space-y-1"},ga={class:"flex-1 truncate"},ya=D({__name:"Sidebar",setup(a){const t=Me(),{prds:s,prdsStatus:o,refreshPrds:i}=Ve(),{currentRepoId:r}=Se(),n=O(()=>t.params.prd);function l(y){return n.value===y}const f=O(()=>r.value?`/${r.value}/repo-graph`:"/"),v=O(()=>r.value?t.path===`/${r.value}/repo-graph`:!1);return(y,d)=>{const _=ls;return u(),S("aside",da,[m(e(Nt),{class:"flex-1"},{default:p(()=>[c("div",ca,[e(r)?(u(),g(_,{key:0,to:e(f),class:le(["group mb-2 flex items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",[e(v)?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"]])},{default:p(()=>[m(e(st),{class:"size-4 shrink-0"}),d[0]||(d[0]=c("span",{class:"flex-1 truncate"},"Repo Graph",-1))]),_:1},8,["to","class"])):U("",!0),d[6]||(d[6]=c("h2",{class:"flex h-10 items-center px-2 text-sm font-medium text-muted-foreground"},"Documents",-1)),e(o)==="pending"?(u(),S("div",pa,[m(e(Gt),{class:"size-5 animate-spin text-muted-foreground"})])):e(r)?e(o)==="error"?(u(),S("div",ma,[m(e(Wt),{class:"mx-auto size-8 text-destructive/50"}),d[3]||(d[3]=c("p",{class:"mt-2 text-sm text-muted-foreground"}," Failed to load PRDs ",-1)),m(e(me),{variant:"ghost",size:"sm",class:"mt-2",onClick:e(i)},{default:p(()=>[m(e(at),{class:"mr-1 size-3"}),d[2]||(d[2]=J(" Retry ",-1))]),_:1},8,["onClick"])])):e(s)?.length?(u(),S("nav",ha,[(u(!0),S(te,null,se(e(s),A=>(u(),g(_,{key:A.slug,to:`/${e(r)}/${A.slug}`,class:le(["group flex items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",[l(A.slug)?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"]])},{default:p(()=>[m(e(Oe),{class:"size-4 shrink-0"}),c("span",ga,z(A.name),1),A.hasState&&A.taskCount?(u(),g(e(Jt),{key:0,variant:"secondary",class:"shrink-0 text-xs"},{default:p(()=>[J(z(A.completedCount??0)+"/"+z(A.taskCount),1)]),_:2},1024)):U("",!0)]),_:2},1032,["to","class"]))),128))])):(u(),S("div",va,[m(e(Oe),{class:"mx-auto size-8 text-muted-foreground/50"}),d[4]||(d[4]=c("p",{class:"mt-2 text-sm text-muted-foreground"}," No PRDs found ",-1)),d[5]||(d[5]=c("p",{class:"mt-1 text-xs text-muted-foreground/70"}," Add .md files to docs/prd/ ",-1))])):(u(),S("div",fa,[...d[1]||(d[1]=[c("p",{class:"text-sm text-muted-foreground"}," Select a repository to view PRDs ",-1)])]))])]),_:1})])}}}),_a=Object.assign(ya,{__name:"LayoutSidebar"}),ba=D({__name:"Command",props:{modelValue:{default:""},defaultValue:{},multiple:{type:Boolean},orientation:{},dir:{},disabled:{type:Boolean},selectionBehavior:{},highlightOnHover:{type:Boolean},by:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{},defaultSearch:{default:""}},emits:["update:modelValue","highlight","entryFocus","leave"],setup(a,{emit:t}){const s=a,o=t,i=Z(s,"class"),r=he(i,o),n=C(new Map),l=C(new Map),{contains:f}=ds({sensitivity:"base"}),v=$t({search:s.defaultSearch||"",filtered:{count:0,items:new Map,groups:new Set}});ne(()=>s.defaultSearch,d=>{d!==void 0&&(v.search=d)});function y(){if(!v.search){v.filtered.count=n.value.size;return}v.filtered.groups=new Set;let d=0;for(const[_,A]of n.value){const w=f(A,v.search);v.filtered.items.set(_,w?1:0),w&&d++}for(const[_,A]of l.value)for(const w of A)if(v.filtered.items.get(w)>0){v.filtered.groups.add(_);break}v.filtered.count=d}return ne(()=>v.search,()=>{y()}),ne(()=>n.value.size,()=>{v.search&&y()}),Ga({allItems:n,allGroups:l,filterState:v}),(d,_)=>(u(),g(e(ws),q({"data-slot":"command"},e(r),{class:e(Q)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",s.class)}),{default:p(()=>[L(d.$slots,"default")]),_:3},16,["class"]))}}),xa=Object.assign(ba,{__name:"UiCommand"}),wa=D({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(a,{emit:t}){const i=he(a,t);return(r,n)=>(u(),g(e(Qt),q({"data-slot":"dialog"},e(i)),{default:p(l=>[L(r.$slots,"default",Ie(Pe(l)))]),_:3},16))}}),ct=Object.assign(wa,{__name:"UiDialog"}),Ca=D({__name:"DialogClose",props:{asChild:{type:Boolean},as:{}},setup(a){const t=a;return(s,o)=>(u(),g(e(ze),q({"data-slot":"dialog-close"},t),{default:p(()=>[L(s.$slots,"default")]),_:3},16))}});Object.assign(Ca,{__name:"UiDialogClose"});const ka=D({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class");return(o,i)=>(u(),g(e(ot),q({"data-slot":"dialog-overlay"},e(s),{class:e(Q)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t.class)}),{default:p(()=>[L(o.$slots,"default")]),_:3},16,["class"]))}}),Sa=Object.assign(ka,{__name:"UiDialogOverlay"}),$a=D({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:t}){const s=a,o=t,i=Z(s,"class"),r=he(i,o);return(n,l)=>(u(),g(e(nt),null,{default:p(()=>[m(Sa),m(e(lt),q({"data-slot":"dialog-content"},{...n.$attrs,...e(r)},{class:e(Q)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",s.class)}),{default:p(()=>[L(n.$slots,"default"),a.showCloseButton?(u(),g(e(ze),{key:0,"data-slot":"dialog-close",class:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},{default:p(()=>[m(e(rt)),l[0]||(l[0]=c("span",{class:"sr-only"},"Close",-1))]),_:1})):U("",!0)]),_:3},16,["class"])]),_:3}))}}),pt=Object.assign($a,{__name:"UiDialogContent"}),Ea=D({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class"),o=Ee(s);return(i,r)=>(u(),g(e(Xt),q({"data-slot":"dialog-description"},e(o),{class:e(Q)("text-muted-foreground text-sm",t.class)}),{default:p(()=>[L(i.$slots,"default")]),_:3},16,["class"]))}}),ft=Object.assign(Ea,{__name:"UiDialogDescription"}),Ra=D({__name:"DialogFooter",props:{class:{}},setup(a){const t=a;return(s,o)=>(u(),S("div",{"data-slot":"dialog-footer",class:le(e(Q)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class))},[L(s.$slots,"default")],2))}});Object.assign(Ra,{__name:"UiDialogFooter"});const Da=D({__name:"DialogHeader",props:{class:{}},setup(a){const t=a;return(s,o)=>(u(),S("div",{"data-slot":"dialog-header",class:le(e(Q)("flex flex-col gap-2 text-center sm:text-left",t.class))},[L(s.$slots,"default")],2))}}),mt=Object.assign(Da,{__name:"UiDialogHeader"}),Aa=D({inheritAttrs:!1,__name:"DialogScrollContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:t}){const s=a,o=t,i=Z(s,"class"),r=he(i,o);return(n,l)=>(u(),g(e(nt),null,{default:p(()=>[m(e(ot),{class:"fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"},{default:p(()=>[m(e(lt),q({class:e(Q)("relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",s.class)},{...n.$attrs,...e(r)},{onPointerDownOutside:l[0]||(l[0]=f=>{const v=f.detail.originalEvent,y=v.target;(v.offsetX>y.clientWidth||v.offsetY>y.clientHeight)&&f.preventDefault()})}),{default:p(()=>[L(n.$slots,"default"),m(e(ze),{class:"absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary"},{default:p(()=>[m(e(rt),{class:"w-4 h-4"}),l[1]||(l[1]=c("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3})]),_:3}))}});Object.assign(Aa,{__name:"UiDialogScrollContent"});const Ba=D({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class"),o=Ee(s);return(i,r)=>(u(),g(e(Yt),q({"data-slot":"dialog-title"},e(o),{class:e(Q)("text-lg leading-none font-semibold",t.class)}),{default:p(()=>[L(i.$slots,"default")]),_:3},16,["class"]))}}),vt=Object.assign(Ba,{__name:"UiDialogTitle"}),Ia=D({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(a){const t=a;return(s,o)=>(u(),g(e(Zt),q({"data-slot":"dialog-trigger"},t),{default:p(()=>[L(s.$slots,"default")]),_:3},16))}});Object.assign(Ia,{__name:"UiDialogTrigger"});const Pa=D({__name:"CommandDialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},title:{default:"Command Palette"},description:{default:"Search for a command to run..."},defaultSearch:{default:""}},emits:["update:open"],setup(a,{emit:t}){const i=he(a,t);return(r,n)=>(u(),g(e(ct),Ie(Pe(e(i))),{default:p(l=>[m(e(pt),{class:"overflow-hidden p-0","show-close-button":!1},{default:p(()=>[m(e(mt),{class:"sr-only"},{default:p(()=>[m(e(vt),null,{default:p(()=>[J(z(a.title),1)]),_:1}),m(e(ft),null,{default:p(()=>[J(z(a.description),1)]),_:1})]),_:1}),m(xa,{"default-search":a.defaultSearch},{default:p(()=>[L(r.$slots,"default",Ie(Pe(l)))]),_:2},1032,["default-search"])]),_:2},1024)]),_:3},16))}}),Ta=Object.assign(Pa,{__name:"UiCommandDialog"}),Fa=D({__name:"CommandEmpty",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class"),{filterState:o}=Re(),i=O(()=>!!o.search&&o.filtered.count===0);return(r,n)=>i.value?(u(),g(e(ie),q({key:0,"data-slot":"command-empty"},e(s),{class:e(Q)("py-6 text-center text-sm",t.class)}),{default:p(()=>[L(r.$slots,"default")]),_:3},16,["class"])):U("",!0)}}),Oa=Object.assign(Fa,{__name:"UiCommandEmpty"}),La=D({__name:"CommandGroup",props:{asChild:{type:Boolean},as:{},class:{},heading:{}},setup(a){const t=a,s=Z(t,"class"),{allGroups:o,filterState:i}=Re(),r=$e(),n=O(()=>i.search?i.filtered.groups.has(r):!0);return Ja({id:r}),re(()=>{o.value.has(r)||o.value.set(r,new Set)}),ve(()=>{o.value.delete(r)}),(l,f)=>(u(),g(e(As),q(e(s),{id:e(r),"data-slot":"command-group",class:e(Q)("text-foreground overflow-hidden p-1",t.class),hidden:n.value?void 0:!0}),{default:p(()=>[a.heading?(u(),g(e(Is),{key:0,"data-slot":"command-group-heading",class:"px-2 py-1.5 text-xs font-medium text-muted-foreground"},{default:p(()=>[J(z(a.heading),1)]),_:1})):U("",!0),L(l.$slots,"default")]),_:3},16,["id","class","hidden"]))}}),Be=Object.assign(La,{__name:"UiCommandGroup"}),Ma={"data-slot":"command-input-wrapper",class:"flex h-9 items-center gap-2 border-b px-3"},Va=D({inheritAttrs:!1,__name:"CommandInput",props:{modelValue:{},autoFocus:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class"),o=Ee(s),{filterState:i}=Re(),r=C(null);return re(()=>{fe(()=>{const n=r.value?.$el;if(n&&i.search){const l=i.search.length;n.setSelectionRange(l,l)}})}),(n,l)=>(u(),S("div",Ma,[m(e(rs),{class:"size-4 shrink-0 opacity-50"}),m(e($s),q({ref_key:"inputRef",ref:r},{...e(o),...n.$attrs},{modelValue:e(i).search,"onUpdate:modelValue":l[0]||(l[0]=f=>e(i).search=f),"data-slot":"command-input","auto-focus":"",class:e(Q)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t.class)}),null,16,["modelValue","class"])]))}}),za=Object.assign(Va,{__name:"UiCommandInput"}),qa=D({__name:"CommandItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(a,{emit:t}){const s=a,o=t,i=Z(s,"class"),r=he(i,o),n=$e(),{filterState:l,allItems:f,allGroups:v}=Re(),y=Wa(),d=O(()=>{if(l.search){const w=l.filtered.items.get(n);return w===void 0?!0:w>0}else return!0}),_=C(),A=It(_);return re(()=>{if(!(A.value instanceof HTMLElement))return;f.value.set(n,A.value.textContent??s.value?.toString()??"");const w=y?.id;w&&(v.value.has(w)?v.value.get(w)?.add(n):v.value.set(w,new Set([n])))}),ve(()=>{f.value.delete(n)}),(w,T)=>d.value?(u(),g(e(Os),q({key:0},e(r),{id:e(n),ref_key:"itemRef",ref:_,"data-slot":"command-item",class:e(Q)("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s.class),onSelect:T[0]||(T[0]=()=>{e(l).search=""})}),{default:p(()=>[L(w.$slots,"default")]),_:3},16,["id","class"])):U("",!0)}}),pe=Object.assign(qa,{__name:"UiCommandItem"}),ja={role:"presentation"},Ka=D({__name:"CommandList",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class"),o=Ee(s);return(i,r)=>(u(),g(e(ks),q({"data-slot":"command-list"},e(o),{class:e(Q)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto scrollbar-none",t.class)}),{default:p(()=>[c("div",ja,[L(i.$slots,"default")])]),_:3},16,["class"]))}}),Ha=Object.assign(Ka,{__name:"UiCommandList"}),Ua=D({__name:"CommandSeparator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(a){const t=a,s=Z(t,"class");return(o,i)=>(u(),g(e(es),q({"data-slot":"command-separator"},e(s),{class:e(Q)("bg-border -mx-1 h-px",t.class)}),{default:p(()=>[L(o.$slots,"default")]),_:3},16,["class"]))}}),Ge=Object.assign(Ua,{__name:"UiCommandSeparator"}),Na=D({__name:"CommandShortcut",props:{class:{}},setup(a){const t=a;return(s,o)=>(u(),S("span",{"data-slot":"command-shortcut",class:le(e(Q)("text-muted-foreground ml-auto text-xs tracking-widest",t.class))},[L(s.$slots,"default")],2))}});Object.assign(Na,{__name:"UiCommandShortcut"});const[Re,Ga]=we("Command"),[Wa,Ja]=we("CommandGroup"),Qa={class:"flex-1"},Xa={class:"flex-1"},Ya={class:"ml-auto flex items-center gap-1"},Za={class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground"},eo={class:"flex-1"},to={class:"ml-auto flex items-center gap-1"},so={class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground"},ao={class:"ml-auto flex items-center gap-1"},oo={class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground"},no=D({__name:"CommandPalette",props:{open:{type:Boolean,default:!1},openModifiers:{},filter:{default:""},filterModifiers:{}},emits:Et(["openShortcutsHelp"],["update:open","update:filter"]),setup(a,{emit:t}){const s=Te(a,"open"),o=Te(a,"filter"),i=t,r=Qe(),{themeMode:n,cycleThemeMode:l}=Xe(),{prds:f}=Ve(),{repos:v,currentRepoId:y,selectRepo:d,refreshGitRepos:_}=Se(),{showSuccess:A,showError:w}=et(),T=["document","board","graph"],F={document:"Document",board:"Task Board",graph:"Graph"},b=C("document");{const $=localStorage.getItem("prd-viewer-tab");($==="document"||$==="board"||$==="graph")&&(b.value=$)}function M($){$.key!=="prd-viewer-tab"||!$.newValue||($.newValue==="document"||$.newValue==="board"||$.newValue==="graph")&&(b.value=$.newValue)}re(()=>{window.addEventListener("storage",M)}),ve(()=>{window.removeEventListener("storage",M)});const R=O(()=>{const $=T.indexOf(b.value),I=$>=0?$:0;return T[(I+1)%T.length]}),j=O(()=>F[R.value]);function B($){y.value&&(r.push(`/${y.value}/${$}`),s.value=!1)}function ae($){d($),r.push("/"),s.value=!1}function K(){l(),s.value=!1}function oe(){const $=R.value;b.value=$,localStorage.setItem("prd-viewer-tab",$),window.dispatchEvent(new StorageEvent("storage",{key:"prd-viewer-tab",newValue:$})),s.value=!1}function ee(){s.value=!1,i("openShortcutsHelp")}const G=C(!1);async function X(){if(!(!y.value||G.value)){G.value=!0,s.value=!1;try{const $=await _(y.value);A(`Discovered ${$.discovered} git repositories`)}catch{w("Failed to refresh git repos")}finally{G.value=!1}}}ne(s,$=>{$||(o.value="")});const W=O(()=>navigator.platform.toUpperCase().indexOf("MAC")>=0),Y=O(()=>W.value?"⌘":"Ctrl");return($,I)=>(u(),g(e(Ta),{open:s.value,"onUpdate:open":I[0]||(I[0]=N=>s.value=N),"default-search":o.value},{default:p(()=>[m(e(za),{placeholder:"Type a command or search..."}),m(e(Ha),null,{default:p(()=>[m(e(Oa),null,{default:p(()=>[...I[1]||(I[1]=[J("No results found.",-1)])]),_:1}),e(f)?.length?(u(),g(e(Be),{key:0,heading:"Documents"},{default:p(()=>[(u(!0),S(te,null,se(e(f),N=>(u(),g(e(pe),{key:N.slug,value:`PRD: ${N.name}`,onSelect:ue=>B(N.slug)},{default:p(()=>[m(e(Oe),{class:"size-4"}),c("span",null,z(N.name),1)]),_:2},1032,["value","onSelect"]))),128))]),_:1})):U("",!0),e(f)?.length&&e(v)?.length?(u(),g(e(Ge),{key:1})):U("",!0),e(v)?.length?(u(),g(e(Be),{key:2,heading:"Repositories"},{default:p(()=>[(u(!0),S(te,null,se(e(v),N=>(u(),g(e(pe),{key:N.id,value:`repo-${N.id} ${N.name}`,onSelect:ue=>ae(N.id)},{default:p(()=>[m(e(Le),{class:"size-4"}),c("span",Qa,z(N.name),1),N.id===e(y)?(u(),g(e(tt),{key:0,class:"size-4 text-primary"})):U("",!0)]),_:2},1032,["value","onSelect"]))),128))]),_:1})):U("",!0),e(v)?.length?(u(),g(e(Ge),{key:3})):U("",!0),m(e(Be),{heading:"Actions"},{default:p(()=>[m(e(pe),{value:"cycle-theme light dark system",onSelect:K},{default:p(()=>[e(n)==="system"?(u(),g(e(it),{key:0,class:"size-4"})):e(n)==="light"?(u(),g(e(dt),{key:1,class:"size-4"})):(u(),g(e(ut),{key:2,class:"size-4"})),c("span",Xa,"Cycle theme mode ("+z(e(n))+")",1),c("div",Ya,[c("kbd",Za,z(e(Y)),1),I[2]||(I[2]=c("kbd",{class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground"},".",-1))])]),_:1}),m(e(pe),{value:`switch-tab ${e(j).toLowerCase()}`,onSelect:oe},{default:p(()=>[m(e(st),{class:"size-4"}),c("span",eo,"Switch to "+z(e(j)),1),c("div",to,[c("kbd",so,z(e(Y)),1),I[3]||(I[3]=c("kbd",{class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground"},"\\",-1))])]),_:1},8,["value"]),m(e(pe),{value:"keyboard shortcuts help",onSelect:ee},{default:p(()=>[m(e(ts),{class:"size-4"}),I[5]||(I[5]=c("span",{class:"flex-1"},"Keyboard shortcuts",-1)),c("div",ao,[c("kbd",oo,z(e(Y)),1),I[4]||(I[4]=c("kbd",{class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground"},"/",-1))])]),_:1}),e(y)?(u(),g(e(pe),{key:0,value:"refresh git repos rescan discover",disabled:e(G),onSelect:X},{default:p(()=>[m(e(at),{class:le(["size-4",{"animate-spin":e(G)}])},null,8,["class"]),I[6]||(I[6]=c("span",{class:"flex-1"},"Refresh git repos",-1))]),_:1},8,["disabled"])):U("",!0)]),_:1})]),_:1})]),_:1},8,["open","default-search"]))}}),lo=Object.assign(no,{__name:"CommandPalette"}),ro={class:"space-y-6"},io={class:"mb-3 text-sm font-medium text-muted-foreground"},uo={class:"space-y-2"},co={class:"text-sm"},po={class:"flex items-center gap-1"},fo=D({__name:"ShortcutsHelp",props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:["update:open"],setup(a){const t=Te(a,"open"),s=O(()=>navigator.platform.toUpperCase().indexOf("MAC")>=0),o=O(()=>s.value?"⌘":"Ctrl"),i=O(()=>[{name:"Navigation",shortcuts:[{keys:[o.value,"K"],description:"Open command palette"},{keys:[o.value,"J"],description:"Quick jump to document"}]},{name:"Actions",shortcuts:[{keys:[o.value,"."],description:"Cycle theme mode (light/dark/system)"},{keys:[o.value,"\\"],description:"Cycle Document, Task Board, and Graph tabs"},{keys:[o.value,","],description:"Add repository"}]},{name:"Help",shortcuts:[{keys:[o.value,"/"],description:"Show this help"},{keys:["Esc"],description:"Close dialog or palette"}]}]);return(r,n)=>(u(),g(e(ct),{open:t.value,"onUpdate:open":n[0]||(n[0]=l=>t.value=l)},{default:p(()=>[m(e(pt),{class:"max-w-md"},{default:p(()=>[m(e(mt),null,{default:p(()=>[m(e(vt),null,{default:p(()=>[...n[1]||(n[1]=[J("Keyboard Shortcuts",-1)])]),_:1}),m(e(ft),null,{default:p(()=>[...n[2]||(n[2]=[J(" Quick reference for available keyboard shortcuts. ",-1)])]),_:1})]),_:1}),c("div",ro,[(u(!0),S(te,null,se(e(i),l=>(u(),S("div",{key:l.name},[c("h3",io,z(l.name),1),c("div",uo,[(u(!0),S(te,null,se(l.shortcuts,f=>(u(),S("div",{key:f.description,class:"flex items-center justify-between"},[c("span",co,z(f.description),1),c("div",po,[(u(!0),S(te,null,se(f.keys,(v,y)=>(u(),S("kbd",{key:y,class:"inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-xs font-medium text-muted-foreground"},z(v),1))),128))])]))),128))])]))),128))])]),_:1})]),_:1},8,["open"]))}}),mo=Object.assign(fo,{__name:"ShortcutsHelp"});function ht(){const a=document.activeElement;if(!a)return!1;const t=a.tagName.toLowerCase();return t==="input"||t==="textarea"||a.getAttribute("contenteditable")==="true"||a.getAttribute("role")==="textbox"}function vo(a){const t=a.toLowerCase().split("+"),s=t.pop()||"";return{meta:t.includes("meta"),ctrl:t.includes("ctrl"),shift:t.includes("shift"),alt:t.includes("alt"),key:s}}function ho(a,t){const s=a.key.toLowerCase();let o=s===t.key;return t.key==="\\"&&(o=s==="\\"||a.code==="Backslash"),t.key==="/"&&(o=s==="/"||a.code==="Slash"),t.key==="."&&(o=s==="."||a.code==="Period"),t.key===","&&(o=s===","||a.code==="Comma"),o&&a.metaKey===t.meta&&a.ctrlKey===t.ctrl&&a.shiftKey===t.shift&&a.altKey===t.alt}const Ce=[];let We=!1;function go(a){for(const t of Ce)if(ho(a,t.combo)){if(!t.allowInInput&&ht())continue;a.preventDefault(),a.stopPropagation(),t.handler();return}}function Je(){We||(document.addEventListener("keydown",go,{capture:!0}),We=!0)}function yo(){re(()=>{Je()});function a(s,o,i){const n={combo:vo(s),handler:o,allowInInput:i?.allowInInput??!1};Ce.push(n),Je(),ve(()=>{const l=Ce.indexOf(n);l>-1&&Ce.splice(l,1)})}function t(){return ht()}return{onShortcut:a,isInputFocused:t}}const _o=globalThis.setInterval,bo=2e3,xo=2e3;function wo(a){return!a.instanceId||!a.buildId?null:`${a.buildId}:${a.instanceId}`}function Co(a){const t=C(null),s=C(!1),o=C(null),i=C(null),r=C(null),n=C(null),l=C(!1),f=C(!1),v=C(!1);function y(){i.value&&(clearTimeout(i.value),i.value=null)}function d(){r.value&&(clearInterval(r.value),r.value=null)}async function _(){try{const R=await $fetch(`/api/runtime?_=${Date.now()}`);return wo(R)}catch{return null}}async function A(){n.value===null&&(n.value=await _())}async function w(){if(!(l.value||v.value)){l.value=!0;try{const R=await _();if(!R)return;if(!n.value){n.value=R;return}R!==n.value&&(v.value=!0,window.location.reload())}finally{l.value=!1}}}function T(){r.value||(r.value=_o(()=>{w()},xo))}function F(){i.value||(i.value=setTimeout(()=>{i.value=null,b()},bo))}function b(){if(!t.value)try{const R=new EventSource("/api/watch");R.onopen=async()=>{s.value=!0,o.value=null,y(),d(),f.value&&(f.value=!1,await w())},R.onmessage=j=>{try{const B=JSON.parse(j.data);a(B)}catch{}},R.onerror=()=>{s.value=!1,o.value="Connection lost",f.value=!0,t.value===R&&(R.close(),t.value=null),T(),F()},t.value=R}catch{o.value="Failed to connect",T(),F()}}function M(){y(),d(),f.value=!1,t.value&&(t.value.close(),t.value=null,s.value=!1)}return re(async()=>{await A(),b()}),ve(()=>{M()}),{isConnected:s,error:o,connect:b,disconnect:M}}const ko={class:"min-h-screen bg-background text-foreground"},So={class:"fixed top-0 left-0 right-0 z-50 h-14 border-b border-border bg-background/95 backdrop-blur-sm supports-[backdrop-filter]:bg-background/80"},$o={class:"flex h-full items-center justify-between px-4 md:px-6"},Eo={class:"flex items-center gap-3"},Ro={class:"flex h-screen pt-14"},Do={class:"flex-1 overflow-auto"},Lo=D({__name:"default",setup(a){const{themeMode:t,cycleThemeMode:s}=Xe(),{refreshPrds:o}=Ve(),{currentRepoId:i}=Se(),r=Me(),n=C(null);Rt("fileChangeEvent",n);const l=C(!1),f=C(""),v=C(!1),y=C(null),{onShortcut:d}=yo();d("Meta+k",()=>{l.value=!0}),d("Ctrl+k",()=>{l.value=!0}),d("Meta+j",()=>{f.value="PRD: ",l.value=!0}),d("Ctrl+j",()=>{f.value="PRD: ",l.value=!0});function _(){const F=["document","board","graph"],b=localStorage.getItem("prd-viewer-tab")||"document",M=F.indexOf(b),R=M>=0?M:0,j=F[(R+1)%F.length]??"document";localStorage.setItem("prd-viewer-tab",j),window.dispatchEvent(new StorageEvent("storage",{key:"prd-viewer-tab",newValue:j}))}d("Meta+\\",_),d("Ctrl+\\",_);function A(){s()}d("Meta+.",A),d("Ctrl+.",A);function w(){y.value?.openAddDialog()}d("Meta+,",w),d("Ctrl+,",w);function T(){v.value=!0}return d("Meta+/",T),d("Ctrl+/",T),d("Meta+Shift+/",T),d("Ctrl+Shift+/",T),Co(F=>{if(F.type==="connected"||!F.category)return;const b=F.category;if(F.repoId!==i.value)return;(b==="prd"||b==="tasks")&&o();const M=r.params.prd;if(M){const R=b==="prd"&&F.path?.includes(`/${M}.`),j=(b==="tasks"||b==="progress")&&F.path?.includes(`/${M}/`);(R||j||(b==="tasks"||b==="progress"))&&(n.value={category:b,path:F.path,timestamp:Date.now()})}}),(F,b)=>{const M=ua,R=Dt,j=_a;return u(),S("div",ko,[m(lo,{open:e(l),"onUpdate:open":b[0]||(b[0]=B=>ye(l)?l.value=B:null),filter:e(f),"onUpdate:filter":b[1]||(b[1]=B=>ye(f)?f.value=B:null),onOpenShortcutsHelp:T},null,8,["open","filter"]),m(mo,{open:e(v),"onUpdate:open":b[2]||(b[2]=B=>ye(v)?v.value=B:null)},null,8,["open"]),c("header",So,[c("div",$o,[b[5]||(b[5]=c("div",{class:"flex items-center gap-4"},[c("h1",{class:"text-lg font-semibold tracking-tight"}," PRD Viewer ")],-1)),m(R,null,{fallback:p(()=>[...b[4]||(b[4]=[c("div",{class:"flex items-center gap-3"},[c("div",{class:"h-8 w-[200px] animate-pulse rounded-md bg-muted"}),c("div",{class:"size-9 animate-pulse rounded-md bg-muted"})],-1)])]),default:p(()=>[c("div",Eo,[m(M,{ref_key:"repoSelectorRef",ref:y},null,512),m(e(me),{variant:"ghost",size:"icon",class:"size-9",onClick:A},{default:p(()=>[e(t)==="system"?(u(),g(e(it),{key:0,class:"size-4"})):e(t)==="light"?(u(),g(e(dt),{key:1,class:"size-4"})):(u(),g(e(ut),{key:2,class:"size-4"})),b[3]||(b[3]=c("span",{class:"sr-only"},"Cycle theme mode",-1))]),_:1})])]),_:1})])]),c("div",Ro,[m(R,null,{fallback:p(()=>[...b[6]||(b[6]=[c("aside",{class:"flex h-full w-64 flex-col border-r border-border bg-background"},[c("div",{class:"flex h-12 items-center border-b border-border px-4"},[c("div",{class:"h-4 w-20 animate-pulse rounded bg-muted"})]),c("div",{class:"flex-1 p-2 space-y-2"},[c("div",{class:"h-9 animate-pulse rounded-md bg-muted"}),c("div",{class:"h-9 animate-pulse rounded-md bg-muted"}),c("div",{class:"h-9 animate-pulse rounded-md bg-muted"})])],-1)])]),default:p(()=>[m(j)]),_:1}),c("main",Do,[L(F.$slots,"default")])])])}}});export{Lo as default};