@nodefony/studio 10.0.0-beta.1 → 10.0.0-beta.2
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.
- package/README.md +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.152.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.152.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.152.0}/helpers/esm/decorateParam.js +1 -1
- package/dist/frontend/assets/{Accordion-BAM04GkA.js → Accordion-CFzAgJ7Q.js} +1 -1
- package/dist/frontend/assets/{ActionsLiveGraph-DElorih7.js → ActionsLiveGraph-DvkCToUt.js} +1 -1
- package/dist/frontend/assets/{ApiKeys-DUFEmztD.js → ApiKeys-CLgPrHXW.js} +1 -1
- package/dist/frontend/assets/{ArchitectureLiveGraph-DtEEAX-7.js → ArchitectureLiveGraph-G5587ePN.js} +1 -1
- package/dist/frontend/assets/{Audit-CHKUoWSq.js → Audit-CbMYSYAb.js} +1 -1
- package/dist/frontend/assets/{BackplaneLiveGraph-BvW5n_f3.js → BackplaneLiveGraph-BGYT4SZ1.js} +1 -1
- package/dist/frontend/assets/{Breadcrumbs-DGMRS1UW.js → Breadcrumbs-BxC7aBso.js} +1 -1
- package/dist/frontend/assets/{BrickStoreChip-DcY8pmbU.js → BrickStoreChip-C-B3kicY.js} +1 -1
- package/dist/frontend/assets/{Chat-Cy0RVpHa.js → Chat-BHbLjGWU.js} +1 -1
- package/dist/frontend/assets/{Chip-DDKY2Zes.js → Chip-DNtMvxcy.js} +1 -1
- package/dist/frontend/assets/{Cluster-FMiGMEv1.js → Cluster-Bg13dzfH.js} +1 -1
- package/dist/frontend/assets/{Collapse-CGrQIFkK.js → Collapse-D9l5l0h5.js} +1 -1
- package/dist/frontend/assets/{ConfigPage-CUKniBwF.js → ConfigPage-CXwJhRvg.js} +1 -1
- package/dist/frontend/assets/{ConnectorCard-B9hlyKV8.js → ConnectorCard-B8mYUcRg.js} +1 -1
- package/dist/frontend/assets/{Create-B9slJ_uv.js → Create-CqrsaTCZ.js} +1 -1
- package/dist/frontend/assets/{DashboardSupervision-CA9Q1FOL.js → DashboardSupervision-1K-w_nFr.js} +1 -1
- package/dist/frontend/assets/{Database-CtWeoPkE.js → Database-CxO_mXnV.js} +1 -1
- package/dist/frontend/assets/{DbLogo-GLR4nK70.js → DbLogo-B9i1lrl7.js} +1 -1
- package/dist/frontend/assets/{Documentation-DJ5jRGLm.js → Documentation-CRwPjyFD.js} +1 -1
- package/dist/frontend/assets/{FanOutLiveGraph-RLlPWmgy.js → FanOutLiveGraph-AK65MQhR.js} +1 -1
- package/dist/frontend/assets/{Firewall-2smdVN8i.js → Firewall-DKSXFtBS.js} +1 -1
- package/dist/frontend/assets/{IconAdjustments-DkvnYkMb.js → IconAdjustments-jADAq5mK.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsAlt-DRlUsj2g.js → IconAdjustmentsAlt-BozcYoJm.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsHorizontal-BWH6Gww9.js → IconAdjustmentsHorizontal-CPHcDVYJ.js} +1 -1
- package/dist/frontend/assets/{IconAffiliate-BPikozV5.js → IconAffiliate-BD2h4iUK.js} +1 -1
- package/dist/frontend/assets/{IconApps-D4mjcmMe.js → IconApps-CPE24CmR.js} +1 -1
- package/dist/frontend/assets/{IconArchive-BBja3nOI.js → IconArchive-DTHBCk0p.js} +1 -1
- package/dist/frontend/assets/{IconArrowDown-BmqnrcMT.js → IconArrowDown-Cxoz9AzT.js} +1 -1
- package/dist/frontend/assets/{IconArrowLeft-DzwWxljv.js → IconArrowLeft-CKsMZM8W.js} +1 -1
- package/dist/frontend/assets/{IconArrowUp-CJuE-utj.js → IconArrowUp-BruS9HH0.js} +1 -1
- package/dist/frontend/assets/IconArrowsExchange-900A7s3l.js +1 -0
- package/dist/frontend/assets/{IconArrowsSplit2-Dp2-3X4A.js → IconArrowsSplit2-z_ittzyb.js} +1 -1
- package/dist/frontend/assets/IconBan--HrvjPM2.js +1 -0
- package/dist/frontend/assets/{IconBook-C-1bC2yl.js → IconBook-D3Uk6qnk.js} +1 -1
- package/dist/frontend/assets/{IconCircleCheck-ecj-N4o7.js → IconCircleCheck-CxT51u4F.js} +1 -1
- package/dist/frontend/assets/{IconCircleDot-DGU8_s3I.js → IconCircleDot-CjX4w-_4.js} +1 -1
- package/dist/frontend/assets/IconCircuitResistor-DbuU-Ogu.js +1 -0
- package/dist/frontend/assets/{IconCode-Dt6cCbjC.js → IconCode-BWbADEPL.js} +1 -1
- package/dist/frontend/assets/{IconDeviceDesktop-HhPv0iiX.js → IconDeviceDesktop-CpSv2uQP.js} +1 -1
- package/dist/frontend/assets/{IconDots-BD-Udu9m.js → IconDots-AjBIpK3Y.js} +1 -1
- package/dist/frontend/assets/{IconDownload-CRaiz39P.js → IconDownload-9dmSVUMa.js} +1 -1
- package/dist/frontend/assets/{IconEye-Bu6XBRa-.js → IconEye-BpbPkkGo.js} +1 -1
- package/dist/frontend/assets/{IconFile-Dy8Ll4h4.js → IconFile-B6Ty0jey.js} +1 -1
- package/dist/frontend/assets/{IconFolder-qwDkwZSK.js → IconFolder-DVlYN2As.js} +1 -1
- package/dist/frontend/assets/{IconGitBranch-ijcQ6nm2.js → IconGitBranch-D1NsupIJ.js} +1 -1
- package/dist/frontend/assets/{IconHeartRateMonitor-DHiT1kKG.js → IconHeartRateMonitor-Qs470Z18.js} +1 -1
- package/dist/frontend/assets/{IconHelpCircle-hl2uKuJM.js → IconHelpCircle-C0W8AHX2.js} +1 -1
- package/dist/frontend/assets/{IconLayoutGrid-GEKpQgvX.js → IconLayoutGrid-DbmIAWh7.js} +1 -1
- package/dist/frontend/assets/{IconNetwork-Bpr-Mn_W.js → IconNetwork-CzEGyALT.js} +1 -1
- package/dist/frontend/assets/{IconPackages-CzxrdrDv.js → IconPackages-BP4Z0JzG.js} +1 -1
- package/dist/frontend/assets/{IconPencil-CeOoC3Dj.js → IconPencil-jpvCQZeP.js} +1 -1
- package/dist/frontend/assets/{IconPlayerPause-4xXttjFJ.js → IconPlayerPause-BOadqHv3.js} +1 -1
- package/dist/frontend/assets/IconPlayerPlay-Cou4CYc_.js +1 -0
- package/dist/frontend/assets/IconPlus-mN0j95dj.js +1 -0
- package/dist/frontend/assets/{IconPuzzle-CKZj3-KL.js → IconPuzzle-DKNpUq65.js} +1 -1
- package/dist/frontend/assets/{IconRecycle-CMZr3Ffi.js → IconRecycle-DBt59J7Q.js} +1 -1
- package/dist/frontend/assets/{IconSend-g3Yt0Ziv.js → IconSend-Cfk-Yxjc.js} +1 -1
- package/dist/frontend/assets/{IconServer2-C7CNfhUy.js → IconServer2-BDgk1f_2.js} +1 -1
- package/dist/frontend/assets/{IconShieldOff-CwbiK-kg.js → IconShieldOff-leUIwpKk.js} +1 -1
- package/dist/frontend/assets/{IconSitemap-D75ito4t.js → IconSitemap-CIiDQnmH.js} +1 -1
- package/dist/frontend/assets/{IconStack2-DVPsgpSU.js → IconStack2-pTQXZVuN.js} +1 -1
- package/dist/frontend/assets/{IconTerminal2-BN9iTSgV.js → IconTerminal2-kaalbugS.js} +1 -1
- package/dist/frontend/assets/{IconUserOff-_kCkl85B.js → IconUserOff-9lR6ydOx.js} +1 -1
- package/dist/frontend/assets/{IconWorld-B8af-nrW.js → IconWorld-DBbjQtrp.js} +1 -1
- package/dist/frontend/assets/{List-D2g5RQI5.js → List-Dm-XxMb8.js} +1 -1
- package/dist/frontend/assets/{LogVisuals-ATFNIkj4.js → LogVisuals-DRAsCwsZ.js} +1 -1
- package/dist/frontend/assets/{Logs-Dg9lxlFw.js → Logs-BU-n0cyD.js} +1 -1
- package/dist/frontend/assets/{Migrations-CbmgWYkT.js → Migrations-Pg3PGhBR.js} +1 -1
- package/dist/frontend/assets/{ModuleDetail-D2kZALJa.js → ModuleDetail-DkBkn-jF.js} +1 -1
- package/dist/frontend/assets/{Modules-B1hX60hm.js → Modules-CSvoNGnP.js} +1 -1
- package/dist/frontend/assets/{OrmConnector-gJr5z6vZ.js → OrmConnector-Rm9B7iAc.js} +1 -1
- package/dist/frontend/assets/{OrmEntity-CMSutgpJ.js → OrmEntity-9-kn7IBT.js} +1 -1
- package/dist/frontend/assets/{OrmOverview-C0vfGJ25.js → OrmOverview-CCONZuF6.js} +1 -1
- package/dist/frontend/assets/{OrmWorker-C99UGFCH.js → OrmWorker-C3fi5d2Z.js} +1 -1
- package/dist/frontend/assets/{Playground-Bfa_lpCD.js → Playground-ThiCcJm4.js} +1 -1
- package/dist/frontend/assets/{ProbesLiveGraph-Do81Sb2J.js → ProbesLiveGraph-Dbua10rZ.js} +1 -1
- package/dist/frontend/assets/{Profile-DF8FS7PB.js → Profile-DYpegV81.js} +1 -1
- package/dist/frontend/assets/{ProfileFields-CQlenWB6.js → ProfileFields-L4LBZBgi.js} +1 -1
- package/dist/frontend/assets/{Progress-CrfNH4tx.js → Progress-B8-ggXWJ.js} +1 -1
- package/dist/frontend/assets/{ProtocoleLiveGraph-rBUnBHyz.js → ProtocoleLiveGraph-DBVDsPf8.js} +1 -1
- package/dist/frontend/assets/{RealtimeConsole-BKiCkyyc.js → RealtimeConsole-BTMfj3OA.js} +1 -1
- package/dist/frontend/assets/{RingProgress-C7yna-SJ.js → RingProgress-B0Wf5Zcf.js} +1 -1
- package/dist/frontend/assets/{Roadmap-BqAS8Dkv.js → Roadmap-aKJSkXVH.js} +1 -1
- package/dist/frontend/assets/{RoleSwitch-D-sQaoTm.js → RoleSwitch-BDroBlDz.js} +1 -1
- package/dist/frontend/assets/{Roles-BULejn3C.js → Roles-D9JJBaTz.js} +1 -1
- package/dist/frontend/assets/{RoutesView-CNyYzs7W.js → RoutesView-BffKaDen.js} +1 -1
- package/dist/frontend/assets/{Runtime-CZN7ZC-h.js → Runtime-CJ-J-qqR.js} +1 -1
- package/dist/frontend/assets/{Sessions-D2jVkUgA.js → Sessions-CKgDTx0_.js} +1 -1
- package/dist/frontend/assets/{Skeleton-BXa8Fsyf.js → Skeleton-B7pKdEFj.js} +1 -1
- package/dist/frontend/assets/{Slider-DhuTBzZ6.js → Slider-DN4bKULt.js} +1 -1
- package/dist/frontend/assets/{StoresView-D1b1q6iD.js → StoresView-DiieKSbl.js} +1 -1
- package/dist/frontend/assets/{System-C0I4tKcT.js → System-BzBCQ1iv.js} +1 -1
- package/dist/frontend/assets/{TagsInput-l0AxZYrB.js → TagsInput-DabBaCog.js} +1 -1
- package/dist/frontend/assets/{Textarea-DJZubDtm.js → Textarea-BaAA8K9Q.js} +1 -1
- package/dist/frontend/assets/{TraceView-ClqCxi9u.js → TraceView-eFGMNHjt.js} +1 -1
- package/dist/frontend/assets/{Twin-CmY-WPcg.js → Twin-DGBkMLkG.js} +1 -1
- package/dist/frontend/assets/{UserProfile-B12yw08U.js → UserProfile-CQGihbkO.js} +1 -1
- package/dist/frontend/assets/{Users-DI2iWGYb.js → Users-XiVaCk3I.js} +1 -1
- package/dist/frontend/assets/{Webhooks-DObcfmvp.js → Webhooks-DmqBgPUA.js} +1 -1
- package/dist/frontend/assets/{Workspace-C1Qe5qMN.js → Workspace-CVqdqN0T.js} +1 -1
- package/dist/frontend/assets/{abnfDiagram-O67JEVCF-eVuPuZ-l.js → abnfDiagram-O67JEVCF-Bu_bzCw9.js} +1 -1
- package/dist/frontend/assets/{apiKeysModel-D9ReMgLy.js → apiKeysModel-akQpJ6XJ.js} +1 -1
- package/dist/frontend/assets/architecture-7GRP2DOG-DeFQ-rE9.js +1 -0
- package/dist/frontend/assets/{architectureDiagram-NJMV4G6O-CowFfXXj.js → architectureDiagram-NJMV4G6O-5R7NI5_L.js} +1 -1
- package/dist/frontend/assets/{auditFormat-p--Ag76y.js → auditFormat-Bkk9boi2.js} +1 -1
- package/dist/frontend/assets/{auditModel-ChtMTAPh.js → auditModel-B7xozUat.js} +1 -1
- package/dist/frontend/assets/{blockDiagram-BEXU5L5S-CPV6OfBz.js → blockDiagram-BEXU5L5S-CkLywFjT.js} +1 -1
- package/dist/frontend/assets/{c4Diagram-YGBWAQC7-BxzOrOd5.js → c4Diagram-YGBWAQC7-NZVeQm38.js} +1 -1
- package/dist/frontend/assets/channel-0-nsip8f.js +1 -0
- package/dist/frontend/assets/{chunk-3FUC2YCW-Dtc7u5wE.js → chunk-3FUC2YCW-CIMkR92y.js} +1 -1
- package/dist/frontend/assets/{chunk-5DYCD2WN-C6fNpDCq.js → chunk-5DYCD2WN-Co_-nDsD.js} +1 -1
- package/dist/frontend/assets/{chunk-742MDFTN-BuWqUJ1x.js → chunk-742MDFTN-BMFhwdW9.js} +1 -1
- package/dist/frontend/assets/{chunk-7INBJB4K-BLEZ8obp.js → chunk-7INBJB4K-BRd61mBw.js} +1 -1
- package/dist/frontend/assets/{chunk-7M6MHVWA-lvMKwiVM.js → chunk-7M6MHVWA-CKAoXVCj.js} +1 -1
- package/dist/frontend/assets/{chunk-7PRAP22T-CY3tH-_v.js → chunk-7PRAP22T-D8yvVCZo.js} +1 -1
- package/dist/frontend/assets/{chunk-GTNCS2PH-B_uA79q-.js → chunk-GTNCS2PH-D2c3AwOP.js} +1 -1
- package/dist/frontend/assets/{chunk-GWA4HPMP-DwZHSyM6.js → chunk-GWA4HPMP-BRKHoyUA.js} +1 -1
- package/dist/frontend/assets/{chunk-MBY4JIJT-DU8hh3vE.js → chunk-MBY4JIJT-CeQ2lB-_.js} +1 -1
- package/dist/frontend/assets/{chunk-NETBCI7D-PrPyv2qf.js → chunk-NETBCI7D-4LtdbPCE.js} +1 -1
- package/dist/frontend/assets/chunk-O7XYJQB3-Ct9Cv1u-.js +128 -0
- package/dist/frontend/assets/{chunk-UA2S7LBM-EhjtOSNT.js → chunk-UA2S7LBM-hxXAIXFD.js} +1 -1
- package/dist/frontend/assets/{chunk-WEXAMYUT-DnLgt6Py.js → chunk-WEXAMYUT-CLmrGtL_.js} +1 -1
- package/dist/frontend/assets/{chunk-Z7XXMR3K-B4DDNjo4.js → chunk-Z7XXMR3K-C3lyaB_j.js} +1 -1
- package/dist/frontend/assets/{chunk-ZIGJFQKS-D7Dw35HO.js → chunk-ZIGJFQKS-69T2EWGZ.js} +1 -1
- package/dist/frontend/assets/{classDiagram-v2-NBCMYWYE-BNpOjB-G.js → classDiagram-v2-NBCMYWYE-DhFQLAn0.js} +1 -1
- package/dist/frontend/assets/{configModel-DlngZeeE.js → configModel-DxIeQB9w.js} +1 -1
- package/dist/frontend/assets/{cynefin-OW5HDTMX-C57TpIt4.js → cynefin-OW5HDTMX-j4MGD1hv.js} +1 -1
- package/dist/frontend/assets/{cynefinDiagram-VND7K2PF-BlomyrQB.js → cynefinDiagram-VND7K2PF-DEYH3As8.js} +1 -1
- package/dist/frontend/assets/{dagre-6A5THRUB-BWzsXnLW.js → dagre-6A5THRUB-CfwlO-8W.js} +1 -1
- package/dist/frontend/assets/{diagram-22UHCM2B-CVjDv9s9.js → diagram-22UHCM2B-CgdF5TLW.js} +1 -1
- package/dist/frontend/assets/{diagram-3UASUU5V-DVDv1FGj.js → diagram-3UASUU5V-CQuuStX8.js} +1 -1
- package/dist/frontend/assets/{diagram-ATOU4E4O-B5UFYp-C.js → diagram-ATOU4E4O-BP1Do4J4.js} +1 -1
- package/dist/frontend/assets/{diagram-CDSNMT55-Bp8iVPRM.js → diagram-CDSNMT55-D1Au9-fL.js} +1 -1
- package/dist/frontend/assets/{diagram-MLGK6HIB-tvdCXGvD.js → diagram-MLGK6HIB-czqs7dL1.js} +1 -1
- package/dist/frontend/assets/{diagram-MPIPVDR6-BhXeqdXO.js → diagram-MPIPVDR6-ruwgC1dm.js} +1 -1
- package/dist/frontend/assets/{ebnfDiagram-ZINNZB2B-DA_f0Sur.js → ebnfDiagram-ZINNZB2B-DIUI-7gN.js} +1 -1
- package/dist/frontend/assets/{elk-276RUBZZ-D-2pxfms.js → elk-276RUBZZ-ybRDwozN.js} +1 -1
- package/dist/frontend/assets/{erDiagram-OPXOYQCR-IXwXFRE7.js → erDiagram-OPXOYQCR-gHWIog2w.js} +1 -1
- package/dist/frontend/assets/{eventFlow-B4CV1EOm.js → eventFlow-BVDT7nwd.js} +1 -1
- package/dist/frontend/assets/eventmodeling-NTZA5JFV-CuBiGL5w.js +1 -0
- package/dist/frontend/assets/flowDiagram-KWPJA3E3-BPdJqp5h.js +1 -0
- package/dist/frontend/assets/{ganttDiagram-FUAMR5RP-BDNJ7Bau.js → ganttDiagram-FUAMR5RP-ljTkxfTI.js} +1 -1
- package/dist/frontend/assets/{gitGraph-4MIJSDKK-CAY6QM8x.js → gitGraph-4MIJSDKK-13qQpGKl.js} +1 -1
- package/dist/frontend/assets/{gitGraphDiagram-X574FWY7-DB39dqwB.js → gitGraphDiagram-X574FWY7-Cu1qvDBI.js} +1 -1
- package/dist/frontend/assets/{hooks-Dst2sguy.js → hooks-CQs4sMC2.js} +1 -1
- package/dist/frontend/assets/{index-DCk1neIw.js → index-DjEZXzT6.js} +3 -3
- package/dist/frontend/assets/{info-A6RAGUB7-CIjHym4W.js → info-A6RAGUB7-BdYJXkpi.js} +1 -1
- package/dist/frontend/assets/{infoDiagram-VRGFBTTK-D4h7Bn9y.js → infoDiagram-VRGFBTTK-B2jjbnZt.js} +1 -1
- package/dist/frontend/assets/{ishikawaDiagram-OU5B5YK6-B08gE1Ts.js → ishikawaDiagram-OU5B5YK6-DHWDIiZC.js} +1 -1
- package/dist/frontend/assets/{journeyDiagram-ZHPQQLJL-CTLmUx34.js → journeyDiagram-ZHPQQLJL-C4-utx6H.js} +1 -1
- package/dist/frontend/assets/{kanban-definition-PNTS6WVX-BRAjenaA.js → kanban-definition-PNTS6WVX-QgsixB6l.js} +1 -1
- package/dist/frontend/assets/{line-BFnujzfH.js → line-DzbVIBoV.js} +1 -1
- package/dist/frontend/assets/{mermaid-parser.core-BP-BgE7c.js → mermaid-parser.core-C1Enm0ew.js} +3 -3
- package/dist/frontend/assets/{mermaid.core-B83stVmA.js → mermaid.core-C3PUxj4m.js} +4 -4
- package/dist/frontend/assets/{mindmap-definition-NLK3R4M7-DVQlIVXh.js → mindmap-definition-NLK3R4M7-Cmvxbk6V.js} +1 -1
- package/dist/frontend/assets/{ormConnectorInsights-B258XVwc.js → ormConnectorInsights-DsjIvJUP.js} +1 -1
- package/dist/frontend/assets/{packet-AYTQ26CC-CfGiptr4.js → packet-AYTQ26CC-3478ZWo5.js} +1 -1
- package/dist/frontend/assets/{pegDiagram-GJSIUBJH-BDiYV_0C.js → pegDiagram-GJSIUBJH-D330T_Md.js} +1 -1
- package/dist/frontend/assets/{pie-WAS4IAKB-lOu4mWy0.js → pie-WAS4IAKB-DmiQl9GT.js} +1 -1
- package/dist/frontend/assets/{pieDiagram-5QR66LMP-DauEH_sI.js → pieDiagram-5QR66LMP-vbtvwJgj.js} +1 -1
- package/dist/frontend/assets/preload-helper-tSRlcHC2.js +1 -0
- package/dist/frontend/assets/{profileVisuals-Dnc3ujy7.js → profileVisuals-C67upSPM.js} +1 -1
- package/dist/frontend/assets/{quadrantDiagram-O4NWA36T-BcqZGb03.js → quadrantDiagram-O4NWA36T-CwPmLK7Z.js} +1 -1
- package/dist/frontend/assets/{radar-RG4KPBEZ-CncHVJ-Z.js → radar-RG4KPBEZ-rbhwuYwq.js} +1 -1
- package/dist/frontend/assets/{railroad-74A4TZTK-7mvjY84V.js → railroad-74A4TZTK-C3pyEoEA.js} +1 -1
- package/dist/frontend/assets/railroad-abnf-HS5TGJTU-DlAVhq7d.js +1 -0
- package/dist/frontend/assets/railroad-ebnf-LZEXJU2U-CmZtJwG8.js +1 -0
- package/dist/frontend/assets/railroad-peg-WCYAUIDC-DlMpfL5K.js +1 -0
- package/dist/frontend/assets/{railroadDiagram-XR7U4H2S-VGu1Om2v.js → railroadDiagram-XR7U4H2S-uBqd4zs7.js} +1 -1
- package/dist/frontend/assets/{requirementDiagram-PLB6GJNP-BIeT2fsT.js → requirementDiagram-PLB6GJNP-B74tQkH8.js} +1 -1
- package/dist/frontend/assets/{sankeyDiagram-IPEJSGJF-CLBdyFVN.js → sankeyDiagram-IPEJSGJF-oHPh0Lm3.js} +1 -1
- package/dist/frontend/assets/{sequenceDiagram-PO4LG4MO-xFeJgcfs.js → sequenceDiagram-PO4LG4MO-Czp-F145.js} +1 -1
- package/dist/frontend/assets/{stateDiagram-v2-GCMORJYK-Zn0sg5eC.js → stateDiagram-v2-GCMORJYK-BX14loYn.js} +1 -1
- package/dist/frontend/assets/{stores-DCbsF6-_.js → stores-lUkQRkNb.js} +1 -1
- package/dist/frontend/assets/{swimlanes-2SLR337P-BtnI5Ts1.js → swimlanes-2SLR337P-DvY4hbrE.js} +1 -1
- package/dist/frontend/assets/swimlanesDiagram-TC7HE7FX-qnDBUPmS.js +8 -0
- package/dist/frontend/assets/{timeline-definition-EJHVYXUP-CAwjjT68.js → timeline-definition-EJHVYXUP-CcHZFK5J.js} +1 -1
- package/dist/frontend/assets/{treeView-Q6P3EWNA-DFFnEAvn.js → treeView-Q6P3EWNA-IG3LAop9.js} +1 -1
- package/dist/frontend/assets/{treemap-WGGIJYW6-BibBNuzW.js → treemap-WGGIJYW6-Cogi7Lfz.js} +1 -1
- package/dist/frontend/assets/{ui-Dw0cak25.js → ui-BI9ztbA6.js} +29 -29
- package/dist/frontend/assets/{useBlockSource-DV2IM6Oa.js → useBlockSource-CeoXZBpG.js} +1 -1
- package/dist/frontend/assets/{useSocketLiveData-BSNdoo1w.js → useSocketLiveData-D4vxAeLD.js} +1 -1
- package/dist/frontend/assets/{usecaseDiagram-POWQR4AR-Bk94oIx0.js → usecaseDiagram-POWQR4AR-B-2i9NKe.js} +1 -1
- package/dist/frontend/assets/{usersFormat-CJfbAbyH.js → usersFormat-DRk32jhP.js} +1 -1
- package/dist/frontend/assets/{vennDiagram-UO4OBE2U-_ylubyXd.js → vennDiagram-UO4OBE2U-CiEIf6co.js} +1 -1
- package/dist/frontend/assets/{wardley-WFR3VGLG-C6RQiZKi.js → wardley-WFR3VGLG-go5PcInO.js} +1 -1
- package/dist/frontend/assets/{wardleyDiagram-VNRHLVJA-BAnG4zJi.js → wardleyDiagram-VNRHLVJA-B1X7jUdK.js} +1 -1
- package/dist/frontend/assets/{xychartDiagram-PMCCYNJV-Cl7hfbtt.js → xychartDiagram-PMCCYNJV-CGxXtm2k.js} +1 -1
- package/dist/frontend/index.html +12 -12
- package/dist/index.js +2 -2
- package/dist/nodefony/controller/StudioController.js +2 -2
- package/dist/nodefony/controller/StudioCreateController.js +3 -3
- package/dist/nodefony/controller/StudioRealtimeController.js +2 -2
- package/dist/nodefony/service/ScaffoldService.js +32 -10
- package/dist/types/nodefony/service/ScaffoldService.d.ts +15 -0
- package/package.json +14 -14
- package/dist/frontend/assets/IconArrowsExchange-BpW2LKQ2.js +0 -1
- package/dist/frontend/assets/IconBan-CTf_hDlG.js +0 -1
- package/dist/frontend/assets/IconCircuitResistor-Cv8MwkdI.js +0 -1
- package/dist/frontend/assets/IconPlayerPlay-B01YvziL.js +0 -1
- package/dist/frontend/assets/IconPlus-CLDtvWyl.js +0 -1
- package/dist/frontend/assets/architecture-7GRP2DOG-CBO_kzGR.js +0 -1
- package/dist/frontend/assets/channel-CLVQeto6.js +0 -1
- package/dist/frontend/assets/chunk-O7XYJQB3-j8r_wK2Y.js +0 -128
- package/dist/frontend/assets/eventmodeling-NTZA5JFV-BkawB1PZ.js +0 -1
- package/dist/frontend/assets/flowDiagram-KWPJA3E3-BwS9Cpl0.js +0 -1
- package/dist/frontend/assets/preload-helper-DfDauRb0.js +0 -1
- package/dist/frontend/assets/railroad-abnf-HS5TGJTU-DPThAF5w.js +0 -1
- package/dist/frontend/assets/railroad-ebnf-LZEXJU2U-Ck30vOwD.js +0 -1
- package/dist/frontend/assets/railroad-peg-WCYAUIDC-fLqqEJcF.js +0 -1
- package/dist/frontend/assets/swimlanesDiagram-TC7HE7FX-DmKuTkpK.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardSupervision-
|
|
2
|
-
import{E as e,k as t}from"./src-Dvwdl2PF.js";import{$ as n,$n as r,$r as i,$t as a,Ar as o,B as s,Bn as c,Br as l,Bt as u,Cn as d,Cr as f,Dr as p,Dt as m,Er as h,Et as g,Fn as _,Fr as v,Hr as y,In as b,Ir as x,It as S,Jn as C,Jr as w,Kn as T,Ln as E,Lr as D,Nn as O,Nr as k,Pn as A,Pr as j,Pt as ee,Q as te,Qn as ne,Rr as re,Rt as ie,Sn as M,Sr as ae,St as oe,Tr as se,Tt as ce,U as le,Un as ue,Ur as de,Ut as fe,Vn as pe,Vt as me,Wn as N,Wr as P,Wt as F,Xn as he,Xr as ge,Yn as _e,Yr as I,Z as L,Zn as R,Zt as ve,_t as z,ai as ye,ar as be,bn as xe,br as Se,bt as Ce,ci as we,cn as Te,cr as Ee,dr as De,dt as Oe,er as ke,et as Ae,fr as je,gt as Me,hr as Ne,ht as Pe,ii as Fe,in as Ie,ir as Le,it as Re,jr as ze,kr as Be,li as Ve,lr as He,lt as Ue,mi as We,ni as Ge,nn as Ke,nr as qe,oi as Je,on as Ye,or as Xe,pi as Ze,pr as Qe,qn as $e,qr as et,qt as tt,ri as nt,rn as rt,rr as it,rt as at,si as ot,sn as st,sr as ct,ti as lt,tn as ut,tr as dt,tt as ft,ur as pt,vn as mt,vr as ht,wn as gt,wr as _t,wt as vt,xn as yt,xr as bt,yn as B,yr as xt,yt as St,z as Ct,zt as wt}from"./ui-Dw0cak25.js";import{t as Tt}from"./Slider-DhuTBzZ6.js";import{t as Et}from"./Collapse-CGrQIFkK.js";import{C as Dt,D as Ot,E as kt,M as At,N as jt,P as Mt,T as V,a as Nt,b as Pt,c as Ft,d as It,j as Lt,k as Rt,l as zt,n as Bt,o as Vt,r as H,t as Ht,u as Ut,x as Wt}from"./stores-DCbsF6-_.js";import{A as Gt,B as Kt,C as qt,D as Jt,E as Yt,F as Xt,H as Zt,I as Qt,L as $t,M as en,N as tn,O as nn,P as rn,R as an,S as on,T as sn,U as cn,V as ln,W as un,_ as dn,a as fn,b as pn,d as mn,g as hn,i as gn,j as _n,k as vn,l as yn,m as bn,n as xn,o as Sn,p as Cn,r as wn,s as Tn,t as En,v as Dn,w as On,x as kn,y as An,z as jn}from"./hooks-Dst2sguy.js";import{t as U}from"./preload-helper-DfDauRb0.js";import{t as Mn}from"./IconAdjustmentsAlt-DRlUsj2g.js";import{t as Nn}from"./IconAffiliate-BPikozV5.js";import{n as Pn,t as Fn}from"./IconNetwork-Bpr-Mn_W.js";import{t as In}from"./IconArchive-BBja3nOI.js";import{t as Ln}from"./IconArrowsExchange-BpW2LKQ2.js";import{o as Rn,r as zn}from"./pageQuery-yJh2-jSv.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Bn=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Vn=e(((e,t)=>{t.exports=Bn()})),Hn=e((e=>{var t=Vn(),n=We(),r=Ze();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),M=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.legacy_hidden`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.for(`react.view_transition`),le=Symbol.for(`react.recoverable`),ue=Symbol.iterator;function de(e){return typeof e!=`object`||!e?null:(e=ue&&e[ue]||e[`@@iterator`],typeof e==`function`?e:null)}var fe=Symbol.for(`react.client.reference`);function pe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case ae:return`Activity`;case ce:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case ee:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case te:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?pe(e.type)||`Memo`:t;case M:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var me=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function I(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function L(e,t){ge++,he[ge]=e.current,e.current=t}var R=_e(null),ve=_e(null),z=_e(null),ye=_e(null);function be(e,t){switch(L(z,t),L(ve,e),L(R,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}I(R),L(R,e)}function xe(){I(R),I(ve),I(z)}function Se(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,L(ye,e)),t=R.current;var n=dp(t,e.type);t!==n&&(L(ve,e),L(R,n))}function Ce(e){ve.current===e&&(I(R),I(ve)),ye.current===e&&(I(ye),sh._currentValue=F)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardSupervision-1K-w_nFr.js","assets/src-Dvwdl2PF.js","assets/ui-BI9ztbA6.js","assets/preload-helper-tSRlcHC2.js","assets/value-CR1itMY9.js","assets/ui-DLioOiRN.css","assets/Slider-DN4bKULt.js","assets/Progress-B8-ggXWJ.js","assets/RingProgress-B0Wf5Zcf.js","assets/Skeleton-B7pKdEFj.js","assets/stores-lUkQRkNb.js","assets/IconAdjustmentsHorizontal-CPHcDVYJ.js","assets/IconArrowLeft-CKsMZM8W.js","assets/IconRecycle-DBt59J7Q.js","assets/IconCircleCheck-CxT51u4F.js","assets/IconPlayerPause-BOadqHv3.js","assets/health-Cd4yOjnT.js","assets/DbLogo-B9i1lrl7.js","assets/palette-DhlWIgUC.js","assets/RealtimeConsole-BTMfj3OA.js","assets/IconArrowDown-Cxoz9AzT.js","assets/IconArrowUp-BruS9HH0.js","assets/IconArrowsExchange-900A7s3l.js","assets/IconLayoutGrid-DbmIAWh7.js","assets/IconServer2-BDgk1f_2.js","assets/IconStack2-pTQXZVuN.js","assets/realtimeHealth-CEJDxl45.js","assets/Cluster-Bg13dzfH.js","assets/hooks-CQs4sMC2.js","assets/Runtime-CJ-J-qqR.js","assets/List-Dm-XxMb8.js","assets/IconArrowsSplit2-z_ittzyb.js","assets/IconGitBranch-D1NsupIJ.js","assets/IconTerminal2-kaalbugS.js","assets/Chat-BHbLjGWU.js","assets/Textarea-BaAA8K9Q.js","assets/IconSend-Cfk-Yxjc.js","assets/Logs-BU-n0cyD.js","assets/Collapse-D9l5l0h5.js","assets/Chip-DNtMvxcy.js","assets/eventFlow-BVDT7nwd.js","assets/IconAdjustments-jADAq5mK.js","assets/IconCircleDot-CjX4w-_4.js","assets/IconEye-BpbPkkGo.js","assets/IconFile-B6Ty0jey.js","assets/IconFolder-DVlYN2As.js","assets/IconPencil-jpvCQZeP.js","assets/IconPlayerPlay-Cou4CYc_.js","assets/IconWorld-DBbjQtrp.js","assets/pageQuery-yJh2-jSv.js","assets/LogVisuals-DRAsCwsZ.js","assets/IconAffiliate-BD2h4iUK.js","assets/IconDeviceDesktop-CpSv2uQP.js","assets/profileVisuals-C67upSPM.js","assets/TraceView-eFGMNHjt.js","assets/IconCode-BWbADEPL.js","assets/auditFormat-Bkk9boi2.js","assets/IconBan--HrvjPM2.js","assets/auditModel-B7xozUat.js","assets/System-BzBCQ1iv.js","assets/Accordion-CFzAgJ7Q.js","assets/IconNetwork-CzEGyALT.js","assets/Modules-CSvoNGnP.js","assets/IconPackages-BP4Z0JzG.js","assets/IconBook-D3Uk6qnk.js","assets/IconPuzzle-DKNpUq65.js","assets/ModuleDetail-DkBkn-jF.js","assets/IconSitemap-CIiDQnmH.js","assets/dayjs.min-G0uPySEd.js","assets/RoleSwitch-BDroBlDz.js","assets/configModel-DxIeQB9w.js","assets/ConfigPage-CXwJhRvg.js","assets/IconAdjustmentsAlt-BozcYoJm.js","assets/StoresView-DiieKSbl.js","assets/IconArchive-DTHBCk0p.js","assets/IconDownload-9dmSVUMa.js","assets/IconHelpCircle-C0W8AHX2.js","assets/storesModel-B7ZpgdOv.js","assets/RoutesView-BffKaDen.js","assets/IconShieldOff-leUIwpKk.js","assets/Playground-ThiCcJm4.js","assets/Create-CqrsaTCZ.js","assets/Breadcrumbs-BxC7aBso.js","assets/TagsInput-DabBaCog.js","assets/IconApps-CPE24CmR.js","assets/IconPlus-mN0j95dj.js","assets/Database-CxO_mXnV.js","assets/OrmEntity-9-kn7IBT.js","assets/Migrations-Pg3PGhBR.js","assets/orm-CL-WJRcX.js","assets/OrmOverview-CCONZuF6.js","assets/ConnectorCard-B8mYUcRg.js","assets/IconHeartRateMonitor-Qs470Z18.js","assets/ormConnectorInsights-DsjIvJUP.js","assets/OrmConnector-Rm9B7iAc.js","assets/OrmWorker-C3fi5d2Z.js","assets/Documentation-CRwPjyFD.js","assets/Roadmap-aKJSkXVH.js","assets/Workspace-CVqdqN0T.js","assets/useBlockSource-CeoXZBpG.js","assets/apiKeysModel-akQpJ6XJ.js","assets/IconDots-AjBIpK3Y.js","assets/Twin-DGBkMLkG.js","assets/IconCircuitResistor-DbuU-Ogu.js","assets/Audit-CbMYSYAb.js","assets/BrickStoreChip-C-B3kicY.js","assets/Firewall-DKSXFtBS.js","assets/firewallModel-DKOWcjIb.js","assets/Roles-D9JJBaTz.js","assets/rolesModel-BqkpwhLp.js","assets/ApiKeys-CLgPrHXW.js","assets/Sessions-CKgDTx0_.js","assets/IconUserOff-9lR6ydOx.js","assets/Users-XiVaCk3I.js","assets/usersFormat-DRk32jhP.js","assets/Profile-DYpegV81.js","assets/ProfileFields-L4LBZBgi.js","assets/UserProfile-CQGihbkO.js","assets/Webhooks-DmqBgPUA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{E as e,k as t}from"./src-Dvwdl2PF.js";import{$ as n,$n as r,$r as i,$t as a,Ar as o,B as s,Bn as c,Br as l,Bt as u,Cn as d,Cr as f,Dr as p,Dt as m,Er as h,Et as g,Fn as _,Fr as v,Hr as y,In as b,Ir as x,It as S,Jn as C,Jr as w,Kn as T,Ln as E,Lr as D,Nn as O,Nr as k,Pn as A,Pr as j,Pt as ee,Q as te,Qn as ne,Rr as re,Rt as ie,Sn as M,Sr as ae,St as oe,Tr as se,Tt as ce,U as le,Un as ue,Ur as de,Ut as fe,Vn as pe,Vt as me,Wn as N,Wr as P,Wt as F,Xn as he,Xr as ge,Yn as _e,Yr as I,Z as L,Zn as R,Zt as ve,_t as z,ai as ye,ar as be,bn as xe,br as Se,bt as Ce,ci as we,cn as Te,cr as Ee,dr as De,dt as Oe,er as ke,et as Ae,fr as je,gt as Me,hr as Ne,ht as Pe,ii as Fe,in as Ie,ir as Le,it as Re,jr as ze,kr as Be,li as Ve,lr as He,lt as Ue,mi as We,ni as Ge,nn as Ke,nr as qe,oi as Je,on as Ye,or as Xe,pi as Ze,pr as Qe,qn as $e,qr as et,qt as tt,ri as nt,rn as rt,rr as it,rt as at,si as ot,sn as st,sr as ct,ti as lt,tn as ut,tr as dt,tt as ft,ur as pt,vn as mt,vr as ht,wn as gt,wr as _t,wt as vt,xn as yt,xr as bt,yn as B,yr as xt,yt as St,z as Ct,zt as wt}from"./ui-BI9ztbA6.js";import{t as Tt}from"./Slider-DN4bKULt.js";import{t as Et}from"./Collapse-D9l5l0h5.js";import{C as Dt,D as Ot,E as kt,M as At,N as jt,P as Mt,T as V,a as Nt,b as Pt,c as Ft,d as It,j as Lt,k as Rt,l as zt,n as Bt,o as Vt,r as H,t as Ht,u as Ut,x as Wt}from"./stores-lUkQRkNb.js";import{A as Gt,B as Kt,C as qt,D as Jt,E as Yt,F as Xt,H as Zt,I as Qt,L as $t,M as en,N as tn,O as nn,P as rn,R as an,S as on,T as sn,U as cn,V as ln,W as un,_ as dn,a as fn,b as pn,d as mn,g as hn,i as gn,j as _n,k as vn,l as yn,m as bn,n as xn,o as Sn,p as Cn,r as wn,s as Tn,t as En,v as Dn,w as On,x as kn,y as An,z as jn}from"./hooks-CQs4sMC2.js";import{t as U}from"./preload-helper-tSRlcHC2.js";import{t as Mn}from"./IconAdjustmentsAlt-BozcYoJm.js";import{t as Nn}from"./IconAffiliate-BD2h4iUK.js";import{n as Pn,t as Fn}from"./IconNetwork-CzEGyALT.js";import{t as In}from"./IconArchive-DTHBCk0p.js";import{t as Ln}from"./IconArrowsExchange-900A7s3l.js";import{o as Rn,r as zn}from"./pageQuery-yJh2-jSv.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Bn=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Vn=e(((e,t)=>{t.exports=Bn()})),Hn=e((e=>{var t=Vn(),n=We(),r=Ze();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),M=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.legacy_hidden`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.for(`react.view_transition`),le=Symbol.for(`react.recoverable`),ue=Symbol.iterator;function de(e){return typeof e!=`object`||!e?null:(e=ue&&e[ue]||e[`@@iterator`],typeof e==`function`?e:null)}var fe=Symbol.for(`react.client.reference`);function pe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case ae:return`Activity`;case ce:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case ee:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case te:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?pe(e.type)||`Memo`:t;case M:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var me=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function I(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function L(e,t){ge++,he[ge]=e.current,e.current=t}var R=_e(null),ve=_e(null),z=_e(null),ye=_e(null);function be(e,t){switch(L(z,t),L(ve,e),L(R,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}I(R),L(R,e)}function xe(){I(R),I(ve),I(z)}function Se(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,L(ye,e)),t=R.current;var n=dp(t,e.type);t!==n&&(L(ve,e),L(R,n))}function Ce(e){ve.current===e&&(I(R),I(ve)),ye.current===e&&(I(ye),sh._currentValue=F)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.split(`
|
|
@@ -25,4 +25,4 @@ Error generating stack: `+e.message+`
|
|
|
25
25
|
0%, 100% { transform: scale(1); opacity: 1; }
|
|
26
26
|
50% { transform: scale(1.08); opacity: 0.85; }
|
|
27
27
|
}
|
|
28
|
-
`;function hl(){if(typeof document>`u`||document.getElementById(`nf-conn-overlay-kf`))return;let e=document.createElement(`style`);e.id=`nf-conn-overlay-kf`,e.textContent=ml,document.head.appendChild(e)}function gl(){let[e,t]=(0,W.useState)(()=>typeof document>`u`||!document.hidden);return(0,W.useEffect)(()=>{let e=()=>t(!document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e}var _l={position:`fixed`,inset:0,zIndex:1e3,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`color-mix(in srgb, var(--mantine-color-body) 90%, transparent)`},vl={position:`relative`,width:380,maxWidth:`90vw`,padding:`34px 30px 26px`,borderRadius:16,background:`var(--mantine-color-body)`,border:`1px solid var(--mantine-color-default-border)`,boxShadow:`var(--mantine-shadow-lg)`,overflow:`hidden`,textAlign:`center`},yl={position:`relative`,width:120,height:120};function bl({color:e,delay:t}){return(0,G.jsx)(T,{style:{position:`absolute`,inset:0,borderRadius:`50%`,border:`2px solid ${e}`,animation:`nfConnPing 2.4s cubic-bezier(0,0.2,0.2,1) infinite`,animationDelay:t}})}var xl=ar(()=>{let e=Nt(),t=e.isDown,n=gl(),r=Be(),i=t&&n&&!r,[a,o]=(0,W.useState)(()=>Date.now()),[s,c]=(0,W.useState)(!1),l=(0,W.useRef)(!1);if(hl(),(0,W.useEffect)(()=>{if(!t||!n)return;o(Date.now());let e=window.setInterval(()=>o(Date.now()),250);return()=>window.clearInterval(e)},[t,n]),(0,W.useEffect)(()=>{if(l.current&&!t){c(!0);let e=window.setTimeout(()=>c(!1),1600);return l.current=t,()=>window.clearTimeout(e)}l.current=t},[t]),!t&&!s)return null;let u=e.state===`error`,d=s?`var(--mantine-color-teal-5)`:u?`var(--mantine-color-red-5)`:`var(--mantine-color-blue-4)`,f=e.nextRetryAt&&!s?Math.max(0,Math.ceil((e.nextRetryAt-a)/1e3)):null,p=s?`Reconnecté`:u?`Serveur injoignable`:e.state===`reconnecting`?`Reconnexion au serveur…`:`Connexion perdue`,m=s?`Le temps réel est rétabli.`:f===null?`Tentative de rétablissement…`:f>0?`Nouvelle tentative dans ${f}s`:`Tentative en cours…`;return(0,G.jsx)(T,{style:_l,children:(0,G.jsxs)(T,{style:vl,children:[(0,G.jsx)(T,{style:{position:`absolute`,top:0,left:0,right:0,height:2,overflow:`hidden`},children:(0,G.jsx)(T,{style:{width:`100%`,height:`100%`,background:i?`linear-gradient(90deg, transparent, ${d}, transparent)`:d,opacity:i?1:.5,animation:i?`nfConnSweep 1.8s linear infinite`:`none`}})}),(0,G.jsxs)(F,{align:`center`,gap:`md`,children:[(0,G.jsxs)(A,{gap:12,align:`center`,justify:`center`,children:[(0,G.jsx)(pl,{height:40}),(0,G.jsx)(B,{fw:800,size:`28px`,c:`dimmed`,style:{letterSpacing:3,textTransform:`uppercase`,lineHeight:1},children:`Studio`})]}),(0,G.jsxs)(T,{style:yl,children:[i&&!s&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(bl,{color:d,delay:`0s`}),(0,G.jsx)(bl,{color:d,delay:`0.8s`}),(0,G.jsx)(bl,{color:d,delay:`1.6s`})]}),(0,G.jsx)(T,{style:{position:`absolute`,inset:30,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`color-mix(in srgb, ${d} 18%, transparent)`,color:d,animation:i&&!s?`nfConnBreathe 1.6s ease-in-out infinite`:`none`},children:s?(0,G.jsx)(z,{size:34}):(0,G.jsx)(Js,{size:34})})]}),(0,G.jsxs)(F,{gap:4,align:`center`,children:[(0,G.jsx)(B,{fw:700,size:`xl`,children:p}),(0,G.jsx)(B,{size:`sm`,c:`dimmed`,children:m})]}),!s&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(A,{gap:`xs`,justify:`center`,children:[e.reconnectAttempt>0&&(0,G.jsxs)(B,{size:`xs`,c:`dimmed`,children:[`Tentative #`,e.reconnectAttempt]}),e.latencyMs!==null&&(0,G.jsxs)(B,{size:`xs`,c:`dimmed`,children:[`· dernière latence `,e.latencyMs,` ms`]})]}),(0,G.jsx)(st,{leftSection:(0,G.jsx)(Qs,{size:16}),color:u?`red`:`blue`,variant:`light`,radius:`md`,onClick:()=>e.retryNow(),children:`Réessayer maintenant`}),(0,G.jsxs)(A,{gap:6,justify:`center`,children:[(0,G.jsx)(oe,{size:12,color:`var(--mantine-color-dimmed)`}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,ff:`monospace`,children:e.endpointUrl||`realtime`})]})]})]})]})})}),Sl=[{id:`account`,label:`Mon espace`,icon:Rs,items:[{to:`/nodefony/workspace`,label:`Mon bureau`,icon:Rs},{to:`/nodefony/profile`,label:`Mon profil`,icon:uc},{to:`/nodefony/sessions`,label:`Mes sessions`,icon:Re},{to:`/nodefony/api-keys`,label:`Mes clés API`,icon:Is},{to:`/nodefony/settings`,label:`Réglages`,icon:n,wip:!0}]},{id:`observability`,label:`Observation`,icon:bs,items:[{to:`/nodefony/twin`,label:`Carte du serveur`,icon:lc,roles:V.devops},{to:`/nodefony/supervision`,label:`Supervision`,icon:Ot,roles:V.ops},{to:`/nodefony/cluster`,label:`Cluster`,icon:Ts,roles:V.ops},{to:`/nodefony/runtime`,label:`Runtime`,icon:ec,roles:V.devops},{to:`/nodefony/hub`,label:`Temps réel`,icon:_s,roles:V.devops},{to:`/nodefony/logs`,label:`Journaux`,icon:As,roles:V.devops}]},{id:`system`,label:`Système & données`,icon:Pn,items:[{to:`/nodefony/modules`,label:`Modules`,icon:ps,roles:V.dev},{to:`/nodefony/config`,label:`Configuration`,icon:Mn,roles:V.dev},{to:`/nodefony/services`,label:`Services`,icon:Nn,roles:V.dev,wip:!0},{to:`/nodefony/routes`,label:`Routes`,icon:tc,roles:V.dev},{to:`/nodefony/playground`,label:`Playground`,icon:Ms,roles:V.dev,devOnly:!0},{to:`/nodefony/create`,label:`Créer`,icon:L,roles:V.dev,devOnly:!0},{to:`/nodefony/system`,label:`Admin API`,icon:Pn,roles:V.admin},{to:`/nodefony/npm`,label:`NPM`,icon:gs,roles:V.dev,wip:!0},{to:`/nodefony/orm`,label:`ORM`,icon:Ds,roles:V.dev},{to:`/nodefony/databases`,label:`Schéma ERD`,icon:nc,roles:V.dev},{to:`/nodefony/stores`,label:`Stores`,icon:Es,roles:V.dev},{to:`/nodefony/migrate`,label:`Migrations`,icon:Ln,roles:V.dev}]},{id:`security`,label:`Sécurité`,icon:ac,roles:V.admin,items:[{to:`/nodefony/audit`,label:`Journal d'audit`,icon:Ns},{to:`/nodefony/firewall`,label:`Firewall`,icon:ac},{to:`/nodefony/users`,label:`Utilisateurs`,icon:fc},{to:`/nodefony/roles`,label:`Rôles`,icon:dc},{to:`/nodefony/webhooks`,label:`Webhooks`,icon:mc}]},{id:`ai-studio`,label:`IA — Atelier`,icon:oc,roles:V.dev,items:[{to:`/nodefony/chat`,label:`Chat`,icon:Ws,wip:!0},{to:`/nodefony/agents`,label:`Agents`,icon:$s,wip:!0},{to:`/nodefony/knowledge`,label:`Connaissances (RAG)`,icon:fs,wip:!0},{to:`/nodefony/llm`,label:`Fournisseurs LLM`,icon:ms,wip:!0},{to:`/nodefony/vector`,label:`Bases vectorielles`,icon:pc,wip:!0},{to:`/nodefony/memory`,label:`Mémoire`,icon:In,wip:!0},{to:`/nodefony/mcp`,label:`MCP`,icon:Zs,wip:!0}]},{id:`ai-governance`,label:`IA — Gouvernance`,icon:ic,roles:V.admin,items:[{to:`/nodefony/agent-guard`,label:`Agent Guard`,icon:ic,wip:!0},{to:`/nodefony/approvals`,label:`Approbations`,icon:xs,wip:!0},{to:`/nodefony/ai-audit`,label:`Audit IA`,icon:ks,wip:!0},{to:`/nodefony/ai-costs`,label:`Coûts`,icon:Cs,wip:!0},{to:`/nodefony/insights`,label:`Insights IA`,icon:St,wip:!0}]},{id:`documentation`,label:`Documentation`,icon:fs,roles:V.devops,items:[{to:`/nodefony/documentation`,label:`Documentation`,icon:fs},{to:`/nodefony/roadmap`,label:`Feuille de route`,icon:Us}]}],Cl={server:rc,network:Fn,route:tc,"file-text":As,api:Pn},wl=`/nodefony/user/api/me`,Tl=`/nodefony/user/api/me/password`,El=`/nodefony/user/api/me/profile`,Dl=`v1.0`;function Ol(e,t,n){return e.length===0?`Saisissez votre mot de passe actuel.`:t.length<10?`Le nouveau mot de passe doit faire au moins 10 caractères.`:t===e?`Le nouveau mot de passe doit être différent de l'actuel.`:t===n?null:`La confirmation ne correspond pas.`}function kl(e){return e===null?`—`:new Date(e).toLocaleString(`fr-FR`,{dateStyle:`medium`,timeStyle:`short`})}function Al(e){let t=e?.status;if(t===401)return`Non authentifié — votre session Studio a expiré ou n'est plus reconnue par le firewall. Reconnectez-vous.`;if(t===403)return`Mot de passe actuel incorrect.`;if(t===400)return`Mot de passe refusé — trop court, identique à l'actuel, ou trop courant.`;if(t===503)return`Service utilisateur indisponible — le sous-système n'est pas provisionné.`;if(t===404)return`Endpoint introuvable — le module @nodefony/user n'expose peut-être pas le self-service.`;let n=e?.message;return n?`Erreur : ${n}`:`Une erreur est survenue.`}function jl(e,t){let n=(e.givenName??``).trim(),r=(e.familyName??``).trim();if(n||r)return(n.charAt(0)+r.charAt(0)).toUpperCase();let i=(e.displayName??t??``).trim();if(!i)return`?`;let[a=``,o]=i.split(/\s+/).filter(Boolean);return(o===void 0?i.slice(0,2):a.charAt(0)+o.charAt(0)).toUpperCase()}async function Ml(e,t=200){let n=e.trim().toLowerCase(),r=globalThis.crypto.subtle;if(!n||!r)return null;try{let e=await r.digest(`SHA-256`,new TextEncoder().encode(n));return`https://www.gravatar.com/avatar/${Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}?s=${t}&d=404`}catch{return null}}var Nl=260,Pl=256,Fl=10485760,Il=`image/png,image/jpeg,image/webp,image/gif`;function Ll({profile:e,identifier:t,size:n=64}){let[r,i]=(0,W.useState)(null),a=e.picture?.trim(),o=e.email?.trim();return(0,W.useEffect)(()=>{let e=!0;return!a&&o?Ml(o,Math.max(80,n*2)).then(t=>{e&&i(t)}):i(null),()=>{e=!1}},[a,o,n]),(0,G.jsx)(_i,{src:a||r||void 0,size:n,radius:`xl`,color:`brand`,children:jl(e,t)})}function Rl({src:e,onCancel:t,onDone:n}){let r=Vt(),[i,a]=(0,W.useState)(null),[o,s]=(0,W.useState)(1),[c,l]=(0,W.useState)({x:0,y:0}),[u,d]=(0,W.useState)(!1),f=(0,W.useRef)(null),p=(i?Math.max(Nl/i.w,Nl/i.h):1)*o,m=i?i.w*p:Nl,h=i?i.h*p:Nl,g=(0,W.useCallback)((e,t)=>({x:Math.min(0,Math.max(Nl-m,e)),y:Math.min(0,Math.max(Nl-h,t))}),[m,h]);(0,W.useEffect)(()=>{let t=new Image;t.addEventListener(`load`,()=>{a({w:t.naturalWidth,h:t.naturalHeight});let e=Math.max(Nl/t.naturalWidth,Nl/t.naturalHeight),n=t.naturalWidth*e,r=t.naturalHeight*e;l({x:(Nl-n)/2,y:(Nl-r)/2})}),t.src=e},[e]),(0,W.useEffect)(()=>{i&&l(e=>g(e.x,e.y))},[o,i,g]);let _=e=>{e.currentTarget.setPointerCapture(e.pointerId),f.current={px:e.clientX,py:e.clientY,ox:c.x,oy:c.y}},v=e=>{f.current&&l(g(f.current.ox+(e.clientX-f.current.px),f.current.oy+(e.clientY-f.current.py)))},y=()=>{f.current=null},b=async()=>{if(i){d(!0);try{let t=new Image;await new Promise((n,r)=>{t.addEventListener(`load`,()=>n()),t.addEventListener(`error`,()=>r(Error(`image`))),t.src=e});let r=document.createElement(`canvas`);r.width=Pl,r.height=Pl;let i=r.getContext(`2d`);if(!i)throw Error(`canvas indisponible`);let a=Nl/p;i.drawImage(t,-c.x/p,-c.y/p,a,a,0,0,Pl,Pl),n(r.toDataURL(`image/webp`,.85))}finally{d(!1)}}};return(0,G.jsxs)(F,{gap:`md`,align:`center`,children:[(0,G.jsxs)(`div`,{onPointerDown:_,onPointerMove:v,onPointerUp:y,style:{position:`relative`,width:Nl,height:Nl,overflow:`hidden`,borderRadius:8,touchAction:`none`,cursor:`grab`,background:`var(--mantine-color-dark-8)`},children:[(0,G.jsx)(`img`,{src:e,alt:``,draggable:!1,style:{position:`absolute`,left:c.x,top:c.y,width:m,height:h,userSelect:`none`,maxWidth:`none`}}),(0,G.jsx)(`div`,{"aria-hidden":!0,style:{position:`absolute`,inset:0,borderRadius:`50%`,boxShadow:`0 0 0 9999px rgba(0,0,0,0.5)`,pointerEvents:`none`}})]}),(0,G.jsxs)(A,{gap:`xs`,w:Nl,children:[(0,G.jsx)(_c,{size:16,"aria-hidden":!0}),(0,G.jsx)(Tt,{flex:1,min:1,max:3,step:.01,value:o,onChange:s,label:e=>`${e.toFixed(1)}×`,"aria-label":`Zoom de l'avatar`})]}),(0,G.jsxs)(A,{justify:`flex-end`,w:Nl,children:[(0,G.jsx)(st,{variant:`default`,onClick:t,disabled:u,children:`Annuler`}),(0,G.jsx)(st,{onClick:()=>{b().catch(e=>{r.notify(`error`,`Recadrage impossible : ${e instanceof Error?e.message:String(e)}`,{source:`api`})})},loading:u,disabled:!i,children:`Valider`})]})]})}function zl({profile:e,identifier:t,onChange:n,disabled:r}){let i=Vt(),[a,o]=(0,W.useState)(null);return(0,G.jsxs)(A,{gap:`lg`,align:`center`,children:[(0,G.jsx)(Ll,{profile:e,identifier:t,size:84}),(0,G.jsxs)(F,{gap:`xs`,children:[(0,G.jsxs)(A,{gap:`xs`,children:[(0,G.jsx)(xi,{onChange:e=>{if(!e)return;if(!/^image\/(png|jpe?g|webp|gif)$/i.test(e.type)){i.notify(`error`,`Format non supporté (PNG, JPEG, WebP).`,{source:`api`});return}if(e.size>Fl){i.notify(`error`,`Image trop lourde (max 10 Mo).`,{source:`api`});return}let t=new FileReader;t.addEventListener(`load`,()=>o(t.result)),t.addEventListener(`error`,()=>i.notify(`error`,`Lecture du fichier impossible.`,{source:`api`})),t.readAsDataURL(e)},accept:Il,disabled:r,children:e=>(0,G.jsx)(st,{...e,variant:`light`,leftSection:(0,G.jsx)(ys,{size:16}),disabled:r,children:`Changer la photo`})}),e.picture&&(0,G.jsx)(st,{variant:`subtle`,color:`red`,leftSection:(0,G.jsx)(te,{size:16}),disabled:r,onClick:()=>n(``),children:`Retirer`})]}),(0,G.jsxs)(B,{size:`xs`,c:`dimmed`,children:[`PNG, JPEG ou WebP. Recadrée en cercle, redimensionnée à `,Pl,`px.`]})]}),(0,G.jsx)(ve,{opened:a!==null,onClose:()=>o(null),title:`Recadrer l'avatar`,centered:!0,size:`auto`,children:a&&(0,G.jsx)(Rl,{src:a,onCancel:()=>o(null),onDone:e=>{n(e),o(null)}})})]})}var Bl=68,Vl=264;function Hl({to:e,label:t,icon:n,active:r,rail:i,rightSection:a,dimmed:o,pinned:s,onTogglePin:c}){return i?(0,G.jsx)(tt,{label:t,position:`right`,withArrow:!0,openDelay:200,children:(0,G.jsx)(wi,{component:Uo,to:e,active:r,variant:r?`filled`:`subtle`,leftSection:(0,G.jsx)(n,{size:20,stroke:1.6}),styles:{root:{justifyContent:`center`,borderRadius:8,opacity:o?.7:1},section:{marginInlineEnd:0}},mb:2})}):(0,G.jsx)(wi,{component:Uo,to:e,label:t,active:r,variant:r?`filled`:`subtle`,leftSection:(0,G.jsx)(n,{size:18,stroke:1.6}),rightSection:(0,G.jsxs)(A,{gap:4,wrap:`nowrap`,children:[a,c?(0,G.jsx)(b,{component:`span`,role:`button`,size:`xs`,variant:`subtle`,color:s?`brand`:`gray`,"aria-label":s?`Désépingler ${t}`:`Épingler ${t} en haut`,className:`nf-pin`,onClick:e=>{e.preventDefault(),e.stopPropagation(),c()},style:{opacity:s?1:void 0},children:s?(0,G.jsx)(vc,{size:12}):(0,G.jsx)(sc,{size:12})}):null]}),styles:{root:{borderRadius:8,opacity:o?.7:1},label:o?{fontWeight:400}:void 0},mb:2})}function Ul(e){let t=e.replace(/^ROLE_(NODEFONY_)?/,``).replace(/_/g,` `);return t.charAt(0)+t.slice(1).toLowerCase()}var Wl=ar(()=>{let[e,{toggle:t}]=cr(!1),r=H(),i=Vt(),o=Ft(),{data:s}=$c((0,W.useCallback)(()=>o.api.getAbsolute(wl),[o])),c=(0,W.useCallback)(async()=>{try{await r.registerPasskey(),i.notify(`success`,`Vous pouvez désormais vous connecter par empreinte.`,{title:`Passkey enregistré`})}catch(e){if(e instanceof Error&&(e.name===`NotAllowedError`||e.name===`AbortError`))return;i.notify(`error`,`Échec de l'enregistrement du passkey.`,{title:`Erreur`})}},[r,i]),l=Nt(),d=zt(),f=Ut(),p=Bt(),m=Nc(),h=yn(),g=Tn(),[_]=Ko(),{colorScheme:v,toggleColorScheme:y}=He();(0,W.useEffect)(()=>{l.connect()},[l]),(0,W.useEffect)(()=>{m&&p.loadCatalog()},[p,m]),(0,W.useEffect)(()=>{p.loadInfo()},[p]),(0,W.useEffect)(()=>{let e=e=>{let t=e.detail?.requestId;t&&h(`/nodefony/logs/trace/${encodeURIComponent(t)}`)};return window.addEventListener(S.debugbarSelect,e),()=>window.removeEventListener(S.debugbarSelect,e)},[h]);let x=d.rail,C=d.navQuery.trim().toLowerCase(),w=C.length>0,D=_.get(`p`),O=(e,t)=>t?g.pathname===e:g.pathname===e||g.pathname.startsWith(e+`/`),k=p.producers,j=(0,W.useCallback)(e=>!(e.devOnly&&p.isProd),[p.isProd]),ee=Sl.flatMap(e=>e.roles&&!kt(e.roles,r.roles)?[]:e.items.filter(e=>kt(e.roles,r.roles)&&j(e))),te=w?[]:d.pinned.map(e=>ee.find(t=>t.to===e)).filter(e=>e!==void 0);return(0,G.jsxs)(oi,{header:{height:56},navbar:{width:x?Bl:Vl,breakpoint:`sm`,collapsed:{mobile:!e,desktop:!1}},padding:`md`,children:[(0,G.jsx)(oi.Header,{children:(0,G.jsxs)(A,{h:`100%`,px:`md`,justify:`space-between`,gap:`xs`,children:[(0,G.jsxs)(A,{gap:`xs`,children:[(0,G.jsx)(bi,{opened:e,onClick:t,size:`sm`,hiddenFrom:`sm`}),(0,G.jsx)(tt,{label:x?`Déplier la sidebar`:`Réduire la sidebar`,children:(0,G.jsx)(b,{variant:`subtle`,onClick:()=>d.toggleRail(),visibleFrom:`sm`,"aria-label":`Toggle sidebar`,children:x?(0,G.jsx)(Bs,{size:20}):(0,G.jsx)(zs,{size:20})})}),(0,G.jsx)(Uo,{to:`/nodefony`,style:{textDecoration:`none`,color:`inherit`},children:(0,G.jsxs)(A,{gap:6,wrap:`nowrap`,children:[(0,G.jsx)(pl,{height:26}),(0,G.jsxs)(B,{fw:700,size:`lg`,c:`brand`,children:[`Nodefony`,` `,(0,G.jsx)(B,{span:!0,c:d.palette===`nodefony`?`nodefonyCyan`:`orange`,inherit:!0,children:`Studio`})]})]})}),kt(V.devops,r.roles)?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(rl,{}),(0,G.jsx)(dl,{})]}):null,g.pathname.startsWith(`/nodefony/workspace`)?(0,G.jsx)(Te,{variant:`light`,color:`gray`,radius:`sm`,visibleFrom:`sm`,children:f.active.label}):null]}),(0,G.jsxs)(A,{gap:`xs`,children:[(0,G.jsxs)(a,{width:380,position:`bottom-end`,shadow:`md`,openDelay:150,closeDelay:120,withinPortal:!0,children:[(0,G.jsx)(a.Target,{children:(0,G.jsx)(ue,{onClick:()=>void h(`/nodefony/hub`),"aria-label":`${l.state.toUpperCase()}${l.subscriptionCount>0?` ${l.subscriptionCount}`:``} — Realtime Hub, ouvrir le hub temps réel`,children:(0,G.jsx)(Te,{leftSection:l.isConnected?(0,G.jsx)(Ys,{size:12}):(0,G.jsx)(Xs,{size:12}),color:l.isConnected?`teal`:l.state===`connecting`||l.state===`reconnecting`?`yellow`:l.state===`error`?`red`:`gray`,variant:`light`,rightSection:l.subscriptionCount>0?(0,G.jsx)(Te,{size:`xs`,variant:`filled`,color:`brand`,circle:!0,children:l.subscriptionCount}):null,style:{cursor:`pointer`},children:l.state})})}),(0,G.jsx)(a.Dropdown,{p:`sm`,children:(0,G.jsx)(Qc,{onOpenConsole:()=>void h(`/nodefony/hub`)})})]}),(0,G.jsx)(tt,{label:`Palette : ${d.palette===`nodefony`?`Nodefony (bleu)`:`Orange`} — cliquer pour basculer`,children:(0,G.jsx)(b,{variant:`subtle`,color:`brand`,onClick:()=>d.togglePalette(),"aria-label":`Toggle palette`,children:(0,G.jsx)(qs,{size:18})})}),(0,G.jsx)(tt,{label:`Debug bar : ${d.debugBar?`visible`:`masquée`} — cliquer pour basculer`,children:(0,G.jsx)(b,{variant:d.debugBar?`light`:`subtle`,color:`brand`,onClick:()=>d.toggleDebugBar(),"aria-label":`Toggle debug bar`,children:(0,G.jsx)(Ls,{size:18})})}),(0,G.jsx)(b,{variant:`subtle`,onClick:()=>y(),"aria-label":`Toggle theme`,children:v===`dark`?(0,G.jsx)(cc,{size:18}):(0,G.jsx)(Ks,{size:18})}),(0,G.jsxs)(a,{position:`bottom-end`,withArrow:!0,shadow:`lg`,radius:`md`,width:290,openDelay:80,closeDelay:120,children:[(0,G.jsx)(a.Target,{children:(0,G.jsx)(b,{variant:`subtle`,radius:`xl`,"aria-label":`Mon compte — ${r.displayName}`,children:(0,G.jsx)(`span`,{"aria-hidden":`true`,children:(0,G.jsx)(Ll,{profile:s?.profile??{email:r.user?.email??void 0},identifier:r.displayName,size:28})})})}),(0,G.jsxs)(a.Dropdown,{p:0,style:{overflow:`hidden`},children:[(0,G.jsxs)(A,{p:`md`,gap:`sm`,wrap:`nowrap`,align:`flex-start`,children:[(0,G.jsx)(Ll,{profile:s?.profile??{email:r.user?.email??void 0},identifier:r.displayName,size:44}),(0,G.jsxs)(F,{gap:2,style:{minWidth:0,flex:1},children:[(0,G.jsx)(B,{fw:700,size:`sm`,truncate:!0,children:r.displayName}),r.user?.email&&(0,G.jsx)(B,{size:`xs`,c:`dimmed`,truncate:!0,children:r.user.email}),(0,G.jsx)(A,{gap:4,mt:4,children:m?(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`orange`,children:`Administrateur`}):r.roles.length>0?r.roles.slice(0,3).map(e=>(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`brand`,style:{textTransform:`none`},children:Ul(e)},e)):(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`gray`,children:`Utilisateur`})})]})]}),(0,G.jsx)(ut,{}),(0,G.jsxs)(F,{gap:0,py:4,children:[(0,G.jsx)(wi,{label:`Mon profil`,leftSection:(0,G.jsx)(uc,{size:16}),component:Uo,to:`/nodefony/profile`}),(0,G.jsx)(wi,{label:`Mes clés API`,leftSection:(0,G.jsx)(Is,{size:16}),component:Uo,to:`/nodefony/api-keys`}),(0,G.jsx)(wi,{label:`Mes sessions`,leftSection:(0,G.jsx)(Os,{size:16}),component:Uo,to:`/nodefony/sessions`}),(0,G.jsx)(wi,{label:`Ajouter une passkey`,leftSection:(0,G.jsx)(js,{size:16}),onClick:()=>void c()}),m&&(0,G.jsx)(wi,{label:`Réglages`,leftSection:(0,G.jsx)(n,{size:16}),component:Uo,to:`/nodefony/settings`})]}),(0,G.jsx)(ut,{}),(0,G.jsx)(T,{p:`xs`,children:(0,G.jsx)(st,{fullWidth:!0,size:`xs`,variant:`light`,color:`red`,leftSection:(0,G.jsx)(Hs,{size:14}),onClick:()=>void r.logout(),children:`Déconnexion`})})]})]})]})]})}),(0,G.jsxs)(oi.Navbar,{p:x?6:`xs`,style:{display:`flex`,flexDirection:`column`},children:[!x&&(0,G.jsx)(u,{size:`xs`,placeholder:`Filtrer la navigation…`,"aria-label":`Filtrer la navigation`,leftSection:(0,G.jsx)(Ae,{size:14}),value:d.navQuery,onChange:e=>d.setNavQuery(e.currentTarget.value),rightSection:d.navQuery?(0,G.jsx)(b,{size:`xs`,variant:`subtle`,color:`gray`,onClick:()=>d.setNavQuery(``),"aria-label":`Clear filter`,children:(0,G.jsx)(gc,{size:12})}):null,mb:`xs`}),(0,G.jsxs)(N,{style:{flex:1},type:`scroll`,children:[te.length>0&&!x?(0,G.jsxs)(T,{children:[(0,G.jsx)(A,{px:`sm`,mt:4,mb:4,gap:4,children:(0,G.jsx)(B,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:600,children:`Épinglés`})}),te.map(e=>(0,G.jsx)(Hl,{to:e.to,label:e.label,icon:e.icon,rail:x,active:O(e.to,e.exact),dimmed:e.wip,pinned:!0,onTogglePin:()=>d.togglePin(e.to),rightSection:e.wip?(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`gray`,children:`à venir`}):void 0},`pin-${e.to}`)),(0,G.jsx)(ut,{my:6})]}):null,Sl.map(e=>{if(e.roles&&!kt(e.roles,r.roles))return null;let t=e.items.filter(e=>kt(e.roles,r.roles)&&j(e)),n=w?t.filter(e=>e.label.toLowerCase().includes(C)):t;if(n.length===0)return null;let i=n.filter(e=>!e.wip);if(i.length===0)return null;let a=!w&&!x&&d.isGroupCollapsed(e.id,!1);return(0,G.jsxs)(T,{children:[x?(0,G.jsx)(ut,{my:6}):(0,G.jsx)(ue,{onClick:()=>!w&&d.toggleGroup(e.id,!1),style:{width:`100%`},"aria-expanded":!a,children:(0,G.jsxs)(A,{justify:`space-between`,px:`sm`,mt:`sm`,mb:4,gap:4,children:[(0,G.jsx)(A,{gap:6,wrap:`nowrap`,children:(0,G.jsx)(B,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:600,children:e.label})}),!w&&(0,G.jsx)(Pe,{size:13,style:{transform:a?`none`:`rotate(90deg)`,transition:`transform .15s ease`,opacity:.5}})]})}),(0,G.jsx)(Et,{expanded:!a,children:i.map(e=>(0,G.jsx)(Hl,{to:e.to,label:e.label,icon:e.icon,rail:x,active:O(e.to,e.exact),pinned:d.isPinned(e.to),onTogglePin:x?void 0:()=>d.togglePin(e.to)},e.to))})]},e.id)}),(()=>{let e=w?k.filter(e=>e.label.toLowerCase().includes(C)):k;if(e.length===0)return null;let t=!w&&!x&&d.isGroupCollapsed(`dataplane`,!0);return(0,G.jsxs)(T,{children:[x?(0,G.jsx)(ut,{my:6}):(0,G.jsx)(ue,{onClick:()=>!w&&d.toggleGroup(`dataplane`,!0),style:{width:`100%`},children:(0,G.jsxs)(A,{justify:`space-between`,px:`sm`,mt:`sm`,mb:4,gap:4,children:[(0,G.jsx)(B,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:600,children:`Data plane`}),!w&&(0,G.jsx)(Pe,{size:13,style:{transform:t?`none`:`rotate(90deg)`,transition:`transform .15s ease`,opacity:.5}})]})}),(0,G.jsx)(Et,{expanded:!t,children:e.map(e=>{let t=e.icon&&Cl[e.icon]||Pn,n=g.pathname===`/nodefony/system`&&D===e.namespace;return(0,G.jsx)(Hl,{to:`/nodefony/system?p=${e.namespace}`,label:e.label,icon:t,rail:x,active:n,rightSection:(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`gray`,children:e.endpoints.length})},e.namespace)})})]})})()]})]}),(0,G.jsx)(oi.Main,{style:{paddingTop:0,marginTop:`var(--app-shell-header-height, 56px)`,height:`calc(100dvh - var(--app-shell-header-height, 56px))`,minHeight:0,overflowY:`auto`,paddingBottom:`calc(var(--mantine-spacing-md) + var(--nodefony-debugbar-height, 0px))`},children:(0,G.jsx)(yc,{variant:`page`,children:(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(Ie,{h:`60vh`,children:(0,G.jsx)(E,{})}),children:(0,G.jsx)(no,{})})},g.pathname)}),(0,G.jsx)(xl,{})]})});function Gl(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}var Kl=typeof window<`u`?W.useLayoutEffect:W.useEffect;function ql(e,t){Kl(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function Jl(e,t){e&&Gl(e),ql(`mantine-form:${e}:set-field-value`,e=>t.setFieldValue(e.detail.path,e.detail.value)),ql(`mantine-form:${e}:set-values`,e=>t.setValues(e.detail)),ql(`mantine-form:${e}:set-initial-values`,e=>t.setInitialValues(e.detail)),ql(`mantine-form:${e}:set-errors`,e=>t.setErrors(e.detail)),ql(`mantine-form:${e}:set-field-error`,e=>t.setFieldError(e.detail.path,e.detail.error)),ql(`mantine-form:${e}:clear-field-error`,e=>t.clearFieldError(e.detail)),ql(`mantine-form:${e}:clear-errors`,t.clearErrors),ql(`mantine-form:${e}:reset`,t.reset),ql(`mantine-form:${e}:validate`,t.validate),ql(`mantine-form:${e}:validate-field`,e=>t.validateField(e.detail)),ql(`mantine-form:${e}:reorder-list-item`,e=>t.reorderListItem(e.detail.path,e.detail.payload)),ql(`mantine-form:${e}:remove-list-item`,e=>t.removeListItem(e.detail.path,e.detail.index)),ql(`mantine-form:${e}:insert-list-item`,e=>t.insertListItem(e.detail.path,e.detail.item,e.detail.index)),ql(`mantine-form:${e}:set-dirty`,e=>t.setDirty(e.detail)),ql(`mantine-form:${e}:set-touched`,e=>t.setTouched(e.detail)),ql(`mantine-form:${e}:reset-dirty`,e=>t.resetDirty(e.detail)),ql(`mantine-form:${e}:reset-touched`,t.resetTouched)}function Yl(e){return typeof e!=`object`||!e?{}:Object.keys(e).reduce((t,n)=>{let r=e[n];return r!=null&&r!==!1&&(t[n]=r),t},{})}function Xl(e){return typeof e==`string`?e.split(`.`):[]}function Zl(e,t){let n=Xl(e);if(n.length===0||typeof t!=`object`||!t)return;let r=t[n[0]];for(let e=1;e<n.length&&r!=null;e+=1)r=r[n[e]];return r}var Ql=Symbol(`root-rule`);function $l(e){let t=Yl(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function eu(e,t,n,r,i=``,a={}){if(typeof e!=`object`||!e)return a;let o=[],s=[];for(let c of Object.keys(e)){let l=e[c],u=`${i===``?``:`${i}.`}${c}`,d=Zl(u,t),f=!1;if(typeof l==`function`){let e=l(d,t,u,r);e instanceof Promise?o.push({rulePath:u,promise:e}):a[u]=e}if(typeof l==`object`&&Array.isArray(d)){f=!0;for(let e=0;e<d.length;e++){let i=eu(l,t,n,r,`${u}.${e}`,a);i instanceof Promise&&s.push(i)}if(Ql in l){let e=l[Ql](d,t,u,r);e instanceof Promise?o.push({rulePath:u,promise:e}):a[u]=e}}if(typeof l==`object`&&typeof d==`object`&&d){if(!f){let e=eu(l,t,n,r,u,a);e instanceof Promise&&s.push(e)}if(Ql in l){let e=l[Ql](d,t,u,r);e instanceof Promise?o.push({rulePath:u,promise:e}):a[u]=e}}}return o.length===0&&s.length===0?a:(async()=>(await Promise.all(s),o.length>0&&(await Promise.allSettled(o.map(e=>e.promise))).forEach((e,t)=>{let{rulePath:r}=o[t];a[r]=e.status===`fulfilled`?e.value:n(e.reason)}),a))()}var tu=e=>e instanceof Error?e.message:String(e);function J(e,t,n=tu,r=new AbortController().signal){if(typeof e==`function`){let n=e(t);return n instanceof Promise?n.then($l):$l(n)}let i=eu(e,t,n,r);return i instanceof Promise?i.then($l):$l(i)}var nu=`__MANTINE_FORM_INDEX__`;function ru(e){return t=>{if(!t)e(t);else if(typeof t==`function`)e(t);else if(typeof t==`object`&&`nativeEvent`in t){let{currentTarget:n}=t;n instanceof HTMLInputElement?n.type===`checkbox`?e(n.checked):e(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&e(n.value)}else e(t)}}function iu(e){let[t,n]=(0,W.useState)(Yl(e)),r=(0,W.useRef)(t),i=(0,W.useCallback)(e=>{n(t=>{let n=Yl(typeof e==`function`?e(t):e);return r.current=n,n})},[]),a=(0,W.useCallback)(()=>i({}),[]),o=(0,W.useCallback)(e=>{r.current[e]!==void 0&&i(t=>{let n={...t};return delete n[e],n})},[t]);return{errorsState:t,setErrors:i,clearErrors:a,setFieldError:(0,W.useCallback)((e,t)=>{t==null||t===!1?o(e):r.current[e]!==t&&i(n=>({...n,[e]:t}))},[t]),clearFieldError:o}}function au(e,t){return e?`${e}-${t.toString()}`:t.toString()}function ou(e,t){if(typeof t!=`object`||!t)return{};let n={...t};return Object.keys(t).forEach(t=>{t.includes(`${String(e)}.`)&&delete n[t]}),n}function su(e,t){let n=e.substring(t.length+1).split(`.`)[0];return parseInt(n,10)}function cu(e,t,n,r){if(t===void 0)return n;let i=`${String(e)}`,a=n;r===-1&&(a=ou(`${i}.${t}`,a),delete a[`${i}.${t}`]);let o={...a},s=new Set;return Object.entries(a).filter(([e])=>{if(!e.startsWith(`${i}.`))return!1;let n=su(e,i);return!Number.isNaN(n)&&n>=t}).forEach(([e,t])=>{let n=su(e,i),a=e.replace(`${i}.${n}`,`${i}.${n+r}`);o[a]=t,s.add(a),s.has(e)||delete o[e]}),o}function lu(e,{from:t,to:n},r){let i=`${e}.${t}`,a=`${e}.${n}`,o={...r},s=new Set;return Object.keys(r).forEach(e=>{if(s.has(e))return;let t,n;if(e.startsWith(i)?(t=e,n=e.replace(i,a)):e.startsWith(a)&&(t=e.replace(a,i),n=e),t&&n){let e=o[t],r=o[n];r===void 0?delete o[t]:o[t]=r,e===void 0?delete o[n]:o[n]=e,s.add(t),s.add(n)}}),o}function uu(e,t,n){typeof n.value==`object`&&(n.value=du(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t===`__proto__`?Object.defineProperty(e,t,n):e[t]=n.value}function du(e){if(typeof e!=`object`)return e;var t=0,n,r,i,a=Object.prototype.toString.call(e);if(a===`[object Object]`?i=Object.create(e.__proto__||null):a===`[object Array]`?i=Array(e.length):a===`[object Set]`?(i=new Set,e.forEach(function(e){i.add(du(e))})):a===`[object Map]`?(i=new Map,e.forEach(function(e,t){i.set(du(t),du(e))})):a===`[object Date]`?i=new Date(+e):a===`[object RegExp]`?i=new RegExp(e.source,e.flags):a===`[object DataView]`?i=new e.constructor(du(e.buffer)):a===`[object ArrayBuffer]`?i=e.slice(0):a.slice(-6)===`Array]`&&(i=new e.constructor(e)),i){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)uu(i,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(i,n=r[t])&&i[n]===e[n]||uu(i,n,Object.getOwnPropertyDescriptor(e,n))}return i||e}function fu(e,t,n){let r=Xl(e);if(r.length===0)return n;let i=du(n);if(r.length===1)return i[r[0]]=t,i;let a=i[r[0]];for(let e=1;e<r.length-1;e+=1){if(a===void 0)return i;a=a[r[e]]}return a[r[r.length-1]]=t,i}function pu(e,{from:t,to:n},r){let i=Zl(e,r);if(!Array.isArray(i))return r;let a=[...i],o=i[t];return a.splice(t,1),a.splice(n,0,o),fu(e,a,r)}function mu(e,t,n,r){let i=Zl(e,r);if(!Array.isArray(i))return r;let a=[...i];return a.splice(typeof n==`number`?n:a.length,0,t),fu(e,a,r)}function hu(e,t,n){let r=Zl(e,n);return Array.isArray(r)?fu(e,r.filter((e,n)=>n!==t),n):n}function gu(e,t,n,r){let i=Zl(e,r);if(!Array.isArray(i)||i.length<=n)return r;let a=[...i];return a[n]=t,fu(e,a,r)}function _u({$values:e,$errors:t,$status:n,$watch:r}){return{reorderListItem:(0,W.useCallback)((i,a)=>{let o=e.refValues.current;n.clearFieldDirty(i),t.setErrors(e=>lu(i,a,e)),e.setValues({values:pu(i,a,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(o)},[]),removeListItem:(0,W.useCallback)((i,a)=>{let o=e.refValues.current;n.clearFieldDirty(i),t.setErrors(e=>cu(i,a,e,-1)),e.setValues({values:hu(i,a,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(o)},[]),insertListItem:(0,W.useCallback)((i,a,o)=>{let s=e.refValues.current;n.clearFieldDirty(i),t.setErrors(e=>cu(i,o,e,1)),e.setValues({values:mu(i,a,o,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(s)},[]),replaceListItem:(0,W.useCallback)((t,i,a)=>{let o=e.refValues.current;n.clearFieldDirty(t),e.setValues({values:gu(t,a,i,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(o)},[])}}function vu(e,t){let n=Object.keys(e);if(typeof t==`string`){let r=n.filter(e=>e.startsWith(`${t}.`));return e[t]||r.some(t=>e[t])||!1}return n.some(t=>e[t])}var yu=t(e(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))(),1);function bu({initialDirty:e,initialTouched:t,mode:n,$values:r}){let[i,a]=(0,W.useState)(t),[o,s]=(0,W.useState)(e),c=(0,W.useRef)(t),l=(0,W.useRef)(e),u=(0,W.useCallback)(e=>{let t=typeof e==`function`?e(c.current):e;c.current=t,n===`controlled`&&a(t)},[]),d=(0,W.useCallback)((e,t=!1)=>{let r=typeof e==`function`?e(l.current):e;l.current=r,(n===`controlled`||t)&&s(r)},[]),f=(0,W.useCallback)(()=>u({}),[]),p=(0,W.useCallback)(e=>{let t=e?{...r.refValues.current,...e}:r.refValues.current;r.setValuesSnapshot(t),d({})},[]),m=(0,W.useCallback)((e,t)=>{u(n=>vu(n,e)===t?n:{...n,[e]:t})},[]),h=(0,W.useCallback)((e,t,n)=>{d(n=>vu(n,e)===t?n:{...n,[e]:t},n)},[]),g=(0,W.useCallback)((e,t)=>{let n=vu(l.current,e),i=!(0,yu.default)(Zl(e,r.getValuesSnapshot()),t),a=ou(e,l.current);a[e]=i,d(a,n!==i)},[]);return{touchedState:i,dirtyState:o,touchedRef:c,dirtyRef:l,setTouched:u,setDirty:d,resetDirty:p,resetTouched:f,isTouched:(0,W.useCallback)(e=>vu(c.current,e),[c.current]),setFieldTouched:m,setFieldDirty:h,setTouchedState:a,setDirtyState:s,clearFieldDirty:(0,W.useCallback)(e=>d(t=>{if(typeof e!=`string`)return t;let n=ou(e,t);return delete n[e],(0,yu.default)(n,t)?t:n}),[]),isDirty:(0,W.useCallback)(e=>{if(e){let t=Zl(e,l.current);if(typeof t==`boolean`)return t;let n=Zl(e,r.refValues.current),i=Zl(e,r.valuesSnapshot.current);return!(0,yu.default)(n,i)}return Object.keys(l.current).length>0?vu(l.current):!(0,yu.default)(r.refValues.current,r.valuesSnapshot.current)},[l.current,r.refValues.current,r.valuesSnapshot.current]),getDirty:(0,W.useCallback)(()=>l.current,[l.current]),getTouched:(0,W.useCallback)(()=>c.current,[c.current]),setCalculatedFieldDirty:g}}function xu(){let[e,t]=(0,W.useState)({}),[n,r]=(0,W.useState)(!1),i=(0,W.useRef)({}),a=(0,W.useRef)(!1),o=(0,W.useRef)({}),s=(0,W.useCallback)((e,n)=>{i.current={...i.current,[e]:n},t({...i.current})},[]),c=(0,W.useCallback)(e=>{a.current=e,r(e)},[]),l=(0,W.useCallback)(e=>e?!!i.current[e]:a.current?!0:Object.values(i.current).some(Boolean),[i.current,a.current]),u=(0,W.useCallback)(e=>(o.current[e]?.abort(),o.current[e]=new AbortController,o.current[e].signal),[]),d=(0,W.useCallback)(()=>{i.current={},t({}),a.current=!1,r(!1),Object.values(o.current).forEach(e=>e.abort()),o.current={}},[]);return{validating:n||Object.values(e).some(Boolean),isValidating:l,setFieldValidating:s,setFormValidating:c,getAbortSignal:u,clearValidating:d}}function Su({initialValues:e,onValuesChange:t,mode:n}){let r=(0,W.useRef)(!1),[i,a]=(0,W.useState)(e||{}),o=(0,W.useRef)(i),s=(0,W.useRef)(i),c=(0,W.useCallback)(({values:e,subscribers:r,updateState:i=!0,mergeWithPreviousValues:s=!0})=>{let c=o.current,l=e instanceof Function?e(o.current):e,u=s?{...c,...l}:l;o.current=u,i&&(a(u),n===`uncontrolled`&&(o.current=u)),t?.(u,c),r?.filter(Boolean).forEach(e=>e({updatedValues:u,previousValues:c}))},[t]),l=(0,W.useCallback)(e=>{let t=Zl(e.path,o.current),n=e.value instanceof Function?e.value(t):e.value;if(t!==n){let t=o.current,r=fu(e.path,n,o.current);c({values:r,updateState:e.updateState}),e.subscribers?.filter(Boolean).forEach(n=>n({path:e.path,updatedValues:r,previousValues:t}))}},[c]),u=(0,W.useCallback)(e=>{s.current=e},[]),d=(0,W.useCallback)((e,t)=>{r.current||(r.current=!0,c({values:e,updateState:n===`controlled`}),u(e),t())},[c]);return{initialized:r,stateValues:i,refValues:o,valuesSnapshot:s,setValues:c,setFieldValue:l,resetValues:(0,W.useCallback)(()=>{c({values:s.current,updateState:!0,mergeWithPreviousValues:!1})},[c]),setValuesSnapshot:u,initialize:d,getValues:(0,W.useCallback)(()=>o.current,[o.current]),getValuesSnapshot:(0,W.useCallback)(()=>s.current,[s.current]),resetField:(0,W.useCallback)((e,t)=>{let r=Zl(e,s.current);r!==void 0&&l({path:e,value:r,updateState:n===`controlled`,subscribers:t})},[l,n])}}function Cu({$values:e,$status:t,cascadeUpdates:n}){let r=(0,W.useRef)({});return{subscribers:r,watch:(0,W.useCallback)((e,t)=>{(0,W.useEffect)(()=>(r.current[e]=r.current[e]||[],r.current[e].push(t),()=>{r.current[e]=r.current[e].filter(e=>e!==t)}),[t])},[]),useWatchValue:(0,W.useCallback)(t=>{let n=(0,W.useCallback)(e=>{let n=r.current,i=String(t),a=()=>e();return n[i]=n[i]||[],n[i].push(a),()=>{n[i]=n[i].filter(e=>e!==a)}},[t]),i=(0,W.useCallback)(()=>Zl(t,e.refValues.current),[t]);return(0,W.useSyncExternalStore)(n,i,i)},[]),getFieldSubscribers:(0,W.useCallback)(e=>{let i=r.current[e]?.map(n=>r=>n({previousValue:Zl(e,r.previousValues),value:Zl(e,r.updatedValues),touched:t.isTouched(e),dirty:t.isDirty(e)}))??[];for(let a in r.current){let o=String(e).startsWith(`${a}.`),s=String(a).startsWith(`${e}.`);(o||n&&s)&&i.push(...r.current[a].map(e=>n=>e({previousValue:Zl(a,n.previousValues),value:Zl(a,n.updatedValues),touched:t.isTouched(a),dirty:t.isDirty(a)})))}return i},[]),notifyWatchSubscribers:(0,W.useCallback)(n=>{Object.keys(r.current).forEach(i=>{Zl(i,e.refValues.current)!==Zl(i,n)&&r.current[i]?.forEach(r=>r({previousValue:Zl(i,n),value:Zl(i,e.refValues.current),touched:t.isTouched(i),dirty:t.isDirty(i)}))})},[])}}function wu(e,t){if(!t)return null;let n=e.split(`.`),r=t;for(let e=0;e<n.length;e++){let t=n[e];if(!/^\d+$/.test(t)){if(typeof r!=`object`||!r)return null;r=r[t]}}return typeof r==`function`?r:null}var Tu=e=>e instanceof Error?e.message:String(e);function Eu(e,t){let n=Object.keys(t).find(t=>e.split(`.`).every((e,n)=>e===t.split(`.`)[n]));return{hasError:!!n,error:n?t[n]:null}}function Du(e,t,n,r=Tu,i=new AbortController().signal){if(typeof e!=`string`)return{hasError:!1,error:null};if(typeof t==`function`){let a=J(t,n,r,i);return a instanceof Promise?a.then(t=>Eu(e,t.errors)):Eu(e,a.errors)}let a=wu(e,t);if(a){let t=Zl(e,n);try{let o=a(t,n,e,i);return o instanceof Promise?o.then(e=>e?{hasError:!0,error:e}:{hasError:!1,error:null},e=>({hasError:!0,error:r(e)})):o?{hasError:!0,error:o}:{hasError:!1,error:null}}catch(e){return{hasError:!0,error:r(e)}}}let o=J(t,n,r,i);return o instanceof Promise?o.then(t=>Eu(e,t.errors)):Eu(e,o.errors)}function Ou(e,t){return t?typeof t==`boolean`?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]+/g,`.${nu}`)):!1:!1}var ku=e=>e instanceof Error?e.message:String(e);function Au({name:e,mode:t=`controlled`,initialValues:n,initialErrors:r={},initialDirty:i={},initialTouched:a={},clearInputErrorOnChange:o=!0,validateInputOnChange:s=!1,validateInputOnBlur:c=!1,onValuesChange:l,transformValues:u=(e=>e),enhanceGetInputProps:d,validate:f,onSubmitPreventDefault:p=`always`,touchTrigger:m=`change`,cascadeUpdates:h=!1,validateDebounce:g=0,resolveValidationError:_=ku}={}){let v=iu(r),y=Su({initialValues:n,onValuesChange:l,mode:t}),b=bu({initialDirty:i,initialTouched:a,$values:y,mode:t}),x=Cu({$values:y,$status:b,cascadeUpdates:h}),S=_u({$values:y,$errors:v,$status:b,$watch:x}),C=xu(),[w,T]=(0,W.useState)(0),[E,D]=(0,W.useState)({}),[O,k]=(0,W.useState)(!1),A=(0,W.useRef)(0),j=(0,W.useRef)({});(0,W.useEffect)(()=>()=>{Object.values(j.current).forEach(clearTimeout)},[]);let ee=(0,W.useCallback)(()=>{let e=y.refValues.current;y.resetValues(),v.clearErrors(),b.resetDirty(),b.resetTouched(),C.clearValidating(),t===`uncontrolled`&&T(e=>e+1),x.notifyWatchSubscribers(e)},[]),te=(0,W.useCallback)(e=>{o&&v.clearErrors(),t===`uncontrolled`&&T(e=>e+1),x.notifyWatchSubscribers(e)},[o]),ne=(0,W.useCallback)(e=>{let n=y.refValues.current;y.initialize(e,()=>t===`uncontrolled`&&T(e=>e+1)),te(n)},[te]),re=(0,W.useMemo)(()=>{let e=e=>{let t=C.getAbortSignal(e),n=Du(e,f,y.refValues.current,_,t),r=n=>{t.aborted||(n.hasError?v.setFieldError(e,n.error):v.clearFieldError(e))};n instanceof Promise?(C.setFieldValidating(e,!0),n.then(r).finally(()=>{t.aborted||C.setFieldValidating(e,!1)})):r(n)};return t=>{clearTimeout(j.current[t]),g>0?j.current[t]=setTimeout(()=>e(t),g):e(t)}},[g,f,_]),ie=(0,W.useCallback)((e,n,r)=>{let i=Ou(e,s),a=n instanceof Function?n(Zl(e,y.refValues.current)):n;b.setCalculatedFieldDirty(e,a),m===`change`&&b.setFieldTouched(e,!0),!i&&o&&v.clearFieldError(e),y.setFieldValue({path:e,value:n,updateState:t===`controlled`,subscribers:[...x.getFieldSubscribers(e),i?()=>re(String(e)):null,r?.forceUpdate!==!1&&t!==`controlled`?()=>D(t=>({...t,[e]:(t[e]||0)+1})):null]})},[l,f,re]),M=(0,W.useCallback)(e=>{let n=y.refValues.current;y.setValues({values:e,updateState:t===`controlled`}),te(n)},[l,te]),ae=(0,W.useCallback)(()=>{let e=++A.current,t=C.getAbortSignal(`__form__`),n=t=>e===A.current?(v.setErrors(t.errors),t):{hasErrors:!1,errors:{}},r=()=>{e===A.current&&C.setFormValidating(!1)},i=J(f,y.refValues.current,_,t);return i instanceof Promise?(C.setFormValidating(!0),i.then(n).finally(r)):n(i)},[f,_]),oe=(0,W.useCallback)(e=>{let t=C.getAbortSignal(String(e)),n=n=>t.aborted?{hasError:!1,error:null}:(n.hasError?v.setFieldError(e,n.error):v.clearFieldError(e),n),r=()=>{t.aborted||C.setFieldValidating(String(e),!1)},i=Du(e,f,y.refValues.current,_,t);return i instanceof Promise?(C.setFieldValidating(String(e),!0),i.then(n).finally(r)):n(i)},[f,_]),se=(n,{type:r=`input`,withError:i=!0,withFocus:a,...o}={})=>{let s=a??r!==`radio`,l={onChange:ru(e=>ie(n,e,{forceUpdate:!1})),"data-path":au(e,n)};return i&&(l.error=v.errorsState[n]),r===`checkbox`?l[t===`controlled`?`checked`:`defaultChecked`]=Zl(n,y.refValues.current):r===`radio`?(l[t===`controlled`?`checked`:`defaultChecked`]=Zl(n,y.refValues.current)===o.value,l.value=o.value):l[t===`controlled`?`value`:`defaultValue`]=Zl(n,y.refValues.current),s&&(l.onFocus=()=>b.setFieldTouched(n,!0),l.onBlur=()=>{Ou(n,c)&&re(String(n))}),Object.assign(l,d?.({inputProps:l,field:n,options:{type:r,withError:i,withFocus:s,...o},form:N}))},ce=(e,t)=>n=>{p===`always`&&n?.preventDefault(),k(!0);let r=r=>{if(r.hasErrors)p===`validation-failed`&&n?.preventDefault(),t?.(r.errors,y.refValues.current,n),k(!1);else{let t=e?.(u(y.refValues.current),n);t instanceof Promise?t.finally(()=>k(!1)):k(!1)}},i=ae();i instanceof Promise?i.then(r).catch(()=>{k(!1)}):r(i)},le=e=>u(e||y.refValues.current),ue=(0,W.useCallback)(e=>{e.preventDefault(),ee()},[]),de=(0,W.useCallback)(e=>{let t=new AbortController().signal;if(e){let n=Du(e,f,y.refValues.current,_,t);return n instanceof Promise?n.then(e=>!e.hasError):!n.hasError}let n=J(f,y.refValues.current,_,t);return n instanceof Promise?n.then(e=>!e.hasErrors):!n.hasErrors},[f,_,y.refValues.current]),fe=e=>`${w}-${String(e)}-${E[String(e)]||0}`,pe=t=>document.querySelector(`[data-path="${au(e,t)}"]`),me=(0,W.useCallback)(e=>{y.resetField(e,[...x.getFieldSubscribers(e),t===`controlled`?null:()=>D(t=>({...t,[e]:(t[e]||0)+1}))])},[y.resetField,t,D]),N={watch:x.watch,useWatchValue:x.useWatchValue,initialized:y.initialized.current,values:t===`uncontrolled`?y.refValues.current:y.stateValues,getValues:y.getValues,getInitialValues:y.getValuesSnapshot,setInitialValues:y.setValuesSnapshot,resetField:me,initialize:ne,setValues:M,setFieldValue:ie,submitting:O,setSubmitting:k,validating:C.validating,isValidating:C.isValidating,errors:v.errorsState,setErrors:v.setErrors,setFieldError:v.setFieldError,clearFieldError:v.clearFieldError,clearErrors:v.clearErrors,resetDirty:b.resetDirty,setTouched:b.setTouched,setDirty:b.setDirty,isTouched:b.isTouched,resetTouched:b.resetTouched,isDirty:b.isDirty,getTouched:b.getTouched,getDirty:b.getDirty,reorderListItem:S.reorderListItem,insertListItem:S.insertListItem,removeListItem:S.removeListItem,replaceListItem:S.replaceListItem,reset:ee,validate:ae,validateField:oe,getInputProps:se,onSubmit:ce,onReset:ue,isValid:de,getTransformedValues:le,key:fe,getInputNode:pe};return Jl(e,N),N}var ju={position:`relative`,flex:1.05,overflow:`hidden`,background:`linear-gradient(140deg, var(--mantine-color-brand-9) 0%, var(--mantine-color-brand-8) 45%, var(--mantine-color-brand-6) 100%)`,color:`#fff`},Mu={position:`absolute`,inset:0,background:`radial-gradient(circle at 26% 16%, rgba(255,255,255,0.16), transparent 46%), radial-gradient(circle at 88% 92%, rgba(255,255,255,0.08), transparent 42%)`,pointerEvents:`none`},Nu={background:`rgba(255,255,255,0.14)`,color:`#fff`,border:`1px solid rgba(255,255,255,0.18)`},Pu={background:`var(--mantine-color-body)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`safe center`,paddingInline:`var(--mantine-spacing-xl)`,paddingBlock:`var(--mantine-spacing-xl)`,overflowY:`auto`},Fu=[{icon:oe,title:`Temps réel natif`,desc:`HTTP et WebSocket, co-citoyens dans le même contexte.`},{icon:ds,title:`Observabilité totale`,desc:`Métriques, logs et traces — en direct.`},{icon:ac,title:`Zero Trust`,desc:`Sécurité par défaut, vos données protégées.`}];function Iu({children:e}){return(0,G.jsxs)(Ir,{mih:`100vh`,align:`stretch`,children:[(0,G.jsxs)(T,{visibleFrom:`md`,style:ju,children:[(0,G.jsx)(T,{style:Mu,"aria-hidden":!0}),(0,G.jsxs)(Ir,{direction:`column`,justify:`space-between`,h:`100%`,p:48,style:{position:`relative`},children:[(0,G.jsxs)(A,{gap:14,align:`center`,children:[(0,G.jsx)(pl,{height:42}),(0,G.jsx)(B,{fw:700,fz:26,c:`white`,lh:1,children:`Nodefony Studio`})]}),(0,G.jsxs)(F,{gap:`xl`,maw:480,children:[(0,G.jsxs)(F,{gap:`sm`,children:[(0,G.jsx)(B,{fz:{base:34,lg:42},fw:800,lh:1.12,c:`white`,children:`Le temps réel, nativement.`}),(0,G.jsx)(B,{fz:`lg`,c:`rgba(255,255,255,0.82)`,children:`Observez, comprenez et contrôlez chaque sous-système de Nodefony — en direct.`})]}),(0,G.jsx)(F,{gap:`lg`,children:Fu.map(e=>(0,G.jsxs)(A,{gap:`md`,wrap:`nowrap`,align:`flex-start`,children:[(0,G.jsx)(wt,{size:42,radius:`md`,style:Nu,children:(0,G.jsx)(e.icon,{size:22,stroke:1.7})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(B,{fw:600,c:`white`,children:e.title}),(0,G.jsx)(B,{size:`sm`,c:`rgba(255,255,255,0.78)`,children:e.desc})]})]},e.title))})]}),(0,G.jsxs)(A,{justify:`space-between`,children:[(0,G.jsx)(B,{size:`xs`,c:`rgba(255,255,255,0.65)`,children:`Nodefony 10 · licence Apache 2.0`}),(0,G.jsx)(mt,{href:`https://github.com/nodefony/nodefony-core`,target:`_blank`,rel:`noreferrer noopener`,c:`rgba(255,255,255,0.7)`,children:(0,G.jsxs)(A,{gap:6,children:[(0,G.jsx)(Ce,{size:16}),(0,G.jsx)(B,{size:`xs`,children:`GitHub`})]})})]})]})]}),(0,G.jsx)(T,{flex:1,style:Pu,children:(0,G.jsxs)(F,{gap:`xl`,w:`100%`,maw:400,children:[(0,G.jsxs)(A,{gap:8,hiddenFrom:`md`,justify:`center`,children:[(0,G.jsx)(pl,{height:30}),(0,G.jsx)(B,{fw:700,size:`lg`,c:`brand`,children:`Nodefony Studio`})]}),e]})})]})}var Lu=`/nodefony/security/api/totp/enroll`,Ru=`/nodefony/security/api/totp/confirm`,zu=`/nodefony/security/api/totp/disable`,Bu=`/nodefony/security/api/totp/status`,Vu=/^\d{6}$/;function Hu(e){let t=e.trim();return t.length===0?`Saisissez le code de votre application.`:Vu.test(t)||/^[A-Za-z0-9]{5}-?[A-Za-z0-9]{5}$/.test(t)?null:`Code à 6 chiffres, ou code de récupération XXXXX-XXXXX.`}function Uu(e){switch(e.status??e.code){case 400:return`Code invalide ou expiré. Réessayez avec le code courant.`;case 401:return`Session expirée — reconnectez-vous.`;case 403:return`Action non autorisée.`;case 503:return`2FA indisponible sur ce serveur.`;case 404:return`Service 2FA introuvable.`;case void 0:default:return e instanceof Error?e.message:`Erreur inattendue.`}}var Wu=30,Gu={ping:`Vérification du serveur…`,auth:`Authentification…`,user:`Chargement du profil…`,realtime:`Connexion temps réel…`,done:`Prêt`},Ku={google:{label:`Google`,Icon:hs},github:{label:`GitHub`,Icon:Ce}};function qu(e){return Ku[e]?.Icon??ac}function Ju(e){return e!==``&&e!==`password`&&e!==`passkey`}function Yu(e){try{localStorage.setItem(Wt,e)}catch{}window.location.assign(`/nodefony/security/api/oauth2/${e}/authorize`)}function Xu(){try{return localStorage.getItem(`nf.studio.lastUser`)??``}catch{return``}}function Y(){try{return localStorage.getItem(`nf.studio.lastMethod`)??``}catch{return``}}function Zu(e,t){if(Ju(e)){let n=t.find(t=>t.name===e)?.label??Ku[e]?.label??e;return{Icon:qu(e),label:`via ${n}`}}return e===`passkey`?{Icon:js,label:`Passkey`}:{Icon:uc,label:`Compte`}}function X(e){let t=e?.body;if(t&&typeof t==`object`){let e=t,n=e.retryAfter??e.error?.retryAfter;if(typeof n==`number`&&n>0)return Math.ceil(n)}return null}function Z(e,t){let n=e?.status;return n===429?{kind:`throttle`,message:``,retryAfter:X(e)??Wu}:n===void 0?{kind:`network`,message:`Impossible de joindre le serveur. Vérifiez votre connexion réseau.`}:n>=500?{kind:`server`,message:`Le serveur a rencontré une erreur. Réessayez dans un instant.`}:t===`auth`&&(n===401||n===403)?{kind:`credentials`,message:`Identifiant ou mot de passe incorrect.`}:{kind:`unknown`,message:e instanceof Error&&e.message?e.message:`Une erreur est survenue. Réessayez.`}}function Q({social:e,onSocial:t,onPasskey:n,busy:r,disabled:i,exclude:a}){let o=e.filter(e=>e.name!==a);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ut,{label:`ou`,labelPosition:`center`,my:4}),o.map(({name:e,label:n})=>{let a=qu(e);return(0,G.jsxs)(st,{size:`md`,fullWidth:!0,variant:`default`,onClick:()=>t(e),disabled:i||r,leftSection:(0,G.jsx)(a,{size:18}),children:[`Continuer avec `,n]},e)}),a!==`passkey`&&(0,G.jsx)(st,{size:`md`,fullWidth:!0,variant:`default`,onClick:n,loading:r,disabled:i,leftSection:(0,G.jsx)(js,{size:18}),children:`Passkey / empreinte digitale`}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,ta:`center`,children:o.length>0?`Connexion via un fournisseur externe (OAuth 2.0) ou sans mot de passe (WebAuthn / FIDO2).`:`Connexion sans mot de passe (WebAuthn / FIDO2) — biométrie ou clé de sécurité.`})]})}var Qu=ar(()=>{let e=yn(),t=Tn(),n=H(),r=Nt(),i=Ft(),a=(0,W.useMemo)(Xu,[]),o=(0,W.useMemo)(Y,[]),s=a||``,[c,l]=(0,W.useState)(a?`password`:`identifier`),[d,f]=(0,W.useState)(s),[p,m]=(0,W.useState)(!1),[h,_]=(0,W.useState)(!1),[v,y]=(0,W.useState)(``),[b,x]=(0,W.useState)(!1),[S,C]=(0,W.useState)(`ping`),[w,E]=(0,W.useState)(!1),[D,O]=(0,W.useState)(null),[k,j]=(0,W.useState)(null),[ee,te]=(0,W.useState)(null),[,ne]=(0,W.useState)(0);(0,W.useEffect)(()=>{if(ee===null)return;let e=window.setInterval(()=>{Date.now()>=ee?te(null):ne(e=>e+1)},500);return()=>window.clearInterval(e)},[ee]);let re=ee?Math.max(0,Math.ceil((ee-Date.now())/1e3)):0,M=re>0,[ae,oe]=(0,W.useState)(null);(0,W.useEffect)(()=>{let e=!0;return i.api.get(`/health`).then(()=>e&&oe(!0)).catch(()=>e&&oe(!1)),()=>{e=!1}},[i]);let[se,le]=(0,W.useState)([]);(0,W.useEffect)(()=>{let e=!0;return i.api.getAbsolute(`/nodefony/security/api/oauth2/providers`).then(t=>{if(!e)return;let n=Array.isArray(t?.providers)?t.providers:[];le(n.filter(e=>typeof e?.name==`string`&&e.name!==``))}).catch(()=>{}),()=>{e=!1}},[i]),(0,W.useEffect)(()=>{new URLSearchParams(t.search).get(`error`)===`oauth`&&(j(`credentials`),O(`La connexion via le fournisseur externe a échoué. Réessayez.`))},[t.search]);let ue=(0,W.useRef)(null),de=(0,W.useRef)(null),fe=Au({initialValues:{password:``}});(0,W.useEffect)(()=>{w||(c===`identifier`?ue.current?.focus():de.current?.focus())},[c,w]);let me=()=>{D&&O(null),k&&j(null)},N=()=>{let e=d.trim();if(!e){j(`unknown`),O(`Identifiant requis.`),ue.current?.focus();return}try{localStorage.setItem(Pt,e)}catch{}me(),l(`password`)},P=()=>{me(),fe.reset(),m(!0),l(`identifier`)},he=async()=>{C(`user`),await new Promise(e=>setTimeout(e,150)),C(`realtime`),await r.connect(),C(`done`);let i=t.state?.from;e(i&&i!==`/nodefony`&&i!==`/nodefony/login`?i:n.homePath,{replace:!0})},ge=(e,t)=>{let n=Z(e,t);n.kind===`throttle`?(te(Date.now()+(n.retryAfter??Wu)*1e3),j(`throttle`),O(null)):(j(n.kind),O(n.message))},_e=async e=>{E(!0),me();let t=`ping`;try{if(t=`ping`,C(`ping`),await i.api.get(`/health`),t=`auth`,C(`auth`),await n.login({username:d.trim(),password:e})===`mfa_required`){y(``),x(!1),l(`totp`);return}t=`user`,await he()}catch(e){ge(e,t)}finally{E(!1)}},I=async e=>{if(!(w||M)){E(!0),me();try{C(`auth`),await n.completeMfa(e),await he()}catch(e){e?.status===429?ge(e,`auth`):(j(`credentials`),O(`Code incorrect ou expiré. Réessayez avec le code courant.`),y(``))}finally{E(!1)}}},L=async()=>{if(!(w||M)){E(!0),me();try{C(`auth`),await n.loginWithPasskey(),C(`realtime`),await r.connect(),C(`done`);let i=t.state?.from;e(i&&i!==`/nodefony`&&i!==`/nodefony/login`?i:n.homePath,{replace:!0})}catch(e){if(e instanceof Error&&(e.name===`NotAllowedError`||e.name===`AbortError`))return;if(e instanceof Error&&e.name===`SecurityError`){j(`unknown`),O(`Passkey indisponible sur cette adresse. Ouvre Studio via https://localhost:5152 — les passkeys n'acceptent pas une IP comme 127.0.0.1.`);return}let t=Z(e,`auth`);t.kind===`throttle`?(te(Date.now()+(t.retryAfter??Wu)*1e3),j(`throttle`),O(null)):(j(t.kind),O(t.message))}finally{E(!1)}}},R=ae===null?`var(--mantine-color-gray-5)`:ae?`var(--mantine-color-teal-5)`:`var(--mantine-color-red-5)`,ve=ae===null?`Vérification du serveur…`:ae?`Serveur en ligne`:`Serveur injoignable`,z=M?{color:`yellow`,icon:(0,G.jsx)(Ss,{size:16}),title:`Trop de tentatives`,body:`Pour votre sécurité, patientez ${re}s avant un nouvel essai.`}:D?{color:k===`network`?`orange`:`red`,icon:k===`network`?(0,G.jsx)(hc,{size:16}):k===`server`?(0,G.jsx)(ce,{size:16}):(0,G.jsx)(g,{size:16}),title:k===`network`?`Connexion impossible`:k===`server`?`Erreur serveur`:`Connexion échouée`,body:D}:null,ye=fe.getInputProps(`password`),be=p?`password`:o,xe=Ju(be),Se=be===`passkey`,Ce=Zu(be,se),we=Ce.Icon,Te=!xe&&(!Se||h),Ee=xe?`Continuer avec ${Ce.label.replace(/^via /,``)}`:``;return(0,G.jsx)(Iu,{children:(0,G.jsxs)(F,{gap:`lg`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(ie,{order:1,fz:28,fw:700,children:`Connexion`}),(0,G.jsx)(B,{c:`dimmed`,size:`sm`,mt:4,children:`Accédez à la console d'administration Nodefony Studio.`})]}),(0,G.jsxs)(F,{gap:`sm`,children:[(0,G.jsx)(T,{mih:64,children:z&&(0,G.jsxs)(A,{role:`alert`,gap:`sm`,wrap:`nowrap`,align:`flex-start`,p:`sm`,style:{borderRadius:8,background:`var(--mantine-color-${z.color}-light)`,borderInlineStart:`3px solid var(--mantine-color-${z.color}-6)`},children:[(0,G.jsx)(T,{style:{color:`var(--mantine-color-${z.color}-7)`,lineHeight:0,marginTop:2},children:z.icon}),(0,G.jsx)(B,{size:`sm`,c:`${z.color}.8`,children:z.body})]})}),c===`totp`?(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsxs)(A,{gap:`sm`,wrap:`nowrap`,children:[(0,G.jsx)(wt,{size:34,radius:`xl`,variant:`light`,color:`brand`,children:(0,G.jsx)(ac,{size:18})}),(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(B,{size:`sm`,fw:600,children:`Vérification en deux étapes`}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,children:b?`Saisissez un de vos codes de récupération.`:`Saisissez le code de votre application d'authentification.`})]})]}),b?(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault();let t=v.trim(),n=Hu(t);if(n){j(`unknown`),O(n);return}I(t)},children:(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(u,{size:`md`,label:`Code de récupération`,placeholder:`XXXXX-XXXXX`,autoComplete:`one-time-code`,value:v,disabled:w,onChange:e=>{y(e.currentTarget.value),me()}}),(0,G.jsx)(st,{type:`submit`,size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:w?void 0:(0,G.jsx)(Vs,{size:18}),children:w?Gu[S]:M?`Réessayez dans ${re}s`:`Vérifier`})]})}):(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(A,{justify:`center`,w:`100%`,children:(0,G.jsx)(Bi,{length:6,type:`number`,inputType:`tel`,inputMode:`numeric`,oneTimeCode:!0,autoFocus:!0,size:`lg`,gap:`md`,styles:{input:{textAlign:`center`}},"aria-label":`Code à 6 chiffres`,value:v,disabled:w,onChange:y,onComplete:e=>{!w&&!M&&I(e)}})}),(0,G.jsx)(st,{fullWidth:!0,size:`md`,color:`brand`,loading:w,disabled:M||v.length!==6,leftSection:w?void 0:(0,G.jsx)(Vs,{size:18}),onClick:()=>{!w&&!M&&I(v)},children:w?Gu[S]:M?`Réessayez dans ${re}s`:`Vérifier`})]}),(0,G.jsxs)(A,{justify:`space-between`,children:[(0,G.jsx)(mt,{component:`button`,type:`button`,size:`xs`,c:`dimmed`,onClick:()=>{x(e=>!e),y(``),me()},children:b?`Utiliser le code de l'application`:`Utiliser un code de récupération`}),(0,G.jsx)(mt,{component:`button`,type:`button`,size:`xs`,c:`dimmed`,onClick:()=>{n.cancelMfa(),y(``),x(!1),me(),l(a?`password`:`identifier`)},children:`Annuler`})]})]}):c===`identifier`?(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),N()},children:(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(u,{ref:ue,size:`md`,label:`Identifiant`,placeholder:`admin`,leftSection:(0,G.jsx)(uc,{size:16}),autoComplete:`username`,value:d,onChange:e=>{f(e.currentTarget.value),me()}}),(0,G.jsx)(st,{type:`submit`,size:`md`,fullWidth:!0,color:`brand`,rightSection:(0,G.jsx)(vt,{size:18}),children:`Continuer`}),(0,G.jsx)(Q,{social:se,onSocial:Yu,onPasskey:()=>void L(),busy:w,disabled:M})]})}):(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(pe,{withBorder:!0,radius:`md`,p:`xs`,children:(0,G.jsxs)(A,{justify:`space-between`,wrap:`nowrap`,children:[(0,G.jsxs)(A,{gap:`sm`,wrap:`nowrap`,style:{minWidth:0},children:[(0,G.jsx)(wt,{size:34,radius:`xl`,variant:`light`,color:`brand`,children:(0,G.jsx)(we,{size:18})}),(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(B,{size:`sm`,fw:600,truncate:!0,children:d}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,children:Ce.label})]})]}),(0,G.jsx)(st,{variant:`subtle`,size:`xs`,onClick:P,disabled:w,children:`Changer`})]})}),Te?(0,G.jsx)(`form`,{onSubmit:fe.onSubmit(e=>{if(!(w||M)){if(!e.password){j(`unknown`),O(`Mot de passe requis.`),de.current?.focus();return}_e(e.password)}}),children:(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(Pi,{...ye,ref:de,size:`md`,label:`Mot de passe`,placeholder:`••••••••`,leftSection:(0,G.jsx)(at,{size:16}),autoComplete:`current-password`,disabled:w,onChange:e=>{fe.setFieldValue(`password`,e.currentTarget.value,{forceUpdate:!1}),me()}}),(0,G.jsx)(st,{type:`submit`,size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:w?void 0:(0,G.jsx)(Vs,{size:18}),children:w?Gu[S]:M?`Réessayez dans ${re}s`:`Se connecter`})]})}):Se?(0,G.jsxs)(F,{gap:`xs`,children:[(0,G.jsx)(st,{size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:(0,G.jsx)(js,{size:18}),onClick:()=>void L(),children:`Continuer avec une passkey`}),(0,G.jsx)(st,{variant:`subtle`,size:`sm`,fullWidth:!0,leftSection:(0,G.jsx)(at,{size:16}),onClick:()=>_(!0),children:`Se connecter avec un mot de passe`})]}):(0,G.jsx)(st,{size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:(0,G.jsx)(we,{size:18}),onClick:()=>Yu(be),children:Ee}),(0,G.jsx)(Q,{social:se,onSocial:Yu,onPasskey:()=>void L(),busy:w,disabled:M,exclude:Te?void 0:be})]})]}),(0,G.jsxs)(A,{justify:`space-between`,mt:`xs`,children:[(0,G.jsxs)(A,{gap:7,children:[(0,G.jsx)(T,{w:8,h:8,style:{borderRadius:`50%`,background:R},"aria-hidden":!0}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,children:ve})]}),!1]})]})})});function $u({title:e,description:t,phase:n,legacyRef:r,children:i}){return(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsxs)(A,{justify:`space-between`,align:`flex-end`,children:[(0,G.jsxs)(F,{gap:4,children:[(0,G.jsx)(ie,{order:1,size:`h2`,children:e}),t&&(0,G.jsx)(B,{c:`dimmed`,size:`sm`,children:t})]}),n&&(0,G.jsx)(Te,{color:`brand`,variant:`light`,size:`lg`,children:n})]}),(0,G.jsxs)(xe,{color:`yellow`,icon:(0,G.jsx)(ws,{size:18}),variant:`light`,children:[`Page en attente d'implémentation. Stub généré à partir du legacy`,` `,(0,G.jsx)(B,{span:!0,fw:600,children:`monitoring-bundle`}),r&&(0,G.jsxs)(G.Fragment,{children:[` `,`— ref :`,` `,(0,G.jsx)(B,{span:!0,ff:`monospace`,size:`sm`,children:r})]}),`.`]}),i&&(0,G.jsx)(Ye,{withBorder:!0,radius:`md`,p:`md`,children:i})]})}var ed=()=>(0,G.jsx)($u,{title:`Services`,description:`Container DI — services enregistrés, scope, dépendances.`,phase:`P10.10`,legacyRef:`monitoring-bundle/views/service/`}),td=()=>(0,G.jsx)($u,{title:`NPM`,description:`Dépendances installées, vulnérabilités, audit, outdated.`,phase:`P10.10`,legacyRef:`monitoring-bundle/views/npm/`}),nd=()=>(0,G.jsx)($u,{title:`Settings`,description:`Préférences UI (theme, sidebar), tokens API, locale, notifications.`,phase:`P10.7`}),rd=()=>(0,G.jsx)($u,{title:`Agents`,description:`Orchestrateur + sous-agents (@Agent/@Tool), streaming AsyncGenerator, abort. Module @nodefony/agent.`,phase:`P12.2 + P12.5`}),id=()=>(0,G.jsx)($u,{title:`Knowledge (RAG)`,description:`Pipeline RAG + citation des sources (traçabilité AI Act). Module @nodefony/rag.`,phase:`P12.1.4 + P12.5`}),ad=()=>(0,G.jsx)($u,{title:`LLM Providers`,description:`ILLMProvider + adapters (OpenAI, Mistral EU, Groq, Ollama souverain). Mode air-gap. Module @nodefony/llm.`,phase:`P12.1.1 + P12.5`}),od=()=>(0,G.jsx)($u,{title:`Vector Stores`,description:`Adapters pgvector / Qdrant / Chroma via orm-core+Drizzle. Module @nodefony/vector.`,phase:`P12.1.3 + P12.5`}),sd=()=>(0,G.jsx)($u,{title:`Memory`,description:`Mémoire des agents — court / long / épisodique, storée via orm-core. Module @nodefony/memory.`,phase:`P12.1.5 + P12.5`}),cd=()=>(0,G.jsx)($u,{title:`MCP`,description:`Model Context Protocol — server + client JSON-RPC 2.0 (standard Anthropic). Module @nodefony/mcp.`,phase:`P12.3 + P12.5`}),ld=()=>(0,G.jsx)($u,{title:`Agent Guard`,description:`Gouvernance IA (différenciateur) : zones, détection PII, circuit breaker, audit signé. Module @nodefony/agent-guard.`,phase:`P12.4 + P12.5`}),ud=()=>(0,G.jsx)($u,{title:`Approvals`,description:`Validation humaine obligatoire en zones restricted (human-in-the-loop, AI Act).`,phase:`P12.4 + P12.5`}),dd=()=>(0,G.jsx)($u,{title:`AI Audit`,description:`Journal signé des décisions IA — traçabilité, sources, contrôle humain (conformité AI Act).`,phase:`P12.4 + P12.5`}),fd=()=>(0,G.jsx)($u,{title:`Costs`,description:`Coûts par modèle / agent / requête (tokens, latence), budgets et alertes.`,phase:`P12.5`}),pd=()=>(0,G.jsx)($u,{title:`AI Insights`,description:`L'agent analyse les sondes (flux ORM, santé, supervision) via le broker et publie des insights (canal ai:insights).`,phase:`P12.5`}),md=()=>(0,G.jsx)($u,{title:`404 — Page introuvable`,description:`La page demandée n'existe pas dans Studio.`}),hd=(0,W.lazy)(()=>U(()=>import(`./DashboardSupervision-CA9Q1FOL.js`).then(e=>({default:e.DashboardSupervision})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))),gd=(0,W.lazy)(()=>U(()=>import(`./RealtimeConsole-BKiCkyyc.js`).then(e=>({default:e.RealtimeConsole})),__vite__mapDeps([19,1,2,3,4,5,7,10,20,21,22,14,23,24,25,26]))),_d=(0,W.lazy)(()=>U(()=>import(`./Cluster-FMiGMEv1.js`).then(e=>({default:e.Cluster})),__vite__mapDeps([27,1,2,3,4,5,10,28,26]))),vd=(0,W.lazy)(()=>U(()=>import(`./Runtime-CZN7ZC-h.js`).then(e=>({default:e.Runtime})),__vite__mapDeps([29,1,2,3,4,5,30,10,11,31,32,25,33]))),yd=(0,W.lazy)(()=>U(()=>import(`./Chat-Cy0RVpHa.js`).then(e=>({default:e.Chat})),__vite__mapDeps([34,1,2,3,4,5,35,10,36]))),bd=(0,W.lazy)(()=>U(()=>import(`./Logs-Dg9lxlFw.js`).then(e=>({default:e.Logs})),__vite__mapDeps([37,1,2,3,4,5,6,38,39,10,28,40,41,20,42,43,44,45,46,15,47,25,48,49,50,51,52,53]))),xd=(0,W.lazy)(()=>U(()=>import(`./TraceView-ClqCxi9u.js`).then(e=>({default:e.TraceView})),__vite__mapDeps([54,1,2,3,4,5,38,10,28,40,20,12,21,55,56,57,48,58,50,51,52,25,53]))),Sd=(0,W.lazy)(()=>U(()=>import(`./System-C0I4tKcT.js`).then(e=>({default:e.System})),__vite__mapDeps([59,1,2,3,4,5,60,38,10,61,47]))),Cd=(0,W.lazy)(()=>U(()=>import(`./Modules-B1hX60hm.js`).then(e=>({default:e.Modules})),__vite__mapDeps([62,1,2,3,4,5,9,10,28,51,63,64,55,45,65,25]))),wd=(0,W.lazy)(()=>U(()=>import(`./ModuleDetail-D2kZALJa.js`).then(e=>({default:e.ModuleDetail})),__vite__mapDeps([66,1,2,3,4,5,7,8,9,10,28,51,63,12,64,42,55,47,65,67,25,68,69,24,70]))),Td=(0,W.lazy)(()=>U(()=>import(`./ConfigPage-CUKniBwF.js`).then(e=>({default:e.ConfigPage})),__vite__mapDeps([71,1,2,3,4,5,7,10,28,72,25,70]))),Ed=(0,W.lazy)(()=>U(()=>import(`./StoresView-D1b1q6iD.js`).then(e=>({default:e.StoresView})),__vite__mapDeps([73,1,2,3,4,5,30,7,10,74,75,45,76,26,77,17]))),Dd=(0,W.lazy)(()=>U(()=>import(`./RoutesView-CNyYzs7W.js`).then(e=>({default:e.RoutesView})),__vite__mapDeps([78,1,2,3,4,5,10,28,79,49]))),Od=(0,W.lazy)(()=>U(()=>import(`./Playground-Bfa_lpCD.js`).then(e=>({default:e.Playground})),__vite__mapDeps([80,1,2,3,4,5,60,38,35,10,28,36,53]))),kd=(0,W.lazy)(()=>U(()=>import(`./Create-B9slJ_uv.js`).then(e=>({default:e.Create})),__vite__mapDeps([81,1,2,3,4,5,38,82,30,83,10,41,84,45,85]))),Ad=(0,W.lazy)(()=>U(()=>import(`./Database-CtWeoPkE.js`).then(e=>({default:e.Database})),__vite__mapDeps([86,1,2,3,4,5,10,28,75,18]))),jd=(0,W.lazy)(()=>U(()=>import(`./OrmEntity-CMSutgpJ.js`).then(e=>({default:e.OrmEntity})),__vite__mapDeps([87,1,2,3,4,5,10,28,12]))),Md=(0,W.lazy)(()=>U(()=>import(`./Migrations-CbmgWYkT.js`).then(e=>({default:e.Migrations})),__vite__mapDeps([88,1,2,3,4,5,30,10,22,47,89]))),Nd=(0,W.lazy)(()=>U(()=>import(`./OrmOverview-C0vfGJ25.js`).then(e=>({default:e.OrmOverview})),__vite__mapDeps([90,1,2,3,4,5,7,8,10,28,51,91,11,14,44,92,17,89,75,25,26,16,93]))),Pd=(0,W.lazy)(()=>U(()=>import(`./OrmConnector-gJr5z6vZ.js`).then(e=>({default:e.OrmConnector})),__vite__mapDeps([94,1,2,3,4,5,38,10,28,12,91,11,51,14,44,92,17,89,75,25,26,93]))),Fd=(0,W.lazy)(()=>U(()=>import(`./OrmWorker-C99UGFCH.js`).then(e=>({default:e.OrmWorker})),__vite__mapDeps([95,1,2,3,4,5,8,10,28,12,91,11,51,14,44,92,17,89,26,16]))),Id=(0,W.lazy)(()=>U(()=>import(`./Documentation-DJ5jRGLm.js`).then(e=>({default:e.Documentation})),__vite__mapDeps([96,1,2,3,4,5,10,69,55,24]))),Ld=(0,W.lazy)(()=>U(()=>import(`./Roadmap-BqAS8Dkv.js`).then(e=>({default:e.Roadmap})),__vite__mapDeps([97,2,1,3,4,5]))),Rd=(0,W.lazy)(()=>U(()=>import(`./Workspace-C1Qe5qMN.js`).then(e=>({default:e.Workspace})),__vite__mapDeps([98,1,2,3,4,5,38,39,10,84,12,99,6,7,8,11,13,14,32,92,46,25,33,26,100,58,16,18,50,51,52,101,23,85]))),zd=(0,W.lazy)(()=>U(()=>import(`./Twin-CmY-WPcg.js`).then(e=>({default:e.Twin})),__vite__mapDeps([102,1,2,3,4,5,82,10,28,31,64,99,6,38,7,8,11,13,14,32,92,46,25,33,26,100,58,16,18,50,51,52,103,36,90,91,44,17,89,75,93]))),Bd=(0,W.lazy)(()=>U(()=>import(`./Audit-CHKUoWSq.js`).then(e=>({default:e.Audit})),__vite__mapDeps([104,1,2,3,4,5,10,28,56,57,48,58,105,77]))),Vd=(0,W.lazy)(()=>U(()=>import(`./Firewall-2smdVN8i.js`).then(e=>({default:e.Firewall})),__vite__mapDeps([106,1,2,3,4,5,10,57,79,56,48,58,107]))),Hd=(0,W.lazy)(()=>U(()=>import(`./Roles-BULejn3C.js`).then(e=>({default:e.Roles})),__vite__mapDeps([108,1,2,3,4,5,10,67,107,109]))),Ud=(0,W.lazy)(()=>U(()=>import(`./ApiKeys-DUFEmztD.js`).then(e=>({default:e.ApiKeys})),__vite__mapDeps([110,1,2,3,4,5,30,83,10,57,14,76,85,33,49,100,105,77]))),Wd=(0,W.lazy)(()=>U(()=>import(`./Sessions-D2jVkUgA.js`).then(e=>({default:e.Sessions})),__vite__mapDeps([111,1,2,3,4,5,30,10,57,112,52,76,79,48,49,105,77]))),Gd=(0,W.lazy)(()=>U(()=>import(`./Users-DI2iWGYb.js`).then(e=>({default:e.Users})),__vite__mapDeps([113,1,2,3,4,5,30,83,10,28,112,76,49,105,77,107,114,48,109]))),Kd=(0,W.lazy)(()=>U(()=>import(`./Profile-DF8FS7PB.js`).then(e=>({default:e.Profile})),__vite__mapDeps([115,1,2,3,4,5,10,79,116,114,112,48]))),qd=(0,W.lazy)(()=>U(()=>import(`./UserProfile-B12yw08U.js`).then(e=>({default:e.UserProfile})),__vite__mapDeps([117,1,2,3,4,5,83,10,28,12,79,116,114,112,48]))),Jd=(0,W.lazy)(()=>U(()=>import(`./Webhooks-DObcfmvp.js`).then(e=>({default:e.Webhooks})),__vite__mapDeps([118,1,2,3,4,5,60,38,35,30,83,10,20,21,14,101,43,76,15,47,85,49,105,77]))),Yd=new It,Xd=ar(()=>{let e=H();return(0,G.jsx)(to,{to:e.homePath,replace:!0})}),Zd=zo([{path:`/nodefony/login`,element:(0,G.jsx)(Qu,{})},{path:`/nodefony`,element:(0,G.jsx)(Mc,{}),children:[{element:(0,G.jsx)(Wl,{}),children:[{index:!0,element:(0,G.jsx)(Xd,{})},{path:`profile`,element:(0,G.jsx)(Kd,{})},{path:`workspace`,element:(0,G.jsx)(Rd,{})},{path:`api-keys`,element:(0,G.jsx)(Ud,{})},{path:`sessions`,element:(0,G.jsx)(Wd,{})},{path:`settings`,element:(0,G.jsx)(nd,{})},{path:`dev`,element:(0,G.jsx)(to,{to:`/nodefony/workspace`,replace:!0})},{element:(0,G.jsx)(Fc,{roles:V.devops}),children:[{path:`twin`,element:(0,G.jsx)(zd,{})},{path:`hub`,element:(0,G.jsx)(gd,{})},{path:`runtime`,element:(0,G.jsx)(vd,{})},{path:`logs`,element:(0,G.jsx)(bd,{})},{path:`logs/trace/:requestId`,element:(0,G.jsx)(xd,{})},{path:`documentation`,element:(0,G.jsx)(Id,{})},{path:`roadmap`,element:(0,G.jsx)(Ld,{})}]},{element:(0,G.jsx)(Fc,{roles:V.ops}),children:[{path:`supervision`,element:(0,G.jsx)(hd,{})},{path:`cluster`,element:(0,G.jsx)(_d,{})}]},{element:(0,G.jsx)(Fc,{roles:V.dev}),children:[{path:`chat`,element:(0,G.jsx)(yd,{})},{path:`agents`,element:(0,G.jsx)(rd,{})},{path:`knowledge`,element:(0,G.jsx)(id,{})},{path:`llm`,element:(0,G.jsx)(ad,{})},{path:`vector`,element:(0,G.jsx)(od,{})},{path:`memory`,element:(0,G.jsx)(sd,{})},{path:`mcp`,element:(0,G.jsx)(cd,{})},{path:`orm`,element:(0,G.jsx)(Nd,{})},{path:`orm/:pid`,element:(0,G.jsx)(Fd,{})},{path:`databases`,element:(0,G.jsx)(Ad,{})},{path:`stores`,element:(0,G.jsx)(Ed,{})},{path:`orm-entity`,element:(0,G.jsx)(jd,{})},{path:`orm-connector`,element:(0,G.jsx)(Pd,{})},{path:`migrate`,element:(0,G.jsx)(Md,{})},{path:`services`,element:(0,G.jsx)(ed,{})},{path:`modules`,element:(0,G.jsx)(Cd,{})},{path:`modules/:name`,element:(0,G.jsx)(wd,{})},{path:`config`,element:(0,G.jsx)(Td,{})},{path:`routes`,element:(0,G.jsx)(Dd,{})},{path:`playground`,element:(0,G.jsx)(Od,{})},{path:`playground/:controller`,element:(0,G.jsx)(Od,{})},{path:`create`,element:(0,G.jsx)(kd,{})},{path:`npm`,element:(0,G.jsx)(td,{})}]},{element:(0,G.jsx)(Fc,{roles:V.admin}),children:[{path:`agent-guard`,element:(0,G.jsx)(ld,{})},{path:`approvals`,element:(0,G.jsx)(ud,{})},{path:`ai-audit`,element:(0,G.jsx)(dd,{})},{path:`ai-costs`,element:(0,G.jsx)(fd,{})},{path:`insights`,element:(0,G.jsx)(pd,{})},{path:`users`,element:(0,G.jsx)(Gd,{})},{path:`users/:id`,element:(0,G.jsx)(qd,{})},{path:`roles`,element:(0,G.jsx)(Hd,{})},{path:`webhooks`,element:(0,G.jsx)(Jd,{})},{path:`audit`,element:(0,G.jsx)(Bd,{})},{path:`system`,element:(0,G.jsx)(Sd,{})},{path:`firewall`,element:(0,G.jsx)(Vd,{})}]},{path:`*`,element:(0,G.jsx)(md,{})}]}]},{path:`/`,element:(0,G.jsx)(to,{to:`/nodefony`,replace:!0})},{path:`*`,element:(0,G.jsx)(to,{to:`/nodefony`,replace:!0})}]),Qd=ar(({children:e})=>{let t=H();return(0,W.useEffect)(()=>{t.checkSession()},[t]),(0,G.jsx)(G.Fragment,{children:e})}),$d=ar(()=>{let e=Ec(Yd.ui.palette);return(0,G.jsxs)(Mr,{theme:e,defaultColorScheme:`dark`,cssVariablesResolver:jc,children:[(0,G.jsx)(Ia,{position:`top-right`,limit:5,autoClose:4e3}),(0,G.jsx)(Ka,{children:(0,G.jsx)(Ht,{value:Yd,children:(0,G.jsx)(is,{client:Yd.kernel.get(`realtime`),children:(0,G.jsx)(yc,{variant:`full`,children:(0,G.jsx)(Qd,{children:(0,G.jsx)(Qo,{router:Zd})})})})})})]})}),ef=document.getElementById(`root`);if(!ef)throw Error(`#root not found`);(0,Un.createRoot)(ef).render((0,G.jsx)(W.StrictMode,{children:(0,G.jsx)($d,{})}));export{vs as $,rc as A,Vs as B,fc as C,oc as D,lc as E,Zs as F,Ns as G,Is as H,Xs as I,As as J,Ms as K,Ys as L,ec as M,$s as N,ac as O,Qs as P,bs as Q,Js as R,mc as S,uc as T,Fs as U,Rs as V,Ps as W,Ts as X,Ds as Y,Ss as Z,pl as _,xi as _t,Uu as a,ls as at,Nc as b,Ll as c,cs as ct,Tl as d,Ko as dt,_s as et,El as f,Va as ft,Sl as g,wi as gt,Ol as h,Pi as ht,Bu as i,as as it,tc as j,ic as k,Dl as l,os as lt,kl as m,Bi as mt,zu as n,ps as nt,Hu as o,us as ot,Al as p,Yi as pt,js as q,Lu as r,ds as rt,zl as s,ss as st,Ru as t,hs as tt,wl as u,Ho as ut,el as v,ar as vt,dc as w,gc as x,$c as y,Hs as z};
|
|
28
|
+
`;function hl(){if(typeof document>`u`||document.getElementById(`nf-conn-overlay-kf`))return;let e=document.createElement(`style`);e.id=`nf-conn-overlay-kf`,e.textContent=ml,document.head.appendChild(e)}function gl(){let[e,t]=(0,W.useState)(()=>typeof document>`u`||!document.hidden);return(0,W.useEffect)(()=>{let e=()=>t(!document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e}var _l={position:`fixed`,inset:0,zIndex:1e3,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`color-mix(in srgb, var(--mantine-color-body) 90%, transparent)`},vl={position:`relative`,width:380,maxWidth:`90vw`,padding:`34px 30px 26px`,borderRadius:16,background:`var(--mantine-color-body)`,border:`1px solid var(--mantine-color-default-border)`,boxShadow:`var(--mantine-shadow-lg)`,overflow:`hidden`,textAlign:`center`},yl={position:`relative`,width:120,height:120};function bl({color:e,delay:t}){return(0,G.jsx)(T,{style:{position:`absolute`,inset:0,borderRadius:`50%`,border:`2px solid ${e}`,animation:`nfConnPing 2.4s cubic-bezier(0,0.2,0.2,1) infinite`,animationDelay:t}})}var xl=ar(()=>{let e=Nt(),t=e.isDown,n=gl(),r=Be(),i=t&&n&&!r,[a,o]=(0,W.useState)(()=>Date.now()),[s,c]=(0,W.useState)(!1),l=(0,W.useRef)(!1);if(hl(),(0,W.useEffect)(()=>{if(!t||!n)return;o(Date.now());let e=window.setInterval(()=>o(Date.now()),250);return()=>window.clearInterval(e)},[t,n]),(0,W.useEffect)(()=>{if(l.current&&!t){c(!0);let e=window.setTimeout(()=>c(!1),1600);return l.current=t,()=>window.clearTimeout(e)}l.current=t},[t]),!t&&!s)return null;let u=e.state===`error`,d=s?`var(--mantine-color-teal-5)`:u?`var(--mantine-color-red-5)`:`var(--mantine-color-blue-4)`,f=e.nextRetryAt&&!s?Math.max(0,Math.ceil((e.nextRetryAt-a)/1e3)):null,p=s?`Reconnecté`:u?`Serveur injoignable`:e.state===`reconnecting`?`Reconnexion au serveur…`:`Connexion perdue`,m=s?`Le temps réel est rétabli.`:f===null?`Tentative de rétablissement…`:f>0?`Nouvelle tentative dans ${f}s`:`Tentative en cours…`;return(0,G.jsx)(T,{style:_l,children:(0,G.jsxs)(T,{style:vl,children:[(0,G.jsx)(T,{style:{position:`absolute`,top:0,left:0,right:0,height:2,overflow:`hidden`},children:(0,G.jsx)(T,{style:{width:`100%`,height:`100%`,background:i?`linear-gradient(90deg, transparent, ${d}, transparent)`:d,opacity:i?1:.5,animation:i?`nfConnSweep 1.8s linear infinite`:`none`}})}),(0,G.jsxs)(F,{align:`center`,gap:`md`,children:[(0,G.jsxs)(A,{gap:12,align:`center`,justify:`center`,children:[(0,G.jsx)(pl,{height:40}),(0,G.jsx)(B,{fw:800,size:`28px`,c:`dimmed`,style:{letterSpacing:3,textTransform:`uppercase`,lineHeight:1},children:`Studio`})]}),(0,G.jsxs)(T,{style:yl,children:[i&&!s&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(bl,{color:d,delay:`0s`}),(0,G.jsx)(bl,{color:d,delay:`0.8s`}),(0,G.jsx)(bl,{color:d,delay:`1.6s`})]}),(0,G.jsx)(T,{style:{position:`absolute`,inset:30,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`color-mix(in srgb, ${d} 18%, transparent)`,color:d,animation:i&&!s?`nfConnBreathe 1.6s ease-in-out infinite`:`none`},children:s?(0,G.jsx)(z,{size:34}):(0,G.jsx)(Js,{size:34})})]}),(0,G.jsxs)(F,{gap:4,align:`center`,children:[(0,G.jsx)(B,{fw:700,size:`xl`,children:p}),(0,G.jsx)(B,{size:`sm`,c:`dimmed`,children:m})]}),!s&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(A,{gap:`xs`,justify:`center`,children:[e.reconnectAttempt>0&&(0,G.jsxs)(B,{size:`xs`,c:`dimmed`,children:[`Tentative #`,e.reconnectAttempt]}),e.latencyMs!==null&&(0,G.jsxs)(B,{size:`xs`,c:`dimmed`,children:[`· dernière latence `,e.latencyMs,` ms`]})]}),(0,G.jsx)(st,{leftSection:(0,G.jsx)(Qs,{size:16}),color:u?`red`:`blue`,variant:`light`,radius:`md`,onClick:()=>e.retryNow(),children:`Réessayer maintenant`}),(0,G.jsxs)(A,{gap:6,justify:`center`,children:[(0,G.jsx)(oe,{size:12,color:`var(--mantine-color-dimmed)`}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,ff:`monospace`,children:e.endpointUrl||`realtime`})]})]})]})]})})}),Sl=[{id:`account`,label:`Mon espace`,icon:Rs,items:[{to:`/nodefony/workspace`,label:`Mon bureau`,icon:Rs},{to:`/nodefony/profile`,label:`Mon profil`,icon:uc},{to:`/nodefony/sessions`,label:`Mes sessions`,icon:Re},{to:`/nodefony/api-keys`,label:`Mes clés API`,icon:Is},{to:`/nodefony/settings`,label:`Réglages`,icon:n,wip:!0}]},{id:`observability`,label:`Observation`,icon:bs,items:[{to:`/nodefony/twin`,label:`Carte du serveur`,icon:lc,roles:V.devops},{to:`/nodefony/supervision`,label:`Supervision`,icon:Ot,roles:V.ops},{to:`/nodefony/cluster`,label:`Cluster`,icon:Ts,roles:V.ops},{to:`/nodefony/runtime`,label:`Runtime`,icon:ec,roles:V.devops},{to:`/nodefony/hub`,label:`Temps réel`,icon:_s,roles:V.devops},{to:`/nodefony/logs`,label:`Journaux`,icon:As,roles:V.devops}]},{id:`system`,label:`Système & données`,icon:Pn,items:[{to:`/nodefony/modules`,label:`Modules`,icon:ps,roles:V.dev},{to:`/nodefony/config`,label:`Configuration`,icon:Mn,roles:V.dev},{to:`/nodefony/services`,label:`Services`,icon:Nn,roles:V.dev,wip:!0},{to:`/nodefony/routes`,label:`Routes`,icon:tc,roles:V.dev},{to:`/nodefony/playground`,label:`Playground`,icon:Ms,roles:V.dev,devOnly:!0},{to:`/nodefony/create`,label:`Créer`,icon:L,roles:V.dev,devOnly:!0},{to:`/nodefony/system`,label:`Admin API`,icon:Pn,roles:V.admin},{to:`/nodefony/npm`,label:`NPM`,icon:gs,roles:V.dev,wip:!0},{to:`/nodefony/orm`,label:`ORM`,icon:Ds,roles:V.dev},{to:`/nodefony/databases`,label:`Schéma ERD`,icon:nc,roles:V.dev},{to:`/nodefony/stores`,label:`Stores`,icon:Es,roles:V.dev},{to:`/nodefony/migrate`,label:`Migrations`,icon:Ln,roles:V.dev}]},{id:`security`,label:`Sécurité`,icon:ac,roles:V.admin,items:[{to:`/nodefony/audit`,label:`Journal d'audit`,icon:Ns},{to:`/nodefony/firewall`,label:`Firewall`,icon:ac},{to:`/nodefony/users`,label:`Utilisateurs`,icon:fc},{to:`/nodefony/roles`,label:`Rôles`,icon:dc},{to:`/nodefony/webhooks`,label:`Webhooks`,icon:mc}]},{id:`ai-studio`,label:`IA — Atelier`,icon:oc,roles:V.dev,items:[{to:`/nodefony/chat`,label:`Chat`,icon:Ws,wip:!0},{to:`/nodefony/agents`,label:`Agents`,icon:$s,wip:!0},{to:`/nodefony/knowledge`,label:`Connaissances (RAG)`,icon:fs,wip:!0},{to:`/nodefony/llm`,label:`Fournisseurs LLM`,icon:ms,wip:!0},{to:`/nodefony/vector`,label:`Bases vectorielles`,icon:pc,wip:!0},{to:`/nodefony/memory`,label:`Mémoire`,icon:In,wip:!0},{to:`/nodefony/mcp`,label:`MCP`,icon:Zs,wip:!0}]},{id:`ai-governance`,label:`IA — Gouvernance`,icon:ic,roles:V.admin,items:[{to:`/nodefony/agent-guard`,label:`Agent Guard`,icon:ic,wip:!0},{to:`/nodefony/approvals`,label:`Approbations`,icon:xs,wip:!0},{to:`/nodefony/ai-audit`,label:`Audit IA`,icon:ks,wip:!0},{to:`/nodefony/ai-costs`,label:`Coûts`,icon:Cs,wip:!0},{to:`/nodefony/insights`,label:`Insights IA`,icon:St,wip:!0}]},{id:`documentation`,label:`Documentation`,icon:fs,roles:V.devops,items:[{to:`/nodefony/documentation`,label:`Documentation`,icon:fs},{to:`/nodefony/roadmap`,label:`Feuille de route`,icon:Us}]}],Cl={server:rc,network:Fn,route:tc,"file-text":As,api:Pn},wl=`/nodefony/user/api/me`,Tl=`/nodefony/user/api/me/password`,El=`/nodefony/user/api/me/profile`,Dl=`v1.0`;function Ol(e,t,n){return e.length===0?`Saisissez votre mot de passe actuel.`:t.length<10?`Le nouveau mot de passe doit faire au moins 10 caractères.`:t===e?`Le nouveau mot de passe doit être différent de l'actuel.`:t===n?null:`La confirmation ne correspond pas.`}function kl(e){return e===null?`—`:new Date(e).toLocaleString(`fr-FR`,{dateStyle:`medium`,timeStyle:`short`})}function Al(e){let t=e?.status;if(t===401)return`Non authentifié — votre session Studio a expiré ou n'est plus reconnue par le firewall. Reconnectez-vous.`;if(t===403)return`Mot de passe actuel incorrect.`;if(t===400)return`Mot de passe refusé — trop court, identique à l'actuel, ou trop courant.`;if(t===503)return`Service utilisateur indisponible — le sous-système n'est pas provisionné.`;if(t===404)return`Endpoint introuvable — le module @nodefony/user n'expose peut-être pas le self-service.`;let n=e?.message;return n?`Erreur : ${n}`:`Une erreur est survenue.`}function jl(e,t){let n=(e.givenName??``).trim(),r=(e.familyName??``).trim();if(n||r)return(n.charAt(0)+r.charAt(0)).toUpperCase();let i=(e.displayName??t??``).trim();if(!i)return`?`;let[a=``,o]=i.split(/\s+/).filter(Boolean);return(o===void 0?i.slice(0,2):a.charAt(0)+o.charAt(0)).toUpperCase()}async function Ml(e,t=200){let n=e.trim().toLowerCase(),r=globalThis.crypto.subtle;if(!n||!r)return null;try{let e=await r.digest(`SHA-256`,new TextEncoder().encode(n));return`https://www.gravatar.com/avatar/${Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}?s=${t}&d=404`}catch{return null}}var Nl=260,Pl=256,Fl=10485760,Il=`image/png,image/jpeg,image/webp,image/gif`;function Ll({profile:e,identifier:t,size:n=64}){let[r,i]=(0,W.useState)(null),a=e.picture?.trim(),o=e.email?.trim();return(0,W.useEffect)(()=>{let e=!0;return!a&&o?Ml(o,Math.max(80,n*2)).then(t=>{e&&i(t)}):i(null),()=>{e=!1}},[a,o,n]),(0,G.jsx)(_i,{src:a||r||void 0,size:n,radius:`xl`,color:`brand`,children:jl(e,t)})}function Rl({src:e,onCancel:t,onDone:n}){let r=Vt(),[i,a]=(0,W.useState)(null),[o,s]=(0,W.useState)(1),[c,l]=(0,W.useState)({x:0,y:0}),[u,d]=(0,W.useState)(!1),f=(0,W.useRef)(null),p=(i?Math.max(Nl/i.w,Nl/i.h):1)*o,m=i?i.w*p:Nl,h=i?i.h*p:Nl,g=(0,W.useCallback)((e,t)=>({x:Math.min(0,Math.max(Nl-m,e)),y:Math.min(0,Math.max(Nl-h,t))}),[m,h]);(0,W.useEffect)(()=>{let t=new Image;t.addEventListener(`load`,()=>{a({w:t.naturalWidth,h:t.naturalHeight});let e=Math.max(Nl/t.naturalWidth,Nl/t.naturalHeight),n=t.naturalWidth*e,r=t.naturalHeight*e;l({x:(Nl-n)/2,y:(Nl-r)/2})}),t.src=e},[e]),(0,W.useEffect)(()=>{i&&l(e=>g(e.x,e.y))},[o,i,g]);let _=e=>{e.currentTarget.setPointerCapture(e.pointerId),f.current={px:e.clientX,py:e.clientY,ox:c.x,oy:c.y}},v=e=>{f.current&&l(g(f.current.ox+(e.clientX-f.current.px),f.current.oy+(e.clientY-f.current.py)))},y=()=>{f.current=null},b=async()=>{if(i){d(!0);try{let t=new Image;await new Promise((n,r)=>{t.addEventListener(`load`,()=>n()),t.addEventListener(`error`,()=>r(Error(`image`))),t.src=e});let r=document.createElement(`canvas`);r.width=Pl,r.height=Pl;let i=r.getContext(`2d`);if(!i)throw Error(`canvas indisponible`);let a=Nl/p;i.drawImage(t,-c.x/p,-c.y/p,a,a,0,0,Pl,Pl),n(r.toDataURL(`image/webp`,.85))}finally{d(!1)}}};return(0,G.jsxs)(F,{gap:`md`,align:`center`,children:[(0,G.jsxs)(`div`,{onPointerDown:_,onPointerMove:v,onPointerUp:y,style:{position:`relative`,width:Nl,height:Nl,overflow:`hidden`,borderRadius:8,touchAction:`none`,cursor:`grab`,background:`var(--mantine-color-dark-8)`},children:[(0,G.jsx)(`img`,{src:e,alt:``,draggable:!1,style:{position:`absolute`,left:c.x,top:c.y,width:m,height:h,userSelect:`none`,maxWidth:`none`}}),(0,G.jsx)(`div`,{"aria-hidden":!0,style:{position:`absolute`,inset:0,borderRadius:`50%`,boxShadow:`0 0 0 9999px rgba(0,0,0,0.5)`,pointerEvents:`none`}})]}),(0,G.jsxs)(A,{gap:`xs`,w:Nl,children:[(0,G.jsx)(_c,{size:16,"aria-hidden":!0}),(0,G.jsx)(Tt,{flex:1,min:1,max:3,step:.01,value:o,onChange:s,label:e=>`${e.toFixed(1)}×`,"aria-label":`Zoom de l'avatar`})]}),(0,G.jsxs)(A,{justify:`flex-end`,w:Nl,children:[(0,G.jsx)(st,{variant:`default`,onClick:t,disabled:u,children:`Annuler`}),(0,G.jsx)(st,{onClick:()=>{b().catch(e=>{r.notify(`error`,`Recadrage impossible : ${e instanceof Error?e.message:String(e)}`,{source:`api`})})},loading:u,disabled:!i,children:`Valider`})]})]})}function zl({profile:e,identifier:t,onChange:n,disabled:r}){let i=Vt(),[a,o]=(0,W.useState)(null);return(0,G.jsxs)(A,{gap:`lg`,align:`center`,children:[(0,G.jsx)(Ll,{profile:e,identifier:t,size:84}),(0,G.jsxs)(F,{gap:`xs`,children:[(0,G.jsxs)(A,{gap:`xs`,children:[(0,G.jsx)(xi,{onChange:e=>{if(!e)return;if(!/^image\/(png|jpe?g|webp|gif)$/i.test(e.type)){i.notify(`error`,`Format non supporté (PNG, JPEG, WebP).`,{source:`api`});return}if(e.size>Fl){i.notify(`error`,`Image trop lourde (max 10 Mo).`,{source:`api`});return}let t=new FileReader;t.addEventListener(`load`,()=>o(t.result)),t.addEventListener(`error`,()=>i.notify(`error`,`Lecture du fichier impossible.`,{source:`api`})),t.readAsDataURL(e)},accept:Il,disabled:r,children:e=>(0,G.jsx)(st,{...e,variant:`light`,leftSection:(0,G.jsx)(ys,{size:16}),disabled:r,children:`Changer la photo`})}),e.picture&&(0,G.jsx)(st,{variant:`subtle`,color:`red`,leftSection:(0,G.jsx)(te,{size:16}),disabled:r,onClick:()=>n(``),children:`Retirer`})]}),(0,G.jsxs)(B,{size:`xs`,c:`dimmed`,children:[`PNG, JPEG ou WebP. Recadrée en cercle, redimensionnée à `,Pl,`px.`]})]}),(0,G.jsx)(ve,{opened:a!==null,onClose:()=>o(null),title:`Recadrer l'avatar`,centered:!0,size:`auto`,children:a&&(0,G.jsx)(Rl,{src:a,onCancel:()=>o(null),onDone:e=>{n(e),o(null)}})})]})}var Bl=68,Vl=264;function Hl({to:e,label:t,icon:n,active:r,rail:i,rightSection:a,dimmed:o,pinned:s,onTogglePin:c}){return i?(0,G.jsx)(tt,{label:t,position:`right`,withArrow:!0,openDelay:200,children:(0,G.jsx)(wi,{component:Uo,to:e,active:r,variant:r?`filled`:`subtle`,leftSection:(0,G.jsx)(n,{size:20,stroke:1.6}),styles:{root:{justifyContent:`center`,borderRadius:8,opacity:o?.7:1},section:{marginInlineEnd:0}},mb:2})}):(0,G.jsx)(wi,{component:Uo,to:e,label:t,active:r,variant:r?`filled`:`subtle`,leftSection:(0,G.jsx)(n,{size:18,stroke:1.6}),rightSection:(0,G.jsxs)(A,{gap:4,wrap:`nowrap`,children:[a,c?(0,G.jsx)(b,{component:`span`,role:`button`,size:`xs`,variant:`subtle`,color:s?`brand`:`gray`,"aria-label":s?`Désépingler ${t}`:`Épingler ${t} en haut`,className:`nf-pin`,onClick:e=>{e.preventDefault(),e.stopPropagation(),c()},style:{opacity:s?1:void 0},children:s?(0,G.jsx)(vc,{size:12}):(0,G.jsx)(sc,{size:12})}):null]}),styles:{root:{borderRadius:8,opacity:o?.7:1},label:o?{fontWeight:400}:void 0},mb:2})}function Ul(e){let t=e.replace(/^ROLE_(NODEFONY_)?/,``).replace(/_/g,` `);return t.charAt(0)+t.slice(1).toLowerCase()}var Wl=ar(()=>{let[e,{toggle:t}]=cr(!1),r=H(),i=Vt(),o=Ft(),{data:s}=$c((0,W.useCallback)(()=>o.api.getAbsolute(wl),[o])),c=(0,W.useCallback)(async()=>{try{await r.registerPasskey(),i.notify(`success`,`Vous pouvez désormais vous connecter par empreinte.`,{title:`Passkey enregistré`})}catch(e){if(e instanceof Error&&(e.name===`NotAllowedError`||e.name===`AbortError`))return;i.notify(`error`,`Échec de l'enregistrement du passkey.`,{title:`Erreur`})}},[r,i]),l=Nt(),d=zt(),f=Ut(),p=Bt(),m=Nc(),h=yn(),g=Tn(),[_]=Ko(),{colorScheme:v,toggleColorScheme:y}=He();(0,W.useEffect)(()=>{l.connect()},[l]),(0,W.useEffect)(()=>{m&&p.loadCatalog()},[p,m]),(0,W.useEffect)(()=>{p.loadInfo()},[p]),(0,W.useEffect)(()=>{let e=e=>{let t=e.detail?.requestId;t&&h(`/nodefony/logs/trace/${encodeURIComponent(t)}`)};return window.addEventListener(S.debugbarSelect,e),()=>window.removeEventListener(S.debugbarSelect,e)},[h]);let x=d.rail,C=d.navQuery.trim().toLowerCase(),w=C.length>0,D=_.get(`p`),O=(e,t)=>t?g.pathname===e:g.pathname===e||g.pathname.startsWith(e+`/`),k=p.producers,j=(0,W.useCallback)(e=>!(e.devOnly&&p.isProd),[p.isProd]),ee=Sl.flatMap(e=>e.roles&&!kt(e.roles,r.roles)?[]:e.items.filter(e=>kt(e.roles,r.roles)&&j(e))),te=w?[]:d.pinned.map(e=>ee.find(t=>t.to===e)).filter(e=>e!==void 0);return(0,G.jsxs)(oi,{header:{height:56},navbar:{width:x?Bl:Vl,breakpoint:`sm`,collapsed:{mobile:!e,desktop:!1}},padding:`md`,children:[(0,G.jsx)(oi.Header,{children:(0,G.jsxs)(A,{h:`100%`,px:`md`,justify:`space-between`,gap:`xs`,children:[(0,G.jsxs)(A,{gap:`xs`,children:[(0,G.jsx)(bi,{opened:e,onClick:t,size:`sm`,hiddenFrom:`sm`}),(0,G.jsx)(tt,{label:x?`Déplier la sidebar`:`Réduire la sidebar`,children:(0,G.jsx)(b,{variant:`subtle`,onClick:()=>d.toggleRail(),visibleFrom:`sm`,"aria-label":`Toggle sidebar`,children:x?(0,G.jsx)(Bs,{size:20}):(0,G.jsx)(zs,{size:20})})}),(0,G.jsx)(Uo,{to:`/nodefony`,style:{textDecoration:`none`,color:`inherit`},children:(0,G.jsxs)(A,{gap:6,wrap:`nowrap`,children:[(0,G.jsx)(pl,{height:26}),(0,G.jsxs)(B,{fw:700,size:`lg`,c:`brand`,children:[`Nodefony`,` `,(0,G.jsx)(B,{span:!0,c:d.palette===`nodefony`?`nodefonyCyan`:`orange`,inherit:!0,children:`Studio`})]})]})}),kt(V.devops,r.roles)?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(rl,{}),(0,G.jsx)(dl,{})]}):null,g.pathname.startsWith(`/nodefony/workspace`)?(0,G.jsx)(Te,{variant:`light`,color:`gray`,radius:`sm`,visibleFrom:`sm`,children:f.active.label}):null]}),(0,G.jsxs)(A,{gap:`xs`,children:[(0,G.jsxs)(a,{width:380,position:`bottom-end`,shadow:`md`,openDelay:150,closeDelay:120,withinPortal:!0,children:[(0,G.jsx)(a.Target,{children:(0,G.jsx)(ue,{onClick:()=>void h(`/nodefony/hub`),"aria-label":`${l.state.toUpperCase()}${l.subscriptionCount>0?` ${l.subscriptionCount}`:``} — Realtime Hub, ouvrir le hub temps réel`,children:(0,G.jsx)(Te,{leftSection:l.isConnected?(0,G.jsx)(Ys,{size:12}):(0,G.jsx)(Xs,{size:12}),color:l.isConnected?`teal`:l.state===`connecting`||l.state===`reconnecting`?`yellow`:l.state===`error`?`red`:`gray`,variant:`light`,rightSection:l.subscriptionCount>0?(0,G.jsx)(Te,{size:`xs`,variant:`filled`,color:`brand`,circle:!0,children:l.subscriptionCount}):null,style:{cursor:`pointer`},children:l.state})})}),(0,G.jsx)(a.Dropdown,{p:`sm`,children:(0,G.jsx)(Qc,{onOpenConsole:()=>void h(`/nodefony/hub`)})})]}),(0,G.jsx)(tt,{label:`Palette : ${d.palette===`nodefony`?`Nodefony (bleu)`:`Orange`} — cliquer pour basculer`,children:(0,G.jsx)(b,{variant:`subtle`,color:`brand`,onClick:()=>d.togglePalette(),"aria-label":`Toggle palette`,children:(0,G.jsx)(qs,{size:18})})}),(0,G.jsx)(tt,{label:`Debug bar : ${d.debugBar?`visible`:`masquée`} — cliquer pour basculer`,children:(0,G.jsx)(b,{variant:d.debugBar?`light`:`subtle`,color:`brand`,onClick:()=>d.toggleDebugBar(),"aria-label":`Toggle debug bar`,children:(0,G.jsx)(Ls,{size:18})})}),(0,G.jsx)(b,{variant:`subtle`,onClick:()=>y(),"aria-label":`Toggle theme`,children:v===`dark`?(0,G.jsx)(cc,{size:18}):(0,G.jsx)(Ks,{size:18})}),(0,G.jsxs)(a,{position:`bottom-end`,withArrow:!0,shadow:`lg`,radius:`md`,width:290,openDelay:80,closeDelay:120,children:[(0,G.jsx)(a.Target,{children:(0,G.jsx)(b,{variant:`subtle`,radius:`xl`,"aria-label":`Mon compte — ${r.displayName}`,children:(0,G.jsx)(`span`,{"aria-hidden":`true`,children:(0,G.jsx)(Ll,{profile:s?.profile??{email:r.user?.email??void 0},identifier:r.displayName,size:28})})})}),(0,G.jsxs)(a.Dropdown,{p:0,style:{overflow:`hidden`},children:[(0,G.jsxs)(A,{p:`md`,gap:`sm`,wrap:`nowrap`,align:`flex-start`,children:[(0,G.jsx)(Ll,{profile:s?.profile??{email:r.user?.email??void 0},identifier:r.displayName,size:44}),(0,G.jsxs)(F,{gap:2,style:{minWidth:0,flex:1},children:[(0,G.jsx)(B,{fw:700,size:`sm`,truncate:!0,children:r.displayName}),r.user?.email&&(0,G.jsx)(B,{size:`xs`,c:`dimmed`,truncate:!0,children:r.user.email}),(0,G.jsx)(A,{gap:4,mt:4,children:m?(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`orange`,children:`Administrateur`}):r.roles.length>0?r.roles.slice(0,3).map(e=>(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`brand`,style:{textTransform:`none`},children:Ul(e)},e)):(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`gray`,children:`Utilisateur`})})]})]}),(0,G.jsx)(ut,{}),(0,G.jsxs)(F,{gap:0,py:4,children:[(0,G.jsx)(wi,{label:`Mon profil`,leftSection:(0,G.jsx)(uc,{size:16}),component:Uo,to:`/nodefony/profile`}),(0,G.jsx)(wi,{label:`Mes clés API`,leftSection:(0,G.jsx)(Is,{size:16}),component:Uo,to:`/nodefony/api-keys`}),(0,G.jsx)(wi,{label:`Mes sessions`,leftSection:(0,G.jsx)(Os,{size:16}),component:Uo,to:`/nodefony/sessions`}),(0,G.jsx)(wi,{label:`Ajouter une passkey`,leftSection:(0,G.jsx)(js,{size:16}),onClick:()=>void c()}),m&&(0,G.jsx)(wi,{label:`Réglages`,leftSection:(0,G.jsx)(n,{size:16}),component:Uo,to:`/nodefony/settings`})]}),(0,G.jsx)(ut,{}),(0,G.jsx)(T,{p:`xs`,children:(0,G.jsx)(st,{fullWidth:!0,size:`xs`,variant:`light`,color:`red`,leftSection:(0,G.jsx)(Hs,{size:14}),onClick:()=>void r.logout(),children:`Déconnexion`})})]})]})]})]})}),(0,G.jsxs)(oi.Navbar,{p:x?6:`xs`,style:{display:`flex`,flexDirection:`column`},children:[!x&&(0,G.jsx)(u,{size:`xs`,placeholder:`Filtrer la navigation…`,"aria-label":`Filtrer la navigation`,leftSection:(0,G.jsx)(Ae,{size:14}),value:d.navQuery,onChange:e=>d.setNavQuery(e.currentTarget.value),rightSection:d.navQuery?(0,G.jsx)(b,{size:`xs`,variant:`subtle`,color:`gray`,onClick:()=>d.setNavQuery(``),"aria-label":`Clear filter`,children:(0,G.jsx)(gc,{size:12})}):null,mb:`xs`}),(0,G.jsxs)(N,{style:{flex:1},type:`scroll`,children:[te.length>0&&!x?(0,G.jsxs)(T,{children:[(0,G.jsx)(A,{px:`sm`,mt:4,mb:4,gap:4,children:(0,G.jsx)(B,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:600,children:`Épinglés`})}),te.map(e=>(0,G.jsx)(Hl,{to:e.to,label:e.label,icon:e.icon,rail:x,active:O(e.to,e.exact),dimmed:e.wip,pinned:!0,onTogglePin:()=>d.togglePin(e.to),rightSection:e.wip?(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`gray`,children:`à venir`}):void 0},`pin-${e.to}`)),(0,G.jsx)(ut,{my:6})]}):null,Sl.map(e=>{if(e.roles&&!kt(e.roles,r.roles))return null;let t=e.items.filter(e=>kt(e.roles,r.roles)&&j(e)),n=w?t.filter(e=>e.label.toLowerCase().includes(C)):t;if(n.length===0)return null;let i=n.filter(e=>!e.wip);if(i.length===0)return null;let a=!w&&!x&&d.isGroupCollapsed(e.id,!1);return(0,G.jsxs)(T,{children:[x?(0,G.jsx)(ut,{my:6}):(0,G.jsx)(ue,{onClick:()=>!w&&d.toggleGroup(e.id,!1),style:{width:`100%`},"aria-expanded":!a,children:(0,G.jsxs)(A,{justify:`space-between`,px:`sm`,mt:`sm`,mb:4,gap:4,children:[(0,G.jsx)(A,{gap:6,wrap:`nowrap`,children:(0,G.jsx)(B,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:600,children:e.label})}),!w&&(0,G.jsx)(Pe,{size:13,style:{transform:a?`none`:`rotate(90deg)`,transition:`transform .15s ease`,opacity:.5}})]})}),(0,G.jsx)(Et,{expanded:!a,children:i.map(e=>(0,G.jsx)(Hl,{to:e.to,label:e.label,icon:e.icon,rail:x,active:O(e.to,e.exact),pinned:d.isPinned(e.to),onTogglePin:x?void 0:()=>d.togglePin(e.to)},e.to))})]},e.id)}),(()=>{let e=w?k.filter(e=>e.label.toLowerCase().includes(C)):k;if(e.length===0)return null;let t=!w&&!x&&d.isGroupCollapsed(`dataplane`,!0);return(0,G.jsxs)(T,{children:[x?(0,G.jsx)(ut,{my:6}):(0,G.jsx)(ue,{onClick:()=>!w&&d.toggleGroup(`dataplane`,!0),style:{width:`100%`},children:(0,G.jsxs)(A,{justify:`space-between`,px:`sm`,mt:`sm`,mb:4,gap:4,children:[(0,G.jsx)(B,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:600,children:`Data plane`}),!w&&(0,G.jsx)(Pe,{size:13,style:{transform:t?`none`:`rotate(90deg)`,transition:`transform .15s ease`,opacity:.5}})]})}),(0,G.jsx)(Et,{expanded:!t,children:e.map(e=>{let t=e.icon&&Cl[e.icon]||Pn,n=g.pathname===`/nodefony/system`&&D===e.namespace;return(0,G.jsx)(Hl,{to:`/nodefony/system?p=${e.namespace}`,label:e.label,icon:t,rail:x,active:n,rightSection:(0,G.jsx)(Te,{size:`xs`,variant:`light`,color:`gray`,children:e.endpoints.length})},e.namespace)})})]})})()]})]}),(0,G.jsx)(oi.Main,{style:{paddingTop:0,marginTop:`var(--app-shell-header-height, 56px)`,height:`calc(100dvh - var(--app-shell-header-height, 56px))`,minHeight:0,overflowY:`auto`,paddingBottom:`calc(var(--mantine-spacing-md) + var(--nodefony-debugbar-height, 0px))`},children:(0,G.jsx)(yc,{variant:`page`,children:(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(Ie,{h:`60vh`,children:(0,G.jsx)(E,{})}),children:(0,G.jsx)(no,{})})},g.pathname)}),(0,G.jsx)(xl,{})]})});function Gl(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}var Kl=typeof window<`u`?W.useLayoutEffect:W.useEffect;function ql(e,t){Kl(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function Jl(e,t){e&&Gl(e),ql(`mantine-form:${e}:set-field-value`,e=>t.setFieldValue(e.detail.path,e.detail.value)),ql(`mantine-form:${e}:set-values`,e=>t.setValues(e.detail)),ql(`mantine-form:${e}:set-initial-values`,e=>t.setInitialValues(e.detail)),ql(`mantine-form:${e}:set-errors`,e=>t.setErrors(e.detail)),ql(`mantine-form:${e}:set-field-error`,e=>t.setFieldError(e.detail.path,e.detail.error)),ql(`mantine-form:${e}:clear-field-error`,e=>t.clearFieldError(e.detail)),ql(`mantine-form:${e}:clear-errors`,t.clearErrors),ql(`mantine-form:${e}:reset`,t.reset),ql(`mantine-form:${e}:validate`,t.validate),ql(`mantine-form:${e}:validate-field`,e=>t.validateField(e.detail)),ql(`mantine-form:${e}:reorder-list-item`,e=>t.reorderListItem(e.detail.path,e.detail.payload)),ql(`mantine-form:${e}:remove-list-item`,e=>t.removeListItem(e.detail.path,e.detail.index)),ql(`mantine-form:${e}:insert-list-item`,e=>t.insertListItem(e.detail.path,e.detail.item,e.detail.index)),ql(`mantine-form:${e}:set-dirty`,e=>t.setDirty(e.detail)),ql(`mantine-form:${e}:set-touched`,e=>t.setTouched(e.detail)),ql(`mantine-form:${e}:reset-dirty`,e=>t.resetDirty(e.detail)),ql(`mantine-form:${e}:reset-touched`,t.resetTouched)}function Yl(e){return typeof e!=`object`||!e?{}:Object.keys(e).reduce((t,n)=>{let r=e[n];return r!=null&&r!==!1&&(t[n]=r),t},{})}function Xl(e){return typeof e==`string`?e.split(`.`):[]}function Zl(e,t){let n=Xl(e);if(n.length===0||typeof t!=`object`||!t)return;let r=t[n[0]];for(let e=1;e<n.length&&r!=null;e+=1)r=r[n[e]];return r}var Ql=Symbol(`root-rule`);function $l(e){let t=Yl(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function eu(e,t,n,r,i=``,a={}){if(typeof e!=`object`||!e)return a;let o=[],s=[];for(let c of Object.keys(e)){let l=e[c],u=`${i===``?``:`${i}.`}${c}`,d=Zl(u,t),f=!1;if(typeof l==`function`){let e=l(d,t,u,r);e instanceof Promise?o.push({rulePath:u,promise:e}):a[u]=e}if(typeof l==`object`&&Array.isArray(d)){f=!0;for(let e=0;e<d.length;e++){let i=eu(l,t,n,r,`${u}.${e}`,a);i instanceof Promise&&s.push(i)}if(Ql in l){let e=l[Ql](d,t,u,r);e instanceof Promise?o.push({rulePath:u,promise:e}):a[u]=e}}if(typeof l==`object`&&typeof d==`object`&&d){if(!f){let e=eu(l,t,n,r,u,a);e instanceof Promise&&s.push(e)}if(Ql in l){let e=l[Ql](d,t,u,r);e instanceof Promise?o.push({rulePath:u,promise:e}):a[u]=e}}}return o.length===0&&s.length===0?a:(async()=>(await Promise.all(s),o.length>0&&(await Promise.allSettled(o.map(e=>e.promise))).forEach((e,t)=>{let{rulePath:r}=o[t];a[r]=e.status===`fulfilled`?e.value:n(e.reason)}),a))()}var tu=e=>e instanceof Error?e.message:String(e);function J(e,t,n=tu,r=new AbortController().signal){if(typeof e==`function`){let n=e(t);return n instanceof Promise?n.then($l):$l(n)}let i=eu(e,t,n,r);return i instanceof Promise?i.then($l):$l(i)}var nu=`__MANTINE_FORM_INDEX__`;function ru(e){return t=>{if(!t)e(t);else if(typeof t==`function`)e(t);else if(typeof t==`object`&&`nativeEvent`in t){let{currentTarget:n}=t;n instanceof HTMLInputElement?n.type===`checkbox`?e(n.checked):e(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&e(n.value)}else e(t)}}function iu(e){let[t,n]=(0,W.useState)(Yl(e)),r=(0,W.useRef)(t),i=(0,W.useCallback)(e=>{n(t=>{let n=Yl(typeof e==`function`?e(t):e);return r.current=n,n})},[]),a=(0,W.useCallback)(()=>i({}),[]),o=(0,W.useCallback)(e=>{r.current[e]!==void 0&&i(t=>{let n={...t};return delete n[e],n})},[t]);return{errorsState:t,setErrors:i,clearErrors:a,setFieldError:(0,W.useCallback)((e,t)=>{t==null||t===!1?o(e):r.current[e]!==t&&i(n=>({...n,[e]:t}))},[t]),clearFieldError:o}}function au(e,t){return e?`${e}-${t.toString()}`:t.toString()}function ou(e,t){if(typeof t!=`object`||!t)return{};let n={...t};return Object.keys(t).forEach(t=>{t.includes(`${String(e)}.`)&&delete n[t]}),n}function su(e,t){let n=e.substring(t.length+1).split(`.`)[0];return parseInt(n,10)}function cu(e,t,n,r){if(t===void 0)return n;let i=`${String(e)}`,a=n;r===-1&&(a=ou(`${i}.${t}`,a),delete a[`${i}.${t}`]);let o={...a},s=new Set;return Object.entries(a).filter(([e])=>{if(!e.startsWith(`${i}.`))return!1;let n=su(e,i);return!Number.isNaN(n)&&n>=t}).forEach(([e,t])=>{let n=su(e,i),a=e.replace(`${i}.${n}`,`${i}.${n+r}`);o[a]=t,s.add(a),s.has(e)||delete o[e]}),o}function lu(e,{from:t,to:n},r){let i=`${e}.${t}`,a=`${e}.${n}`,o={...r},s=new Set;return Object.keys(r).forEach(e=>{if(s.has(e))return;let t,n;if(e.startsWith(i)?(t=e,n=e.replace(i,a)):e.startsWith(a)&&(t=e.replace(a,i),n=e),t&&n){let e=o[t],r=o[n];r===void 0?delete o[t]:o[t]=r,e===void 0?delete o[n]:o[n]=e,s.add(t),s.add(n)}}),o}function uu(e,t,n){typeof n.value==`object`&&(n.value=du(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t===`__proto__`?Object.defineProperty(e,t,n):e[t]=n.value}function du(e){if(typeof e!=`object`)return e;var t=0,n,r,i,a=Object.prototype.toString.call(e);if(a===`[object Object]`?i=Object.create(e.__proto__||null):a===`[object Array]`?i=Array(e.length):a===`[object Set]`?(i=new Set,e.forEach(function(e){i.add(du(e))})):a===`[object Map]`?(i=new Map,e.forEach(function(e,t){i.set(du(t),du(e))})):a===`[object Date]`?i=new Date(+e):a===`[object RegExp]`?i=new RegExp(e.source,e.flags):a===`[object DataView]`?i=new e.constructor(du(e.buffer)):a===`[object ArrayBuffer]`?i=e.slice(0):a.slice(-6)===`Array]`&&(i=new e.constructor(e)),i){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)uu(i,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(i,n=r[t])&&i[n]===e[n]||uu(i,n,Object.getOwnPropertyDescriptor(e,n))}return i||e}function fu(e,t,n){let r=Xl(e);if(r.length===0)return n;let i=du(n);if(r.length===1)return i[r[0]]=t,i;let a=i[r[0]];for(let e=1;e<r.length-1;e+=1){if(a===void 0)return i;a=a[r[e]]}return a[r[r.length-1]]=t,i}function pu(e,{from:t,to:n},r){let i=Zl(e,r);if(!Array.isArray(i))return r;let a=[...i],o=i[t];return a.splice(t,1),a.splice(n,0,o),fu(e,a,r)}function mu(e,t,n,r){let i=Zl(e,r);if(!Array.isArray(i))return r;let a=[...i];return a.splice(typeof n==`number`?n:a.length,0,t),fu(e,a,r)}function hu(e,t,n){let r=Zl(e,n);return Array.isArray(r)?fu(e,r.filter((e,n)=>n!==t),n):n}function gu(e,t,n,r){let i=Zl(e,r);if(!Array.isArray(i)||i.length<=n)return r;let a=[...i];return a[n]=t,fu(e,a,r)}function _u({$values:e,$errors:t,$status:n,$watch:r}){return{reorderListItem:(0,W.useCallback)((i,a)=>{let o=e.refValues.current;n.clearFieldDirty(i),t.setErrors(e=>lu(i,a,e)),e.setValues({values:pu(i,a,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(o)},[]),removeListItem:(0,W.useCallback)((i,a)=>{let o=e.refValues.current;n.clearFieldDirty(i),t.setErrors(e=>cu(i,a,e,-1)),e.setValues({values:hu(i,a,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(o)},[]),insertListItem:(0,W.useCallback)((i,a,o)=>{let s=e.refValues.current;n.clearFieldDirty(i),t.setErrors(e=>cu(i,o,e,1)),e.setValues({values:mu(i,a,o,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(s)},[]),replaceListItem:(0,W.useCallback)((t,i,a)=>{let o=e.refValues.current;n.clearFieldDirty(t),e.setValues({values:gu(t,a,i,e.refValues.current),updateState:!0}),r.notifyWatchSubscribers(o)},[])}}function vu(e,t){let n=Object.keys(e);if(typeof t==`string`){let r=n.filter(e=>e.startsWith(`${t}.`));return e[t]||r.some(t=>e[t])||!1}return n.some(t=>e[t])}var yu=t(e(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))(),1);function bu({initialDirty:e,initialTouched:t,mode:n,$values:r}){let[i,a]=(0,W.useState)(t),[o,s]=(0,W.useState)(e),c=(0,W.useRef)(t),l=(0,W.useRef)(e),u=(0,W.useCallback)(e=>{let t=typeof e==`function`?e(c.current):e;c.current=t,n===`controlled`&&a(t)},[]),d=(0,W.useCallback)((e,t=!1)=>{let r=typeof e==`function`?e(l.current):e;l.current=r,(n===`controlled`||t)&&s(r)},[]),f=(0,W.useCallback)(()=>u({}),[]),p=(0,W.useCallback)(e=>{let t=e?{...r.refValues.current,...e}:r.refValues.current;r.setValuesSnapshot(t),d({})},[]),m=(0,W.useCallback)((e,t)=>{u(n=>vu(n,e)===t?n:{...n,[e]:t})},[]),h=(0,W.useCallback)((e,t,n)=>{d(n=>vu(n,e)===t?n:{...n,[e]:t},n)},[]),g=(0,W.useCallback)((e,t)=>{let n=vu(l.current,e),i=!(0,yu.default)(Zl(e,r.getValuesSnapshot()),t),a=ou(e,l.current);a[e]=i,d(a,n!==i)},[]);return{touchedState:i,dirtyState:o,touchedRef:c,dirtyRef:l,setTouched:u,setDirty:d,resetDirty:p,resetTouched:f,isTouched:(0,W.useCallback)(e=>vu(c.current,e),[c.current]),setFieldTouched:m,setFieldDirty:h,setTouchedState:a,setDirtyState:s,clearFieldDirty:(0,W.useCallback)(e=>d(t=>{if(typeof e!=`string`)return t;let n=ou(e,t);return delete n[e],(0,yu.default)(n,t)?t:n}),[]),isDirty:(0,W.useCallback)(e=>{if(e){let t=Zl(e,l.current);if(typeof t==`boolean`)return t;let n=Zl(e,r.refValues.current),i=Zl(e,r.valuesSnapshot.current);return!(0,yu.default)(n,i)}return Object.keys(l.current).length>0?vu(l.current):!(0,yu.default)(r.refValues.current,r.valuesSnapshot.current)},[l.current,r.refValues.current,r.valuesSnapshot.current]),getDirty:(0,W.useCallback)(()=>l.current,[l.current]),getTouched:(0,W.useCallback)(()=>c.current,[c.current]),setCalculatedFieldDirty:g}}function xu(){let[e,t]=(0,W.useState)({}),[n,r]=(0,W.useState)(!1),i=(0,W.useRef)({}),a=(0,W.useRef)(!1),o=(0,W.useRef)({}),s=(0,W.useCallback)((e,n)=>{i.current={...i.current,[e]:n},t({...i.current})},[]),c=(0,W.useCallback)(e=>{a.current=e,r(e)},[]),l=(0,W.useCallback)(e=>e?!!i.current[e]:a.current?!0:Object.values(i.current).some(Boolean),[i.current,a.current]),u=(0,W.useCallback)(e=>(o.current[e]?.abort(),o.current[e]=new AbortController,o.current[e].signal),[]),d=(0,W.useCallback)(()=>{i.current={},t({}),a.current=!1,r(!1),Object.values(o.current).forEach(e=>e.abort()),o.current={}},[]);return{validating:n||Object.values(e).some(Boolean),isValidating:l,setFieldValidating:s,setFormValidating:c,getAbortSignal:u,clearValidating:d}}function Su({initialValues:e,onValuesChange:t,mode:n}){let r=(0,W.useRef)(!1),[i,a]=(0,W.useState)(e||{}),o=(0,W.useRef)(i),s=(0,W.useRef)(i),c=(0,W.useCallback)(({values:e,subscribers:r,updateState:i=!0,mergeWithPreviousValues:s=!0})=>{let c=o.current,l=e instanceof Function?e(o.current):e,u=s?{...c,...l}:l;o.current=u,i&&(a(u),n===`uncontrolled`&&(o.current=u)),t?.(u,c),r?.filter(Boolean).forEach(e=>e({updatedValues:u,previousValues:c}))},[t]),l=(0,W.useCallback)(e=>{let t=Zl(e.path,o.current),n=e.value instanceof Function?e.value(t):e.value;if(t!==n){let t=o.current,r=fu(e.path,n,o.current);c({values:r,updateState:e.updateState}),e.subscribers?.filter(Boolean).forEach(n=>n({path:e.path,updatedValues:r,previousValues:t}))}},[c]),u=(0,W.useCallback)(e=>{s.current=e},[]),d=(0,W.useCallback)((e,t)=>{r.current||(r.current=!0,c({values:e,updateState:n===`controlled`}),u(e),t())},[c]);return{initialized:r,stateValues:i,refValues:o,valuesSnapshot:s,setValues:c,setFieldValue:l,resetValues:(0,W.useCallback)(()=>{c({values:s.current,updateState:!0,mergeWithPreviousValues:!1})},[c]),setValuesSnapshot:u,initialize:d,getValues:(0,W.useCallback)(()=>o.current,[o.current]),getValuesSnapshot:(0,W.useCallback)(()=>s.current,[s.current]),resetField:(0,W.useCallback)((e,t)=>{let r=Zl(e,s.current);r!==void 0&&l({path:e,value:r,updateState:n===`controlled`,subscribers:t})},[l,n])}}function Cu({$values:e,$status:t,cascadeUpdates:n}){let r=(0,W.useRef)({});return{subscribers:r,watch:(0,W.useCallback)((e,t)=>{(0,W.useEffect)(()=>(r.current[e]=r.current[e]||[],r.current[e].push(t),()=>{r.current[e]=r.current[e].filter(e=>e!==t)}),[t])},[]),useWatchValue:(0,W.useCallback)(t=>{let n=(0,W.useCallback)(e=>{let n=r.current,i=String(t),a=()=>e();return n[i]=n[i]||[],n[i].push(a),()=>{n[i]=n[i].filter(e=>e!==a)}},[t]),i=(0,W.useCallback)(()=>Zl(t,e.refValues.current),[t]);return(0,W.useSyncExternalStore)(n,i,i)},[]),getFieldSubscribers:(0,W.useCallback)(e=>{let i=r.current[e]?.map(n=>r=>n({previousValue:Zl(e,r.previousValues),value:Zl(e,r.updatedValues),touched:t.isTouched(e),dirty:t.isDirty(e)}))??[];for(let a in r.current){let o=String(e).startsWith(`${a}.`),s=String(a).startsWith(`${e}.`);(o||n&&s)&&i.push(...r.current[a].map(e=>n=>e({previousValue:Zl(a,n.previousValues),value:Zl(a,n.updatedValues),touched:t.isTouched(a),dirty:t.isDirty(a)})))}return i},[]),notifyWatchSubscribers:(0,W.useCallback)(n=>{Object.keys(r.current).forEach(i=>{Zl(i,e.refValues.current)!==Zl(i,n)&&r.current[i]?.forEach(r=>r({previousValue:Zl(i,n),value:Zl(i,e.refValues.current),touched:t.isTouched(i),dirty:t.isDirty(i)}))})},[])}}function wu(e,t){if(!t)return null;let n=e.split(`.`),r=t;for(let e=0;e<n.length;e++){let t=n[e];if(!/^\d+$/.test(t)){if(typeof r!=`object`||!r)return null;r=r[t]}}return typeof r==`function`?r:null}var Tu=e=>e instanceof Error?e.message:String(e);function Eu(e,t){let n=Object.keys(t).find(t=>e.split(`.`).every((e,n)=>e===t.split(`.`)[n]));return{hasError:!!n,error:n?t[n]:null}}function Du(e,t,n,r=Tu,i=new AbortController().signal){if(typeof e!=`string`)return{hasError:!1,error:null};if(typeof t==`function`){let a=J(t,n,r,i);return a instanceof Promise?a.then(t=>Eu(e,t.errors)):Eu(e,a.errors)}let a=wu(e,t);if(a){let t=Zl(e,n);try{let o=a(t,n,e,i);return o instanceof Promise?o.then(e=>e?{hasError:!0,error:e}:{hasError:!1,error:null},e=>({hasError:!0,error:r(e)})):o?{hasError:!0,error:o}:{hasError:!1,error:null}}catch(e){return{hasError:!0,error:r(e)}}}let o=J(t,n,r,i);return o instanceof Promise?o.then(t=>Eu(e,t.errors)):Eu(e,o.errors)}function Ou(e,t){return t?typeof t==`boolean`?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]+/g,`.${nu}`)):!1:!1}var ku=e=>e instanceof Error?e.message:String(e);function Au({name:e,mode:t=`controlled`,initialValues:n,initialErrors:r={},initialDirty:i={},initialTouched:a={},clearInputErrorOnChange:o=!0,validateInputOnChange:s=!1,validateInputOnBlur:c=!1,onValuesChange:l,transformValues:u=(e=>e),enhanceGetInputProps:d,validate:f,onSubmitPreventDefault:p=`always`,touchTrigger:m=`change`,cascadeUpdates:h=!1,validateDebounce:g=0,resolveValidationError:_=ku}={}){let v=iu(r),y=Su({initialValues:n,onValuesChange:l,mode:t}),b=bu({initialDirty:i,initialTouched:a,$values:y,mode:t}),x=Cu({$values:y,$status:b,cascadeUpdates:h}),S=_u({$values:y,$errors:v,$status:b,$watch:x}),C=xu(),[w,T]=(0,W.useState)(0),[E,D]=(0,W.useState)({}),[O,k]=(0,W.useState)(!1),A=(0,W.useRef)(0),j=(0,W.useRef)({});(0,W.useEffect)(()=>()=>{Object.values(j.current).forEach(clearTimeout)},[]);let ee=(0,W.useCallback)(()=>{let e=y.refValues.current;y.resetValues(),v.clearErrors(),b.resetDirty(),b.resetTouched(),C.clearValidating(),t===`uncontrolled`&&T(e=>e+1),x.notifyWatchSubscribers(e)},[]),te=(0,W.useCallback)(e=>{o&&v.clearErrors(),t===`uncontrolled`&&T(e=>e+1),x.notifyWatchSubscribers(e)},[o]),ne=(0,W.useCallback)(e=>{let n=y.refValues.current;y.initialize(e,()=>t===`uncontrolled`&&T(e=>e+1)),te(n)},[te]),re=(0,W.useMemo)(()=>{let e=e=>{let t=C.getAbortSignal(e),n=Du(e,f,y.refValues.current,_,t),r=n=>{t.aborted||(n.hasError?v.setFieldError(e,n.error):v.clearFieldError(e))};n instanceof Promise?(C.setFieldValidating(e,!0),n.then(r).finally(()=>{t.aborted||C.setFieldValidating(e,!1)})):r(n)};return t=>{clearTimeout(j.current[t]),g>0?j.current[t]=setTimeout(()=>e(t),g):e(t)}},[g,f,_]),ie=(0,W.useCallback)((e,n,r)=>{let i=Ou(e,s),a=n instanceof Function?n(Zl(e,y.refValues.current)):n;b.setCalculatedFieldDirty(e,a),m===`change`&&b.setFieldTouched(e,!0),!i&&o&&v.clearFieldError(e),y.setFieldValue({path:e,value:n,updateState:t===`controlled`,subscribers:[...x.getFieldSubscribers(e),i?()=>re(String(e)):null,r?.forceUpdate!==!1&&t!==`controlled`?()=>D(t=>({...t,[e]:(t[e]||0)+1})):null]})},[l,f,re]),M=(0,W.useCallback)(e=>{let n=y.refValues.current;y.setValues({values:e,updateState:t===`controlled`}),te(n)},[l,te]),ae=(0,W.useCallback)(()=>{let e=++A.current,t=C.getAbortSignal(`__form__`),n=t=>e===A.current?(v.setErrors(t.errors),t):{hasErrors:!1,errors:{}},r=()=>{e===A.current&&C.setFormValidating(!1)},i=J(f,y.refValues.current,_,t);return i instanceof Promise?(C.setFormValidating(!0),i.then(n).finally(r)):n(i)},[f,_]),oe=(0,W.useCallback)(e=>{let t=C.getAbortSignal(String(e)),n=n=>t.aborted?{hasError:!1,error:null}:(n.hasError?v.setFieldError(e,n.error):v.clearFieldError(e),n),r=()=>{t.aborted||C.setFieldValidating(String(e),!1)},i=Du(e,f,y.refValues.current,_,t);return i instanceof Promise?(C.setFieldValidating(String(e),!0),i.then(n).finally(r)):n(i)},[f,_]),se=(n,{type:r=`input`,withError:i=!0,withFocus:a,...o}={})=>{let s=a??r!==`radio`,l={onChange:ru(e=>ie(n,e,{forceUpdate:!1})),"data-path":au(e,n)};return i&&(l.error=v.errorsState[n]),r===`checkbox`?l[t===`controlled`?`checked`:`defaultChecked`]=Zl(n,y.refValues.current):r===`radio`?(l[t===`controlled`?`checked`:`defaultChecked`]=Zl(n,y.refValues.current)===o.value,l.value=o.value):l[t===`controlled`?`value`:`defaultValue`]=Zl(n,y.refValues.current),s&&(l.onFocus=()=>b.setFieldTouched(n,!0),l.onBlur=()=>{Ou(n,c)&&re(String(n))}),Object.assign(l,d?.({inputProps:l,field:n,options:{type:r,withError:i,withFocus:s,...o},form:N}))},ce=(e,t)=>n=>{p===`always`&&n?.preventDefault(),k(!0);let r=r=>{if(r.hasErrors)p===`validation-failed`&&n?.preventDefault(),t?.(r.errors,y.refValues.current,n),k(!1);else{let t=e?.(u(y.refValues.current),n);t instanceof Promise?t.finally(()=>k(!1)):k(!1)}},i=ae();i instanceof Promise?i.then(r).catch(()=>{k(!1)}):r(i)},le=e=>u(e||y.refValues.current),ue=(0,W.useCallback)(e=>{e.preventDefault(),ee()},[]),de=(0,W.useCallback)(e=>{let t=new AbortController().signal;if(e){let n=Du(e,f,y.refValues.current,_,t);return n instanceof Promise?n.then(e=>!e.hasError):!n.hasError}let n=J(f,y.refValues.current,_,t);return n instanceof Promise?n.then(e=>!e.hasErrors):!n.hasErrors},[f,_,y.refValues.current]),fe=e=>`${w}-${String(e)}-${E[String(e)]||0}`,pe=t=>document.querySelector(`[data-path="${au(e,t)}"]`),me=(0,W.useCallback)(e=>{y.resetField(e,[...x.getFieldSubscribers(e),t===`controlled`?null:()=>D(t=>({...t,[e]:(t[e]||0)+1}))])},[y.resetField,t,D]),N={watch:x.watch,useWatchValue:x.useWatchValue,initialized:y.initialized.current,values:t===`uncontrolled`?y.refValues.current:y.stateValues,getValues:y.getValues,getInitialValues:y.getValuesSnapshot,setInitialValues:y.setValuesSnapshot,resetField:me,initialize:ne,setValues:M,setFieldValue:ie,submitting:O,setSubmitting:k,validating:C.validating,isValidating:C.isValidating,errors:v.errorsState,setErrors:v.setErrors,setFieldError:v.setFieldError,clearFieldError:v.clearFieldError,clearErrors:v.clearErrors,resetDirty:b.resetDirty,setTouched:b.setTouched,setDirty:b.setDirty,isTouched:b.isTouched,resetTouched:b.resetTouched,isDirty:b.isDirty,getTouched:b.getTouched,getDirty:b.getDirty,reorderListItem:S.reorderListItem,insertListItem:S.insertListItem,removeListItem:S.removeListItem,replaceListItem:S.replaceListItem,reset:ee,validate:ae,validateField:oe,getInputProps:se,onSubmit:ce,onReset:ue,isValid:de,getTransformedValues:le,key:fe,getInputNode:pe};return Jl(e,N),N}var ju={position:`relative`,flex:1.05,overflow:`hidden`,background:`linear-gradient(140deg, var(--mantine-color-brand-9) 0%, var(--mantine-color-brand-8) 45%, var(--mantine-color-brand-6) 100%)`,color:`#fff`},Mu={position:`absolute`,inset:0,background:`radial-gradient(circle at 26% 16%, rgba(255,255,255,0.16), transparent 46%), radial-gradient(circle at 88% 92%, rgba(255,255,255,0.08), transparent 42%)`,pointerEvents:`none`},Nu={background:`rgba(255,255,255,0.14)`,color:`#fff`,border:`1px solid rgba(255,255,255,0.18)`},Pu={background:`var(--mantine-color-body)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`safe center`,paddingInline:`var(--mantine-spacing-xl)`,paddingBlock:`var(--mantine-spacing-xl)`,overflowY:`auto`},Fu=[{icon:oe,title:`Temps réel natif`,desc:`HTTP et WebSocket, co-citoyens dans le même contexte.`},{icon:ds,title:`Observabilité totale`,desc:`Métriques, logs et traces — en direct.`},{icon:ac,title:`Zero Trust`,desc:`Sécurité par défaut, vos données protégées.`}];function Iu({children:e}){return(0,G.jsxs)(Ir,{mih:`100vh`,align:`stretch`,children:[(0,G.jsxs)(T,{visibleFrom:`md`,style:ju,children:[(0,G.jsx)(T,{style:Mu,"aria-hidden":!0}),(0,G.jsxs)(Ir,{direction:`column`,justify:`space-between`,h:`100%`,p:48,style:{position:`relative`},children:[(0,G.jsxs)(A,{gap:14,align:`center`,children:[(0,G.jsx)(pl,{height:42}),(0,G.jsx)(B,{fw:700,fz:26,c:`white`,lh:1,children:`Nodefony Studio`})]}),(0,G.jsxs)(F,{gap:`xl`,maw:480,children:[(0,G.jsxs)(F,{gap:`sm`,children:[(0,G.jsx)(B,{fz:{base:34,lg:42},fw:800,lh:1.12,c:`white`,children:`Le temps réel, nativement.`}),(0,G.jsx)(B,{fz:`lg`,c:`rgba(255,255,255,0.82)`,children:`Observez, comprenez et contrôlez chaque sous-système de Nodefony — en direct.`})]}),(0,G.jsx)(F,{gap:`lg`,children:Fu.map(e=>(0,G.jsxs)(A,{gap:`md`,wrap:`nowrap`,align:`flex-start`,children:[(0,G.jsx)(wt,{size:42,radius:`md`,style:Nu,children:(0,G.jsx)(e.icon,{size:22,stroke:1.7})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(B,{fw:600,c:`white`,children:e.title}),(0,G.jsx)(B,{size:`sm`,c:`rgba(255,255,255,0.78)`,children:e.desc})]})]},e.title))})]}),(0,G.jsxs)(A,{justify:`space-between`,children:[(0,G.jsx)(B,{size:`xs`,c:`rgba(255,255,255,0.65)`,children:`Nodefony 10 · licence Apache 2.0`}),(0,G.jsx)(mt,{href:`https://github.com/nodefony/nodefony-core`,target:`_blank`,rel:`noreferrer noopener`,c:`rgba(255,255,255,0.7)`,children:(0,G.jsxs)(A,{gap:6,children:[(0,G.jsx)(Ce,{size:16}),(0,G.jsx)(B,{size:`xs`,children:`GitHub`})]})})]})]})]}),(0,G.jsx)(T,{flex:1,style:Pu,children:(0,G.jsxs)(F,{gap:`xl`,w:`100%`,maw:400,children:[(0,G.jsxs)(A,{gap:8,hiddenFrom:`md`,justify:`center`,children:[(0,G.jsx)(pl,{height:30}),(0,G.jsx)(B,{fw:700,size:`lg`,c:`brand`,children:`Nodefony Studio`})]}),e]})})]})}var Lu=`/nodefony/security/api/totp/enroll`,Ru=`/nodefony/security/api/totp/confirm`,zu=`/nodefony/security/api/totp/disable`,Bu=`/nodefony/security/api/totp/status`,Vu=/^\d{6}$/;function Hu(e){let t=e.trim();return t.length===0?`Saisissez le code de votre application.`:Vu.test(t)||/^[A-Za-z0-9]{5}-?[A-Za-z0-9]{5}$/.test(t)?null:`Code à 6 chiffres, ou code de récupération XXXXX-XXXXX.`}function Uu(e){switch(e.status??e.code){case 400:return`Code invalide ou expiré. Réessayez avec le code courant.`;case 401:return`Session expirée — reconnectez-vous.`;case 403:return`Action non autorisée.`;case 503:return`2FA indisponible sur ce serveur.`;case 404:return`Service 2FA introuvable.`;case void 0:default:return e instanceof Error?e.message:`Erreur inattendue.`}}var Wu=30,Gu={ping:`Vérification du serveur…`,auth:`Authentification…`,user:`Chargement du profil…`,realtime:`Connexion temps réel…`,done:`Prêt`},Ku={google:{label:`Google`,Icon:hs},github:{label:`GitHub`,Icon:Ce}};function qu(e){return Ku[e]?.Icon??ac}function Ju(e){return e!==``&&e!==`password`&&e!==`passkey`}function Yu(e){try{localStorage.setItem(Wt,e)}catch{}window.location.assign(`/nodefony/security/api/oauth2/${e}/authorize`)}function Xu(){try{return localStorage.getItem(`nf.studio.lastUser`)??``}catch{return``}}function Y(){try{return localStorage.getItem(`nf.studio.lastMethod`)??``}catch{return``}}function Zu(e,t){if(Ju(e)){let n=t.find(t=>t.name===e)?.label??Ku[e]?.label??e;return{Icon:qu(e),label:`via ${n}`}}return e===`passkey`?{Icon:js,label:`Passkey`}:{Icon:uc,label:`Compte`}}function X(e){let t=e?.body;if(t&&typeof t==`object`){let e=t,n=e.retryAfter??e.error?.retryAfter;if(typeof n==`number`&&n>0)return Math.ceil(n)}return null}function Z(e,t){let n=e?.status;return n===429?{kind:`throttle`,message:``,retryAfter:X(e)??Wu}:n===void 0?{kind:`network`,message:`Impossible de joindre le serveur. Vérifiez votre connexion réseau.`}:n>=500?{kind:`server`,message:`Le serveur a rencontré une erreur. Réessayez dans un instant.`}:t===`auth`&&(n===401||n===403)?{kind:`credentials`,message:`Identifiant ou mot de passe incorrect.`}:{kind:`unknown`,message:e instanceof Error&&e.message?e.message:`Une erreur est survenue. Réessayez.`}}function Q({social:e,onSocial:t,onPasskey:n,busy:r,disabled:i,exclude:a}){let o=e.filter(e=>e.name!==a);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ut,{label:`ou`,labelPosition:`center`,my:4}),o.map(({name:e,label:n})=>{let a=qu(e);return(0,G.jsxs)(st,{size:`md`,fullWidth:!0,variant:`default`,onClick:()=>t(e),disabled:i||r,leftSection:(0,G.jsx)(a,{size:18}),children:[`Continuer avec `,n]},e)}),a!==`passkey`&&(0,G.jsx)(st,{size:`md`,fullWidth:!0,variant:`default`,onClick:n,loading:r,disabled:i,leftSection:(0,G.jsx)(js,{size:18}),children:`Passkey / empreinte digitale`}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,ta:`center`,children:o.length>0?`Connexion via un fournisseur externe (OAuth 2.0) ou sans mot de passe (WebAuthn / FIDO2).`:`Connexion sans mot de passe (WebAuthn / FIDO2) — biométrie ou clé de sécurité.`})]})}var Qu=ar(()=>{let e=yn(),t=Tn(),n=H(),r=Nt(),i=Ft(),a=(0,W.useMemo)(Xu,[]),o=(0,W.useMemo)(Y,[]),s=a||``,[c,l]=(0,W.useState)(a?`password`:`identifier`),[d,f]=(0,W.useState)(s),[p,m]=(0,W.useState)(!1),[h,_]=(0,W.useState)(!1),[v,y]=(0,W.useState)(``),[b,x]=(0,W.useState)(!1),[S,C]=(0,W.useState)(`ping`),[w,E]=(0,W.useState)(!1),[D,O]=(0,W.useState)(null),[k,j]=(0,W.useState)(null),[ee,te]=(0,W.useState)(null),[,ne]=(0,W.useState)(0);(0,W.useEffect)(()=>{if(ee===null)return;let e=window.setInterval(()=>{Date.now()>=ee?te(null):ne(e=>e+1)},500);return()=>window.clearInterval(e)},[ee]);let re=ee?Math.max(0,Math.ceil((ee-Date.now())/1e3)):0,M=re>0,[ae,oe]=(0,W.useState)(null);(0,W.useEffect)(()=>{let e=!0;return i.api.get(`/health`).then(()=>e&&oe(!0)).catch(()=>e&&oe(!1)),()=>{e=!1}},[i]);let[se,le]=(0,W.useState)([]);(0,W.useEffect)(()=>{let e=!0;return i.api.getAbsolute(`/nodefony/security/api/oauth2/providers`).then(t=>{if(!e)return;let n=Array.isArray(t?.providers)?t.providers:[];le(n.filter(e=>typeof e?.name==`string`&&e.name!==``))}).catch(()=>{}),()=>{e=!1}},[i]),(0,W.useEffect)(()=>{new URLSearchParams(t.search).get(`error`)===`oauth`&&(j(`credentials`),O(`La connexion via le fournisseur externe a échoué. Réessayez.`))},[t.search]);let ue=(0,W.useRef)(null),de=(0,W.useRef)(null),fe=Au({initialValues:{password:``}});(0,W.useEffect)(()=>{w||(c===`identifier`?ue.current?.focus():de.current?.focus())},[c,w]);let me=()=>{D&&O(null),k&&j(null)},N=()=>{let e=d.trim();if(!e){j(`unknown`),O(`Identifiant requis.`),ue.current?.focus();return}try{localStorage.setItem(Pt,e)}catch{}me(),l(`password`)},P=()=>{me(),fe.reset(),m(!0),l(`identifier`)},he=async()=>{C(`user`),await new Promise(e=>setTimeout(e,150)),C(`realtime`),await r.connect(),C(`done`);let i=t.state?.from;e(i&&i!==`/nodefony`&&i!==`/nodefony/login`?i:n.homePath,{replace:!0})},ge=(e,t)=>{let n=Z(e,t);n.kind===`throttle`?(te(Date.now()+(n.retryAfter??Wu)*1e3),j(`throttle`),O(null)):(j(n.kind),O(n.message))},_e=async e=>{E(!0),me();let t=`ping`;try{if(t=`ping`,C(`ping`),await i.api.get(`/health`),t=`auth`,C(`auth`),await n.login({username:d.trim(),password:e})===`mfa_required`){y(``),x(!1),l(`totp`);return}t=`user`,await he()}catch(e){ge(e,t)}finally{E(!1)}},I=async e=>{if(!(w||M)){E(!0),me();try{C(`auth`),await n.completeMfa(e),await he()}catch(e){e?.status===429?ge(e,`auth`):(j(`credentials`),O(`Code incorrect ou expiré. Réessayez avec le code courant.`),y(``))}finally{E(!1)}}},L=async()=>{if(!(w||M)){E(!0),me();try{C(`auth`),await n.loginWithPasskey(),C(`realtime`),await r.connect(),C(`done`);let i=t.state?.from;e(i&&i!==`/nodefony`&&i!==`/nodefony/login`?i:n.homePath,{replace:!0})}catch(e){if(e instanceof Error&&(e.name===`NotAllowedError`||e.name===`AbortError`))return;if(e instanceof Error&&e.name===`SecurityError`){j(`unknown`),O(`Passkey indisponible sur cette adresse. Ouvre Studio via https://localhost:5152 — les passkeys n'acceptent pas une IP comme 127.0.0.1.`);return}let t=Z(e,`auth`);t.kind===`throttle`?(te(Date.now()+(t.retryAfter??Wu)*1e3),j(`throttle`),O(null)):(j(t.kind),O(t.message))}finally{E(!1)}}},R=ae===null?`var(--mantine-color-gray-5)`:ae?`var(--mantine-color-teal-5)`:`var(--mantine-color-red-5)`,ve=ae===null?`Vérification du serveur…`:ae?`Serveur en ligne`:`Serveur injoignable`,z=M?{color:`yellow`,icon:(0,G.jsx)(Ss,{size:16}),title:`Trop de tentatives`,body:`Pour votre sécurité, patientez ${re}s avant un nouvel essai.`}:D?{color:k===`network`?`orange`:`red`,icon:k===`network`?(0,G.jsx)(hc,{size:16}):k===`server`?(0,G.jsx)(ce,{size:16}):(0,G.jsx)(g,{size:16}),title:k===`network`?`Connexion impossible`:k===`server`?`Erreur serveur`:`Connexion échouée`,body:D}:null,ye=fe.getInputProps(`password`),be=p?`password`:o,xe=Ju(be),Se=be===`passkey`,Ce=Zu(be,se),we=Ce.Icon,Te=!xe&&(!Se||h),Ee=xe?`Continuer avec ${Ce.label.replace(/^via /,``)}`:``;return(0,G.jsx)(Iu,{children:(0,G.jsxs)(F,{gap:`lg`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(ie,{order:1,fz:28,fw:700,children:`Connexion`}),(0,G.jsx)(B,{c:`dimmed`,size:`sm`,mt:4,children:`Accédez à la console d'administration Nodefony Studio.`})]}),(0,G.jsxs)(F,{gap:`sm`,children:[(0,G.jsx)(T,{mih:64,children:z&&(0,G.jsxs)(A,{role:`alert`,gap:`sm`,wrap:`nowrap`,align:`flex-start`,p:`sm`,style:{borderRadius:8,background:`var(--mantine-color-${z.color}-light)`,borderInlineStart:`3px solid var(--mantine-color-${z.color}-6)`},children:[(0,G.jsx)(T,{style:{color:`var(--mantine-color-${z.color}-7)`,lineHeight:0,marginTop:2},children:z.icon}),(0,G.jsx)(B,{size:`sm`,c:`${z.color}.8`,children:z.body})]})}),c===`totp`?(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsxs)(A,{gap:`sm`,wrap:`nowrap`,children:[(0,G.jsx)(wt,{size:34,radius:`xl`,variant:`light`,color:`brand`,children:(0,G.jsx)(ac,{size:18})}),(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(B,{size:`sm`,fw:600,children:`Vérification en deux étapes`}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,children:b?`Saisissez un de vos codes de récupération.`:`Saisissez le code de votre application d'authentification.`})]})]}),b?(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault();let t=v.trim(),n=Hu(t);if(n){j(`unknown`),O(n);return}I(t)},children:(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(u,{size:`md`,label:`Code de récupération`,placeholder:`XXXXX-XXXXX`,autoComplete:`one-time-code`,value:v,disabled:w,onChange:e=>{y(e.currentTarget.value),me()}}),(0,G.jsx)(st,{type:`submit`,size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:w?void 0:(0,G.jsx)(Vs,{size:18}),children:w?Gu[S]:M?`Réessayez dans ${re}s`:`Vérifier`})]})}):(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(A,{justify:`center`,w:`100%`,children:(0,G.jsx)(Bi,{length:6,type:`number`,inputType:`tel`,inputMode:`numeric`,oneTimeCode:!0,autoFocus:!0,size:`lg`,gap:`md`,styles:{input:{textAlign:`center`}},"aria-label":`Code à 6 chiffres`,value:v,disabled:w,onChange:y,onComplete:e=>{!w&&!M&&I(e)}})}),(0,G.jsx)(st,{fullWidth:!0,size:`md`,color:`brand`,loading:w,disabled:M||v.length!==6,leftSection:w?void 0:(0,G.jsx)(Vs,{size:18}),onClick:()=>{!w&&!M&&I(v)},children:w?Gu[S]:M?`Réessayez dans ${re}s`:`Vérifier`})]}),(0,G.jsxs)(A,{justify:`space-between`,children:[(0,G.jsx)(mt,{component:`button`,type:`button`,size:`xs`,c:`dimmed`,onClick:()=>{x(e=>!e),y(``),me()},children:b?`Utiliser le code de l'application`:`Utiliser un code de récupération`}),(0,G.jsx)(mt,{component:`button`,type:`button`,size:`xs`,c:`dimmed`,onClick:()=>{n.cancelMfa(),y(``),x(!1),me(),l(a?`password`:`identifier`)},children:`Annuler`})]})]}):c===`identifier`?(0,G.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),N()},children:(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(u,{ref:ue,size:`md`,label:`Identifiant`,placeholder:`admin`,leftSection:(0,G.jsx)(uc,{size:16}),autoComplete:`username`,value:d,onChange:e=>{f(e.currentTarget.value),me()}}),(0,G.jsx)(st,{type:`submit`,size:`md`,fullWidth:!0,color:`brand`,rightSection:(0,G.jsx)(vt,{size:18}),children:`Continuer`}),(0,G.jsx)(Q,{social:se,onSocial:Yu,onPasskey:()=>void L(),busy:w,disabled:M})]})}):(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(pe,{withBorder:!0,radius:`md`,p:`xs`,children:(0,G.jsxs)(A,{justify:`space-between`,wrap:`nowrap`,children:[(0,G.jsxs)(A,{gap:`sm`,wrap:`nowrap`,style:{minWidth:0},children:[(0,G.jsx)(wt,{size:34,radius:`xl`,variant:`light`,color:`brand`,children:(0,G.jsx)(we,{size:18})}),(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(B,{size:`sm`,fw:600,truncate:!0,children:d}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,children:Ce.label})]})]}),(0,G.jsx)(st,{variant:`subtle`,size:`xs`,onClick:P,disabled:w,children:`Changer`})]})}),Te?(0,G.jsx)(`form`,{onSubmit:fe.onSubmit(e=>{if(!(w||M)){if(!e.password){j(`unknown`),O(`Mot de passe requis.`),de.current?.focus();return}_e(e.password)}}),children:(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsx)(Pi,{...ye,ref:de,size:`md`,label:`Mot de passe`,placeholder:`••••••••`,leftSection:(0,G.jsx)(at,{size:16}),autoComplete:`current-password`,disabled:w,onChange:e=>{fe.setFieldValue(`password`,e.currentTarget.value,{forceUpdate:!1}),me()}}),(0,G.jsx)(st,{type:`submit`,size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:w?void 0:(0,G.jsx)(Vs,{size:18}),children:w?Gu[S]:M?`Réessayez dans ${re}s`:`Se connecter`})]})}):Se?(0,G.jsxs)(F,{gap:`xs`,children:[(0,G.jsx)(st,{size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:(0,G.jsx)(js,{size:18}),onClick:()=>void L(),children:`Continuer avec une passkey`}),(0,G.jsx)(st,{variant:`subtle`,size:`sm`,fullWidth:!0,leftSection:(0,G.jsx)(at,{size:16}),onClick:()=>_(!0),children:`Se connecter avec un mot de passe`})]}):(0,G.jsx)(st,{size:`md`,fullWidth:!0,color:`brand`,loading:w,disabled:M,leftSection:(0,G.jsx)(we,{size:18}),onClick:()=>Yu(be),children:Ee}),(0,G.jsx)(Q,{social:se,onSocial:Yu,onPasskey:()=>void L(),busy:w,disabled:M,exclude:Te?void 0:be})]})]}),(0,G.jsxs)(A,{justify:`space-between`,mt:`xs`,children:[(0,G.jsxs)(A,{gap:7,children:[(0,G.jsx)(T,{w:8,h:8,style:{borderRadius:`50%`,background:R},"aria-hidden":!0}),(0,G.jsx)(B,{size:`xs`,c:`dimmed`,children:ve})]}),!1]})]})})});function $u({title:e,description:t,phase:n,legacyRef:r,children:i}){return(0,G.jsxs)(F,{gap:`md`,children:[(0,G.jsxs)(A,{justify:`space-between`,align:`flex-end`,children:[(0,G.jsxs)(F,{gap:4,children:[(0,G.jsx)(ie,{order:1,size:`h2`,children:e}),t&&(0,G.jsx)(B,{c:`dimmed`,size:`sm`,children:t})]}),n&&(0,G.jsx)(Te,{color:`brand`,variant:`light`,size:`lg`,children:n})]}),(0,G.jsxs)(xe,{color:`yellow`,icon:(0,G.jsx)(ws,{size:18}),variant:`light`,children:[`Page en attente d'implémentation. Stub généré à partir du legacy`,` `,(0,G.jsx)(B,{span:!0,fw:600,children:`monitoring-bundle`}),r&&(0,G.jsxs)(G.Fragment,{children:[` `,`— ref :`,` `,(0,G.jsx)(B,{span:!0,ff:`monospace`,size:`sm`,children:r})]}),`.`]}),i&&(0,G.jsx)(Ye,{withBorder:!0,radius:`md`,p:`md`,children:i})]})}var ed=()=>(0,G.jsx)($u,{title:`Services`,description:`Container DI — services enregistrés, scope, dépendances.`,phase:`P10.10`,legacyRef:`monitoring-bundle/views/service/`}),td=()=>(0,G.jsx)($u,{title:`NPM`,description:`Dépendances installées, vulnérabilités, audit, outdated.`,phase:`P10.10`,legacyRef:`monitoring-bundle/views/npm/`}),nd=()=>(0,G.jsx)($u,{title:`Settings`,description:`Préférences UI (theme, sidebar), tokens API, locale, notifications.`,phase:`P10.7`}),rd=()=>(0,G.jsx)($u,{title:`Agents`,description:`Orchestrateur + sous-agents (@Agent/@Tool), streaming AsyncGenerator, abort. Module @nodefony/agent.`,phase:`P12.2 + P12.5`}),id=()=>(0,G.jsx)($u,{title:`Knowledge (RAG)`,description:`Pipeline RAG + citation des sources (traçabilité AI Act). Module @nodefony/rag.`,phase:`P12.1.4 + P12.5`}),ad=()=>(0,G.jsx)($u,{title:`LLM Providers`,description:`ILLMProvider + adapters (OpenAI, Mistral EU, Groq, Ollama souverain). Mode air-gap. Module @nodefony/llm.`,phase:`P12.1.1 + P12.5`}),od=()=>(0,G.jsx)($u,{title:`Vector Stores`,description:`Adapters pgvector / Qdrant / Chroma via orm-core+Drizzle. Module @nodefony/vector.`,phase:`P12.1.3 + P12.5`}),sd=()=>(0,G.jsx)($u,{title:`Memory`,description:`Mémoire des agents — court / long / épisodique, storée via orm-core. Module @nodefony/memory.`,phase:`P12.1.5 + P12.5`}),cd=()=>(0,G.jsx)($u,{title:`MCP`,description:`Model Context Protocol — server + client JSON-RPC 2.0 (standard Anthropic). Module @nodefony/mcp.`,phase:`P12.3 + P12.5`}),ld=()=>(0,G.jsx)($u,{title:`Agent Guard`,description:`Gouvernance IA (différenciateur) : zones, détection PII, circuit breaker, audit signé. Module @nodefony/agent-guard.`,phase:`P12.4 + P12.5`}),ud=()=>(0,G.jsx)($u,{title:`Approvals`,description:`Validation humaine obligatoire en zones restricted (human-in-the-loop, AI Act).`,phase:`P12.4 + P12.5`}),dd=()=>(0,G.jsx)($u,{title:`AI Audit`,description:`Journal signé des décisions IA — traçabilité, sources, contrôle humain (conformité AI Act).`,phase:`P12.4 + P12.5`}),fd=()=>(0,G.jsx)($u,{title:`Costs`,description:`Coûts par modèle / agent / requête (tokens, latence), budgets et alertes.`,phase:`P12.5`}),pd=()=>(0,G.jsx)($u,{title:`AI Insights`,description:`L'agent analyse les sondes (flux ORM, santé, supervision) via le broker et publie des insights (canal ai:insights).`,phase:`P12.5`}),md=()=>(0,G.jsx)($u,{title:`404 — Page introuvable`,description:`La page demandée n'existe pas dans Studio.`}),hd=(0,W.lazy)(()=>U(()=>import(`./DashboardSupervision-1K-w_nFr.js`).then(e=>({default:e.DashboardSupervision})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))),gd=(0,W.lazy)(()=>U(()=>import(`./RealtimeConsole-BTMfj3OA.js`).then(e=>({default:e.RealtimeConsole})),__vite__mapDeps([19,1,2,3,4,5,7,10,20,21,22,14,23,24,25,26]))),_d=(0,W.lazy)(()=>U(()=>import(`./Cluster-Bg13dzfH.js`).then(e=>({default:e.Cluster})),__vite__mapDeps([27,1,2,3,4,5,10,28,26]))),vd=(0,W.lazy)(()=>U(()=>import(`./Runtime-CJ-J-qqR.js`).then(e=>({default:e.Runtime})),__vite__mapDeps([29,1,2,3,4,5,30,10,11,31,32,25,33]))),yd=(0,W.lazy)(()=>U(()=>import(`./Chat-BHbLjGWU.js`).then(e=>({default:e.Chat})),__vite__mapDeps([34,1,2,3,4,5,35,10,36]))),bd=(0,W.lazy)(()=>U(()=>import(`./Logs-BU-n0cyD.js`).then(e=>({default:e.Logs})),__vite__mapDeps([37,1,2,3,4,5,6,38,39,10,28,40,41,20,42,43,44,45,46,15,47,25,48,49,50,51,52,53]))),xd=(0,W.lazy)(()=>U(()=>import(`./TraceView-eFGMNHjt.js`).then(e=>({default:e.TraceView})),__vite__mapDeps([54,1,2,3,4,5,38,10,28,40,20,12,21,55,56,57,48,58,50,51,52,25,53]))),Sd=(0,W.lazy)(()=>U(()=>import(`./System-BzBCQ1iv.js`).then(e=>({default:e.System})),__vite__mapDeps([59,1,2,3,4,5,60,38,10,61,47]))),Cd=(0,W.lazy)(()=>U(()=>import(`./Modules-CSvoNGnP.js`).then(e=>({default:e.Modules})),__vite__mapDeps([62,1,2,3,4,5,9,10,28,51,63,64,55,45,65,25]))),wd=(0,W.lazy)(()=>U(()=>import(`./ModuleDetail-DkBkn-jF.js`).then(e=>({default:e.ModuleDetail})),__vite__mapDeps([66,1,2,3,4,5,7,8,9,10,28,51,63,12,64,42,55,47,65,67,25,68,69,24,70]))),Td=(0,W.lazy)(()=>U(()=>import(`./ConfigPage-CXwJhRvg.js`).then(e=>({default:e.ConfigPage})),__vite__mapDeps([71,1,2,3,4,5,7,10,28,72,25,70]))),Ed=(0,W.lazy)(()=>U(()=>import(`./StoresView-DiieKSbl.js`).then(e=>({default:e.StoresView})),__vite__mapDeps([73,1,2,3,4,5,30,7,10,74,75,45,76,26,77,17]))),Dd=(0,W.lazy)(()=>U(()=>import(`./RoutesView-BffKaDen.js`).then(e=>({default:e.RoutesView})),__vite__mapDeps([78,1,2,3,4,5,10,28,79,49]))),Od=(0,W.lazy)(()=>U(()=>import(`./Playground-ThiCcJm4.js`).then(e=>({default:e.Playground})),__vite__mapDeps([80,1,2,3,4,5,60,38,35,10,28,36,53]))),kd=(0,W.lazy)(()=>U(()=>import(`./Create-CqrsaTCZ.js`).then(e=>({default:e.Create})),__vite__mapDeps([81,1,2,3,4,5,38,82,30,83,10,41,84,45,85]))),Ad=(0,W.lazy)(()=>U(()=>import(`./Database-CxO_mXnV.js`).then(e=>({default:e.Database})),__vite__mapDeps([86,1,2,3,4,5,10,28,75,18]))),jd=(0,W.lazy)(()=>U(()=>import(`./OrmEntity-9-kn7IBT.js`).then(e=>({default:e.OrmEntity})),__vite__mapDeps([87,1,2,3,4,5,10,28,12]))),Md=(0,W.lazy)(()=>U(()=>import(`./Migrations-Pg3PGhBR.js`).then(e=>({default:e.Migrations})),__vite__mapDeps([88,1,2,3,4,5,30,10,22,47,89]))),Nd=(0,W.lazy)(()=>U(()=>import(`./OrmOverview-CCONZuF6.js`).then(e=>({default:e.OrmOverview})),__vite__mapDeps([90,1,2,3,4,5,7,8,10,28,51,91,11,14,44,92,17,89,75,25,26,16,93]))),Pd=(0,W.lazy)(()=>U(()=>import(`./OrmConnector-Rm9B7iAc.js`).then(e=>({default:e.OrmConnector})),__vite__mapDeps([94,1,2,3,4,5,38,10,28,12,91,11,51,14,44,92,17,89,75,25,26,93]))),Fd=(0,W.lazy)(()=>U(()=>import(`./OrmWorker-C3fi5d2Z.js`).then(e=>({default:e.OrmWorker})),__vite__mapDeps([95,1,2,3,4,5,8,10,28,12,91,11,51,14,44,92,17,89,26,16]))),Id=(0,W.lazy)(()=>U(()=>import(`./Documentation-CRwPjyFD.js`).then(e=>({default:e.Documentation})),__vite__mapDeps([96,1,2,3,4,5,10,69,55,24]))),Ld=(0,W.lazy)(()=>U(()=>import(`./Roadmap-aKJSkXVH.js`).then(e=>({default:e.Roadmap})),__vite__mapDeps([97,2,1,3,4,5]))),Rd=(0,W.lazy)(()=>U(()=>import(`./Workspace-CVqdqN0T.js`).then(e=>({default:e.Workspace})),__vite__mapDeps([98,1,2,3,4,5,38,39,10,84,12,99,6,7,8,11,13,14,32,92,46,25,33,26,100,58,16,18,50,51,52,101,23,85]))),zd=(0,W.lazy)(()=>U(()=>import(`./Twin-DGBkMLkG.js`).then(e=>({default:e.Twin})),__vite__mapDeps([102,1,2,3,4,5,82,10,28,31,64,99,6,38,7,8,11,13,14,32,92,46,25,33,26,100,58,16,18,50,51,52,103,36,90,91,44,17,89,75,93]))),Bd=(0,W.lazy)(()=>U(()=>import(`./Audit-CbMYSYAb.js`).then(e=>({default:e.Audit})),__vite__mapDeps([104,1,2,3,4,5,10,28,56,57,48,58,105,77]))),Vd=(0,W.lazy)(()=>U(()=>import(`./Firewall-DKSXFtBS.js`).then(e=>({default:e.Firewall})),__vite__mapDeps([106,1,2,3,4,5,10,57,79,56,48,58,107]))),Hd=(0,W.lazy)(()=>U(()=>import(`./Roles-D9JJBaTz.js`).then(e=>({default:e.Roles})),__vite__mapDeps([108,1,2,3,4,5,10,67,107,109]))),Ud=(0,W.lazy)(()=>U(()=>import(`./ApiKeys-CLgPrHXW.js`).then(e=>({default:e.ApiKeys})),__vite__mapDeps([110,1,2,3,4,5,30,83,10,57,14,76,85,33,49,100,105,77]))),Wd=(0,W.lazy)(()=>U(()=>import(`./Sessions-CKgDTx0_.js`).then(e=>({default:e.Sessions})),__vite__mapDeps([111,1,2,3,4,5,30,10,57,112,52,76,79,48,49,105,77]))),Gd=(0,W.lazy)(()=>U(()=>import(`./Users-XiVaCk3I.js`).then(e=>({default:e.Users})),__vite__mapDeps([113,1,2,3,4,5,30,83,10,28,112,76,49,105,77,107,114,48,109]))),Kd=(0,W.lazy)(()=>U(()=>import(`./Profile-DYpegV81.js`).then(e=>({default:e.Profile})),__vite__mapDeps([115,1,2,3,4,5,10,79,116,114,112,48]))),qd=(0,W.lazy)(()=>U(()=>import(`./UserProfile-CQGihbkO.js`).then(e=>({default:e.UserProfile})),__vite__mapDeps([117,1,2,3,4,5,83,10,28,12,79,116,114,112,48]))),Jd=(0,W.lazy)(()=>U(()=>import(`./Webhooks-DmqBgPUA.js`).then(e=>({default:e.Webhooks})),__vite__mapDeps([118,1,2,3,4,5,60,38,35,30,83,10,20,21,14,101,43,76,15,47,85,49,105,77]))),Yd=new It,Xd=ar(()=>{let e=H();return(0,G.jsx)(to,{to:e.homePath,replace:!0})}),Zd=zo([{path:`/nodefony/login`,element:(0,G.jsx)(Qu,{})},{path:`/nodefony`,element:(0,G.jsx)(Mc,{}),children:[{element:(0,G.jsx)(Wl,{}),children:[{index:!0,element:(0,G.jsx)(Xd,{})},{path:`profile`,element:(0,G.jsx)(Kd,{})},{path:`workspace`,element:(0,G.jsx)(Rd,{})},{path:`api-keys`,element:(0,G.jsx)(Ud,{})},{path:`sessions`,element:(0,G.jsx)(Wd,{})},{path:`settings`,element:(0,G.jsx)(nd,{})},{path:`dev`,element:(0,G.jsx)(to,{to:`/nodefony/workspace`,replace:!0})},{element:(0,G.jsx)(Fc,{roles:V.devops}),children:[{path:`twin`,element:(0,G.jsx)(zd,{})},{path:`hub`,element:(0,G.jsx)(gd,{})},{path:`runtime`,element:(0,G.jsx)(vd,{})},{path:`logs`,element:(0,G.jsx)(bd,{})},{path:`logs/trace/:requestId`,element:(0,G.jsx)(xd,{})},{path:`documentation`,element:(0,G.jsx)(Id,{})},{path:`roadmap`,element:(0,G.jsx)(Ld,{})}]},{element:(0,G.jsx)(Fc,{roles:V.ops}),children:[{path:`supervision`,element:(0,G.jsx)(hd,{})},{path:`cluster`,element:(0,G.jsx)(_d,{})}]},{element:(0,G.jsx)(Fc,{roles:V.dev}),children:[{path:`chat`,element:(0,G.jsx)(yd,{})},{path:`agents`,element:(0,G.jsx)(rd,{})},{path:`knowledge`,element:(0,G.jsx)(id,{})},{path:`llm`,element:(0,G.jsx)(ad,{})},{path:`vector`,element:(0,G.jsx)(od,{})},{path:`memory`,element:(0,G.jsx)(sd,{})},{path:`mcp`,element:(0,G.jsx)(cd,{})},{path:`orm`,element:(0,G.jsx)(Nd,{})},{path:`orm/:pid`,element:(0,G.jsx)(Fd,{})},{path:`databases`,element:(0,G.jsx)(Ad,{})},{path:`stores`,element:(0,G.jsx)(Ed,{})},{path:`orm-entity`,element:(0,G.jsx)(jd,{})},{path:`orm-connector`,element:(0,G.jsx)(Pd,{})},{path:`migrate`,element:(0,G.jsx)(Md,{})},{path:`services`,element:(0,G.jsx)(ed,{})},{path:`modules`,element:(0,G.jsx)(Cd,{})},{path:`modules/:name`,element:(0,G.jsx)(wd,{})},{path:`config`,element:(0,G.jsx)(Td,{})},{path:`routes`,element:(0,G.jsx)(Dd,{})},{path:`playground`,element:(0,G.jsx)(Od,{})},{path:`playground/:controller`,element:(0,G.jsx)(Od,{})},{path:`create`,element:(0,G.jsx)(kd,{})},{path:`npm`,element:(0,G.jsx)(td,{})}]},{element:(0,G.jsx)(Fc,{roles:V.admin}),children:[{path:`agent-guard`,element:(0,G.jsx)(ld,{})},{path:`approvals`,element:(0,G.jsx)(ud,{})},{path:`ai-audit`,element:(0,G.jsx)(dd,{})},{path:`ai-costs`,element:(0,G.jsx)(fd,{})},{path:`insights`,element:(0,G.jsx)(pd,{})},{path:`users`,element:(0,G.jsx)(Gd,{})},{path:`users/:id`,element:(0,G.jsx)(qd,{})},{path:`roles`,element:(0,G.jsx)(Hd,{})},{path:`webhooks`,element:(0,G.jsx)(Jd,{})},{path:`audit`,element:(0,G.jsx)(Bd,{})},{path:`system`,element:(0,G.jsx)(Sd,{})},{path:`firewall`,element:(0,G.jsx)(Vd,{})}]},{path:`*`,element:(0,G.jsx)(md,{})}]}]},{path:`/`,element:(0,G.jsx)(to,{to:`/nodefony`,replace:!0})},{path:`*`,element:(0,G.jsx)(to,{to:`/nodefony`,replace:!0})}]),Qd=ar(({children:e})=>{let t=H();return(0,W.useEffect)(()=>{t.checkSession()},[t]),(0,G.jsx)(G.Fragment,{children:e})}),$d=ar(()=>{let e=Ec(Yd.ui.palette);return(0,G.jsxs)(Mr,{theme:e,defaultColorScheme:`dark`,cssVariablesResolver:jc,children:[(0,G.jsx)(Ia,{position:`top-right`,limit:5,autoClose:4e3}),(0,G.jsx)(Ka,{children:(0,G.jsx)(Ht,{value:Yd,children:(0,G.jsx)(is,{client:Yd.kernel.get(`realtime`),children:(0,G.jsx)(yc,{variant:`full`,children:(0,G.jsx)(Qd,{children:(0,G.jsx)(Qo,{router:Zd})})})})})})]})}),ef=document.getElementById(`root`);if(!ef)throw Error(`#root not found`);(0,Un.createRoot)(ef).render((0,G.jsx)(W.StrictMode,{children:(0,G.jsx)($d,{})}));export{vs as $,rc as A,Vs as B,fc as C,oc as D,lc as E,Zs as F,Ns as G,Is as H,Xs as I,As as J,Ms as K,Ys as L,ec as M,$s as N,ac as O,Qs as P,bs as Q,Js as R,mc as S,uc as T,Fs as U,Rs as V,Ps as W,Ts as X,Ds as Y,Ss as Z,pl as _,xi as _t,Uu as a,ls as at,Nc as b,Ll as c,cs as ct,Tl as d,Ko as dt,_s as et,El as f,Va as ft,Sl as g,wi as gt,Ol as h,Pi as ht,Bu as i,as as it,tc as j,ic as k,Dl as l,os as lt,kl as m,Bi as mt,zu as n,ps as nt,Hu as o,us as ot,Al as p,Yi as pt,js as q,Lu as r,ds as rt,zl as s,ss as st,Ru as t,hs as tt,wl as u,Ho as ut,el as v,ar as vt,dc as w,gc as x,$c as y,Hs as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{w as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{w as e}from"./mermaid-parser.core-C1Enm0ew.js";export{e as createInfoServices};
|
package/dist/frontend/assets/{infoDiagram-VRGFBTTK-D4h7Bn9y.js → infoDiagram-VRGFBTTK-B2jjbnZt.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./mermaid-parser.core-
|
|
1
|
+
import{n as e}from"./mermaid-parser.core-C1Enm0ew.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./src-CmaQbKwl.js";import{c as r}from"./chunk-O7XYJQB3-Ct9Cv1u-.js";import{a as i}from"./mermaid.core-C3PUxj4m.js";var a={parse:t(async t=>{let r=await e(`info`,t);n.debug(r)},`parse`)},o={version:`12.0.0`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((e,t,a)=>{n.debug(`rendering info diagram
|
|
2
2
|
`+e);let o=i(t);r(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-CmaQbKwl.js";import{H as t,U as n,a as r,c as i,q as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-O7XYJQB3-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-CmaQbKwl.js";import{H as t,U as n,a as r,c as i,q as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-O7XYJQB3-Ct9Cv1u-.js";import{p as d}from"./chunk-ZIGJFQKS-69T2EWGZ.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{a as p}from"./mermaid.core-C3PUxj4m.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as e}from"./src-Dvwdl2PF.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-CmaQbKwl.js";import{H as n,U as r,a as i,c as a,q as o,v as s,w as c,x as l,y as u}from"./chunk-O7XYJQB3-
|
|
1
|
+
import{w as e}from"./src-Dvwdl2PF.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-CmaQbKwl.js";import{H as n,U as r,a as i,c as a,q as o,v as s,w as c,x as l,y as u}from"./chunk-O7XYJQB3-Ct9Cv1u-.js";import{t as d}from"./arc-C7rN-mtx.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-GWA4HPMP-BRKHoyUA.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,16]},{15:[1,17]},e(n,[2,11]),e(n,[2,12]),{19:[1,18]},e(n,[2,4]),e(n,[2,9]),e(n,[2,10]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./src-CmaQbKwl.js";import{Y as n,f as r,it as i,nt as a,tt as o,x as s,z as c}from"./chunk-O7XYJQB3-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./src-CmaQbKwl.js";import{Y as n,f as r,it as i,nt as a,tt as o,x as s,z as c}from"./chunk-O7XYJQB3-Ct9Cv1u-.js";import"./chunk-ZIGJFQKS-69T2EWGZ.js";import"./chunk-742MDFTN-BMFhwdW9.js";import"./chunk-MBY4JIJT-CeQ2lB-_.js";import{t as l}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-7PRAP22T-D8yvVCZo.js";import"./chunk-7INBJB4K-BRd61mBw.js";import{i as u,r as d}from"./chunk-5DYCD2WN-Co_-nDsD.js";import{r as f}from"./chunk-UA2S7LBM-hxXAIXFD.js";import{a as p,n as m,t as h}from"./mermaid.core-C3PUxj4m.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(h,[2,25]),t(h,[2,26]),t(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(g,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(h,[2,31]),{21:[1,39]},{22:[1,40]},t(g,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(p,[2,15],{24:b}),t(h,[2,30]),{22:[1,41]},t(h,[2,27]),t(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-ZIGJFQKS-
|
|
1
|
+
import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-ZIGJFQKS-69T2EWGZ.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
|