@nodefony/studio 10.0.0-alpha.9 → 10.0.0-beta.1

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 (186) hide show
  1. package/dist/frontend/assets/Accordion-BAM04GkA.js +1 -0
  2. package/dist/frontend/assets/{ActionsLiveGraph-Bx-VAwSQ.js → ActionsLiveGraph-DElorih7.js} +1 -1
  3. package/dist/frontend/assets/ApiKeys-DUFEmztD.js +2 -0
  4. package/dist/frontend/assets/{ArchitectureLiveGraph-c9ij2hXd.js → ArchitectureLiveGraph-DtEEAX-7.js} +1 -1
  5. package/dist/frontend/assets/Audit-CHKUoWSq.js +1 -0
  6. package/dist/frontend/assets/{BackplaneLiveGraph-ClFqSiw0.js → BackplaneLiveGraph-BvW5n_f3.js} +1 -1
  7. package/dist/frontend/assets/Breadcrumbs-DGMRS1UW.js +1 -0
  8. package/dist/frontend/assets/BrickStoreChip-DcY8pmbU.js +1 -0
  9. package/dist/frontend/assets/Chat-Cy0RVpHa.js +1 -0
  10. package/dist/frontend/assets/Chip-DDKY2Zes.js +1 -0
  11. package/dist/frontend/assets/Cluster-FMiGMEv1.js +1 -0
  12. package/dist/frontend/assets/{Collapse-B5eGiuCX.js → Collapse-CGrQIFkK.js} +1 -1
  13. package/dist/frontend/assets/ConfigPage-CUKniBwF.js +1 -0
  14. package/dist/frontend/assets/ConnectorCard-B9hlyKV8.js +11 -0
  15. package/dist/frontend/assets/Create-B9slJ_uv.js +2 -0
  16. package/dist/frontend/assets/DashboardSupervision-CA9Q1FOL.js +1 -0
  17. package/dist/frontend/assets/Database-CtWeoPkE.js +1 -0
  18. package/dist/frontend/assets/{DbLogo-bnxDpPCc.js → DbLogo-GLR4nK70.js} +1 -1
  19. package/dist/frontend/assets/Documentation-DJ5jRGLm.js +1 -0
  20. package/dist/frontend/assets/{FanOutLiveGraph--yUP7s0q.js → FanOutLiveGraph-RLlPWmgy.js} +1 -1
  21. package/dist/frontend/assets/Firewall-2smdVN8i.js +1 -0
  22. package/dist/frontend/assets/{IconAdjustments-CEO4pz7R.js → IconAdjustments-DkvnYkMb.js} +1 -1
  23. package/dist/frontend/assets/{IconAdjustmentsAlt-DYl6o1yP.js → IconAdjustmentsAlt-DRlUsj2g.js} +1 -1
  24. package/dist/frontend/assets/{IconAdjustmentsHorizontal-CYIfkQ32.js → IconAdjustmentsHorizontal-BWH6Gww9.js} +1 -1
  25. package/dist/frontend/assets/{IconAffiliate-16u_-89E.js → IconAffiliate-BPikozV5.js} +1 -1
  26. package/dist/frontend/assets/{IconApps-DnbLWbFB.js → IconApps-D4mjcmMe.js} +1 -1
  27. package/dist/frontend/assets/{IconArchive-pjMSl5G0.js → IconArchive-BBja3nOI.js} +1 -1
  28. package/dist/frontend/assets/{IconArrowDown-C68QshWb.js → IconArrowDown-BmqnrcMT.js} +1 -1
  29. package/dist/frontend/assets/{IconArrowLeft-BFRWjzmv.js → IconArrowLeft-DzwWxljv.js} +1 -1
  30. package/dist/frontend/assets/{IconArrowUp-L4PIvFFw.js → IconArrowUp-CJuE-utj.js} +1 -1
  31. package/dist/frontend/assets/IconArrowsExchange-BpW2LKQ2.js +1 -0
  32. package/dist/frontend/assets/{IconArrowsSplit2-E-Iei2rZ.js → IconArrowsSplit2-Dp2-3X4A.js} +1 -1
  33. package/dist/frontend/assets/IconBan-CTf_hDlG.js +1 -0
  34. package/dist/frontend/assets/{IconBook-Bwvwi82q.js → IconBook-C-1bC2yl.js} +1 -1
  35. package/dist/frontend/assets/{IconCircleCheck-C7X9y_z5.js → IconCircleCheck-ecj-N4o7.js} +1 -1
  36. package/dist/frontend/assets/{IconCircleDot-wxznCU9D.js → IconCircleDot-DGU8_s3I.js} +1 -1
  37. package/dist/frontend/assets/IconCircuitResistor-Cv8MwkdI.js +1 -0
  38. package/dist/frontend/assets/{IconCode-9RsxVkXP.js → IconCode-Dt6cCbjC.js} +1 -1
  39. package/dist/frontend/assets/{IconDeviceDesktop-C9GNnLQs.js → IconDeviceDesktop-HhPv0iiX.js} +1 -1
  40. package/dist/frontend/assets/{IconDots-Cqk6qziZ.js → IconDots-BD-Udu9m.js} +1 -1
  41. package/dist/frontend/assets/{IconDownload-Bl7fihEI.js → IconDownload-CRaiz39P.js} +1 -1
  42. package/dist/frontend/assets/{IconEye-C5h5xGRG.js → IconEye-Bu6XBRa-.js} +1 -1
  43. package/dist/frontend/assets/{IconFile-Q4hjrfUx.js → IconFile-Dy8Ll4h4.js} +1 -1
  44. package/dist/frontend/assets/{IconFolder-BVNtaq_k.js → IconFolder-qwDkwZSK.js} +1 -1
  45. package/dist/frontend/assets/{IconGitBranch-CO6WF19I.js → IconGitBranch-ijcQ6nm2.js} +1 -1
  46. package/dist/frontend/assets/{IconHeartRateMonitor-BlwaRgf8.js → IconHeartRateMonitor-DHiT1kKG.js} +1 -1
  47. package/dist/frontend/assets/{IconHelpCircle-B_Ar83Op.js → IconHelpCircle-hl2uKuJM.js} +1 -1
  48. package/dist/frontend/assets/{IconLayoutGrid-BDiUezo4.js → IconLayoutGrid-GEKpQgvX.js} +1 -1
  49. package/dist/frontend/assets/{IconNetwork-DibUvoc1.js → IconNetwork-Bpr-Mn_W.js} +1 -1
  50. package/dist/frontend/assets/{IconPackages-DqHJDiXB.js → IconPackages-CzxrdrDv.js} +1 -1
  51. package/dist/frontend/assets/{IconPencil-DydgnmQR.js → IconPencil-CeOoC3Dj.js} +1 -1
  52. package/dist/frontend/assets/{IconPlayerPause-BaMXYCnh.js → IconPlayerPause-4xXttjFJ.js} +1 -1
  53. package/dist/frontend/assets/IconPlayerPlay-B01YvziL.js +1 -0
  54. package/dist/frontend/assets/IconPlus-CLDtvWyl.js +1 -0
  55. package/dist/frontend/assets/{IconPuzzle-nfmgGGqt.js → IconPuzzle-CKZj3-KL.js} +1 -1
  56. package/dist/frontend/assets/{IconRecycle-Doc4V7D2.js → IconRecycle-CMZr3Ffi.js} +1 -1
  57. package/dist/frontend/assets/{IconSend-BoLW0rbg.js → IconSend-g3Yt0Ziv.js} +1 -1
  58. package/dist/frontend/assets/{IconServer2-MHcdXuTI.js → IconServer2-C7CNfhUy.js} +1 -1
  59. package/dist/frontend/assets/{IconShieldOff-X7hylh0H.js → IconShieldOff-CwbiK-kg.js} +1 -1
  60. package/dist/frontend/assets/{IconSitemap-D78aPiA6.js → IconSitemap-D75ito4t.js} +1 -1
  61. package/dist/frontend/assets/{IconStack2-DVKXvSgU.js → IconStack2-DVPsgpSU.js} +1 -1
  62. package/dist/frontend/assets/{IconTerminal2-Cwt77uSB.js → IconTerminal2-BN9iTSgV.js} +1 -1
  63. package/dist/frontend/assets/{IconUserOff-DsM8DIij.js → IconUserOff-_kCkl85B.js} +1 -1
  64. package/dist/frontend/assets/{IconWorld-BQMUVV9m.js → IconWorld-B8af-nrW.js} +1 -1
  65. package/dist/frontend/assets/List-D2g5RQI5.js +1 -0
  66. package/dist/frontend/assets/LogVisuals-ATFNIkj4.js +1 -0
  67. package/dist/frontend/assets/Logs-Dg9lxlFw.js +1 -0
  68. package/dist/frontend/assets/Migrations-CbmgWYkT.js +3 -0
  69. package/dist/frontend/assets/ModuleDetail-D2kZALJa.js +1 -0
  70. package/dist/frontend/assets/Modules-B1hX60hm.js +1 -0
  71. package/dist/frontend/assets/OrmConnector-gJr5z6vZ.js +1 -0
  72. package/dist/frontend/assets/OrmEntity-CMSutgpJ.js +1 -0
  73. package/dist/frontend/assets/OrmOverview-C0vfGJ25.js +1 -0
  74. package/dist/frontend/assets/OrmWorker-C99UGFCH.js +1 -0
  75. package/dist/frontend/assets/Playground-Bfa_lpCD.js +1 -0
  76. package/dist/frontend/assets/{ProbesLiveGraph-CqWtsFFE.js → ProbesLiveGraph-Do81Sb2J.js} +1 -1
  77. package/dist/frontend/assets/{Profile-C0ftKGCQ.js → Profile-DF8FS7PB.js} +2 -2
  78. package/dist/frontend/assets/ProfileFields-CQlenWB6.js +1 -0
  79. package/dist/frontend/assets/Progress-CrfNH4tx.js +1 -0
  80. package/dist/frontend/assets/{ProtocoleLiveGraph-CzXvEgdm.js → ProtocoleLiveGraph-rBUnBHyz.js} +1 -1
  81. package/dist/frontend/assets/RealtimeConsole-BKiCkyyc.js +1 -0
  82. package/dist/frontend/assets/{RingProgress-BvBrCwft.js → RingProgress-C7yna-SJ.js} +1 -1
  83. package/dist/frontend/assets/Roadmap-BqAS8Dkv.js +1 -0
  84. package/dist/frontend/assets/RoleSwitch-D-sQaoTm.js +1 -0
  85. package/dist/frontend/assets/{Roles-BgU7IE5K.js → Roles-BULejn3C.js} +1 -1
  86. package/dist/frontend/assets/{RoutesView-zoCMzANk.js → RoutesView-CNyYzs7W.js} +1 -1
  87. package/dist/frontend/assets/Runtime-CZN7ZC-h.js +1 -0
  88. package/dist/frontend/assets/Sessions-D2jVkUgA.js +1 -0
  89. package/dist/frontend/assets/Skeleton-BXa8Fsyf.js +1 -0
  90. package/dist/frontend/assets/Slider-DhuTBzZ6.js +1 -0
  91. package/dist/frontend/assets/StoresView-D1b1q6iD.js +1 -0
  92. package/dist/frontend/assets/System-C0I4tKcT.js +1 -0
  93. package/dist/frontend/assets/TagsInput-l0AxZYrB.js +1 -0
  94. package/dist/frontend/assets/{Textarea-Dk7ghycM.js → Textarea-DJZubDtm.js} +1 -1
  95. package/dist/frontend/assets/TraceView-ClqCxi9u.js +1 -0
  96. package/dist/frontend/assets/Twin-CmY-WPcg.js +19 -0
  97. package/dist/frontend/assets/UserProfile-B12yw08U.js +1 -0
  98. package/dist/frontend/assets/Users-DI2iWGYb.js +1 -0
  99. package/dist/frontend/assets/Webhooks-DObcfmvp.js +1 -0
  100. package/dist/frontend/assets/Workspace-C1Qe5qMN.js +1 -0
  101. package/dist/frontend/assets/{apiKeysModel-DBAOaYC0.js → apiKeysModel-D9ReMgLy.js} +1 -1
  102. package/dist/frontend/assets/{auditFormat-DE2vEKju.js → auditFormat-p--Ag76y.js} +1 -1
  103. package/dist/frontend/assets/{auditModel-BAWQ_IDX.js → auditModel-ChtMTAPh.js} +1 -1
  104. package/dist/frontend/assets/configModel-DlngZeeE.js +1 -0
  105. package/dist/frontend/assets/{eventFlow-BizPI2m5.js → eventFlow-B4CV1EOm.js} +1 -1
  106. package/dist/frontend/assets/health-Cd4yOjnT.js +1 -0
  107. package/dist/frontend/assets/{hooks-DSlOqywY.js → hooks-Dst2sguy.js} +1 -1
  108. package/dist/frontend/assets/{index-22LA2xX4.css → index-BIsLp3Cm.css} +1 -1
  109. package/dist/frontend/assets/index-DCk1neIw.js +28 -0
  110. package/dist/frontend/assets/{ormConnectorInsights-DI8rGchN.js → ormConnectorInsights-B258XVwc.js} +1 -1
  111. package/dist/frontend/assets/palette-DhlWIgUC.js +1 -0
  112. package/dist/frontend/assets/{profileVisuals-BaDIZ1HE.js → profileVisuals-Dnc3ujy7.js} +1 -1
  113. package/dist/frontend/assets/stores-DCbsF6-_.js +1 -0
  114. package/dist/frontend/assets/ui-Dw0cak25.js +319 -0
  115. package/dist/frontend/assets/useBlockSource-DV2IM6Oa.js +1 -0
  116. package/dist/frontend/assets/useSocketLiveData-BSNdoo1w.js +1 -0
  117. package/dist/frontend/assets/{usersFormat-DehFyjh3.js → usersFormat-CJfbAbyH.js} +1 -1
  118. package/dist/frontend/index.html +12 -12
  119. package/dist/index.js +3 -2
  120. package/dist/nodefony/controller/StudioCreateController.js +1 -1
  121. package/dist/nodefony/controller/StudioRealtimeController.js +2 -3
  122. package/dist/nodefony/realtime/clusterSupervision.js +2 -2
  123. package/dist/nodefony/realtime/providers.js +12 -9
  124. package/dist/nodefony/service/ScaffoldService.js +7 -7
  125. package/dist/nodefony/src/createSpec.js +2 -1
  126. package/dist/types/nodefony/controller/StudioController.d.ts +3 -3
  127. package/dist/types/nodefony/controller/StudioCreateController.d.ts +1 -1
  128. package/dist/types/nodefony/realtime/providers.d.ts +5 -5
  129. package/docs/workspace.md +1 -1
  130. package/package.json +21 -21
  131. package/dist/frontend/assets/Accordion-DcD2UgdH.js +0 -1
  132. package/dist/frontend/assets/ApiKeys-Cmr47HeG.js +0 -2
  133. package/dist/frontend/assets/Audit-DP6Nki1E.js +0 -1
  134. package/dist/frontend/assets/Breadcrumbs-CMEBhNFL.js +0 -1
  135. package/dist/frontend/assets/BrickStoreChip-D8Y3DZy0.js +0 -1
  136. package/dist/frontend/assets/Chat-CeR3IUmv.js +0 -1
  137. package/dist/frontend/assets/Chip-CWZLG1tp.js +0 -1
  138. package/dist/frontend/assets/Cluster-hKpaTMr0.js +0 -1
  139. package/dist/frontend/assets/ConfigPage-DwV4PLXP.js +0 -1
  140. package/dist/frontend/assets/ConnectorCard-CGd9sBLF.js +0 -11
  141. package/dist/frontend/assets/Create-D8G0Fgz9.js +0 -2
  142. package/dist/frontend/assets/DashboardSupervision-Dj2McLYQ.js +0 -1
  143. package/dist/frontend/assets/Database-L28Hnsut.js +0 -1
  144. package/dist/frontend/assets/Documentation-CQ5q2k2b.js +0 -1
  145. package/dist/frontend/assets/Firewall-D559b4aW.js +0 -1
  146. package/dist/frontend/assets/IconArrowsExchange-C55GSXZj.js +0 -1
  147. package/dist/frontend/assets/IconBan-CvGLXEsc.js +0 -1
  148. package/dist/frontend/assets/IconCircuitResistor-BZ3qUbbe.js +0 -1
  149. package/dist/frontend/assets/IconPlayerPlay-yHYBRhzN.js +0 -1
  150. package/dist/frontend/assets/IconPlus-CzUWhrV_.js +0 -1
  151. package/dist/frontend/assets/List-7M-1ZllE.js +0 -1
  152. package/dist/frontend/assets/LogVisuals-CqPfY7XN.js +0 -1
  153. package/dist/frontend/assets/Logs-CGiPUWng.js +0 -1
  154. package/dist/frontend/assets/Migrations-FmNKP3JJ.js +0 -3
  155. package/dist/frontend/assets/ModuleDetail-DncVxvXd.js +0 -1
  156. package/dist/frontend/assets/Modules-DRDKcaGS.js +0 -1
  157. package/dist/frontend/assets/OrmConnector-CYLWW79y.js +0 -1
  158. package/dist/frontend/assets/OrmEntity-BJP4FbJb.js +0 -1
  159. package/dist/frontend/assets/OrmOverview-BxOtNS3p.js +0 -1
  160. package/dist/frontend/assets/OrmWorker-CsbH2xKc.js +0 -1
  161. package/dist/frontend/assets/Playground-hC8m1FL5.js +0 -1
  162. package/dist/frontend/assets/ProfileFields-COafZQPx.js +0 -1
  163. package/dist/frontend/assets/Progress-m_y5xhWD.js +0 -1
  164. package/dist/frontend/assets/RealtimeConsole-CN3cQsMZ.js +0 -1
  165. package/dist/frontend/assets/Roadmap-DCtla21d.js +0 -1
  166. package/dist/frontend/assets/RoleSwitch-B5MBcRsV.js +0 -1
  167. package/dist/frontend/assets/Runtime-CLmDZubl.js +0 -1
  168. package/dist/frontend/assets/Sessions-Bivwsubp.js +0 -1
  169. package/dist/frontend/assets/Skeleton-BLZzrF5_.js +0 -1
  170. package/dist/frontend/assets/Slider-BhIuF0f8.js +0 -1
  171. package/dist/frontend/assets/StoresView-DeNYb4MM.js +0 -1
  172. package/dist/frontend/assets/System-DPkw3K_i.js +0 -1
  173. package/dist/frontend/assets/TagsInput-lj5Y7G46.js +0 -1
  174. package/dist/frontend/assets/TraceView-DrjMHeuI.js +0 -1
  175. package/dist/frontend/assets/Twin-C23lJk-n.js +0 -19
  176. package/dist/frontend/assets/UserProfile-DEjcLOcr.js +0 -1
  177. package/dist/frontend/assets/Users-CqoYI2w5.js +0 -1
  178. package/dist/frontend/assets/Webhooks-DYl-lbmT.js +0 -1
  179. package/dist/frontend/assets/Workspace-CkzTFvYZ.js +0 -1
  180. package/dist/frontend/assets/configModel-B16NX6gr.js +0 -1
  181. package/dist/frontend/assets/health-D8eXYj6Q.js +0 -1
  182. package/dist/frontend/assets/index-DtGb44Tj.js +0 -28
  183. package/dist/frontend/assets/stores-De-nwotA.js +0 -1
  184. package/dist/frontend/assets/ui-BuLVKSvk.js +0 -319
  185. package/dist/frontend/assets/useBlockSource-C63XHcdA.js +0 -1
  186. package/dist/frontend/assets/useSocketLiveData-CljozSOr.js +0 -1
@@ -0,0 +1 @@
1
+ import{k as e}from"./src-Dvwdl2PF.js";import{$t as t,B as n,Dt as r,Ft as i,Gt as a,Ht as o,In as s,K as c,Kt as ee,Pn as l,Rn as u,Rt as d,St as te,Tt as ne,U as f,Un as re,Ut as ie,Vt as p,W as m,Wt as h,X as ae,a as g,at as oe,bn as _,cn as v,cr as se,d as y,en as b,f as ce,ft as le,ht as x,i as ue,mi as de,on as S,q as C,qt as fe,r as pe,rn as me,sn as he,tt as ge,u as _e,yn as w,zt as ve}from"./ui-Dw0cak25.js";import{t as ye}from"./Slider-DhuTBzZ6.js";import{t as be}from"./Progress-CrfNH4tx.js";import{t as xe}from"./RingProgress-C7yna-SJ.js";import{t as T}from"./Skeleton-BXa8Fsyf.js";import{D as Se,c as Ce,k as we,l as Te,r as Ee}from"./stores-DCbsF6-_.js";import{t as De}from"./IconAdjustmentsHorizontal-BWH6Gww9.js";import{t as Oe}from"./IconArrowLeft-DzwWxljv.js";import{n as ke,t as Ae}from"./IconRecycle-CMZr3Ffi.js";import{t as je}from"./IconCircleCheck-ecj-N4o7.js";import{t as Me}from"./IconPlayerPause-4xXttjFJ.js";import{$ as Ne,A as Pe,F as Fe,L as Ie,X as Le,Y as Re,_ as ze,at as Be,ct as Ve,dt as He,lt as Ue,pt as We,vt as Ge,y as Ke}from"./index-DCk1neIw.js";import{a as qe,i as Je,n as Ye,r as Xe,t as Ze}from"./health-Cd4yOjnT.js";import{n as Qe,t as $e}from"./DbLogo-GLR4nK70.js";import{n as et,t as tt}from"./palette-DhlWIgUC.js";var nt=r(`outline`,`brand-nodejs`,`BrandNodejs`,[[`path`,{d:`M9 9v8.044a2 2 0 0 1 -2.996 1.734l-1.568 -.9a3 3 0 0 1 -1.436 -2.561v-6.635a3 3 0 0 1 1.436 -2.56l6 -3.667a3 3 0 0 1 3.128 0l6 3.667a3 3 0 0 1 1.436 2.561v6.634a3 3 0 0 1 -1.436 2.56l-6 3.667a3 3 0 0 1 -3.128 0`,key:`svg-0`}],[`path`,{d:`M17 9h-3.5a1.5 1.5 0 0 0 0 3h2a1.5 1.5 0 0 1 0 3h-3.5`,key:`svg-1`}]]),E=e(de(),1),D=se();function rt({weights:e,onChange:t,labels:n,summary:r}){let i=t=>qe(e,t);return(0,D.jsxs)(u,{width:300,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,D.jsx)(u.Target,{children:(0,D.jsx)(s,{variant:`subtle`,color:`gray`,"aria-label":`Régler la pondération de la santé du framework`,children:(0,D.jsx)(De,{size:18})})}),(0,D.jsxs)(u.Dropdown,{children:[(0,D.jsxs)(l,{justify:`space-between`,mb:6,children:[(0,D.jsx)(w,{size:`sm`,fw:600,children:`Pondération de la santé`}),(0,D.jsx)(he,{variant:`subtle`,size:`compact-xs`,onClick:()=>t({...Ze}),children:`Défaut`})]}),r?(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mb:`sm`,children:r}):null,(0,D.jsx)(h,{gap:`xs`,children:n.map(n=>(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(l,{justify:`space-between`,gap:4,children:[(0,D.jsx)(w,{size:`xs`,children:n}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`×`,i(n).toFixed(1)]})]}),(0,D.jsx)(ye,{size:`xs`,min:0,max:3,step:.1,value:i(n),onChange:r=>t({...e,[n]:r}),label:e=>`×${e.toFixed(1)}`,"aria-label":`poids ${n}`})]},n))})]})]})}var O=60,it=1024**2,at=[`CPU`,`Saturation (ELU)`,`Event-loop`,`Mémoire (heap)`];function ot(e){return e?e.cluster?Array.isArray(e.instances)?e.instances:[]:[e]:[]}function st(e,t){let n=e.length>=O?e.slice(e.length-O+1):e.slice();return n.push(t),n}function ct(e){return e>=90?`var(--mantine-color-red-6)`:e>=70?`var(--mantine-color-orange-6)`:`var(--mantine-color-teal-6)`}function k(e){return e<1024?`${e} o`:e<1048576?`${Math.round(e/1024)} Ko`:e<1073741824?`${(e/1024/1024).toFixed(0)} Mo`:`${(e/1024/1024/1024).toFixed(2)} Go`}function lt(e){if(e<60)return`${e}s`;if(e<3600)return`${Math.floor(e/60)}min`;let t=Math.floor(e/3600),n=Math.floor(e%3600/60);return n?`${t}h${n}`:`${t}h`}function ut(e){return e>=120?`red`:e>=50?`orange`:`teal`}function dt(e){return e>=90?`var(--mantine-color-red-6)`:e>=75?`var(--mantine-color-orange-6)`:`var(--mantine-color-blue-6)`}function ft(e,t){let n=e.heapLimit>0?e.heapUsed/e.heapLimit*100:0;return Xe([{label:`CPU`,value:e.cpuPercent,good:70,crit:100,weight:t.CPU??1,floor:.2},{label:`Saturation (ELU)`,value:e.eluUtilization*100,good:70,crit:100,weight:t[`Saturation (ELU)`]??1.5,floor:.2},{label:`Event-loop`,value:e.eventLoopMs,good:50,crit:120,weight:t[`Event-loop`]??1.5,floor:.2},{label:`Mémoire (heap)`,value:n,good:70,crit:95,weight:t[`Mémoire (heap)`]??1,critical:!0}])}function pt({onSelect:e,weights:t,onWeightsChange:n}){let r=Ce();(0,E.useEffect)(ce,[]);let a=(0,E.useCallback)(()=>r.api.getAbsolute(`/nodefony/realtime/api/health`),[r]),{data:o,loading:s,error:c,reload:ee}=Ke(a),u=Ve(i.socket),d=ot(u??o),te=t??Je(),ne=d.filter(e=>!!e.process).map(e=>({pid:e.instanceId,h:ft(e.process,te)})),f=ne.length>0?ne.reduce((e,t)=>(t.h.score??100)<(e.h.score??100)?t:e):null,ie=f?.h.score??null,p=d.map(e=>e.process).filter(e=>!!e),m=p.length>0?{cpuAvg:Math.round(p.reduce((e,t)=>e+t.cpuPercent,0)/p.length),loopMax:Math.max(...p.map(e=>e.eventLoopMs)),eluMax:Math.round(Math.max(...p.map(e=>e.eluUtilization))*100),heapSum:p.reduce((e,t)=>e+t.heapUsed,0),rssSum:p.reduce((e,t)=>e+t.rss,0),uptimeMin:Math.min(...p.map(e=>e.uptime))}:null,[ae,oe]=(0,E.useState)(new Map);return(0,E.useEffect)(()=>{if(!u)return;let e=ot(u);oe(t=>{let n=new Map(t),r=new Set;for(let t of e){r.add(t.instanceId);let e=t.process;if(!e)continue;let i=n.get(t.instanceId)??{cpu:[],heap:[]};n.set(t.instanceId,{cpu:st(i.cpu,e.cpuPercent),heap:st(i.heap,Math.round(e.heapUsed/it))})}for(let e of n.keys())r.has(e)||n.delete(e);return n})},[u]),(0,D.jsx)(C,{loading:s&&!d.length,error:c,empty:!d.length,onRetry:ee,emptyMessage:`Aucun process à superviser.`,children:(0,D.jsxs)(h,{gap:`md`,children:[ie!=null&&f?(0,D.jsx)(S,{withBorder:!0,radius:`md`,p:`md`,style:{contain:`content`},children:(0,D.jsxs)(l,{wrap:`nowrap`,align:`center`,gap:`lg`,children:[(0,D.jsx)(xe,{size:92,thickness:10,roundCaps:!0,sections:[{value:ie,color:f.h.color}],label:(0,D.jsx)(w,{ta:`center`,fw:800,fz:22,style:{fontVariantNumeric:`tabular-nums`},children:ie})}),(0,D.jsxs)(`div`,{style:{minWidth:0},children:[(0,D.jsxs)(l,{gap:`xs`,mb:4,children:[(0,D.jsx)(w,{fw:700,children:`Santé du framework`}),(0,D.jsx)(v,{color:f.h.color,variant:`light`,children:f.h.label}),n?(0,D.jsx)(rt,{weights:te,onChange:n,labels:at,summary:`Poids ×N de chaque sonde dans l'indice pod (rollup pire worker). Persisté, partagé avec la page mono.`}):null]}),(0,D.jsxs)(w,{size:`sm`,c:`dimmed`,children:[`Pod de `,ne.length,` workers — rollup = `,(0,D.jsx)(`b`,{children:`pire worker`}),` `,`(pid `,f.pid,`, score `,f.h.score,`). Pondération via ⚙.`]}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mt:4,children:`Agrégation partielle (CPU · ELU · event-loop · heap). GC / ORM / erreurs par worker = agrégation backend à venir.`})]}),m?(0,D.jsxs)(l,{gap:`xl`,ml:`auto`,wrap:`wrap`,visibleFrom:`sm`,children:[(0,D.jsx)(A,{label:`CPU moyen`,value:`${m.cpuAvg}%`}),(0,D.jsx)(A,{label:`Event-loop max`,value:`${Math.round(m.loopMax)} ms`,color:ut(m.loopMax)}),(0,D.jsx)(A,{label:`ELU max`,value:`${m.eluMax}%`}),(0,D.jsx)(A,{label:`Heap pod`,value:k(m.heapSum)}),(0,D.jsx)(A,{label:`RSS pod`,value:k(m.rssSum)})]}):null]})}):null,(0,D.jsx)(We,{cols:{base:1,md:2,xl:3},spacing:`md`,children:d.map((t,n)=>{let r=t.process,i=ae.get(t.instanceId),a=i?.cpu??(r?[r.cpuPercent]:[]),o=i?.heap??(r?[Math.round(r.heapUsed/it)]:[]),s=r?Math.round(r.heapUsed/it):0,c=r&&r.heapTotal>0?Math.round(r.heapUsed/r.heapTotal*100):null,ee=r?ft(r,te):null,u=ee?.score??null;return(0,D.jsx)(re,{onClick:()=>e(Number(t.instanceId)),"aria-label":`détail supervision du worker ${n+1} (pid ${t.instanceId})`,style:{display:`block`},children:(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,className:`nf-live-card`,style:{contain:`content`},children:[(0,D.jsxs)(l,{justify:`space-between`,wrap:`nowrap`,mb:`sm`,children:[(0,D.jsxs)(l,{gap:`xs`,wrap:`nowrap`,children:[(0,D.jsx)(ve,{variant:`light`,color:`brand`,radius:`md`,children:(0,D.jsx)(Le,{size:18})}),(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[(0,D.jsxs)(w,{fw:600,children:[`worker `,n+1]}),(0,D.jsx)(x,{size:14,style:{opacity:.5}})]}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`pid `,t.instanceId,r?` · ${lt(r.uptime)}`:``]})]})]}),ee&&u!=null?(0,D.jsx)(v,{variant:`light`,color:ee.color,style:{fontVariantNumeric:`tabular-nums`},children:u}):null]}),(0,D.jsxs)(l,{grow:!0,mb:`sm`,gap:`xs`,children:[(0,D.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:`CPU`}),(0,D.jsx)(w,{fw:800,fz:28,lh:1.1,c:r?ct(r.cpuPercent):void 0,style:{fontVariantNumeric:`tabular-nums`},children:r?(0,D.jsxs)(y,{value:r.cpuPercent,children:[r.cpuPercent,`%`]}):`—`})]}),(0,D.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:`Mémoire`}),(0,D.jsx)(w,{fw:800,fz:28,lh:1.1,c:c==null?void 0:dt(c),style:{fontVariantNumeric:`tabular-nums`},children:c==null?`—`:(0,D.jsxs)(y,{value:c,children:[c,`%`]})}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:r?`${s} Mo`:``})]})]}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mb:2,children:`CPU`}),(0,D.jsx)(g,{series:[{data:a,color:r?ct(r.cpuPercent):`var(--mantine-color-teal-6)`,label:`CPU %`}],height:72,max:100}),(0,D.jsxs)(l,{justify:`space-between`,mt:`sm`,mb:2,children:[(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:`Heap`}),(0,D.jsx)(w,{size:`xs`,fw:600,style:{fontVariantNumeric:`tabular-nums`},children:r?`${s} Mo`:`—`})]}),(0,D.jsx)(g,{series:[{data:o,color:`var(--mantine-color-blue-6)`,label:`Heap Mo`}],height:72}),r?(0,D.jsxs)(l,{justify:`space-between`,mt:`sm`,gap:`xs`,children:[(0,D.jsxs)(w,{size:`xs`,c:ut(r.eventLoopMs),style:{fontVariantNumeric:`tabular-nums`},children:[`loop `,Math.round(r.eventLoopMs),` ms`]}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`ELU `,Math.round(r.eluUtilization*100),`% · RSS`,` `,k(r.rss)]})]}):null]})},t.instanceId)})})]})})}function A({label:e,value:t,color:n}){return(0,D.jsxs)(`div`,{children:[(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:e}),(0,D.jsx)(w,{fw:700,c:n,style:{fontVariantNumeric:`tabular-nums`},children:t})]})}var j=`v1.0`,mt=60,ht=1024**2,gt={TTYWrap:{label:`Terminal`,desc:`Flux terminal (stdout / stderr / stdin).`},TCPSocketWrap:{label:`Socket TCP`,desc:`Connexion TCP active — requête HTTP entrante, WebSocket, client sortant…`},TCPServerWrap:{label:`Serveur TCP`,desc:`Serveur TCP en écoute (les serveurs HTTP/WS de Nodefony).`},PipeWrap:{label:`Pipe / IPC`,desc:`Tube nommé ou canal IPC (communication inter-process).`},Timeout:{label:`Timer`,desc:`setTimeout / setInterval encore programmé (non unref).`},Immediate:{label:`Immediate`,desc:`setImmediate en attente d'exécution au prochain tick.`},FSReqCallback:{label:`I/O fichier`,desc:`Opération de système de fichiers asynchrone en cours.`},FSEvent:{label:`Watch FS`,desc:`Surveillance d'un fichier/dossier (fs.watch).`},StatWatcher:{label:`Stat watcher`,desc:`Surveillance par polling (fs.watchFile).`},MessagePort:{label:`MessagePort`,desc:`Canal de message (worker_threads / MessageChannel).`},Worker:{label:`Worker`,desc:`Thread worker (worker_threads) actif.`},ChildProcess:{label:`Process enfant`,desc:`Process fils lancé (spawn / fork).`},SignalWrap:{label:`Signal POSIX`,desc:`Écoute d'un signal système (SIGINT, SIGTERM…).`},HTTPParser:{label:`Parser HTTP`,desc:`Analyseur de message HTTP en cours de traitement.`},GetAddrInfoReqWrap:{label:`DNS (lookup)`,desc:`Résolution DNS en cours (getaddrinfo).`},TLSWrap:{label:`TLS`,desc:`Connexion chiffrée TLS/SSL (HTTPS, WSS).`},UDPWrap:{label:`Socket UDP`,desc:`Socket UDP active (datagrammes).`},ZlibStream:{label:`Compression`,desc:`Flux de (dé)compression zlib / gzip / brotli.`}};function _t(e,t=18){return e&&Qe(e)?(0,D.jsx)($e,{name:e,size:t}):(0,D.jsx)(Re,{size:t,color:`var(--mantine-color-blue-5)`})}function vt(e){return gt[e]??{label:e,desc:`Ressource interne Node.js « ${e} » qui maintient la boucle d'événements active.`}}var M=(0,D.jsx)(nt,{size:18,color:`#83CD29`,"aria-label":`Source : Node.js`}),yt=(0,D.jsx)(ze,{height:18}),bt=(0,D.jsx)(Re,{size:18,color:`var(--mantine-color-blue-5)`,"aria-label":`Source : connecteur ORM`});function xt(e){try{return localStorage.getItem(e)}catch{return null}}function St(e,t){try{localStorage.setItem(e,t)}catch{}}var Ct={SELECT:`blue`,INSERT:`teal`,UPDATE:`yellow`,DELETE:`red`};function wt(e){return e?{op:(e.trim().split(/\s+/)[0]??`?`).toUpperCase(),table:e.match(/\b(?:from|into|update)\s+"?([A-Za-z0-9_]+)"?/i)?.[1]??`—`}:{op:`?`,table:`—`}}function Tt(e){return e>=500?`red`:e>=200?`orange`:`yellow`}function Et(e){let t=Math.max(0,Math.round((Date.now()-e)/1e3));if(t<60)return`${t} s`;let n=Math.round(t/60);return n<60?`${n} min`:`${Math.round(n/60)} h`}function N(e){return e<ht?`${(e/1024).toFixed(0)} KB`:e<1024**3?`${(e/ht).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}function Dt(e){e=Math.floor(e);let t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),i=e%60,a=e=>String(e).padStart(2,`0`);return t>0?`${t}j ${a(n)}:${a(r)}`:`${a(n)}:${a(r)}:${a(i)}`}function Ot(e,t,n){return e>=n?{color:`red`,label:`Critique`}:e>=t?{color:`yellow`,label:`Élevé`}:{color:`teal`,label:`OK`}}function kt({channel:e,desiredMs:t,auto:n,onStats:r,onOrm:a,onFlow:o,onRate:s}){let c=Be(e,r,t,{defaultMs:1e3,enabled:n});return Be(i.ormHealth,a,t,{defaultMs:5e3,enabled:n}),Be(i.ormFlow,o,t,{defaultMs:2e3,enabled:n}),(0,E.useEffect)(()=>{s(c)},[c]),null}var P=Ge(()=>{let e=Ee(),r=Ce(),re=Ue(),se=re===`connected`,[x,de]=(0,E.useState)(null),[C,ve]=(0,E.useState)(null),[ze,Be]=(0,E.useState)([]),[Ve,We]=(0,E.useState)([]),[Ge,Ke]=(0,E.useState)([]),[Qe,$e]=(0,E.useState)([]),[nt,rt]=(0,E.useState)([]),[O,it]=(0,E.useState)([]),[at,ot]=(0,E.useState)([]),[st,ct]=(0,E.useState)(null),[k,lt]=(0,E.useState)(null),[ut,dt]=(0,E.useState)({}),ft=(0,E.useRef)(null),[A,gt]=(0,E.useState)([]),P=(0,E.useRef)(0),[jt,Mt]=(0,E.useState)(0),[Nt,Pt]=(0,E.useState)(0),[Ft,It]=(0,E.useState)(`performance`),Lt=Te(),F=Lt.realtimeLive,[Rt,zt]=He(),[Bt,Vt]=(0,E.useState)([]),Ht=x?.pid??C?.pid??null,Ut=Rt.get(`pid`),I=Ut&&/^\d+$/.test(Ut)?Number(Ut):null,Wt=I!=null&&I!==Ht,Gt=Bt.length>1,Kt=Bt.length>0,qt=I!=null&&Kt&&!Bt.includes(I),Jt=Gt&&(I==null||qt),Yt=Wt?`${i.supervision}@${I}`:i.supervision,Xt=e=>{zt({pid:String(e)},{replace:!0}),e!==Ht&&Lt.setRealtimeLive(!0)},Zt=()=>{let e=new URLSearchParams(Rt);e.delete(`pid`),zt(e,{replace:!0})},[L,Qt]=(0,E.useState)(()=>Number(xt(`nf.supervision.liveMs`))||1e3);(0,E.useEffect)(()=>St(`nf.supervision.liveMs`,String(L)),[L]);let $t=Lt.adaptiveCadence,[en,tn]=(0,E.useState)(L),[nn,rn]=(0,E.useState)(Je);(0,E.useEffect)(()=>St(Ye,JSON.stringify(nn)),[nn]);let R=e=>qe(nn,e);(0,E.useEffect)(ce,[]),(0,E.useEffect)(()=>{if(!F){P.current=0,Mt(0),Pt(0);return}let e=window.setInterval(()=>{if(!P.current)return;let e=Date.now()-P.current;Pt(e>en?e:0)},1e3);return()=>window.clearInterval(e)},[F,en]);let an=(e,t)=>{let n=[...e,t];return n.length>mt?n.slice(-60):n};(0,E.useEffect)(()=>{let e=!1;return r.api.getAbsolute(`/nodefony/kernel/api/info`).then(t=>{e||de(t)}).catch(()=>{}),()=>{e=!0}},[r]),(0,E.useEffect)(()=>{let e=!1;return r.api.getAbsolute(`/nodefony/realtime/api/health`).then(t=>{if(e)return;let n=Array.isArray(t?.instances)?t.instances.map(e=>Number(e.instanceId)).filter(e=>e>0):[];Vt(n)}).catch(()=>{}),()=>{e=!0}},[r]);let on=(0,E.useCallback)(()=>{r.api.getAbsolute(`/nodefony/studio/api/stats`).then(e=>{e?.memory&&ve(e)}).catch(()=>{})},[r]),sn=(0,E.useCallback)(()=>{r.api.getAbsolute(`/nodefony/orm/api/orms`).then(e=>{Array.isArray(e)&&ot(e)}).catch(()=>{})},[r]),cn=(0,E.useCallback)(()=>{r.api.getAbsolute(`/nodefony/orm/api/flow`).then(e=>{e&&Array.isArray(e.connectors)&&lt(e)}).catch(()=>{})},[r]);(0,E.useEffect)(()=>{if(!F){if(Wt){ve(null);return}on(),sn(),cn(),ct(null),Be([]),We([]),Ke([]),$e([]),rt([]),it([]),dt({}),gt([]),ft.current=null}},[F,Wt,on,sn,cn]);let ln=e=>{let t=e;if(!t||!t.memory)return;let n=Date.now();P.current&&Mt(n-P.current),P.current=n,Pt(0),ve(t),Be(e=>an(e,t.cpuPercent)),We(e=>an(e,t.eventLoopMs));let r=t.gc;r&&rt(e=>an(e,r.pauseMs));let i=t.memory.heapLimit&&t.memory.heapLimit>0?t.memory.heapLimit:t.memory.heapTotal,a=i>0?Math.round(t.memory.heapUsed/i*100):0;it(e=>{let n=[...e,{cpu:t.cpuPercent,heap:a}];return n.length>mt?n.slice(-60):n}),Ke(e=>{let n=[...e,{heap:t.memory.heapUsed/ht,rss:t.memory.rss/ht}];return n.length>mt?n.slice(-60):n}),$e(e=>{let n=[...e,t.errCount??0];return n.length>mt?n.slice(-60):n})},un=e=>{Array.isArray(e)&&ct(e)},dn=e=>{let t=e;if(!t||!Array.isArray(t.connectors))return;let n=ft.current;if(n&&t.ts>n.ts){let e=(t.ts-n.ts)/1e3,r={};for(let i of t.connectors){let t=n.totals[i.connector];t!=null&&e>0&&(r[i.connector]=Math.max(0,(i.total-t)/e))}dt(r),gt(e=>{let t=[...e,{rates:r}];return t.length>mt?t.slice(-60):t})}let r={};for(let e of t.connectors)r[e.connector]=e.total;ft.current={ts:t.ts,totals:r},lt(t)},z=!C,B=C?.cpuPercent??0,V=C?.eventLoopMs??0,fn=C?.memory.heapLimit&&C.memory.heapLimit>0?C.memory.heapLimit:C?.memory.heapTotal??0,H=C&&fn>0?Math.round(C.memory.heapUsed/fn*100):0,U=Qe.reduce((e,t)=>e+t,0),pn=e=>`${e.toFixed(1)} ms`,mn=Math.max(jt,Nt),hn=F&&se&&P.current>0&&mn>en*3,gn=x?.environment===`development`,W=Ot(B,50,80),G=Ot(H,60,80),K=Ot(V,gn?50:20,gn?120:50),q=Ot(F?U:0,1,10),J=C?.gc??void 0,_n=J&&L?J.pauseMs/L*100:0,vn=J?.count?J.pauseMs/J.count:0,yn=_n>5?`red`:_n>1?`orange`:`teal`,bn=C?.heapSpaces??[],Y=C?.handles,xn=Y?Object.entries(Y.byType).sort((e,t)=>t[1]-e[1])[0]:void 0,X=F&&st?.length?st.map(e=>({name:e.name,vendor:e.vendor,driver:e.driver,target:e.target,connected:e.connected,pingMs:e.pingMs,pingOk:e.pingOk,errorCount:e.errorCount,reconnectCount:e.reconnectCount,entityCount:at.find(t=>t.name===e.name)?.entityCount})):at.map(e=>({name:e.name,vendor:e.vendor,driver:e.connection?.driver??``,target:e.connection?.target,connected:e.connected,entityCount:e.entityCount})),Sn=X.filter(e=>e.connected).length,Cn=X.reduce((e,t)=>e+(t.errorCount??0),0),Z=k?.connectors??[],wn=k?.enabled===!1,Tn=Z.flatMap(e=>e.slow??[]).sort((e,t)=>t.ts-e.ts).slice(0,8),En=Tn.reduce((e,t)=>Math.max(e,t.durationMs),0),Dn=new Set(Tn.map(e=>e.connector)).size>1,On=Z.reduce((e,t)=>e+t.total,0),kn=Z.filter(e=>e.total>0).map(e=>e.connector),An=Object.values(ut).reduce((e,t)=>e+(t??0),0),jn=Z.find(e=>e.total>0)?.vendor??Z[0]?.vendor,Mn=e=>{let t=kn.indexOf(e);return t>=0?et(tt,t):`var(--mantine-color-gray-5)`},Nn=Cn>0?`red`:Sn<X.length?`orange`:X.length?`teal`:`gray`,Q=[];se||Q.push({color:`red`,msg:`Temps réel ${re} — métriques figées`,help:`Le flux WebSocket temps réel est coupé : les valeurs affichées ne sont plus rafraîchies. Vérifiez que le serveur tourne et la connexion réseau.`}),W.color!==`teal`&&Q.push({color:W.color,msg:`CPU ${B}% (${W.label})`,help:`Pourcentage d'UN cœur consommé par le process. Un pic court est normal (une requête lourde) ; élevé SUR LA DURÉE = charge de calcul soutenue. Voir l'onglet Performance.`}),G.color!==`teal`&&Q.push({color:G.color,msg:`Mémoire heap ${H}% (${G.label})`,help:`Part du tas V8 utilisée par rapport au plafond. >80% = risque d'OOM (crash mémoire). Surveillez surtout une croissance CONTINUE (fuite) plutôt qu'un pic. Voir l'onglet Mémoire.`}),K.color!==`teal`&&Q.push({color:K.color,msg:`Event-loop ${V.toFixed(1)} ms (${K.label})`,help:gn?`Latence de la boucle d'événements Node. EN DÉVELOPPEMENT, Vite/HMR/rollup tournent dans le MÊME process → 15-25 ms est normal, ce n'est pas un incident. En production on vise <10 ms.`:`Latence de la boucle d'événements Node : le temps avant que le serveur traite le prochain événement. Élevée = du code synchrone bloque la boucle (latence p99 dégradée). >50 ms = à investiguer.`}),F&&q.color!==`teal`&&Q.push({color:q.color,msg:`${U} erreur(s)/min (${q.label})`,help:`Nombre de logs ERROR + CRITIC sur les 60 dernières secondes (canal syslog). Ouvrez l'onglet Erreurs puis la page Logs pour la stack trace.`}),hn&&Q.push({color:`orange`,msg:`Temps réel en retard — rafraîchi ~toutes les ${(mn/1e3).toFixed(0)} s (cadence demandée ${(L/1e3).toFixed(0)} s)`,help:`Les mesures arrivent en retard : la boucle d'événements du serveur est saturée (forte charge WS/HTTP) → le ticker temps réel ne tient plus sa cadence. Le dashboard n'est PAS planté, il est AFFAMÉ. Conséquence : les latences mesurées côté serveur (ex. ping ORM) sont gonflées par l'attente d'ordonnancement, PAS par la base.`});let Pn=Q.some(e=>e.color===`red`),Fn=Q.length>0,In=!se||!C?`unknown`:Pn?`degraded`:Fn?`watch`:`ok`,Ln={ok:{label:`Opérationnel`,color:`teal`},watch:{label:`À surveiller`,color:`yellow`},degraded:{label:`Dégradé`,color:`red`},unknown:{label:`En attente`,color:`gray`}}[In],Rn=F?[`performance`,`memoire`,`connecteurs`,`erreurs`,`systeme`]:[`memoire`,`connecteurs`,`systeme`],zn=Rn.includes(Ft)?Ft:Rn[0],Bn=e=>{F||Lt.setRealtimeLive(!0),It(e)},Vn=F?`Temps réel ON (${$t?`auto ~${en/1e3}s`:`${L/1e3}s`}).`:`Temps réel OFF — snapshot statique (activez pour les courbes).`,Hn=`En attente des premières mesures…`,$=Xe([{label:`CPU`,value:C?B:null,good:70,crit:100,weight:R(`CPU`),floor:.2},{label:`Saturation (ELU)`,value:C?.elu?Math.round(C.elu.utilization*100):null,good:70,crit:100,weight:R(`Saturation (ELU)`),floor:.2},{label:`Event-loop`,value:C?V:null,good:gn?50:20,crit:gn?120:50,weight:R(`Event-loop`),floor:.2},{label:`Mémoire (heap)`,value:C?H:null,good:70,crit:95,weight:R(`Mémoire (heap)`),critical:!0},{label:`GC overhead`,value:J?_n:null,good:1,crit:10,weight:R(`GC overhead`),floor:.25},{label:`Erreurs`,value:F?U:null,good:0,crit:10,weight:R(`Erreurs`),critical:!0},{label:`Connecteurs`,value:X.length?X.length-Sn:null,good:0,crit:Math.max(1,X.length),weight:R(`Connecteurs`),critical:!0},{label:`Temps réel`,value:F?+!!hn:null,good:0,crit:2,weight:R(`Temps réel`),floor:.3}]),Un=$.parts.reduce((e,t)=>e+t.weight,0)||1,Wn=Object.keys(Ze).every(e=>R(e)<=0);return Jt?(0,D.jsxs)(h,{gap:`lg`,children:[(0,D.jsx)(ae,{sticky:!0,title:`Supervision`,subtitle:`Vue multi-process — ${Bt.length} workers · CPU & heap en direct (clic = détail)`}),qt?(0,D.jsxs)(_,{variant:`light`,color:`yellow`,icon:(0,D.jsx)(oe,{size:18}),children:[`Le worker`,` `,(0,D.jsxs)(w,{span:!0,ff:`monospace`,children:[`pid `,I]}),` `,`n'existe plus (process redémarré). Choisis un worker actif ci-dessous.`]}):null,(0,D.jsx)(pt,{weights:nn,onWeightsChange:rn,onSelect:e=>zt({pid:String(e)},{replace:!0})})]}):(0,D.jsxs)(h,{gap:`lg`,children:[Gt&&(0,D.jsx)(he,{variant:`light`,size:`xs`,leftSection:(0,D.jsx)(Oe,{size:14}),onClick:Zt,style:{alignSelf:`flex-start`},children:`Vue d'ensemble (tous les workers)`}),F&&(0,D.jsx)(kt,{channel:Yt,desiredMs:L,auto:$t,onStats:ln,onOrm:un,onFlow:dn,onRate:tn}),(0,D.jsx)(ae,{sticky:!0,title:`Supervision`,subtitle:(0,D.jsxs)(l,{gap:`md`,wrap:`wrap`,mt:4,children:[(0,D.jsxs)(l,{gap:5,wrap:`nowrap`,children:[M,(0,D.jsx)(w,{size:`sm`,fw:600,children:C?.proc?.nodeVersion??`Node.js`}),C?.proc&&(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,children:[C.proc.platform,`/`,C.proc.arch]})]}),(0,D.jsxs)(l,{gap:5,wrap:`nowrap`,children:[yt,(0,D.jsx)(w,{size:`sm`,children:x?.version??C?.app?.version??`—`})]}),(0,D.jsx)(v,{size:`sm`,variant:`light`,color:`gray`,children:x?.environment??C?.app?.env??`—`}),we(e.roles,`ROLE_DEV`)&&C?.app?.branch&&(0,D.jsx)(v,{size:`sm`,variant:`light`,color:`brand`,children:C.app.branch}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`PID `,C?.proc?.pid??C?.pid??x?.pid??`—`,` · instance `,C?.instanceId??`—`,C?` · uptime ${Dt(C.uptime)}`:``]})]}),actions:(0,D.jsxs)(l,{gap:`xs`,children:[Gt&&(0,D.jsx)(a,{size:`xs`,w:170,leftSection:(0,D.jsx)(Pe,{size:14}),value:I==null?null:String(I),onChange:e=>e&&Xt(Number(e)),data:Bt.map(e=>({value:String(e),label:e===Ht?`worker ${e} (local)`:`worker ${e}`})),comboboxProps:{withinPortal:!0},"aria-label":`worker du pod à superviser`}),F&&(0,D.jsx)(`span`,{className:`nf-live-dot`,"aria-hidden":!0}),$t&&F?(0,D.jsxs)(v,{size:`sm`,variant:`light`,color:`grape`,title:`Cadence auto (AIMD) — cadence réelle appliquée. Recule sous charge serveur, remonte quand c'est fluide. Réglage global dans le Hub.`,style:{fontVariantNumeric:`tabular-nums`},children:[`auto ~`,en<1e3?`${en}ms`:`${en/1e3}s`]}):null,hn&&(0,D.jsx)(fe,{label:`Le serveur ne pousse plus les mesures à temps (event-loop saturé). Dashboard affamé, pas planté.`,withArrow:!0,multiline:!0,w:260,children:(0,D.jsxs)(v,{color:`orange`,variant:`filled`,leftSection:(0,D.jsx)(ne,{size:12}),style:{cursor:`help`},children:[`retard ~`,(mn/1e3).toFixed(0),`s`]})}),!F&&(0,D.jsx)(he,{variant:`subtle`,color:`gray`,size:`xs`,leftSection:(0,D.jsx)(ge,{size:14}),onClick:on,"aria-label":`rafraîchir le snapshot`,children:`Rafraîchir`}),(0,D.jsxs)(t,{width:280,shadow:`md`,position:`bottom-end`,withinPortal:!0,openDelay:120,closeDelay:120,children:[(0,D.jsxs)(l,{gap:6,wrap:`nowrap`,children:[(0,D.jsx)(ie,{size:`sm`,checked:F,onChange:e=>Lt.setRealtimeLive(e.currentTarget.checked),label:`Temps réel`,"aria-label":`abonnement temps réel (socket Nodefony) des sondes de supervision`}),(0,D.jsx)(t.Target,{children:(0,D.jsx)(s,{variant:`subtle`,color:`gray`,size:`sm`,radius:`xl`,w:24,h:24,"aria-label":`aide : temps réel et granularité des sondes`,children:(0,D.jsx)(oe,{size:15,stroke:1.6})})})]}),(0,D.jsxs)(t.Dropdown,{children:[(0,D.jsxs)(l,{gap:6,mb:6,children:[(0,D.jsx)(te,{size:14}),(0,D.jsx)(w,{size:`xs`,fw:600,children:`Temps réel & granularité`})]}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mb:8,children:`OFF par défaut (perf) : snapshot statique. ON ouvre le flux WS (courbes, GC, flash). Cadence des pushes :`}),(0,D.jsx)(ee,{fullWidth:!0,size:`xs`,value:String(L),onChange:e=>Qt(Number(e)),data:[{label:`1 s`,value:`1000`},{label:`2 s`,value:`2000`},{label:`5 s`,value:`5000`},{label:`10 s`,value:`10000`}]}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mt:6,children:`Plus court = plus réactif, mais plus de mesures/s côté serveur.`})]})]})]})}),Wt&&(0,D.jsx)(_,{variant:`light`,color:F?C?.richPending?`yellow`:`teal`:`blue`,icon:(0,D.jsx)(Pe,{size:18}),title:`Supervision du worker distant · pid ${I}`,children:F?C?.richPending?`Activation de la sonde riche du worker (GC, espaces de heap, handles, ctx)… arrive sous un cycle de snapshot.`:`Sonde riche active. Les panneaux ORM/flux restent ceux du worker qui tient la connexion (agrégation ORM par worker = à venir).`:(0,D.jsxs)(D.Fragment,{children:[`Worker distant : la sonde riche est servie à la demande.`,` `,(0,D.jsx)(w,{span:!0,fw:600,c:`brand`,style:{cursor:`pointer`},onClick:()=>Lt.setRealtimeLive(!0),children:`Activer le Temps réel`}),` `,`pour superviser ce process.`]})}),(!Gt||I!=null)&&(0,D.jsx)(S,{withBorder:!0,radius:`md`,p:`lg`,children:(0,D.jsxs)(l,{wrap:`nowrap`,align:`center`,gap:`xl`,children:[(0,D.jsx)(xe,{size:128,thickness:13,roundCaps:!0,sections:[{value:$.score??0,color:$.color}],label:(0,D.jsxs)(h,{gap:0,align:`center`,children:[(0,D.jsx)(w,{fw:800,size:`28px`,lh:1,children:$.score??`—`}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:`/ 100`})]})}),(0,D.jsxs)(h,{gap:8,style:{flex:1,minWidth:0},children:[(0,D.jsxs)(l,{gap:8,wrap:`nowrap`,children:[(0,D.jsx)(d,{order:2,size:`h4`,children:Gt?`Santé du worker · pid ${I}`:`Santé du framework`}),(0,D.jsx)(v,{color:$.color,size:`lg`,variant:`light`,children:$.label}),(0,D.jsx)(f,{title:`Santé du framework`,version:j,summary:`Indice composite 0-100 (${$.parts.length} sonde(s)) — moyenne géométrique pondérée des désirabilités (Derringer-Suich, NIST), seuils ${gn?`DEV`:`PROD`}.`,sections:[{label:`Saturation`,body:`CPU, ELU, event-loop, GC dégradent le score avec un PLANCHER : un framework saturé RALENTIT mais SERT toujours (« Dégradé », jamais « Critique » seule).`},{label:`Panne`,body:`Erreurs, connecteur coupé ou mémoire proche OOM peuvent tirer l'indice à 0 (« Critique »).`},{label:`Si vide`,body:`Sondes indisponibles (temps réel OFF) exclues du calcul.`}]}),(0,D.jsxs)(u,{width:320,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,D.jsx)(u.Target,{children:(0,D.jsx)(s,{variant:`subtle`,color:`gray`,"aria-label":`Régler la pondération de l'indice`,children:(0,D.jsx)(De,{size:18})})}),(0,D.jsxs)(u.Dropdown,{children:[(0,D.jsxs)(l,{justify:`space-between`,mb:6,children:[(0,D.jsx)(w,{size:`sm`,fw:600,children:`Pondération de l'indice`}),(0,D.jsx)(he,{size:`compact-xs`,variant:`subtle`,color:`gray`,onClick:()=>rn({...Ze}),children:`Par défaut`})]}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mb:`sm`,children:`Glissez le poids de chaque sonde (0 = exclue). Le % se recalcule et l'indice se met à jour en direct.`}),(0,D.jsx)(h,{gap:`sm`,children:Object.keys(Ze).map(e=>{let t=Object.keys(Ze).reduce((e,t)=>e+R(t),0)||1;return(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(l,{justify:`space-between`,gap:4,mb:2,children:[(0,D.jsx)(w,{size:`xs`,children:e}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`×`,R(e).toFixed(1),` ·`,` `,Math.round(R(e)/t*100),`%`]})]}),(0,D.jsx)(ye,{size:`sm`,min:0,max:3,step:.1,value:R(e),onChange:t=>rn(n=>({...n,[e]:t})),label:e=>e.toFixed(1)})]},e)})})]})]})]}),(0,D.jsx)(w,{size:`sm`,c:Wn?`orange`:`dimmed`,children:Wn?`Toutes les sondes sont à 0 — réglez les poids (⚙) ou cliquez « Par défaut ».`:$.score==null?`En attente de mesures…`:$.worst&&$.score<100?`Limité par : ${$.worst}.`:`Tous les indicateurs au vert.`}),(0,D.jsx)(l,{gap:`md`,wrap:`wrap`,children:[[`≥90 Excellent`,`teal`],[`≥75 Bon`,`green`],[`≥50 À surveiller`,`yellow`],[`≥25 Dégradé`,`orange`],[`<25 Critique`,`red`]].map(([e,t])=>(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[(0,D.jsx)(`span`,{style:{width:10,height:10,borderRadius:2,background:`var(--mantine-color-${t}-6)`}}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:e})]},e))}),$.parts.length>0&&(0,D.jsxs)(h,{gap:6,children:[(0,D.jsx)(l,{gap:`xs`,wrap:`wrap`,children:$.parts.map(e=>(0,D.jsx)(fe,{withArrow:!0,label:e.kind===`fail`?`Panne possible (poids ${Math.round(e.weight/Un*100)} % · ×${e.weight}) : à son seuil critique, tire l'indice global à 0 (Critique).`:`Saturation (poids ${Math.round(e.weight/Un*100)} % · ×${e.weight}) : dégrade le score mais PLANCHÉE — ne provoque jamais « Critique » seule (le framework ralentit mais sert).`,children:(0,D.jsxs)(v,{size:`sm`,variant:`light`,leftSection:e.kind===`fail`?`⚠`:`🛡`,color:e.score>=75?`teal`:e.score>=50?`yellow`:e.score>=25?`orange`:`red`,style:{cursor:`help`,fontVariantNumeric:`tabular-nums`},children:[e.label,` `,e.score,` ·`,` `,Math.round(e.weight/Un*100),`%`]})},e.label))}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,children:[`Pondération : le `,(0,D.jsx)(`b`,{children:`poids ×N`}),` donne l'importance de la sonde dans la moyenne géométrique. `,(0,D.jsx)(`b`,{children:`🛡 saturation`}),` (CPU, ELU, event-loop, GC) = planchée → tire vers « Dégradé », jamais « Critique » seule. `,(0,D.jsx)(`b`,{children:`⚠ panne`}),` (erreurs, connecteurs, mémoire OOM) = peut tirer l'indice à 0. ELU & event-loop pèsent le plus (×1.5) car ce sont les vraies jauges de saturation du thread.`]})]})]})]})}),z?(0,D.jsx)(_,{variant:`light`,color:`gray`,icon:(0,D.jsx)(Me,{size:18}),title:`Lecture de l'état…`,role:`status`,children:(0,D.jsxs)(h,{gap:6,children:[(0,D.jsx)(T,{h:9,w:`92%`}),(0,D.jsx)(T,{h:9,w:`88%`}),(0,D.jsx)(T,{h:9,w:`40%`})]})}):F?In===`ok`?(0,D.jsx)(_,{variant:`light`,color:`teal`,icon:(0,D.jsx)(je,{size:18}),title:`Application opérationnelle`,role:`status`,children:`Tous les indicateurs sont dans les seuils nominaux.`}):(0,D.jsx)(_,{variant:`light`,color:Pn?`red`:`yellow`,icon:(0,D.jsx)(ne,{size:18}),title:`${Q.length} alerte(s) active(s) — ${Ln.label}`,role:`alert`,children:(0,D.jsxs)(h,{gap:4,children:[Q.map((e,t)=>(0,D.jsxs)(l,{gap:8,wrap:`nowrap`,children:[(0,D.jsx)(v,{size:`xs`,color:e.color,variant:`filled`,circle:!0,children:` `}),(0,D.jsx)(w,{size:`sm`,children:e.msg}),(0,D.jsx)(c,{title:`Alerte`,version:j,summary:e.help})]},t)),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mt:4,children:`Survolez ⓘ pour comprendre chaque alerte. « À surveiller » (jaune) = à garder à l'œil ; « Dégradé » (rouge) = action requise.`})]})}):(0,D.jsx)(_,{variant:`light`,color:`blue`,icon:(0,D.jsx)(Me,{size:18}),title:`Temps réel en pause (snapshot statique)`,role:`status`,children:`Les valeurs ci-dessous sont un instantané. Activez « Temps réel » pour les courbes, la pression GC et le suivi des erreurs (désactivé par défaut pour la perf).`}),(0,D.jsxs)(b,{children:[(0,D.jsx)(_e,{label:`État`,accent:Ln.color,icon:(0,D.jsx)(Se,{size:20}),pulse:F,hint:`Synthèse 3 états : ROUGE « Dégradé » seulement si alerte critique, JAUNE « À surveiller » si avertissement, VERT sinon. Actuellement ${Q.length} alerte(s), temps réel ${re}. ${Vn}`,value:z?(0,D.jsx)(T,{h:30,w:160}):(0,D.jsx)(w,{inherit:!0,c:Ln.color,children:(0,D.jsx)(y,{value:Ln.label,children:Ln.label})}),footer:(0,D.jsxs)(l,{gap:`xs`,wrap:`nowrap`,children:[(0,D.jsx)(v,{size:`sm`,variant:`light`,color:Ln.color,children:Q.length===0?`aucune alerte`:`${Q.length} alerte(s)`}),(0,D.jsx)(v,{size:`sm`,variant:`light`,color:F?`teal`:`gray`,children:F?`live`:`snapshot`}),hn&&(0,D.jsxs)(v,{size:`sm`,variant:`light`,color:`orange`,children:[`retard ~`,(mn/1e3).toFixed(0),`s`]})]})}),(0,D.jsx)(_e,{label:`CPU`,accent:W.color,icon:(0,D.jsx)(Le,{size:20}),pulse:F,active:zn===`performance`,onClick:()=>Bn(`performance`),hint:`CPU à ${B}% d'un cœur (${W.label}). Seuils : élevé ≥50%, critique ≥80%. Charge ⌀ ${C?C.loadavg[0].toFixed(2):`—`} sur ${C?.cpuCount??`—`} cœur(s). Clic → onglet Performance.`,value:z?(0,D.jsx)(T,{h:30,w:80}):(0,D.jsx)(w,{inherit:!0,c:W.color,children:(0,D.jsxs)(y,{value:B,children:[B,`%`]})}),footer:(0,D.jsxs)(l,{gap:`xs`,wrap:`nowrap`,children:[(0,D.jsx)(v,{size:`sm`,variant:`light`,color:W.color,children:W.label}),C&&(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,children:[`charge ⌀ `,C.loadavg[0].toFixed(2)]})]})}),(0,D.jsx)(_e,{label:`Mémoire heap`,accent:G.color,icon:(0,D.jsx)(Re,{size:20}),pulse:F,active:zn===`memoire`,onClick:()=>It(`memoire`),hint:`Heap V8 ${C?N(C.memory.heapUsed):`—`} / ${N(fn)} = ${H}% (${G.label}). Critique ≥80% (proche OOM). CPU et mémoire sont liés → voir le graphe « Corrélation ». Clic → onglet Mémoire.`,value:z?(0,D.jsx)(T,{h:30,w:80}):(0,D.jsx)(w,{inherit:!0,c:G.color,children:(0,D.jsxs)(y,{value:H,children:[H,`%`]})}),footer:(0,D.jsxs)(l,{gap:`xs`,wrap:`nowrap`,children:[(0,D.jsx)(v,{size:`sm`,variant:`light`,color:G.color,children:C?N(C.memory.heapUsed):`—`}),J&&(0,D.jsxs)(v,{size:`sm`,variant:`light`,color:J.pauseMs>50?`orange`:`gray`,leftSection:(0,D.jsx)(Ae,{size:11}),children:[`GC `,J.pauseMs.toFixed(0),` ms`]})]})}),(0,D.jsx)(_e,{label:`Event-loop`,accent:K.color,icon:(0,D.jsx)(Se,{size:20}),pulse:F,active:zn===`performance`,onClick:()=>Bn(`performance`),hint:`Retard de la boucle Node ${V.toFixed(1)} ms (${K.label}). Plus c'est bas, plus le serveur est réactif. Seuils ${gn?`DEV (Vite in-process) : élevé ≥50ms, critique ≥120ms`:`PROD : élevé ≥20ms, critique ≥50ms`}. Quand il monte, il retarde AUSSI le rafraîchissement temps réel et gonfle le ping ORM (attente d'ordonnancement, pas la base). Clic → onglet Performance.`,value:z?(0,D.jsx)(T,{h:30,w:90}):(0,D.jsx)(w,{inherit:!0,c:K.color,children:(0,D.jsxs)(y,{value:V.toFixed(1),children:[V.toFixed(1),` ms`]})}),footer:(0,D.jsx)(v,{size:`sm`,variant:`light`,color:K.color,children:K.label})}),(0,D.jsx)(_e,{label:`Erreurs / min`,accent:q.color,icon:(0,D.jsx)(Ne,{size:20}),pulse:F,active:zn===`erreurs`,onClick:()=>Bn(`erreurs`),hint:`ERROR + CRITIC sur les 60 dernières secondes (canal nodefony:syslog). Surveillé ≥1/min, critique ≥10/min. ${F?`Actuellement ${U}/min.`:`Mesuré uniquement en temps réel (activez-le).`} Clic → onglet Erreurs.`,value:z?(0,D.jsx)(T,{h:30,w:50}):F?(0,D.jsx)(w,{inherit:!0,c:q.color,children:(0,D.jsx)(y,{value:U,children:U})}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:`—`}),footer:(0,D.jsx)(v,{size:`sm`,variant:`light`,color:F?q.color:`gray`,children:F?U===0?`aucune erreur`:q.label:`temps réel requis`})}),(0,D.jsx)(_e,{label:`Uptime`,accent:`gray`,icon:(0,D.jsx)(le,{size:20}),active:zn===`systeme`,onClick:()=>It(`systeme`),hint:`Durée depuis le démarrage du process (per-instance). PID ${C?.pid??x?.pid??`—`}, instance ${C?.instanceId??`—`}. Clic → onglet Système.`,value:z?(0,D.jsx)(T,{h:30,w:110}):Dt(C.uptime),footer:(0,D.jsxs)(v,{size:`sm`,variant:`light`,color:`gray`,children:[`PID `,C?.pid??x?.pid??`—`]})}),(0,D.jsx)(_e,{label:`Connecteurs`,accent:Nn,icon:(0,D.jsx)(Fe,{size:20}),pulse:F&&!!st,active:zn===`connecteurs`,onClick:()=>It(`connecteurs`),hint:`Connexions ORM/bases ${Sn}/${X.length} actives${Cn>0?`, ${Cn} erreur(s)`:``}. ${F?`Ping/erreurs en temps réel (canal nodefony:orm:health).`:`Snapshot — activez le temps réel pour le ping live.`} Clic → onglet Connecteurs.`,value:X.length?(0,D.jsx)(w,{inherit:!0,c:Nn,children:(0,D.jsxs)(y,{value:`${Sn}/${X.length}`,children:[Sn,`/`,X.length]})}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:`—`}),footer:(0,D.jsxs)(l,{gap:`xs`,wrap:`nowrap`,children:[[...new Set(X.map(e=>e.vendor).filter(Boolean))].map(e=>(0,D.jsx)(v,{size:`sm`,variant:`light`,color:`gray`,children:e},e)),Cn>0&&(0,D.jsxs)(v,{size:`sm`,variant:`light`,color:`red`,children:[Cn,` err`]})]})})]}),F&&(0,D.jsx)(pe,{fullscreen:!0,icon:M,title:`Corrélation CPU / Mémoire`,badge:(0,D.jsxs)(l,{gap:`xs`,wrap:`nowrap`,children:[(0,D.jsxs)(v,{variant:`light`,color:W.color,children:[`CPU `,B,`%`]}),(0,D.jsxs)(v,{variant:`light`,color:G.color,children:[`Heap `,H,`%`]}),(0,D.jsx)(m,{title:`CPU & mémoire`,version:j,summary:`CPU (% d'un cœur) et heap (% du plafond V8) sur la même échelle 0-100% (${O.length} mesures). Zone rouge > 80%. ${Vn}`,sections:[{label:`Lecture liée`,body:`Pic mémoire qui tire le CPU = pression GC ; montée CPU sans mémoire = charge calcul ; les deux hauts ensemble = saturation.`}]})]}),caption:`CPU et mémoire sont souvent liés — ici sur le même plan pour voir leur corrélation d'un coup d'œil.`,children:({fullscreen:e})=>O.length>1?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g,{height:e?600:210,max:100,threshold:80,format:e=>`${Math.round(e)}%`,series:[{data:O.map(e=>e.cpu),color:`var(--mantine-color-teal-6)`,label:`CPU %`},{data:O.map(e=>e.heap),color:`var(--mantine-color-blue-6)`,label:`Heap %`}]}),(0,D.jsxs)(l,{gap:`lg`,mt:`xs`,children:[(0,D.jsx)(ue,{color:`var(--mantine-color-teal-6)`,label:`CPU (% d'un cœur)`}),(0,D.jsx)(ue,{color:`var(--mantine-color-blue-6)`,label:`Heap (% du plafond V8)`})]}),e&&(0,D.jsxs)(b,{mt:`lg`,gap:`lg`,children:[(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`CPU actuel`,v:`${B}%`})}),(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`CPU pic`,v:`${Math.round(Math.max(0,...O.map(e=>e.cpu)))}%`})}),(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`Heap actuel`,v:`${H}%`})}),(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`Heap pic`,v:`${Math.round(Math.max(0,...O.map(e=>e.heap)))}%`})}),(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`Event-loop`,v:`${V.toFixed(1)} ms`})}),J&&(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`GC / intervalle`,v:`${J.pauseMs} ms (${J.count})`})}),C&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`Heap utilisé`,v:N(C.memory.heapUsed)})}),(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`RSS`,v:N(C.memory.rss)})})]}),(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsx)(n,{k:`Mesures`,v:`${O.length}`})})]})]}):(0,D.jsx)(At,{msg:Hn})}),F&&A.length>1&&kn.length>0&&(0,D.jsx)(pe,{fullscreen:!0,icon:_t(jn),title:`Débit ORM par connecteur`,badge:(0,D.jsxs)(v,{variant:`light`,color:`yellow`,children:[Math.round(An),` req/s total`]}),caption:`Requêtes/s par connecteur ORM (dérivé du delta de requêtes). Une ligne par connecteur ; la légende affiche le débit temps réel courant. Détail (latence, requêtes lentes) dans l'onglet Connecteurs.`,children:({fullscreen:e})=>(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g,{height:e?600:190,format:e=>`${Math.round(e)}/s`,series:kn.map((e,t)=>({data:A.map(t=>t.rates[e]??0),color:et(tt,t),label:e}))}),(0,D.jsx)(l,{gap:`lg`,mt:e?`md`:`xs`,children:kn.map((t,n)=>(0,D.jsx)(ue,{size:e?`md`:`xs`,color:et(tt,n),label:`${t} — ${Math.round(ut[t]??0)}/s`},t))}),e&&(0,D.jsxs)(h,{gap:`sm`,mt:`xl`,children:[(0,D.jsx)(w,{fw:700,size:`lg`,children:`Détail par connecteur`}),(0,D.jsxs)(o,{fz:`md`,striped:!0,withTableBorder:!0,verticalSpacing:`sm`,horizontalSpacing:`lg`,children:[(0,D.jsx)(o.Thead,{children:(0,D.jsxs)(o.Tr,{children:[(0,D.jsx)(o.Th,{children:`Connecteur`}),(0,D.jsx)(o.Th,{children:`Débit`}),(0,D.jsx)(o.Th,{children:`Latence EWMA`}),(0,D.jsx)(o.Th,{children:`Moy / max`}),(0,D.jsx)(o.Th,{children:`Requêtes`}),(0,D.jsx)(o.Th,{children:`Lentes`})]})}),(0,D.jsx)(o.Tbody,{children:Z.map(e=>(0,D.jsxs)(o.Tr,{children:[(0,D.jsx)(o.Td,{children:(0,D.jsxs)(l,{gap:8,wrap:`nowrap`,children:[(0,D.jsx)(`span`,{style:{width:10,height:10,borderRadius:2,background:Mn(e.connector),flex:`none`}}),_t(e.vendor,22),(0,D.jsx)(w,{fw:600,children:e.connector}),(0,D.jsx)(v,{size:`sm`,variant:`light`,color:`gray`,children:e.vendor||`—`})]})}),(0,D.jsxs)(o.Td,{style:{fontVariantNumeric:`tabular-nums`},children:[Math.round(ut[e.connector]??0),` req/s`]}),(0,D.jsx)(o.Td,{style:{fontVariantNumeric:`tabular-nums`},children:e.ewmaMs==null?`—`:`${e.ewmaMs} ms`}),(0,D.jsxs)(o.Td,{style:{fontVariantNumeric:`tabular-nums`},children:[e.avgMs??`—`,` / `,e.maxMs,` ms`]}),(0,D.jsx)(o.Td,{style:{fontVariantNumeric:`tabular-nums`},children:e.total.toLocaleString()}),(0,D.jsx)(o.Td,{style:{fontVariantNumeric:`tabular-nums`},c:e.slowTotal>0?`orange`:void 0,children:e.slowTotal.toLocaleString()})]},e.connector))})]})]})]})}),(0,D.jsxs)(p,{value:zn,onChange:e=>It(e??`memoire`),keepMounted:!1,variant:`outline`,radius:`md`,children:[(0,D.jsxs)(p.List,{mb:`md`,children:[F&&(0,D.jsx)(p.Tab,{value:`performance`,leftSection:(0,D.jsx)(Le,{size:15}),children:`Performance`}),(0,D.jsx)(p.Tab,{value:`memoire`,leftSection:(0,D.jsx)(Re,{size:15}),children:`Mémoire`}),(0,D.jsx)(p.Tab,{value:`connecteurs`,leftSection:(0,D.jsx)(Fe,{size:15}),children:`Connecteurs`}),F&&(0,D.jsx)(p.Tab,{value:`erreurs`,leftSection:(0,D.jsx)(Ne,{size:15}),children:`Erreurs`}),(0,D.jsx)(p.Tab,{value:`systeme`,leftSection:(0,D.jsx)(Pe,{size:15}),children:`Système`})]}),F&&(0,D.jsx)(p.Panel,{value:`performance`,children:(0,D.jsxs)(b,{children:[(0,D.jsx)(b.Col,{span:{base:12,md:6},children:(0,D.jsx)(pe,{icon:M,title:`Charge CPU`,badge:(0,D.jsxs)(v,{variant:`light`,color:W.color,children:[B,`%`]}),caption:`% d'un cœur sur les 60 dernières secondes. Zone rouge = >80%.`,children:ze.length>1?(0,D.jsx)(g,{height:180,max:100,threshold:80,format:e=>`${Math.round(e)}%`,series:[{data:ze,color:`var(--mantine-color-teal-6)`,label:`CPU`}]}):(0,D.jsx)(At,{msg:Hn})})}),(0,D.jsx)(b.Col,{span:{base:12,md:6},children:(0,D.jsx)(pe,{icon:M,title:`Event-loop lag`,badge:(0,D.jsxs)(v,{variant:`light`,color:K.color,children:[V.toFixed(1),` ms`]}),caption:`Retard de la boucle Node. Plus c'est bas, plus le serveur est réactif. Zone rouge = >50ms.`,children:Ve.length>1?(0,D.jsx)(g,{height:180,threshold:50,format:pn,series:[{data:Ve,color:`var(--mantine-color-grape-6)`,label:`Lag`}]}):(0,D.jsx)(At,{msg:Hn})})}),(0,D.jsx)(b.Col,{span:12,children:(0,D.jsx)(pe,{fullscreen:!0,icon:M,title:`Garbage Collector`,badge:J?(0,D.jsxs)(v,{variant:`light`,color:yn,children:[_n.toFixed(1),`% · `,J.pauseMs.toFixed(0),` ms/`,L/1e3,`s`]}):void 0,caption:`Pause GC (stop-the-world) par intervalle. Mineurs = jeune génération (fréquents, rapides) ; majeurs = vieille génération (rares, coûteux) = source des pics de latence. Temps réel uniquement.`,children:({fullscreen:e})=>nt.length>1?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g,{height:e?560:150,threshold:50,format:e=>`${e.toFixed(1)} ms`,series:[{data:nt,color:`var(--mantine-color-orange-6)`,label:`Pause GC (ms)`}]}),J&&(0,D.jsx)(b,{mt:`md`,children:[{k:`overhead`,label:`Overhead`,value:`${_n.toFixed(1)}%`,color:yn,info:`Part de l'intervalle (${L/1e3}s) passée en pause GC (monde arrêté) = temps CPU volé par le GC. >1% = pression notable, >5% = le GC dégrade la latence. Pause totale : ${J.pauseMs.toFixed(1)} ms.`},{k:`cycles`,label:`Cycles`,value:J.count,info:`Nombre de collectes sur l'intervalle (majeurs + mineurs).`},{k:`major`,label:`Majeurs (mark-sweep)`,value:J.major,color:J.major>0?`orange`:void 0,info:`Collecte de la VIEILLE génération : parcourt tout le tas, stop-the-world long → c'est elle qui crée les pics de latence. Idéalement rare ; beaucoup = pression mémoire (objets promus).`},{k:`minor`,label:`Mineurs (scavenge)`,value:J.minor,info:`Collecte de la JEUNE génération (objets éphémères) : très rapide et fréquente — normal d'en avoir beaucoup, peu coûteux.`},{k:`avg`,label:`Pause / cycle`,value:`${vn.toFixed(1)} ms`,info:`Durée moyenne d'une pause GC sur l'intervalle (pause totale ÷ cycles).`}].map(e=>(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsxs)(S,{withBorder:!0,radius:`sm`,p:`sm`,h:`100%`,children:[(0,D.jsxs)(l,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,D.jsx)(w,{fw:700,size:`xl`,c:e.color,style:{fontVariantNumeric:`tabular-nums`},children:(0,D.jsx)(y,{value:e.value,children:e.value})}),(0,D.jsx)(f,{title:e.label,version:j,summary:e.info})]}),(0,D.jsx)(w,{size:`sm`,fw:500,truncate:!0,children:e.label})]})},e.k))})]}):(0,D.jsx)(At,{msg:Hn})})})]})}),(0,D.jsx)(p.Panel,{value:`memoire`,children:(0,D.jsxs)(h,{gap:`lg`,children:[F&&(0,D.jsx)(pe,{icon:M,title:`Mémoire`,badge:C&&(0,D.jsxs)(v,{variant:`light`,color:`blue`,children:[N(C.memory.heapUsed),` / `,N(C.memory.rss)]}),caption:`Heap (bleu) = objets JS gérés par V8. RSS (violet) = mémoire totale du process. Une croissance continue du heap = fuite potentielle.`,children:Ge.length>1?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g,{height:190,format:e=>`${e.toFixed(0)} MB`,series:[{data:Ge.map(e=>e.heap),color:`var(--mantine-color-blue-6)`,label:`Heap`},{data:Ge.map(e=>e.rss),color:`var(--mantine-color-grape-6)`,label:`RSS`}]}),(0,D.jsxs)(l,{gap:`lg`,mt:`xs`,children:[(0,D.jsx)(ue,{color:`var(--mantine-color-blue-6)`,label:`Heap (objets JS)`}),(0,D.jsx)(ue,{color:`var(--mantine-color-grape-6)`,label:`RSS (process)`})]})]}):(0,D.jsx)(At,{msg:Hn})}),(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,children:[(0,D.jsxs)(l,{gap:6,mb:`md`,children:[(0,D.jsx)(Re,{size:20,stroke:1.5}),M,(0,D.jsx)(d,{order:2,size:`h4`,children:`Heap V8`}),(0,D.jsx)(f,{title:`Heap utilisé`,version:j,summary:`Part du tas V8 utilisée par rapport au plafond (--max-old-space-size).`,sections:[{label:`Seuil`,body:`Critique au-delà de 80 % (risque d'OOM).`},{label:`Disponibilité`,body:`Aussi en snapshot (hors temps réel).`}]})]}),z?(0,D.jsx)(T,{h:120}):(0,D.jsxs)(l,{align:`center`,gap:`xl`,wrap:`nowrap`,children:[(0,D.jsx)(xe,{size:110,thickness:12,sections:[{value:H,color:G.color}],label:(0,D.jsxs)(w,{ta:`center`,size:`lg`,fw:700,children:[H,`%`]})}),(0,D.jsxs)(h,{gap:4,style:{flex:1},children:[(0,D.jsx)(n,{k:`Heap utilisé`,v:N(C.memory.heapUsed)}),(0,D.jsx)(n,{k:`Heap alloué`,v:N(C.memory.heapTotal)}),(0,D.jsx)(n,{k:`Plafond V8`,v:N(fn)}),(0,D.jsx)(n,{k:`RSS`,v:N(C.memory.rss)}),(0,D.jsx)(n,{k:`Externe`,v:N(C.memory.external)})]})]})]}),(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,children:[(0,D.jsxs)(l,{gap:6,mb:`md`,children:[(0,D.jsx)(ke,{size:20,stroke:1.5}),M,(0,D.jsx)(d,{order:2,size:`h4`,children:`Espaces mémoire V8`}),(0,D.jsx)(f,{title:`Tas V8 par espace`,version:j,summary:`Répartition du tas V8 par espace mémoire.`,sections:[{label:`Espaces`,body:`new_space (objets jeunes, scavenge fréquent), old_space (objets promus), large_object_space (gros objets), code_space (code compilé)…`},{label:`Lecture`,body:`Une saturation cible la nature de la pression mémoire.`}]})]}),z?(0,D.jsx)(T,{h:120}):bn.length?(0,D.jsx)(h,{gap:10,children:bn.filter(e=>e.size>0).map(e=>{let t=Math.round(e.used/e.size*100);return(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(l,{justify:`space-between`,gap:`xs`,mb:3,wrap:`nowrap`,children:[(0,D.jsx)(w,{size:`xs`,ff:`monospace`,truncate:!0,children:e.name}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,ff:`monospace`,style:{flexShrink:0},children:[N(e.used),` / `,N(e.size),` (`,t,`%)`]})]}),(0,D.jsx)(be,{value:t,color:t>=90?`red`:t>=70?`yellow`:`teal`,size:`sm`,radius:`sm`,"aria-label":`${e.name} : ${t} % occupé`})]},e.name)})}):(0,D.jsx)(w,{size:`sm`,c:`dimmed`,children:`Sondes mémoire V8 indisponibles.`})]})]})}),(0,D.jsxs)(p.Panel,{value:`connecteurs`,children:[(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,children:[(0,D.jsxs)(l,{gap:6,mb:`md`,children:[(0,D.jsx)(Fe,{size:20,stroke:1.5}),bt,(0,D.jsx)(d,{order:2,size:`h4`,children:`Connecteurs ORM / bases`}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,children:[Sn,`/`,X.length,` actif(s)`]}),(0,D.jsx)(f,{title:`Connecteurs ORM`,version:j,summary:`Connexions ORM du process (per-instance). Cible affichée en chemin relatif (sécurité).`,sections:[{label:F?`Temps réel`:`Snapshot`,body:F?`Ping, erreurs et reconnexions en direct (canal nodefony:orm:health).`:`Snapshot statique — activez le temps réel pour le ping live.`}]})]}),X.length?(0,D.jsx)(b,{children:X.map(e=>(0,D.jsx)(b.Col,{span:{base:12,sm:6,lg:4},children:(0,D.jsxs)(S,{withBorder:!0,radius:`sm`,p:`md`,h:`100%`,children:[(0,D.jsxs)(l,{justify:`space-between`,wrap:`nowrap`,mb:6,children:[(0,D.jsxs)(l,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[_t(e.driver||e.vendor,18),(0,D.jsx)(w,{fw:600,truncate:!0,children:e.name}),(0,D.jsx)(v,{size:`xs`,variant:`light`,color:`gray`,children:e.vendor})]}),(0,D.jsx)(v,{size:`sm`,variant:`light`,color:e.connected?`teal`:`red`,children:e.connected?`connecté`:`coupé`})]}),(0,D.jsxs)(h,{gap:4,children:[(0,D.jsx)(n,{k:`Driver`,v:e.driver||`—`,mono:!0}),(0,D.jsx)(n,{k:`Cible`,v:e.target??`—`,mono:!0}),e.entityCount!=null&&(0,D.jsx)(n,{k:`Entités`,v:String(e.entityCount)}),F&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(n,{k:K.color===`teal`?`Ping`:(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[`Ping`,(0,D.jsx)(c,{title:`Ping — latence trompeuse`,version:j,summary:`Latence mesurée côté serveur (await ping). L'event-loop est à ${V.toFixed(0)} ms.`,sections:[{label:`Attention`,body:`Une grande part de ce ping = attente d'ordonnancement, PAS la base (${e.vendor} local ≈ µs). Ne le lisez pas comme un souci de base tant que l'event-loop est élevé.`}]})]}),v:e.pingOk?(0,D.jsx)(y,{value:e.pingMs??0,children:e.pingMs==null?`—`:`${e.pingMs} ms`}):e.pingOk===!1?(0,D.jsx)(w,{inherit:!0,c:`red`,children:`échec`}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:`en attente…`})}),(0,D.jsx)(n,{k:`Erreurs`,v:(0,D.jsx)(y,{value:e.errorCount??0,children:e.errorCount??0})}),(0,D.jsx)(n,{k:`Reconnexions`,v:(0,D.jsx)(y,{value:e.reconnectCount??0,children:e.reconnectCount??0})})]})]}),!F&&(0,D.jsx)(w,{size:`xs`,c:`dimmed`,mt:6,children:`Ping/erreurs : activez le temps réel.`})]})},e.name))}):(0,D.jsx)(w,{size:`sm`,c:`dimmed`,children:`Aucun connecteur ORM monté.`})]}),(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,mt:`md`,children:[(0,D.jsxs)(l,{gap:6,mb:`md`,children:[(0,D.jsx)(te,{size:20,stroke:1.5}),_t(jn),(0,D.jsx)(d,{order:2,size:`h4`,children:`Flux ORM`}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,children:[On.toLocaleString(),` requête(s) cumulée(s)`]}),(0,D.jsx)(f,{title:`Flux ORM`,version:j,summary:`Débit réel des requêtes vers la base (sonde process-wide, ${Z.length} connecteur(s)).`,sections:[{label:`Technique`,body:`Débit/s dérivé du delta de requêtes entre 2 mesures (comme le CPU%) → temps réel requis. Latence EWMA = moyenne lissée ; « lente » au-delà de ${k?.slowMs??50} ms (SQL paramétré capturé, sans valeur).`},{label:`Mode`,body:wn?`Sonde désactivée (production) : coût nul sur le hot path.`:F?`Débit/s en temps réel.`:`Activez le temps réel pour le débit/s.`}]})]}),wn?(0,D.jsxs)(_,{variant:`light`,color:`gray`,icon:(0,D.jsx)(te,{size:16}),title:`Sonde de flux désactivée`,children:[`La sonde de flux ORM est OFF (environnement de production) pour ne rien coûter sur le chemin des requêtes. Réactivable via la variable d'environnement`,` `,(0,D.jsx)(w,{span:!0,fw:600,children:`NF_ORM_FLOW=1`}),`.`]}):Z.length?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(b,{children:Z.map(e=>{let t=ut[e.connector];return(0,D.jsx)(b.Col,{span:{base:12,sm:6,lg:4},children:(0,D.jsxs)(S,{withBorder:!0,radius:`sm`,p:`md`,h:`100%`,children:[(0,D.jsxs)(l,{justify:`space-between`,wrap:`nowrap`,mb:6,children:[(0,D.jsxs)(l,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[_t(e.vendor,18),(0,D.jsx)(w,{fw:600,truncate:!0,children:e.connector})]}),(0,D.jsx)(v,{size:`xs`,variant:`light`,color:`gray`,children:e.vendor||`—`})]}),(0,D.jsxs)(h,{gap:4,children:[(0,D.jsx)(n,{k:`Débit`,v:F&&t!=null?(0,D.jsxs)(y,{value:Math.round(t),children:[Math.round(t).toLocaleString(),` req/s`]}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:F?`…`:`temps réel requis`})}),(0,D.jsx)(n,{k:`Latence (EWMA)`,v:(0,D.jsx)(y,{value:e.ewmaMs??0,children:e.ewmaMs==null?`—`:`${e.ewmaMs} ms`})}),(0,D.jsx)(n,{k:`Moyenne / max`,v:`${e.avgMs==null?`—`:`${e.avgMs}`} / ${e.maxMs} ms`}),(0,D.jsx)(n,{k:`Requêtes`,v:e.total.toLocaleString()}),(0,D.jsx)(n,{k:`Lentes`,v:(0,D.jsx)(w,{inherit:!0,c:e.slowTotal>0?`orange`:void 0,children:e.slowTotal.toLocaleString()})})]}),F&&A.length>1&&(0,D.jsx)(g,{height:42,format:e=>`${Math.round(e)}/s`,series:[{data:A.map(t=>t.rates[e.connector]??0),color:Mn(e.connector),label:`${e.connector} req/s`}]})]})},e.connector)})}),Tn.length>0&&(0,D.jsxs)(h,{gap:6,mt:`md`,children:[(0,D.jsxs)(l,{gap:6,children:[(0,D.jsx)(w,{fw:600,size:`sm`,children:`Requêtes lentes récentes`}),(0,D.jsx)(f,{title:`Requêtes lentes`,version:j,summary:`Les ${Tn.length} requêtes les plus récentes au-delà de ${k?.slowMs??50} ms, triées par fraîcheur.`,sections:[{label:`Lecture`,body:`Opération color-codée, table cible extraite, barre = durée relative à la pire (${Math.round(En)} ms).`},{label:`Sécurité`,body:`SQL complet au survol — paramétré (0 valeur, 0 credential).`}]})]}),(0,D.jsx)(o.ScrollContainer,{minWidth:520,children:(0,D.jsxs)(o,{striped:!0,highlightOnHover:!0,withTableBorder:!0,verticalSpacing:6,horizontalSpacing:`sm`,fz:`xs`,children:[(0,D.jsx)(o.Thead,{children:(0,D.jsxs)(o.Tr,{children:[(0,D.jsx)(o.Th,{w:70,children:`Quand`}),(0,D.jsx)(o.Th,{w:84,children:`Op.`}),(0,D.jsx)(o.Th,{children:`Table`}),(0,D.jsx)(o.Th,{w:170,children:`Durée`}),Dn&&(0,D.jsx)(o.Th,{children:`Connecteur`})]})}),(0,D.jsx)(o.Tbody,{children:Tn.map((e,t)=>{let{op:n,table:r}=wt(e.sql),i=Math.round(e.durationMs),a=Math.min(100,En>0?e.durationMs/En*100:0);return(0,D.jsxs)(o.Tr,{children:[(0,D.jsx)(o.Td,{c:`dimmed`,children:Et(e.ts)}),(0,D.jsx)(o.Td,{children:(0,D.jsx)(v,{size:`xs`,variant:`light`,color:Ct[n]??`gray`,children:n})}),(0,D.jsx)(o.Td,{children:(0,D.jsx)(fe,{label:e.sql??`<requête>`,multiline:!0,w:420,withArrow:!0,events:{hover:!0,focus:!0,touch:!0},children:(0,D.jsx)(me,{style:{cursor:`help`},children:r})})}),(0,D.jsx)(o.Td,{children:(0,D.jsxs)(l,{gap:6,wrap:`nowrap`,children:[(0,D.jsxs)(w,{fw:600,style:{fontVariantNumeric:`tabular-nums`,minWidth:52},children:[i,` ms`]}),(0,D.jsx)(be,{value:a,color:Tt(e.durationMs),size:`sm`,radius:`xl`,style:{flex:1},"aria-label":`Durée ${i} ms`})]})}),Dn&&(0,D.jsx)(o.Td,{children:(0,D.jsx)(v,{size:`xs`,variant:`light`,color:`gray`,children:e.connector})})]},`${e.ts}-${t}`)})})]})})]})]}):(0,D.jsx)(w,{size:`sm`,c:`dimmed`,children:`Aucune requête observée pour l'instant.`})]})]}),F&&(0,D.jsx)(p.Panel,{value:`erreurs`,children:(0,D.jsx)(pe,{icon:yt,title:`Erreurs / s`,badge:(0,D.jsx)(v,{variant:`light`,color:q.color,children:`${U}/min`}),caption:`Nombre d'ERROR+CRITIC par seconde (canal nodefony:syslog). Toute barre rouge = incident à investiguer. Mesuré en temps réel uniquement.`,children:Qe.length>1?(0,D.jsx)(g,{height:180,threshold:1,format:e=>String(Math.round(e)),series:[{data:Qe,color:`var(--mantine-color-red-6)`,label:`Erreurs`}]}):(0,D.jsx)(At,{msg:Hn})})}),(0,D.jsx)(p.Panel,{value:`systeme`,children:(0,D.jsxs)(h,{gap:`lg`,children:[(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,children:[(0,D.jsxs)(l,{justify:`space-between`,mb:`md`,children:[(0,D.jsxs)(l,{gap:6,wrap:`nowrap`,children:[M,(0,D.jsx)(d,{order:2,size:`h4`,children:`Process`})]}),(0,D.jsxs)(v,{variant:`light`,color:`gray`,size:`sm`,children:[`PID `,C?.proc?.pid??C?.pid??x?.pid??`—`]})]}),(0,D.jsxs)(b,{children:[(0,D.jsx)(b.Col,{span:{base:12,sm:6,md:4},children:(0,D.jsxs)(h,{gap:6,children:[(0,D.jsx)(n,{k:`Node.js`,v:C?.proc?.nodeVersion??`—`,mono:!0}),(0,D.jsx)(n,{k:`Plateforme`,v:C?.proc?`${C.proc.platform}/${C.proc.arch}`:`—`,mono:!0}),(0,D.jsx)(n,{k:`PID / parent`,v:C?.proc?`${C.proc.pid} / ${C.proc.ppid}`:`—`,mono:!0}),(0,D.jsx)(n,{k:`Instance`,v:C?.instanceId??`—`,mono:!0})]})}),(0,D.jsx)(b.Col,{span:{base:12,sm:6,md:4},children:(0,D.jsxs)(h,{gap:6,children:[(0,D.jsx)(n,{k:`Environnement`,v:x?.environment??C?.app?.env??`—`,mono:!0}),(0,D.jsx)(n,{k:`Framework`,v:x?.version??C?.app?.version??`—`,mono:!0}),we(e.roles,`ROLE_DEV`)&&(0,D.jsx)(n,{k:`Branche git`,v:C?.app?.branch||`—`,mono:!0}),(0,D.jsx)(n,{k:`Uptime`,v:C?Dt(C.uptime):`—`,mono:!0})]})}),(0,D.jsx)(b.Col,{span:{base:12,sm:12,md:4},children:(0,D.jsxs)(h,{gap:6,children:[(0,D.jsx)(n,{k:(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[`Saturation (ELU)`,(0,D.jsx)(f,{title:`Event Loop Utilization (ELU)`,version:j,summary:`Fraction du temps où la boucle est ACTIVE (vs idle).`,sections:[{label:`Lecture`,body:`~100 % = thread mono saturé (CPU-bound) — la vraie jauge de saturation, ≠ le lag.`},{label:`Disponibilité`,body:`Temps réel uniquement.`}]})]}),v:C?.elu?(0,D.jsx)(y,{value:Math.round(C.elu.utilization*100),children:(0,D.jsxs)(w,{inherit:!0,c:C.elu.utilization>.9?`red`:C.elu.utilization>.7?`orange`:void 0,children:[Math.round(C.elu.utilization*100),`%`]})}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:F?`…`:`temps réel`})}),(0,D.jsx)(n,{k:(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[`Ctx switch invol.`,(0,D.jsx)(f,{title:`Contexte — involontaires`,version:j,summary:`L'OS a PRÉEMPTÉ le process sur l'intervalle (contention CPU, cœurs sur-souscrits).`,sections:[{label:`Lecture`,body:`C'est LE « switch de contexte » : s'il explose sous charge, le CPU est le goulot (pas le code).`},{label:`Disponibilité`,body:`Temps réel uniquement.`}]})]}),v:C?.ctx?(0,D.jsx)(y,{value:C.ctx.involuntary,children:(0,D.jsxs)(w,{inherit:!0,c:C.ctx.involuntary>C.ctx.voluntary?`orange`:void 0,children:[C.ctx.involuntary,` /`,L/1e3,`s`]})}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:F?`…`:`temps réel`})}),(0,D.jsx)(n,{k:(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[`Ctx switch vol.`,(0,D.jsx)(f,{title:`Contexte — volontaires`,version:j,summary:`Le process a cédé le CPU lui-même (attente I/O, lock, syscall bloquant).`,sections:[{label:`Lecture`,body:`Normal ; à comparer aux involontaires.`}]})]}),v:C?.ctx?(0,D.jsxs)(y,{value:C.ctx.voluntary,children:[C.ctx.voluntary,` /`,L/1e3,`s`]}):(0,D.jsx)(w,{inherit:!0,c:`dimmed`,children:F?`…`:`temps réel`})})]})})]})]}),(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,children:[(0,D.jsxs)(l,{justify:`space-between`,mb:`md`,children:[(0,D.jsxs)(l,{gap:6,wrap:`nowrap`,children:[yt,(0,D.jsx)(d,{order:2,size:`h4`,children:`Système`})]}),(0,D.jsx)(Pe,{size:20,stroke:1.4})]}),(0,D.jsxs)(b,{children:[(0,D.jsx)(b.Col,{span:{base:12,sm:6},children:(0,D.jsxs)(h,{gap:6,children:[(0,D.jsx)(n,{k:(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[`Load average`,(0,D.jsx)(f,{title:`Charge moyenne (load average)`,version:j,summary:`Charge moyenne de l'HÔTE (tous process) sur 1 / 5 / 15 min, en nombre de tâches prêtes.`,sections:[{label:`Lecture`,body:`À comparer au nombre de cœurs : > cœurs = machine surchargée → préemptions (cf contexte involontaires).`}]})]}),v:C?C.loadavg.map(e=>e.toFixed(2)).join(` / `):`—`,mono:!0}),(0,D.jsx)(n,{k:`Cœurs CPU`,v:String(C?.cpuCount??`—`),mono:!0})]})}),(0,D.jsx)(b.Col,{span:{base:12,sm:6},children:(0,D.jsx)(h,{gap:6,children:(0,D.jsx)(n,{k:(0,D.jsxs)(l,{gap:4,wrap:`nowrap`,children:[`Charge / cœur`,(0,D.jsx)(f,{title:`Charge par cœur`,version:j,summary:`Load average 1 min ÷ nombre de cœurs.`,sections:[{label:`Lecture`,body:`< 1 = la machine suit ; > 1 = saturée (les tâches attendent un cœur → préemptions, latence).`}]})]}),v:C&&C.cpuCount?(C.loadavg[0]/C.cpuCount).toFixed(2):`—`,mono:!0})})})]})]}),(0,D.jsxs)(S,{withBorder:!0,radius:`md`,p:`lg`,children:[(0,D.jsxs)(l,{gap:6,mb:`md`,children:[(0,D.jsx)(Ie,{size:20,stroke:1.5}),M,(0,D.jsx)(d,{order:2,size:`h4`,children:`Ressources actives`}),(0,D.jsxs)(w,{size:`xs`,c:`dimmed`,children:[Y?(0,D.jsx)(y,{value:Y.total,children:Y.total}):`—`,` `,`handle(s)`]}),(0,D.jsx)(f,{title:`Handles actives`,version:j,summary:Y?`${Y.total} ressource(s) en ${Object.keys(Y.byType).length} type(s)${xn?` — dominant : ${vt(xn[0]).label} (×${xn[1]})`:``}.`:`Ressources qui maintiennent la boucle d'événements active.`,sections:[Y?{label:`Fuite ?`,body:`Une croissance continue d'un type entre deux ticks = fuite potentielle. Chaque tuile a son ⓘ.`}:{label:`Disponibilité`,body:`Activez le temps réel pour le détail par type.`}]})]}),z?(0,D.jsx)(T,{h:100}):Y&&Object.keys(Y.byType).length?(0,D.jsx)(b,{children:Object.entries(Y.byType).sort((e,t)=>t[1]-e[1]).map(([e,t])=>{let n=vt(e);return(0,D.jsx)(b.Col,{span:{base:6,sm:4,md:3},children:(0,D.jsxs)(S,{withBorder:!0,radius:`sm`,p:`sm`,h:`100%`,children:[(0,D.jsxs)(l,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,D.jsx)(w,{fw:700,size:`xl`,style:{fontVariantNumeric:`tabular-nums`},children:(0,D.jsx)(y,{value:t,children:t})}),(0,D.jsx)(f,{title:n.label,version:j,summary:n.desc})]}),(0,D.jsx)(w,{size:`sm`,fw:500,truncate:!0,children:n.label}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,ff:`monospace`,truncate:!0,children:e})]})},e)})}):(0,D.jsx)(w,{size:`sm`,c:`dimmed`,children:`Aucune ressource active rapportée.`})]})]})})]})]})});function At({msg:e}){return(0,D.jsxs)(h,{align:`center`,justify:`center`,h:180,gap:4,children:[(0,D.jsx)(T,{h:140,w:`100%`}),(0,D.jsx)(w,{size:`xs`,c:`dimmed`,children:e??`En attente des premières mesures…`})]})}export{P as DashboardSupervision,P as default};
@@ -0,0 +1 @@
1
+ import{k as e}from"./src-Dvwdl2PF.js";import{C as t,Ct as n,D as r,Dt as i,E as a,Gt as o,In as s,J as c,Kt as l,L as u,Ln as d,Pn as f,Qt as p,S as ee,T as te,U as m,Vn as ne,Wt as re,_t as ie,b as ae,bn as oe,cn as h,cr as g,et as se,lr as _,mi as v,n as ce,qt as le,sn as ue,tt as de,v as y,w as fe,x as b,y as pe,yn as x,zr as S}from"./ui-Dw0cak25.js";import{c as me}from"./stores-DCbsF6-_.js";import{l as he}from"./hooks-Dst2sguy.js";import{t as ge}from"./IconDownload-CRaiz39P.js";import{H as C,Y as w,vt as T}from"./index-DCk1neIw.js";import{n as E}from"./palette-DhlWIgUC.js";function _e(e,t={getInitialValueInEffect:!0}){let n=S(e,t),{colorScheme:r}=_();return r===`auto`?n:r}var ve=i(`outline`,`braces`,`Braces`,[[`path`,{d:`M7 4a2 2 0 0 0 -2 2v3a2 3 0 0 1 -2 3a2 3 0 0 1 2 3v3a2 2 0 0 0 2 2`,key:`svg-0`}],[`path`,{d:`M17 4a2 2 0 0 1 2 2v3a2 3 0 0 0 2 3a2 3 0 0 0 -2 3v3a2 2 0 0 1 -2 2`,key:`svg-1`}]]),D=i(`outline`,`target`,`Target`,[[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M7 12a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`,key:`svg-1`}],[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-2`}]]),O=e(v(),1),k=e(y(),1),A=g(),j=`v1.0`,M=e=>e.domain||e.module||``,N=250,P=40,F=24,I=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}Id`,L={"one-to-one":`1—1`,"one-to-many":`1—N`,"many-to-one":`N—1`,"many-to-many":`N—N`},R=`·none·`,ye=[`blue`,`grape`,`teal`,`orange`,`cyan`,`pink`,`lime`,`indigo`,`violet`,`green`];function z(e){if(!e)return`gray`;let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)>>>0;return E(ye,t)}var be={width:`100%`,height:`100%`,"--xy-background-color":`var(--mantine-color-body)`,"--xy-background-pattern-color":`var(--mantine-color-default-border)`,"--xy-edge-stroke":`var(--mantine-color-blue-5)`,"--xy-edge-stroke-selected":`var(--mantine-primary-color-filled)`,"--xy-connectionline-stroke":`var(--mantine-color-blue-5)`,"--xy-controls-button-background-color":`var(--mantine-color-default)`,"--xy-controls-button-background-color-hover":`var(--mantine-color-default-hover)`,"--xy-controls-button-color":`var(--mantine-color-text)`,"--xy-controls-button-color-hover":`var(--mantine-color-text)`,"--xy-controls-button-border-color":`var(--mantine-color-default-border)`,"--xy-minimap-background-color":`var(--mantine-color-default)`,"--xy-minimap-mask-background-color":`color-mix(in srgb, var(--mantine-color-body) 70%, transparent)`};function B({data:e}){let{entity:t}=e,n=new Set;for(let e of t.relations)(e.type===`many-to-one`||e.type===`one-to-one`)&&n.add(e.foreignKey??I(e.target));let i=z(M(t));return(0,A.jsxs)(`div`,{style:{width:N,borderRadius:8,border:`1px solid var(--mantine-color-default-border)`,background:`var(--mantine-color-body)`,boxShadow:`var(--mantine-shadow-sm)`,fontSize:12,overflow:`hidden`},children:[(0,A.jsx)(b,{type:`target`,position:r.Left,style:{opacity:0}}),(0,A.jsx)(b,{type:`source`,position:r.Right,style:{opacity:0}}),(0,A.jsxs)(`div`,{style:{height:P,display:`flex`,alignItems:`center`,gap:6,padding:`0 10px`,background:`var(--mantine-color-${i}-light)`,color:`var(--mantine-color-${i}-light-color)`,fontWeight:600,borderBottom:`1px solid var(--mantine-color-default-border)`},children:[(0,A.jsx)(w,{size:14}),(0,A.jsx)(`span`,{style:{flex:1},children:t.name}),(0,A.jsx)(`span`,{style:{opacity:.7,fontSize:10},children:M(t)||`—`})]}),(0,A.jsxs)(`div`,{children:[t.columns.length===0&&(0,A.jsx)(`div`,{style:{height:F,lineHeight:`${F}px`,padding:`0 10px`,color:`var(--mantine-color-dimmed)`},children:`(colonnes non introspectées)`}),t.columns.map(e=>(0,A.jsxs)(`div`,{style:{height:F,display:`flex`,alignItems:`center`,gap:6,padding:`0 10px`,borderTop:`1px solid var(--mantine-color-default-border)`},children:[e.primaryKey?(0,A.jsx)(C,{size:11,color:`var(--mantine-color-yellow-6)`}):n.has(e.name)?(0,A.jsx)(`span`,{style:{fontSize:9,color:`var(--mantine-color-blue-5)`,fontWeight:700},children:`FK`}):(0,A.jsx)(`span`,{style:{width:11}}),(0,A.jsxs)(`span`,{style:{flex:1,fontWeight:e.primaryKey?600:400,color:`var(--mantine-color-text)`},children:[e.name,e.unique&&!e.primaryKey?` ◦`:``]}),(0,A.jsxs)(`span`,{style:{color:`var(--mantine-color-dimmed)`,fontSize:11},children:[e.type,e.nullable?`?`:``]})]},e.name))]})]})}var xe={table:B},V=e=>P+Math.max(1,e.columns.length)*F+2;function Se(e,t){let n=new k.default.graphlib.Graph;n.setGraph({rankdir:`LR`,nodesep:45,ranksep:90}),n.setDefaultEdgeLabel(()=>({}));let r=new Set(e.map(e=>e.name));for(let t of e)n.setNode(t.name,{width:N,height:V(t)});let i=[],o=new Set,s=new Set;for(let c of e)for(let e of c.relations){if(!r.has(e.target))continue;if(e.type===`many-to-many`){let r=[c.name,e.target].sort().join(`<>`);if(o.has(r))continue;o.add(r),n.setEdge(c.name,e.target),s.add(c.name).add(e.target);let l=t===c.name||t===e.target;i.push({id:`m2m-${r}`,source:c.name,target:e.target,type:`smoothstep`,animated:!0,label:L[`many-to-many`],markerEnd:{type:a.ArrowClosed},style:{stroke:l?`var(--mantine-primary-color-filled)`:`var(--mantine-color-grape-5)`,strokeDasharray:`5 5`,strokeWidth:l?2:1}});continue}let l=e.type===`one-to-many`?e.target:c.name,u=e.type===`one-to-many`?c.name:e.target,d=`${l}.${e.foreignKey??I(e.type===`one-to-many`?c.name:e.target)}>${u}`;if(o.has(d))continue;o.add(d),n.setEdge(l,u),s.add(l).add(u);let f=t===l||t===u;i.push({id:d,source:l,target:u,type:`smoothstep`,animated:f,label:e.type===`one-to-one`?L[`one-to-one`]:L[`many-to-one`],markerEnd:{type:a.ArrowClosed},style:{stroke:f?`var(--mantine-primary-color-filled)`:`var(--mantine-color-blue-5)`,strokeWidth:f?2:1}})}let c=e.filter(e=>!s.has(e.name));for(let e of c)n.removeNode(e.name);k.default.layout(n);let l=new Map,u=0;for(let e of n.nodes()){let t=n.node(e);l.set(e,{x:t.x-t.width/2,y:t.y-t.height/2}),u=Math.max(u,t.y+t.height/2)}if(c.length>0){let e=Math.max(1,Math.ceil(Math.sqrt(c.length*3))),t=l.size>0?u+90:0;for(let n=0;n<c.length;n+=e){let r=c.slice(n,n+e);r.forEach((e,n)=>{l.set(e.name,{x:n*295,y:t})}),t+=Math.max(...r.map(V))+45}}return{nodes:e.map(e=>({id:e.name,type:`table`,position:l.get(e.name)??{x:0,y:0},data:{entity:e},style:e.name===t?{outline:`3px solid var(--mantine-primary-color-filled)`,outlineOffset:2,borderRadius:8}:void 0})),edges:i}}function Ce(e,t,n){let r=new Map(e.map(e=>[e.name,e]));if(!r.has(t))return[];let i=new Map,a=(e,t)=>{let n=i.get(e);n||(n=new Set,i.set(e,n)),n.add(t)};for(let t of e)for(let e of t.relations)r.has(e.target)&&(a(t.name,e.target),a(e.target,t.name));let o=new Set([t]),s=[t];for(let e=0;e<n;e+=1){let e=[];for(let t of s)for(let n of i.get(t)??[])o.has(n)||(o.add(n),e.push(n));s=e}return e.filter(e=>o.has(e.name))}var we=60,H=T(()=>{let e=me(),r=_e(`dark`),[i,a]=(0,O.useState)([]),[g,_]=(0,O.useState)(null),[v,y,b]=te([]),[S,C,T]=fe([]),[E,k]=(0,O.useState)(!0),[N,P]=(0,O.useState)(null),[F,I]=(0,O.useState)(!1),[L,ye]=(0,O.useState)(0),[B,V]=(0,O.useState)([]),[H,U]=(0,O.useState)(null),[W,G]=(0,O.useState)(null),[K,Te]=(0,O.useState)(1),[Ee,De]=(0,O.useState)(!1),Oe=(0,O.useRef)(null),ke=he(),[q,Ae]=(0,O.useState)(`graph`),[J,Y]=(0,O.useState)(null),X=(0,O.useMemo)(()=>[...new Set(B.map(M))].sort(),[B]),je=(0,O.useMemo)(()=>B.map(e=>e.name).sort((e,t)=>e.localeCompare(t)),[B]),{visible:Z,oversized:Me,totalBase:Ne}=(0,O.useMemo)(()=>{if(W)return{visible:Ce(B,W,K),oversized:!1,totalBase:0};let e=H?B.filter(e=>(M(e)||R)===H):B;return e.length>we&&!Ee?{visible:[],oversized:!0,totalBase:e.length}:{visible:e,oversized:!1,totalBase:e.length}},[B,H,W,K,Ee]),Pe=(0,O.useMemo)(()=>B.map(e=>({name:e.name,group:M(e)||`—`,cols:e.columns.length,rels:e.relations.length,rows:J?J[e.name]??null:null})),[B,J]),Fe=(0,O.useCallback)(t=>{e.api.getAbsolute(`/nodefony/orm/api/counts?connector=${encodeURIComponent(t)}`).then(Y).catch(()=>Y({}))},[e]);(0,O.useEffect)(()=>{q===`list`&&g&&J===null&&Fe(g)},[q,g,J,Fe]);let Ie=(0,O.useCallback)(e=>{ke(`/nodefony/orm-entity?name=${encodeURIComponent(e)}&connector=${encodeURIComponent(g??``)}`)},[ke,g]),Le=e=>e===null?(0,A.jsx)(x,{size:`sm`,c:`dimmed`,children:`…`}):e<0?(0,A.jsx)(x,{size:`sm`,c:`dimmed`,children:`—`}):(0,A.jsx)(x,{size:`sm`,children:e.toLocaleString()}),Re=[{key:`name`,header:`Table`,sortable:!0,filterable:!0,filterType:`text`,value:e=>e.name,render:e=>(0,A.jsx)(x,{size:`sm`,fw:500,children:e.name})},{key:`group`,header:`Domaine / module`,sortable:!0,filterable:!0,filterType:`select`,value:e=>e.group,render:e=>(0,A.jsx)(h,{size:`xs`,variant:`light`,color:z(e.group===`—`?``:e.group),children:e.group})},{key:`cols`,header:`Colonnes`,align:`right`,sortable:!0,filterable:!0,filterType:`number`,value:e=>e.cols},{key:`rels`,header:`Relations`,align:`right`,sortable:!0,filterable:!0,filterType:`number`,value:e=>e.rels},{key:`rows`,header:`Lignes`,align:`right`,sortable:!0,filterable:!0,filterType:`number`,value:e=>e.rows??-1,hint:`COUNT(*) par table. « … » = comptage en cours, « — » = ORM déconnecté / non comptable.`,render:e=>Le(e.rows)}];(0,O.useEffect)(()=>{e.api.getAbsolute(`/nodefony/orm/api/orms`).then(e=>{a(e),_(t=>t??e.find(e=>e.default)?.name??e.at(0)?.name??null),e.length===0&&k(!1)}).catch(e=>P(e instanceof Error?e.message:`orms failed`))},[e]);let Q=(0,O.useCallback)(t=>{k(!0),e.api.getAbsolute(`/nodefony/orm/api/graph?connector=${encodeURIComponent(t)}`).then(e=>{V(e.entities),P(null)}).catch(e=>P(e instanceof Error?e.message:`graph failed`)).finally(()=>k(!1))},[e]);(0,O.useEffect)(()=>{g&&(U(null),G(null),De(!1),Y(null),Q(g))},[g,Q]),(0,O.useEffect)(()=>{ye(Z.length);let e=Se(Z,W??void 0);y(e.nodes),C(e.edges)},[Z,W,y,C]),(0,O.useEffect)(()=>{if(!W||v.length===0)return;let e=requestAnimationFrame(()=>{Oe.current?.fitView({padding:.25,duration:400,maxZoom:1.3})});return()=>cancelAnimationFrame(e)},[W,v]);let $=(0,O.useCallback)(t=>{g&&e.api.getAbsolute(`/nodefony/orm/api/export/${t}?connector=${encodeURIComponent(g)}`).then(e=>navigator.clipboard.writeText(e.content)).then(()=>{I(!0),setTimeout(()=>I(!1),1500)}).catch(()=>{})},[e,g]);return(0,A.jsxs)(c,{icon:(0,A.jsx)(w,{size:24}),title:`ORM — Modèle de données`,subtitle:(0,A.jsxs)(f,{gap:`xs`,align:`center`,children:[(0,A.jsxs)(x,{span:!0,size:`sm`,c:`dimmed`,children:[L,` entités · `,S.length,` relations`]}),(0,A.jsx)(h,{variant:`light`,color:`brand`,children:`ERD`}),W&&(0,A.jsxs)(h,{variant:`filled`,color:`brand`,leftSection:(0,A.jsx)(D,{size:11}),rightSection:(0,A.jsx)(s,{size:14,variant:`transparent`,color:`gray`,"aria-label":`quitter le focus`,onClick:()=>G(null),children:`✕`}),children:[`focus : `,W]})]}),actions:(0,A.jsxs)(f,{gap:`xs`,children:[(0,A.jsxs)(f,{gap:4,wrap:`nowrap`,children:[(0,A.jsx)(l,{size:`xs`,value:q,onChange:e=>Ae(e),data:[{label:`Graphe`,value:`graph`},{label:`Liste`,value:`list`}],"aria-label":`mode d'affichage`}),(0,A.jsx)(m,{title:`Vues Graphe / Liste`,version:j,summary:`Deux façons d'explorer le schéma de la base.`,sections:[{label:`Graphe`,body:`Diagramme des relations (recherche + focus sur une table).`},{label:`Liste`,body:`Inventaire triable (colonnes, relations, nombre de lignes par table).`}]})]}),q===`graph`&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(f,{gap:4,wrap:`nowrap`,children:[(0,A.jsx)(o,{data:je,value:W,onChange:G,searchable:!0,clearable:!0,size:`xs`,style:{width:240},placeholder:`Rechercher une table…`,nothingFoundMessage:`aucune table`,leftSection:(0,A.jsx)(se,{size:14}),comboboxProps:{withinPortal:!0},"aria-label":`rechercher et cibler une table`}),(0,A.jsx)(m,{title:`Recherche / focus`,version:j,summary:`Cible une table : l'ERD n'affiche plus qu'elle + ses tables liées et zoome dessus.`,sections:[{label:`Pourquoi`,body:`Indispensable sur une grosse base (ici ${B.length} tables) : on ne dessine que le voisinage par les clés étrangères.`}]})]}),W&&(0,A.jsxs)(f,{gap:4,wrap:`nowrap`,children:[(0,A.jsx)(l,{size:`xs`,value:String(K),onChange:e=>Te(Number(e)),data:[{label:`1 saut`,value:`1`},{label:`2 sauts`,value:`2`}],"aria-label":`profondeur du voisinage`}),(0,A.jsx)(m,{title:`Profondeur (sauts)`,version:j,summary:`Étendue du voisinage affiché autour de la table ciblée.`,sections:[{label:`1 saut`,body:`Relations directes (FK entrantes + sortantes).`},{label:`2 sauts`,body:`+ les voisines des voisines (plus large, plus dense).`}]})]})]}),(0,A.jsxs)(f,{gap:4,wrap:`nowrap`,children:[(0,A.jsx)(o,{data:i.map(e=>({value:e.name,label:`${e.name}${e.default?` (défaut)`:``}${e.connected?``:` ⚠`}`})),value:g,onChange:_,size:`xs`,style:{width:220},placeholder:`connecteur…`,"aria-label":`connecteur ORM`}),(0,A.jsx)(m,{title:`Connecteur`,version:j,summary:`Connecteur ORM (base de données) à visualiser.`,sections:[{label:`Légende`,body:`« ⚠ » = connecteur déclaré mais non connecté au boot.`}]})]}),q===`graph`&&X.length>1&&(0,A.jsxs)(f,{gap:4,wrap:`nowrap`,children:[(0,A.jsx)(o,{data:X.map(e=>({value:e||R,label:e||`—`})),value:H,onChange:U,size:`xs`,style:{width:180},placeholder:`Domaine / module…`,clearable:!0,disabled:!!W,"aria-label":`filtrer par domaine ou module`}),(0,A.jsx)(m,{title:`Domaine / module`,version:j,summary:`Regroupe les tables par domaine fonctionnel (ex. « facturation ») si l'entité en déclare un, sinon par module Nodefony propriétaire.`,sections:[{label:`Ici`,body:`${X.length} groupe(s) sur ce connecteur. Désactivé en mode focus.`}]})]}),(0,A.jsxs)(p,{shadow:`md`,position:`bottom-end`,withinPortal:!0,children:[(0,A.jsx)(p.Target,{children:(0,A.jsx)(le,{label:`Exporter le schéma (pivot IA)`,children:(0,A.jsx)(s,{variant:`default`,"aria-label":`export schema`,children:F?(0,A.jsx)(ie,{size:16}):(0,A.jsx)(ge,{size:16})})})}),(0,A.jsxs)(p.Dropdown,{children:[(0,A.jsx)(p.Label,{children:`Copier dans le presse-papier`}),(0,A.jsx)(p.Item,{leftSection:(0,A.jsx)(w,{size:14}),onClick:()=>$(`dbml`),children:`DBML (dbdiagram.io)`}),(0,A.jsx)(p.Item,{leftSection:(0,A.jsx)(ve,{size:14}),onClick:()=>$(`jsonschema`),children:`JSON Schema (IA / validation)`})]})]}),(0,A.jsx)(le,{label:`Rafraîchir`,children:(0,A.jsx)(s,{variant:`default`,onClick:()=>g&&Q(g),"aria-label":`refresh`,children:(0,A.jsx)(de,{size:16})})})]}),children:[N&&(0,A.jsx)(oe,{color:`red`,variant:`light`,title:`Erreur`,children:N}),q===`graph`&&X.length>1&&(0,A.jsxs)(f,{gap:`xs`,role:`group`,"aria-label":`légende des groupes`,children:[(0,A.jsxs)(f,{gap:4,wrap:`nowrap`,children:[(0,A.jsx)(x,{size:`xs`,c:`dimmed`,children:`Domaine / module :`}),(0,A.jsx)(m,{title:`Légende des couleurs`,version:j,summary:`La couleur d'une table = son domaine fonctionnel (ex. « facturation ») si défini, sinon son module Nodefony.`,sections:[{label:`Interaction`,body:`Clique un badge = filtre (même axe que le sélecteur « Domaine / module »).`},{label:`Légende`,body:`⚠ = connecteur non connecté.`}]})]}),X.map(e=>{let t=e||R,n=H===t;return(0,A.jsx)(h,{component:`button`,size:`sm`,variant:!H||n?`light`:`outline`,color:z(e),onClick:()=>!W&&U(n?null:t),disabled:!!W,"aria-pressed":n,"aria-label":`filtrer : ${e||`non rattaché`}`,style:{cursor:W?`default`:`pointer`},children:e||`—`},t)})]}),(0,A.jsxs)(ne,{withBorder:!0,style:{height:u,minHeight:480,position:`relative`,overflow:`hidden`},children:[E&&q===`graph`&&(0,A.jsx)(f,{justify:`center`,align:`center`,style:{position:`absolute`,inset:0,zIndex:5},children:(0,A.jsx)(d,{size:`sm`})}),q===`list`?(0,A.jsx)(`div`,{style:{height:`100%`,padding:`var(--mantine-spacing-xs)`,boxSizing:`border-box`},children:(0,A.jsx)(ce,{mode:`client`,data:Pe,columns:Re,getRowId:e=>e.name,onRowClick:e=>Ie(e.name),initialSort:{key:`name`,dir:`asc`},pageSize:25,height:`100%`,loading:E,searchPlaceholder:`Rechercher une table…`,emptyMessage:`Aucune entité pour ce connecteur.`,persist:{key:`studio.orm.databases`,storage:`local`}})}):!E&&v.length===0?(0,A.jsx)(re,{align:`center`,justify:`center`,gap:`sm`,style:{position:`absolute`,inset:0,padding:24},children:Me?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(D,{size:28,style:{opacity:.45}}),(0,A.jsxs)(x,{c:`dimmed`,size:`sm`,ta:`center`,maw:460,children:[`Grand schéma : `,(0,A.jsx)(`b`,{children:Ne}),` tables. Recherche une table ci-dessus pour la cibler avec ses voisines, bascule en vue Liste, ou affiche tout (le rendu peut ramer).`]}),(0,A.jsxs)(ue,{size:`xs`,variant:`light`,leftSection:(0,A.jsx)(n,{size:14}),onClick:()=>De(!0),children:[`Afficher les `,Ne,` tables`]})]}):(0,A.jsx)(x,{c:`dimmed`,size:`sm`,children:`Aucune entité pour ce connecteur.`})}):(0,A.jsxs)(t,{nodes:v,edges:S,onNodesChange:b,onEdgesChange:T,onNodeClick:(e,t)=>Ie(t.id),onInit:e=>{Oe.current=e},nodeTypes:xe,colorMode:r,style:be,fitView:!0,fitViewOptions:{maxZoom:1,padding:.3},minZoom:.1,proOptions:{hideAttribution:!0},children:[(0,A.jsx)(pe,{gap:16}),(0,A.jsx)(ae,{}),(0,A.jsx)(ee,{pannable:!0,zoomable:!0})]})]})]})});export{H as Database};
@@ -1,4 +1,4 @@
1
- import{or as e}from"./ui-BuLVKSvk.js";var t=`<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="sqlite-original-a" x1="-15.615" x2="-6.741" y1="-9.108" y2="-9.108" gradientTransform="rotate(90 -90.486 64.634) scale(9.2712)" gradientUnits="userSpaceOnUse"><stop stop-color="#95d7f4" offset="0"/><stop stop-color="#0f7fcc" offset=".92"/><stop stop-color="#0f7fcc" offset="1"/></linearGradient></defs><path d="M69.5 99.176c-.059-.73-.094-1.2-.094-1.2S67.2 83.087 64.57 78.642c-.414-.707.043-3.594 1.207-7.88.68 1.169 3.54 6.192 4.118 7.81.648 1.824.78 2.347.78 2.347s-1.57-8.082-4.144-12.797a162.286 162.286 0 012.004-6.265c.973 1.71 3.313 5.859 3.828 7.3.102.293.192.543.27.774.023-.137.05-.274.074-.414-.59-2.504-1.75-6.86-3.336-10.082 3.52-18.328 15.531-42.824 27.84-53.754H16.9c-5.387 0-9.789 4.406-9.789 9.789v88.57c0 5.383 4.406 9.789 9.79 9.789h52.897a118.657 118.657 0 01-.297-14.652" fill="#0b7fcc"/><path d="M65.777 70.762c.68 1.168 3.54 6.188 4.117 7.809.649 1.824.781 2.347.781 2.347s-1.57-8.082-4.144-12.797a164.535 164.535 0 012.004-6.27c.887 1.567 2.922 5.169 3.652 6.872l.082-.961c-.648-2.496-1.633-5.766-2.898-8.328 3.242-16.871 13.68-38.97 24.926-50.898H16.899a6.94 6.94 0 00-6.934 6.933v82.11c17.527-6.731 38.664-12.88 56.855-12.614-.672-2.605-1.441-4.96-2.25-6.324-.414-.707.043-3.597 1.207-7.879" fill="url(#sqlite-original-a)"/><path d="M115.95 2.781c-5.5-4.906-12.164-2.933-18.734 2.899a44.347 44.347 0 00-2.914 2.859c-11.25 11.926-21.684 34.023-24.926 50.895 1.262 2.563 2.25 5.832 2.894 8.328.168.64.32 1.242.442 1.754.285 1.207.437 1.996.437 1.996s-.101-.383-.515-1.582c-.078-.23-.168-.484-.27-.773-.043-.125-.105-.274-.172-.434-.734-1.703-2.765-5.305-3.656-6.867-.762 2.25-1.437 4.36-2.004 6.265 2.578 4.715 4.149 12.797 4.149 12.797s-.137-.523-.782-2.347c-.578-1.621-3.441-6.64-4.117-7.809-1.164 4.281-1.625 7.172-1.207 7.88.809 1.362 1.574 3.722 2.25 6.323 1.524 5.867 2.586 13.012 2.586 13.012s.031.469.094 1.2a118.653 118.653 0 00.297 14.651c.504 6.11 1.453 11.363 2.664 14.172l.828-.449c-1.781-5.535-2.504-12.793-2.188-21.156.48-12.793 3.422-28.215 8.856-44.289 9.191-24.27 21.938-43.738 33.602-53.035-10.633 9.602-25.023 40.684-29.332 52.195-4.82 12.891-8.238 24.984-10.301 36.574 3.55-10.863 15.047-15.53 15.047-15.53s5.637-6.958 12.227-16.888c-3.95.903-10.43 2.442-12.598 3.352-3.2 1.344-4.067 1.8-4.067 1.8s10.371-6.312 19.27-9.171c12.234-19.27 25.562-46.648 12.141-58.621" fill="#003956"/></svg>
1
+ import{cr as e}from"./ui-Dw0cak25.js";var t=`<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="sqlite-original-a" x1="-15.615" x2="-6.741" y1="-9.108" y2="-9.108" gradientTransform="rotate(90 -90.486 64.634) scale(9.2712)" gradientUnits="userSpaceOnUse"><stop stop-color="#95d7f4" offset="0"/><stop stop-color="#0f7fcc" offset=".92"/><stop stop-color="#0f7fcc" offset="1"/></linearGradient></defs><path d="M69.5 99.176c-.059-.73-.094-1.2-.094-1.2S67.2 83.087 64.57 78.642c-.414-.707.043-3.594 1.207-7.88.68 1.169 3.54 6.192 4.118 7.81.648 1.824.78 2.347.78 2.347s-1.57-8.082-4.144-12.797a162.286 162.286 0 012.004-6.265c.973 1.71 3.313 5.859 3.828 7.3.102.293.192.543.27.774.023-.137.05-.274.074-.414-.59-2.504-1.75-6.86-3.336-10.082 3.52-18.328 15.531-42.824 27.84-53.754H16.9c-5.387 0-9.789 4.406-9.789 9.789v88.57c0 5.383 4.406 9.789 9.79 9.789h52.897a118.657 118.657 0 01-.297-14.652" fill="#0b7fcc"/><path d="M65.777 70.762c.68 1.168 3.54 6.188 4.117 7.809.649 1.824.781 2.347.781 2.347s-1.57-8.082-4.144-12.797a164.535 164.535 0 012.004-6.27c.887 1.567 2.922 5.169 3.652 6.872l.082-.961c-.648-2.496-1.633-5.766-2.898-8.328 3.242-16.871 13.68-38.97 24.926-50.898H16.899a6.94 6.94 0 00-6.934 6.933v82.11c17.527-6.731 38.664-12.88 56.855-12.614-.672-2.605-1.441-4.96-2.25-6.324-.414-.707.043-3.597 1.207-7.879" fill="url(#sqlite-original-a)"/><path d="M115.95 2.781c-5.5-4.906-12.164-2.933-18.734 2.899a44.347 44.347 0 00-2.914 2.859c-11.25 11.926-21.684 34.023-24.926 50.895 1.262 2.563 2.25 5.832 2.894 8.328.168.64.32 1.242.442 1.754.285 1.207.437 1.996.437 1.996s-.101-.383-.515-1.582c-.078-.23-.168-.484-.27-.773-.043-.125-.105-.274-.172-.434-.734-1.703-2.765-5.305-3.656-6.867-.762 2.25-1.437 4.36-2.004 6.265 2.578 4.715 4.149 12.797 4.149 12.797s-.137-.523-.782-2.347c-.578-1.621-3.441-6.64-4.117-7.809-1.164 4.281-1.625 7.172-1.207 7.88.809 1.362 1.574 3.722 2.25 6.323 1.524 5.867 2.586 13.012 2.586 13.012s.031.469.094 1.2a118.653 118.653 0 00.297 14.651c.504 6.11 1.453 11.363 2.664 14.172l.828-.449c-1.781-5.535-2.504-12.793-2.188-21.156.48-12.793 3.422-28.215 8.856-44.289 9.191-24.27 21.938-43.738 33.602-53.035-10.633 9.602-25.023 40.684-29.332 52.195-4.82 12.891-8.238 24.984-10.301 36.574 3.55-10.863 15.047-15.53 15.047-15.53s5.637-6.958 12.227-16.888c-3.95.903-10.43 2.442-12.598 3.352-3.2 1.344-4.067 1.8-4.067 1.8s10.371-6.312 19.27-9.171c12.234-19.27 25.562-46.648 12.141-58.621" fill="#003956"/></svg>
2
2
  `,n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M93.809 92.112c.785-6.533.55-7.492 5.416-6.433l1.235.108c3.742.17 8.637-.602 11.513-1.938 6.191-2.873 9.861-7.668 3.758-6.409-13.924 2.873-14.881-1.842-14.881-1.842 14.703-21.815 20.849-49.508 15.543-56.287-14.47-18.489-39.517-9.746-39.936-9.52l-.134.025c-2.751-.571-5.83-.912-9.289-.968-6.301-.104-11.082 1.652-14.709 4.402 0 0-44.683-18.409-42.604 23.151.442 8.841 12.672 66.898 27.26 49.362 5.332-6.412 10.484-11.834 10.484-11.834 2.558 1.699 5.622 2.567 8.834 2.255l.249-.212c-.078.796-.044 1.575.099 2.497-3.757 4.199-2.653 4.936-10.166 6.482-7.602 1.566-3.136 4.355-.221 5.084 3.535.884 11.712 2.136 17.238-5.598l-.22.882c1.474 1.18 1.375 8.477 1.583 13.69.209 5.214.558 10.079 1.621 12.948 1.063 2.868 2.317 10.256 12.191 8.14 8.252-1.764 14.561-4.309 15.136-27.985"/><path d="M75.458 125.256c-4.367 0-7.211-1.689-8.938-3.32-2.607-2.46-3.641-5.629-4.259-7.522l-.267-.79c-1.244-3.358-1.666-8.193-1.916-14.419-.038-.935-.064-1.898-.093-2.919-.021-.747-.047-1.684-.085-2.664a18.8 18.8 0 01-4.962 1.568c-3.079.526-6.389.356-9.84-.507-2.435-.609-4.965-1.871-6.407-3.82-4.203 3.681-8.212 3.182-10.396 2.453-3.853-1.285-7.301-4.896-10.542-11.037-2.309-4.375-4.542-10.075-6.638-16.943-3.65-11.96-5.969-24.557-6.175-28.693C4.292 23.698 7.777 14.44 15.296 9.129 27.157.751 45.128 5.678 51.68 7.915c4.402-2.653 9.581-3.944 15.433-3.851 3.143.051 6.136.327 8.916.823 2.9-.912 8.628-2.221 15.185-2.139 12.081.144 22.092 4.852 28.949 13.615 4.894 6.252 2.474 19.381.597 26.651-2.642 10.226-7.271 21.102-12.957 30.57 1.544.011 3.781-.174 6.961-.831 6.274-1.295 8.109 2.069 8.607 3.575 1.995 6.042-6.677 10.608-9.382 11.864-3.466 1.609-9.117 2.589-13.745 2.377l-.202-.013-1.216-.107-.12 1.014-.116.991c-.311 11.999-2.025 19.598-5.552 24.619-3.697 5.264-8.835 6.739-13.361 7.709-1.544.33-2.947.474-4.219.474zm-9.19-43.671c2.819 2.256 3.066 6.501 3.287 14.434.028.99.054 1.927.089 2.802.106 2.65.355 8.855 1.327 11.477.137.371.26.747.39 1.146 1.083 3.316 1.626 4.979 6.309 3.978 3.931-.843 5.952-1.599 7.534-3.851 2.299-3.274 3.585-9.86 3.821-19.575l4.783.116-4.75-.57.14-1.186c.455-3.91.783-6.734 3.396-8.602 2.097-1.498 4.486-1.353 6.389-1.01-2.091-1.58-2.669-3.433-2.823-4.193l-.399-1.965 1.121-1.663c6.457-9.58 11.781-21.354 14.609-32.304 2.906-11.251 2.02-17.226 1.134-18.356-11.729-14.987-32.068-8.799-34.192-8.097l-.359.194-1.8.335-.922-.191c-2.542-.528-5.366-.82-8.393-.869-4.756-.08-8.593 1.044-11.739 3.431l-2.183 1.655-2.533-1.043c-5.412-2.213-21.308-6.662-29.696-.721-4.656 3.298-6.777 9.76-6.305 19.207.156 3.119 2.275 14.926 5.771 26.377 4.831 15.825 9.221 21.082 11.054 21.693.32.108 1.15-.537 1.976-1.529a270.708 270.708 0 0110.694-12.07l2.77-2.915 3.349 2.225c1.35.897 2.839 1.406 4.368 1.502l7.987-6.812-1.157 11.808c-.026.265-.039.626.065 1.296l.348 2.238-1.51 1.688-.174.196 4.388 2.025 1.836-2.301z"/><path fill="#336791" d="M115.731 77.44c-13.925 2.873-14.882-1.842-14.882-1.842 14.703-21.816 20.849-49.51 15.545-56.287C101.924.823 76.875 9.566 76.457 9.793l-.135.024c-2.751-.571-5.83-.911-9.291-.967-6.301-.103-11.08 1.652-14.707 4.402 0 0-44.684-18.408-42.606 23.151.442 8.842 12.672 66.899 27.26 49.363 5.332-6.412 10.483-11.834 10.483-11.834 2.559 1.699 5.622 2.567 8.833 2.255l.25-.212c-.078.796-.042 1.575.1 2.497-3.758 4.199-2.654 4.936-10.167 6.482-7.602 1.566-3.136 4.355-.22 5.084 3.534.884 11.712 2.136 17.237-5.598l-.221.882c1.473 1.18 2.507 7.672 2.334 13.557-.174 5.885-.29 9.926.871 13.082 1.16 3.156 2.316 10.256 12.192 8.14 8.252-1.768 12.528-6.351 13.124-13.995.422-5.435 1.377-4.631 1.438-9.49l.767-2.3c.884-7.367.14-9.743 5.225-8.638l1.235.108c3.742.17 8.639-.602 11.514-1.938 6.19-2.871 9.861-7.667 3.758-6.408z"/><path fill="#fff" d="M75.957 122.307c-8.232 0-10.84-6.519-11.907-9.185-1.562-3.907-1.899-19.069-1.551-31.503a1.59 1.59 0 011.64-1.55 1.594 1.594 0 011.55 1.639c-.401 14.341.168 27.337 1.324 30.229 1.804 4.509 4.54 8.453 12.275 6.796 7.343-1.575 10.093-4.359 11.318-11.46.94-5.449 2.799-20.951 3.028-24.01a1.593 1.593 0 011.71-1.472 1.597 1.597 0 011.472 1.71c-.239 3.185-2.089 18.657-3.065 24.315-1.446 8.387-5.185 12.191-13.794 14.037-1.463.313-2.792.453-4 .454zM31.321 90.466a6.71 6.71 0 01-2.116-.35c-5.347-1.784-10.44-10.492-15.138-25.885-3.576-11.717-5.842-23.947-6.041-27.922-.589-11.784 2.445-20.121 9.02-24.778 13.007-9.216 34.888-.44 35.813-.062a1.596 1.596 0 01-1.207 2.955c-.211-.086-21.193-8.492-32.768-.285-5.622 3.986-8.203 11.392-7.672 22.011.167 3.349 2.284 15.285 5.906 27.149 4.194 13.742 8.967 22.413 13.096 23.79.648.216 2.62.873 5.439-2.517A245.272 245.272 0 0145.88 73.046a1.596 1.596 0 012.304 2.208c-.048.05-4.847 5.067-10.077 11.359-2.477 2.979-4.851 3.853-6.786 3.853zm69.429-13.445a1.596 1.596 0 01-1.322-2.487c14.863-22.055 20.08-48.704 15.612-54.414-5.624-7.186-13.565-10.939-23.604-11.156-7.433-.16-13.341 1.738-14.307 2.069l-.243.099c-.971.305-1.716-.227-1.997-.849a1.6 1.6 0 01.631-2.025c.046-.027.192-.089.429-.176l-.021.006.021-.007c1.641-.601 7.639-2.4 15.068-2.315 11.108.118 20.284 4.401 26.534 12.388 2.957 3.779 2.964 12.485.019 23.887-3.002 11.625-8.651 24.118-15.497 34.277-.306.457-.81.703-1.323.703zm.76 10.21c-2.538 0-4.813-.358-6.175-1.174-1.4-.839-1.667-1.979-1.702-2.584-.382-6.71 3.32-7.878 5.208-8.411-.263-.398-.637-.866-1.024-1.349-1.101-1.376-2.609-3.26-3.771-6.078-.182-.44-.752-1.463-1.412-2.648-3.579-6.418-11.026-19.773-6.242-26.612 2.214-3.165 6.623-4.411 13.119-3.716C97.6 28.837 88.5 10.625 66.907 10.271c-6.494-.108-11.82 1.889-15.822 5.93-8.96 9.049-8.636 25.422-8.631 25.586a1.595 1.595 0 11-3.19.084c-.02-.727-.354-17.909 9.554-27.916C53.455 9.272 59.559 6.96 66.96 7.081c13.814.227 22.706 7.25 27.732 13.101 5.479 6.377 8.165 13.411 8.386 15.759.165 1.746-1.088 2.095-1.341 2.147l-.576.013c-6.375-1.021-10.465-.312-12.156 2.104-3.639 5.201 3.406 17.834 6.414 23.229.768 1.376 1.322 2.371 1.576 2.985.988 2.396 2.277 4.006 3.312 5.3.911 1.138 1.7 2.125 1.982 3.283.131.23 1.99 2.98 13.021.703 2.765-.57 4.423-.083 4.93 1.45.997 3.015-4.597 6.532-7.694 7.97-2.775 1.29-7.204 2.106-11.036 2.106zm-4.696-4.021c.35.353 2.101.962 5.727.806 3.224-.138 6.624-.839 8.664-1.786 2.609-1.212 4.351-2.567 5.253-3.492l-.5.092c-7.053 1.456-12.042 1.262-14.828-.577a6.162 6.162 0 01-.54-.401c-.302.119-.581.197-.78.253-1.58.443-3.214.902-2.996 5.105zm-45.562 8.915c-1.752 0-3.596-.239-5.479-.71-1.951-.488-5.24-1.957-5.19-4.37.057-2.707 3.994-3.519 5.476-3.824 5.354-1.103 5.703-1.545 7.376-3.67.488-.619 1.095-1.39 1.923-2.314 1.229-1.376 2.572-2.073 3.992-2.073.989 0 1.8.335 2.336.558 1.708.708 3.133 2.42 3.719 4.467.529 1.847.276 3.625-.71 5.006-3.237 4.533-7.886 6.93-13.443 6.93zm-7.222-4.943c.481.372 1.445.869 2.518 1.137 1.631.408 3.213.615 4.705.615 4.546 0 8.196-1.882 10.847-5.594.553-.774.387-1.757.239-2.274-.31-1.083-1.08-2.068-1.873-2.397-.43-.178-.787-.314-1.115-.314-.176 0-.712 0-1.614 1.009a41.146 41.146 0 00-1.794 2.162c-2.084 2.646-3.039 3.544-9.239 4.821-1.513.31-2.289.626-2.674.835zm12.269-7.36a1.596 1.596 0 01-1.575-1.354 8.218 8.218 0 01-.08-.799c-4.064-.076-7.985-1.82-10.962-4.926-3.764-3.927-5.477-9.368-4.699-14.927.845-6.037.529-11.366.359-14.229-.047-.796-.081-1.371-.079-1.769.003-.505.013-1.844 4.489-4.113 1.592-.807 4.784-2.215 8.271-2.576 5.777-.597 9.585 1.976 10.725 7.246 3.077 14.228.244 20.521-1.825 25.117-.385.856-.749 1.664-1.04 2.447l-.257.69c-1.093 2.931-2.038 5.463-1.748 7.354a1.595 1.595 0 01-1.335 1.819l-.244.02zM42.464 42.26l.062 1.139c.176 2.974.504 8.508-.384 14.86-.641 4.585.759 9.06 3.843 12.276 2.437 2.542 5.644 3.945 8.94 3.945h.068c.369-1.555.982-3.197 1.642-4.966l.255-.686c.329-.884.714-1.74 1.122-2.646 1.991-4.424 4.47-9.931 1.615-23.132-.565-2.615-1.936-4.128-4.189-4.627-4.628-1.022-11.525 2.459-12.974 3.837zm9.63-.677c-.08.564 1.033 2.07 2.485 2.271 1.449.203 2.689-.975 2.768-1.539.079-.564-1.033-1.186-2.485-1.388-1.451-.202-2.691.092-2.768.656zm2.818 2.826l-.407-.028c-.9-.125-1.81-.692-2.433-1.518-.219-.29-.576-.852-.505-1.354.101-.736.999-1.177 2.4-1.177.313 0 .639.023.967.069.766.106 1.477.327 2.002.62.91.508.977 1.075.936 1.368-.112.813-1.405 2.02-2.96 2.02zm-2.289-2.732c.045.348.907 1.496 2.029 1.651l.261.018c1.036 0 1.81-.815 1.901-1.082-.096-.182-.762-.634-2.025-.81a5.823 5.823 0 00-.821-.059c-.812 0-1.243.183-1.345.282zm43.605-1.245c.079.564-1.033 2.07-2.484 2.272-1.45.202-2.691-.975-2.771-1.539-.076-.564 1.036-1.187 2.486-1.388 1.45-.203 2.689.092 2.769.655zm-2.819 2.56c-1.396 0-2.601-1.086-2.7-1.791-.115-.846 1.278-1.489 2.712-1.688.316-.044.629-.066.93-.066 1.238 0 2.058.363 2.14.949.053.379-.238.964-.739 1.492-.331.347-1.026.948-1.973 1.079l-.37.025zm.943-3.013c-.276 0-.564.021-.856.061-1.441.201-2.301.779-2.259 1.089.048.341.968 1.332 2.173 1.332l.297-.021c.787-.109 1.378-.623 1.66-.919.443-.465.619-.903.598-1.052-.028-.198-.56-.49-1.613-.49zm3.965 32.843a1.594 1.594 0 01-1.324-2.483c3.398-5.075 2.776-10.25 2.175-15.255-.257-2.132-.521-4.337-.453-6.453.07-2.177.347-3.973.614-5.71.317-2.058.617-4.002.493-6.31a1.595 1.595 0 113.186-.172c.142 2.638-.197 4.838-.525 6.967-.253 1.643-.515 3.342-.578 5.327-.061 1.874.178 3.864.431 5.97.64 5.322 1.365 11.354-2.691 17.411a1.596 1.596 0 01-1.328.708z"/></svg>`,r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#00618A" d="M117.688 98.242c-6.973-.191-12.297.461-16.852 2.379-1.293.547-3.355.559-3.566 2.18.711.746.82 1.859 1.387 2.777 1.086 1.754 2.922 4.113 4.559 5.352 1.789 1.348 3.633 2.793 5.551 3.961 3.414 2.082 7.223 3.27 10.504 5.352 1.938 1.23 3.859 2.777 5.75 4.164.934.684 1.563 1.75 2.773 2.18v-.195c-.637-.812-.801-1.93-1.387-2.777l-2.578-2.578c-2.52-3.344-5.719-6.281-9.117-8.719-2.711-1.949-8.781-4.578-9.91-7.73l-.199-.199c1.922-.219 4.172-.914 5.949-1.391 2.98-.797 5.645-.59 8.719-1.387l4.164-1.187v-.793c-1.555-1.594-2.664-3.707-4.359-5.152-4.441-3.781-9.285-7.555-14.273-10.703-2.766-1.746-6.184-2.883-9.117-4.363-.988-.496-2.719-.758-3.371-1.586-1.539-1.961-2.379-4.449-3.566-6.738-2.488-4.793-4.93-10.023-7.137-15.066-1.504-3.437-2.484-6.828-4.359-9.91-9-14.797-18.687-23.73-33.695-32.508-3.195-1.867-7.039-2.605-11.102-3.57l-6.543-.395c-1.332-.555-2.715-2.184-3.965-2.977C16.977 3.52 4.223-3.312.539 5.672-1.785 11.34 4.016 16.871 6.09 19.746c1.457 2.012 3.32 4.273 4.359 6.539.688 1.492.805 2.984 1.391 4.559 1.438 3.883 2.695 8.109 4.559 11.695.941 1.816 1.98 3.727 3.172 5.352.727.996 1.98 1.438 2.18 2.973-1.227 1.715-1.297 4.375-1.984 6.543-3.098 9.77-1.926 21.91 2.578 29.137 1.383 2.223 4.641 6.98 9.117 5.156 3.918-1.598 3.043-6.539 4.164-10.902.254-.988.098-1.715.594-2.379v.199l3.57 7.133c2.641 4.254 7.324 8.699 11.297 11.699 2.059 1.555 3.68 4.242 6.344 5.152v-.199h-.199c-.516-.805-1.324-1.137-1.98-1.781-1.551-1.523-3.277-3.414-4.559-5.156-3.613-4.902-6.805-10.27-9.711-15.855-1.391-2.668-2.598-5.609-3.77-8.324-.453-1.047-.445-2.633-1.387-3.172-1.281 1.988-3.172 3.598-4.164 5.945-1.582 3.754-1.789 8.336-2.375 13.082-.348.125-.195.039-.398.199-2.762-.668-3.73-3.508-4.758-5.949-2.594-6.164-3.078-16.09-.793-23.191.59-1.836 3.262-7.617 2.18-9.316-.516-1.691-2.219-2.672-3.172-3.965-1.18-1.598-2.355-3.703-3.172-5.551-2.125-4.805-3.113-10.203-5.352-15.062-1.07-2.324-2.875-4.676-4.359-6.738-1.645-2.289-3.484-3.977-4.758-6.742-.453-.984-1.066-2.559-.398-3.566.215-.684.516-.969 1.191-1.191 1.148-.887 4.352.297 5.547.793 3.18 1.32 5.832 2.578 8.527 4.363 1.289.855 2.598 2.512 4.16 2.973h1.785c2.789.641 5.914.195 8.523.988 4.609 1.402 8.738 3.582 12.488 5.949 11.422 7.215 20.766 17.48 27.156 29.734 1.027 1.973 1.473 3.852 2.379 5.945 1.824 4.219 4.125 8.559 5.941 12.688 1.816 4.113 3.582 8.27 6.148 11.695 1.348 1.801 6.551 2.766 8.918 3.766 1.66.699 4.379 1.43 5.949 2.379 3 1.809 5.906 3.965 8.723 5.945 1.402.992 5.73 3.168 5.945 4.957zm-88.605-75.52c-1.453-.027-2.48.156-3.566.395v.199h.195c.695 1.422 1.918 2.34 2.777 3.566l1.98 4.164.199-.195c1.227-.867 1.789-2.25 1.781-4.363-.492-.52-.562-1.164-.992-1.785-.562-.824-1.66-1.289-2.375-1.98zm0 0"/></svg>
3
3
  `,i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#003545" d="M127.403 22.767a1.824 1.824 0 0 0-1.24-.414c-1.236 0-2.833.838-3.693 1.287l-.34.175a11.721 11.721 0 0 1-4.612 1.16 64.756 64.756 0 0 0-4.896.34c-10.91 1.121-15.777 9.484-20.464 17.57-2.552 4.399-5.188 8.969-8.802 12.46-.747.724-1.541 1.4-2.378 2.02-3.74 2.78-8.435 4.765-12.088 6.17-3.518 1.345-7.359 2.553-11.066 3.722-3.4 1.07-6.609 2.082-9.56 3.178-1.144.422-2.299.823-3.459 1.205-2.688.872-4.626 1.54-7.458 3.49a47.949 47.949 0 0 0-2.963 2.183 31.255 31.255 0 0 0-5.913 6.227 36.767 36.767 0 0 1-4.966 5.961c-.598.584-1.659.872-3.248.872-1.86 0-4.115-.384-6.501-.79-2.462-.435-5.006-.85-7.188-.85-1.771 0-3.13.29-4.141.873 0 0-1.708.995-2.427 2.282l.707.32a14.493 14.493 0 0 1 3.02 2.181 15.153 15.153 0 0 0 3.141 2.234c.365.134.695.344.97.616-.296.436-.734.999-1.193 1.6-2.517 3.296-3.987 5.377-3.145 6.511.404.21.855.312 1.31.297 5.49 0 8.44-1.426 12.17-3.233 1.082-.522 2.182-1.06 3.491-1.615 2.182-.946 4.531-2.456 7.022-4.054 3.26-2.124 6.668-4.306 9.976-5.358a27.188 27.188 0 0 1 8.391-1.179c3.492 0 7.167.466 10.71.92 2.641.342 5.377.69 8.06.852a50.27 50.27 0 0 0 2.946.092 34.127 34.127 0 0 0 3.757-.196l.3-.105c1.883-1.158 2.765-3.64 3.618-6.04.551-1.546 1.014-2.933 1.747-3.814.043-.043.09-.082.14-.117a.175.175 0 0 1 .213.034v.07c-.435 9.387-4.215 15.348-8.038 20.646l-2.552 2.736s3.573 0 5.607-.786c7.42-2.217 13.018-7.104 17.093-14.899a63.583 63.583 0 0 0 2.693-6.15c.07-.172.712-.496.65.407-.021.267-.04.563-.061.874 0 .182 0 .37-.035.558-.104 1.31-.414 4.076-.414 4.076l2.29-1.227c5.525-3.49 9.784-10.533 13.015-21.491 1.344-4.566 2.33-9.1 3.197-13.093 1.039-4.801 1.935-8.915 2.96-10.512 1.61-2.506 4.067-4.2 6.445-5.844.323-.222.65-.437.97-.673 2.988-2.098 5.96-4.52 6.616-9.037v-.1c.474-3.37.073-4.228-.384-4.621z"/></svg>
4
4
  `,a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill-rule="evenodd" clip-rule="evenodd" fill="#439934" d="M88.038 42.812c1.605 4.643 2.761 9.383 3.141 14.296.472 6.095.256 12.147-1.029 18.142-.035.165-.109.32-.164.48-.403.001-.814-.049-1.208.012-3.329.523-6.655 1.065-9.981 1.604-3.438.557-6.881 1.092-10.313 1.687-1.216.21-2.721-.041-3.212 1.641-.014.046-.154.054-.235.08l.166-10.051-.169-24.252 1.602-.275c2.62-.429 5.24-.864 7.862-1.281 3.129-.497 6.261-.98 9.392-1.465 1.381-.215 2.764-.412 4.148-.618z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#45A538" d="M61.729 110.054c-1.69-1.453-3.439-2.842-5.059-4.37-8.717-8.222-15.093-17.899-18.233-29.566-.865-3.211-1.442-6.474-1.627-9.792-.13-2.322-.318-4.665-.154-6.975.437-6.144 1.325-12.229 3.127-18.147l.099-.138c.175.233.427.439.516.702 1.759 5.18 3.505 10.364 5.242 15.551 5.458 16.3 10.909 32.604 16.376 48.9.107.318.384.579.583.866l-.87 2.969z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#46A037" d="M88.038 42.812c-1.384.206-2.768.403-4.149.616-3.131.485-6.263.968-9.392 1.465-2.622.417-5.242.852-7.862 1.281l-1.602.275-.012-1.045c-.053-.859-.144-1.717-.154-2.576-.069-5.478-.112-10.956-.18-16.434-.042-3.429-.105-6.857-.175-10.285-.043-2.13-.089-4.261-.185-6.388-.052-1.143-.236-2.28-.311-3.423-.042-.657.016-1.319.029-1.979.817 1.583 1.616 3.178 2.456 4.749 1.327 2.484 3.441 4.314 5.344 6.311 7.523 7.892 12.864 17.068 16.193 27.433z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#409433" d="M65.036 80.753c.081-.026.222-.034.235-.08.491-1.682 1.996-1.431 3.212-1.641 3.432-.594 6.875-1.13 10.313-1.687 3.326-.539 6.652-1.081 9.981-1.604.394-.062.805-.011 1.208-.012-.622 2.22-1.112 4.488-1.901 6.647-.896 2.449-1.98 4.839-3.131 7.182a49.142 49.142 0 01-6.353 9.763c-1.919 2.308-4.058 4.441-6.202 6.548-1.185 1.165-2.582 2.114-3.882 3.161l-.337-.23-1.214-1.038-1.256-2.753a41.402 41.402 0 01-1.394-9.838l.023-.561.171-2.426c.057-.828.133-1.655.168-2.485.129-2.982.241-5.964.359-8.946z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#4FAA41" d="M65.036 80.753c-.118 2.982-.23 5.964-.357 8.947-.035.83-.111 1.657-.168 2.485l-.765.289c-1.699-5.002-3.399-9.951-5.062-14.913-2.75-8.209-5.467-16.431-8.213-24.642a4498.887 4498.887 0 00-6.7-19.867c-.105-.31-.407-.552-.617-.826l4.896-9.002c.168.292.39.565.496.879a6167.476 6167.476 0 016.768 20.118c2.916 8.73 5.814 17.467 8.728 26.198.116.349.308.671.491 1.062l.67-.78-.167 10.052z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#4AA73C" d="M43.155 32.227c.21.274.511.516.617.826a4498.887 4498.887 0 016.7 19.867c2.746 8.211 5.463 16.433 8.213 24.642 1.662 4.961 3.362 9.911 5.062 14.913l.765-.289-.171 2.426-.155.559c-.266 2.656-.49 5.318-.814 7.968-.163 1.328-.509 2.632-.772 3.947-.198-.287-.476-.548-.583-.866-5.467-16.297-10.918-32.6-16.376-48.9a3888.972 3888.972 0 00-5.242-15.551c-.089-.263-.34-.469-.516-.702l3.272-8.84z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#57AE47" d="M65.202 70.702l-.67.78c-.183-.391-.375-.714-.491-1.062-2.913-8.731-5.812-17.468-8.728-26.198a6167.476 6167.476 0 00-6.768-20.118c-.105-.314-.327-.588-.496-.879l6.055-7.965c.191.255.463.482.562.769 1.681 4.921 3.347 9.848 5.003 14.778 1.547 4.604 3.071 9.215 4.636 13.813.105.308.47.526.714.786l.012 1.045c.058 8.082.115 16.167.171 24.251z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#60B24F" d="M65.021 45.404c-.244-.26-.609-.478-.714-.786-1.565-4.598-3.089-9.209-4.636-13.813-1.656-4.93-3.322-9.856-5.003-14.778-.099-.287-.371-.514-.562-.769 1.969-1.928 3.877-3.925 5.925-5.764 1.821-1.634 3.285-3.386 3.352-5.968.003-.107.059-.214.145-.514l.519 1.306c-.013.661-.072 1.322-.029 1.979.075 1.143.259 2.28.311 3.423.096 2.127.142 4.258.185 6.388.069 3.428.132 6.856.175 10.285.067 5.478.111 10.956.18 16.434.008.861.098 1.718.152 2.577z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#A9AA88" d="M62.598 107.085c.263-1.315.609-2.62.772-3.947.325-2.649.548-5.312.814-7.968l.066-.01.066.011a41.402 41.402 0 001.394 9.838c-.176.232-.425.439-.518.701-.727 2.05-1.412 4.116-2.143 6.166-.1.28-.378.498-.574.744l-.747-2.566.87-2.969z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#B6B598" d="M62.476 112.621c.196-.246.475-.464.574-.744.731-2.05 1.417-4.115 2.143-6.166.093-.262.341-.469.518-.701l1.255 2.754c-.248.352-.59.669-.728 1.061l-2.404 7.059c-.099.283-.437.483-.663.722l-.695-3.985z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#C2C1A7" d="M63.171 116.605c.227-.238.564-.439.663-.722l2.404-7.059c.137-.391.48-.709.728-1.061l1.215 1.037c-.587.58-.913 1.25-.717 2.097l-.369 1.208c-.168.207-.411.387-.494.624-.839 2.403-1.64 4.819-2.485 7.222-.107.305-.404.544-.614.812-.109-1.387-.22-2.771-.331-4.158z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#CECDB7" d="M63.503 120.763c.209-.269.506-.508.614-.812.845-2.402 1.646-4.818 2.485-7.222.083-.236.325-.417.494-.624l-.509 5.545c-.136.157-.333.294-.398.477-.575 1.614-1.117 3.24-1.694 4.854-.119.333-.347.627-.525.938-.158-.207-.441-.407-.454-.623-.051-.841-.016-1.688-.013-2.533z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#DBDAC7" d="M63.969 123.919c.178-.312.406-.606.525-.938.578-1.613 1.119-3.239 1.694-4.854.065-.183.263-.319.398-.477l.012 3.64-1.218 3.124-1.411-.495z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EBE9DC" d="M65.38 124.415l1.218-3.124.251 3.696-1.469-.572z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#CECDB7" d="M67.464 110.898c-.196-.847.129-1.518.717-2.097l.337.23-1.054 1.867z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#4FAA41" d="M64.316 95.172l-.066-.011-.066.01.155-.559-.023.56z"/></svg>`,o=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#A41E11" d="M121.8 93.1c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.9-11.5 3.8-17.3 1S13 98.1 6.3 94.9c-3.3-1.6-5-2.9-5-4.2V78s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c0 1.3-1.5 2.7-4.9 4.4z"/><path fill="#D82C20" d="M121.8 80.5C115.1 84 80.4 98.2 73 102.1c-7.4 3.9-11.5 3.8-17.3 1-5.8-2.8-42.7-17.7-49.4-20.9C-.3 79-.5 76.8 6 74.3c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9z"/><path fill="#A41E11" d="M121.8 72.5C115.1 76 80.4 90.2 73 94.1c-7.4 3.8-11.5 3.8-17.3 1C49.9 92.3 13 77.4 6.3 74.2c-3.3-1.6-5-2.9-5-4.2V57.3s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9V68c0 1.3-1.5 2.7-4.9 4.5z"/><path fill="#D82C20" d="M121.8 59.8c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1C49.9 79.6 13 64.7 6.3 61.5s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9z"/><path fill="#A41E11" d="M121.8 51c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1C49.9 70.9 13 56 6.3 52.8c-3.3-1.6-5.1-2.9-5.1-4.2V35.9s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c.1 1.3-1.4 2.6-4.8 4.4z"/><path fill="#D82C20" d="M121.8 38.3C115.1 41.8 80.4 56 73 59.9c-7.4 3.8-11.5 3.8-17.3 1S13 43.3 6.3 40.1s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.8z"/><path fill="#fff" d="M80.4 26.1l-10.8 1.2-2.5 5.8-3.9-6.5-12.5-1.1 9.3-3.4-2.8-5.2 8.8 3.4 8.2-2.7L72 23zM66.5 54.5l-20.3-8.4 29.1-4.4z"/><ellipse fill="#fff" cx="38.4" cy="35.4" rx="15.5" ry="6"/><path fill="#7A0C00" d="M93.3 27.7l17.2 6.8-17.2 6.8z"/><path fill="#AD2115" d="M74.3 35.3l19-7.6v13.6l-1.9.8z"/></svg>`,s=`<svg role="img" viewBox="0 0 24 24" fill="#C5F74F" xmlns="http://www.w3.org/2000/svg"><title>Drizzle</title><path d="M5.353 11.823a1.036 1.036 0 0 0-.395-1.422 1.063 1.063 0 0 0-1.437.399L.138 16.702a1.035 1.035 0 0 0 .395 1.422 1.063 1.063 0 0 0 1.437-.398l3.383-5.903Zm11.216 0a1.036 1.036 0 0 0-.394-1.422 1.064 1.064 0 0 0-1.438.399l-3.382 5.902a1.036 1.036 0 0 0 .394 1.422c.506.283 1.15.104 1.438-.398l3.382-5.903Zm7.293-4.525a1.036 1.036 0 0 0-.395-1.422 1.062 1.062 0 0 0-1.437.399l-3.383 5.902a1.036 1.036 0 0 0 .395 1.422 1.063 1.063 0 0 0 1.437-.399l3.383-5.902Zm-11.219 0a1.035 1.035 0 0 0-.394-1.422 1.064 1.064 0 0 0-1.438.398l-3.382 5.903a1.036 1.036 0 0 0 .394 1.422c.506.282 1.15.104 1.438-.399l3.382-5.902Z"/></svg>`,c=e(),l=e=>`data:image/svg+xml,${encodeURIComponent(e)}`,u=l(t),d=l(n),f=l(r),p=l(i),m=l(a),h={sqlite:u,"better-sqlite3":u,postgres:d,postgresql:d,pg:d,mysql:f,mysql2:f,mariadb:p,mongodb:m,mongoose:m,redis:l(o),drizzle:l(s)};function g(e){return!!e&&e.toLowerCase()in h}function _({name:e,size:t=20,title:n}){let r=h[(e??``).toLowerCase()];return r?(0,c.jsx)(`img`,{src:r,width:t,height:t,alt:n??e??``,style:{display:`block`,objectFit:`contain`}}):null}export{g as n,_ as t};
@@ -0,0 +1 @@
1
+ import{k as e}from"./src-Dvwdl2PF.js";import{A as t,Bt as n,In as r,J as i,O as a,Pn as o,Vn as s,Wt as c,bn as l,cn as u,cr as d,et as f,ht as ee,k as p,mi as m,mt as h,pt as g,q as _,qt as v,ri as y,tn as b,yn as x}from"./ui-Dw0cak25.js";import{c as te,k as S,r as ne}from"./stores-DCbsF6-_.js";import{J as C,W as w,dt as re,gt as T,vt as E,y as D}from"./index-DCk1neIw.js";import{t as O}from"./RoleSwitch-D-sQaoTm.js";var k=e(m(),1),A=d();function j(e,t){return t?e.replace(/\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/g,(e,n)=>n in t?String(t[n]):e):e}function M(e){return S(e,`ROLE_NODEFONY_ADMIN`)?`admin`:S(e,`ROLE_SUPERVISOR`)?`supervisor`:`developer`}var N=E(()=>{let e=te(),d=ne(),[m,S]=(0,k.useState)(()=>M(d.roles)),E=(0,k.useCallback)(()=>e.api.getAbsolute(`/nodefony/documentation/api/tree`),[e]),N=D(E),[P,F]=re(),I=N.data?.sections??[],L=I.flatMap(e=>e.pages),R=L.find(e=>e.slug===`root~index`)?.slug??L.find(e=>e.isHub)?.slug??L.at(0)?.slug,z=P.get(`doc`)??R??`root~index`,B=(0,k.useCallback)(e=>F({doc:e},{replace:!1}),[F]),V=(0,k.useCallback)(e=>{if(/^(root|mod)~/.test(e))return B(e),!0;if(!z.includes(`~`))return!1;let t=z.replace(/[^~]+$/,``);return B(t+e),!0},[z,B]),[H,U]=(0,k.useState)({}),[W,G]=(0,k.useState)(``),K=W.trim(),ie=(0,k.useCallback)(()=>K.length>1?e.api.getAbsolute(`/nodefony/documentation/api/search?q=${encodeURIComponent(K)}`):Promise.resolve(null),[e,K]),q=D(ie),ae=(0,k.useCallback)(()=>e.api.getAbsolute(`/nodefony/documentation/api/page/${encodeURIComponent(z)}`),[e,z]),J=D(ae),oe=e=>m===`admin`||!e||e.includes(m),Y=J.data?j(J.data.markdown,J.data.vars).replace(/^\s*#\s+.+?(\r?\n|$)/,``):``,X=W.trim().toLowerCase(),Z=I.map(e=>({...e,label:e.module?e.label.replace(/^Module\s+/i,``):e.label,pages:e.pages.filter(e=>oe(e.audience)&&(!X||`${e.navTitle??``} ${e.title}`.toLowerCase().includes(X)))})).filter(e=>e.pages.length>0),Q=[{key:`corpus`,label:`La documentation`,match:e=>!e.module},{key:`modules`,label:`Par module`,match:e=>!!e.module}],se=Q.map((e,t)=>({key:e.key,label:e.label,sections:Z.filter(n=>e.match(n)&&!Q.slice(0,t).some(e=>e.match(n)))})).filter(e=>e.sections.length>0),$=I.find(e=>e.pages.some(e=>e.slug===z)),ce=$?[`Documentation`,$.label]:[`Documentation`];return(0,k.useEffect)(()=>{$&&U(e=>e[$.id]===!1?e:{...e,[$.id]:!1})},[$]),(0,A.jsx)(i,{title:`Documentation`,subtitle:`Portail unifié — sections, audiences, doc dynamique`,icon:(0,A.jsx)(C,{size:22}),actions:(0,A.jsx)(O,{value:m,onChange:e=>S(e),size:`sm`}),children:(0,A.jsx)(p,{navTitle:`Documentation`,navActions:(0,A.jsxs)(o,{gap:2,wrap:`nowrap`,children:[(0,A.jsx)(v,{label:`Tout déplier`,children:(0,A.jsx)(r,{variant:`subtle`,color:`gray`,size:`sm`,onClick:()=>U(Object.fromEntries(I.map(e=>[e.id,!1]))),"aria-label":`Tout déplier`,children:(0,A.jsx)(h,{size:15})})}),(0,A.jsx)(v,{label:`Tout plier`,children:(0,A.jsx)(r,{variant:`subtle`,color:`gray`,size:`sm`,onClick:()=>U(Object.fromEntries(I.map(e=>[e.id,!0]))),"aria-label":`Tout plier`,children:(0,A.jsx)(g,{size:15})})})]}),navSearch:(0,A.jsx)(n,{size:`xs`,mb:6,placeholder:`Rechercher une page…`,value:W,onChange:e=>G(e.currentTarget.value),leftSection:(0,A.jsx)(f,{size:13}),"aria-label":`Rechercher dans la documentation`}),nav:(0,A.jsx)(_,{loading:N.loading&&!N.data,error:N.error,onRetry:N.reload,minHeight:120,children:(0,A.jsxs)(c,{gap:2,children:[!X&&R?(0,A.jsx)(T,{active:z===R,label:`Accueil`,fw:600,leftSection:(0,A.jsx)(w,{size:15}),onClick:()=>B(R),styles:{root:{borderRadius:y(6)}}}):null,se.map(e=>(0,A.jsxs)(c,{gap:2,mt:14,children:[(0,A.jsx)(b,{labelPosition:`left`,mb:2,label:(0,A.jsx)(x,{size:`11px`,fw:700,tt:`uppercase`,style:{letterSpacing:`0.08em`},children:e.label})}),e.sections.map(e=>{let t=X?!1:H[e.id]??!0,n=e.pages.find(e=>e.isHub)??e.pages.at(0),i=n?z===n.slug:!1;return(0,A.jsx)(T,{label:(0,A.jsxs)(o,{gap:6,wrap:`nowrap`,justify:`space-between`,style:{width:`100%`},children:[(0,A.jsx)(x,{size:`xs`,fw:700,tt:`uppercase`,c:i?`inherit`:`dimmed`,style:{letterSpacing:`0.04em`},children:e.label}),(0,A.jsx)(u,{size:`xs`,variant:`default`,radius:`sm`,style:{flex:`none`},children:e.pages.length})]}),opened:!t,onClick:()=>{U(t=>({...t,[e.id]:!1})),n&&B(n.slug)},rightSection:(0,A.jsx)(r,{component:`div`,role:`button`,tabIndex:0,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":t?`Déplier ${e.label}`:`Replier ${e.label}`,"aria-expanded":!t,onClick:n=>{n.stopPropagation(),U(n=>({...n,[e.id]:!t}))},onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),n.stopPropagation(),U(n=>({...n,[e.id]:!t})))},children:(0,A.jsx)(ee,{size:14,style:{transition:`transform 150ms ease`,transform:t?`rotate(0deg)`:`rotate(90deg)`}})}),childrenOffset:14,styles:{root:{borderRadius:y(6)}},children:e.pages.filter(e=>e.slug!==R).map(e=>(0,A.jsx)(T,{active:e.slug===z,label:e.navTitle??e.title,title:e.title,fw:e.isHub?600:void 0,leftSection:e.isHub?(0,A.jsx)(w,{size:14}):(0,A.jsx)(C,{size:14}),rightSection:e.wip?(0,A.jsx)(u,{size:`xs`,variant:`light`,color:`gray`,children:`à venir`}):void 0,disabled:e.wip,onClick:()=>!e.wip&&B(e.slug),styles:{root:{borderRadius:y(6)},label:{fontSize:y(12.5)}}},e.slug))},e.id)})]},e.key)),!Z.length&&(0,A.jsx)(x,{size:`xs`,c:`dimmed`,px:`xs`,py:4,children:`Aucune page ne correspond.`})]})}),title:(0,A.jsx)(a,{breadcrumbs:ce,title:J.data?.title??`—`,version:J.data?.version,status:J.data?.temporary?`temporary`:J.data?.status,updated:J.data?.updated,sourceUrl:J.data?.sourceUrl}),tocMarkdown:Y,mode:`page`,children:K.length>1?(0,A.jsx)(_,{loading:q.loading&&!q.data,error:q.error,onRetry:q.reload,minHeight:300,children:(0,A.jsxs)(c,{gap:`sm`,children:[(0,A.jsxs)(o,{justify:`space-between`,align:`baseline`,children:[(0,A.jsxs)(x,{fw:700,size:`lg`,children:[q.data?.matched??0,` page`,(q.data?.matched??0)>1?`s`:``,` pour «\xA0`,K,`\xA0»`]}),(0,A.jsxs)(x,{size:`xs`,c:`dimmed`,children:[q.data?`${q.data.scanned} pages parcourues`:``,q.data&&q.data.matched>q.data.hits.length?` — les ${q.data.hits.length} plus pertinentes`:``]})]}),q.data?.hits.length===0&&(0,A.jsxs)(l,{color:`gray`,variant:`light`,icon:(0,A.jsx)(f,{size:18}),children:[`Aucune page ne porte tous ces termes. Essaie un mot de moins — la recherche exige que `,(0,A.jsx)(`b`,{children:`chacun`}),` soit présent.`]}),q.data?.hits.map(e=>(0,A.jsxs)(s,{withBorder:!0,radius:`md`,p:`md`,onClick:()=>{G(``),B(e.slug)},style:{cursor:`pointer`},children:[(0,A.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,align:`baseline`,children:[(0,A.jsx)(x,{fw:600,children:e.navTitle||e.title}),(0,A.jsx)(u,{size:`xs`,variant:`light`,style:{flex:`none`},children:e.sectionLabel})]}),e.navTitle!==e.title&&(0,A.jsx)(x,{size:`xs`,c:`dimmed`,mt:2,children:e.title}),(0,A.jsx)(c,{gap:4,mt:`xs`,children:e.excerpts.map((e,t)=>(0,A.jsxs)(x,{size:`sm`,c:`dimmed`,lineClamp:2,children:[e.section?(0,A.jsxs)(`b`,{children:[e.section,` — `]}):null,e.text]},t))}),(0,A.jsxs)(x,{size:`xs`,c:`dimmed`,mt:6,children:[e.occurrences,` occurrence`,e.occurrences>1?`s`:``]})]},e.slug))]})}):(0,A.jsxs)(_,{loading:J.loading&&!J.data,error:J.error,onRetry:J.reload,minHeight:300,children:[J.data?.temporary&&(0,A.jsxs)(l,{color:`yellow`,variant:`light`,icon:(0,A.jsx)(C,{size:18}),mb:`md`,children:[`Page `,(0,A.jsx)(`b`,{children:`temporaire`}),` branchée pour ta lecture — contenu lu en direct depuis le fichier du repo. Le vrai module gérera ça proprement.`]}),(0,A.jsx)(t,{markdown:Y,maxWidth:1e3,onInternalLink:V})]})})})});export{N as Documentation,N as default};
@@ -1 +1 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{b as t,fi as n,or as r}from"./ui-BuLVKSvk.js";import{t as i}from"./IconArrowsSplit2-E-Iei2rZ.js";import{t as a}from"./IconCircuitResistor-BZ3qUbbe.js";import{t as o}from"./IconDeviceDesktop-C9GNnLQs.js";import{X as s,et as c,vt as l}from"./index-DtGb44Tj.js";import{a as u,c as d}from"./useSocketLiveData-CljozSOr.js";var f=e(n(),1),p=r(),m=[{id:`source`,data:{label:`Service publisher`,sub:`publish(channel, payload)`,icon:(0,p.jsx)(i,{size:20}),color:`violet`}},{id:`hub`,data:{label:`RealtimeHub A`,sub:`Map<canal, Set<peers>> — fan-out local`,icon:(0,p.jsx)(c,{size:20}),color:`indigo`,emphasis:!0}},{id:`peerA`,data:{label:`Peer A1`,sub:`abonné local · allumé dès 1 abonné sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`peerB`,data:{label:`Peer A2`,sub:`abonné local · allumé dès 2 abonnés sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`peerC`,data:{label:`Peer A3`,sub:`abonné local · allumé dès 3 abonnés sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`backplane`,data:{label:`IBackplane`,sub:`forward cross-worker — Loopback / Cluster IPC / Redis`,icon:(0,p.jsx)(a,{size:20}),color:`orange`}},{id:`hubB`,data:{label:`RealtimeHub B`,sub:`2ᵉ worker du pod — neutre hors vue pod agrégée`,icon:(0,p.jsx)(c,{size:20}),color:`grape`}},{id:`peerX`,data:{label:`Peer B1`,sub:`abonné worker B · allumé dès 1 abonné`,icon:(0,p.jsx)(s,{size:20}),color:`teal`}},{id:`peerY`,data:{label:`Peer B2`,sub:`abonné worker B · allumé dès 2 abonnés`,icon:(0,p.jsx)(s,{size:20}),color:`teal`}}],h=[{source:`source`,target:`hub`,label:`publish`,color:`violet`},{source:`hub`,target:`peerA`,label:`notify`,color:`indigo`},{source:`hub`,target:`peerB`,label:`notify`,color:`indigo`},{source:`hub`,target:`peerC`,label:`notify`,color:`indigo`},{source:`hub`,target:`backplane`,label:`forward`,color:`orange`},{source:`backplane`,target:`hubB`,label:`relais`,color:`orange`},{source:`hubB`,target:`peerX`,label:`notify`,color:`grape`},{source:`hubB`,target:`peerY`,label:`notify`,color:`grape`}],g=l(({height:e})=>{let n=d(),r=(0,f.useMemo)(()=>u(n),[n]);return(0,p.jsx)(t,{nodes:m,edges:h,dir:`LR`,height:e,ariaLabel:`Fan-out d'un publish vers N abonnés — temps réel actif`,liveNodeData:r})});function _({live:e=!1,height:n=540}){return e?(0,p.jsx)(g,{height:n}):(0,p.jsx)(t,{nodes:m,edges:h,dir:`LR`,height:n,ariaLabel:`Fan-out d'un publish vers N abonnés (statique)`})}export{_ as FanOutLiveGraph,_ as default};
1
+ import{k as e}from"./src-Dvwdl2PF.js";import{_ as t,cr as n,mi as r}from"./ui-Dw0cak25.js";import{t as i}from"./IconArrowsSplit2-Dp2-3X4A.js";import{t as a}from"./IconCircuitResistor-Cv8MwkdI.js";import{t as o}from"./IconDeviceDesktop-HhPv0iiX.js";import{X as s,et as c,vt as l}from"./index-DCk1neIw.js";import{a as u,c as d}from"./useSocketLiveData-BSNdoo1w.js";var f=e(r(),1),p=n(),m=[{id:`source`,data:{label:`Service publisher`,sub:`publish(channel, payload)`,icon:(0,p.jsx)(i,{size:20}),color:`violet`}},{id:`hub`,data:{label:`RealtimeHub A`,sub:`Map<canal, Set<peers>> — fan-out local`,icon:(0,p.jsx)(c,{size:20}),color:`indigo`,emphasis:!0}},{id:`peerA`,data:{label:`Peer A1`,sub:`abonné local · allumé dès 1 abonné sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`peerB`,data:{label:`Peer A2`,sub:`abonné local · allumé dès 2 abonnés sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`peerC`,data:{label:`Peer A3`,sub:`abonné local · allumé dès 3 abonnés sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`backplane`,data:{label:`IBackplane`,sub:`forward cross-worker — Loopback / Cluster IPC / Redis`,icon:(0,p.jsx)(a,{size:20}),color:`orange`}},{id:`hubB`,data:{label:`RealtimeHub B`,sub:`2ᵉ worker du pod — neutre hors vue pod agrégée`,icon:(0,p.jsx)(c,{size:20}),color:`grape`}},{id:`peerX`,data:{label:`Peer B1`,sub:`abonné worker B · allumé dès 1 abonné`,icon:(0,p.jsx)(s,{size:20}),color:`teal`}},{id:`peerY`,data:{label:`Peer B2`,sub:`abonné worker B · allumé dès 2 abonnés`,icon:(0,p.jsx)(s,{size:20}),color:`teal`}}],h=[{source:`source`,target:`hub`,label:`publish`,color:`violet`},{source:`hub`,target:`peerA`,label:`notify`,color:`indigo`},{source:`hub`,target:`peerB`,label:`notify`,color:`indigo`},{source:`hub`,target:`peerC`,label:`notify`,color:`indigo`},{source:`hub`,target:`backplane`,label:`forward`,color:`orange`},{source:`backplane`,target:`hubB`,label:`relais`,color:`orange`},{source:`hubB`,target:`peerX`,label:`notify`,color:`grape`},{source:`hubB`,target:`peerY`,label:`notify`,color:`grape`}],g=l(({height:e})=>{let n=d(),r=(0,f.useMemo)(()=>u(n),[n]);return(0,p.jsx)(t,{nodes:m,edges:h,dir:`LR`,height:e,ariaLabel:`Fan-out d'un publish vers N abonnés — temps réel actif`,liveNodeData:r})});function _({live:e=!1,height:n=540}){return e?(0,p.jsx)(g,{height:n}):(0,p.jsx)(t,{nodes:m,edges:h,dir:`LR`,height:n,ariaLabel:`Fan-out d'un publish vers N abonnés (statique)`})}export{_ as FanOutLiveGraph,_ as default};
@@ -0,0 +1 @@
1
+ import{k as e}from"./src-Dvwdl2PF.js";import{Dt as t,H as n,J as r,Kn as i,Kt as a,Pn as o,Tt as s,U as c,Vt as l,Wn as u,Wt as d,Zt as f,_t as p,at as m,bn as h,cn as g,cr as _,en as v,mi as ee,n as y,on as b,q as x,qt as S,rn as C,rt as te,sn as w,tt as ne,wt as re,yn as T,zt as E}from"./ui-Dw0cak25.js";import{c as D}from"./stores-DCbsF6-_.js";import{t as ie}from"./IconBan-CTf_hDlG.js";import{t as O}from"./IconShieldOff-CwbiK-kg.js";import{i as ae,o as oe,r as se,t as ce}from"./auditFormat-p--Ag76y.js";import{t as le}from"./IconWorld-B8af-nrW.js";import{G as ue,L as de,O as k,Q as fe,R as pe,j as A,k as j,ut as me,vt as M,w as N,x as P,y as F}from"./index-DCk1neIw.js";import{s as he}from"./auditModel-ChtMTAPh.js";import{a as ge,c as I,i as _e,n as L,o as ve,r as R,s as ye,t as be}from"./firewallModel-DKOWcjIb.js";var xe=t(`outline`,`hand-stop`,`HandStop`,[[`path`,{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`,key:`svg-0`}],[`path`,{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`,key:`svg-1`}],[`path`,{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`,key:`svg-2`}],[`path`,{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`,key:`svg-3`}]]),Se=t(`outline`,`heading`,`Heading`,[[`path`,{d:`M7 12h10`,key:`svg-0`}],[`path`,{d:`M7 5v14`,key:`svg-1`}],[`path`,{d:`M17 5v14`,key:`svg-2`}],[`path`,{d:`M15 19h4`,key:`svg-3`}],[`path`,{d:`M15 5h4`,key:`svg-4`}],[`path`,{d:`M5 19h4`,key:`svg-5`}],[`path`,{d:`M5 5h4`,key:`svg-6`}]]),z=t(`outline`,`login-2`,`Login2`,[[`path`,{d:`M9 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2`,key:`svg-0`}],[`path`,{d:`M3 12h13l-3 -3`,key:`svg-1`}],[`path`,{d:`M13 15l3 -3`,key:`svg-2`}]]),Ce=t(`outline`,`ticket`,`Ticket`,[[`path`,{d:`M15 5l0 2`,key:`svg-0`}],[`path`,{d:`M15 11l0 2`,key:`svg-1`}],[`path`,{d:`M15 17l0 2`,key:`svg-2`}],[`path`,{d:`M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2`,key:`svg-3`}]]),we=t(`outline`,`user-question`,`UserQuestion`,[[`path`,{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,key:`svg-0`}],[`path`,{d:`M6 21v-2a4 4 0 0 1 4 -4h3.5`,key:`svg-1`}],[`path`,{d:`M19 22v.01`,key:`svg-2`}],[`path`,{d:`M19 19a2.003 2.003 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-3`}]]),B=e(ee(),1),V=_();function H({on:e,onLabel:t=`Activé`,offLabel:n=`Désactivé`}){return(0,V.jsx)(g,{variant:`light`,color:e?`teal`:`gray`,leftSection:e?(0,V.jsx)(p,{size:12}):(0,V.jsx)(P,{size:12}),style:{textTransform:`none`},children:e?t:n})}function U({security:e}){return(0,V.jsx)(g,{variant:e?`light`:`outline`,color:e?`teal`:`orange`,leftSection:e?(0,V.jsx)(k,{size:12}):(0,V.jsx)(O,{size:12}),style:{textTransform:`none`},children:e?`Protégée`:`Publique`})}function W({stateless:e}){return(0,V.jsx)(S,{label:e?`Stateless : chaque requête porte sa preuve (JWT / clé API), aucun registre serveur.`:`Stateful : session serveur posée au login (cookie opaque révocable, BFF).`,withinPortal:!0,multiline:!0,w:260,children:(0,V.jsx)(g,{variant:`dot`,color:e?`grape`:`cyan`,style:{textTransform:`none`},children:e?`Stateless`:`Session BFF`})})}function G({mode:e}){return(0,V.jsx)(S,{label:e===`all`?`Tous les authenticators doivent passer (MFA) — le dernier porte l'identité.`:`Le premier authenticator qui reconnaît la requête authentifie.`,withinPortal:!0,multiline:!0,w:260,children:(0,V.jsx)(g,{variant:`light`,color:e===`all`?`red`:`blue`,style:{textTransform:`none`},children:e===`all`?`MFA (all)`:`first`})})}function K({name:e}){let t=L[e],n=e===`anonymous`?we:t?te:Ce;return(0,V.jsx)(g,{variant:`light`,color:t?.color??`gray`,leftSection:(0,V.jsx)(n,{size:12}),style:{textTransform:`none`},children:ye(e)})}function Te({mounted:e}){return(0,V.jsx)(g,{variant:e?`filled`:`light`,color:e?`teal`:`gray`,leftSection:e?(0,V.jsx)(de,{size:12}):(0,V.jsx)(pe,{size:12}),style:{textTransform:`none`},children:e?`Monté`:`Disponible`})}function q({k:e,children:t}){return(0,V.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,gap:`xl`,align:`flex-start`,children:[(0,V.jsx)(T,{size:`sm`,c:`dimmed`,style:{flexShrink:0},children:e}),(0,V.jsx)(i,{style:{textAlign:`right`,minWidth:0},children:t})]})}function J({names:e}){return e.length===0?(0,V.jsx)(T,{size:`sm`,c:`dimmed`,fs:`italic`,children:`aucun`}):(0,V.jsx)(o,{gap:4,justify:`flex-end`,wrap:`wrap`,children:e.map(e=>(0,V.jsx)(K,{name:e},e))})}function Ee({zones:e}){let[t,n]=(0,B.useState)(null),r=(0,B.useMemo)(()=>[{key:`name`,header:`Zone`,sortable:!0,value:e=>e.name,render:e=>(0,V.jsx)(T,{fw:600,size:`sm`,children:e.name}),size:160},{key:`pattern`,header:`Pattern d'URL`,value:e=>e.pattern,render:e=>(0,V.jsx)(C,{children:e.pattern}),size:230},{key:`host`,header:`Hôte`,value:e=>e.host??``,render:e=>e.host?(0,V.jsx)(C,{children:e.host}):(0,V.jsx)(T,{size:`sm`,c:`dimmed`,children:`tous`}),size:130},{key:`security`,header:`Accès`,filterable:!0,filterType:`select`,value:e=>e.security?`Protégée`:`Publique`,render:e=>(0,V.jsx)(U,{security:e.security}),size:120},{key:`mode`,header:`Mode`,filterable:!0,filterType:`select`,value:e=>e.mode,render:e=>(0,V.jsx)(G,{mode:e.mode}),size:110},{key:`identity`,header:`Identité`,value:e=>e.stateless?`Stateless`:`Session BFF`,render:e=>(0,V.jsx)(W,{stateless:e.stateless}),size:130},{key:`authenticators`,header:`Authenticators`,value:e=>e.authenticators.join(`, `),render:e=>(0,V.jsx)(J,{names:e.authenticators}),size:260},{key:`realtime`,header:`WS`,align:`right`,value:e=>e.realtime?`1`:`0`,render:e=>(0,V.jsx)(g,{variant:`dot`,color:e.realtime?`teal`:`gray`,style:{textTransform:`none`},children:e.realtime?`oui`:`non`}),size:90}],[]);return(0,V.jsxs)(d,{gap:`md`,children:[(0,V.jsxs)(o,{gap:`xs`,children:[(0,V.jsxs)(T,{size:`sm`,c:`dimmed`,children:[e.length,` zone(s) montée(s), triées par spécificité (pattern le plus long d'abord).`]}),(0,V.jsx)(c,{title:`Zones de sécurité (SecuredArea)`,version:R,summary:`Une zone = un pattern d'URL + sa chaîne d'authenticators. Le firewall teste les zones par spécificité ; la première dont le pattern matche capture la requête.`,sections:[{label:`Comment lire`,body:`« Protégée » = Zero Trust (preuve requise, 401 sinon). « Publique » = accès libre explicite. Le mode décrit la chaîne d'authenticators (first = le premier qui reconnaît ; all = MFA).`},{label:`WebSocket`,body:`« WS oui » = la zone gouverne AUSSI les frames temps réel (api.request + subscribe) : invariant api.request {path} ≤ GET {path}.`},{label:`Si vide`,body:`Aucune zone = aucune URL protégée (le firewall court-circuite, 0 coût). Déclaration via defineSecurityConfig({ areas }).`}]})]}),e.length===0&&(0,V.jsxs)(h,{variant:`light`,color:`orange`,icon:(0,V.jsx)(O,{size:18}),title:`Aucune zone configurée`,children:[`Aucune zone de sécurité n'est montée : le firewall laisse passer toutes les requêtes (court-circuit hot-path). Déclarez des zones via`,` `,(0,V.jsx)(C,{children:`defineSecurityConfig({ areas })`}),`.`]}),(0,V.jsx)(y,{mode:`client`,data:e,columns:r,getRowId:e=>e.name,onRowClick:e=>n(e),initialSort:{key:`name`,dir:`asc`},searchable:!0,searchPlaceholder:`Rechercher une zone (nom, pattern, hôte…)`,pageSize:25,height:460,persist:{key:`studio.firewall.zones`,storage:`session`},emptyMessage:`Aucune zone.`}),(0,V.jsx)(f,{opened:t!==null,onClose:()=>n(null),title:t?(0,V.jsxs)(o,{gap:`xs`,children:[(0,V.jsxs)(T,{fw:700,children:[`Zone « `,t.name,` »`]}),(0,V.jsx)(U,{security:t.security})]}):``,centered:!0,size:`lg`,children:t&&(0,V.jsxs)(d,{gap:`sm`,children:[(0,V.jsx)(q,{k:`Pattern d'URL`,children:(0,V.jsx)(C,{children:t.pattern})}),(0,V.jsx)(q,{k:`Hôte / vhost`,children:t.host?(0,V.jsx)(C,{children:t.host}):(0,V.jsx)(T,{size:`sm`,c:`dimmed`,children:`tous domaines`})}),(0,V.jsx)(q,{k:`Accès`,children:(0,V.jsx)(U,{security:t.security})}),(0,V.jsx)(q,{k:`Mode de chaîne`,children:(0,V.jsx)(G,{mode:t.mode})}),(0,V.jsx)(q,{k:`Stratégie d'identité`,children:(0,V.jsx)(W,{stateless:t.stateless})}),(0,V.jsx)(q,{k:`Anonyme autorisé`,children:(0,V.jsx)(g,{variant:`light`,color:t.allowsAnonymous?`orange`:`gray`,style:{textTransform:`none`},children:t.allowsAnonymous?`oui (explicite)`:`non`})}),(0,V.jsx)(q,{k:`Frames WebSocket`,children:(0,V.jsx)(g,{variant:`dot`,color:t.realtime?`teal`:`gray`,style:{textTransform:`none`},children:t.realtime?`gouvernées`:`exclues (HTTP only)`})}),(0,V.jsx)(q,{k:`Authenticators`,children:(0,V.jsx)(J,{names:t.authenticators})}),(0,V.jsx)(h,{variant:`light`,color:`gray`,icon:(0,V.jsx)(m,{size:16}),mt:`xs`,children:(0,V.jsxs)(T,{size:`xs`,children:[`Ordre d'exécution : les authenticators sont essayés dans l'ordre listé. En mode `,(0,V.jsx)(C,{children:`first`}),`, le premier qui reconnaît la requête authentifie ; en mode `,(0,V.jsx)(C,{children:`all`}),`, tous doivent passer (le dernier porte l'identité).`]})})]})})]})}function Y({k:e,children:t}){return(0,V.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,gap:`md`,align:`flex-start`,children:[(0,V.jsx)(T,{size:`sm`,c:`dimmed`,style:{flexShrink:0},children:e}),(0,V.jsx)(i,{style:{textAlign:`right`,minWidth:0},children:t})]})}function X({children:e}){return(0,V.jsx)(T,{size:`sm`,style:{wordBreak:`break-word`},children:e})}function Z({items:e}){return e.length===0?(0,V.jsx)(T,{size:`sm`,c:`dimmed`,fs:`italic`,children:`aucune`}):(0,V.jsx)(o,{gap:4,justify:`flex-end`,wrap:`wrap`,children:e.map(e=>(0,V.jsx)(C,{children:e},e))})}function Q({icon:e,title:t,enabled:n,doc:r,children:i}){return(0,V.jsx)(v.Col,{span:{base:12,md:6},children:(0,V.jsxs)(b,{withBorder:!0,radius:`md`,p:`lg`,h:`100%`,children:[(0,V.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,mb:`sm`,children:[(0,V.jsxs)(o,{gap:`xs`,wrap:`nowrap`,children:[(0,V.jsx)(E,{variant:`light`,color:n?`teal`:`gray`,radius:`sm`,children:e}),(0,V.jsx)(T,{fw:700,children:t}),(0,V.jsx)(c,{title:t,version:R,summary:r.summary,sections:r.sections})]}),(0,V.jsx)(H,{on:n})]}),(0,V.jsx)(d,{gap:6,style:{opacity:n?1:.55},children:i})]})})}function De({defenses:e}){if(!e)return(0,V.jsx)(h,{variant:`light`,color:`red`,icon:(0,V.jsx)(m,{size:18}),title:`Défenses indisponibles`,children:`La configuration de sécurité est invalide au boot — le firewall est fail-closed (toutes les requêtes rejetées). Corrigez la config pour que les défenses se résolvent.`});let{csrf:t,cors:n,headers:r,rateLimit:a}=e;return(0,V.jsxs)(v,{children:[(0,V.jsxs)(Q,{icon:(0,V.jsx)(k,{size:18}),title:`CSRF`,enabled:t.enabled,doc:{summary:`Protège des requêtes forgées cross-site. Défense primaire = Fetch Metadata (Sec-Fetch-Site, infalsifiable), repli Origin/Referer.`,sections:[{label:`Synchronizer token`,body:`« Armé » = @CsrfProtect dispose d'un secret HMAC (config en prod, éphémère en dev). La VALEUR du secret n'est jamais exposée.`}]},children:[(0,V.jsx)(Y,{k:`Fetch Metadata`,children:(0,V.jsx)(H,{on:t.fetchMetadata})}),(0,V.jsx)(Y,{k:`Repli Origin/Referer`,children:(0,V.jsx)(H,{on:t.checkOrigin})}),(0,V.jsx)(Y,{k:`Strict same-origin`,children:(0,V.jsx)(H,{on:t.strictSameSite,onLabel:`Strict`,offLabel:`Tolérant`})}),(0,V.jsx)(Y,{k:`Cookie SameSite`,children:(0,V.jsx)(C,{children:t.sameSite})}),(0,V.jsx)(Y,{k:`Synchronizer token`,children:(0,V.jsx)(H,{on:t.synchronizerToken,onLabel:`Armé`,offLabel:`Inactif`})}),(0,V.jsx)(Y,{k:`Origines de confiance`,children:(0,V.jsx)(Z,{items:t.trustedOrigins})})]}),(0,V.jsxs)(Q,{icon:(0,V.jsx)(le,{size:18}),title:`CORS`,enabled:n.enabled,doc:{summary:"Cross-Origin Resource Sharing : quelles origines tierces peuvent lire les réponses. `*` + credentials est interdit au boot (OWASP).",sections:[{label:`Credentials`,body:`« Activé » = cookies cross-origin autorisés (exige une whitelist d'origines explicite).`}]},children:[(0,V.jsx)(Y,{k:`Origines autorisées`,children:(0,V.jsx)(Z,{items:n.origins})}),(0,V.jsx)(Y,{k:`Credentials`,children:(0,V.jsx)(H,{on:n.credentials})}),(0,V.jsx)(Y,{k:`Méthodes`,children:(0,V.jsx)(X,{children:n.methods.join(`, `)})}),(0,V.jsx)(Y,{k:`En-têtes autorisés`,children:(0,V.jsx)(X,{children:n.allowedHeaders.join(`, `)})}),(0,V.jsx)(Y,{k:`Cache préflight`,children:(0,V.jsxs)(C,{children:[n.maxAgeS,`s`]})})]}),(0,V.jsxs)(Q,{icon:(0,V.jsx)(Se,{size:18}),title:`En-têtes de sécurité`,enabled:r.enabled,doc:{summary:`CSP, Referrer-Policy, isolation cross-origin (COOP/COEP/CORP)… Le socle transport (HSTS/nosniff/frameguard) est posé par @nodefony/http.`,sections:[{label:`CSP`,body:`Politique « secure-but-usable » : seul script-src est strict (self + nonce par requête = défense XSS). Le {{nonce}} est substitué à chaque requête.`}]},children:[(0,V.jsx)(Y,{k:`HSTS (transport)`,children:(0,V.jsx)(H,{on:r.hsts})}),(0,V.jsx)(Y,{k:`Nonce CSP / requête`,children:(0,V.jsx)(H,{on:r.cspNonces})}),(0,V.jsx)(Y,{k:`Frameguard`,children:(0,V.jsx)(C,{children:r.frameguard})}),(0,V.jsx)(Y,{k:`nosniff (transport)`,children:(0,V.jsx)(H,{on:r.noSniff})}),(0,V.jsx)(Y,{k:`Referrer-Policy`,children:(0,V.jsx)(C,{children:r.referrerPolicy})}),(0,V.jsxs)(i,{children:[(0,V.jsx)(T,{size:`sm`,c:`dimmed`,mb:4,children:`Content-Security-Policy`}),(0,V.jsx)(u.Autosize,{mah:110,children:(0,V.jsx)(C,{block:!0,style:{fontSize:11,whiteSpace:`pre-wrap`},children:r.csp})})]})]}),(0,V.jsxs)(Q,{icon:(0,V.jsx)(xe,{size:18}),title:`Throttle de login`,enabled:a.enabled,doc:{summary:`Backoff progressif par identifiant (NIST SP 800-63B) : pas de verrouillage dur (qui offrirait un déni de service gratuit sur le compte victime). Bloqué → 429 + Retry-After.`,sections:[]},children:[(0,V.jsx)(Y,{k:`Essais libres`,children:(0,V.jsx)(C,{children:a.freeAttempts})}),(0,V.jsx)(Y,{k:`Délai initial`,children:(0,V.jsxs)(C,{children:[a.baseDelayS,`s`]})}),(0,V.jsx)(Y,{k:`Plafond du délai`,children:(0,V.jsxs)(C,{children:[a.capDelayS,`s`]})})]})]})}var Oe=M(()=>{let e=D(),t=(0,B.useCallback)(async()=>{try{return await e.api.getAbsolute(ge)}catch(e){throw Error(I(e),{cause:e})}},[e]),{data:n,loading:r,error:i,reload:a}=F(t),s=n?.roles??[];return(0,V.jsxs)(d,{gap:`md`,children:[(0,V.jsxs)(o,{gap:`xs`,children:[(0,V.jsxs)(T,{size:`sm`,c:`dimmed`,children:[s.length,` rôle(s) avec héritage déclaré.`]}),(0,V.jsx)(c,{title:`Hiérarchie de rôles`,version:R,summary:`Niveau A de l'autorisation : un rôle hérite des droits des rôles listés. La résolution est transitive et précalculée au boot (cycles détectés → erreur).`,sections:[{label:`Comment lire`,body:`« ROLE_ADMIN → ROLE_USER, ROLE_X » signifie qu'un porteur de ROLE_ADMIN satisfait aussi toute exigence de ROLE_USER ou ROLE_X (héritage résolu).`},{label:`Si vide`,body:`Aucun héritage déclaré : chaque rôle ne couvre que lui-même. Déclaration via defineSecurityConfig({ roleHierarchy }).`}]})]}),(0,V.jsxs)(x,{loading:r&&!n,error:i,empty:!r&&s.length===0,emptyMessage:`Aucune hiérarchie de rôles déclarée.`,onRetry:a,children:[(0,V.jsx)(v,{children:s.map(e=>(0,V.jsx)(v.Col,{span:{base:12,md:6},children:(0,V.jsxs)(b,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,children:[(0,V.jsxs)(o,{gap:`xs`,wrap:`nowrap`,mb:`xs`,children:[(0,V.jsx)(E,{variant:`light`,color:`indigo`,radius:`sm`,size:`sm`,children:(0,V.jsx)(N,{size:15})}),(0,V.jsx)(C,{style:{fontWeight:700},children:e.role})]}),e.inherits.length===0?(0,V.jsx)(T,{size:`sm`,c:`dimmed`,fs:`italic`,children:`n'hérite d'aucun autre rôle`}):(0,V.jsxs)(o,{gap:6,align:`center`,wrap:`wrap`,children:[(0,V.jsx)(E,{variant:`subtle`,color:`gray`,size:`sm`,children:(0,V.jsx)(re,{size:14})}),e.inherits.map(e=>(0,V.jsx)(g,{variant:`light`,color:`indigo`,style:{textTransform:`none`},children:e},e))]})]})},e.role))}),(0,V.jsx)(h,{variant:`light`,color:`gray`,icon:(0,V.jsx)(m,{size:16}),mt:`xs`,children:(0,V.jsxs)(T,{size:`xs`,children:[`Le dispatch d'autorisation route `,(0,V.jsx)(C,{children:`ROLE_*`}),` vers cette hiérarchie, `,(0,V.jsx)(C,{children:`PERM_*`}),` vers le RBAC ORM, et le reste vers les voters (P6.8). Cette vue couvre le niveau A (rôles).`]})})]})]})}),ke=[{value:`24h`,label:`24 h`},{value:`7d`,label:`7 j`},{value:`all`,label:`Tout`}],Ae=M(()=>{let e=D(),[t,r]=(0,B.useState)(`7d`),i=(0,B.useCallback)(async()=>{let n=he(t,Date.now()),r=n===void 0?``:`&since=${n}`,i=(e,t)=>`${be}?category=auth&outcome=${e}&limit=${t}${r}`;try{let[t,n,r]=await Promise.all([e.api.getAbsolute(i(`success`,1)),e.api.getAbsolute(i(`failure`,1)),e.api.getAbsolute(i(`denied`,20))]);return{success:t.total??0,failure:n.total??0,denied:r.total??0,recentDenied:r.items}}catch(e){throw Error(I(e),{cause:e})}},[e,t]),{data:s,loading:l,error:u,reload:f}=F(i);return(0,V.jsxs)(d,{gap:`md`,children:[(0,V.jsxs)(o,{justify:`space-between`,wrap:`wrap`,children:[(0,V.jsxs)(o,{gap:`xs`,children:[(0,V.jsx)(T,{size:`sm`,c:`dimmed`,children:`Événements d'authentification sur la période.`}),(0,V.jsx)(c,{title:`Statistiques d'authentification`,version:R,summary:`Dérivées du journal d'audit de sécurité (catégorie « auth »). La boucle se referme : ce que le firewall journalise alimente ces compteurs.`,sections:[{label:`Issues`,body:`Réussites = login validé. Échecs = preuve présentée mais invalide (mot de passe, signature). Refus = Zero Trust (aucune preuve dans une zone protégée).`},{label:`Exactitude`,body:`Les compteurs sont comptés côté serveur (total exact par filtre, pas un échantillon).`}]})]}),(0,V.jsxs)(o,{gap:`sm`,children:[(0,V.jsx)(a,{size:`xs`,value:t,onChange:e=>r(e),data:ke}),(0,V.jsx)(w,{component:me,to:`/nodefony/audit`,variant:`subtle`,size:`xs`,leftSection:(0,V.jsx)(ue,{size:15}),children:`Journal complet`})]})]}),(0,V.jsxs)(x,{loading:l&&!s,error:u,onRetry:f,children:[(0,V.jsxs)(v,{children:[(0,V.jsx)(n,{label:`Réussites`,icon:(0,V.jsx)(p,{size:20,color:`var(--mantine-color-teal-6)`}),hint:`Authentifications réussies (login validé) sur la période.`,span:{base:12,sm:4},children:(0,V.jsx)(T,{fz:30,fw:700,c:`teal`,style:{fontVariantNumeric:`tabular-nums`},children:s?.success??`—`})}),(0,V.jsx)(n,{label:`Échecs`,icon:(0,V.jsx)(P,{size:20,color:`var(--mantine-color-orange-6)`}),hint:`Credential présenté mais invalide (mot de passe/signature erroné).`,span:{base:12,sm:4},children:(0,V.jsx)(T,{fz:30,fw:700,c:`orange`,style:{fontVariantNumeric:`tabular-nums`},children:s?.failure??`—`})}),(0,V.jsx)(n,{label:`Refus (Zero Trust)`,icon:(0,V.jsx)(ie,{size:20,color:`var(--mantine-color-red-6)`}),hint:`Aucune preuve présentée dans une zone protégée — le signal d'alerte de l'auditeur.`,span:{base:12,sm:4},children:(0,V.jsx)(T,{fz:30,fw:700,c:`red`,style:{fontVariantNumeric:`tabular-nums`},children:s?.denied??`—`})})]}),(0,V.jsxs)(d,{gap:`xs`,mt:`md`,children:[(0,V.jsxs)(T,{fw:600,size:`sm`,children:[`Derniers refus (`,oe(`denied`).toLowerCase(),`)`]}),s&&s.recentDenied.length===0?(0,V.jsx)(h,{variant:`light`,color:`teal`,icon:(0,V.jsx)(m,{size:18}),children:`Aucun refus d'authentification sur la période — rien à signaler.`}):(0,V.jsx)(y,{mode:`client`,data:s?.recentDenied??[],columns:[{key:`ts`,header:`Heure`,value:e=>e.ts,render:e=>(0,V.jsx)(se,{ts:e.ts}),size:95},{key:`action`,header:`Action`,value:e=>e.action,render:e=>(0,V.jsx)(T,{size:`sm`,ff:`monospace`,children:e.action}),size:160},{key:`outcome`,header:`Issue`,value:e=>e.outcome,render:e=>(0,V.jsx)(ae,{outcome:e.outcome}),size:110},{key:`actor`,header:`Acteur`,value:e=>e.actor??`anonyme`,render:e=>(0,V.jsx)(ce,{actor:e.actor}),size:150},{key:`reason`,header:`Raison`,value:e=>e.reason??``,render:e=>(0,V.jsx)(T,{size:`sm`,ff:`monospace`,c:e.reason?void 0:`dimmed`,children:e.reason??`—`}),size:160},{key:`resource`,header:`Zone / ressource`,value:e=>e.resource??``,render:e=>(0,V.jsx)(T,{size:`sm`,c:e.resource?void 0:`dimmed`,children:e.resource??`—`}),size:150}],getRowId:e=>e.id,initialSort:{key:`ts`,dir:`desc`},pageSize:10,height:360,emptyMessage:`Aucun refus.`})]})]})]})});function je({authenticators:e}){return(0,V.jsxs)(d,{gap:`md`,children:[(0,V.jsxs)(o,{gap:`xs`,children:[(0,V.jsxs)(T,{size:`sm`,c:`dimmed`,children:[e.filter(e=>e.mounted).length,` monté(s) sur`,` `,e.length,` disponible(s).`]}),(0,V.jsx)(c,{title:`Authenticators`,version:R,summary:`Une façon de prouver son identité (pattern IAuthenticator). « Monté » = référencé par ≥1 zone (actif sur le pipeline) ; « Disponible » = utilisable en config mais non référencé.`,sections:[{label:`Challenge`,body:`Un authenticator « avec challenge » fournit l'en-tête WWW-Authenticate (RFC 7235) du 401 de sa zone.`}]})]}),(0,V.jsx)(v,{children:e.map(e=>(0,V.jsx)(v.Col,{span:{base:12,sm:6,lg:4},children:(0,V.jsxs)(b,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,style:{opacity:e.mounted?1:.7},children:[(0,V.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,mb:6,children:[(0,V.jsx)(K,{name:e.name}),(0,V.jsx)(Te,{mounted:e.mounted})]}),(0,V.jsx)(T,{size:`xs`,c:`dimmed`,children:L[e.name]?.blurb??`Authenticator enregistré (plugin).`}),e.challenge&&(0,V.jsx)(g,{mt:`xs`,size:`xs`,variant:`outline`,color:`gray`,style:{textTransform:`none`},children:`challenge WWW-Authenticate`})]})},e.name))})]})}var $=M(()=>{let e=D(),[t,i]=(0,B.useState)(`zones`),a=(0,B.useCallback)(async()=>{try{return await e.api.getAbsolute(_e)}catch(e){throw Error(I(e),{cause:e})}},[e]),{data:c,loading:u,error:d,reload:f}=F(a),p=(0,B.useMemo)(()=>{let e=c?.zones??[];return{zones:e.length,protected:e.filter(e=>e.security).length,mounted:(c?.authenticators??[]).filter(e=>e.mounted).length,defenses:ve(c?.defenses??null)}},[c]),m=c?.configValid??!0,_=c?`${p.zones} zone(s) · ${p.mounted} authenticator(s) monté(s) · ${p.defenses}/4 défenses actives`:`Introspection du firewall`;return(0,V.jsx)(r,{title:`Firewall`,subtitle:_,icon:(0,V.jsx)(k,{size:26}),actions:(0,V.jsxs)(o,{gap:`sm`,wrap:`nowrap`,children:[c&&(0,V.jsx)(g,{size:`lg`,variant:`light`,color:m?`teal`:`red`,leftSection:m?(0,V.jsx)(j,{size:14}):(0,V.jsx)(O,{size:14}),style:{textTransform:`none`},children:m?`Config valide`:`Fail-closed`}),(0,V.jsx)(w,{variant:`light`,leftSection:(0,V.jsx)(ne,{size:16}),loading:u,onClick:f,children:`Recharger`})]}),children:(0,V.jsx)(x,{loading:u&&!c,error:d,onRetry:f,children:c&&(0,V.jsxs)(V.Fragment,{children:[!m&&(0,V.jsx)(h,{variant:`light`,color:`red`,icon:(0,V.jsx)(s,{size:18}),title:`Firewall fail-closed — configuration invalide`,children:c.configError??`La configuration de sécurité est invalide : toutes les requêtes sont rejetées (401) jusqu'à correction.`}),(0,V.jsxs)(v,{children:[(0,V.jsx)(n,{label:`Zones`,icon:(0,V.jsx)(A,{size:20,color:`var(--mantine-color-brand-5)`}),hint:`Zones de sécurité montées (patterns d'URL capturés par le firewall).`,children:(0,V.jsx)(T,{fz:28,fw:700,style:{fontVariantNumeric:`tabular-nums`},children:p.zones})}),(0,V.jsx)(n,{label:`Zones protégées`,icon:(0,V.jsx)(k,{size:20,color:`var(--mantine-color-teal-6)`}),hint:`Zones en Zero Trust (preuve d'identité requise, 401 sinon). Les autres sont publiques explicites.`,children:(0,V.jsx)(T,{fz:28,fw:700,c:`teal`,style:{fontVariantNumeric:`tabular-nums`},children:p.protected})}),(0,V.jsx)(n,{label:`Authenticators montés`,icon:(0,V.jsx)(z,{size:20,color:`var(--mantine-color-grape-6)`}),hint:`Authenticators instanciés car référencés par ≥1 zone (actifs sur le pipeline).`,children:(0,V.jsx)(T,{fz:28,fw:700,c:`grape`,style:{fontVariantNumeric:`tabular-nums`},children:p.mounted})}),(0,V.jsx)(n,{label:`Défenses actives`,icon:(0,V.jsx)(j,{size:20,color:`var(--mantine-color-blue-6)`}),hint:`Défenses transverses activées sur 4 : CSRF, CORS, en-têtes de sécurité, throttle de login.`,children:(0,V.jsxs)(T,{fz:28,fw:700,c:`blue`,style:{fontVariantNumeric:`tabular-nums`},children:[p.defenses,(0,V.jsxs)(T,{span:!0,fz:16,c:`dimmed`,children:[` `,`/ 4`]})]})})]}),(0,V.jsxs)(l,{value:t,onChange:e=>e&&i(e),mt:`xs`,children:[(0,V.jsxs)(l.List,{children:[(0,V.jsx)(l.Tab,{value:`zones`,leftSection:(0,V.jsx)(A,{size:15}),children:`Zones`}),(0,V.jsx)(l.Tab,{value:`authenticators`,leftSection:(0,V.jsx)(z,{size:15}),children:`Authenticators`}),(0,V.jsx)(l.Tab,{value:`defenses`,leftSection:(0,V.jsx)(j,{size:15}),children:`Défenses`}),(0,V.jsx)(l.Tab,{value:`roles`,leftSection:(0,V.jsx)(N,{size:15}),children:`Rôles`}),(0,V.jsx)(l.Tab,{value:`stats`,leftSection:(0,V.jsx)(fe,{size:15}),children:`Statistiques`})]}),(0,V.jsx)(l.Panel,{value:`zones`,pt:`md`,children:(0,V.jsx)(Ee,{zones:c.zones})}),(0,V.jsx)(l.Panel,{value:`authenticators`,pt:`md`,children:(0,V.jsx)(je,{authenticators:c.authenticators})}),(0,V.jsx)(l.Panel,{value:`defenses`,pt:`md`,children:(0,V.jsx)(De,{defenses:c.defenses})}),(0,V.jsx)(l.Panel,{value:`roles`,pt:`md`,children:t===`roles`&&(0,V.jsx)(Oe,{})}),(0,V.jsx)(l.Panel,{value:`stats`,pt:`md`,children:t===`stats`&&(0,V.jsx)(Ae,{})})]})]})})})});export{$ as Firewall,$ as default};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`adjustments`,`Adjustments`,[[`path`,{d:`M4 10a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M6 4v4`,key:`svg-1`}],[`path`,{d:`M6 12v8`,key:`svg-2`}],[`path`,{d:`M10 16a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-3`}],[`path`,{d:`M12 4v10`,key:`svg-4`}],[`path`,{d:`M12 18v2`,key:`svg-5`}],[`path`,{d:`M16 7a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M18 4v1`,key:`svg-7`}],[`path`,{d:`M18 9v11`,key:`svg-8`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`adjustments`,`Adjustments`,[[`path`,{d:`M4 10a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M6 4v4`,key:`svg-1`}],[`path`,{d:`M6 12v8`,key:`svg-2`}],[`path`,{d:`M10 16a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-3`}],[`path`,{d:`M12 4v10`,key:`svg-4`}],[`path`,{d:`M12 18v2`,key:`svg-5`}],[`path`,{d:`M16 7a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M18 4v1`,key:`svg-7`}],[`path`,{d:`M18 9v11`,key:`svg-8`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`adjustments-alt`,`AdjustmentsAlt`,[[`path`,{d:`M4 8h4v4h-4l0 -4`,key:`svg-0`}],[`path`,{d:`M6 4l0 4`,key:`svg-1`}],[`path`,{d:`M6 12l0 8`,key:`svg-2`}],[`path`,{d:`M10 14h4v4h-4l0 -4`,key:`svg-3`}],[`path`,{d:`M12 4l0 10`,key:`svg-4`}],[`path`,{d:`M12 18l0 2`,key:`svg-5`}],[`path`,{d:`M16 5h4v4h-4l0 -4`,key:`svg-6`}],[`path`,{d:`M18 4l0 1`,key:`svg-7`}],[`path`,{d:`M18 9l0 11`,key:`svg-8`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`adjustments-alt`,`AdjustmentsAlt`,[[`path`,{d:`M4 8h4v4h-4l0 -4`,key:`svg-0`}],[`path`,{d:`M6 4l0 4`,key:`svg-1`}],[`path`,{d:`M6 12l0 8`,key:`svg-2`}],[`path`,{d:`M10 14h4v4h-4l0 -4`,key:`svg-3`}],[`path`,{d:`M12 4l0 10`,key:`svg-4`}],[`path`,{d:`M12 18l0 2`,key:`svg-5`}],[`path`,{d:`M16 5h4v4h-4l0 -4`,key:`svg-6`}],[`path`,{d:`M18 4l0 1`,key:`svg-7`}],[`path`,{d:`M18 9l0 11`,key:`svg-8`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`adjustments-horizontal`,`AdjustmentsHorizontal`,[[`path`,{d:`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M4 6l8 0`,key:`svg-1`}],[`path`,{d:`M16 6l4 0`,key:`svg-2`}],[`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-3`}],[`path`,{d:`M4 12l2 0`,key:`svg-4`}],[`path`,{d:`M10 12l10 0`,key:`svg-5`}],[`path`,{d:`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-6`}],[`path`,{d:`M4 18l11 0`,key:`svg-7`}],[`path`,{d:`M19 18l1 0`,key:`svg-8`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`adjustments-horizontal`,`AdjustmentsHorizontal`,[[`path`,{d:`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M4 6l8 0`,key:`svg-1`}],[`path`,{d:`M16 6l4 0`,key:`svg-2`}],[`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-3`}],[`path`,{d:`M4 12l2 0`,key:`svg-4`}],[`path`,{d:`M10 12l10 0`,key:`svg-5`}],[`path`,{d:`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-6`}],[`path`,{d:`M4 18l11 0`,key:`svg-7`}],[`path`,{d:`M19 18l1 0`,key:`svg-8`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`affiliate`,`Affiliate`,[[`path`,{d:`M5.931 6.936l1.275 4.249m5.607 5.609l4.251 1.275`,key:`svg-0`}],[`path`,{d:`M11.683 12.317l5.759 -5.759`,key:`svg-1`}],[`path`,{d:`M4 5.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0`,key:`svg-2`}],[`path`,{d:`M17 5.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0`,key:`svg-3`}],[`path`,{d:`M17 18.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0`,key:`svg-4`}],[`path`,{d:`M4 15.5a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0`,key:`svg-5`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`affiliate`,`Affiliate`,[[`path`,{d:`M5.931 6.936l1.275 4.249m5.607 5.609l4.251 1.275`,key:`svg-0`}],[`path`,{d:`M11.683 12.317l5.759 -5.759`,key:`svg-1`}],[`path`,{d:`M4 5.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0`,key:`svg-2`}],[`path`,{d:`M17 5.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0`,key:`svg-3`}],[`path`,{d:`M17 18.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0`,key:`svg-4`}],[`path`,{d:`M4 15.5a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0`,key:`svg-5`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`apps`,`Apps`,[[`path`,{d:`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-0`}],[`path`,{d:`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-1`}],[`path`,{d:`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-2`}],[`path`,{d:`M14 7l6 0`,key:`svg-3`}],[`path`,{d:`M17 4l0 6`,key:`svg-4`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`apps`,`Apps`,[[`path`,{d:`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-0`}],[`path`,{d:`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-1`}],[`path`,{d:`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-2`}],[`path`,{d:`M14 7l6 0`,key:`svg-3`}],[`path`,{d:`M17 4l0 6`,key:`svg-4`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`archive`,`Archive`,[[`path`,{d:`M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2`,key:`svg-0`}],[`path`,{d:`M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10`,key:`svg-1`}],[`path`,{d:`M10 12l4 0`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`archive`,`Archive`,[[`path`,{d:`M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2`,key:`svg-0`}],[`path`,{d:`M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10`,key:`svg-1`}],[`path`,{d:`M10 12l4 0`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`arrow-left`,`ArrowLeft`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M5 12l6 6`,key:`svg-1`}],[`path`,{d:`M5 12l6 -6`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`arrow-left`,`ArrowLeft`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M5 12l6 6`,key:`svg-1`}],[`path`,{d:`M5 12l6 -6`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`arrows-exchange`,`ArrowsExchange`,[[`path`,{d:`M7 10h14l-4 -4`,key:`svg-0`}],[`path`,{d:`M17 14h-14l4 4`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`arrows-split-2`,`ArrowsSplit2`,[[`path`,{d:`M21 17h-5.397a5 5 0 0 1 -4.096 -2.133l-.514 -.734a5 5 0 0 0 -4.096 -2.133h-3.897`,key:`svg-0`}],[`path`,{d:`M21 7h-5.395a5 5 0 0 0 -4.098 2.135l-.51 .73a5 5 0 0 1 -4.097 2.135h-3.9`,key:`svg-1`}],[`path`,{d:`M18 10l3 -3l-3 -3`,key:`svg-2`}],[`path`,{d:`M18 20l3 -3l-3 -3`,key:`svg-3`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`arrows-split-2`,`ArrowsSplit2`,[[`path`,{d:`M21 17h-5.397a5 5 0 0 1 -4.096 -2.133l-.514 -.734a5 5 0 0 0 -4.096 -2.133h-3.897`,key:`svg-0`}],[`path`,{d:`M21 7h-5.395a5 5 0 0 0 -4.098 2.135l-.51 .73a5 5 0 0 1 -4.097 2.135h-3.9`,key:`svg-1`}],[`path`,{d:`M18 10l3 -3l-3 -3`,key:`svg-2`}],[`path`,{d:`M18 20l3 -3l-3 -3`,key:`svg-3`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`ban`,`Ban`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M5.7 5.7l12.6 12.6`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`circle-check`,`CircleCheck`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M9 12l2 2l4 -4`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`circle-check`,`CircleCheck`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M9 12l2 2l4 -4`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`circle-dot`,`CircleDot`,[[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`circle-dot`,`CircleDot`,[[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-1`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`circuit-resistor`,`CircuitResistor`,[[`path`,{d:`M2 12h2l2 -5l3 10l3 -10l3 10l3 -10l1.5 5h2.5`,key:`svg-0`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`code`,`Code`,[[`path`,{d:`M7 8l-4 4l4 4`,key:`svg-0`}],[`path`,{d:`M17 8l4 4l-4 4`,key:`svg-1`}],[`path`,{d:`M14 4l-4 16`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`code`,`Code`,[[`path`,{d:`M7 8l-4 4l4 4`,key:`svg-0`}],[`path`,{d:`M17 8l4 4l-4 4`,key:`svg-1`}],[`path`,{d:`M14 4l-4 16`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`dots`,`Dots`,[[`path`,{d:`M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`dots`,`Dots`,[[`path`,{d:`M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`eye`,`Eye`,[[`path`,{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`eye`,`Eye`,[[`path`,{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`file`,`File`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`file`,`File`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`git-branch`,`GitBranch`,[[`path`,{d:`M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M5 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M15 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-2`}],[`path`,{d:`M7 8l0 8`,key:`svg-3`}],[`path`,{d:`M9 18h6a2 2 0 0 0 2 -2v-5`,key:`svg-4`}],[`path`,{d:`M14 14l3 -3l3 3`,key:`svg-5`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`git-branch`,`GitBranch`,[[`path`,{d:`M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M5 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M15 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-2`}],[`path`,{d:`M7 8l0 8`,key:`svg-3`}],[`path`,{d:`M9 18h6a2 2 0 0 0 2 -2v-5`,key:`svg-4`}],[`path`,{d:`M14 14l3 -3l3 3`,key:`svg-5`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`heart-rate-monitor`,`HeartRateMonitor`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1l0 -10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}],[`path`,{d:`M7 10h2l2 3l2 -6l1 3h3`,key:`svg-4`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`heart-rate-monitor`,`HeartRateMonitor`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1l0 -10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}],[`path`,{d:`M7 10h2l2 3l2 -6l1 3h3`,key:`svg-4`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`help-circle`,`HelpCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 16v.01`,key:`svg-1`}],[`path`,{d:`M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-2`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`help-circle`,`HelpCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 16v.01`,key:`svg-1`}],[`path`,{d:`M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-2`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`layout-grid`,`LayoutGrid`,[[`path`,{d:`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-0`}],[`path`,{d:`M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-1`}],[`path`,{d:`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-2`}],[`path`,{d:`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-3`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`layout-grid`,`LayoutGrid`,[[`path`,{d:`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-0`}],[`path`,{d:`M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-1`}],[`path`,{d:`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-2`}],[`path`,{d:`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-3`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`api`,`Api`,[[`path`,{d:`M4 13h5`,key:`svg-0`}],[`path`,{d:`M12 16v-8h3a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-3`,key:`svg-1`}],[`path`,{d:`M20 8v8`,key:`svg-2`}],[`path`,{d:`M9 16v-5.5a2.5 2.5 0 0 0 -5 0v5.5`,key:`svg-3`}]]),n=e(`outline`,`network`,`Network`,[[`path`,{d:`M6 9a6 6 0 1 0 12 0a6 6 0 0 0 -12 0`,key:`svg-0`}],[`path`,{d:`M12 3c1.333 .333 2 2.333 2 6s-.667 5.667 -2 6`,key:`svg-1`}],[`path`,{d:`M12 3c-1.333 .333 -2 2.333 -2 6s.667 5.667 2 6`,key:`svg-2`}],[`path`,{d:`M6 9h12`,key:`svg-3`}],[`path`,{d:`M3 20h7`,key:`svg-4`}],[`path`,{d:`M14 20h7`,key:`svg-5`}],[`path`,{d:`M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M12 15v3`,key:`svg-7`}]]);export{t as n,n as t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`api`,`Api`,[[`path`,{d:`M4 13h5`,key:`svg-0`}],[`path`,{d:`M12 16v-8h3a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-3`,key:`svg-1`}],[`path`,{d:`M20 8v8`,key:`svg-2`}],[`path`,{d:`M9 16v-5.5a2.5 2.5 0 0 0 -5 0v5.5`,key:`svg-3`}]]),n=e(`outline`,`network`,`Network`,[[`path`,{d:`M6 9a6 6 0 1 0 12 0a6 6 0 0 0 -12 0`,key:`svg-0`}],[`path`,{d:`M12 3c1.333 .333 2 2.333 2 6s-.667 5.667 -2 6`,key:`svg-1`}],[`path`,{d:`M12 3c-1.333 .333 -2 2.333 -2 6s.667 5.667 2 6`,key:`svg-2`}],[`path`,{d:`M6 9h12`,key:`svg-3`}],[`path`,{d:`M3 20h7`,key:`svg-4`}],[`path`,{d:`M14 20h7`,key:`svg-5`}],[`path`,{d:`M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M12 15v3`,key:`svg-7`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`app-window`,`AppWindow`,[[`path`,{d:`M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10`,key:`svg-0`}],[`path`,{d:`M6 8h.01`,key:`svg-1`}],[`path`,{d:`M9 8h.01`,key:`svg-2`}]]),n=e(`outline`,`packages`,`Packages`,[[`path`,{d:`M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3l0 -5.5`,key:`svg-0`}],[`path`,{d:`M2 13.5v5.5l5 3`,key:`svg-1`}],[`path`,{d:`M7 16.545l5 -3.03`,key:`svg-2`}],[`path`,{d:`M17 16.5l-5 -3l5 -3l5 3v5.5l-5 3l0 -5.5`,key:`svg-3`}],[`path`,{d:`M12 19l5 3`,key:`svg-4`}],[`path`,{d:`M17 16.5l5 -3`,key:`svg-5`}],[`path`,{d:`M12 13.5v-5.5l-5 -3l5 -3l5 3v5.5`,key:`svg-6`}],[`path`,{d:`M7 5.03v5.455`,key:`svg-7`}],[`path`,{d:`M12 8l5 -3`,key:`svg-8`}]]);export{t as n,n as t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`app-window`,`AppWindow`,[[`path`,{d:`M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10`,key:`svg-0`}],[`path`,{d:`M6 8h.01`,key:`svg-1`}],[`path`,{d:`M9 8h.01`,key:`svg-2`}]]),n=e(`outline`,`packages`,`Packages`,[[`path`,{d:`M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3l0 -5.5`,key:`svg-0`}],[`path`,{d:`M2 13.5v5.5l5 3`,key:`svg-1`}],[`path`,{d:`M7 16.545l5 -3.03`,key:`svg-2`}],[`path`,{d:`M17 16.5l-5 -3l5 -3l5 3v5.5l-5 3l0 -5.5`,key:`svg-3`}],[`path`,{d:`M12 19l5 3`,key:`svg-4`}],[`path`,{d:`M17 16.5l5 -3`,key:`svg-5`}],[`path`,{d:`M12 13.5v-5.5l-5 -3l5 -3l5 3v5.5`,key:`svg-6`}],[`path`,{d:`M7 5.03v5.455`,key:`svg-7`}],[`path`,{d:`M12 8l5 -3`,key:`svg-8`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`pencil`,`Pencil`,[[`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`,key:`svg-0`}],[`path`,{d:`M13.5 6.5l4 4`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`pencil`,`Pencil`,[[`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`,key:`svg-0`}],[`path`,{d:`M13.5 6.5l4 4`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`player-pause`,`PlayerPause`,[[`path`,{d:`M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-0`}],[`path`,{d:`M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`player-pause`,`PlayerPause`,[[`path`,{d:`M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-0`}],[`path`,{d:`M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-1`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`puzzle`,`Puzzle`,[[`path`,{d:`M4 7h3a1 1 0 0 0 1 -1v-1a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0 -1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-1a2 2 0 0 0 -4 0v1a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h1a2 2 0 0 0 0 -4h-1a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1`,key:`svg-0`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`puzzle`,`Puzzle`,[[`path`,{d:`M4 7h3a1 1 0 0 0 1 -1v-1a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0 -1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-1a2 2 0 0 0 -4 0v1a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h1a2 2 0 0 0 0 -4h-1a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1`,key:`svg-0`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`box-multiple`,`BoxMultiple`,[[`path`,{d:`M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10`,key:`svg-0`}],[`path`,{d:`M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2`,key:`svg-1`}]]),n=e(`outline`,`recycle`,`Recycle`,[[`path`,{d:`M12 17l-2 2l2 2`,key:`svg-0`}],[`path`,{d:`M10 19h9a2 2 0 0 0 1.75 -2.75l-.55 -1`,key:`svg-1`}],[`path`,{d:`M8.536 11l-.732 -2.732l-2.732 .732`,key:`svg-2`}],[`path`,{d:`M7.804 8.268l-4.5 7.794a2 2 0 0 0 1.506 2.89l1.141 .024`,key:`svg-3`}],[`path`,{d:`M15.464 11l2.732 .732l.732 -2.732`,key:`svg-4`}],[`path`,{d:`M18.196 11.732l-4.5 -7.794a2 2 0 0 0 -3.256 -.14l-.591 .976`,key:`svg-5`}]]);export{t as n,n as t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`box-multiple`,`BoxMultiple`,[[`path`,{d:`M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10`,key:`svg-0`}],[`path`,{d:`M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2`,key:`svg-1`}]]),n=e(`outline`,`recycle`,`Recycle`,[[`path`,{d:`M12 17l-2 2l2 2`,key:`svg-0`}],[`path`,{d:`M10 19h9a2 2 0 0 0 1.75 -2.75l-.55 -1`,key:`svg-1`}],[`path`,{d:`M8.536 11l-.732 -2.732l-2.732 .732`,key:`svg-2`}],[`path`,{d:`M7.804 8.268l-4.5 7.794a2 2 0 0 0 1.506 2.89l1.141 .024`,key:`svg-3`}],[`path`,{d:`M15.464 11l2.732 .732l.732 -2.732`,key:`svg-4`}],[`path`,{d:`M18.196 11.732l-4.5 -7.794a2 2 0 0 0 -3.256 -.14l-.591 .976`,key:`svg-5`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`send`,`Send`,[[`path`,{d:`M10 14l11 -11`,key:`svg-0`}],[`path`,{d:`M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`send`,`Send`,[[`path`,{d:`M10 14l11 -11`,key:`svg-0`}],[`path`,{d:`M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5`,key:`svg-1`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`server-2`,`Server2`,[[`path`,{d:`M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2`,key:`svg-0`}],[`path`,{d:`M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2`,key:`svg-1`}],[`path`,{d:`M7 8l0 .01`,key:`svg-2`}],[`path`,{d:`M7 16l0 .01`,key:`svg-3`}],[`path`,{d:`M11 8h6`,key:`svg-4`}],[`path`,{d:`M11 16h6`,key:`svg-5`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`server-2`,`Server2`,[[`path`,{d:`M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2`,key:`svg-0`}],[`path`,{d:`M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2`,key:`svg-1`}],[`path`,{d:`M7 8l0 .01`,key:`svg-2`}],[`path`,{d:`M7 16l0 .01`,key:`svg-3`}],[`path`,{d:`M11 8h6`,key:`svg-4`}],[`path`,{d:`M11 16h6`,key:`svg-5`}]]);export{t};
@@ -1 +1 @@
1
- import{Et as e}from"./ui-BuLVKSvk.js";var t=e(`outline`,`shield-off`,`ShieldOff`,[[`path`,{d:`M17.67 17.667a12 12 0 0 1 -5.67 3.333a12 12 0 0 1 -8.5 -15c.794 .036 1.583 -.006 2.357 -.124m3.128 -.926a11.997 11.997 0 0 0 3.015 -1.95a12 12 0 0 0 8.5 3a12 12 0 0 1 -1.116 9.376`,key:`svg-0`}],[`path`,{d:`M3 3l18 18`,key:`svg-1`}]]);export{t};
1
+ import{Dt as e}from"./ui-Dw0cak25.js";var t=e(`outline`,`shield-off`,`ShieldOff`,[[`path`,{d:`M17.67 17.667a12 12 0 0 1 -5.67 3.333a12 12 0 0 1 -8.5 -15c.794 .036 1.583 -.006 2.357 -.124m3.128 -.926a11.997 11.997 0 0 0 3.015 -1.95a12 12 0 0 0 8.5 3a12 12 0 0 1 -1.116 9.376`,key:`svg-0`}],[`path`,{d:`M3 3l18 18`,key:`svg-1`}]]);export{t};