@straiffi/archon 1.13.1 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/client/assets/{ActivityView-BUI6n3Xm.js → ActivityView-DRD09JTc.js} +1 -1
  2. package/dist/client/assets/{ApprovalRequestPanel-BLQpUi-k.js → ApprovalRequestPanel-CRfb4jzF.js} +1 -1
  3. package/dist/client/assets/{ConversationMarkdown-D82tqKzW.js → ConversationMarkdown-D8iVeRE1.js} +3 -3
  4. package/dist/client/assets/DemonstrationDialog-D01TLRCK.js +1 -0
  5. package/dist/client/assets/GitHubActionsDialog-BmIcsS_L.js +1 -0
  6. package/dist/client/assets/{IconDocument-CePtRoIw.js → IconDocument-DINFwIj-.js} +1 -1
  7. package/dist/client/assets/IconGitHubActions-CjswQj_b.js +1 -0
  8. package/dist/client/assets/{IconPlay-clLSJ5aH.js → IconPlay-B8gyjngb.js} +1 -1
  9. package/dist/client/assets/IconStop-BN5mT2U1.js +1 -0
  10. package/dist/client/assets/{IconX-TosfRQdR.js → IconX-sSpA2ejo.js} +1 -1
  11. package/dist/client/assets/{LifecycleProvider-DrROQ0mW.js → LifecycleProvider-ei6VLwTM.js} +1 -1
  12. package/dist/client/assets/{LifecycleTimelineDialog-BzLUSgQH.js → LifecycleTimelineDialog-C0H6bvI5.js} +1 -1
  13. package/dist/client/assets/MediaPreviewDialog-B5yPPi0T.js +1 -0
  14. package/dist/client/assets/VerificationDialog-Cke3OC3c.js +4 -0
  15. package/dist/client/assets/{WorkspaceReviewModal-B5nSkK2I.js → WorkspaceReviewModal-CLcm4NoU.js} +7 -7
  16. package/dist/client/assets/{arc-DLm4ZDPa.js → arc-BR2KXlwD.js} +1 -1
  17. package/dist/client/assets/architecture-7EHR7CIX-DTZWkxfd.js +1 -0
  18. package/dist/client/assets/{architectureDiagram-3BPJPVTR-CpuAmBUP.js → architectureDiagram-3BPJPVTR-Pkhiqt5r.js} +1 -1
  19. package/dist/client/assets/{artifactPresentation-B2cVmrHY.js → artifactPresentation-CY7_iPcf.js} +1 -1
  20. package/dist/client/assets/{badge-D4QSKcZA.js → badge-Bnvptskz.js} +1 -1
  21. package/dist/client/assets/{blockDiagram-GPEHLZMM-w0sI3yUo.js → blockDiagram-GPEHLZMM-ruvMsQHK.js} +1 -1
  22. package/dist/client/assets/bootstrap-CKROdR45.js +98 -0
  23. package/dist/client/assets/bootstrap-CX5EVEtc.css +2 -0
  24. package/dist/client/assets/{c4Diagram-AAUBKEIU-B7IcliPY.js → c4Diagram-AAUBKEIU-D1brmJbD.js} +1 -1
  25. package/dist/client/assets/channel-B01NDmbu.js +1 -0
  26. package/dist/client/assets/{chunk-2J33WTMH-CD1KJm7N.js → chunk-2J33WTMH-CLreEKG8.js} +1 -1
  27. package/dist/client/assets/{chunk-3OPIFGDE-CWNDFW47.js → chunk-3OPIFGDE-DCODI-Rc.js} +1 -1
  28. package/dist/client/assets/{chunk-4BX2VUAB-j6qim-YB.js → chunk-4BX2VUAB-BEdmpAM4.js} +1 -1
  29. package/dist/client/assets/{chunk-4EGX6M5U-C7opoYrE.js → chunk-4EGX6M5U-C5SHZY5t.js} +1 -1
  30. package/dist/client/assets/{chunk-55IACEB6-4YpmINBj.js → chunk-55IACEB6-B_T45HbU.js} +1 -1
  31. package/dist/client/assets/{chunk-5DO6E6H7-B44Az2Vm.js → chunk-5DO6E6H7-BvRtJG-b.js} +1 -1
  32. package/dist/client/assets/{chunk-5ZQYHXKU-CAmg-Amo.js → chunk-5ZQYHXKU-Czv3sEec.js} +1 -1
  33. package/dist/client/assets/{chunk-727SXJPM-QT6vkxfw.js → chunk-727SXJPM-CUS5BAia.js} +1 -1
  34. package/dist/client/assets/{chunk-AQP2D5EJ-C5J_PkKZ.js → chunk-AQP2D5EJ-DuU68eY2.js} +1 -1
  35. package/dist/client/assets/{chunk-BR22UD5L-BeGGfGKP.js → chunk-BR22UD5L-CMbA_7zi.js} +1 -1
  36. package/dist/client/assets/{chunk-BSJP7CBP-cLht0MXH.js → chunk-BSJP7CBP-D9C1bNga.js} +1 -1
  37. package/dist/client/assets/{chunk-CSCIHK7Q-CgdjKrdr.js → chunk-CSCIHK7Q-BFj36ajn.js} +2 -2
  38. package/dist/client/assets/{chunk-FHYWG6QK-DPU-Vm7B.js → chunk-FHYWG6QK-DpLqOkK7.js} +1 -1
  39. package/dist/client/assets/{chunk-FMBD7UC4-D0714kyI.js → chunk-FMBD7UC4-B_i-fBOm.js} +1 -1
  40. package/dist/client/assets/{chunk-KSCS5N6A-DNsbWXPN.js → chunk-KSCS5N6A-iU27-eSU.js} +1 -1
  41. package/dist/client/assets/{chunk-L5ZTLDWV-D7HoN5ML.js → chunk-L5ZTLDWV-Dkr_XhvY.js} +1 -1
  42. package/dist/client/assets/{chunk-LZXEDZCA-BzMkcBOY.js → chunk-LZXEDZCA-CvWOZMMQ.js} +2 -2
  43. package/dist/client/assets/{chunk-MPE355IW-CpGJ_GQ8.js → chunk-MPE355IW-Bm6LdhAi.js} +1 -1
  44. package/dist/client/assets/{chunk-MZUSXYTE-CkH88bj3.js → chunk-MZUSXYTE-v7h2c1h1.js} +1 -1
  45. package/dist/client/assets/{chunk-N66VUXT2-DTStVk4C.js → chunk-N66VUXT2-CX1fso4R.js} +1 -1
  46. package/dist/client/assets/{chunk-ND2GUHAM-_4lXPs4v.js → chunk-ND2GUHAM-BkfiFlFO.js} +1 -1
  47. package/dist/client/assets/{chunk-NZK2D7GU-4vnXS7O-.js → chunk-NZK2D7GU-Ci8pOVdE.js} +1 -1
  48. package/dist/client/assets/{chunk-O5CBEL6O-BRXaTllh.js → chunk-O5CBEL6O-DQWScC0A.js} +1 -1
  49. package/dist/client/assets/{chunk-PUPMXCY4-CLXvBvAX.js → chunk-PUPMXCY4-9anN8Uz5.js} +1 -1
  50. package/dist/client/assets/chunk-QZHKN3VN-CJfHEZGy.js +1 -0
  51. package/dist/client/assets/{chunk-UIBZB4QT-tZrOU_9W.js → chunk-UIBZB4QT-DIG38ead.js} +1 -1
  52. package/dist/client/assets/{chunk-WCWK7LTN-KPm7BsrY.js → chunk-WCWK7LTN-Doy8-Vhx.js} +1 -1
  53. package/dist/client/assets/chunk-WU5MYG2G-NCbD6q3J.js +1 -0
  54. package/dist/client/assets/{chunk-XPW4576I-wD8YVX6M.js → chunk-XPW4576I-DXkP_JdL.js} +1 -1
  55. package/dist/client/assets/classDiagram-4FO5ZUOK-D_Jv2gIy.js +1 -0
  56. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CcxVBrx5.js +1 -0
  57. package/dist/client/assets/{cose-bilkent-S5V4N54A-3J7dPSP2.js → cose-bilkent-S5V4N54A-HrZ-5MDk.js} +1 -1
  58. package/dist/client/assets/{dagre-BM42HDAG-FWdldae4.js → dagre-BM42HDAG-DRbkGBBP.js} +1 -1
  59. package/dist/client/assets/{dagre-KM9_oZrv.js → dagre-pjdcQX-8.js} +1 -1
  60. package/dist/client/assets/{diagram-2AECGRRQ-BumhjLsb.js → diagram-2AECGRRQ-D_TKwNab.js} +1 -1
  61. package/dist/client/assets/{diagram-5GNKFQAL-Cb33KbTb.js → diagram-5GNKFQAL-DqgxdJ2S.js} +1 -1
  62. package/dist/client/assets/{diagram-KO2AKTUF-BlOjzhnN.js → diagram-KO2AKTUF-DC36WkSM.js} +1 -1
  63. package/dist/client/assets/{diagram-LMA3HP47-CHwtw61J.js → diagram-LMA3HP47-CfgPkQ74.js} +1 -1
  64. package/dist/client/assets/{diagram-OG6HWLK6-CGVINNIx.js → diagram-OG6HWLK6-BecH_4Uu.js} +1 -1
  65. package/dist/client/assets/{erDiagram-TEJ5UH35-U0syd0R8.js → erDiagram-TEJ5UH35-gVKjPSTy.js} +1 -1
  66. package/dist/client/assets/eventmodeling-FCH6USID-CpYTyxuZ.js +1 -0
  67. package/dist/client/assets/{flowDiagram-I6XJVG4X-DxBd0T98.js → flowDiagram-I6XJVG4X-BI4w94Db.js} +1 -1
  68. package/dist/client/assets/{ganttDiagram-6RSMTGT7-CtZJykQf.js → ganttDiagram-6RSMTGT7-CEwscd0z.js} +1 -1
  69. package/dist/client/assets/gitGraph-WXDBUCRP-Z83aCG2F.js +1 -0
  70. package/dist/client/assets/{gitGraphDiagram-PVQCEYII-r4iyFj98.js → gitGraphDiagram-PVQCEYII-BzYnzfZU.js} +1 -1
  71. package/dist/client/assets/{index-CdbmiAlF.js → index-C2JPbj12.js} +2 -2
  72. package/dist/client/assets/info-J43DQDTF-BedCRFEx.js +1 -0
  73. package/dist/client/assets/{infoDiagram-5YYISTIA-DkgQtYrf.js → infoDiagram-5YYISTIA-CPYAdvo1.js} +1 -1
  74. package/dist/client/assets/{IconLoader-D1xRRX9B.js → input-AZAw9vJs.js} +3 -3
  75. package/dist/client/assets/{ishikawaDiagram-YF4QCWOH-3CITKdXW.js → ishikawaDiagram-YF4QCWOH-Ctpfd7Fa.js} +1 -1
  76. package/dist/client/assets/{journeyDiagram-JHISSGLW-DRxIgjvH.js → journeyDiagram-JHISSGLW-CmpICCRR.js} +1 -1
  77. package/dist/client/assets/{kanban-definition-UN3LZRKU-FyHviky4.js → kanban-definition-UN3LZRKU-BvrG2MaR.js} +1 -1
  78. package/dist/client/assets/{line-CtX9AQrF.js → line-BuEChOFl.js} +1 -1
  79. package/dist/client/assets/{linear-DAl7bclq.js → linear-CnfNbUsu.js} +1 -1
  80. package/dist/client/assets/{mermaid-parser.core-CCjwz4zI.js → mermaid-parser.core-Cc66WWhM.js} +2 -2
  81. package/dist/client/assets/{mermaid.core-BrPCXQ_-.js → mermaid.core-01K66m6d.js} +3 -3
  82. package/dist/client/assets/{mindmap-definition-RKZ34NQL-KN_4OT4O.js → mindmap-definition-RKZ34NQL-BuyfpCKJ.js} +1 -1
  83. package/dist/client/assets/{ordinal-BqEhkPyh.js → ordinal-v4prQcuq.js} +1 -1
  84. package/dist/client/assets/packet-YPE3B663-BYqLN6U1.js +1 -0
  85. package/dist/client/assets/pie-LRSECV5Y-Do8rN5H2.js +1 -0
  86. package/dist/client/assets/{pieDiagram-4H26LBE5-COG0VOTI.js → pieDiagram-4H26LBE5-CgGRmchd.js} +1 -1
  87. package/dist/client/assets/{quadrantDiagram-W4KKPZXB-B_EXaE5F.js → quadrantDiagram-W4KKPZXB-BbiyoZff.js} +1 -1
  88. package/dist/client/assets/radar-GUYGQ44K-CsSj531M.js +1 -0
  89. package/dist/client/assets/{realtimeContextBase-7GM4HUov.js → realtimeContextBase-DZt86QHH.js} +1 -1
  90. package/dist/client/assets/{requirementDiagram-4Y6WPE33-B2q4x9QC.js → requirementDiagram-4Y6WPE33-BlYwYv8f.js} +1 -1
  91. package/dist/client/assets/{sankeyDiagram-5OEKKPKP-DDm6ZbE7.js → sankeyDiagram-5OEKKPKP-Bp_j3oV6.js} +1 -1
  92. package/dist/client/assets/{sequenceDiagram-3UESZ5HK-rhRn0IfH.js → sequenceDiagram-3UESZ5HK-DqC_KQou.js} +1 -1
  93. package/dist/client/assets/{stateDiagram-AJRCARHV-BvW4JPLu.js → stateDiagram-AJRCARHV-BrG7IGOM.js} +1 -1
  94. package/dist/client/assets/stateDiagram-v2-BHNVJYJU-rcRVsbsd.js +1 -0
  95. package/dist/client/assets/{tabActivation-CyuKtcl3.js → tabActivation-8_2uxVyZ.js} +1 -1
  96. package/dist/client/assets/{timeline-definition-PNZ67QCA-L9zYQso9.js → timeline-definition-PNZ67QCA-BDe3IkOy.js} +1 -1
  97. package/dist/client/assets/treeView-BLDUP644-BKfPh_cj.js +1 -0
  98. package/dist/client/assets/treemap-LRROVOQU-LOA1qPfa.js +1 -0
  99. package/dist/client/assets/{vennDiagram-CIIHVFJN-DgR_mHYj.js → vennDiagram-CIIHVFJN-DECIVR7V.js} +1 -1
  100. package/dist/client/assets/wardley-L42UT6IY-Cskczdw0.js +1 -0
  101. package/dist/client/assets/{wardleyDiagram-YWT4CUSO-CGyXvCpC.js → wardleyDiagram-YWT4CUSO-Bx3AJaN9.js} +1 -1
  102. package/dist/client/assets/{xychartDiagram-2RQKCTM6-r7Cs3EPg.js → xychartDiagram-2RQKCTM6-152u9kKH.js} +1 -1
  103. package/dist/client/index.html +1 -1
  104. package/dist/server/db.js +2 -0
  105. package/dist/server/db.js.map +1 -1
  106. package/dist/server/index.js +2 -0
  107. package/dist/server/index.js.map +1 -1
  108. package/dist/server/lib/executionRuns.js +1 -0
  109. package/dist/server/lib/executionRuns.js.map +1 -1
  110. package/dist/server/lib/integrations/githubActionsDismissal.js +18 -0
  111. package/dist/server/lib/integrations/githubActionsDismissal.js.map +1 -0
  112. package/dist/server/lib/integrations/githubActionsDismissalRoutes.js +28 -0
  113. package/dist/server/lib/integrations/githubActionsDismissalRoutes.js.map +1 -0
  114. package/dist/server/lib/integrations/githubActionsSessions.js +3 -0
  115. package/dist/server/lib/integrations/githubActionsSessions.js.map +1 -1
  116. package/package.json +1 -1
  117. package/dist/client/assets/DemonstrationDialog-7SZhZFOL.js +0 -1
  118. package/dist/client/assets/GitHubActionsDialog-DkqbUlig.js +0 -1
  119. package/dist/client/assets/IconGitHubActions-Cv492Ebx.js +0 -1
  120. package/dist/client/assets/IconStop-BLAfFOPH.js +0 -1
  121. package/dist/client/assets/VerificationDialog-1yHfx-wA.js +0 -4
  122. package/dist/client/assets/architecture-7EHR7CIX-BOD0E418.js +0 -1
  123. package/dist/client/assets/bootstrap-CKpfFcGm.js +0 -97
  124. package/dist/client/assets/bootstrap-D_E9KrRf.css +0 -2
  125. package/dist/client/assets/channel-Fotke1Kp.js +0 -1
  126. package/dist/client/assets/chunk-QZHKN3VN-CqiyA9aj.js +0 -1
  127. package/dist/client/assets/chunk-WU5MYG2G-D_ijPbiv.js +0 -1
  128. package/dist/client/assets/classDiagram-4FO5ZUOK-BrrVv3qj.js +0 -1
  129. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CN553QTp.js +0 -1
  130. package/dist/client/assets/eventmodeling-FCH6USID-FL7NzS0V.js +0 -1
  131. package/dist/client/assets/gitGraph-WXDBUCRP-EVJUD9sy.js +0 -1
  132. package/dist/client/assets/info-J43DQDTF-ZaEaI3nN.js +0 -1
  133. package/dist/client/assets/packet-YPE3B663-B48GA82s.js +0 -1
  134. package/dist/client/assets/pie-LRSECV5Y-yjxDIzfa.js +0 -1
  135. package/dist/client/assets/radar-GUYGQ44K-DHhlAE_N.js +0 -1
  136. package/dist/client/assets/stateDiagram-v2-BHNVJYJU-Dv4glvR0.js +0 -1
  137. package/dist/client/assets/treeView-BLDUP644-tkSf2sjH.js +0 -1
  138. package/dist/client/assets/treemap-LRROVOQU-d_NYOcwt.js +0 -1
  139. package/dist/client/assets/wardley-L42UT6IY-DWTbPrAt.js +0 -1
  140. /package/dist/client/assets/{array-BwJyW1Dp.js → array-DqLCdDFv.js} +0 -0
  141. /package/dist/client/assets/{chunk-NNHCCRGN-aoK3dxcc.js → chunk-NNHCCRGN-R8lmejY6.js} +0 -0
  142. /package/dist/client/assets/{cytoscape.esm-GKcJVh1-.js → cytoscape.esm-DwdZnGOm.js} +0 -0
  143. /package/dist/client/assets/{defaultLocale-kiwRz9Au.js → defaultLocale-CrJzLgRD.js} +0 -0
  144. /package/dist/client/assets/{dist-DFYFtMst.js → dist-DsfB3EIl.js} +0 -0
  145. /package/dist/client/assets/{graphlib-CGnxpMsl.js → graphlib-CAISHZh4.js} +0 -0
  146. /package/dist/client/assets/{init-CKZirZ49.js → init-C0r9Gk5G.js} +0 -0
  147. /package/dist/client/assets/{katex-CzE2uFQ0.js → katex-BlgnTlTx.js} +0 -0
  148. /package/dist/client/assets/{path-B0d9ncVi.js → path-DIKpVbHL.js} +0 -0
  149. /package/dist/client/assets/{rough.esm-JX0wREDd.js → rough.esm-BWqoIFNR.js} +0 -0
  150. /package/dist/client/assets/{src-8KvjbQeR.js → src-HpmPWpNc.js} +0 -0
@@ -1 +1 @@
1
- import{L as e}from"./IconX-TosfRQdR.js";import{t}from"./LifecycleTimelineDialog-BzLUSgQH.js";var n=e(),r=({projectId:e,onClose:r,onDetailsClose:i,onNavigateToLifecycleSource:a,initialRunId:o,initialEventId:s,hasActivityParent:c,onRunSelectionChange:l,onRelatedReferenceSelection:u,onUnavailable:d})=>e?(0,n.jsx)(t,{projectId:e,scope:{type:`project`},initialRunId:o,initialEventId:s,hasActivityParent:c,onRunSelectionChange:l,onRelatedReferenceSelection:u,onUnavailable:d,onClose:r,onDetailsClose:i,onNavigateToLifecycleSource:a}):null;export{r as ActivityView};
1
+ import{L as e}from"./IconX-sSpA2ejo.js";import{t}from"./LifecycleTimelineDialog-C0H6bvI5.js";var n=e(),r=({projectId:e,onClose:r,onDetailsClose:i,onNavigateToLifecycleSource:a,initialRunId:o,initialEventId:s,hasActivityParent:c,onRunSelectionChange:l,onRelatedReferenceSelection:u,onUnavailable:d})=>e?(0,n.jsx)(t,{projectId:e,scope:{type:`project`},initialRunId:o,initialEventId:s,hasActivityParent:c,onRunSelectionChange:l,onRelatedReferenceSelection:u,onUnavailable:d,onClose:r,onDetailsClose:i,onNavigateToLifecycleSource:a}):null;export{r as ActivityView};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-BNv3lrIs.js";import{G as t,H as n,L as r,U as i,X as a,nt as o,p as s,q as c}from"./IconX-TosfRQdR.js";import{d as l,n as u}from"./realtimeContextBase-7GM4HUov.js";import{t as d}from"./badge-D4QSKcZA.js";var f=e(o(),1),p=(e,t={})=>{let n=new URL(i(`/projects/${encodeURIComponent(e)}/approval-requests`));return t.statuses?.length&&n.searchParams.set(`status`,t.statuses.join(`,`)),t.actionKind&&n.searchParams.set(`action_kind`,t.actionKind),t.ticketId&&n.searchParams.set(`ticket`,t.ticketId),t.bundleId&&n.searchParams.set(`bundle`,t.bundleId),t.executionRunId&&n.searchParams.set(`execution_run`,t.executionRunId),t.limit&&n.searchParams.set(`limit`,String(t.limit)),t.cursor&&n.searchParams.set(`cursor`,t.cursor),a(n.toString(),{signal:t.signal,fallbackErrorMessage:`Unable to load approval requests right now.`})},m=(e,t,n)=>a(i(`/projects/${encodeURIComponent(e)}/approval-requests/${encodeURIComponent(t)}`),{signal:n,fallbackErrorMessage:`Unable to load this approval request right now.`}),h=(e,t,n,r)=>a(i(`/projects/${encodeURIComponent(e)}/approval-requests/${encodeURIComponent(t.id)}/${n}`),{method:`POST`,body:{expected_action_fingerprint:t.action_fingerprint,...r?.trim()?{reason:r.trim()}:{}},fallbackErrorMessage:`Unable to update this approval request right now.`}),g=2e3,_=new TextEncoder,v=e=>{if(_.encode(e).byteLength<=2e3)return e;let t=``,n=0;for(let r of e){let e=_.encode(r).byteLength;if(n+e>2e3)break;t+=r,n+=e}return t},y=r(),b=({evidence:e,showLifecycle:t=!0,showDegraded:n=!0,className:r})=>{let{t:i}=l(`common`,{keyPrefix:`executionEnvironmentBadge`}),a=n&&e.blockingDegradation,o=t&&e.lifecycleState!==`unknown`,s=a?`warning`:e.lifecycleState===`failed`||e.lifecycleState===`unavailable`?`destructive`:e.lifecycleState===`ready`||e.lifecycleState===`running`?`success`:`outline`,c=[i(`provider.${e.provider}`),i(`isolation.${e.isolation}`),...o?[i(`lifecycle.${e.lifecycleState}`)]:[],...a?[i(`degraded`)]:[]];return(0,y.jsx)(d,{variant:s,className:`max-w-full flex-wrap justify-start whitespace-normal text-left ${r??``}`,"aria-label":i(`ariaLabel`,{evidence:c.join(`, `)}),children:c.join(` · `)})},x=({label:e,value:t,mono:n=!1})=>t?(0,y.jsxs)(`div`,{className:`grid min-w-0 gap-1 border-b border-border/50 py-2 last:border-0 sm:grid-cols-[8rem_minmax(0,1fr)] sm:gap-3`,children:[(0,y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,y.jsx)(`dd`,{className:n?`min-w-0 break-all font-mono text-xs text-foreground`:`min-w-0 break-words text-sm text-foreground`,children:t})]}):null,S=({projectId:e,executionRunId:r,requestId:i,onChanged:a,presentation:o=`full`})=>{let{t:d,i18n:g}=l(`common`,{keyPrefix:`approvalRequest`}),_=u(),[S,C]=(0,f.useState)(null),[w,T]=(0,f.useState)(!0),[E,D]=(0,f.useState)(null),[O,k]=(0,f.useState)(``),[A,j]=(0,f.useState)(null),[M,N]=(0,f.useState)(!1),[P,F]=(0,f.useState)(0),I=`${e}:${i?`request:${i}`:`run:${r}`}`,L=(0,f.useRef)(I);L.current=I;let R=S?.approval_request.project_id===e&&(i?S.approval_request.id===i:S.approval_request.execution_run_id===r)?S:null,z=R?`${I}:${R.approval_request.id}:${R.approval_request.action_fingerprint}`:null,B=(0,f.useRef)(z);B.current=z;let V=(0,f.useRef)(!0);(0,f.useEffect)(()=>(V.current=!0,()=>{V.current=!1}),[]),(0,f.useEffect)(()=>{let t=new AbortController,a=`${e}:${i?`request:${i}`:`run:${r}`}`;return C(null),T(!0),D(null),k(``),j(null),N(!1),(i?m(e,i,t.signal):p(e,{executionRunId:r,limit:1,signal:t.signal}).then(n=>{let r=n?.approval_requests?.[0];return r?m(e,r.id,t.signal):null})).then(t=>{t&&L.current===a&&t.approval_request.project_id===e&&(i?t.approval_request.id===i:t.approval_request.execution_run_id===r)&&C(t)}).catch(e=>{!c(e)&&L.current===a&&j(e instanceof n?e.message:d(`errors.load`))}).finally(()=>{!t.signal.aborted&&L.current===a&&T(!1)}),()=>t.abort()},[r,e,i,P,d]),(0,f.useEffect)(()=>{let t=t=>{if(!t||typeof t!=`object`)return;let n=t;n.project_id===e&&(i?n.id===i:n.execution_run_id===r)&&F(e=>e+1)},n=()=>F(e=>e+1);return _.on(`approval-request:created`,t),_.on(`approval-request:updated`,t),_.on(`connect`,n),()=>{_.off(`approval-request:created`,t),_.off(`approval-request:updated`,t),_.off(`connect`,n)}},[r,e,i,_]);let H=async r=>{let i=R?.approval_request;if(!i||i.status!==`pending`)return;let o=`${I}:${i.id}:${i.action_fingerprint}`;D(r),j(null),N(!1);try{let t=await h(e,i,r,O);if(!V.current||B.current!==o)return;a?.(t.approval_request),k(``),F(e=>e+1)}catch(e){if(!V.current||B.current!==o)return;let r=t(e,`approval_request`);r&&(C(e=>e&&{...e,approval_request:r}),N(!0)),j(e instanceof n?e.message:d(`errors.decision`))}finally{V.current&&B.current===o&&D(null)}};if(w&&!R)return(0,y.jsx)(`section`,{"aria-label":d(`title`),className:`mt-5 rounded-2xl border border-border/70 bg-background/30 p-4 text-sm text-muted-foreground`,children:d(`loading`)});if(!R&&!A)return null;if(!R)return(0,y.jsxs)(`section`,{"aria-label":d(`title`),className:`mt-5 rounded-2xl border border-red-400/30 bg-red-500/5 p-4`,children:[(0,y.jsx)(`p`,{role:`alert`,className:`text-sm text-red-200`,children:A}),(0,y.jsx)(s,{type:`button`,variant:`outline`,size:`sm`,className:`mt-3`,onClick:()=>F(e=>e+1),children:d(`refresh`)})]});let U=R.approval_request,W=U.action,G=U.status===`pending`,K=o===`compact`,q=W.kind===`git_push`?W.target.ref:`${W.target.scope_kind} ${W.target.scope_id}`,J=W.kind===`custom_check`?W.target.effective_command??W.target.definition_snapshot?.command:null,Y=W.kind===`git_push`?W.target.degradations?.join(`, `):null,X=U.authority.effective_capabilities.join(`, `),ee=W.logical_secret_references.join(`, `),te=W.kind===`custom_check`?W.target.effective_cwd??W.workspace_git.workspace_path:W.workspace_git.workspace_path,Z=W.kind===`custom_check`?W.target.launcher:U.authority.execution_boundary.launcher,Q=W.kind===`custom_check`?W.target.batch_environment:U.authority.environment,$=W.kind===`custom_check`?W.target.attempt_placement:U.authority.execution_boundary.attempt_placement,ne=Q?`${Q.id} (r${Q.revision})`:U.authority.execution_boundary.placement===`host`?d(`values.noHostEnvironment`):d(`none`),re=U.authority.execution_boundary.placement===`host`?d(`values.hostPlacement`):$?.scope.kind===`exact-sandbox`?d(`values.sandboxPlacement`,{id:$.scope.externalId}):d(`values.sandboxPlacementUnavailable`),ie={provider:U.authority.execution_boundary.placement,providerVersion:null,isolation:U.authority.execution_boundary.placement===`docker_sandbox`?`microvm`:`host_process`,lifecycleState:`unknown`,degradationReasons:W.kind===`git_push`?W.target.degradations??[]:[],blockingDegradation:!!(W.kind===`git_push`&&W.target.degradations?.length),environmentRevision:Q?.revision??null,targetKey:null,placementAvailable:U.authority.execution_boundary.placement===`host`||!!$};return(0,y.jsxs)(`section`,{"aria-labelledby":`approval-${U.id}`,className:`mt-5 rounded-2xl border border-amber-300/30 bg-amber-500/5 p-4 sm:p-5`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,y.jsxs)(`div`,{className:`min-w-0`,children:[(0,y.jsx)(`h3`,{id:`approval-${U.id}`,className:`text-sm font-semibold text-foreground`,children:d(`title`)}),(0,y.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:d(`impact.${W.kind}`)})]}),(0,y.jsx)(`span`,{className:`rounded-full border border-amber-300/30 bg-amber-400/10 px-2.5 py-1 text-xs font-medium text-amber-100`,children:d(`status.${U.status}`)})]}),(0,y.jsxs)(`dl`,{className:`mt-4`,children:[!K&&(0,y.jsx)(`div`,{className:`pb-2`,children:(0,y.jsx)(b,{evidence:ie,showLifecycle:!1})}),(0,y.jsx)(x,{label:d(`fields.action`),value:d(`action.${W.kind}`)}),(0,y.jsx)(x,{label:d(`fields.remote`),value:W.kind===`git_push`?W.target.remote_name:null}),(0,y.jsx)(x,{label:d(`fields.target`),value:q}),!K&&(0,y.jsx)(x,{label:d(`fields.command`),value:J,mono:!0}),!K&&(0,y.jsx)(x,{label:d(`fields.cwd`),value:te,mono:!0}),(0,y.jsx)(x,{label:d(`fields.branch`),value:W.workspace_git.branch}),(0,y.jsx)(x,{label:d(W.kind===`git_push`?`fields.localHead`:`fields.head`),value:W.workspace_git.head_sha,mono:!0}),(0,y.jsx)(x,{label:d(W.kind===`git_push`?`fields.expectedRemoteHead`:`fields.remoteHead`),value:W.workspace_git.remote_head_sha,mono:!0}),!K&&(0,y.jsx)(x,{label:d(`fields.profile`),value:`${U.authority.selected_profile.revision_id} (r${U.authority.selected_profile.revision})`}),!K&&(0,y.jsx)(x,{label:d(`fields.launcher`),value:Z?d(`values.launcher.${Z}`):null}),!K&&(0,y.jsx)(x,{label:d(`fields.environment`),value:ne,mono:!!Q}),!K&&(0,y.jsx)(x,{label:d(`fields.placement`),value:re,mono:!!$}),!K&&(0,y.jsx)(x,{label:d(`fields.authority`),value:X||d(`none`)}),!K&&(0,y.jsx)(x,{label:d(`fields.degradations`),value:Y}),!K&&(0,y.jsx)(x,{label:d(`fields.secrets`),value:ee||d(`none`)}),(0,y.jsx)(x,{label:d(`fields.expires`),value:new Intl.DateTimeFormat(g.language,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(U.expires_at))})]}),M&&(0,y.jsx)(`p`,{role:`alert`,className:`mt-3 rounded-xl border border-amber-300/30 bg-amber-400/10 p-3 text-sm text-amber-100`,children:d(`conflict`)}),A&&!M&&(0,y.jsx)(`p`,{role:`alert`,className:`mt-3 text-sm text-red-200`,children:A}),G&&(0,y.jsxs)(`div`,{className:`mt-4`,children:[(0,y.jsx)(`label`,{className:`block text-xs text-muted-foreground`,htmlFor:`approval-reason-${U.id}`,children:d(`reason`)}),(0,y.jsx)(`textarea`,{id:`approval-reason-${U.id}`,value:O,maxLength:2e3,rows:2,onChange:e=>k(v(e.target.value)),placeholder:d(`reasonPlaceholder`),className:`mt-1 w-full resize-y rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground focus:ring-2 focus:ring-ring/50`}),(0,y.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[(0,y.jsx)(s,{type:`button`,size:`sm`,disabled:E!==null,onClick:()=>void H(`approve`),children:d(E===`approve`?`actions.approving`:`actions.approve`)}),(0,y.jsx)(s,{type:`button`,variant:`outline`,size:`sm`,disabled:E!==null,onClick:()=>void H(`deny`),children:d(E===`deny`?`actions.denying`:`actions.deny`)}),(0,y.jsx)(s,{type:`button`,variant:`ghost`,size:`sm`,disabled:E!==null,onClick:()=>void H(`cancel`),children:d(E===`cancel`?`actions.cancelling`:`actions.cancel`)})]})]}),!G&&(0,y.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:d(`remediation.${U.status}`)}),!K&&(0,y.jsxs)(`div`,{className:`mt-4 flex items-center justify-between gap-3 border-t border-border/50 pt-3`,children:[(0,y.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:d(`history`,{count:R.events.length})}),(0,y.jsx)(s,{type:`button`,variant:`ghost`,size:`sm`,disabled:w,onClick:()=>F(e=>e+1),children:d(`refresh`)})]}),!K&&R.events.length>0&&(0,y.jsx)(`ol`,{className:`mt-2 space-y-1 text-xs text-muted-foreground`,children:R.events.map(e=>(0,y.jsxs)(`li`,{children:[d(`status.${e.to_status}`),` · `,new Intl.DateTimeFormat(g.language,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e.created_at)),e.reason?` · ${e.reason}`:``]},e.id))})]})},C=e=>(0,y.jsx)(S,{...e},`${e.projectId}:${e.requestId?`request:${e.requestId}`:`run:${e.executionRunId}`}`);export{m as a,v as i,b as n,p as o,g as r,C as t};
1
+ import{a as e}from"./chunk-BNv3lrIs.js";import{G as t,H as n,L as r,U as i,X as a,nt as o,p as s,q as c}from"./IconX-sSpA2ejo.js";import{d as l,n as u}from"./realtimeContextBase-DZt86QHH.js";import{t as d}from"./badge-Bnvptskz.js";var f=e(o(),1),p=(e,t={})=>{let n=new URL(i(`/projects/${encodeURIComponent(e)}/approval-requests`));return t.statuses?.length&&n.searchParams.set(`status`,t.statuses.join(`,`)),t.actionKind&&n.searchParams.set(`action_kind`,t.actionKind),t.ticketId&&n.searchParams.set(`ticket`,t.ticketId),t.bundleId&&n.searchParams.set(`bundle`,t.bundleId),t.executionRunId&&n.searchParams.set(`execution_run`,t.executionRunId),t.limit&&n.searchParams.set(`limit`,String(t.limit)),t.cursor&&n.searchParams.set(`cursor`,t.cursor),a(n.toString(),{signal:t.signal,fallbackErrorMessage:`Unable to load approval requests right now.`})},m=(e,t,n)=>a(i(`/projects/${encodeURIComponent(e)}/approval-requests/${encodeURIComponent(t)}`),{signal:n,fallbackErrorMessage:`Unable to load this approval request right now.`}),h=(e,t,n,r)=>a(i(`/projects/${encodeURIComponent(e)}/approval-requests/${encodeURIComponent(t.id)}/${n}`),{method:`POST`,body:{expected_action_fingerprint:t.action_fingerprint,...r?.trim()?{reason:r.trim()}:{}},fallbackErrorMessage:`Unable to update this approval request right now.`}),g=2e3,_=new TextEncoder,v=e=>{if(_.encode(e).byteLength<=2e3)return e;let t=``,n=0;for(let r of e){let e=_.encode(r).byteLength;if(n+e>2e3)break;t+=r,n+=e}return t},y=r(),b=({evidence:e,showLifecycle:t=!0,showDegraded:n=!0,className:r})=>{let{t:i}=l(`common`,{keyPrefix:`executionEnvironmentBadge`}),a=n&&e.blockingDegradation,o=t&&e.lifecycleState!==`unknown`,s=a?`warning`:e.lifecycleState===`failed`||e.lifecycleState===`unavailable`?`destructive`:e.lifecycleState===`ready`||e.lifecycleState===`running`?`success`:`outline`,c=[i(`provider.${e.provider}`),i(`isolation.${e.isolation}`),...o?[i(`lifecycle.${e.lifecycleState}`)]:[],...a?[i(`degraded`)]:[]];return(0,y.jsx)(d,{variant:s,className:`max-w-full flex-wrap justify-start whitespace-normal text-left ${r??``}`,"aria-label":i(`ariaLabel`,{evidence:c.join(`, `)}),children:c.join(` · `)})},x=({label:e,value:t,mono:n=!1})=>t?(0,y.jsxs)(`div`,{className:`grid min-w-0 gap-1 border-b border-border/50 py-2 last:border-0 sm:grid-cols-[8rem_minmax(0,1fr)] sm:gap-3`,children:[(0,y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,y.jsx)(`dd`,{className:n?`min-w-0 break-all font-mono text-xs text-foreground`:`min-w-0 break-words text-sm text-foreground`,children:t})]}):null,S=({projectId:e,executionRunId:r,requestId:i,onChanged:a,presentation:o=`full`})=>{let{t:d,i18n:g}=l(`common`,{keyPrefix:`approvalRequest`}),_=u(),[S,C]=(0,f.useState)(null),[w,T]=(0,f.useState)(!0),[E,D]=(0,f.useState)(null),[O,k]=(0,f.useState)(``),[A,j]=(0,f.useState)(null),[M,N]=(0,f.useState)(!1),[P,F]=(0,f.useState)(0),I=`${e}:${i?`request:${i}`:`run:${r}`}`,L=(0,f.useRef)(I);L.current=I;let R=S?.approval_request.project_id===e&&(i?S.approval_request.id===i:S.approval_request.execution_run_id===r)?S:null,z=R?`${I}:${R.approval_request.id}:${R.approval_request.action_fingerprint}`:null,B=(0,f.useRef)(z);B.current=z;let V=(0,f.useRef)(!0);(0,f.useEffect)(()=>(V.current=!0,()=>{V.current=!1}),[]),(0,f.useEffect)(()=>{let t=new AbortController,a=`${e}:${i?`request:${i}`:`run:${r}`}`;return C(null),T(!0),D(null),k(``),j(null),N(!1),(i?m(e,i,t.signal):p(e,{executionRunId:r,limit:1,signal:t.signal}).then(n=>{let r=n?.approval_requests?.[0];return r?m(e,r.id,t.signal):null})).then(t=>{t&&L.current===a&&t.approval_request.project_id===e&&(i?t.approval_request.id===i:t.approval_request.execution_run_id===r)&&C(t)}).catch(e=>{!c(e)&&L.current===a&&j(e instanceof n?e.message:d(`errors.load`))}).finally(()=>{!t.signal.aborted&&L.current===a&&T(!1)}),()=>t.abort()},[r,e,i,P,d]),(0,f.useEffect)(()=>{let t=t=>{if(!t||typeof t!=`object`)return;let n=t;n.project_id===e&&(i?n.id===i:n.execution_run_id===r)&&F(e=>e+1)},n=()=>F(e=>e+1);return _.on(`approval-request:created`,t),_.on(`approval-request:updated`,t),_.on(`connect`,n),()=>{_.off(`approval-request:created`,t),_.off(`approval-request:updated`,t),_.off(`connect`,n)}},[r,e,i,_]);let H=async r=>{let i=R?.approval_request;if(!i||i.status!==`pending`)return;let o=`${I}:${i.id}:${i.action_fingerprint}`;D(r),j(null),N(!1);try{let t=await h(e,i,r,O);if(!V.current||B.current!==o)return;a?.(t.approval_request),k(``),F(e=>e+1)}catch(e){if(!V.current||B.current!==o)return;let r=t(e,`approval_request`);r&&(C(e=>e&&{...e,approval_request:r}),N(!0)),j(e instanceof n?e.message:d(`errors.decision`))}finally{V.current&&B.current===o&&D(null)}};if(w&&!R)return(0,y.jsx)(`section`,{"aria-label":d(`title`),className:`mt-5 rounded-2xl border border-border/70 bg-background/30 p-4 text-sm text-muted-foreground`,children:d(`loading`)});if(!R&&!A)return null;if(!R)return(0,y.jsxs)(`section`,{"aria-label":d(`title`),className:`mt-5 rounded-2xl border border-red-400/30 bg-red-500/5 p-4`,children:[(0,y.jsx)(`p`,{role:`alert`,className:`text-sm text-red-200`,children:A}),(0,y.jsx)(s,{type:`button`,variant:`outline`,size:`sm`,className:`mt-3`,onClick:()=>F(e=>e+1),children:d(`refresh`)})]});let U=R.approval_request,W=U.action,G=U.status===`pending`,K=o===`compact`,q=W.kind===`git_push`?W.target.ref:`${W.target.scope_kind} ${W.target.scope_id}`,J=W.kind===`custom_check`?W.target.effective_command??W.target.definition_snapshot?.command:null,Y=W.kind===`git_push`?W.target.degradations?.join(`, `):null,X=U.authority.effective_capabilities.join(`, `),ee=W.logical_secret_references.join(`, `),te=W.kind===`custom_check`?W.target.effective_cwd??W.workspace_git.workspace_path:W.workspace_git.workspace_path,Z=W.kind===`custom_check`?W.target.launcher:U.authority.execution_boundary.launcher,Q=W.kind===`custom_check`?W.target.batch_environment:U.authority.environment,$=W.kind===`custom_check`?W.target.attempt_placement:U.authority.execution_boundary.attempt_placement,ne=Q?`${Q.id} (r${Q.revision})`:U.authority.execution_boundary.placement===`host`?d(`values.noHostEnvironment`):d(`none`),re=U.authority.execution_boundary.placement===`host`?d(`values.hostPlacement`):$?.scope.kind===`exact-sandbox`?d(`values.sandboxPlacement`,{id:$.scope.externalId}):d(`values.sandboxPlacementUnavailable`),ie={provider:U.authority.execution_boundary.placement,providerVersion:null,isolation:U.authority.execution_boundary.placement===`docker_sandbox`?`microvm`:`host_process`,lifecycleState:`unknown`,degradationReasons:W.kind===`git_push`?W.target.degradations??[]:[],blockingDegradation:!!(W.kind===`git_push`&&W.target.degradations?.length),environmentRevision:Q?.revision??null,targetKey:null,placementAvailable:U.authority.execution_boundary.placement===`host`||!!$};return(0,y.jsxs)(`section`,{"aria-labelledby":`approval-${U.id}`,className:`mt-5 rounded-2xl border border-amber-300/30 bg-amber-500/5 p-4 sm:p-5`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,y.jsxs)(`div`,{className:`min-w-0`,children:[(0,y.jsx)(`h3`,{id:`approval-${U.id}`,className:`text-sm font-semibold text-foreground`,children:d(`title`)}),(0,y.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:d(`impact.${W.kind}`)})]}),(0,y.jsx)(`span`,{className:`rounded-full border border-amber-300/30 bg-amber-400/10 px-2.5 py-1 text-xs font-medium text-amber-100`,children:d(`status.${U.status}`)})]}),(0,y.jsxs)(`dl`,{className:`mt-4`,children:[!K&&(0,y.jsx)(`div`,{className:`pb-2`,children:(0,y.jsx)(b,{evidence:ie,showLifecycle:!1})}),(0,y.jsx)(x,{label:d(`fields.action`),value:d(`action.${W.kind}`)}),(0,y.jsx)(x,{label:d(`fields.remote`),value:W.kind===`git_push`?W.target.remote_name:null}),(0,y.jsx)(x,{label:d(`fields.target`),value:q}),!K&&(0,y.jsx)(x,{label:d(`fields.command`),value:J,mono:!0}),!K&&(0,y.jsx)(x,{label:d(`fields.cwd`),value:te,mono:!0}),(0,y.jsx)(x,{label:d(`fields.branch`),value:W.workspace_git.branch}),(0,y.jsx)(x,{label:d(W.kind===`git_push`?`fields.localHead`:`fields.head`),value:W.workspace_git.head_sha,mono:!0}),(0,y.jsx)(x,{label:d(W.kind===`git_push`?`fields.expectedRemoteHead`:`fields.remoteHead`),value:W.workspace_git.remote_head_sha,mono:!0}),!K&&(0,y.jsx)(x,{label:d(`fields.profile`),value:`${U.authority.selected_profile.revision_id} (r${U.authority.selected_profile.revision})`}),!K&&(0,y.jsx)(x,{label:d(`fields.launcher`),value:Z?d(`values.launcher.${Z}`):null}),!K&&(0,y.jsx)(x,{label:d(`fields.environment`),value:ne,mono:!!Q}),!K&&(0,y.jsx)(x,{label:d(`fields.placement`),value:re,mono:!!$}),!K&&(0,y.jsx)(x,{label:d(`fields.authority`),value:X||d(`none`)}),!K&&(0,y.jsx)(x,{label:d(`fields.degradations`),value:Y}),!K&&(0,y.jsx)(x,{label:d(`fields.secrets`),value:ee||d(`none`)}),(0,y.jsx)(x,{label:d(`fields.expires`),value:new Intl.DateTimeFormat(g.language,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(U.expires_at))})]}),M&&(0,y.jsx)(`p`,{role:`alert`,className:`mt-3 rounded-xl border border-amber-300/30 bg-amber-400/10 p-3 text-sm text-amber-100`,children:d(`conflict`)}),A&&!M&&(0,y.jsx)(`p`,{role:`alert`,className:`mt-3 text-sm text-red-200`,children:A}),G&&(0,y.jsxs)(`div`,{className:`mt-4`,children:[(0,y.jsx)(`label`,{className:`block text-xs text-muted-foreground`,htmlFor:`approval-reason-${U.id}`,children:d(`reason`)}),(0,y.jsx)(`textarea`,{id:`approval-reason-${U.id}`,value:O,maxLength:2e3,rows:2,onChange:e=>k(v(e.target.value)),placeholder:d(`reasonPlaceholder`),className:`mt-1 w-full resize-y rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground focus:ring-2 focus:ring-ring/50`}),(0,y.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[(0,y.jsx)(s,{type:`button`,size:`sm`,disabled:E!==null,onClick:()=>void H(`approve`),children:d(E===`approve`?`actions.approving`:`actions.approve`)}),(0,y.jsx)(s,{type:`button`,variant:`outline`,size:`sm`,disabled:E!==null,onClick:()=>void H(`deny`),children:d(E===`deny`?`actions.denying`:`actions.deny`)}),(0,y.jsx)(s,{type:`button`,variant:`ghost`,size:`sm`,disabled:E!==null,onClick:()=>void H(`cancel`),children:d(E===`cancel`?`actions.cancelling`:`actions.cancel`)})]})]}),!G&&(0,y.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:d(`remediation.${U.status}`)}),!K&&(0,y.jsxs)(`div`,{className:`mt-4 flex items-center justify-between gap-3 border-t border-border/50 pt-3`,children:[(0,y.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:d(`history`,{count:R.events.length})}),(0,y.jsx)(s,{type:`button`,variant:`ghost`,size:`sm`,disabled:w,onClick:()=>F(e=>e+1),children:d(`refresh`)})]}),!K&&R.events.length>0&&(0,y.jsx)(`ol`,{className:`mt-2 space-y-1 text-xs text-muted-foreground`,children:R.events.map(e=>(0,y.jsxs)(`li`,{children:[d(`status.${e.to_status}`),` · `,new Intl.DateTimeFormat(g.language,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e.created_at)),e.reason?` · ${e.reason}`:``]},e.id))})]})},C=e=>(0,y.jsx)(S,{...e},`${e.projectId}:${e.requestId?`request:${e.requestId}`:`run:${e.executionRunId}`}`);export{m as a,v as i,b as n,p as o,g as r,C as t};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BrPCXQ_-.js","assets/index-CdbmiAlF.js","assets/chunk-O5CBEL6O-BRXaTllh.js","assets/src-8KvjbQeR.js","assets/chunk-BNv3lrIs.js","assets/chunk-5ZQYHXKU-CAmg-Amo.js","assets/dist-DFYFtMst.js","assets/chunk-CSCIHK7Q-CgdjKrdr.js","assets/chunk-3OPIFGDE-CWNDFW47.js","assets/chunk-L5ZTLDWV-D7HoN5ML.js","assets/chunk-NZK2D7GU-4vnXS7O-.js","assets/rough.esm-JX0wREDd.js","assets/chunk-BSJP7CBP-cLht0MXH.js","assets/chunk-KSCS5N6A-DNsbWXPN.js","assets/line-CtX9AQrF.js","assets/path-B0d9ncVi.js","assets/array-BwJyW1Dp.js","assets/chunk-LZXEDZCA-BzMkcBOY.js","assets/chunk-WU5MYG2G-D_ijPbiv.js","assets/chunk-XPW4576I-wD8YVX6M.js"])))=>i.map(i=>d[i]);
2
- import{a as e,i as t,n,r,t as i}from"./chunk-BNv3lrIs.js";import{t as a}from"./index-CdbmiAlF.js";import{L as o,a as s,c,i as l,m as u,n as d,nt as f,p,r as m,t as h,u as g}from"./IconX-TosfRQdR.js";import{d as _}from"./realtimeContextBase-7GM4HUov.js";var v=g(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),y=g(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),b=g(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),x=g(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),S=g(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);function C(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var w=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,E={};function D(e,t){return((t||E).jsx?T:w).test(e)}var O=/[ \t\n\f\r]/g;function k(e){return typeof e==`object`?e.type===`text`?A(e.value):!1:A(e)}function A(e){return e.replace(O,``)===``}var j=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};j.prototype.normal={},j.prototype.property={},j.prototype.space=void 0;function M(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new j(n,r,t)}function N(e){return e.toLowerCase()}var P=class{constructor(e,t){this.attribute=t,this.property=e}};P.prototype.attribute=``,P.prototype.booleanish=!1,P.prototype.boolean=!1,P.prototype.commaOrSpaceSeparated=!1,P.prototype.commaSeparated=!1,P.prototype.defined=!1,P.prototype.mustUseProperty=!1,P.prototype.number=!1,P.prototype.overloadedBoolean=!1,P.prototype.property=``,P.prototype.spaceSeparated=!1,P.prototype.space=void 0;var F=r({boolean:()=>I,booleanish:()=>L,commaOrSpaceSeparated:()=>B,commaSeparated:()=>ne,number:()=>R,overloadedBoolean:()=>te,spaceSeparated:()=>z}),ee=0,I=re(),L=re(),te=re(),R=re(),z=re(),ne=re(),B=re();function re(){return 2**++ee}var ie=Object.keys(F),ae=class extends P{constructor(e,t,n,r){let i=-1;if(super(e,t),oe(this,`space`,r),typeof n==`number`)for(;++i<ie.length;){let e=ie[i];oe(this,ie[i],(n&F[e])===F[e])}}};ae.prototype.defined=!0;function oe(e,t,n){n&&(e[t]=n)}function se(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ae(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[N(r)]=r,n[N(a.attribute)]=r}return new j(t,n,e.space)}var ce=se({properties:{ariaActiveDescendant:null,ariaAtomic:L,ariaAutoComplete:null,ariaBusy:L,ariaChecked:L,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:z,ariaCurrent:null,ariaDescribedBy:z,ariaDetails:null,ariaDisabled:L,ariaDropEffect:z,ariaErrorMessage:null,ariaExpanded:L,ariaFlowTo:z,ariaGrabbed:L,ariaHasPopup:null,ariaHidden:L,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:z,ariaLevel:R,ariaLive:null,ariaModal:L,ariaMultiLine:L,ariaMultiSelectable:L,ariaOrientation:null,ariaOwns:z,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:L,ariaReadOnly:L,ariaRelevant:null,ariaRequired:L,ariaRoleDescription:z,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:L,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function le(e,t){return t in e?e[t]:t}function ue(e,t){return le(e,t.toLowerCase())}var de=se({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ne,acceptCharset:z,accessKey:z,action:null,allow:null,allowFullScreen:I,allowPaymentRequest:I,allowUserMedia:I,alt:null,as:null,async:I,autoCapitalize:null,autoComplete:z,autoFocus:I,autoPlay:I,blocking:z,capture:null,charSet:null,checked:I,cite:null,className:z,cols:R,colSpan:null,content:null,contentEditable:L,controls:I,controlsList:z,coords:R|ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:I,defer:I,dir:null,dirName:null,disabled:I,download:te,draggable:L,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:I,formTarget:null,headers:z,height:R,hidden:te,high:R,href:null,hrefLang:null,htmlFor:z,httpEquiv:z,id:null,imageSizes:null,imageSrcSet:null,inert:I,inputMode:null,integrity:null,is:null,isMap:I,itemId:null,itemProp:z,itemRef:z,itemScope:I,itemType:z,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:I,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:I,muted:I,name:null,nonce:null,noModule:I,noValidate:I,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:I,optimum:R,pattern:null,ping:z,placeholder:null,playsInline:I,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:I,referrerPolicy:null,rel:z,required:I,reversed:I,rows:R,rowSpan:R,sandbox:z,scope:null,scoped:I,seamless:I,selected:I,shadowRootClonable:I,shadowRootDelegatesFocus:I,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:L,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:I,useMap:null,value:L,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:z,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:I,declare:I,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:I,noHref:I,noShade:I,noWrap:I,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:L,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:I,disableRemotePlayback:I,prefix:null,property:null,results:R,security:null,unselectable:null},space:`html`,transform:ue}),fe=se({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:B,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:z,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:I,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ne,g2:ne,glyphName:ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:B,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:z,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:B,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:B,rev:B,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:B,requiredFeatures:B,requiredFonts:B,requiredFormats:B,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:B,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:B,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:B,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:le}),pe=se({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),me=se({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ue}),V=se({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),he={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},H=/[A-Z]/g,U=/-[a-z]/g,ge=/^data[-\w.:]+$/i;function _e(e,t){let n=N(t),r=t,i=P;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ge.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(U,ye);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!U.test(e)){let n=e.replace(H,ve);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ae}return new i(r,t)}function ve(e){return`-`+e.toLowerCase()}function ye(e){return e.charAt(1).toUpperCase()}var be=M([ce,de,pe,me,V],`html`),xe=M([ce,fe,pe,me,V],`svg`);function Se(e){return e.join(` `).trim()}var Ce=i(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-01K66m6d.js","assets/index-C2JPbj12.js","assets/chunk-O5CBEL6O-DQWScC0A.js","assets/src-HpmPWpNc.js","assets/chunk-BNv3lrIs.js","assets/chunk-5ZQYHXKU-Czv3sEec.js","assets/dist-DsfB3EIl.js","assets/chunk-CSCIHK7Q-BFj36ajn.js","assets/chunk-3OPIFGDE-DCODI-Rc.js","assets/chunk-L5ZTLDWV-Dkr_XhvY.js","assets/chunk-NZK2D7GU-Ci8pOVdE.js","assets/rough.esm-BWqoIFNR.js","assets/chunk-BSJP7CBP-D9C1bNga.js","assets/chunk-KSCS5N6A-iU27-eSU.js","assets/line-BuEChOFl.js","assets/path-DIKpVbHL.js","assets/array-DqLCdDFv.js","assets/chunk-LZXEDZCA-CvWOZMMQ.js","assets/chunk-WU5MYG2G-NCbD6q3J.js","assets/chunk-XPW4576I-DXkP_JdL.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,i as t,n,r,t as i}from"./chunk-BNv3lrIs.js";import{t as a}from"./index-C2JPbj12.js";import{L as o,a as s,c,i as l,m as u,n as d,nt as f,p,r as m,t as h,u as g}from"./IconX-sSpA2ejo.js";import{d as _}from"./realtimeContextBase-DZt86QHH.js";var v=g(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),y=g(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),b=g(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),x=g(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),S=g(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);function C(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var w=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,E={};function D(e,t){return((t||E).jsx?T:w).test(e)}var O=/[ \t\n\f\r]/g;function k(e){return typeof e==`object`?e.type===`text`?A(e.value):!1:A(e)}function A(e){return e.replace(O,``)===``}var j=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};j.prototype.normal={},j.prototype.property={},j.prototype.space=void 0;function M(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new j(n,r,t)}function N(e){return e.toLowerCase()}var P=class{constructor(e,t){this.attribute=t,this.property=e}};P.prototype.attribute=``,P.prototype.booleanish=!1,P.prototype.boolean=!1,P.prototype.commaOrSpaceSeparated=!1,P.prototype.commaSeparated=!1,P.prototype.defined=!1,P.prototype.mustUseProperty=!1,P.prototype.number=!1,P.prototype.overloadedBoolean=!1,P.prototype.property=``,P.prototype.spaceSeparated=!1,P.prototype.space=void 0;var F=r({boolean:()=>I,booleanish:()=>L,commaOrSpaceSeparated:()=>B,commaSeparated:()=>ne,number:()=>R,overloadedBoolean:()=>te,spaceSeparated:()=>z}),ee=0,I=re(),L=re(),te=re(),R=re(),z=re(),ne=re(),B=re();function re(){return 2**++ee}var ie=Object.keys(F),ae=class extends P{constructor(e,t,n,r){let i=-1;if(super(e,t),oe(this,`space`,r),typeof n==`number`)for(;++i<ie.length;){let e=ie[i];oe(this,ie[i],(n&F[e])===F[e])}}};ae.prototype.defined=!0;function oe(e,t,n){n&&(e[t]=n)}function se(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ae(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[N(r)]=r,n[N(a.attribute)]=r}return new j(t,n,e.space)}var ce=se({properties:{ariaActiveDescendant:null,ariaAtomic:L,ariaAutoComplete:null,ariaBusy:L,ariaChecked:L,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:z,ariaCurrent:null,ariaDescribedBy:z,ariaDetails:null,ariaDisabled:L,ariaDropEffect:z,ariaErrorMessage:null,ariaExpanded:L,ariaFlowTo:z,ariaGrabbed:L,ariaHasPopup:null,ariaHidden:L,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:z,ariaLevel:R,ariaLive:null,ariaModal:L,ariaMultiLine:L,ariaMultiSelectable:L,ariaOrientation:null,ariaOwns:z,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:L,ariaReadOnly:L,ariaRelevant:null,ariaRequired:L,ariaRoleDescription:z,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:L,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function le(e,t){return t in e?e[t]:t}function ue(e,t){return le(e,t.toLowerCase())}var de=se({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ne,acceptCharset:z,accessKey:z,action:null,allow:null,allowFullScreen:I,allowPaymentRequest:I,allowUserMedia:I,alt:null,as:null,async:I,autoCapitalize:null,autoComplete:z,autoFocus:I,autoPlay:I,blocking:z,capture:null,charSet:null,checked:I,cite:null,className:z,cols:R,colSpan:null,content:null,contentEditable:L,controls:I,controlsList:z,coords:R|ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:I,defer:I,dir:null,dirName:null,disabled:I,download:te,draggable:L,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:I,formTarget:null,headers:z,height:R,hidden:te,high:R,href:null,hrefLang:null,htmlFor:z,httpEquiv:z,id:null,imageSizes:null,imageSrcSet:null,inert:I,inputMode:null,integrity:null,is:null,isMap:I,itemId:null,itemProp:z,itemRef:z,itemScope:I,itemType:z,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:I,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:I,muted:I,name:null,nonce:null,noModule:I,noValidate:I,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:I,optimum:R,pattern:null,ping:z,placeholder:null,playsInline:I,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:I,referrerPolicy:null,rel:z,required:I,reversed:I,rows:R,rowSpan:R,sandbox:z,scope:null,scoped:I,seamless:I,selected:I,shadowRootClonable:I,shadowRootDelegatesFocus:I,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:L,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:I,useMap:null,value:L,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:z,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:I,declare:I,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:I,noHref:I,noShade:I,noWrap:I,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:L,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:I,disableRemotePlayback:I,prefix:null,property:null,results:R,security:null,unselectable:null},space:`html`,transform:ue}),fe=se({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:B,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:z,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:I,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ne,g2:ne,glyphName:ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:B,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:z,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:B,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:B,rev:B,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:B,requiredFeatures:B,requiredFonts:B,requiredFormats:B,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:B,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:B,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:B,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:le}),pe=se({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),me=se({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ue}),V=se({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),he={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},H=/[A-Z]/g,U=/-[a-z]/g,ge=/^data[-\w.:]+$/i;function _e(e,t){let n=N(t),r=t,i=P;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ge.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(U,ye);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!U.test(e)){let n=e.replace(H,ve);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ae}return new i(r,t)}function ve(e){return`-`+e.toLowerCase()}function ye(e){return e.charAt(1).toUpperCase()}var be=M([ce,de,pe,me,V],`html`),xe=M([ce,fe,pe,me,V],`svg`);function Se(e){return e.join(` `).trim()}var Ce=i(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
3
3
  `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),we=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(Ce());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Te=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Ee=i(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(we()),r=Te();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),W=Oe(`end`),De=Oe(`start`);function Oe(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function ke(e){let t=De(e),n=W(e);if(t&&n)return{start:t,end:n}}function Ae(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Me(e.position):`start`in e||`end`in e?Me(e):`line`in e||`column`in e?je(e):``}function je(e){return Ne(e&&e.line)+`:`+Ne(e&&e.column)}function Me(e){return je(e&&e.start)+`-`+je(e&&e.end)}function Ne(e){return e&&typeof e==`number`?e:1}var G=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Ae(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};G.prototype.file=``,G.prototype.name=``,G.prototype.reason=``,G.prototype.message=``,G.prototype.stack=``,G.prototype.column=void 0,G.prototype.line=void 0,G.prototype.ancestors=void 0,G.prototype.cause=void 0,G.prototype.fatal=void 0,G.prototype.place=void 0,G.prototype.ruleId=void 0,G.prototype.source=void 0;var Pe=e(Ee(),1),Fe={}.hasOwnProperty,Ie=new Map,Le=/[A-Z]/g,Re=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),ze=new Set([`td`,`th`]),Be=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ve(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Qe(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Ze(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?xe:be,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=He(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function He(e,t,n){if(t.type===`element`)return Ue(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return We(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Ke(e,t,n);if(t.type===`mdxjsEsm`)return Ge(e,t);if(t.type===`root`)return qe(e,t,n);if(t.type===`text`)return Je(e,t)}function Ue(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=xe,e.schema=i),e.ancestors.push(t);let a=it(e,t.tagName,!1),o=$e(e,t),s=tt(e,t);return Re.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!k(e):!0})),Ye(e,o,a,t),Xe(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function We(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}at(e,t.position)}function Ge(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);at(e,t.position)}function Ke(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=xe,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:it(e,t.name,!0),o=et(e,t),s=tt(e,t);return Ye(e,o,a,t),Xe(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function qe(e,t,n){let r={};return Xe(r,tt(e,t)),e.create(t,e.Fragment,r,n)}function Je(e,t){return t.value}function Ye(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xe(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Ze(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Qe(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=De(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function $e(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Fe.call(t.properties,i)){let a=nt(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&ze.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function et(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else at(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else at(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function tt(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ie;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=He(e,a,o);s!==void 0&&n.push(s)}return n}function nt(e,t,n){let r=_e(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?C(n):Se(n)),r.property===`style`){let t=typeof n==`object`?n:rt(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ot(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?he[r.property]||r.property:r.attribute,n]}}function rt(e,t){try{return(0,Pe.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new G("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Be+`#cannot-parse-style-attribute`,r}}function it(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=D(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=D(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Fe.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);at(e)}function at(e,t){let n=new G("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Be+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function ot(e){let t={},n;for(n in e)Fe.call(e,n)&&(t[st(n)]=e[n]);return t}function st(e){let t=e.replace(Le,ct);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function ct(e){return`-`+e.toLowerCase()}var lt={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},ut={};function dt(e,t){let n=t||ut;return ft(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ft(e,t,n){if(mt(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return pt(e.children,t,n)}return Array.isArray(e)?pt(e,t,n):``}function pt(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ft(e[i],t,n);return r.join(``)}function mt(e){return!!(e&&typeof e==`object`)}var ht=document.createElement(`i`);function gt(e){let t=`&`+e+`;`;ht.innerHTML=t;let n=ht.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function _t(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function vt(e,t){return e.length>0?(_t(e,e.length,0,t),e):t}var yt={}.hasOwnProperty;function bt(e){let t={},n=-1;for(;++n<e.length;)xt(t,e[n]);return t}function xt(e,t){let n;for(n in t){let r=(yt.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){yt.call(r,a)||(r[a]=[]);let e=i[a];St(r[a],Array.isArray(e)?e:e?[e]:[])}}}function St(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);_t(e,0,0,r)}function Ct(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function wt(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var K=Mt(/[A-Za-z]/),q=Mt(/[\dA-Za-z]/),Tt=Mt(/[#-'*+\--9=?A-Z^-~]/);function Et(e){return e!==null&&(e<32||e===127)}var Dt=Mt(/\d/),Ot=Mt(/[\dA-Fa-f]/),kt=Mt(/[!-/:-@[-`{-~]/);function J(e){return e!==null&&e<-2}function Y(e){return e!==null&&(e<0||e===32)}function X(e){return e===-2||e===-1||e===32}var At=Mt(/\p{P}|\p{S}/u),jt=Mt(/\s/);function Mt(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Nt(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&q(e.charCodeAt(n+1))&&q(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Z(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return X(r)?(e.enter(n),s(r)):t(r)}function s(r){return X(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Pt={tokenize:Ft};function Ft(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Z(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return J(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var It={tokenize:Rt},Lt={tokenize:zt};function Rt(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return _t(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lt,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Lt,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return J(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;_t(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function zt(e,t,n){return Z(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Bt(e){if(e===null||Y(e)||jt(e))return 1;if(At(e))return 2}function Vt(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Ht={name:`attention`,resolveAll:Ut,tokenize:Wt};function Ut(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Gt(d,-c),Gt(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=vt(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=vt(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=vt(l,Vt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=vt(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=vt(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,_t(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Wt(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Bt(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Bt(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Gt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Kt={name:`autolink`,tokenize:qt};function qt(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return K(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||q(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||q(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Et(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Tt(t)?(e.consume(t),l):n(t)}function u(e){return q(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||q(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Jt={partial:!0,tokenize:Yt};function Yt(e,t,n){return r;function r(t){return X(t)?Z(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||J(e)?t(e):n(e)}}var Xt={continuation:{tokenize:Qt},exit:$t,name:`blockQuote`,tokenize:Zt};function Zt(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return X(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Qt(e,t,n){let r=this;return i;function i(t){return X(t)?Z(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Xt,t,n)(r)}}function $t(e){e.exit(`blockQuote`)}var en={name:`characterEscape`,tokenize:tn};function tn(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return kt(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var nn={name:`characterReference`,tokenize:rn};function rn(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=q,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Ot,u):(e.enter(`characterReferenceValue`),a=7,o=Dt,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===q&&!gt(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var an={partial:!0,tokenize:cn},on={concrete:!0,name:`codeFenced`,tokenize:sn};function sn(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),X(t)?Z(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||J(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(an,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):X(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Z(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||J(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&X(t)?Z(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||J(t)?e.check(an,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||J(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),X(t)?Z(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),X(t)?Z(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||J(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function cn(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var ln={name:`codeIndented`,tokenize:dn},un={partial:!0,tokenize:fn};function dn(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Z(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):J(t)?e.attempt(un,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||J(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function fn(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Z(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):J(e)?i(e):n(e)}}var pn={name:`codeText`,previous:hn,resolve:mn,tokenize:gn};function mn(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function hn(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function gn(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||J(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var _n=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&vn(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),vn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),vn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);vn(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);vn(this.left,t.reverse())}}};function vn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yn(e){let t={},n=-1,r,i,a,o,s,c,l,u=new _n(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,bn(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return _t(e,0,1/0,u.slice(0)),!l}function bn(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var xn={resolve:Cn,tokenize:wn},Sn={partial:!0,tokenize:Tn};function Cn(e){return yn(e),e}function wn(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):J(t)?e.check(Sn,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Tn(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Z(e,a,`linePrefix`)}function a(i){if(i===null||J(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function En(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Et(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||J(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Y(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Et(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Dn(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):J(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||J(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!X(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function On(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Z(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||J(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function kn(e,t){let n;return r;function r(i){return J(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):X(i)?Z(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var An={name:`definition`,tokenize:Mn},jn={partial:!0,tokenize:Nn};function Mn(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Dn.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Y(t)?kn(e,l)(t):l(t)}function l(t){return En(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(jn,d,d)(t)}function d(t){return X(t)?Z(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||J(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Nn(e,t,n){return r;function r(t){return Y(t)?kn(e,i)(t):n(t)}function i(t){return On(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return X(t)?Z(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||J(e)?t(e):n(e)}}var Pn={name:`hardBreakEscape`,tokenize:Fn};function Fn(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return J(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var In={name:`headingAtx`,resolve:Ln,tokenize:Rn};function Ln(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},_t(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Rn(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Y(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||J(n)?(e.exit(`atxHeading`),t(n)):X(n)?Z(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Y(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var zn=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Bn=[`pre`,`script`,`style`,`textarea`],Vn={concrete:!0,name:`htmlFlow`,resolveTo:Wn,tokenize:Gn},Hn={partial:!0,tokenize:qn},Un={partial:!0,tokenize:Kn};function Wn(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Gn(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ee):K(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):K(a)?(e.consume(a),i=4,r.interrupt?t:ee):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ee):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return K(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Y(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Bn.includes(l)?(i=1,r.interrupt?t(s):O(s)):zn.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||q(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return X(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||K(t)?(e.consume(t),b):X(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||q(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):X(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):X(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||J(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Y(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||X(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||J(t)?O(t):X(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),I):t===63&&i===3?(e.consume(t),ee):t===93&&i===5?(e.consume(t),F):J(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Hn,L,k)(t)):t===null||J(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Un,A,L)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||J(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ee):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Bn.includes(n)?(e.consume(t),I):O(t)}return K(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),ee):O(t)}function ee(t){return t===62?(e.consume(t),I):t===45&&i===2?(e.consume(t),ee):O(t)}function I(t){return t===null||J(t)?(e.exit(`htmlFlowData`),L(t)):(e.consume(t),I)}function L(n){return e.exit(`htmlFlow`),t(n)}}function Kn(e,t,n){let r=this;return i;function i(t){return J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function qn(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Jt,t,n)}}var Jn={name:`htmlText`,tokenize:Yn};function Yn(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):K(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):K(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):J(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):J(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):J(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):J(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return K(t)?(e.consume(t),S):n(t)}function S(t){return t===45||q(t)?(e.consume(t),S):C(t)}function C(t){return J(t)?(o=C,N(t)):X(t)?(e.consume(t),C):M(t)}function w(t){return t===45||q(t)?(e.consume(t),w):t===47||t===62||Y(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||K(t)?(e.consume(t),E):J(t)?(o=T,N(t)):X(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||q(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):J(t)?(o=D,N(t)):X(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):J(t)?(o=O,N(t)):X(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):J(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Y(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Y(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return X(t)?Z(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Xn={name:`labelEnd`,resolveAll:er,resolveTo:tr,tokenize:nr},Zn={tokenize:rr},Qn={tokenize:ir},$n={tokenize:ar};function er(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&_t(e,0,e.length,n),e}function tr(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=vt(s,e.slice(a+1,a+r+3)),s=vt(s,[[`enter`,u,t]]),s=vt(s,Vt(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=vt(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=vt(s,e.slice(o+1)),s=vt(s,[[`exit`,c,t]]),_t(e,a,e.length,s),e}function nr(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(wt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Zn,u,o?u:d)(t):t===91?e.attempt(Qn,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt($n,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function rr(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Y(t)?kn(e,a)(t):a(t)}function a(t){return t===41?u(t):En(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Y(t)?kn(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?On(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Y(t)?kn(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function ir(e,t,n){let r=this;return i;function i(t){return Dn.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function ar(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var or={name:`labelStartImage`,resolveAll:Xn.resolveAll,tokenize:sr};function sr(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var cr={name:`labelStartLink`,resolveAll:Xn.resolveAll,tokenize:lr};function lr(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var ur={name:`lineEnding`,tokenize:dr};function dr(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Z(e,t,`linePrefix`)}}var fr={name:`thematicBreak`,tokenize:pr};function pr(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||J(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),X(t)?Z(e,s,`whitespace`)(t):s(t))}}var mr={continuation:{tokenize:vr},exit:br,name:`list`,tokenize:_r},hr={partial:!0,tokenize:xr},gr={partial:!0,tokenize:yr};function _r(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Dt(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(fr,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Dt(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Jt,r.interrupt?n:u,e.attempt(hr,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return X(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function vr(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Jt,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Z(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!X(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gr,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Z(e,e.attempt(mr,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function yr(e,t,n){let r=this;return Z(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function br(e){e.exit(this.containerState.type)}function xr(e,t,n){let r=this;return Z(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!X(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Sr={name:`setextUnderline`,resolveTo:Cr,tokenize:wr};function Cr(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function wr(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),X(t)?Z(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||J(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Tr={tokenize:Er};function Er(e){let t=this,n=e.attempt(Jt,r,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xn,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Dr={resolveAll:jr()},Or=Ar(`string`),kr=Ar(`text`);function Ar(e){return{resolveAll:jr(e===`text`?Mr:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function jr(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Mr(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Nr=r({attentionMarkers:()=>Vr,contentInitial:()=>Fr,disable:()=>Hr,document:()=>Pr,flow:()=>Lr,flowInitial:()=>Ir,insideSpan:()=>Br,string:()=>Rr,text:()=>zr}),Pr={42:mr,43:mr,45:mr,48:mr,49:mr,50:mr,51:mr,52:mr,53:mr,54:mr,55:mr,56:mr,57:mr,62:Xt},Fr={91:An},Ir={[-2]:ln,[-1]:ln,32:ln},Lr={35:In,42:fr,45:[Sr,fr],60:Vn,61:Sr,95:fr,96:on,126:on},Rr={38:nn,92:en},zr={[-5]:ur,[-4]:ur,[-3]:ur,33:or,38:nn,42:Ht,60:[Kt,Jn],91:cr,92:[Pn,en],93:Xn,95:Ht,96:pn},Br={null:[Ht,Dr]},Vr={null:[42,95]},Hr={null:[]};function Ur(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=vt(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Vt(a,l.events,l),l.events):[]}function f(e,t){return Gr(p(e),t)}function p(e){return Wr(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){J(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&_t(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Wr(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Gr(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
4
4
  `;break;case-3:o=`\r
5
5
  `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Kr(e){let t={constructs:bt([Nr,...(e||{}).extensions||[]]),content:n(Pt),defined:[],document:n(It),flow:n(Tr),lazy:{},string:n(Or),text:n(kr)};return t;function n(e){return n;function n(n){return Ur(t,e,n)}}}function qr(e){for(;!yn(e););return e}var Jr=/[\0\t\n\r]/g;function Yr(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Jr.lastIndex=u,c=Jr.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Xr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zr(e){return e.replace(Xr,Qr)}function Qr(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Ct(n.slice(t?2:1),t?16:10)}return gt(n)||e}var $r={}.hasOwnProperty;function ei(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),ti(n)(qr(Kr(n).document().write(Yr()(e,t,!0))))}function ti(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(me),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ue),blockQuote:a(ae),characterEscape:T,characterReference:T,codeFenced:a(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(oe,o),codeText:a(se,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ce),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(le),hardBreakEscape:a(de),hardBreakTrailing:a(de),htmlFlow:a(fe,o),htmlFlowData:T,htmlText:a(fe,o),htmlTextData:T,image:a(pe),label:o,link:a(me),listItem:a(he),listItemValue:f,listOrdered:a(V,d),listUnordered:a(V),paragraph:a(H),reference:te,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ue),strong:a(U),thematicBreak:a(_e)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ie,autolinkProtocol:re,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:ne,characterReference:B,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:R,resourceDestinationString:ee,resourceTitleString:I,resource:L,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};ri(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];$r.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||ai).call(a,void 0,e[0])}for(r.position={start:ni(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ni(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ni(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ai).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Ae({start:e.start,end:e.end})+`): it’s not open`);n.position.end=ni(e.end)}function u(){return dt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=wt(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=ge(),n.position={start:ni(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ni(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=ni(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Zr(t),n.identifier=wt(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function L(){this.data.inReference=void 0}function te(){this.data.referenceType=`collapsed`}function R(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=wt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function z(e){this.data.characterReferenceType=e.type}function ne(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Ct(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=gt(t);let i=this.stack[this.stack.length-1];i.value+=r}function B(e){let t=this.stack.pop();t.position.end=ni(e.end)}function re(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ie(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ae(){return{type:`blockquote`,children:[]}}function oe(){return{type:`code`,lang:null,meta:null,value:``}}function se(){return{type:`inlineCode`,value:``}}function ce(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function le(){return{type:`emphasis`,children:[]}}function ue(){return{type:`heading`,depth:0,children:[]}}function de(){return{type:`break`}}function fe(){return{type:`html`,value:``}}function pe(){return{type:`image`,title:null,url:``,alt:null}}function me(){return{type:`link`,title:null,url:``,children:[]}}function V(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function he(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function H(){return{type:`paragraph`,children:[]}}function U(){return{type:`strong`,children:[]}}function ge(){return{type:`text`,value:``}}function _e(){return{type:`thematicBreak`}}}function ni(e){return{line:e.line,column:e.column,offset:e.offset}}function ri(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?ri(e,r):ii(e,r)}}function ii(e,t){let n;for(n in t)if($r.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function ai(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Ae({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ae({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Ae({start:t.start,end:t.end})+`) is still open`)}function oi(e){let t=this;t.parser=n;function n(n){return ei(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function si(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ci(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
@@ -29,7 +29,7 @@ import{a as e,i as t,n,r,t as i}from"./chunk-BNv3lrIs.js";import{t as a}from"./i
29
29
  `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
30
30
  `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return rs(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=ec.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function uc(){return{exit:{taskListCheckValueChecked:fc,taskListCheckValueUnchecked:fc,paragraph:pc}}}function dc(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:mc}}}function fc(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function pc(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function mc(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=ec.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function hc(){return[xo(),Go(),Xo(),tc(),uc()]}function gc(e){return{extensions:[So(),Ko(e),Zo(),lc(e),dc()]}}var _c={tokenize:jc,partial:!0},vc={tokenize:Mc,partial:!0},yc={tokenize:Nc,partial:!0},bc={tokenize:Pc,partial:!0},xc={tokenize:Fc,partial:!0},Sc={name:`wwwAutolink`,tokenize:kc,previous:Ic},Cc={name:`protocolAutolink`,tokenize:Ac,previous:Lc},wc={name:`emailAutolink`,tokenize:Oc,previous:Rc},Tc={};function Ec(){return{text:Tc}}for(var Dc=48;Dc<123;)Tc[Dc]=wc,Dc++,Dc===58?Dc=65:Dc===91&&(Dc=97);Tc[43]=wc,Tc[45]=wc,Tc[46]=wc,Tc[95]=wc,Tc[72]=[wc,Cc],Tc[104]=[wc,Cc],Tc[87]=[wc,Sc],Tc[119]=[wc,Sc];function Oc(e,t,n){let r=this,i,a;return o;function o(t){return!zc(t)||!Rc.call(r,r.previous)||Bc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return zc(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(xc,u,l)(t):t===45||t===95||q(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&K(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function kc(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Ic.call(r,r.previous)||Bc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(_c,e.attempt(vc,e.attempt(yc,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Ac(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Lc.call(r,r.previous)&&!Bc(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(K(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Et(t)||Y(t)||jt(t)||At(t)?n(t):e.attempt(vc,e.attempt(yc,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function jc(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Mc(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(bc,c,s)(t):t===null||Y(t)||jt(t)||t!==45&&At(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Nc(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(bc,t,a)(o):o===null||Y(o)||jt(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Pc(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Y(o)||jt(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Y(e)||jt(e)?t(e):r(e)}function a(e){return K(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):K(t)?(e.consume(t),o):n(t)}}function Fc(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return q(e)?n(e):t(e)}}function Ic(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Y(e)}function Lc(e){return!K(e)}function Rc(e){return!(e===47||zc(e))}function zc(e){return e===43||e===45||e===46||e===95||q(e)}function Bc(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Vc={tokenize:Yc,partial:!0};function Hc(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Kc,continuation:{tokenize:qc},exit:Jc}},text:{91:{name:`gfmFootnoteCall`,tokenize:Gc},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Uc,resolveTo:Wc}}}}function Uc(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=wt(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Wc(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Gc(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Y(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(wt(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Y(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Kc(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Y(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=wt(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Y(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Z(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function qc(e,t,n){return e.check(Jt,t,e.attempt(Vc,t,n))}function Jc(e){e.exit(`gfmFootnoteDefinition`)}function Yc(e,t,n){let r=this;return Z(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Xc(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&_t(o,o.length,0,Vt(s,e.slice(r+1,n),t)),_t(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),_t(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Bt(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Bt(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Zc=class{constructor(){this.map=[]}add(e,t,n){Qc(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Qc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function $c(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function el(){return{flow:{null:{name:`table`,tokenize:tl,resolveAll:nl}}}}function tl(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):J(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):X(t)?Z(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Y(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,X(t)?Z(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return X(t)?Z(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||J(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return X(t)?Z(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||J(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||J(n)?(e.exit(`tableRow`),t(n)):X(n)?Z(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Y(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function nl(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Zc;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(il(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=rl(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=rl(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=rl(f,t,o,i,n,d)):(o[0]=o[1],d=rl(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&il(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=$c(t.events,n))}return e}function rl(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},al(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=al(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=al(t.events,n[2]),a=al(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},al(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function il(e,t,n,r,i){let a=[],o=al(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function al(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var ol={name:`tasklistCheck`,tokenize:cl};function sl(){return{text:{91:ol}}}function cl(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Y(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return J(r)?t(r):X(r)?e.check({tokenize:ll},t,n)(r):n(r)}}function ll(e,t,n){return Z(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function ul(e){return bt([Ec(),Hc(),Xc(e),el(),sl()])}var dl={};function fl(e){let t=this,n=e||dl,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(ul(n)),a.push(hc()),o.push(gc(n))}function pl(e){ho(e,[/\r?\n|\r/g,ml])}function ml(){return{type:`break`}}function hl(){return function(e){pl(e)}}var gl=/^\[(?:X|x| )\]\s+/,_l=e=>{let t=e.split(`
31
31
  `).map(e=>e.trim()).filter(e=>e.length>0);return t.length>0&&t.every(e=>gl.test(e))},vl=e=>_l(e)?e.split(`
32
- `).map(e=>e.trim()).filter(e=>e.length>0):[],yl=e=>e.replace(/\\"/g,`"`),bl=100,xl=({mermaid:e,className:t,onClick:n})=>{let{t:r}=_(`common`),[i,o]=(0,$.useState)({kind:`loading`}),s=`mermaid-${(0,$.useId)().replace(/:/g,``)}`;(0,$.useEffect)(()=>{let t=!1;if(o({kind:`loading`}),!e){o({kind:`error`,rawText:``});return}let n=window.setTimeout(()=>{(async()=>{try{let n=await a(()=>import(`./mermaid.core-BrPCXQ_-.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]));if(t)return;let r=n.default;r.initialize({startOnLoad:!1,theme:`dark`,themeVariables:{primaryColor:`#8b5cf6`,primaryTextColor:`#e2e8f0`,lineColor:`#94a3b8`,secondaryColor:`#1e293b`,tertiaryColor:`#334155`}});let i=yl(e);if(await r.parse(i),t)return;let{svg:c}=await r.render(s,i);if(t)return;o({kind:`rendered`,svg:c})}catch{t||o({kind:`error`,rawText:e})}})()},bl);return()=>{t=!0,window.clearTimeout(n)}},[e,s]);let c=(0,$.useCallback)(()=>{i.kind===`rendered`&&n&&n()},[i,n]);return i.kind===`loading`?(0,Q.jsx)(`div`,{className:`flex items-center justify-center py-8 ${t??``}`,children:(0,Q.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-violet-400 border-t-transparent`})}):i.kind===`error`?i.rawText?(0,Q.jsxs)(`div`,{className:t,children:[(0,Q.jsx)(`div`,{className:`mb-2 text-xs text-amber-400`,children:r(`specView.artifactPanel.mermaidParseError`)}),(0,Q.jsx)(`pre`,{className:`overflow-auto rounded-md border border-border/50 bg-surface p-3 text-xs text-muted-foreground whitespace-pre-wrap`,children:i.rawText})]}):(0,Q.jsx)(`div`,{className:`py-4 text-sm text-muted-foreground ${t??``}`,children:r(`specView.artifactPanel.noDiagram`)}):(0,Q.jsx)(`div`,{className:`spec-mermaid-diagram flex justify-center ${n?`cursor-zoom-in`:``} ${t??``}`,dangerouslySetInnerHTML:{__html:i.svg},onClick:c,role:n?`button`:void 0,tabIndex:n?0:void 0,onKeyDown:n?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c())}:void 0,"aria-label":n?r(`mermaidPreviewDialog.clickToExpand`):void 0})},Sl=({className:e})=>(0,Q.jsx)(b,{"aria-hidden":`true`,className:e}),Cl=({className:e})=>(0,Q.jsx)(x,{"aria-hidden":`true`,className:e}),wl=({className:e})=>(0,Q.jsx)(S,{"aria-hidden":`true`,className:e}),Tl=24,El=4,Dl=1.25,Ol=1,kl={width:800,height:600},Al=e=>e.replace(/\\"/g,`"`),jl=e=>Number.isFinite(e)&&e>0,Ml=e=>{if(!e||e.trim().endsWith(`%`))return null;let t=Number.parseFloat(e);return jl(t)?t:null},Nl=e=>{let t=e.getAttribute(`viewBox`)?.trim().split(/[\s,]+/).map(Number);if(t?.length===4&&jl(t[2])&&jl(t[3]))return{width:t[2],height:t[3]};let n=Ml(e.getAttribute(`width`)),r=Ml(e.getAttribute(`height`));if(n&&r)return{width:n,height:r};let i=e.getBoundingClientRect();if(jl(i.width)&&jl(i.height))return{width:i.width,height:i.height};try{let t=e.getBBox();if(jl(t.width)&&jl(t.height))return{width:t.width,height:t.height}}catch{}return kl},Pl=(e,t)=>{let n=Math.max(Ol,t.width-Tl*2),r=Math.max(Ol,t.height-Tl*2),i=Math.min(1,n/e.width,r/e.height);return jl(i)?i:1},Fl=(e,t,n)=>{let r=e.width*n,i=e.height*n,a=Math.max(t.width,r+Tl*2),o=Math.max(t.height,i+Tl*2);return{width:a,height:o,diagramWidth:r,diagramHeight:i,diagramLeft:Math.max(Tl,(a-r)/2),diagramTop:Math.max(Tl,(o-i)/2)}},Il=(e,t,n)=>Math.min(n,Math.max(t,e)),Ll=(0,$.memo)(({svg:e,stageRef:t})=>(0,Q.jsx)(`div`,{ref:t,"data-testid":`mermaid-preview-stage`,className:`relative shrink-0`,dangerouslySetInnerHTML:{__html:e}})),Rl=({mermaid:e,open:t,onClose:n})=>{let{t:r}=_(`common`),[i,o]=(0,$.useState)({kind:`loading`}),[u,f]=(0,$.useState)(null),[g,v]=(0,$.useState)(null),y=(0,$.useRef)(null),b=(0,$.useRef)(null),x=(0,$.useRef)(null),S=(0,$.useRef)(null),C=(0,$.useRef)(null),w=(0,$.useRef)(null),T=(0,$.useRef)(null),E=`mermaid-preview-${(0,$.useId)().replace(/:/g,``)}`,D=(0,$.useCallback)((e,t=!0)=>{let n=y.current,r=T.current;!r||e!==void 0&&r.pointerId!==e||(t&&n?.hasPointerCapture?.(r.pointerId)&&n.releasePointerCapture(r.pointerId),document.body.style.userSelect=r.previousUserSelect,n?.removeAttribute(`data-dragging`),T.current=null)},[]),O=(0,$.useCallback)((e,t=null)=>{let n=y.current,r=b.current,i=r?.querySelector(`svg`),a=x.current,o=S.current,s=w.current;if(!n||!r||!i||!a||!o||s===null)return;let c=Il(e,s,El),l=Fl(a,o,c);r.style.width=`${l.width}px`,r.style.height=`${l.height}px`,r.dataset.diagramWidth=`${l.diagramWidth}`,r.dataset.diagramHeight=`${l.diagramHeight}`,i.setAttribute(`width`,`${l.diagramWidth}`),i.setAttribute(`height`,`${l.diagramHeight}`),i.style.width=`${l.diagramWidth}px`,i.style.height=`${l.diagramHeight}px`,i.style.maxWidth=`none`,i.style.maxHeight=`none`,i.style.position=`absolute`,i.style.left=`${l.diagramLeft}px`,i.style.top=`${l.diagramTop}px`;let u=Math.max(0,l.width-o.width),d=Math.max(0,l.height-o.height),p=t?l.diagramLeft+t.x*c-o.width/2:u/2,m=t?l.diagramTop+t.y*c-o.height/2:d/2;n.scrollLeft=Il(p,0,u),n.scrollTop=Il(m,0,d),C.current=c,f(c),v(s)},[]),k=(0,$.useCallback)(()=>{let e=y.current,t=x.current,n=S.current,r=C.current;if(!e||!t||!n||r===null)return null;let i=Fl(t,n,r);return{x:(e.scrollLeft+n.width/2-i.diagramLeft)/r,y:(e.scrollTop+n.height/2-i.diagramTop)/r}},[]),A=(0,$.useCallback)(()=>{let e=x.current,t=S.current;if(!e||!t)return;let n=Pl(e,t);w.current=n,O(n)},[O]),j=e=>{let t=C.current;t!==null&&O(t*e,k())};(0,$.useEffect)(()=>{if(!t)return;let n=!1;return o({kind:`loading`}),(async()=>{try{let t=await a(()=>import(`./mermaid.core-BrPCXQ_-.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]));if(n)return;let r=t.default;r.initialize({startOnLoad:!1,theme:`dark`,themeVariables:{primaryColor:`#8b5cf6`,primaryTextColor:`#e2e8f0`,lineColor:`#94a3b8`,secondaryColor:`#1e293b`,tertiaryColor:`#334155`}});let i=Al(e);if(await r.parse(i),n)return;let{svg:s}=await r.render(E,i);if(n)return;o({kind:`rendered`,svg:s})}catch{n||o({kind:`error`,rawText:e})}})(),()=>{n=!0}},[e,E,t]),(0,$.useLayoutEffect)(()=>{if(!t||i.kind!==`rendered`)return;let e=b.current?.querySelector(`svg`);if(!e)return;let n=Nl(e);return x.current=n,e.dataset.intrinsicWidth=`${n.width}`,e.dataset.intrinsicHeight=`${n.height}`,S.current&&A(),()=>{D(),x.current=null,C.current=null,w.current=null,f(null),v(null)}},[D,t,A,i]),(0,$.useLayoutEffect)(()=>{if(!t||i.kind!==`rendered`)return;let e=y.current;if(!e)return;let n=()=>{let t=e.clientWidth,n=e.clientHeight;if(!jl(t)||!jl(n))return;let r=S.current,i=x.current,a=C.current,o=w.current,s=r&&i&&a!==null?k():null,c={width:t,height:n};if(S.current=c,!i)return;let l=Pl(i,c);w.current=l;let u=a===null||o===null||Math.abs(a-o)<1e-4;O(u?l:a,u?null:s)},r=new ResizeObserver(n);return r.observe(e),n(),()=>{r.disconnect(),S.current=null}},[O,k,t,i.kind]),(0,$.useEffect)(()=>()=>{D()},[D]);let M=e=>{if(e.pointerType!==`mouse`||e.button!==0||u===null)return;let t=e.currentTarget;D(),T.current={pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,previousUserSelect:document.body.style.userSelect},document.body.style.userSelect=`none`,t.dataset.dragging=`true`,t.setPointerCapture(e.pointerId),e.preventDefault()},N=e=>{let t=T.current,n=x.current,r=S.current,i=C.current;if(!t||t.pointerId!==e.pointerId||!n||!r||i===null)return;let a=Fl(n,r,i);e.currentTarget.scrollLeft=Il(t.scrollLeft-(e.clientX-t.clientX),0,Math.max(0,a.width-r.width)),e.currentTarget.scrollTop=Il(t.scrollTop-(e.clientY-t.clientY),0,Math.max(0,a.height-r.height)),e.preventDefault()},P=e=>{D(e.pointerId)},F=e=>{D(e.pointerId,!1)},ee=u===null?0:Math.round(u*100);return(0,Q.jsx)(d,{open:t,onOpenChange:e=>{e||n()},children:(0,Q.jsxs)(l,{showCloseButton:!1,overlayClassName:`bg-black/80`,className:`flex h-[calc(100vh-1rem)] max-h-[calc(100vh-1rem)] w-[calc(100vw-1rem)] max-w-[calc(100vw-1rem)] sm:max-w-[calc(100vw-1rem)] flex-col gap-0 overflow-hidden border-border/80 bg-background/95 p-0 shadow-2xl`,children:[(0,Q.jsx)(c,{className:`sr-only`,children:r(`mermaidPreviewDialog.title`)}),(0,Q.jsx)(s,{className:`sr-only`,children:r(`mermaidPreviewDialog.description`)}),(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-4 border-b border-border/70 px-4 py-2.5 sm:px-5`,children:[(0,Q.jsx)(`p`,{className:`min-w-0 truncate text-sm font-semibold text-foreground sm:text-base`,children:r(`mermaidPreviewDialog.title`)}),(0,Q.jsxs)(`nav`,{className:`flex shrink-0 items-center gap-1`,"aria-label":r(`mermaidPreviewDialog.controlsAriaLabel`),children:[u!==null&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.zoomOutAriaLabel`),variant:`ghost`,size:`icon-sm`,disabled:g!==null&&u<=g+1e-4,onClick:()=>j(1/Dl),children:(0,Q.jsx)(Sl,{className:`h-4 w-4`})}),(0,Q.jsx)(`span`,{className:`w-12 text-center text-xs tabular-nums text-muted-foreground`,"aria-live":`polite`,"aria-label":r(`mermaidPreviewDialog.zoomLevelAriaLabel`,{zoom:ee}),children:r(`mermaidPreviewDialog.zoomLevel`,{zoom:ee})}),(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.zoomInAriaLabel`),variant:`ghost`,size:`icon-sm`,disabled:u>=El-1e-4,onClick:()=>j(Dl),children:(0,Q.jsx)(Cl,{className:`h-4 w-4`})}),(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.resetViewAriaLabel`),variant:`ghost`,size:`icon-sm`,onClick:A,children:(0,Q.jsx)(wl,{className:`h-4 w-4`})})]}),(0,Q.jsx)(m,{asChild:!0,children:(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.closeAriaLabel`),variant:`ghost`,size:`icon-sm`,className:`text-muted-foreground hover:text-foreground`,children:(0,Q.jsx)(h,{className:`h-4 w-4`})})})]})]}),(0,Q.jsxs)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center bg-black/35 p-2 sm:p-3`,children:[i.kind===`loading`&&(0,Q.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-violet-400 border-t-transparent`}),i.kind===`error`&&(0,Q.jsx)(`pre`,{className:`max-h-full max-w-full overflow-auto rounded-md border border-border/50 bg-surface p-4 text-xs text-muted-foreground whitespace-pre-wrap`,children:i.rawText}),i.kind===`rendered`&&(0,Q.jsx)(`div`,{ref:y,"data-testid":`mermaid-preview-viewport`,"aria-label":r(`mermaidPreviewDialog.canvasAriaLabel`),className:`h-full w-full cursor-grab overflow-auto data-[dragging=true]:cursor-grabbing`,onPointerDown:M,onPointerMove:N,onPointerUp:P,onPointerCancel:P,onLostPointerCapture:F,children:(0,Q.jsx)(Ll,{svg:i.svg,stageRef:b})})]})]})})},zl=`*, *::before, *::after { box-sizing: border-box; }
32
+ `).map(e=>e.trim()).filter(e=>e.length>0):[],yl=e=>e.replace(/\\"/g,`"`),bl=100,xl=({mermaid:e,className:t,onClick:n})=>{let{t:r}=_(`common`),[i,o]=(0,$.useState)({kind:`loading`}),s=`mermaid-${(0,$.useId)().replace(/:/g,``)}`;(0,$.useEffect)(()=>{let t=!1;if(o({kind:`loading`}),!e){o({kind:`error`,rawText:``});return}let n=window.setTimeout(()=>{(async()=>{try{let n=await a(()=>import(`./mermaid.core-01K66m6d.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]));if(t)return;let r=n.default;r.initialize({startOnLoad:!1,theme:`dark`,themeVariables:{primaryColor:`#8b5cf6`,primaryTextColor:`#e2e8f0`,lineColor:`#94a3b8`,secondaryColor:`#1e293b`,tertiaryColor:`#334155`}});let i=yl(e);if(await r.parse(i),t)return;let{svg:c}=await r.render(s,i);if(t)return;o({kind:`rendered`,svg:c})}catch{t||o({kind:`error`,rawText:e})}})()},bl);return()=>{t=!0,window.clearTimeout(n)}},[e,s]);let c=(0,$.useCallback)(()=>{i.kind===`rendered`&&n&&n()},[i,n]);return i.kind===`loading`?(0,Q.jsx)(`div`,{className:`flex items-center justify-center py-8 ${t??``}`,children:(0,Q.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-violet-400 border-t-transparent`})}):i.kind===`error`?i.rawText?(0,Q.jsxs)(`div`,{className:t,children:[(0,Q.jsx)(`div`,{className:`mb-2 text-xs text-amber-400`,children:r(`specView.artifactPanel.mermaidParseError`)}),(0,Q.jsx)(`pre`,{className:`overflow-auto rounded-md border border-border/50 bg-surface p-3 text-xs text-muted-foreground whitespace-pre-wrap`,children:i.rawText})]}):(0,Q.jsx)(`div`,{className:`py-4 text-sm text-muted-foreground ${t??``}`,children:r(`specView.artifactPanel.noDiagram`)}):(0,Q.jsx)(`div`,{className:`spec-mermaid-diagram flex justify-center ${n?`cursor-zoom-in`:``} ${t??``}`,dangerouslySetInnerHTML:{__html:i.svg},onClick:c,role:n?`button`:void 0,tabIndex:n?0:void 0,onKeyDown:n?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c())}:void 0,"aria-label":n?r(`mermaidPreviewDialog.clickToExpand`):void 0})},Sl=({className:e})=>(0,Q.jsx)(b,{"aria-hidden":`true`,className:e}),Cl=({className:e})=>(0,Q.jsx)(x,{"aria-hidden":`true`,className:e}),wl=({className:e})=>(0,Q.jsx)(S,{"aria-hidden":`true`,className:e}),Tl=24,El=4,Dl=1.25,Ol=1,kl={width:800,height:600},Al=e=>e.replace(/\\"/g,`"`),jl=e=>Number.isFinite(e)&&e>0,Ml=e=>{if(!e||e.trim().endsWith(`%`))return null;let t=Number.parseFloat(e);return jl(t)?t:null},Nl=e=>{let t=e.getAttribute(`viewBox`)?.trim().split(/[\s,]+/).map(Number);if(t?.length===4&&jl(t[2])&&jl(t[3]))return{width:t[2],height:t[3]};let n=Ml(e.getAttribute(`width`)),r=Ml(e.getAttribute(`height`));if(n&&r)return{width:n,height:r};let i=e.getBoundingClientRect();if(jl(i.width)&&jl(i.height))return{width:i.width,height:i.height};try{let t=e.getBBox();if(jl(t.width)&&jl(t.height))return{width:t.width,height:t.height}}catch{}return kl},Pl=(e,t)=>{let n=Math.max(Ol,t.width-Tl*2),r=Math.max(Ol,t.height-Tl*2),i=Math.min(1,n/e.width,r/e.height);return jl(i)?i:1},Fl=(e,t,n)=>{let r=e.width*n,i=e.height*n,a=Math.max(t.width,r+Tl*2),o=Math.max(t.height,i+Tl*2);return{width:a,height:o,diagramWidth:r,diagramHeight:i,diagramLeft:Math.max(Tl,(a-r)/2),diagramTop:Math.max(Tl,(o-i)/2)}},Il=(e,t,n)=>Math.min(n,Math.max(t,e)),Ll=(0,$.memo)(({svg:e,stageRef:t})=>(0,Q.jsx)(`div`,{ref:t,"data-testid":`mermaid-preview-stage`,className:`relative shrink-0`,dangerouslySetInnerHTML:{__html:e}})),Rl=({mermaid:e,open:t,onClose:n})=>{let{t:r}=_(`common`),[i,o]=(0,$.useState)({kind:`loading`}),[u,f]=(0,$.useState)(null),[g,v]=(0,$.useState)(null),y=(0,$.useRef)(null),b=(0,$.useRef)(null),x=(0,$.useRef)(null),S=(0,$.useRef)(null),C=(0,$.useRef)(null),w=(0,$.useRef)(null),T=(0,$.useRef)(null),E=`mermaid-preview-${(0,$.useId)().replace(/:/g,``)}`,D=(0,$.useCallback)((e,t=!0)=>{let n=y.current,r=T.current;!r||e!==void 0&&r.pointerId!==e||(t&&n?.hasPointerCapture?.(r.pointerId)&&n.releasePointerCapture(r.pointerId),document.body.style.userSelect=r.previousUserSelect,n?.removeAttribute(`data-dragging`),T.current=null)},[]),O=(0,$.useCallback)((e,t=null)=>{let n=y.current,r=b.current,i=r?.querySelector(`svg`),a=x.current,o=S.current,s=w.current;if(!n||!r||!i||!a||!o||s===null)return;let c=Il(e,s,El),l=Fl(a,o,c);r.style.width=`${l.width}px`,r.style.height=`${l.height}px`,r.dataset.diagramWidth=`${l.diagramWidth}`,r.dataset.diagramHeight=`${l.diagramHeight}`,i.setAttribute(`width`,`${l.diagramWidth}`),i.setAttribute(`height`,`${l.diagramHeight}`),i.style.width=`${l.diagramWidth}px`,i.style.height=`${l.diagramHeight}px`,i.style.maxWidth=`none`,i.style.maxHeight=`none`,i.style.position=`absolute`,i.style.left=`${l.diagramLeft}px`,i.style.top=`${l.diagramTop}px`;let u=Math.max(0,l.width-o.width),d=Math.max(0,l.height-o.height),p=t?l.diagramLeft+t.x*c-o.width/2:u/2,m=t?l.diagramTop+t.y*c-o.height/2:d/2;n.scrollLeft=Il(p,0,u),n.scrollTop=Il(m,0,d),C.current=c,f(c),v(s)},[]),k=(0,$.useCallback)(()=>{let e=y.current,t=x.current,n=S.current,r=C.current;if(!e||!t||!n||r===null)return null;let i=Fl(t,n,r);return{x:(e.scrollLeft+n.width/2-i.diagramLeft)/r,y:(e.scrollTop+n.height/2-i.diagramTop)/r}},[]),A=(0,$.useCallback)(()=>{let e=x.current,t=S.current;if(!e||!t)return;let n=Pl(e,t);w.current=n,O(n)},[O]),j=e=>{let t=C.current;t!==null&&O(t*e,k())};(0,$.useEffect)(()=>{if(!t)return;let n=!1;return o({kind:`loading`}),(async()=>{try{let t=await a(()=>import(`./mermaid.core-01K66m6d.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]));if(n)return;let r=t.default;r.initialize({startOnLoad:!1,theme:`dark`,themeVariables:{primaryColor:`#8b5cf6`,primaryTextColor:`#e2e8f0`,lineColor:`#94a3b8`,secondaryColor:`#1e293b`,tertiaryColor:`#334155`}});let i=Al(e);if(await r.parse(i),n)return;let{svg:s}=await r.render(E,i);if(n)return;o({kind:`rendered`,svg:s})}catch{n||o({kind:`error`,rawText:e})}})(),()=>{n=!0}},[e,E,t]),(0,$.useLayoutEffect)(()=>{if(!t||i.kind!==`rendered`)return;let e=b.current?.querySelector(`svg`);if(!e)return;let n=Nl(e);return x.current=n,e.dataset.intrinsicWidth=`${n.width}`,e.dataset.intrinsicHeight=`${n.height}`,S.current&&A(),()=>{D(),x.current=null,C.current=null,w.current=null,f(null),v(null)}},[D,t,A,i]),(0,$.useLayoutEffect)(()=>{if(!t||i.kind!==`rendered`)return;let e=y.current;if(!e)return;let n=()=>{let t=e.clientWidth,n=e.clientHeight;if(!jl(t)||!jl(n))return;let r=S.current,i=x.current,a=C.current,o=w.current,s=r&&i&&a!==null?k():null,c={width:t,height:n};if(S.current=c,!i)return;let l=Pl(i,c);w.current=l;let u=a===null||o===null||Math.abs(a-o)<1e-4;O(u?l:a,u?null:s)},r=new ResizeObserver(n);return r.observe(e),n(),()=>{r.disconnect(),S.current=null}},[O,k,t,i.kind]),(0,$.useEffect)(()=>()=>{D()},[D]);let M=e=>{if(e.pointerType!==`mouse`||e.button!==0||u===null)return;let t=e.currentTarget;D(),T.current={pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,previousUserSelect:document.body.style.userSelect},document.body.style.userSelect=`none`,t.dataset.dragging=`true`,t.setPointerCapture(e.pointerId),e.preventDefault()},N=e=>{let t=T.current,n=x.current,r=S.current,i=C.current;if(!t||t.pointerId!==e.pointerId||!n||!r||i===null)return;let a=Fl(n,r,i);e.currentTarget.scrollLeft=Il(t.scrollLeft-(e.clientX-t.clientX),0,Math.max(0,a.width-r.width)),e.currentTarget.scrollTop=Il(t.scrollTop-(e.clientY-t.clientY),0,Math.max(0,a.height-r.height)),e.preventDefault()},P=e=>{D(e.pointerId)},F=e=>{D(e.pointerId,!1)},ee=u===null?0:Math.round(u*100);return(0,Q.jsx)(d,{open:t,onOpenChange:e=>{e||n()},children:(0,Q.jsxs)(l,{showCloseButton:!1,overlayClassName:`bg-black/80`,className:`flex h-[calc(100vh-1rem)] max-h-[calc(100vh-1rem)] w-[calc(100vw-1rem)] max-w-[calc(100vw-1rem)] sm:max-w-[calc(100vw-1rem)] flex-col gap-0 overflow-hidden border-border/80 bg-background/95 p-0 shadow-2xl`,children:[(0,Q.jsx)(c,{className:`sr-only`,children:r(`mermaidPreviewDialog.title`)}),(0,Q.jsx)(s,{className:`sr-only`,children:r(`mermaidPreviewDialog.description`)}),(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-4 border-b border-border/70 px-4 py-2.5 sm:px-5`,children:[(0,Q.jsx)(`p`,{className:`min-w-0 truncate text-sm font-semibold text-foreground sm:text-base`,children:r(`mermaidPreviewDialog.title`)}),(0,Q.jsxs)(`nav`,{className:`flex shrink-0 items-center gap-1`,"aria-label":r(`mermaidPreviewDialog.controlsAriaLabel`),children:[u!==null&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.zoomOutAriaLabel`),variant:`ghost`,size:`icon-sm`,disabled:g!==null&&u<=g+1e-4,onClick:()=>j(1/Dl),children:(0,Q.jsx)(Sl,{className:`h-4 w-4`})}),(0,Q.jsx)(`span`,{className:`w-12 text-center text-xs tabular-nums text-muted-foreground`,"aria-live":`polite`,"aria-label":r(`mermaidPreviewDialog.zoomLevelAriaLabel`,{zoom:ee}),children:r(`mermaidPreviewDialog.zoomLevel`,{zoom:ee})}),(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.zoomInAriaLabel`),variant:`ghost`,size:`icon-sm`,disabled:u>=El-1e-4,onClick:()=>j(Dl),children:(0,Q.jsx)(Cl,{className:`h-4 w-4`})}),(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.resetViewAriaLabel`),variant:`ghost`,size:`icon-sm`,onClick:A,children:(0,Q.jsx)(wl,{className:`h-4 w-4`})})]}),(0,Q.jsx)(m,{asChild:!0,children:(0,Q.jsx)(p,{type:`button`,"aria-label":r(`mermaidPreviewDialog.closeAriaLabel`),variant:`ghost`,size:`icon-sm`,className:`text-muted-foreground hover:text-foreground`,children:(0,Q.jsx)(h,{className:`h-4 w-4`})})})]})]}),(0,Q.jsxs)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center bg-black/35 p-2 sm:p-3`,children:[i.kind===`loading`&&(0,Q.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-violet-400 border-t-transparent`}),i.kind===`error`&&(0,Q.jsx)(`pre`,{className:`max-h-full max-w-full overflow-auto rounded-md border border-border/50 bg-surface p-4 text-xs text-muted-foreground whitespace-pre-wrap`,children:i.rawText}),i.kind===`rendered`&&(0,Q.jsx)(`div`,{ref:y,"data-testid":`mermaid-preview-viewport`,"aria-label":r(`mermaidPreviewDialog.canvasAriaLabel`),className:`h-full w-full cursor-grab overflow-auto data-[dragging=true]:cursor-grabbing`,onPointerDown:M,onPointerMove:N,onPointerUp:P,onPointerCancel:P,onLostPointerCapture:F,children:(0,Q.jsx)(Ll,{svg:i.svg,stageRef:b})})]})]})})},zl=`*, *::before, *::after { box-sizing: border-box; }
33
33
  html, body {
34
34
  margin: 0;
35
35
  padding: 16px;
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-BNv3lrIs.js";import{J as t,L as n,X as r,a as i,c as a,i as o,n as s,nt as c,p as l,q as u,r as d,s as f,t as p}from"./IconX-sSpA2ejo.js";import{d as m,n as h,r as g}from"./realtimeContextBase-DZt86QHH.js";import{b as _,t as v}from"./ConversationMarkdown-D8iVeRE1.js";import{n as y,t as b}from"./artifactPresentation-CY7_iPcf.js";import{n as x,t as S}from"./MediaPreviewDialog-B5yPPi0T.js";var C=e(c(),1),w=n(),T=({artifact:e,projectId:t,runId:n,now:r})=>{let{t:i,i18n:a}=m(`common`,{keyPrefix:`buildDemonstrations.report`}),[o,s]=(0,C.useState)(!1),[c,u]=(0,C.useState)(!1),{availability:d,canDownload:f}=b(e,r),p=d===`available`&&e.preview_allowed===!0&&e.media_type===`image/png`&&e.artifact_id!==null,h=e.artifact_id===null?null:g(t,n,e.artifact_id),_=e.caption??e.label,v=d===`available`&&!o&&h!==null&&(p||f),y=e.expires_at?i(`expires`,{date:new Date(e.expires_at).toLocaleString(a.language)}):null,T=i(`artifact.${d}`);return d===`available`&&!p&&(T=i(`artifact.restricted`)),d===`available`&&o&&(T=i(`artifact.failedLoad`)),(0,w.jsxs)(`figure`,{className:`min-w-0 space-y-2`,children:[(0,w.jsxs)(`div`,{className:`aspect-video w-full overflow-hidden rounded-lg border border-border/60 bg-background/30`,children:[p&&!o&&h&&(0,w.jsx)(`button`,{type:`button`,"aria-label":i(`previewLabel`,{caption:_}),onClick:()=>u(!0),className:`block h-full w-full cursor-pointer rounded-lg outline-none transition-opacity hover:opacity-95 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`,children:(0,w.jsx)(`img`,{src:h,alt:_,onError:()=>s(!0),className:`h-full w-full object-contain`})}),(!p||o)&&(0,w.jsx)(`p`,{className:`flex h-full items-center justify-center p-3 text-center text-sm text-muted-foreground`,children:T})]}),(0,w.jsxs)(`figcaption`,{className:`space-y-1 break-words text-sm`,children:[(0,w.jsx)(`p`,{children:_}),y&&(0,w.jsx)(`p`,{className:`text-xs tabular-nums text-muted-foreground`,children:y})]}),!p&&v&&(0,w.jsx)(l,{variant:`outline`,size:`sm`,onClick:()=>u(!0),"aria-label":i(`detailsLabel`,{caption:_}),children:i(`details`)}),c&&v&&h&&(0,w.jsxs)(S,{name:_,title:i(`previewTitle`,{caption:_}),description:i(`previewDescription`,{caption:_}),closeLabel:i(`closePreview`),metadata:y,onClose:()=>u(!1),actions:f&&(0,w.jsx)(l,{asChild:!0,variant:`outline`,size:`sm`,children:(0,w.jsx)(`a`,{href:h,download:!0,"aria-label":i(`downloadLabel`,{caption:_}),children:i(`download`)})}),children:[p&&(0,w.jsx)(x,{src:h,alt:_,onError:()=>s(!0)}),!p&&(0,w.jsx)(`p`,{className:`flex min-h-0 flex-1 items-center justify-center p-4 text-center text-sm text-muted-foreground`,children:T})]})]})},E=({demonstration:e})=>{let{t,i18n:n}=m(`common`,{keyPrefix:`buildDemonstrations.report`}),r=(0,C.useId)(),i=y(e.screenshot_artifacts),{report:a,freshness:o}=e,s=e.screenshot_artifacts.filter(e=>{let{availability:t,canDownload:n}=b(e,i);return t===`available`&&e.artifact_id!==null&&(n||e.preview_allowed===!0&&e.media_type===`image/png`)});return(0,w.jsxs)(`article`,{"aria-labelledby":r,className:`min-w-0 space-y-6 text-sm text-foreground`,children:[(0,w.jsxs)(`header`,{className:`space-y-2`,children:[(0,w.jsx)(`h3`,{id:r,className:`text-base font-semibold`,children:t(`state.${e.state}`)}),(0,w.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[t(`executed`),` · `,(0,w.jsx)(`time`,{dateTime:e.created_at,className:`tabular-nums`,children:new Date(e.created_at).toLocaleString(n.language)})]}),(0,w.jsxs)(`div`,{className:`space-y-1 text-xs leading-5 text-muted-foreground`,children:[(0,w.jsx)(`p`,{children:t(`historical`)}),o.later_implementation.state===`observed`&&(0,w.jsx)(`p`,{children:t(`laterImplementation`)})]})]}),e.state!==`ready`&&(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:t(`description.${e.state}`)}),a.markdown&&(0,w.jsx)(v,{content:a.markdown,allowImages:!1}),a.mermaid.map((t,n)=>(0,w.jsx)(_,{mermaid:t},`${e.run_id}-${n}`)),s.length>0&&(0,w.jsxs)(`section`,{"aria-label":t(`visualEvidence`),className:`space-y-4`,children:[(0,w.jsx)(`h4`,{className:`font-semibold`,children:t(`visualEvidence`)}),s.map(t=>(0,w.jsx)(T,{artifact:t,projectId:e.project_id,runId:e.run_id,now:i},`${e.run_id}-${t.slot}-${t.artifact_id}-${t.expires_at}`))]}),e.diagnostics.length>0&&(0,w.jsxs)(`section`,{"aria-label":t(`diagnostics`),children:[(0,w.jsx)(`h4`,{className:`font-semibold`,children:t(`diagnostics`)}),(0,w.jsx)(`ul`,{className:`mt-2 list-disc space-y-1 break-words pl-5 text-muted-foreground`,children:e.diagnostics.map((e,t)=>(0,w.jsx)(`li`,{children:e.message},t))})]})]})},D=(e,n,r)=>{let i=`/tickets/${encodeURIComponent(n)}/build-demonstrations`;return t(r===void 0?i:`${i}/${encodeURIComponent(r)}`,e)},O=(e,t,n={})=>r(D(e,t),{...n,method:`GET`,cache:`no-store`}),k=(e,t,n,i={})=>r(D(e,t,n),{...i,method:`GET`,cache:`no-store`}),A=e=>{let t=(0,C.useRef)(null),n=(0,C.useCallback)(()=>t.current?.(),[]);return(0,C.useEffect)(()=>{let n=new AbortController,r=!1,i=!1,a=()=>{if(!n.signal.aborted){if(r){i=!0;return}r=!0,e(n.signal).finally(()=>{r=!1,i&&!n.signal.aborted&&(i=!1,a())})}};return t.current=a,a(),()=>{t.current=null,n.abort()}},[e]),n},j=({projectId:e,ticketId:t,refresh:n})=>{let r=h();(0,C.useEffect)(()=>{if(!e||!t)return;let i=null,a=()=>{i===null&&(i=setTimeout(()=>{i=null,n()},100))},o=t=>{t.project_id===e&&a()},s=n=>{n.id===t&&(!n.project_id||n.project_id===e)&&a()};return r.on(`ticket:updated`,s),r.on(`ticket:deleted`,s),r.on(`execution-run:updated`,o),r.on(`lifecycle-event:created`,o),r.on(`connect`,a),()=>{r.off(`ticket:updated`,s),r.off(`ticket:deleted`,s),r.off(`execution-run:updated`,o),r.off(`lifecycle-event:created`,o),r.off(`connect`,a),i!==null&&clearTimeout(i)}},[e,t,r,n])},M=(e,t)=>Date.parse(t.created_at)-Date.parse(e.created_at)||(e.run_id===t.run_id?0:e.run_id<t.run_id?1:-1),N=({projectId:e,ticketId:t})=>{let n=JSON.stringify([e,t]),r=!!(e&&t),[i,a]=(0,C.useState)({key:n,runId:null}),[o,s]=(0,C.useState)({key:n,data:null,error:null,loading:r}),[c,l]=(0,C.useState)({key:``,data:null,error:null,loading:!1}),d=r&&o.key===n?o.data:null,f=i.key===n?i.runId:null,p=r?f??d?.demonstrations[0]?.run_id??null:null,m=JSON.stringify([n,p]),h=(0,C.useCallback)(e=>a({key:n,runId:e}),[n]),g=A((0,C.useCallback)(async r=>{if(a(e=>e.key===n?e:{key:n,runId:null}),!e||!t){s({key:n,data:null,error:null,loading:!1});return}s(e=>({key:n,data:e.key===n?e.data:null,error:null,loading:!0})),await O(e,t,{signal:r}).then(e=>{r.aborted||s({key:n,data:{...e,demonstrations:[...e.demonstrations].sort(M)},error:null,loading:!1})}).catch(e=>{r.aborted||s(t=>({...t,error:u(e)?null:e,loading:!1}))})},[e,t,n])),_=A((0,C.useCallback)(async n=>{if(!e||!t||!p){l({key:m,data:null,error:null,loading:!1});return}l(e=>({key:m,data:e.key===m?e.data:null,error:null,loading:!0})),await k(e,t,p,{signal:n}).then(e=>{n.aborted||l({key:m,data:e,error:null,loading:!1})}).catch(e=>{n.aborted||l(t=>({...t,error:u(e)?null:e,loading:!1}))})},[e,t,p,m])),v=(0,C.useCallback)(()=>{g(),_()},[g,_]);j({projectId:e,ticketId:t,refresh:v});let y=r&&c.key===m?c.data:null;return{demonstrations:d?.demonstrations??[],initialBuildClosure:d?.initial_build_closure??null,policy:d?.policy??null,selectedRunId:p,isFollowingLatest:f===null,detail:y,demonstration:y?.demonstration??null,isLoading:r&&(o.key!==n||o.loading),isDetailLoading:!!(r&&p&&(c.key!==m||c.loading)),error:r&&o.key===n?o.error:null,detailError:r&&c.key===m?c.error:null,selectRun:h,refresh:v}},P=({projectId:e,ticketId:t,onClose:n,initialRunId:r=null})=>{let{t:c}=m(`common`,{keyPrefix:`buildDemonstrations.dialog`}),u=N({projectId:e,ticketId:t}),{selectRun:h}=u,g=(0,C.useRef)(null),_=(0,C.useRef)(null);(0,C.useEffect)(()=>{h(r)},[r,e,t,h]);let v=`empty`;u.initialBuildClosure?.provenance===`legacy_indeterminate`?v=`legacy`:u.policy?.lock===`indeterminate`?v=`unknownEligibility`:(u.initialBuildClosure?.policy??u.policy?.accepted_policy)?.effective_enabled===!1?v=`disabled`:(u.initialBuildClosure||u.policy?.lock===`closed`)&&(v=`notAvailable`);let y=!!(u.error||u.detailError),b=!u.demonstration&&(u.isLoading||u.isDetailLoading);return(0,w.jsx)(s,{open:!0,onOpenChange:e=>{e||n()},children:(0,w.jsxs)(o,{showCloseButton:!1,className:`flex max-h-[calc(100dvh-2rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-3xl`,onOpenAutoFocus:e=>{e.preventDefault(),g.current=document.activeElement instanceof HTMLElement?document.activeElement:null,_.current?.focus()},onCloseAutoFocus:e=>{e.preventDefault(),g.current?.isConnected&&g.current.focus()},children:[(0,w.jsxs)(f,{className:`shrink-0 border-b border-border/70 py-4 pr-16 pl-5 sm:pl-6`,children:[(0,w.jsx)(a,{ref:_,tabIndex:-1,className:`focus-visible:rounded focus-visible:outline-2 focus-visible:outline-ring`,children:c(`title`)}),(0,w.jsx)(i,{children:c(`description`)})]}),(0,w.jsx)(d,{asChild:!0,children:(0,w.jsx)(l,{variant:`ghost`,size:`icon-sm`,className:`absolute top-4 right-4`,"aria-label":c(`close`),children:(0,w.jsx)(p,{})})}),(0,w.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4 sm:px-6`,children:[b&&(0,w.jsx)(`p`,{role:`status`,className:`text-sm text-muted-foreground`,children:c(`loading`)}),y&&(0,w.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-sm`,children:[(0,w.jsx)(`p`,{className:`text-destructive`,children:c(u.detailError?`detailError`:`readError`)}),(0,w.jsx)(l,{variant:`outline`,size:`sm`,onClick:u.refresh,children:c(`retry`)})]}),!b&&!y&&!u.demonstration&&(0,w.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:c(v)}),u.demonstration&&(0,w.jsx)(E,{demonstration:u.demonstration})]})]})})};export{P as DemonstrationDialog};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-BNv3lrIs.js";import{H as t,L as n,a as r,c as i,d as a,i as o,m as s,n as c,nt as l,p as u,q as d,r as ee,t as f}from"./IconX-sSpA2ejo.js";import{n as p,r as m,t as h}from"./input-AZAw9vJs.js";import{a as g,c as te,i as _,l as ne,n as v,r as y,s as re,t as ie}from"./IconGitHubActions-CjswQj_b.js";import{i as b,n as x,t as ae}from"./tabActivation-8_2uxVyZ.js";import{t as S}from"./badge-Bnvptskz.js";import{t as C}from"./IconPlay-B8gyjngb.js";var w=e(l(),1),T=n(),E=e=>m.t(`common:githubActions.${e}`),D=e=>E(`status.${e}`),O=e=>e?E(`conclusion.${e}`):null,k=e=>e.status===`completed`?e.conclusion===`success`?`border-emerald-400/40 bg-emerald-500/10 text-emerald-200`:e.conclusion===`failure`||e.conclusion===`timed_out`?`border-rose-400/40 bg-rose-500/10 text-rose-200`:e.conclusion===`cancelled`?`border-amber-400/40 bg-amber-500/10 text-amber-200`:`border-border/70 bg-background/60 text-muted-foreground`:e.status===`in_progress`?`border-sky-400/40 bg-sky-500/10 text-sky-200`:e.status===`queued`?`border-violet-400/40 bg-violet-500/10 text-violet-200`:`border-border/70 bg-background/60 text-muted-foreground`,A=e=>e.status===`completed`?e.conclusion===`success`?`border-emerald-400/30 bg-emerald-500/10 text-emerald-200`:e.conclusion===`failure`?`border-rose-400/30 bg-rose-500/10 text-rose-200`:`border-border/70 bg-background/60 text-muted-foreground`:e.status===`in_progress`?`border-sky-400/30 bg-sky-500/10 text-sky-200`:`border-border/70 bg-background/60 text-muted-foreground`,j=e=>{let t=e.run_started_at??e.created_at,n=e.updated_at;if(!t||!n)return null;let r=Date.parse(t),i=Date.parse(n);if(!Number.isFinite(r)||!Number.isFinite(i)||i<r)return null;let a=i-r;if(a<1e3)return`${a} ms`;let o=Math.floor(a/1e3),s=Math.floor(o/3600),c=Math.floor(o%3600/60),l=o%60;return s>0?`${s}h ${c}m ${l}s`:c>0?`${c}m ${l}s`:`${(a/1e3).toFixed(a>=1e4?0:1)} s`},M=e=>e.status===`completed`?O(e.conclusion)??E(`status.completed`):D(e.status),N=({job:e})=>e.steps.length===0?null:(0,T.jsx)(`div`,{className:`mt-2 ml-4 space-y-1 border-l border-border/60 pl-4`,children:e.steps.map(t=>(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,T.jsx)(S,{variant:`outline`,className:s(`px-2 py-0 text-[10px] uppercase tracking-[0.16em]`,A(t)),children:t.status===`completed`?O(t.conclusion)??E(`status.completed`):D(t.status)}),(0,T.jsx)(`span`,{className:`truncate text-[11px] text-muted-foreground`,children:t.name})]},`${e.id}-${t.number}`))}),P=({run:e})=>{let t=j(e);return(0,T.jsxs)(`div`,{className:`rounded-2xl border border-border/60 bg-background/20 px-4 py-3`,children:[(0,T.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,T.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,T.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e.name??`#${e.id}`}),(0,T.jsx)(S,{variant:`outline`,className:s(`px-2 py-0.5 text-[10px] uppercase tracking-[0.18em]`,k(e)),children:M(e)})]}),(0,T.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[t&&(0,T.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:t}),e.html_url&&(0,T.jsxs)(`a`,{href:e.html_url,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-[11px] text-sky-200 hover:text-sky-100`,children:[E(`actions.openOnGithub`),(0,T.jsx)(y,{className:`h-3 w-3`})]})]})]}),e.head_branch&&(0,T.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,children:e.head_branch}),e.jobs.map(e=>(0,T.jsxs)(`div`,{className:`mt-2`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,T.jsx)(S,{variant:`outline`,className:s(`px-2 py-0 text-[10px] uppercase tracking-[0.16em]`,k(e)),children:M(e)}),(0,T.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e.name})]}),(0,T.jsx)(N,{job:e})]},e.id))]})},F=({tracked:e,isDismissing:t,onDismiss:n})=>{let r=e.state===`resolving`,i=e.run===null&&(e.execution_status===`failed`||e.execution_status===`interrupted`),a=e.failure?.message??E(`runs.trackingState.${e.state}`);return(0,T.jsxs)(`div`,{className:s(`flex items-start gap-2 rounded-2xl border px-4 py-3`,r?`border-border/60 bg-background/20`:`border-red-400/25 bg-red-500/8`),children:[r&&(0,T.jsx)(p,{className:`mt-0.5 h-3.5 w-3.5 animate-spin text-muted-foreground`}),(0,T.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,T.jsx)(`span`,{className:s(`block break-words text-xs`,r?`text-muted-foreground`:`text-red-200`),children:a}),(0,T.jsx)(`span`,{className:`mt-1 block text-[11px] text-muted-foreground`,children:e.ref??E(`runs.unknownRef`)})]}),i&&(0,T.jsxs)(u,{type:`button`,variant:`ghost`,size:`sm`,disabled:t,onClick:()=>n(e.execution_run_id),children:[t&&(0,T.jsx)(p,{className:`h-3.5 w-3.5 animate-spin`}),E(`actions.dismiss`)]})]})},oe=({runs:e,trackedRuns:t,dismissingIds:n,onDismiss:r})=>(0,T.jsxs)(`section`,{className:`flex min-h-0 flex-col gap-3 overflow-y-auto px-4 py-4`,children:[(0,T.jsx)(`p`,{className:`text-xs uppercase tracking-[0.22em] text-muted-foreground`,children:E(`runs.title`)}),t.map(e=>(0,T.jsx)(F,{tracked:e,isDismissing:n.has(e.execution_run_id),onDismiss:r},e.execution_run_id)),e.map(e=>(0,T.jsx)(P,{run:e},e.id)),e.length===0&&t.length===0&&(0,T.jsx)(`div`,{className:`rounded-2xl border border-dashed border-border/70 bg-background/20 px-4 py-5 text-sm text-muted-foreground`,children:E(`runs.empty`)})]}),I=`https://docs.github.com/en/actions`,L=5e3,R=(e,t)=>m.t(`common:githubActions.${e}`,t),z=e=>{let t={};for(let n of e){if(n.type===`boolean`){t[n.name]=n.default===!0;continue}typeof n.default==`string`&&n.default!==``&&(t[n.name]=n.default)}return t},B=({workflow:e,inputsState:t,isSelected:n,onSelect:r})=>{let i=e.state===`active`,a=t?.dispatchable??!0,o=i&&a&&!t?.isLoading,c=e.path.split(`/`).pop();return(0,T.jsxs)(`div`,{className:s(`flex flex-col gap-3 rounded-2xl border px-4 py-3 transition-colors`,n?`border-sky-400/45 bg-sky-500/10`:`border-border/60 bg-background/20 hover:bg-accent/20`),children:[(0,T.jsx)(`p`,{className:`line-clamp-2 break-words text-sm font-medium text-foreground`,children:e.name}),(0,T.jsx)(`p`,{className:`min-w-0 break-words text-[11px] text-muted-foreground`,children:c}),(0,T.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,T.jsx)(S,{variant:`outline`,className:s(`px-2 py-0.5 text-[10px] uppercase tracking-[0.18em]`,i?`border-emerald-400/30 bg-emerald-500/10 text-emerald-200`:`border-border/70 bg-background/60 text-muted-foreground`),children:R(i?`workflows.stateActive`:`workflows.stateDisabled`)}),(0,T.jsxs)(u,{type:`button`,variant:n?`secondary`:`outline`,size:`sm`,className:`h-8 gap-1.5 px-3 text-xs`,disabled:!o,"aria-label":R(`workflows.runAriaLabel`,{name:e.name}),title:!a&&t?R(`inputs.notDispatchable`):void 0,onClick:r,children:[t?.isLoading?(0,T.jsx)(p,{className:`h-3.5 w-3.5 animate-spin`}):(0,T.jsx)(C,{className:`h-3.5 w-3.5`}),(0,T.jsx)(`span`,{children:R(`actions.run`)})]})]})]})},se=({workflow:e,inputsState:t,refValue:n,onRefChange:r,values:i,onValueChange:a,isDispatching:o,onDispatch:s,onCancel:c})=>{let l=t.inputs.filter(e=>e.required&&!V(i[e.name],e)),d=t.dispatchable&&!t.isLoading&&!t.error&&n.trim()!==``&&l.length===0&&!o;return(0,T.jsxs)(`div`,{className:`space-y-4 rounded-2xl border border-border/70 bg-background/20 p-4`,children:[(0,T.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,T.jsxs)(`div`,{className:`min-w-0`,children:[(0,T.jsx)(`p`,{className:`text-xs uppercase tracking-[0.22em] text-muted-foreground`,children:R(`inputs.title`)}),(0,T.jsx)(`p`,{className:`mt-0.5 truncate text-sm font-medium text-foreground`,children:e.name})]}),(0,T.jsx)(u,{type:`button`,variant:`ghost`,size:`icon-sm`,"aria-label":R(`actions.cancel`),onClick:c,children:(0,T.jsx)(f,{className:`h-4 w-4`})})]}),(0,T.jsxs)(`div`,{className:`space-y-2`,children:[(0,T.jsx)(x,{htmlFor:`github-actions-ref`,children:R(`inputs.refLabel`)}),(0,T.jsx)(h,{id:`github-actions-ref`,type:`text`,value:n,onChange:e=>{r(e.target.value)},placeholder:R(`inputs.refPlaceholder`),"aria-label":R(`inputs.refAriaLabel`)})]}),t.isLoading&&(0,T.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,T.jsx)(p,{className:`h-3.5 w-3.5 animate-spin`}),(0,T.jsx)(`span`,{children:R(`inputs.loading`)})]}),t.error&&(0,T.jsx)(`p`,{className:`text-xs text-rose-200`,children:t.error}),!t.dispatchable&&!t.isLoading&&!t.error&&(0,T.jsx)(`p`,{className:`text-xs text-amber-200`,children:R(`inputs.notDispatchable`)}),t.inputs.map(e=>(0,T.jsx)(H,{input:e,value:i[e.name],onChange:t=>{a(e.name,t)}},e.name)),l.length>0&&(0,T.jsx)(`p`,{className:`text-xs text-rose-200`,children:R(`inputs.requiredValidationError`)}),(0,T.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,T.jsx)(u,{type:`button`,variant:`ghost`,onClick:c,disabled:o,children:R(`actions.cancel`)}),(0,T.jsxs)(u,{type:`button`,variant:`success`,onClick:s,disabled:!d,children:[o?(0,T.jsx)(p,{className:`h-4 w-4 animate-spin`}):(0,T.jsx)(C,{className:`h-4 w-4`}),(0,T.jsx)(`span`,{children:R(`actions.dispatch`)})]})]})]})},V=(e,t)=>t.type===`boolean`?typeof e==`boolean`:typeof e==`string`&&e.trim()!==``,H=({input:e,value:t,onChange:n})=>{let r=`github-actions-input-${e.name}`;return(0,T.jsxs)(`div`,{className:`space-y-2`,children:[(0,T.jsxs)(x,{htmlFor:r,className:`flex items-center gap-2`,children:[(0,T.jsx)(`span`,{children:e.name}),e.required&&(0,T.jsx)(`span`,{className:`text-[10px] uppercase tracking-[0.18em] text-rose-200/80`,children:R(`inputs.requiredLabel`)})]}),e.description&&(0,T.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:e.description}),U(e,r,t,n)]})},U=(e,t,n,r)=>{if(e.type===`boolean`){let i=typeof n==`boolean`?n:e.default===!0;return(0,T.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,T.jsx)(v,{id:t,checked:i,onCheckedChange:e=>{r(e)}}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:R(i?`inputs.booleanYes`:`inputs.booleanNo`)})]})}if(e.type===`choice`){let i=e.options??[],a=typeof n==`string`?n:typeof e.default==`string`?e.default:``;return(0,T.jsxs)(`select`,{id:t,className:`h-9 w-full rounded-lg border border-border/70 bg-background/60 px-3 text-sm text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,value:a,onChange:e=>{r(e.target.value)},children:[a===``&&(0,T.jsx)(`option`,{value:``,children:R(`inputs.selectPlaceholder`)}),i.map(e=>(0,T.jsx)(`option`,{value:e,children:e},e))]})}return(0,T.jsx)(h,{id:t,type:`text`,value:typeof n==`string`?n:typeof e.default==`string`?e.default:``,onChange:e=>{r(e.target.value)}})},W=(e,t)=>{let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||(e.updated_at??``)>=(t.updated_at??``))&&n.set(e.id,e)}return[...n.values()]},G=(e,t)=>{let n=new Map(e.map(e=>[e.execution_run_id,e]));for(let e of t){let t=n.get(e.execution_run_id),r=t&&![`queued`,`waiting`,`running`].includes(t.execution_status),i=[`queued`,`waiting`,`running`].includes(e.execution_status);(!r||!i)&&n.set(e.execution_run_id,e)}return[...n.values()]},ce=(e,t,n)=>{let r=t.filter(e=>e.run===null),i=new Set(r.map(e=>e.tracking_key));return G(e.filter(e=>i.has(e.tracking_key)||n.get(e.tracking_key)?.run===null),r.filter(e=>!n.has(e.tracking_key)))},le=e=>({ref:e??`main`}),K=({projectId:e,defaultBranch:n,onClose:s})=>{let[l,m]=(0,w.useState)([]),[h,v]=(0,w.useState)(!0),[x,S]=(0,w.useState)(null),[C,E]=(0,w.useState)([]),[D,O]=(0,w.useState)([]),[k,A]=(0,w.useState)({}),[j,M]=(0,w.useState)(null),[N,P]=(0,w.useState)(!1),[F]=(0,w.useState)(()=>le(n)),V=(0,w.useRef)({}),H=(0,w.useRef)({}),U=(0,w.useRef)(null),G=(0,w.useRef)(!1),K=(0,w.useRef)(0),q=(0,w.useRef)(new Map),J=(0,w.useRef)(new Set),Y=(0,w.useRef)(new Set),[ue,X]=(0,w.useState)(new Set),de=(0,w.useCallback)(async n=>{if(!Y.current.has(n)){Y.current.add(n),X(new Set(Y.current));try{await _(e,n),J.current.add(n),O(e=>e.filter(e=>e.execution_run_id!==n))}catch(e){b.error(e instanceof t?e.message:R(`messages.dismissError`))}finally{Y.current.delete(n),X(new Set(Y.current))}}},[e]),Z=(0,w.useCallback)(async n=>{A(e=>{let t=e[n.id];return t?.isLoading?e:{...e,[n.id]:{inputs:t?.inputs??[],dispatchable:t?.dispatchable??!0,isLoading:!0,error:null}}});try{let t=await re(e,n.id,n.path);return A(e=>({...e,[n.id]:{inputs:t.inputs,dispatchable:t.dispatchable,isLoading:!1,error:null}})),t}catch(e){return A(r=>({...r,[n.id]:{inputs:[],dispatchable:!0,isLoading:!1,error:e instanceof t?e.message:R(`workflows.loadError`)}})),null}},[e]),Q=(0,w.useCallback)(async()=>{v(!0),S(null);try{let t=await ne(e);m(t.workflows),Promise.allSettled(t.workflows.map(e=>Z(e)))}catch(e){S(e instanceof t?e.message:R(`workflows.loadError`))}finally{v(!1)}},[Z,e]),$=(0,w.useCallback)(async t=>{if(G.current)return;G.current=!0;let n=K.current;try{let r=await te(e,t);E(e=>W(e,r.runs)),O(e=>{let t=new Map([...q.current.entries()].filter(([,e])=>e.revision>n).map(([e,t])=>[e,t.event]));return ce(e,r.tracked_runs??[],t).filter(e=>!J.current.has(e.execution_run_id))})}catch(e){d(e)||console.warn(`[github-actions] unable to load runs`,e)}finally{G.current=!1}},[e]);(0,w.useEffect)(()=>{Q()},[Q]),(0,w.useEffect)(()=>{let e=new AbortController,t=()=>{document.visibilityState===`visible`&&$(e.signal)};t();let n=window.setInterval(t,L),r=ae(t);return()=>{e.abort(),window.clearInterval(n),r()}},[$]);let fe=(0,w.useCallback)(async e=>{if(j?.workflow.id===e.id)return;U.current=e.id,M({workflow:e,ref:F.ref,values:{}});let t=k[e.id];if(t&&!t.isLoading&&!t.error){M(n=>!n||n.workflow.id!==e.id?n:{...n,values:z(t.inputs)});return}let n=await Z(e);n&&M(t=>!t||t.workflow.id!==e.id?t:{...t,values:z(n.inputs)})},[F.ref,k,Z,j]),pe=(0,w.useCallback)(async()=>{if(!j)return;let n=k[j.workflow.id];if(!n||!n.dispatchable)return;P(!0);let r={};for(let e of n.inputs){let t=j.values[e.name];e.type===`boolean`?r[e.name]=typeof t==`boolean`?t:e.default===!0:typeof t==`string`&&t!==``?r[e.name]=t:typeof e.default==`string`&&e.default!==``&&(r[e.name]=e.default)}try{await g(e,j.workflow.id,{ref:j.ref,workflowName:j.workflow.name,workflowUrl:j.workflow.url,inputs:r}),b.success(R(`messages.dispatched`)),M(null),$()}catch(e){b.error(e instanceof t?e.message:R(`messages.dispatchError`))}finally{P(!1)}},[k,$,e,j]);(0,w.useEffect)(()=>{let t=t=>{!t||t.project_id!==e||J.current.has(t.execution_run_id)||(K.current+=1,q.current.set(t.tracking_key,{revision:K.current,event:t}),O(e=>{let n=e.filter(e=>e.tracking_key!==t.tracking_key);return t.run||J.current.has(t.execution_run_id)?n:[...n,t]}),t.run&&E(e=>W(e,[t.run])))};return a.on(`github-actions:updated`,t),()=>{a.off(`github-actions:updated`,t)}},[e]),(0,w.useEffect)(()=>{let e=j?.workflow.id;!e||U.current!==e||(V.current[e]?.scrollIntoView({block:`nearest`}),H.current[e]?.scrollIntoView({block:`nearest`}),U.current=null)},[j?.workflow.id]);let me=(0,w.useMemo)(()=>[...C].sort((e,t)=>{let n=e.updated_at?Date.parse(e.updated_at):0;return(t.updated_at?Date.parse(t.updated_at):0)-n}),[C]);return(0,T.jsx)(c,{open:!0,onOpenChange:e=>{e||s()},children:(0,T.jsxs)(o,{showCloseButton:!1,overlayClassName:`bg-black/70`,className:`flex h-[calc(100vh-2rem)] max-h-[58rem] w-full max-w-[calc(100%-1rem)] flex-col gap-0 overflow-hidden rounded-3xl border border-[#2a2a38] bg-[#16161f] p-0 shadow-2xl sm:max-w-5xl`,onInteractOutside:e=>e.preventDefault(),children:[(0,T.jsx)(i,{className:`sr-only`,children:R(`dialog.srTitle`)}),(0,T.jsx)(r,{className:`sr-only`,children:R(`dialog.srDescription`)}),(0,T.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-b border-border px-6 py-4`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,T.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-2xl border border-border/70 bg-background/60 text-violet-200`,children:(0,T.jsx)(ie,{className:`h-5 w-5`})}),(0,T.jsx)(`div`,{children:(0,T.jsx)(`h2`,{className:`text-2xl font-semibold text-foreground`,children:R(`dialog.title`)})})]}),(0,T.jsx)(ee,{asChild:!0,children:(0,T.jsx)(u,{type:`button`,"aria-label":R(`dialog.closeAriaLabel`),variant:`ghost`,size:`icon-sm`,className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:(0,T.jsx)(f,{className:`h-4 w-4`})})})]}),(0,T.jsxs)(`div`,{className:`grid min-h-0 flex-1 gap-0 overflow-hidden lg:grid-cols-[22rem_minmax(0,1fr)]`,children:[(0,T.jsxs)(`aside`,{"aria-label":R(`workflows.ariaLabel`),className:`flex min-h-0 flex-col gap-3 overflow-y-auto border-b border-border/70 px-4 py-4 lg:border-r lg:border-b-0`,children:[(0,T.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,T.jsx)(`p`,{className:`text-xs uppercase tracking-[0.22em] text-muted-foreground`,children:R(`workflows.title`)}),(0,T.jsx)(u,{type:`button`,variant:`ghost`,size:`sm`,className:`h-7 px-2 text-xs text-muted-foreground hover:text-foreground`,onClick:()=>{Q(),$()},children:R(`actions.refresh`)})]}),h&&(0,T.jsxs)(`div`,{className:`flex items-center gap-2 px-2 text-xs text-muted-foreground`,children:[(0,T.jsx)(p,{className:`h-3.5 w-3.5 animate-spin`}),(0,T.jsx)(`span`,{children:R(`workflows.loading`)})]}),x&&(0,T.jsx)(`div`,{className:`rounded-2xl border border-rose-500/30 bg-rose-500/10 px-4 py-3 text-sm text-rose-200`,children:x}),!h&&l.length===0&&!x&&(0,T.jsxs)(`div`,{className:`rounded-2xl border border-dashed border-border/70 bg-background/20 px-4 py-5 text-sm text-muted-foreground`,children:[(0,T.jsx)(`p`,{children:R(`workflows.empty`)}),(0,T.jsx)(`p`,{className:`mt-1`,children:R(`workflows.emptyHint`)}),(0,T.jsxs)(`a`,{href:I,target:`_blank`,rel:`noreferrer`,className:`mt-2 inline-flex items-center gap-1 text-xs text-sky-200 hover:text-sky-100`,children:[R(`workflows.docsLink`),(0,T.jsx)(y,{className:`h-3 w-3`})]})]}),(0,T.jsx)(`div`,{className:`space-y-2`,children:l.map(e=>{let t=j?.workflow.id===e.id;return(0,T.jsxs)(`div`,{className:`space-y-2`,children:[(0,T.jsx)(`div`,{ref:t=>{V.current[e.id]=t},children:(0,T.jsx)(B,{workflow:e,inputsState:k[e.id]??null,isSelected:t,onSelect:()=>{fe(e)}})}),t&&j&&(0,T.jsx)(`div`,{ref:t=>{H.current[e.id]=t},children:(0,T.jsx)(se,{workflow:e,inputsState:k[e.id]??{inputs:[],dispatchable:!0,isLoading:!1,error:null},refValue:j.ref,onRefChange:e=>{M(t=>t&&{...t,ref:e})},values:j.values,onValueChange:(e,t)=>{M(n=>n&&{...n,values:{...n.values,[e]:t}})},isDispatching:N,onDispatch:()=>{pe()},onCancel:()=>{M(null)}})})]},e.id)})})]}),(0,T.jsx)(oe,{runs:me,trackedRuns:D,dismissingIds:ue,onDismiss:e=>{de(e)}})]})]})})};export{K as GitHubActionsDialog};
@@ -1 +1 @@
1
- import{L as e,u as t}from"./IconX-TosfRQdR.js";var n=t(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),r=e(),i=({className:e})=>(0,r.jsx)(n,{"aria-hidden":`true`,className:e});export{i as t};
1
+ import{L as e,u as t}from"./IconX-sSpA2ejo.js";var n=t(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),r=e(),i=({className:e})=>(0,r.jsx)(n,{"aria-hidden":`true`,className:e});export{i as t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-BNv3lrIs.js";import{A as t,J as n,L as r,M as i,O as a,X as o,j as s,m as c,nt as l,u,z as d}from"./IconX-sSpA2ejo.js";import{i as f,r as p}from"./input-AZAw9vJs.js";var m=e(l(),1);function h(e){let t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var g=r(),_=`Switch`,[v,y]=s(_),[b,x]=v(_),S=m.forwardRef((e,n)=>{let{__scopeSwitch:r,name:o,checked:s,defaultChecked:c,required:l,disabled:u,value:f=`on`,onCheckedChange:p,form:h,...v}=e,[y,x]=m.useState(null),S=d(n,e=>x(e)),C=m.useRef(!1),w=y?h||!!y.closest(`form`):!0,[T,O]=a({prop:s,defaultProp:c??!1,onChange:p,caller:_});return(0,g.jsxs)(b,{scope:r,checked:T,disabled:u,children:[(0,g.jsx)(i.button,{type:`button`,role:`switch`,"aria-checked":T,"aria-required":l,"data-state":D(T),"data-disabled":u?``:void 0,disabled:u,value:f,...v,ref:S,onClick:t(e.onClick,e=>{O(e=>!e),w&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),w&&(0,g.jsx)(E,{control:y,bubbles:!C.current,name:o,value:f,checked:T,required:l,disabled:u,form:h,style:{transform:`translateX(-100%)`}})]})});S.displayName=_;var C=`SwitchThumb`,w=m.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,a=x(C,n);return(0,g.jsx)(i.span,{"data-state":D(a.checked),"data-disabled":a.disabled?``:void 0,...r,ref:t})});w.displayName=C;var T=`SwitchBubbleInput`,E=m.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=m.useRef(null),s=d(o,a),c=h(n),l=f(t);return m.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,g.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...l,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});E.displayName=T;function D(e){return e?`checked`:`unchecked`}var O=S,k=w,A=u(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),j=(e,t)=>o(n(`/integrations/github/actions/runs/${encodeURIComponent(t)}/dismiss`,e),{method:`POST`,fallbackErrorMessage:p.t(`common:githubActions.messages.dismissError`)}),M=(e,t)=>o(n(`/integrations/github/actions/workflows`,e),{signal:t,fallbackErrorMessage:`Unable to load GitHub Actions workflows right now.`}),N=(e,t,r,i)=>o(`${n(`/integrations/github/actions/workflows/${t}/inputs`,e)}&path=${encodeURIComponent(r)}`,{signal:i,fallbackErrorMessage:`Unable to load the workflow inputs right now.`}),P=(e,t,r)=>o(n(`/integrations/github/actions/workflows/${t}/dispatch`,e),{method:`POST`,body:r,fallbackErrorMessage:`Unable to dispatch the workflow right now.`}),F=(e,t)=>o(n(`/integrations/github/actions/runs`,e),{signal:t,fallbackErrorMessage:`Unable to load GitHub Actions runs right now.`}),I=(e,t)=>o(n(`/integrations/github/actions/active-count`,e),{signal:t,fallbackErrorMessage:`Unable to load the GitHub Actions activity state right now.`}),L=({className:e})=>(0,g.jsx)(A,{"aria-hidden":`true`,className:e}),R=({className:e,...t})=>(0,g.jsx)(O,{"data-slot":`switch`,className:c(`peer inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-input/70 transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary`,e),...t,children:(0,g.jsx)(k,{"data-slot":`switch-thumb`,className:`pointer-events-none block h-5 w-5 rounded-full bg-white shadow-sm ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0`})}),z=({className:e})=>(0,g.jsx)(`svg`,{"aria-hidden":`true`,className:e,viewBox:`0 0 16 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:(0,g.jsx)(`path`,{d:`M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.65 7.65 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z`})});export{P as a,F as c,j as i,M as l,R as n,I as o,L as r,N as s,z as t};
@@ -1 +1 @@
1
- import{L as e,u as t}from"./IconX-TosfRQdR.js";var n=t(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),r=e(),i=({className:e})=>(0,r.jsx)(n,{"aria-hidden":`true`,className:e});export{i as t};
1
+ import{L as e,u as t}from"./IconX-sSpA2ejo.js";var n=t(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),r=e(),i=({className:e})=>(0,r.jsx)(n,{"aria-hidden":`true`,className:e});export{i as t};