@evoscientist/webui 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.next/BUILD_ID +1 -1
- package/dist/.next/build-manifest.json +3 -3
- package/dist/.next/prerender-manifest.json +3 -3
- package/dist/.next/required-server-files.json +5 -5
- package/dist/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/.next/server/app/_global-error.html +1 -1
- package/dist/.next/server/app/_global-error.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/api/memory/executions/route.js +1 -1
- package/dist/.next/server/app/api/memory/executions/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/memory/observations/route.js +1 -1
- package/dist/.next/server/app/api/memory/observations/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/memory/route.js +1 -1
- package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/install/route.js +1 -1
- package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/route.js +1 -1
- package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/download/route.js +1 -1
- package/dist/.next/server/app/api/workspace/download/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/file/route.js +1 -1
- package/dist/.next/server/app/api/workspace/file/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/route.js +1 -1
- package/dist/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/upload/route.js +1 -1
- package/dist/.next/server/app/api/workspace/upload/route.js.nft.json +1 -1
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +2 -2
- package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/dist/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- 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/{[root-of-the-server]__0k-rs5f._.js → [root-of-the-server]__01e0ekn._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0t923su._.js → [root-of-the-server]__08gtyud._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0key-2n._.js → [root-of-the-server]__0c_9zoh._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0zqsdzd._.js → [root-of-the-server]__0dsauq5._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0jsq76h._.js → [root-of-the-server]__0om1fsa._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__1alqt3_._.js → [root-of-the-server]__19l67fj._.js} +1 -1
- package/dist/.next/server/chunks/{[root-of-the-server]__0nn8czk._.js → [root-of-the-server]__1nb3ezt._.js} +1 -1
- package/dist/.next/server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js +84 -0
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js +92 -0
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js +81 -0
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js +117 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js +106 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js +66 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js +136 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js +81 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js +3 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js +155 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js +79 -0
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js +3 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0xpcv9w._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__1q-wcrf._.js +15 -0
- package/dist/.next/server/chunks/ssr/node_modules_0-3gk4n._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_03mz3d2._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_042csl2._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_063ofsn._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_0_3n1hi._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_0_n1n9u._.js +43 -0
- package/dist/.next/server/chunks/ssr/node_modules_0bnt8d5._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0dxcji9._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_082g_84._.js → node_modules_0f5_pdq._.js} +12 -3
- package/dist/.next/server/chunks/ssr/node_modules_0gmj-7m._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0j6b-p5._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_111pp7w._.js → node_modules_0klo3i5._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0koo_87._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0mhroki._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0pimgwq._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0qw862r._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0rb-_la._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0s436hr._.js +24 -0
- package/dist/.next/server/chunks/ssr/node_modules_0u5o24a._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0z53q9t._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0zzr3iv._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1p9b60w._.js → node_modules_11trqmi._.js} +4 -4
- package/dist/.next/server/chunks/ssr/{node_modules_1-wfv6i._.js → node_modules_14_5zct._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_14gkv49._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_14j-r2i._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1nck62h._.js → node_modules_16ih6qm._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_18frml9._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_1_d0q_7._.js +289 -0
- package/dist/.next/server/chunks/ssr/node_modules_1asq18n._.js +29 -0
- package/dist/.next/server/chunks/ssr/node_modules_1b08rf0._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bddg7x._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bo15xl._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1bompw4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1c0h-_d._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1i5ml3x._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1jpkt5_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1ki78ma._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_0v4zc0t._.js → node_modules_1nl12mt._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_1rsc-gt._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_1thrjjl._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1ti62ba._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_0456qqx._.js → node_modules_1tsuh_o._.js} +3 -3
- package/dist/.next/server/chunks/ssr/node_modules_1vbiuwu._.js +63 -0
- package/dist/.next/server/chunks/ssr/{node_modules_1_v-pb8._.js → node_modules_1wn8qu0._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_1z_uie6._.js → node_modules_1wvft2t._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_1xgltz7._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1y4f8cf._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_1z39zs4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_066fcep._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0_301m2._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0it10w8._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0m-ahsg._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n8rqkj._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0nb4v-i._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0tdjo9s._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12betp4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1mu01rb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1xda76v._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1z2f7i3._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_20vrei_._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1quf15b._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0muxjzn._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0__ix0y._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0597f-k._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1vi37xl._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js +3 -0
- package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1fzbfn5._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js} +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_04eh6b6._.js → node_modules_katex_dist_katex_mjs_16enqn_._.js} +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0e5n4p5._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js +126 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js +34 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js +4 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js +124 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js +228 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js +12 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js +160 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js +88 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js +203 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-Y2CYZVJY_mjs_20i4m4_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js +96 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js +36 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js +25 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_1ao-jv5._.js +3 -3
- package/dist/.next/server/middleware-build-manifest.js +3 -3
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.js +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/chunks/00h58csdfefay.js +1 -0
- package/dist/.next/static/chunks/01_remgex0cp2.js +1 -0
- package/dist/.next/static/chunks/01xjer0i_e5z5.js +15 -0
- package/dist/.next/static/chunks/025bmrgeukcb2.js +15 -0
- package/dist/.next/static/chunks/02slxciv9jt1p.js +77 -0
- package/dist/.next/static/chunks/04e-e--5lk26x.js +287 -0
- package/dist/.next/static/chunks/09nk4rn1z6j8b.js +1 -0
- package/dist/.next/static/chunks/0_l0vn2teso0z.js +1 -0
- package/dist/.next/static/chunks/0a_kuude9z_bg.js +1 -0
- package/dist/.next/static/chunks/0bz8pjqbx0nt7.js +1 -0
- package/dist/.next/static/chunks/0cnrxsj5iw5ld.js +2 -0
- package/dist/.next/static/chunks/0dcfqbly-089u.js +10 -0
- package/dist/.next/static/chunks/0dhmf6y59xjoo.js +1 -0
- package/dist/.next/static/chunks/{2-tnv5f86ywqz.js → 0kdfzi54utgbh.js} +1 -1
- package/dist/.next/static/chunks/0m-pl93u72hp9.js +1 -0
- package/dist/.next/static/chunks/0mkmxdnpoteey.js +1 -0
- package/dist/.next/static/chunks/{41ii5ld31fjk5.js → 0oyz95sujd2c7.js} +3 -3
- package/dist/.next/static/chunks/0p54qye85am3w.js +1 -0
- package/dist/.next/static/chunks/0q5tyevxl-ioe.js +1 -0
- package/dist/.next/static/chunks/0r79_ebje0i6_.js +1 -0
- package/dist/.next/static/chunks/0si45yj1su8y7.js +23 -0
- package/dist/.next/static/chunks/0u3ktztrzu1fa.js +1 -0
- package/dist/.next/static/chunks/0u9ae9k_2g7k3.js +1 -0
- package/dist/.next/static/chunks/{357a_3k2qrz6b.js → 0vhltcpdssl3-.js} +1 -1
- package/dist/.next/static/chunks/0x7n81v2cw92f.js +64 -0
- package/dist/.next/static/chunks/{1wsp3h55ims3-.js → 1-2_pusn4n8oh.js} +3 -3
- package/dist/.next/static/chunks/1-axl1a1s8xi7.js +1 -0
- package/dist/.next/static/chunks/14osgsp3aiqpz.js +79 -0
- package/dist/.next/static/chunks/16mzcd_gvdgbo.js +1 -0
- package/dist/.next/static/chunks/1815xwa8351ma.js +1 -0
- package/dist/.next/static/chunks/1d9i8nlx-zy9a.js +62 -0
- package/dist/.next/static/chunks/1ebh7wwf-wzqn.js +32 -0
- package/dist/.next/static/chunks/1g6hadfcoz4ag.js +62 -0
- package/dist/.next/static/chunks/1kg8hnvdsweku.js +1 -0
- package/dist/.next/static/chunks/1kzq0rdlu1v0j.js +86 -0
- package/dist/.next/static/chunks/1qapeyh3r6cg3.js +1 -0
- package/dist/.next/static/chunks/1rh4z578p-h1a.js +104 -0
- package/dist/.next/static/chunks/1rowt7kr1tu9y.js +1 -0
- package/dist/.next/static/chunks/1u5i-jti87jbo.js +153 -0
- package/dist/.next/static/chunks/1v15lv0fcel0n.js +1 -0
- package/dist/.next/static/chunks/1wrwqqt23_cqy.js +94 -0
- package/dist/.next/static/chunks/21o6_7520je3e.js +1 -0
- package/dist/.next/static/chunks/221-n1wtpkus8.js +27 -0
- package/dist/.next/static/chunks/25pfy8u3vc_bn.js +24 -0
- package/dist/.next/static/chunks/266qo7h19xz_m.js +24 -0
- package/dist/.next/static/chunks/27ag7-c9a81uz.js +1 -0
- package/dist/.next/static/chunks/2b4v6n9b8htrv.js +158 -0
- package/dist/.next/static/chunks/2b57kmz64uj8h.js +1 -0
- package/dist/.next/static/chunks/2gocl3dq0_h1s.js +15 -0
- package/dist/.next/static/chunks/2itcfm_igcz5x.js +201 -0
- package/dist/.next/static/chunks/2l1phv_g29xz7.js +61 -0
- package/dist/.next/static/chunks/2m267diam_vib.js +22 -0
- package/dist/.next/static/chunks/2o4dndk0d68do.js +1 -0
- package/dist/.next/static/chunks/2qq7e47gpyc_e.js +82 -0
- package/dist/.next/static/chunks/2re701zfx-nrj.js +1 -0
- package/dist/.next/static/chunks/2sdwbfs1x5skp.js +1 -0
- package/dist/.next/static/chunks/2udhdtq_z8488.js +115 -0
- package/dist/.next/static/chunks/31etpuynk3lai.js +1 -0
- package/dist/.next/static/chunks/{05cl5ojgc4_ku.js → 32e7ex-ufg57f.js} +14 -14
- package/dist/.next/static/chunks/38h4_u_fq6ose.js +38 -0
- package/dist/.next/static/chunks/397b67vbg5iof.js +4 -0
- package/dist/.next/static/chunks/3fg_vuz1xt14w.js +1 -0
- package/dist/.next/static/chunks/3her9o9_qn46y.js +226 -0
- package/dist/.next/static/chunks/3lnrl25cwsoyk.js +90 -0
- package/dist/.next/static/chunks/3lx-n8v_8u7og.js +1 -0
- package/dist/.next/static/chunks/3mjwob-a5hhwz.js +1 -0
- package/dist/.next/static/chunks/3n80kknp-eoi9.js +1 -0
- package/dist/.next/static/chunks/3oif9bymgqjgd.js +41 -0
- package/dist/.next/static/chunks/3peltyinql2qj.js +34 -0
- package/dist/.next/static/chunks/3r4zv-ypmltqz.js +13 -0
- package/dist/.next/static/chunks/3r7r2d2yc93-y.js +1 -0
- package/dist/.next/static/chunks/3s-zbm7kxc46y.js +93 -0
- package/dist/.next/static/chunks/3s09ok8dc101_.js +1 -0
- package/dist/.next/static/chunks/3t9huugh-5_ps.js +1 -0
- package/dist/.next/static/chunks/3w5gsie2472pe.js +1 -0
- package/dist/.next/static/chunks/3zgnmu3cnahk0.js +122 -0
- package/dist/.next/static/chunks/41r6lojo50nzh.js +1 -0
- package/dist/.next/static/chunks/41uertskgrvwu.js +1 -0
- package/dist/.next/static/chunks/42kilhgqayez4.js +124 -0
- package/dist/node_modules/@img/sharp-darwin-arm64/index.cjs +1 -1
- package/dist/node_modules/@img/sharp-darwin-arm64/lib/{sharp-darwin-arm64-0.35.3.node → sharp-darwin-arm64-0.35.4.node} +0 -0
- package/dist/node_modules/@img/sharp-darwin-arm64/package.json +2 -2
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +1 -1
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/lib/{libvips-cpp.8.18.3.dylib → libvips-cpp.8.18.6.dylib} +0 -0
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/package.json +2 -2
- package/dist/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +13 -13
- package/dist/node_modules/sharp/dist/composite.cjs +6 -6
- package/dist/node_modules/sharp/dist/composite.mjs +6 -6
- package/dist/node_modules/sharp/dist/constructor.cjs +1 -1
- package/dist/node_modules/sharp/dist/constructor.mjs +1 -1
- package/dist/node_modules/sharp/dist/index.d.cts +2 -2
- package/dist/node_modules/sharp/dist/index.d.mts +2 -2
- package/dist/node_modules/sharp/dist/input.cjs +20 -15
- package/dist/node_modules/sharp/dist/input.mjs +20 -15
- package/dist/node_modules/sharp/dist/operation.cjs +4 -0
- package/dist/node_modules/sharp/dist/operation.mjs +4 -0
- package/dist/node_modules/sharp/dist/output.cjs +4 -7
- package/dist/node_modules/sharp/dist/output.mjs +4 -7
- package/dist/node_modules/sharp/dist/resize.cjs +8 -8
- package/dist/node_modules/sharp/dist/resize.mjs +8 -8
- package/dist/node_modules/sharp/package.json +38 -38
- package/dist/package.json +3 -4
- package/dist/server.js +1 -1
- package/package.json +3 -4
- package/dist/.next/server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_03i6i8q._.js +0 -82
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_1m8bey3._.js +0 -92
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_0cvy8c2._.js +0 -81
- package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0vzw4gu._.js +0 -117
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_1kl1645._.js +0 -106
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_1-btteu._.js +0 -66
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0omhwqk._.js +0 -136
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_052rc5y._.js +0 -81
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0l8r0bx._.js +0 -3
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_0c-9sj0._.js +0 -155
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0hqmyh5._.js +0 -79
- package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_1l5rlhy._.js +0 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0nzxyl0._.js +0 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0owaq8w._.js +0 -12
- package/dist/.next/server/chunks/ssr/node_modules_0-n78w2._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_00cex-8._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_07zdzg3._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_0_w_s0o._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0chqc93._.js +0 -11
- package/dist/.next/server/chunks/ssr/node_modules_0i3cah4._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_0jx8vby._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0kh3gaq._.js +0 -45
- package/dist/.next/server/chunks/ssr/node_modules_0oiuulr._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0sud39z._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0ty2qhi._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0uvms5m._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0xme7lg._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0z2foqi._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_0z4gniu._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_15pczok._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_16l6ua_._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_16q2m8u._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_17rj81n._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_19b6jde._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_1_jf-yx._.js +0 -17
- package/dist/.next/server/chunks/ssr/node_modules_1lio4hi._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_1tj6b0h._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_1zskgct._.js +0 -26
- package/dist/.next/server/chunks/ssr/node_modules_20p8pl7._.js +0 -289
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_01lis5y._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_07fm7s3._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0kitx9n._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0x5ivvr._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_145f4t2._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1_o7dux._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1alyi8-._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1bxlr8e._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1grmhd9._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01pthdh._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_03fanqm._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_16vf13h._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0jxv2ay._.js +0 -129
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_1yyt6ej._.js +0 -7
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_165ua5_._.js +0 -64
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_16ac76u._.js +0 -4
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_0a9kagr._.js +0 -203
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_1p-51mn._.js +0 -228
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0savw5-._.js +0 -121
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_1vk17qr._.js +0 -12
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_074844c._.js +0 -62
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0u9wa-b._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0w_brpy._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0pzbdul._.js +0 -26
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_1_cyy1q._.js +0 -82
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_01y3363._.js +0 -154
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_1nsv0tt._.js +0 -36
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0j4-fk2._.js +0 -3
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_1jvbrvq._.js +0 -25
- package/dist/.next/static/chunks/01nhrh-3r57wh.js +0 -1
- package/dist/.next/static/chunks/03regxjjibliy.js +0 -29
- package/dist/.next/static/chunks/059oqdb-4djh4.js +0 -1
- package/dist/.next/static/chunks/0bk3aw3m9c72a.js +0 -201
- package/dist/.next/static/chunks/0bko6sy3fi25l.js +0 -1
- package/dist/.next/static/chunks/0c4y7_xzemq6-.js +0 -1
- package/dist/.next/static/chunks/0catqiaei7kwh.js +0 -62
- package/dist/.next/static/chunks/0cm59yzmvnr6a.js +0 -1
- package/dist/.next/static/chunks/0dm2etancr7wp.js +0 -2
- package/dist/.next/static/chunks/0l2v1ybx0rm07.js +0 -1
- package/dist/.next/static/chunks/0ll25xvc8tvc7.js +0 -60
- package/dist/.next/static/chunks/0o19535rrdg5j.js +0 -1
- package/dist/.next/static/chunks/0piaur2yhvb4v.js +0 -1
- package/dist/.next/static/chunks/0r-qze3me8owo.js +0 -5
- package/dist/.next/static/chunks/0s3geiy0as3cz.js +0 -104
- package/dist/.next/static/chunks/0wf_g68m1dyuq.js +0 -152
- package/dist/.next/static/chunks/0z7hf76h0cz39.js +0 -1
- package/dist/.next/static/chunks/0zao0i_njogzy.js +0 -79
- package/dist/.next/static/chunks/11jp13p4e7ycl.js +0 -1
- package/dist/.next/static/chunks/12b5tf_04ca4i.js +0 -10
- package/dist/.next/static/chunks/13j02-7zvh70e.js +0 -1
- package/dist/.next/static/chunks/15746zaz9af2k.js +0 -80
- package/dist/.next/static/chunks/15m2ikcj71414.js +0 -1
- package/dist/.next/static/chunks/17y1ca1c2d1k0.js +0 -127
- package/dist/.next/static/chunks/17zvg7jc-nx5v.js +0 -1
- package/dist/.next/static/chunks/18dnd1yq8sjcm.js +0 -80
- package/dist/.next/static/chunks/1bi4m489puezc.js +0 -64
- package/dist/.next/static/chunks/1g6nbgmclpjgd.js +0 -90
- package/dist/.next/static/chunks/1h978hs06gqwr.js +0 -1
- package/dist/.next/static/chunks/1rxbddx-dyypf.js +0 -226
- package/dist/.next/static/chunks/1s8wltynx2kei.js +0 -24
- package/dist/.next/static/chunks/1un-c368y76x-.js +0 -1
- package/dist/.next/static/chunks/1vqrf8u3eyf8l.js +0 -1
- package/dist/.next/static/chunks/1x5foe7mtvd8m.js +0 -15
- package/dist/.next/static/chunks/20uqpnur2j1hn.js +0 -1
- package/dist/.next/static/chunks/24c-6p_4lbozm.js +0 -1
- package/dist/.next/static/chunks/24l5e3uup8rxf.js +0 -153
- package/dist/.next/static/chunks/26t_0sbrej8uf.js +0 -15
- package/dist/.next/static/chunks/27n_wru0tprv5.js +0 -4
- package/dist/.next/static/chunks/29x7ecuc6vybp.js +0 -1
- package/dist/.next/static/chunks/2dqeid-8xhwun.js +0 -93
- package/dist/.next/static/chunks/2f6739bq5ewxz.js +0 -34
- package/dist/.next/static/chunks/2fuc_smcevit1.js +0 -15
- package/dist/.next/static/chunks/2h7acwi-mfsrx.js +0 -1
- package/dist/.next/static/chunks/2ia3pig2diart.js +0 -43
- package/dist/.next/static/chunks/2y3wq_x8yyu_b.js +0 -115
- package/dist/.next/static/chunks/2zrfdnujo3u51.js +0 -1
- package/dist/.next/static/chunks/3-q38f64d_smq.js +0 -77
- package/dist/.next/static/chunks/3-t8rqn47mim5.js +0 -1
- package/dist/.next/static/chunks/383s4_f7pq0oz.js +0 -1
- package/dist/.next/static/chunks/3cnkwh7z04e3e.js +0 -24
- package/dist/.next/static/chunks/3cvv663zekq_n.js +0 -119
- package/dist/.next/static/chunks/3mcxvhb8ujk39.js +0 -1
- package/dist/.next/static/chunks/3s7at3o7ube_p.js +0 -9
- package/dist/.next/static/chunks/3wb9uvu5ii1sy.js +0 -287
- package/dist/.next/static/chunks/3x5hww03ialmf.js +0 -1
- package/dist/.next/static/chunks/3ypwau9uw-qzz.js +0 -23
- package/dist/.next/static/chunks/42yfqecr30v0q.js +0 -10
- package/dist/.next/static/chunks/44dlrjamdw9zn.js +0 -1
- /package/dist/.next/static/{0ElnbO3cxvcyCbDz0Tuqe → jymT8vIg_gKraNQQCXVtL}/_buildManifest.js +0 -0
- /package/dist/.next/static/{0ElnbO3cxvcyCbDz0Tuqe → jymT8vIg_gKraNQQCXVtL}/_clientMiddlewareManifest.js +0 -0
- /package/dist/.next/static/{0ElnbO3cxvcyCbDz0Tuqe → jymT8vIg_gKraNQQCXVtL}/_ssgManifest.js +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
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])}]);
|
|
@@ -1 +0,0 @@
|
|
|
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)}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,669587,600104,872200,722914,826157,693158,48114,851262,363823,992536,226619,381142,700357,163018,885812,647608,342919,991085,568482,532780,338489,t=>{"use strict";var e,i=t.i(908381),n=t.i(171206),s=t.i(139941);function o(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function r(t){this._context=t}function h(t){return new r(t)}function a(){}function _(t){this._context=t}function c(t){this._context=t}t.i(947716),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},t.s(["curveBasis",0,h],600104),_.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function u(t){return new l(t,!0)}function f(t){return new l(t,!1)}function y(t,e){this._basis=new r(t),this._beta=e}t.s(["curveBumpX",0,u],872200),t.s(["curveBumpY",0,f],722914),y.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var n,s=t[0],o=e[0],r=t[i]-s,h=e[i]-o,a=-1;++a<=i;)n=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(s+n*r),this._beta*e[a]+(1-this._beta)*(o+n*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let x=function t(e){function i(t){return 1===e?new r(t):new y(t,e)}return i.beta=function(e){return t(+e)},i}(.85);function p(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function d(t,e){this._context=t,this._k=(1-e)/6}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:p(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:p(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let g=function t(e){function i(t){return new d(t,e)}return i.tension=function(e){return t(+e)},i}(0);function b(t,e){this._context=t,this._k=(1-e)/6}b.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:p(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let m=function t(e){function i(t){return new b(t,e)}return i.tension=function(e){return t(+e)},i}(0);function v(t,e){this._context=t,this._k=(1-e)/6}v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:p(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let w=function t(e){function i(t){return new v(t,e)}return i.tension=function(e){return t(+e)},i}(0);t.s(["curveCardinal",0,g],826157);var T=t.i(810199);function S(t,e,i){var n=t._x1,s=t._y1,o=t._x2,r=t._y2;if(t._l01_a>T.epsilon){var h=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,a=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*h-t._x0*t._l12_2a+t._x2*t._l01_2a)/a,s=(s*h-t._y0*t._l12_2a+t._y2*t._l01_2a)/a}if(t._l23_a>T.epsilon){var _=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*_+t._x1*t._l23_2a-e*t._l12_2a)/c,r=(r*_+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(n,s,o,r,t._x2,t._y2)}function j(t,e){this._context=t,this._alpha=e}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:S(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let A=function t(e){function i(t){return e?new j(t,e):new d(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function N(t,e){this._context=t,this._alpha=e}N.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:S(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let M=function t(e){function i(t){return e?new N(t,e):new b(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function E(t,e){this._context=t,this._alpha=e}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:S(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let O=function t(e){function i(t){return e?new E(t,e):new v(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function k(t){this._context=t}function P(t){return new k(t)}function B(t){this._context=t}t.s(["curveCatmullRom",0,A],693158),k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},t.s(["default",0,P],48114),t.s(["curveLinear",0,P],851262),B.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function $(t,e,i){var n=t._x1-t._x0,s=e-t._x1,o=(t._y1-t._y0)/(n||s<0&&-0),r=(i-t._y1)/(s||n<0&&-0);return((o<0?-1:1)+(r<0?-1:1))*Math.min(Math.abs(o),Math.abs(r),.5*Math.abs((o*s+r*n)/(n+s)))||0}function C(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function D(t,e,i){var n=t._x0,s=t._y0,o=t._x1,r=t._y1,h=(o-n)/3;t._context.bezierCurveTo(n+h,s+h*e,o-h,r-h*i,o,r)}function I(t){this._context=t}function R(t){this._context=new z(t)}function z(t){this._context=t}function F(t){return new I(t)}function W(t){return new R(t)}function U(t){this._context=t}function H(t){var e,i,n=t.length-1,s=Array(n),o=Array(n),r=Array(n);for(s[0]=0,o[0]=2,r[0]=t[0]+2*t[1],e=1;e<n-1;++e)s[e]=1,o[e]=4,r[e]=4*t[e]+2*t[e+1];for(s[n-1]=2,o[n-1]=7,r[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=s[e]/o[e-1],o[e]-=i,r[e]-=i*r[e-1];for(s[n-1]=r[n-1]/o[n-1],e=n-2;e>=0;--e)s[e]=(r[e]-s[e+1])/o[e];for(o[n-1]=(t[n]+s[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-s[e+1];return[s,o]}function L(t){return new U(t)}function V(t,e){this._context=t,this._t=e}function q(t){return new V(t,.5)}function X(t){return new V(t,0)}function Y(t){return new V(t,1)}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:D(this,this._t0,C(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,D(this,C(this,i=$(this,t,e)),i);break;default:D(this,this._t0,i=$(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(R.prototype=Object.create(I.prototype)).point=function(t,e){I.prototype.point.call(this,e,t)},z.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,n,s,o){this._context.bezierCurveTo(e,t,n,i,o,s)}},t.s(["curveMonotoneX",0,F],363823),t.s(["curveMonotoneY",0,W],992536),U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===i)this._context.lineTo(t[1],e[1]);else for(var n=H(t),s=H(e),o=0,r=1;r<i;++o,++r)this._context.bezierCurveTo(n[0][o],s[0][o],n[1][o],s[1][o],t[r],e[r]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},t.s(["curveNatural",0,L],226619),V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}},t.s(["curveStep",0,q],381142),t.s(["curveStepAfter",0,Y],700357),t.s(["curveStepBefore",0,X],163018);var K=t.i(723685);function J(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let i=function(...n){let s=e?e.apply(this,n):n[0],o=i.cache;if(o.has(s))return o.get(s);let r=t.apply(this,n);return i.cache=o.set(s,r)||o,r};return i.cache=new(J.Cache||Map),i}function G(){}function Z(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function Q(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function tt(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}J.Cache=Map,t.s(["isPrimitive",0,Z],885812);let te="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||t.g||function(){return this}()||Function("return this")();function ti(t){return void 0!==te.Buffer&&te.Buffer.isBuffer(t)}function tn(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ts(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}t.s(["isBuffer",0,ti],647608),t.s(["getTag",0,ts],342919);let to="[object RegExp]",tr="[object String]",th="[object Number]",ta="[object Boolean]",t_="[object Arguments]",tc="[object Symbol]",tl="[object Date]",tu="[object Map]",tf="[object Set]",ty="[object Array]",tx="[object ArrayBuffer]",tp="[object Object]",td="[object DataView]",tg="[object Uint8Array]",tb="[object Uint8ClampedArray]",tm="[object Uint16Array]",tv="[object Uint32Array]",tw="[object Int8Array]",tT="[object Int16Array]",tS="[object Int32Array]",tj="[object Float32Array]",tA="[object Float64Array]";function tN(t,e,i,n=new Map,s){let o=s?.(t,e,i,n);if(void 0!==o)return o;if(Z(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let o=0;o<t.length;o++)e[o]=tN(t[o],o,i,n,s);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[o,r]of(n.set(t,e),t))e.set(o,tN(r,o,i,n,s));return e}if(t instanceof Set){let e=new Set;for(let o of(n.set(t,e),t))e.add(tN(o,void 0,i,n,s));return e}if(ti(t))return t.subarray();if(Q(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let o=0;o<t.length;o++)e[o]=tN(t[o],o,i,n,s);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),tM(e,t,i,n,s),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),tM(e,t,i,n,s),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),tM(e,t,i,n,s),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,tM(e,t,i,n,s),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),tM(e,t,i,n,s),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),tM(e,t,i,n,s),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),tM(e,t,i,n,s),e}if("object"==typeof t&&function(t){switch(ts(t)){case t_:case ty:case tx:case td:case ta:case tl:case tj:case tA:case tw:case tT:case tS:case tu:case th:case tp:case to:case tf:case tr:case tc:case tg:case tb:case tm:case tv:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),tM(e,t,i,n,s),e}return t}function tM(t,e,i=t,n,s){let o=[...Object.keys(e),...tt(e)];for(let r=0;r<o.length;r++){let h=o[r],a=Object.getOwnPropertyDescriptor(t,h);(null==a||a.writable)&&(t[h]=tN(e[h],h,i,n,s))}}function tE(t){var e;return e=(e,i,n,s)=>{let o;if(void 0!==o)return o;if("object"==typeof t){if("[object Object]"===ts(t)&&"function"!=typeof t.constructor){let e={};return s.set(t,e),tM(e,t,n,s),e}switch(Object.prototype.toString.call(t)){case th:case tr:case ta:{let e=new t.constructor(t?.valueOf());return tM(e,t),e}case t_:{let e={};return tM(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},tN(t,void 0,t,new Map,e)}function tO(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===ts(t)}function tk(t){return"object"==typeof t&&null!==t}function tP(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}function tB(t){return Q(t)}t.s(["argumentsTag",0,t_,"arrayBufferTag",0,tx,"arrayTag",0,ty,"booleanTag",0,ta,"dataViewTag",0,td,"dateTag",0,tl,"float32ArrayTag",0,tj,"float64ArrayTag",0,tA,"int16ArrayTag",0,tT,"int32ArrayTag",0,tS,"int8ArrayTag",0,tw,"mapTag",0,tu,"numberTag",0,th,"objectTag",0,tp,"regexpTag",0,to,"setTag",0,tf,"stringTag",0,tr,"symbolTag",0,tc,"uint16ArrayTag",0,tm,"uint32ArrayTag",0,tv,"uint8ArrayTag",0,tg,"uint8ClampedArrayTag",0,tb],991085),t.s(["isArguments",0,tO],568482),t.s(["isArrayLike",0,tP],532780),t.s(["isTypedArray",0,tB],338489);var t$={curveBasis:h,curveBasisClosed:function(t){return new _(t)},curveBasisOpen:function(t){return new c(t)},curveBumpX:u,curveBumpY:f,curveBundle:x,curveCardinalClosed:m,curveCardinalOpen:w,curveCardinal:g,curveCatmullRomClosed:M,curveCatmullRomOpen:O,curveCatmullRom:A,curveLinear:P,curveLinearClosed:function(t){return new B(t)},curveMonotoneX:F,curveMonotoneY:W,curveNatural:L,curveStep:q,curveStepAfter:Y,curveStepBefore:X},tC=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tD=(0,n.__name)(function(t,e){let n=tI(t,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(n)){let t=n.map(t=>t.args);(0,i.sanitizeDirective)(t),s=(0,i.assignWithDepth_default)(s,[...t])}else s=n.args;if(!s)return;let o=(0,i.detectType)(t,e),r="config";return void 0!==s[r]&&("flowchart-v2"===o&&(o="flowchart"),s[o]=s[r],delete s[r]),s},"detectInit"),tI=(0,n.__name)(function(t,e=null){try{let s,o=RegExp(`[%]{2}(?![{]${tC.source})(?=[}][%]{2}).*
|
|
2
|
-
`,"ig");t=t.trim().replace(o,"").replace(/'/gm,'"'),n.log.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let r=[];for(;null!==(s=i.directiveRegex.exec(t));)if(s.index===i.directiveRegex.lastIndex&&i.directiveRegex.lastIndex++,s&&!e||e&&s[1]?.match(e)||e&&s[2]?.match(e)){let t=s[1]?s[1]:s[2],e=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;r.push({type:t,args:e})}if(0===r.length)return{type:t,args:null};return 1===r.length?r[0]:r}catch(i){return n.log.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),tR=(0,n.__name)(function(t){return t.replace(i.directiveRegex,"")},"removeDirectives"),tz=(0,n.__name)(function(t,e){for(let[i,n]of e.entries())if(n.match(t))return i;return -1},"isSubstringInArray");function tF(t,e){return t?t$[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function tW(t,e){let i=t.trim();if(i)return"loose"!==e.securityLevel?(0,s.sanitizeUrl)(i):i}(0,n.__name)(tF,"interpolateToCurve"),(0,n.__name)(tW,"formatUrl");var tU=(0,n.__name)((t,...e)=>{let i=t.split("."),s=i.length-1,o=i[s],r=window;for(let e=0;e<s;e++)if(!(r=r[i[e]]))return void n.log.error(`Function name: ${t} not found in window`);r[o](...e)},"runFunc");function tH(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function tL(t){let e,i=0;return t.forEach(t=>{i+=tH(t,e),e=t}),tX(t,i/2)}function tV(t){return 1===t.length?t[0]:tL(t)}(0,n.__name)(tH,"distance"),(0,n.__name)(tL,"traverseEdge"),(0,n.__name)(tV,"calcLabelPosition");var tq=(0,n.__name)((t,e=2)=>{let i=Math.pow(10,e);return Math.round(t*i)/i},"roundNumber"),tX=(0,n.__name)((t,e)=>{let i,n=e;for(let e of t){if(i){let t=tH(e,i);if(0===t)return i;if(t<n)n-=t;else{let s=n/t;if(s<=0)return i;if(s>=1)return{x:e.x,y:e.y};if(s>0&&s<1)return{x:tq((1-s)*i.x+s*e.x,5),y:tq((1-s)*i.y+s*e.y,5)}}}i=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),tY=(0,n.__name)((t,e,i)=>{n.log.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let s=tX(e,25),o=t?10:5,r=Math.atan2(e[0].y-s.y,e[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(r)*o+(e[0].x+s.x)/2,h.y=-Math.cos(r)*o+(e[0].y+s.y)/2,h},"calcCardinalityPosition");function tK(t,e,i){let s=structuredClone(i);n.log.info("our points",s),"start_left"!==e&&"start_right"!==e&&s.reverse();let o=tX(s,25+t),r=10+.5*t,h=Math.atan2(s[0].y-o.y,s[0].x-o.x),a={x:0,y:0};return"start_left"===e?(a.x=Math.sin(h+Math.PI)*r+(s[0].x+o.x)/2,a.y=-Math.cos(h+Math.PI)*r+(s[0].y+o.y)/2):"end_right"===e?(a.x=Math.sin(h-Math.PI)*r+(s[0].x+o.x)/2-5,a.y=-Math.cos(h-Math.PI)*r+(s[0].y+o.y)/2-5):"end_left"===e?(a.x=Math.sin(h)*r+(s[0].x+o.x)/2-5,a.y=-Math.cos(h)*r+(s[0].y+o.y)/2-5):(a.x=Math.sin(h)*r+(s[0].x+o.x)/2,a.y=-Math.cos(h)*r+(s[0].y+o.y)/2),a}function tJ(t){let e="",i="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?i=i+n+";":e=e+n+";");return{style:e,labelStyle:i}}(0,n.__name)(tK,"calcTerminalLabelPosition"),(0,n.__name)(tJ,"getStylesFromArray");var tG=0,tZ=(0,n.__name)(()=>(tG++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tG),"generateId");function tQ(t){let e="",i="0123456789abcdef",n=i.length;for(let s=0;s<t;s++)e+=i.charAt(Math.floor(Math.random()*n));return e}(0,n.__name)(tQ,"makeRandomHex");var t0=(0,n.__name)(t=>tQ(t.length),"random"),t1=(0,n.__name)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),t2=(0,n.__name)(function(t,e){let n=e.text.replace(i.common_default.lineBreakRegex," "),[,s]=ei(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",s),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);let r=o.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.attr("fill",e.fill),r.text(n),o},"drawSimpleText"),t3=J((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.common_default.lineBreakRegex.test(t)))return t;let s=t.split(" ").filter(Boolean),o=[],r="";return s.forEach((t,i)=>{let h=t5(`${t} `,n),a=t5(r,n);if(h>e){let{hyphenatedStrings:i,remainingWord:s}=t4(t,e,"-",n);o.push(r,...i),r=s}else a+h>=e?(o.push(r),r=t):r=[r,t].filter(Boolean).join(" ");i+1===s.length&&o.push(r)}),o.filter(t=>""!==t).join(n.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),t4=J((t,e,i="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let s=[...t],o=[],r="";return s.forEach((t,h)=>{let a=`${r}${t}`;if(t5(a,n)>=e){let t=s.length===h+1,e=`${a}${i}`;o.push(t?a:e),r=""}else r=a}),{hyphenatedStrings:o,remainingWord:r}},(t,e,i="-",n)=>`${t}${e}${i}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function t6(t,e){return t8(t,e).height}function t5(t,e){return t8(t,e).width}(0,n.__name)(t6,"calculateTextHeight"),(0,n.__name)(t5,"calculateTextWidth");var t8=J((t,e)=>{let{fontSize:n=12,fontFamily:s="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,r]=ei(n),h=t.split(i.common_default.lineBreakRegex),a=[],_=(0,K.select)("body");if(!_.remove)return{width:0,height:0,lineHeight:0};let c=_.append("svg");for(let t of["sans-serif",s]){let e=0,i={width:0,height:0,lineHeight:0};for(let n of h){let s=t1();s.text=n||"";let h=t2(c,s).style("font-size",r).style("font-weight",o).style("font-family",t),a=(h._groups||h)[0][0].getBBox();if(0===a.width&&0===a.height)throw Error("svg element not in render tree");i.width=Math.round(Math.max(i.width,a.width)),e=Math.round(a.height),i.height+=e,i.lineHeight=Math.round(Math.max(i.lineHeight,e))}a.push(i)}c.remove();let l=isNaN(a[1].height)||isNaN(a[1].width)||isNaN(a[1].lineHeight)||a[0].height>a[1].height&&a[0].width>a[1].width&&a[0].lineHeight>a[1].lineHeight?0:1;return a[l]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),t9=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,n.__name)(this,"InitIDGenerator")}},t7=(0,n.__name)(function(t){return e=e||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),e.innerHTML=t,unescape(e.textContent)},"entityDecode");function et(t){return"str"in t}(0,n.__name)(et,"isDetailedError");var ee=(0,n.__name)((t,e,i,n)=>{if(!n)return;let s=t.node()?.getBBox();s&&t.append("text").text(n).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},"insertTitle"),ei=(0,n.__name)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function en(t,e){return function(t,...e){return function(t,...e){let i=e.slice(0,-1),n=e[e.length-1],s=t;for(let t=0;t<i.length;t++)s=function t(e,i,n,s){if(Z(e)&&(e=Object(e)),null==i||"object"!=typeof i)return e;if(s.has(i))return function(t){if(Z(t))return t;if(Array.isArray(t)||Q(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let i=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new i(t);if(t instanceof RegExp){let e=new i(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new i(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new i(t.errors,t.message,{cause:t.cause}):new i(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new i([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(s.get(i));if(s.set(i,e),Array.isArray(i)){i=i.slice();for(let t=0;t<i.length;t++)i[t]=i[t]??void 0}let o=[...Object.keys(i),...tt(i)];for(let h=0;h<o.length;h++){let a=o[h];if("__proto__"===a)continue;let _=i[a],c=e[a];if(tO(_)&&(_={..._}),tO(c)&&(c={...c}),ti(_)&&(_=tE(_)),Array.isArray(_))if(Array.isArray(c)){let t=[],e=Reflect.ownKeys(c);for(let i=0;i<e.length;i++){let n=e[i];t[n]=c[n]}c=t}else{var r;if(tk(r=c)&&tP(r)){let t=[];for(let e=0;e<c.length;e++)t[e]=c[e];c=t}else c=[]}let l=n(c,_,a,e,i,s);void 0!==l?e[a]=l:Array.isArray(_)||tk(c)&&tk(_)&&(tn(c)||tn(_)||tB(c)||tB(_))?e[a]=t(c,_,n,s):null==c&&tn(_)?e[a]=t({},_,n,s):null==c&&tB(_)?e[a]=tE(_):(void 0===c||void 0!==_)&&(e[a]=_)}return e}(s,i[t],n,new Map);return s}(t,...e,G)}({},t,e)}(0,n.__name)(en,"cleanAndMerge");var es={assignWithDepth:i.assignWithDepth_default,wrapLabel:t3,calculateTextHeight:t6,calculateTextWidth:t5,calculateTextDimensions:t8,cleanAndMerge:en,detectInit:tD,detectDirective:tI,isSubstringInArray:tz,interpolateToCurve:tF,calcLabelPosition:tV,calcCardinalityPosition:tY,calcTerminalLabelPosition:tK,formatUrl:tW,getStylesFromArray:tJ,generateId:tZ,random:t0,runFunc:tU,entityDecode:t7,insertTitle:ee,isLabelCoordinateInPath:e_,parseFontSize:ei,InitIDGenerator:t9},eo=(0,n.__name)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),er=(0,n.__name)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),eh=(0,n.__name)((t,e,{counter:i=0,prefix:n,suffix:s},o)=>o||`${n?`${n}_`:""}${t}_${e}_${i}${s?`_${s}`:""}`,"getEdgeId");function ea(t){return t??null}function e_(t,e){let i=Math.round(t.x),n=Math.round(t.y),s=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return s.includes(i.toString())||s.includes(n.toString())}(0,n.__name)(ea,"handleUndefinedAttr"),(0,n.__name)(e_,"isLabelCoordinateInPath"),t.s(["ZERO_WIDTH_SPACE",0,"","calculateTextDimensions",0,t8,"calculateTextHeight",0,t6,"calculateTextWidth",0,t5,"cleanAndMerge",0,en,"decodeEntities",0,er,"encodeEntities",0,eo,"generateId",0,tZ,"getEdgeId",0,eh,"getStylesFromArray",0,tJ,"handleUndefinedAttr",0,ea,"interpolateToCurve",0,tF,"isDetailedError",0,et,"parseFontSize",0,ei,"random",0,t0,"removeDirectives",0,tR,"utils_default",0,es,"wrapLabel",0,t3],669587)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,960948,e=>{"use strict";var n,t=e.i(171206);function i(e){return null==e}function r(e){return"object"==typeof e&&null!==e}function o(e,n){var t,i="";for(t=0;t<n;t+=1)i+=e;return i}function a(e){return 0===e&&-1/0==1/e}(0,t.__name)(i,"isNothing"),(0,t.__name)(r,"isObject"),(0,t.__name)(function(e){return Array.isArray(e)?e:i(e)?[]:[e]},"toArray"),(0,t.__name)(function(e,n){var t,i,r,o;if(n)for(t=0,i=(o=Object.keys(n)).length;t<i;t+=1)e[r=o[t]]=n[r];return e},"extend"),(0,t.__name)(o,"repeat"),(0,t.__name)(a,"isNegativeZero");function l(e,n){var t="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(t+="\n\n"+e.mark.snippet),i+" "+t):i}function c(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=l(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function s(e,n,t,i,r){var o="",a="",l=Math.floor(r/2)-1;return i-n>l&&(n=i-l+(o=" ... ").length),t-i>l&&(t=i+l-(a=" ...").length),{str:o+e.slice(n,t).replace(/\t/g,"→")+a,pos:i-n+o.length}}function u(e,n){return o(" ",n-e.length)+e}function p(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),"number"!=typeof n.indent&&(n.indent=1),"number"!=typeof n.linesBefore&&(n.linesBefore=3),"number"!=typeof n.linesAfter&&(n.linesAfter=2);for(var t=/\r?\n|\r|\0/g,i=[0],r=[],a=-1;l=t.exec(e.buffer);)r.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var l,c,p,f="",d=Math.min(e.line+n.linesAfter,r.length).toString().length,m=n.maxLength-(n.indent+d+3);for(c=1;c<=n.linesBefore&&!(a-c<0);c++)p=s(e.buffer,i[a-c],r[a-c],e.position-(i[a]-i[a-c]),m),f=o(" ",n.indent)+u((e.line-c+1).toString(),d)+" | "+p.str+"\n"+f;for(p=s(e.buffer,i[a],r[a],e.position,m),f+=o(" ",n.indent)+u((e.line+1).toString(),d)+" | "+p.str+"\n"+o("-",n.indent+d+3+p.pos)+"^\n",c=1;c<=n.linesAfter&&!(a+c>=r.length);c++)p=s(e.buffer,i[a+c],r[a+c],e.position-(i[a]-i[a+c]),m),f+=o(" ",n.indent)+u((e.line+c+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")}(0,t.__name)(l,"formatError"),(0,t.__name)(c,"YAMLException$1"),c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.toString=(0,t.__name)(function(e){return this.name+": "+l(this,e)},"toString"),(0,t.__name)(s,"getLine"),(0,t.__name)(u,"padStart"),(0,t.__name)(p,"makeSnippet");var f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d=["scalar","sequence","mapping"];function m(e){var n={};return null!==e&&Object.keys(e).forEach(function(t){e[t].forEach(function(e){n[String(e)]=t})}),n}function h(e,n){if(Object.keys(n=n||{}).forEach(function(n){if(-1===f.indexOf(n))throw new c('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(e){return e},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=m(n.styleAliases||null),-1===d.indexOf(this.kind))throw new c('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function g(e,n){var t=[];return e[n].forEach(function(e){var n=t.length;t.forEach(function(t,i){t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi&&(n=i)}),t[n]=e}),t}function _(){var e,n,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(i.multi[e.kind].push(e),i.multi.fallback.push(e)):i[e.kind][e.tag]=i.fallback[e.tag]=e}for((0,t.__name)(r,"collectType"),e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(r);return i}function y(e){return this.extend(e)}(0,t.__name)(m,"compileStyleAliases"),(0,t.__name)(h,"Type$1"),(0,t.__name)(g,"compileList"),(0,t.__name)(_,"compileMap"),(0,t.__name)(y,"Schema$1"),y.prototype.extend=(0,t.__name)(function(e){var n=[],t=[];if(e instanceof h)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new c("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(e){if(!(e instanceof h))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new c("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new c("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(e){if(!(e instanceof h))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(y.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=g(i,"implicit"),i.compiledExplicit=g(i,"explicit"),i.compiledTypeMap=_(i.compiledImplicit,i.compiledExplicit),i},"extend");var b=new y({explicit:[new h("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,t.__name)(function(e){return null!==e?e:""},"construct")}),new h("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,t.__name)(function(e){return null!==e?e:[]},"construct")}),new h("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,t.__name)(function(e){return null!==e?e:{}},"construct")})]});function v(e){if(null===e)return!0;var n=e.length;return 1===n&&"~"===e||4===n&&("null"===e||"Null"===e||"NULL"===e)}function A(){return null}function k(e){return null===e}(0,t.__name)(v,"resolveYamlNull"),(0,t.__name)(A,"constructYamlNull"),(0,t.__name)(k,"isNull");var w=new h("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:A,predicate:k,represent:{canonical:(0,t.__name)(function(){return"~"},"canonical"),lowercase:(0,t.__name)(function(){return"null"},"lowercase"),uppercase:(0,t.__name)(function(){return"NULL"},"uppercase"),camelcase:(0,t.__name)(function(){return"Null"},"camelcase"),empty:(0,t.__name)(function(){return""},"empty")},defaultStyle:"lowercase"});function C(e){if(null===e)return!1;var n=e.length;return 4===n&&("true"===e||"True"===e||"TRUE"===e)||5===n&&("false"===e||"False"===e||"FALSE"===e)}function x(e){return"true"===e||"True"===e||"TRUE"===e}function S(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,t.__name)(C,"resolveYamlBoolean"),(0,t.__name)(x,"constructYamlBoolean"),(0,t.__name)(S,"isBoolean");var O=new h("tag:yaml.org,2002:bool",{kind:"scalar",resolve:C,construct:x,predicate:S,represent:{lowercase:(0,t.__name)(function(e){return e?"true":"false"},"lowercase"),uppercase:(0,t.__name)(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:(0,t.__name)(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function I(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function j(e){return 48<=e&&e<=55}function T(e){return 48<=e&&e<=57}function F(e){if(null===e)return!1;var n,t=e.length,i=0,r=!1;if(!t)return!1;if(("-"===(n=e[i])||"+"===n)&&(n=e[++i]),"0"===n){if(i+1===t)return!0;if("b"===(n=e[++i])){for(i++;i<t;i++)if("_"!==(n=e[i])){if("0"!==n&&"1"!==n)return!1;r=!0}return r&&"_"!==n}if("x"===n){for(i++;i<t;i++)if("_"!==(n=e[i])){if(!I(e.charCodeAt(i)))return!1;r=!0}return r&&"_"!==n}if("o"===n){for(i++;i<t;i++)if("_"!==(n=e[i])){if(!j(e.charCodeAt(i)))return!1;r=!0}return r&&"_"!==n}}if("_"===n)return!1;for(;i<t;i++)if("_"!==(n=e[i])){if(!T(e.charCodeAt(i)))return!1;r=!0}return!!r&&"_"!==n}function L(e){var n,t=e,i=1;if(-1!==t.indexOf("_")&&(t=t.replace(/_/g,"")),("-"===(n=t[0])||"+"===n)&&("-"===n&&(i=-1),n=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===n){if("b"===t[1])return i*parseInt(t.slice(2),2);if("x"===t[1])return i*parseInt(t.slice(2),16);if("o"===t[1])return i*parseInt(t.slice(2),8)}return i*parseInt(t,10)}function M(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!a(e)}(0,t.__name)(I,"isHexCode"),(0,t.__name)(j,"isOctCode"),(0,t.__name)(T,"isDecCode"),(0,t.__name)(F,"resolveYamlInteger"),(0,t.__name)(L,"constructYamlInteger"),(0,t.__name)(M,"isInteger");var N=new h("tag:yaml.org,2002:int",{kind:"scalar",resolve:F,construct:L,predicate:M,represent:{binary:(0,t.__name)(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,t.__name)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:(0,t.__name)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,t.__name)(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),E=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Y(e){return null!==e&&!!E.test(e)&&"_"!==e[e.length-1]}function D(e){var n,t;return(t="-"===(n=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),".inf"===n)?1===t?1/0:-1/0:".nan"===n?NaN:t*parseFloat(n,10)}(0,t.__name)(Y,"resolveYamlFloat"),(0,t.__name)(D,"constructYamlFloat");var B=/^[-+]?[0-9]+e/;function q(e,n){var t;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a(e))return"-0.0";return t=e.toString(10),B.test(t)?t.replace("e",".e"):t}function U(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||a(e))}(0,t.__name)(q,"representYamlFloat"),(0,t.__name)(U,"isFloat");var P=new h("tag:yaml.org,2002:float",{kind:"scalar",resolve:Y,construct:D,predicate:U,represent:q,defaultStyle:"lowercase"}),R=b.extend({implicit:[w,O,N,P]}),W=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function K(e){return null!==e&&(null!==W.exec(e)||null!==$.exec(e))}function H(e){var n,t,i,r,o,a,l,c,s=0,u=null;if(null===(n=W.exec(e))&&(n=$.exec(e)),null===n)throw Error("Date resolve error");if(t=+n[1],i=n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(t,i,r));if(o=+n[4],a=+n[5],l=+n[6],n[7]){for(s=n[7].slice(0,3);s.length<3;)s+="0";s*=1}return n[9]&&(u=(60*n[10]+ +(n[11]||0))*6e4,"-"===n[9]&&(u=-u)),c=new Date(Date.UTC(t,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c}function Q(e){return e.toISOString()}(0,t.__name)(K,"resolveYamlTimestamp"),(0,t.__name)(H,"constructYamlTimestamp"),(0,t.__name)(Q,"representYamlTimestamp");var G=new h("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:K,construct:H,instanceOf:Date,represent:Q});function z(e){return"<<"===e||null===e}(0,t.__name)(z,"resolveYamlMerge");var J=new h("tag:yaml.org,2002:merge",{kind:"scalar",resolve:z}),Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function V(e){if(null===e)return!1;var n,t,i=0,r=e.length;for(t=0;t<r;t++)if(!((n=Z.indexOf(e.charAt(t)))>64)){if(n<0)return!1;i+=6}return i%8==0}function X(e){var n,t,i=e.replace(/[\r\n=]/g,""),r=i.length,o=0,a=[];for(n=0;n<r;n++)n%4==0&&n&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|Z.indexOf(i.charAt(n));return 0==(t=r%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===t?(a.push(o>>10&255),a.push(o>>2&255)):12===t&&a.push(o>>4&255),new Uint8Array(a)}function ee(e){var n,t,i="",r=0,o=e.length;for(n=0;n<o;n++)n%3==0&&n&&(i+=Z[r>>18&63],i+=Z[r>>12&63],i+=Z[r>>6&63],i+=Z[63&r]),r=(r<<8)+e[n];return 0==(t=o%3)?(i+=Z[r>>18&63],i+=Z[r>>12&63],i+=Z[r>>6&63],i+=Z[63&r]):2===t?(i+=Z[r>>10&63],i+=Z[r>>4&63],i+=Z[r<<2&63],i+=Z[64]):1===t&&(i+=Z[r>>2&63],i+=Z[r<<4&63],i+=Z[64],i+=Z[64]),i}function en(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,t.__name)(V,"resolveYamlBinary"),(0,t.__name)(X,"constructYamlBinary"),(0,t.__name)(ee,"representYamlBinary"),(0,t.__name)(en,"isBinary");var et=new h("tag:yaml.org,2002:binary",{kind:"scalar",resolve:V,construct:X,predicate:en,represent:ee}),ei=Object.prototype.hasOwnProperty,er=Object.prototype.toString;function eo(e){if(null===e)return!0;var n,t,i,r,o,a=[];for(n=0,t=e.length;n<t;n+=1){if(i=e[n],o=!1,"[object Object]"!==er.call(i))return!1;for(r in i)if(ei.call(i,r))if(o)return!1;else o=!0;if(!o||-1!==a.indexOf(r))return!1;a.push(r)}return!0}function ea(e){return null!==e?e:[]}(0,t.__name)(eo,"resolveYamlOmap"),(0,t.__name)(ea,"constructYamlOmap");var el=new h("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eo,construct:ea}),ec=Object.prototype.toString;function es(e){var n,t,i,r,o;if(null===e)return!0;for(o=Array(e.length),n=0,t=e.length;n<t;n+=1){if(i=e[n],"[object Object]"!==ec.call(i)||1!==(r=Object.keys(i)).length)return!1;o[n]=[r[0],i[r[0]]]}return!0}function eu(e){var n,t,i,r,o;if(null===e)return[];for(o=Array(e.length),n=0,t=e.length;n<t;n+=1)r=Object.keys(i=e[n]),o[n]=[r[0],i[r[0]]];return o}(0,t.__name)(es,"resolveYamlPairs"),(0,t.__name)(eu,"constructYamlPairs");var ep=new h("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:es,construct:eu}),ef=Object.prototype.hasOwnProperty;function ed(e){var n;if(null===e)return!0;for(n in e)if(ef.call(e,n)&&null!==e[n])return!1;return!0}function em(e){return null!==e?e:{}}(0,t.__name)(ed,"resolveYamlSet"),(0,t.__name)(em,"constructYamlSet");var eh=new h("tag:yaml.org,2002:set",{kind:"mapping",resolve:ed,construct:em}),eg=R.extend({implicit:[G,J],explicit:[et,el,ep,eh]}),e_=Object.prototype.hasOwnProperty,ey=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eb=/[\x85\u2028\u2029]/,ev=/[,\[\]\{\}]/,eA=/^(?:!|!!|![a-z\-]+!)$/i,ek=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ew(e){return Object.prototype.toString.call(e)}function eC(e){return 10===e||13===e}function ex(e){return 9===e||32===e}function eS(e){return 9===e||32===e||10===e||13===e}function eO(e){return 44===e||91===e||93===e||123===e||125===e}function eI(e){var n;return 48<=e&&e<=57?e-48:97<=(n=32|e)&&n<=102?n-97+10:-1}function ej(e){return 120===e?2:117===e?4:8*(85===e)}function eT(e){return 48<=e&&e<=57?e-48:-1}function eF(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function eL(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function eM(e,n,t){"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:t}):e[n]=t}(0,t.__name)(ew,"_class"),(0,t.__name)(eC,"is_EOL"),(0,t.__name)(ex,"is_WHITE_SPACE"),(0,t.__name)(eS,"is_WS_OR_EOL"),(0,t.__name)(eO,"is_FLOW_INDICATOR"),(0,t.__name)(eI,"fromHexCode"),(0,t.__name)(ej,"escapedHexLen"),(0,t.__name)(eT,"fromDecimalCode"),(0,t.__name)(eF,"simpleEscapeSequence"),(0,t.__name)(eL,"charFromCodepoint"),(0,t.__name)(eM,"setProperty");var eN=Array(256),eE=Array(256);for(n=0;n<256;n++)eN[n]=+!!eF(n),eE[n]=eF(n);function eY(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||eg,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eD(e,n){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=p(t),new c(n,t)}function eB(e,n){throw eD(e,n)}function eq(e,n){e.onWarning&&e.onWarning.call(null,eD(e,n))}(0,t.__name)(eY,"State$1"),(0,t.__name)(eD,"generateError"),(0,t.__name)(eB,"throwError"),(0,t.__name)(eq,"throwWarning");var eU={YAML:(0,t.__name)(function(e,n,t){var i,r,o;null!==e.version&&eB(e,"duplication of %YAML directive"),1!==t.length&&eB(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]))&&eB(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&eB(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&eq(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,t.__name)(function(e,n,t){var i,r;2!==t.length&&eB(e,"TAG directive accepts exactly two arguments"),i=t[0],r=t[1],eA.test(i)||eB(e,"ill-formed tag handle (first argument) of the TAG directive"),e_.call(e.tagMap,i)&&eB(e,'there is a previously declared suffix for "'+i+'" tag handle'),ek.test(r)||eB(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(n){eB(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r},"handleTagDirective")};function eP(e,n,t,i){var r,o,a,l;if(n<t){if(l=e.input.slice(n,t),i)for(r=0,o=l.length;r<o;r+=1)9===(a=l.charCodeAt(r))||32<=a&&a<=1114111||eB(e,"expected valid JSON character");else ey.test(l)&&eB(e,"the stream contains non-printable characters");e.result+=l}}function eR(e,n,t,i){var o,a,l,c;for(r(t)||eB(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,c=(o=Object.keys(t)).length;l<c;l+=1)a=o[l],e_.call(n,a)||(eM(n,a,t[a]),i[a]=!0)}function eW(e,n,t,i,r,o,a,l,c){var s,u;if(Array.isArray(r))for(s=0,u=(r=Array.prototype.slice.call(r)).length;s<u;s+=1)Array.isArray(r[s])&&eB(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===ew(r[s])&&(r[s]="[object Object]");if("object"==typeof r&&"[object Object]"===ew(r)&&(r="[object Object]"),r=String(r),null===n&&(n={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(s=0,u=o.length;s<u;s+=1)eR(e,n,o[s],t);else eR(e,n,o,t);else!e.json&&!e_.call(t,r)&&e_.call(n,r)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,eB(e,"duplicated mapping key")),eM(n,r,o),delete t[r];return n}function e$(e){var n;10===(n=e.input.charCodeAt(e.position))?e.position++:13===n?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):eB(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eK(e,n,t){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;ex(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&35===r)do r=e.input.charCodeAt(++e.position);while(10!==r&&13!==r&&0!==r)if(eC(r))for(e$(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return -1!==t&&0!==i&&e.lineIndent<t&&eq(e,"deficient indentation"),i}function eH(e){var n,t=e.position;return!!((45===(n=e.input.charCodeAt(t))||46===n)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,0===(n=e.input.charCodeAt(t))||eS(n)))||!1}function eQ(e,n){1===n?e.result+=" ":n>1&&(e.result+=o("\n",n-1))}function eG(e,n,t){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(eS(u=e.input.charCodeAt(e.position))||eO(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(eS(i=e.input.charCodeAt(e.position+1))||t&&eO(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(eS(i=e.input.charCodeAt(e.position+1))||t&&eO(i))break}else if(35===u){if(eS(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eH(e)||t&&eO(u))break;else if(eC(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,eK(e,!1,-1),e.lineIndent>=n){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}a&&(eP(e,r,o,!1),eQ(e,e.line-l),r=o=e.position,a=!1),ex(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return eP(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}function ez(e,n){var t,i,r;if(39!==(t=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(t=e.input.charCodeAt(e.position));)if(39===t){if(eP(e,i,e.position,!0),39!==(t=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,r=e.position}else eC(t)?(eP(e,i,r,!0),eQ(e,eK(e,!1,n)),i=r=e.position):e.position===e.lineStart&&eH(e)?eB(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);eB(e,"unexpected end of the stream within a single quoted scalar")}function eJ(e,n){var t,i,r,o,a,l;if(34!==(l=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;0!==(l=e.input.charCodeAt(e.position));)if(34===l)return eP(e,t,e.position,!0),e.position++,!0;else if(92===l){if(eP(e,t,e.position,!0),eC(l=e.input.charCodeAt(++e.position)))eK(e,!1,n);else if(l<256&&eN[l])e.result+=eE[l],e.position++;else if((a=ej(l))>0){for(r=a,o=0;r>0;r--)(a=eI(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:eB(e,"expected hexadecimal character");e.result+=eL(o),e.position++}else eB(e,"unknown escape sequence");t=i=e.position}else eC(l)?(eP(e,t,i,!0),eQ(e,eK(e,!1,n)),t=i=e.position):e.position===e.lineStart&&eH(e)?eB(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position);eB(e,"unexpected end of the stream within a double quoted scalar")}function eZ(e,n){var t,i,r,o,a,l,c,s,u,p,f,d,m=!0,h=e.tag,g=e.anchor,_=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))a=93,s=!1,o=[];else{if(123!==d)return!1;a=125,s=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);0!==d;){if(eK(e,!0,n),(d=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=h,e.anchor=g,e.kind=s?"mapping":"sequence",e.result=o,!0;m?44===d&&eB(e,"expected the node content, but found ','"):eB(e,"missed comma between flow collection entries"),p=u=f=null,l=c=!1,63===d&&eS(e.input.charCodeAt(e.position+1))&&(l=c=!0,e.position++,eK(e,!0,n)),t=e.line,i=e.lineStart,r=e.position,e5(e,n,1,!1,!0),p=e.tag,u=e.result,eK(e,!0,n),d=e.input.charCodeAt(e.position),(c||e.line===t)&&58===d&&(l=!0,d=e.input.charCodeAt(++e.position),eK(e,!0,n),e5(e,n,1,!1,!0),f=e.result),s?eW(e,o,_,p,u,f,t,i,r):l?o.push(eW(e,null,_,p,u,f,t,i,r)):o.push(u),eK(e,!0,n),44===(d=e.input.charCodeAt(e.position))?(m=!0,d=e.input.charCodeAt(++e.position)):m=!1}eB(e,"unexpected end of the stream within a flow collection")}function eV(e,n){var t,i,r,a,l=1,c=!1,s=!1,u=n,p=0,f=!1;if(124===(a=e.input.charCodeAt(e.position)))i=!1;else{if(62!==a)return!1;i=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===l?l=43===a?3:2:eB(e,"repeat of a chomping mode identifier");else if((r=eT(a))>=0)0===r?eB(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?eB(e,"repeat of an indentation width identifier"):(u=n+r-1,s=!0);else break;if(ex(a)){do a=e.input.charCodeAt(++e.position);while(ex(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!eC(a)&&0!==a)}for(;0!==a;){for(e$(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!s||e.lineIndent<u)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>u&&(u=e.lineIndent),eC(a)){p++;continue}if(e.lineIndent<u){3===l?e.result+=o("\n",c?1+p:p):1===l&&c&&(e.result+="\n");break}for(i?ex(a)?(f=!0,e.result+=o("\n",c?1+p:p)):f?(f=!1,e.result+=o("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=o("\n",p):e.result+=o("\n",c?1+p:p),c=!0,s=!0,p=0,t=e.position;!eC(a)&&0!==a;)a=e.input.charCodeAt(++e.position);eP(e,t,e.position,!1)}return!0}function eX(e,n){var t,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,eB(e,"tab characters must not be used in indentation")),45===i&&eS(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,eK(e,!0,-1)&&e.lineIndent<=n){a.push(null),i=e.input.charCodeAt(e.position);continue}if(t=e.line,e5(e,n,3,!1,!0),a.push(e.result),eK(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>n)&&0!==i)eB(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return!!l&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=a,!0)}function e0(e,n,t){var i,r,o,a,l,c,s,u=e.tag,p=e.anchor,f={},d=Object.create(null),m=null,h=null,g=null,_=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),s=e.input.charCodeAt(e.position);0!==s;){if(_||-1===e.firstTabInLine||(e.position=e.firstTabInLine,eB(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,(63===s||58===s)&&eS(i))63===s?(_&&(eW(e,f,d,m,h,null,a,l,c),m=h=g=null),y=!0,_=!0,r=!0):_?(_=!1,r=!0):eB(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=i;else{if(a=e.line,l=e.lineStart,c=e.position,!e5(e,t,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);ex(s);)s=e.input.charCodeAt(++e.position);if(58===s)eS(s=e.input.charCodeAt(++e.position))||eB(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(eW(e,f,d,m,h,null,a,l,c),m=h=g=null),y=!0,_=!1,r=!1,m=e.tag,h=e.result;else{if(!y)return e.tag=u,e.anchor=p,!0;eB(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=u,e.anchor=p,!0;eB(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===o||e.lineIndent>n)&&(_&&(a=e.line,l=e.lineStart,c=e.position),e5(e,n,4,!0,r)&&(_?h=e.result:g=e.result),_||(eW(e,f,d,m,h,g,a,l,c),m=h=g=null),eK(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>n)&&0!==s)eB(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return _&&eW(e,f,d,m,h,null,a,l,c),y&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=f),y}function e1(e){var n,t,i,r,o=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&eB(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(a=!0,t="!!",r=e.input.charCodeAt(++e.position)):t="!",n=e.position,o){do r=e.input.charCodeAt(++e.position);while(0!==r&&62!==r)e.position<e.length?(i=e.input.slice(n,e.position),r=e.input.charCodeAt(++e.position)):eB(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!eS(r);)33===r&&(a?eB(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(n-1,e.position+1),eA.test(t)||eB(e,"named tag handle cannot contain such characters"),a=!0,n=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(n,e.position),ev.test(i)&&eB(e,"tag suffix cannot contain flow indicator characters")}i&&!ek.test(i)&&eB(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(n){eB(e,"tag name is malformed: "+i)}return o?e.tag=i:e_.call(e.tagMap,t)?e.tag=e.tagMap[t]+i:"!"===t?e.tag="!"+i:"!!"===t?e.tag="tag:yaml.org,2002:"+i:eB(e,'undeclared tag handle "'+t+'"'),!0}function e2(e){var n,t;if(38!==(t=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&eB(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),n=e.position;0!==t&&!eS(t)&&!eO(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&eB(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function e3(e){var n,t,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),n=e.position;0!==i&&!eS(i)&&!eO(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&eB(e,"name of an alias node must contain at least one character"),t=e.input.slice(n,e.position),e_.call(e.anchorMap,t)||eB(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],eK(e,!0,-1),!0}function e5(e,n,t,i,r){var o,a,l,c,s,u,p,f,d,m=1,h=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=l=4===t||3===t,i&&eK(e,!0,-1)&&(h=!0,e.lineIndent>n?m=1:e.lineIndent===n?m=0:e.lineIndent<n&&(m=-1)),1===m)for(;e1(e)||e2(e);)eK(e,!0,-1)?(h=!0,l=o,e.lineIndent>n?m=1:e.lineIndent===n?m=0:e.lineIndent<n&&(m=-1)):l=!1;if(l&&(l=h||r),(1===m||4===t)&&(f=1===t||2===t?n:n+1,d=e.position-e.lineStart,1===m?l&&(eX(e,d)||e0(e,d,f))||eZ(e,f)?g=!0:(a&&eV(e,f)||ez(e,f)||eJ(e,f)?g=!0:e3(e)?(g=!0,(null!==e.tag||null!==e.anchor)&&eB(e,"alias node should not have any properties")):eG(e,f,1===t)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=l&&eX(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&eB(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,s=e.implicitTypes.length;c<s;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(e_.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(c=0,p=null,s=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<s;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||eB(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&eB(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):eB(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function e6(e){var n,t,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(eK(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===r);){for(a=!0,r=e.input.charCodeAt(++e.position),n=e.position;0!==r&&!eS(r);)r=e.input.charCodeAt(++e.position);for(t=e.input.slice(n,e.position),i=[],t.length<1&&eB(e,"directive name must not be less than one character in length");0!==r;){for(;ex(r);)r=e.input.charCodeAt(++e.position);if(35===r){do r=e.input.charCodeAt(++e.position);while(0!==r&&!eC(r))break}if(eC(r))break;for(n=e.position;0!==r&&!eS(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}0!==r&&e$(e),e_.call(eU,t)?eU[t](e,t,i):eq(e,'unknown document directive "'+t+'"')}if(eK(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eK(e,!0,-1)):a&&eB(e,"directives end mark is expected"),e5(e,e.lineIndent-1,4,!1,!0),eK(e,!0,-1),e.checkLineBreaks&&eb.test(e.input.slice(o,e.position))&&eq(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eH(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eK(e,!0,-1));return}e.position<e.length-1&&eB(e,"end of the stream or a document separator is expected")}function e9(e,n){e=String(e),n=n||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var t=new eY(e,n),i=e.indexOf("\0");for(-1!==i&&(t.position=i,eB(t,"null byte is not allowed in input")),t.input+="\0";32===t.input.charCodeAt(t.position);)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)e6(t);return t.documents}function e4(e,n,t){null!==n&&"object"==typeof n&&void 0===t&&(t=n,n=null);var i=e9(e,t);if("function"!=typeof n)return i;for(var r=0,o=i.length;r<o;r+=1)n(i[r])}function e8(e,n){var t=e9(e,n);if(0!==t.length){if(1===t.length)return t[0];throw new c("expected a single document in the stream, but found more")}}(0,t.__name)(eP,"captureSegment"),(0,t.__name)(eR,"mergeMappings"),(0,t.__name)(eW,"storeMappingPair"),(0,t.__name)(e$,"readLineBreak"),(0,t.__name)(eK,"skipSeparationSpace"),(0,t.__name)(eH,"testDocumentSeparator"),(0,t.__name)(eQ,"writeFoldedLines"),(0,t.__name)(eG,"readPlainScalar"),(0,t.__name)(ez,"readSingleQuotedScalar"),(0,t.__name)(eJ,"readDoubleQuotedScalar"),(0,t.__name)(eZ,"readFlowCollection"),(0,t.__name)(eV,"readBlockScalar"),(0,t.__name)(eX,"readBlockSequence"),(0,t.__name)(e0,"readBlockMapping"),(0,t.__name)(e1,"readTagProperty"),(0,t.__name)(e2,"readAnchorProperty"),(0,t.__name)(e3,"readAlias"),(0,t.__name)(e5,"composeNode"),(0,t.__name)(e6,"readDocument"),(0,t.__name)(e9,"loadDocuments"),(0,t.__name)(e4,"loadAll$1"),(0,t.__name)(e8,"load$1");var e7=Object.prototype.toString,ne=Object.prototype.hasOwnProperty,nn={};nn[0]="\\0",nn[7]="\\a",nn[8]="\\b",nn[9]="\\t",nn[10]="\\n",nn[11]="\\v",nn[12]="\\f",nn[13]="\\r",nn[27]="\\e",nn[34]='\\"',nn[92]="\\\\",nn[133]="\\N",nn[160]="\\_",nn[8232]="\\L",nn[8233]="\\P";var nt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ni=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function nr(e,n){var t,i,r,o,a,l,c;if(null===n)return{};for(r=0,t={},o=(i=Object.keys(n)).length;r<o;r+=1)l=String(n[a=i[r]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&ne.call(c.styleAliases,l)&&(l=c.styleAliases[l]),t[a]=l;return t}function no(e){var n,t,i;if(n=e.toString(16).toUpperCase(),e<=255)t="x",i=2;else if(e<=65535)t="u",i=4;else if(e<=0xffffffff)t="U",i=8;else throw new c("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+o("0",i-n.length)+n}function na(e){this.schema=e.schema||eg,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=i(e.flowLevel)?-1:e.flowLevel,this.styleMap=nr(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function nl(e,n){for(var t,i=o(" ",n),r=0,a=-1,l="",c=e.length;r<c;)-1===(a=e.indexOf("\n",r))?(t=e.slice(r),r=c):(t=e.slice(r,a+1),r=a+1),t.length&&"\n"!==t&&(l+=i),l+=t;return l}function nc(e,n){return"\n"+o(" ",e.indent*n)}function ns(e,n){var t,i;for(t=0,i=e.implicitTypes.length;t<i;t+=1)if(e.implicitTypes[t].resolve(n))return!0;return!1}function nu(e){return 32===e||9===e}function np(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function nf(e){return np(e)&&65279!==e&&13!==e&&10!==e}function nd(e,n,t){var i=nf(e),r=i&&!nu(e);return(t?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===n&&!r)||nf(n)&&!nu(n)&&35===e||58===n&&r}function nm(e){return np(e)&&65279!==e&&!nu(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function nh(e){return!nu(e)&&58!==e}function ng(e,n){var t,i=e.charCodeAt(n);return i>=55296&&i<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1))>=56320&&t<=57343?(i-55296)*1024+t-56320+65536:i}function n_(e){return/^\n* /.test(e)}function ny(e,n,t,i,r,o,a,l){var c,s=0,u=null,p=!1,f=!1,d=-1!==i,m=-1,h=nm(ng(e,0))&&nh(ng(e,e.length-1));if(n||a)for(c=0;c<e.length;s>=65536?c+=2:c++){if(!np(s=ng(e,c)))return 5;h=h&&nd(s,u,l),u=s}else{for(c=0;c<e.length;s>=65536?c+=2:c++){if(10===(s=ng(e,c)))p=!0,d&&(f=f||c-m-1>i&&" "!==e[m+1],m=c);else if(!np(s))return 5;h=h&&nd(s,u,l),u=s}f=f||d&&c-m-1>i&&" "!==e[m+1]}return p||f?t>9&&n_(e)?5:a?2===o?5:2:f?4:3:!h||a||r(e)?2===o?5:2:1}function nb(e,n,i,r,o){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==nt.indexOf(n)||ni.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";var a=e.indent*Math.max(1,i),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&i>=e.flowLevel;function u(n){return ns(e,n)}switch((0,t.__name)(u,"testAmbiguity"),ny(n,s,e.indent,l,u,e.quotingType,e.forceQuotes&&!r,o)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+nv(n,e.indent)+nA(nl(n,a));case 4:return">"+nv(n,e.indent)+nA(nl(nk(n,l),a));case 5:return'"'+nC(n)+'"';default:throw new c("impossible error: invalid scalar style")}}()}function nv(e,n){var t=n_(e)?String(n):"",i="\n"===e[e.length-1];return t+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function nA(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function nk(e,n){for(var t,i,r,o=/(\n+)([^\n]*)/g,a=(o.lastIndex=t=-1!==(t=e.indexOf("\n"))?t:e.length,nw(e.slice(0,t),n)),l="\n"===e[0]||" "===e[0];r=o.exec(e);){var c=r[1],s=r[2];i=" "===s[0],a+=c+(l||i||""===s?"":"\n")+nw(s,n),l=i}return a}function nw(e,n){if(""===e||" "===e[0])return e;for(var t,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";t=r.exec(e);)(l=t.index)-o>n&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>n&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function nC(e){for(var n,t="",i=0,r=0;r<e.length;i>=65536?r+=2:r++)!(n=nn[i=ng(e,r)])&&np(i)?(t+=e[r],i>=65536&&(t+=e[r+1])):t+=n||no(i);return t}function nx(e,n,t){var i,r,o,a="",l=e.tag;for(i=0,r=t.length;i<r;i+=1)o=t[i],e.replacer&&(o=e.replacer.call(t,String(i),o)),(nT(e,n,o,!1,!1)||void 0===o&&nT(e,n,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=l,e.dump="["+a+"]"}function nS(e,n,t,i){var r,o,a,l="",c=e.tag;for(r=0,o=t.length;r<o;r+=1)a=t[r],e.replacer&&(a=e.replacer.call(t,String(r),a)),(nT(e,n+1,a,!0,!0,!1,!0)||void 0===a&&nT(e,n+1,null,!0,!0,!1,!0))&&(i&&""===l||(l+=nc(e,n)),e.dump&&10===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=c,e.dump=l||"[]"}function nO(e,n,t){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(t);for(i=0,r=u.length;i<r;i+=1)l="",""!==c&&(l+=", "),e.condenseFlow&&(l+='"'),a=t[o=u[i]],e.replacer&&(a=e.replacer.call(t,o,a)),nT(e,n,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),nT(e,n,a,!1,!1)&&(l+=e.dump,c+=l));e.tag=s,e.dump="{"+c+"}"}function nI(e,n,t,i){var r,o,a,l,s,u,p="",f=e.tag,d=Object.keys(t);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new c("sortKeys must be a boolean or a function");for(r=0,o=d.length;r<o;r+=1)u="",i&&""===p||(u+=nc(e,n)),l=t[a=d[r]],e.replacer&&(l=e.replacer.call(t,a,l)),nT(e,n+1,a,!0,!0,!0)&&((s=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=nc(e,n)),nT(e,n+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,p+=u));e.tag=f,e.dump=p||"{}"}function nj(e,n,t){var i,r,o,a,l,s;for(o=0,a=(r=t?e.explicitTypes:e.implicitTypes).length;o<a;o+=1)if(((l=r[o]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof n&&n instanceof l.instanceOf)&&(!l.predicate||l.predicate(n))){if(t?l.multi&&l.representName?e.tag=l.representName(n):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===e7.call(l.represent))i=l.represent(n,s);else if(ne.call(l.represent,s))i=l.represent[s](n,s);else throw new c("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');e.dump=i}return!0}return!1}function nT(e,n,t,i,r,o,a){e.tag=null,e.dump=t,nj(e,t,!1)||nj(e,t,!0);var l=e7.call(e.dump),s=i;i&&(i=e.flowLevel<0||e.flowLevel>n);var u,p,f,d="[object Object]"===l||"[object Array]"===l;if(d&&(f=-1!==(p=e.duplicates.indexOf(t))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&n>0)&&(r=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===l)i&&0!==Object.keys(e.dump).length?(nI(e,n,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(nO(e,n,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===l)i&&0!==e.dump.length?(e.noArrayIndent&&!a&&n>0?nS(e,n-1,e.dump,r):nS(e,n,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(nx(e,n,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object String]"===l)"?"!==e.tag&&nb(e,e.dump,n,o,s);else{if("[object Undefined]"===l||e.skipInvalid)return!1;throw new c("unacceptable kind of an object to dump "+l)}null!==e.tag&&"?"!==e.tag&&(u=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),u="!"===e.tag[0]?"!"+u:"tag:yaml.org,2002:"===u.slice(0,18)?"!!"+u.slice(18):"!<"+u+">",e.dump=u+" "+e.dump)}return!0}function nF(e,n){var t,i,r=[],o=[];for(nL(e,r,o),t=0,i=o.length;t<i;t+=1)n.duplicates.push(r[o[t]]);n.usedDuplicates=Array(i)}function nL(e,n,t){var i,r,o;if(null!==e&&"object"==typeof e)if(-1!==(r=n.indexOf(e)))-1===t.indexOf(r)&&t.push(r);else if(n.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)nL(e[r],n,t);else for(r=0,o=(i=Object.keys(e)).length;r<o;r+=1)nL(e[i[r]],n,t)}(0,t.__name)(nr,"compileStyleMap"),(0,t.__name)(no,"encodeHex"),(0,t.__name)(na,"State"),(0,t.__name)(nl,"indentString"),(0,t.__name)(nc,"generateNextLine"),(0,t.__name)(ns,"testImplicitResolving"),(0,t.__name)(nu,"isWhitespace"),(0,t.__name)(np,"isPrintable"),(0,t.__name)(nf,"isNsCharOrWhitespace"),(0,t.__name)(nd,"isPlainSafe"),(0,t.__name)(nm,"isPlainSafeFirst"),(0,t.__name)(nh,"isPlainSafeLast"),(0,t.__name)(ng,"codePointAt"),(0,t.__name)(n_,"needIndentIndicator");function nM(e,n){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}(0,t.__name)(ny,"chooseScalarStyle"),(0,t.__name)(nb,"writeScalar"),(0,t.__name)(nv,"blockHeader"),(0,t.__name)(nA,"dropEndingNewline"),(0,t.__name)(nk,"foldString"),(0,t.__name)(nw,"foldLine"),(0,t.__name)(nC,"escapeString"),(0,t.__name)(nx,"writeFlowSequence"),(0,t.__name)(nS,"writeBlockSequence"),(0,t.__name)(nO,"writeFlowMapping"),(0,t.__name)(nI,"writeBlockMapping"),(0,t.__name)(nj,"detectType"),(0,t.__name)(nT,"writeNode"),(0,t.__name)(nF,"getDuplicateReferences"),(0,t.__name)(nL,"inspectNode"),(0,t.__name)(function(e,n){var t=new na(n=n||{});t.noRefs||nF(e,t);var i=e;return(t.replacer&&(i=t.replacer.call({"":i},"",i)),nT(t,0,i,!0,!0))?t.dump+"\n":""},"dump$1"),(0,t.__name)(nM,"renamed"),nM("safeLoad","load"),nM("safeLoadAll","loadAll"),nM("safeDump","dump"),e.s(["JSON_SCHEMA",0,R,"load",0,e8])}]);
|