@nodefony/studio 10.0.0-alpha.6 → 10.0.0-alpha.8
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/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorateParam.js +1 -1
- package/dist/frontend/assets/{Accordion-C9IINbNl.js → Accordion-BZratQ5I.js} +1 -1
- package/dist/frontend/assets/{ActionsLiveGraph-Do_UHAiS.js → ActionsLiveGraph-XrF4dBJH.js} +1 -1
- package/dist/frontend/assets/{ApiKeys-BpeOM6zu.js → ApiKeys-Bcrxjcfz.js} +2 -2
- package/dist/frontend/assets/{ArchitectureLiveGraph-wJ58pSKK.js → ArchitectureLiveGraph-DFHtvAox.js} +1 -1
- package/dist/frontend/assets/{Audit-C4YFzQRy.js → Audit-BJwdii8i.js} +1 -1
- package/dist/frontend/assets/{BackplaneLiveGraph-ChvZZWdo.js → BackplaneLiveGraph-BMpvFXRW.js} +1 -1
- package/dist/frontend/assets/{Breadcrumbs-4bv1GHWO.js → Breadcrumbs-YIw_WVM5.js} +1 -1
- package/dist/frontend/assets/{BrickStoreChip-BtiG99lz.js → BrickStoreChip-CoCfESC2.js} +1 -1
- package/dist/frontend/assets/{Chat-DjbG7eSv.js → Chat-_ZDG8n7S.js} +1 -1
- package/dist/frontend/assets/{Chip-DUBEzfSp.js → Chip-DVZYQhdH.js} +1 -1
- package/dist/frontend/assets/{Cluster-C_TSC_3_.js → Cluster-ZlNV3WC0.js} +1 -1
- package/dist/frontend/assets/{Collapse-BdzfO7PU.js → Collapse-BZxw8zmw.js} +1 -1
- package/dist/frontend/assets/{ConfigPage-Da8SVX0R.js → ConfigPage-CuIKar0T.js} +1 -1
- package/dist/frontend/assets/{ConnectorCard-DOKtRiVP.js → ConnectorCard-rSwtCZFu.js} +1 -1
- package/dist/frontend/assets/{Create-vyihNeeE.js → Create-B4_XnFjp.js} +2 -2
- package/dist/frontend/assets/{DashboardSupervision-CxSpNAsK.js → DashboardSupervision-ogJPDjon.js} +1 -1
- package/dist/frontend/assets/{Database-D0AiIyrs.js → Database-CBJF2zmF.js} +1 -1
- package/dist/frontend/assets/{DbLogo-B4TwNH6H.js → DbLogo-odCHhQZM.js} +1 -1
- package/dist/frontend/assets/{Documentation-CmIZeRoB.js → Documentation-BPxNaAjQ.js} +1 -1
- package/dist/frontend/assets/{FanOutLiveGraph-JTYLv77d.js → FanOutLiveGraph-C34ysvYA.js} +1 -1
- package/dist/frontend/assets/{Firewall-DHvfx-wn.js → Firewall-DR1gfzdX.js} +1 -1
- package/dist/frontend/assets/{IconAdjustments-B042o6Le.js → IconAdjustments-BoboURIj.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsAlt-BmgZVo5M.js → IconAdjustmentsAlt-B7iftM9z.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsHorizontal-BIF-EgYG.js → IconAdjustmentsHorizontal-7IiBbPem.js} +1 -1
- package/dist/frontend/assets/{IconAffiliate-PkjISh3s.js → IconAffiliate-BDcNyaq_.js} +1 -1
- package/dist/frontend/assets/{IconApps-2nW1Qtkd.js → IconApps-7aIl1P4i.js} +1 -1
- package/dist/frontend/assets/{IconArchive-CyeHZASU.js → IconArchive-B4MbH2D6.js} +1 -1
- package/dist/frontend/assets/{IconArrowDown-CRJ1x8hy.js → IconArrowDown-5CK-FwRl.js} +1 -1
- package/dist/frontend/assets/{IconArrowLeft-7ehg9XYP.js → IconArrowLeft-CGbdeI78.js} +1 -1
- package/dist/frontend/assets/{IconArrowUp-CWUGvcnj.js → IconArrowUp-OUaF7Sbz.js} +1 -1
- package/dist/frontend/assets/IconArrowsExchange-BaNV8SFD.js +1 -0
- package/dist/frontend/assets/{IconArrowsSplit2-D6oEboxp.js → IconArrowsSplit2-C6G8tQXY.js} +1 -1
- package/dist/frontend/assets/IconBan-sHfiqzWA.js +1 -0
- package/dist/frontend/assets/{IconBook-CFhZJJ0F.js → IconBook-NYou6bAm.js} +1 -1
- package/dist/frontend/assets/{IconCircleCheck-vTUIJ1YM.js → IconCircleCheck-LdYSHGNV.js} +1 -1
- package/dist/frontend/assets/{IconCircleDot-Cw7O7RFw.js → IconCircleDot-DDZDGUv7.js} +1 -1
- package/dist/frontend/assets/IconCircuitResistor-u8z8rLke.js +1 -0
- package/dist/frontend/assets/{IconCode-Bp8-3f_0.js → IconCode-8A2Vc3mV.js} +1 -1
- package/dist/frontend/assets/{IconDeviceDesktop-CI8a1zbE.js → IconDeviceDesktop-DQMJAeIX.js} +1 -1
- package/dist/frontend/assets/{IconDots-DNiAUhiO.js → IconDots-DHONC_eR.js} +1 -1
- package/dist/frontend/assets/{IconDownload-CTLQCk0R.js → IconDownload-CskHkiEP.js} +1 -1
- package/dist/frontend/assets/{IconEye-D80bz7c_.js → IconEye-CmFgWb6A.js} +1 -1
- package/dist/frontend/assets/{IconFile-vc7KG4Rf.js → IconFile-DUvYig0W.js} +1 -1
- package/dist/frontend/assets/{IconFolder-DGoYanMO.js → IconFolder-BeoB9Wy3.js} +1 -1
- package/dist/frontend/assets/{IconGitBranch-ClVGboyH.js → IconGitBranch-k-8cnuLS.js} +1 -1
- package/dist/frontend/assets/{IconHeartRateMonitor-upfL_t5M.js → IconHeartRateMonitor-D5gSRuQz.js} +1 -1
- package/dist/frontend/assets/{IconHelpCircle-BoSiqXIY.js → IconHelpCircle-Cp-YIdsR.js} +1 -1
- package/dist/frontend/assets/{IconLayoutGrid-B6L6txBS.js → IconLayoutGrid-DiIAz7S1.js} +1 -1
- package/dist/frontend/assets/{IconNetwork-BakBlNUv.js → IconNetwork-DJdaK61I.js} +1 -1
- package/dist/frontend/assets/{IconPackages-DZHwNbfL.js → IconPackages-a59KQceL.js} +1 -1
- package/dist/frontend/assets/{IconPencil-B-pO6nfU.js → IconPencil-DvkftTgJ.js} +1 -1
- package/dist/frontend/assets/{IconPlayerPause-CmDKLlIs.js → IconPlayerPause-C9Eve-DV.js} +1 -1
- package/dist/frontend/assets/IconPlayerPlay-Cl4K6MPS.js +1 -0
- package/dist/frontend/assets/IconPlus-D8uJUhjM.js +1 -0
- package/dist/frontend/assets/{IconPuzzle-CslQPiCN.js → IconPuzzle-AO4L5bjR.js} +1 -1
- package/dist/frontend/assets/{IconRecycle-DABPgUVk.js → IconRecycle-WAqlmRWN.js} +1 -1
- package/dist/frontend/assets/{IconSend-MV_iN0wK.js → IconSend-BPiCAzpg.js} +1 -1
- package/dist/frontend/assets/{IconServer2-CRutQdmm.js → IconServer2-rVjD6-MC.js} +1 -1
- package/dist/frontend/assets/{IconShieldOff-Iriep3yk.js → IconShieldOff-GF00f0aB.js} +1 -1
- package/dist/frontend/assets/{IconSitemap-CqkVZPOt.js → IconSitemap-BnfvAqMK.js} +1 -1
- package/dist/frontend/assets/{IconStack2-DA4YUbMC.js → IconStack2-BRfnzl41.js} +1 -1
- package/dist/frontend/assets/{IconTerminal2-CWTGfiEn.js → IconTerminal2-3V__c4-m.js} +1 -1
- package/dist/frontend/assets/{IconUserOff-D99nKohi.js → IconUserOff-DFt0HHh9.js} +1 -1
- package/dist/frontend/assets/{IconWorld-BRgStXMv.js → IconWorld-C4h6SKIG.js} +1 -1
- package/dist/frontend/assets/{List-Da8UU6lg.js → List-ERCyqEPq.js} +1 -1
- package/dist/frontend/assets/{LogVisuals-BGUY8-_R.js → LogVisuals-BwL1Txqf.js} +1 -1
- package/dist/frontend/assets/{Logs-DZCQkQXw.js → Logs-st_U3Pr2.js} +1 -1
- package/dist/frontend/assets/{Migrations-Bun03S4a.js → Migrations-D4SSjDpM.js} +1 -1
- package/dist/frontend/assets/{ModuleDetail-DsZ7jPqr.js → ModuleDetail-cImsLGSy.js} +1 -1
- package/dist/frontend/assets/{Modules-C7G10G7J.js → Modules-Bef_ZNzn.js} +1 -1
- package/dist/frontend/assets/{OrmEntity-Drw9PhAO.js → OrmEntity-zs0NzVc9.js} +1 -1
- package/dist/frontend/assets/{OrmOverview-BzTzmCFr.js → OrmOverview-CPchV-_w.js} +1 -1
- package/dist/frontend/assets/{OrmWorker-D6m8aLoC.js → OrmWorker-QEbxTZ7w.js} +1 -1
- package/dist/frontend/assets/{Playground-ku4WxRVF.js → Playground-DsosA7Yd.js} +1 -1
- package/dist/frontend/assets/{ProbesLiveGraph-LGl0Vt3c.js → ProbesLiveGraph-CpZWxaAZ.js} +1 -1
- package/dist/frontend/assets/{Profile-CIC1v8ye.js → Profile-NdEGmZYV.js} +1 -1
- package/dist/frontend/assets/{ProfileFields-BA4k5xVH.js → ProfileFields-D6_5Er1B.js} +1 -1
- package/dist/frontend/assets/{Progress-ctKVb0y-.js → Progress-BxSLYIgD.js} +1 -1
- package/dist/frontend/assets/{ProtocoleLiveGraph-Ct7VbuWa.js → ProtocoleLiveGraph-BwQBzE9W.js} +1 -1
- package/dist/frontend/assets/{RealtimeConsole-CUwlc-WS.js → RealtimeConsole-N11Uie_n.js} +1 -1
- package/dist/frontend/assets/{RingProgress-CHMtGKds.js → RingProgress-CdgTmA2j.js} +1 -1
- package/dist/frontend/assets/{Roadmap-yZY1WJHu.js → Roadmap-By6HzZwV.js} +1 -1
- package/dist/frontend/assets/{RoleSwitch-DzEHDHLA.js → RoleSwitch-B83joCHG.js} +1 -1
- package/dist/frontend/assets/Roles-CMIEqZIJ.js +1 -0
- package/dist/frontend/assets/{RoutesView-E8ca6Zft.js → RoutesView-D7345bN_.js} +1 -1
- package/dist/frontend/assets/{Runtime-DhpEGVfL.js → Runtime-C312wEbD.js} +1 -1
- package/dist/frontend/assets/{Sessions-CXTgHqDM.js → Sessions-HOFd6af3.js} +1 -1
- package/dist/frontend/assets/{Skeleton-DybgHU9E.js → Skeleton-coYonGf_.js} +1 -1
- package/dist/frontend/assets/{Slider-BoAxGS1L.js → Slider-Ds-U37rL.js} +1 -1
- package/dist/frontend/assets/{StoresView-DoWAf-jh.js → StoresView-FHdXwtpS.js} +1 -1
- package/dist/frontend/assets/{System-DDEZt9W5.js → System-CbN-EOSC.js} +1 -1
- package/dist/frontend/assets/{TagsInput-CvH7XFRB.js → TagsInput-COivjma9.js} +1 -1
- package/dist/frontend/assets/{Textarea-C4dBiWye.js → Textarea-9n-r0dhs.js} +1 -1
- package/dist/frontend/assets/{TraceView-D8fl7TGg.js → TraceView-DNjPJJ7p.js} +1 -1
- package/dist/frontend/assets/{Twin-B9_yDKs5.js → Twin-BfFLhE0A.js} +1 -1
- package/dist/frontend/assets/{UserProfile-y8I6wSTh.js → UserProfile-BBeksYzW.js} +1 -1
- package/dist/frontend/assets/Users-B4mV1aqm.js +1 -0
- package/dist/frontend/assets/{Webhooks-L-17Yi5A.js → Webhooks-Cl8PKA4v.js} +1 -1
- package/dist/frontend/assets/{Workspace-BbU7y0F1.js → Workspace-Drv35J6V.js} +1 -1
- package/dist/frontend/assets/{abnfDiagram-O67JEVCF-B8pam94f.js → abnfDiagram-O67JEVCF-eVuPuZ-l.js} +1 -1
- package/dist/frontend/assets/{apiKeysModel-C53i4AfO.js → apiKeysModel-Bg3XAZ1j.js} +1 -1
- package/dist/frontend/assets/{architectureDiagram-NJMV4G6O-6gmizkIP.js → architectureDiagram-NJMV4G6O-CowFfXXj.js} +1 -1
- package/dist/frontend/assets/{auditFormat-lxo0qiYp.js → auditFormat-n5lhA4OX.js} +1 -1
- package/dist/frontend/assets/{auditModel-CxUfDlvX.js → auditModel-H62868Ky.js} +1 -1
- package/dist/frontend/assets/{chunk-3FUC2YCW-TJIJwE1t.js → chunk-3FUC2YCW-Dtc7u5wE.js} +2 -2
- package/dist/frontend/assets/{chunk-7M6MHVWA-DRzYiIPp.js → chunk-7M6MHVWA-lvMKwiVM.js} +1 -1
- package/dist/frontend/assets/{chunk-GTNCS2PH-DZtp2P9b.js → chunk-GTNCS2PH-B_uA79q-.js} +1 -1
- package/dist/frontend/assets/{classDiagram-v2-NBCMYWYE-BtmMp0Pl.js → classDiagram-v2-NBCMYWYE-BNpOjB-G.js} +1 -1
- package/dist/frontend/assets/{configModel-vPcx16aO.js → configModel-VUzK2g6s.js} +1 -1
- package/dist/frontend/assets/{cynefinDiagram-VND7K2PF-DAC6UAuW.js → cynefinDiagram-VND7K2PF-BlomyrQB.js} +1 -1
- package/dist/frontend/assets/{dagre-6A5THRUB-CO85D-6G.js → dagre-6A5THRUB-BWzsXnLW.js} +1 -1
- package/dist/frontend/assets/{diagram-22UHCM2B-BOX3CQqS.js → diagram-22UHCM2B-CVjDv9s9.js} +1 -1
- package/dist/frontend/assets/{diagram-3UASUU5V-CxvH61Hb.js → diagram-3UASUU5V-DVDv1FGj.js} +1 -1
- package/dist/frontend/assets/{diagram-CDSNMT55-BKs0JPfD.js → diagram-CDSNMT55-Bp8iVPRM.js} +1 -1
- package/dist/frontend/assets/{diagram-MLGK6HIB-D9BjufDu.js → diagram-MLGK6HIB-tvdCXGvD.js} +1 -1
- package/dist/frontend/assets/{diagram-MPIPVDR6-CAjYxIoY.js → diagram-MPIPVDR6-BhXeqdXO.js} +1 -1
- package/dist/frontend/assets/{ebnfDiagram-ZINNZB2B-DyFbyGL9.js → ebnfDiagram-ZINNZB2B-DA_f0Sur.js} +1 -1
- package/dist/frontend/assets/{elk-276RUBZZ-De_z70FL.js → elk-276RUBZZ-D-2pxfms.js} +1 -1
- package/dist/frontend/assets/{erDiagram-OPXOYQCR-N61HA9T0.js → erDiagram-OPXOYQCR-IXwXFRE7.js} +1 -1
- package/dist/frontend/assets/{eventFlow-Dtt06FYi.js → eventFlow-Cm0aJnfI.js} +1 -1
- package/dist/frontend/assets/{flowDiagram-KWPJA3E3-BubqL8R4.js → flowDiagram-KWPJA3E3-BwS9Cpl0.js} +1 -1
- package/dist/frontend/assets/hooks-DMHLQNUe.js +1 -0
- package/dist/frontend/assets/index-BwkdF4pp.js +28 -0
- package/dist/frontend/assets/{infoDiagram-VRGFBTTK-jzkh5hxl.js → infoDiagram-VRGFBTTK-D4h7Bn9y.js} +1 -1
- package/dist/frontend/assets/{ishikawaDiagram-OU5B5YK6-C-80YGTU.js → ishikawaDiagram-OU5B5YK6-B08gE1Ts.js} +1 -1
- package/dist/frontend/assets/{kanban-definition-PNTS6WVX-CNUWj3n8.js → kanban-definition-PNTS6WVX-BRAjenaA.js} +1 -1
- package/dist/frontend/assets/{mermaid.core-bi0KWxzD.js → mermaid.core-B83stVmA.js} +4 -4
- package/dist/frontend/assets/{mindmap-definition-NLK3R4M7-BpydpKOL.js → mindmap-definition-NLK3R4M7-DVQlIVXh.js} +1 -1
- package/dist/frontend/assets/{pegDiagram-GJSIUBJH-B8r97QN1.js → pegDiagram-GJSIUBJH-BDiYV_0C.js} +1 -1
- package/dist/frontend/assets/{pieDiagram-5QR66LMP-kyKeYg-Q.js → pieDiagram-5QR66LMP-DauEH_sI.js} +1 -1
- package/dist/frontend/assets/{profileVisuals-BE_m4Ey1.js → profileVisuals-CdDZ-G5o.js} +1 -1
- package/dist/frontend/assets/{railroadDiagram-XR7U4H2S-UqD2ngrA.js → railroadDiagram-XR7U4H2S-VGu1Om2v.js} +1 -1
- package/dist/frontend/assets/{requirementDiagram-PLB6GJNP-BCf1UDbg.js → requirementDiagram-PLB6GJNP-BIeT2fsT.js} +1 -1
- package/dist/frontend/assets/rolesModel-BqkpwhLp.js +1 -0
- package/dist/frontend/assets/{sequenceDiagram-PO4LG4MO-BtmJQCMb.js → sequenceDiagram-PO4LG4MO-xFeJgcfs.js} +1 -1
- package/dist/frontend/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/frontend/assets/{stateDiagram-v2-GCMORJYK-KOfXhGJl.js → stateDiagram-v2-GCMORJYK-Zn0sg5eC.js} +1 -1
- package/dist/frontend/assets/stores-fG-e-IP-.js +1 -0
- package/dist/frontend/assets/{swimlanes-2SLR337P-CbhPYBmu.js → swimlanes-2SLR337P-BtnI5Ts1.js} +1 -1
- package/dist/frontend/assets/{swimlanesDiagram-TC7HE7FX-DERYN-sv.js → swimlanesDiagram-TC7HE7FX-DmKuTkpK.js} +1 -1
- package/dist/frontend/assets/{timeline-definition-EJHVYXUP-DyFLwqcy.js → timeline-definition-EJHVYXUP-CAwjjT68.js} +1 -1
- package/dist/frontend/assets/{ui-Dy8y0zPl.js → ui-BlRFVRfl.js} +29 -29
- package/dist/frontend/assets/{useBlockSource-DBTXt3Bd.js → useBlockSource-IO5xGNWM.js} +1 -1
- package/dist/frontend/assets/{useSocketLiveData-n5suTFQT.js → useSocketLiveData-z0fKymfg.js} +1 -1
- package/dist/frontend/assets/{usecaseDiagram-POWQR4AR-DrNt0E-k.js → usecaseDiagram-POWQR4AR-Bk94oIx0.js} +1 -1
- package/dist/frontend/assets/{usersFormat-C33NWJaO.js → usersFormat-9M7K71Og.js} +1 -1
- package/dist/frontend/assets/{vennDiagram-UO4OBE2U-CdTyOHVa.js → vennDiagram-UO4OBE2U-_ylubyXd.js} +1 -1
- package/dist/frontend/assets/{wardleyDiagram-VNRHLVJA-D8xJmOUJ.js → wardleyDiagram-VNRHLVJA-BAnG4zJi.js} +1 -1
- package/dist/frontend/assets/{xychartDiagram-PMCCYNJV-BwyKdA55.js → xychartDiagram-PMCCYNJV-Cl7hfbtt.js} +1 -1
- package/dist/frontend/index.html +11 -11
- 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/package.json +17 -17
- package/dist/frontend/assets/IconArrowsExchange-C0a0grm7.js +0 -1
- package/dist/frontend/assets/IconBan-Qgw-SmZw.js +0 -1
- package/dist/frontend/assets/IconCircuitResistor-DFVNZSyj.js +0 -1
- package/dist/frontend/assets/IconPlayerPlay-CYA71UO2.js +0 -1
- package/dist/frontend/assets/IconPlus-Dh1SmA8Q.js +0 -1
- package/dist/frontend/assets/Roles-hy1gMeEh.js +0 -1
- package/dist/frontend/assets/Users-DLPi2ne7.js +0 -1
- package/dist/frontend/assets/hooks-C4XxBzBx.js +0 -1
- package/dist/frontend/assets/index-wfxUl83u.js +0 -28
- package/dist/frontend/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
- package/dist/frontend/assets/stores-DIccV-P5.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as e}from"./src-Dvwdl2PF.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./src-CmaQbKwl.js";import{H as r,U as i,a,et as o,q as s,s as c,v as l,w as u,x as d,y as f}from"./chunk-O7XYJQB3-j8r_wK2Y.js";import{g as p,s as m}from"./chunk-ZIGJFQKS-D7Dw35HO.js";import"./chunk-742MDFTN-BuWqUJ1x.js";import"./chunk-MBY4JIJT-DU8hh3vE.js";import"./chunk-7PRAP22T-CY3tH-_v.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-7INBJB4K-BLEZ8obp.js";import"./chunk-5DYCD2WN-C6fNpDCq.js";import"./chunk-Z7XXMR3K-B4DDNjo4.js";import{t as y}from"./chunk-GWA4HPMP-DwZHSyM6.js";import{t as b}from"./chunk-XXDRQBXY-IULPM7G2.js";import{t as x}from"./chunk-WEXAMYUT-DnLgt6Py.js";import"./chunk-UA2S7LBM-EhjtOSNT.js";import{i as S,r as C}from"./mermaid.core-
|
|
1
|
+
import{w as e}from"./src-Dvwdl2PF.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./src-CmaQbKwl.js";import{H as r,U as i,a,et as o,q as s,s as c,v as l,w as u,x as d,y as f}from"./chunk-O7XYJQB3-j8r_wK2Y.js";import{g as p,s as m}from"./chunk-ZIGJFQKS-D7Dw35HO.js";import"./chunk-742MDFTN-BuWqUJ1x.js";import"./chunk-MBY4JIJT-DU8hh3vE.js";import"./chunk-7PRAP22T-CY3tH-_v.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-7INBJB4K-BLEZ8obp.js";import"./chunk-5DYCD2WN-C6fNpDCq.js";import"./chunk-Z7XXMR3K-B4DDNjo4.js";import{t as y}from"./chunk-GWA4HPMP-DwZHSyM6.js";import{t as b}from"./chunk-XXDRQBXY-IULPM7G2.js";import{t as x}from"./chunk-WEXAMYUT-DnLgt6Py.js";import"./chunk-UA2S7LBM-EhjtOSNT.js";import{i as S,r as C}from"./mermaid.core-B83stVmA.js";var w=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,a,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},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`)};N.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()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as e}from"./src-Dvwdl2PF.js";import{At as t,Dt as n,Et as r,Lr as i,Ot as a,ci as o,di as s,kt as c,li as l,si as u}from"./ui-BlRFVRfl.js";var d=e(s(),1);function f(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function p(e){return(0,d.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var m=0;function ee(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{t<n?i.push(e):r.push(e)});return{notifications:i,queue:r}}var h=f({notifications:[],queue:[],defaultPosition:`bottom-right`,limit:5}),te=(e=h)=>p(e);function g(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=m,m+=1);let i=ee(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function ne(e,t=h){let n=e.id||i();return g(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function re(e,t=h){return g(t,t=>t.filter(t=>t.id!==e||(t.onClose?.(t),!1))),e}function ie(e,t=h){return g(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function ae(e=h){g(e,()=>[])}function oe(e=h){let{defaultPosition:t,limit:n}=e.getState();g(e,e=>ee(e,t,n).notifications)}var _={show:ne,hide:re,update:ie,clean:ae,cleanQueue:oe,updateState:g},v=class extends Error{status;body;constructor(e,t,n){super(n),this.status=e,this.body=t,this.name=`ApiError`}};function se(e,t){if(e&&typeof e==`object`){let t=e,n=t.error??t;if(typeof n.message==`string`&&n.message)return n.message}return t}function y(e){return e&&typeof e==`object`&&`result`in e?e.result:e}var ce=-32601;function le(e){let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)}function ue(e,t){return`${e} ${le(t)}`}function de(){let e=globalThis.crypto;return e&&typeof e.randomUUID==`function`?e.randomUUID():`idem-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}var fe=class{baseUrl;onUnauthorized;onError;socket;socketEnabled;socketBridgeDown=!1;httpOnlyRoutes=new Set;constructor(e={}){this.baseUrl=e.baseUrl??`/nodefony/studio/api`,this.onUnauthorized=e.onUnauthorized,this.onError=e.onError,this.socket=e.socket,this.socketEnabled=e.socketEnabled}async get(e,t){return this.request(`GET`,e,void 0,t)}async post(e,t,n){return this.request(`POST`,e,t,n)}async put(e,t,n){return this.request(`PUT`,e,t,n)}async delete(e,t){return this.request(`DELETE`,e,void 0,t)}async getAbsolute(e,t){return this.send(`GET`,e,void 0,t)}async postAbsolute(e,t,n){return this.send(`POST`,e,t,n)}async patchAbsolute(e,t,n){return this.send(`PATCH`,e,t,n)}async deleteAbsolute(e,t){return this.send(`DELETE`,e,void 0,t)}async request(e,t,n,r){let i=`${this.baseUrl}${t.startsWith(`/`)?t:`/`+t}`;return this.send(e,i,n,r)}canUseSocket(e,t,n){return(e===`GET`||e===`POST`||e===`PUT`||e===`PATCH`||e===`DELETE`)&&this.socket!==void 0&&!this.socketBridgeDown&&(this.socketEnabled?.()??!0)&&this.socket.state===`connected`&&t.startsWith(`/`)&&!n?.signal&&!n?.headers&&!this.httpOnlyRoutes.has(ue(e,t))}learnFromSocketError(e,t,n){let r=n;if(n&&typeof n==`object`&&r.name===`RpcError`){if(r.code===ce){this.socketBridgeDown=!0;return}r.data?.status===405&&this.httpOnlyRoutes.add(ue(e,t))}}async send(e,t,n,r){let i=e!==`GET`&&e!==`HEAD`?de():void 0;if(this.canUseSocket(e,t,r))try{return y(e===`GET`?await this.socket.request(t):await this.socket.mutate(t,{method:e,body:n,idempotencyKey:i}))}catch(n){this.learnFromSocketError(e,t,n)}let a=new Headers(r?.headers);a.set(`Accept`,`application/json`),n!==void 0&&a.set(`Content-Type`,`application/json`),i&&a.set(`Idempotency-Key`,i);let o=await fetch(t,{...r,method:e,headers:a,body:n===void 0?void 0:JSON.stringify(n),credentials:`same-origin`}),s=t.includes(`/api/auth/`);o.status===401&&!s&&this.onUnauthorized?.();let c=(o.headers.get(`Content-Type`)??``).includes(`application/json`),l=c?await o.json():await o.text();if(!o.ok){let n=se(l,`HTTP ${o.status}`);throw this.onError?.({method:e,status:o.status,message:n,body:l}),new v(o.status,l,`${e} ${t} → HTTP ${o.status}`)}return c?y(l):l}};function b(e){let t=new Uint8Array(e),n=``;for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function x(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,`=`),i=atob(r),a=new ArrayBuffer(i.length),o=new Uint8Array(a);for(let e=0;e<i.length;e++)o[e]=i.charCodeAt(e);return a}function S(){return pe.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential==`function`)}var pe={stubThis:e=>e};function me(e){let{id:t}=e;return{...e,id:x(t),transports:e.transports,type:e.type}}function he(e){return e===`localhost`||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}var C=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=t}};function ge({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new C({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){if(n.authenticatorSelection?.requireResidentKey===!0)return new C({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&n.authenticatorSelection?.userVerification===`required`)return new C({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(n.authenticatorSelection?.userVerification===`required`)return new C({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new C({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new C({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new C({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new C({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!he(t))return new C({message:`${globalThis.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new C({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new C({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new C({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}var _e=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}},ve=[`cross-platform`,`platform`];function ye(e){if(e&&!(ve.indexOf(e)<0))return e}async function be(e){!e.optionsJSON&&e.challenge&&(console.warn(`startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:t,useAutoRegister:n=!1}=e;if(!S())throw Error(`WebAuthn is not supported in this browser`);let r={...t,challenge:x(t.challenge),user:{...t.user,id:x(t.user.id)},excludeCredentials:t.excludeCredentials?.map(me)},i={};n&&(i.mediation=`conditional`),i.publicKey=r,i.signal=_e.createNewAbortSignal();let a;try{a=await navigator.credentials.create(i)}catch(e){throw ge({error:e,options:i})}if(!a)throw Error(`Registration was not completed`);let{id:o,rawId:s,response:c,type:l}=a,u;typeof c.getTransports==`function`&&(u=c.getTransports());let d;if(typeof c.getPublicKeyAlgorithm==`function`)try{d=c.getPublicKeyAlgorithm()}catch(e){w(`getPublicKeyAlgorithm()`,e)}let f;if(typeof c.getPublicKey==`function`)try{let e=c.getPublicKey();e!==null&&(f=b(e))}catch(e){w(`getPublicKey()`,e)}let p;if(typeof c.getAuthenticatorData==`function`)try{p=b(c.getAuthenticatorData())}catch(e){w(`getAuthenticatorData()`,e)}return{id:o,rawId:b(s),response:{attestationObject:b(c.attestationObject),clientDataJSON:b(c.clientDataJSON),transports:u,publicKeyAlgorithm:d,publicKey:f,authenticatorData:p},type:l,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:ye(a.authenticatorAttachment)}}function w(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.\n`,t)}function xe(){if(!S())return T.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?T.stubThis(new Promise(e=>e(!1))):T.stubThis(e.isConditionalMediationAvailable())}var T={stubThis:e=>e};function Se({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new C({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new C({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!he(t))return new C({message:`${globalThis.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new C({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new C({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}async function Ce(e){!e.optionsJSON&&e.challenge&&(console.warn(`startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:t,useBrowserAutofill:n=!1,verifyBrowserAutofillInput:r=!0}=e;if(!S())throw Error(`WebAuthn is not supported in this browser`);let i;t.allowCredentials?.length!==0&&(i=t.allowCredentials?.map(me));let a={...t,challenge:x(t.challenge),allowCredentials:i},o={};if(n){if(!await xe())throw Error(`Browser does not support WebAuthn autofill`);if(document.querySelectorAll(`input[autocomplete$='webauthn']`).length<1&&r)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');o.mediation=`conditional`,a.allowCredentials=[]}o.publicKey=a,o.signal=_e.createNewAbortSignal();let s;try{s=await navigator.credentials.get(o)}catch(e){throw Se({error:e,options:o})}if(!s)throw Error(`Authentication was not completed`);let{id:c,rawId:l,response:u,type:d}=s,f;return u.userHandle&&(f=b(u.userHandle)),{id:c,rawId:b(l),response:{authenticatorData:b(u.authenticatorData),clientDataJSON:b(u.clientDataJSON),signature:b(u.signature),userHandle:f},type:d,clientExtensionResults:s.getClientExtensionResults(),authenticatorAttachment:ye(s.authenticatorAttachment)}}var E=`/nodefony/security/api/auth`,D=`/nodefony/security/api/webauthn`,we=class{api;constructor(e){this.api=e}async login(e){let t=await this.api.postAbsolute(`${E}/login`,e);return t.mfaRequired?{kind:`mfaRequired`,methods:t.methods??[`totp`]}:{kind:`authenticated`,user:t.user}}async verifyTotpLogin(e){let{user:t}=await this.api.postAbsolute(`${E}/login/totp`,{code:e});return t}async me(){let{user:e}=await this.api.getAbsolute(`${E}/me`);return e}async logout(){await this.api.postAbsolute(`${E}/logout`)}async loginWithPasskey(){let e=await Ce({optionsJSON:await this.api.postAbsolute(`${D}/login/options`,{})}),{user:t}=await this.api.postAbsolute(`${D}/login/verify`,{response:e});return t}async registerPasskey(){let e=await be({optionsJSON:await this.api.postAbsolute(`${D}/register/options`,{})}),{credentialId:t}=await this.api.postAbsolute(`${D}/register/verify`,{response:e});return t}async ping(){return this.api.get(`/health`)}},Te=`BROWSER_ERROR`,Ee=`BROWSER_REJECTION`;function De(e){if(typeof window>`u`)return()=>{};let{syslog:t,msgid:n=Te,dedupeMs:r=1e3}=e,i=null,a=0,o=e=>{if(r<=0)return!1;let t=Date.now();return e===i&&t-a<r||(i=e,a=t,!1)},s=e=>{let r=e.filename!==void 0&&e.filename!==``?`${e.filename}:${e.lineno}:${e.colno}`:void 0,i=`error|${e.message}|${r??``}`;o(i)||t.log(e.error??e.message,`ERROR`,n,r??``)},c=e=>{let n=e.reason,r=`rejection|${n instanceof Error?n.message:String(n)}`;o(r)||t.log(n,`ERROR`,Ee,``)};return window.addEventListener(`error`,s),window.addEventListener(`unhandledrejection`,c),()=>{window.removeEventListener(`error`,s),window.removeEventListener(`unhandledrejection`,c)}}function O(e,t){return e!=null&&e.includes(t)}function k(e,t){if(e==null||t.length===0)return!1;for(let n of t)if(e.includes(n))return!0;return!1}var A=r(`outline`,`activity-heartbeat`,`ActivityHeartbeat`,[[`path`,{d:`M3 12h4.5l1.5 -6l4 12l2 -9l1.5 3h4.5`,key:`svg-0`}]]),j=`ROLE_DEV`,M=`ROLE_SUPERVISOR`,N=`ROLE_NODEFONY_ADMIN`;function P(e,t){return O(t,`ROLE_NODEFONY_ADMIN`)||!e||e.length===0?!0:k(t,e)}var F={devops:[j,M],dev:[j],ops:[M],admin:[N]},Oe=[{role:M,path:`/nodefony/supervision`,label:`Supervision`,description:`Santé applicative, charge, erreurs, alertes.`,icon:A}],I=`nf.studio.lastUser`,L=`nf.studio.lastMethod`,R=`nf.studio.pendingMethod`;function z(e){try{localStorage.setItem(I,e)}catch{}}function B(e){try{localStorage.setItem(L,e),localStorage.removeItem(R)}catch{}}var ke=class{auth;user=null;status=`idle`;error=null;mfaPending=!1;constructor(e){this.auth=e,u(this)}get isAuthenticated(){return this.status===`authenticated`&&!!this.user}get displayName(){return this.user?.username??`guest`}get roles(){return this.user?.roles??[]}get dashboards(){let e=this.roles;return Oe.filter(t=>O(e,t.role))}get homePath(){return`/nodefony/workspace`}async checkSession(){this.status=`loading`;try{let e=await this.auth.me();l(()=>{this.user=e,this.status=`authenticated`,this.error=null}),z(e.username);try{let e=localStorage.getItem(R);e&&B(e)}catch{}}catch{l(()=>{this.user=null,this.status=`unauthenticated`,this.error=null})}}async login(e){this.status=`loading`,this.error=null,this.mfaPending=!1;try{let t=await this.auth.login(e);return t.kind===`mfaRequired`?(l(()=>{this.mfaPending=!0,this.status=`idle`}),`mfa_required`):(l(()=>{this.user=t.user,this.status=`authenticated`}),z(t.user.username),B(`password`),`authenticated`)}catch(e){throw l(()=>{this.status=`error`,this.error=e instanceof Error?e.message:String(e)}),e}}async completeMfa(e){this.status=`loading`,this.error=null;try{let t=await this.auth.verifyTotpLogin(e);l(()=>{this.user=t,this.status=`authenticated`,this.mfaPending=!1}),z(t.username),B(`password`)}catch(e){throw l(()=>{this.status=`idle`,this.error=e instanceof Error?e.message:String(e)}),e}}cancelMfa(){l(()=>{this.mfaPending=!1,this.status=`unauthenticated`,this.error=null})}async loginWithPasskey(){this.status=`loading`,this.error=null;try{let e=await this.auth.loginWithPasskey();l(()=>{this.user=e,this.status=`authenticated`}),z(e.username),B(`passkey`)}catch(e){throw l(()=>{this.status=`error`,this.error=e instanceof Error?e.message:String(e)}),e}}registerPasskey(){return this.auth.registerPasskey()}async logout(){try{await this.auth.logout()}catch{}l(()=>{this.user=null,this.status=`unauthenticated`})}clearLocalSession(){l(()=>{this.user=null,this.status=`unauthenticated`})}},Ae=class{client;state=`disconnected`;lastError=null;latencyMs=null;activeSubscriptions=new Map;connectedAt=null;everConnected=!1;reconnectAttempt=0;nextRetryAt=null;endpointUrl=``;framesReceived=0;lastFrameAt=null;lastFrameMethod=null;clientHandlers=new Map;constructor(e,t=``){this.client=e,this.endpointUrl=t,u(this,{},{autoBind:!0}),this.client.onState(e=>{l(()=>{this.state=e,e===`connected`?(this.lastError=null,this.connectedAt=Date.now(),this.everConnected=!0,this.reconnectAttempt=0,this.nextRetryAt=null):(e===`disconnected`||e===`error`)&&(this.connectedAt=null)})}),this.client.onStats(()=>this.syncStats()),this.client.onReconnect(e=>{l(()=>{this.reconnectAttempt=e.attempt,this.nextRetryAt=e.nextRetryAt})}),l(()=>{this.state=this.client.state,this.client.state===`connected`&&(this.connectedAt=Date.now(),this.everConnected=!0)}),this.syncStats()}get isDown(){return this.state===`reconnecting`||this.state===`error`||this.state===`disconnected`&&this.everConnected}retryNow(){this.client.retryNow()}syncStats(){l(()=>{this.framesReceived=this.client.framesReceived,this.lastFrameAt=this.client.lastFrameAt,this.lastFrameMethod=this.client.lastFrameMethod;let e=new Set(this.client.subscribedChannels);for(let t of e)this.activeSubscriptions.has(t)||this.activeSubscriptions.set(t,{channel:t,msgCount:0,lastMessage:null,subscribedAt:Date.now(),rate:0,series:[],protocol:`json-rpc-2.0`,transport:`ws`,kind:`channel`});for(let t of this.activeSubscriptions.keys())e.has(t)||this.activeSubscriptions.delete(t);for(let e of this.activeSubscriptions.values()){let t=this.client.getChannelStats(e.channel);t&&(e.msgCount=t.msgCount,e.lastMessage=t.lastMessage,e.rate=t.rate,e.series=t.series)}})}get isConnected(){return this.state===`connected`}get subscriptionCount(){return this.activeSubscriptions.size}get totalMessages(){let e=0;for(let t of this.activeSubscriptions.values())e+=t.msgCount;return e}reconnect(){this.client.connect()}async connect(e){if(this.state===`connected`||this.state===`connecting`)return;let t=performance.now();try{await Promise.race([this.client.connect(),new Promise((e,t)=>setTimeout(()=>t(Error(`Backend WS pas prêt (P13.4 RealtimeService)`)),3e3))]),l(()=>{this.latencyMs=Math.round(performance.now()-t)})}catch(e){l(()=>{this.lastError=e instanceof Error?e.message:String(e),this.latencyMs=null})}}disconnect(){this.client.disconnect(),l(()=>{this.activeSubscriptions.clear()}),this.clientHandlers.clear()}subscribe(e,t,n={}){if(this.clientHandlers.has(e))return console.warn(`[Connection] already subscribed to ${e}`),()=>this.unsubscribe(e);let r={channel:e,msgCount:0,lastMessage:null,subscribedAt:Date.now(),rate:0,series:[],protocol:n.protocol??`json-rpc-2.0`,transport:n.transport??`ws`,kind:n.kind??`channel`,peer:n.peer},i=(...e)=>{t(...e)},a=this.client.on(e,i);return l(()=>{this.activeSubscriptions.set(e,r)}),this.clientHandlers.set(e,{dispose:a,wrapped:i}),this.client.subscribe(e),()=>this.unsubscribe(e)}unsubscribe(e){this.clientHandlers.get(e)?.dispose(),this.clientHandlers.delete(e),l(()=>{this.activeSubscriptions.delete(e)}),this.client.unsubscribe(e)}simulateMessage(e,t){this.clientHandlers.get(e)?.wrapped(t)}},V=`nodefony.studio.theme`,je=`nodefony.studio.palette`,Me=`nodefony.studio.sidebar.rail`,Ne=`nodefony.studio.sidebar.groups.v3`,Pe=`nodefony.studio.sidebar.pinned`,Fe=`nf.debugbar.visible`,Ie=`nf.realtime.adaptive`,Le=`nf.realtime.live`,Re=`nf.api.socket`,ze=class{theme=`dark`;palette=`nodefony`;rail=!1;collapsedGroups={};pinned=[];navQuery=``;debugBar=!0;adaptiveCadence=!1;realtimeLive=!1;apiViaSocket=!0;constructor(){u(this),this.loadPrefs()}setRealtimeLive(e){this.realtimeLive=e;try{localStorage.setItem(Le,e?`1`:`0`)}catch{}}toggleRealtimeLive(){this.setRealtimeLive(!this.realtimeLive)}setDebugBar(e){this.debugBar=e,this.applyDebugBar()}toggleDebugBar(){this.setDebugBar(!this.debugBar)}applyDebugBar(){try{localStorage.setItem(Fe,this.debugBar?`1`:`0`)}catch{}window.__NODEFONY_DEBUGBAR__?.setVisible(this.debugBar)}setTheme(e){this.theme=e,this.persist()}toggleTheme(){this.theme=this.theme===`dark`?`light`:`dark`,this.persist()}toggleRail(){this.rail=!this.rail,this.persist()}setPalette(e){this.palette=e,this.persist()}togglePalette(){this.palette=this.palette===`nodefony`?`orange`:`nodefony`,this.persist()}isGroupCollapsed(e,t=!1){let n=this.collapsedGroups[e];return typeof n==`boolean`?n:t}toggleGroup(e,t=!1){this.collapsedGroups[e]=!this.isGroupCollapsed(e,t),this.persist()}isPinned(e){return this.pinned.includes(e)}togglePin(e){this.pinned=this.isPinned(e)?this.pinned.filter(t=>t!==e):[...this.pinned,e],this.persist()}setNavQuery(e){this.navQuery=e}setAdaptiveCadence(e){this.adaptiveCadence=e,this.persist()}toggleAdaptiveCadence(){this.setAdaptiveCadence(!this.adaptiveCadence)}setApiViaSocket(e){this.apiViaSocket=e;try{localStorage.setItem(Re,e?`1`:`0`)}catch{}}toggleApiViaSocket(){this.setApiViaSocket(!this.apiViaSocket)}loadPrefs(){try{if(typeof localStorage>`u`)return;let e=localStorage.getItem(V);(e===`light`||e===`dark`||e===`auto`)&&(this.theme=e);let t=localStorage.getItem(je);(t===`orange`||t===`nodefony`)&&(this.palette=t),this.rail=localStorage.getItem(Me)===`1`,this.debugBar=localStorage.getItem(Fe)!==`0`,this.adaptiveCadence=localStorage.getItem(Ie)===`1`,this.realtimeLive=localStorage.getItem(Le)===`1`,this.apiViaSocket=localStorage.getItem(Re)!==`0`;let n=localStorage.getItem(Ne);if(n){let e=JSON.parse(n);e&&typeof e==`object`&&(this.collapsedGroups=e)}let r=localStorage.getItem(Pe);if(r){let e=JSON.parse(r);Array.isArray(e)&&(this.pinned=e.filter(e=>typeof e==`string`))}}catch{}}persist(){try{if(typeof localStorage>`u`)return;localStorage.setItem(V,this.theme),localStorage.setItem(je,this.palette),localStorage.setItem(Me,this.rail?`1`:`0`),localStorage.setItem(Ie,this.adaptiveCadence?`1`:`0`),localStorage.setItem(Ne,JSON.stringify(this.collapsedGroups)),localStorage.setItem(Pe,JSON.stringify(this.pinned))}catch{}}},Be=class{client;messages=[];currentResponse=``;isStreaming=!1;error=null;constructor(e){this.client=e,u(this)}clear(){this.messages=[],this.currentResponse=``,this.error=null}async send(e){if(!e.trim()||this.isStreaming)return;let t={id:`u-${Date.now()}`,role:`user`,content:e,ts:Date.now()};l(()=>{this.messages.push(t),this.isStreaming=!0,this.currentResponse=``,this.error=null});try{await this.mockStream(e),l(()=>{this.messages.push({id:`a-${Date.now()}`,role:`assistant`,content:this.currentResponse,ts:Date.now()}),this.currentResponse=``,this.isStreaming=!1})}catch(e){l(()=>{this.error=e instanceof Error?e.message:String(e),this.isStreaming=!1})}}async mockStream(e){let t=`[mock] Reçu "${e}". Le pipeline @nodefony/agent (P12) répondra ici en streaming via RealtimeClient + JSON-RPC 2.0.`;for(let e of t.split(``))await new Promise(e=>setTimeout(e,15)),l(()=>this.currentResponse+=e)}},Ve=`/nodefony/framework/api/admin`,He=class{api;producers=[];loading=!1;error=null;env=null;invocations=new Map;constructor(e){this.api=e,u(this,{},{autoBind:!0})}get isProd(){return this.env===`production`}async loadInfo(){try{let e=await this.api.get(`/info`);l(()=>{this.env=typeof e.env==`string`?e.env:null})}catch{}}async loadCatalog(){this.loading=!0,this.error=null;try{let e=await this.api.getAbsolute(Ve);l(()=>{this.producers=e.producers??[],this.loading=!1})}catch(e){l(()=>{this.error=e instanceof Error?e.message:String(e),this.loading=!1})}}async invoke(e){this.invocations.set(e,{loading:!0});try{let t=await this.api.getAbsolute(e);l(()=>{this.invocations.set(e,{loading:!1,data:t,at:Date.now()})})}catch(t){l(()=>{this.invocations.set(e,{loading:!1,error:t instanceof Error?t.message:String(t),at:Date.now()})})}}reset(){this.producers=[],this.invocations.clear(),this.error=null,this.loading=!1}get endpointCount(){return this.producers.reduce((e,t)=>e+t.endpoints.length,0)}pageCapabilities(e,t=`GET`){for(let n of this.producers)for(let r of n.endpoints)if(r.path===e&&r.method===t)return r.page??null;return null}},H=`/nodefony/profiler/api`,Ue=class{api;recent=[];count=0;loading=!1;error=null;unavailable=!1;selectedId=null;detail=null;detailLoading=!1;detailError=null;autoRefresh=!1;timer=null;constructor(e){this.api=e,u(this,{},{autoBind:!0})}async loadRecent(){this.loading=!0,this.error=null,this.unavailable=!1;try{let e=await this.api.getAbsolute(`${H}/recent`);l(()=>{this.recent=e.entries??[],this.count=e.count??this.recent.length,this.loading=!1})}catch(e){l(()=>{e instanceof v&&e.status===404?this.unavailable=!0:this.error=e instanceof Error?e.message:String(e),this.loading=!1})}}async select(e){this.selectedId=e,this.detail=null,this.detailLoading=!0,this.detailError=null;try{let t=await this.api.getAbsolute(`${H}/${encodeURIComponent(e)}`);l(()=>{this.selectedId===e&&(this.detail=t,this.detailLoading=!1)})}catch(t){l(()=>{this.selectedId===e&&(this.detailError=t instanceof Error?t.message:String(t),this.detailLoading=!1)})}}async clear(){try{await this.api.deleteAbsolute(`${H}/recent`)}catch{}l(()=>{this.recent=[],this.count=0,this.selectedId=null,this.detail=null})}setAutoRefresh(e){this.autoRefresh=e,this.timer&&=(clearInterval(this.timer),null),e&&(this.timer=setInterval(()=>void this.loadRecent(),3e3))}dispose(){this.timer&&clearInterval(this.timer),this.timer=null,this.autoRefresh=!1}},We=50,Ge={success:`teal`,info:`blue`,warning:`yellow`,error:`red`},Ke={success:3e3,info:4e3,warning:6e3,error:1e4},qe=class{recent=[];constructor(e){u(this,{},{autoBind:!0}),e.onNotice(e=>this.push(e))}push(e){this.recent.push(e),this.recent.length>We&&this.recent.splice(0,this.recent.length-We),e.source!==`realtime`&&_.show({color:Ge[e.level],title:e.title,message:e.message,autoClose:Ke[e.level],withBorder:!0})}notify(e,t,n={}){this.push({level:e,message:t,title:n.title,source:n.source??`api`,code:n.code,ts:Date.now()})}get realtimeIncidents(){return this.recent.filter(e=>e.source===`realtime`||e.source===`server`).slice().reverse()}clear(){this.recent=[]}},Je=1/48,Ye=1/6,Xe=.008,Ze={runtime:`Runtime & lancement`,system:`Système & santé`,logs:`Logs`,orm:`Données / ORM`,realtime:`Temps réel`,cluster:`Cluster`,security:`Sécurité`,account:`Mon compte`,ai:`IA`},U=[{id:`account`,label:`Mon compte`,items:[{widgetId:`account.profile`,span:6,h:4},{widgetId:`account.apikeys`,span:6,h:3},{widgetId:`account.sessions`,span:6,h:3}]},{id:`dev`,label:`Développeur`,roles:F.dev,items:[{widgetId:`runtime.mode`,span:6,h:4},{widgetId:`system.info`,span:6,h:4},{widgetId:`system.git`,span:4,h:3},{widgetId:`system.uptime`,span:4,h:3},{widgetId:`system.cpu`,span:4,h:4},{widgetId:`system.heap`,span:4,h:4},{widgetId:`system.eventloop`,span:4,h:4},{widgetId:`orm.health`,span:6,h:4},{widgetId:`logs.live`,span:6,h:5}]},{id:`admin`,label:`Admin`,roles:F.admin,items:[{widgetId:`runtime.mode`,span:6,h:4},{widgetId:`runtime.modes`,span:6,h:4},{widgetId:`system.health`,span:6,h:3},{widgetId:`orm.health`,span:6,h:4},{widgetId:`realtime.hub`,span:6,h:4},{widgetId:`realtime.channels`,span:6,h:4}]},{id:`supervision`,label:`Supervision`,roles:F.ops,items:[],layout:[{widgetId:`supervision.health`,x:0,y:0,w:1,h:216,z:10},{widgetId:`runtime.mode`,x:0,y:228,w:.2917,h:208,z:2},{widgetId:`system.eventloop`,x:.2997,y:228,w:.2083,h:208,z:3},{widgetId:`system.cpu`,x:.516,y:228,w:.2292,h:208,z:4},{widgetId:`system.heap`,x:.7532,y:228,w:.2292,h:208,z:5},{widgetId:`supervision.correlation`,x:0,y:448,w:1,h:312,z:9},{widgetId:`orm.flow`,x:0,y:772,w:1,h:320,z:7},{widgetId:`supervision.gc`,x:0,y:1104,w:1,h:384,z:8}]},{id:`systeme`,label:`Système`,roles:F.devops,items:[{widgetId:`supervision.health`,span:12,h:6},{widgetId:`system.cpu`,span:4,h:4},{widgetId:`system.heap`,span:4,h:4},{widgetId:`system.eventloop`,span:4,h:4},{widgetId:`supervision.correlation`,span:6,h:5},{widgetId:`supervision.gc`,span:6,h:6},{widgetId:`system.info`,span:6,h:4},{widgetId:`runtime.mode`,span:6,h:4}]},{id:`config`,label:`Configuration`,roles:F.dev,items:[{widgetId:`runtime.mode`,span:6,h:4},{widgetId:`runtime.modes`,span:6,h:4},{widgetId:`runtime.vite`,span:4,h:4},{widgetId:`system.info`,span:8,h:4},{widgetId:`system.git`,span:6,h:3},{widgetId:`system.uptime`,span:6,h:3}]},{id:`logs`,label:`Logs`,roles:F.devops,items:[{widgetId:`logs.live`,span:12,h:7},{widgetId:`logs.backplane`,span:12,h:5},{widgetId:`supervision.alerts`,span:6,h:4},{widgetId:`realtime.channels`,span:6,h:4}]},{id:`memoire`,label:`Mémoire`,roles:F.devops,items:[{widgetId:`supervision.memory`,span:8,h:6},{widgetId:`supervision.handles`,span:4,h:6},{widgetId:`supervision.gc`,span:12,h:6},{widgetId:`system.heap`,span:6,h:4},{widgetId:`supervision.correlation`,span:6,h:5}]},{id:`erreurs`,label:`Erreurs`,roles:F.devops,items:[{widgetId:`supervision.errors`,span:6,h:5},{widgetId:`supervision.alerts`,span:6,h:5},{widgetId:`logs.live`,span:12,h:7}]},{id:`blank`,label:`Vierge`,items:[]}];function Qe(e){return U.find(t=>t.id===e)?.roles}function $e(e,t){return P(Qe(e),t)}var et=`account`,W=new Map,tt={runtime:F.devops,system:F.devops,realtime:F.devops,logs:F.devops,cluster:F.ops,orm:F.dev,ai:F.dev,security:F.admin};function nt(e){W.set(e.id,e)}function rt(e){return W.get(e)}function it(e=[]){let t=[];for(let n of W.values())P(n.roles??tt[n.category],e)&&t.push(n);return t.sort((e,t)=>e.title.localeCompare(t.title))}function G(e,t){return t<=0?e:Math.round(e/t)*t}function K(e,t,n){return Math.max(t,Math.min(n,e))}function at(e){let t=[],n=0,r=0,i=0;for(let a of e){let e=K(a.w,.05,1);n>0&&n+e>1+1e-6&&(n=0,r+=i+12,i=0),t.push({id:a.id,x:n,y:r,w:e,h:a.h}),n+=e+Xe,i=Math.max(i,a.h)}return t}var q=`nf.workspace.layouts.v3`,J=`nf.workspace.active.v3`;function Y(e){return K(Number.isFinite(e)?e:.33,Ye,1)}function X(e){return Math.max(96,Number.isFinite(e)?Math.round(e):192)}function Z(e){if(e.layout&&e.layout.length)return{id:e.id,label:e.label,items:e.layout.map(ot)};let t=at(e.items.map(e=>({id:e.widgetId,w:Y((e.span??4)/12),h:X((e.h??3)*64)})));return{id:e.id,label:e.label,items:t.map((e,t)=>({widgetId:e.id,x:e.x,y:e.y,w:e.w,h:e.h,z:t+1}))}}function ot(e){return{widgetId:e.widgetId,x:K(e.x,0,1),y:Math.max(0,Math.round(e.y)),w:Y(e.w),h:X(e.h),z:e.z}}function st(e){let t=e;return!!t&&typeof t.widgetId==`string`&&typeof t.x==`number`&&typeof t.y==`number`&&typeof t.w==`number`&&typeof t.h==`number`&&typeof t.z==`number`}var ct=class{layouts={};activeId=et;constructor(){u(this),this.load()}get active(){return this.layouts[this.activeId]??this.layouts.blank??{id:`blank`,label:`Vierge`,items:[]}}get layoutList(){return Object.values(this.layouts)}setActive(e){this.layouts[e]&&(this.activeId=e,this.persist())}hasWidget(e){return this.active.items.some(t=>t.widgetId===e)}topZ(e){return e.reduce((e,t)=>Math.max(e,t.z),0)}addWidget(e){let t=rt(e),n=this.layouts[this.activeId];if(!t||!n||n.items.some(t=>t.widgetId===e))return;let r=Y((t.defaultSpan??4)/12),i=X((t.defaultH??3)*64),a=n.items.reduce((e,t)=>Math.max(e,t.y+t.h),0);n.items.push({widgetId:e,x:0,y:n.items.length?a+8:0,w:r,h:i,z:this.topZ(n.items)+1}),this.persist()}removeWidget(e){let t=this.layouts[this.activeId];t&&(t.items=t.items.filter(t=>t.widgetId!==e),this.persist())}moveTo(e,t,n){let r=this.layouts[this.activeId]?.items.find(t=>t.widgetId===e);r&&(r.x=K(G(t,Je),0,1-r.w),r.y=Math.max(0,G(n,8)),this.persist())}setSize(e,t,n){let r=this.layouts[this.activeId]?.items.find(t=>t.widgetId===e);r&&(r.w=Y(G(t,Je)),r.h=X(G(n,8)),r.x=Math.min(r.x,1-r.w),this.persist())}bringToFront(e){let t=this.layouts[this.activeId]?.items,n=t?.find(t=>t.widgetId===e);if(!t||!n)return;let r=this.topZ(t);n.z!==r&&(n.z=r+1,this.persist())}tidy(){let e=this.layouts[this.activeId];if(!e||!e.items.length)return;let t=[...e.items].sort((e,t)=>e.y-t.y||e.x-t.x),n=t.map(e=>({id:e.widgetId,w:e.w,h:e.h})),r=new Map(at(n).map(e=>[e.id,e]));t.forEach((e,t)=>{let n=r.get(e.widgetId);n&&(e.x=n.x,e.y=n.y,e.z=t+1)}),this.persist()}resetToPreset(){let e=U.find(e=>e.id===this.activeId);e&&(this.layouts[this.activeId]=Z(e),this.persist())}get templates(){return U.map(e=>({id:e.id,label:e.label}))}uniqueId(){let e=`ws_${Date.now().toString(36)}`;for(;this.layouts[e];)e+=`x`;return e}uniqueLabel(e){let t=new Set(Object.values(this.layouts).map(e=>e.label));if(!t.has(e))return e;let n=2;for(;t.has(`${e} ${n}`);)n++;return`${e} ${n}`}createWorkspace(e){let t=e?U.find(t=>t.id===e):null,n=this.uniqueId(),r=this.uniqueLabel(t?.label??`Bureau`),i=t?Z(t).items:[];return this.layouts[n]={id:n,label:r,items:i},this.activeId=n,this.persist(),n}renameWorkspace(e,t){let n=this.layouts[e],r=t.trim();n&&r&&(n.label=r,this.persist())}deleteWorkspace(e){Object.keys(this.layouts).length<=1||!this.layouts[e]||(delete this.layouts[e],this.activeId===e&&(this.activeId=Object.keys(this.layouts)[0]),this.persist())}moveWorkspace(e,t){if(!this.layouts[e]||e===t)return;let n=Object.keys(this.layouts).filter(t=>t!==e),r=t?n.indexOf(t):-1;if(t&&r<0)return;n.splice(r<0?n.length:r,0,e);let i={};for(let e of n)i[e]=this.layouts[e];this.layouts=i,this.persist()}duplicateWorkspace(e){let t=this.layouts[e];if(!t)return;let n=this.uniqueId();this.layouts[n]={id:n,label:this.uniqueLabel(`${t.label} (copie)`),items:t.items.map(e=>({...e}))},this.activeId=n,this.persist()}resetForIdentity(){try{typeof localStorage<`u`&&(localStorage.removeItem(q),localStorage.removeItem(J))}catch{}this.activeId=et,this.load()}load(){try{if(typeof localStorage<`u`){let e=localStorage.getItem(q);if(e){let t=JSON.parse(e);if(t&&typeof t==`object`){let e={};for(let[n,r]of Object.entries(t))r&&Array.isArray(r.items)&&(e[n]={id:n,label:r.label??n,items:r.items.filter(st).map(ot)});if(Object.keys(e).length){this.layouts=e;let t=localStorage.getItem(J);this.activeId=t&&e[t]?t:Object.keys(e)[0];return}}}}}catch{}let e={};for(let t of U)e[t.id]=Z(t);this.layouts=e,e[this.activeId]||(this.activeId=Object.keys(e)[0]??`account`)}persist(){try{if(typeof localStorage>`u`)return;localStorage.setItem(q,JSON.stringify(this.layouts)),localStorage.setItem(J,this.activeId)}catch{}}};function lt(){return typeof window>`u`?`ws://127.0.0.1/nodefony/studio/api/realtime`:`${window.location.protocol===`https:`?`wss`:`ws`}://${window.location.host}/nodefony/studio/api/realtime`}var ut=class{ui;auth;connection;chat;admin;profiler;notifications;workspace;api;kernel;realtime;browserLog;constructor(){this.ui=new ze,this.workspace=new ct,this.kernel=c({name:`STUDIO`,connectOnBoot:!1,realtime:{url:lt(),autoReconnect:!0,reconnectDelay:800,reconnectDelayMax:4e3}});let e=this.kernel.get(`realtime`);if(!e)throw Error(`RootStore : le noyau client n'a pas composé de socket temps réel.`);this.realtime=e,this.browserLog=new t({moduleName:`studio`}),a(),De({syslog:this.browserLog}),n({syslog:this.browserLog,publisher:this.realtime}),this.notifications=new qe(this.realtime),this.api=new fe({socket:this.realtime,socketEnabled:()=>this.ui.apiViaSocket,onUnauthorized:()=>{this.auth?.clearLocalSession()},onError:({method:e,status:t,message:n})=>{t!==401&&e!==`GET`&&this.notifications.notify(`error`,n,{title:`Erreur ${t}`,source:`api`,code:t})}});let r=new we(this.api);this.auth=new ke(r),this.connection=new Ae(this.realtime,lt()),this.chat=new Be(this.realtime),this.admin=new He(this.api),this.profiler=new Ue(this.api),o(()=>this.auth.user?.id??null,e=>{this.kernel.setIdentity(e===null?null:{key:String(e)})}),this.kernel.on(`onIdentityChange`,(...e)=>{let[,t]=e;if(this.admin.reset(),t!==null){this.workspace.resetForIdentity();try{if(typeof localStorage<`u`){let e=[];for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n&&(n.startsWith(`studio.`)||n.startsWith(`nf.datagrid:`))&&e.push(n)}for(let t of e)localStorage.removeItem(t)}}catch{}}}),this.kernel.boot()}},dt=`__nfStudioStoreContext__`,ft=globalThis,Q=ft[dt]??(ft[dt]=(0,d.createContext)(null)),pt=Q.Provider;function $(){let e=(0,d.useContext)(Q);if(!e)throw Error(`useStore() called outside <StoreProvider>. Wrap your tree with StoreProvider.`);return e}var mt=()=>$().auth,ht=()=>$().ui,gt=()=>$().connection,_t=()=>$().chat,vt=()=>$().admin,yt=()=>$().profiler,bt=()=>$().notifications,xt=()=>$().workspace;export{v as A,N as C,A as D,P as E,_ as M,h as N,k as O,te as P,j as S,F as T,Ye as _,gt as a,I as b,$ as c,ut as d,K as f,$e as g,nt as h,_t as i,re as j,O as k,ht as l,it as m,vt as n,bt as o,rt as p,mt as r,yt as s,pt as t,xt as u,Ze as v,M as w,R as x,L as y};
|