@stigmer/server-slim 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/console/404.html +1 -0
- package/console/__next.__PAGE__.txt +54 -0
- package/console/__next._full.txt +71 -0
- package/console/__next._index.txt +62 -0
- package/console/__next._tree.txt +6 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_buildManifest.js +11 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_clientMiddlewareManifest.js +1 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_ssgManifest.js +1 -0
- package/console/_next/static/chunks/0376wi8qbsw94.js +1 -0
- package/console/_next/static/chunks/04cglffeuwumk.js +1 -0
- package/console/_next/static/chunks/04d276dp3qb52.js +1 -0
- package/console/_next/static/chunks/05526ws9tzwim.js +1 -0
- package/console/_next/static/chunks/05t5235u7o-c4.js +25 -0
- package/console/_next/static/chunks/06fz-g9t73bd6.js +4 -0
- package/console/_next/static/chunks/0789xt7opwvm-.js +24 -0
- package/console/_next/static/chunks/07twy5plc911w.js +1 -0
- package/console/_next/static/chunks/08-p5zefc1rea.js +1 -0
- package/console/_next/static/chunks/085db4op75mf5.js +1 -0
- package/console/_next/static/chunks/0923388wak11-.js +1 -0
- package/console/_next/static/chunks/0_7s7fzux7kiv.js +1 -0
- package/console/_next/static/chunks/0_bjj6hug8d9a.js +1 -0
- package/console/_next/static/chunks/0_zscrk6o0d0-.js +1 -0
- package/console/_next/static/chunks/0a4x97q7frgj3.js +1 -0
- package/console/_next/static/chunks/0ab5jlm8l0aud.js +1 -0
- package/console/_next/static/chunks/0c_c2b4z1yc02.js +1 -0
- package/console/_next/static/chunks/0cuyycns49hl4.js +1 -0
- package/console/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/console/_next/static/chunks/0d8f3-znyc_to.js +1 -0
- package/console/_next/static/chunks/0e-f1rkyz_u2k.js +1 -0
- package/console/_next/static/chunks/0ffx83gbnwq09.js +28 -0
- package/console/_next/static/chunks/0fyno0jk61txk.js +115 -0
- package/console/_next/static/chunks/0ggwoicp90w_s.js +1 -0
- package/console/_next/static/chunks/0h_7_i44vofe3.js +1 -0
- package/console/_next/static/chunks/0hagmppwo8s-f.js +1 -0
- package/console/_next/static/chunks/0hfvbn6c9k3pf.js +1 -0
- package/console/_next/static/chunks/0hw7vilkfpzlc.js +1 -0
- package/console/_next/static/chunks/0kb63xcvghh_3.js +1 -0
- package/console/_next/static/chunks/0ko5wsi6kukgd.js +1 -0
- package/console/_next/static/chunks/0kq99qin4db-q.js +1 -0
- package/console/_next/static/chunks/0kqg4u5n17gje.js +1 -0
- package/console/_next/static/chunks/0ky9qppyx1n57.js +62 -0
- package/console/_next/static/chunks/0og4_5pph-mhm.js +1 -0
- package/console/_next/static/chunks/0p7p-bpdrqx75.js +1 -0
- package/console/_next/static/chunks/0q2bnr94vvuc2.js +1 -0
- package/console/_next/static/chunks/0q3sxhnylk_gn.js +1 -0
- package/console/_next/static/chunks/0qg6l3tattq3j.js +1 -0
- package/console/_next/static/chunks/0qwyk_70quvjh.js +1 -0
- package/console/_next/static/chunks/0qzyqii8_m5r2.js +1 -0
- package/console/_next/static/chunks/0rlfx91598uvc.js +1 -0
- package/console/_next/static/chunks/0s9njms3lumhx.js +1 -0
- package/console/_next/static/chunks/0srualwd948m1.js +29 -0
- package/console/_next/static/chunks/0u4m2805tgi7x.js +1 -0
- package/console/_next/static/chunks/0udcs-1vq74rp.js +1 -0
- package/console/_next/static/chunks/0vno04lmwdchj.js +1 -0
- package/console/_next/static/chunks/0vt1_fu_q116n.js +1 -0
- package/console/_next/static/chunks/0vuq85gcb9zcl.js +1 -0
- package/console/_next/static/chunks/0wxazby0i4xu3.js +5 -0
- package/console/_next/static/chunks/0yeh2zqwmmec0.js +22 -0
- package/console/_next/static/chunks/0zvl88sijsrqk.js +1 -0
- package/console/_next/static/chunks/110bgpy30m6m6.js +1 -0
- package/console/_next/static/chunks/14ipylvs6qyyw.js +1 -0
- package/console/_next/static/chunks/1745jt9onokna.js +1 -0
- package/console/_next/static/chunks/177rfq0tsoku9.js +4 -0
- package/console/_next/static/chunks/17mfsiiquey1d.js +1 -0
- package/console/_next/static/chunks/197iuvi8udifl.js +1 -0
- package/console/_next/static/chunks/1_2-z0tjk0xio.js +1 -0
- package/console/_next/static/chunks/1_gh5a14dqnji.js +1 -0
- package/console/_next/static/chunks/1ame8n7x9g3xc.js +1 -0
- package/console/_next/static/chunks/1apepr-7dz16b.js +1 -0
- package/console/_next/static/chunks/1dtukwrl8nulc.js +1 -0
- package/console/_next/static/chunks/1e0br64ibniud.js +24 -0
- package/console/_next/static/chunks/1fm-45g777ifx.js +1 -0
- package/console/_next/static/chunks/1g_iha5barqef.js +1 -0
- package/console/_next/static/chunks/1glr_lki18csr.js +2 -0
- package/console/_next/static/chunks/1hl355w6m5bp5.js +1 -0
- package/console/_next/static/chunks/1id3p9v9v5knn.js +1 -0
- package/console/_next/static/chunks/1j6kp4gg0_ylt.js +80 -0
- package/console/_next/static/chunks/1jssq3ch7qgd6.js +60 -0
- package/console/_next/static/chunks/1jzfyfh-3gqlb.js +1 -0
- package/console/_next/static/chunks/1k3d5c49mpp-2.js +1 -0
- package/console/_next/static/chunks/1kte_bxw9m-ie.js +1 -0
- package/console/_next/static/chunks/1lw52jm27gon2.js +1 -0
- package/console/_next/static/chunks/1m9e28v8syzxx.js +34 -0
- package/console/_next/static/chunks/1mrmq_pigo_yb.js +1 -0
- package/console/_next/static/chunks/1muf1a96cgbv5.js +1 -0
- package/console/_next/static/chunks/1n1x0ykt8by6w.js +1 -0
- package/console/_next/static/chunks/1qu0tqybdtj0_.js +1 -0
- package/console/_next/static/chunks/1r8itpdfffwxa.js +1 -0
- package/console/_next/static/chunks/1r_opkrpbuykx.js +1 -0
- package/console/_next/static/chunks/1tl0h3c_bp62t.js +1 -0
- package/console/_next/static/chunks/1v1m1fr8f0yle.js +1 -0
- package/console/_next/static/chunks/1v34vj52v7q0g.js +1 -0
- package/console/_next/static/chunks/1wztfxoxnu5_9.js +1 -0
- package/console/_next/static/chunks/1x7exm5d_hhb8.js +153 -0
- package/console/_next/static/chunks/1xwdphzrhi9cn.js +1 -0
- package/console/_next/static/chunks/1yc4gdqzxa5ie.js +1 -0
- package/console/_next/static/chunks/1zunrzvni97zi.js +1 -0
- package/console/_next/static/chunks/1zv6mtmekep40.js +36 -0
- package/console/_next/static/chunks/2-jaie5wchnsy.js +1 -0
- package/console/_next/static/chunks/20aa5hen470pm.js +1 -0
- package/console/_next/static/chunks/2116ko93nwgx8.js +1 -0
- package/console/_next/static/chunks/23vk0ig36j0he.js +1 -0
- package/console/_next/static/chunks/245vlws7l85dk.js +1 -0
- package/console/_next/static/chunks/24__o4dkdytc8.js +1 -0
- package/console/_next/static/chunks/24iwqo9ejhxl8.js +127 -0
- package/console/_next/static/chunks/24o9ia1be2cze.js +1 -0
- package/console/_next/static/chunks/25aea0bgjydel.css +1 -0
- package/console/_next/static/chunks/26-p2jxr4f20d.js +1 -0
- package/console/_next/static/chunks/28c--yt2jaxxf.js +1 -0
- package/console/_next/static/chunks/28vym848oh1ng.js +1 -0
- package/console/_next/static/chunks/29ou6qb6p1lni.js +1 -0
- package/console/_next/static/chunks/2aalpmeu_tni-.js +3 -0
- package/console/_next/static/chunks/2c4ifddi2dal0.js +20 -0
- package/console/_next/static/chunks/2ckm4edha_gkb.js +43 -0
- package/console/_next/static/chunks/2d5ods6a8n6yd.js +1 -0
- package/console/_next/static/chunks/2dm5g7ylrulvb.js +15 -0
- package/console/_next/static/chunks/2dtosus35_o5k.js +1 -0
- package/console/_next/static/chunks/2e0_cm1_wv-b4.js +1 -0
- package/console/_next/static/chunks/2fh_0n31hibdi.js +226 -0
- package/console/_next/static/chunks/2fjsaw5pgjcqb.js +1 -0
- package/console/_next/static/chunks/2h5pk3yu15nwr.js +1 -0
- package/console/_next/static/chunks/2i7w4yyf77gzw.js +1 -0
- package/console/_next/static/chunks/2jo3q7mfk65kd.js +1 -0
- package/console/_next/static/chunks/2jutbapb-t64n.js +31 -0
- package/console/_next/static/chunks/2k6tx8-w1creu.js +148 -0
- package/console/_next/static/chunks/2kh_m5onqedc5.js +1 -0
- package/console/_next/static/chunks/2ltzdgpjq3v6a.js +1 -0
- package/console/_next/static/chunks/2o2ftjhtb8od3.js +2 -0
- package/console/_next/static/chunks/2pyn841-jq-oo.js +10 -0
- package/console/_next/static/chunks/2rn289343m-y_.js +139 -0
- package/console/_next/static/chunks/2t2l3h2w_04bb.js +1 -0
- package/console/_next/static/chunks/2v11hooq3xd5t.js +15 -0
- package/console/_next/static/chunks/2vsg5t3fnqmfn.js +1 -0
- package/console/_next/static/chunks/2wayafjfoiq7q.css +6 -0
- package/console/_next/static/chunks/2xsvteosdtsb-.js +1 -0
- package/console/_next/static/chunks/2y-x8nhnufxzb.js +1 -0
- package/console/_next/static/chunks/2za4b-si894xj.js +1 -0
- package/console/_next/static/chunks/3-igvp1-n4pxs.js +104 -0
- package/console/_next/static/chunks/3-k25f-adpe5f.js +1 -0
- package/console/_next/static/chunks/3-pzmot7dbrfa.js +1 -0
- package/console/_next/static/chunks/3-x5lrgs3wcpl.js +80 -0
- package/console/_next/static/chunks/30nrkrr9518_z.js +1 -0
- package/console/_next/static/chunks/316lh1-hzgnod.js +1 -0
- package/console/_next/static/chunks/31wj1au8smjge.js +1 -0
- package/console/_next/static/chunks/329o6uup9qmb3.js +1 -0
- package/console/_next/static/chunks/34_1w929-5o6r.js +287 -0
- package/console/_next/static/chunks/35szx1ga574xu.js +1 -0
- package/console/_next/static/chunks/36tg522pkl8hm.js +1 -0
- package/console/_next/static/chunks/37-y9fgnir35a.js +1 -0
- package/console/_next/static/chunks/39wss1g0ffaqt.js +1 -0
- package/console/_next/static/chunks/3_cv0gj1bm3l6.js +1 -0
- package/console/_next/static/chunks/3_f8gd_6816re.js +101 -0
- package/console/_next/static/chunks/3a4qfuhsxefh2.js +12 -0
- package/console/_next/static/chunks/3asb3ztrvogwl.js +1 -0
- package/console/_next/static/chunks/3bsxbw10qhvqo.js +1 -0
- package/console/_next/static/chunks/3by94g38ljxl1.js +1 -0
- package/console/_next/static/chunks/3c_6owv8m4rta.js +90 -0
- package/console/_next/static/chunks/3ea2eo8b5gmju.js +2 -0
- package/console/_next/static/chunks/3ercnb2rksl_a.js +1 -0
- package/console/_next/static/chunks/3esxfmmm0ypxb.js +2 -0
- package/console/_next/static/chunks/3exiw74xbmika.js +1 -0
- package/console/_next/static/chunks/3f88-tc5u2heg.js +1 -0
- package/console/_next/static/chunks/3f_axahrombdp.js +1 -0
- package/console/_next/static/chunks/3gz91kn_v2lfa.js +1 -0
- package/console/_next/static/chunks/3i9z3x7tka5x2.js +1 -0
- package/console/_next/static/chunks/3ih4kfufd47st.js +1 -0
- package/console/_next/static/chunks/3itfi41ayfopd.js +15 -0
- package/console/_next/static/chunks/3iwgig-fgcscf.js +15 -0
- package/console/_next/static/chunks/3jf8qh1ev3gb4.js +2 -0
- package/console/_next/static/chunks/3l6svfyqdsq6o.js +1 -0
- package/console/_next/static/chunks/3lj0i-qlb4ah2.js +64 -0
- package/console/_next/static/chunks/3lmx6tkunfd3u.js +1 -0
- package/console/_next/static/chunks/3lp4d64he__am.js +152 -0
- package/console/_next/static/chunks/3m_jz3b2j38nn.js +1 -0
- package/console/_next/static/chunks/3oe9w1b39nzmn.js +3 -0
- package/console/_next/static/chunks/3on7r_d8o-kna.js +1 -0
- package/console/_next/static/chunks/3pbpowf3kdu5z.js +119 -0
- package/console/_next/static/chunks/3pwwv0u29nk8c.js +23 -0
- package/console/_next/static/chunks/3rweyye6o1z6b.js +79 -0
- package/console/_next/static/chunks/3sdqgrmvxm_u4.js +201 -0
- package/console/_next/static/chunks/3t3vbs-x5hixj.js +1 -0
- package/console/_next/static/chunks/3thqnz0a5zy-h.js +9 -0
- package/console/_next/static/chunks/3udubdawo7583.js +1 -0
- package/console/_next/static/chunks/3uz4lg6e199sb.js +1 -0
- package/console/_next/static/chunks/3v2mkz_46uei2.js +1 -0
- package/console/_next/static/chunks/3w5crjmhb-3um.js +1 -0
- package/console/_next/static/chunks/3waxhrmr_82j5.js +93 -0
- package/console/_next/static/chunks/3zmlzef_jxopu.js +1 -0
- package/console/_next/static/chunks/3zqvalj8nr-1y.js +1 -0
- package/console/_next/static/chunks/40igag4gq4k0a.js +77 -0
- package/console/_next/static/chunks/40wq034qcdji_.js +1 -0
- package/console/_next/static/chunks/44crhetqymq_e.js +34 -0
- package/console/_next/static/chunks/44q2pv6a3w19q.js +1 -0
- package/console/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- package/console/_next/static/media/GeistMono_Variable-s.p.21mfa-4xv0w3g.woff2 +0 -0
- package/console/_next/static/media/Geist_Variable-s.p.217kyf1h_p0cg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Medium-s.2v25u5rd2tsaf.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Regular-s.09u63wo58kris.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Bold-s.3iicodgz0epim.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Light-s.3ntejfdcyftfg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Medium-s.3n25cgfiu6qss.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Regular-s.2e_-c_m03txvi.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_SemiBold-s.2sutjpuns2xc5.woff2 +0 -0
- package/console/_next/static/media/Inter_Variable-s.2-lfiv6s83kzn.woff2 +0 -0
- package/console/_next/static/media/Nunito_Variable-s.3r4_r9s3kxd_-.woff2 +0 -0
- package/console/_not-found/__next._full.txt +73 -0
- package/console/_not-found/__next._index.txt +62 -0
- package/console/_not-found/__next._not-found.__PAGE__.txt +61 -0
- package/console/_not-found/__next._tree.txt +5 -0
- package/console/_not-found.html +1 -0
- package/console/_not-found.txt +73 -0
- package/console/apple-touch-icon-dark.png +0 -0
- package/console/apple-touch-icon-light.png +0 -0
- package/console/auth/callback/__next._full.txt +82 -0
- package/console/auth/callback/__next._index.txt +62 -0
- package/console/auth/callback/__next._tree.txt +8 -0
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +67 -0
- package/console/auth/callback.html +1 -0
- package/console/auth/callback.txt +82 -0
- package/console/auth/oauth/callback/__next._full.txt +84 -0
- package/console/auth/oauth/callback/__next._index.txt +62 -0
- package/console/auth/oauth/callback/__next._tree.txt +9 -0
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +69 -0
- package/console/auth/oauth/callback.html +1 -0
- package/console/auth/oauth/callback.txt +84 -0
- package/console/brand-avatar.png +0 -0
- package/console/chat/__placeholder__/__next._full.txt +80 -0
- package/console/chat/__placeholder__/__next._index.txt +62 -0
- package/console/chat/__placeholder__/__next._tree.txt +8 -0
- package/console/chat/__placeholder__/__next.chat.$d$channel.__PAGE__.txt +65 -0
- package/console/chat/__placeholder__.html +1 -0
- package/console/chat/__placeholder__.txt +80 -0
- package/console/connect/__placeholder__/__next._full.txt +79 -0
- package/console/connect/__placeholder__/__next._index.txt +62 -0
- package/console/connect/__placeholder__/__next._tree.txt +8 -0
- package/console/connect/__placeholder__/__next.connect.$d$token.__PAGE__.txt +64 -0
- package/console/connect/__placeholder__.html +1 -0
- package/console/connect/__placeholder__.txt +79 -0
- package/console/conversations/__next._full.txt +79 -0
- package/console/conversations/__next._index.txt +62 -0
- package/console/conversations/__next._tree.txt +7 -0
- package/console/conversations/__next.conversations.__PAGE__.txt +64 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +83 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +9 -0
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +68 -0
- package/console/conversations/__placeholder__/__placeholder__.html +1 -0
- package/console/conversations/__placeholder__/__placeholder__.txt +83 -0
- package/console/conversations.html +1 -0
- package/console/conversations.txt +79 -0
- package/console/dashboard/__next._full.txt +77 -0
- package/console/dashboard/__next._index.txt +62 -0
- package/console/dashboard/__next._tree.txt +7 -0
- package/console/dashboard/__next.dashboard.__PAGE__.txt +62 -0
- package/console/dashboard.html +1 -0
- package/console/dashboard.txt +77 -0
- package/console/desktop/billing/__next._full.txt +82 -0
- package/console/desktop/billing/__next._index.txt +62 -0
- package/console/desktop/billing/__next._tree.txt +8 -0
- package/console/desktop/billing/__next.desktop.billing.__PAGE__.txt +67 -0
- package/console/desktop/billing.html +1 -0
- package/console/desktop/billing.txt +82 -0
- package/console/embed.js +1 -0
- package/console/favicon-dark-16x16.png +0 -0
- package/console/favicon-dark-32x32.png +0 -0
- package/console/favicon-dark.ico +0 -0
- package/console/favicon-dark.svg +1 -0
- package/console/favicon-light-16x16.png +0 -0
- package/console/favicon-light-32x32.png +0 -0
- package/console/favicon-light.ico +0 -0
- package/console/favicon-light.svg +1 -0
- package/console/index.html +1 -0
- package/console/index.txt +71 -0
- package/console/invite/__placeholder__/__next._full.txt +80 -0
- package/console/invite/__placeholder__/__next._index.txt +62 -0
- package/console/invite/__placeholder__/__next._tree.txt +8 -0
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +65 -0
- package/console/invite/__placeholder__.html +1 -0
- package/console/invite/__placeholder__.txt +80 -0
- package/console/library/__next._full.txt +89 -0
- package/console/library/__next._index.txt +62 -0
- package/console/library/__next._tree.txt +7 -0
- package/console/library/__next.library.__PAGE__.txt +74 -0
- package/console/library/agents/__next._full.txt +94 -0
- package/console/library/agents/__next._index.txt +62 -0
- package/console/library/agents/__next._tree.txt +8 -0
- package/console/library/agents/__next.library.agents.__PAGE__.txt +79 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
- package/console/library/agents/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/agents/new/__next._full.txt +99 -0
- package/console/library/agents/new/__next._index.txt +62 -0
- package/console/library/agents/new/__next._tree.txt +9 -0
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +84 -0
- package/console/library/agents/new.html +1 -0
- package/console/library/agents/new.txt +99 -0
- package/console/library/agents.html +1 -0
- package/console/library/agents.txt +94 -0
- package/console/library/environments/__next._full.txt +95 -0
- package/console/library/environments/__next._index.txt +62 -0
- package/console/library/environments/__next._tree.txt +8 -0
- package/console/library/environments/__next.library.environments.__PAGE__.txt +80 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next.library.environments.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/environments/__placeholder__/__placeholder__.html +1 -0
- package/console/library/environments/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/environments/new/__next._full.txt +99 -0
- package/console/library/environments/new/__next._index.txt +62 -0
- package/console/library/environments/new/__next._tree.txt +9 -0
- package/console/library/environments/new/__next.library.environments.new.__PAGE__.txt +84 -0
- package/console/library/environments/new.html +1 -0
- package/console/library/environments/new.txt +99 -0
- package/console/library/environments.html +1 -0
- package/console/library/environments.txt +95 -0
- package/console/library/files/__next._full.txt +94 -0
- package/console/library/files/__next._index.txt +62 -0
- package/console/library/files/__next._tree.txt +8 -0
- package/console/library/files/__next.library.files.__PAGE__.txt +79 -0
- package/console/library/files.html +1 -0
- package/console/library/files.txt +94 -0
- package/console/library/plugins/__next._full.txt +94 -0
- package/console/library/plugins/__next._index.txt +62 -0
- package/console/library/plugins/__next._tree.txt +8 -0
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +79 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -0
- package/console/library/plugins/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/plugins/upload/__next._full.txt +99 -0
- package/console/library/plugins/upload/__next._index.txt +62 -0
- package/console/library/plugins/upload/__next._tree.txt +9 -0
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +84 -0
- package/console/library/plugins/upload.html +1 -0
- package/console/library/plugins/upload.txt +99 -0
- package/console/library/plugins.html +1 -0
- package/console/library/plugins.txt +94 -0
- package/console/library/routines/__next._full.txt +94 -0
- package/console/library/routines/__next._index.txt +62 -0
- package/console/library/routines/__next._tree.txt +8 -0
- package/console/library/routines/__next.library.routines.__PAGE__.txt +79 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next.library.routines.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/routines/__placeholder__/__placeholder__.html +1 -0
- package/console/library/routines/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/routines/new/__next._full.txt +98 -0
- package/console/library/routines/new/__next._index.txt +62 -0
- package/console/library/routines/new/__next._tree.txt +9 -0
- package/console/library/routines/new/__next.library.routines.new.__PAGE__.txt +83 -0
- package/console/library/routines/new.html +1 -0
- package/console/library/routines/new.txt +98 -0
- package/console/library/routines.html +1 -0
- package/console/library/routines.txt +94 -0
- package/console/library/skills/__next._full.txt +94 -0
- package/console/library/skills/__next._index.txt +62 -0
- package/console/library/skills/__next._tree.txt +8 -0
- package/console/library/skills/__next.library.skills.__PAGE__.txt +79 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
- package/console/library/skills/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/skills/new/__next._full.txt +98 -0
- package/console/library/skills/new/__next._index.txt +62 -0
- package/console/library/skills/new/__next._tree.txt +9 -0
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +83 -0
- package/console/library/skills/new.html +1 -0
- package/console/library/skills/new.txt +98 -0
- package/console/library/skills.html +1 -0
- package/console/library/skills.txt +94 -0
- package/console/library.html +1 -0
- package/console/library.txt +89 -0
- package/console/login/__next._full.txt +81 -0
- package/console/login/__next._index.txt +62 -0
- package/console/login/__next._tree.txt +7 -0
- package/console/login/__next.login.__PAGE__.txt +66 -0
- package/console/login.html +1 -0
- package/console/login.txt +81 -0
- package/console/marketplace/__next._full.txt +81 -0
- package/console/marketplace/__next._index.txt +62 -0
- package/console/marketplace/__next._tree.txt +7 -0
- package/console/marketplace/__next.marketplace.__PAGE__.txt +66 -0
- package/console/marketplace.html +1 -0
- package/console/marketplace.txt +81 -0
- package/console/models/__next._full.txt +77 -0
- package/console/models/__next._index.txt +62 -0
- package/console/models/__next._tree.txt +7 -0
- package/console/models/__next.models.__PAGE__.txt +62 -0
- package/console/models.html +1 -0
- package/console/models.txt +77 -0
- package/console/oauth/slack/callback/__next._full.txt +84 -0
- package/console/oauth/slack/callback/__next._index.txt +62 -0
- package/console/oauth/slack/callback/__next._tree.txt +9 -0
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +69 -0
- package/console/oauth/slack/callback.html +1 -0
- package/console/oauth/slack/callback.txt +84 -0
- package/console/runs/__placeholder__/__next._full.txt +77 -0
- package/console/runs/__placeholder__/__next._index.txt +62 -0
- package/console/runs/__placeholder__/__next._tree.txt +8 -0
- package/console/runs/__placeholder__/__next.runs.$d$id.__PAGE__.txt +62 -0
- package/console/runs/__placeholder__.html +1 -0
- package/console/runs/__placeholder__.txt +77 -0
- package/console/sessions/__placeholder__/__next._full.txt +77 -0
- package/console/sessions/__placeholder__/__next._index.txt +62 -0
- package/console/sessions/__placeholder__/__next._tree.txt +8 -0
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +62 -0
- package/console/sessions/__placeholder__.html +1 -0
- package/console/sessions/__placeholder__.txt +77 -0
- package/console/settings/__next._full.txt +85 -0
- package/console/settings/__next._index.txt +62 -0
- package/console/settings/__next._tree.txt +7 -0
- package/console/settings/__next.settings.__PAGE__.txt +70 -0
- package/console/settings/access-history/__next._full.txt +87 -0
- package/console/settings/access-history/__next._index.txt +62 -0
- package/console/settings/access-history/__next._tree.txt +8 -0
- package/console/settings/access-history/__next.settings.access-history.__PAGE__.txt +72 -0
- package/console/settings/access-history.html +1 -0
- package/console/settings/access-history.txt +87 -0
- package/console/settings/account-preferences/__next._full.txt +87 -0
- package/console/settings/account-preferences/__next._index.txt +62 -0
- package/console/settings/account-preferences/__next._tree.txt +8 -0
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +72 -0
- package/console/settings/account-preferences.html +1 -0
- package/console/settings/account-preferences.txt +87 -0
- package/console/settings/api-keys/__next._full.txt +86 -0
- package/console/settings/api-keys/__next._index.txt +62 -0
- package/console/settings/api-keys/__next._tree.txt +8 -0
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +71 -0
- package/console/settings/api-keys.html +1 -0
- package/console/settings/api-keys.txt +86 -0
- package/console/settings/billing/__next._full.txt +89 -0
- package/console/settings/billing/__next._index.txt +62 -0
- package/console/settings/billing/__next._tree.txt +8 -0
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +74 -0
- package/console/settings/billing.html +1 -0
- package/console/settings/billing.txt +89 -0
- package/console/settings/channel-apps/__next._full.txt +87 -0
- package/console/settings/channel-apps/__next._index.txt +62 -0
- package/console/settings/channel-apps/__next._tree.txt +8 -0
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +72 -0
- package/console/settings/channel-apps.html +1 -0
- package/console/settings/channel-apps.txt +87 -0
- package/console/settings/federation-issuers/__next._full.txt +88 -0
- package/console/settings/federation-issuers/__next._index.txt +62 -0
- package/console/settings/federation-issuers/__next._tree.txt +8 -0
- package/console/settings/federation-issuers/__next.settings.federation-issuers.__PAGE__.txt +73 -0
- package/console/settings/federation-issuers.html +1 -0
- package/console/settings/federation-issuers.txt +88 -0
- package/console/settings/invitations/__next._full.txt +87 -0
- package/console/settings/invitations/__next._index.txt +62 -0
- package/console/settings/invitations/__next._tree.txt +8 -0
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +72 -0
- package/console/settings/invitations.html +1 -0
- package/console/settings/invitations.txt +87 -0
- package/console/settings/licenses/__next._full.txt +90 -0
- package/console/settings/licenses/__next._index.txt +62 -0
- package/console/settings/licenses/__next._tree.txt +8 -0
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +75 -0
- package/console/settings/licenses.html +1 -0
- package/console/settings/licenses.txt +90 -0
- package/console/settings/members/__next._full.txt +86 -0
- package/console/settings/members/__next._index.txt +62 -0
- package/console/settings/members/__next._tree.txt +8 -0
- package/console/settings/members/__next.settings.members.__PAGE__.txt +71 -0
- package/console/settings/members.html +1 -0
- package/console/settings/members.txt +86 -0
- package/console/settings/memory/__next._full.txt +86 -0
- package/console/settings/memory/__next._index.txt +62 -0
- package/console/settings/memory/__next._tree.txt +8 -0
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +71 -0
- package/console/settings/memory.html +1 -0
- package/console/settings/memory.txt +86 -0
- package/console/settings/model-catalog/__next._full.txt +89 -0
- package/console/settings/model-catalog/__next._index.txt +62 -0
- package/console/settings/model-catalog/__next._tree.txt +8 -0
- package/console/settings/model-catalog/__next.settings.model-catalog.__PAGE__.txt +74 -0
- package/console/settings/model-catalog.html +1 -0
- package/console/settings/model-catalog.txt +89 -0
- package/console/settings/notifications/__next._full.txt +89 -0
- package/console/settings/notifications/__next._index.txt +62 -0
- package/console/settings/notifications/__next._tree.txt +8 -0
- package/console/settings/notifications/__next.settings.notifications.__PAGE__.txt +74 -0
- package/console/settings/notifications.html +1 -0
- package/console/settings/notifications.txt +89 -0
- package/console/settings/oauth-apps/__next._full.txt +87 -0
- package/console/settings/oauth-apps/__next._index.txt +62 -0
- package/console/settings/oauth-apps/__next._tree.txt +8 -0
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +72 -0
- package/console/settings/oauth-apps.html +1 -0
- package/console/settings/oauth-apps.txt +87 -0
- package/console/settings/org-embedding/__next._full.txt +87 -0
- package/console/settings/org-embedding/__next._index.txt +62 -0
- package/console/settings/org-embedding/__next._tree.txt +8 -0
- package/console/settings/org-embedding/__next.settings.org-embedding.__PAGE__.txt +72 -0
- package/console/settings/org-embedding.html +1 -0
- package/console/settings/org-embedding.txt +87 -0
- package/console/settings/org-policies/__next._full.txt +87 -0
- package/console/settings/org-policies/__next._index.txt +62 -0
- package/console/settings/org-policies/__next._tree.txt +8 -0
- package/console/settings/org-policies/__next.settings.org-policies.__PAGE__.txt +72 -0
- package/console/settings/org-policies.html +1 -0
- package/console/settings/org-policies.txt +87 -0
- package/console/settings/org-preferences/__next._full.txt +87 -0
- package/console/settings/org-preferences/__next._index.txt +62 -0
- package/console/settings/org-preferences/__next._tree.txt +8 -0
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +72 -0
- package/console/settings/org-preferences.html +1 -0
- package/console/settings/org-preferences.txt +87 -0
- package/console/settings/org-profile/__next._full.txt +89 -0
- package/console/settings/org-profile/__next._index.txt +62 -0
- package/console/settings/org-profile/__next._tree.txt +8 -0
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +74 -0
- package/console/settings/org-profile.html +1 -0
- package/console/settings/org-profile.txt +89 -0
- package/console/settings/plans/__next._full.txt +89 -0
- package/console/settings/plans/__next._index.txt +62 -0
- package/console/settings/plans/__next._tree.txt +8 -0
- package/console/settings/plans/__next.settings.plans.__PAGE__.txt +74 -0
- package/console/settings/plans.html +1 -0
- package/console/settings/plans.txt +89 -0
- package/console/settings/service-accounts/__next._full.txt +87 -0
- package/console/settings/service-accounts/__next._index.txt +62 -0
- package/console/settings/service-accounts/__next._tree.txt +8 -0
- package/console/settings/service-accounts/__next.settings.service-accounts.__PAGE__.txt +72 -0
- package/console/settings/service-accounts.html +1 -0
- package/console/settings/service-accounts.txt +87 -0
- package/console/settings/teams/__next._full.txt +86 -0
- package/console/settings/teams/__next._index.txt +62 -0
- package/console/settings/teams/__next._tree.txt +8 -0
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +71 -0
- package/console/settings/teams.html +1 -0
- package/console/settings/teams.txt +86 -0
- package/console/settings/usage/__next._full.txt +86 -0
- package/console/settings/usage/__next._index.txt +62 -0
- package/console/settings/usage/__next._tree.txt +8 -0
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +71 -0
- package/console/settings/usage.html +1 -0
- package/console/settings/usage.txt +86 -0
- package/console/settings/vaults/__next._full.txt +86 -0
- package/console/settings/vaults/__next._index.txt +62 -0
- package/console/settings/vaults/__next._tree.txt +8 -0
- package/console/settings/vaults/__next.settings.vaults.__PAGE__.txt +71 -0
- package/console/settings/vaults.html +1 -0
- package/console/settings/vaults.txt +86 -0
- package/console/settings.html +1 -0
- package/console/settings.txt +85 -0
- package/main.js +1656 -0
- package/mappings.wasm +0 -0
- package/package.json +25 -0
- package/workflow-bundle-agent-execution.js +29297 -0
- package/workflow-bundle-evals.js +11997 -0
- package/workflow-bundle-grading.js +11155 -0
- package/workflow-bundle-routine.js +11300 -0
- package/workflow-worker-thread.cjs +111 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,443857,e=>{"use strict";var t=e.i(974265),s=e.i(537097),n=e.i(651023),r=e.i(610595),a=e.i(971854),i=e.i(193251),l=e.i(365785),d=e.i(297629),o=e.i(255817),c=e.i(616701),g=e.i(781836);function u(e){if(e?.returnUrl!==void 0)return e.returnUrl;let t=window.location.origin;return`${t}/settings/billing`}async function m(e,t){t?.openUrl!==void 0?await t.openUrl(e):window.location.href=e}var h=e.i(893976),f=e.i(960511);let x={visa:"Visa",mastercard:"Mastercard",amex:"American Express",discover:"Discover",diners:"Diners Club",jcb:"JCB",unionpay:"UnionPay"};function p({paymentMethod:e,accountStatus:s,isPortalLoading:n,onManage:r,onAdd:a,isAdding:i,className:l}){var d,o,c;let g,u,m=s===f.G.billing_account_active,v=null!=e&&""!==e.paymentMethodId;return(0,t.jsxs)("div",{className:(0,h.f)("stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4 stg:py-4",l),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Payment Method"}),v&&(0,t.jsx)("button",{type:"button",disabled:!m||n,onClick:r,className:(0,h.f)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:text-muted-foreground stg:hover:bg-accent stg:hover:text-foreground","stg:disabled:pointer-events-none stg:disabled:opacity-50"),"aria-busy":n,children:n?"Opening…":"Manage"})]}),v?(0,t.jsxs)("div",{className:"stg:mt-2 stg:flex stg:items-center stg:gap-3",children:[(0,t.jsx)(b,{brand:e.brand}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:[x[(d=e.brand).toLowerCase()]??d," ····"," ",e.last4]}),(0,t.jsxs)("div",{className:"stg:text-xs stg:text-muted-foreground",children:["Expires"," ",(o=e.expMonth,c=e.expYear,g=String(o).padStart(2,"0"),u=String(c).slice(-2),`${g}/${u}`)]})]})]}):(0,t.jsxs)("div",{className:"stg:mt-2",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"No payment method on file. A saved card is needed to subscribe to a plan; each period's invoice is charged to it."}),a&&(0,t.jsx)("button",{type:"button",disabled:!m||i,onClick:a,className:(0,h.f)("stg:mt-2 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:text-primary stg:hover:bg-accent","stg:disabled:pointer-events-none stg:disabled:opacity-50"),"aria-busy":i,children:i?"Opening…":"Add payment method"})]})]})}function b({brand:e}){return(0,t.jsx)("div",{className:"stg:flex stg:size-9 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-background",children:(0,t.jsx)("span",{className:"stg:text-2xs stg:font-bold stg:uppercase stg:text-muted-foreground",children:e.slice(0,4)})})}var v=e.i(17616),j=e.i(910304),w=e.i(170255),y=e.i(803874),N=e.i(65642),k=e.i(468806),S=e.i(335264);let C="PAYMENT_METHOD_REQUIRED";function M({move:e,planName:s,losing:a=[],hasPaymentMethod:i,awaitingPaymentMethod:l,isSubmitting:d,error:o,onConfirm:c,onAddPaymentMethod:g,onClose:u}){let m=(0,n.useId)(),h=null!==e&&"cancel"!==e.kind&&(!i||(0,r.k)(o)?.reason===C);return(0,t.jsx)(k.f,{open:null!==e,onOpenChange:e=>{e||u()},width:"md","aria-labelledby":m,children:e&&(0,t.jsxs)("div",{className:"stg:space-y-3 stg:p-5",children:[(0,t.jsx)("h2",{id:m,className:"stg:text-sm stg:font-semibold stg:text-foreground",children:function(e){switch(e.kind){case"subscribe":return`Subscribe to ${e.to.metadata?.name??"this plan"}`;case"switch":return`Switch to ${e.to.metadata?.name??"this plan"}`;case"resume":return`Keep ${e.to.metadata?.name??"this plan"}`;case"cancel":return"Move to Free";default:return String(e)}}(e)}),(0,t.jsx)("div",{className:"stg:space-y-2 stg:text-xs stg:text-muted-foreground",children:function(e,s,n){switch(e.kind){case"subscribe":var r;let a,i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:[e.to.metadata?.name," starts now. Each monthly period is billed when it ends:"," ",(r=e.to,a=r.spec?.terms,i=[(0,S.k)(a),(0,S.m)(r.spec?.entitlements,a),a?.perAgentHourMicros===void 0?"":(0,S.I)(r.spec?.entitlements,a)],`${i.filter(e=>""!==e).join("; ")}.`)]}),(0,t.jsx)("p",{children:"Nothing is charged today."})]});case"switch":let l;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:["The switch takes effect now. This period closes early and is billed for the time it ran on"," ",s(e.fromPlanId),"; a new monthly period opens on ",e.to.metadata?.name," at"," ",(0,S.k)(e.to.spec?.terms),"."]}),n.length>0&&(0,t.jsxs)("p",{children:[e.to.metadata?.name," does not include ",(l=n.map(e=>e.label)).length<=1?l[0]??"":`${l.slice(0,-1).join(", ")} and ${l[l.length-1]}`,". ","Everything you built keeps working; only creating more is refused."]})]});case"resume":return(0,t.jsxs)("p",{children:["The cancellation is withdrawn, and ",e.to.metadata?.name," runs on into its next period."]});case"cancel":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:[s(e.fromPlanId)," stays in force until ",(0,S._)(e.endsAt),", then this organization is on Free. The period is billed as usual when it closes."]}),(0,t.jsx)("p",{children:"Nothing you built is deleted. Creating what Free does not include is refused until you subscribe again."})]});default:return String(e)}}(e,s,a)}),h&&(0,t.jsx)("p",{className:"stg:rounded-md stg:bg-muted-subtle stg:px-3 stg:py-2 stg:text-xs stg:text-foreground",role:"status",children:l?"Your card is being saved. This takes a few seconds; the choice is kept.":"A saved card is needed first: every period is collected from it. You come back here after saving it."}),o&&(0,r.k)(o)?.reason!==C&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",role:"alert",children:(0,r.g)(o)}),(0,t.jsxs)("div",{className:"stg:flex stg:justify-end stg:gap-2 stg:pt-1",children:[(0,t.jsx)(N.f,{variant:"ghost",size:"sm",onClick:u,disabled:d,children:"Not now"}),h?(0,t.jsx)(N.f,{size:"sm",onClick:g,disabled:d||l,children:"Add a payment method"}):(0,t.jsx)(N.f,{variant:"cancel"===e.kind?"destructive":"primary",size:"sm",onClick:c,disabled:d,children:function(e){switch(e.kind){case"subscribe":return"Subscribe";case"switch":return"Switch now";case"resume":return"Keep plan";case"cancel":return"Cancel plan";default:return String(e)}}(e)})]})]})})}var $=e.i(662502),P=e.i(476007),A=e.i(266442),I=e.i(982247);function T({hours:e,className:s}){var n,r,a,i,l,d;let o=e.window===$.l.calendar_month?"this month":"this period",c=(0,S.u)(e.workingSeconds),g=e.includedHours,u=void 0===g?void 0:BigInt(3600*g),m=void 0!==u&&e.workingSeconds>=u,f=(0,S.c)(e.windowEnd),x=e.perAgentHourMicros;return(0,t.jsxs)("div",{className:(0,h.f)("stg:mt-4 stg:border-t stg:border-border stg:pt-3",s),children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Agent hours"}),(0,t.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:tabular-nums stg:text-foreground",children:void 0===g?`${c} used ${o}`:`${c} of ${g} h used ${o}`}),void 0!==u&&(0,t.jsx)("div",{role:"meter","aria-label":"Agent hours used","aria-valuemin":0,"aria-valuemax":Number(u),"aria-valuenow":Math.min(Number(e.workingSeconds),Number(u)),"aria-valuetext":`${c} of ${g} h`,className:"stg:mt-2 stg:h-1.5 stg:w-full stg:overflow-hidden stg:rounded-full stg:bg-muted",children:(0,t.jsx)("div",{className:(0,h.f)("stg:h-full stg:rounded-full",m?"stg:bg-destructive":"stg:bg-chart-2"),style:{width:`${(n=e.workingSeconds,(r=u)<=BigInt(0)||n>=r?100:Math.floor(Number(n)/Number(r)*100))}%`}})}),(0,t.jsx)("p",{className:(0,h.f)("stg:mt-2 stg:text-xs",m&&void 0===x?"stg:text-destructive":"stg:text-muted-foreground"),children:(a=m,i=g,l=x,d=f,void 0===i?`The count resets ${d} (UTC).`:void 0===l?a?`The allowance is used: new work is paused until the count resets ${d} (UTC).`:`Resets ${d} (UTC). New work pauses at the allowance.`:a?`Past the allowance: each hour is ${(0,I.i)(l)} on this period's invoice. Resets ${d} (UTC).`:`Resets ${d} (UTC). Then ${(0,I.i)(l)} an hour, on this period's invoice.`)}),(0,t.jsx)("p",{className:"stg:mt-2 stg:text-xs stg:text-muted-foreground",children:"Counted while agents work in Stigmer's sandboxes, for this organization and its child organizations; automatic grading is never counted. The Usage page shows working time by agent."})]})}function z({planName:e,standing:s,estimate:n,estimateError:r,agentHours:a,agentHoursError:i,onRetryEstimate:l,onRetryAgentHours:d,billedToParent:o,className:c}){let g=void 0!==o;return(0,t.jsxs)("div",{className:(0,h.f)("stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4 stg:py-4",c),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Plan"}),!g&&(0,t.jsx)(E,{standing:s})]}),(0,t.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:font-medium stg:text-foreground",children:g?`Billed to ${""===o?"its parent organization":o}`:e}),g?(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:"This is a child organization: it runs on its parent organization's plan, and has no plan or invoice of its own."}):(0,t.jsx)(U,{standing:s}),!g&&a&&(0,t.jsx)(T,{hours:a}),!g&&!a&&i&&(0,t.jsx)(P.f,{error:i,title:"Agent hours could not be read",retry:d,className:"stg:mt-3"}),!g&&n&&(0,t.jsx)(F,{planName:e,estimate:n}),!g&&!n&&r&&(0,t.jsx)(P.f,{error:r,title:"This period's estimate could not be read",retry:l,className:"stg:mt-3"})]})}function E({standing:e}){switch(e.kind){case"active":return(0,t.jsx)(A.f,{phase:"ready",label:"Active"});case"past-due":return(0,t.jsx)(A.f,{phase:"failed",label:"Payment failed"});case"ending":return(0,t.jsx)(A.f,{phase:"degraded",label:`Ends ${(0,S._)(e.endsAt)}`});case"free":return(0,t.jsx)(A.f,{phase:"disabled",label:"Free"});default:return e}}function U({standing:e}){switch(e.kind){case"free":return(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:"Chat links, Slack and WhatsApp, and unlimited members."});case"past-due":return(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-destructive",role:"status",children:"The last period's payment failed. Stripe retries it; update the card under Payment Method. The plan stays in force meanwhile."});case"ending":return(0,t.jsxs)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:["Canceled. The plan stays in force until ",(0,S._)(e.endsAt),", then this organization is on Free. Nothing you built is deleted."]});case"active":return null;default:return e}}function F({planName:e,estimate:s}){return(0,t.jsxs)("div",{className:"stg:mt-4 stg:border-t stg:border-border stg:pt-3",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-baseline stg:justify-between stg:gap-3",children:[(0,t.jsxs)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:["Estimated invoice on ",(0,S.c)(s.periodEnd)]}),(0,t.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["Period ",(0,S.c)(s.periodStart)," – ",(0,S.c)(s.periodEnd)]})]}),(0,t.jsxs)("dl",{className:"stg:mt-2 stg:space-y-1",children:[s.lines.map(n=>(0,t.jsxs)("div",{className:"stg:flex stg:justify-between stg:gap-3 stg:text-xs",children:[(0,t.jsx)("dt",{className:"stg:text-muted-foreground",children:function(e,t,s){switch(e.kind){case $.P.plan:return`${t} plan`;case $.P.child_orgs:return`Child organizations beyond those included (${s.childOrgCount} this period)`;case $.P.agent_hours:return`Agent hours beyond those included (${(0,S.u)(s.workingSeconds)} worked this period)`;case $.P.period_estimate_line_kind_unspecified:return"Other";default:return String(e.kind)}}(n,e,s)}),(0,t.jsx)("dd",{className:"stg:tabular-nums stg:text-foreground",children:(0,I.w)(n.amountMicros)})]},n.kind)),(0,t.jsxs)("div",{className:"stg:flex stg:justify-between stg:gap-3 stg:border-t stg:border-border stg:pt-1 stg:text-xs stg:font-medium",children:[(0,t.jsx)("dt",{className:"stg:text-foreground",children:"Total so far"}),(0,t.jsx)("dd",{className:"stg:tabular-nums stg:text-foreground",children:(0,I.w)(s.totalMicros)})]})]}),(0,t.jsx)("p",{className:"stg:mt-2 stg:text-xs stg:text-muted-foreground",children:"The plan's fee for the whole period, with the child organizations and the agent hours past those included counted so far. Model usage runs on your organization's own provider keys and is not on the invoice."})]})}var L=e.i(869803),B=e.i(628217),_=e.i(117723);function O(e,t,s){if("free"===t)return"active"===e.kind||"past-due"===e.kind?void 0===s?null:{kind:"cancel",fromPlanId:e.planId,endsAt:s}:null;let n=t.metadata?.id??"";switch(e.kind){case"free":return{kind:"subscribe",to:t};case"ending":return n===e.planId?{kind:"resume",to:t}:{kind:"switch",fromPlanId:e.planId,to:t};case"active":case"past-due":return n===e.planId?null:{kind:"switch",fromPlanId:e.planId,to:t};default:throw Error(`unknown plan standing ${JSON.stringify(e)}`)}}function R({plans:e,standing:s,periodEnd:n,canManage:r,onChoose:a,disabled:i,enterpriseHref:l="https://stigmer.ai/contact-sales",className:d}){let o=O(s,"free",n);return(0,t.jsxs)("ul",{className:(0,h.f)(L.J,"stg:grid stg:gap-3 stg:sm:grid-cols-2",d),"aria-label":"Plans",children:[(0,t.jsx)(H,{name:S.Z.name,price:(0,S.k)(void 0),features:[...(0,S.J)(S.Z.entitlements).map(e=>e.label),...S.Z.extras,...(0,S.e)(S.Z.entitlements,void 0)],current:"free"===s.kind,action:r&&null!==o?{label:"Move to Free",move:o}:void 0,disabled:i,onChoose:a}),e.map(e=>{let l=O(s,e,n);return(0,t.jsx)(H,{name:e.metadata?.name??"",price:(0,S.k)(e.spec?.terms),features:[...(0,S.J)(e.spec?.entitlements).map(e=>e.label),...(0,S.e)(e.spec?.entitlements,e.spec?.terms)],current:null===l&&"free"!==s.kind,action:r&&null!==l?{label:function(e){switch(e.kind){case"subscribe":return"Subscribe";case"switch":return`Switch to ${e.to.metadata?.name??"this plan"}`;case"resume":return`Keep ${e.to.metadata?.name??"this plan"}`;case"cancel":return"Move to Free";default:return String(e)}}(l),move:l}:void 0,disabled:i,onChoose:a},e.metadata?.id??e.metadata?.slug)}),(0,t.jsxs)("li",{className:"stg:flex stg:flex-col stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-baseline stg:justify-between stg:gap-2",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:S.V.name}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-foreground",children:"Quoted"})]}),(0,t.jsx)("ul",{className:(0,h.f)(L.J,"stg:mt-2 stg:space-y-0.5 stg:text-xs stg:text-muted-foreground"),children:[S.V.includes,...S.V.features.map(e=>B.o[e].label),S.V.terms].map(e=>(0,t.jsx)("li",{children:e},e))}),(0,t.jsx)("a",{href:l,target:"_blank",rel:"noreferrer",className:"stg:mt-3 stg:self-start stg:text-xs stg:font-medium stg:text-primary stg:hover:underline",children:"Talk to us"})]})]})}function H({name:e,price:s,features:n,current:r,action:a,disabled:i,onChoose:l}){return(0,t.jsxs)("li",{className:(0,h.f)("stg:flex stg:flex-col stg:rounded-lg stg:border stg:bg-card stg:p-4",r?"stg:border-primary":"stg:border-border"),"aria-current":r?"true":void 0,children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-baseline stg:justify-between stg:gap-2",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e}),(0,t.jsx)("p",{className:"stg:text-xs stg:tabular-nums stg:text-foreground",children:s})]}),(0,t.jsx)("ul",{className:(0,h.f)(L.J,"stg:mt-2 stg:space-y-0.5 stg:text-xs stg:text-muted-foreground"),children:n.map(e=>(0,t.jsx)("li",{children:e},e))}),(0,t.jsx)("div",{className:"stg:mt-auto stg:pt-3",children:r?(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-primary",children:"Current plan"}):a?(0,t.jsx)(N.f,{variant:"cancel"===a.move.kind?"outline":"primary",size:"xs",disabled:i,onClick:()=>l(a.move),children:a.label}):null})]})}var D=e.i(891287);function W(e){let t=(0,o.f)(),s=e?.openUrl,r=e?.returnUrl,[a,i]=(0,n.useState)(!1),[l,d]=(0,n.useState)(null),c=(0,n.useCallback)(async(e,n)=>{i(!0),d(null);try{let a=u({returnUrl:r}),i=new URLSearchParams({setup:"success"});void 0!==n&&""!==n&&i.set("plan",n);let l=await t.billing.createPaymentMethodSetupSession({org:e,successUrl:`${a}?${i.toString()}`,cancelUrl:a});l.setupUrl&&await m(l.setupUrl,{openUrl:s})}catch(t){let e=(0,g.f)(t);throw d(e),e}finally{i(!1)}},[t.billing,s,r]),h=(0,n.useCallback)(()=>d(null),[]);return(0,n.useMemo)(()=>({addPaymentMethod:c,isSubmitting:a,error:l,clearError:h}),[c,a,l,h])}var V=e.i(722764),J=e.i(734433);function Y({org:e,billedToParent:s,hasPaymentMethod:r,onRefreshAccount:i,redirect:l,resumePlanId:d,onResumeHandled:u,now:m,className:f}){let x=(0,a._)(w.X.subscription),p=m??new Date,b=(0,V.f)({includeRetired:!0,enabled:x}),N=function(e){let t=(0,o.f)(),{data:s,isLoading:r,isRefetching:a,error:i,refetch:l}=(0,c.f)(e?()=>t.subscription.getForOrg((0,D.f)($.y,{org:e})).catch(e=>{if((0,j.c)(e))return null;throw e}):null,[e,t],null,{refetchOnWindowFocus:!0});return(0,n.useMemo)(()=>({subscription:s,isLoading:r,isRefetching:a,error:i,refetch:l}),[s,r,a,i,l])}(x?e:null),k=function(e,t){let s=e?.status,n=e?.spec?.planId??"";switch(s?.state){case _.d.active:return{kind:"active",planId:n};case _.d.past_due:return{kind:"past-due",planId:n};case _.d.canceled:{let e=void 0===s.currentPeriodEnd?void 0:(0,v.S)(s.currentPeriodEnd);return void 0!==e&&t.getTime()<e.getTime()?{kind:"ending",planId:n,endsAt:e}:{kind:"free"}}default:return{kind:"free"}}}(N.subscription,p),C="free"===k.kind?"":k.planId,A=void 0!==s,I=function(e,t){let s=(0,o.f)(),r=(t?.enabled??!0)&&null!==e&&""!==e,{data:a,isLoading:i,error:l,refetch:d}=(0,c.f)(r&&e?()=>s.subscription.getPeriodEstimate((0,D.f)($.F,{org:e})):null,[r,e,s],null,{refetchOnWindowFocus:!0});return(0,n.useMemo)(()=>({estimate:a,isLoading:i,error:l,refetch:d}),[a,i,l,d])}(e,{enabled:x&&!A&&""!==C}),T=function(e,t){let s=(0,o.f)(),r=(t?.enabled??!0)&&null!==e&&""!==e,{data:a,isLoading:i,error:l,refetch:d}=(0,c.f)(r&&e?()=>s.subscription.getAgentHours((0,D.f)($.x,{org:e})):null,[r,e,s],null,{refetchOnWindowFocus:!0});return(0,n.useMemo)(()=>({hours:a,isLoading:i,error:l,refetch:d}),[a,i,l,d])}(e,{enabled:x&&!A}),E=null!==T.error&&(0,j.Q)(T.error)?null:T.error,U=(0,y.f)(x&&e?{kind:"organization",id:e}:null,"can_manage_billing"),F=!A&&!U.isLoading&&U.allowed,L=function(){let e=(0,o.f)(),[t,s]=(0,n.useState)(!1),[r,a]=(0,n.useState)(null),i=(0,n.useCallback)(async(t,n)=>{s(!0),a(null);try{return await e.subscription.changePlan((0,D.f)($.T,{org:t,planId:n}))}catch(t){let e=(0,g.f)(t);throw a(e),e}finally{s(!1)}},[e.subscription]),l=(0,n.useCallback)(()=>a(null),[]);return(0,n.useMemo)(()=>({changePlan:i,isSubmitting:t,error:r,clearError:l}),[i,t,r,l])}(),B=function(){let e=(0,o.f)(),[t,s]=(0,n.useState)(!1),[r,a]=(0,n.useState)(null),i=(0,n.useCallback)(async t=>{s(!0),a(null);try{return await e.subscription.cancel((0,D.f)($.A,{org:t}))}catch(t){let e=(0,g.f)(t);throw a(e),e}finally{s(!1)}},[e.subscription]),l=(0,n.useCallback)(()=>a(null),[]);return(0,n.useMemo)(()=>({cancel:i,isSubmitting:t,error:r,clearError:l}),[i,t,r,l])}(),H=W(l),[q,Z]=(0,n.useState)(null),[K,Q]=(0,n.useState)(!1),X=(0,n.useMemo)(()=>(0,S.v)(b.plans??[]),[b.plans]),G=(0,n.useCallback)(e=>b.plans?.find(t=>t.metadata?.id===e),[b.plans]),ee=(0,n.useCallback)(e=>G(e)?.metadata?.name??"your plan",[G]),et=N.subscription?.status?.currentPeriodEnd,es=void 0===et?void 0:(0,v.S)(et),en=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(void 0===d||""===d){en.current=null;return}if(en.current===d||null===b.plans||N.isLoading)return;en.current=d;let e=X.find(e=>e.metadata?.id===d),t=void 0===e?null:O(k,e,es);null!==t&&(Z(t),Q(!r)),u?.()},[d,b.plans,N.isLoading,X,k,es,r,u]),(0,n.useEffect)(()=>{if(!K)return;if(r)return void Q(!1);let e=Date.now(),t=setInterval(()=>{if(Date.now()-e>3e4){Q(!1),clearInterval(t);return}i?.()},2e3);return()=>clearInterval(t)},[K,r,i]);let er=(0,n.useCallback)(()=>{Z(null),Q(!1),L.clearError(),B.clearError(),H.clearError()},[L.clearError,B.clearError,H.clearError]),ea=(0,n.useCallback)(()=>{N.refetch(),I.refetch(),T.refetch()},[N.refetch,I.refetch,T.refetch]),ei=(0,n.useCallback)(()=>{null===q||("cancel"===q.kind?B.cancel(e):L.changePlan(e,q.to.metadata?.id??"")).then(()=>{Z(null),ea()},()=>void 0)},[q,e,B.cancel,L.changePlan,ea]),el=(0,n.useCallback)(()=>{let t=null!==q&&"cancel"!==q.kind?q.to.metadata?.id:void 0;H.addPaymentMethod(e,t).catch(()=>void 0)},[q,e,H.addPaymentMethod]);if(!x)return null;if(N.isLoading||b.isLoading)return(0,t.jsx)(J.SettingsSkeleton,{variant:"figures",label:"Loading plan",className:f});let ed=N.error??b.error;if(ed)return(0,t.jsx)(P.f,{error:ed,title:"The plan could not be read",retry:()=>{N.refetch(),b.refetch()},className:f});let eo=""===C?"Free":ee(C),ec=q?.kind==="cancel"?B.error:L.error??H.error,eg=q?.kind==="switch"?(0,S.t)(G(q.fromPlanId),q.to):[];return(0,t.jsxs)("section",{className:(0,h.f)("stg:space-y-3",f),"aria-label":"Plan",children:[(0,t.jsx)(z,{planName:eo,standing:k,estimate:I.estimate,estimateError:I.error,agentHours:T.hours,agentHoursError:E,onRetryEstimate:I.refetch,onRetryAgentHours:T.refetch,billedToParent:s}),!A&&(0,t.jsx)(R,{plans:X,standing:k,periodEnd:es,canManage:F,onChoose:Z,disabled:L.isSubmitting||B.isSubmitting}),(0,t.jsx)(M,{move:q,planName:ee,losing:eg,hasPaymentMethod:r,awaitingPaymentMethod:K,isSubmitting:L.isSubmitting||B.isSubmitting||H.isSubmitting,error:ec,onConfirm:ei,onAddPaymentMethod:el,onClose:er})]})}function q({resumePlanId:e,onResumeHandled:s,redirect:n,className:r}){let{activeOrg:o,orgs:c}=(0,d.S)(),g=(0,a.T)(),u=o?.metadata?.id??"",m=o?.spec?.parentOrg??"",h=""===m?void 0:(c??[]).find(e=>e.metadata?.id===m)?.metadata?.name??"";return(0,t.jsx)(l.f,{title:"Billing",description:"Your plan, what this period will cost, and the card it is charged to.",unavailable:"local"===g&&"Plans and invoices come with Stigmer Cloud. On this edition your agents run on your own model provider keys, billed by the provider.",className:r,children:u?(0,t.jsx)(Z,{org:u,billedToParent:h,resumePlanId:e,onResumeHandled:s,redirect:n}):(0,t.jsx)(i.j,{what:"its billing"})})}function Z({org:e,billedToParent:s,resumePlanId:a,onResumeHandled:i,redirect:l}){let{account:d,isLoading:h,error:f,refetch:x}=function(e,t){let s=(0,o.f)(),{data:n,isLoading:r,isRefetching:a,error:i,refetch:l}=(0,c.f)(e?()=>s.billing.getOrCreateBillingAccount(e):null,[e,s],null,{refetchOnWindowFocus:t?.refetchOnWindowFocus??!1});return{account:n,isLoading:r,isRefetching:a,error:i,refetch:l}}(e,{refetchOnWindowFocus:l?.openUrl!==void 0}),{openPortal:b,isLoading:v}=function(e){let t=(0,o.f)(),s=e?.openUrl,r=e?.returnUrl,[a,i]=(0,n.useState)(!1),[l,d]=(0,n.useState)(null),c=(0,n.useCallback)(()=>d(null),[]);return{openPortal:(0,n.useCallback)(async e=>{i(!0),d(null);try{let n=void 0!==r?u({returnUrl:r}):window.location.href,a=await t.billing.createBillingPortalSession({org:e,returnUrl:n});a.portalUrl&&await m(a.portalUrl,{openUrl:s})}catch(e){throw d((0,g.f)(e)),e}finally{i(!1)}},[t,s,r]),isLoading:a,error:l,clearError:c}}(l),j=W(l);if(h)return(0,t.jsx)(J.SettingsSkeleton,{variant:"figures",label:"Loading billing"});if(f)return(0,t.jsx)(P.f,{error:f,title:"The billing account could not be read",retry:x});if(!d)return null;let w=null!=d.defaultPaymentMethod&&""!==d.defaultPaymentMethod.paymentMethodId;return(0,t.jsxs)("div",{className:"stg:space-y-6",children:[(0,t.jsx)(Y,{org:e,billedToParent:s,hasPaymentMethod:w,onRefreshAccount:x,redirect:l,resumePlanId:a,onResumeHandled:i}),(0,t.jsx)(p,{paymentMethod:d.defaultPaymentMethod,accountStatus:d.status,isPortalLoading:v,onManage:()=>b(e),onAdd:()=>{j.addPaymentMethod(e).catch(()=>void 0)},isAdding:j.isSubmitting}),j.error&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,r.g)(j.error)})]})}e.s(["default",0,function(){let e=(0,s.useSearchParams)(),r=(0,n.useMemo)(()=>"success"===e.get("setup")?e.get("plan")??void 0:void 0,[e]),a=(0,n.useCallback)(()=>{let e=new URL(window.location.href);window.history.replaceState({},"",e.pathname)},[]);return(0,t.jsx)(q,{resumePlanId:r,onResumeHandled:a})}],443857)},335264,982247,722764,e=>{"use strict";var t=e.i(891287),s=e.i(17616),n=e.i(191470),r=e.i(931664),a=e.i(937111),i=e.i(628217);let l=BigInt(1e6),d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),o=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});function c(e){let t=e??BigInt(0),s=Number(t)/Number(l);return`$${t%l===BigInt(0)?d.format(s):o.format(s)}`}e.s(["i",0,c,"w",0,function(e){if(void 0===e)return"$0.00";let t=Number(e)/1e4;return`$${(t/100).toFixed(2)}`}],982247);let g=BigInt(0),u=new Set;function m(e){return[...new Set(e?.features??[])].filter(e=>(0,i.e)(e)&&!u.has(e)).sort((e,t)=>e-t).map(e=>({feature:e,...i.o[e]}))}function h(e){return e.filter(e=>e.spec?.instrument===n.c.subscription&&e.status?.lifecycle===r.N.active).map((e,t)=>({plan:e,index:t})).sort((e,t)=>{var s,n;let r,a;return s=e.plan,n=t.plan,r=s.spec?.terms?.monthlyMinimumMicros??g,(r===(a=n.spec?.terms?.monthlyMinimumMicros??g)?0:r<a?-1:1)||e.index-t.index}).map(({plan:e})=>e)}let f={name:"Enterprise Cloud",includes:"Everything in Business",features:[a.x.access_history],terms:"Annual contract, invoiced"},x={name:"Free",entitlements:(0,t.f)(a.i,{features:[a.x.channels,a.x.chat_links],limits:{includedAgentHours:30,maxActiveSessionSandboxes:5}}),extras:["Unlimited members"]},p=new Intl.NumberFormat("en-US");function b(e,t){if(!(e?.features??[]).includes(a.x.child_orgs))return"";let s=e?.limits?.includedChildOrgs,n=t?.perExtraOrgMicros??g;if(void 0===s)return"Unlimited child organizations";let r=n>g?`, then ${c(n)}/month each`:"";return`${p.format(s)} child organization${1===s?"":"s"} included${r}`}function v(e,t){let s=e?.limits?.includedAgentHours;if(void 0===s)return"";let n=`${p.format(s)} agent hour${1===s?"":"s"} a month`,r=t?.perAgentHourMicros;return void 0===r?`${n}, then new work pauses`:`${n}, then ${c(r)} an hour`}let j=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function w(e){return j.format(e)}e.s(["V",0,f,"Z",0,x,"v",0,h,"t",0,function(e,t){let s=new Set(m(t.spec?.entitlements).map(e=>e.feature));return m(e?.spec?.entitlements).filter(e=>!s.has(e.feature))},"u",0,function(e){let t=(e+BigInt(180))/BigInt(360);return`${t/BigInt(10)}.${t%BigInt(10)} h`},"I",0,v,"m",0,b,"_",0,w,"k",0,function(e){return`${c(e?.monthlyMinimumMicros??g)}/month`},"c",0,function(e){return void 0===e?"":w((0,s.S)(e))},"J",0,m,"e",0,function(e,t){var s;let n;return[b(e,t),v(e,t),(s=e,void 0===(n=s?.limits?.maxActiveSessionSandboxes)?"":`${p.format(n)} agent${1===n?"":"s"} at once`)].filter(e=>""!==e)},"n",0,function(e,t){let s=h(e).find(e=>m(e.spec?.entitlements).some(e=>e.feature===t))?.metadata?.name;return void 0!==s&&""!==s?s:f.features.some(e=>e===t)?f.name:""}],335264);var y=e.i(651023),N=e.i(434517),k=e.i(255817),S=e.i(766330),C=e.i(205413),M=e.i(616701);e.s(["f",0,function(e){let s=(0,k.f)(),n=e?.enabled??!0,r=e?.includeRetired??!1,{data:a,isLoading:i,isRefetching:l,error:d,refetch:o}=(0,M.f)(n?()=>(0,C.T)(e=>s.plan.list((0,t.f)(N.v,{includeRetired:r,pageSize:S.J,pageToken:e}))):null,[n,r,s],null);return(0,y.useMemo)(()=>({plans:a,isLoading:i,isRefetching:l,error:d,refetch:o}),[a,i,l,d,o])}],722764)},311015,e=>{"use strict";var t=e.i(974265),s=e.i(893976),n=e.i(65642),r=e.i(651023),a=e.i(475254);let i=(0,a.f)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),l=(0,a.f)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),d=(0,a.f)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var o=e.i(63209);let c="stg:h-10 stg:w-10";e.s(["f",0,function({variant:e,resourceLabel:a,icon:g,title:u,description:m,errorMessage:h,action:f,children:x,className:p}){let b=function(e){let{variant:t,resourceLabel:s="resources",title:n,description:a,errorMessage:g}=e;return(0,r.useMemo)(()=>{let e=function(e,t){switch(e){case"first-use":return{title:`No ${t} yet`,description:`Create ${"agents"===t?"an agent":`a ${t.replace(/s$/,"")}`} to get started.`};case"zero-results":return{title:"No results found",description:"Try adjusting your search or filters."};case"permission":return{title:`No access to ${t}`,description:"You don't have permission to view these resources. Contact your organization admin."};case"error":return{title:"Something went wrong",description:"We couldn't load this content. Please try again."}}}(t,s);return{title:n??e.title,description:"error"===t&&g?g:a??e.description,defaultIcon:function(e){switch(e){case"first-use":return(0,r.createElement)(i,{className:c});case"zero-results":return(0,r.createElement)(l,{className:c});case"permission":return(0,r.createElement)(d,{className:c});case"error":return(0,r.createElement)(o.f,{className:c})}}(t),role:"error"===t?"alert":"status"}},[t,s,n,a,g])}({variant:e,resourceLabel:a,title:u,description:m,errorMessage:h});return(0,t.jsxs)("div",{role:b.role,className:(0,s.f)("stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-12 stg:text-center",p),children:[(0,t.jsx)("div",{className:"stg:text-muted-foreground-faint",children:g??b.defaultIcon}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("p",{className:"stg:m-0 stg:text-sm stg:font-medium stg:text-muted-foreground",children:b.title}),(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-sm stg:text-xs stg:text-muted-foreground",children:b.description})]}),x?(0,t.jsx)("div",{className:"stg:mt-1",children:x}):f&&(0,t.jsx)(n.f,{variant:"error"===e?"outline":"primary",icon:f.icon,onClick:f.onClick,className:"stg:mt-1",children:f.label})]})}],311015)},476007,e=>{"use strict";var t=e.i(974265),s=e.i(651023),n=e.i(610595),r=e.i(893976);let a={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function i({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,t.jsx)("path",{d:"M8 6v3"}),(0,t.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function l({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,t.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function d({className:e}){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6l4 4 4-4"})})}function o({className:e}){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 6.5h4v-4"}),(0,t.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}e.s(["f",0,function({error:e,title:c,retry:g,className:u}){let[m,h]=(0,s.useState)(!1);if(!e)return null;let f=(0,n.V)(e),x=(0,n.g)(e),p=(0,n.X)(e),b=(0,n.f)(e);return(0,t.jsx)("div",{role:"alert",className:(0,r.f)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,t.jsx)(l,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,t.jsx)(i,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??a[f]}),(0,t.jsx)("p",{className:"stg:m-0 stg:text-destructive stg:text-sm",children:x}),p&&(0,t.jsxs)("div",{className:"stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),className:"stg:text-destructive stg:hover:underline stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(d,{className:(0,r.f)("stg:size-3 stg:transition-transform",m&&"stg:rotate-180")}),"Technical details"]}),m&&(0,t.jsxs)("dl",{className:"stg:text-destructive stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),g&&b&&(0,t.jsxs)("button",{type:"button",onClick:g,className:(0,r.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,t.jsx)(o,{className:"stg:size-3"}),"Retry"]})]})})}])},630983,e=>{"use strict";var t=e.i(974265),s=e.i(893976);function n({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),(0,t.jsx)("path",{d:"M8 7v4"}),(0,t.jsx)("circle",{cx:"8",cy:"5",r:"0.5",fill:"currentColor",stroke:"none"})]})}e.s(["f",0,function({children:e,className:r}){return(0,t.jsxs)("div",{role:"status",className:(0,s.f)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",r),children:[(0,t.jsx)(n,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},66724,e=>{"use strict";var t=e.i(974265),s=e.i(893976);e.s(["f",0,function({title:e,description:n,actions:r,headingLevel:a=1,headingId:i,className:l}){return(0,t.jsxs)("header",{className:(0,s.f)("stg:flex stg:flex-col stg:gap-1",l),children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-h-8 stg:flex-wrap stg:items-center stg:justify-between stg:gap-x-6 stg:gap-y-2",children:[(0,t.jsx)(1===a?"h1":"h2",{id:i,className:"stg:m-0 stg:text-xl stg:font-semibold stg:tracking-tight stg:text-foreground",children:e}),null!=r&&!1!==r&&(0,t.jsx)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:r})]}),null!=n&&(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-2xl stg:text-sm stg:text-muted-foreground",children:n})]})}])},266442,e=>{"use strict";var t=e.i(974265),s=e.i(893976),n=e.i(188482);let r={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};e.s(["f",0,function({phase:e,label:a,tooltip:i,className:l}){let d=a??r[e],o=(0,t.jsxs)("span",{className:(0,s.f)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-2xs stg:font-medium stg:leading-none",function(e){switch(e){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(e),l),children:[(0,t.jsx)("span",{className:(0,s.f)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(e){switch(e){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(e)),"aria-hidden":"true"}),d]});return i?(0,t.jsxs)(n.W,{children:[(0,t.jsx)(n.y,{render:(0,t.jsx)("span",{className:"stg:inline-flex"}),children:o}),(0,t.jsx)(n.Y,{side:"top",children:i})]}):o}])},193251,e=>{"use strict";var t=e.i(974265),s=e.i(311015);e.s(["H",0,"Ask one of them if this organization needs one.","j",0,function({what:e}){return(0,t.jsx)(s.f,{variant:"first-use",title:"No organization selected",description:`Choose an organization to see ${e}.`,className:"stg:rounded-lg stg:border stg:border-dashed stg:border-border"})}])},365785,e=>{"use strict";var t=e.i(974265),s=e.i(651023),n=e.i(893976),r=e.i(311015),a=e.i(630983),i=e.i(66724);e.s(["f",0,function({title:e,description:l,actions:d,unavailable:o,denied:c=!1,children:g,className:u}){let m=(0,s.useId)(),h=!0===c?{title:`Only an admin can open ${e}`,description:"Ask an owner or an admin of this organization."}:c||null,f=!!o||null!==h;return(0,t.jsxs)("section",{"aria-labelledby":m,className:(0,n.f)("stg:flex stg:flex-col stg:gap-6",u),children:[(0,t.jsx)(i.f,{title:e,description:l,actions:f?void 0:d,headingLevel:2,headingId:m}),o?(0,t.jsx)(a.f,{children:o}):null!==h?(0,t.jsx)(r.f,{variant:"permission",title:h.title,description:h.description,className:"stg:rounded-lg stg:border stg:border-border"}):g]})}])},734433,e=>{"use strict";var t=e.i(974265),s=e.i(893976),n=e.i(996675);e.s(["SettingsSkeleton",0,function({label:e="Loading",variant:r="rows",rows:a,className:i}){return"figures"===r?(0,t.jsxs)(n.f,{label:e,className:(0,s.f)("stg:flex stg:flex-col stg:gap-4",i),children:[(0,t.jsx)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-3","aria-hidden":"true",children:Array.from({length:a??3},(e,s)=>(0,t.jsxs)("span",{className:"stg:flex stg:h-20 stg:flex-col stg:justify-center stg:gap-2 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4",children:[(0,t.jsx)("span",{className:"stg:h-2.5 stg:w-20 stg:animate-pulse stg:rounded stg:bg-muted-subtle"}),(0,t.jsx)("span",{className:"stg:h-5 stg:w-24 stg:animate-pulse stg:rounded stg:bg-muted"})]},s))}),(0,t.jsx)("span",{className:"stg:block stg:h-40 stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-card","aria-hidden":"true"})]}):(0,t.jsx)(n.f,{label:e,className:(0,s.f)("stg:overflow-hidden stg:rounded-lg stg:border stg:border-border stg:bg-card",i),children:(0,t.jsx)("ul",{className:"stg:m-0 stg:list-none stg:divide-y stg:divide-border stg:p-0","aria-hidden":"true",children:Array.from({length:a??4},(e,s)=>(0,t.jsxs)("li",{className:"stg:flex stg:items-center stg:gap-3 stg:px-4 stg:py-3",children:[(0,t.jsx)("span",{className:"stg:size-8 stg:shrink-0 stg:animate-pulse stg:rounded-full stg:bg-muted"}),(0,t.jsxs)("span",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:h-3 stg:w-40 stg:max-w-full stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("span",{className:"stg:h-2.5 stg:w-64 stg:max-w-full stg:animate-pulse stg:rounded stg:bg-muted-subtle"})]}),(0,t.jsx)("span",{className:"stg:h-5 stg:w-14 stg:shrink-0 stg:animate-pulse stg:rounded-full stg:bg-muted"})]},s))})})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,311015,t=>{"use strict";var e=t.i(974265),s=t.i(893976),r=t.i(65642),i=t.i(651023),n=t.i(475254);let a=(0,n.f)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),l=(0,n.f)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),o=(0,n.f)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var c=t.i(63209);let d="stg:h-10 stg:w-10";t.s(["f",0,function({variant:t,resourceLabel:n,icon:g,title:u,description:m,errorMessage:x,action:h,children:f,className:p}){let v=function(t){let{variant:e,resourceLabel:s="resources",title:r,description:n,errorMessage:g}=t;return(0,i.useMemo)(()=>{let t=function(t,e){switch(t){case"first-use":return{title:`No ${e} yet`,description:`Create ${"agents"===e?"an agent":`a ${e.replace(/s$/,"")}`} to get started.`};case"zero-results":return{title:"No results found",description:"Try adjusting your search or filters."};case"permission":return{title:`No access to ${e}`,description:"You don't have permission to view these resources. Contact your organization admin."};case"error":return{title:"Something went wrong",description:"We couldn't load this content. Please try again."}}}(e,s);return{title:r??t.title,description:"error"===e&&g?g:n??t.description,defaultIcon:function(t){switch(t){case"first-use":return(0,i.createElement)(a,{className:d});case"zero-results":return(0,i.createElement)(l,{className:d});case"permission":return(0,i.createElement)(o,{className:d});case"error":return(0,i.createElement)(c.f,{className:d})}}(e),role:"error"===e?"alert":"status"}},[e,s,r,n,g])}({variant:t,resourceLabel:n,title:u,description:m,errorMessage:x});return(0,e.jsxs)("div",{role:v.role,className:(0,s.f)("stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-12 stg:text-center",p),children:[(0,e.jsx)("div",{className:"stg:text-muted-foreground-faint",children:g??v.defaultIcon}),(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,e.jsx)("p",{className:"stg:m-0 stg:text-sm stg:font-medium stg:text-muted-foreground",children:v.title}),(0,e.jsx)("p",{className:"stg:m-0 stg:max-w-sm stg:text-xs stg:text-muted-foreground",children:v.description})]}),f?(0,e.jsx)("div",{className:"stg:mt-1",children:f}):h&&(0,e.jsx)(r.f,{variant:"error"===t?"outline":"primary",icon:h.icon,onClick:h.onClick,className:"stg:mt-1",children:h.label})]})}],311015)},476007,t=>{"use strict";var e=t.i(974265),s=t.i(651023),r=t.i(610595),i=t.i(893976);let n={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,e.jsx)("path",{d:"M8 6v3"}),(0,e.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function l({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,e.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function o({className:t}){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 6l4 4 4-4"})})}function c({className:t}){return(0,e.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M2 6.5h4v-4"}),(0,e.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}t.s(["f",0,function({error:t,title:d,retry:g,className:u}){let[m,x]=(0,s.useState)(!1);if(!t)return null;let h=(0,r.V)(t),f=(0,r.g)(t),p=(0,r.X)(t),v=(0,r.f)(t);return(0,e.jsx)("div",{role:"alert",className:(0,i.f)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===h||"permission"===h?(0,e.jsx)(l,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,e.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium",children:d??n[h]}),(0,e.jsx)("p",{className:"stg:m-0 stg:text-destructive stg:text-sm",children:f}),p&&(0,e.jsxs)("div",{className:"stg:pt-1",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>x(t=>!t),className:"stg:text-destructive stg:hover:underline stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,e.jsx)(o,{className:(0,i.f)("stg:size-3 stg:transition-transform",m&&"stg:rotate-180")}),"Technical details"]}),m&&(0,e.jsxs)("dl",{className:"stg:text-destructive stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),g&&v&&(0,e.jsxs)("button",{type:"button",onClick:g,className:(0,i.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,e.jsx)(c,{className:"stg:size-3"}),"Retry"]})]})})}])},818424,t=>{"use strict";var e=t.i(974265),s=t.i(893976);let r=(0,s.f)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent stg:hover:text-foreground","stg:disabled:pointer-events-none stg:disabled:opacity-40");t.s(["f",0,function({pageNumber:t,hasPrevious:i,hasNext:n,onPrevious:a,onNext:l,pageCount:o,ariaLabel:c,className:d}){return(0,e.jsxs)("div",{className:(0,s.f)("stg:flex stg:items-center stg:justify-between",d),role:"navigation","aria-label":c,children:[(0,e.jsx)("button",{type:"button",disabled:!i,onClick:a,className:r,children:"Previous"}),(0,e.jsx)("span",{className:"stg:text-xs stg:tabular-nums stg:text-muted-foreground",children:void 0===o?`Page ${t}`:`Page ${t} of ${o}`}),(0,e.jsx)("button",{type:"button",disabled:!n,onClick:l,className:r,children:"Next"})]})}])},66724,t=>{"use strict";var e=t.i(974265),s=t.i(893976);t.s(["f",0,function({title:t,description:r,actions:i,headingLevel:n=1,headingId:a,className:l}){return(0,e.jsxs)("header",{className:(0,s.f)("stg:flex stg:flex-col stg:gap-1",l),children:[(0,e.jsxs)("div",{className:"stg:flex stg:min-h-8 stg:flex-wrap stg:items-center stg:justify-between stg:gap-x-6 stg:gap-y-2",children:[(0,e.jsx)(1===n?"h1":"h2",{id:a,className:"stg:m-0 stg:text-xl stg:font-semibold stg:tracking-tight stg:text-foreground",children:t}),null!=i&&!1!==i&&(0,e.jsx)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:i})]}),null!=r&&(0,e.jsx)("p",{className:"stg:m-0 stg:max-w-2xl stg:text-sm stg:text-muted-foreground",children:r})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,621501,t=>{"use strict";var e=t.i(908381),r=t.i(171206),a=t.i(139941);t.i(947716);var s=t.i(723685),i=(0,r.p)((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)r.attr(t,e.attrs[t]);return e.class&&r.attr("class",e.class),r},"drawRect"),l=(0,r.p)((t,e)=>{i(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),n=(0,r.p)((t,r)=>{let a=r.text.replace(e.g," "),s=t.append("text");s.attr("x",r.x),s.attr("y",r.y),s.attr("class","legend"),s.style("text-anchor",r.anchor),r.class&&s.attr("class",r.class);let i=s.append("tspan");return i.attr("x",r.x+2*r.textMargin),i.text(a),s},"drawText"),o=(0,r.p)((t,e,r,s)=>{let i=t.append("image");i.attr("x",e),i.attr("y",r);let l=(0,a.sanitizeUrl)(s);i.attr("xlink:href",l)},"drawImage"),p=(0,r.p)((t,e,r,s)=>{let i=t.append("use");i.attr("x",e),i.attr("y",r);let l=(0,a.sanitizeUrl)(s);i.attr("xlink:href",`#${l}`)},"drawEmbeddedImage"),d=(0,r.p)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),x=(0,r.p)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),c=(0,r.p)(()=>{let t=(0,s.f)(".mermaidTooltip");return t.empty()&&(t=(0,s.f)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");t.s(["m",0,c,"Z",0,l,"N",0,p,"A",0,o,"J",0,i,"K",0,n,"f",0,d,"W",0,x])},857387,t=>{"use strict";var e=t.i(171206),r=class{constructor(t){this.init=t,this.records=this.init()}static{(0,e.p)(this,"ImperativeState")}reset(){this.records=this.init()}};t.s(["f",0,r])}]);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,347578,t=>{"use strict";var e=t.i(136013),a=t.i(620144),l=t.i(864421),i=t.i(669587),r=t.i(908381),n=t.i(171206);t.i(947716);var s=t.i(723685),h=t.i(883272),o=(0,n.p)(async(t,a,n)=>{let h,o=a.useHtmlLabels||(0,r.i)((0,r.z)()?.htmlLabels),d=t.insert("g").attr("class",n||"node default").attr("id",a.domId||a.id),c=d.insert("g").attr("class","label").attr("style",(0,i.d)(a.labelStyle));h=void 0===a.label?"":"string"==typeof a.label?a.label:a.label[0];let g=!!a.icon||!!a.img,y="markdown"===a.labelType,f=await (0,l.w)(c,(0,r.w)((0,i.Q)(h),(0,r.z)()),{useHtmlLabels:o,width:a.width||(0,r.z)().flowchart?.wrappingWidth,classes:y?"markdown-node-label":"",style:a.labelStyle,addSvgBackground:g,markdown:y},(0,r.z)()),p=f.getBBox(),u=(a?.padding??0)/2;if(o){let t=f.children[0],a=(0,s.f)(f);await (0,e.n)(t,h),p=t.getBoundingClientRect(),a.attr("width",p.width),a.attr("height",p.height)}return o?c.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):c.attr("transform","translate(0, "+-p.height/2+")"),a.centerLabel&&c.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:d,bbox:p,halfPadding:u,label:c}},"labelHelper"),d=(0,n.p)(async(t,e,a)=>{let n=a.useHtmlLabels??(0,r.o)((0,r.z)()),h=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),o=await (0,l.w)(h,(0,r.w)((0,i.Q)(e),(0,r.z)()),{useHtmlLabels:n,width:a.width||(0,r.z)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=o.getBBox(),c=a.padding/2;if((0,r.o)((0,r.z)())){let t=o.children[0],e=(0,s.f)(o);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}return n?h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):h.attr("transform","translate(0, "+-d.height/2+")"),a.centerLabel&&h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:t,bbox:d,halfPadding:c,label:h}},"insertLabel"),c=(0,n.p)((t,e)=>{let a=e.node().getBBox();t.width=a.width,t.height=a.height},"updateNodeBounds"),g=(0,n.p)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function y(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function f(t,e,a,l,i,r){let n=[],s=a-t,h=2*Math.PI/(s/r),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+i*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function p(t,e,a,l,i,r){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}function u(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let i=e.find(t=>"none"!==t.getAttribute("fill")),r=e.find(t=>"none"!==t.getAttribute("stroke")),s=(0,n.p)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");i&&Object.entries({fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),r&&Object.entries({stroke:s(r,"stroke"),"stroke-width":s(r,"stroke-width")??"1","stroke-opacity":s(r,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let h=document.createElementNS("http://www.w3.org/2000/svg","g");return h.appendChild(a),h}(0,n.p)(y,"createPathFromPoints"),(0,n.p)(f,"generateFullSineWavePoints"),(0,n.p)(p,"generateCirclePoints"),(0,n.p)(u,"mergePaths");var w=(0,n.p)((t,e)=>{var a,l,i=t.x,r=t.y,n=e.x-i,s=e.y-r,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:i+a,y:r+l}},"intersectRect"),m=(0,n.p)(async(t,e,a,i=!1,n=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);let h=(0,r.z)(),o=(0,r.o)(h);return await (0,l.w)(t,s,{style:a,isTitle:i,useHtmlLabels:o,markdown:!1,isNode:n,width:1/0},h)},"createLabel"),x=(0,n.p)((t,e,a,l,i)=>["M",t+i,e,"H",t+a-i,"A",i,i,"0 0 1",t+a,e+i,"V",e+l-i,"A",i,i,"0 0 1",t+a-i,e+l,"H",t+i,"A",i,i,"0 0 1",t,e+l-i,"V",e+i,"A",i,i,"0 0 1",t+i,e,"Z"].join(" "),"createRoundedRectPathD"),$=(0,n.p)(async(t,i)=>{let o,d;n.d.info("Creating subgraph rect for ",i.id,i);let c=(0,r.z)(),{themeVariables:g,handDrawnSeed:y}=c,{clusterBkg:f,clusterBorder:p}=g,{labelStyles:u,nodeStyles:$,borderStyles:b,backgroundStyles:k}=(0,a.u)(i),M=t.insert("g").attr("class","cluster "+i.cssClasses).attr("id",i.domId).attr("data-look",i.look),S=(0,r.o)(c),D=M.insert("g").attr("class","cluster-label "),v=(o="markdown"===i.labelType?await (0,l.w)(D,i.label,{style:i.labelStyle,useHtmlLabels:S,isNode:!0,width:i.width}):await m(D,i.label,i.labelStyle||"",!1,!0)).getBBox();if((0,r.o)(c)){let t=o.children[0],e=(0,s.f)(o);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}let B=i.width<=v.width+i.padding?v.width+i.padding:i.width;i.width<=v.width+i.padding?i.diff=(B-i.width)/2-i.padding:i.diff=-i.padding;let N=i.height,C=i.x-B/2,A=i.y-N/2;if(n.d.trace("Data ",i,JSON.stringify(i)),"handDrawn"===i.look){let t=h.f.svg(M),e=(0,a.z)(i,{roughness:.7,fill:f,stroke:p,fillWeight:3,seed:y}),l=t.path(x(C,A,B,N,0),e);(d=M.insert(()=>(n.d.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),d.select("path").attr("style",k.join(";").replace("fill","stroke"))}else(d=M.insert("rect",":first-child")).attr("style",$).attr("rx",i.rx).attr("ry",i.ry).attr("x",C).attr("y",A).attr("width",B).attr("height",N);let{subGraphTitleTopMargin:z}=(0,e.i)(c);if(D.attr("transform",`translate(${i.x-v.width/2}, ${i.y-i.height/2+z})`),u){let t=D.select("span");t&&t.attr("style",u)}let R=d.node().getBBox();return i.offsetX=0,i.width=R.width,i.height=R.height,i.offsetY=v.height-i.padding/2,i.intersect=function(t){return w(i,t)},{cluster:M,labelBBox:v}},"rect"),b=(0,n.p)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.domId),l=a.insert("rect",":first-child"),i=0*e.padding,r=i/2;l.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2-r).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let n=l.node().getBBox();return e.width=n.width,e.height=n.height,e.intersect=function(t){return w(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),k=(0,n.p)(async(t,e)=>{let a,l=(0,r.z)(),{themeVariables:i,handDrawnSeed:n}=l,{altBackground:o,compositeBackground:d,compositeTitleBackground:c,nodeBorder:g}=i,y=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),f=y.insert("g",":first-child"),p=y.insert("g").attr("class","cluster-label"),u=y.append("rect"),$=await m(p,e.label,e.labelStyle,void 0,!0),b=$.getBBox();if((0,r.o)(l)){let t=$.children[0],e=(0,s.f)($);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}let k=0*e.padding,M=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+k;e.width<=b.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+k,D=e.height+k-b.height-6,v=e.x-M/2,B=e.y-S/2;e.width=M;let N=e.y-e.height/2-k/2+b.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),l=h.f.svg(y),i=e.rx||e.ry?l.path(x(v,B,M,S,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:g,seed:n}):l.rectangle(v,B,M,S,{seed:n});a=y.insert(()=>i,":first-child");let r=l.rectangle(v,N,M,D,{fill:t?o:d,fillStyle:t?"hachure":"solid",stroke:g,seed:n});a=y.insert(()=>i,":first-child"),u=y.insert(()=>r)}else(a=f.insert("rect",":first-child")).attr("class","outer").attr("x",v).attr("y",B).attr("width",M).attr("height",S).attr("data-look",e.look),u.attr("class","inner").attr("x",v).attr("y",N).attr("width",M).attr("height",D);return p.attr("transform",`translate(${e.x-b.width/2}, ${B+1-3*!(0,r.o)(l)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return w(e,t)},{cluster:y,labelBBox:b}},"roundedWithTitle"),M=(0,n.p)(async(t,i)=>{let o;n.d.info("Creating subgraph rect for ",i.id,i);let d=(0,r.z)(),{themeVariables:c,handDrawnSeed:g}=d,{clusterBkg:y,clusterBorder:f}=c,{labelStyles:p,nodeStyles:u,borderStyles:m,backgroundStyles:$}=(0,a.u)(i),b=t.insert("g").attr("class","cluster "+i.cssClasses).attr("id",i.domId).attr("data-look",i.look),k=(0,r.o)(d),M=b.insert("g").attr("class","cluster-label "),S=await (0,l.w)(M,i.label,{style:i.labelStyle,useHtmlLabels:k,isNode:!0,width:i.width}),D=S.getBBox();if((0,r.o)(d)){let t=S.children[0],e=(0,s.f)(S);D=t.getBoundingClientRect(),e.attr("width",D.width),e.attr("height",D.height)}let v=i.width<=D.width+i.padding?D.width+i.padding:i.width;i.width<=D.width+i.padding?i.diff=(v-i.width)/2-i.padding:i.diff=-i.padding;let B=i.height,N=i.x-v/2,C=i.y-B/2;if(n.d.trace("Data ",i,JSON.stringify(i)),"handDrawn"===i.look){let t=h.f.svg(b),e=(0,a.z)(i,{roughness:.7,fill:y,stroke:f,fillWeight:4,seed:g}),l=t.path(x(N,C,v,B,i.rx),e);(o=b.insert(()=>(n.d.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),o.select("path").attr("style",$.join(";").replace("fill","stroke"))}else(o=b.insert("rect",":first-child")).attr("style",u).attr("rx",i.rx).attr("ry",i.ry).attr("x",N).attr("y",C).attr("width",v).attr("height",B);let{subGraphTitleTopMargin:A}=(0,e.i)(d);if(M.attr("transform",`translate(${i.x-D.width/2}, ${i.y-i.height/2+A})`),p){let t=M.select("span");t&&t.attr("style",p)}let z=o.node().getBBox();return i.offsetX=0,i.width=z.width,i.height=z.height,i.offsetY=D.height-i.padding/2,i.intersect=function(t){return w(i,t)},{cluster:b,labelBBox:D}},"kanbanSection"),S={rect:$,squareRect:$,roundedWithTitle:k,noteGroup:b,divider:(0,n.p)((t,e)=>{let a,{themeVariables:l,handDrawnSeed:i}=(0,r.z)(),{nodeBorder:n}=l,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),o=s.insert("g",":first-child"),d=0*e.padding,c=e.width+d;e.diff=-e.padding;let g=e.height+d,y=e.x-c/2,f=e.y-g/2;if(e.width=c,"handDrawn"===e.look){let t=h.f.svg(s).rectangle(y,f,c,g,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:i});a=s.insert(()=>t,":first-child")}else{a=o.insert("rect",":first-child");let t="outer";e.look,t="divider",a.attr("class",t).attr("x",y).attr("y",f).attr("width",c).attr("height",g).attr("data-look",e.look)}return e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return w(e,t)},{cluster:s,labelBBox:{}}},"divider"),kanbanSection:M},D=new Map,v=(0,n.p)(async(t,e)=>{let a=e.shape||"rect",l=await S[a](t,e);return D.set(e.id,l),l},"insertCluster"),B=(0,n.p)(()=>{D=new Map},"clear");function N(t,e,a,l){var i=t.x,r=t.y,n=i-l.x,s=r-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<i&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<r&&(d=-d),{x:i+o,y:r+d}}function C(t,e,a){return N(t,e,e,a)}function A(t,e,a,l){{let i=e.y-t.y,r=t.x-e.x,n=e.x*t.y-t.x*e.y,s=i*a.x+r*a.y+n,h=i*l.x+r*l.y+n;if(0!==s&&0!==h&&z(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&z(g,y))return;let f=i*d-o*r;if(0===f)return;let p=Math.abs(f/2),u=r*c-d*n;return{x:u<0?(u-p)/f:(u+p)/f,y:(u=o*n-i*c)<0?(u-p)/f:(u+p)/f}}}function z(t,e){return t*e>0}function R(t,e,a){let l=t.x,i=t.y,r=[],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 h=l-t.width/2-n,o=i-t.height/2-s;for(let l=0;l<e.length;l++){let i=e[l],n=e[l<e.length-1?l+1:0],s=A(t,a,{x:h+i.x,y:o+i.y},{x:h+n.x,y:o+n.y});s&&r.push(s)}return r.length?(r.length>1&&r.sort(function(t,e){let l=t.x-a.x,i=t.y-a.y,r=Math.sqrt(l*l+i*i),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return r<h?-1:+(r!==h)}),r[0]):t}(0,n.p)(function(t,e){return t.intersect(e)},"intersectNode"),(0,n.p)(N,"intersectEllipse"),(0,n.p)(C,"intersectCircle"),(0,n.p)(A,"intersectLine"),(0,n.p)(z,"sameSign"),(0,n.p)(R,"intersectPolygon");function P(t,e){let{labelStyles:l}=(0,a.u)(e);e.labelStyle=l;let r=g(e),s=r;r||(s="anchor");let o=t.insert("g").attr("class",s).attr("id",e.domId||e.id),{cssStyles:d}=e,y=h.f.svg(o),f=(0,a.z)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);let p=y.circle(0,0,2,f),u=o.insert(()=>p,":first-child");return u.attr("class","anchor").attr("style",(0,i.d)(d)),c(e,u),e.intersect=function(t){return n.d.info("Circle intersect",e,1,t),C(e,1,t)},o}function L(t,e,a,l,i,r,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/i)**2+((l-e)/2/r)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*r*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*i*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/r,(t-d)/i),y=Math.atan2((l-c)/r,(a-d)/i)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+i*Math.cos(e),l=c+r*Math.sin(e);f.push({x:a,y:l})}return f}function I(t,e,a){let[l,i]=[e,a].sort((t,e)=>e-t);return i*(1-Math.sqrt(1-(t/l/2)**2))}async function T(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,s="neo"===e.look?16:r,d="neo"===e.look?12:r,f=(0,n.p)(t=>t+d,"calcTotalHeight"),p=(0,n.p)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:u,bbox:w}=await o(t,e,g(e)),m=f(e?.height?e?.height:w.height),[x,$]=p(m),b=I(m,x,$),k=(e?.width?e?.width:w.width)+2*s+b-b,{cssStyles:M}=e,S=[{x:k/2,y:-m/2},{x:-k/2,y:-m/2},...L(-k/2,-m/2,-k/2,m/2,x,$,!1),{x:k/2,y:m/2},...L(k/2,m/2,k/2,-m/2,x,$,!0)],D=h.f.svg(u),v=(0,a.z)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let B=y(S),N=D.path(B,v),C=u.insert(()=>N,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${x/2}, 0)`),c(e,C),e.intersect=function(t){return R(e,S,t)},u}function H(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}async function E(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?28:n,d="neo"===e.look?24:n,{shapeSvg:f,bbox:p}=await o(t,e,g(e)),u=(e?.width??p.width)+("neo"===e.look?2*s:s+12),w=(e?.height??p.height)+("neo"===e.look?2*d:d),m=-w,x=[{x:12,y:m},{x:u,y:m},{x:u,y:0},{x:0,y:0},{x:0,y:m+12},{x:12,y:m}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=h.f.svg(f),i=(0,a.z)(e,{}),r=y(x),n=t.path(r,i);l=f.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${w/2})`),$&&l.attr("style",$)}else l=H(f,u,w,x);return r&&l.attr("style",r),c(e,l),e.intersect=function(t){return R(e,x,t)},f}function W(t,e){let{nodeStyles:l}=(0,a.u)(e);e.label="";let i=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:r}=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=h.f.svg(i),d=(0,a.z)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let c=y(s),f=o.path(c,d),p=i.insert(()=>f,":first-child");return r&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",r),l&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",l),e.width=28,e.height=28,e.intersect=function(t){return R(e,s,t)},i}async function q(t,e,l){let r,{labelStyles:s,nodeStyles:d}=(0,a.u)(e);e.labelStyle=s;let{shapeSvg:y,bbox:f,halfPadding:p}=await o(t,e,g(e)),u=l?.padding??p,w="neo"===e.look?f.width/2+32:f.width/2+u,{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.f.svg(y),l=(0,a.z)(e,{}),n=t.circle(0,0,2*w,l);(r=y.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.d)(m))}else r=y.insert("circle",":first-child").attr("class","basic label-container").attr("style",d).attr("r",w).attr("cx",0).attr("cy",0);return c(e,r),e.calcIntersect=function(t,e){let a=t.width/2;return C(t,a,e)},e.intersect=function(t){return n.d.info("Circle intersect",e,w,t),C(e,w,t)},y}function j(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,i={x:l/2*e,y:l/2*a},r={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${r.x},${r.y} L ${s.x},${s.y}
|
|
2
|
+
M ${i.x},${i.y} L ${n.x},${n.y}`}function O(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l,e.label="";let r=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),s=Math.max(30,e?.width??0),{cssStyles:o}=e,d=h.f.svg(r),y=(0,a.z)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let f=d.circle(0,0,2*s,y),p=j(s),u=d.path(p,y),w=r.insert(()=>f,":first-child");return w.insert(()=>u),w.attr("class","outer-path"),o&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",o),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),c(e,w),e.intersect=function(t){return n.d.info("crossedCircle intersect",e,{radius:s,point:t}),C(e,s,t)},r}function _(t,e,a,l=100,i=0,r=180){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}async function F(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,label:s}=await o(t,e,g(e)),d="neo"===e.look?18:e.padding??0,f="neo"===e.look?12:e.padding??0,p=n.width+d,u=n.height+f,w=Math.max(5,.1*u),{cssStyles:m}=e,x=[..._(p/2,-u/2,w,30,-90,0),{x:-p/2-w,y:w},..._(p/2+2*w,-w,w,20,-180,-270),..._(p/2+2*w,w,w,20,-90,-180),{x:-p/2-w,y:-u/2},..._(p/2,u/2,w,20,0,90)],$=[{x:p/2,y:-u/2-w},{x:-p/2,y:-u/2-w},..._(p/2,-u/2,w,20,-90,0),{x:-p/2-w,y:-w},..._(p/2+.1*p,-w,w,20,-180,-270),..._(p/2+.1*p,w,w,20,-90,-180),{x:-p/2-w,y:u/2},..._(p/2,u/2,w,20,0,90),{x:-p/2,y:u/2+w},{x:p/2,y:u/2+w}],b=h.f.svg(r),k=(0,a.z)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=y(x).replace("Z",""),S=b.path(M,k),D=y($),v=b.path(D,{...k}),B=r.insert("g",":first-child");return B.insert(()=>v,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.attr("class","text"),m&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${w}, 0)`),s.attr("transform",`translate(${-p/2+w-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),c(e,B),e.intersect=function(t){return R(e,$,t)},r}function X(t,e,a,l=100,i=0,r=180){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:r,y:o})}return n}async function Z(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,label:s}=await o(t,e,g(e)),d="neo"===e.look?18:e.padding??0,f="neo"===e.look?12:e.padding??0,p=n.width+("neo"===e.look?2*d:d),u=n.height+("neo"===e.look?2*f:f),w=Math.max(5,.1*u),{cssStyles:m}=e,x=[...X(p/2,-u/2,w,20,-90,0),{x:p/2+w,y:-w},...X(p/2+2*w,-w,w,20,-180,-270),...X(p/2+2*w,w,w,20,-90,-180),{x:p/2+w,y:u/2},...X(p/2,u/2,w,20,0,90)],$=[{x:-p/2,y:-u/2-w},{x:p/2,y:-u/2-w},...X(p/2,-u/2,w,20,-90,0),{x:p/2+w,y:-w},...X(p/2+2*w,-w,w,20,-180,-270),...X(p/2+2*w,w,w,20,-90,-180),{x:p/2+w,y:u/2},...X(p/2,u/2,w,20,0,90),{x:p/2,y:u/2+w},{x:-p/2,y:u/2+w}],b=h.f.svg(r),k=(0,a.z)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=y(x).replace("Z",""),S=b.path(M,k),D=y($),v=b.path(D,{...k}),B=r.insert("g",":first-child");return B.insert(()=>v,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.attr("class","text"),m&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-w}, 0)`),s.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),c(e,B),e.intersect=function(t){return R(e,$,t)},r}function V(t,e,a,l=100,i=0,r=180){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}async function J(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,label:s}=await o(t,e,g(e)),d="neo"===e.look?18:e.padding??0,f="neo"===e.look?12:e.padding??0,p=n.width+("neo"===e.look?2*d:d),u=n.height+("neo"===e.look?2*f:f),w=Math.max(5,.1*u),{cssStyles:m}=e,x=[...V(p/2,-u/2,w,30,-90,0),{x:-p/2-w,y:w},...V(p/2+2*w,-w,w,20,-180,-270),...V(p/2+2*w,w,w,20,-90,-180),{x:-p/2-w,y:-u/2},...V(p/2,u/2,w,20,0,90)],$=[...V(-p/2+w+w/2,-u/2,w,20,-90,-180),{x:p/2-w/2,y:w},...V(-p/2-w/2,-w,w,20,0,90),...V(-p/2-w/2,w,w,20,-90,0),{x:p/2-w/2,y:-w},...V(-p/2+w+w/2,u/2,w,30,-180,-270)],b=[{x:p/2,y:-u/2-w},{x:-p/2,y:-u/2-w},...V(p/2,-u/2,w,20,-90,0),{x:-p/2-w,y:-w},...V(p/2+2*w,-w,w,20,-180,-270),...V(p/2+2*w,w,w,20,-90,-180),{x:-p/2-w,y:u/2},...V(p/2,u/2,w,20,0,90),{x:-p/2,y:u/2+w},{x:p/2-w-w/2,y:u/2+w},...V(-p/2+w+w/2,-u/2,w,20,-90,-180),{x:p/2-w/2,y:w},...V(-p/2-w/2,-w,w,20,0,90),...V(-p/2-w/2,w,w,20,-90,0),{x:p/2-w/2,y:-w},...V(-p/2+w+w/2,u/2,w,30,-180,-270)],k=h.f.svg(r),M=(0,a.z)(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let S=y(x).replace("Z",""),D=k.path(S,M),v=y($).replace("Z",""),B=k.path(v,M),N=y(b),C=k.path(N,{...M}),A=r.insert("g",":first-child");return A.insert(()=>C,":first-child").attr("stroke-opacity",0),A.insert(()=>D,":first-child"),A.insert(()=>B,":first-child"),A.attr("class","text"),m&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${w-w/4}, 0)`),s.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),c(e,A),e.intersect=function(t){return R(e,b,t)},r}async function Y(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,{shapeSvg:d,bbox:f}=await o(t,e,g(e)),u=Math.max(20,(f.width+2*n)*1.25,e?.width??0),w=Math.max(5,f.height+2*s,e?.height??0),m=w/2,{cssStyles:x}=e,$=h.f.svg(d),b=(0,a.z)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=u-m,M=w/4,S=[{x:k,y:0},{x:M,y:0},{x:0,y:w/2},{x:M,y:w},{x:k,y:w},...p(-k,-w/2,m,50,270,90)],D=y(S),v=$.path(D,b),B=d.insert(()=>v,":first-child");return B.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",i),B.attr("transform",`translate(${-u/2}, ${-w/2})`),c(e,B),e.intersect=function(t){return R(e,S,t)},d}(0,n.p)(P,"anchor"),(0,n.p)(L,"generateArcPoints"),(0,n.p)(I,"calculateArcSagitta"),(0,n.p)(T,"bowTieRect"),(0,n.p)(H,"insertPolygonShape"),(0,n.p)(E,"card"),(0,n.p)(W,"choice"),(0,n.p)(q,"circle"),(0,n.p)(j,"createLine"),(0,n.p)(O,"crossedCircle"),(0,n.p)(_,"generateCirclePoints"),(0,n.p)(F,"curlyBraceLeft"),(0,n.p)(X,"generateCirclePoints"),(0,n.p)(Z,"curlyBraceRight"),(0,n.p)(V,"generateCirclePoints"),(0,n.p)(J,"curlyBraces"),(0,n.p)(Y,"curvedTrapezoid");var G=(0,n.p)((t,e,a,l,i,r)=>`M${t},${e+r} a${i},${r} 0,0,0 ${a},0 a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),Q=(0,n.p)((t,e,a,l,i,r)=>`M${t},${e+r} M${t+a},${e+r} a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),U=(0,n.p)((t,e,a,l,i,r)=>`M${t-a/2},${-l/2} a${i},${r} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function K(t,e){let l,{labelStyles:r,nodeStyles:n}=(0,a.u)(e);e.labelStyle=r;let s=e.padding??0,d="neo"===e.look?24:s,y="neo"===e.look?24:s;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-y,e.width<8&&(e.width=8),e.height=(e.height??0)-d-t/2/(2.5+t/50)*3,e.height<8&&(e.height=8)}let{shapeSvg:f,bbox:p,label:u}=await o(t,e,g(e)),m=(e.width?e.width:p.width)+y,x=m/2,$=x/(2.5+m/50),b=(e.height?e.height:p.height)+d+$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=h.f.svg(f),i=Q(0,0,m,b,x,$),r=U(0,$,m,b,x,$),n=(0,a.z)(e,{}),s=t.path(i,n),o=t.path(r,(0,a.z)(e,{fill:"none"}));l=f.insert(()=>o,":first-child"),(l=f.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&l.attr("style",k)}else{let t=G(0,0,m,b,x,$);l=f.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,i.d)(k)).attr("style",n)}return l.attr("label-offset-y",$),l.attr("transform",`translate(${-m/2}, ${-(b/2+$)})`),c(e,l),u.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+(e.padding??0)/1.5-(p.y-(p.top??0))})`),e.intersect=function(t){let a=w(e,t),l=a.x-(e.x??0);if(0!=x&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-$)){let i=$*$*(1-l*l/(x*x));i>0&&(i=Math.sqrt(i)),i=$-i,t.y-(e.y??0)>0&&(i=-i),a.y+=i}return a},f}async function tt(t,e,l){let r,{labelStyles:n,nodeStyles:s}=(0,a.u)(e);e.labelStyle=n;let{shapeSvg:d,bbox:y}=await o(t,e,g(e)),f=Math.max(y.width+2*l.labelPaddingX,e?.width||0),p=Math.max(y.height+2*l.labelPaddingY,e?.height||0),u=-f/2,m=-p/2,{rx:$,ry:b}=e,{cssStyles:k}=e;if(l?.rx&&l.ry&&($=l.rx,b=l.ry),"handDrawn"===e.look){let t=h.f.svg(d),l=(0,a.z)(e,{}),n=$||b?t.path(x(u,m,f,p,$||0),l):t.rectangle(u,m,f,p,l);(r=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.d)(k))}else(r=d.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,i.d)($)).attr("ry",(0,i.d)(b)).attr("x",u).attr("y",m).attr("width",f).attr("height",p);return c(e,r),e.calcIntersect=function(t,e){return w(t,e)},e.intersect=function(t){return w(e,t)},d}async function te(t,e){let{cssClasses:l,labelPaddingX:i,labelPaddingY:r,padding:n,width:s,height:o}=e,d=await tt(t,e,{rx:0,ry:0,classes:l??"",labelPaddingX:i??(n??0)*2,labelPaddingY:r??n??0});if("handDrawn"===e.look){let t=h.f.svg(d),l=(0,a.z)(e,{}),i=d.select(".basic.label-container > path:nth-child(2)"),r=i.node();if(!r)return d;let n=null;return r instanceof SVGGraphicsElement&&(n=r.getBBox(),d.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,l),".basic.label-container g.label"),d.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,l),".basic.label-container g.label"),i.remove()),d}let c=d.select(".basic.label-container"),g=(Number(c.attr("width"))||s)??0,y=(Number(c.attr("height"))||o)??0;return g>0&&y>0&&c.attr("stroke-dasharray",`${g} ${y}`),d}async function ta(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:d,label:y}=await o(t,e,g(e)),f=d.width+r,p=d.height+n,u=.2*p,m=-f/2,x=-p/2-u/2,{cssStyles:$}=e,b=h.f.svg(s),k=(0,a.z)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=b.polygon([{x:m,y:x+u},{x:-m,y:x+u},{x:-m,y:-x},{x:m,y:-x},{x:m,y:x},{x:-m,y:x},{x:-m,y:x+u}].map(t=>[t.x,t.y]),k),S=s.insert(()=>M,":first-child");return S.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",i),y.attr("transform",`translate(${m+(e.padding??0)/2-(d.x-(d.left??0))}, ${x+u+(e.padding??0)/2-(d.y-(d.top??0))})`),c(e,S),e.intersect=function(t){return w(e,t)},s}async function tl(t,e){let l,{labelStyles:r,nodeStyles:s}=(0,a.u)(e),d="neo"===e.look?12:5;e.labelStyle=r;let y=e.padding??0,f="neo"===e.look?16:y,{shapeSvg:p,bbox:u}=await o(t,e,g(e)),w=(e?.width?e?.width/2:u.width/2)+(f??0),m=w-d,{cssStyles:x}=e;if("handDrawn"===e.look){let t=h.f.svg(p),r=(0,a.z)(e,{roughness:.2,strokeWidth:2.5}),n=(0,a.z)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*w,r),o=t.circle(0,0,2*m,n);(l=p.insert("g",":first-child")).attr("class",(0,i.d)(e.cssClasses)).attr("style",(0,i.d)(x)),l.node()?.appendChild(s),l.node()?.appendChild(o)}else{let t=(l=p.insert("g",":first-child")).insert("circle",":first-child"),e=l.insert("circle");l.attr("class","basic label-container").attr("style",s),t.attr("class","outer-circle").attr("style",s).attr("r",w).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0)}return c(e,l),e.intersect=function(t){return n.d.info("DoubleCircle intersect",e,w,t),C(e,w,t)},p}function ti(t,e,{config:{themeVariables:l}}){let{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.label="",e.labelStyle=i;let s=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,d=h.f.svg(s),{nodeBorder:y}=l,f=(0,a.z)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);let p=d.circle(0,0,14,f),u=s.insert(()=>p,":first-child");return u.selectAll("path").attr("style",`fill: ${y} !important;`),o&&o.length>0&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",o),r&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",r),c(e,u),e.intersect=function(t){return n.d.info("filledCircle intersect",e,{radius:7,point:t}),C(e,7,t)},s}async function tr(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,s="neo"===e.look?2*r:r;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-s-s/2,e.width<10&&(e.width=10));let{shapeSvg:d,bbox:f,label:p}=await o(t,e,g(e)),u=(e?.width?e?.width:f.width)+(s??0),w=e?.height?e?.height:u+f.height,m=[{x:0,y:-w},{x:w,y:-w},{x:w/2,y:0}],{cssStyles:x}=e,$=h.f.svg(d),b=(0,a.z)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=y(m),M=$.path(k,b),S=d.insert(()=>M,":first-child").attr("transform",`translate(${-w/2}, ${w/2})`).attr("class","outer-path");return x&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",i),e.width=u,e.height=w,c(e,S),p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))}, ${-w/2+(e.padding??0)/2+(f.y-(f.top??0))})`),e.intersect=function(t){return n.d.info("Triangle intersect",e,m,t),R(e,m,t)},d}function tn(t,e,{dir:l,config:{state:i,themeVariables:r}}){let{nodeStyles:n}=(0,a.u)(e);e.label="";let s=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,d=Math.max(70,e?.width??0),y=Math.max(10,e?.height??0);"LR"===l&&(d=Math.max(10,e?.width??0),y=Math.max(70,e?.height??0));let f=-1*d/2,p=-1*y/2,u=h.f.svg(s),m=(0,a.z)(e,{stroke:r.lineColor,fill:r.lineColor});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=u.rectangle(f,p,d,y,m),$=s.insert(()=>x,":first-child");o&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",n),c(e,$);let b=i?.padding??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(t){return w(e,t)},s}async function ts(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*r,e.width<15&&(e.width=15));let{shapeSvg:d,bbox:f}=await o(t,e,g(e)),u=(e?.width?e?.width:Math.max(15,f.width))+2*r,w=(e?.height?e?.height:Math.max(10,f.height))+2*s,m=w/2,{cssStyles:x}=e,$=h.f.svg(d),b=(0,a.z)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-u/2,y:-w/2},{x:u/2-m,y:-w/2},...p(-u/2+m,0,m,50,90,270),{x:u/2-m,y:w/2},{x:-u/2,y:w/2}],M=y(k),S=$.path(M,b),D=d.insert(()=>S,":first-child");return D.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",i),c(e,D),e.intersect=function(t){return n.d.info("Pill intersect",e,{radius:m,point:t}),R(e,k,t)},d}(0,n.p)(K,"cylinder"),(0,n.p)(tt,"drawRect"),(0,n.p)(te,"datastore"),(0,n.p)(ta,"dividedRectangle"),(0,n.p)(tl,"doublecircle"),(0,n.p)(ti,"filledCircle"),(0,n.p)(tr,"flippedTriangle"),(0,n.p)(tn,"forkJoin"),(0,n.p)(ts,"halfRoundedRectangle");var th=(0,n.p)((t,e,a,l,i)=>`M${t+i},${e} L${t+a-i},${e} L${t+a},${e-l/2} L${t+a-i},${e-l} L${t+i},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function to(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e),n="neo"===e.look?3.5:4;e.labelStyle=i;let s=e.padding??0,d="neo"===e.look?70:s,y="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-y,e.height=(e.height??0)-d}let{shapeSvg:f,bbox:p}=await o(t,e,g(e)),u=(e?.height?e?.height:p.height)+d,w=u/n,m=(e?.width?e?.width:p.width)+2*w+y,x=[{x:w,y:0},{x:m-w,y:0},{x:m,y:-u/2},{x:m-w,y:-u},{x:w,y:-u},{x:0,y:-u/2}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=h.f.svg(f),i=(0,a.z)(e,{}),r=th(0,0,m,u,w),n=t.path(r,i);l=f.insert(()=>n,":first-child").attr("transform",`translate(${-m/2}, ${u/2})`),$&&l.attr("style",$)}else l=H(f,m,u,x);return r&&l.attr("style",r),e.width=m,e.height=u,c(e,l),e.intersect=function(t){return R(e,x,t)},f}async function td(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.label="",e.labelStyle=l;let{shapeSvg:r}=await o(t,e,g(e)),s=Math.max(30,e?.width??0),d=Math.max(30,e?.height??0),{cssStyles:f}=e,p=h.f.svg(r),u=(0,a.z)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let w=[{x:0,y:0},{x:s,y:0},{x:0,y:d},{x:s,y:d}],m=y(w),x=p.path(m,u),$=r.insert(()=>x,":first-child");return $.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",f),i&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",i),$.attr("transform",`translate(${-s/2}, ${-d/2})`),c(e,$),e.intersect=function(t){return n.d.info("Pill intersect",e,{points:w}),R(e,w,t)},r}async function tc(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.u)(e);e.labelStyle=s;let d=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(d,r?.wrappingWidth??0);let{shapeSvg:g,bbox:y,label:f}=await o(t,e,"icon-shape default"),p="t"===e.pos,{nodeBorder:u}=i,{stylesMap:m}=(0,a.O)(e),x=-d/2,$=-d/2,b=8*!!e.label,k=h.f.svg(g),M=(0,a.z)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let S=k.rectangle(x,$,d,d,M),D=Math.max(d,y.width),v=d+y.height+b,B=k.rectangle(-D/2,-v/2,D,v,{...M,fill:"transparent",stroke:"none"}),N=g.insert(()=>S,":first-child"),C=g.insert(()=>B);if(e.icon){let t=g.append("g");t.html(`<g>${await (0,l.v)(e.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),i=a.width,r=a.height,n=a.x,s=a.y;t.attr("transform",`translate(${-i/2-n},${p?y.height/2+b/2-r/2-s:-y.height/2-b/2-r/2-s})`),t.attr("style",`color: ${m.get("stroke")??u};`)}return f.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${p?-v/2:v/2-y.height})`),N.attr("transform",`translate(0,${p?y.height/2+b/2:-y.height/2-b/2})`),c(e,C),e.intersect=function(t){if(n.d.info("iconSquare intersect",e,t),!e.label)return w(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return R(e,r=p?[{x:a-y.width/2,y:l-i/2},{x:a+y.width/2,y:l-i/2},{x:a+y.width/2,y:l-i/2+y.height+b},{x:a+d/2,y:l-i/2+y.height+b},{x:a+d/2,y:l+i/2},{x:a-d/2,y:l+i/2},{x:a-d/2,y:l-i/2+y.height+b},{x:a-y.width/2,y:l-i/2+y.height+b}]:[{x:a-d/2,y:l-i/2},{x:a+d/2,y:l-i/2},{x:a+d/2,y:l-i/2+d},{x:a+y.width/2,y:l-i/2+d},{x:a+y.width/2/2,y:l+i/2},{x:a-y.width/2,y:l+i/2},{x:a-y.width/2,y:l-i/2+d},{x:a-d/2,y:l-i/2+d}],t)},g}async function tg(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.u)(e);e.labelStyle=s;let d=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(d,r?.wrappingWidth??0);let{shapeSvg:g,bbox:y,label:f}=await o(t,e,"icon-shape default"),p=8*!!e.label,u="t"===e.pos,{nodeBorder:m,mainBkg:x}=i,{stylesMap:$}=(0,a.O)(e),b=h.f.svg(g),k=(0,a.z)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid"),k.stroke=$.get("fill")??x;let M=g.append("g");e.icon&&M.html(`<g>${await (0,l.v)(e.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let S=M.node().getBBox(),D=S.width,v=S.height,B=S.x,N=S.y,C=Math.max(D,v)*Math.SQRT2+40,A=b.circle(0,0,C,k),z=Math.max(C,y.width),R=C+y.height+p,P=b.rectangle(-z/2,-R/2,z,R,{...k,fill:"transparent",stroke:"none"}),L=g.insert(()=>A,":first-child"),I=g.insert(()=>P);return M.attr("transform",`translate(${-D/2-B},${u?y.height/2+p/2-v/2-N:-y.height/2-p/2-v/2-N})`),M.attr("style",`color: ${$.get("stroke")??m};`),f.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-R/2:R/2-y.height})`),L.attr("transform",`translate(0,${u?y.height/2+p/2:-y.height/2-p/2})`),c(e,I),e.intersect=function(t){return n.d.info("iconSquare intersect",e,t),w(e,t)},g}async function ty(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.u)(e);e.labelStyle=s;let d=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(d,r?.wrappingWidth??0);let{shapeSvg:g,bbox:y,halfPadding:f,label:p}=await o(t,e,"icon-shape default"),u="t"===e.pos,m=d+2*f,$=d+2*f,{nodeBorder:b,mainBkg:k}=i,{stylesMap:M}=(0,a.O)(e),S=8*!!e.label,D=h.f.svg(g),v=(0,a.z)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=M.get("fill")??k;let B=D.path(x(-$/2,-m/2,$,m,5),v),N=Math.max($,y.width),C=m+y.height+S,A=D.rectangle(-N/2,-C/2,N,C,{...v,fill:"transparent",stroke:"none"}),z=g.insert(()=>B,":first-child").attr("class","icon-shape2"),P=g.insert(()=>A);if(e.icon){let t=g.append("g");t.html(`<g>${await (0,l.v)(e.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),i=a.width,r=a.height,n=a.x,s=a.y;t.attr("transform",`translate(${-i/2-n},${u?y.height/2+S/2-r/2-s:-y.height/2-S/2-r/2-s})`),t.attr("style",`color: ${M.get("stroke")??b};`)}return p.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-C/2:C/2-y.height})`),z.attr("transform",`translate(0,${u?y.height/2+S/2:-y.height/2-S/2})`),c(e,P),e.intersect=function(t){if(n.d.info("iconSquare intersect",e,t),!e.label)return w(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return R(e,r=u?[{x:a-y.width/2,y:l-i/2},{x:a+y.width/2,y:l-i/2},{x:a+y.width/2,y:l-i/2+y.height+S},{x:a+$/2,y:l-i/2+y.height+S},{x:a+$/2,y:l+i/2},{x:a-$/2,y:l+i/2},{x:a-$/2,y:l-i/2+y.height+S},{x:a-y.width/2,y:l-i/2+y.height+S}]:[{x:a-$/2,y:l-i/2},{x:a+$/2,y:l-i/2},{x:a+$/2,y:l-i/2+m},{x:a+y.width/2,y:l-i/2+m},{x:a+y.width/2/2,y:l+i/2},{x:a-y.width/2,y:l+i/2},{x:a-y.width/2,y:l-i/2+m},{x:a-$/2,y:l-i/2+m}],t)},g}async function tf(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.u)(e);e.labelStyle=s;let d=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(d,r?.wrappingWidth??0);let{shapeSvg:g,bbox:y,halfPadding:f,label:p}=await o(t,e,"icon-shape default"),u="t"===e.pos,m=d+2*f,$=d+2*f,{nodeBorder:b,mainBkg:k}=i,{stylesMap:M}=(0,a.O)(e),S=8*!!e.label,D=h.f.svg(g),v=(0,a.z)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=M.get("fill")??k;let B=D.path(x(-$/2,-m/2,$,m,.1),v),N=Math.max($,y.width),C=m+y.height+S,A=D.rectangle(-N/2,-C/2,N,C,{...v,fill:"transparent",stroke:"none"}),z=g.insert(()=>B,":first-child"),P=g.insert(()=>A);if(e.icon){let t=g.append("g");t.html(`<g>${await (0,l.v)(e.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),i=a.width,r=a.height,n=a.x,s=a.y;t.attr("transform",`translate(${-i/2-n},${u?y.height/2+S/2-r/2-s:-y.height/2-S/2-r/2-s})`),t.attr("style",`color: ${M.get("stroke")??b};`)}return p.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-C/2:C/2-y.height})`),z.attr("transform",`translate(0,${u?y.height/2+S/2:-y.height/2-S/2})`),c(e,P),e.intersect=function(t){if(n.d.info("iconSquare intersect",e,t),!e.label)return w(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return R(e,r=u?[{x:a-y.width/2,y:l-i/2},{x:a+y.width/2,y:l-i/2},{x:a+y.width/2,y:l-i/2+y.height+S},{x:a+$/2,y:l-i/2+y.height+S},{x:a+$/2,y:l+i/2},{x:a-$/2,y:l+i/2},{x:a-$/2,y:l-i/2+y.height+S},{x:a-y.width/2,y:l-i/2+y.height+S}]:[{x:a-$/2,y:l-i/2},{x:a+$/2,y:l-i/2},{x:a+$/2,y:l-i/2+m},{x:a+y.width/2,y:l-i/2+m},{x:a+y.width/2/2,y:l+i/2},{x:a-y.width/2,y:l+i/2},{x:a-y.width/2,y:l-i/2+m},{x:a-$/2,y:l-i/2+m}],t)},g}async function tp(t,e,{config:{flowchart:l}}){let i=new Image;i.src=e?.img??"",await i.decode();let r=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=r/s;let{labelStyles:d}=(0,a.u)(e);e.labelStyle=d;let g=l?.wrappingWidth;e.defaultWidth=l?.wrappingWidth;let y=Math.max(e.label?g??0:0,e?.assetWidth??r),f="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:y,p="on"===e.constraint?f/e.imageAspectRatio:e?.assetHeight??s;e.width=Math.max(f,g??0);let{shapeSvg:u,bbox:m,label:x}=await o(t,e,"image-shape default"),$="t"===e.pos,b=-f/2,k=8*!!e.label,M=h.f.svg(u),S=(0,a.z)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let D=M.rectangle(b,-p/2,f,p,S),v=Math.max(f,m.width),B=p+m.height+k,N=M.rectangle(-v/2,-B/2,v,B,{...S,fill:"none",stroke:"none"}),C=u.insert(()=>D,":first-child"),A=u.insert(()=>N);if(e.img){let t=u.append("image");t.attr("href",e.img),t.attr("width",f),t.attr("height",p),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-f/2},${$?B/2-p:-B/2})`)}return x.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${$?-p/2-m.height/2-k/2:p/2-m.height/2+k/2})`),C.attr("transform",`translate(0,${$?m.height/2+k/2:-m.height/2-k/2})`),c(e,A),e.intersect=function(t){if(n.d.info("iconSquare intersect",e,t),!e.label)return w(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return R(e,r=$?[{x:a-m.width/2,y:l-i/2},{x:a+m.width/2,y:l-i/2},{x:a+m.width/2,y:l-i/2+m.height+k},{x:a+f/2,y:l-i/2+m.height+k},{x:a+f/2,y:l+i/2},{x:a-f/2,y:l+i/2},{x:a-f/2,y:l-i/2+m.height+k},{x:a-m.width/2,y:l-i/2+m.height+k}]:[{x:a-f/2,y:l-i/2},{x:a+f/2,y:l-i/2},{x:a+f/2,y:l-i/2+p},{x:a+m.width/2,y:l-i/2+p},{x:a+m.width/2/2,y:l+i/2},{x:a-m.width/2,y:l+i/2},{x:a-m.width/2,y:l-i/2+p},{x:a-f/2,y:l-i/2+p}],t)},u}async function tu(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:d,bbox:f}=await o(t,e,g(e)),p=Math.max(f.width+(s??0)*2,e?.width??0),u=Math.max(f.height+(n??0)*2,e?.height??0),w=[{x:0,y:0},{x:p,y:0},{x:p+3*u/6,y:-u},{x:-3*u/6,y:-u}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.f.svg(d),i=(0,a.z)(e,{}),r=y(w),n=t.path(r,i);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${u/2})`),m&&l.attr("style",m)}else l=H(d,p,u,w);return r&&l.attr("style",r),e.width=p,e.height=u,c(e,l),e.intersect=function(t){return R(e,w,t)},d}async function tw(t,e){let{shapeSvg:a,bbox:l,label:i}=await o(t,e,"label"),r=a.insert("rect",":first-child");return r.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),c(e,r),e.intersect=function(t){return w(e,t)},a}async function tm(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:d,bbox:f}=await o(t,e,g(e)),p=(e?.height??f.height)+n,u=(e?.width??f.width)+s,w=[{x:0,y:0},{x:u+3*p/6,y:0},{x:u,y:-p},{x:-(3*p)/6,y:-p}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.f.svg(d),i=(0,a.z)(e,{}),r=y(w),n=t.path(r,i);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),m&&l.attr("style",m)}else l=H(d,u,p,w);return r&&l.attr("style",r),e.width=u,e.height=p,c(e,l),e.intersect=function(t){return R(e,w,t)},d}async function tx(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:d,bbox:f}=await o(t,e,g(e)),p=(e?.height??f.height)+n,u=(e?.width??f.width)+s,w=[{x:-3*p/6,y:0},{x:u,y:0},{x:u+3*p/6,y:-p},{x:0,y:-p}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.f.svg(d),i=(0,a.z)(e,{}),r=y(w),n=t.path(r,i);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),m&&l.attr("style",m)}else l=H(d,u,p,w);return r&&l.attr("style",r),e.width=u,e.height=p,c(e,l),e.intersect=function(t){return R(e,w,t)},d}function t$(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.label="",e.labelStyle=l;let r=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=Math.max(35,e?.width??0),d=Math.max(35,e?.height??0),f=[{x:o,y:0},{x:0,y:d+3.5},{x:o-14,y:d+3.5},{x:0,y:2*d},{x:o,y:d-3.5},{x:14,y:d-3.5}],p=h.f.svg(r),u=(0,a.z)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let w=y(f),m=p.path(w,u),x=r.insert(()=>m,":first-child");return x.attr("class","outer-path"),s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${o/2},${-d})`),c(e,x),e.intersect=function(t){return n.d.info("lightningBolt intersect",e,t),R(e,f,t)},r}(0,n.p)(to,"hexagon"),(0,n.p)(td,"hourglass"),(0,n.p)(tc,"icon"),(0,n.p)(tg,"iconCircle"),(0,n.p)(ty,"iconRounded"),(0,n.p)(tf,"iconSquare"),(0,n.p)(tp,"imageSquare"),(0,n.p)(tu,"inv_trapezoid"),(0,n.p)(tw,"labelRect"),(0,n.p)(tm,"lean_left"),(0,n.p)(tx,"lean_right"),(0,n.p)(t$,"lightningBolt");var tb=(0,n.p)((t,e,a,l,i,r,n)=>`M${t},${e+r} a${i},${r} 0,0,0 ${a},0 a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l} M${t},${e+r+n} a${i},${r} 0,0,0 ${a},0`,"createCylinderPathD"),tk=(0,n.p)((t,e,a,l,i,r,n)=>`M${t},${e+r} M${t+a},${e+r} a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l} M${t},${e+r+n} a${i},${r} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tM=(0,n.p)((t,e,a,l,i,r)=>`M${t-a/2},${-l/2} a${i},${r} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tS(t,e){let l,{labelStyles:r,nodeStyles:n}=(0,a.u)(e);e.labelStyle=r;let s=e.padding??0,d="neo"===e.look?16:s,y="neo"===e.look?24:s;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-d,e.width<10&&(e.width=10),e.height=(e.height??0)-y-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:f,bbox:p,label:u}=await o(t,e,g(e)),m=(e?.width?e?.width:p.width)+2*d,x=m/2,$=x/(2.5+m/50),b=(e?.height?e?.height:p.height)+$+2*y,k=.1*b,{cssStyles:M}=e;if("handDrawn"===e.look){let t=h.f.svg(f),i=tk(0,0,m,b,x,$,k),r=tM(0,$,m,b,x,$),n=(0,a.z)(e,{}),s=t.path(i,n),o=t.path(r,n);f.insert(()=>o,":first-child").attr("class","line"),(l=f.insert(()=>s,":first-child")).attr("class","basic label-container"),M&&l.attr("style",M)}else{let t=tb(0,0,m,b,x,$,k);l=f.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,i.d)(M)).attr("style",n)}return l.attr("label-offset-y",$),l.attr("transform",`translate(${-m/2}, ${-(b/2+$)})`),c(e,l),u.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+$-(p.y-(p.top??0))})`),e.intersect=function(t){let a=w(e,t),l=a.x-(e.x??0);if(0!=x&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-$)){let i=$*$*(1-l*l/(x*x));i>0&&(i=Math.sqrt(i)),i=$-i,t.y-(e.y??0)>0&&(i=-i),a.y+=i}return a},f}async function tD(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;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:d,bbox:y,label:p}=await o(t,e,g(e)),u=(e?.width?e?.width:y.width)+(n??0)*2,w=(e?.height?e?.height:y.height)+(s??0)*2,m="neo"===e.look?w/4:w/8,x=w+m,{cssStyles:$}=e,b=h.f.svg(d),k=(0,a.z)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-u/2-u/2*.1,y:-x/2},{x:-u/2-u/2*.1,y:x/2},...f(-u/2-u/2*.1,x/2,u/2+u/2*.1,x/2,m,.8),{x:u/2+u/2*.1,y:-x/2},{x:-u/2-u/2*.1,y:-x/2},{x:-u/2,y:-x/2},{x:-u/2,y:x/2*1.1},{x:-u/2,y:-x/2}],S=b.polygon(M.map(t=>[t.x,t.y]),k),D=d.insert(()=>S,":first-child");return D.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-m/2})`),p.attr("transform",`translate(${-u/2+(e.padding??0)+u/2*.1/2-(y.x-(y.left??0))},${-w/2+(e.padding??0)-m/2-(y.y-(y.top??0))})`),c(e,D),e.intersect=function(t){return R(e,M,t)},d}async function tv(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,d="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*d,10),e.height=Math.max((e?.height??0)-2*s-2*d,10));let{shapeSvg:f,bbox:p,label:w}=await o(t,e,g(e)),m=(e?.width?e?.width:p.width)+2*n+2*d,x=(e?.height?e?.height:p.height)+2*s+2*d,$=m-2*d,b=x-2*d,k=-$/2,M=-b/2,{cssStyles:S}=e,D=h.f.svg(f),v=(0,a.z)(e,{}),B=[{x:k-d,y:M+d},{x:k-d,y:M+b+d},{x:k+$-d,y:M+b+d},{x:k+$-d,y:M+b},{x:k+$,y:M+b},{x:k+$,y:M+b-d},{x:k+$+d,y:M+b-d},{x:k+$+d,y:M-d},{x:k+d,y:M-d},{x:k+d,y:M},{x:k,y:M},{x:k,y:M+d}];"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let N=y(B),C=D.path(N,v),A=y([{x:k,y:M+d},{x:k+$-d,y:M+d},{x:k+$-d,y:M+b},{x:k+$,y:M+b},{x:k+$,y:M},{x:k,y:M}]),z=D.path(A,v);"handDrawn"!==e.look&&(C=u(C),z=u(z));let P=f.insert("g",":first-child");return P.insert(()=>C),P.insert(()=>z),P.attr("class","basic label-container outer-path"),S&&"handDrawn"!==e.look&&P.selectAll("path").attr("style",S),i&&"handDrawn"!==e.look&&P.selectAll("path").attr("style",i),w.attr("transform",`translate(${-(p.width/2)-d-(p.x-(p.left??0))}, ${-(p.height/2)+d-(p.y-(p.top??0))})`),c(e,P),e.intersect=function(t){return R(e,B,t)},f}async function tB(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,label:s}=await o(t,e,g(e)),d=e.padding??0,p="neo"===e.look?16:d,u="neo"===e.look?12:d,w=!0;(e.width||e.height)&&(w=!1,e.width=(e?.width??0)-2*p,e.height=(e?.height??0)-3*u);let m=Math.max(n.width,e?.width??0)+2*p,x=Math.max(n.height,e?.height??0)+3*u,$="neo"===e.look?x/4:x/8,b=x+(w?$/2:-$/2),k=-m/2,M=-b/2,{cssStyles:S}=e,D=f(k-10,M+b+10,k+m-10,M+b+10,$,.8),v=D?.[D.length-1],B=[{x:k-10,y:M+10},{x:k-10,y:M+b+10},...D,{x:k+m-10,y:v.y-10},{x:k+m,y:v.y-10},{x:k+m,y:v.y-20},{x:k+m+10,y:v.y-20},{x:k+m+10,y:M-10},{x:k+10,y:M-10},{x:k+10,y:M},{x:k,y:M},{x:k,y:M+10}],N=[{x:k,y:M+10},{x:k+m-10,y:M+10},{x:k+m-10,y:v.y-10},{x:k+m,y:v.y-10},{x:k+m,y:M},{x:k,y:M}],C=h.f.svg(r),A=(0,a.z)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let z=y(B),P=C.path(z,A),L=y(N),I=C.path(L,A),T=r.insert(()=>P,":first-child");return T.insert(()=>I),T.attr("class","basic label-container outer-path"),S&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",S),i&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-$/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-$/2-(n.y-(n.top??0))})`),c(e,T),e.intersect=function(t){return R(e,B,t)},r}async function tN(t,e,{config:{themeVariables:l}}){let{labelStyles:i,nodeStyles:n}=(0,a.u)(e);e.labelStyle=i,e.useHtmlLabels||(0,r.o)((0,r.N)())||(e.centerLabel=!0);let{shapeSvg:s,bbox:d,label:y}=await o(t,e,g(e)),f=Math.max(d.width+(e.padding??0)*2,e?.width??0),p=Math.max(d.height+(e.padding??0)*2,e?.height??0),{cssStyles:u}=e,m=h.f.svg(s),x=(0,a.z)(e,{fill:l.noteBkgColor,stroke:l.noteBorderColor});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let $=m.rectangle(-f/2,-p/2,f,p,x),b=s.insert(()=>$,":first-child");return b.attr("class","basic label-container outer-path"),y.attr("class","label noteLabel"),u&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",u),n&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",n),y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),c(e,b),e.intersect=function(t){return w(e,t)},s}(0,n.p)(tS,"linedCylinder"),(0,n.p)(tD,"linedWaveEdgedRect"),(0,n.p)(tv,"multiRect"),(0,n.p)(tB,"multiWaveEdgedRectangle"),(0,n.p)(tN,"note");var tC=(0,n.p)((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 tA(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let{shapeSvg:n,bbox:s}=await o(t,e,g(e)),d=s.width+(e.padding??0)+(s.height+(e.padding??0)),y=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=h.f.svg(n),i=(0,a.z)(e,{}),r=tC(0,0,d),s=t.path(r,i);l=n.insert(()=>s,":first-child").attr("transform",`translate(${-d/2+.5}, ${d/2})`),f&&l.attr("style",f)}else(l=H(n,d,d,y)).attr("transform",`translate(${-d/2+.5}, ${d/2})`);return r&&l.attr("style",r),c(e,l),e.calcIntersect=function(t,e){let a=t.width,l=R(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function tz(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?21:r??0,s="neo"===e.look?12:r??0,{shapeSvg:d,bbox:f,label:p}=await o(t,e,g(e)),u=(e?.width??f.width)+("neo"===e.look?2*n:n),w=(e?.height??f.height)+("neo"===e.look?2*s:s),m=-u/2,x=-w/2,$=x/2,b=[{x:m+$,y:x},{x:m,y:0},{x:m+$,y:-x},{x:-m,y:-x},{x:-m,y:x}],{cssStyles:k}=e,M=h.f.svg(d),S=(0,a.z)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let D=y(b),v=M.path(D,S),B=d.insert(()=>v,":first-child");return B.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-$/2},0)`),p.attr("transform",`translate(${-$/2-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),c(e,B),e.intersect=function(t){return R(e,b,t)},d}async function tR(t,e){let l,i,o,{labelStyles:d,nodeStyles:g}=(0,a.u)(e);e.labelStyle=d,l=e.cssClasses?"node "+e.cssClasses:"node default";let y=t.insert("g").attr("class",l).attr("id",e.domId||e.id),f=y.insert("g"),p=y.insert("g").attr("class","label").attr("style",g),u=e.description,$=e.label,b=await m(p,$,e.labelStyle,!0,!0),k={width:0,height:0};if((0,r.o)((0,r.z)())){let t=b.children[0],e=(0,s.f)(b);k=t.getBoundingClientRect(),e.attr("width",k.width),e.attr("height",k.height)}n.d.info("Text 2",u);let M=u||[],S=b.getBBox(),D=await m(p,Array.isArray(M)?M.join("<br/>"):M,e.labelStyle,!0,!0),v=D.children[0],B=(0,s.f)(D);k=v.getBoundingClientRect(),B.attr("width",k.width),B.attr("height",k.height);let N=(e.padding||0)/2;(0,s.f)(D).attr("transform","translate( "+(k.width>S.width?0:(S.width-k.width)/2)+", "+(S.height+N+5)+")"),(0,s.f)(b).attr("transform","translate( "+(k.width<S.width?0:-(S.width-k.width)/2)+", 0)"),k=p.node().getBBox(),p.attr("transform","translate("+-k.width/2+", "+(-k.height/2-N+3)+")");let C=k.width+(e.padding||0),A=k.height+(e.padding||0),z=-k.width/2-N,R=-k.height/2-N;if("handDrawn"===e.look){let t=h.f.svg(y),l=(0,a.z)(e,{}),r=t.path(x(z,R,C,A,e.rx||0),l),s=t.line(-k.width/2-N,-k.height/2-N+S.height+N,k.width/2+N,-k.height/2-N+S.height+N,l);o=y.insert(()=>(n.d.debug("Rough node insert CXC",r),s),":first-child"),i=y.insert(()=>(n.d.debug("Rough node insert CXC",r),r),":first-child")}else i=f.insert("rect",":first-child"),o=f.insert("line"),i.attr("class","outer title-state").attr("style",g).attr("x",-k.width/2-N).attr("y",-k.height/2-N).attr("width",k.width+(e.padding||0)).attr("height",k.height+(e.padding||0)),o.attr("class","divider").attr("x1",-k.width/2-N).attr("x2",k.width/2+N).attr("y1",-k.height/2-N+S.height+N).attr("y2",-k.height/2-N+S.height+N);return c(e,i),e.intersect=function(t){return w(e,t)},y}async function tP(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,i={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tt(t,e,i)}async function tL(t,e){let{labelStyles:l,nodeStyles:r}=(0,a.u)(e);e.labelStyle=l;let n="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0,{shapeSvg:d,bbox:y,label:f}=await o(t,e,g(e)),p=(e?.width??y.width)+2*n+("neo"===e.look?8:16),u=(e?.height??y.height)+2*s,m=p-8,x=8-p/2,$=-u/2,{cssStyles:b}=e,k=h.f.svg(d),M=(0,a.z)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let S=k.polygon([{x,y:$},{x:x+m,y:$},{x:x+m,y:$+u},{x:x-8,y:$+u},{x:x-8,y:$},{x,y:$},{x,y:$+u}].map(t=>[t.x,t.y]),M),D=d.insert(()=>S,":first-child");return D.attr("class","basic label-container outer-path").attr("style",(0,i.d)(b)),r&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),b&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),f.attr("transform",`translate(${4-y.width/2-(y.x-(y.left??0))}, ${-(y.height/2)-(y.y-(y.top??0))})`),c(e,D),e.intersect=function(t){return w(e,t)},d}async function tI(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;(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:d,bbox:f,label:p}=await o(t,e,g(e)),u=(e?.width?e?.width:f.width)+2*n,w=((e?.height?e?.height:f.height)+2*s)*1.5/1.5,m=-u/2,x=-w/2,{cssStyles:$}=e,b=h.f.svg(d),k=(0,a.z)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:m,y:x},{x:m,y:x+w},{x:m+u,y:x+w},{x:m+u,y:x-w/2}],S=y(M),D=b.path(S,k),v=d.insert(()=>D,":first-child");return v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",$),i&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(0, ${w/4})`),p.attr("transform",`translate(${-u/2+(e.padding??0)-(f.x-(f.left??0))}, ${-w/4+(e.padding??0)-(f.y-(f.top??0))})`),c(e,v),e.intersect=function(t){return R(e,M,t)},d}async function tT(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,i="neo"===e.look?12:a,r={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:i};return tt(t,e,r)}async function tH(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?20:r,s="neo"===e.look?12:r,{shapeSvg:d,bbox:f}=await o(t,e,g(e)),u=f.height+("neo"===e.look?2*s:s),w=f.width+u/4+("neo"===e.look?2*n:n),m=u/2,{cssStyles:x}=e,$=h.f.svg(d),b=(0,a.z)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-w/2+m,y:-u/2},{x:w/2-m,y:-u/2},...p(-w/2+m,0,m,50,90,270),{x:w/2-m,y:u/2},...p(w/2-m,0,m,50,270,450)],M=y(k),S=$.path(M,b),D=d.insert(()=>S,":first-child");return D.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",i),c(e,D),e.intersect=function(t){return R(e,k,t)},d}async function tE(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tt(t,e,a)}function tW(t,e,{config:{themeVariables:l}}){let{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let{cssStyles:n}=e,{lineColor:s,stateBorder:o,nodeBorder:d,nodeShadow:g}=l;(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 y=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),f=h.f.svg(y),p=(0,a.z)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let u=f.circle(0,0,e.width,{...p,stroke:s,strokeWidth:2}),w=o??d,m=(e.width??0)*5/14,x=f.circle(0,0,m,{...p,fill:w,stroke:w,strokeWidth:2,fillStyle:"solid"}),$=y.insert(()=>u,":first-child");if($.insert(()=>x),"handDrawn"!==e.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),r&&$.selectAll("path").attr("style",r),e.width<25&&g&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return c(e,$),e.intersect=function(t){return C(e,(e.width??0)/2,t)},y}function tq(t,e,{config:{themeVariables:l}}){let i,{lineColor:r,nodeShadow:n}=l;(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=h.f.svg(s).circle(0,0,e.width,(0,a.p)(r));(i=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(i=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";i.attr("style",`filter:url(#${a})`)}return c(e,i),e.intersect=function(t){return C(e,(e.width??7)/2,t)},s}async function tj(t,e){let{labelStyles:l,nodeStyles:r}=(0,a.u)(e);e.labelStyle=l;let n=e?.padding??8,s="neo"===e.look?28:n,d="neo"===e.look?12:n,{shapeSvg:y,bbox:f}=await o(t,e,g(e)),p=(e?.width??f.width)+16+s,u=(e?.height??f.height)+d,w=p-16,m=-p/2,x=-u/2,$=[{x:0,y:0},{x:w,y:0},{x:w,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:w+8,y:0},{x:w+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if("handDrawn"===e.look){let t=h.f.svg(y),l=(0,a.z)(e,{}),r=t.rectangle(m,x,w+16,u,l),n=t.line(m+8,x,m+8,x+u,l),s=t.line(m+8+w,x,m+8+w,x+u,l);y.insert(()=>n,":first-child"),y.insert(()=>s,":first-child");let o=y.insert(()=>r,":first-child"),{cssStyles:d}=e;o.attr("class","basic label-container").attr("style",(0,i.d)(d)),c(e,o)}else{let t=H(y,w,u,$);r&&t.attr("style",r),c(e,t)}return e.intersect=function(t){return R(e,$,t)},y}async function tO(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;(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:d,bbox:f}=await o(t,e,g(e)),p=(e?.height?e?.height:f.height)+2*s,u=.2*p,w=(e?.width?e?.width:f.width)+2*n+u-u,m=-w/2,x=-p/2,{cssStyles:$}=e,b=h.f.svg(d),k=(0,a.z)(e,{}),M=[{x:m-u/2,y:x},{x:m+w+u/2,y:x},{x:m+w+u/2,y:x+p},{x:m-u/2,y:x+p}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=y(M),D=b.path(S,k),v=y([{x:m+w-u/2,y:x+p},{x:m+w+u/2,y:x+p},{x:m+w+u/2,y:x+p-.2*p}]),B=b.path(v,{...k,fillStyle:"solid"}),N=d.insert(()=>B,":first-child");return N.insert(()=>D,":first-child"),N.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",i),c(e,N),e.intersect=function(t){return R(e,M,t)},d}async function t_(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,label:s}=await o(t,e,g(e)),d=Math.max(n.width+(e.padding??0)*2,e?.width??0),p=Math.max(n.height+(e.padding??0)*2,e?.height??0),u=p/8,w=.2*d,m=.2*p,x=p+u,{cssStyles:$}=e,b=h.f.svg(r),k=(0,a.z)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-d/2-d/2*.1,y:x/2},...f(-d/2-d/2*.1,x/2,d/2+d/2*.1,x/2,u,.8),{x:d/2+d/2*.1,y:-x/2},{x:-d/2-d/2*.1,y:-x/2}],S=-d/2+d/2*.1,D=-x/2-.4*m,v=[{x:S+d-w,y:(D+p)*1.3},{x:S+d,y:D+p-m},{x:S+d,y:(D+p)*.9},...f(S+d,(D+p)*1.25,S+d-w,(D+p)*1.3,-(.02*p),.5)],B=y(M),N=b.path(B,k),C=y(v),A=b.path(C,{...k,fillStyle:"solid"}),z=r.insert(()=>A,":first-child");return z.insert(()=>N,":first-child"),z.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&z.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&z.selectAll("path").attr("style",i),z.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-d/2+(e.padding??0)-(n.x-(n.left??0))},${-p/2+(e.padding??0)-u/2-(n.y-(n.top??0))})`),c(e,z),e.intersect=function(t){return R(e,M,t)},r}async function tF(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n}=await o(t,e,g(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),h=Math.max(n.height+(e.padding??0),e?.height||0),d=r.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),c(e,d),e.intersect=function(t){return w(e,t)},r}(0,n.p)(tA,"question"),(0,n.p)(tz,"rect_left_inv_arrow"),(0,n.p)(tR,"rectWithTitle"),(0,n.p)(tP,"roundedRect"),(0,n.p)(tL,"shadedProcess"),(0,n.p)(tI,"slopedRect"),(0,n.p)(tT,"squareRect"),(0,n.p)(tH,"stadium"),(0,n.p)(tE,"state"),(0,n.p)(tW,"stateEnd"),(0,n.p)(tq,"stateStart"),(0,n.p)(tj,"subroutine"),(0,n.p)(tO,"taggedRect"),(0,n.p)(t_,"taggedWaveEdgedRectangle"),(0,n.p)(tF,"text");var tX=(0,n.p)((t,e,a,l,i,r)=>`M${t},${e}
|
|
3
|
+
a${i},${r} 0,0,1 0,${-l}
|
|
4
|
+
l${a},0
|
|
5
|
+
a${i},${r} 0,0,1 0,${l}
|
|
6
|
+
M${a},${-l}
|
|
7
|
+
a${i},${r} 0,0,0 0,${l}
|
|
8
|
+
l${-a},0`,"createCylinderPathD"),tZ=(0,n.p)((t,e,a,l,i,r)=>`M${t},${e} M${t+a},${e} a${i},${r} 0,0,0 0,${-l} l${-a},0 a${i},${r} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),tV=(0,n.p)((t,e,a,l,i,r)=>`M${t+a/2},${-l/2} a${i},${r} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function tJ(t,e){let l,{labelStyles:r,nodeStyles:n}=(0,a.u)(e);e.labelStyle=r;let s=e.padding??0,d="neo"===e.look?12:s/2;if(e.width||e.height){let t=e.height??0;e.height=(e.height??0)-d,e.height<5&&(e.height=5),e.width=(e.width??0)-d-t/2/(2.5+t/50)*3,e.width<10&&(e.width=10)}let{shapeSvg:y,bbox:f,label:p}=await o(t,e,g(e)),u=(e.height?e.height:f.height)+d,m=u/2,x=m/(2.5+u/50),$=(e.width?e.width:f.width)+x+d,{cssStyles:b}=e;if("handDrawn"===e.look){let t=h.f.svg(y),i=tZ(0,0,$,u,x,m),r=tV(0,0,$,u,x,m),n=t.path(i,(0,a.z)(e,{})),s=t.path(r,(0,a.z)(e,{fill:"none"}));l=y.insert(()=>s,":first-child"),(l=y.insert(()=>n,":first-child")).attr("class","basic label-container"),b&&l.attr("style",b)}else{let t=tX(0,0,$,u,x,m);(l=y.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,i.d)(b)).attr("style",n)).attr("class","basic label-container outer-path"),b&&l.selectAll("path").attr("style",b),n&&l.selectAll("path").attr("style",n)}return l.attr("label-offset-x",x),l.attr("transform",`translate(${-$/2}, ${u/2} )`),p.attr("transform",`translate(${-(f.width/2)-x-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),c(e,l),e.intersect=function(t){let a=w(e,t),l=a.y-(e.y??0);if(0!=m&&(Math.abs(l)<(e.height??0)/2||Math.abs(l)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-x)){let i=x*x*(1-l*l/(m*m));0!=i&&(i=Math.sqrt(Math.abs(i))),i=x-i,t.x-(e.x??0)>0&&(i=-i),a.x+=i}return a},y}async function tY(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.u)(e);e.labelStyle=i;let n=e.padding??0,s=(e.look,n),d="neo"===e.look?2*n:n,{shapeSvg:f,bbox:p}=await o(t,e,g(e)),u=(e?.height??p.height)+s,w=(e?.width??p.width)+d,m=[{x:-3*u/6,y:0},{x:w+3*u/6,y:0},{x:w,y:-u},{x:0,y:-u}],{cssStyles:x}=e;if("handDrawn"===e.look){let t=h.f.svg(f),i=(0,a.z)(e,{}),r=y(m),n=t.path(r,i);l=f.insert(()=>n,":first-child").attr("transform",`translate(${-w/2}, ${u/2})`),x&&l.attr("style",x)}else l=H(f,w,u,m);return r&&l.attr("style",r),e.width=w,e.height=u,c(e,l),e.intersect=function(t){return R(e,m,t)},f}async function tG(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:d,bbox:f}=await o(t,e,g(e)),p=(e?.width?e?.width:f.width)+2*n,u=(e?.height?e?.height:f.height)+2*s,{cssStyles:w}=e,m=h.f.svg(d),x=(0,a.z)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let $=[{x:-p/2*.8,y:-u/2},{x:p/2*.8,y:-u/2},{x:p/2,y:-u/2*.6},{x:p/2,y:u/2},{x:-p/2,y:u/2},{x:-p/2,y:-u/2*.6}],b=y($),k=m.path(b,x),M=d.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),w&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",w),i&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",i),c(e,M),e.intersect=function(t){return R(e,$,t)},d}async function tQ(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let s=e.padding??0,d="neo"===e.look?2*s:s;(e.width||e.height)&&(e.width=((e?.width??0)-d)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:f,bbox:p,label:u}=await o(t,e,g(e)),w=(0,r.i)((0,r.z)().flowchart?.htmlLabels),m=(e?.width?e?.width:p.width)+d,x=e?.height?e?.height:m+p.height,$=[{x:0,y:0},{x:x,y:0},{x:x/2,y:-x}],{cssStyles:b}=e,k=h.f.svg(f),M=(0,a.z)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let S=y($),D=k.path(S,M),v=f.insert(()=>D,":first-child").attr("transform",`translate(${-x/2}, ${x/2})`).attr("class","outer-path");return b&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",b),i&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",i),e.width=m,e.height=x,c(e,v),u.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))}, ${x/2-(p.height+(e.padding??0)/(w?2:1)-(p.y-(p.top??0)))})`),e.intersect=function(t){return n.d.info("Triangle intersect",e,$,t),R(e,$,t)},f}async function tU(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,d=!0;(e.width||e.height)&&(d=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:p,bbox:u,label:w}=await o(t,e,g(e)),m=(e?.width?e?.width:u.width)+(n??0)*2,x=(e?.height?e?.height:u.height)+(s??0)*2,$="neo"===e.look?x/4:x/8,b=x+(d?$:-$),{cssStyles:k}=e,M=14-m,S=M>0?M/2:0,D=h.f.svg(p),v=(0,a.z)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let B=[{x:-m/2-S,y:b/2},...f(-m/2-S,b/2,m/2+S,b/2,$,.8),{x:m/2+S,y:-b/2},{x:-m/2-S,y:-b/2}],N=y(B),C=D.path(N,v),A=p.insert(()=>C,":first-child");return A.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-$/2})`),w.attr("transform",`translate(${-m/2+(e.padding??0)-(u.x-(u.left??0))},${-x/2+(e.padding??0)-$-(u.y-(u.top??0))})`),c(e,A),e.intersect=function(t){return R(e,B,t)},p}async function tK(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?20:r;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:d,bbox:p}=await o(t,e,g(e)),u=(e?.width?e?.width:p.width)+2*n,w=(e?.height?e?.height:p.height)+s,m=w/8,x=w+2*m,{cssStyles:$}=e,b=h.f.svg(d),k=(0,a.z)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-u/2,y:x/2},...f(-u/2,x/2,u/2,x/2,m,1),{x:u/2,y:-x/2},...f(u/2,-x/2,-u/2,-x/2,m,-1)],S=y(M),D=b.path(S,k),v=d.insert(()=>D,":first-child");return v.attr("class","basic label-container"),$&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),c(e,v),e.intersect=function(t){return R(e,M,t)},d}async function t0(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let r="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*r-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:d,label:y}=await o(t,e,g(e)),f=(e?.width?e?.width:d.width)+2*r+10,p=(e?.height?e?.height:d.height)+2*n+10,u=f-10,w=p-10,m=-u/2,x=-w/2,{cssStyles:$}=e,b=h.f.svg(s),k=(0,a.z)(e,{}),M=[{x:m-10,y:x-10},{x:m-10,y:x+w},{x:m+u,y:x+w},{x:m+u,y:x-10}],S=`M${m-10},${x-10} L${m+u},${x-10} L${m+u},${x+w} L${m-10},${x+w} L${m-10},${x-10}
|
|
9
|
+
M${m-10},${x} L${m+u},${x}
|
|
10
|
+
M${m},${x-10} L${m},${x+w}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=b.path(S,k),v=s.insert(()=>D,":first-child");return v.attr("transform","translate(5, 5)"),v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),y.attr("transform",`translate(${-(d.width/2)+5-(d.x-(d.left??0))}, ${-(d.height/2)+5-(d.y-(d.top??0))})`),c(e,v),e.intersect=function(t){return R(e,M,t)},s}(0,n.p)(tJ,"tiltedCylinder"),(0,n.p)(tY,"trapezoid"),(0,n.p)(tG,"trapezoidalPentagon"),(0,n.p)(tQ,"triangle"),(0,n.p)(tU,"waveEdgedRectangle"),(0,n.p)(tK,"waveRectangle"),(0,n.p)(t0,"windowPane");var t2=new Set(["redux-color","redux-dark-color"]),t1=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function t5(t,e){e.alias&&(e.label=e.alias);let{theme:l,themeVariables:n}=(0,r.N)(),{rowEven:o,rowOdd:d,nodeBorder:y,borderColorArray:f}=n;if("handDrawn"===e.look){let{themeVariables:a}=(0,r.N)(),{background:l}=a,i={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${l}`]};await t5(t,i)}let p=(0,r.N)();e.useHtmlLabels=p.htmlLabels;let u=p.er?.diagramPadding??10,m=p.er?.entityPadding??6,{cssStyles:x}=e,{labelStyles:$,nodeStyles:b}=(0,a.u)(e);if(0===e.attributes.length&&e.label){let a={rx:0,ry:0,labelPaddingX:u,labelPaddingY:1.5*u,classes:""};(0,i.h)(e.label,p)+2*a.labelPaddingX<p.er.minEntityWidth&&(e.width=p.er.minEntityWidth);let n=await tt(t,e,a);if(null!=l&&t2.has(l)){let t=e.colorIndex??0;n.attr("data-color-id",`color-${t%f.length}`)}if(!(0,r.i)(p.htmlLabels)){let t=n.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return n}p.htmlLabels||(u*=1.25,m*=1.25);let k=g(e);k||(k="node default");let M=t.insert("g").attr("class",k).attr("id",e.domId||e.id),S=await t8(M,e.label??"",p,0,0,["name"],$);S.height+=m;let D=0,v=[],B=[],N=0,C=0,A=0,z=0,R=!0,P=!0;for(let t of e.attributes){let e=await t8(M,t.type,p,0,D,["attribute-type"],$);N=Math.max(N,e.width+u);let a=await t8(M,t.name,p,0,D,["attribute-name"],$);C=Math.max(C,a.width+u);let l=await t8(M,t.keys.join(),p,0,D,["attribute-keys"],$);A=Math.max(A,l.width+u);let i=await t8(M,t.comment,p,0,D,["attribute-comment"],$);z=Math.max(z,i.width+u);let r=Math.max(e.height,a.height,l.height,i.height)+m;B.push({yOffset:D,rowHeight:r}),D+=r}let L=4;A<=u&&(R=!1,A=0,L--),z<=u&&(P=!1,z=0,L--);let I=M.node().getBBox();if(S.width+2*u-(N+C+A+z)>0){let t=S.width+2*u-(N+C+A+z);N+=t/L,C+=t/L,A>0&&(A+=t/L),z>0&&(z+=t/L)}let T=N+C+A+z,H=h.f.svg(M),E=(0,a.z)(e,{});"handDrawn"!==e.look&&(E.roughness=0,E.fillStyle="solid");let W=0;B.length>0&&(W=B.reduce((t,e)=>t+(e?.rowHeight??0),0));let q=Math.max(I.width+2*u,e?.width||0,T),j=Math.max((W??0)+S.height,e?.height||0),O=-q/2,_=-j/2;if(M.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,s.f)(a[e]),i=l.attr("transform"),r=0,n=0;if(i){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);t&&(r=parseFloat(t[1]),n=parseFloat(t[2]),l.attr("class").includes("attribute-name")?r+=N:l.attr("class").includes("attribute-keys")?r+=N+C:l.attr("class").includes("attribute-comment")&&(r+=N+C+A))}l.attr("transform",`translate(${O+u/2+r}, ${n+_+S.height+m/2})`)}),M.select(".name").attr("transform","translate("+-S.width/2+", "+(_+m/2)+")"),null!=l&&t2.has(l)){let t=e.colorIndex??0;M.attr("data-color-id",`color-${t%f.length}`)}let F=H.rectangle(O,_,q,j,E),X=M.insert(()=>F,":first-child").attr("class","outer-path").attr("style",x.join(""));for(let[t,e]of(v.push(0),B.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=H.rectangle(O,S.height+_+e?.yOffset,q,e?.rowHeight,{...E,fill:a?o:d,stroke:y});M.insert(()=>l,"g.label").attr("style",x.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let Z=t4(O,S.height+_,q+O,S.height+_,1e-4),V=H.polygon(Z.map(t=>[t.x,t.y]),E);if(M.insert(()=>V).attr("class","divider"),Z=t4(N+O,S.height+_,N+O,j+_,1e-4),V=H.polygon(Z.map(t=>[t.x,t.y]),E),M.insert(()=>V).attr("class","divider"),R){let t=N+C+O;Z=t4(t,S.height+_,t,j+_,1e-4),V=H.polygon(Z.map(t=>[t.x,t.y]),E),M.insert(()=>V).attr("class","divider")}if(P){let t=N+C+A+O;Z=t4(t,S.height+_,t,j+_,1e-4),V=H.polygon(Z.map(t=>[t.x,t.y]),E),M.insert(()=>V).attr("class","divider")}for(let t of v){let e=S.height+_+t;Z=t4(O,e,q+O,e,1e-4),V=H.polygon(Z.map(t=>[t.x,t.y]),E),M.insert(()=>V).attr("class","divider")}if(c(e,X),b&&"handDrawn"!==e.look)if(null!=l&&t1.has(l))M.selectAll("path").attr("style",b);else{let t=b.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");M.selectAll("path").attr("style",e??""),M.selectAll(".row-rect-even path").attr("style",b)}return e.intersect=function(t){return w(e,t)},M}async function t8(t,e,a,n=0,h=0,o=[],d=""){let c=t.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${n}, ${h})`).attr("style",d);e!==(0,r.Z)(e)&&(e=(e=(0,r.Z)(e)).replaceAll("<","<").replaceAll(">",">"));let g=c.node().appendChild(await (0,l.w)(c,e,{width:(0,i.h)(e,a)+100,style:d,useHtmlLabels:a.htmlLabels},a));if(e.includes("<")||e.includes(">")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let y=g.getBBox();if((0,r.i)(a.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,s.f)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function t4(t,e,a,l,i){return t===a?[{x:t-i/2,y:e},{x:t+i/2,y:e},{x:a+i/2,y:l},{x:a-i/2,y:l}]:[{x:t,y:e-i/2},{x:t,y:e+i/2},{x:a,y:l+i/2},{x:a,y:l-i/2}]}async function t3(t,e,a,l,i=a.class.padding??12){let r=3*!l,n=t.insert("g").attr("class",g(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,y=0,f=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await t6(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await t6(h,e,0,["font-weight: bolder"]);let p=h.node().getBBox();y=p.height,o=n.insert("g").attr("class","members-group text");let u=0;for(let t of e.members){let e=await t6(o,t,u,[t.parseClassifier()]);u+=e+r}(f=o.node().getBBox().height)<=0&&(f=i/2),d=n.insert("g").attr("class","methods-group text");let w=0;for(let t of e.methods){let e=await t6(d,t,w,[t.parseClassifier()]);w+=e+r}let m=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-p.width/2}, ${c})`),m=n.node().getBBox(),o.attr("transform",`translate(0, ${c+y+2*i})`),m=n.node().getBBox(),d.attr("transform",`translate(0, ${c+y+(f?f+4*i:2*i)})`),m=n.node().getBBox(),{shapeSvg:n,bbox:m}}async function t6(t,e,a,h=[]){let o,d=t.insert("g").attr("class","label").attr("style",h.join("; ")),c=(0,r.N)(),g="useHtmlLabels"in e?e.useHtmlLabels:(0,r.i)(c.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!g&&y.startsWith("\\")&&(y=y.substring(1)),(0,r.r)(y)&&(g=!0);let f=await (0,l.w)(d,(0,r.A)((0,i.Q)(y)),{width:(0,i.h)(y,c)+50,classes:"markdown-node-label",useHtmlLabels:g},c),p=1;if(g){let t=f.children[0],e=(0,s.f)(f);p=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(p+=t.innerHTML.split("<mrow>").length-1);let a=t.getElementsByTagName("img");if(a){let t=""===y.replace(/<img[^>]*>/g,"").trim();await Promise.all([...a].map(e=>new Promise(a=>{function l(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=5*parseInt(c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,10)+"px";e.style.minWidth=t,e.style.maxWidth=t}else e.style.width="100%";a(e)}(0,n.p)(l,"setupImage"),setTimeout(()=>{e.complete&&l()}),e.addEventListener("error",l),e.addEventListener("load",l)})))}o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}else{h.includes("font-weight: bolder")&&(0,s.f)(f).selectAll("tspan").attr("font-weight",""),p=f.children.length;let t=f.children[0];(""===f.textContent||f.textContent.includes(">"))&&(t.textContent=y[0]+y.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===y[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),o=f.getBBox()}return d.attr("transform","translate(0,"+(-o.height/(2*p)+a)+")"),o.height}async function t9(t,e){let l=(0,r.z)(),{themeVariables:i}=l,{useGradient:n}=i,o=l.class.padding??12,d=e.useHtmlLabels??(0,r.i)(l.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:g,bbox:y}=await t3(t,e,l,d,o),{labelStyles:f,nodeStyles:p}=(0,a.u)(e);e.labelStyle=f,e.cssStyles=e.styles||"";let u=e.styles?.join(";")||p||"";e.cssStyles||(e.cssStyles=u.replaceAll("!important","").split(";"));let m=0===e.members.length&&0===e.methods.length&&!l.class?.hideEmptyMembersBox,x=h.f.svg(g),$=(0,a.z)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let b=Math.max(e.width??0,y.width),k=Math.max(e.height??0,y.height),M=(e.height??0)>y.height;0===e.members.length&&0===e.methods.length?k+=o:e.members.length>0&&0===e.methods.length&&(k+=2*o);let S=-b/2,D=-k/2,v=m?2*o:0===e.members.length&&0===e.methods.length?-o:0;M&&(v=2*o);let B=x.rectangle(S-o,D-o-(m?o:0===e.members.length&&0===e.methods.length?-o/2:0),b+2*o,k+2*o+v,$),N=g.insert(()=>B,":first-child");N.attr("class","basic label-container outer-path");let C=N.node().getBBox(),A=g.select(".annotation-group").node().getBBox().height-(m?o/2:0)||0,z=g.select(".label-group").node().getBBox().height-(m?o/2:0)||0,R=g.select(".members-group").node().getBBox().height-(m?o/2:0)||0,P=(A+z+D+o-(D-o-(m?o:0===e.members.length&&0===e.methods.length?-o/2:0)))/2;if(g.selectAll(".text").each((t,a,i)=>{let r=(0,s.f)(i[a]),n=r.attr("transform"),h=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(h=parseFloat(t[2]))}let c=h+D+o-(m?o:0===e.members.length&&0===e.methods.length?-o/2:0);if(r.attr("class").includes("methods-group")){let t=Math.max(R,o/2);c=M?Math.max(P,A+z+t+D+2*o+o)+2*o:A+z+t+D+4*o+o}0===e.members.length&&0===e.methods.length&&l.class?.hideEmptyMembersBox&&(c=e.annotations.length>0?h-o:h),d||(c-=4);let y=S;(r.attr("class").includes("label-group")||r.attr("class").includes("annotation-group"))&&(y=-r.node()?.getBBox().width/2||0,g.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(y=0)})),r.attr("transform",`translate(${y}, ${c})`)}),e.members.length>0||e.methods.length>0||m){let t=A+z+D+o,a=x.line(C.x,t,C.x+C.width,t+.001,$);g.insert(()=>a).attr("class",`divider${"neo"===e.look&&!n?" neo-line":""}`).attr("style",u)}if(m||e.members.length>0||e.methods.length>0){let t=A+z+R+D+2*o+o,a=x.line(C.x,M?Math.max(P,t):t,C.x+C.width,(M?Math.max(P,t):t)+.001,$);g.insert(()=>a).attr("class",`divider${"neo"===e.look&&!n?" neo-line":""}`).attr("style",u)}if("handDrawn"!==e.look&&g.selectAll("path").attr("style",u),N.select(":nth-child(2)").attr("style",u),g.selectAll(".divider").select("path").attr("style",u),e.labelStyle?g.selectAll("span").attr("style",e.labelStyle):g.selectAll("span").attr("style",u),!d){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(u);if(e){let t=e[0].replace("color","fill");g.selectAll("tspan").attr("style",t)}else if(f){let e=t.exec(f);if(e){let t=e[0].replace("color","fill");g.selectAll("tspan").attr("style",t)}}}return c(e,N),e.intersect=function(t){return w(e,t)},g}async function t7(t,e){let l,{labelStyles:i,nodeStyles:n}=(0,a.u)(e);e.labelStyle=i;let o="verifyMethod"in e,d=g(e),{themeVariables:y}=(0,r.z)(),{borderColorArray:f,requirementEdgeLabelBackground:p}=y,u=t.insert("g").attr("class",d).attr("id",e.domId??e.id),m=l=o?await et(u,`<<${e.type}>>`,0,e.labelStyle):await et(u,"<<Element>>",0,e.labelStyle),x=await et(u,e.name,m,e.labelStyle+"; font-weight: bold;");if(m+=x+20,o){let t=await et(u,`${e.requirementId?`ID: ${e.requirementId}`:""}`,m,e.labelStyle);m+=t;let a=await et(u,`${e.text?`Text: ${e.text}`:""}`,m,e.labelStyle);m+=a;let l=await et(u,`${e.risk?`Risk: ${e.risk}`:""}`,m,e.labelStyle);m+=l,await et(u,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,m,e.labelStyle)}else{let t=await et(u,`${e.type?`Type: ${e.type}`:""}`,m,e.labelStyle);m+=t,await et(u,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,m,e.labelStyle)}let $=(u.node()?.getBBox().width??200)+20,b=(u.node()?.getBBox().height??200)+20,k=-$/2,M=-b/2,S=h.f.svg(u),D=(0,a.z)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let v=S.rectangle(k,M,$,b,D),B=u.insert(()=>v,":first-child");if(B.attr("class","basic label-container outer-path").attr("style",n),f?.length){let t=e.colorIndex??0;u.attr("data-color-id",`color-${t%f.length}`)}if(u.selectAll(".label").each((t,e,a)=>{let l=(0,s.f)(a[e]),i=l.attr("transform"),r=0,n=0;if(i){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);t&&(r=parseFloat(t[1]),n=parseFloat(t[2]))}let h=n-b/2,o=k+10;(0===e||1===e)&&(o=r),l.attr("transform",`translate(${o}, ${h+20})`)}),m>l+x+20){let t,a=M+l+x+20;if("neo"===e.look){let e=[[k,a],[k+$,a],[k+$,a+.001],[k,a+.001]];t=S.polygon(e,D)}else t=S.line(k,a,k+$,a,D);u.insert(()=>t).attr("class","divider")}return c(e,B),e.intersect=function(t){return w(e,t)},n&&"handDrawn"!==e.look&&(p||f?.length)&&u.selectAll("path").attr("style",n),u}async function et(t,e,a,n=""){let h;if(""===e)return 0;let o=t.insert("g").attr("class","label").attr("style",n),d=(0,r.z)(),c=d.htmlLabels??!0,g=await (0,l.w)(o,(0,r.A)((0,i.Q)(e)),{width:(0,i.h)(e,d)+50,classes:"markdown-node-label",useHtmlLabels:c,style:n},d);if(c){let t=g.children[0],e=(0,s.f)(g);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{for(let t of g.children[0].children)n&&t.setAttribute("style",n);h=g.getBBox(),h.height+=6}return o.attr("transform",`translate(${-h.width/2},${-h.height/2+a})`),h.height}(0,n.p)(t5,"erBox"),(0,n.p)(t8,"addText"),(0,n.p)(t4,"lineToPolygon"),(0,n.p)(t3,"textHelper"),(0,n.p)(t6,"addText"),(0,n.p)(t9,"classBox"),(0,n.p)(t7,"requirementBox"),(0,n.p)(et,"addText");var ee=(0,n.p)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ea(t,e,{config:l}){let i,r,n,s,{labelStyles:y,nodeStyles:f}=(0,a.u)(e);e.labelStyle=y||"";let p=e.width;e.width=(e.width??200)-10;let{shapeSvg:u,bbox:m,label:$}=await o(t,e,g(e)),b=e.padding||10,k="";"ticket"in e&&e.ticket&&l?.kanban?.ticketBaseUrl&&(k=l?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),i=u.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",k).attr("target","_blank"));let M={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};i?{label:r,bbox:n}=await d(i,"ticket"in e&&e.ticket||"",M):{label:r,bbox:n}=await d(u,"ticket"in e&&e.ticket||"",M);let{label:S,bbox:D}=await d(u,"assigned"in e&&e.assigned||"",M);e.width=p;let v=e?.width||0,B=Math.max(n.height,D.height)/2,N=Math.max(m.height+20,e?.height||0)+B,C=-v/2,A=-N/2;$.attr("transform","translate("+(b-v/2)+", "+(-B-m.height/2)+")"),r.attr("transform","translate("+(b-v/2)+", "+(-B+m.height/2)+")"),S.attr("transform","translate("+(b+v/2-D.width-20)+", "+(-B+m.height/2)+")");let{rx:z,ry:R}=e,{cssStyles:P}=e;if("handDrawn"===e.look){let t=h.f.svg(u),l=(0,a.z)(e,{}),i=z||R?t.path(x(C,A,v,N,z||0),l):t.rectangle(C,A,v,N,l);(s=u.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",P||null)}else{(s=u.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",f).attr("rx",z??5).attr("ry",R??5).attr("x",C).attr("y",A).attr("width",v).attr("height",N);let t="priority"in e&&e.priority;if(t){let e=u.append("line"),a=C+2,l=A+Math.floor((z??0)/2),i=A+N-Math.floor((z??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",i).attr("stroke-width","4").attr("stroke",ee(t))}}return c(e,s),e.height=N,e.intersect=function(t){return w(e,t)},u}async function el(t,e){let l,{labelStyles:r,nodeStyles:s}=(0,a.u)(e);e.labelStyle=r;let{shapeSvg:d,bbox:y,halfPadding:f,label:p}=await o(t,e,g(e)),u=y.width+10*f,m=y.height+8*f,x=.15*u,{cssStyles:$}=e,b=y.width+20,k=y.height+20,M=Math.max(u,b),S=Math.max(m,k);p.attr("transform",`translate(${-y.width/2}, ${-y.height/2})`);let D=`M0 0
|
|
11
|
+
a${x},${x} 1 0,0 ${.25*M},${-1*S*.1}
|
|
12
|
+
a${x},${x} 1 0,0 ${.25*M},0
|
|
13
|
+
a${x},${x} 1 0,0 ${.25*M},0
|
|
14
|
+
a${x},${x} 1 0,0 ${.25*M},${.1*S}
|
|
15
|
+
|
|
16
|
+
a${x},${x} 1 0,0 ${.15*M},${.33*S}
|
|
17
|
+
a${.8*x},${.8*x} 1 0,0 0,${.34*S}
|
|
18
|
+
a${x},${x} 1 0,0 ${-1*M*.15},${.33*S}
|
|
19
|
+
|
|
20
|
+
a${x},${x} 1 0,0 ${-1*M*.25},${.15*S}
|
|
21
|
+
a${x},${x} 1 0,0 ${-1*M*.25},0
|
|
22
|
+
a${x},${x} 1 0,0 ${-1*M*.25},0
|
|
23
|
+
a${x},${x} 1 0,0 ${-1*M*.25},${-1*S*.15}
|
|
24
|
+
|
|
25
|
+
a${x},${x} 1 0,0 ${-1*M*.1},${-1*S*.33}
|
|
26
|
+
a${.8*x},${.8*x} 1 0,0 0,${-1*S*.34}
|
|
27
|
+
a${x},${x} 1 0,0 ${.1*M},${-1*S*.33}
|
|
28
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=h.f.svg(d),r=(0,a.z)(e,{}),n=t.path(D,r);(l=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.d)($))}else l=d.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",D);return l.attr("transform",`translate(${-M/2}, ${-S/2})`),c(e,l),e.calcIntersect=function(t,e){return w(t,e)},e.intersect=function(t){return n.d.info("Bang intersect",e,t),w(e,t)},d}async function ei(t,e){let l,{labelStyles:r,nodeStyles:s}=(0,a.u)(e);e.labelStyle=r;let{shapeSvg:d,bbox:y,halfPadding:f,label:p}=await o(t,e,g(e)),u=y.width+2*f,m=y.height+2*f,x=.15*u,$=.25*u,b=.35*u,k=.2*u,{cssStyles:M}=e,S=`M0 0
|
|
29
|
+
a${x},${x} 0 0,1 ${.25*u},${-1*u*.1}
|
|
30
|
+
a${b},${b} 1 0,1 ${.4*u},${-1*u*.1}
|
|
31
|
+
a${$},${$} 1 0,1 ${.35*u},${.2*u}
|
|
32
|
+
|
|
33
|
+
a${x},${x} 1 0,1 ${.15*u},${.35*m}
|
|
34
|
+
a${k},${k} 1 0,1 ${-1*u*.15},${.65*m}
|
|
35
|
+
|
|
36
|
+
a${$},${x} 1 0,1 ${-1*u*.25},${.15*u}
|
|
37
|
+
a${b},${b} 1 0,1 ${-1*u*.5},0
|
|
38
|
+
a${x},${x} 1 0,1 ${-1*u*.25},${-1*u*.15}
|
|
39
|
+
|
|
40
|
+
a${x},${x} 1 0,1 ${-1*u*.1},${-1*m*.35}
|
|
41
|
+
a${k},${k} 1 0,1 ${.1*u},${-1*m*.65}
|
|
42
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=h.f.svg(d),r=(0,a.z)(e,{}),n=t.path(S,r);(l=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.d)(M))}else l=d.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",S);return p.attr("transform",`translate(${-y.width/2}, ${-y.height/2})`),l.attr("transform",`translate(${-u/2}, ${-m/2})`),c(e,l),e.calcIntersect=function(t,e){return w(t,e)},e.intersect=function(t){return n.d.info("Cloud intersect",e,t),w(e,t)},d}async function er(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.u)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,halfPadding:s,label:h}=await o(t,e,g(e)),d=n.width+8*s,y=n.height+2*s,f="neo"===e.look?`
|
|
43
|
+
M${-d/2} ${y/2-5}
|
|
44
|
+
v${-y+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${d-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${y-5}
|
|
49
|
+
H${-d/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-d/2} ${y/2-5}
|
|
53
|
+
v${-y+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${d-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${y-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(d-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);let p=r.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",f);return r.append("line").attr("class","node-line-").attr("x1",-d/2).attr("y1",y/2).attr("x2",d/2).attr("y2",y/2),h.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),r.append(()=>h.node()),c(e,p),e.calcIntersect=function(t,e){return w(t,e)},e.intersect=function(t){return w(e,t)},r}async function en(t,e){let a={padding:e.padding??0};return q(t,e,a)}(0,n.p)(ea,"kanbanItem"),(0,n.p)(el,"bang"),(0,n.p)(ei,"cloud"),(0,n.p)(er,"defaultMindmapNode"),(0,n.p)(en,"mindmapCircle");var es=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tT},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tP},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tH},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tj},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:K},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:te},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:q},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:el},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:ei},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tA},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:to},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tx},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tm},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:tY},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tu},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tl},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tF},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:E},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tL},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tq},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tW},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tn},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:td},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:F},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Z},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:J},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:t$},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:tU},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:ts},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:tJ},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tS},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Y},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ta},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:tQ},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ti},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:tG},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tr},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tI},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tB},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tv},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:T},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:O},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:t_},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tO},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tK},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tz},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tD}],eh=(0,n.p)(()=>Object.fromEntries([...Object.entries({state:tE,choice:W,note:tN,rectWithTitle:tR,labelRect:tw,iconSquare:tf,iconCircle:tg,icon:tc,iconRounded:ty,imageSquare:tp,anchor:P,kanbanItem:ea,mindmapCircle:en,defaultMindmapNode:er,classBox:t9,erBox:t5,requirementBox:t7}),...es.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function eo(t){return t in eh}(0,n.p)(eo,"isValidShape");var ed=new Map;async function ec(t,e,a){let l,r;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let n=e.shape?eh[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let i;"sandbox"===a.config.securityLevel?i="_top":e.linkTarget&&(i=e.linkTarget||"_blank"),l=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i??null),r=await n(l,e,a)}else l=r=await n(t,e,a);return l.attr("data-look",(0,i.d)(e.look)),e.tooltip&&r.attr("title",e.tooltip),ed.set(e.id,l),e.haveCallback&&l.attr("class",l.attr("class")+" clickable"),l}(0,n.p)(ec,"insertNode");var eg=(0,n.p)((t,e)=>{ed.set(e.id,t)},"setNodeElem"),ey=(0,n.p)(()=>{ed.clear()},"clear"),ef=(0,n.p)(t=>{let e=ed.get(t.id);n.d.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["M",0,B,"H",0,ey,"t",0,m,"h",0,v,"I",0,ec,"_",0,eo,"J",0,o,"N",0,ef,"k",0,eg,"q",0,c])}]);
|