elanous 0.2.35 → 0.2.37
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/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/{T1mBQqmkwKDLGtyisDCOd → 8kITumG9GAZ1LwT9POrAR}/_buildManifest.js +1 -1
- package/apps/pwa/out/_next/static/chunks/1041-5841aae848fb6403.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1087.3177e54f672dc526.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1105.efe1e13503ac7a33.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1224.2ceca6c180d5130b.js +62 -0
- package/apps/pwa/out/_next/static/chunks/{9952.5daf5f94063a2b3e.js → 1262.a89bb27a5b2f844e.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1417-1768233ac92f8a5d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1612.81bbc19af06af16c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1746.3563617ea64023a3.js +115 -0
- package/apps/pwa/out/_next/static/chunks/1766.728d42053070bb2d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1773.d38e945481e04125.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1974-c12f9600da3d3c26.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1dc5a567.9b092bfae3d7099b.js → 1ed5e8af.cf424815c7c0efad.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{4705-194e64e47ca0fbdb.js → 2002-a43a3f380df873ec.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/2061.7232dc9dc058417f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{13.02a07436dec15f89.js → 210.90b2cbd64926cf34.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{9512.5a76207a730e0491.js → 2283.edd9627b7bdfb546.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/{6866-79aa5b4e47cac6aa.js → 2318-450e75d07605b8fe.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{938.66ad1ef0e5abae1c.js → 2375.bf364c85dbb6f085.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/244-a810d282a20f1783.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2479-fe7e188bd9402d14.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2514.03b60f266531a015.js +148 -0
- package/apps/pwa/out/_next/static/chunks/2526-a657538869888604.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2533-6f0341ff075809e9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2676.e7994c695ef0f30d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2734.3ffdf54254fb6f99.js +27 -0
- package/apps/pwa/out/_next/static/chunks/2770-23252bf3a37880b9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2969.66b8b545139d1544.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3128.a9210d08800ea6a8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3199.6a1a9b0e6cd01dc6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3212.12179fd3eee8cef1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9214.63a510d39178e997.js → 3578.4e9f9948a9a6f2f4.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/3760-2909ddb9279281cd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3825.1921b5901bf33dce.js +36 -0
- package/apps/pwa/out/_next/static/chunks/3994-63eb884ed0547011.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4036.d54e55e1ebf5acdc.js +90 -0
- package/apps/pwa/out/_next/static/chunks/4115.5b438b99f0ae729f.js +226 -0
- package/apps/pwa/out/_next/static/chunks/4269.d8f9f34bb0fc6c43.js +287 -0
- package/apps/pwa/out/_next/static/chunks/431-4eed5bd2c5fe1719.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2018.a741297bce759490.js → 4313.76f232c304a15bde.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{1165.bad13fc9151a7288.js → 4324.c99ba3e83eb1b691.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{3f7c4ee5.3dde54f01a816613.js → 4337e36d.f42c3b391b3d8f20.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{7385.50a308a477bdfc21.js → 4383.18e5c54db3a22c88.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4599-96eff3f2a9c242c1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{8557-e7898769499cd56f.js → 4725-34bed25720cc326b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4825-a9d9d4e9f5892309.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5483-dd5d7697f6bdb106.js → 4833-7934c592c5569f00.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4879-68518f547a207aff.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4896.f9b70285363b27b2.js +24 -0
- package/apps/pwa/out/_next/static/chunks/{8444.4c26b379ca2b9596.js → 4931.95cc6dbd230774ca.js} +17 -17
- package/apps/pwa/out/_next/static/chunks/4937-28d437999b77c9dd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/49aa54ab.80f39398e0ed0f30.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{3408.21d1570602f4b6c0.js → 5046.7fd5cbd859299448.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5056.482687319b82638e.js +104 -0
- package/apps/pwa/out/_next/static/chunks/506.16b83d56a437a9ee.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5260-20593b0a25d0afbc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5404.cc4e9fec26fd5925.js +1 -0
- package/apps/pwa/out/_next/static/chunks/576.485e83e3f3dec19a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5832-a6be14e663f65726.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5854-56648a9fe646b9a0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/58edce7d.f1b0c72acf13b123.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5925.3b1f8b135710249b.js +93 -0
- package/apps/pwa/out/_next/static/chunks/5952.294fc574a8625184.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{b6705a4f-b9a9047de9eecfd0.js → 5f6af561-f90b7a67f4f75d13.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/6168.17749aa3905fa073.js +74 -0
- package/apps/pwa/out/_next/static/chunks/6252.240578f10952e091.js +34 -0
- package/apps/pwa/out/_next/static/chunks/6416.5d50b8ec9986ca98.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5101.e32282718f99ed6f.js → 6680.6a693c28aae4cd19.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{4718-17d2af636796a330.js → 6745-5a63492933959dd9.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/6758.e7fbf532953c0783.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6795.0cb8a59730d99703.js +149 -0
- package/apps/pwa/out/_next/static/chunks/{6236.e18cced2d5ba6afb.js → 6819.be5c9c4d67f22922.js} +16 -16
- package/apps/pwa/out/_next/static/chunks/6877-84d47b7e85d0c41e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2833-0fe47af99ed13c29.js → 6971-fb5f9dc0a2cb5d2d.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{da5176c6.6773b6c5994e1d99.js → 709a918c.4fd3b4e2a32cb4e3.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/717.522b08685979b814.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7191.e41eb8f455c7f089.js +41 -0
- package/apps/pwa/out/_next/static/chunks/7233.8e744b7513119409.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7238-97c2226f80504bd8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7285.307963afcf7e7660.js +24 -0
- package/apps/pwa/out/_next/static/chunks/7299-fbe4b8c47a87614a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7314.df0d95930b0c3f50.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7406.c0589fdf2ee66629.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7424.c0fe2a595d4232b5.js +23 -0
- package/apps/pwa/out/_next/static/chunks/752-90e3e7daad3d8e39.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7524-bcd3d9928c6842d9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7549.9a4de3bf231cfc52.js +1 -0
- package/apps/pwa/out/_next/static/chunks/757-4fbaf50942b8c424.js +1 -0
- package/apps/pwa/out/_next/static/chunks/765.76ae970ceb597b5b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7644.17e37ba6f1d4226e.js → 7867.e8725745ddd1d940.js} +4 -4
- package/apps/pwa/out/_next/static/chunks/7893-e444a1b0809cd1e4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7956-33748cabb3a05562.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{0368f25d-ad84af92fefee68f.js → 7c5ed21f-f286708e57cf88f7.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8030-aa66b478b53dbfca.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8051.c88c07dacbbc5f21.js +8 -0
- package/apps/pwa/out/_next/static/chunks/{359-2250789a2d3499e7.js → 8080-40d781e7704d3671.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8149.80e402d4345e8dae.js +77 -0
- package/apps/pwa/out/_next/static/chunks/8205.50a5268f4e12ba0b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8231.a128feaa6f8b6079.js +1 -0
- package/apps/pwa/out/_next/static/chunks/85.4ddb1dda2ea3ffa2.js +286 -0
- package/apps/pwa/out/_next/static/chunks/8537.26517a09e8247beb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8595-e9b7081ab773a61f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8821-30cc65a61a60951f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8905.b3385aadb7b133e6.js +79 -0
- package/apps/pwa/out/_next/static/chunks/8983.246bb3a1ac38f50f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{b2f6ba4d.fb56fdbbf798df33.js → 8c58d09b.e8724a299658d86f.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9072.18342f5941a1f3ec.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9123.9df04866b2d6e00f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1530.0e612369b6fd7ea0.js → 9151.a2c51e93f9156dae.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{4441-875b97f5821ed58a.js → 9175-7d383df15a82e2be.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9181-bf89c07ce5b8f599.js +1 -0
- package/apps/pwa/out/_next/static/chunks/920-429bbc4504b45f71.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9207.625edf45d656151c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9378.d2575c6ffd6dd756.js +94 -0
- package/apps/pwa/out/_next/static/chunks/957.db5b5c4d32a35240.js +1 -0
- package/apps/pwa/out/_next/static/chunks/958.53a8dcf4729e6997.js +64 -0
- package/apps/pwa/out/_next/static/chunks/9647.8f0cd0898c592a29.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9665-26abb02665704c2c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9703.e7d81b6faef1050a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9882-7a9164b3c2dacbe5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9998.b74e033efadecd10.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c604fb980a634d88.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-ec2d8a4979ca9075.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-cb6add08ad3c7660.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-e2eaa321ec223fe6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-5b8a09c475b5f844.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/bots/page-91a77daedfbac191.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-f37fc5e974bda39b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-91429a0b78415a94.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-b95798b58263b910.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-763d53e175e17aa1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-d55023204055b12f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-89d2140d78abc810.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-82dc069abfe27f55.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-25d9eee7beb552c0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-770b4594c713ee97.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-c604fb980a634d88.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/page-ba8e0dcae4f83985.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/intake/page-5c112c6d7c33656e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-09788e1aa9a87db6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-3337c6a1328c2674.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-89acd5d68c0bc560.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-5c13e2c76371d797.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-653a9f18642825c6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-fe986fe79b107546.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/{page-47c5d4db587266bd.js → page-1e5da297557d2354.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-91ea9f5869a40943.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-7824e21b999962e2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-53d00a60cc75a922.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/{page-1f5a60f70cb4dd0c.js → page-88a1edbff62eaf1d.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-4e931248b3f9574b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/{page-bac7dee94e5eae4a.js → page-443364c9e4a23b31.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/page-b9af2ac1c4737ce8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-25ab9c614c14129b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-dbcdcfac0a395a8a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-bf1de6645089ec58.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-c4201761a5e839c9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/page-c304f469ea5d70e4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-8e5a238cf5e50c9c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-c604fb980a634d88.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-32b526069ee50b3c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-fb9e639c107f5f72.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-84220c776608cedc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-e475618cbfd5ca2b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/{page-dc0a532f5b9196ec.js → page-ac2c1e6169cfce57.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-fccd3020af2f8806.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-9c0d7198ff7b5a91.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-d54b1ec9b9c6430d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-8c4bef1791d732ca.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-46fcc0b0bbc6fbfe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-c1c80e345fa9d6f5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-7dfda00afd172f5b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{d06f9160.a3d9062f95de8ad7.js → d9815f84.4918f682a45a8502.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{cbe38a15.5a032598e39970c6.js → de8446d3.31b73eb239fecd7b.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/f21fd540.63ac75328926ed30.js +1 -0
- package/apps/pwa/out/_next/static/chunks/framework-77fdcc873519a6cd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-d0d620d2ce235713.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-e0ef79c79337ba90.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-84b1bc71e3f9ce6a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-2acb61f1363128cb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-462ff5727ceb7824.js +1 -0
- package/apps/pwa/out/_next/static/css/{b5d88eba78a3d7bf.css → be9019f696217521.css} +1 -1
- package/apps/pwa/out/approvals/index.html +1 -1
- package/apps/pwa/out/approvals/index.txt +23 -23
- package/apps/pwa/out/autopilot/index.html +1 -1
- package/apps/pwa/out/autopilot/index.txt +23 -23
- package/apps/pwa/out/board/index.html +1 -1
- package/apps/pwa/out/board/index.txt +23 -23
- package/apps/pwa/out/botlab/index.html +1 -1
- package/apps/pwa/out/botlab/index.txt +22 -22
- package/apps/pwa/out/bots/index.html +1 -1
- package/apps/pwa/out/bots/index.txt +22 -22
- package/apps/pwa/out/ceo/index.html +1 -1
- package/apps/pwa/out/ceo/index.txt +23 -23
- package/apps/pwa/out/chat/index.html +1 -1
- package/apps/pwa/out/chat/index.txt +22 -22
- package/apps/pwa/out/consult/index.html +1 -1
- package/apps/pwa/out/consult/index.txt +23 -23
- package/apps/pwa/out/control/index.html +1 -1
- package/apps/pwa/out/control/index.txt +23 -23
- package/apps/pwa/out/decisions/index.html +1 -1
- package/apps/pwa/out/decisions/index.txt +22 -22
- package/apps/pwa/out/design-check/index.html +1 -1
- package/apps/pwa/out/design-check/index.txt +23 -23
- package/apps/pwa/out/editor/index.html +1 -1
- package/apps/pwa/out/editor/index.txt +23 -23
- package/apps/pwa/out/exec/index.html +1 -1
- package/apps/pwa/out/exec/index.txt +23 -23
- package/apps/pwa/out/field/index.html +1 -1
- package/apps/pwa/out/field/index.txt +23 -23
- package/apps/pwa/out/healthz +1 -1
- package/apps/pwa/out/index.html +1 -1
- package/apps/pwa/out/index.txt +22 -22
- package/apps/pwa/out/inside/index.html +1 -1
- package/apps/pwa/out/inside/index.txt +22 -22
- package/apps/pwa/out/intake/index.html +1 -1
- package/apps/pwa/out/intake/index.txt +23 -23
- package/apps/pwa/out/live/index.html +1 -1
- package/apps/pwa/out/live/index.txt +23 -23
- package/apps/pwa/out/live-run/index.html +1 -1
- package/apps/pwa/out/live-run/index.txt +23 -23
- package/apps/pwa/out/loops/index.html +1 -1
- package/apps/pwa/out/loops/index.txt +22 -22
- package/apps/pwa/out/market/index.html +1 -1
- package/apps/pwa/out/market/index.txt +22 -22
- package/apps/pwa/out/missions/placeholder/index.html +1 -1
- package/apps/pwa/out/missions/placeholder/index.txt +22 -22
- package/apps/pwa/out/morning/index.html +1 -1
- package/apps/pwa/out/morning/index.txt +23 -23
- package/apps/pwa/out/observatory/index.html +1 -1
- package/apps/pwa/out/observatory/index.txt +23 -23
- package/apps/pwa/out/ops/checklist/index.html +1 -1
- package/apps/pwa/out/ops/checklist/index.txt +22 -22
- package/apps/pwa/out/ops/release/index.html +1 -1
- package/apps/pwa/out/ops/release/index.txt +22 -22
- package/apps/pwa/out/ops/seats/index.html +1 -1
- package/apps/pwa/out/ops/seats/index.txt +22 -22
- package/apps/pwa/out/outputs/index.html +1 -1
- package/apps/pwa/out/outputs/index.txt +22 -22
- package/apps/pwa/out/reflection/index.html +1 -1
- package/apps/pwa/out/reflection/index.txt +23 -23
- package/apps/pwa/out/scheduler/index.html +1 -1
- package/apps/pwa/out/scheduler/index.txt +23 -23
- package/apps/pwa/out/sessions/index.html +1 -1
- package/apps/pwa/out/sessions/index.txt +22 -22
- package/apps/pwa/out/settings/devices/index.html +1 -1
- package/apps/pwa/out/settings/devices/index.txt +23 -23
- package/apps/pwa/out/settings/index.html +1 -1
- package/apps/pwa/out/settings/index.txt +23 -23
- package/apps/pwa/out/setup/done/index.html +1 -1
- package/apps/pwa/out/setup/done/index.txt +23 -23
- package/apps/pwa/out/setup/index.html +1 -1
- package/apps/pwa/out/setup/index.txt +23 -23
- package/apps/pwa/out/share/index.html +1 -1
- package/apps/pwa/out/share/index.txt +23 -23
- package/apps/pwa/out/showroom/index.html +1 -1
- package/apps/pwa/out/showroom/index.txt +22 -22
- package/apps/pwa/out/tasks/index.html +1 -1
- package/apps/pwa/out/tasks/index.txt +23 -23
- package/apps/pwa/out/term/index.html +1 -1
- package/apps/pwa/out/term/index.txt +23 -23
- package/apps/pwa/out/today/index.html +1 -1
- package/apps/pwa/out/today/index.txt +23 -23
- package/apps/pwa/out/trace/index.html +1 -1
- package/apps/pwa/out/trace/index.txt +23 -23
- package/apps/pwa/out/vault/index.html +1 -1
- package/apps/pwa/out/vault/index.txt +23 -23
- package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +23 -23
- package/apps/pwa/out/workflows/index.html +1 -1
- package/apps/pwa/out/workflows/index.txt +23 -23
- package/apps/pwa/out/workspace/index.html +1 -1
- package/apps/pwa/out/workspace/index.txt +23 -23
- package/apps/pwa/out/worktrees/index.html +1 -1
- package/apps/pwa/out/worktrees/index.txt +23 -23
- package/docs/goal-context/05-authoring-lessons.jsonl +47 -0
- package/docs/goal-context/README.md +3 -0
- package/graphs/default-loop.yaml +6 -1
- package/graphs/drafts/recipes.yaml +27 -7
- package/graphs/implement-loop.yaml +24 -0
- package/graphs/release/recipes.yaml +6 -0
- package/graphs/release/release-loop.yaml +17 -4
- package/graphs/wizard/recipes.yaml +44 -0
- package/graphs/wizard/wizard-loop.yaml +44 -0
- package/graphs/work/draft-close.yaml +54 -0
- package/graphs/work/green-close.yaml +37 -0
- package/graphs/work/recipes.yaml +46 -1
- package/graphs/work/research-report.yaml +2 -0
- package/graphs/work/run-research.yaml +35 -0
- package/package.json +1 -1
- package/scripts/__fixtures__/authoring-paths-10x3.json +32 -0
- package/scripts/boundary-proof-mapping-audit.ts +88 -0
- package/scripts/ci-typecheck-changed.ts +139 -5
- package/scripts/codex-fallback-live-probe.ts +17 -15
- package/scripts/coord-role-pack.ts +1 -1
- package/scripts/first10-gate.ts +416 -0
- package/scripts/fleet/node-setup.sh +32 -2
- package/scripts/fleet/run-light-worker.sh +9 -0
- package/scripts/fleet/wsl-node-setup.sh +432 -0
- package/scripts/gate-0226-failure-census.ts +507 -0
- package/scripts/goals/authoring-metrics.ts +258 -0
- package/scripts/graph-units/draft-close-node.ts +222 -0
- package/scripts/hook-order-sweep.ts +7 -4
- package/scripts/land-global-checks.ts +69 -1
- package/scripts/measure-nl-routing-corpus.ts +207 -2
- package/scripts/release-loop/docs-node.ts +344 -8
- package/scripts/release-loop/gate-closure.ts +48 -0
- package/scripts/release-loop/gate-diff.ts +2 -1
- package/scripts/release-loop/gate-node.ts +249 -53
- package/scripts/release-loop/known-issues-node.ts +6 -4
- package/scripts/release-loop/node-verdict.ts +2 -0
- package/scripts/release-loop/notes-repair.ts +216 -0
- package/scripts/release-loop/prepare-node.ts +61 -5
- package/scripts/release-loop/resume-cap.ts +14 -34
- package/scripts/release-loop/resume-release.ts +151 -15
- package/scripts/release-loop/resume-test-traffic.ts +10 -0
- package/scripts/release-loop/traffic-node.ts +59 -0
- package/scripts/release-loop/traffic-transition.ts +159 -0
- package/scripts/release-loop/version-node.ts +81 -12
- package/scripts/rhythm/daily.ts +137 -3
- package/scripts/train/green-leg.ts +176 -0
- package/scripts/tui-continue-real-evidence.ts +47 -0
- package/scripts/ux-sim.ts +53 -0
- package/skills/README.md +1 -0
- package/src/acp/client.ts +31 -5
- package/src/acp/core-turn-bridge.ts +54 -6
- package/src/acp/stderr-summary.ts +49 -0
- package/src/agent/delegate-hint.ts +16 -0
- package/src/agent/monad-agent-turn.ts +1 -0
- package/src/agent/runner.ts +82 -2
- package/src/agent/task-notification.ts +56 -10
- package/src/agent/terminal-surface.ts +217 -0
- package/src/agent/types.ts +4 -0
- package/src/agent-substrate/pr-reviewer.ts +64 -4
- package/src/agent-substrate/review-intent.ts +29 -2
- package/src/agent-substrate/review-observation.ts +3 -0
- package/src/agent-substrate/self-review-cli.ts +490 -26
- package/src/autopilot/lineage/sources.ts +1 -1
- package/src/autopilot/mission-codebase-gate.ts +141 -12
- package/src/autopilot/pr-manager.ts +89 -18
- package/src/boot/daemon-runtime.ts +35 -3
- package/src/boot/daemon-tools/pty-shell.ts +2 -1
- package/src/boot/daemon-tools/self-implement.ts +1 -0
- package/src/budget/run-usage-rollup.ts +12 -7
- package/src/budget/unified-usage.ts +20 -0
- package/src/budget/usage-outcomes.ts +8 -4
- package/src/capture/tui-self-report.ts +132 -1
- package/src/chat/goal-continue-verdict.ts +41 -0
- package/src/chat/index.ts +30 -4
- package/src/chat/internal-turn-origin.ts +1 -0
- package/src/chat/paste-fold.ts +86 -0
- package/src/chat/tool-render/block.ts +32 -0
- package/src/chat/tool-render/dispatch.ts +2 -20
- package/src/chat/tool-render/result-text.ts +98 -0
- package/src/chat/turn-typeahead.ts +70 -7
- package/src/cli/autopilot-cli.ts +24 -9
- package/src/cli/config-audit.ts +119 -0
- package/src/cli/decisions-cli.ts +7 -4
- package/src/cli/doctor-cli.ts +137 -6
- package/src/cli/guardian-cli.ts +10 -0
- package/src/cli/herdr-cli.ts +34 -0
- package/src/cli/light-entry-route.ts +6 -3
- package/src/cli/log-event-names.ts +2 -0
- package/src/cli/logs-cli.ts +357 -2
- package/src/cli/make-cli.ts +247 -11
- package/src/cli/memory-cli.ts +30 -1
- package/src/cli/msg-cli.ts +132 -14
- package/src/cli/pr-cli.ts +29 -16
- package/src/cli/pr-granularity.ts +5 -3
- package/src/cli/pr-land-base-read.ts +11 -2
- package/src/cli/pr-land-heavy-remote.ts +6 -3
- package/src/cli/pr-land-overlap-evidence.ts +23 -4
- package/src/cli/pr-land-recovery.ts +117 -1
- package/src/cli/pty-takeover-cli.ts +8 -7
- package/src/cli/release-checklist-read-cli.ts +109 -4
- package/src/cli/release-cli.ts +64 -15
- package/src/cli/release-single-flight.ts +1 -1
- package/src/cli/self-update.ts +23 -5
- package/src/cli/self-utterances-cli.ts +13 -16
- package/src/cli/tasks-card-show.ts +162 -0
- package/src/cli/tasks-cli.ts +868 -352
- package/src/cli/tasks-read-cli.ts +197 -0
- package/src/cli/usage-cli.ts +12 -10
- package/src/context-bus/claude-memory-import.ts +99 -0
- package/src/context-bus/long-term-memory.ts +125 -0
- package/src/core-turn/run-core-turn.ts +4 -2
- package/src/core-turn/run-goal-loop.ts +76 -16
- package/src/core-turn/types.ts +8 -1
- package/src/dashboard/chat/acp-chat.ts +9 -0
- package/src/dashboard/context/keys.ts +8 -31
- package/src/dashboard/index.ts +299 -62
- package/src/dashboard/input/agent-wake.ts +50 -1
- package/src/dashboard/input/chat-main-acp-dispatch.ts +21 -1
- package/src/dashboard/input/chat-main-plain-turn-runtime.ts +146 -3
- package/src/dashboard/input/chat-main-slash-command.ts +4 -2
- package/src/dashboard/input/goal-continue.ts +210 -0
- package/src/dashboard/input/goal-interim.ts +2 -0
- package/src/dashboard/input/internal-turn.ts +2 -8
- package/src/dashboard/input/seat-autowake.ts +9 -7
- package/src/dashboard/input/turn-autoheal.ts +52 -0
- package/src/dashboard/replay-preview.ts +25 -0
- package/src/dashboard/seat-boot-preamble.ts +132 -5
- package/src/dashboard/slash-runtime/chat-persona.ts +65 -8
- package/src/dashboard/slash-runtime/dashboard-handlers.ts +20 -10
- package/src/dashboard/slash-runtime/model-choices.ts +15 -0
- package/src/dashboard/stale-install-check.ts +3 -99
- package/src/dashboard/synchronized-frame-output.ts +74 -0
- package/src/debug/batch-queue.ts +119 -0
- package/src/debug/tui-log-tag.ts +67 -0
- package/src/display/agent-surface.ts +7 -0
- package/src/display/coordinator.ts +45 -12
- package/src/display/resize-listener.ts +41 -20
- package/src/display/synchronized-output-region.ts +60 -0
- package/src/domains/standalone-log-sink.ts +15 -2
- package/src/domains/surface-events.ts +80 -1
- package/src/esc-abort-gate.ts +69 -0
- package/src/exec-requests/planner.ts +37 -2
- package/src/execution-loop/launch-gate.ts +4 -3
- package/src/git-fs/cli-stderr.ts +45 -0
- package/src/git-fs/gh-cli.ts +6 -3
- package/src/git-fs/git-cli.ts +11 -5
- package/src/git-fs/worktree.ts +95 -1
- package/src/graph-runner/graph-cli.ts +44 -2
- package/src/graph-runner/graph-run-api.ts +3 -2
- package/src/graph-runner/runner.ts +37 -16
- package/src/graph-wizard/generate.ts +131 -4
- package/src/graph-wizard/steps.ts +15 -0
- package/src/grounding/proactive-ground.ts +86 -0
- package/src/harness/control-inbox.ts +49 -1
- package/src/harness/harness-cli-command.ts +230 -40
- package/src/harness/harness-incidents.ts +52 -1
- package/src/harness/pod-control-send.ts +33 -5
- package/src/harness/review-adapter.ts +26 -6
- package/src/harness/self-send-remote.ts +69 -0
- package/src/harness/self-send-routing-guard.ts +6 -0
- package/src/harness/self-send-target.ts +4 -3
- package/src/index.ts +443 -25
- package/src/input-core/context-key-runtime.ts +21 -0
- package/src/instance/test-write-guard-real-transport.fixture.ts +52 -0
- package/src/light-cli.ts +6 -1
- package/src/llm/route-decision.ts +13 -0
- package/src/llm-tool-name.ts +37 -0
- package/src/llm-tool-schema.ts +35 -0
- package/src/llm-wellformed.ts +70 -0
- package/src/llm.ts +158 -15
- package/src/loops/checker.ts +100 -0
- package/src/loops/consensus.ts +26 -2
- package/src/loops/loop-cli.ts +9 -4
- package/src/loops/msg-wake.ts +35 -39
- package/src/loops/orchestrator/anomaly-cluster.ts +243 -0
- package/src/loops/orchestrator/inbox.ts +59 -11
- package/src/loops/orchestrator/knowhow-pack.ts +364 -0
- package/src/loops/orchestrator/tick.ts +54 -5
- package/src/maturity/feature-maturity.ts +1 -1
- package/src/model-tier/llm-tier-map.ts +12 -17
- package/src/models/prompts.ts +17 -2
- package/src/msg/msg-post-office.ts +116 -0
- package/src/msg/msg-store.ts +17 -0
- package/src/mss/logging/log-store.ts +79 -22
- package/src/native-tool-catalog.ts +1 -1
- package/src/nexus/api/decisions-route.ts +38 -18
- package/src/nexus/api/graph-wizard-api.ts +46 -3
- package/src/nexus/api/grid.ts +24 -4
- package/src/nexus/api/http-server.ts +1 -1
- package/src/nexus/api/ops-api.ts +14 -6
- package/src/nexus/boot/register-mcp-clients.ts +263 -38
- package/src/nexus/onboarding/first-boot-wizard.ts +56 -8
- package/src/nexus/state/state.ts +7 -1
- package/src/oauth/codex-account-store.ts +34 -1
- package/src/onboarding/first-run.ts +37 -6
- package/src/onboarding/web-first.ts +43 -11
- package/src/ops/loops-map.ts +46 -0
- package/src/ops/overview-cache.ts +22 -4
- package/src/ops/overview-collect.ts +12 -6
- package/src/ops/overview.ts +44 -8
- package/src/persona/loader.ts +11 -0
- package/src/persona/types.ts +8 -0
- package/src/policy/llm-policy.ts +3 -1
- package/src/prompt-enhance/enhance.ts +4 -4
- package/src/prompt-library/session-guidance.ts +14 -0
- package/src/provider-summary.ts +8 -0
- package/src/pty-shell/availability.ts +7 -0
- package/src/pty-shell/herdr-agent-report.ts +155 -37
- package/src/pty-shell/herdr-prompt.ts +266 -0
- package/src/pty-shell/herdr-prune-stale.ts +17 -0
- package/src/pty-shell/herdr-sequence-lease.ts +60 -0
- package/src/pty-shell/pty-control-ipc.ts +327 -15
- package/src/pty-shell/pty-special-keys.ts +42 -2
- package/src/pty-shell/registry.ts +25 -15
- package/src/pty-shell/stale-install-check.ts +99 -0
- package/src/pty-shell/tui-run-state.ts +249 -3
- package/src/release-loop/auto-start.ts +20 -2
- package/src/release-loop/checklist.ts +126 -9
- package/src/release-loop/feature-store.ts +9 -9
- package/src/release-loop/landed-but-yellow.ts +93 -12
- package/src/release-loop/rehearsal.ts +36 -20
- package/src/repl/index.ts +27 -1
- package/src/seat-loop/knowhow-lint.ts +1 -1
- package/src/seat-loop/seat-report.ts +1 -0
- package/src/self-dev/ask-launch-flow.ts +86 -10
- package/src/self-dev/decompose-proposal.ts +183 -20
- package/src/self-dev/decompose.ts +61 -0
- package/src/self-dev/dev-cli.ts +37 -3
- package/src/self-dev/dev-pipeline.ts +37 -9
- package/src/self-dev/draft-sweep.ts +241 -16
- package/src/self-dev/draft-triage-rules.ts +50 -5
- package/src/self-dev/glm-credential-guard.ts +77 -0
- package/src/self-dev/graph-journey-nodes.ts +1 -0
- package/src/self-dev/graph-journey-route.ts +12 -2
- package/src/self-dev/orchestrate-cli.ts +68 -3
- package/src/self-dev/orchestrate.ts +116 -17
- package/src/self-dev/review-provider-fallback.ts +45 -7
- package/src/self-dev/run-supervisor.ts +55 -2
- package/src/self-dev/run-types.ts +1 -1
- package/src/self-dev/shard-plan.ts +48 -0
- package/src/self-dev/shard-run.ts +50 -3
- package/src/self-health/autoheal.ts +153 -0
- package/src/self-health/signatures.ts +6 -0
- package/src/self-implement/device-first.ts +116 -0
- package/src/self-implement/doctor-visit.ts +322 -1
- package/src/self-implement/evidence-command-budget.ts +80 -0
- package/src/self-implement/gate-artifacts.ts +6 -2
- package/src/self-implement/gate-baseline.ts +64 -1
- package/src/self-implement/gate-cli.ts +93 -9
- package/src/self-implement/gate-remote.ts +28 -4
- package/src/self-implement/gate-scope.ts +13 -1
- package/src/self-implement/goal-author-cli.ts +1 -0
- package/src/self-implement/goal-author-decompose.ts +265 -4
- package/src/self-implement/goal-author.ts +366 -26
- package/src/self-implement/goal-elaborate.ts +176 -22
- package/src/self-implement/goal-refine.ts +3 -0
- package/src/self-implement/goal-supervisor-fill.ts +75 -26
- package/src/self-implement/graph-variant.ts +40 -6
- package/src/self-implement/headless-elanous-driver.ts +19 -3
- package/src/self-implement/importer-test-index.ts +215 -2
- package/src/self-implement/knowhow-pack.ts +5 -5
- package/src/self-implement/off-diff-evidence.ts +58 -6
- package/src/self-implement/orchestrator.ts +536 -42
- package/src/self-implement/pod-warm-pool-profile.ts +1 -0
- package/src/self-implement/pwa-import-graph.ts +1 -1
- package/src/self-implement/review-round-brief.ts +300 -0
- package/src/self-implement/rework-policy.ts +44 -0
- package/src/self-implement/run-ledger.ts +278 -6
- package/src/self-implement/run-stop.ts +1 -1
- package/src/self-implement/run-ttl.ts +38 -24
- package/src/self-implement/running-runs.ts +17 -3
- package/src/self-implement/scope-adjacency.ts +3 -1
- package/src/self-implement/seams.ts +72 -10
- package/src/self-implement/stop-autoheal.ts +1 -0
- package/src/self-implement/test-seams.ts +13 -1
- package/src/self-implement/train-reach-grouping.ts +8 -2
- package/src/self-implement/wiring-check.ts +358 -0
- package/src/session/chat.ts +7 -1
- package/src/session/id-prefix.ts +60 -0
- package/src/session/index.ts +4 -0
- package/src/session-runtime/index.ts +9 -1
- package/src/shell-env-bootstrap.ts +11 -4
- package/src/skills/runner.ts +4 -2
- package/src/skills/tools/agent.ts +290 -48
- package/src/skills/tools/pty.ts +5 -0
- package/src/skills/tools/schedule-wakeup.ts +23 -4
- package/src/skills/tools/shell.ts +61 -6
- package/src/skills/tools/terminal-modal-inject.ts +1 -2
- package/src/skills/tools/terminal-modal.ts +10 -8
- package/src/skills/url-router.ts +41 -1
- package/src/smart-wizard/run.ts +66 -0
- package/src/status/bar.ts +34 -6
- package/src/status/metrics.ts +12 -1
- package/src/status/status-provider-info.ts +37 -6
- package/src/steward/rejudge-tick.ts +22 -7
- package/src/steward/resync-tick.ts +31 -4
- package/src/steward/ta-repair-event-collect.ts +17 -6
- package/src/task-agent/actions.ts +202 -5
- package/src/task-agent/boundary-proof-mapping.ts +12 -0
- package/src/task-agent/boundary-proof-producer.ts +147 -0
- package/src/task-agent/completion-evidence.ts +2 -1
- package/src/task-agent/green-close-recipe.ts +239 -0
- package/src/task-agent/green-sweep.ts +64 -10
- package/src/task-agent/land-queue.ts +21 -8
- package/src/task-agent/live-moves.ts +70 -9
- package/src/task-agent/map-host-adapter.ts +134 -0
- package/src/task-agent/map-reduce.ts +158 -0
- package/src/task-agent/map-run-ledger.ts +226 -0
- package/src/task-agent/mission.ts +30 -0
- package/src/task-agent/parent-host.ts +21 -11
- package/src/task-agent/rejudge-on-head.ts +87 -5
- package/src/task-agent/repair-cycle.ts +179 -32
- package/src/task-agent/repair-next-move.ts +42 -4
- package/src/task-agent/repair-outcomes.ts +29 -0
- package/src/task-agent/repair-worker.ts +14 -4
- package/src/task-agent/review-prior-fix.ts +12 -2
- package/src/task-agent/shadow.ts +229 -8
- package/src/task-agent/task-card-prefix.ts +2 -0
- package/src/task-agent/task-hand.ts +630 -30
- package/src/task-agent/task-parent-role-llm.ts +45 -0
- package/src/task-agent/tier-split.ts +80 -10
- package/src/task-agent/work-order.ts +53 -2
- package/src/task-orchestrator/dispatcher.ts +46 -1
- package/src/task-orchestrator/generator-prompt.ts +6 -0
- package/src/task-orchestrator/surfaces/pod-account-broker.ts +9 -0
- package/src/task-orchestrator/surfaces/pod-artifact-return.ts +16 -6
- package/src/task-orchestrator/surfaces/pod-child-reuse.ts +146 -0
- package/src/task-orchestrator/surfaces/pod-command-job.ts +86 -5
- package/src/task-orchestrator/surfaces/pod-failure-reason.ts +215 -3
- package/src/task-orchestrator/surfaces/pod-launch-history.ts +133 -0
- package/src/task-orchestrator/surfaces/pod-ledger-collect.ts +8 -6
- package/src/task-orchestrator/surfaces/pod-ledger-events.ts +97 -0
- package/src/task-orchestrator/surfaces/pod-manifest-test-normalize.ts +11 -0
- package/src/task-orchestrator/surfaces/pod-pool.ts +126 -8
- package/src/task-orchestrator/surfaces/pod-provenance.ts +8 -2
- package/src/task-orchestrator/surfaces/pod-repair-commit.ts +18 -3
- package/src/task-orchestrator/surfaces/pod-si-warm-entry.ts +16 -0
- package/src/task-orchestrator/surfaces/pod-si-warm-host.ts +224 -0
- package/src/task-orchestrator/surfaces/pod-si-warm-protocol.ts +201 -0
- package/src/task-orchestrator/surfaces/pod-si-warm-provider.ts +444 -0
- package/src/task-orchestrator/surfaces/pod-si-warm-runner.ts +387 -0
- package/src/task-orchestrator/surfaces/pod-si-warm-transport.ts +157 -0
- package/src/task-orchestrator/surfaces/pod-warm-worker-protocol.ts +4 -0
- package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +491 -36
- package/src/task-orchestrator/surfaces/pod-warm-worker-runtime.ts +3 -0
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +612 -54
- package/src/task-orchestrator/surfaces/self-implement.ts +46 -2
- package/src/testing/linux-env.ts +177 -0
- package/src/tool-runtime/index.ts +15 -2
- package/src/tool-runtime/mcp-proxy-bootstrap.ts +29 -0
- package/src/tty-foreground.ts +155 -0
- package/src/tui/chat/goal-interim.ts +177 -0
- package/src/tui/chat/log-view.ts +205 -18
- package/src/tui/chat/self-health-status.ts +232 -0
- package/src/tui/entry.ts +623 -80
- package/src/tui/input/at-picker.ts +55 -0
- package/src/tui/input/composer.ts +8 -1
- package/src/tui/slash/compact-command.ts +7 -0
- package/src/tui/slash/compact.ts +1 -7
- package/src/tui/slash/resume.ts +98 -0
- package/src/tui/slash/signals.ts +114 -0
- package/src/tui/slash/term-next.ts +71 -0
- package/src/tui-client/local-chat-turn.ts +49 -5
- package/src/tui-client/next-dashboard-runtime.ts +8 -0
- package/src/tui-client/next-loop-command.ts +70 -0
- package/src/tui-client/next-wakeup.ts +191 -0
- package/src/tui.ts +37 -0
- package/src/ui/modal-adapter.ts +2 -2
- package/src/user-config.ts +19 -1
- package/src/ux-sim/boot-daemon-tools-pty-shell-device.ts +136 -0
- package/src/ux-sim/classic-tui-seat-scenarios.ts +670 -0
- package/src/ux-sim/cli-config-audit-device.ts +121 -0
- package/src/ux-sim/dashboard-event-loop-stall-monitor-device.ts +238 -0
- package/src/ux-sim/event-monkey.ts +3 -2
- package/src/ux-sim/fake-bin.ts +45 -0
- package/src/ux-sim/fake-gh.ts +174 -0
- package/src/ux-sim/fake-herdr.ts +238 -0
- package/src/ux-sim/fake-kubectl.ts +142 -0
- package/src/ux-sim/fake-llm.ts +116 -6
- package/src/ux-sim/fault-glm-no-credential.ts +116 -0
- package/src/ux-sim/fault-nextmove-dispatch.ts +102 -1
- package/src/ux-sim/fault-scope-escape-lift.ts +33 -6
- package/src/ux-sim/fault-tui-400-autoheal.ts +297 -0
- package/src/ux-sim/goal-device.ts +619 -0
- package/src/ux-sim/in-process-cli.ts +22 -5
- package/src/ux-sim/mock-authoring-first-run-child.ts +35 -0
- package/src/ux-sim/mock-authoring-first-run.ts +97 -0
- package/src/ux-sim/mock-seat-pty-frame-child.ts +29 -0
- package/src/ux-sim/mock-seat-pty-frame.ts +297 -0
- package/src/ux-sim/mock-seat-pty-sequence-child.ts +21 -0
- package/src/ux-sim/mock-seat-pty-sequence.ts +206 -0
- package/src/ux-sim/next-tui-seat-scenarios.ts +749 -0
- package/src/ux-sim/onboarding-first-run-device.ts +269 -0
- package/src/ux-sim/pty-key-modifiers-device.ts +85 -0
- package/src/ux-sim/resume-picker-device.ts +173 -0
- package/src/ux-sim/session-id-seed.ts +60 -0
- package/src/ux-sim/skills-tools-shell-device.ts +156 -0
- package/src/ux-sim/subagent-tools-device.ts +81 -0
- package/src/ux-sim/task-agent-parent-host-device.ts +264 -0
- package/src/ux-sim/task-agent-rejudge-on-head-device.ts +114 -0
- package/src/ux-sim/task-orchestrator-surfaces-self-implement-pod-device.ts +250 -0
- package/src/ux-sim/tty-foreground-steal-child.ts +21 -0
- package/src/version/packed-revision.json +1 -1
- package/apps/pwa/out/_next/static/chunks/1540.af38731fa7c4a3e0.js +0 -41
- package/apps/pwa/out/_next/static/chunks/1674.2a65fd5668e1cc5f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1850.f2b470ba5a471da0.js +0 -24
- package/apps/pwa/out/_next/static/chunks/193.62da94cd0b88323b.js +0 -74
- package/apps/pwa/out/_next/static/chunks/1975.260f6d249fac5f7c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1982-67cd8dfe8682325f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1993-c0007b7ad0c0ef41.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1999-bb415351c8a2846c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1c735de4.f993a30bbd3c57c4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2085.8f950b4bda1cbbc7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2159-6179a961376956b9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/216.b5c2a421aa1d28a5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2251.49fbe369f74c372c.js +0 -148
- package/apps/pwa/out/_next/static/chunks/2286-2939577360d3dcc0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2625.5d870aa999f33db1.js +0 -34
- package/apps/pwa/out/_next/static/chunks/2668.34d21539e62bf111.js +0 -77
- package/apps/pwa/out/_next/static/chunks/2930.d0edb4f108787ef7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2973.77318e7d85f59477.js +0 -62
- package/apps/pwa/out/_next/static/chunks/3103.0df8da390948bb84.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3123.2bee9ba15d320bd2.js +0 -90
- package/apps/pwa/out/_next/static/chunks/3162-6cf652bf7124d8cf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3577-7340009f7007a795.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3589.5444a06bcf6e775c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3618.f514792d6c59d7fd.js +0 -36
- package/apps/pwa/out/_next/static/chunks/3669.343f9119aa276001.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3677-4215f826f6aa68e5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3736.c2efad489604cc3b.js +0 -79
- package/apps/pwa/out/_next/static/chunks/3817.f9aeab2bb6675d73.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4182-0b9b1251c29cc0cf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4346.8601952e73bf5803.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4582.bd68683c076649e3.js +0 -286
- package/apps/pwa/out/_next/static/chunks/4605-6e623f55aec77422.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4607.5cc27468628eb4bf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4627.f07508b3936fd6c0.js +0 -24
- package/apps/pwa/out/_next/static/chunks/4747-c22262c093e46807.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4775-178215aed0daba61.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4815-6ffb8c3c991cc45d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4834-beca8b47ad29a898.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5023-fb4802b6d2492b02.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5154.a118f3957ed14e36.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5210-a2e0015e3d4d5d9c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5356.84ac712cc15928bf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5401.22352141b6fd336e.js +0 -23
- package/apps/pwa/out/_next/static/chunks/5637.281e5dec4ea6ecf1.js +0 -94
- package/apps/pwa/out/_next/static/chunks/5662.02eaa029af05ad46.js +0 -1
- package/apps/pwa/out/_next/static/chunks/56d372f2.681ab4ec4c998fae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5760.22456f433c6f42c0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5852.db1f7449f4f74612.js +0 -287
- package/apps/pwa/out/_next/static/chunks/5891-0f11a7d7362a9072.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5943.264d14a44ca32513.js +0 -1
- package/apps/pwa/out/_next/static/chunks/604-1b3c39df083c02aa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6121-5f97072330738caf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6193.07d8ca5af4b09086.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6203-b3fea3a60d69ff14.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6286.d638fb5953e2e757.js +0 -8
- package/apps/pwa/out/_next/static/chunks/630.fe5a46428d63b013.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6301.ae0245f507e4395e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6673.fbbe5699f6ea5991.js +0 -27
- package/apps/pwa/out/_next/static/chunks/6777-f6d301efb5de828d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6786.423f24c88de034c7.js +0 -93
- package/apps/pwa/out/_next/static/chunks/6854-cef64a948c5e122d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6b89c8bd.24df687a820500b3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7037-fe27f001db30d323.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7080.2d826860534fd88e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7118.8731be28c3ebb14b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7196.44241bc1df3e26fe.js +0 -149
- package/apps/pwa/out/_next/static/chunks/7235.c7c4e6cb5c693c2d.js +0 -104
- package/apps/pwa/out/_next/static/chunks/7706-58bfb1546637f217.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7839.5b91455338c9fd3f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7857-31f13ee96f4011aa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/81.f74cb60312fe4001.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8219.baa715d1deee80e2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8256.e3ac8421a71f82f4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8310-444a6a895c402f12.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8423.f7dda8aca4fcaae5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8437-8d5492094b166cfa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8496.75649af8652c74f4.js +0 -226
- package/apps/pwa/out/_next/static/chunks/8576.65bb654b524f3614.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8609.558ce2f8f9aea2be.js +0 -64
- package/apps/pwa/out/_next/static/chunks/8614.caec96cfb91f4ae7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8637.47f5b35afcae5e6b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8714.ff0b7ce3ec3e3ae2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8732.367f44a916202353.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9141-7fd1f73a5400bdc2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/921.c4267d0d69a65404.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9261.3962c3321b047691.js +0 -115
- package/apps/pwa/out/_next/static/chunks/936-26efd1a0efdd44d3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9627-4b9efe616b27e2e2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/967-2aa39b2d04b4c690.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9734.40eb1e558c29ccea.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9908.3aa54f7a586a73dc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9954-ca8d29752bdbb45a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9974-507fa67cb94066dd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-ce9e00f7fb45506a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-fa59d6d17daa3389.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-53f68bbe7bd4b774.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-1c500fbb9f4a7a04.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-99d72673aa5c307c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-d2d5adc1e9484c88.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-c607c5aae637f1cc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-fa8c23596d555c0f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-bdab8c5e855c8416.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-406b47745b53f269.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-a4276386b7051f50.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-8a26bab9ad375f25.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-775f48aa1dc7a2d5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-1c4dd5f959d0c558.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-c48938a8377c9f70.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-ce9e00f7fb45506a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-c6e7905859425aa9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-c280f4252452e830.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-cf8c57498f20970a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-ca3a17caf409fc83.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-26e6c18a1a750cf6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-3abc872cc6aeee39.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-f7481b7b2174fe3d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-1ae7ef8077680337.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-415f1e243c7ccb13.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-73f380f17b76f95c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-2991073ad66ee2d9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-fbad60d1e358fb2c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-398047d6949e8ca5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-2d33a2231540ca89.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-5bf1e6bf70bcb96c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-ba59c19376a0917d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-111f187139add30f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-acaae197d5be5779.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-0df20b0f546a0d7d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-ce9e00f7fb45506a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-27e1202d24b8fe35.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-bda78c50a78363e5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-da592691293d9c9f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-f832994317a2e9f0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-cfccbbeae0473404.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-527e2073af84c81b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-bac86e9112671357.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-6d59dff410e9d76a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-53a61f8be09f02d2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-db8f559e763c17f9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-c02aa4cc66455093.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-50e6acebc630849b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-7a1ae342d5ed75e6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-7ad7d505ba1f92b4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-02edba75232cb235.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-97d6ebae3e8eee4a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-e986adaa429163e8.js +0 -1
- /package/apps/pwa/out/_next/static/{T1mBQqmkwKDLGtyisDCOd → 8kITumG9GAZ1LwT9POrAR}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[895],{90032:(t,e,a)=>{a.d(e,{DA:()=>R,FA:()=>F,I7:()=>B,Zk:()=>w,aP:()=>ez,lC:()=>m,nM:()=>A,nq:()=>e_});var r=a(95659),l=a(46816),i=a(92556),n=a(21477),s=a(33245),o=a(50755),h=a(25205),d=a(89419),c=a(24212),g=a(54069);async function y(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!u(t);await Promise.all([...e].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,o.D7)().fontSize?(0,o.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=o.UI.fontSize]=(0,s.I5)(e),r=5*a+"px";t.style.minWidth=r,t.style.maxWidth=r}else t.style.width="100%";e(t)}(0,d.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}function u(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(u)}(0,d.K)(y,"configureLabelImages"),(0,d.K)(u,"hasTextBesidesImages");var p=(0,d.K)(async(t,e,a)=>{let r=(0,o.D7)(),i=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),n=i.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle)),h=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),d=e.width?Math.max(e.width-2*(e.padding??0),32):(0,o.D7)().flowchart?.wrappingWidth??200,g=r.c4?.wrap??!0?d:1/0,y=await Promise.all(h.map(async t=>{let a=n.append("g").attr("class",t.cssClass),i=await (0,l.GZ)(a,(0,o.jZ)((0,s.Sm)(t.text??""),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},r);return(0,c.Ltv)(i).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,c.Ltv)(i).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),u=Math.max(...y.map(({box:t})=>t.width),0),p=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${u/2-e.x-e.width/2}, ${p-e.y})`),p+=e.height+3;let f=y.length>0?p-3:0;return n.insert("rect",":first-child"),n.attr("transform",`translate(${-u/2}, ${-f/2})`),{shapeSvg:i,bbox:n.node().getBBox(),halfPadding:(e.padding??0)/2,label:n}},"c4LabelHelper"),f=(0,d.K)((t,e)=>{let{x:a,y:r,width:l,height:i}=t;return l>=e?t:"left"in t?{x:a,y:r,width:e,height:i,top:r,left:a,bottom:r+i,right:a+e,toJSON:(0,d.K)(()=>({}),"toJSON")}:{x:a-(e-l)/2,y:r,width:e,height:i}},"withMinWidth"),w=(0,d.K)(async(t,e,a)=>{let r,i,n;if(void 0!==e.stereotype)return p(t,e,a);let h=e.useHtmlLabels||(0,o._3)((0,o.D7)()?.htmlLabels);r=a||"node default";let d=t.insert("g").attr("class",r).attr("id",e.domId||e.id),g=d.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,w="markdown"===e.labelType,x=i&&!e.width?e.minWidth??0:0,m=await (0,l.GZ)(g,(0,o.jZ)((0,s.Sm)(i),(0,o.D7)()),{useHtmlLabels:h,width:e.width||e.wrappingWidth||(0,o.D7)().flowchart?.wrappingWidth,minWidth:x,classes:w?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:w},(0,o.D7)()),b=(e?.padding??0)/2;if(h){let t=m.children[0],e=(0,c.Ltv)(m);await y(t),n=f(n=await l.lT.measure(()=>t.getBoundingClientRect()),x),e.attr("width",n.width),e.attr("height",n.height)}else n=f(n=await l.lT.measure(()=>m.getBBox()),x);return h?g.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):g.attr("transform","translate(0, "+-n.height/2+")"),e.centerLabel&&g.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),g.insert("rect",":first-child"),{shapeSvg:d,bbox:n,halfPadding:b,label:g}},"labelHelper"),x=(0,d.K)(async(t,e,a)=>{let r,i=a.useHtmlLabels??(0,o.E)((0,o.D7)()),n=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),h=await (0,l.GZ)(n,(0,o.jZ)((0,s.Sm)(e),(0,o.D7)()),{useHtmlLabels:i,width:a.width||(0,o.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=a.padding/2;if((0,o.E)((0,o.D7)())){let t=h.children[0],e=(0,c.Ltv)(h);r=await l.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else r=await l.lT.measure(()=>h.getBBox());return i?n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"):n.attr("transform","translate(0, "+-r.height/2+")"),a.centerLabel&&n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:r,halfPadding:d,label:n}},"insertLabel"),m=(0,d.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),b=(0,d.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function $(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function k(t,e,a,r,l,i){let n=[],s=a-t,o=2*Math.PI/(s/i),h=e+(r-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,r=h+l*Math.sin(o*(a-t));n.push({x:a,y:r})}return n}function M(t,e,a,r,l,i){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}function D(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),r=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",r);let l=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,d.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");l&&Object.entries({fill:n(l,"fill"),"fill-opacity":n(l,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,d.K)($,"createPathFromPoints"),(0,d.K)(k,"generateFullSineWavePoints"),(0,d.K)(M,"generateCirclePoints"),(0,d.K)(D,"mergePaths");var A=(0,d.K)((t,e)=>{var a,r,l=t.x,i=t.y,n=e.x-l,s=e.y-i,o=t.width/2,h=t.height/2;return Math.abs(s)*o>Math.abs(n)*h?(s<0&&(h=-h),a=0===s?0:h*n/s,r=h):(n<0&&(o=-o),a=o,r=0===n?0:o*s/n),{x:l+a,y:i+r}},"intersectRect");function S(t,e){return t.intersect(e)}function v(t,e,a,r){var l=t.x,i=t.y,n=l-r.x,s=i-r.y,o=Math.sqrt(e*e*s*s+a*a*n*n),h=Math.abs(e*a*n/o);r.x<l&&(h=-h);var d=Math.abs(e*a*s/o);return r.y<i&&(d=-d),{x:l+h,y:i+d}}function K(t,e,a){return v(t,e,e,a)}function C(t,e,a,r){{let l=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=l*a.x+i*a.y+n,o=l*r.x+i*r.y+n;if(0!==s&&0!==o&&L(s,o))return;let h=r.y-a.y,d=a.x-r.x,c=r.x*a.y-a.x*r.y,g=h*t.x+d*t.y+c,y=h*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&L(g,y))return;let u=l*d-h*i;if(0===u)return;return{x:(i*c-d*n)/u,y:(h*n-l*c)/u}}}function L(t,e){return t*e>0}function N(t,e,a){let r=t.x,l=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let o=r-t.width/2-n,h=l-t.height/2-s;for(let r=0;r<e.length;r++){let l=e[r],n=e[r<e.length-1?r+1:0],s=C(t,a,{x:o+l.x,y:h+l.y},{x:o+n.x,y:h+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let r=t.x-a.x,l=t.y-a.y,i=Math.sqrt(r*r+l*l),n=e.x-a.x,s=e.y-a.y,o=Math.sqrt(n*n+s*s);return i<o?-1:+(i!==o)}),i[0]):t}(0,d.K)(S,"intersectNode"),(0,d.K)(v,"intersectEllipse"),(0,d.K)(K,"intersectCircle"),(0,d.K)(C,"intersectLine"),(0,d.K)(L,"sameSign"),(0,d.K)(N,"intersectPolygon");var B={node:S,circle:K,ellipse:v,polygon:N,rect:A},F=(0,d.K)((t,e,a,r,l)=>["M",t+l,e,"H",t+a-l,"A",l,l,"0 0 1",t+a,e+l,"V",e+r-l,"A",l,l,"0 0 1",t+a-l,e+r,"H",t+l,"A",l,l,"0 0 1",t,e+r-l,"V",e+l,"A",l,l,"0 0 1",t+l,e,"Z"].join(" "),"createRoundedRectPathD"),R=(0,d.K)(async(t,e,a,r=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let s=(0,o.D7)(),h=(0,o.E)(s);return await (0,l.GZ)(t,n,{style:a,isTitle:r,useHtmlLabels:h,markdown:!1,isNode:i,width:1/0},s)},"createLabel");function P(t,e){let{labelStyles:a}=(0,r.GX)(e);e.labelStyle=a;let l=b(e),i=l;l||(i="anchor");let n=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:o}=e,d=g.A.svg(n),c=(0,r.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=d.circle(0,0,2,c),u=n.insert(()=>y,":first-child");return u.attr("class","anchor").attr("style",(0,s.KL)(o)),m(e,u),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),B.circle(e,1,t)},n}function X(t,e,a,r,l,i,n){let s=Math.atan2(r-e,a-t),o=Math.sqrt(((a-t)/2/l)**2+((r-e)/2/i)**2);if(o>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-o**2),d=(t+a)/2+h*i*Math.sin(s)*(n?-1:1),c=(e+r)/2-h*l*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/l),y=Math.atan2((r-c)/i,(a-d)/l)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let u=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+l*Math.cos(e),r=c+i*Math.sin(e);u.push({x:a,y:r})}return u}function G(t,e,a){let[r,l]=[e,a].sort((t,e)=>e-t);return l*(1-Math.sqrt(1-(t/r/2)**2))}async function I(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o=(0,d.K)(t=>t+s,"calcTotalHeight"),h=(0,d.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:c,bbox:y}=await w(t,e,b(e)),u=o(e?.height?e?.height:y.height),[p,f]=h(u),x=G(u,p,f),k=(e?.width?e?.width:y.width)+2*n+x-x,{cssStyles:M}=e,D=[{x:k/2,y:-u/2},{x:-k/2,y:-u/2},...X(-k/2,-u/2,-k/2,u/2,p,f,!1),{x:k/2,y:u/2},...X(k/2,u/2,k/2,-u/2,p,f,!0)],A=g.A.svg(c),S=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=$(D),K=A.path(v,S),C=c.insert(()=>K,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),l&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",l),C.attr("transform",`translate(${p/2}, 0)`),m(e,C),e.intersect=function(t){return B.polygon(e,D,t)},c}async function W(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",c=e.padding??12,y=Math.max(s.width+2*c,e.width??0,80),u=Math.max(Math.min(.08*y,12),5),p=Math.max(s.height+2*c+u,e.height??0),f=-p/2+u,x=p/2,$=.72*y,k=`M${-y/2},${f} L${-$/2},${x} A${$/2},${u} 0 0 0 ${$/2},${x} L${y/2},${f} A${y/2},${u} 0 0 0 ${-y/2},${f} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(k,(0,r.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",y/2).attr("ry",u).attr("style",`fill:none;stroke:${h};stroke-width:1px`),m(e,D);let A=f+(x-f)/2;o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${A-s.height/2-(s.y-(s.top??0))})`);let S=(0,d.K)((t,e,a)=>Array.from({length:13},(r,l)=>{let i=Math.PI-l*Math.PI/12;return{x:t*Math.cos(i),y:e+a*u*Math.sin(i)}}),"arc"),v=[...S(y/2,f,-1),...S($/2,x,1).reverse()];return e.intersect=function(t){return B.polygon(e,v,t)},n}function H(t){let{themeVariables:e}=(0,o.D7)(),a=e.clusterBkg,r=e.clusterBorder;return"flow"===t?{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:8,fill:a,stroke:r,cssClass:"collapsed-group"}}async function T(t,e){let a,l=H(e.metadata?.containerType),{fill:i,stroke:h}=l,{nodeStyles:d}=(0,r.GX)(e),{shapeSvg:c,bbox:y}=await w(t,e,b(e)),{theme:u,themeVariables:p}=(0,o.D7)();(0,n.XE)(c,e.colorIndex,u,p.borderColorArray);let f=e.padding??8,x=y.height,$=Math.max(y.width+2*f,80,e?.width??0),k=Math.max(x+8+20+2*f,e?.height??0),M=-$/2,D=-k/2,A=c.select(".label");if(A&&(e.useHtmlLabels??(0,o.E)((0,o.D7)())?A.attr("transform",`translate(${-y.width/2}, ${-y.height/2+-14})`):A.attr("transform",`translate(0, ${-y.height/2+-14})`)),"handDrawn"===e.look){let t=g.A.svg(c),n=(0,r.Fr)(e,{fill:i,stroke:h,...void 0===l.strokeWidth?{}:{strokeWidth:l.strokeWidth},..."none"===i?{fillWeight:0}:{fillStyle:"solid"}}),o=t.path(F(M,D,$,k,l.rx),n);(a=c.insert(()=>o,":first-child")).attr("class","basic label-container "+l.cssClass).attr("style",(0,s.KL)(e.cssStyles))}else(a=c.insert("rect",":first-child")).attr("class","basic label-container "+l.cssClass).attr("style",d).attr("rx",l.rx).attr("ry",l.rx).attr("x",M).attr("y",D).attr("width",$).attr("height",k).attr("fill",i).attr("stroke",h),void 0!==l.strokeWidth&&a.attr("stroke-width",l.strokeWidth+"px");let S=D+f+x+8;c.append("line").attr("class","collapsed-separator").attr("x1",M+8).attr("y1",S).attr("x2",M+$-8).attr("y2",S).attr("stroke",h).attr("stroke-dasharray","3, 3");let v=S+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",v).attr("r",2.5).attr("fill",h);return m(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},c}function E(t,e,a,r){return t.insert("polygon",":first-child").attr("points",r.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,d.K)(P,"anchor"),(0,d.K)(X,"generateArcPoints"),(0,d.K)(G,"calculateArcSagitta"),(0,d.K)(I,"bowTieRect"),(0,d.K)(W,"bucket"),(0,d.K)(H,"getCollapsedStyle"),(0,d.K)(T,"collapsedGroup"),(0,d.K)(E,"insertPolygonShape");var j=["right","left","up","down"],q="point",Z=(0,d.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),_=(0,d.K)(t=>j.filter(e=>t.has(e)).join("|")||q,"getDirectionKey"),z={"right|left|up|down":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:0,y:0},{x:e,y:0},{x:r/2,y:2*a},{x:r-e,y:0},{x:r,y:0},{x:r,y:-t/3},{x:r+2*a,y:-t/2},{x:r,y:-2*t/3},{x:r,y:-t},{x:r-e,y:-t},{x:r/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"up|down"),"right|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,d.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,d.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a}],"up"),down:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"down"),[q]:()=>[{x:0,y:0}]},O=(0,d.K)((t,e,a,r)=>{let l=Z(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,o=r??e.width+2*s+2*i;return(z[_(l)]??z[q])({height:n,midpoint:s,padding:i,width:o})},"getArrowPoints");async function V(t,e){let{shapeSvg:a,bbox:r}=await w(t,e,b(e)),l=e.padding??0,i=r.height+2*l,n=i/2,s=r.width+2*n+l,o=e.width??0,h=e.positioned&&(e.widthInColumns??1)>1&&o>s?o:s,d=O(e.directions??[],r,e,h),c=E(a,h,i,d);return c.attr("style",e.style??null),m(e,c),e.intersect=function(t){return B.polygon(e,d,t)},a}async function Y(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+18,e.height??0),u=-y/2,{cssStyles:p}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(F(-c/2,u,c,y,12),(0,r.Fr)(e,{}));f.node()?.appendChild(t),p&&f.attr("style",p)}else f.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);f.append("line").attr("x1",-c/2).attr("y1",u+18).attr("x2",c/2).attr("y2",u+18).attr("style",`stroke:${h};stroke-width:1px`);for(let t=0;t<3;t++)f.append("circle").attr("cx",-c/2+12+9*t).attr("cy",u+9).attr("r",2.5).attr("style",`fill:${h};stroke:none`);f.append("rect").attr("class","browser-address-bar").attr("x",-c/2+44).attr("y",u+4).attr("width",Math.max(c-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),m(e,f);let x=u+18+(y-18)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}async function J(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?28:n,o="neo"===e.look?24:n,{shapeSvg:h,bbox:d}=await w(t,e,b(e)),c=(e?.width??d.width)+("neo"===e.look?2*s:s+12),y=(e?.height??d.height)+("neo"===e.look?2*o:o),u=-y,p=[{x:12,y:u},{x:c,y:u},{x:c,y:0},{x:0,y:0},{x:0,y:u+12},{x:12,y:u}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=g.A.svg(h),l=(0,r.Fr)(e,{}),i=$(p),n=t.path(i,l);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),f&&a.attr("style",f)}else a=E(h,c,y,p);return i&&a.attr("style",i),m(e,a),e.intersect=function(t){return B.polygon(e,p,t)},h}function U(t,e){let{nodeStyles:a}=(0,r.GX)(e);e.label="";let l=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],o=g.A.svg(l),h=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let d=$(s),c=o.path(d,h),y=l.insert(()=>c,":first-child");return i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return B.polygon(e,s,t)},l}async function Q(t,e,a){let l,{labelStyles:i,nodeStyles:n}=(0,r.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:d,halfPadding:c}=await w(t,e,b(e)),y=a?.padding??c,u=Math.sqrt(d.width**2+d.height**2)/2,p="neo"===e.look?u+32:u+y,{cssStyles:f}=e;if("handDrawn"===e.look){let t=g.A.svg(o),a=(0,r.Fr)(e,{}),i=t.circle(0,0,2*p,a);(l=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(f))}else l=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0);return m(e,l),e.calcIntersect=function(t,e){let a=t.width/2;return B.circle(t,a,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,p,t),B.circle(e,p,t)},o}async function tt(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:r,bbox:l,halfPadding:i}=await w(t,e,a),n=r.insert("rect",":first-child"),s=e.padding??0,o=e.positioned?e.width??0:l.width+s,h=e.positioned?e.height??0:l.height+s,d=e.positioned?-o/2:-l.width/2-i,c=e.positioned?-h/2:-l.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",o).attr("height",h),m(e,n),e.intersect=function(t){return B.rect(e,t)},r}async function te(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+20,e.height??0),u=-y/2,{cssStyles:p}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(F(-c/2,u,c,y,12),(0,r.Fr)(e,{}));f.node()?.appendChild(t),p&&f.attr("style",p)}else f.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);f.append("text").attr("x",-c/2+12).attr("y",u+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),m(e,f);let x=u+20+(y-20)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}function ta(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),r=2*t,l={x:r/2*e,y:r/2*a},i={x:-(r/2)*e,y:r/2*a},n={x:-(r/2)*e,y:-(r/2)*a},s={x:r/2*e,y:-(r/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3294],{6171:(t,e,a)=>{a.d(e,{DA:()=>R,FA:()=>F,I7:()=>B,Zk:()=>w,aP:()=>ez,lC:()=>m,nM:()=>A,nq:()=>e_});var r=a(68960),l=a(84273),i=a(53237),n=a(75042),s=a(68180),o=a(94268),h=a(1642),d=a(73084),c=a(39433),g=a(11672);async function y(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!u(t);await Promise.all([...e].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,o.D7)().fontSize?(0,o.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=o.UI.fontSize]=(0,s.I5)(e),r=5*a+"px";t.style.minWidth=r,t.style.maxWidth=r}else t.style.width="100%";e(t)}(0,d.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}function u(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(u)}(0,d.K)(y,"configureLabelImages"),(0,d.K)(u,"hasTextBesidesImages");var p=(0,d.K)(async(t,e,a)=>{let r=(0,o.D7)(),i=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),n=i.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle)),h=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),d=e.width?Math.max(e.width-2*(e.padding??0),32):(0,o.D7)().flowchart?.wrappingWidth??200,g=r.c4?.wrap??!0?d:1/0,y=await Promise.all(h.map(async t=>{let a=n.append("g").attr("class",t.cssClass),i=await (0,l.GZ)(a,(0,o.jZ)((0,s.Sm)(t.text??""),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},r);return(0,c.Ltv)(i).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,c.Ltv)(i).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),u=Math.max(...y.map(({box:t})=>t.width),0),p=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${u/2-e.x-e.width/2}, ${p-e.y})`),p+=e.height+3;let f=y.length>0?p-3:0;return n.insert("rect",":first-child"),n.attr("transform",`translate(${-u/2}, ${-f/2})`),{shapeSvg:i,bbox:n.node().getBBox(),halfPadding:(e.padding??0)/2,label:n}},"c4LabelHelper"),f=(0,d.K)((t,e)=>{let{x:a,y:r,width:l,height:i}=t;return l>=e?t:"left"in t?{x:a,y:r,width:e,height:i,top:r,left:a,bottom:r+i,right:a+e,toJSON:(0,d.K)(()=>({}),"toJSON")}:{x:a-(e-l)/2,y:r,width:e,height:i}},"withMinWidth"),w=(0,d.K)(async(t,e,a)=>{let r,i,n;if(void 0!==e.stereotype)return p(t,e,a);let h=e.useHtmlLabels||(0,o._3)((0,o.D7)()?.htmlLabels);r=a||"node default";let d=t.insert("g").attr("class",r).attr("id",e.domId||e.id),g=d.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,w="markdown"===e.labelType,x=i&&!e.width?e.minWidth??0:0,m=await (0,l.GZ)(g,(0,o.jZ)((0,s.Sm)(i),(0,o.D7)()),{useHtmlLabels:h,width:e.width||e.wrappingWidth||(0,o.D7)().flowchart?.wrappingWidth,minWidth:x,classes:w?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:w},(0,o.D7)()),b=(e?.padding??0)/2;if(h){let t=m.children[0],e=(0,c.Ltv)(m);await y(t),n=f(n=await l.lT.measure(()=>t.getBoundingClientRect()),x),e.attr("width",n.width),e.attr("height",n.height)}else n=f(n=await l.lT.measure(()=>m.getBBox()),x);return h?g.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):g.attr("transform","translate(0, "+-n.height/2+")"),e.centerLabel&&g.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),g.insert("rect",":first-child"),{shapeSvg:d,bbox:n,halfPadding:b,label:g}},"labelHelper"),x=(0,d.K)(async(t,e,a)=>{let r,i=a.useHtmlLabels??(0,o.E)((0,o.D7)()),n=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),h=await (0,l.GZ)(n,(0,o.jZ)((0,s.Sm)(e),(0,o.D7)()),{useHtmlLabels:i,width:a.width||(0,o.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=a.padding/2;if((0,o.E)((0,o.D7)())){let t=h.children[0],e=(0,c.Ltv)(h);r=await l.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else r=await l.lT.measure(()=>h.getBBox());return i?n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"):n.attr("transform","translate(0, "+-r.height/2+")"),a.centerLabel&&n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:r,halfPadding:d,label:n}},"insertLabel"),m=(0,d.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),b=(0,d.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function $(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function k(t,e,a,r,l,i){let n=[],s=a-t,o=2*Math.PI/(s/i),h=e+(r-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,r=h+l*Math.sin(o*(a-t));n.push({x:a,y:r})}return n}function M(t,e,a,r,l,i){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}function D(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),r=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",r);let l=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,d.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");l&&Object.entries({fill:n(l,"fill"),"fill-opacity":n(l,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,d.K)($,"createPathFromPoints"),(0,d.K)(k,"generateFullSineWavePoints"),(0,d.K)(M,"generateCirclePoints"),(0,d.K)(D,"mergePaths");var A=(0,d.K)((t,e)=>{var a,r,l=t.x,i=t.y,n=e.x-l,s=e.y-i,o=t.width/2,h=t.height/2;return Math.abs(s)*o>Math.abs(n)*h?(s<0&&(h=-h),a=0===s?0:h*n/s,r=h):(n<0&&(o=-o),a=o,r=0===n?0:o*s/n),{x:l+a,y:i+r}},"intersectRect");function S(t,e){return t.intersect(e)}function v(t,e,a,r){var l=t.x,i=t.y,n=l-r.x,s=i-r.y,o=Math.sqrt(e*e*s*s+a*a*n*n),h=Math.abs(e*a*n/o);r.x<l&&(h=-h);var d=Math.abs(e*a*s/o);return r.y<i&&(d=-d),{x:l+h,y:i+d}}function K(t,e,a){return v(t,e,e,a)}function C(t,e,a,r){{let l=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=l*a.x+i*a.y+n,o=l*r.x+i*r.y+n;if(0!==s&&0!==o&&L(s,o))return;let h=r.y-a.y,d=a.x-r.x,c=r.x*a.y-a.x*r.y,g=h*t.x+d*t.y+c,y=h*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&L(g,y))return;let u=l*d-h*i;if(0===u)return;return{x:(i*c-d*n)/u,y:(h*n-l*c)/u}}}function L(t,e){return t*e>0}function N(t,e,a){let r=t.x,l=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let o=r-t.width/2-n,h=l-t.height/2-s;for(let r=0;r<e.length;r++){let l=e[r],n=e[r<e.length-1?r+1:0],s=C(t,a,{x:o+l.x,y:h+l.y},{x:o+n.x,y:h+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let r=t.x-a.x,l=t.y-a.y,i=Math.sqrt(r*r+l*l),n=e.x-a.x,s=e.y-a.y,o=Math.sqrt(n*n+s*s);return i<o?-1:+(i!==o)}),i[0]):t}(0,d.K)(S,"intersectNode"),(0,d.K)(v,"intersectEllipse"),(0,d.K)(K,"intersectCircle"),(0,d.K)(C,"intersectLine"),(0,d.K)(L,"sameSign"),(0,d.K)(N,"intersectPolygon");var B={node:S,circle:K,ellipse:v,polygon:N,rect:A},F=(0,d.K)((t,e,a,r,l)=>["M",t+l,e,"H",t+a-l,"A",l,l,"0 0 1",t+a,e+l,"V",e+r-l,"A",l,l,"0 0 1",t+a-l,e+r,"H",t+l,"A",l,l,"0 0 1",t,e+r-l,"V",e+l,"A",l,l,"0 0 1",t+l,e,"Z"].join(" "),"createRoundedRectPathD"),R=(0,d.K)(async(t,e,a,r=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let s=(0,o.D7)(),h=(0,o.E)(s);return await (0,l.GZ)(t,n,{style:a,isTitle:r,useHtmlLabels:h,markdown:!1,isNode:i,width:1/0},s)},"createLabel");function P(t,e){let{labelStyles:a}=(0,r.GX)(e);e.labelStyle=a;let l=b(e),i=l;l||(i="anchor");let n=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:o}=e,d=g.A.svg(n),c=(0,r.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=d.circle(0,0,2,c),u=n.insert(()=>y,":first-child");return u.attr("class","anchor").attr("style",(0,s.KL)(o)),m(e,u),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),B.circle(e,1,t)},n}function X(t,e,a,r,l,i,n){let s=Math.atan2(r-e,a-t),o=Math.sqrt(((a-t)/2/l)**2+((r-e)/2/i)**2);if(o>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-o**2),d=(t+a)/2+h*i*Math.sin(s)*(n?-1:1),c=(e+r)/2-h*l*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/l),y=Math.atan2((r-c)/i,(a-d)/l)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let u=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+l*Math.cos(e),r=c+i*Math.sin(e);u.push({x:a,y:r})}return u}function G(t,e,a){let[r,l]=[e,a].sort((t,e)=>e-t);return l*(1-Math.sqrt(1-(t/r/2)**2))}async function I(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o=(0,d.K)(t=>t+s,"calcTotalHeight"),h=(0,d.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:c,bbox:y}=await w(t,e,b(e)),u=o(e?.height?e?.height:y.height),[p,f]=h(u),x=G(u,p,f),k=(e?.width?e?.width:y.width)+2*n+x-x,{cssStyles:M}=e,D=[{x:k/2,y:-u/2},{x:-k/2,y:-u/2},...X(-k/2,-u/2,-k/2,u/2,p,f,!1),{x:k/2,y:u/2},...X(k/2,u/2,k/2,-u/2,p,f,!0)],A=g.A.svg(c),S=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=$(D),K=A.path(v,S),C=c.insert(()=>K,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),l&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",l),C.attr("transform",`translate(${p/2}, 0)`),m(e,C),e.intersect=function(t){return B.polygon(e,D,t)},c}async function W(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",c=e.padding??12,y=Math.max(s.width+2*c,e.width??0,80),u=Math.max(Math.min(.08*y,12),5),p=Math.max(s.height+2*c+u,e.height??0),f=-p/2+u,x=p/2,$=.72*y,k=`M${-y/2},${f} L${-$/2},${x} A${$/2},${u} 0 0 0 ${$/2},${x} L${y/2},${f} A${y/2},${u} 0 0 0 ${-y/2},${f} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(k,(0,r.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",y/2).attr("ry",u).attr("style",`fill:none;stroke:${h};stroke-width:1px`),m(e,D);let A=f+(x-f)/2;o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${A-s.height/2-(s.y-(s.top??0))})`);let S=(0,d.K)((t,e,a)=>Array.from({length:13},(r,l)=>{let i=Math.PI-l*Math.PI/12;return{x:t*Math.cos(i),y:e+a*u*Math.sin(i)}}),"arc"),v=[...S(y/2,f,-1),...S($/2,x,1).reverse()];return e.intersect=function(t){return B.polygon(e,v,t)},n}function H(t){let{themeVariables:e}=(0,o.D7)(),a=e.clusterBkg,r=e.clusterBorder;return"flow"===t?{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:8,fill:a,stroke:r,cssClass:"collapsed-group"}}async function T(t,e){let a,l=H(e.metadata?.containerType),{fill:i,stroke:h}=l,{nodeStyles:d}=(0,r.GX)(e),{shapeSvg:c,bbox:y}=await w(t,e,b(e)),{theme:u,themeVariables:p}=(0,o.D7)();(0,n.XE)(c,e.colorIndex,u,p.borderColorArray);let f=e.padding??8,x=y.height,$=Math.max(y.width+2*f,80,e?.width??0),k=Math.max(x+8+20+2*f,e?.height??0),M=-$/2,D=-k/2,A=c.select(".label");if(A&&(e.useHtmlLabels??(0,o.E)((0,o.D7)())?A.attr("transform",`translate(${-y.width/2}, ${-y.height/2+-14})`):A.attr("transform",`translate(0, ${-y.height/2+-14})`)),"handDrawn"===e.look){let t=g.A.svg(c),n=(0,r.Fr)(e,{fill:i,stroke:h,...void 0===l.strokeWidth?{}:{strokeWidth:l.strokeWidth},..."none"===i?{fillWeight:0}:{fillStyle:"solid"}}),o=t.path(F(M,D,$,k,l.rx),n);(a=c.insert(()=>o,":first-child")).attr("class","basic label-container "+l.cssClass).attr("style",(0,s.KL)(e.cssStyles))}else(a=c.insert("rect",":first-child")).attr("class","basic label-container "+l.cssClass).attr("style",d).attr("rx",l.rx).attr("ry",l.rx).attr("x",M).attr("y",D).attr("width",$).attr("height",k).attr("fill",i).attr("stroke",h),void 0!==l.strokeWidth&&a.attr("stroke-width",l.strokeWidth+"px");let S=D+f+x+8;c.append("line").attr("class","collapsed-separator").attr("x1",M+8).attr("y1",S).attr("x2",M+$-8).attr("y2",S).attr("stroke",h).attr("stroke-dasharray","3, 3");let v=S+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",v).attr("r",2.5).attr("fill",h);return m(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},c}function E(t,e,a,r){return t.insert("polygon",":first-child").attr("points",r.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,d.K)(P,"anchor"),(0,d.K)(X,"generateArcPoints"),(0,d.K)(G,"calculateArcSagitta"),(0,d.K)(I,"bowTieRect"),(0,d.K)(W,"bucket"),(0,d.K)(H,"getCollapsedStyle"),(0,d.K)(T,"collapsedGroup"),(0,d.K)(E,"insertPolygonShape");var j=["right","left","up","down"],q="point",Z=(0,d.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),_=(0,d.K)(t=>j.filter(e=>t.has(e)).join("|")||q,"getDirectionKey"),z={"right|left|up|down":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:0,y:0},{x:e,y:0},{x:r/2,y:2*a},{x:r-e,y:0},{x:r,y:0},{x:r,y:-t/3},{x:r+2*a,y:-t/2},{x:r,y:-2*t/3},{x:r,y:-t},{x:r-e,y:-t},{x:r/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"up|down"),"right|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,d.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,d.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a}],"up"),down:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"down"),[q]:()=>[{x:0,y:0}]},O=(0,d.K)((t,e,a,r)=>{let l=Z(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,o=r??e.width+2*s+2*i;return(z[_(l)]??z[q])({height:n,midpoint:s,padding:i,width:o})},"getArrowPoints");async function V(t,e){let{shapeSvg:a,bbox:r}=await w(t,e,b(e)),l=e.padding??0,i=r.height+2*l,n=i/2,s=r.width+2*n+l,o=e.width??0,h=e.positioned&&(e.widthInColumns??1)>1&&o>s?o:s,d=O(e.directions??[],r,e,h),c=E(a,h,i,d);return c.attr("style",e.style??null),m(e,c),e.intersect=function(t){return B.polygon(e,d,t)},a}async function Y(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+18,e.height??0),u=-y/2,{cssStyles:p}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(F(-c/2,u,c,y,12),(0,r.Fr)(e,{}));f.node()?.appendChild(t),p&&f.attr("style",p)}else f.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);f.append("line").attr("x1",-c/2).attr("y1",u+18).attr("x2",c/2).attr("y2",u+18).attr("style",`stroke:${h};stroke-width:1px`);for(let t=0;t<3;t++)f.append("circle").attr("cx",-c/2+12+9*t).attr("cy",u+9).attr("r",2.5).attr("style",`fill:${h};stroke:none`);f.append("rect").attr("class","browser-address-bar").attr("x",-c/2+44).attr("y",u+4).attr("width",Math.max(c-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),m(e,f);let x=u+18+(y-18)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}async function J(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?28:n,o="neo"===e.look?24:n,{shapeSvg:h,bbox:d}=await w(t,e,b(e)),c=(e?.width??d.width)+("neo"===e.look?2*s:s+12),y=(e?.height??d.height)+("neo"===e.look?2*o:o),u=-y,p=[{x:12,y:u},{x:c,y:u},{x:c,y:0},{x:0,y:0},{x:0,y:u+12},{x:12,y:u}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=g.A.svg(h),l=(0,r.Fr)(e,{}),i=$(p),n=t.path(i,l);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),f&&a.attr("style",f)}else a=E(h,c,y,p);return i&&a.attr("style",i),m(e,a),e.intersect=function(t){return B.polygon(e,p,t)},h}function U(t,e){let{nodeStyles:a}=(0,r.GX)(e);e.label="";let l=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],o=g.A.svg(l),h=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let d=$(s),c=o.path(d,h),y=l.insert(()=>c,":first-child");return i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return B.polygon(e,s,t)},l}async function Q(t,e,a){let l,{labelStyles:i,nodeStyles:n}=(0,r.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:d,halfPadding:c}=await w(t,e,b(e)),y=a?.padding??c,u=Math.sqrt(d.width**2+d.height**2)/2,p="neo"===e.look?u+32:u+y,{cssStyles:f}=e;if("handDrawn"===e.look){let t=g.A.svg(o),a=(0,r.Fr)(e,{}),i=t.circle(0,0,2*p,a);(l=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(f))}else l=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0);return m(e,l),e.calcIntersect=function(t,e){let a=t.width/2;return B.circle(t,a,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,p,t),B.circle(e,p,t)},o}async function tt(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:r,bbox:l,halfPadding:i}=await w(t,e,a),n=r.insert("rect",":first-child"),s=e.padding??0,o=e.positioned?e.width??0:l.width+s,h=e.positioned?e.height??0:l.height+s,d=e.positioned?-o/2:-l.width/2-i,c=e.positioned?-h/2:-l.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",o).attr("height",h),m(e,n),e.intersect=function(t){return B.rect(e,t)},r}async function te(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+20,e.height??0),u=-y/2,{cssStyles:p}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(F(-c/2,u,c,y,12),(0,r.Fr)(e,{}));f.node()?.appendChild(t),p&&f.attr("style",p)}else f.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);f.append("text").attr("x",-c/2+12).attr("y",u+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),m(e,f);let x=u+20+(y-20)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}function ta(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),r=2*t,l={x:r/2*e,y:r/2*a},i={x:-(r/2)*e,y:r/2*a},n={x:-(r/2)*e,y:-(r/2)*a},s={x:r/2*e,y:-(r/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
|
|
2
2
|
M ${l.x},${l.y} L ${n.x},${n.y}`}function tr(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a,e.label="";let i=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,o=g.A.svg(i),d=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let c=o.circle(0,0,2*n,d),y=ta(n),u=o.path(y,d),p=i.insert(()=>c,":first-child");return p.insert(()=>u),p.attr("class","outer-path"),s&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",s),l&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",l),m(e,p),e.intersect=function(t){return h.R.info("crossedCircle intersect",e,{radius:n,point:t}),B.circle(e,n,t)},i}function tl(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}async function ti(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+o,c=n.height+h,y=Math.max(5,.1*c),{cssStyles:u}=e,p=[...tl(d/2,-c/2,y,30,-90,0),{x:-d/2-y,y:y},...tl(d/2+2*y,-y,y,20,-180,-270),...tl(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-c/2},...tl(d/2,c/2,y,20,0,90)],f=[{x:d/2,y:-c/2-y},{x:-d/2,y:-c/2-y},...tl(d/2,-c/2,y,20,-90,0),{x:-d/2-y,y:-y},...tl(d/2+.1*d,-y,y,20,-180,-270),...tl(d/2+.1*d,y,y,20,-90,-180),{x:-d/2-y,y:c/2},...tl(d/2,c/2,y,20,0,90),{x:-d/2,y:c/2+y},{x:d/2,y:c/2+y}],x=g.A.svg(i),k=(0,r.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$(p).replace("Z",""),D=x.path(M,k),A=$(f),S=x.path(A,{...k}),v=i.insert("g",":first-child");return v.insert(()=>S,":first-child").attr("stroke-opacity",0),v.insert(()=>D,":first-child"),v.attr("class","text"),u&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(${y}, 0)`),s.attr("transform",`translate(${-d/2+y-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,v),e.intersect=function(t){return B.polygon(e,f,t)},i}function tn(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:i,y:h})}return n}async function ts(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*o:o),c=n.height+("neo"===e.look?2*h:h),y=Math.max(5,.1*c),{cssStyles:u}=e,p=[...tn(d/2,-c/2,y,20,-90,0),{x:d/2+y,y:-y},...tn(d/2+2*y,-y,y,20,-180,-270),...tn(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:c/2},...tn(d/2,c/2,y,20,0,90)],f=[{x:-d/2,y:-c/2-y},{x:d/2,y:-c/2-y},...tn(d/2,-c/2,y,20,-90,0),{x:d/2+y,y:-y},...tn(d/2+2*y,-y,y,20,-180,-270),...tn(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:c/2},...tn(d/2,c/2,y,20,0,90),{x:d/2,y:c/2+y},{x:-d/2,y:c/2+y}],x=g.A.svg(i),k=(0,r.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$(p).replace("Z",""),D=x.path(M,k),A=$(f),S=x.path(A,{...k}),v=i.insert("g",":first-child");return v.insert(()=>S,":first-child").attr("stroke-opacity",0),v.insert(()=>D,":first-child"),v.attr("class","text"),u&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(${-y}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,v),e.intersect=function(t){return B.polygon(e,f,t)},i}function to(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}async function th(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*o:o),c=n.height+("neo"===e.look?2*h:h),y=Math.max(5,.1*c),{cssStyles:u}=e,p=[...to(d/2,-c/2,y,30,-90,0),{x:-d/2-y,y:y},...to(d/2+2*y,-y,y,20,-180,-270),...to(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-c/2},...to(d/2,c/2,y,20,0,90)],f=[...to(-d/2+y+y/2,-c/2,y,20,-90,-180),{x:d/2-y/2,y:y},...to(-d/2-y/2,-y,y,20,0,90),...to(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...to(-d/2+y+y/2,c/2,y,30,-180,-270)],x=[{x:d/2,y:-c/2-y},{x:-d/2,y:-c/2-y},...to(d/2,-c/2,y,20,-90,0),{x:-d/2-y,y:-y},...to(d/2+2*y,-y,y,20,-180,-270),...to(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:c/2},...to(d/2,c/2,y,20,0,90),{x:-d/2,y:c/2+y},{x:d/2-y-y/2,y:c/2+y},...to(-d/2+y+y/2,-c/2,y,20,-90,-180),{x:d/2-y/2,y:y},...to(-d/2-y/2,-y,y,20,0,90),...to(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...to(-d/2+y+y/2,c/2,y,30,-180,-270)],k=g.A.svg(i),M=(0,r.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=$(p).replace("Z",""),A=k.path(D,M),S=$(f).replace("Z",""),v=k.path(S,M),K=$(x),C=k.path(K,{...M}),L=i.insert("g",":first-child");return L.insert(()=>C,":first-child").attr("stroke-opacity",0),L.insert(()=>A,":first-child"),L.insert(()=>v,":first-child"),L.attr("class","text"),u&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",l),L.attr("transform",`translate(${y-y/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,L),e.intersect=function(t){return B.polygon(e,x,t)},i}async function td(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(5,h.height+2*s,e?.height??0),c=d/2,y=Math.max(d/4,c-Math.sqrt(Math.max(0,c**2-(h.height/2)**2))),u=Math.max(20,h.width+2*n+2*y,(h.width+2*n)*1.25,e?.width??0),{cssStyles:p}=e,f=g.A.svg(o),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=u-c,D=d/4,A=[{x:k,y:0},{x:D,y:0},{x:0,y:d/2},{x:D,y:d},{x:k,y:d},...M(-k,-d/2,c,50,270,90)],S=$(A),v=f.path(S,x),K=o.insert(()=>v,":first-child");return K.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",l),K.attr("transform",`translate(${-u/2}, ${-d/2})`),m(e,K),e.intersect=function(t){return B.polygon(e,A,t)},o}async function tc(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o=e.padding??20,h=Math.max(n.width+2*o,e.width??0,100),d=Math.min(Math.max(.23*h,16),56),c=.27*d,y=Math.max(n.height+2*o,e.height?e.height-(2*d-c):0),u=Math.min(.177*h,.45*y),p=y+2*d-c,f=-p/2,x=f+2*d-c,$=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(i),a=(0,r.Fr)(e,{}),l=t.path(F(-h/2,x,h,y,u),a),n=t.circle(0,f+d,2*d,a);$.insert(()=>n,":first-child"),$.insert(()=>l,":first-child"),k&&$.attr("style",k)}else $.append("rect").attr("x",-h/2).attr("y",x).attr("width",h).attr("height",y).attr("rx",u).attr("ry",u).attr("style",l),$.append("circle").attr("cx",0).attr("cy",f+d).attr("r",d).attr("style",l);m(e,$);let D=x+y/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${D-n.height/2-(n.y-(n.top??0))})`);let A=f+d,S=180*Math.asin(Math.min(1,(x-A)/d))/Math.PI,v=[...M(0,-A,d,24,180+S,-S),...M(-(-h/2+u),-(x+u),u,12,90,0),...M(-(-h/2+u),-(p/2-u),u,12,360,270),...M(-(h/2-u),-(p/2-u),u,12,270,180),...M(-(h/2-u),-(x+u),u,12,180,90)];return e.intersect=function(t){return B.polygon(e,v,t)},i}(0,d.K)(V,"block_arrow"),(0,d.K)(Y,"browser"),(0,d.K)(J,"card"),(0,d.K)(U,"choice"),(0,d.K)(Q,"circle"),(0,d.K)(tt,"composite"),(0,d.K)(te,"consoleWindow"),(0,d.K)(ta,"createLine"),(0,d.K)(tr,"crossedCircle"),(0,d.K)(tl,"generateCirclePoints"),(0,d.K)(ti,"curlyBraceLeft"),(0,d.K)(tn,"generateCirclePoints"),(0,d.K)(ts,"curlyBraceRight"),(0,d.K)(to,"generateCirclePoints"),(0,d.K)(th,"curlyBraces"),(0,d.K)(td,"curvedTrapezoid"),(0,d.K)(tc,"person");var tg=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e+i} a${l},${i} 0,0,0 ${a},0 a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r}`,"createCylinderPathD"),ty=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e+i} M${t+a},${e+i} a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r}`,"createOuterCylinderPathD"),tu=(0,d.K)((t,e,a,r,l,i)=>`M${t-a/2},${-r/2} a${l},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tp(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,o="neo"===e.look?24:n,h="neo"===e.look?24:n,d=e.width??0;e.width&&(e.width=e.width-h,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-o-d/2/(2.5+d/50)*3,e.height<8&&(e.height=8));let{shapeSvg:c,bbox:y,label:u}=await w(t,e,b(e)),p=Math.max(e.width??0,y.width)+h,f=p/2,x=f/(2.5+p/50),$=Math.max(e.height??0,y.height)+o+x,{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(c),l=ty(0,0,p,$,f,x),i=tu(0,x,p,$,f,x),n=(0,r.Fr)(e,{}),s=t.path(l,n),o=t.path(i,(0,r.Fr)(e,{fill:"none"}));a=c.insert(()=>o,":first-child"),(a=c.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tg(0,0,p,$,f,x);a=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)).attr("style",i)}return a.attr("label-offset-y",x),a.attr("transform",`translate(${-p/2}, ${-($/2+x)})`),m(e,a),u.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),r=a.x-(e.x??0);if(0!=f&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-x)){let l=x*x*(1-r*r/(f*f));l>0&&(l=Math.sqrt(l)),l=x-l,t.y-(e.y??0)>0&&(l=-l),a.y+=l}return a},c}async function tf(t,e,a){let l,{labelStyles:i,nodeStyles:n}=(0,r.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.width+2*a.labelPaddingX,e?.width||0),c=Math.max(h.height+2*a.labelPaddingY,e?.height||0),y=-d/2,u=-c/2,{rx:p,ry:f}=e,{cssStyles:x}=e;if(a?.rx&&a.ry&&(p=a.rx,f=a.ry),"handDrawn"===e.look){let t=g.A.svg(o),a=(0,r.Fr)(e,{}),i=p||f?t.path(F(y,u,d,c,p||0),a):t.rectangle(y,u,d,c,a);(l=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(x))}else(l=o.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",(0,s.KL)(p)).attr("ry",(0,s.KL)(f)).attr("x",y).attr("y",u).attr("width",d).attr("height",c);return m(e,l,"handDrawn"===e.look?void 0:{width:d,height:c}),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},o}async function tw(t,e){let{cssClasses:a,labelPaddingX:l,labelPaddingY:i,padding:n,width:s,height:o}=e,h=await tf(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:l??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===e.look){let t=g.A.svg(h),a=(0,r.Fr)(e,{}),l=h.select(".basic.label-container > path:nth-child(2)"),i=l.node();if(!i)return h;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),h.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),h.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),l.remove()),h}let d=h.select(".basic.label-container"),c=(Number(d.attr("width"))||s)??0,y=(Number(d.attr("height"))||o)??0;return c>0&&y>0&&d.attr("stroke-dasharray",`${c} ${y}`),h}async function tx(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:o,label:h}=await w(t,e,b(e)),d=o.width+i,c=o.height+n,y=.2*c,u=-d/2,p=-c/2-y/2,{cssStyles:f}=e,x=g.A.svg(s),$=(0,r.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=x.polygon([{x:u,y:p+y},{x:-u,y:p+y},{x:-u,y:-p},{x:u,y:-p},{x:u,y:p},{x:-u,y:p},{x:-u,y:p+y}].map(t=>[t.x,t.y]),$),M=s.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",f),l&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",l),h.attr("transform",`translate(${u+(e.padding??0)/2-(o.x-(o.left??0))}, ${p+y+(e.padding??0)/2-(o.y-(o.top??0))})`),m(e,M),e.intersect=function(t){return B.rect(e,t)},s}async function tm(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e),n="neo"===e.look?12:5;e.labelStyle=l;let o=e.padding??0,d="neo"===e.look?16:o,{shapeSvg:c,bbox:y}=await w(t,e,b(e)),u=Math.sqrt(y.width**2+y.height**2)/2,p=(e?.width?e?.width/2:u)+(d??0),f=p+n,{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(c),l=(0,r.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,r.Fr)(e,{roughness:.2,strokeWidth:1.5}),n=t.circle(0,0,2*f,l),o=t.circle(0,0,2*p,i);(a=c.insert("g",":first-child")).attr("class",(0,s.KL)(e.cssClasses)).attr("style",(0,s.KL)(x)),a.node()?.appendChild(n),a.node()?.appendChild(o)}else{let t=(a=c.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",p).attr("cx",0).attr("cy",0)}return m(e,a),e.intersect=function(t){return h.R.info("DoubleCircle intersect",e,f,t),B.circle(e,f,t)},c}async function tb(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:s,bbox:h,halfPadding:d}=await w(t,e,b(e)),{theme:c,themeVariables:y}=(0,o.D7)();(0,n.XE)(s,e.colorIndex,c,y.borderColorArray);let u=d??10,p=h.width/2+2*u,f=h.height/2+2*u,{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(s),l=(0,r.Fr)(e,{}),i=t.ellipse(0,0,2*p,2*f,l);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container"),x&&a.attr("style",x)}else a=s.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",i).attr("rx",p).attr("ry",f).attr("cx",0).attr("cy",0);return e.width=2*p,e.height=2*f,m(e,a),e.calcIntersect=function(t,e){let a=t.width/2,r=t.height/2;return B.ellipse(t,a,r,e)},e.intersect=function(t){return B.ellipse(e,p,f,t)},s}function t$(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.label="",e.labelStyle=l;let n=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=g.A.svg(n),{nodeBorder:d}=a,c=(0,r.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=o.circle(0,0,14,c),u=n.insert(()=>y,":first-child");return u.selectAll("path").attr("style",`fill: ${d} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",i),m(e,u),e.intersect=function(t){return h.R.info("filledCircle intersect",e,{radius:7,point:t}),B.circle(e,7,t)},n}async function tk(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:o,label:d}=await w(t,e,b(e)),c=(e?.width?e?.width:o.width)+(n??0),y=e?.height?e?.height:c+o.height,u=[{x:0,y:-y},{x:y,y:-y},{x:y/2,y:0}],{cssStyles:p}=e,f=g.A.svg(s),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=$(u),M=f.path(k,x),D=s.insert(()=>M,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");return p&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",l),e.width=c,e.height=y,m(e,D),d.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-y/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,u,t),B.polygon(e,u,t)},s}async function tM(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=e.padding??12,d=Math.max(s.width+2*h,e.width??0,90),c=s.height+2*h,y=Math.max(Math.min(.16*c,14),8),u=Math.max(c+y,e.height??0),p=u-y,f=Math.max(.38*d,28),x=-u/2,$=[{x:-d/2,y:x},{x:-d/2+f,y:x},{x:-d/2+f,y:x+y},{x:d/2,y:x+y},{x:d/2,y:u/2},{x:-d/2,y:u/2}],k=[`M${$[0].x},${$[0].y}`,...$.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:M}=e;if("handDrawn"===e.look){let t=g.A.svg(n).path(k,(0,r.Fr)(e,{}));a=n.insert(()=>t,":first-child").attr("class","basic label-container"),M&&a.attr("style",M)}else a=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===e.look?m(e,a):m(e,a,{width:d,height:u}),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x+y+p/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.polygon(e,$,t)},n}function tD(t,e,{dir:a,config:{state:l,themeVariables:i}}){let{nodeStyles:n}=(0,r.GX)(e);e.label="";let s=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,h=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);("LR"===a||"RL"===a)&&(h=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let c=-1*h/2,y=-1*d/2,u=g.A.svg(s),p=(0,r.Fr)(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=u.rectangle(c,y,h,d,p),w=s.insert(()=>f,":first-child");o&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",n),m(e,w);let x=l?.padding??0;return e.width&&e.height&&(e.width+=x/2||0,e.height+=x/2||0),e.intersect=function(t){return B.rect(e,t)},s}async function tA(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*i,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:o}=await w(t,e,b(e)),d=(e?.height?e?.height:Math.max(10,o.height))+2*n,c=d/2,y=c-Math.sqrt(Math.max(0,c**2-(o.height/2)**2)),u=(e?.width?e?.width:Math.max(15,o.width)+2*y)+2*i,{cssStyles:p}=e,f=g.A.svg(s),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=[{x:-u/2,y:-d/2},{x:u/2-c,y:-d/2},...M(-u/2+c,0,c,50,90,270),{x:u/2-c,y:d/2},{x:-u/2,y:d/2}],D=$(k),A=f.path(D,x),S=s.insert(()=>A,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",l),m(e,S),e.intersect=function(t){return h.R.info("Pill intersect",e,{radius:c,point:t}),B.polygon(e,k,t)},s}(0,d.K)(tp,"cylinder"),(0,d.K)(tf,"drawRect"),(0,d.K)(tw,"datastore"),(0,d.K)(tx,"dividedRectangle"),(0,d.K)(tm,"doublecircle"),(0,d.K)(tb,"usecaseEllipse"),(0,d.K)(t$,"filledCircle"),(0,d.K)(tk,"flippedTriangle"),(0,d.K)(tM,"folder"),(0,d.K)(tD,"forkJoin"),(0,d.K)(tA,"halfRoundedRectangle");var tS=(0,d.K)((t,e,a,r,l)=>`M${t+l},${e} L${t+a-l},${e} L${t+a},${e-r/2} L${t+a-l},${e-r} L${t+l},${e-r} L${t},${e-r/2} Z`,"createHexagonPathD");async function tv(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=l;let s=e.padding??0,o="neo"===e.look?70:s,h="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-h,e.height=(e.height??0)-o}let{shapeSvg:d,bbox:c}=await w(t,e,b(e)),y=(e?.height?e?.height:c.height)+o,u=y/n,p=(e?.width?e?.width:c.width)+2*u+h,f=[{x:u,y:0},{x:p-u,y:0},{x:p,y:-y/2},{x:p-u,y:-y},{x:u,y:-y},{x:0,y:-y/2}],{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(d),l=(0,r.Fr)(e,{}),i=tS(0,0,p,y,u),n=t.path(i,l);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${y/2})`),x&&a.attr("style",x)}else a=E(d,p,y,f);return i&&a.attr("style",i),e.width=p,e.height=y,m(e,a),e.intersect=function(t){return B.polygon(e,f,t)},d}async function tK(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:i}=await w(t,e,b(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,d=g.A.svg(i),c=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let y=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],u=$(y),p=d.path(u,c),f=i.insert(()=>p,":first-child");return f.attr("class","basic label-container outer-path"),o&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",o),l&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",l),f.attr("transform",`translate(${-n/2}, ${-s/2})`),m(e,f),e.intersect=function(t){return h.R.info("Pill intersect",e,{points:y}),B.polygon(e,y,t)},i}async function tC(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:c}=await w(t,e,"icon-shape default"),y="t"===e.pos,{nodeBorder:u}=a,{stylesMap:p}=(0,r.WW)(e),f=-s/2,x=-s/2,b=8*!!e.label,$=g.A.svg(o),k=(0,r.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$.rectangle(f,x,s,s,k),D=Math.max(s,d.width),A=s+d.height+b,S=$.rectangle(-D/2,-A/2,D,A,{...k,fill:"transparent",stroke:"none"}),v=o.insert(()=>M,":first-child"),K=o.insert(()=>S);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-r/2-n},${y?d.height/2+b/2-l/2-h:-d.height/2-b/2-l/2-h})`),t.attr("style",`color: ${p.get("stroke")??u};`)}return c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-A/2:A/2-d.height})`),v.attr("transform",`translate(0,${y?d.height/2+b/2:-d.height/2-b/2})`),m(e,K),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=y?[{x:a-d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2+d.height+b},{x:a+s/2,y:r-l/2+d.height+b},{x:a+s/2,y:r+l/2},{x:a-s/2,y:r+l/2},{x:a-s/2,y:r-l/2+d.height+b},{x:a-d.width/2,y:r-l/2+d.height+b}]:[{x:a-s/2,y:r-l/2},{x:a+s/2,y:r-l/2},{x:a+s/2,y:r-l/2+s},{x:a+d.width/2,y:r-l/2+s},{x:a+d.width/2/2,y:r+l/2},{x:a-d.width/2,y:r+l/2},{x:a-d.width/2,y:r-l/2+s},{x:a-s/2,y:r-l/2+s}],B.polygon(e,i,t)},o}async function tL(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:c}=await w(t,e,"icon-shape default"),y=8*!!e.label,u="t"===e.pos,{nodeBorder:p,mainBkg:f}=a,{stylesMap:x}=(0,r.WW)(e),b=g.A.svg(o),$=(0,r.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid"),$.stroke=x.get("fill")??f;let k=o.append("g");e.icon&&k.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let M=k.node().getBBox(),D=M.width,A=M.height,S=M.x,v=M.y,K=Math.max(D,A)*Math.SQRT2+40,C=b.circle(0,0,K,$),L=Math.max(K,d.width),N=K+d.height+y,F=b.rectangle(-L/2,-N/2,L,N,{...$,fill:"transparent",stroke:"none"}),R=o.insert(()=>C,":first-child"),P=o.insert(()=>F);return k.attr("transform",`translate(${-D/2-S},${u?d.height/2+y/2-A/2-v:-d.height/2-y/2-A/2-v})`),k.attr("style",`color: ${x.get("stroke")??p};`),c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-N/2:N/2-d.height})`),R.attr("transform",`translate(0,${u?d.height/2+y/2:-d.height/2-y/2})`),m(e,P),e.intersect=function(t){return h.R.info("iconSquare intersect",e,t),B.rect(e,t)},o}async function tN(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:c,label:y}=await w(t,e,"icon-shape default"),u="t"===e.pos,p=s+2*c,f=s+2*c,{nodeBorder:x,mainBkg:b}=a,{stylesMap:$}=(0,r.WW)(e),k=8*!!e.label,M=g.A.svg(o),D=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid"),D.stroke=$.get("fill")??b;let A=M.path(F(-f/2,-p/2,f,p,5),D),S=Math.max(f,d.width),v=p+d.height+k,K=M.rectangle(-S/2,-v/2,S,v,{...D,fill:"transparent",stroke:"none"}),C=o.insert(()=>A,":first-child").attr("class","icon-shape2"),L=o.insert(()=>K);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-r/2-n},${u?d.height/2+k/2-l/2-h:-d.height/2-k/2-l/2-h})`),t.attr("style",`color: ${$.get("stroke")??x};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-v/2:v/2-d.height})`),C.attr("transform",`translate(0,${u?d.height/2+k/2:-d.height/2-k/2})`),m(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=u?[{x:a-d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2+d.height+k},{x:a+f/2,y:r-l/2+d.height+k},{x:a+f/2,y:r+l/2},{x:a-f/2,y:r+l/2},{x:a-f/2,y:r-l/2+d.height+k},{x:a-d.width/2,y:r-l/2+d.height+k}]:[{x:a-f/2,y:r-l/2},{x:a+f/2,y:r-l/2},{x:a+f/2,y:r-l/2+p},{x:a+d.width/2,y:r-l/2+p},{x:a+d.width/2/2,y:r+l/2},{x:a-d.width/2,y:r+l/2},{x:a-d.width/2,y:r-l/2+p},{x:a-f/2,y:r-l/2+p}],B.polygon(e,i,t)},o}async function tB(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:c,label:y}=await w(t,e,"icon-shape default"),u="t"===e.pos,p=s+2*c,f=s+2*c,{nodeBorder:x,mainBkg:b}=a,{stylesMap:$}=(0,r.WW)(e),k=8*!!e.label,M=g.A.svg(o),D=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid"),D.stroke=$.get("fill")??b;let A=M.path(F(-f/2,-p/2,f,p,.1),D),S=Math.max(f,d.width),v=p+d.height+k,K=M.rectangle(-S/2,-v/2,S,v,{...D,fill:"transparent",stroke:"none"}),C=o.insert(()=>A,":first-child"),L=o.insert(()=>K);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-r/2-n},${u?d.height/2+k/2-l/2-h:-d.height/2-k/2-l/2-h})`),t.attr("style",`color: ${$.get("stroke")??x};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-v/2:v/2-d.height})`),C.attr("transform",`translate(0,${u?d.height/2+k/2:-d.height/2-k/2})`),m(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=u?[{x:a-d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2+d.height+k},{x:a+f/2,y:r-l/2+d.height+k},{x:a+f/2,y:r+l/2},{x:a-f/2,y:r+l/2},{x:a-f/2,y:r-l/2+d.height+k},{x:a-d.width/2,y:r-l/2+d.height+k}]:[{x:a-f/2,y:r-l/2},{x:a+f/2,y:r-l/2},{x:a+f/2,y:r-l/2+p},{x:a+d.width/2,y:r-l/2+p},{x:a+d.width/2/2,y:r+l/2},{x:a-d.width/2,y:r+l/2},{x:a-d.width/2,y:r-l/2+p},{x:a-f/2,y:r-l/2+p}],B.polygon(e,i,t)},o}async function tF(t,e,{config:{flowchart:a}}){let l=new Image;l.src=e?.img??"",await l.decode();let i=Number(l.naturalWidth.toString().replace("px","")),n=Number(l.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/n;let{labelStyles:s}=(0,r.GX)(e);e.labelStyle=s;let o=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let d=Math.max(e.label?o??0:0,e?.assetWidth??i),c="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:d,y="on"===e.constraint?c/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(c,o??0);let{shapeSvg:u,bbox:p,label:f}=await w(t,e,"image-shape default"),x="t"===e.pos,b=-c/2,$=8*!!e.label,k=g.A.svg(u),M=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k.rectangle(b,-y/2,c,y,M),A=Math.max(c,p.width),S=y+p.height+$,v=k.rectangle(-A/2,-S/2,A,S,{...M,fill:"none",stroke:"none"}),K=u.insert(()=>D,":first-child"),C=u.insert(()=>v);if(e.img){let t=u.append("image");t.attr("href",e.img),t.attr("width",c),t.attr("height",y),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-c/2},${x?S/2-y:-S/2})`)}return f.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${x?-y/2-p.height/2-$/2:y/2-p.height/2+$/2})`),K.attr("transform",`translate(0,${x?p.height/2+$/2:-p.height/2-$/2})`),m(e,C),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=x?[{x:a-p.width/2,y:r-l/2},{x:a+p.width/2,y:r-l/2},{x:a+p.width/2,y:r-l/2+p.height+$},{x:a+c/2,y:r-l/2+p.height+$},{x:a+c/2,y:r+l/2},{x:a-c/2,y:r+l/2},{x:a-c/2,y:r-l/2+p.height+$},{x:a-p.width/2,y:r-l/2+p.height+$}]:[{x:a-c/2,y:r-l/2},{x:a+c/2,y:r-l/2},{x:a+c/2,y:r-l/2+y},{x:a+p.width/2,y:r-l/2+y},{x:a+p.width/2/2,y:r+l/2},{x:a-p.width/2,y:r+l/2},{x:a-p.width/2,y:r-l/2+y},{x:a-c/2,y:r-l/2+y}],B.polygon(e,i,t)},u}async function tR(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.height+2*n,e.height??0),c=Math.max(h.width+2*s,(e.width??0)-d),y=[{x:0,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=g.A.svg(o),l=(0,r.Fr)(e,{}),i=$(y),n=t.path(i,l);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),u&&a.attr("style",u)}else a=E(o,c,d,y);return i&&a.attr("style",i),e.width=c,e.height=d,m(e,a),e.intersect=function(t){return B.polygon(e,y,t)},o}async function tP(t,e){let{shapeSvg:a,bbox:r,label:l}=await w(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),l.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),m(e,i),e.intersect=function(t){return B.rect(e,t)},a}async function tX(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.height+n,e.height??0),c=Math.max(h.width+s,(e.width??0)-d),y=[{x:0,y:0},{x:c+3*d/6,y:0},{x:c,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=g.A.svg(o),l=(0,r.Fr)(e,{}),i=$(y),n=t.path(i,l);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),u&&a.attr("style",u)}else a=E(o,c,d,y);return i&&a.attr("style",i),e.width=c,e.height=d,m(e,a),e.intersect=function(t){return B.polygon(e,y,t)},o}async function tG(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.height+n,e.height??0),c=Math.max(h.width+s,(e.width??0)-d),y=[{x:-3*d/6,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=g.A.svg(o),l=(0,r.Fr)(e,{}),i=$(y),n=t.path(i,l);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),u&&a.attr("style",u)}else a=E(o,c,d,y);return i&&a.attr("style",i),e.width=c,e.height=d,m(e,a),e.intersect=function(t){return B.polygon(e,y,t)},o}function tI(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.label="",e.labelStyle=a;let i=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),d=[{x:s,y:0},{x:0,y:o+3.5},{x:s-14,y:o+3.5},{x:0,y:2*o},{x:s,y:o-3.5},{x:14,y:o-3.5}],c=g.A.svg(i),y=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let u=$(d),p=c.path(u,y),f=i.insert(()=>p,":first-child");return f.attr("class","outer-path"),n&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",n),l&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",l),f.attr("transform",`translate(-${s/2},${-o})`),m(e,f),e.intersect=function(t){return h.R.info("lightningBolt intersect",e,t),B.polygon(e,d,t)},i}(0,d.K)(tv,"hexagon"),(0,d.K)(tK,"hourglass"),(0,d.K)(tC,"icon"),(0,d.K)(tL,"iconCircle"),(0,d.K)(tN,"iconRounded"),(0,d.K)(tB,"iconSquare"),(0,d.K)(tF,"imageSquare"),(0,d.K)(tR,"inv_trapezoid"),(0,d.K)(tP,"labelRect"),(0,d.K)(tX,"lean_left"),(0,d.K)(tG,"lean_right"),(0,d.K)(tI,"lightningBolt");var tW=(0,d.K)((t,e,a,r,l,i,n)=>`M${t},${e+i} a${l},${i} 0,0,0 ${a},0 a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r} M${t},${e+i+n} a${l},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tH=(0,d.K)((t,e,a,r,l,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r} M${t},${e+i+n} a${l},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tT=(0,d.K)((t,e,a,r,l,i)=>`M${t-a/2},${-r/2} a${l},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tE(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,o="neo"===e.look?16:n,h="neo"===e.look?24:n;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-o,e.width<10&&(e.width=10),e.height=(e.height??0)-h-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:c,label:y}=await w(t,e,b(e)),u=(e?.width?e?.width:c.width)+2*o,p=u/2,f=p/(2.5+u/50),x=(e?.height?e?.height:c.height)+f+2*h,$=.1*x,{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(d),l=tH(0,0,u,x,p,f,$),i=tT(0,f,u,x,p,f),n=(0,r.Fr)(e,{}),s=t.path(l,n),o=t.path(i,n);d.insert(()=>o,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tW(0,0,u,x,p,f,$);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)).attr("style",i)}return a.attr("label-offset-y",f),a.attr("transform",`translate(${-u/2}, ${-(x/2+f)})`),m(e,a),y.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+f-(c.y-(c.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),r=a.x-(e.x??0);if(0!=p&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-f)){let l=f*f*(1-r*r/(p*p));l>0&&(l=Math.sqrt(l)),l=f-l,t.y-(e.y??0)>0&&(l=-l),a.y+=l}return a},d}async function tj(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=(e?.width?e?.width:h.width)+(n??0)*2,y=(e?.height?e?.height:h.height)+(s??0)*2,u="neo"===e.look?y/4:y/8,p=y+u,{cssStyles:f}=e,x=g.A.svg(o),$=(0,r.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let M=[{x:-c/2-c/2*.1,y:-p/2},{x:-c/2-c/2*.1,y:p/2},...k(-c/2-c/2*.1,p/2,c/2+c/2*.1,p/2,u,.8),{x:c/2+c/2*.1,y:-p/2},{x:-c/2-c/2*.1,y:-p/2},{x:-c/2,y:-p/2},{x:-c/2,y:p/2*1.1},{x:-c/2,y:-p/2}],D=x.polygon(M.map(t=>[t.x,t.y]),$),A=o.insert(()=>D,":first-child");return A.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",f),l&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",l),A.attr("transform",`translate(0,${-u/2})`),d.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*.1/2-(h.x-(h.left??0))},${-y/2+(e.padding??0)-u-(h.y-(h.top??0))})`),m(e,A),e.intersect=function(t){return B.polygon(e,M,t)},o}(0,d.K)(tE,"linedCylinder"),(0,d.K)(tj,"linedWaveEdgedRect");var tq={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},tZ=Math.PI/3,t_=(0,d.K)((t,e)=>{let a=.6*e,r=e*Math.sqrt(.64),l=Math.cos(tZ),i=-Math.sin(tZ),n=-(a*i),s=t+a*l,o=r*l,h=r*i;return`M ${n-o} ${s-h} L ${n+o} ${s+h}`},"businessMarkerPathForCircle"),tz={normal:t_(-24,12),hollow:t_(-23,9),awesome:t_(-21,13),icon:"M 12 -8 L 26 -26"},tO=(0,d.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabel"),tV=(0,d.K)((t,e,a,l,i=!1)=>{if("handDrawn"===e.look){let n=g.A.svg(t).path(a,(0,r.Fr)(e,i?{fill:"none"}:{}));return t.insert(()=>n,":first-child").attr("class",l)}let n=t.append("path").attr("class",l).attr("d",a);return i&&n.attr("fill","none"),n},"appendActorPath"),tY=(0,d.K)((t,e,a,l,i,n,s=!1)=>{if("handDrawn"===e.look){let o=g.A.svg(t).circle(a,l,2*i,(0,r.Fr)(e,s?{fill:"none"}:{}));return t.insert(()=>o,":first-child").attr("class",n)}let o=t.append("circle").attr("class",n).attr("cx",a).attr("cy",l).attr("r",i);return s&&o.attr("fill","none"),o},"appendActorCircle"),tJ=(0,d.K)((t,e,a)=>{e.business&&t.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",tz[a]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function tU(t,e,a,l){let i,s,{labelStyles:h,nodeStyles:d}=(0,r.GX)(e);e.labelStyle=h;let c="icon"===a||void 0!==e.stereotype?{...e,icon:"icon"===a?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:g,bbox:y,label:u}=await w(t,c,b(e,`usecase-actor-variant usecase-actor-${a}`)),p=e.accessibleName??e.label;p&&g.attr("role","img").attr("aria-label",p),u.attr("class","label actor-label usecase-actor-label");let{theme:f,themeVariables:$}=(0,o.D7)();if((0,n.XE)(g,e.colorIndex,f,$.borderColorArray),e.stereotype){let t=await x(g,`\xab${e.stereotype}\xbb`,{labelStyle:h,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});i=t.label.attr("class","label usecase-stereotype"),s=t.bbox}let k=g.append("g").attr("class",`usecase-actor-glyph ${tq[a]}`).attr("style",d||null);await l(k,e),tJ(k,e,a);let M=e.padding??8,D=s?.height??0,A=80+y.height+(s?D+2:0),S=Math.max(56,y.width,s?.width??0)+2*M,v=A+2*M,K=-A/2;k.attr("transform",`translate(0,${K+36})`);let C=K+72+8;return i&&s&&(tO(i,s,C+=D/2),C+=D/2+2),tO(u,y,C+y.height/2),m(e,g.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-S/2).attr("y",-v/2).attr("width",S).attr("height",v).attr("opacity",0).attr("aria-hidden","true")),e.intersect=t=>B.rect(e,t),g}async function tQ(t,e){return tU(t,e,"normal",(t,e)=>{tV(t,e,"M 0 -12 C 6.627 -12 12 -17.373 12 -24 C 12 -30.627 6.627 -36 0 -36 C -6.627 -36 -12 -30.627 -12 -24 C -12 -17.373 -6.627 -12 0 -12 Z M 0 -12 V 8 M -17 -5 H 17 M 0 8 L -15 28 M 0 8 L 15 28","usecase-actor-stick")})}async function t0(t,e){return tU(t,e,"awesome",(t,e)=>{tV(t,e,"M 0 -34 C 7.18 -34 13 -28.18 13 -21 C 13 -13.82 7.18 -8 0 -8 C -7.18 -8 -13 -13.82 -13 -21 C -13 -28.18 -7.18 -34 0 -34 Z M -24 25 C -24 7 -14 -3 0 -3 C 14 -3 24 7 24 25 C 24 28 21 30 18 30 H -18 C -21 30 -24 28 -24 25 Z","usecase-actor-awesome-silhouette")})}async function t2(t,e){return tU(t,e,"hollow",(t,e)=>{tY(t,e,0,-23,9,"usecase-actor-hollow-head",!0),tV(t,e,"M -22 -10 H 22 V 0 H 6 L 22 17 L 13 28 L 0 13 L -13 28 L -22 17 L -6 0 H -22 Z","usecase-actor-hollow-body",!0)})}(0,d.K)(tU,"renderUsecaseActor"),(0,d.K)(tQ,"usecaseActor"),(0,d.K)(t0,"usecaseActorAwesome"),(0,d.K)(t2,"usecaseActorHollow");var t1=(0,d.K)(async(t,e)=>{if("handDrawn"===e.look){let a=g.A.svg(t).rectangle(-26,-28,52,52,(0,r.Fr)(e,{}));t.insert(()=>a,":first-child").attr("class","usecase-actor-icon-frame")}else t.append("rect").attr("class","usecase-actor-icon-frame").attr("x",-26).attr("y",-28).attr("width",52).attr("height",52).attr("rx",4).attr("ry",4);let a=e.icon??"",l=await (0,i.dn)(a.includes(":")?a:`fa:${a}`),n=await (0,i.WY)(a,{height:42,width:42,fallbackPrefix:"fa"}),s=t.append("g").attr("class",`usecase-actor-icon-symbol${l?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${n}</g>`),o=s.node()?.getBBox();o&&s.attr("transform",`translate(${-o.width/2-o.x},${-2-o.height/2-o.y})`)},"drawIconActor");async function t5(t,e){return tU(t,e,"icon",t1)}(0,d.K)(t5,"usecaseActorIcon");var t8=(0,d.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabel");async function t3(t,e){let a,l,i,{labelStyles:s,nodeStyles:h}=(0,r.GX)(e);e.labelStyle=s;let d=e.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:c,bbox:y,halfPadding:u,label:p}=await w(t,d,b(e,"usecase-business-shape"));p.attr("class","label usecase-label");let{theme:f,themeVariables:$}=(0,o.D7)();if((0,n.XE)(c,e.colorIndex,f,$.borderColorArray),e.stereotype){let t=await x(c,`\xab${e.stereotype}\xbb`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});a=t.label.attr("class","label usecase-stereotype"),l=t.bbox}let k=2*!!l,M=y.height+(l?.height??0)+k,D=Math.max(y.width,l?.width??0),A=u??10,S=D/2+2*A,v=M/2+2*A,K=Math.min(Math.max(A/5,1),A/2),C=D/2+K,L=S-K,N=C/S,F=L/S,R=v*Math.sqrt(Math.max(0,1-N*N)),P=-v*Math.sqrt(Math.max(0,1-F*F));if(a&&l&&t8(a,l,-M/2+l.height/2),t8(p,y,M/2-y.height/2),"handDrawn"===e.look){let t=g.A.svg(c).ellipse(0,0,2*S,2*v,(0,r.Fr)(e,{}));i=c.insert(()=>t,":first-child").attr("class","basic label-container usecase-business-ellipse")}else i=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",h).attr("rx",S).attr("ry",v).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${C} ${R} L ${L} ${P}`).attr("fill","none").attr("style",h||null);let X=e.accessibleName??e.label;return X&&c.attr("role","img").attr("aria-label",X),m(e,i),e.calcIntersect=(t,e)=>B.ellipse(t,t.width/2,t.height/2,e),e.intersect=t=>B.ellipse(e,S,v,t),c}(0,d.K)(t3,"usecaseBusiness");var t4=(0,d.K)((t,e,a,r)=>{let l=(e.x??0)-(e.left??0),i=(e.y??0)-(e.top??0);t.attr("transform",`translate(${a-e.width/2-l},${r-e.height/2-i})`)},"positionLabel"),t7=(0,d.K)(t=>{let e=Number.parseFloat(t??"");return Number.isFinite(e)&&e>=0?e:1},"numericStrokeWidth");async function t6(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e),{stylesMap:i}=(0,r.WW)(e);e.labelStyle=a;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e,"usecase-json-table"));n.attr("role","img"),e.accessibleName&&n.attr("aria-label",e.accessibleName),o.attr("class","label usecase-json-title");let h=n.append("g").attr("class","usecase-json-table-grid"),c=[];for(let t of e.jsonRows??[]){let r=await x(h,t.key,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),l=await x(h,t.value,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});c.push({key:{label:r.label.attr("class","label usecase-json-key"),bbox:r.bbox},value:{label:l.label.attr("class","label usecase-json-value"),bbox:l.bbox}})}let y=Math.max(0,...c.map(({key:t})=>t.bbox.width))+16,u=Math.max(0,...c.map(({value:t})=>t.bbox.width))+16,p=Math.max(s.width+16,y+u),f=u+Math.max(0,p-y-u),$=s.height+8,k=c.map(({key:t,value:e})=>Math.max(t.bbox.height,e.bbox.height)+8),M=$+k.reduce((t,e)=>t+e,0),D=t7(i.get("stroke-width")),A=p+2*D,S=M+2*D,v=-p/2,K=-M/2,C="handDrawn"===e.look?g.A.svg(n):void 0,L=C?(0,r.Fr)(e,{}):void 0,N=(0,d.K)((t,e,a,r,i,n)=>{if(C&&L){let l=C.rectangle(a,r,i,n,L);return t.insert(()=>l,":first-child").attr("class",e)}return t.insert("rect",":first-child").attr("class",e).attr("x",a).attr("y",r).attr("width",i).attr("height",n).attr("style",l)},"insertCell"),F=N(n,"label-container usecase-json-border",-A/2,-S/2,A,S);N(h,"usecase-json-cell usecase-json-title-cell",v,K,p,$),h.node()?.append(o.node()),t4(o,s,0,K+$/2);let R=K+$;return c.forEach(({key:t,value:e},a)=>{let r=k[a],l=h.append("g").attr("class","usecase-json-row").attr("data-row-index",a).attr("transform",`translate(0,${R})`);N(l,"usecase-json-cell usecase-json-key-cell",v,0,y,r),N(l,"usecase-json-cell usecase-json-value-cell",v+y,0,f,r),l.node()?.append(t.label.node(),e.label.node()),t4(t.label,t.bbox,v+y/2,r/2),t4(e.label,e.bbox,v+y+f/2,r/2),R+=r}),m(e,F),e.intersect=t=>B.rect(e,t),n}async function t9(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*o,10),e.height=Math.max((e?.height??0)-2*s-2*o,10));let{shapeSvg:h,bbox:d,label:c}=await w(t,e,b(e)),y=(e?.width?e?.width:d.width)+2*n+2*o,u=(e?.height?e?.height:d.height)+2*s+2*o,p=y-2*o,f=u-2*o,x=-p/2,k=-f/2,{cssStyles:M}=e,A=g.A.svg(h),S=(0,r.Fr)(e,{}),v=[{x:x-o,y:k+o},{x:x-o,y:k+f+o},{x:x+p-o,y:k+f+o},{x:x+p-o,y:k+f},{x:x+p,y:k+f},{x:x+p,y:k+f-o},{x:x+p+o,y:k+f-o},{x:x+p+o,y:k-o},{x:x+o,y:k-o},{x:x+o,y:k},{x,y:k},{x,y:k+o}];"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let K=$(v),C=A.path(K,S),L=$([{x,y:k+o},{x:x+p-o,y:k+o},{x:x+p-o,y:k+f},{x:x+p,y:k+f},{x:x+p,y:k},{x,y:k}]),N=A.path(L,S);"handDrawn"!==e.look&&(C=D(C),N=D(N));let F=h.insert("g",":first-child");return F.insert(()=>C),F.insert(()=>N),F.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",M),l&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",l),c.attr("transform",`translate(${-(d.width/2)-o-(d.x-(d.left??0))}, ${-(d.height/2)+o-(d.y-(d.top??0))})`),m(e,F),e.intersect=function(t){return B.polygon(e,v,t)},h}async function et(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o=e.padding??0,h="neo"===e.look?16:o,d="neo"===e.look?12:o,c=!0;(e.width||e.height)&&(c=!1,e.width=(e?.width??0)-2*h,e.height=(e?.height??0)-3*d);let y=Math.max(n.width,e?.width??0)+2*h,u=Math.max(n.height,e?.height??0)+3*d,p="neo"===e.look?u/4:u/8,f=u+(c?p/2:-p/2),x=-y/2,M=-f/2,{cssStyles:D}=e,A=k(x-10,M+f+10,x+y-10,M+f+10,p,.8),S=A?.[A.length-1],v=[{x:x-10,y:M+10},{x:x-10,y:M+f+10},...A,{x:x+y-10,y:S.y-10},{x:x+y,y:S.y-10},{x:x+y,y:S.y-20},{x:x+y+10,y:S.y-20},{x:x+y+10,y:M-10},{x:x+10,y:M-10},{x:x+10,y:M},{x,y:M},{x,y:M+10}],K=[{x,y:M+10},{x:x+y-10,y:M+10},{x:x+y-10,y:S.y-10},{x:x+y,y:S.y-10},{x:x+y,y:M},{x,y:M}],C=g.A.svg(i),L=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");let N=$(v),F=C.path(N,L),R=$(K),P=C.path(R,L),X=i.insert(()=>F,":first-child");return X.insert(()=>P),X.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&X.selectAll("path").attr("style",D),l&&"handDrawn"!==e.look&&X.selectAll("path").attr("style",l),X.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-p-(n.y-(n.top??0))})`),m(e,X),e.intersect=function(t){return B.polygon(e,v,t)},i}async function ee(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l,e.useHtmlLabels||(0,o.E)((0,o.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:s,label:h}=await w(t,e,b(e)),d=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),{cssStyles:y}=e,u=g.A.svg(n),p=(0,r.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=u.rectangle(-d/2,-c/2,d,c,p),x=n.insert(()=>f,":first-child");return x.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),y&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),h.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),m(e,x),e.intersect=function(t){return B.rect(e,t)},n}(0,d.K)(t6,"usecaseJsonTable"),(0,d.K)(t9,"multiRect"),(0,d.K)(et,"multiWaveEdgedRectangle"),(0,d.K)(ee,"note");var ea=(0,d.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function er(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s}=await w(t,e,b(e)),o=s.width+(e.padding??0)+(s.height+(e.padding??0)),h=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],{cssStyles:d}=e;if("handDrawn"===e.look){let t=g.A.svg(n),l=(0,r.Fr)(e,{}),i=ea(0,0,o),s=t.path(i,l);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-o/2+.5}, ${o/2})`),d&&a.attr("style",d)}else(a=E(n,o,o,h)).attr("transform",`translate(${-o/2+.5}, ${o/2})`);return i&&a.attr("style",i),m(e,a),e.calcIntersect=function(t,e){let a=t.width;return B.polygon(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e)},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function el(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?21:i??0,s="neo"===e.look?12:i??0,{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=h.width+("neo"===e.look?2*n:n),y=Math.max(h.height+("neo"===e.look?2*s:s),e.height??0),u=-Math.max(c,(e.width??0)-y/4)/2,p=-y/2,f=p/2,x=[{x:u+f,y:p},{x:u,y:0},{x:u+f,y:-p},{x:-u,y:-p},{x:-u,y:p}],{cssStyles:k}=e,M=g.A.svg(o),D=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let A=$(x),S=M.path(A,D),v=o.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",k),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(${-f/2},0)`),d.attr("transform",`translate(${-f/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),m(e,v),e.intersect=function(t){return B.polygon(e,x,t)},o}async function ei(t,e){let a,l,i,{labelStyles:n,nodeStyles:s}=(0,r.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let d=t.insert("g").attr("class",a).attr("id",e.domId||e.id),y=d.insert("g"),u=d.insert("g").attr("class","label").attr("style",s),p=e.description,f=e.label,w=await R(u,f,e.labelStyle,!0,!0),x={width:0,height:0};if((0,o.E)((0,o.D7)())){let t=w.children[0],e=(0,c.Ltv)(w);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}h.R.info("Text 2",p);let b=p||[],$=w.getBBox(),k=await R(u,Array.isArray(b)?b.join("<br/>"):b,e.labelStyle,!0,!0),M=k.children[0],D=(0,c.Ltv)(k);x=M.getBoundingClientRect(),D.attr("width",x.width),D.attr("height",x.height);let A=(e.padding||0)/2;(0,c.Ltv)(k).attr("transform","translate( "+(x.width>$.width?0:($.width-x.width)/2)+", "+($.height+A+5)+")"),(0,c.Ltv)(w).attr("transform","translate( "+(x.width<$.width?0:-($.width-x.width)/2)+", 0)"),x=u.node().getBBox(),u.attr("transform","translate("+-x.width/2+", "+(-x.height/2-A+3)+")");let S=x.width+(e.padding||0),v=x.height+(e.padding||0),K=-x.width/2-A,C=-x.height/2-A;if("handDrawn"===e.look){let t=g.A.svg(d),a=(0,r.Fr)(e,{}),n=t.path(F(K,C,S,v,e.rx||0),a),s=t.line(-x.width/2-A,-x.height/2-A+$.height+A,x.width/2+A,-x.height/2-A+$.height+A,a);i=d.insert(()=>(h.R.debug("Rough node insert CXC",n),s),":first-child"),l=d.insert(()=>(h.R.debug("Rough node insert CXC",n),n),":first-child")}else l=y.insert("rect",":first-child"),i=y.insert("line"),l.attr("class","outer title-state").attr("style",s).attr("x",-x.width/2-A).attr("y",-x.height/2-A).attr("width",x.width+(e.padding||0)).attr("height",x.height+(e.padding||0)),i.attr("class","divider").attr("x1",-x.width/2-A).attr("x2",x.width/2+A).attr("y1",-x.height/2-A+$.height+A).attr("y2",-x.height/2-A+$.height+A);return m(e,l),e.intersect=function(t){return B.rect(e,t)},d}async function en(t,e,{config:{themeVariables:a}}){let r=a?.radius??5,l={rx:r,ry:r,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tf(t,e,l)}async function es(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0,{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=(e?.width??h.width)+2*i+("neo"===e.look?8:16),y=(e?.height??h.height)+2*n,u=c-8,p=8-c/2,f=-y/2,{cssStyles:x}=e,$=g.A.svg(o),k=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$.polygon([{x:p,y:f},{x:p+u,y:f},{x:p+u,y:f+y},{x:p-8,y:f+y},{x:p-8,y:f},{x:p,y:f},{x:p,y:f+y}].map(t=>[t.x,t.y]),k),D=o.insert(()=>M,":first-child");return D.attr("class","basic label-container outer-path").attr("style",(0,s.KL)(x)),l&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",l),x&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",l),d.attr("transform",`translate(${4-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),m(e,D),e.intersect=function(t){return B.rect(e,t)},o}async function eo(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=(e?.width?e?.width:h.width)+2*n,y=((e?.height?e?.height:h.height)+2*s)*1.5/1.5,u=-c/2,p=-y/2,{cssStyles:f}=e,x=g.A.svg(o),k=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:u,y:p},{x:u,y:p+y},{x:u+c,y:p+y},{x:u+c,y:p-y/2}],D=$(M),A=x.path(D,k),S=o.insert(()=>A,":first-child");return S.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",f),l&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",l),S.attr("transform",`translate(0, ${y/4})`),d.attr("transform",`translate(${-c/2+(e.padding??0)-(h.x-(h.left??0))}, ${-y/4+(e.padding??0)-(h.y-(h.top??0))})`),m(e,S),e.intersect=function(t){return B.polygon(e,M,t)},o}async function eh(t,e){let a=e.padding??0,r="neo"===e.look?16:2*a,l="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??r,labelPaddingY:l},s=await tf(t,e,i);if(void 0!==e.colorIndex){let{theme:t,themeVariables:a}=(0,o.D7)();(0,n.XE)(s,e.colorIndex,t,a.borderColorArray)}return s}(0,d.K)(er,"question"),(0,d.K)(el,"rect_left_inv_arrow"),(0,d.K)(ei,"rectWithTitle"),(0,d.K)(en,"roundedRect"),(0,d.K)(es,"shadedProcess"),(0,d.K)(eo,"slopedRect"),(0,d.K)(eh,"squareRect");var ed=(0,d.K)((t,e,a)=>{let r=t.height+a,l=r*Math.cos(Math.PI/98),i=Math.sqrt(Math.max(0,l**2-t.height**2));return{w:Math.max(t.width+r/4+e,1.5*r+(r-l),t.width+e+r-i),h:r}},"stadiumDimensions");async function ec(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?40:i,s="neo"===e.look?24:i,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),{w:d,h:c}=ed(h,n,s),y=c/2,{cssStyles:u}=e,p=g.A.svg(o),f=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let x=[{x:-d/2+y,y:-c/2},{x:d/2-y,y:-c/2},...M(-d/2+y,0,y,50,90,270),{x:d/2-y,y:c/2},...M(d/2-y,0,y,50,270,450)],k=$(x),D=p.path(k,f),A=o.insert(()=>D,":first-child");return A.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",u),l&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",l),m(e,A),e.intersect=function(t){return B.polygon(e,x,t)},o}async function eg(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tf(t,e,a)}function ey(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{cssStyles:n}=e,{lineColor:s,stateBorder:o,nodeBorder:h,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let c=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),y=g.A.svg(c),u=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let p=y.circle(0,0,e.width,{...u,stroke:s,strokeWidth:2}),f=o??h,w=(e.width??0)*5/14,x=y.circle(0,0,w,{...u,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),b=c.insert(()=>p,":first-child");if(b.insert(()=>x),"handDrawn"!==e.look&&b.attr("class","outer-path"),n&&b.selectAll("path").attr("style",n),i&&b.selectAll("path").attr("style",i),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";b.attr("style",`filter:url(#${a})`)}return m(e,b),e.intersect=function(t){return B.circle(e,(e.width??0)/2,t)},c}function eu(t,e,{config:{themeVariables:a}}){let l,{lineColor:i,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=g.A.svg(s).circle(0,0,e.width,(0,r.ue)(i));(l=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(l=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";l.attr("style",`filter:url(#${a})`)}return m(e,l),e.intersect=function(t){return B.circle(e,(e.width??7)/2,t)},s}async function ep(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e?.padding??8,n="neo"===e.look?28:i,o="neo"===e.look?12:i,{shapeSvg:h,bbox:d}=await w(t,e,b(e)),c=Math.max(d.width+16+n,e.width??0),y=Math.max(d.height+o,e.height??0),u=c-16,p=-c/2,f=-y/2,x=[{x:0,y:0},{x:u,y:0},{x:u,y:-y},{x:0,y:-y},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-y},{x:-8,y:-y},{x:-8,y:0}];if("handDrawn"===e.look){let t=g.A.svg(h),a=(0,r.Fr)(e,{}),l=t.rectangle(p,f,u+16,y,a),i=t.line(p+8,f,p+8,f+y,a),n=t.line(p+8+u,f,p+8+u,f+y,a);h.insert(()=>i,":first-child"),h.insert(()=>n,":first-child");let o=h.insert(()=>l,":first-child"),{cssStyles:d}=e;o.attr("class","basic label-container").attr("style",(0,s.KL)(d)),m(e,o)}else{let t=E(h,u,y,x);l&&t.attr("style",l),m(e,t)}return e.intersect=function(t){return B.polygon(e,x,t)},h}async function ef(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=(e?.height?e?.height:h.height)+2*s,c=.2*d,y=(e?.width?e?.width:h.width)+2*n+c-c,u=-y/2,p=-d/2,{cssStyles:f}=e,x=g.A.svg(o),k=(0,r.Fr)(e,{}),M=[{x:u-c/2,y:p},{x:u+y+c/2,y:p},{x:u+y+c/2,y:p+d},{x:u-c/2,y:p+d}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=$(M),A=x.path(D,k),S=$([{x:u+y-c/2,y:p+d},{x:u+y+c/2,y:p+d},{x:u+y+c/2,y:p+d-.2*d}]),v=x.path(S,{...k,fillStyle:"solid"}),K=o.insert(()=>v,":first-child");return K.insert(()=>A,":first-child"),K.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",f),l&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",l),m(e,K),e.intersect=function(t){return B.polygon(e,M,t)},o}async function ew(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o=Math.max(n.width+(e.padding??0)*2,e?.width??0),h=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=h/8,c=.2*o,y=.2*h,u=h+d,{cssStyles:p}=e,f=g.A.svg(i),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let M=[{x:-o/2-o/2*.1,y:u/2},...k(-o/2-o/2*.1,u/2,o/2+o/2*.1,u/2,d,.8),{x:o/2+o/2*.1,y:-u/2},{x:-o/2-o/2*.1,y:-u/2}],D=-o/2+o/2*.1,A=-u/2-.4*y,S=[{x:D+o-c,y:(A+h)*1.3},{x:D+o,y:A+h-y},{x:D+o,y:(A+h)*.9},...k(D+o,(A+h)*1.25,D+o-c,(A+h)*1.3,-(.02*h),.5)],v=$(M),K=f.path(v,x),C=$(S),L=f.path(C,{...x,fillStyle:"solid"}),N=i.insert(()=>L,":first-child");return N.insert(()=>K,":first-child"),N.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",l),N.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(n.x-(n.left??0))},${-h/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),m(e,N),e.intersect=function(t){return B.polygon(e,M,t)},i}async function ex(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n}=await w(t,e,b(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),o=Math.max(n.height+(e.padding??0),e?.height||0),h=i.insert("rect",":first-child");return h.attr("class","text").attr("style",l).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o),m(e,h),e.intersect=function(t){return B.rect(e,t)},i}(0,d.K)(ec,"stadium"),(0,d.K)(eg,"state"),(0,d.K)(ey,"stateEnd"),(0,d.K)(eu,"stateStart"),(0,d.K)(ep,"subroutine"),(0,d.K)(ef,"taggedRect"),(0,d.K)(ew,"taggedWaveEdgedRectangle"),(0,d.K)(ex,"text");var em=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e}
|
|
3
3
|
a${l},${i} 0,0,1 0,${-r}
|
|
4
4
|
l${a},0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2519],{81559:(t,e,a)=>{a.d(e,{diagram:()=>tq});var r=a(19730),i=a(71633),s=a(40976),n=a(33245),o=a(50755),c=a(25205),l=a(89419),d=a(24212),h=a(1177),p=function(){var t=(0,l.K)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],n=[1,11],o=[1,12],c=[1,14],d=[1,15],h=[1,17],p=[1,18],T=[1,19],E=[1,25],g=[1,26],u=[1,27],_=[1,28],y=[1,29],O=[1,30],x=[1,31],b=[1,32],m=[1,33],I=[1,34],f=[1,35],R=[1,36],L=[1,37],P=[1,38],S=[1,39],N=[1,40],D=[1,42],w=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],Y=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],v=[1,56],B=[1,75],K=[1,81],$=[1,82],V=[1,83],W=[1,84],F=[1,85],q=[1,86],H=[1,87],z=[1,88],j=[1,89],U=[1,90],G=[1,91],X=[1,92],Z=[1,93],J=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[1,106],th=[2,79],tp=[2,78],tT=[4,5,17,51,53,54],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tu=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],t_=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ty=[5,52],tO=[62,70,71,72,73],tx=[62,73],tb=[1,152],tm={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,l.K)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:s[o]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},t(Y,[2,5]),{9:48,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},t(Y,[2,7]),t(Y,[2,8]),t(Y,[2,9]),t(Y,[2,15]),{13:49,51:P,53:S,54:N},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:v,73:C},{23:57,62:v,73:C},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},t(Y,[2,30]),t(Y,[2,31]),{33:[1,63]},{35:[1,64]},t(Y,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:v,73:B},{23:76,55:77,62:v,73:B},{23:78,62:v,73:C},{69:79,72:[1,80],78:K,79:$,80:V,81:W,82:F,83:q,84:H,85:z,86:j,87:U,88:G,89:X,90:Z,91:J,92:Q,93:tt,94:te,95:ta,96:tr,97:ti,98:ts,99:tn,100:to,101:tc,102:tl,103:td},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:v,73:C},t([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],th,{23:112,62:v,73:C}),{23:113,62:v,73:C},{23:114,62:v,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],tp),t(Y,[2,6]),t(Y,[2,16]),t(tT,[2,10],{11:115}),t(Y,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},t(Y,[2,22]),{5:[1,119]},t([5,52,66,104],th),{5:[1,120]},t(Y,[2,25]),t(Y,[2,26]),t(Y,[2,27]),t(Y,[2,28]),t(Y,[2,29]),t(Y,[2,32]),t(Y,[2,33]),t(tE,i,{7:121}),t(tE,i,{7:122}),t(tE,i,{7:123}),t(tg,i,{41:124,7:125}),t(tu,i,{43:126,7:127}),t(tu,i,{7:127,43:128}),t(t_,i,{46:129,7:130}),t(tE,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},t(ty,tp,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:v,70:[1,143],71:[1,144],72:[1,145],73:C},{69:147,78:K,79:$,80:V,81:W,82:F,83:q,84:H,85:z,86:j,87:U,88:G,89:X,90:Z,91:J,92:Q,93:tt,94:te,95:ta,96:tr,97:ti,98:ts,99:tn,100:to,101:tc,102:tl,103:td},t(tO,[2,80]),t(tO,[2,81]),t(tO,[2,82]),t(tO,[2,83]),t(tO,[2,84]),t(tO,[2,85]),t(tO,[2,86]),t(tO,[2,87]),t(tO,[2,88]),t(tO,[2,89]),t(tO,[2,90]),t(tO,[2,91]),t(tO,[2,92]),t(tO,[2,93]),t(tO,[2,94]),t(tO,[2,95]),t(tO,[2,96]),t(tO,[2,97]),t(tO,[2,98]),t(tO,[2,99]),t(tO,[2,100]),t(tO,[2,101]),t(tO,[2,102]),t(tO,[2,103]),t(tO,[2,104]),t(tO,[2,105]),{23:148,62:v,73:C},{23:150,60:149,62:v,73:C},t(tx,[2,68]),t(tx,[2,69]),{58:151,104:tb},{58:153,104:tb},{58:154,104:tb},{58:155,104:tb},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:P,53:S,54:N},{5:[1,161]},t(Y,[2,20]),t(Y,[2,21]),t(Y,[2,23]),t(Y,[2,24]),{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,164],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{17:[1,165]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,50:[1,166],51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{17:[1,167]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,49:[1,168],51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{17:[1,169]},{17:[1,170]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,48:[1,171],51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,172],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{16:[1,173]},t(Y,[2,50]),{16:[1,174]},t(Y,[2,55]),t(ty,[2,76]),{76:[1,175]},{16:[1,176]},t(Y,[2,52]),{16:[1,177]},t(Y,[2,57]),t(Y,[2,53]),{23:178,62:v,73:C},{23:179,62:v,73:C},{23:180,62:v,73:C},{58:181,104:tb},{23:182,62:v,72:[1,183],73:C},{58:184,104:tb},{58:185,104:tb},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(Y,[2,17]),t(tT,[2,11]),{13:187,51:P,53:S,54:N},t(tT,[2,13]),t(tT,[2,14]),t(Y,[2,19]),t(Y,[2,35]),t(Y,[2,36]),t(Y,[2,37]),t(Y,[2,38]),{16:[1,188]},t(Y,[2,39]),{16:[1,189]},t(Y,[2,40]),t(Y,[2,41]),{16:[1,190]},t(Y,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:tb},{58:197,104:tb},{58:198,104:tb},{5:[2,75]},{58:199,104:tb},{23:200,62:v,73:C},{5:[2,58]},{5:[2,59]},{23:201,62:v,73:C},t(tT,[2,12]),t(tg,i,{7:125,41:202}),t(tu,i,{7:127,43:203}),t(t_,i,{7:130,46:204}),t(Y,[2,49]),t(Y,[2,54]),t(ty,[2,77]),t(Y,[2,51]),t(Y,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:tb},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,l.K)(function(t){var e=this,a=[0],r=[],i=[null],s=[],n=this.table,o="",c=0,d=0,h=0,p=s.slice.call(arguments,1),T=Object.create(this.lexer),E={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(E[g]=this.yy[g]);T.setInput(t,E),E.lexer=T,E.parser=this,void 0===T.yylloc&&(T.yylloc={});var u=T.yylloc;s.push(u);var _=T.options&&T.options.ranges;function y(){var t;return"number"!=typeof(t=r.pop()||T.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof E.parseError?this.parseError=E.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,l.K)(y,"lex");for(var O,x,b,m,I,f,R,L,P,S={};;){if(b=a[a.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==O&&(O=y()),m=n[b]&&n[b][O]),void 0===m||!m.length||!m[0]){var N="";for(f in P=[],n[b])this.terminals_[f]&&f>2&&P.push("'"+this.terminals_[f]+"'");N=T.showPosition?"Parse error on line "+(c+1)+":\n"+T.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(N,{text:T.match,token:this.terminals_[O]||O,line:T.yylineno,loc:u,expected:P})}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+O);switch(m[0]){case 1:a.push(O),i.push(T.yytext),s.push(T.yylloc),a.push(m[1]),O=null,x?(O=x,x=null):(d=T.yyleng,o=T.yytext,c=T.yylineno,u=T.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[m[1]][1],S.$=i[i.length-R],S._$={first_line:s[s.length-(R||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(R||1)].first_column,last_column:s[s.length-1].last_column},_&&(S._$.range=[s[s.length-(R||1)].range[0],s[s.length-1].range[1]]),void 0!==(I=this.performAction.apply(S,[o,d,c,E,m[1],i,s].concat(p))))return I;R&&(a=a.slice(0,-1*R*2),i=i.slice(0,-1*R),s=s.slice(0,-1*R)),a.push(this.productions_[m[1]][0]),i.push(S.$),s.push(S._$),L=n[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return!0}}return!0},"parse")};function tI(){this.yy={}}return tm.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:(0,l.K)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),a.length-1&&(this.yylineno-=a.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:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,l.K)(tI,"Parser"),tI.prototype=tm,tm.Parser=tI,new tI}();p.parser=p;var T={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},E={FILLED:0,OPEN:1},g={LEFTOF:0,RIGHTOF:1,OVER:2},u={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},_=class{constructor(){this.state=new r.m(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=o.SV,this.setAccDescription=o.EI,this.setDiagramTitle=o.ke,this.getAccTitle=o.iN,this.getAccDescription=o.m7,this.getDiagramTitle=o.ab,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,o.D7)().wrap),this.LINETYPE=T,this.ARROWTYPE=E,this.PLACEMENT=g}static{(0,l.K)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,e,a,r,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,i.H)(t,{schema:i.r})}r=n?.type??r,n?.alias&&(!a||a.text===e)&&(a={text:n.alias,wrap:a?.wrap,type:r});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&e===c.name&&null==a)return}if(a?.text==null&&(a={text:e,type:r}),(null==r||null==a.text)&&(a={text:e,type:r}),this.state.records.actors.set(t,{box:o,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&a++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&a--;return a}addMessage(t,e,a,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a.text,wrap:a.wrap??this.autoWrap(),answer:r})}addSignal(t,e,a,r,i=!1,s){if(r===this.LINETYPE.ACTIVE_END&&1>this.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,o.D7)().sequence?.wrap??!1}clear(){this.state.reset(),(0,o.IU)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return c.R.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:s}=this.extractWrap(r);return{text:s?(0,o.jZ)(s,(0,o.D7)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)());t=(t=t.replace(/=/g,"=")).replace(/&/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){c.R.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,o.jZ)(e.text,(0,o.D7)()),i=r.indexOf("@"),s=(r=(r=r.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),n=r.slice(i+1).trim();t[s]=n,this.insertLinks(a,t)}catch(t){c.R.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){c.R.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){c.R.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,o.SV)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,o.D7)().sequence}},y=(0,l.K)(t=>{let e=t.dropShadow??"none",{look:a}=(0,o.D7)();return`.actor {
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1999],{44628:(t,e,a)=>{a.d(e,{diagram:()=>tq});var r=a(91757),i=a(2814),s=a(25535),n=a(68180),o=a(94268),c=a(1642),l=a(73084),d=a(39433),h=a(99462),p=function(){var t=(0,l.K)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],n=[1,11],o=[1,12],c=[1,14],d=[1,15],h=[1,17],p=[1,18],T=[1,19],E=[1,25],g=[1,26],u=[1,27],_=[1,28],y=[1,29],O=[1,30],x=[1,31],b=[1,32],m=[1,33],I=[1,34],f=[1,35],R=[1,36],L=[1,37],P=[1,38],S=[1,39],N=[1,40],D=[1,42],w=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],Y=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],v=[1,56],B=[1,75],K=[1,81],$=[1,82],V=[1,83],W=[1,84],F=[1,85],q=[1,86],H=[1,87],z=[1,88],j=[1,89],U=[1,90],G=[1,91],X=[1,92],Z=[1,93],J=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[1,106],th=[2,79],tp=[2,78],tT=[4,5,17,51,53,54],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tu=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],t_=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ty=[5,52],tO=[62,70,71,72,73],tx=[62,73],tb=[1,152],tm={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,l.K)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:s[o]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},t(Y,[2,5]),{9:48,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},t(Y,[2,7]),t(Y,[2,8]),t(Y,[2,9]),t(Y,[2,15]),{13:49,51:P,53:S,54:N},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:v,73:C},{23:57,62:v,73:C},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},t(Y,[2,30]),t(Y,[2,31]),{33:[1,63]},{35:[1,64]},t(Y,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:v,73:B},{23:76,55:77,62:v,73:B},{23:78,62:v,73:C},{69:79,72:[1,80],78:K,79:$,80:V,81:W,82:F,83:q,84:H,85:z,86:j,87:U,88:G,89:X,90:Z,91:J,92:Q,93:tt,94:te,95:ta,96:tr,97:ti,98:ts,99:tn,100:to,101:tc,102:tl,103:td},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:v,73:C},t([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],th,{23:112,62:v,73:C}),{23:113,62:v,73:C},{23:114,62:v,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],tp),t(Y,[2,6]),t(Y,[2,16]),t(tT,[2,10],{11:115}),t(Y,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},t(Y,[2,22]),{5:[1,119]},t([5,52,66,104],th),{5:[1,120]},t(Y,[2,25]),t(Y,[2,26]),t(Y,[2,27]),t(Y,[2,28]),t(Y,[2,29]),t(Y,[2,32]),t(Y,[2,33]),t(tE,i,{7:121}),t(tE,i,{7:122}),t(tE,i,{7:123}),t(tg,i,{41:124,7:125}),t(tu,i,{43:126,7:127}),t(tu,i,{7:127,43:128}),t(t_,i,{46:129,7:130}),t(tE,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},t(ty,tp,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:v,70:[1,143],71:[1,144],72:[1,145],73:C},{69:147,78:K,79:$,80:V,81:W,82:F,83:q,84:H,85:z,86:j,87:U,88:G,89:X,90:Z,91:J,92:Q,93:tt,94:te,95:ta,96:tr,97:ti,98:ts,99:tn,100:to,101:tc,102:tl,103:td},t(tO,[2,80]),t(tO,[2,81]),t(tO,[2,82]),t(tO,[2,83]),t(tO,[2,84]),t(tO,[2,85]),t(tO,[2,86]),t(tO,[2,87]),t(tO,[2,88]),t(tO,[2,89]),t(tO,[2,90]),t(tO,[2,91]),t(tO,[2,92]),t(tO,[2,93]),t(tO,[2,94]),t(tO,[2,95]),t(tO,[2,96]),t(tO,[2,97]),t(tO,[2,98]),t(tO,[2,99]),t(tO,[2,100]),t(tO,[2,101]),t(tO,[2,102]),t(tO,[2,103]),t(tO,[2,104]),t(tO,[2,105]),{23:148,62:v,73:C},{23:150,60:149,62:v,73:C},t(tx,[2,68]),t(tx,[2,69]),{58:151,104:tb},{58:153,104:tb},{58:154,104:tb},{58:155,104:tb},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:P,53:S,54:N},{5:[1,161]},t(Y,[2,20]),t(Y,[2,21]),t(Y,[2,23]),t(Y,[2,24]),{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,164],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{17:[1,165]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,50:[1,166],51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{17:[1,167]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,49:[1,168],51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{17:[1,169]},{17:[1,170]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,48:[1,171],51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,172],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:y,37:O,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:S,54:N,56:D,61:w,62:A,63:k,64:M,73:C},{16:[1,173]},t(Y,[2,50]),{16:[1,174]},t(Y,[2,55]),t(ty,[2,76]),{76:[1,175]},{16:[1,176]},t(Y,[2,52]),{16:[1,177]},t(Y,[2,57]),t(Y,[2,53]),{23:178,62:v,73:C},{23:179,62:v,73:C},{23:180,62:v,73:C},{58:181,104:tb},{23:182,62:v,72:[1,183],73:C},{58:184,104:tb},{58:185,104:tb},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(Y,[2,17]),t(tT,[2,11]),{13:187,51:P,53:S,54:N},t(tT,[2,13]),t(tT,[2,14]),t(Y,[2,19]),t(Y,[2,35]),t(Y,[2,36]),t(Y,[2,37]),t(Y,[2,38]),{16:[1,188]},t(Y,[2,39]),{16:[1,189]},t(Y,[2,40]),t(Y,[2,41]),{16:[1,190]},t(Y,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:tb},{58:197,104:tb},{58:198,104:tb},{5:[2,75]},{58:199,104:tb},{23:200,62:v,73:C},{5:[2,58]},{5:[2,59]},{23:201,62:v,73:C},t(tT,[2,12]),t(tg,i,{7:125,41:202}),t(tu,i,{7:127,43:203}),t(t_,i,{7:130,46:204}),t(Y,[2,49]),t(Y,[2,54]),t(ty,[2,77]),t(Y,[2,51]),t(Y,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:tb},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,l.K)(function(t){var e=this,a=[0],r=[],i=[null],s=[],n=this.table,o="",c=0,d=0,h=0,p=s.slice.call(arguments,1),T=Object.create(this.lexer),E={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(E[g]=this.yy[g]);T.setInput(t,E),E.lexer=T,E.parser=this,void 0===T.yylloc&&(T.yylloc={});var u=T.yylloc;s.push(u);var _=T.options&&T.options.ranges;function y(){var t;return"number"!=typeof(t=r.pop()||T.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof E.parseError?this.parseError=E.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,l.K)(y,"lex");for(var O,x,b,m,I,f,R,L,P,S={};;){if(b=a[a.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==O&&(O=y()),m=n[b]&&n[b][O]),void 0===m||!m.length||!m[0]){var N="";for(f in P=[],n[b])this.terminals_[f]&&f>2&&P.push("'"+this.terminals_[f]+"'");N=T.showPosition?"Parse error on line "+(c+1)+":\n"+T.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(N,{text:T.match,token:this.terminals_[O]||O,line:T.yylineno,loc:u,expected:P})}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+O);switch(m[0]){case 1:a.push(O),i.push(T.yytext),s.push(T.yylloc),a.push(m[1]),O=null,x?(O=x,x=null):(d=T.yyleng,o=T.yytext,c=T.yylineno,u=T.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[m[1]][1],S.$=i[i.length-R],S._$={first_line:s[s.length-(R||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(R||1)].first_column,last_column:s[s.length-1].last_column},_&&(S._$.range=[s[s.length-(R||1)].range[0],s[s.length-1].range[1]]),void 0!==(I=this.performAction.apply(S,[o,d,c,E,m[1],i,s].concat(p))))return I;R&&(a=a.slice(0,-1*R*2),i=i.slice(0,-1*R),s=s.slice(0,-1*R)),a.push(this.productions_[m[1]][0]),i.push(S.$),s.push(S._$),L=n[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return!0}}return!0},"parse")};function tI(){this.yy={}}return tm.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:(0,l.K)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),a.length-1&&(this.yylineno-=a.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:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,l.K)(tI,"Parser"),tI.prototype=tm,tm.Parser=tI,new tI}();p.parser=p;var T={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},E={FILLED:0,OPEN:1},g={LEFTOF:0,RIGHTOF:1,OVER:2},u={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},_=class{constructor(){this.state=new r.m(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=o.SV,this.setAccDescription=o.EI,this.setDiagramTitle=o.ke,this.getAccTitle=o.iN,this.getAccDescription=o.m7,this.getDiagramTitle=o.ab,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,o.D7)().wrap),this.LINETYPE=T,this.ARROWTYPE=E,this.PLACEMENT=g}static{(0,l.K)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,e,a,r,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,i.H)(t,{schema:i.r})}r=n?.type??r,n?.alias&&(!a||a.text===e)&&(a={text:n.alias,wrap:a?.wrap,type:r});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&e===c.name&&null==a)return}if(a?.text==null&&(a={text:e,type:r}),(null==r||null==a.text)&&(a={text:e,type:r}),this.state.records.actors.set(t,{box:o,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&a++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&a--;return a}addMessage(t,e,a,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a.text,wrap:a.wrap??this.autoWrap(),answer:r})}addSignal(t,e,a,r,i=!1,s){if(r===this.LINETYPE.ACTIVE_END&&1>this.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,o.D7)().sequence?.wrap??!1}clear(){this.state.reset(),(0,o.IU)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return c.R.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:s}=this.extractWrap(r);return{text:s?(0,o.jZ)(s,(0,o.D7)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)());t=(t=t.replace(/=/g,"=")).replace(/&/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){c.R.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,o.jZ)(e.text,(0,o.D7)()),i=r.indexOf("@"),s=(r=(r=r.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),n=r.slice(i+1).trim();t[s]=n,this.insertLinks(a,t)}catch(t){c.R.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){c.R.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){c.R.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,o.SV)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,o.D7)().sequence}},y=(0,l.K)(t=>{let e=t.dropShadow??"none",{look:a}=(0,o.D7)();return`.actor {
|
|
2
2
|
stroke: ${t.actorBorder};
|
|
3
3
|
fill: ${t.actorBkg};
|
|
4
4
|
stroke-width: ${t.strokeWidth??1};
|