@evoscientist/webui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/.next/BUILD_ID +1 -1
- package/dist/.next/build-manifest.json +8 -8
- package/dist/.next/server/app/_global-error/page/build-manifest.json +5 -5
- package/dist/.next/server/app/_global-error/page.js +2 -2
- package/dist/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_global-error.html +1 -1
- package/dist/.next/server/app/_global-error.rsc +7 -7
- package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/dist/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/dist/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found/page/build-manifest.json +5 -5
- package/dist/.next/server/app/_not-found/page.js +2 -2
- package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +12 -12
- package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/dist/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/api/memory/route.js +2 -2
- package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js +2 -2
- package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js +2 -2
- package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/install/route.js +2 -2
- package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/route.js +2 -2
- package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/download/route.js +2 -2
- package/dist/.next/server/app/api/workspace/file/route.js +2 -2
- package/dist/.next/server/app/api/workspace/route.js +2 -2
- package/dist/.next/server/app/api/workspace/upload/route.js +2 -2
- package/dist/.next/server/app/icon.png/route.js +2 -2
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +14 -14
- package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/dist/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/dist/.next/server/app/index.segments/_index.segment.rsc +7 -7
- package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/page/build-manifest.json +5 -5
- package/dist/.next/server/app/page.js +2 -2
- package/dist/.next/server/app/page.js.nft.json +1 -1
- package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/chunks/[externals]_next_dist_0arv.vj._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0-8pt0b._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__04y5ms7._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__08kko28._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0bpxd~j._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0cnmh23._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0j8-xkl._.js +3 -3
- package/dist/.next/server/chunks/[root-of-the-server]__0nngqla._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__0o.c5k_._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0pz~0wz._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__0s0~gzh._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0xoct7b._.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_evosci-config_route_actions_0nka7fr.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_memory_route_actions_0jf5z0q.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_catalog_route_actions_0pp.pug.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_detail_route_actions_02~v0so.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_install_route_actions_03-v3ve.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_route_actions_0kp0j6w.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_download_route_actions_0y83v2y.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_route_actions_0rc11bi.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_upload_route_actions_070kzk5.js +1 -1
- package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0dh.2jf.js +1 -1
- package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0firp2j.js +1 -1
- package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0qs61ly.js +1 -1
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_0xc8cuq._.js +106 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_12xi8w0._.js +66 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0d.k2tv._.js +136 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_02zfksy._.js +81 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0c30c1e._.js +3 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_07fd9jw._.js +155 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0a2sjhb._.js +79 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_0xpvx~c._.js +3 -0
- package/dist/.next/server/chunks/ssr/0t6k_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_01.5gnv._.js +82 -0
- package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_0ya3nf7._.js +92 -0
- package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_07c4~j8._.js +81 -0
- package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0i6u~cs._.js +117 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__01cqrhy._.js +2 -2
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__098zro9._.js +4 -4
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e_kl3j._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e~coys._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0lb9jwe._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0tcyn68._.js +2 -2
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wd7vkh._.js +32 -32
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wg-5yv._.js +3 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0zi~h76._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__1130a6w._.js +1 -1
- package/dist/.next/server/chunks/ssr/_03eop86._.js +2 -2
- package/dist/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js +1 -1
- package/dist/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js +1 -1
- package/dist/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_0-1grbb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_01cxuby._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_01g.ix5._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_05gcv18._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_06xkovd._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_07a8dl.._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_09.c5cb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_09w7yel._.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0_1jgqq._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0_ce7g1._.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_0cdeu-p._.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0g~jsln._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0h3oz6o._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0hsalo_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0hwzlhf._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0j48jbs._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0j5y4_5._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0j_qjbq._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0k~wgzn._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0m8d9.a._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0muum2-._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0n1oaty._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0nsd60y._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0pi1vzb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0q8gl61._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0qha24~._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0rb97t7._.js +45 -0
- package/dist/.next/server/chunks/ssr/node_modules_0rmdi2n._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0rs-at~._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0s8hn7e._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0usc4s9._.js +11 -0
- package/dist/.next/server/chunks/ssr/node_modules_0uteg8_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0ve5~h2._.js +31 -0
- package/dist/.next/server/chunks/ssr/node_modules_0vstvyn._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0x2wy7b._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0yo1ilw._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0z~-p3m._.js +38 -0
- package/dist/.next/server/chunks/ssr/node_modules_0~4gze7._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_13oabuj._.js +289 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_00zox90._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_048nvza._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0bqbkzr._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0iy4ann._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n~wpy6._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0rp8krb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0se--ys._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0v554rd._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12i5eeu._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0.ksprp._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00~7fbh._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01-g753._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_02.ao_s._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_yd3ib._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c.1f2e._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0l0_~d-._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0pjzhbh._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0uq.qxy._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13s5vbm._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0642y5z._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_097t5l0.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0w42f48._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0zuygmo._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0bclh9~._.js +129 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_11i~hhk._.js +7 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_0p4md.t._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_0p7as5d._.js +4 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_05x94.y._.js +203 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_0_foecb._.js +228 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0g3lwf.._.js +121 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_0.lzb4g._.js +12 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_041viuq._.js +62 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0h8ib.t._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0itw5kh._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0et-fze._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_12bfcsi._.js +82 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_0136c8y._.js +154 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_0z55106._.js +36 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0azazz~._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_0wzofym._.js +25 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_0rr2bb.._.js +6 -0
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_0xdsm99._.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_00t_ate.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_031v14j.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rc3ul_.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_0opq-c5.js +3 -0
- package/dist/.next/server/middleware-build-manifest.js +8 -8
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/static/chunks/0-.wbb-l7eg0y.js +1 -0
- package/dist/.next/static/chunks/0-6znc4v4kg4~.js +1 -0
- package/dist/.next/static/chunks/01ontipw7_pn-.js +1 -0
- package/dist/.next/static/chunks/038jxymv2x4u-.js +148 -0
- package/dist/.next/static/chunks/03l_lqxocp3uj.js +1 -0
- package/dist/.next/static/chunks/03lth2le32c6r.js +201 -0
- package/dist/.next/static/chunks/03v0v690_bw8u.js +62 -0
- package/dist/.next/static/chunks/03yru4-m-450t.js +1 -0
- package/dist/.next/static/chunks/06o.rsm2b~dht.js +60 -0
- package/dist/.next/static/chunks/07znaqalfuldz.js +127 -0
- package/dist/.next/static/chunks/08nzg~fbi7p-7.js +1 -0
- package/dist/.next/static/chunks/08o5wsrurx9ux.js +5 -0
- package/dist/.next/static/chunks/09~n7y-jkmjlj.js +152 -0
- package/dist/.next/static/chunks/0aqpm5mabssqz.js +1 -0
- package/dist/.next/static/chunks/0awsj.h.eiuen.js +1 -0
- package/dist/.next/static/chunks/0axtn1ln1j35_.js +79 -0
- package/dist/.next/static/chunks/0c5xj4q0jmdu0.js +1 -0
- package/dist/.next/static/chunks/0cs_h74-ljzlt.js +77 -0
- package/dist/.next/static/chunks/0cu8k_dz43e4y.js +1 -0
- package/dist/.next/static/chunks/0dcu67gngfgpb.js +4 -0
- package/dist/.next/static/chunks/0do2sl_ugmstg.js +10 -0
- package/dist/.next/static/chunks/0dsde0n1co0l..js +1 -0
- package/dist/.next/static/chunks/0e4xdug~7dxzk.js +1 -0
- package/dist/.next/static/chunks/0ez8v7k1e7v4o.js +1 -0
- package/dist/.next/static/chunks/0f8bbcvfh6x_j.js +64 -0
- package/dist/.next/static/chunks/0ge0mq0ea60lx.js +1 -0
- package/dist/.next/static/chunks/0gq18q-ip0uh2.js +90 -0
- package/dist/.next/static/chunks/0hq~c-~dp2g~1.js +1 -0
- package/dist/.next/static/chunks/0i8pgzf~hu-3m.js +24 -0
- package/dist/.next/static/chunks/0icpvuwlmnlty.js +43 -0
- package/dist/.next/static/chunks/0ipk1er3w80bj.js +24 -0
- package/dist/.next/static/chunks/0k9_1v72yx36d.js +226 -0
- package/dist/.next/static/chunks/0l3uvjh3oslhq.js +1 -0
- package/dist/.next/static/chunks/0lfej4svc~ist.js +1 -0
- package/dist/.next/static/chunks/0lmzx880lnpb..js +1 -0
- package/dist/.next/static/chunks/0luwdx.2p-x9e.js +31 -0
- package/dist/.next/static/chunks/0lypu-.xpph9..js +15 -0
- package/dist/.next/static/chunks/0mo3-obfy2_6v.js +15 -0
- package/dist/.next/static/chunks/0npm9l63~4j0v.js +1 -0
- package/dist/.next/static/chunks/0ortphe030oky.js +1 -0
- package/dist/.next/static/chunks/0oufb2b491l23.js +153 -0
- package/dist/.next/static/chunks/0p9rfgg_duajn.js +2 -0
- package/dist/.next/static/chunks/0ps77yd96walr.js +4 -0
- package/dist/.next/static/chunks/0qfu4h5g.k-yt.js +1 -0
- package/dist/.next/static/chunks/0qm2930z0c.8m.js +80 -0
- package/dist/.next/static/chunks/0rhp21-_6q-24.css +2 -0
- package/dist/.next/static/chunks/0rhvismtjivza.js +104 -0
- package/dist/.next/static/chunks/0rmt10l3458p_.js +93 -0
- package/dist/.next/static/chunks/0r~zu0c3j_b7p.js +1 -0
- package/dist/.next/static/chunks/0s0v8xobo-2ok.js +34 -0
- package/dist/.next/static/chunks/0s8nwq43gep9_.js +15 -0
- package/dist/.next/static/chunks/0spswjguxbqfn.js +1 -0
- package/dist/.next/static/chunks/0uc19zfv_v9-i.js +1 -0
- package/dist/.next/static/chunks/0uf5oxbpavywn.js +1 -0
- package/dist/.next/static/chunks/0v4i6jr6yqwgm.js +75 -0
- package/dist/.next/static/chunks/0wbhqz.-ey98b.js +1 -0
- package/dist/.next/static/chunks/0xxouzzjw_a6q.js +115 -0
- package/dist/.next/static/chunks/0ydl92ezt_ppz.js +1 -0
- package/dist/.next/static/chunks/0~.e-m04zn5l_.js +119 -0
- package/dist/.next/static/chunks/0~b.d.ay4u9zg.js +2 -0
- package/dist/.next/static/chunks/104yvyc1ce3q5.js +1 -0
- package/dist/.next/static/chunks/112qdnf547wz8.js +1 -0
- package/dist/.next/static/chunks/11_7qxlc92f5s.js +1 -0
- package/dist/.next/static/chunks/11h85j-8~tny3.js +36 -0
- package/dist/.next/static/chunks/11luuvvu~stmv.js +1 -0
- package/dist/.next/static/chunks/11uh-ttx4zin-.js +9 -0
- package/dist/.next/static/chunks/13mjf5q.pema_.js +2 -0
- package/dist/.next/static/chunks/14i46k409qlt0.js +1 -0
- package/dist/.next/static/chunks/14j238ax8coge.js +29 -0
- package/dist/.next/static/chunks/14u7twut.vmn5.js +1 -0
- package/dist/.next/static/chunks/159151ghv9-cc.js +1 -0
- package/dist/.next/static/chunks/15r_pfbdb2jhp.js +23 -0
- package/dist/.next/static/chunks/16m14x8k2fnon.js +287 -0
- package/dist/.next/static/chunks/16pzrphqjtyli.js +1 -0
- package/dist/.next/static/chunks/175hd_pl41_vh.js +15 -0
- package/dist/.next/static/chunks/182b_f_n0-cdr.js +1 -0
- package/dist/.next/static/chunks/187v8dzyf1l-f.js +80 -0
- package/dist/.next/static/chunks/turbopack-12mx7z-ex6m1h.js +1 -0
- package/dist/package.json +5 -1
- package/package.json +5 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__04-lgb_._.js +0 -3
- package/dist/.next/static/chunks/063f4u.4z~v2d.js +0 -1
- package/dist/.next/static/chunks/069oirf3gupp6.js +0 -1
- package/dist/.next/static/chunks/09j8za_6zxpaz.js +0 -31
- package/dist/.next/static/chunks/0cje14_narrpx.js +0 -4
- package/dist/.next/static/chunks/0fsi8lw5utejl.js +0 -1
- package/dist/.next/static/chunks/0jtueskz-y_9~.js +0 -2
- package/dist/.next/static/chunks/0lb2ln-m2_o~q.js +0 -1
- package/dist/.next/static/chunks/0njfd4s35t8hg.css +0 -2
- package/dist/.next/static/chunks/143yn1~y.nunv.js +0 -75
- package/dist/.next/static/chunks/15km7mt~t~zy4.js +0 -2
- package/dist/.next/static/chunks/turbopack-0yd~9xptp2nkd.js +0 -1
- /package/dist/.next/static/{IV8SswX1U52biTfmccIat → gkNr2MgYRz9rGG-3TWYFV}/_buildManifest.js +0 -0
- /package/dist/.next/static/{IV8SswX1U52biTfmccIat → gkNr2MgYRz9rGG-3TWYFV}/_clientMiddlewareManifest.js +0 -0
- /package/dist/.next/static/{IV8SswX1U52biTfmccIat → gkNr2MgYRz9rGG-3TWYFV}/_ssgManifest.js +0 -0
|
@@ -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.__name)(async(t,a,n)=>{let h,o=a.useHtmlLabels||(0,r.evaluate)((0,r.getConfig2)()?.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.handleUndefinedAttr)(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.createText)(c,(0,r.sanitizeText)((0,i.decodeEntities)(h),(0,r.getConfig2)()),{useHtmlLabels:o,width:a.width||(0,r.getConfig2)().flowchart?.wrappingWidth,classes:y?"markdown-node-label":"",style:a.labelStyle,addSvgBackground:g,markdown:y},(0,r.getConfig2)()),u=f.getBBox(),m=(a?.padding??0)/2;if(o){let t=f.children[0],a=(0,s.select)(f);await (0,e.configureLabelImages)(t,h),u=t.getBoundingClientRect(),a.attr("width",u.width),a.attr("height",u.height)}return o?c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):c.attr("transform","translate(0, "+-u.height/2+")"),a.centerLabel&&c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:d,bbox:u,halfPadding:m,label:c}},"labelHelper"),d=(0,n.__name)(async(t,e,a)=>{let n=a.useHtmlLabels??(0,r.getEffectiveHtmlLabels)((0,r.getConfig2)()),h=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),o=await (0,l.createText)(h,(0,r.sanitizeText)((0,i.decodeEntities)(e),(0,r.getConfig2)()),{useHtmlLabels:n,width:a.width||(0,r.getConfig2)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=o.getBBox(),c=a.padding/2;if((0,r.getEffectiveHtmlLabels)((0,r.getConfig2)())){let t=o.children[0],e=(0,s.select)(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.__name)((t,e)=>{let a=e.node().getBBox();t.width=a.width,t.height=a.height},"updateNodeBounds"),g=(0,n.__name)((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 u(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 m(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.__name)((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.__name)(y,"createPathFromPoints"),(0,n.__name)(f,"generateFullSineWavePoints"),(0,n.__name)(u,"generateCirclePoints"),(0,n.__name)(m,"mergePaths");var w=(0,n.__name)((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"),p=(0,n.__name)(async(t,e,a,i=!1,n=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);let h=(0,r.getConfig2)(),o=(0,r.getEffectiveHtmlLabels)(h);return await (0,l.createText)(t,s,{style:a,isTitle:i,useHtmlLabels:o,markdown:!1,isNode:n,width:1/0},h)},"createLabel"),x=(0,n.__name)((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"),b=(0,n.__name)(async(t,i)=>{let o,d;n.log.info("Creating subgraph rect for ",i.id,i);let c=(0,r.getConfig2)(),{themeVariables:g,handDrawnSeed:y}=c,{clusterBkg:f,clusterBorder:u}=g,{labelStyles:m,nodeStyles:b,borderStyles:$,backgroundStyles:k}=(0,a.styles2String)(i),_=t.insert("g").attr("class","cluster "+i.cssClasses).attr("id",i.domId).attr("data-look",i.look),S=(0,r.getEffectiveHtmlLabels)(c),v=_.insert("g").attr("class","cluster-label "),M=(o="markdown"===i.labelType?await (0,l.createText)(v,i.label,{style:i.labelStyle,useHtmlLabels:S,isNode:!0,width:i.width}):await p(v,i.label,i.labelStyle||"",!1,!0)).getBBox();if((0,r.getEffectiveHtmlLabels)(c)){let t=o.children[0],e=(0,s.select)(o);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let N=i.width<=M.width+i.padding?M.width+i.padding:i.width;i.width<=M.width+i.padding?i.diff=(N-i.width)/2-i.padding:i.diff=-i.padding;let D=i.height,C=i.x-N/2,B=i.y-D/2;if(n.log.trace("Data ",i,JSON.stringify(i)),"handDrawn"===i.look){let t=h.default.svg(_),e=(0,a.userNodeOverrides)(i,{roughness:.7,fill:f,stroke:u,fillWeight:3,seed:y}),l=t.path(x(C,B,N,D,0),e);(d=_.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",$.join(";")),d.select("path").attr("style",k.join(";").replace("fill","stroke"))}else(d=_.insert("rect",":first-child")).attr("style",b).attr("rx",i.rx).attr("ry",i.ry).attr("x",C).attr("y",B).attr("width",N).attr("height",D);let{subGraphTitleTopMargin:A}=(0,e.getSubGraphTitleMargins)(c);if(v.attr("transform",`translate(${i.x-M.width/2}, ${i.y-i.height/2+A})`),m){let t=v.select("span");t&&t.attr("style",m)}let L=d.node().getBBox();return i.offsetX=0,i.width=L.width,i.height=L.height,i.offsetY=M.height-i.padding/2,i.intersect=function(t){return w(i,t)},{cluster:_,labelBBox:M}},"rect"),$=(0,n.__name)((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.__name)(async(t,e)=>{let a,l=(0,r.getConfig2)(),{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"),u=y.insert("g").attr("class","cluster-label"),m=y.append("rect"),b=await p(u,e.label,e.labelStyle,void 0,!0),$=b.getBBox();if((0,r.getEffectiveHtmlLabels)(l)){let t=b.children[0],e=(0,s.select)(b);$=t.getBoundingClientRect(),e.attr("width",$.width),e.attr("height",$.height)}let k=0*e.padding,_=(e.width<=$.width+e.padding?$.width+e.padding:e.width)+k;e.width<=$.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+k,v=e.height+k-$.height-6,M=e.x-_/2,N=e.y-S/2;e.width=_;let D=e.y-e.height/2-k/2+$.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),l=h.default.svg(y),i=e.rx||e.ry?l.path(x(M,N,_,S,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:g,seed:n}):l.rectangle(M,N,_,S,{seed:n});a=y.insert(()=>i,":first-child");let r=l.rectangle(M,D,_,v,{fill:t?o:d,fillStyle:t?"hachure":"solid",stroke:g,seed:n});a=y.insert(()=>i,":first-child"),m=y.insert(()=>r)}else(a=f.insert("rect",":first-child")).attr("class","outer").attr("x",M).attr("y",N).attr("width",_).attr("height",S).attr("data-look",e.look),m.attr("class","inner").attr("x",M).attr("y",D).attr("width",_).attr("height",v);return u.attr("transform",`translate(${e.x-$.width/2}, ${N+1-3*!(0,r.getEffectiveHtmlLabels)(l)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=$.height-e.padding/2,e.labelBBox=$,e.intersect=function(t){return w(e,t)},{cluster:y,labelBBox:$}},"roundedWithTitle"),_=(0,n.__name)(async(t,i)=>{let o;n.log.info("Creating subgraph rect for ",i.id,i);let d=(0,r.getConfig2)(),{themeVariables:c,handDrawnSeed:g}=d,{clusterBkg:y,clusterBorder:f}=c,{labelStyles:u,nodeStyles:m,borderStyles:p,backgroundStyles:b}=(0,a.styles2String)(i),$=t.insert("g").attr("class","cluster "+i.cssClasses).attr("id",i.domId).attr("data-look",i.look),k=(0,r.getEffectiveHtmlLabels)(d),_=$.insert("g").attr("class","cluster-label "),S=await (0,l.createText)(_,i.label,{style:i.labelStyle,useHtmlLabels:k,isNode:!0,width:i.width}),v=S.getBBox();if((0,r.getEffectiveHtmlLabels)(d)){let t=S.children[0],e=(0,s.select)(S);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}let M=i.width<=v.width+i.padding?v.width+i.padding:i.width;i.width<=v.width+i.padding?i.diff=(M-i.width)/2-i.padding:i.diff=-i.padding;let N=i.height,D=i.x-M/2,C=i.y-N/2;if(n.log.trace("Data ",i,JSON.stringify(i)),"handDrawn"===i.look){let t=h.default.svg($),e=(0,a.userNodeOverrides)(i,{roughness:.7,fill:y,stroke:f,fillWeight:4,seed:g}),l=t.path(x(D,C,M,N,i.rx),e);(o=$.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),o.select("path").attr("style",b.join(";").replace("fill","stroke"))}else(o=$.insert("rect",":first-child")).attr("style",m).attr("rx",i.rx).attr("ry",i.ry).attr("x",D).attr("y",C).attr("width",M).attr("height",N);let{subGraphTitleTopMargin:B}=(0,e.getSubGraphTitleMargins)(d);if(_.attr("transform",`translate(${i.x-v.width/2}, ${i.y-i.height/2+B})`),u){let t=_.select("span");t&&t.attr("style",u)}let A=o.node().getBBox();return i.offsetX=0,i.width=A.width,i.height=A.height,i.offsetY=v.height-i.padding/2,i.intersect=function(t){return w(i,t)},{cluster:$,labelBBox:v}},"kanbanSection"),S={rect:b,squareRect:b,roundedWithTitle:k,noteGroup:$,divider:(0,n.__name)((t,e)=>{let a,{themeVariables:l,handDrawnSeed:i}=(0,r.getConfig2)(),{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.default.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:_},v=new Map,M=(0,n.__name)(async(t,e)=>{let a=e.shape||"rect",l=await S[a](t,e);return v.set(e.id,l),l},"insertCluster"),N=(0,n.__name)(()=>{v=new Map},"clear");function D(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 D(t,e,e,a)}function B(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&&A(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)&&A(g,y))return;let f=i*d-o*r;if(0===f)return;let u=Math.abs(f/2),m=r*c-d*n;return{x:m<0?(m-u)/f:(m+u)/f,y:(m=o*n-i*c)<0?(m-u)/f:(m+u)/f}}}function A(t,e){return t*e>0}function L(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=B(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.__name)(function(t,e){return t.intersect(e)},"intersectNode"),(0,n.__name)(D,"intersectEllipse"),(0,n.__name)(C,"intersectCircle"),(0,n.__name)(B,"intersectLine"),(0,n.__name)(A,"sameSign"),(0,n.__name)(L,"intersectPolygon");function R(t,e){let{labelStyles:l}=(0,a.styles2String)(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.default.svg(o),f=(0,a.userNodeOverrides)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);let u=y.circle(0,0,2,f),m=o.insert(()=>u,":first-child");return m.attr("class","anchor").attr("style",(0,i.handleUndefinedAttr)(d)),c(e,m),e.intersect=function(t){return n.log.info("Circle intersect",e,1,t),C(e,1,t)},o}function O(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 P(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.styles2String)(e);e.labelStyle=l;let r=e.padding??0,s="neo"===e.look?16:r,d="neo"===e.look?12:r,f=(0,n.__name)(t=>t+d,"calcTotalHeight"),u=(0,n.__name)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:m,bbox:w}=await o(t,e,g(e)),p=f(e?.height?e?.height:w.height),[x,b]=u(p),$=P(p,x,b),k=(e?.width?e?.width:w.width)+2*s+$-$,{cssStyles:_}=e,S=[{x:k/2,y:-p/2},{x:-k/2,y:-p/2},...O(-k/2,-p/2,-k/2,p/2,x,b,!1),{x:k/2,y:p/2},...O(k/2,p/2,k/2,-p/2,x,b,!0)],v=h.default.svg(m),M=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let N=y(S),D=v.path(N,M),C=m.insert(()=>D,":first-child");return C.attr("class","basic label-container outer-path"),_&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",_),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 L(e,S,t)},m}function I(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.styles2String)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?28:n,d="neo"===e.look?24:n,{shapeSvg:f,bbox:u}=await o(t,e,g(e)),m=(e?.width??u.width)+("neo"===e.look?2*s:s+12),w=(e?.height??u.height)+("neo"===e.look?2*d:d),p=-w,x=[{x:12,y:p},{x:m,y:p},{x:m,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}],{cssStyles:b}=e;if("handDrawn"===e.look){let t=h.default.svg(f),i=(0,a.userNodeOverrides)(e,{}),r=y(x),n=t.path(r,i);l=f.insert(()=>n,":first-child").attr("transform",`translate(${-m/2}, ${w/2})`),b&&l.attr("style",b)}else l=I(f,m,w,x);return r&&l.attr("style",r),c(e,l),e.intersect=function(t){return L(e,x,t)},f}function H(t,e){let{nodeStyles:l}=(0,a.styles2String)(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.default.svg(i),d=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let c=y(s),f=o.path(c,d),u=i.insert(()=>f,":first-child");return r&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",r),l&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",l),e.width=28,e.height=28,e.intersect=function(t){return L(e,s,t)},i}async function W(t,e,l){let r,{labelStyles:s,nodeStyles:d}=(0,a.styles2String)(e);e.labelStyle=s;let{shapeSvg:y,bbox:f,halfPadding:u}=await o(t,e,g(e)),m=l?.padding??u,w="neo"===e.look?f.width/2+32:f.width/2+m,{cssStyles:p}=e;if("handDrawn"===e.look){let t=h.default.svg(y),l=(0,a.userNodeOverrides)(e,{}),n=t.circle(0,0,2*w,l);(r=y.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.handleUndefinedAttr)(p))}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.log.info("Circle intersect",e,w,t),C(e,w,t)},y}function q(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 j(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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.default.svg(r),y=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let f=d.circle(0,0,2*s,y),u=q(s),m=d.path(u,y),w=r.insert(()=>f,":first-child");return w.insert(()=>m),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.log.info("crossedCircle intersect",e,{radius:s,point:t}),C(e,s,t)},r}function z(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 U(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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,u=n.width+d,m=n.height+f,w=Math.max(5,.1*m),{cssStyles:p}=e,x=[...z(u/2,-m/2,w,30,-90,0),{x:-u/2-w,y:w},...z(u/2+2*w,-w,w,20,-180,-270),...z(u/2+2*w,w,w,20,-90,-180),{x:-u/2-w,y:-m/2},...z(u/2,m/2,w,20,0,90)],b=[{x:u/2,y:-m/2-w},{x:-u/2,y:-m/2-w},...z(u/2,-m/2,w,20,-90,0),{x:-u/2-w,y:-w},...z(u/2+.1*u,-w,w,20,-180,-270),...z(u/2+.1*u,w,w,20,-90,-180),{x:-u/2-w,y:m/2},...z(u/2,m/2,w,20,0,90),{x:-u/2,y:m/2+w},{x:u/2,y:m/2+w}],$=h.default.svg(r),k=(0,a.userNodeOverrides)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=y(x).replace("Z",""),S=$.path(_,k),v=y(b),M=$.path(v,{...k}),N=r.insert("g",":first-child");return N.insert(()=>M,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(${w}, 0)`),s.attr("transform",`translate(${-u/2+w-(n.x-(n.left??0))},${-m/2+(e.padding??0)/2-(n.y-(n.top??0))})`),c(e,N),e.intersect=function(t){return L(e,b,t)},r}function F(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 V(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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,u=n.width+("neo"===e.look?2*d:d),m=n.height+("neo"===e.look?2*f:f),w=Math.max(5,.1*m),{cssStyles:p}=e,x=[...F(u/2,-m/2,w,20,-90,0),{x:u/2+w,y:-w},...F(u/2+2*w,-w,w,20,-180,-270),...F(u/2+2*w,w,w,20,-90,-180),{x:u/2+w,y:m/2},...F(u/2,m/2,w,20,0,90)],b=[{x:-u/2,y:-m/2-w},{x:u/2,y:-m/2-w},...F(u/2,-m/2,w,20,-90,0),{x:u/2+w,y:-w},...F(u/2+2*w,-w,w,20,-180,-270),...F(u/2+2*w,w,w,20,-90,-180),{x:u/2+w,y:m/2},...F(u/2,m/2,w,20,0,90),{x:u/2,y:m/2+w},{x:-u/2,y:m/2+w}],$=h.default.svg(r),k=(0,a.userNodeOverrides)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=y(x).replace("Z",""),S=$.path(_,k),v=y(b),M=$.path(v,{...k}),N=r.insert("g",":first-child");return N.insert(()=>M,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(${-w}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(n.x-(n.left??0))},${-m/2+(e.padding??0)/2-(n.y-(n.top??0))})`),c(e,N),e.intersect=function(t){return L(e,b,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 G(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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,u=n.width+("neo"===e.look?2*d:d),m=n.height+("neo"===e.look?2*f:f),w=Math.max(5,.1*m),{cssStyles:p}=e,x=[...X(u/2,-m/2,w,30,-90,0),{x:-u/2-w,y:w},...X(u/2+2*w,-w,w,20,-180,-270),...X(u/2+2*w,w,w,20,-90,-180),{x:-u/2-w,y:-m/2},...X(u/2,m/2,w,20,0,90)],b=[...X(-u/2+w+w/2,-m/2,w,20,-90,-180),{x:u/2-w/2,y:w},...X(-u/2-w/2,-w,w,20,0,90),...X(-u/2-w/2,w,w,20,-90,0),{x:u/2-w/2,y:-w},...X(-u/2+w+w/2,m/2,w,30,-180,-270)],$=[{x:u/2,y:-m/2-w},{x:-u/2,y:-m/2-w},...X(u/2,-m/2,w,20,-90,0),{x:-u/2-w,y:-w},...X(u/2+2*w,-w,w,20,-180,-270),...X(u/2+2*w,w,w,20,-90,-180),{x:-u/2-w,y:m/2},...X(u/2,m/2,w,20,0,90),{x:-u/2,y:m/2+w},{x:u/2-w-w/2,y:m/2+w},...X(-u/2+w+w/2,-m/2,w,20,-90,-180),{x:u/2-w/2,y:w},...X(-u/2-w/2,-w,w,20,0,90),...X(-u/2-w/2,w,w,20,-90,0),{x:u/2-w/2,y:-w},...X(-u/2+w+w/2,m/2,w,30,-180,-270)],k=h.default.svg(r),_=(0,a.userNodeOverrides)(e,{fill:"none"});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");let S=y(x).replace("Z",""),v=k.path(S,_),M=y(b).replace("Z",""),N=k.path(M,_),D=y($),C=k.path(D,{..._}),B=r.insert("g",":first-child");return B.insert(()=>C,":first-child").attr("stroke-opacity",0),B.insert(()=>v,":first-child"),B.insert(()=>N,":first-child"),B.attr("class","text"),p&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${w-w/4}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(n.x-(n.left??0))},${-m/2+(e.padding??0)/2-(n.y-(n.top??0))})`),c(e,B),e.intersect=function(t){return L(e,$,t)},r}async function Z(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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)),m=Math.max(20,(f.width+2*n)*1.25,e?.width??0),w=Math.max(5,f.height+2*s,e?.height??0),p=w/2,{cssStyles:x}=e,b=h.default.svg(d),$=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=m-p,_=w/4,S=[{x:k,y:0},{x:_,y:0},{x:0,y:w/2},{x:_,y:w},{x:k,y:w},...u(-k,-w/2,p,50,270,90)],v=y(S),M=b.path(v,$),N=d.insert(()=>M,":first-child");return N.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&N.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&N.selectChildren("path").attr("style",i),N.attr("transform",`translate(${-m/2}, ${-w/2})`),c(e,N),e.intersect=function(t){return L(e,S,t)},d}(0,n.__name)(R,"anchor"),(0,n.__name)(O,"generateArcPoints"),(0,n.__name)(P,"calculateArcSagitta"),(0,n.__name)(T,"bowTieRect"),(0,n.__name)(I,"insertPolygonShape"),(0,n.__name)(E,"card"),(0,n.__name)(H,"choice"),(0,n.__name)(W,"circle"),(0,n.__name)(q,"createLine"),(0,n.__name)(j,"crossedCircle"),(0,n.__name)(z,"generateCirclePoints"),(0,n.__name)(U,"curlyBraceLeft"),(0,n.__name)(F,"generateCirclePoints"),(0,n.__name)(V,"curlyBraceRight"),(0,n.__name)(X,"generateCirclePoints"),(0,n.__name)(G,"curlyBraces"),(0,n.__name)(Z,"curvedTrapezoid");var Y=(0,n.__name)((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"),J=(0,n.__name)((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"),K=(0,n.__name)((t,e,a,l,i,r)=>`M${t-a/2},${-l/2} a${i},${r} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function Q(t,e){let l,{labelStyles:r,nodeStyles:n}=(0,a.styles2String)(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:u,label:m}=await o(t,e,g(e)),p=(e.width?e.width:u.width)+y,x=p/2,b=x/(2.5+p/50),$=(e.height?e.height:u.height)+d+b,{cssStyles:k}=e;if("handDrawn"===e.look){let t=h.default.svg(f),i=J(0,0,p,$,x,b),r=K(0,b,p,$,x,b),n=(0,a.userNodeOverrides)(e,{}),s=t.path(i,n),o=t.path(r,(0,a.userNodeOverrides)(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=Y(0,0,p,$,x,b);l=f.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,i.handleUndefinedAttr)(k)).attr("style",n)}return l.attr("label-offset-y",b),l.attr("transform",`translate(${-p/2}, ${-($/2+b)})`),c(e,l),m.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(e.padding??0)/1.5-(u.y-(u.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-b)){let i=b*b*(1-l*l/(x*x));i>0&&(i=Math.sqrt(i)),i=b-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.styles2String)(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),u=Math.max(y.height+2*l.labelPaddingY,e?.height||0),m=-f/2,p=-u/2,{rx:b,ry:$}=e,{cssStyles:k}=e;if(l?.rx&&l.ry&&(b=l.rx,$=l.ry),"handDrawn"===e.look){let t=h.default.svg(d),l=(0,a.userNodeOverrides)(e,{}),n=b||$?t.path(x(m,p,f,u,b||0),l):t.rectangle(m,p,f,u,l);(r=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.handleUndefinedAttr)(k))}else(r=d.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,i.handleUndefinedAttr)(b)).attr("ry",(0,i.handleUndefinedAttr)($)).attr("x",m).attr("y",p).attr("width",f).attr("height",u);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.default.svg(d),l=(0,a.userNodeOverrides)(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.styles2String)(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,u=d.height+n,m=.2*u,p=-f/2,x=-u/2-m/2,{cssStyles:b}=e,$=h.default.svg(s),k=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=$.polygon([{x:p,y:x+m},{x:-p,y:x+m},{x:-p,y:-x},{x:p,y:-x},{x:p,y:x},{x:-p,y:x},{x:-p,y:x+m}].map(t=>[t.x,t.y]),k),S=s.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",i),y.attr("transform",`translate(${p+(e.padding??0)/2-(d.x-(d.left??0))}, ${x+m+(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.styles2String)(e),d="neo"===e.look?12:5;e.labelStyle=r;let y=e.padding??0,f="neo"===e.look?16:y,{shapeSvg:u,bbox:m}=await o(t,e,g(e)),w=(e?.width?e?.width/2:m.width/2)+(f??0),p=w-d,{cssStyles:x}=e;if("handDrawn"===e.look){let t=h.default.svg(u),r=(0,a.userNodeOverrides)(e,{roughness:.2,strokeWidth:2.5}),n=(0,a.userNodeOverrides)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*w,r),o=t.circle(0,0,2*p,n);(l=u.insert("g",":first-child")).attr("class",(0,i.handleUndefinedAttr)(e.cssClasses)).attr("style",(0,i.handleUndefinedAttr)(x)),l.node()?.appendChild(s),l.node()?.appendChild(o)}else{let t=(l=u.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",p).attr("cx",0).attr("cy",0)}return c(e,l),e.intersect=function(t){return n.log.info("DoubleCircle intersect",e,w,t),C(e,w,t)},u}function ti(t,e,{config:{themeVariables:l}}){let{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(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.default.svg(s),{nodeBorder:y}=l,f=(0,a.userNodeOverrides)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);let u=d.circle(0,0,14,f),m=s.insert(()=>u,":first-child");return m.selectAll("path").attr("style",`fill: ${y} !important;`),o&&o.length>0&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),r&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",r),c(e,m),e.intersect=function(t){return n.log.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.styles2String)(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:u}=await o(t,e,g(e)),m=(e?.width?e?.width:f.width)+(s??0),w=e?.height?e?.height:m+f.height,p=[{x:0,y:-w},{x:w,y:-w},{x:w/2,y:0}],{cssStyles:x}=e,b=h.default.svg(d),$=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=y(p),_=b.path(k,$),S=d.insert(()=>_,":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=m,e.height=w,c(e,S),u.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.log.info("Triangle intersect",e,p,t),L(e,p,t)},d}function tn(t,e,{dir:l,config:{state:i,themeVariables:r}}){let{nodeStyles:n}=(0,a.styles2String)(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,u=-1*y/2,m=h.default.svg(s),p=(0,a.userNodeOverrides)(e,{stroke:r.lineColor,fill:r.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let x=m.rectangle(f,u,d,y,p),b=s.insert(()=>x,":first-child");o&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",n),c(e,b);let $=i?.padding??0;return e.width&&e.height&&(e.width+=$/2||0,e.height+=$/2||0),e.intersect=function(t){return w(e,t)},s}async function ts(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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)),m=(e?.width?e?.width:Math.max(15,f.width))+2*r,w=(e?.height?e?.height:Math.max(10,f.height))+2*s,p=w/2,{cssStyles:x}=e,b=h.default.svg(d),$=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-m/2,y:-w/2},{x:m/2-p,y:-w/2},...u(-m/2+p,0,p,50,90,270),{x:m/2-p,y:w/2},{x:-m/2,y:w/2}],_=y(k),S=b.path(_,$),v=d.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",i),c(e,v),e.intersect=function(t){return n.log.info("Pill intersect",e,{radius:p,point:t}),L(e,k,t)},d}(0,n.__name)(Q,"cylinder"),(0,n.__name)(tt,"drawRect"),(0,n.__name)(te,"datastore"),(0,n.__name)(ta,"dividedRectangle"),(0,n.__name)(tl,"doublecircle"),(0,n.__name)(ti,"filledCircle"),(0,n.__name)(tr,"flippedTriangle"),(0,n.__name)(tn,"forkJoin"),(0,n.__name)(ts,"halfRoundedRectangle");var th=(0,n.__name)((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.styles2String)(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:u}=await o(t,e,g(e)),m=(e?.height?e?.height:u.height)+d,w=m/n,p=(e?.width?e?.width:u.width)+2*w+y,x=[{x:w,y:0},{x:p-w,y:0},{x:p,y:-m/2},{x:p-w,y:-m},{x:w,y:-m},{x:0,y:-m/2}],{cssStyles:b}=e;if("handDrawn"===e.look){let t=h.default.svg(f),i=(0,a.userNodeOverrides)(e,{}),r=th(0,0,p,m,w),n=t.path(r,i);l=f.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${m/2})`),b&&l.attr("style",b)}else l=I(f,p,m,x);return r&&l.attr("style",r),e.width=p,e.height=m,c(e,l),e.intersect=function(t){return L(e,x,t)},f}async function td(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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,u=h.default.svg(r),m=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let w=[{x:0,y:0},{x:s,y:0},{x:0,y:d},{x:s,y:d}],p=y(w),x=u.path(p,m),b=r.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",f),i&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",i),b.attr("transform",`translate(${-s/2}, ${-d/2})`),c(e,b),e.intersect=function(t){return n.log.info("Pill intersect",e,{points:w}),L(e,w,t)},r}async function tc(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.styles2String)(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"),u="t"===e.pos,{nodeBorder:m}=i,{stylesMap:p}=(0,a.compileStyles)(e),x=-d/2,b=-d/2,$=8*!!e.label,k=h.default.svg(g),_=(0,a.userNodeOverrides)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");let S=k.rectangle(x,b,d,d,_),v=Math.max(d,y.width),M=d+y.height+$,N=k.rectangle(-v/2,-M/2,v,M,{..._,fill:"transparent",stroke:"none"}),D=g.insert(()=>S,":first-child"),C=g.insert(()=>N);if(e.icon){let t=g.append("g");t.html(`<g>${await (0,l.getIconSVG)(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+$/2-r/2-s:-y.height/2-$/2-r/2-s})`),t.attr("style",`color: ${p.get("stroke")??m};`)}return f.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${u?-M/2:M/2-y.height})`),D.attr("transform",`translate(0,${u?y.height/2+$/2:-y.height/2-$/2})`),c(e,C),e.intersect=function(t){if(n.log.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 L(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+$},{x:a+d/2,y:l-i/2+y.height+$},{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+$},{x:a-y.width/2,y:l-i/2+y.height+$}]:[{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.styles2String)(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"),u=8*!!e.label,m="t"===e.pos,{nodeBorder:p,mainBkg:x}=i,{stylesMap:b}=(0,a.compileStyles)(e),$=h.default.svg(g),k=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid"),k.stroke=b.get("fill")??x;let _=g.append("g");e.icon&&_.html(`<g>${await (0,l.getIconSVG)(e.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let S=_.node().getBBox(),v=S.width,M=S.height,N=S.x,D=S.y,C=Math.max(v,M)*Math.SQRT2+40,B=$.circle(0,0,C,k),A=Math.max(C,y.width),L=C+y.height+u,R=$.rectangle(-A/2,-L/2,A,L,{...k,fill:"transparent",stroke:"none"}),O=g.insert(()=>B,":first-child"),P=g.insert(()=>R);return _.attr("transform",`translate(${-v/2-N},${m?y.height/2+u/2-M/2-D:-y.height/2-u/2-M/2-D})`),_.attr("style",`color: ${b.get("stroke")??p};`),f.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${m?-L/2:L/2-y.height})`),O.attr("transform",`translate(0,${m?y.height/2+u/2:-y.height/2-u/2})`),c(e,P),e.intersect=function(t){return n.log.info("iconSquare intersect",e,t),w(e,t)},g}async function ty(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.styles2String)(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:u}=await o(t,e,"icon-shape default"),m="t"===e.pos,p=d+2*f,b=d+2*f,{nodeBorder:$,mainBkg:k}=i,{stylesMap:_}=(0,a.compileStyles)(e),S=8*!!e.label,v=h.default.svg(g),M=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid"),M.stroke=_.get("fill")??k;let N=v.path(x(-b/2,-p/2,b,p,5),M),D=Math.max(b,y.width),C=p+y.height+S,B=v.rectangle(-D/2,-C/2,D,C,{...M,fill:"transparent",stroke:"none"}),A=g.insert(()=>N,":first-child").attr("class","icon-shape2"),R=g.insert(()=>B);if(e.icon){let t=g.append("g");t.html(`<g>${await (0,l.getIconSVG)(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},${m?y.height/2+S/2-r/2-s:-y.height/2-S/2-r/2-s})`),t.attr("style",`color: ${_.get("stroke")??$};`)}return u.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${m?-C/2:C/2-y.height})`),A.attr("transform",`translate(0,${m?y.height/2+S/2:-y.height/2-S/2})`),c(e,R),e.intersect=function(t){if(n.log.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 L(e,r=m?[{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+b/2,y:l-i/2+y.height+S},{x:a+b/2,y:l+i/2},{x:a-b/2,y:l+i/2},{x:a-b/2,y:l-i/2+y.height+S},{x:a-y.width/2,y:l-i/2+y.height+S}]:[{x:a-b/2,y:l-i/2},{x:a+b/2,y:l-i/2},{x:a+b/2,y:l-i/2+p},{x:a+y.width/2,y:l-i/2+p},{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+p},{x:a-b/2,y:l-i/2+p}],t)},g}async function tf(t,e,{config:{themeVariables:i,flowchart:r}}){let{labelStyles:s}=(0,a.styles2String)(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:u}=await o(t,e,"icon-shape default"),m="t"===e.pos,p=d+2*f,b=d+2*f,{nodeBorder:$,mainBkg:k}=i,{stylesMap:_}=(0,a.compileStyles)(e),S=8*!!e.label,v=h.default.svg(g),M=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid"),M.stroke=_.get("fill")??k;let N=v.path(x(-b/2,-p/2,b,p,.1),M),D=Math.max(b,y.width),C=p+y.height+S,B=v.rectangle(-D/2,-C/2,D,C,{...M,fill:"transparent",stroke:"none"}),A=g.insert(()=>N,":first-child"),R=g.insert(()=>B);if(e.icon){let t=g.append("g");t.html(`<g>${await (0,l.getIconSVG)(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},${m?y.height/2+S/2-r/2-s:-y.height/2-S/2-r/2-s})`),t.attr("style",`color: ${_.get("stroke")??$};`)}return u.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${m?-C/2:C/2-y.height})`),A.attr("transform",`translate(0,${m?y.height/2+S/2:-y.height/2-S/2})`),c(e,R),e.intersect=function(t){if(n.log.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 L(e,r=m?[{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+b/2,y:l-i/2+y.height+S},{x:a+b/2,y:l+i/2},{x:a-b/2,y:l+i/2},{x:a-b/2,y:l-i/2+y.height+S},{x:a-y.width/2,y:l-i/2+y.height+S}]:[{x:a-b/2,y:l-i/2},{x:a+b/2,y:l-i/2},{x:a+b/2,y:l-i/2+p},{x:a+y.width/2,y:l-i/2+p},{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+p},{x:a-b/2,y:l-i/2+p}],t)},g}async function tu(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.styles2String)(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,u="on"===e.constraint?f/e.imageAspectRatio:e?.assetHeight??s;e.width=Math.max(f,g??0);let{shapeSvg:m,bbox:p,label:x}=await o(t,e,"image-shape default"),b="t"===e.pos,$=-f/2,k=8*!!e.label,_=h.default.svg(m),S=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=_.rectangle($,-u/2,f,u,S),M=Math.max(f,p.width),N=u+p.height+k,D=_.rectangle(-M/2,-N/2,M,N,{...S,fill:"none",stroke:"none"}),C=m.insert(()=>v,":first-child"),B=m.insert(()=>D);if(e.img){let t=m.append("image");t.attr("href",e.img),t.attr("width",f),t.attr("height",u),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-f/2},${b?N/2-u:-N/2})`)}return x.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${b?-u/2-p.height/2-k/2:u/2-p.height/2+k/2})`),C.attr("transform",`translate(0,${b?p.height/2+k/2:-p.height/2-k/2})`),c(e,B),e.intersect=function(t){if(n.log.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 L(e,r=b?[{x:a-p.width/2,y:l-i/2},{x:a+p.width/2,y:l-i/2},{x:a+p.width/2,y:l-i/2+p.height+k},{x:a+f/2,y:l-i/2+p.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.height+k},{x:a-p.width/2,y:l-i/2+p.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+u},{x:a+p.width/2,y:l-i/2+u},{x:a+p.width/2/2,y:l+i/2},{x:a-p.width/2,y:l+i/2},{x:a-p.width/2,y:l-i/2+u},{x:a-f/2,y:l-i/2+u}],t)},m}async function tm(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(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)),u=Math.max(f.width+(s??0)*2,e?.width??0),m=Math.max(f.height+(n??0)*2,e?.height??0),w=[{x:0,y:0},{x:u,y:0},{x:u+3*m/6,y:-m},{x:-3*m/6,y:-m}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=h.default.svg(d),i=(0,a.userNodeOverrides)(e,{}),r=y(w),n=t.path(r,i);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${m/2})`),p&&l.attr("style",p)}else l=I(d,u,m,w);return r&&l.attr("style",r),e.width=u,e.height=m,c(e,l),e.intersect=function(t){return L(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 tp(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(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)),u=(e?.height??f.height)+n,m=(e?.width??f.width)+s,w=[{x:0,y:0},{x:m+3*u/6,y:0},{x:m,y:-u},{x:-(3*u)/6,y:-u}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=h.default.svg(d),i=(0,a.userNodeOverrides)(e,{}),r=y(w),n=t.path(r,i);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-m/2}, ${u/2})`),p&&l.attr("style",p)}else l=I(d,m,u,w);return r&&l.attr("style",r),e.width=m,e.height=u,c(e,l),e.intersect=function(t){return L(e,w,t)},d}async function tx(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(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)),u=(e?.height??f.height)+n,m=(e?.width??f.width)+s,w=[{x:-3*u/6,y:0},{x:m,y:0},{x:m+3*u/6,y:-u},{x:0,y:-u}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=h.default.svg(d),i=(0,a.userNodeOverrides)(e,{}),r=y(w),n=t.path(r,i);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-m/2}, ${u/2})`),p&&l.attr("style",p)}else l=I(d,m,u,w);return r&&l.attr("style",r),e.width=m,e.height=u,c(e,l),e.intersect=function(t){return L(e,w,t)},d}function tb(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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}],u=h.default.svg(r),m=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let w=y(f),p=u.path(w,m),x=r.insert(()=>p,":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.log.info("lightningBolt intersect",e,t),L(e,f,t)},r}(0,n.__name)(to,"hexagon"),(0,n.__name)(td,"hourglass"),(0,n.__name)(tc,"icon"),(0,n.__name)(tg,"iconCircle"),(0,n.__name)(ty,"iconRounded"),(0,n.__name)(tf,"iconSquare"),(0,n.__name)(tu,"imageSquare"),(0,n.__name)(tm,"inv_trapezoid"),(0,n.__name)(tw,"labelRect"),(0,n.__name)(tp,"lean_left"),(0,n.__name)(tx,"lean_right"),(0,n.__name)(tb,"lightningBolt");var t$=(0,n.__name)((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.__name)((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"),t_=(0,n.__name)((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.styles2String)(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:u,label:m}=await o(t,e,g(e)),p=(e?.width?e?.width:u.width)+2*d,x=p/2,b=x/(2.5+p/50),$=(e?.height?e?.height:u.height)+b+2*y,k=.1*$,{cssStyles:_}=e;if("handDrawn"===e.look){let t=h.default.svg(f),i=tk(0,0,p,$,x,b,k),r=t_(0,b,p,$,x,b),n=(0,a.userNodeOverrides)(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"),_&&l.attr("style",_)}else{let t=t$(0,0,p,$,x,b,k);l=f.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,i.handleUndefinedAttr)(_)).attr("style",n)}return l.attr("label-offset-y",b),l.attr("transform",`translate(${-p/2}, ${-($/2+b)})`),c(e,l),m.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+b-(u.y-(u.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-b)){let i=b*b*(1-l*l/(x*x));i>0&&(i=Math.sqrt(i)),i=b-i,t.y-(e.y??0)>0&&(i=-i),a.y+=i}return a},f}async function tv(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u}=await o(t,e,g(e)),m=(e?.width?e?.width:y.width)+(n??0)*2,w=(e?.height?e?.height:y.height)+(s??0)*2,p="neo"===e.look?w/4:w/8,x=w+p,{cssStyles:b}=e,$=h.default.svg(d),k=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-m/2-m/2*.1,y:-x/2},{x:-m/2-m/2*.1,y:x/2},...f(-m/2-m/2*.1,x/2,m/2+m/2*.1,x/2,p,.8),{x:m/2+m/2*.1,y:-x/2},{x:-m/2-m/2*.1,y:-x/2},{x:-m/2,y:-x/2},{x:-m/2,y:x/2*1.1},{x:-m/2,y:-x/2}],S=$.polygon(_.map(t=>[t.x,t.y]),k),v=d.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-m/2+(e.padding??0)+m/2*.1/2-(y.x-(y.left??0))},${-w/2+(e.padding??0)-p/2-(y.y-(y.top??0))})`),c(e,v),e.intersect=function(t){return L(e,_,t)},d}async function tM(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u,label:w}=await o(t,e,g(e)),p=(e?.width?e?.width:u.width)+2*n+2*d,x=(e?.height?e?.height:u.height)+2*s+2*d,b=p-2*d,$=x-2*d,k=-b/2,_=-$/2,{cssStyles:S}=e,v=h.default.svg(f),M=(0,a.userNodeOverrides)(e,{}),N=[{x:k-d,y:_+d},{x:k-d,y:_+$+d},{x:k+b-d,y:_+$+d},{x:k+b-d,y:_+$},{x:k+b,y:_+$},{x:k+b,y:_+$-d},{x:k+b+d,y:_+$-d},{x:k+b+d,y:_-d},{x:k+d,y:_-d},{x:k+d,y:_},{x:k,y:_},{x:k,y:_+d}];"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=y(N),C=v.path(D,M),B=y([{x:k,y:_+d},{x:k+b-d,y:_+d},{x:k+b-d,y:_+$},{x:k+b,y:_+$},{x:k+b,y:_},{x:k,y:_}]),A=v.path(B,M);"handDrawn"!==e.look&&(C=m(C),A=m(A));let R=f.insert("g",":first-child");return R.insert(()=>C),R.insert(()=>A),R.attr("class","basic label-container outer-path"),S&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",S),i&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",i),w.attr("transform",`translate(${-(u.width/2)-d-(u.x-(u.left??0))}, ${-(u.height/2)+d-(u.y-(u.top??0))})`),c(e,R),e.intersect=function(t){return L(e,N,t)},f}async function tN(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(e);e.labelStyle=l;let{shapeSvg:r,bbox:n,label:s}=await o(t,e,g(e)),d=e.padding??0,u="neo"===e.look?16:d,m="neo"===e.look?12:d,w=!0;(e.width||e.height)&&(w=!1,e.width=(e?.width??0)-2*u,e.height=(e?.height??0)-3*m);let p=Math.max(n.width,e?.width??0)+2*u,x=Math.max(n.height,e?.height??0)+3*m,b="neo"===e.look?x/4:x/8,$=x+(w?b/2:-b/2),k=-p/2,_=-$/2,{cssStyles:S}=e,v=f(k-10,_+$+10,k+p-10,_+$+10,b,.8),M=v?.[v.length-1],N=[{x:k-10,y:_+10},{x:k-10,y:_+$+10},...v,{x:k+p-10,y:M.y-10},{x:k+p,y:M.y-10},{x:k+p,y:M.y-20},{x:k+p+10,y:M.y-20},{x:k+p+10,y:_-10},{x:k+10,y:_-10},{x:k+10,y:_},{x:k,y:_},{x:k,y:_+10}],D=[{x:k,y:_+10},{x:k+p-10,y:_+10},{x:k+p-10,y:M.y-10},{x:k+p,y:M.y-10},{x:k+p,y:_},{x:k,y:_}],C=h.default.svg(r),B=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let A=y(N),R=C.path(A,B),O=y(D),P=C.path(O,B),T=r.insert(()=>R,":first-child");return T.insert(()=>P),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,${-b/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-b/2-(n.y-(n.top??0))})`),c(e,T),e.intersect=function(t){return L(e,N,t)},r}async function tD(t,e,{config:{themeVariables:l}}){let{labelStyles:i,nodeStyles:n}=(0,a.styles2String)(e);e.labelStyle=i,e.useHtmlLabels||(0,r.getEffectiveHtmlLabels)((0,r.getConfig)())||(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),u=Math.max(d.height+(e.padding??0)*2,e?.height??0),{cssStyles:m}=e,p=h.default.svg(s),x=(0,a.userNodeOverrides)(e,{fill:l.noteBkgColor,stroke:l.noteBorderColor});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=p.rectangle(-f/2,-u/2,f,u,x),$=s.insert(()=>b,":first-child");return $.attr("class","basic label-container outer-path"),y.attr("class","label noteLabel"),m&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",m),n&&"handDrawn"!==e.look&&$.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,$),e.intersect=function(t){return w(e,t)},s}(0,n.__name)(tS,"linedCylinder"),(0,n.__name)(tv,"linedWaveEdgedRect"),(0,n.__name)(tM,"multiRect"),(0,n.__name)(tN,"multiWaveEdgedRectangle"),(0,n.__name)(tD,"note");var tC=(0,n.__name)((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 tB(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(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.default.svg(n),i=(0,a.userNodeOverrides)(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=I(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=L(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 tA(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u}=await o(t,e,g(e)),m=(e?.width??f.width)+("neo"===e.look?2*n:n),w=(e?.height??f.height)+("neo"===e.look?2*s:s),p=-m/2,x=-w/2,b=x/2,$=[{x:p+b,y:x},{x:p,y:0},{x:p+b,y:-x},{x:-p,y:-x},{x:-p,y:x}],{cssStyles:k}=e,_=h.default.svg(d),S=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=y($),M=_.path(v,S),N=d.insert(()=>M,":first-child");return N.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(${-b/2},0)`),u.attr("transform",`translate(${-b/2-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),c(e,N),e.intersect=function(t){return L(e,$,t)},d}async function tL(t,e){let l,i,o,{labelStyles:d,nodeStyles:g}=(0,a.styles2String)(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"),u=y.insert("g").attr("class","label").attr("style",g),m=e.description,b=e.label,$=await p(u,b,e.labelStyle,!0,!0),k={width:0,height:0};if((0,r.getEffectiveHtmlLabels)((0,r.getConfig2)())){let t=$.children[0],e=(0,s.select)($);k=t.getBoundingClientRect(),e.attr("width",k.width),e.attr("height",k.height)}n.log.info("Text 2",m);let _=m||[],S=$.getBBox(),v=await p(u,Array.isArray(_)?_.join("<br/>"):_,e.labelStyle,!0,!0),M=v.children[0],N=(0,s.select)(v);k=M.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height);let D=(e.padding||0)/2;(0,s.select)(v).attr("transform","translate( "+(k.width>S.width?0:(S.width-k.width)/2)+", "+(S.height+D+5)+")"),(0,s.select)($).attr("transform","translate( "+(k.width<S.width?0:-(S.width-k.width)/2)+", 0)"),k=u.node().getBBox(),u.attr("transform","translate("+-k.width/2+", "+(-k.height/2-D+3)+")");let C=k.width+(e.padding||0),B=k.height+(e.padding||0),A=-k.width/2-D,L=-k.height/2-D;if("handDrawn"===e.look){let t=h.default.svg(y),l=(0,a.userNodeOverrides)(e,{}),r=t.path(x(A,L,C,B,e.rx||0),l),s=t.line(-k.width/2-D,-k.height/2-D+S.height+D,k.width/2+D,-k.height/2-D+S.height+D,l);o=y.insert(()=>(n.log.debug("Rough node insert CXC",r),s),":first-child"),i=y.insert(()=>(n.log.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-D).attr("y",-k.height/2-D).attr("width",k.width+(e.padding||0)).attr("height",k.height+(e.padding||0)),o.attr("class","divider").attr("x1",-k.width/2-D).attr("x2",k.width/2+D).attr("y1",-k.height/2-D+S.height+D).attr("y2",-k.height/2-D+S.height+D);return c(e,i),e.intersect=function(t){return w(e,t)},y}async function tR(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 tO(t,e){let{labelStyles:l,nodeStyles:r}=(0,a.styles2String)(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)),u=(e?.width??y.width)+2*n+("neo"===e.look?8:16),m=(e?.height??y.height)+2*s,p=u-8,x=8-u/2,b=-m/2,{cssStyles:$}=e,k=h.default.svg(d),_=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");let S=k.polygon([{x,y:b},{x:x+p,y:b},{x:x+p,y:b+m},{x:x-8,y:b+m},{x:x-8,y:b},{x,y:b},{x,y:b+m}].map(t=>[t.x,t.y]),_),v=d.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path").attr("style",(0,i.handleUndefinedAttr)($)),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),$&&"handDrawn"!==e.look&&v.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,v),e.intersect=function(t){return w(e,t)},d}async function tP(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u}=await o(t,e,g(e)),m=(e?.width?e?.width:f.width)+2*n,w=((e?.height?e?.height:f.height)+2*s)*1.5/1.5,p=-m/2,x=-w/2,{cssStyles:b}=e,$=h.default.svg(d),k=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:p,y:x},{x:p,y:x+w},{x:p+m,y:x+w},{x:p+m,y:x-w/2}],S=y(_),v=$.path(S,k),M=d.insert(()=>v,":first-child");return M.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",b),i&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",i),M.attr("transform",`translate(0, ${w/4})`),u.attr("transform",`translate(${-m/2+(e.padding??0)-(f.x-(f.left??0))}, ${-w/4+(e.padding??0)-(f.y-(f.top??0))})`),c(e,M),e.intersect=function(t){return L(e,_,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 tI(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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)),m=f.height+("neo"===e.look?2*s:s),w=f.width+m/4+("neo"===e.look?2*n:n),p=m/2,{cssStyles:x}=e,b=h.default.svg(d),$=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-w/2+p,y:-m/2},{x:w/2-p,y:-m/2},...u(-w/2+p,0,p,50,90,270),{x:w/2-p,y:m/2},...u(w/2-p,0,p,50,270,450)],_=y(k),S=b.path(_,$),v=d.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",i),c(e,v),e.intersect=function(t){return L(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 tH(t,e,{config:{themeVariables:l}}){let{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(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.default.svg(y),u=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let m=f.circle(0,0,e.width,{...u,stroke:s,strokeWidth:2}),w=o??d,p=(e.width??0)*5/14,x=f.circle(0,0,p,{...u,fill:w,stroke:w,strokeWidth:2,fillStyle:"solid"}),b=y.insert(()=>m,":first-child");if(b.insert(()=>x),"handDrawn"!==e.look&&b.attr("class","outer-path"),n&&b.selectAll("path").attr("style",n),r&&b.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";b.attr("style",`filter:url(#${a})`)}return c(e,b),e.intersect=function(t){return C(e,(e.width??0)/2,t)},y}function tW(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.default.svg(s).circle(0,0,e.width,(0,a.solidStateFill)(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 tq(t,e){let{labelStyles:l,nodeStyles:r}=(0,a.styles2String)(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)),u=(e?.width??f.width)+16+s,m=(e?.height??f.height)+d,w=u-16,p=-u/2,x=-m/2,b=[{x:0,y:0},{x:w,y:0},{x:w,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:w+8,y:0},{x:w+8,y:-m},{x:-8,y:-m},{x:-8,y:0}];if("handDrawn"===e.look){let t=h.default.svg(y),l=(0,a.userNodeOverrides)(e,{}),r=t.rectangle(p,x,w+16,m,l),n=t.line(p+8,x,p+8,x+m,l),s=t.line(p+8+w,x,p+8+w,x+m,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.handleUndefinedAttr)(d)),c(e,o)}else{let t=I(y,w,m,b);r&&t.attr("style",r),c(e,t)}return e.intersect=function(t){return L(e,b,t)},y}async function tj(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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)),u=(e?.height?e?.height:f.height)+2*s,m=.2*u,w=(e?.width?e?.width:f.width)+2*n+m-m,p=-w/2,x=-u/2,{cssStyles:b}=e,$=h.default.svg(d),k=(0,a.userNodeOverrides)(e,{}),_=[{x:p-m/2,y:x},{x:p+w+m/2,y:x},{x:p+w+m/2,y:x+u},{x:p-m/2,y:x+u}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=y(_),v=$.path(S,k),M=y([{x:p+w-m/2,y:x+u},{x:p+w+m/2,y:x+u},{x:p+w+m/2,y:x+u-.2*u}]),N=$.path(M,{...k,fillStyle:"solid"}),D=d.insert(()=>N,":first-child");return D.insert(()=>v,":first-child"),D.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",i),c(e,D),e.intersect=function(t){return L(e,_,t)},d}async function tz(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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),u=Math.max(n.height+(e.padding??0)*2,e?.height??0),m=u/8,w=.2*d,p=.2*u,x=u+m,{cssStyles:b}=e,$=h.default.svg(r),k=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-d/2-d/2*.1,y:x/2},...f(-d/2-d/2*.1,x/2,d/2+d/2*.1,x/2,m,.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,v=-x/2-.4*p,M=[{x:S+d-w,y:(v+u)*1.3},{x:S+d,y:v+u-p},{x:S+d,y:(v+u)*.9},...f(S+d,(v+u)*1.25,S+d-w,(v+u)*1.3,-(.02*u),.5)],N=y(_),D=$.path(N,k),C=y(M),B=$.path(C,{...k,fillStyle:"solid"}),A=r.insert(()=>B,":first-child");return A.insert(()=>D,":first-child"),A.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-d/2+(e.padding??0)-(n.x-(n.left??0))},${-u/2+(e.padding??0)-m/2-(n.y-(n.top??0))})`),c(e,A),e.intersect=function(t){return L(e,_,t)},r}async function tU(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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.__name)(tB,"question"),(0,n.__name)(tA,"rect_left_inv_arrow"),(0,n.__name)(tL,"rectWithTitle"),(0,n.__name)(tR,"roundedRect"),(0,n.__name)(tO,"shadedProcess"),(0,n.__name)(tP,"slopedRect"),(0,n.__name)(tT,"squareRect"),(0,n.__name)(tI,"stadium"),(0,n.__name)(tE,"state"),(0,n.__name)(tH,"stateEnd"),(0,n.__name)(tW,"stateStart"),(0,n.__name)(tq,"subroutine"),(0,n.__name)(tj,"taggedRect"),(0,n.__name)(tz,"taggedWaveEdgedRectangle"),(0,n.__name)(tU,"text");var tF=(0,n.__name)((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"),tV=(0,n.__name)((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"),tX=(0,n.__name)((t,e,a,l,i,r)=>`M${t+a/2},${-l/2} a${i},${r} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function tG(t,e){let l,{labelStyles:r,nodeStyles:n}=(0,a.styles2String)(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:u}=await o(t,e,g(e)),m=(e.height?e.height:f.height)+d,p=m/2,x=p/(2.5+m/50),b=(e.width?e.width:f.width)+x+d,{cssStyles:$}=e;if("handDrawn"===e.look){let t=h.default.svg(y),i=tV(0,0,b,m,x,p),r=tX(0,0,b,m,x,p),n=t.path(i,(0,a.userNodeOverrides)(e,{})),s=t.path(r,(0,a.userNodeOverrides)(e,{fill:"none"}));l=y.insert(()=>s,":first-child"),(l=y.insert(()=>n,":first-child")).attr("class","basic label-container"),$&&l.attr("style",$)}else{let t=tF(0,0,b,m,x,p);(l=y.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,i.handleUndefinedAttr)($)).attr("style",n)).attr("class","basic label-container outer-path"),$&&l.selectAll("path").attr("style",$),n&&l.selectAll("path").attr("style",n)}return l.attr("label-offset-x",x),l.attr("transform",`translate(${-b/2}, ${m/2} )`),u.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!=p&&(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/(p*p));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 tZ(t,e){let l,{labelStyles:i,nodeStyles:r}=(0,a.styles2String)(e);e.labelStyle=i;let n=e.padding??0,s=(e.look,n),d="neo"===e.look?2*n:n,{shapeSvg:f,bbox:u}=await o(t,e,g(e)),m=(e?.height??u.height)+s,w=(e?.width??u.width)+d,p=[{x:-3*m/6,y:0},{x:w+3*m/6,y:0},{x:w,y:-m},{x:0,y:-m}],{cssStyles:x}=e;if("handDrawn"===e.look){let t=h.default.svg(f),i=(0,a.userNodeOverrides)(e,{}),r=y(p),n=t.path(r,i);l=f.insert(()=>n,":first-child").attr("transform",`translate(${-w/2}, ${m/2})`),x&&l.attr("style",x)}else l=I(f,w,m,p);return r&&l.attr("style",r),e.width=w,e.height=m,c(e,l),e.intersect=function(t){return L(e,p,t)},f}async function tY(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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)),u=(e?.width?e?.width:f.width)+2*n,m=(e?.height?e?.height:f.height)+2*s,{cssStyles:w}=e,p=h.default.svg(d),x=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-u/2*.8,y:-m/2},{x:u/2*.8,y:-m/2},{x:u/2,y:-m/2*.6},{x:u/2,y:m/2},{x:-u/2,y:m/2},{x:-u/2,y:-m/2*.6}],$=y(b),k=p.path($,x),_=d.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),w&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",w),i&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",i),c(e,_),e.intersect=function(t){return L(e,b,t)},d}async function tJ(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u,label:m}=await o(t,e,g(e)),w=(0,r.evaluate)((0,r.getConfig2)().flowchart?.htmlLabels),p=(e?.width?e?.width:u.width)+d,x=e?.height?e?.height:p+u.height,b=[{x:0,y:0},{x:x,y:0},{x:x/2,y:-x}],{cssStyles:$}=e,k=h.default.svg(f),_=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");let S=y(b),v=k.path(S,_),M=f.insert(()=>v,":first-child").attr("transform",`translate(${-x/2}, ${x/2})`).attr("class","outer-path");return $&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",$),i&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",i),e.width=p,e.height=x,c(e,M),m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))}, ${x/2-(u.height+(e.padding??0)/(w?2:1)-(u.y-(u.top??0)))})`),e.intersect=function(t){return n.log.info("Triangle intersect",e,b,t),L(e,b,t)},f}async function tK(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u,bbox:m,label:w}=await o(t,e,g(e)),p=(e?.width?e?.width:m.width)+(n??0)*2,x=(e?.height?e?.height:m.height)+(s??0)*2,b="neo"===e.look?x/4:x/8,$=x+(d?b:-b),{cssStyles:k}=e,_=14-p,S=_>0?_/2:0,v=h.default.svg(u),M=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let N=[{x:-p/2-S,y:$/2},...f(-p/2-S,$/2,p/2+S,$/2,b,.8),{x:p/2+S,y:-$/2},{x:-p/2-S,y:-$/2}],D=y(N),C=v.path(D,M),B=u.insert(()=>C,":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(0,${-b/2})`),w.attr("transform",`translate(${-p/2+(e.padding??0)-(m.x-(m.left??0))},${-x/2+(e.padding??0)-b-(m.y-(m.top??0))})`),c(e,B),e.intersect=function(t){return L(e,N,t)},u}async function tQ(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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:u}=await o(t,e,g(e)),m=(e?.width?e?.width:u.width)+2*n,w=(e?.height?e?.height:u.height)+s,p=w/8,x=w+2*p,{cssStyles:b}=e,$=h.default.svg(d),k=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-m/2,y:x/2},...f(-m/2,x/2,m/2,x/2,p,1),{x:m/2,y:-x/2},...f(m/2,-x/2,-m/2,-x/2,p,-1)],S=y(_),v=$.path(S,k),M=d.insert(()=>v,":first-child");return M.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),c(e,M),e.intersect=function(t){return L(e,_,t)},d}async function t0(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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,u=(e?.height?e?.height:d.height)+2*n+10,m=f-10,w=u-10,p=-m/2,x=-w/2,{cssStyles:b}=e,$=h.default.svg(s),k=(0,a.userNodeOverrides)(e,{}),_=[{x:p-10,y:x-10},{x:p-10,y:x+w},{x:p+m,y:x+w},{x:p+m,y:x-10}],S=`M${p-10},${x-10} L${p+m},${x-10} L${p+m},${x+w} L${p-10},${x+w} L${p-10},${x-10}
|
|
9
|
+
M${p-10},${x} L${p+m},${x}
|
|
10
|
+
M${p},${x-10} L${p},${x+w}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let v=$.path(S,k),M=s.insert(()=>v,":first-child");return M.attr("transform","translate(5, 5)"),M.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&M.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,M),e.intersect=function(t){return L(e,_,t)},s}(0,n.__name)(tG,"tiltedCylinder"),(0,n.__name)(tZ,"trapezoid"),(0,n.__name)(tY,"trapezoidalPentagon"),(0,n.__name)(tJ,"triangle"),(0,n.__name)(tK,"waveEdgedRectangle"),(0,n.__name)(tQ,"waveRectangle"),(0,n.__name)(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.getConfig)(),{rowEven:o,rowOdd:d,nodeBorder:y,borderColorArray:f}=n;if("handDrawn"===e.look){let{themeVariables:a}=(0,r.getConfig)(),{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 u=(0,r.getConfig)();e.useHtmlLabels=u.htmlLabels;let m=u.er?.diagramPadding??10,p=u.er?.entityPadding??6,{cssStyles:x}=e,{labelStyles:b,nodeStyles:$}=(0,a.styles2String)(e);if(0===e.attributes.length&&e.label){let a={rx:0,ry:0,labelPaddingX:m,labelPaddingY:1.5*m,classes:""};(0,i.calculateTextWidth)(e.label,u)+2*a.labelPaddingX<u.er.minEntityWidth&&(e.width=u.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.evaluate)(u.htmlLabels)){let t=n.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return n}u.htmlLabels||(m*=1.25,p*=1.25);let k=g(e);k||(k="node default");let _=t.insert("g").attr("class",k).attr("id",e.domId||e.id),S=await t8(_,e.label??"",u,0,0,["name"],b);S.height+=p;let v=0,M=[],N=[],D=0,C=0,B=0,A=0,L=!0,R=!0;for(let t of e.attributes){let e=await t8(_,t.type,u,0,v,["attribute-type"],b);D=Math.max(D,e.width+m);let a=await t8(_,t.name,u,0,v,["attribute-name"],b);C=Math.max(C,a.width+m);let l=await t8(_,t.keys.join(),u,0,v,["attribute-keys"],b);B=Math.max(B,l.width+m);let i=await t8(_,t.comment,u,0,v,["attribute-comment"],b);A=Math.max(A,i.width+m);let r=Math.max(e.height,a.height,l.height,i.height)+p;N.push({yOffset:v,rowHeight:r}),v+=r}let O=4;B<=m&&(L=!1,B=0,O--),A<=m&&(R=!1,A=0,O--);let P=_.node().getBBox();if(S.width+2*m-(D+C+B+A)>0){let t=S.width+2*m-(D+C+B+A);D+=t/O,C+=t/O,B>0&&(B+=t/O),A>0&&(A+=t/O)}let T=D+C+B+A,I=h.default.svg(_),E=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(E.roughness=0,E.fillStyle="solid");let H=0;N.length>0&&(H=N.reduce((t,e)=>t+(e?.rowHeight??0),0));let W=Math.max(P.width+2*m,e?.width||0,T),q=Math.max((H??0)+S.height,e?.height||0),j=-W/2,z=-q/2;if(_.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,s.select)(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+=D:l.attr("class").includes("attribute-keys")?r+=D+C:l.attr("class").includes("attribute-comment")&&(r+=D+C+B))}l.attr("transform",`translate(${j+m/2+r}, ${n+z+S.height+p/2})`)}),_.select(".name").attr("transform","translate("+-S.width/2+", "+(z+p/2)+")"),null!=l&&t2.has(l)){let t=e.colorIndex??0;_.attr("data-color-id",`color-${t%f.length}`)}let U=I.rectangle(j,z,W,q,E),F=_.insert(()=>U,":first-child").attr("class","outer-path").attr("style",x.join(""));for(let[t,e]of(M.push(0),N.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=I.rectangle(j,S.height+z+e?.yOffset,W,e?.rowHeight,{...E,fill:a?o:d,stroke:y});_.insert(()=>l,"g.label").attr("style",x.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let V=t4(j,S.height+z,W+j,S.height+z,1e-4),X=I.polygon(V.map(t=>[t.x,t.y]),E);if(_.insert(()=>X).attr("class","divider"),V=t4(D+j,S.height+z,D+j,q+z,1e-4),X=I.polygon(V.map(t=>[t.x,t.y]),E),_.insert(()=>X).attr("class","divider"),L){let t=D+C+j;V=t4(t,S.height+z,t,q+z,1e-4),X=I.polygon(V.map(t=>[t.x,t.y]),E),_.insert(()=>X).attr("class","divider")}if(R){let t=D+C+B+j;V=t4(t,S.height+z,t,q+z,1e-4),X=I.polygon(V.map(t=>[t.x,t.y]),E),_.insert(()=>X).attr("class","divider")}for(let t of M){let e=S.height+z+t;V=t4(j,e,W+j,e,1e-4),X=I.polygon(V.map(t=>[t.x,t.y]),E),_.insert(()=>X).attr("class","divider")}if(c(e,F),$&&"handDrawn"!==e.look)if(null!=l&&t1.has(l))_.selectAll("path").attr("style",$);else{let t=$.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");_.selectAll("path").attr("style",e??""),_.selectAll(".row-rect-even path").attr("style",$)}return e.intersect=function(t){return w(e,t)},_}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.parseGenericTypes)(e)&&(e=(e=(0,r.parseGenericTypes)(e)).replaceAll("<","<").replaceAll(">",">"));let g=c.node().appendChild(await (0,l.createText)(c,e,{width:(0,i.calculateTextWidth)(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.evaluate)(a.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,s.select)(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 u=h.node().getBBox();y=u.height,o=n.insert("g").attr("class","members-group text");let m=0;for(let t of e.members){let e=await t6(o,t,m,[t.parseClassifier()]);m+=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 p=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-u.width/2}, ${c})`),p=n.node().getBBox(),o.attr("transform",`translate(0, ${c+y+2*i})`),p=n.node().getBBox(),d.attr("transform",`translate(0, ${c+y+(f?f+4*i:2*i)})`),p=n.node().getBBox(),{shapeSvg:n,bbox:p}}async function t6(t,e,a,h=[]){let o,d=t.insert("g").attr("class","label").attr("style",h.join("; ")),c=(0,r.getConfig)(),g="useHtmlLabels"in e?e.useHtmlLabels:(0,r.evaluate)(c.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!g&&y.startsWith("\\")&&(y=y.substring(1)),(0,r.hasKatex)(y)&&(g=!0);let f=await (0,l.createText)(d,(0,r.sanitizeText2)((0,i.decodeEntities)(y)),{width:(0,i.calculateTextWidth)(y,c)+50,classes:"markdown-node-label",useHtmlLabels:g},c),u=1;if(g){let t=f.children[0],e=(0,s.select)(f);u=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(u+=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.__name)(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.select)(f).selectAll("tspan").attr("font-weight",""),u=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*u)+a)+")"),o.height}async function t9(t,e){let l=(0,r.getConfig2)(),{themeVariables:i}=l,{useGradient:n}=i,o=l.class.padding??12,d=e.useHtmlLabels??(0,r.evaluate)(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:u}=(0,a.styles2String)(e);e.labelStyle=f,e.cssStyles=e.styles||"";let m=e.styles?.join(";")||u||"";e.cssStyles||(e.cssStyles=m.replaceAll("!important","").split(";"));let p=0===e.members.length&&0===e.methods.length&&!l.class?.hideEmptyMembersBox,x=h.default.svg(g),b=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let $=Math.max(e.width??0,y.width),k=Math.max(e.height??0,y.height),_=(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=-$/2,v=-k/2,M=p?2*o:0===e.members.length&&0===e.methods.length?-o:0;_&&(M=2*o);let N=x.rectangle(S-o,v-o-(p?o:0===e.members.length&&0===e.methods.length?-o/2:0),$+2*o,k+2*o+M,b),D=g.insert(()=>N,":first-child");D.attr("class","basic label-container outer-path");let C=D.node().getBBox(),B=g.select(".annotation-group").node().getBBox().height-(p?o/2:0)||0,A=g.select(".label-group").node().getBBox().height-(p?o/2:0)||0,L=g.select(".members-group").node().getBBox().height-(p?o/2:0)||0,R=(B+A+v+o-(v-o-(p?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.select)(i[a]),n=r.attr("transform"),h=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(h=parseFloat(t[2]))}let c=h+v+o-(p?o:0===e.members.length&&0===e.methods.length?-o/2:0);if(r.attr("class").includes("methods-group")){let t=Math.max(L,o/2);c=_?Math.max(R,B+A+t+v+2*o+o)+2*o:B+A+t+v+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||p){let t=B+A+v+o,a=x.line(C.x,t,C.x+C.width,t+.001,b);g.insert(()=>a).attr("class",`divider${"neo"===e.look&&!n?" neo-line":""}`).attr("style",m)}if(p||e.members.length>0||e.methods.length>0){let t=B+A+L+v+2*o+o,a=x.line(C.x,_?Math.max(R,t):t,C.x+C.width,(_?Math.max(R,t):t)+.001,b);g.insert(()=>a).attr("class",`divider${"neo"===e.look&&!n?" neo-line":""}`).attr("style",m)}if("handDrawn"!==e.look&&g.selectAll("path").attr("style",m),D.select(":nth-child(2)").attr("style",m),g.selectAll(".divider").select("path").attr("style",m),e.labelStyle?g.selectAll("span").attr("style",e.labelStyle):g.selectAll("span").attr("style",m),!d){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(m);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,D),e.intersect=function(t){return w(e,t)},g}async function t7(t,e){let l,{labelStyles:i,nodeStyles:n}=(0,a.styles2String)(e);e.labelStyle=i;let o="verifyMethod"in e,d=g(e),{themeVariables:y}=(0,r.getConfig2)(),{borderColorArray:f,requirementEdgeLabelBackground:u}=y,m=t.insert("g").attr("class",d).attr("id",e.domId??e.id),p=l=o?await et(m,`<<${e.type}>>`,0,e.labelStyle):await et(m,"<<Element>>",0,e.labelStyle),x=await et(m,e.name,p,e.labelStyle+"; font-weight: bold;");if(p+=x+20,o){let t=await et(m,`${e.requirementId?`ID: ${e.requirementId}`:""}`,p,e.labelStyle);p+=t;let a=await et(m,`${e.text?`Text: ${e.text}`:""}`,p,e.labelStyle);p+=a;let l=await et(m,`${e.risk?`Risk: ${e.risk}`:""}`,p,e.labelStyle);p+=l,await et(m,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,p,e.labelStyle)}else{let t=await et(m,`${e.type?`Type: ${e.type}`:""}`,p,e.labelStyle);p+=t,await et(m,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,p,e.labelStyle)}let b=(m.node()?.getBBox().width??200)+20,$=(m.node()?.getBBox().height??200)+20,k=-b/2,_=-$/2,S=h.default.svg(m),v=(0,a.userNodeOverrides)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");let M=S.rectangle(k,_,b,$,v),N=m.insert(()=>M,":first-child");if(N.attr("class","basic label-container outer-path").attr("style",n),f?.length){let t=e.colorIndex??0;m.attr("data-color-id",`color-${t%f.length}`)}if(m.selectAll(".label").each((t,e,a)=>{let l=(0,s.select)(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-$/2,o=k+10;(0===e||1===e)&&(o=r),l.attr("transform",`translate(${o}, ${h+20})`)}),p>l+x+20){let t,a=_+l+x+20;if("neo"===e.look){let e=[[k,a],[k+b,a],[k+b,a+.001],[k,a+.001]];t=S.polygon(e,v)}else t=S.line(k,a,k+b,a,v);m.insert(()=>t).attr("class","divider")}return c(e,N),e.intersect=function(t){return w(e,t)},n&&"handDrawn"!==e.look&&(u||f?.length)&&m.selectAll("path").attr("style",n),m}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.getConfig2)(),c=d.htmlLabels??!0,g=await (0,l.createText)(o,(0,r.sanitizeText2)((0,i.decodeEntities)(e)),{width:(0,i.calculateTextWidth)(e,d)+50,classes:"markdown-node-label",useHtmlLabels:c,style:n},d);if(c){let t=g.children[0],e=(0,s.select)(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.__name)(t5,"erBox"),(0,n.__name)(t8,"addText"),(0,n.__name)(t4,"lineToPolygon"),(0,n.__name)(t3,"textHelper"),(0,n.__name)(t6,"addText"),(0,n.__name)(t9,"classBox"),(0,n.__name)(t7,"requirementBox"),(0,n.__name)(et,"addText");var ee=(0,n.__name)(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.styles2String)(e);e.labelStyle=y||"";let u=e.width;e.width=(e.width??200)-10;let{shapeSvg:m,bbox:p,label:b}=await o(t,e,g(e)),$=e.padding||10,k="";"ticket"in e&&e.ticket&&l?.kanban?.ticketBaseUrl&&(k=l?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),i=m.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",k).attr("target","_blank"));let _={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||"",_):{label:r,bbox:n}=await d(m,"ticket"in e&&e.ticket||"",_);let{label:S,bbox:v}=await d(m,"assigned"in e&&e.assigned||"",_);e.width=u;let M=e?.width||0,N=Math.max(n.height,v.height)/2,D=Math.max(p.height+20,e?.height||0)+N,C=-M/2,B=-D/2;b.attr("transform","translate("+($-M/2)+", "+(-N-p.height/2)+")"),r.attr("transform","translate("+($-M/2)+", "+(-N+p.height/2)+")"),S.attr("transform","translate("+($+M/2-v.width-20)+", "+(-N+p.height/2)+")");let{rx:A,ry:L}=e,{cssStyles:R}=e;if("handDrawn"===e.look){let t=h.default.svg(m),l=(0,a.userNodeOverrides)(e,{}),i=A||L?t.path(x(C,B,M,D,A||0),l):t.rectangle(C,B,M,D,l);(s=m.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",R||null)}else{(s=m.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",f).attr("rx",A??5).attr("ry",L??5).attr("x",C).attr("y",B).attr("width",M).attr("height",D);let t="priority"in e&&e.priority;if(t){let e=m.append("line"),a=C+2,l=B+Math.floor((A??0)/2),i=B+D-Math.floor((A??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=D,e.intersect=function(t){return w(e,t)},m}async function el(t,e){let l,{labelStyles:r,nodeStyles:s}=(0,a.styles2String)(e);e.labelStyle=r;let{shapeSvg:d,bbox:y,halfPadding:f,label:u}=await o(t,e,g(e)),m=y.width+10*f,p=y.height+8*f,x=.15*m,{cssStyles:b}=e,$=y.width+20,k=y.height+20,_=Math.max(m,$),S=Math.max(p,k);u.attr("transform",`translate(${-y.width/2}, ${-y.height/2})`);let v=`M0 0
|
|
11
|
+
a${x},${x} 1 0,0 ${.25*_},${-1*S*.1}
|
|
12
|
+
a${x},${x} 1 0,0 ${.25*_},0
|
|
13
|
+
a${x},${x} 1 0,0 ${.25*_},0
|
|
14
|
+
a${x},${x} 1 0,0 ${.25*_},${.1*S}
|
|
15
|
+
|
|
16
|
+
a${x},${x} 1 0,0 ${.15*_},${.33*S}
|
|
17
|
+
a${.8*x},${.8*x} 1 0,0 0,${.34*S}
|
|
18
|
+
a${x},${x} 1 0,0 ${-1*_*.15},${.33*S}
|
|
19
|
+
|
|
20
|
+
a${x},${x} 1 0,0 ${-1*_*.25},${.15*S}
|
|
21
|
+
a${x},${x} 1 0,0 ${-1*_*.25},0
|
|
22
|
+
a${x},${x} 1 0,0 ${-1*_*.25},0
|
|
23
|
+
a${x},${x} 1 0,0 ${-1*_*.25},${-1*S*.15}
|
|
24
|
+
|
|
25
|
+
a${x},${x} 1 0,0 ${-1*_*.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*_},${-1*S*.33}
|
|
28
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=h.default.svg(d),r=(0,a.userNodeOverrides)(e,{}),n=t.path(v,r);(l=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.handleUndefinedAttr)(b))}else l=d.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",v);return l.attr("transform",`translate(${-_/2}, ${-S/2})`),c(e,l),e.calcIntersect=function(t,e){return w(t,e)},e.intersect=function(t){return n.log.info("Bang intersect",e,t),w(e,t)},d}async function ei(t,e){let l,{labelStyles:r,nodeStyles:s}=(0,a.styles2String)(e);e.labelStyle=r;let{shapeSvg:d,bbox:y,halfPadding:f,label:u}=await o(t,e,g(e)),m=y.width+2*f,p=y.height+2*f,x=.15*m,b=.25*m,$=.35*m,k=.2*m,{cssStyles:_}=e,S=`M0 0
|
|
29
|
+
a${x},${x} 0 0,1 ${.25*m},${-1*m*.1}
|
|
30
|
+
a${$},${$} 1 0,1 ${.4*m},${-1*m*.1}
|
|
31
|
+
a${b},${b} 1 0,1 ${.35*m},${.2*m}
|
|
32
|
+
|
|
33
|
+
a${x},${x} 1 0,1 ${.15*m},${.35*p}
|
|
34
|
+
a${k},${k} 1 0,1 ${-1*m*.15},${.65*p}
|
|
35
|
+
|
|
36
|
+
a${b},${x} 1 0,1 ${-1*m*.25},${.15*m}
|
|
37
|
+
a${$},${$} 1 0,1 ${-1*m*.5},0
|
|
38
|
+
a${x},${x} 1 0,1 ${-1*m*.25},${-1*m*.15}
|
|
39
|
+
|
|
40
|
+
a${x},${x} 1 0,1 ${-1*m*.1},${-1*p*.35}
|
|
41
|
+
a${k},${k} 1 0,1 ${.1*m},${-1*p*.65}
|
|
42
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=h.default.svg(d),r=(0,a.userNodeOverrides)(e,{}),n=t.path(S,r);(l=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,i.handleUndefinedAttr)(_))}else l=d.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",S);return u.attr("transform",`translate(${-y.width/2}, ${-y.height/2})`),l.attr("transform",`translate(${-m/2}, ${-p/2})`),c(e,l),e.calcIntersect=function(t,e){return w(t,e)},e.intersect=function(t){return n.log.info("Cloud intersect",e,t),w(e,t)},d}async function er(t,e){let{labelStyles:l,nodeStyles:i}=(0,a.styles2String)(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 \u2014 was render.ts domId prefixing skipped?`);let u=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,u),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 W(t,e,a)}(0,n.__name)(ea,"kanbanItem"),(0,n.__name)(el,"bang"),(0,n.__name)(ei,"cloud"),(0,n.__name)(er,"defaultMindmapNode"),(0,n.__name)(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:tR},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tI},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tq},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Q},{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:W},{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:tB},{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:tp},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:tZ},{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:tm},{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:tU},{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:tO},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tW},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tH},{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:U},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:V},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:G},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tb},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:tK},{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:tG},{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:Z},{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:tJ},{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:tY},{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:tP},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tN},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tM},{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:j},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tz},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tj},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tQ},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tA},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tv}],eh=(0,n.__name)(()=>Object.fromEntries([...Object.entries({state:tE,choice:H,note:tD,rectWithTitle:tL,labelRect:tw,iconSquare:tf,iconCircle:tg,icon:tc,iconRounded:ty,imageSquare:tu,anchor:R,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.__name)(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.handleUndefinedAttr)(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.__name)(ec,"insertNode");var eg=(0,n.__name)((t,e)=>{ed.set(e.id,t)},"setNodeElem"),ey=(0,n.__name)(()=>{ed.clear()},"clear"),ef=(0,n.__name)(t=>{let e=ed.get(t.id);n.log.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(["clear",0,N,"clear2",0,ey,"createLabel_default",0,p,"insertCluster",0,M,"insertNode",0,ec,"isValidShape",0,eo,"labelHelper",0,o,"positionNode",0,ef,"setNodeElem",0,eg,"updateNodeBounds",0,c])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,351278,e=>{"use strict";var t=e.i(95547);e.i(609003);var n=e.i(347578),r=e.i(136013);e.i(620144),e.i(864421),e.i(669587);var a=e.i(908381),i=e.i(171206);e.i(461696);var o=e.i(915888),d=e.i(595007),l=e.i(142038),g=e.i(553908);e.i(178662);var s=e.i(704642);function c(e){var t,n,r,a={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e,g.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),a={v:e};return d.isUndefined(n)||(a.value=n),d.isUndefined(r)||(a.parent=r),a})),edges:(n=e,g.map(n.edges(),function(e){var t=n.edge(e),r={v:e.v,w:e.w};return d.isUndefined(e.name)||(r.name=e.name),d.isUndefined(t)||(r.value=t),r}))};return d.isUndefined(e.graph())||(r=e.graph(),a.value=(0,l.default)(r,4)),a}e.i(566661);var f=new Map,h=new Map,p=new Map,u=(0,i.__name)(()=>{h.clear(),p.clear(),f.clear()},"clear"),w=(0,i.__name)((e,t)=>{let n=h.get(t)||[];return i.log.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),v=(0,i.__name)((e,t)=>{let n=h.get(t)||[];return i.log.info("Descendants of ",t," is ",n),i.log.info("Edge is ",e),e.v!==t&&e.w!==t&&(n.includes(e.v)||w(e.v,t)||w(e.w,t)||n.includes(e.w))},"edgeInCluster"),m=(0,i.__name)((e,t,n,r)=>{i.log.warn("Copying children of ",e,"root",r,"data",t.node(e),r);let a=t.children(e)||[];e!==r&&a.push(e),i.log.warn("Copying (nodes) clusterId",e,"nodes",a),a.forEach(a=>{if(t.children(a).length>0)m(a,t,n,r);else{let o=t.node(a);i.log.info("cp ",a," to ",r," with parent ",e),n.setNode(a,o),r!==t.parent(a)&&(i.log.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(i.log.debug("Setting parent",a,e),n.setParent(a,e)):(i.log.info("In copy ",e,"root",r,"data",t.node(e),r),i.log.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));let d=t.edges(a);i.log.debug("Copying Edges",d),d.forEach(a=>{i.log.info("Edge",a);let o=t.edge(a.v,a.w,a.name);i.log.info("Edge data",o,r);try{v(a,r)?(i.log.info("Copying as ",a.v,a.w,o,a.name),n.setEdge(a.v,a.w,o,a.name),i.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(e){i.log.error(e)}})}i.log.debug("Removing node",a),t.removeNode(a)})},"copy"),y=(0,i.__name)((e,t)=>{let n=t.children(e),r=[...n];for(let a of n)p.set(a,e),r=[...r,...y(a,t)];return r},"extractDescendants"),X=(0,i.__name)((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),a=e.edges().filter(e=>e.v===n||e.w===n),i=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=a.map(e=>({v:e.v,w:e.w}));return i.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),b=(0,i.__name)((e,t,n)=>{let r,a=t.children(e);if(i.log.trace("Searching children of id ",e,a),a.length<1)return e;for(let e of a){let a=b(e,t,n),i=X(t,n,a);if(a)if(!(i.length>0))return a;else r=a}return r},"findNonClusterChild"),E=(0,i.__name)(e=>f.has(e)&&f.get(e).externalConnections&&f.has(e)?f.get(e).id:e,"getAnchorId"),N=(0,i.__name)((e,t)=>{if(!e||t>10)return void i.log.debug("Opting out, no graph ");for(let t of(i.log.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(i.log.warn("Cluster identified",t," Replacement id in edges: ",b(t,e,t)),h.set(t,y(t,e)),f.set(t,{id:b(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(i.log.debug("Cluster identified",t,h),r.forEach(e=>{w(e.v,t)^w(e.w,t)&&(i.log.warn("Edge: ",e," leaves cluster ",t),i.log.warn("Descendants of XXX ",t,": ",h.get(t)),f.get(t).externalConnections=!0)})):i.log.debug("Not a cluster ",t,h)}),f.keys())){let n=f.get(t).id,r=e.parent(n);r!==t&&f.has(r)&&!f.get(r).externalConnections&&(f.get(t).id=r)}e.edges().forEach(function(t){let n=e.edge(t);i.log.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),i.log.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,a=t.w;if(i.log.warn("Fix XXX",f,"ids:",t.v,t.w,"Translating: ",f.get(t.v)," --- ",f.get(t.w)),f.get(t.v)||f.get(t.w)){if(i.log.warn("Fixing and trying - removing XXX",t.v,t.w,t.name),r=E(t.v),a=E(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let a=e.parent(r);f.get(a).externalConnections=!0,n.fromCluster=t.v}if(a!==t.w){let r=e.parent(a);f.get(r).externalConnections=!0,n.toCluster=t.w}i.log.warn("Fix Replacing with XXX",r,a,t.name),e.setEdge(r,a,n,t.name)}}),i.log.warn("Adjusted Graph",c(e)),C(e,0),i.log.trace(f)},"adjustClustersAndEdges"),C=(0,i.__name)((e,t)=>{if(i.log.warn("extractor - ",t,c(e),e.children("D")),t>10)return void i.log.error("Bailing out");let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r=r||n.length>0}if(!r)return void i.log.debug("Done, no node has children",e.nodes());for(let r of(i.log.debug("Nodes = ",n,t),n))if(i.log.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),f.has(r))if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.log.warn("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";f.get(r)?.clusterData?.dir&&(n=f.get(r).clusterData.dir,i.log.warn("Fixing dir",f.get(r).clusterData.dir,n));let a=new s.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log.warn("Old graph before copy",c(e)),m(r,e,a,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:a}),i.log.warn("New graph after copy node: (",r,")",c(a)),i.log.debug("Old graph after copy",c(e))}else i.log.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.log.debug(f);else i.log.debug("Not a cluster",r,t);for(let r of(n=e.nodes(),i.log.warn("New list of nodes",n),n)){let n=e.node(r);i.log.warn(" Now next level",r,n),n?.clusterNode&&C(n.graph,t+1)}},"extractor"),S=(0,i.__name)((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=e.children(t),a=S(e,r);n=[...n,...a]}),n},"sorter"),_=(0,i.__name)(e=>S(e,e.children()),"sortNodesByHierarchy"),x=(0,i.__name)(async(e,a,d,l,g,s)=>{i.log.warn("Graph in recursive render:XAX",c(a),g);let h=a.graph().rankdir;i.log.trace("Dir in recursive render - dir:",h);let p=e.insert("g").attr("class","root");a.nodes()?i.log.info("Recursive render XXX",a.nodes()):i.log.info("No nodes found for",a),a.edges().length>0&&i.log.info("Recursive edges",a.edge(a.edges()[0]));let u=p.insert("g").attr("class","clusters"),w=p.insert("g").attr("class","edgePaths"),v=p.insert("g").attr("class","edgeLabels"),m=p.insert("g").attr("class","nodes");await Promise.all(a.nodes().map(async function(e){let t=a.node(e);if(void 0!==g){let t=JSON.parse(JSON.stringify(g.clusterData));i.log.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",g.height),a.setNode(g.id,t),a.parent(e)||(i.log.trace("Setting parent",e,g.id),a.setParent(e,g.id,t))}if(i.log.info("(Insert) Node XXX"+e+": "+JSON.stringify(a.node(e))),t?.clusterNode){i.log.info("Cluster identified XBX",e,t.width,a.node(e));let{ranksep:r,nodesep:o}=a.graph();t.graph.setGraph({...t.graph.graph(),ranksep:r+25,nodesep:o});let g=await x(m,t.graph,d,l,a.node(e),s),c=g.elem;(0,n.updateNodeBounds)(t,c),t.diff=g.diff||0,i.log.info("New compound node after recursive render XAX",e,"width",t.width,"height",t.height),(0,n.setNodeElem)(c,t)}else a.children(e).length>0?(i.log.trace("Cluster - the non recursive path XBX",e,t.id,t,t.width,"Graph:",a),i.log.trace(b(t.id,a)),f.set(t.id,{id:b(t.id,a),node:t})):(i.log.trace("Node - the non recursive path XAX",e,m,a.node(e),h),await (0,n.insertNode)(m,a.node(e),{config:s,dir:h}))}));let y=(0,i.__name)(async()=>{let e=a.edges().map(async function(e){let n=a.edge(e.v,e.w,e.name);i.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),i.log.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(a.edge(e))),i.log.info("Fix",f,"ids:",e.v,e.w,"Translating: ",f.get(e.v),f.get(e.w)),await (0,t.insertEdgeLabel)(v,n)});await Promise.all(e)},"processEdges");await y(),i.log.info("Graph before layout:",JSON.stringify(c(a))),i.log.info("############################################# XXX"),i.log.info("### Layout ### XXX"),i.log.info("############################################# XXX"),(0,o.layout)(a),i.log.info("Graph after layout:",JSON.stringify(c(a)));let X=0,{subGraphTitleTotalMargin:E}=(0,r.getSubGraphTitleMargins)(s);return await Promise.all(_(a).map(async function(e){let t=a.node(e);if(i.log.info("Position XBX => "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t?.clusterNode)t.y+=E,i.log.info("A tainted cluster node XBX1",e,t.id,t.width,t.height,t.x,t.y,a.parent(e)),f.get(t.id).node=t,(0,n.positionNode)(t);else if(a.children(e).length>0){i.log.info("A pure cluster node XBX1",e,t.id,t.x,t.y,t.width,t.height,a.parent(e)),t.height+=E,a.node(t.parentId);let r=t?.padding/2||0,o=t?.labelBBox?.height||0;i.log.debug("OffsetY",o-r||0,"labelHeight",o,"halfPadding",r),await (0,n.insertCluster)(u,t),f.get(t.id).node=t}else{let e=a.node(t.parentId);t.y+=E/2,i.log.info("A regular node XBX1 - using the padding",t.id,"parent",t.parentId,t.width,t.height,t.x,t.y,"offsetY",t.offsetY,"parent",e,e?.offsetY,t),(0,n.positionNode)(t)}})),a.edges().forEach(function(e){let n=a.edge(e);i.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(n),n),n.points.forEach(e=>e.y+=E/2);let r=a.node(e.v);var o=a.node(e.w);let g=(0,t.insertEdge)(w,n,f,d,r,o,l);(0,t.positionEdgeLabel)(n,g)}),a.nodes().forEach(function(e){let t=a.node(e);i.log.info(e,t.type,t.diff),t.isGroup&&(X=t.diff)}),i.log.warn("Returning from recursive render XAX",p,X),{elem:p,diff:X}},"recursiveRender"),I=(0,i.__name)(async(e,r)=>{let o=new s.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),d=r.select("g");(0,t.markers_default)(d,e.markers,e.type,e.diagramId),(0,n.clear2)(),(0,t.clear)(),(0,n.clear)(),u(),e.nodes.forEach(e=>{o.setNode(e.id,{...e}),e.parentId&&o.setParent(e.id,e.parentId)}),i.log.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+"---"+t+"---1",r=t+"---"+t+"---2",a=o.node(t);o.setNode(n,{domId:n,id:n,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),o.setParent(n,a.parentId),o.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),o.setParent(r,a.parentId);let i=structuredClone(e),d=structuredClone(e),l=structuredClone(e);i.label="",i.arrowTypeEnd="none",i.endLabelLeft="",i.endLabelRight="",i.startLabelLeft="",i.id=t+"-cyclic-special-1",d.startLabelRight="",d.startLabelLeft="",d.endLabelLeft="",d.endLabelRight="",d.arrowTypeStart="none",d.arrowTypeEnd="none",d.id=t+"-cyclic-special-mid",l.label="",l.startLabelRight="",l.startLabelLeft="",l.arrowTypeStart="none",a.isGroup&&(i.fromCluster=t,l.toCluster=t),l.id=t+"-cyclic-special-2",l.arrowTypeStart="none",o.setEdge(t,n,i,t+"-cyclic-special-0"),o.setEdge(n,r,d,t+"-cyclic-special-1"),o.setEdge(r,t,l,t+"-cyc<lic-special-2")}else o.setEdge(e.start,e.end,{...e},e.id)}),i.log.warn("Graph at first:",JSON.stringify(c(o))),N(o),i.log.warn("Graph after XAX:",JSON.stringify(c(o)));let l=(0,a.getConfig2)();await x(d,o,e.type,e.diagramId,void 0,l)},"render");e.s(["render",0,I],351278)}]);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,864421,440524,e=>{"use strict";var t=e.i(669587),n=e.i(908381),r=e.i(171206);let l=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),i=Object.freeze({...l,...s}),a=Object.freeze({...i,body:"",hidden:!1});function o(e,t){let n,r,l=(n={},!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0),(r=((e.rotate||0)+(t.rotate||0))%4)&&(n.rotate=r),n);for(let n in a)n in s?n in e&&!(n in l)&&(l[n]=s[n]):n in t?l[n]=t[n]:n in e&&(l[n]=e[n]);return l}function c(e,t,n){let r=e.icons,l=e.aliases||Object.create(null),s={};function i(e){s=o(r[e]||l[e],s)}return i(t),n.forEach(i),o(e,s)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...s}),h=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(h);if(null===r||!r.length)return e;let l=[],s=r.shift(),i=u.test(s);for(;;){if(i){let e=parseFloat(s);isNaN(e)?l.push(s):l.push(Math.ceil(e*t*n)/n)}else l.push(s);if(void 0===(s=r.shift()))return l.join("");i=!i}}let f=/\sid="(\S+)"/g,d=new Map,k=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name);e.i(947716);var x=e.i(723685);function m(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var b=m(),w={exec:()=>null};function y(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let l="string"==typeof t?t:t.source;return l=l.replace(S.caret,"$1"),n=n.replace(e,l),r},getRegex:()=>new RegExp(n,t)};return r}var $=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},R=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T=/(?:[*+-]|\d{1,9}[.)])/,_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,z=y(_).replace(/bull/g,T).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),A=y(_).replace(/bull/g,T).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,E=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,I=y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",E).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P=y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,T).getRegex(),L="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",B=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C=y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",B).replace("tag",L).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j=y(v).replace("hr",R).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex(),M={blockquote:y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",j).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:I,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:R,html:C,lheading:z,list:P,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:j,table:w,text:/^[^\n]+/},q=y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",R).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex(),O={...M,lheading:A,table:q,paragraph:y(v).replace("hr",R).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",q).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex()},Z={...M,html:y("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",B).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y(v).replace("hr",R).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",z).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},F=/^( {2,}|\\)\n(?!\s*$)/,D=/[\p{P}\p{S}]/u,H=/[\s\p{P}\p{S}]/u,N=/[^\s\p{P}\p{S}]/u,W=y(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,H).getRegex(),Q=/(?!~)[\p{P}\p{S}]/u,G=y(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,K=y(U,"u").replace(/punct/g,D).getRegex(),X=y(U,"u").replace(/punct/g,Q).getRegex(),V="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Y=y(V,"gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,H).replace(/punct/g,D).getRegex(),J=y(V,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Q).getRegex(),ee=y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,H).replace(/punct/g,D).getRegex(),et=y(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),en=y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),er=y(B).replace("(?:-->|$)","-->").getRegex(),el=y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",er).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),es=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ei=y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",es).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ea=y(/^!?\[(label)\]\[(ref)\]/).replace("label",es).replace("ref",E).getRegex(),eo=y(/^!?\[(ref)\](?:\[\])?/).replace("ref",E).getRegex(),ec=y("reflink|nolink(?!\\()","g").replace("reflink",ea).replace("nolink",eo).getRegex(),ep=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,eh={_backpedal:w,anyPunctuation:et,autolink:en,blockSkip:G,br:F,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:w,emStrongLDelim:K,emStrongRDelimAst:Y,emStrongRDelimUnd:ee,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ei,nolink:eo,punctuation:W,reflink:ea,reflinkSearch:ec,tag:el,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:w},eu={...eh,link:y(/^!?\[(label)\]\((.*?)\)/).replace("label",es).getRegex(),reflink:y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",es).getRegex()},eg={...eh,emStrongRDelimAst:J,emStrongLDelim:X,url:y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ep).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ep).getRegex()},ef={...eg,br:y(F).replace("{2,}","*").getRegex(),text:y(eg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ed={normal:M,gfm:O,pedantic:Z},ek={normal:eh,gfm:eg,breaks:ef,pedantic:eu},ex={"&":"&","<":"<",">":">",'"':""","'":"'"},em=e=>ex[e];function eb(e,t){if(t){if(S.escapeTest.test(e))return e.replace(S.escapeReplace,em)}else if(S.escapeTestNoEncode.test(e))return e.replace(S.escapeReplaceNoEncode,em);return e}function ew(e){try{e=encodeURI(e).replace(S.percentDecode,"%")}catch{return null}return e}function ey(e,t){let n=e.replace(S.findPipe,(e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"}).split(S.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(S.slashPipe,"|");return n}function e$(e,t,n){let r=e.length;if(0===r)return"";let l=0;for(;l<r;){let s=e.charAt(r-l-1);if(s!==t||n)if(s!==t&&n)l++;else break;else l++}return e.slice(0,r-l)}function eS(e,t,n,r,l){let s=t.href,i=t.title||null,a=e[1].replace(l.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:s,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}var eR=class{options;rules;lexer;constructor(e){this.options=e||b}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:e$(e,`
|
|
3
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let l=r[1];return t.split(`
|
|
4
|
+
`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=l.length?e.slice(l.length):e}).join(`
|
|
5
|
+
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=e$(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:e$(t[0],`
|
|
6
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=e$(t[0],`
|
|
7
|
+
`).split(`
|
|
8
|
+
`),n="",r="",l=[];for(;e.length>0;){let t=!1,s=[],i;for(i=0;i<e.length;i++)if(this.rules.other.blockquoteStart.test(e[i]))s.push(e[i]),t=!0;else if(t)break;else s.push(e[i]);e=e.slice(i);let a=s.join(`
|
|
9
|
+
`),o=a.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
11
|
+
${a}`:a,r=r?`${r}
|
|
12
|
+
${o}`:o;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,l,!0),this.lexer.state.top=c,0===e.length)break;let p=l.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let t=p.raw+`
|
|
13
|
+
`+e.join(`
|
|
14
|
+
`),s=this.blockquote(t);l[l.length-1]=s,n=n.substring(0,n.length-p.raw.length)+s.raw,r=r.substring(0,r.length-p.text.length)+s.text;break}if(p?.type==="list"){let t=p.raw+`
|
|
15
|
+
`+e.join(`
|
|
16
|
+
`),s=this.list(t);l[l.length-1]=s,n=n.substring(0,n.length-p.raw.length)+s.raw,r=r.substring(0,r.length-p.raw.length)+s.raw,e=t.substring(l.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:l,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),i=!1;for(;e;){let n=!1,r="",a="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let o=t[2].split(`
|
|
18
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(`
|
|
19
|
+
`,1)[0],p=!o.trim(),h=0;if(this.options.pedantic?(h=2,a=o.trimStart()):p?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,a=o.slice(h),h+=t[1].length),p&&this.rules.other.blankLine.test(c)&&(r+=c+`
|
|
20
|
+
`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),l=this.rules.other.fencesBeginRegex(h),s=this.rules.other.headingBeginRegex(h),i=this.rules.other.htmlBeginRegex(h);for(;e;){let u=e.split(`
|
|
21
|
+
`,1)[0],g;if(c=u,g=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),l.test(c)||s.test(c)||i.test(c)||t.test(c)||n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=h||!c.trim())a+=`
|
|
22
|
+
`+g.slice(h);else{if(p||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||l.test(o)||s.test(o)||n.test(o))break;a+=`
|
|
23
|
+
`+c}p||c.trim()||(p=!0),r+=u+`
|
|
24
|
+
`,e=e.substring(u.length+1),o=g.slice(h)}}l.loose||(i?l.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(i=!0));let u=null,g;this.options.gfm&&(u=this.rules.other.listIsTask.exec(a))&&(g="[ ] "!==u[0],a=a.replace(this.rules.other.listReplaceTask,"")),l.items.push({type:"list_item",raw:r,task:!!u,checked:g,loose:!1,text:a,tokens:[]}),l.raw+=r}let a=l.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),l.raw=l.raw.trimEnd();for(let e=0;e<l.items.length;e++)if(this.lexer.state.top=!1,l.items[e].tokens=this.lexer.blockTokens(l.items[e].text,[]),!l.loose){let t=l.items[e].tokens.filter(e=>"space"===e.type);l.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(l.loose)for(let e=0;e<l.items.length;e++)l.items[e].loose=!0;return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ey(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
+
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<n.length;e++)s.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:s.align[e]});for(let e of l)s.rows.push(ey(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
26
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=e$(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eS(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eS(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,l,s,i=n,a=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=o.exec(t));){if(!(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(s=[...l].length,r[3]||r[4]){i+=s;continue}if((r[5]||r[6])&&n%3&&!((n+s)%3)){a+=s;continue}if((i-=s)>0)continue;s=Math.min(s,s+i+a);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+s);if(Math.min(n,s)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0])e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},eT=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||b,this.options.tokenizer=this.options.tokenizer||new eR,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:S,block:ed.normal,inline:ek.normal};this.options.pedantic?(t.block=ed.pedantic,t.inline=ek.pedantic):this.options.gfm&&(t.block=ed.gfm,this.options.breaks?t.inline=ek.breaks:t.inline=ek.gfm),this.tokenizer.rules=t}static get rules(){return{block:ed,inline:ek}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(S.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(S.tabCharGlobal," ").replace(S.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
|
|
28
|
+
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
29
|
+
`)?"":`
|
|
30
|
+
`)+r.raw,n.text+=`
|
|
31
|
+
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
32
|
+
`)?"":`
|
|
33
|
+
`)+r.raw,n.text+=`
|
|
34
|
+
`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){let s=t.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
35
|
+
`)?"":`
|
|
36
|
+
`)+r.raw,s.text+=`
|
|
37
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),n=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
38
|
+
`)?"":`
|
|
39
|
+
`)+r.raw,n.text+=`
|
|
40
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,l=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,l.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(r));)n=l[2]?l[2].length:0,r=r.slice(0,l.index+n)+"["+"a".repeat(l[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,i="";for(;e;){let n;if(s||(i=""),s=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,i))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let l=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(l)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(i=n.raw.slice(-1)),s=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},e_=class{options;parser;constructor(e){this.options=e||b}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(S.notSpaceStart)?.[0],l=e.replace(S.endingNewline,"")+`
|
|
41
|
+
`;return r?'<pre><code class="language-'+eb(r)+'">'+(n?l:eb(l,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(n?l:eb(l,!0))+`</code></pre>
|
|
43
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
44
|
+
${this.parser.parse(e)}</blockquote>
|
|
45
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
46
|
+
`}hr(e){return`<hr>
|
|
47
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let l=t?"ol":"ul";return"<"+l+(t&&1!==n?' start="'+n+'"':"")+`>
|
|
48
|
+
`+r+"</"+l+`>
|
|
49
|
+
`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+eb(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
50
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
51
|
+
`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let l=e.rows[t];n="";for(let e=0;e<l.length;e++)n+=this.tablecell(l[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
52
|
+
<thead>
|
|
53
|
+
`+t+`</thead>
|
|
54
|
+
`+r+`</table>
|
|
55
|
+
`}tablerow({text:e}){return`<tr>
|
|
56
|
+
${e}</tr>
|
|
57
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
58
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${eb(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),l=ew(e);if(null===l)return r;let s='<a href="'+(e=l)+'"';return t&&(s+=' title="'+eb(t)+'"'),s+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let l=ew(e);if(null===l)return eb(n);e=l;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${eb(t)}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eb(e.text)}},ez=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},eA=class e{options;renderer;textRenderer;constructor(e){this.options=e||b,this.options.renderer=this.options.renderer||new e_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ez}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=e||"";continue}}switch(l.type){case"space":n+=this.renderer.space(l);continue;case"hr":n+=this.renderer.hr(l);continue;case"heading":n+=this.renderer.heading(l);continue;case"code":n+=this.renderer.code(l);continue;case"table":n+=this.renderer.table(l);continue;case"blockquote":n+=this.renderer.blockquote(l);continue;case"list":n+=this.renderer.list(l);continue;case"html":n+=this.renderer.html(l);continue;case"def":n+=this.renderer.def(l);continue;case"paragraph":n+=this.renderer.paragraph(l);continue;case"text":{let s=l,i=this.renderer.text(s);for(;r+1<e.length&&"text"===e[r+1].type;)s=e[++r],i+=`
|
|
59
|
+
`+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:i,text:i,tokens:[{type:"text",raw:i,text:i,escaped:!0}]}):n+=i;continue}default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=e||"";continue}}switch(l.type){case"escape":case"text":n+=t.text(l);break;case"html":n+=t.html(l);break;case"link":n+=t.link(l);break;case"image":n+=t.image(l);break;case"strong":n+=t.strong(l);break;case"em":n+=t.em(l);break;case"codespan":n+=t.codespan(l);break;case"br":n+=t.br(l);break;case"del":n+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ev=class{options;block;constructor(e){this.options=e||b}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?eT.lex:eT.lexInline}provideParser(){return this.block?eA.parse:eA.parseInline}},eE=new class{defaults=m();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eA;Renderer=e_;TextRenderer=ez;Lexer=eT;Tokenizer=eR;Hooks=ev;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let l=e[r].flat(1/0);n=n.concat(this.walkTokens(l,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new e_(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],l=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eR(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],l=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ev;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],l=t[n];ev.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ev.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return l.call(t,n)})();let s=r.call(t,e);return l.call(t,s)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await l.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eT.lex(e,t??this.defaults)}parser(e,t){return eA.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},l={...this.defaults,...r},s=this.onError(!!l.silent,!!l.async);if(!0===this.defaults.async&&!1===r.async)return s(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=e),l.async)return(async()=>{let n=l.hooks?await l.hooks.preprocess(t):t,r=await (l.hooks?await l.hooks.provideLexer():e?eT.lex:eT.lexInline)(n,l),s=l.hooks?await l.hooks.processAllTokens(r):r;l.walkTokens&&await Promise.all(this.walkTokens(s,l.walkTokens));let i=await (l.hooks?await l.hooks.provideParser():e?eA.parse:eA.parseInline)(s,l);return l.hooks?await l.hooks.postprocess(i):i})().catch(s);try{l.hooks&&(t=l.hooks.preprocess(t));let n=(l.hooks?l.hooks.provideLexer():e?eT.lex:eT.lexInline)(t,l);l.hooks&&(n=l.hooks.processAllTokens(n)),l.walkTokens&&this.walkTokens(n,l.walkTokens);let r=(l.hooks?l.hooks.provideParser():e?eA.parse:eA.parseInline)(n,l);return l.hooks&&(r=l.hooks.postprocess(r)),r}catch(e){return s(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+eb(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function eI(e,t){return eE.parse(e,t)}function eP(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var l=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!=(n=null==(t=e.match(/[\t ]/g))?void 0:t.length)?n:0})):e},[]);if(l.length){var s=RegExp("\n[ ]{"+Math.min.apply(Math,l)+"}","g");r=r.map(function(e){return e.replace(s,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var i=r[0];return t.forEach(function(e,t){var n=i.match(/(?:^|\n)( *)$/),l=n?n[1]:"",s=e;"string"==typeof e&&e.includes("\n")&&(s=String(e).split("\n").map(function(e,t){return 0===t?e:""+l+e}).join("\n")),i+=s+r[t+1]}),i}eI.options=eI.setOptions=function(e){return eE.setOptions(e),eI.defaults=eE.defaults,b=eI.defaults,eI},eI.getDefaults=m,eI.defaults=b,eI.use=function(...e){return eE.use(...e),eI.defaults=eE.defaults,b=eI.defaults,eI},eI.walkTokens=function(e,t){return eE.walkTokens(e,t)},eI.parseInline=eE.parseInline,eI.Parser=eA,eI.parser=eA.parse,eI.Renderer=e_,eI.TextRenderer=ez,eI.Lexer=eT,eI.lexer=eT.lex,eI.Tokenizer=eR,eI.Hooks=ev,eI.parse=eI,eI.options,eI.setOptions,eI.use,eI.walkTokens,eI.parseInline,eA.parse,eT.lex,e.s(["dedent",0,eP],440524);var eL={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},eB=new Map,eC=new Map,ej=(0,r.__name)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(r.log.debug("Registering icon pack:",t.name),"loader"in t)eC.set(t.name,t.loader);else if("icons"in t)eB.set(t.name,t.icons);else throw r.log.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),eM=(0,r.__name)(async(e,t)=>{let n=((e,t,n,r="")=>{let l=e.split(":");if("@"===e.slice(0,1)){if(l.length<2||l.length>3)return null;r=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){let e=l.pop(),n=l.pop(),s={provider:l.length>0?l[0]:r,prefix:n,name:e};return t&&!k(s)?null:s}let s=l[0],i=s.split("-");if(i.length>1){let e={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!k(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:s};return t&&!k(e,n)?null:e}return null})(e,!0,void 0!==t);if(!n)throw Error(`Invalid icon name: ${e}`);let l=n.prefix||t;if(!l)throw Error(`Icon name must contain a prefix: ${e}`);let s=eB.get(l);if(!s){let e=eC.get(l);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{s={...await e(),prefix:l},eB.set(l,s)}catch(e){throw r.log.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let i=function(e,t){var n;let r,l,s;if(e.icons[t])return c(e,t,[]);let i=(n=[t],r=e.icons,l=e.aliases||Object.create(null),s=Object.create(null),(n||Object.keys(r).concat(Object.keys(l))).forEach(function e(t){if(r[t])return s[t]=[];if(!(t in s)){s[t]=null;let n=l[t]&&l[t].parent,r=n&&e(n);r&&(s[t]=[n].concat(r))}return s[t]}),s)[t];return i?c(e,t,i):null}(s,n.name);if(!i)throw Error(`Icon not found: ${e}`);return i},"getRegisteredIconData"),eq=(0,r.__name)(async e=>{try{return await eM(e),!0}catch{return!1}},"isIconAvailable"),eO=(0,r.__name)(async(e,t,l)=>{var s;let a,o,c,h,u,k,x,m,b,w,y,$,S,R;try{a=await eM(e,t?.fallbackPrefix)}catch(e){r.log.error(e),a=eL}let T=(s=a,h={...i,...s},u={...p,...t},k={left:h.left,top:h.top,width:h.width,height:h.height},x=h.body,[h,u].forEach(e=>{var t,n,r,l;let s,i,a=[],o=e.hFlip,c=e.vFlip,p=e.rotate;switch(o?c?p+=2:(a.push("translate("+(k.width+k.left).toString()+" "+(0-k.top).toString()+")"),a.push("scale(-1 1)"),k.top=k.left=0):c&&(a.push("translate("+(0-k.left).toString()+" "+(k.height+k.top).toString()+")"),a.push("scale(1 -1)"),k.top=k.left=0),p<0&&(p-=4*Math.floor(p/4)),p%=4){case 1:a.unshift("rotate(90 "+(s=k.height/2+k.top).toString()+" "+s.toString()+")");break;case 2:a.unshift("rotate(180 "+(k.width/2+k.left).toString()+" "+(k.height/2+k.top).toString()+")");break;case 3:a.unshift("rotate(-90 "+(s=k.width/2+k.left).toString()+" "+s.toString()+")")}p%2==1&&(k.left!==k.top&&(s=k.left,k.left=k.top,k.top=s),k.width!==k.height&&(s=k.width,k.width=k.height,k.height=s)),a.length&&(t=x,n='<g transform="'+a.join(" ")+'">',r=(i=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let l=e.indexOf(">",r),s=e.indexOf("</"+t);if(-1===l||-1===s)break;let i=e.indexOf(">",s);if(-1===i)break;n+=e.slice(l+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}(t)).defs,l=n+i.content+"</g>",x=r?"<defs>"+r+"</defs>"+l:l)}),m=u.width,b=u.height,w=k.width,y=k.height,null===m?o=g(c=null===b?"1em":"auto"===b?y:b,w/y):(o="auto"===m?w:m,c=null===b?g(o,y/w):"auto"===b?y:b),$={},(S=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&($[e]=t.toString())})("width",o),S("height",c),$.viewBox=(R=[k.left,k.top,w,y]).join(" "),{attributes:$,viewBox:R,body:x}),_=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e){let t,n=[];for(;t=f.exec(e);)n.push(t[1]);if(!n.length)return e;let r="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return n.forEach(t=>{var n;let l,s=(n=(n=t).replace(/[0-9]+$/,"")||"a",l=d.get(n)||0,d.set(n,l+1),l?`${n}${l}`:n),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),e=e.replace(RegExp(r,"g"),"")}(T.body),{...T.attributes,...l});return(0,n.sanitizeText)(_,(0,n.getConfig)())},"getIconSVG");function eZ(e,{markdownAutoWrap:t}){return eP(e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"))}function eF(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:"normal"}))??[])}function eD(e,t={}){let n=eZ(e,t),l=eI.lexer(n),s=[[]],i=0;function a(e,t="normal"){"text"===e.type?e.text.split("\n").forEach((e,n)=>{0!==n&&(i++,s.push([])),e.split(" ").forEach(e=>{(e=e.replace(/'/g,"'"))&&s[i].push({content:e,type:t})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{a(t,e.type)}):"html"===e.type&&s[i].push({content:e.text,type:"normal"})}return(0,r.__name)(a,"processNode"),l.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{a(e)}):"html"===e.type?s[i].push({content:e.text,type:"normal"}):s[i].push({content:e.raw,type:"normal"})}),s}function eH(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function eN(e,{markdownAutoWrap:t}={}){let n=eI.lexer(e);function l(e){if("text"===e.type)return!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g," "):e.text.replace(/\n */g,"<br/>");if("strong"===e.type)return`<strong>${e.tokens?.map(l).join("")}</strong>`;if("em"===e.type)return`<em>${e.tokens?.map(l).join("")}</em>`;if("paragraph"===e.type)return`<p>${e.tokens?.map(l).join("")}</p>`;if("space"===e.type)return"";else if("html"===e.type)return`${e.text}`;else if("escape"===e.type)return e.text;return r.log.warn(`Unsupported markdown: ${e.type}`),e.raw}return(0,r.__name)(l,"output"),n.map(l).join("")}function eW(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function eQ(e,t){return eG(e,[],eW(t.content),t.type)}function eG(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];let[l,...s]=n,i=[...t,l];return e([{content:i.join(""),type:r}])?eG(e,i,s,r):(0===t.length&&l&&(t.push(l),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function eU(e,t){if(e.some(({content:e})=>e.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return eK(e,t)}function eK(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let l="";" "===e[0].content&&(l=" ",e.shift());let s=e.shift()??{content:" ",type:"normal"},i=[...r];if(""!==l&&i.push({content:l,type:"normal"}),i.push(s),t(i))return eK(e,t,n,i);if(r.length>0)n.push(r),e.unshift(s);else if(s.content){let[r,l]=eQ(t,s);n.push([r]),l.content&&e.unshift(l)}return eK(e,t,n)}function eX(e,t){t&&e.attr("style",t)}async function eV(e,t,r,l,s=!1,i=(0,n.getConfig)()){let a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,16384)}px`),a.attr("height",`${Math.min(10*r,16384)}px`);let o=a.append("xhtml:div"),c=(0,n.hasKatex)(t.label)?await (0,n.renderKatexSanitized)(t.label.replace(n.common_default.lineBreakRegex,"\n"),i):(0,n.sanitizeText)(t.label,i),p=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(c),eX(h,t.labelStyle),h.attr("class",`${p} ${l}`),eX(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==1/0&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),a.node()}function eY(e,t,n,r=!1){let l=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em");return r&&l.attr("text-anchor","middle"),l}function eJ(e,t,n){let r=e.append("text"),l=eY(r,1,t);e2(l,n);let s=l.node().getComputedTextLength();return r.remove(),s}function e0(e,t,n){let r=e.append("text"),l=eY(r,1,t);e2(l,[{content:n,type:"normal"}]);let s=l.node()?.getBoundingClientRect();return s&&r.remove(),s}function e1(e,t,n,l=!1,s=!1){let i=t.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),o=i.append("text").attr("y","-10.1");s&&o.attr("text-anchor","middle");let c=0;for(let t of n){let n=(0,r.__name)(t=>eJ(i,1.1,t)<=e,"checkWidth");for(let e of n(t)?[t]:eU(t,n))e2(eY(o,c,1.1,s),e),c++}if(!l)return o.node();{let e=o.node().getBBox();return a.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),i.node()}}function e3(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function e2(e,t){e.text(""),t.forEach((t,n)=>{let r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(e3(t.content)):r.text(" "+e3(t.content))})}async function e9(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,l,s)=>(r.push((async()=>{let r=`${l}:${s}`;return await eq(r)?await eO(r,void 0,{class:"label-icon"}):`<i class='${(0,n.sanitizeText)(e,t).replace(":"," ")}'></i>`})()),e));let l=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>l.shift()??"")}(0,r.__name)(eZ,"preprocessMarkdown"),(0,r.__name)(eF,"nonMarkdownToLines"),(0,r.__name)(eD,"markdownToLines"),(0,r.__name)(eH,"nonMarkdownToHTML"),(0,r.__name)(eN,"markdownToHTML"),(0,r.__name)(eW,"splitTextToChars"),(0,r.__name)(eQ,"splitWordToFitWidth"),(0,r.__name)(eG,"splitWordToFitWidthRecursion"),(0,r.__name)(eU,"splitLineToFitWidth"),(0,r.__name)(eK,"splitLineToFitWidthRecursion"),(0,r.__name)(eX,"applyStyle"),(0,r.__name)(eV,"addHtmlSpan"),(0,r.__name)(eY,"createTspan"),(0,r.__name)(eJ,"computeWidthOfText"),(0,r.__name)(e0,"computeDimensionOfText"),(0,r.__name)(e1,"createFormattedText"),(0,r.__name)(e3,"decodeHTMLEntities"),(0,r.__name)(e2,"updateTextContentAndStyles"),(0,r.__name)(e9,"replaceIconSubstring");var e4=(0,r.__name)(async(e,l="",{style:s="",isTitle:i=!1,classes:a="",useHtmlLabels:o=!0,markdown:c=!0,isNode:p=!0,width:h=200,addSvgBackground:u=!1}={},g)=>{if(r.log.debug("XYZ createText",l,s,i,a,o,p,"addSvgBackground: ",u),o){let r=c?eN(l,g):eH(l),i=await e9((0,t.decodeEntities)(r),g),o=l.replace(/\\\\/g,"\\"),f={isNode:p,label:(0,n.hasKatex)(l)?o:i,labelStyle:s.replace("fill:","color:")};return await eV(e,f,h,a,u,g)}{let n=(0,t.decodeEntities)(l.replace(/<br\s*\/?>/g,"<br/>")),r=e1(h,e,c?eD(n.replace("<br>","<br/>"),g):eF(n),!!l&&u,!p);if(p){/stroke:/.exec(s)&&(s=s.replace("stroke:","lineColor:"));let e=s.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,x.select)(r).attr("style",e)}else{let e=s.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,x.select)(r).select("rect").attr("style",e.replace(/background:/g,"fill:"));let t=s.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,x.select)(r).select("text").attr("style",t)}return i?(0,x.select)(r).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,x.select)(r).selectAll("tspan.text-outer-tspan").classed("row",!0),r}},"createText");e.s(["computeDimensionOfText",0,e0,"createText",0,e4,"getIconSVG",0,eO,"registerIconPacks",0,ej,"unknownIcon",0,eL],864421)}]);
|