@marimo-team/frontend 0.19.7-dev5 → 0.19.7-dev7
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/assets/{CellStatus-D1YyNsC9.js → CellStatus-BY4X4uFY.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-KZlvSITY.js → ConnectedDataExplorerComponent-Dj4OQPPM.js} +1 -1
- package/dist/assets/{JsonOutput-DlwRx3jE.js → JsonOutput-BH-e3_eJ.js} +7 -7
- package/dist/assets/{LazyAnyLanguageCodeMirror-Dr2G5gxJ.js → LazyAnyLanguageCodeMirror-BAZOonTp.js} +2 -2
- package/dist/assets/{add-cell-with-ai-DEdol3w0.js → add-cell-with-ai-MmmolUhy.js} +1 -1
- package/dist/assets/{add-database-form-0DEJX5nr.js → add-database-form-BkETr5YE.js} +1 -1
- package/dist/assets/{agent-panel-DNF472QI.js → agent-panel--GnGst4s.js} +1 -1
- package/dist/assets/{any-language-editor-CK5cbqaZ.js → any-language-editor-COlHX8Mm.js} +1 -1
- package/dist/assets/{app-config-button-r0SnKeQv.js → app-config-button-D18z5Elr.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-BAPTB7Uu.js → architectureDiagram-VXUJARFQ-D1yA5Wi6.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-ByTVsUSZ.js → blockDiagram-VD42YOAC-BGSTD5Hi.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-CQQT57RB.js → c4Diagram-YG6GDRKO-D-nNJZEX.js} +1 -1
- package/dist/assets/{cache-panel-BljwLE9L.js → cache-panel-CMeIPFKa.js} +1 -1
- package/dist/assets/{cell-editor-BaPoX5lw.js → cell-editor-Bp2RbXkC.js} +1 -1
- package/dist/assets/channel-5ylYMPfW.js +1 -0
- package/dist/assets/{chat-display-ZS_L6G-P.js → chat-display-C22D1dT7.js} +1 -1
- package/dist/assets/{chat-panel-Chm2DqS8.js → chat-panel-DnbhsdNE.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-DvJ_-Ku-.js → chunk-55IACEB6-D-RZ-Wf7.js} +1 -1
- package/dist/assets/{chunk-ABZYJK2D-DAD3GlgM.js → chunk-ABZYJK2D-B1_MYIJC.js} +2 -2
- package/dist/assets/{chunk-ATLVNIR6-DsKp3Ify.js → chunk-ATLVNIR6-0QlrKyOY.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-Cv1rtZu-.js → chunk-B4BG7PRW-D9RkXn4K.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DpQLXMld.js → chunk-DI55MBZ5-DabwYVi4.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-GbJyzeBy.js → chunk-EXTU4WIE-BApi5esa.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-BlmyoDCa.js → chunk-JA3XYJ7Z-DlG5XxD_.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-DBaJpCky.js → chunk-JZLCHNYA-CflvMvb-.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-DtYoI569.js → chunk-N4CR4FBY-CFrpRZMl.js} +2 -2
- package/dist/assets/{chunk-OGVTOU66-DQphfHw1.js → chunk-OGVTOU66-DYMZbUe5.js} +4 -4
- package/dist/assets/{chunk-QN33PNHL-C0IBWhei.js → chunk-QN33PNHL-D_XrcfZ2.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-CIxWhn5L.js → chunk-QXUST7PY-DS-Qo1sM.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-By1A-M0T.js → chunk-S3R3BYOJ-CAG3u58l.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-BiNEgT46.js → chunk-TZMSLE5B-q2vYfu0u.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-052RdtZV.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-BgiSq5LY.js +1 -0
- package/dist/assets/{code-block-QI2IAROF-Ckkxnyg4.js → code-block-QI2IAROF-DwN_SFll.js} +1 -1
- package/dist/assets/{column-preview-DZ--KOk1.js → column-preview-UAPIglWp.js} +1 -1
- package/dist/assets/{command-B1zRJT1a.js → command-DB9hJj4r.js} +1 -1
- package/dist/assets/{command-palette-DmYvtSUz.js → command-palette-D8p1hX9Z.js} +1 -1
- package/dist/assets/{common-C2MMmHt4.js → common-ChOwXql6.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-B-gjerAi.js → cose-bilkent-S5V4N54A-gby0fxw7.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-Bnzt4A4J.js → dagre-6UL2VRFP-BMUVLJmR.js} +1 -1
- package/dist/assets/dependency-graph-panel-DtW59Uk_.js +4 -0
- package/dist/assets/{diagram-PSM6KHXK-CDG_G18X.js → diagram-PSM6KHXK-B9uTT_zK.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-CPk22-jF.js → diagram-QEK2KX5R-B2c50xFp.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-BGwcIRrz.js → diagram-S2PKOQOG-DheOQn4c.js} +1 -1
- package/dist/assets/{documentation-panel-BxwnSjGK.js → documentation-panel-kCdmA321.js} +1 -1
- package/dist/assets/{download-C_slsU-7.js → download-B-eaoq3_.js} +1 -1
- package/dist/assets/{edit-page-CHi5vFR5.js → edit-page-D1WRCtHN.js} +6 -6
- package/dist/assets/{erDiagram-Q2GNP2WA-C5cEKchg.js → erDiagram-Q2GNP2WA-DmGqeHo_.js} +1 -1
- package/dist/assets/{error-panel-BCy5nltz.js → error-panel-CyzwHK7E.js} +1 -1
- package/dist/assets/{file-explorer-panel-riLtoV84.js → file-explorer-panel-DwkE_qtH.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-CkUxkQez.js → flowDiagram-NV44I4VS-eCbWz-83.js} +1 -1
- package/dist/assets/{form-DyJ8-Zz6.js → form-Cj105R5J.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-BH4xsWll.js → ganttDiagram-JELNMOA3-3DhMLUJ1.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-I86uT3FX.js → gitGraphDiagram-NY62KEGX-CHcYfg4M.js} +1 -1
- package/dist/assets/{glide-data-editor-CFXeoAXC.js → glide-data-editor-DdEo1lIr.js} +1 -1
- package/dist/assets/{home-page-CZKnE2XJ.js → home-page-pDErM2B-.js} +1 -1
- package/dist/assets/{hooks-DjduWDUD.js → hooks-H-OwMGrs.js} +1 -1
- package/dist/assets/index-Wq9bXZSW.js +43 -0
- package/dist/assets/{infoDiagram-WHAUD3N6-cXMgF6PV.js → infoDiagram-WHAUD3N6-CFrCP6ci.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-vqg3DbEv.js → journeyDiagram-XKPGCS4Q-CIJje2rA.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-BtwSVIt8.js → kanban-definition-3W4ZIXB7-DdU8g-p5.js} +1 -1
- package/dist/assets/katex-D_p4uM5H.js +1 -0
- package/dist/assets/kiosk-mode-CHV3_vAt.js +1 -0
- package/dist/assets/{label-CqyOmxjL.js → label-CNZLffHW.js} +1 -1
- package/dist/assets/{layout-CBI2c778.js → layout-1zPURdGQ.js} +1 -1
- package/dist/assets/{linear-AjjmB_kQ.js → linear-DV-iHtba.js} +1 -1
- package/dist/assets/{logs-panel-C4-6DwM7.js → logs-panel-DJHIYDYG.js} +1 -1
- package/dist/assets/{markdown-renderer-DjqhqmES.js → markdown-renderer-DOBdrH5a.js} +1 -1
- package/dist/assets/{mermaid-D5KHoN__.js → mermaid-DnXDPJxf.js} +1 -1
- package/dist/assets/mermaid-NA5CF7SZ-B5ZNto-r.js +1 -0
- package/dist/assets/mermaid.core-BewYXql0.js +1 -0
- package/dist/assets/{mermaid.core-iFdtpd1M.js → mermaid.core-DfEfQF14.js} +3 -3
- package/dist/assets/{mhchem-CDMfjrnn.js → mhchem-DtmlQa-Y.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-bkwq50Hs.js → mindmap-definition-VGOIOE7T-2ehBKsBF.js} +1 -1
- package/dist/assets/{name-cell-input-Dc5Oz84d.js → name-cell-input-BfTcj-5o.js} +1 -1
- package/dist/assets/{outline-panel-Hazc5lot.js → outline-panel-Dhau5j44.js} +1 -1
- package/dist/assets/{packages-panel-B193htcT.js → packages-panel-BynnbKeY.js} +1 -1
- package/dist/assets/panel-context-CosC5qvT.js +1 -0
- package/dist/assets/{panels-wPsRwJLC.js → panels-HaU4LhEZ.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-CdLCqSiS.js → pieDiagram-ADFJNKIX-BsZc414q.js} +1 -1
- package/dist/assets/popover-QmFlvleQ.js +1 -0
- package/dist/assets/{quadrantDiagram-AYHSOK5B-FJc1d940.js → quadrantDiagram-AYHSOK5B-CLX1GT8J.js} +1 -1
- package/dist/assets/{react-vega-CI0fuCLO.js → react-vega-DyLUmsUn.js} +1 -1
- package/dist/assets/{react-vega-DdONPC3a.js → react-vega-_pepwH5d.js} +1 -1
- package/dist/assets/{readonly-python-code-Dr5fAkba.js → readonly-python-code-C2DdcXRg.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-grHisX2O.js → requirementDiagram-UZGBJVZJ-yeDVb1Ta.js} +1 -1
- package/dist/assets/{run-page-DiloPKVJ.js → run-page-CQ8VLy0R.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-DArc4irh.js → sankeyDiagram-TZEHDZUN-Vykiiwot.js} +1 -1
- package/dist/assets/scratchpad-panel-C4-UFjHS.js +1 -0
- package/dist/assets/{secrets-panel-CaBDi8LW.js → secrets-panel-DDg3J4bC.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-CiYSca0h.js → sequenceDiagram-WL72ISMW-DUxi_n64.js} +1 -1
- package/dist/assets/{session-panel-DVgM22Up.js → session-panel-ZG5hJ3KC.js} +1 -1
- package/dist/assets/snippets-panel-C2M1mHGE.js +1 -0
- package/dist/assets/{src-Bp_72rVO.js → src-lcGySDV2.js} +1 -1
- package/dist/assets/state-Cls1gyOv.js +1 -0
- package/dist/assets/{stateDiagram-FKZM4ZOC-D40U7ncF.js → stateDiagram-FKZM4ZOC-DjrqiQMK.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-1PbbhA3u.js +1 -0
- package/dist/assets/{terminal-CZ_e8rW4.js → terminal-DrgSlc8W.js} +1 -1
- package/dist/assets/{textarea-DzIuH-E_.js → textarea-CkG0KEO5.js} +1 -1
- package/dist/assets/{time-DIXLO3Ax.js → time-Cg4-n5Aa.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-BXeNa69x.js → timeline-definition-IT6M3QCI-CvguHy6N.js} +1 -1
- package/dist/assets/{tracing-DsibCERP.js → tracing-Q4K2x4Hf.js} +1 -1
- package/dist/assets/{tracing-panel-C9hGUzPk.js → tracing-panel-aC3KCnu3.js} +2 -2
- package/dist/assets/{tree-CeX0mTvA.js → tree-BTuIzfAI.js} +1 -1
- package/dist/assets/{useAddCell-DveVmvs9.js → useAddCell-CMKRiYC3.js} +1 -1
- package/dist/assets/{useCellActionButton-DmwKwroH.js → useCellActionButton-_rAkF3dZ.js} +1 -1
- package/dist/assets/{useDeleteCell-D-55qWAK.js → useDeleteCell-DmEhgmlm.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-C1afckCJ.js → useDependencyPanelTab-CCDnzcSh.js} +1 -1
- package/dist/assets/{useNotebookActions-DaM9w6Je.js → useNotebookActions-DoSNkrRT.js} +1 -1
- package/dist/assets/{useSplitCell-Dfn0Ozrw.js → useSplitCell-CG-lGWfZ.js} +1 -1
- package/dist/assets/{utilities.esm-CqQATX3k.js → utilities.esm-CygaSUQZ.js} +1 -1
- package/dist/assets/{vega-component-D3ylM3tt.js → vega-component-kFSLl5iv.js} +1 -1
- package/dist/assets/{write-secret-modal-BL-FoIag.js → write-secret-modal-C_Z81QtW.js} +1 -1
- package/dist/assets/{xychartDiagram-PRI3JC2R-Pi_FiTJG.js → xychartDiagram-PRI3JC2R-D9jk-l_A.js} +1 -1
- package/dist/index.html +37 -38
- package/package.json +1 -1
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +46 -10
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +11 -66
- package/src/plugins/impl/plotly/__tests__/usePlotlyLayout.test.ts +113 -0
- package/src/plugins/impl/plotly/usePlotlyLayout.ts +163 -0
- package/dist/assets/channel-BftudkVr.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-pASSDJWu.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-x3SAPA1o.js +0 -1
- package/dist/assets/dependency-graph-panel-DI2T4e0o.js +0 -4
- package/dist/assets/index-BI2D29sc.js +0 -43
- package/dist/assets/katex-BmeEOSF2.js +0 -1
- package/dist/assets/kiosk-mode-CQH06LFg.js +0 -1
- package/dist/assets/mermaid-NA5CF7SZ-Rdx8a8Uo.js +0 -1
- package/dist/assets/mermaid.core-XIi8b-BS.js +0 -1
- package/dist/assets/popover-DtnzNVk-.js +0 -1
- package/dist/assets/scratchpad-panel-Bxttzf7V.js +0 -1
- package/dist/assets/snippets-panel--0uDwhrb.js +0 -1
- package/dist/assets/state-BphSR6sx.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-HEpD8xZX.js +0 -1
- package/dist/assets/tabs-CHiEPtZV.js +0 -1
- /package/dist/assets/{blob-DtJQFQyD.js → blob-Dg_vNTSs.js} +0 -0
- /package/dist/assets/{bundle.esm-dxSncdJD.js → bundle.esm-B0Sy2M4C.js} +0 -0
- /package/dist/assets/{dist-vjCyCXRJ.js → dist-Ciq1Lh9M.js} +0 -0
- /package/dist/assets/{dist-D0NgYwYf.js → dist-Dg7UO_Vw.js} +0 -0
- /package/dist/assets/{empty-state-H6r25Wek.js → empty-state-B0XJ9ZUi.js} +0 -0
- /package/dist/assets/{es-BJsT6vfZ.js → es-Bu_hpQqq.js} +0 -0
- /package/dist/assets/{esm-D2_Kx6xF.js → esm-B3JckBtM.js} +0 -0
- /package/dist/assets/{field-86WoveRM.js → field-DhlfpTLG.js} +0 -0
- /package/dist/assets/{floating-outline-DqdzWKrn.js → floating-outline-nRtS9jMm.js} +0 -0
- /package/dist/assets/{focus-KGgBDCvb.js → focus-BGH9Dxb1.js} +0 -0
- /package/dist/assets/{formats-DtJ_484s.js → formats-B9CrBoaO.js} +0 -0
- /package/dist/assets/{icons-9QU2Dup7.js → icons-D4lB4En9.js} +0 -0
- /package/dist/assets/{katex-dFZM4X_7.js → katex-AwOI3EvM.js} +0 -0
- /package/dist/assets/{marked.esm-BZNXs5FA.js → marked.esm-CHnOtnr3.js} +0 -0
- /package/dist/assets/{multi-icon-6ulZXArq.js → multi-icon-BOYRpNB_.js} +0 -0
- /package/dist/assets/{process-output-DN66BQYe.js → process-output-CqLi63bY.js} +0 -0
- /package/dist/assets/{react-resizable-panels.browser.esm-B7ZqbY8M.js → react-resizable-panels.browser.esm-BqxQegSf.js} +0 -0
- /package/dist/assets/{renderShortcut-BzTDKVab.js → renderShortcut-DQ1H8wv8.js} +0 -0
- /package/dist/assets/{requests-bNszE-ju.js → requests-DiQsDZob.js} +0 -0
- /package/dist/assets/{state-D4d80DfQ.js → state-CIznbe1J.js} +0 -0
- /package/dist/assets/{table-BatLo2vd.js → table--_20dwBZ.js} +0 -0
- /package/dist/assets/{timer-CPT_vXom.js → timer-BEJidwwG.js} +0 -0
- /package/dist/assets/{toggle-D-5M3JI_.js → toggle-G1t0cQyf.js} +0 -0
- /package/dist/assets/{useAsyncData-Dj1oqsrZ.js → useAsyncData-BJJJOr9W.js} +0 -0
- /package/dist/assets/{useDeepCompareMemoize-81gQouTn.js → useDeepCompareMemoize-gzLRYatP.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var P,M;import{u as J}from"./src-Bp_72rVO.js";import{c as te,g as It}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as A,r as Ot}from"./src-faGJHwXX.js";import{A as w,B as ee,C as se,I as ie,U as ne,_ as re,a as ae,b as F,s as L,v as ue,z as le}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{r as oe,t as ce}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as he}from"./chunk-FMBD7UC4-DYXO3edG.js";import{t as pe}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as de}from"./chunk-QN33PNHL-C0IBWhei.js";var vt=(function(){var s=A(function(o,y,p,a){for(p||(p={}),a=o.length;a--;p[o[a]]=y);return p},"o"),i=[1,18],n=[1,19],r=[1,20],l=[1,41],u=[1,42],h=[1,26],d=[1,24],m=[1,25],B=[1,32],pt=[1,33],dt=[1,34],b=[1,45],At=[1,35],yt=[1,36],mt=[1,37],Ct=[1,38],bt=[1,27],gt=[1,28],Et=[1,29],kt=[1,30],ft=[1,31],g=[1,44],E=[1,46],k=[1,43],f=[1,47],Tt=[1,9],c=[1,8,9],Z=[1,58],tt=[1,59],et=[1,60],st=[1,61],it=[1,62],Ft=[1,63],Dt=[1,64],G=[1,8,9,41],Rt=[1,76],v=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],nt=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],wt=[13,60,68,69,70,71,72,86,100,102,103],Bt=[1,100],z=[1,117],K=[1,113],Y=[1,109],W=[1,115],Q=[1,110],X=[1,111],j=[1,112],H=[1,114],q=[1,116],Pt=[22,48,60,61,82,86,87,88,89,90],_t=[1,8,9,39,41,44],at=[1,8,9,22],Mt=[1,145],Gt=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],St={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,y,p,a,C,t,V){var e=t.length-1;switch(C){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:a.addRelation(t[e]);break;case 20:t[e-1].title=a.cleanupLabel(t[e]),a.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),a.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),a.setAccDescription(this.$);break;case 34:a.addClassesToNamespace(t[e-3],t[e-1]);break;case 35:a.addClassesToNamespace(t[e-4],t[e-1]);break;case 36:this.$=t[e],a.addNamespace(t[e]);break;case 37:this.$=[t[e]];break;case 38:this.$=[t[e-1]];break;case 39:t[e].unshift(t[e-2]),this.$=t[e];break;case 41:a.setCssClass(t[e-2],t[e]);break;case 42:a.addMembers(t[e-3],t[e-1]);break;case 44:a.setCssClass(t[e-5],t[e-3]),a.addMembers(t[e-5],t[e-1]);break;case 45:this.$=t[e],a.addClass(t[e]);break;case 46:this.$=t[e-1],a.addClass(t[e-1]),a.setClassLabel(t[e-1],t[e]);break;case 50:a.addAnnotation(t[e],t[e-2]);break;case 51:case 64:this.$=[t[e]];break;case 52:t[e].push(t[e-1]),this.$=t[e];break;case 53:break;case 54:a.addMember(t[e-1],a.cleanupLabel(t[e]));break;case 55:break;case 56:break;case 57:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 59:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 60:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 61:a.addNote(t[e],t[e-1]);break;case 62:a.addNote(t[e]);break;case 63:this.$=t[e-2],a.defineClass(t[e-1],t[e]);break;case 65:this.$=t[e-2].concat([t[e]]);break;case 66:a.setDirection("TB");break;case 67:a.setDirection("BT");break;case 68:a.setDirection("RL");break;case 69:a.setDirection("LR");break;case 70:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 71:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 72:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 73:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 74:this.$=a.relationType.AGGREGATION;break;case 75:this.$=a.relationType.EXTENSION;break;case 76:this.$=a.relationType.COMPOSITION;break;case 77:this.$=a.relationType.DEPENDENCY;break;case 78:this.$=a.relationType.LOLLIPOP;break;case 79:this.$=a.lineType.LINE;break;case 80:this.$=a.lineType.DOTTED_LINE;break;case 81:case 87:this.$=t[e-2],a.setClickEvent(t[e-1],t[e]);break;case 82:case 88:this.$=t[e-3],a.setClickEvent(t[e-2],t[e-1]),a.setTooltip(t[e-2],t[e]);break;case 83:this.$=t[e-2],a.setLink(t[e-1],t[e]);break;case 84:this.$=t[e-3],a.setLink(t[e-2],t[e-1],t[e]);break;case 85:this.$=t[e-3],a.setLink(t[e-2],t[e-1]),a.setTooltip(t[e-2],t[e]);break;case 86:this.$=t[e-4],a.setLink(t[e-3],t[e-2],t[e]),a.setTooltip(t[e-3],t[e-1]);break;case 89:this.$=t[e-3],a.setClickEvent(t[e-2],t[e-1],t[e]);break;case 90:this.$=t[e-4],a.setClickEvent(t[e-3],t[e-2],t[e-1]),a.setTooltip(t[e-3],t[e]);break;case 91:this.$=t[e-3],a.setLink(t[e-2],t[e]);break;case 92:this.$=t[e-4],a.setLink(t[e-3],t[e-1],t[e]);break;case 93:this.$=t[e-4],a.setLink(t[e-3],t[e-1]),a.setTooltip(t[e-3],t[e]);break;case 94:this.$=t[e-5],a.setLink(t[e-4],t[e-2],t[e]),a.setTooltip(t[e-4],t[e-1]);break;case 95:this.$=t[e-2],a.setCssStyle(t[e-1],t[e]);break;case 96:a.setCssClass(t[e-1],t[e]);break;case 97:this.$=[t[e]];break;case 98:t[e-2].push(t[e]),this.$=t[e-2];break;case 100:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:r,38:22,42:l,43:23,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Tt,[2,5],{8:[1,48]}),{8:[1,49]},s(c,[2,19],{22:[1,50]}),s(c,[2,21]),s(c,[2,22]),s(c,[2,23]),s(c,[2,24]),s(c,[2,25]),s(c,[2,26]),s(c,[2,27]),s(c,[2,28]),s(c,[2,29]),s(c,[2,30]),{34:[1,51]},{36:[1,52]},s(c,[2,33]),s(c,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:tt,70:et,71:st,72:it,73:Ft,74:Dt}),{39:[1,65]},s(G,[2,40],{39:[1,67],44:[1,66]}),s(c,[2,55]),s(c,[2,56]),{16:68,60:b,86:g,100:E,102:k},{16:39,17:40,19:69,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:70,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:71,60:b,86:g,100:E,102:k,103:f},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:b,86:g,100:E,102:k,103:f},{13:Rt,55:75},{58:77,60:[1,78]},s(c,[2,66]),s(c,[2,67]),s(c,[2,68]),s(c,[2,69]),s(v,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:b,86:g,100:E,102:k,103:f}),s(v,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:86,60:b,86:g,100:E,102:k,103:f},s(nt,[2,123]),s(nt,[2,124]),s(nt,[2,125]),s(nt,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(Tt,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:n,37:r,42:l,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:r,38:22,42:l,43:23,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f},s(c,[2,20]),s(c,[2,31]),s(c,[2,32]),{13:[1,90],16:39,17:40,19:89,60:b,86:g,100:E,102:k,103:f},{53:91,66:56,67:57,68:Z,69:tt,70:et,71:st,72:it,73:Ft,74:Dt},s(c,[2,54]),{67:92,73:Ft,74:Dt},s(rt,[2,73],{66:93,68:Z,69:tt,70:et,71:st,72:it}),s(U,[2,74]),s(U,[2,75]),s(U,[2,76]),s(U,[2,77]),s(U,[2,78]),s(wt,[2,79]),s(wt,[2,80]),{8:[1,95],24:96,40:94,43:23,46:u},{16:97,60:b,86:g,100:E,102:k},{41:[1,99],45:98,51:Bt},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:z,48:K,59:106,60:Y,82:W,84:107,85:108,86:Q,87:X,88:j,89:H,90:q},{60:[1,118]},{13:Rt,55:119},s(c,[2,62]),s(c,[2,128]),{22:z,48:K,59:120,60:Y,61:[1,121],82:W,84:107,85:108,86:Q,87:X,88:j,89:H,90:q},s(Pt,[2,64]),{16:39,17:40,19:122,60:b,86:g,100:E,102:k,103:f},s(v,[2,16]),s(v,[2,17]),s(v,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:b,86:g,100:E,102:k,103:f},{39:[2,10]},s(_t,[2,45],{11:125,12:[1,126]}),s(Tt,[2,7]),{9:[1,127]},s(at,[2,57]),{16:39,17:40,19:128,60:b,86:g,100:E,102:k,103:f},{13:[1,130],16:39,17:40,19:129,60:b,86:g,100:E,102:k,103:f},s(rt,[2,72],{66:131,68:Z,69:tt,70:et,71:st,72:it}),s(rt,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:u},{8:[1,134],41:[2,37]},s(G,[2,41],{39:[1,135]}),{41:[1,136]},s(G,[2,43]),{41:[2,51],45:137,51:Bt},{16:39,17:40,19:138,60:b,86:g,100:E,102:k,103:f},s(c,[2,81],{13:[1,139]}),s(c,[2,83],{13:[1,141],77:[1,140]}),s(c,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(c,[2,95],{61:Mt}),s(Gt,[2,97],{85:146,22:z,48:K,60:Y,82:W,86:Q,87:X,88:j,89:H,90:q}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(c,[2,96]),s(c,[2,61]),s(c,[2,63],{61:Mt}),{60:[1,147]},s(v,[2,14]),{15:148,16:84,17:85,60:b,86:g,100:E,102:k,103:f},{39:[2,12]},s(_t,[2,46]),{13:[1,149]},{1:[2,4]},s(at,[2,59]),s(at,[2,58]),{16:39,17:40,19:150,60:b,86:g,100:E,102:k,103:f},s(rt,[2,70]),s(c,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:u},{45:153,51:Bt},s(G,[2,42]),{41:[2,52]},s(c,[2,50]),s(c,[2,82]),s(c,[2,84]),s(c,[2,85],{77:[1,154]}),s(c,[2,88]),s(c,[2,89],{13:[1,155]}),s(c,[2,91],{13:[1,157],77:[1,156]}),{22:z,48:K,60:Y,82:W,84:158,85:108,86:Q,87:X,88:j,89:H,90:q},s(N,[2,100]),s(Pt,[2,65]),{39:[2,11]},{14:[1,159]},s(at,[2,60]),s(c,[2,35]),{41:[2,39]},{41:[1,160]},s(c,[2,86]),s(c,[2,90]),s(c,[2,92]),s(c,[2,93],{77:[1,161]}),s(Gt,[2,98],{85:146,22:z,48:K,60:Y,82:W,86:Q,87:X,88:j,89:H,90:q}),s(_t,[2,8]),s(G,[2,44]),s(c,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:A(function(o,y){if(y.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=y,p}},"parseError"),parse:A(function(o){var y=this,p=[0],a=[],C=[null],t=[],V=this.table,e="",lt=0,Ut=0,zt=0,qt=2,Kt=1,Vt=t.slice.call(arguments,1),T=Object.create(this.lexer),x={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(x.yy[Nt]=this.yy[Nt]);T.setInput(o,x.yy),x.yy.lexer=T,x.yy.parser=this,T.yylloc===void 0&&(T.yylloc={});var $t=T.yylloc;t.push($t);var Jt=T.options&&T.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(S){p.length-=2*S,C.length-=S,t.length-=S}A(Zt,"popStack");function Yt(){var S=a.pop()||T.lex()||Kt;return typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=y.symbols_[S]||S),S}A(Yt,"lex");for(var D,Lt,I,_,xt,R={},ot,$,Wt,ct;;){if(I=p[p.length-1],this.defaultActions[I]?_=this.defaultActions[I]:(D??(D=Yt()),_=V[I]&&V[I][D]),_===void 0||!_.length||!_[0]){var Qt="";for(ot in ct=[],V[I])this.terminals_[ot]&&ot>qt&&ct.push("'"+this.terminals_[ot]+"'");Qt=T.showPosition?"Parse error on line "+(lt+1)+`:
|
|
1
|
+
var P,M;import{u as J}from"./src-lcGySDV2.js";import{c as te,g as It}from"./chunk-S3R3BYOJ-CAG3u58l.js";import{n as A,r as Ot}from"./src-faGJHwXX.js";import{A as w,B as ee,C as se,I as ie,U as ne,_ as re,a as ae,b as F,s as L,v as ue,z as le}from"./chunk-ABZYJK2D-B1_MYIJC.js";import{r as oe,t as ce}from"./chunk-N4CR4FBY-CFrpRZMl.js";import{t as he}from"./chunk-FMBD7UC4-DYXO3edG.js";import{t as pe}from"./chunk-55IACEB6-D-RZ-Wf7.js";import{t as de}from"./chunk-QN33PNHL-D_XrcfZ2.js";var vt=(function(){var s=A(function(o,y,p,a){for(p||(p={}),a=o.length;a--;p[o[a]]=y);return p},"o"),i=[1,18],n=[1,19],r=[1,20],l=[1,41],u=[1,42],h=[1,26],d=[1,24],m=[1,25],B=[1,32],pt=[1,33],dt=[1,34],b=[1,45],At=[1,35],yt=[1,36],mt=[1,37],Ct=[1,38],bt=[1,27],gt=[1,28],Et=[1,29],kt=[1,30],ft=[1,31],g=[1,44],E=[1,46],k=[1,43],f=[1,47],Tt=[1,9],c=[1,8,9],Z=[1,58],tt=[1,59],et=[1,60],st=[1,61],it=[1,62],Ft=[1,63],Dt=[1,64],G=[1,8,9,41],Rt=[1,76],v=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],nt=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],wt=[13,60,68,69,70,71,72,86,100,102,103],Bt=[1,100],z=[1,117],K=[1,113],Y=[1,109],W=[1,115],Q=[1,110],X=[1,111],j=[1,112],H=[1,114],q=[1,116],Pt=[22,48,60,61,82,86,87,88,89,90],_t=[1,8,9,39,41,44],at=[1,8,9,22],Mt=[1,145],Gt=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],St={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,y,p,a,C,t,V){var e=t.length-1;switch(C){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:a.addRelation(t[e]);break;case 20:t[e-1].title=a.cleanupLabel(t[e]),a.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),a.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),a.setAccDescription(this.$);break;case 34:a.addClassesToNamespace(t[e-3],t[e-1]);break;case 35:a.addClassesToNamespace(t[e-4],t[e-1]);break;case 36:this.$=t[e],a.addNamespace(t[e]);break;case 37:this.$=[t[e]];break;case 38:this.$=[t[e-1]];break;case 39:t[e].unshift(t[e-2]),this.$=t[e];break;case 41:a.setCssClass(t[e-2],t[e]);break;case 42:a.addMembers(t[e-3],t[e-1]);break;case 44:a.setCssClass(t[e-5],t[e-3]),a.addMembers(t[e-5],t[e-1]);break;case 45:this.$=t[e],a.addClass(t[e]);break;case 46:this.$=t[e-1],a.addClass(t[e-1]),a.setClassLabel(t[e-1],t[e]);break;case 50:a.addAnnotation(t[e],t[e-2]);break;case 51:case 64:this.$=[t[e]];break;case 52:t[e].push(t[e-1]),this.$=t[e];break;case 53:break;case 54:a.addMember(t[e-1],a.cleanupLabel(t[e]));break;case 55:break;case 56:break;case 57:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 59:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 60:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 61:a.addNote(t[e],t[e-1]);break;case 62:a.addNote(t[e]);break;case 63:this.$=t[e-2],a.defineClass(t[e-1],t[e]);break;case 65:this.$=t[e-2].concat([t[e]]);break;case 66:a.setDirection("TB");break;case 67:a.setDirection("BT");break;case 68:a.setDirection("RL");break;case 69:a.setDirection("LR");break;case 70:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 71:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 72:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 73:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 74:this.$=a.relationType.AGGREGATION;break;case 75:this.$=a.relationType.EXTENSION;break;case 76:this.$=a.relationType.COMPOSITION;break;case 77:this.$=a.relationType.DEPENDENCY;break;case 78:this.$=a.relationType.LOLLIPOP;break;case 79:this.$=a.lineType.LINE;break;case 80:this.$=a.lineType.DOTTED_LINE;break;case 81:case 87:this.$=t[e-2],a.setClickEvent(t[e-1],t[e]);break;case 82:case 88:this.$=t[e-3],a.setClickEvent(t[e-2],t[e-1]),a.setTooltip(t[e-2],t[e]);break;case 83:this.$=t[e-2],a.setLink(t[e-1],t[e]);break;case 84:this.$=t[e-3],a.setLink(t[e-2],t[e-1],t[e]);break;case 85:this.$=t[e-3],a.setLink(t[e-2],t[e-1]),a.setTooltip(t[e-2],t[e]);break;case 86:this.$=t[e-4],a.setLink(t[e-3],t[e-2],t[e]),a.setTooltip(t[e-3],t[e-1]);break;case 89:this.$=t[e-3],a.setClickEvent(t[e-2],t[e-1],t[e]);break;case 90:this.$=t[e-4],a.setClickEvent(t[e-3],t[e-2],t[e-1]),a.setTooltip(t[e-3],t[e]);break;case 91:this.$=t[e-3],a.setLink(t[e-2],t[e]);break;case 92:this.$=t[e-4],a.setLink(t[e-3],t[e-1],t[e]);break;case 93:this.$=t[e-4],a.setLink(t[e-3],t[e-1]),a.setTooltip(t[e-3],t[e]);break;case 94:this.$=t[e-5],a.setLink(t[e-4],t[e-2],t[e]),a.setTooltip(t[e-4],t[e-1]);break;case 95:this.$=t[e-2],a.setCssStyle(t[e-1],t[e]);break;case 96:a.setCssClass(t[e-1],t[e]);break;case 97:this.$=[t[e]];break;case 98:t[e-2].push(t[e]),this.$=t[e-2];break;case 100:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:r,38:22,42:l,43:23,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Tt,[2,5],{8:[1,48]}),{8:[1,49]},s(c,[2,19],{22:[1,50]}),s(c,[2,21]),s(c,[2,22]),s(c,[2,23]),s(c,[2,24]),s(c,[2,25]),s(c,[2,26]),s(c,[2,27]),s(c,[2,28]),s(c,[2,29]),s(c,[2,30]),{34:[1,51]},{36:[1,52]},s(c,[2,33]),s(c,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:tt,70:et,71:st,72:it,73:Ft,74:Dt}),{39:[1,65]},s(G,[2,40],{39:[1,67],44:[1,66]}),s(c,[2,55]),s(c,[2,56]),{16:68,60:b,86:g,100:E,102:k},{16:39,17:40,19:69,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:70,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:71,60:b,86:g,100:E,102:k,103:f},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:b,86:g,100:E,102:k,103:f},{13:Rt,55:75},{58:77,60:[1,78]},s(c,[2,66]),s(c,[2,67]),s(c,[2,68]),s(c,[2,69]),s(v,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:b,86:g,100:E,102:k,103:f}),s(v,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:86,60:b,86:g,100:E,102:k,103:f},s(nt,[2,123]),s(nt,[2,124]),s(nt,[2,125]),s(nt,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(Tt,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:n,37:r,42:l,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:r,38:22,42:l,43:23,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f},s(c,[2,20]),s(c,[2,31]),s(c,[2,32]),{13:[1,90],16:39,17:40,19:89,60:b,86:g,100:E,102:k,103:f},{53:91,66:56,67:57,68:Z,69:tt,70:et,71:st,72:it,73:Ft,74:Dt},s(c,[2,54]),{67:92,73:Ft,74:Dt},s(rt,[2,73],{66:93,68:Z,69:tt,70:et,71:st,72:it}),s(U,[2,74]),s(U,[2,75]),s(U,[2,76]),s(U,[2,77]),s(U,[2,78]),s(wt,[2,79]),s(wt,[2,80]),{8:[1,95],24:96,40:94,43:23,46:u},{16:97,60:b,86:g,100:E,102:k},{41:[1,99],45:98,51:Bt},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:z,48:K,59:106,60:Y,82:W,84:107,85:108,86:Q,87:X,88:j,89:H,90:q},{60:[1,118]},{13:Rt,55:119},s(c,[2,62]),s(c,[2,128]),{22:z,48:K,59:120,60:Y,61:[1,121],82:W,84:107,85:108,86:Q,87:X,88:j,89:H,90:q},s(Pt,[2,64]),{16:39,17:40,19:122,60:b,86:g,100:E,102:k,103:f},s(v,[2,16]),s(v,[2,17]),s(v,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:b,86:g,100:E,102:k,103:f},{39:[2,10]},s(_t,[2,45],{11:125,12:[1,126]}),s(Tt,[2,7]),{9:[1,127]},s(at,[2,57]),{16:39,17:40,19:128,60:b,86:g,100:E,102:k,103:f},{13:[1,130],16:39,17:40,19:129,60:b,86:g,100:E,102:k,103:f},s(rt,[2,72],{66:131,68:Z,69:tt,70:et,71:st,72:it}),s(rt,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:u},{8:[1,134],41:[2,37]},s(G,[2,41],{39:[1,135]}),{41:[1,136]},s(G,[2,43]),{41:[2,51],45:137,51:Bt},{16:39,17:40,19:138,60:b,86:g,100:E,102:k,103:f},s(c,[2,81],{13:[1,139]}),s(c,[2,83],{13:[1,141],77:[1,140]}),s(c,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(c,[2,95],{61:Mt}),s(Gt,[2,97],{85:146,22:z,48:K,60:Y,82:W,86:Q,87:X,88:j,89:H,90:q}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(c,[2,96]),s(c,[2,61]),s(c,[2,63],{61:Mt}),{60:[1,147]},s(v,[2,14]),{15:148,16:84,17:85,60:b,86:g,100:E,102:k,103:f},{39:[2,12]},s(_t,[2,46]),{13:[1,149]},{1:[2,4]},s(at,[2,59]),s(at,[2,58]),{16:39,17:40,19:150,60:b,86:g,100:E,102:k,103:f},s(rt,[2,70]),s(c,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:u},{45:153,51:Bt},s(G,[2,42]),{41:[2,52]},s(c,[2,50]),s(c,[2,82]),s(c,[2,84]),s(c,[2,85],{77:[1,154]}),s(c,[2,88]),s(c,[2,89],{13:[1,155]}),s(c,[2,91],{13:[1,157],77:[1,156]}),{22:z,48:K,60:Y,82:W,84:158,85:108,86:Q,87:X,88:j,89:H,90:q},s(N,[2,100]),s(Pt,[2,65]),{39:[2,11]},{14:[1,159]},s(at,[2,60]),s(c,[2,35]),{41:[2,39]},{41:[1,160]},s(c,[2,86]),s(c,[2,90]),s(c,[2,92]),s(c,[2,93],{77:[1,161]}),s(Gt,[2,98],{85:146,22:z,48:K,60:Y,82:W,86:Q,87:X,88:j,89:H,90:q}),s(_t,[2,8]),s(G,[2,44]),s(c,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:A(function(o,y){if(y.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=y,p}},"parseError"),parse:A(function(o){var y=this,p=[0],a=[],C=[null],t=[],V=this.table,e="",lt=0,Ut=0,zt=0,qt=2,Kt=1,Vt=t.slice.call(arguments,1),T=Object.create(this.lexer),x={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(x.yy[Nt]=this.yy[Nt]);T.setInput(o,x.yy),x.yy.lexer=T,x.yy.parser=this,T.yylloc===void 0&&(T.yylloc={});var $t=T.yylloc;t.push($t);var Jt=T.options&&T.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(S){p.length-=2*S,C.length-=S,t.length-=S}A(Zt,"popStack");function Yt(){var S=a.pop()||T.lex()||Kt;return typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=y.symbols_[S]||S),S}A(Yt,"lex");for(var D,Lt,I,_,xt,R={},ot,$,Wt,ct;;){if(I=p[p.length-1],this.defaultActions[I]?_=this.defaultActions[I]:(D??(D=Yt()),_=V[I]&&V[I][D]),_===void 0||!_.length||!_[0]){var Qt="";for(ot in ct=[],V[I])this.terminals_[ot]&&ot>qt&&ct.push("'"+this.terminals_[ot]+"'");Qt=T.showPosition?"Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+T.showPosition()+`
|
|
3
3
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[D]||D)+"'":"Parse error on line "+(lt+1)+": Unexpected "+(D==Kt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Qt,{text:T.match,token:this.terminals_[D]||D,line:T.yylineno,loc:$t,expected:ct})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+I+", token: "+D);switch(_[0]){case 1:p.push(D),C.push(T.yytext),t.push(T.yylloc),p.push(_[1]),D=null,Lt?(D=Lt,Lt=null):(Ut=T.yyleng,e=T.yytext,lt=T.yylineno,$t=T.yylloc,zt>0&&zt--);break;case 2:if($=this.productions_[_[1]][1],R.$=C[C.length-$],R._$={first_line:t[t.length-($||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-($||1)].first_column,last_column:t[t.length-1].last_column},Jt&&(R._$.range=[t[t.length-($||1)].range[0],t[t.length-1].range[1]]),xt=this.performAction.apply(R,[e,Ut,lt,x.yy,_[1],C,t].concat(Vt)),xt!==void 0)return xt;$&&(p=p.slice(0,-1*$*2),C=C.slice(0,-1*$),t=t.slice(0,-1*$)),p.push(this.productions_[_[1]][0]),C.push(R.$),t.push(R._$),Wt=V[p[p.length-2]][p[p.length-1]],p.push(Wt);break;case 3:return!0}}return!0},"parse")};St.lexer=(function(){return{EOF:1,parseError:A(function(o,y){if(this.yy.parser)this.yy.parser.parseError(o,y);else throw Error(o)},"parseError"),setInput:A(function(o,y){return this.yy=y||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:A(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:A(function(o){var y=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===a.length?this.yylloc.first_column:0)+a[a.length-p.length].length-p[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(o){this.unput(this.match.slice(o))},"less"),pastInput:A(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var o=this.pastInput(),y=Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var K;import{g as te,s as ee}from"./chunk-S3R3BYOJ-
|
|
1
|
+
var K;import{g as te,s as ee}from"./chunk-S3R3BYOJ-CAG3u58l.js";import{n as u,r as T}from"./src-faGJHwXX.js";import{B as se,C as ie,U as re,_ as ne,a as ae,b as w,s as U,v as oe,z as le}from"./chunk-ABZYJK2D-B1_MYIJC.js";import{r as ce}from"./chunk-N4CR4FBY-CFrpRZMl.js";import{t as he}from"./chunk-55IACEB6-D-RZ-Wf7.js";import{t as de}from"./chunk-QN33PNHL-D_XrcfZ2.js";var kt=(function(){var e=u(function(a,h,g,S){for(g||(g={}),S=a.length;S--;g[a[S]]=h);return g},"o"),t=[1,2],s=[1,3],n=[1,4],i=[2,4],o=[1,9],c=[1,11],y=[1,16],p=[1,17],_=[1,18],m=[1,19],D=[1,33],A=[1,20],x=[1,21],R=[1,22],$=[1,23],O=[1,24],d=[1,26],E=[1,27],v=[1,28],G=[1,29],j=[1,30],Y=[1,31],F=[1,32],rt=[1,35],nt=[1,36],at=[1,37],ot=[1,38],H=[1,34],f=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],$t=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(function(a,h,g,S,b,r,Q){var l=r.length-1;switch(b){case 3:return S.setRootDoc(r[l]),r[l];case 4:this.$=[];break;case 5:r[l]!="nl"&&(r[l-1].push(r[l]),this.$=r[l-1]);break;case 6:case 7:this.$=r[l];break;case 8:this.$="nl";break;case 12:this.$=r[l];break;case 13:let ht=r[l-1];ht.description=S.trimColon(r[l]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:r[l-2],state2:r[l]};break;case 15:let dt=S.trimColon(r[l]);this.$={stmt:"relation",state1:r[l-3],state2:r[l-1],description:dt};break;case 19:this.$={stmt:"state",id:r[l-3],type:"default",description:"",doc:r[l-1]};break;case 20:var z=r[l],X=r[l-2].trim();if(r[l].match(":")){var Z=r[l].split(":");z=Z[0],X=[X,Z[1]]}this.$={stmt:"state",id:z,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[l-3],type:"default",description:r[l-5],doc:r[l-1]};break;case 22:this.$={stmt:"state",id:r[l],type:"fork"};break;case 23:this.$={stmt:"state",id:r[l],type:"join"};break;case 24:this.$={stmt:"state",id:r[l],type:"choice"};break;case 25:this.$={stmt:"state",id:S.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[l-1].trim(),note:{position:r[l-2].trim(),text:r[l].trim()}};break;case 29:this.$=r[l].trim(),S.setAccTitle(this.$);break;case 30:case 31:this.$=r[l].trim(),S.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[l-3],url:r[l-2],tooltip:r[l-1]};break;case 33:this.$={stmt:"click",id:r[l-3],url:r[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[l-1].trim(),classes:r[l].trim()};break;case 36:this.$={stmt:"style",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 37:this.$={stmt:"applyClass",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 38:S.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:S.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:S.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:S.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[l-2].trim(),classes:[r[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[l-2].trim(),classes:[r[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:n},{1:[3]},{3:5,4:t,5:s,6:n},{3:6,4:t,5:s,6:n},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:c,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:p,19:_,22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:p,19:_,22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,7]),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(f,[2,11]),e(f,[2,12],{14:[1,40],15:[1,41]}),e(f,[2,16]),{18:[1,42]},e(f,[2,18],{20:[1,43]}),{23:[1,44]},e(f,[2,22]),e(f,[2,23]),e(f,[2,24]),e(f,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(f,[2,28]),{34:[1,49]},{36:[1,50]},e(f,[2,31]),{13:51,24:D,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(lt,[2,44],{58:[1,56]}),e(lt,[2,45],{58:[1,57]}),e(f,[2,38]),e(f,[2,39]),e(f,[2,40]),e(f,[2,41]),e(f,[2,6]),e(f,[2,13]),{13:58,24:D,57:H},e(f,[2,17]),e($t,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(f,[2,29]),e(f,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(f,[2,14],{14:[1,71]}),{4:o,5:c,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:p,19:_,21:[1,72],22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),e(lt,[2,46]),e(lt,[2,47]),e(f,[2,15]),e(f,[2,19]),e($t,i,{7:78}),e(f,[2,26]),e(f,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:c,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:p,19:_,21:[1,81],22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,32]),e(f,[2,33]),e(f,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(a,h){if(h.recoverable)this.trace(a);else{var g=Error(a);throw g.hash=h,g}},"parseError"),parse:u(function(a){var h=this,g=[0],S=[],b=[null],r=[],Q=this.table,l="",z=0,X=0,Z=0,ht=2,dt=1,qt=r.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(W.yy[St]=this.yy[St]);k.setInput(a,W.yy),W.yy.lexer=k,W.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var _t=k.yylloc;r.push(_t);var Qt=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(N){g.length-=2*N,b.length-=N,r.length-=N}u(Zt,"popStack");function Lt(){var N=S.pop()||k.lex()||dt;return typeof N!="number"&&(N instanceof Array&&(S=N,N=S.pop()),N=h.symbols_[N]||N),N}u(Lt,"lex");for(var L,bt,M,I,Tt,V={},ut,B,At,pt;;){if(M=g[g.length-1],this.defaultActions[M]?I=this.defaultActions[M]:(L??(L=Lt()),I=Q[M]&&Q[M][L]),I===void 0||!I.length||!I[0]){var vt="";for(ut in pt=[],Q[M])this.terminals_[ut]&&ut>ht&&pt.push("'"+this.terminals_[ut]+"'");vt=k.showPosition?"Parse error on line "+(z+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":"Parse error on line "+(z+1)+": Unexpected "+(L==dt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(vt,{text:k.match,token:this.terminals_[L]||L,line:k.yylineno,loc:_t,expected:pt})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+M+", token: "+L);switch(I[0]){case 1:g.push(L),b.push(k.yytext),r.push(k.yylloc),g.push(I[1]),L=null,bt?(L=bt,bt=null):(X=k.yyleng,l=k.yytext,z=k.yylineno,_t=k.yylloc,Z>0&&Z--);break;case 2:if(B=this.productions_[I[1]][1],V.$=b[b.length-B],V._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Qt&&(V._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),Tt=this.performAction.apply(V,[l,X,z,W.yy,I[1],b,r].concat(qt)),Tt!==void 0)return Tt;B&&(g=g.slice(0,-1*B*2),b=b.slice(0,-1*B),r=r.slice(0,-1*B)),g.push(this.productions_[I[1]][0]),b.push(V.$),r.push(V._$),At=Q[g[g.length-2]][g[g.length-1]],g.push(At);break;case 3:return!0}}return!0},"parse")};mt.lexer=(function(){return{EOF:1,parseError:u(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw Error(a)},"parseError"),setInput:u(function(a,h){return this.yy=h||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:u(function(a){var h=a.length,g=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===S.length?this.yylloc.first_column:0)+S[S.length-g.length].length-g[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(a){this.unput(this.match.slice(a))},"less"),pastInput:u(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var a=this.pastInput(),h=Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as e}from"./src-
|
|
1
|
+
import{u as e}from"./src-lcGySDV2.js";import{n as m}from"./src-faGJHwXX.js";import{b as s}from"./chunk-ABZYJK2D-B1_MYIJC.js";var a=m(t=>{var r;let{securityLevel:n}=s(),o=e("body");return n==="sandbox"&&(o=e((((r=e(`#i${t}`).node())==null?void 0:r.contentDocument)??document).body)),o.select(`#${t}`)},"selectSvgElement");export{a as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as R}from"./marked.esm-
|
|
1
|
+
import{n as R}from"./marked.esm-CHnOtnr3.js";import{u as S}from"./src-lcGySDV2.js";import{a as nt}from"./chunk-S3R3BYOJ-CAG3u58l.js";import{n as f,r as y}from"./src-faGJHwXX.js";import{I as j,N as rt,O as W,s as it,y as L}from"./chunk-ABZYJK2D-B1_MYIJC.js";var lt=Object.freeze({left:0,top:0,width:16,height:16}),x=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...lt,...x}),ot=Object.freeze({...z,body:"",hidden:!1}),at=Object.freeze({width:null,height:null}),st=Object.freeze({...at,...x}),pt=(t,r,n,i="")=>{let e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;i=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){let l=e.pop(),p=e.pop(),s={provider:e.length>0?e[0]:i,prefix:p,name:l};return r&&!$(s)?null:s}let a=e[0],o=a.split("-");if(o.length>1){let l={provider:i,prefix:o.shift(),name:o.join("-")};return r&&!$(l)?null:l}if(n&&i===""){let l={provider:i,prefix:"",name:a};return r&&!$(l,n)?null:l}return null},$=(t,r)=>t?!!((r&&t.prefix===""||t.prefix)&&t.name):!1;function ct(t,r){let n={};!t.hFlip!=!r.hFlip&&(n.hFlip=!0),!t.vFlip!=!r.vFlip&&(n.vFlip=!0);let i=((t.rotate||0)+(r.rotate||0))%4;return i&&(n.rotate=i),n}function A(t,r){let n=ct(t,r);for(let i in ot)i in x?i in t&&!(i in n)&&(n[i]=x[i]):i in r?n[i]=r[i]:i in t&&(n[i]=t[i]);return n}function ft(t,r){let n=t.icons,i=t.aliases||Object.create(null),e=Object.create(null);function a(o){if(n[o])return e[o]=[];if(!(o in e)){e[o]=null;let l=i[o]&&i[o].parent,p=l&&a(l);p&&(e[o]=[l].concat(p))}return e[o]}return(r||Object.keys(n).concat(Object.keys(i))).forEach(a),e}function C(t,r,n){let i=t.icons,e=t.aliases||Object.create(null),a={};function o(l){a=A(i[l]||e[l],a)}return o(r),n.forEach(o),A(t,a)}function ht(t,r){if(t.icons[r])return C(t,r,[]);let n=ft(t,[r])[r];return n?C(t,r,n):null}var ut=/(-?[0-9.]*[0-9]+[0-9.]*)/g,gt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function N(t,r,n){if(r===1)return t;if(n||(n=100),typeof t=="number")return Math.ceil(t*r*n)/n;if(typeof t!="string")return t;let i=t.split(ut);if(i===null||!i.length)return t;let e=[],a=i.shift(),o=gt.test(a);for(;;){if(o){let l=parseFloat(a);isNaN(l)?e.push(a):e.push(Math.ceil(l*r*n)/n)}else e.push(a);if(a=i.shift(),a===void 0)return e.join("");o=!o}}function dt(t,r="defs"){let n="",i=t.indexOf("<"+r);for(;i>=0;){let e=t.indexOf(">",i),a=t.indexOf("</"+r);if(e===-1||a===-1)break;let o=t.indexOf(">",a);if(o===-1)break;n+=t.slice(e+1,a).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:n,content:t}}function mt(t,r){return t?"<defs>"+t+"</defs>"+r:r}function yt(t,r,n){let i=dt(t);return mt(i.defs,r+i.content+n)}var wt=t=>t==="unset"||t==="undefined"||t==="none";function xt(t,r){let n={...z,...t},i={...st,...r},e={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,i].forEach(w=>{let u=[],et=w.hFlip,B=w.vFlip,m=w.rotate;et?B?m+=2:(u.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),u.push("scale(-1 1)"),e.top=e.left=0):B&&(u.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),u.push("scale(1 -1)"),e.top=e.left=0);let d;switch(m<0&&(m-=Math.floor(m/4)*4),m%=4,m){case 1:d=e.height/2+e.top,u.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:u.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:d=e.width/2+e.left,u.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}m%2==1&&(e.left!==e.top&&(d=e.left,e.left=e.top,e.top=d),e.width!==e.height&&(d=e.width,e.width=e.height,e.height=d)),u.length&&(a=yt(a,'<g transform="'+u.join(" ")+'">',"</g>"))});let o=i.width,l=i.height,p=e.width,s=e.height,c,h;o===null?(h=l===null?"1em":l==="auto"?s:l,c=N(h,p/s)):(c=o==="auto"?p:o,h=l===null?N(c,s/p):l==="auto"?s:l);let g={},I=(w,u)=>{wt(u)||(g[w]=u.toString())};I("width",c),I("height",h);let M=[e.left,e.top,p,s];return g.viewBox=M.join(" "),{attributes:g,viewBox:M,body:a}}var bt=/\sid="(\S+)"/g,kt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),vt=0;function St(t,r=kt){let n=[],i;for(;i=bt.exec(t);)n.push(i[1]);if(!n.length)return t;let e="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{let o=typeof r=="function"?r(a):r+(vt++).toString(),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+e+"$3")}),t=t.replace(new RegExp(e,"g"),""),t}function jt(t,r){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in r)n+=" "+i+'="'+r[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function D(t){var r=[...arguments].slice(1),n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,l){var p=l.match(/\n([\t ]+|(?!\s).)/g);return p?o.concat(p.map(function(s){var c;return((c=s.match(/[\t ]/g))==null?void 0:c.length)??0})):o},[]);if(i.length){var e=RegExp(`
|
|
2
2
|
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(e,`
|
|
3
3
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return r.forEach(function(o,l){var p=a.match(/(?:^|\n)( *)$/),s=p?p[1]:"",c=o;typeof o=="string"&&o.includes(`
|
|
4
4
|
`)&&(c=String(o).split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Q}from"./src-Bp_72rVO.js";import{a as we,p as el,r as Be,u as U}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as w,r as V}from"./src-faGJHwXX.js";import{A as ut,I as Ge,L as pt,N as tl,O as yt,b as Z,d as al,h as Y,s as ll,y as Se}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as ft}from"./chunk-CVBHYZKI-B6tT645I.js";import{a as N,i as R,r as rl,t as Ae}from"./chunk-ATLVNIR6-DsKp3Ify.js";import{n as pe,r as Le}from"./chunk-JA3XYJ7Z-BlmyoDCa.js";function Ze(r,e,l){if(r&&r.length){let[n,a]=e,s=Math.PI/180*l,d=Math.cos(s),t=Math.sin(s);for(let o of r){let[i,h]=o;o[0]=(i-n)*d-(h-a)*t+n,o[1]=(i-n)*t+(h-a)*d+a}}}function sl(r,e){return r[0]===e[0]&&r[1]===e[1]}function il(r,e,l,n=1){let a=l,s=Math.max(e,.1),d=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,t=[0,0];if(a)for(let i of d)Ze(i,t,a);let o=(function(i,h,c){let g=[];for(let x of i){let b=[...x];sl(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&g.push(b)}let u=[];h=Math.max(h,.1);let p=[];for(let x of g)for(let b=0;b<x.length-1;b++){let k=x[b],S=x[b+1];if(k[1]!==S[1]){let M=Math.min(k[1],S[1]);p.push({ymin:M,ymax:Math.max(k[1],S[1]),x:M===k[1]?k[0]:S[0],islope:(S[0]-k[0])/(S[1]-k[1])})}}if(p.sort(((x,b)=>x.ymin<b.ymin?-1:x.ymin>b.ymin?1:x.x<b.x?-1:x.x>b.x?1:x.ymax===b.ymax?0:(x.ymax-b.ymax)/Math.abs(x.ymax-b.ymax))),!p.length)return u;let y=[],m=p[0].ymin,f=0;for(;y.length||p.length;){if(p.length){let x=-1;for(let b=0;b<p.length&&!(p[b].ymin>m);b++)x=b;p.splice(0,x+1).forEach((b=>{y.push({s:m,edge:b})}))}if(y=y.filter((x=>!(x.edge.ymax<=m))),y.sort(((x,b)=>x.edge.x===b.edge.x?0:(x.edge.x-b.edge.x)/Math.abs(x.edge.x-b.edge.x))),(c!==1||f%h==0)&&y.length>1)for(let x=0;x<y.length;x+=2){let b=x+1;if(b>=y.length)break;let k=y[x].edge,S=y[b].edge;u.push([[Math.round(k.x),m],[Math.round(S.x),m]])}m+=c,y.forEach((x=>{x.edge.x=x.edge.x+c*x.edge.islope})),f++}return u})(d,s,n);if(a){for(let i of d)Ze(i,t,-a);(function(i,h,c){let g=[];i.forEach((u=>g.push(...u))),Ze(g,h,c)})(o,t,-a)}return o}function ke(r,e){var s;let l=e.hachureAngle+90,n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return e.roughness>=1&&(((s=e.randomizer)==null?void 0:s.next())||Math.random())>.7&&(a=n),il(r,n,l,a||1)}var Xe=class{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let l=ke(r,e);return{type:"fillSketch",ops:this.renderLines(l,e)}}renderLines(r,e){let l=[];for(let n of r)l.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return l}};function Ne(r){let e=r[0],l=r[1];return Math.sqrt((e[0]-l[0])**2+(e[1]-l[1])**2)}var nl=class extends Xe{fillPolygons(r,e){let l=e.hachureGap;l<0&&(l=4*e.strokeWidth),l=Math.max(l,.1);let n=ke(r,Object.assign({},e,{hachureGap:l})),a=Math.PI/180*e.hachureAngle,s=[],d=.5*l*Math.cos(a),t=.5*l*Math.sin(a);for(let[o,i]of n)Ne([o,i])&&s.push([[o[0]-d,o[1]+t],[...i]],[[o[0]+d,o[1]-t],[...i]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}},hl=class extends Xe{fillPolygons(r,e){let l=this._fillPolygons(r,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(r,n);return l.ops=l.ops.concat(a.ops),l}},ol=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=ke(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(l,e)}dotsOnLines(r,e){let l=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);let s=n/4;for(let d of r){let t=Ne(d),o=t/n,i=Math.ceil(o)-1,h=t-i*n,c=(d[0][0]+d[1][0])/2-n/4,g=Math.min(d[0][1],d[1][1]);for(let u=0;u<i;u++){let p=g+h+u*n,y=c-s+2*Math.random()*s,m=p-s+2*Math.random()*s,f=this.helper.ellipse(y,m,a,a,e);l.push(...f.ops)}}return{type:"fillSketch",ops:l}}},dl=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=ke(r,e);return{type:"fillSketch",ops:this.dashedLine(l,e)}}dashedLine(r,e){let l=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,a=[];return r.forEach((s=>{let d=Ne(s),t=Math.floor(d/(l+n)),o=(d+n-t*(l+n))/2,i=s[0],h=s[1];i[0]>h[0]&&(i=s[1],h=s[0]);let c=Math.atan((h[1]-i[1])/(h[0]-i[0]));for(let g=0;g<t;g++){let u=g*(l+n),p=u+l,y=[i[0]+u*Math.cos(c)+o*Math.cos(c),i[1]+u*Math.sin(c)+o*Math.sin(c)],m=[i[0]+p*Math.cos(c)+o*Math.cos(c),i[1]+p*Math.sin(c)+o*Math.sin(c)];a.push(...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],e))}})),a}},cl=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?l:e.zigzagOffset,a=ke(r,e=Object.assign({},e,{hachureGap:l+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(r,e,l){let n=[];return r.forEach((a=>{let s=Ne(a),d=Math.round(s/(2*e)),t=a[0],o=a[1];t[0]>o[0]&&(t=a[1],o=a[0]);let i=Math.atan((o[1]-t[1])/(o[0]-t[0]));for(let h=0;h<d;h++){let c=2*h*e,g=2*(h+1)*e,u=Math.sqrt(2*e**2),p=[t[0]+c*Math.cos(i),t[1]+c*Math.sin(i)],y=[t[0]+g*Math.cos(i),t[1]+g*Math.sin(i)],m=[p[0]+u*Math.cos(i+Math.PI/4),p[1]+u*Math.sin(i+Math.PI/4)];n.push(...this.helper.doubleLineOps(p[0],p[1],m[0],m[1],l),...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],l))}})),n}},K={},gl=class{constructor(r){this.seed=r}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},ul=0,Qe=1,mt=2,Te={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Je(r,e){return r.type===e}function Ye(r){let e=[],l=(function(d){let t=[];for(;d!=="";)if(d.match(/^([ \t\r\n,]+)/))d=d.substr(RegExp.$1.length);else if(d.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:ul,text:RegExp.$1},d=d.substr(RegExp.$1.length);else{if(!d.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:Qe,text:`${parseFloat(RegExp.$1)}`},d=d.substr(RegExp.$1.length)}return t[t.length]={type:mt,text:""},t})(r),n="BOD",a=0,s=l[a];for(;!Je(s,mt);){let d=0,t=[];if(n==="BOD"){if(s.text!=="M"&&s.text!=="m")return Ye("M0,0"+r);a++,d=Te[s.text],n=s.text}else Je(s,Qe)?d=Te[n]:(a++,d=Te[s.text],n=s.text);if(!(a+d<l.length))throw Error("Path data ended short");for(let o=a;o<a+d;o++){let i=l[o];if(!Je(i,Qe))throw Error("Param not a number: "+n+","+i.text);t[t.length]=+i.text}if(typeof Te[n]!="number")throw Error("Bad segment: "+n);{let o={key:n,data:t};e.push(o),a+=d,s=l[a],n==="M"&&(n="L"),n==="m"&&(n="l")}}return e}function xt(r){let e=0,l=0,n=0,a=0,s=[];for(let{key:d,data:t}of r)switch(d){case"M":s.push({key:"M",data:[...t]}),[e,l]=t,[n,a]=t;break;case"m":e+=t[0],l+=t[1],s.push({key:"M",data:[e,l]}),n=e,a=l;break;case"L":s.push({key:"L",data:[...t]}),[e,l]=t;break;case"l":e+=t[0],l+=t[1],s.push({key:"L",data:[e,l]});break;case"C":s.push({key:"C",data:[...t]}),e=t[4],l=t[5];break;case"c":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"C",data:o}),e=o[4],l=o[5];break}case"Q":s.push({key:"Q",data:[...t]}),e=t[2],l=t[3];break;case"q":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"Q",data:o}),e=o[2],l=o[3];break}case"A":s.push({key:"A",data:[...t]}),e=t[5],l=t[6];break;case"a":e+=t[5],l+=t[6],s.push({key:"A",data:[t[0],t[1],t[2],t[3],t[4],e,l]});break;case"H":s.push({key:"H",data:[...t]}),e=t[0];break;case"h":e+=t[0],s.push({key:"H",data:[e]});break;case"V":s.push({key:"V",data:[...t]}),l=t[0];break;case"v":l+=t[0],s.push({key:"V",data:[l]});break;case"S":s.push({key:"S",data:[...t]}),e=t[2],l=t[3];break;case"s":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"S",data:o}),e=o[2],l=o[3];break}case"T":s.push({key:"T",data:[...t]}),e=t[0],l=t[1];break;case"t":e+=t[0],l+=t[1],s.push({key:"T",data:[e,l]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=n,l=a}return s}function bt(r){let e=[],l="",n=0,a=0,s=0,d=0,t=0,o=0;for(let{key:i,data:h}of r){switch(i){case"M":e.push({key:"M",data:[...h]}),[n,a]=h,[s,d]=h;break;case"C":e.push({key:"C",data:[...h]}),n=h[4],a=h[5],t=h[2],o=h[3];break;case"L":e.push({key:"L",data:[...h]}),[n,a]=h;break;case"H":n=h[0],e.push({key:"L",data:[n,a]});break;case"V":a=h[0],e.push({key:"L",data:[n,a]});break;case"S":{let c=0,g=0;l==="C"||l==="S"?(c=n+(n-t),g=a+(a-o)):(c=n,g=a),e.push({key:"C",data:[c,g,...h]}),t=h[0],o=h[1],n=h[2],a=h[3];break}case"T":{let[c,g]=h,u=0,p=0;l==="Q"||l==="T"?(u=n+(n-t),p=a+(a-o)):(u=n,p=a);let y=n+2*(u-n)/3,m=a+2*(p-a)/3,f=c+2*(u-c)/3,x=g+2*(p-g)/3;e.push({key:"C",data:[y,m,f,x,c,g]}),t=u,o=p,n=c,a=g;break}case"Q":{let[c,g,u,p]=h,y=n+2*(c-n)/3,m=a+2*(g-a)/3,f=u+2*(c-u)/3,x=p+2*(g-p)/3;e.push({key:"C",data:[y,m,f,x,u,p]}),t=c,o=g,n=u,a=p;break}case"A":{let c=Math.abs(h[0]),g=Math.abs(h[1]),u=h[2],p=h[3],y=h[4],m=h[5],f=h[6];c===0||g===0?(e.push({key:"C",data:[n,a,m,f,m,f]}),n=m,a=f):(n!==m||a!==f)&&(wt(n,a,m,f,c,g,u,p,y).forEach((function(x){e.push({key:"C",data:x})})),n=m,a=f);break}case"Z":e.push({key:"Z",data:[]}),n=s,a=d}l=i}return e}function $e(r,e,l){return[r*Math.cos(l)-e*Math.sin(l),r*Math.sin(l)+e*Math.cos(l)]}function wt(r,e,l,n,a,s,d,t,o,i){let h=(c=d,Math.PI*c/180);var c;let g=[],u=0,p=0,y=0,m=0;if(i)[u,p,y,m]=i;else{[r,e]=$e(r,e,-h),[l,n]=$e(l,n,-h);let v=(r-l)/2,$=(e-n)/2,D=v*v/(a*a)+$*$/(s*s);D>1&&(D=Math.sqrt(D),a*=D,s*=D);let O=a*a,W=s*s,X=O*W-O*$*$-W*v*v,te=O*$*$+W*v*v,he=(t===o?-1:1)*Math.sqrt(Math.abs(X/te));y=he*a*$/s+(r+l)/2,m=he*-s*v/a+(e+n)/2,u=Math.asin(parseFloat(((e-m)/s).toFixed(9))),p=Math.asin(parseFloat(((n-m)/s).toFixed(9))),r<y&&(u=Math.PI-u),l<y&&(p=Math.PI-p),u<0&&(u=2*Math.PI+u),p<0&&(p=2*Math.PI+p),o&&u>p&&(u-=2*Math.PI),!o&&p>u&&(p-=2*Math.PI)}let f=p-u;if(Math.abs(f)>120*Math.PI/180){let v=p,$=l,D=n;p=o&&p>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,g=wt(l=y+a*Math.cos(p),n=m+s*Math.sin(p),$,D,a,s,d,0,o,[p,v,y,m])}f=p-u;let x=Math.cos(u),b=Math.sin(u),k=Math.cos(p),S=Math.sin(p),M=Math.tan(f/4),C=4/3*a*M,P=4/3*s*M,_=[r,e],E=[r+C*b,e-P*x],I=[l+C*S,n-P*k],L=[l,n];if(E[0]=2*_[0]-E[0],E[1]=2*_[1]-E[1],i)return[E,I,L].concat(g);{g=[E,I,L].concat(g);let v=[];for(let $=0;$<g.length;$+=3){let D=$e(g[$][0],g[$][1],h),O=$e(g[$+1][0],g[$+1][1],h),W=$e(g[$+2][0],g[$+2][1],h);v.push([D[0],D[1],O[0],O[1],W[0],W[1]])}return v}}var pl={randOffset:function(r,e){return H(r,e)},randOffsetWithRange:function(r,e,l){return _e(r,e,l)},ellipse:function(r,e,l,n,a){return Ue(r,e,a,$t(l,n,a)).opset},doubleLineOps:function(r,e,l,n,a){return de(r,e,l,n,a,!0)}};function St(r,e,l,n,a){return{type:"path",ops:de(r,e,l,n,a)}}function Re(r,e,l){let n=(r||[]).length;if(n>2){let a=[];for(let s=0;s<n-1;s++)a.push(...de(r[s][0],r[s][1],r[s+1][0],r[s+1][1],l));return e&&a.push(...de(r[n-1][0],r[n-1][1],r[0][0],r[0][1],l)),{type:"path",ops:a}}return n===2?St(r[0][0],r[0][1],r[1][0],r[1][1],l):{type:"path",ops:[]}}function yl(r,e,l,n,a){return(function(s,d){return Re(s,!0,d)})([[r,e],[r+l,e],[r+l,e+n],[r,e+n]],a)}function kt(r,e){if(r.length){let l=typeof r[0][0]=="number"?[r]:r,n=Oe(l[0],1*(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:Oe(l[0],1.5*(1+.22*e.roughness),Dt(e));for(let s=1;s<l.length;s++){let d=l[s];if(d.length){let t=Oe(d,1*(1+.2*e.roughness),e),o=e.disableMultiStroke?[]:Oe(d,1.5*(1+.22*e.roughness),Dt(e));for(let i of t)i.op!=="move"&&n.push(i);for(let i of o)i.op!=="move"&&a.push(i)}}return{type:"path",ops:n.concat(a)}}return{type:"path",ops:[]}}function $t(r,e,l){let n=Math.sqrt(2*Math.PI*Math.sqrt(((r/2)**2+(e/2)**2)/2)),a=Math.ceil(Math.max(l.curveStepCount,l.curveStepCount/Math.sqrt(200)*n)),s=2*Math.PI/a,d=Math.abs(r/2),t=Math.abs(e/2),o=1-l.curveFitting;return d+=H(d*o,l),t+=H(t*o,l),{increment:s,rx:d,ry:t}}function Ue(r,e,l,n){let[a,s]=Pt(n.increment,r,e,n.rx,n.ry,1,n.increment*_e(.1,_e(.4,1,l),l),l),d=Ie(a,null,l);if(!l.disableMultiStroke&&l.roughness!==0){let[t]=Pt(n.increment,r,e,n.rx,n.ry,1.5,0,l),o=Ie(t,null,l);d=d.concat(o)}return{estimatedPoints:s,opset:{type:"path",ops:d}}}function Mt(r,e,l,n,a,s,d,t,o){let i=r,h=e,c=Math.abs(l/2),g=Math.abs(n/2);c+=H(.01*c,o),g+=H(.01*g,o);let u=a,p=s;for(;u<0;)u+=2*Math.PI,p+=2*Math.PI;p-u>2*Math.PI&&(u=0,p=2*Math.PI);let y=2*Math.PI/o.curveStepCount,m=Math.min(y/2,(p-u)/2),f=Bt(m,i,h,c,g,u,p,1,o);if(!o.disableMultiStroke){let x=Bt(m,i,h,c,g,u,p,1.5,o);f.push(...x)}return d&&(t?f.push(...de(i,h,i+c*Math.cos(u),h+g*Math.sin(u),o),...de(i,h,i+c*Math.cos(p),h+g*Math.sin(p),o)):f.push({op:"lineTo",data:[i,h]},{op:"lineTo",data:[i+c*Math.cos(u),h+g*Math.sin(u)]})),{type:"path",ops:f}}function vt(r,e){let l=bt(xt(Ye(r))),n=[],a=[0,0],s=[0,0];for(let{key:d,data:t}of l)switch(d){case"M":s=[t[0],t[1]],a=[t[0],t[1]];break;case"L":n.push(...de(s[0],s[1],t[0],t[1],e)),s=[t[0],t[1]];break;case"C":{let[o,i,h,c,g,u]=t;n.push(...fl(o,i,h,c,g,u,s,e)),s=[g,u];break}case"Z":n.push(...de(s[0],s[1],a[0],a[1],e)),s=[a[0],a[1]]}return{type:"path",ops:n}}function Ke(r,e){let l=[];for(let n of r)if(n.length){let a=e.maxRandomnessOffset||0,s=n.length;if(s>2){l.push({op:"move",data:[n[0][0]+H(a,e),n[0][1]+H(a,e)]});for(let d=1;d<s;d++)l.push({op:"lineTo",data:[n[d][0]+H(a,e),n[d][1]+H(a,e)]})}}return{type:"fillPath",ops:l}}function fe(r,e){return(function(l,n){let a=l.fillStyle||"hachure";if(!K[a])switch(a){case"zigzag":K[a]||(K[a]=new nl(n));break;case"cross-hatch":K[a]||(K[a]=new hl(n));break;case"dots":K[a]||(K[a]=new ol(n));break;case"dashed":K[a]||(K[a]=new dl(n));break;case"zigzag-line":K[a]||(K[a]=new cl(n));break;default:a="hachure",K[a]||(K[a]=new Xe(n))}return K[a]})(e,pl).fillPolygons(r,e)}function Dt(r){let e=Object.assign({},r);return e.randomizer=void 0,r.seed&&(e.seed=r.seed+1),e}function Ct(r){return r.randomizer||(r.randomizer=new gl(r.seed||0)),r.randomizer.next()}function _e(r,e,l,n=1){return l.roughness*n*(Ct(l)*(e-r)+r)}function H(r,e,l=1){return _e(-r,r,e,l)}function de(r,e,l,n,a,s=!1){let d=s?a.disableMultiStrokeFill:a.disableMultiStroke,t=et(r,e,l,n,a,!0,!1);if(d)return t;let o=et(r,e,l,n,a,!0,!0);return t.concat(o)}function et(r,e,l,n,a,s,d){let t=(r-l)**2+(e-n)**2,o=Math.sqrt(t),i=1;i=o<200?1:o>500?.4:-.0016668*o+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>t&&(h=o/10);let c=h/2,g=.2+.2*Ct(a),u=a.bowing*a.maxRandomnessOffset*(n-e)/200,p=a.bowing*a.maxRandomnessOffset*(r-l)/200;u=H(u,a,i),p=H(p,a,i);let y=[],m=()=>H(c,a,i),f=()=>H(h,a,i),x=a.preserveVertices;return s&&(d?y.push({op:"move",data:[r+(x?0:m()),e+(x?0:m())]}):y.push({op:"move",data:[r+(x?0:H(h,a,i)),e+(x?0:H(h,a,i))]})),d?y.push({op:"bcurveTo",data:[u+r+(l-r)*g+m(),p+e+(n-e)*g+m(),u+r+2*(l-r)*g+m(),p+e+2*(n-e)*g+m(),l+(x?0:m()),n+(x?0:m())]}):y.push({op:"bcurveTo",data:[u+r+(l-r)*g+f(),p+e+(n-e)*g+f(),u+r+2*(l-r)*g+f(),p+e+2*(n-e)*g+f(),l+(x?0:f()),n+(x?0:f())]}),y}function Oe(r,e,l){if(!r.length)return[];let n=[];n.push([r[0][0]+H(e,l),r[0][1]+H(e,l)]),n.push([r[0][0]+H(e,l),r[0][1]+H(e,l)]);for(let a=1;a<r.length;a++)n.push([r[a][0]+H(e,l),r[a][1]+H(e,l)]),a===r.length-1&&n.push([r[a][0]+H(e,l),r[a][1]+H(e,l)]);return Ie(n,null,l)}function Ie(r,e,l){let n=r.length,a=[];if(n>3){let s=[],d=1-l.curveTightness;a.push({op:"move",data:[r[1][0],r[1][1]]});for(let t=1;t+2<n;t++){let o=r[t];s[0]=[o[0],o[1]],s[1]=[o[0]+(d*r[t+1][0]-d*r[t-1][0])/6,o[1]+(d*r[t+1][1]-d*r[t-1][1])/6],s[2]=[r[t+1][0]+(d*r[t][0]-d*r[t+2][0])/6,r[t+1][1]+(d*r[t][1]-d*r[t+2][1])/6],s[3]=[r[t+1][0],r[t+1][1]],a.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}if(e&&e.length===2){let t=l.maxRandomnessOffset;a.push({op:"lineTo",data:[e[0]+H(t,l),e[1]+H(t,l)]})}}else n===3?(a.push({op:"move",data:[r[1][0],r[1][1]]}),a.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):n===2&&a.push(...et(r[0][0],r[0][1],r[1][0],r[1][1],l,!0,!0));return a}function Pt(r,e,l,n,a,s,d,t){let o=[],i=[];if(t.roughness===0){r/=4,i.push([e+n*Math.cos(-r),l+a*Math.sin(-r)]);for(let h=0;h<=2*Math.PI;h+=r){let c=[e+n*Math.cos(h),l+a*Math.sin(h)];o.push(c),i.push(c)}i.push([e+n*Math.cos(0),l+a*Math.sin(0)]),i.push([e+n*Math.cos(r),l+a*Math.sin(r)])}else{let h=H(.5,t)-Math.PI/2;i.push([H(s,t)+e+.9*n*Math.cos(h-r),H(s,t)+l+.9*a*Math.sin(h-r)]);let c=2*Math.PI+h-.01;for(let g=h;g<c;g+=r){let u=[H(s,t)+e+n*Math.cos(g),H(s,t)+l+a*Math.sin(g)];o.push(u),i.push(u)}i.push([H(s,t)+e+n*Math.cos(h+2*Math.PI+.5*d),H(s,t)+l+a*Math.sin(h+2*Math.PI+.5*d)]),i.push([H(s,t)+e+.98*n*Math.cos(h+d),H(s,t)+l+.98*a*Math.sin(h+d)]),i.push([H(s,t)+e+.9*n*Math.cos(h+.5*d),H(s,t)+l+.9*a*Math.sin(h+.5*d)])}return[i,o]}function Bt(r,e,l,n,a,s,d,t,o){let i=s+H(.1,o),h=[];h.push([H(t,o)+e+.9*n*Math.cos(i-r),H(t,o)+l+.9*a*Math.sin(i-r)]);for(let c=i;c<=d;c+=r)h.push([H(t,o)+e+n*Math.cos(c),H(t,o)+l+a*Math.sin(c)]);return h.push([e+n*Math.cos(d),l+a*Math.sin(d)]),h.push([e+n*Math.cos(d),l+a*Math.sin(d)]),Ie(h,null,o)}function fl(r,e,l,n,a,s,d,t){let o=[],i=[t.maxRandomnessOffset||1,(t.maxRandomnessOffset||1)+.3],h=[0,0],c=t.disableMultiStroke?1:2,g=t.preserveVertices;for(let u=0;u<c;u++)u===0?o.push({op:"move",data:[d[0],d[1]]}):o.push({op:"move",data:[d[0]+(g?0:H(i[0],t)),d[1]+(g?0:H(i[0],t))]}),h=g?[a,s]:[a+H(i[u],t),s+H(i[u],t)],o.push({op:"bcurveTo",data:[r+H(i[u],t),e+H(i[u],t),l+H(i[u],t),n+H(i[u],t),h[0],h[1]]});return o}function Me(r){return[...r]}function At(r,e=0){let l=r.length;if(l<3)throw Error("A curve must have at least three points.");let n=[];if(l===3)n.push(Me(r[0]),Me(r[1]),Me(r[2]),Me(r[2]));else{let a=[];a.push(r[0],r[0]);for(let t=1;t<r.length;t++)a.push(r[t]),t===r.length-1&&a.push(r[t]);let s=[],d=1-e;n.push(Me(a[0]));for(let t=1;t+2<a.length;t++){let o=a[t];s[0]=[o[0],o[1]],s[1]=[o[0]+(d*a[t+1][0]-d*a[t-1][0])/6,o[1]+(d*a[t+1][1]-d*a[t-1][1])/6],s[2]=[a[t+1][0]+(d*a[t][0]-d*a[t+2][0])/6,a[t+1][1]+(d*a[t][1]-d*a[t+2][1])/6],s[3]=[a[t+1][0],a[t+1][1]],n.push(s[1],s[2],s[3])}}return n}function Ee(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2}function ml(r,e,l){let n=Ee(e,l);if(n===0)return Ee(r,e);let a=((r[0]-e[0])*(l[0]-e[0])+(r[1]-e[1])*(l[1]-e[1]))/n;return a=Math.max(0,Math.min(1,a)),Ee(r,ye(e,l,a))}function ye(r,e,l){return[r[0]+(e[0]-r[0])*l,r[1]+(e[1]-r[1])*l]}function tt(r,e,l,n){let a=n||[];if((function(t,o){let i=t[o+0],h=t[o+1],c=t[o+2],g=t[o+3],u=3*h[0]-2*i[0]-g[0];u*=u;let p=3*h[1]-2*i[1]-g[1];p*=p;let y=3*c[0]-2*g[0]-i[0];y*=y;let m=3*c[1]-2*g[1]-i[1];return m*=m,u<y&&(u=y),p<m&&(p=m),u+p})(r,e)<l){let t=r[e+0];a.length?(s=a[a.length-1],d=t,Math.sqrt(Ee(s,d))>1&&a.push(t)):a.push(t),a.push(r[e+3])}else{let t=.5,o=r[e+0],i=r[e+1],h=r[e+2],c=r[e+3],g=ye(o,i,t),u=ye(i,h,t),p=ye(h,c,t),y=ye(g,u,t),m=ye(u,p,t),f=ye(y,m,t);tt([o,g,y,f],0,l,a),tt([f,m,p,c],0,l,a)}var s,d;return a}function xl(r,e){return We(r,0,r.length,e)}function We(r,e,l,n,a){let s=a||[],d=r[e],t=r[l-1],o=0,i=1;for(let h=e+1;h<l-1;++h){let c=ml(r[h],d,t);c>o&&(o=c,i=h)}return Math.sqrt(o)>n?(We(r,e,i+1,n,s),We(r,i,l,n,s)):(s.length||s.push(d),s.push(t)),s}function at(r,e=.15,l){let n=[],a=(r.length-1)/3;for(let s=0;s<a;s++)tt(r,3*s,e,n);return l&&l>0?We(n,0,n.length,l):n}var ee="none",je=class{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,l){return{shape:r,sets:e||[],options:l||this.defaultOptions}}line(r,e,l,n,a){let s=this._o(a);return this._d("line",[St(r,e,l,n,s)],s)}rectangle(r,e,l,n,a){let s=this._o(a),d=[],t=yl(r,e,l,n,s);if(s.fill){let o=[[r,e],[r+l,e],[r+l,e+n],[r,e+n]];s.fillStyle==="solid"?d.push(Ke([o],s)):d.push(fe([o],s))}return s.stroke!==ee&&d.push(t),this._d("rectangle",d,s)}ellipse(r,e,l,n,a){let s=this._o(a),d=[],t=$t(l,n,s),o=Ue(r,e,s,t);if(s.fill)if(s.fillStyle==="solid"){let i=Ue(r,e,s,t).opset;i.type="fillPath",d.push(i)}else d.push(fe([o.estimatedPoints],s));return s.stroke!==ee&&d.push(o.opset),this._d("ellipse",d,s)}circle(r,e,l,n){let a=this.ellipse(r,e,l,l,n);return a.shape="circle",a}linearPath(r,e){let l=this._o(e);return this._d("linearPath",[Re(r,!1,l)],l)}arc(r,e,l,n,a,s,d=!1,t){let o=this._o(t),i=[],h=Mt(r,e,l,n,a,s,d,!0,o);if(d&&o.fill)if(o.fillStyle==="solid"){let c=Object.assign({},o);c.disableMultiStroke=!0;let g=Mt(r,e,l,n,a,s,!0,!1,c);g.type="fillPath",i.push(g)}else i.push((function(c,g,u,p,y,m,f){let x=c,b=g,k=Math.abs(u/2),S=Math.abs(p/2);k+=H(.01*k,f),S+=H(.01*S,f);let M=y,C=m;for(;M<0;)M+=2*Math.PI,C+=2*Math.PI;C-M>2*Math.PI&&(M=0,C=2*Math.PI);let P=(C-M)/f.curveStepCount,_=[];for(let E=M;E<=C;E+=P)_.push([x+k*Math.cos(E),b+S*Math.sin(E)]);return _.push([x+k*Math.cos(C),b+S*Math.sin(C)]),_.push([x,b]),fe([_],f)})(r,e,l,n,a,s,o));return o.stroke!==ee&&i.push(h),this._d("arc",i,o)}curve(r,e){let l=this._o(e),n=[],a=kt(r,l);if(l.fill&&l.fill!==ee)if(l.fillStyle==="solid"){let s=kt(r,Object.assign(Object.assign({},l),{disableMultiStroke:!0,roughness:l.roughness?l.roughness+l.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],d=r;if(d.length){let t=typeof d[0][0]=="number"?[d]:d;for(let o of t)o.length<3?s.push(...o):o.length===3?s.push(...at(At([o[0],o[0],o[1],o[2]]),10,(1+l.roughness)/2)):s.push(...at(At(o),10,(1+l.roughness)/2))}s.length&&n.push(fe([s],l))}return l.stroke!==ee&&n.push(a),this._d("curve",n,l)}polygon(r,e){let l=this._o(e),n=[],a=Re(r,!0,l);return l.fill&&(l.fillStyle==="solid"?n.push(Ke([r],l)):n.push(fe([r],l))),l.stroke!==ee&&n.push(a),this._d("polygon",n,l)}path(r,e){let l=this._o(e),n=[];if(!r)return this._d("path",n,l);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=l.fill&&l.fill!=="transparent"&&l.fill!==ee,s=l.stroke!==ee,d=!!(l.simplification&&l.simplification<1),t=(function(i,h,c){let g=bt(xt(Ye(i))),u=[],p=[],y=[0,0],m=[],f=()=>{m.length>=4&&p.push(...at(m,h)),m=[]},x=()=>{f(),p.length&&(u.push(p),p=[])};for(let{key:k,data:S}of g)switch(k){case"M":x(),y=[S[0],S[1]],p.push(y);break;case"L":f(),p.push([S[0],S[1]]);break;case"C":if(!m.length){let M=p.length?p[p.length-1]:y;m.push([M[0],M[1]])}m.push([S[0],S[1]]),m.push([S[2],S[3]]),m.push([S[4],S[5]]);break;case"Z":f(),p.push([y[0],y[1]])}if(x(),!c)return u;let b=[];for(let k of u){let S=xl(k,c);S.length&&b.push(S)}return b})(r,1,d?4-4*(l.simplification||1):(1+l.roughness)/2),o=vt(r,l);if(a)if(l.fillStyle==="solid")if(t.length===1){let i=vt(r,Object.assign(Object.assign({},l),{disableMultiStroke:!0,roughness:l.roughness?l.roughness+l.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else n.push(Ke(t,l));else n.push(fe(t,l));return s&&(d?t.forEach((i=>{n.push(Re(i,!1,l))})):n.push(o)),this._d("path",n,l)}opsToPath(r,e){let l="";for(let n of r.ops){let a=typeof e=="number"&&e>=0?n.data.map((s=>+s.toFixed(e))):n.data;switch(n.op){case"move":l+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":l+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":l+=`L${a[0]} ${a[1]} `}}return l.trim()}toPaths(r){let e=r.sets||[],l=r.options||this.defaultOptions,n=[];for(let a of e){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:l.stroke,strokeWidth:l.strokeWidth,fill:ee};break;case"fillPath":s={d:this.opsToPath(a),stroke:ee,strokeWidth:0,fill:l.fill||ee};break;case"fillSketch":s=this.fillSketch(a,l)}s&&n.push(s)}return n}fillSketch(r,e){let l=e.fillWeight;return l<0&&(l=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||ee,strokeWidth:l,fill:ee}}_mergedShape(r){return r.filter(((e,l)=>l===0||e.op!=="move"))}},bl=class{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new je(e)}draw(r){let e=r.sets||[],l=r.options||this.getDefaultOptions(),n=this.ctx,a=r.options.fixedDecimalPlaceDigits;for(let s of e)switch(s.type){case"path":n.save(),n.strokeStyle=l.stroke==="none"?"transparent":l.stroke,n.lineWidth=l.strokeWidth,l.strokeLineDash&&n.setLineDash(l.strokeLineDash),l.strokeLineDashOffset&&(n.lineDashOffset=l.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=l.fill||"";let d=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,d),n.restore();break}case"fillSketch":this.fillSketch(n,s,l)}}fillSketch(r,e,l){let n=l.fillWeight;n<0&&(n=l.strokeWidth/2),r.save(),l.fillLineDash&&r.setLineDash(l.fillLineDash),l.fillLineDashOffset&&(r.lineDashOffset=l.fillLineDashOffset),r.strokeStyle=l.fill||"",r.lineWidth=n,this._drawToContext(r,e,l.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,l,n="nonzero"){r.beginPath();for(let a of e.ops){let s=typeof l=="number"&&l>=0?a.data.map((d=>+d.toFixed(l))):a.data;switch(a.op){case"move":r.moveTo(s[0],s[1]);break;case"bcurveTo":r.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":r.lineTo(s[0],s[1])}}e.type==="fillPath"?r.fill(n):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,l,n,a){let s=this.gen.line(r,e,l,n,a);return this.draw(s),s}rectangle(r,e,l,n,a){let s=this.gen.rectangle(r,e,l,n,a);return this.draw(s),s}ellipse(r,e,l,n,a){let s=this.gen.ellipse(r,e,l,n,a);return this.draw(s),s}circle(r,e,l,n){let a=this.gen.circle(r,e,l,n);return this.draw(a),a}linearPath(r,e){let l=this.gen.linearPath(r,e);return this.draw(l),l}polygon(r,e){let l=this.gen.polygon(r,e);return this.draw(l),l}arc(r,e,l,n,a,s,d=!1,t){let o=this.gen.arc(r,e,l,n,a,s,d,t);return this.draw(o),o}curve(r,e){let l=this.gen.curve(r,e);return this.draw(l),l}path(r,e){let l=this.gen.path(r,e);return this.draw(l),l}},He="http://www.w3.org/2000/svg",wl=class{constructor(r,e){this.svg=r,this.gen=new je(e)}draw(r){let e=r.sets||[],l=r.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(He,"g"),s=r.options.fixedDecimalPlaceDigits;for(let d of e){let t=null;switch(d.type){case"path":t=n.createElementNS(He,"path"),t.setAttribute("d",this.opsToPath(d,s)),t.setAttribute("stroke",l.stroke),t.setAttribute("stroke-width",l.strokeWidth+""),t.setAttribute("fill","none"),l.strokeLineDash&&t.setAttribute("stroke-dasharray",l.strokeLineDash.join(" ").trim()),l.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${l.strokeLineDashOffset}`);break;case"fillPath":t=n.createElementNS(He,"path"),t.setAttribute("d",this.opsToPath(d,s)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",l.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(n,d,l)}t&&a.appendChild(t)}return a}fillSketch(r,e,l){let n=l.fillWeight;n<0&&(n=l.strokeWidth/2);let a=r.createElementNS(He,"path");return a.setAttribute("d",this.opsToPath(e,l.fixedDecimalPlaceDigits)),a.setAttribute("stroke",l.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),l.fillLineDash&&a.setAttribute("stroke-dasharray",l.fillLineDash.join(" ").trim()),l.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${l.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,l,n,a){let s=this.gen.line(r,e,l,n,a);return this.draw(s)}rectangle(r,e,l,n,a){let s=this.gen.rectangle(r,e,l,n,a);return this.draw(s)}ellipse(r,e,l,n,a){let s=this.gen.ellipse(r,e,l,n,a);return this.draw(s)}circle(r,e,l,n){let a=this.gen.circle(r,e,l,n);return this.draw(a)}linearPath(r,e){let l=this.gen.linearPath(r,e);return this.draw(l)}polygon(r,e){let l=this.gen.polygon(r,e);return this.draw(l)}arc(r,e,l,n,a,s,d=!1,t){let o=this.gen.arc(r,e,l,n,a,s,d,t);return this.draw(o)}curve(r,e){let l=this.gen.curve(r,e);return this.draw(l)}path(r,e){let l=this.gen.path(r,e);return this.draw(l)}},A={canvas:(r,e)=>new bl(r,e),svg:(r,e)=>new wl(r,e),generator:r=>new je(r),newSeed:()=>je.newSeed()},z=w(async(r,e,l)=>{var c,g;let n,a=e.useHtmlLabels||Y((c=Z())==null?void 0:c.htmlLabels);n=l||"node default";let s=r.insert("g").attr("class",n).attr("id",e.domId||e.id),d=s.insert("g").attr("class","label").attr("style",U(e.labelStyle)),t;t=e.label===void 0?"":typeof e.label=="string"?e.label:e.label[0];let o=await pe(d,Ge(we(t),Z()),{useHtmlLabels:a,width:e.width||((g=Z().flowchart)==null?void 0:g.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),i=o.getBBox(),h=((e==null?void 0:e.padding)??0)/2;if(a){let u=o.children[0],p=Q(o),y=u.getElementsByTagName("img");if(y){let m=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(f=>new Promise(x=>{function b(){if(f.style.display="flex",f.style.flexDirection="column",m){let[k=al.fontSize]=el(Z().fontSize?Z().fontSize:window.getComputedStyle(document.body).fontSize),S=k*5+"px";f.style.minWidth=S,f.style.maxWidth=S}else f.style.width="100%";x(f)}w(b,"setupImage"),setTimeout(()=>{f.complete&&b()}),f.addEventListener("error",b),f.addEventListener("load",b)})))}i=u.getBoundingClientRect(),p.attr("width",i.width),p.attr("height",i.height)}return a?d.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):d.attr("transform","translate(0, "+-i.height/2+")"),e.centerLabel&&d.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:s,bbox:i,halfPadding:h,label:d}},"labelHelper"),lt=w(async(r,e,l)=>{var o,i,h,c,g,u;let n=l.useHtmlLabels||Y((i=(o=Z())==null?void 0:o.flowchart)==null?void 0:i.htmlLabels),a=r.insert("g").attr("class","label").attr("style",l.labelStyle||""),s=await pe(a,Ge(we(e),Z()),{useHtmlLabels:n,width:l.width||((c=(h=Z())==null?void 0:h.flowchart)==null?void 0:c.wrappingWidth),style:l.labelStyle,addSvgBackground:!!l.icon||!!l.img}),d=s.getBBox(),t=l.padding/2;if(Y((u=(g=Z())==null?void 0:g.flowchart)==null?void 0:u.htmlLabels)){let p=s.children[0],y=Q(s);d=p.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}return n?a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):a.attr("transform","translate(0, "+-d.height/2+")"),l.centerLabel&&a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:r,bbox:d,halfPadding:t,label:a}},"insertLabel"),T=w((r,e)=>{let l=e.node().getBBox();r.width=l.width,r.height=l.height},"updateNodeBounds"),j=w((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function q(r){let e=r.map((l,n)=>`${n===0?"M":"L"}${l.x},${l.y}`);return e.push("Z"),e.join(" ")}w(q,"createPathFromPoints");function ce(r,e,l,n,a,s){let d=[],t=l-r,o=n-e,i=t/s,h=2*Math.PI/i,c=e+o/2;for(let g=0;g<=50;g++){let u=r+g/50*t,p=c+a*Math.sin(h*(u-r));d.push({x:u,y:p})}return d}w(ce,"generateFullSineWavePoints");function ve(r,e,l,n,a,s){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;i<n;i++){let h=t+i*o,c=r+l*Math.cos(h),g=e+l*Math.sin(h);d.push({x:-c,y:-g})}return d}w(ve,"generateCirclePoints");var me=w((r,e)=>{var l=r.x,n=r.y,a=e.x-l,s=e.y-n,d=r.width/2,t=r.height/2,o,i;return Math.abs(s)*d>Math.abs(a)*t?(s<0&&(t=-t),o=s===0?0:t*a/s,i=t):(a<0&&(d=-d),o=d,i=a===0?0:d*s/a),{x:l+o,y:n+i}},"intersectRect");function Lt(r,e){e&&r.attr("style",e)}w(Lt,"applyStyle");async function Nt(r){let e=Q(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),l=e.append("xhtml:div"),n=Z(),a=r.label;r.label&&yt(r.label)&&(a=await tl(r.label.replace(ll.lineBreakRegex,`
|
|
1
|
+
import{u as Q}from"./src-lcGySDV2.js";import{a as we,p as el,r as Be,u as U}from"./chunk-S3R3BYOJ-CAG3u58l.js";import{n as w,r as V}from"./src-faGJHwXX.js";import{A as ut,I as Ge,L as pt,N as tl,O as yt,b as Z,d as al,h as Y,s as ll,y as Se}from"./chunk-ABZYJK2D-B1_MYIJC.js";import{t as ft}from"./chunk-CVBHYZKI-B6tT645I.js";import{a as N,i as R,r as rl,t as Ae}from"./chunk-ATLVNIR6-0QlrKyOY.js";import{n as pe,r as Le}from"./chunk-JA3XYJ7Z-DlG5XxD_.js";function Ze(r,e,l){if(r&&r.length){let[n,a]=e,s=Math.PI/180*l,d=Math.cos(s),t=Math.sin(s);for(let o of r){let[i,h]=o;o[0]=(i-n)*d-(h-a)*t+n,o[1]=(i-n)*t+(h-a)*d+a}}}function sl(r,e){return r[0]===e[0]&&r[1]===e[1]}function il(r,e,l,n=1){let a=l,s=Math.max(e,.1),d=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,t=[0,0];if(a)for(let i of d)Ze(i,t,a);let o=(function(i,h,c){let g=[];for(let x of i){let b=[...x];sl(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&g.push(b)}let u=[];h=Math.max(h,.1);let p=[];for(let x of g)for(let b=0;b<x.length-1;b++){let k=x[b],S=x[b+1];if(k[1]!==S[1]){let M=Math.min(k[1],S[1]);p.push({ymin:M,ymax:Math.max(k[1],S[1]),x:M===k[1]?k[0]:S[0],islope:(S[0]-k[0])/(S[1]-k[1])})}}if(p.sort(((x,b)=>x.ymin<b.ymin?-1:x.ymin>b.ymin?1:x.x<b.x?-1:x.x>b.x?1:x.ymax===b.ymax?0:(x.ymax-b.ymax)/Math.abs(x.ymax-b.ymax))),!p.length)return u;let y=[],m=p[0].ymin,f=0;for(;y.length||p.length;){if(p.length){let x=-1;for(let b=0;b<p.length&&!(p[b].ymin>m);b++)x=b;p.splice(0,x+1).forEach((b=>{y.push({s:m,edge:b})}))}if(y=y.filter((x=>!(x.edge.ymax<=m))),y.sort(((x,b)=>x.edge.x===b.edge.x?0:(x.edge.x-b.edge.x)/Math.abs(x.edge.x-b.edge.x))),(c!==1||f%h==0)&&y.length>1)for(let x=0;x<y.length;x+=2){let b=x+1;if(b>=y.length)break;let k=y[x].edge,S=y[b].edge;u.push([[Math.round(k.x),m],[Math.round(S.x),m]])}m+=c,y.forEach((x=>{x.edge.x=x.edge.x+c*x.edge.islope})),f++}return u})(d,s,n);if(a){for(let i of d)Ze(i,t,-a);(function(i,h,c){let g=[];i.forEach((u=>g.push(...u))),Ze(g,h,c)})(o,t,-a)}return o}function ke(r,e){var s;let l=e.hachureAngle+90,n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return e.roughness>=1&&(((s=e.randomizer)==null?void 0:s.next())||Math.random())>.7&&(a=n),il(r,n,l,a||1)}var Xe=class{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let l=ke(r,e);return{type:"fillSketch",ops:this.renderLines(l,e)}}renderLines(r,e){let l=[];for(let n of r)l.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return l}};function Ne(r){let e=r[0],l=r[1];return Math.sqrt((e[0]-l[0])**2+(e[1]-l[1])**2)}var nl=class extends Xe{fillPolygons(r,e){let l=e.hachureGap;l<0&&(l=4*e.strokeWidth),l=Math.max(l,.1);let n=ke(r,Object.assign({},e,{hachureGap:l})),a=Math.PI/180*e.hachureAngle,s=[],d=.5*l*Math.cos(a),t=.5*l*Math.sin(a);for(let[o,i]of n)Ne([o,i])&&s.push([[o[0]-d,o[1]+t],[...i]],[[o[0]+d,o[1]-t],[...i]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}},hl=class extends Xe{fillPolygons(r,e){let l=this._fillPolygons(r,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(r,n);return l.ops=l.ops.concat(a.ops),l}},ol=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=ke(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(l,e)}dotsOnLines(r,e){let l=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);let s=n/4;for(let d of r){let t=Ne(d),o=t/n,i=Math.ceil(o)-1,h=t-i*n,c=(d[0][0]+d[1][0])/2-n/4,g=Math.min(d[0][1],d[1][1]);for(let u=0;u<i;u++){let p=g+h+u*n,y=c-s+2*Math.random()*s,m=p-s+2*Math.random()*s,f=this.helper.ellipse(y,m,a,a,e);l.push(...f.ops)}}return{type:"fillSketch",ops:l}}},dl=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=ke(r,e);return{type:"fillSketch",ops:this.dashedLine(l,e)}}dashedLine(r,e){let l=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,a=[];return r.forEach((s=>{let d=Ne(s),t=Math.floor(d/(l+n)),o=(d+n-t*(l+n))/2,i=s[0],h=s[1];i[0]>h[0]&&(i=s[1],h=s[0]);let c=Math.atan((h[1]-i[1])/(h[0]-i[0]));for(let g=0;g<t;g++){let u=g*(l+n),p=u+l,y=[i[0]+u*Math.cos(c)+o*Math.cos(c),i[1]+u*Math.sin(c)+o*Math.sin(c)],m=[i[0]+p*Math.cos(c)+o*Math.cos(c),i[1]+p*Math.sin(c)+o*Math.sin(c)];a.push(...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],e))}})),a}},cl=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?l:e.zigzagOffset,a=ke(r,e=Object.assign({},e,{hachureGap:l+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(r,e,l){let n=[];return r.forEach((a=>{let s=Ne(a),d=Math.round(s/(2*e)),t=a[0],o=a[1];t[0]>o[0]&&(t=a[1],o=a[0]);let i=Math.atan((o[1]-t[1])/(o[0]-t[0]));for(let h=0;h<d;h++){let c=2*h*e,g=2*(h+1)*e,u=Math.sqrt(2*e**2),p=[t[0]+c*Math.cos(i),t[1]+c*Math.sin(i)],y=[t[0]+g*Math.cos(i),t[1]+g*Math.sin(i)],m=[p[0]+u*Math.cos(i+Math.PI/4),p[1]+u*Math.sin(i+Math.PI/4)];n.push(...this.helper.doubleLineOps(p[0],p[1],m[0],m[1],l),...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],l))}})),n}},K={},gl=class{constructor(r){this.seed=r}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},ul=0,Qe=1,mt=2,Te={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Je(r,e){return r.type===e}function Ye(r){let e=[],l=(function(d){let t=[];for(;d!=="";)if(d.match(/^([ \t\r\n,]+)/))d=d.substr(RegExp.$1.length);else if(d.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:ul,text:RegExp.$1},d=d.substr(RegExp.$1.length);else{if(!d.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:Qe,text:`${parseFloat(RegExp.$1)}`},d=d.substr(RegExp.$1.length)}return t[t.length]={type:mt,text:""},t})(r),n="BOD",a=0,s=l[a];for(;!Je(s,mt);){let d=0,t=[];if(n==="BOD"){if(s.text!=="M"&&s.text!=="m")return Ye("M0,0"+r);a++,d=Te[s.text],n=s.text}else Je(s,Qe)?d=Te[n]:(a++,d=Te[s.text],n=s.text);if(!(a+d<l.length))throw Error("Path data ended short");for(let o=a;o<a+d;o++){let i=l[o];if(!Je(i,Qe))throw Error("Param not a number: "+n+","+i.text);t[t.length]=+i.text}if(typeof Te[n]!="number")throw Error("Bad segment: "+n);{let o={key:n,data:t};e.push(o),a+=d,s=l[a],n==="M"&&(n="L"),n==="m"&&(n="l")}}return e}function xt(r){let e=0,l=0,n=0,a=0,s=[];for(let{key:d,data:t}of r)switch(d){case"M":s.push({key:"M",data:[...t]}),[e,l]=t,[n,a]=t;break;case"m":e+=t[0],l+=t[1],s.push({key:"M",data:[e,l]}),n=e,a=l;break;case"L":s.push({key:"L",data:[...t]}),[e,l]=t;break;case"l":e+=t[0],l+=t[1],s.push({key:"L",data:[e,l]});break;case"C":s.push({key:"C",data:[...t]}),e=t[4],l=t[5];break;case"c":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"C",data:o}),e=o[4],l=o[5];break}case"Q":s.push({key:"Q",data:[...t]}),e=t[2],l=t[3];break;case"q":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"Q",data:o}),e=o[2],l=o[3];break}case"A":s.push({key:"A",data:[...t]}),e=t[5],l=t[6];break;case"a":e+=t[5],l+=t[6],s.push({key:"A",data:[t[0],t[1],t[2],t[3],t[4],e,l]});break;case"H":s.push({key:"H",data:[...t]}),e=t[0];break;case"h":e+=t[0],s.push({key:"H",data:[e]});break;case"V":s.push({key:"V",data:[...t]}),l=t[0];break;case"v":l+=t[0],s.push({key:"V",data:[l]});break;case"S":s.push({key:"S",data:[...t]}),e=t[2],l=t[3];break;case"s":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"S",data:o}),e=o[2],l=o[3];break}case"T":s.push({key:"T",data:[...t]}),e=t[0],l=t[1];break;case"t":e+=t[0],l+=t[1],s.push({key:"T",data:[e,l]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=n,l=a}return s}function bt(r){let e=[],l="",n=0,a=0,s=0,d=0,t=0,o=0;for(let{key:i,data:h}of r){switch(i){case"M":e.push({key:"M",data:[...h]}),[n,a]=h,[s,d]=h;break;case"C":e.push({key:"C",data:[...h]}),n=h[4],a=h[5],t=h[2],o=h[3];break;case"L":e.push({key:"L",data:[...h]}),[n,a]=h;break;case"H":n=h[0],e.push({key:"L",data:[n,a]});break;case"V":a=h[0],e.push({key:"L",data:[n,a]});break;case"S":{let c=0,g=0;l==="C"||l==="S"?(c=n+(n-t),g=a+(a-o)):(c=n,g=a),e.push({key:"C",data:[c,g,...h]}),t=h[0],o=h[1],n=h[2],a=h[3];break}case"T":{let[c,g]=h,u=0,p=0;l==="Q"||l==="T"?(u=n+(n-t),p=a+(a-o)):(u=n,p=a);let y=n+2*(u-n)/3,m=a+2*(p-a)/3,f=c+2*(u-c)/3,x=g+2*(p-g)/3;e.push({key:"C",data:[y,m,f,x,c,g]}),t=u,o=p,n=c,a=g;break}case"Q":{let[c,g,u,p]=h,y=n+2*(c-n)/3,m=a+2*(g-a)/3,f=u+2*(c-u)/3,x=p+2*(g-p)/3;e.push({key:"C",data:[y,m,f,x,u,p]}),t=c,o=g,n=u,a=p;break}case"A":{let c=Math.abs(h[0]),g=Math.abs(h[1]),u=h[2],p=h[3],y=h[4],m=h[5],f=h[6];c===0||g===0?(e.push({key:"C",data:[n,a,m,f,m,f]}),n=m,a=f):(n!==m||a!==f)&&(wt(n,a,m,f,c,g,u,p,y).forEach((function(x){e.push({key:"C",data:x})})),n=m,a=f);break}case"Z":e.push({key:"Z",data:[]}),n=s,a=d}l=i}return e}function $e(r,e,l){return[r*Math.cos(l)-e*Math.sin(l),r*Math.sin(l)+e*Math.cos(l)]}function wt(r,e,l,n,a,s,d,t,o,i){let h=(c=d,Math.PI*c/180);var c;let g=[],u=0,p=0,y=0,m=0;if(i)[u,p,y,m]=i;else{[r,e]=$e(r,e,-h),[l,n]=$e(l,n,-h);let v=(r-l)/2,$=(e-n)/2,D=v*v/(a*a)+$*$/(s*s);D>1&&(D=Math.sqrt(D),a*=D,s*=D);let O=a*a,W=s*s,X=O*W-O*$*$-W*v*v,te=O*$*$+W*v*v,he=(t===o?-1:1)*Math.sqrt(Math.abs(X/te));y=he*a*$/s+(r+l)/2,m=he*-s*v/a+(e+n)/2,u=Math.asin(parseFloat(((e-m)/s).toFixed(9))),p=Math.asin(parseFloat(((n-m)/s).toFixed(9))),r<y&&(u=Math.PI-u),l<y&&(p=Math.PI-p),u<0&&(u=2*Math.PI+u),p<0&&(p=2*Math.PI+p),o&&u>p&&(u-=2*Math.PI),!o&&p>u&&(p-=2*Math.PI)}let f=p-u;if(Math.abs(f)>120*Math.PI/180){let v=p,$=l,D=n;p=o&&p>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,g=wt(l=y+a*Math.cos(p),n=m+s*Math.sin(p),$,D,a,s,d,0,o,[p,v,y,m])}f=p-u;let x=Math.cos(u),b=Math.sin(u),k=Math.cos(p),S=Math.sin(p),M=Math.tan(f/4),C=4/3*a*M,P=4/3*s*M,_=[r,e],E=[r+C*b,e-P*x],I=[l+C*S,n-P*k],L=[l,n];if(E[0]=2*_[0]-E[0],E[1]=2*_[1]-E[1],i)return[E,I,L].concat(g);{g=[E,I,L].concat(g);let v=[];for(let $=0;$<g.length;$+=3){let D=$e(g[$][0],g[$][1],h),O=$e(g[$+1][0],g[$+1][1],h),W=$e(g[$+2][0],g[$+2][1],h);v.push([D[0],D[1],O[0],O[1],W[0],W[1]])}return v}}var pl={randOffset:function(r,e){return H(r,e)},randOffsetWithRange:function(r,e,l){return _e(r,e,l)},ellipse:function(r,e,l,n,a){return Ue(r,e,a,$t(l,n,a)).opset},doubleLineOps:function(r,e,l,n,a){return de(r,e,l,n,a,!0)}};function St(r,e,l,n,a){return{type:"path",ops:de(r,e,l,n,a)}}function Re(r,e,l){let n=(r||[]).length;if(n>2){let a=[];for(let s=0;s<n-1;s++)a.push(...de(r[s][0],r[s][1],r[s+1][0],r[s+1][1],l));return e&&a.push(...de(r[n-1][0],r[n-1][1],r[0][0],r[0][1],l)),{type:"path",ops:a}}return n===2?St(r[0][0],r[0][1],r[1][0],r[1][1],l):{type:"path",ops:[]}}function yl(r,e,l,n,a){return(function(s,d){return Re(s,!0,d)})([[r,e],[r+l,e],[r+l,e+n],[r,e+n]],a)}function kt(r,e){if(r.length){let l=typeof r[0][0]=="number"?[r]:r,n=Oe(l[0],1*(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:Oe(l[0],1.5*(1+.22*e.roughness),Dt(e));for(let s=1;s<l.length;s++){let d=l[s];if(d.length){let t=Oe(d,1*(1+.2*e.roughness),e),o=e.disableMultiStroke?[]:Oe(d,1.5*(1+.22*e.roughness),Dt(e));for(let i of t)i.op!=="move"&&n.push(i);for(let i of o)i.op!=="move"&&a.push(i)}}return{type:"path",ops:n.concat(a)}}return{type:"path",ops:[]}}function $t(r,e,l){let n=Math.sqrt(2*Math.PI*Math.sqrt(((r/2)**2+(e/2)**2)/2)),a=Math.ceil(Math.max(l.curveStepCount,l.curveStepCount/Math.sqrt(200)*n)),s=2*Math.PI/a,d=Math.abs(r/2),t=Math.abs(e/2),o=1-l.curveFitting;return d+=H(d*o,l),t+=H(t*o,l),{increment:s,rx:d,ry:t}}function Ue(r,e,l,n){let[a,s]=Pt(n.increment,r,e,n.rx,n.ry,1,n.increment*_e(.1,_e(.4,1,l),l),l),d=Ie(a,null,l);if(!l.disableMultiStroke&&l.roughness!==0){let[t]=Pt(n.increment,r,e,n.rx,n.ry,1.5,0,l),o=Ie(t,null,l);d=d.concat(o)}return{estimatedPoints:s,opset:{type:"path",ops:d}}}function Mt(r,e,l,n,a,s,d,t,o){let i=r,h=e,c=Math.abs(l/2),g=Math.abs(n/2);c+=H(.01*c,o),g+=H(.01*g,o);let u=a,p=s;for(;u<0;)u+=2*Math.PI,p+=2*Math.PI;p-u>2*Math.PI&&(u=0,p=2*Math.PI);let y=2*Math.PI/o.curveStepCount,m=Math.min(y/2,(p-u)/2),f=Bt(m,i,h,c,g,u,p,1,o);if(!o.disableMultiStroke){let x=Bt(m,i,h,c,g,u,p,1.5,o);f.push(...x)}return d&&(t?f.push(...de(i,h,i+c*Math.cos(u),h+g*Math.sin(u),o),...de(i,h,i+c*Math.cos(p),h+g*Math.sin(p),o)):f.push({op:"lineTo",data:[i,h]},{op:"lineTo",data:[i+c*Math.cos(u),h+g*Math.sin(u)]})),{type:"path",ops:f}}function vt(r,e){let l=bt(xt(Ye(r))),n=[],a=[0,0],s=[0,0];for(let{key:d,data:t}of l)switch(d){case"M":s=[t[0],t[1]],a=[t[0],t[1]];break;case"L":n.push(...de(s[0],s[1],t[0],t[1],e)),s=[t[0],t[1]];break;case"C":{let[o,i,h,c,g,u]=t;n.push(...fl(o,i,h,c,g,u,s,e)),s=[g,u];break}case"Z":n.push(...de(s[0],s[1],a[0],a[1],e)),s=[a[0],a[1]]}return{type:"path",ops:n}}function Ke(r,e){let l=[];for(let n of r)if(n.length){let a=e.maxRandomnessOffset||0,s=n.length;if(s>2){l.push({op:"move",data:[n[0][0]+H(a,e),n[0][1]+H(a,e)]});for(let d=1;d<s;d++)l.push({op:"lineTo",data:[n[d][0]+H(a,e),n[d][1]+H(a,e)]})}}return{type:"fillPath",ops:l}}function fe(r,e){return(function(l,n){let a=l.fillStyle||"hachure";if(!K[a])switch(a){case"zigzag":K[a]||(K[a]=new nl(n));break;case"cross-hatch":K[a]||(K[a]=new hl(n));break;case"dots":K[a]||(K[a]=new ol(n));break;case"dashed":K[a]||(K[a]=new dl(n));break;case"zigzag-line":K[a]||(K[a]=new cl(n));break;default:a="hachure",K[a]||(K[a]=new Xe(n))}return K[a]})(e,pl).fillPolygons(r,e)}function Dt(r){let e=Object.assign({},r);return e.randomizer=void 0,r.seed&&(e.seed=r.seed+1),e}function Ct(r){return r.randomizer||(r.randomizer=new gl(r.seed||0)),r.randomizer.next()}function _e(r,e,l,n=1){return l.roughness*n*(Ct(l)*(e-r)+r)}function H(r,e,l=1){return _e(-r,r,e,l)}function de(r,e,l,n,a,s=!1){let d=s?a.disableMultiStrokeFill:a.disableMultiStroke,t=et(r,e,l,n,a,!0,!1);if(d)return t;let o=et(r,e,l,n,a,!0,!0);return t.concat(o)}function et(r,e,l,n,a,s,d){let t=(r-l)**2+(e-n)**2,o=Math.sqrt(t),i=1;i=o<200?1:o>500?.4:-.0016668*o+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>t&&(h=o/10);let c=h/2,g=.2+.2*Ct(a),u=a.bowing*a.maxRandomnessOffset*(n-e)/200,p=a.bowing*a.maxRandomnessOffset*(r-l)/200;u=H(u,a,i),p=H(p,a,i);let y=[],m=()=>H(c,a,i),f=()=>H(h,a,i),x=a.preserveVertices;return s&&(d?y.push({op:"move",data:[r+(x?0:m()),e+(x?0:m())]}):y.push({op:"move",data:[r+(x?0:H(h,a,i)),e+(x?0:H(h,a,i))]})),d?y.push({op:"bcurveTo",data:[u+r+(l-r)*g+m(),p+e+(n-e)*g+m(),u+r+2*(l-r)*g+m(),p+e+2*(n-e)*g+m(),l+(x?0:m()),n+(x?0:m())]}):y.push({op:"bcurveTo",data:[u+r+(l-r)*g+f(),p+e+(n-e)*g+f(),u+r+2*(l-r)*g+f(),p+e+2*(n-e)*g+f(),l+(x?0:f()),n+(x?0:f())]}),y}function Oe(r,e,l){if(!r.length)return[];let n=[];n.push([r[0][0]+H(e,l),r[0][1]+H(e,l)]),n.push([r[0][0]+H(e,l),r[0][1]+H(e,l)]);for(let a=1;a<r.length;a++)n.push([r[a][0]+H(e,l),r[a][1]+H(e,l)]),a===r.length-1&&n.push([r[a][0]+H(e,l),r[a][1]+H(e,l)]);return Ie(n,null,l)}function Ie(r,e,l){let n=r.length,a=[];if(n>3){let s=[],d=1-l.curveTightness;a.push({op:"move",data:[r[1][0],r[1][1]]});for(let t=1;t+2<n;t++){let o=r[t];s[0]=[o[0],o[1]],s[1]=[o[0]+(d*r[t+1][0]-d*r[t-1][0])/6,o[1]+(d*r[t+1][1]-d*r[t-1][1])/6],s[2]=[r[t+1][0]+(d*r[t][0]-d*r[t+2][0])/6,r[t+1][1]+(d*r[t][1]-d*r[t+2][1])/6],s[3]=[r[t+1][0],r[t+1][1]],a.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}if(e&&e.length===2){let t=l.maxRandomnessOffset;a.push({op:"lineTo",data:[e[0]+H(t,l),e[1]+H(t,l)]})}}else n===3?(a.push({op:"move",data:[r[1][0],r[1][1]]}),a.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):n===2&&a.push(...et(r[0][0],r[0][1],r[1][0],r[1][1],l,!0,!0));return a}function Pt(r,e,l,n,a,s,d,t){let o=[],i=[];if(t.roughness===0){r/=4,i.push([e+n*Math.cos(-r),l+a*Math.sin(-r)]);for(let h=0;h<=2*Math.PI;h+=r){let c=[e+n*Math.cos(h),l+a*Math.sin(h)];o.push(c),i.push(c)}i.push([e+n*Math.cos(0),l+a*Math.sin(0)]),i.push([e+n*Math.cos(r),l+a*Math.sin(r)])}else{let h=H(.5,t)-Math.PI/2;i.push([H(s,t)+e+.9*n*Math.cos(h-r),H(s,t)+l+.9*a*Math.sin(h-r)]);let c=2*Math.PI+h-.01;for(let g=h;g<c;g+=r){let u=[H(s,t)+e+n*Math.cos(g),H(s,t)+l+a*Math.sin(g)];o.push(u),i.push(u)}i.push([H(s,t)+e+n*Math.cos(h+2*Math.PI+.5*d),H(s,t)+l+a*Math.sin(h+2*Math.PI+.5*d)]),i.push([H(s,t)+e+.98*n*Math.cos(h+d),H(s,t)+l+.98*a*Math.sin(h+d)]),i.push([H(s,t)+e+.9*n*Math.cos(h+.5*d),H(s,t)+l+.9*a*Math.sin(h+.5*d)])}return[i,o]}function Bt(r,e,l,n,a,s,d,t,o){let i=s+H(.1,o),h=[];h.push([H(t,o)+e+.9*n*Math.cos(i-r),H(t,o)+l+.9*a*Math.sin(i-r)]);for(let c=i;c<=d;c+=r)h.push([H(t,o)+e+n*Math.cos(c),H(t,o)+l+a*Math.sin(c)]);return h.push([e+n*Math.cos(d),l+a*Math.sin(d)]),h.push([e+n*Math.cos(d),l+a*Math.sin(d)]),Ie(h,null,o)}function fl(r,e,l,n,a,s,d,t){let o=[],i=[t.maxRandomnessOffset||1,(t.maxRandomnessOffset||1)+.3],h=[0,0],c=t.disableMultiStroke?1:2,g=t.preserveVertices;for(let u=0;u<c;u++)u===0?o.push({op:"move",data:[d[0],d[1]]}):o.push({op:"move",data:[d[0]+(g?0:H(i[0],t)),d[1]+(g?0:H(i[0],t))]}),h=g?[a,s]:[a+H(i[u],t),s+H(i[u],t)],o.push({op:"bcurveTo",data:[r+H(i[u],t),e+H(i[u],t),l+H(i[u],t),n+H(i[u],t),h[0],h[1]]});return o}function Me(r){return[...r]}function At(r,e=0){let l=r.length;if(l<3)throw Error("A curve must have at least three points.");let n=[];if(l===3)n.push(Me(r[0]),Me(r[1]),Me(r[2]),Me(r[2]));else{let a=[];a.push(r[0],r[0]);for(let t=1;t<r.length;t++)a.push(r[t]),t===r.length-1&&a.push(r[t]);let s=[],d=1-e;n.push(Me(a[0]));for(let t=1;t+2<a.length;t++){let o=a[t];s[0]=[o[0],o[1]],s[1]=[o[0]+(d*a[t+1][0]-d*a[t-1][0])/6,o[1]+(d*a[t+1][1]-d*a[t-1][1])/6],s[2]=[a[t+1][0]+(d*a[t][0]-d*a[t+2][0])/6,a[t+1][1]+(d*a[t][1]-d*a[t+2][1])/6],s[3]=[a[t+1][0],a[t+1][1]],n.push(s[1],s[2],s[3])}}return n}function Ee(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2}function ml(r,e,l){let n=Ee(e,l);if(n===0)return Ee(r,e);let a=((r[0]-e[0])*(l[0]-e[0])+(r[1]-e[1])*(l[1]-e[1]))/n;return a=Math.max(0,Math.min(1,a)),Ee(r,ye(e,l,a))}function ye(r,e,l){return[r[0]+(e[0]-r[0])*l,r[1]+(e[1]-r[1])*l]}function tt(r,e,l,n){let a=n||[];if((function(t,o){let i=t[o+0],h=t[o+1],c=t[o+2],g=t[o+3],u=3*h[0]-2*i[0]-g[0];u*=u;let p=3*h[1]-2*i[1]-g[1];p*=p;let y=3*c[0]-2*g[0]-i[0];y*=y;let m=3*c[1]-2*g[1]-i[1];return m*=m,u<y&&(u=y),p<m&&(p=m),u+p})(r,e)<l){let t=r[e+0];a.length?(s=a[a.length-1],d=t,Math.sqrt(Ee(s,d))>1&&a.push(t)):a.push(t),a.push(r[e+3])}else{let t=.5,o=r[e+0],i=r[e+1],h=r[e+2],c=r[e+3],g=ye(o,i,t),u=ye(i,h,t),p=ye(h,c,t),y=ye(g,u,t),m=ye(u,p,t),f=ye(y,m,t);tt([o,g,y,f],0,l,a),tt([f,m,p,c],0,l,a)}var s,d;return a}function xl(r,e){return We(r,0,r.length,e)}function We(r,e,l,n,a){let s=a||[],d=r[e],t=r[l-1],o=0,i=1;for(let h=e+1;h<l-1;++h){let c=ml(r[h],d,t);c>o&&(o=c,i=h)}return Math.sqrt(o)>n?(We(r,e,i+1,n,s),We(r,i,l,n,s)):(s.length||s.push(d),s.push(t)),s}function at(r,e=.15,l){let n=[],a=(r.length-1)/3;for(let s=0;s<a;s++)tt(r,3*s,e,n);return l&&l>0?We(n,0,n.length,l):n}var ee="none",je=class{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,l){return{shape:r,sets:e||[],options:l||this.defaultOptions}}line(r,e,l,n,a){let s=this._o(a);return this._d("line",[St(r,e,l,n,s)],s)}rectangle(r,e,l,n,a){let s=this._o(a),d=[],t=yl(r,e,l,n,s);if(s.fill){let o=[[r,e],[r+l,e],[r+l,e+n],[r,e+n]];s.fillStyle==="solid"?d.push(Ke([o],s)):d.push(fe([o],s))}return s.stroke!==ee&&d.push(t),this._d("rectangle",d,s)}ellipse(r,e,l,n,a){let s=this._o(a),d=[],t=$t(l,n,s),o=Ue(r,e,s,t);if(s.fill)if(s.fillStyle==="solid"){let i=Ue(r,e,s,t).opset;i.type="fillPath",d.push(i)}else d.push(fe([o.estimatedPoints],s));return s.stroke!==ee&&d.push(o.opset),this._d("ellipse",d,s)}circle(r,e,l,n){let a=this.ellipse(r,e,l,l,n);return a.shape="circle",a}linearPath(r,e){let l=this._o(e);return this._d("linearPath",[Re(r,!1,l)],l)}arc(r,e,l,n,a,s,d=!1,t){let o=this._o(t),i=[],h=Mt(r,e,l,n,a,s,d,!0,o);if(d&&o.fill)if(o.fillStyle==="solid"){let c=Object.assign({},o);c.disableMultiStroke=!0;let g=Mt(r,e,l,n,a,s,!0,!1,c);g.type="fillPath",i.push(g)}else i.push((function(c,g,u,p,y,m,f){let x=c,b=g,k=Math.abs(u/2),S=Math.abs(p/2);k+=H(.01*k,f),S+=H(.01*S,f);let M=y,C=m;for(;M<0;)M+=2*Math.PI,C+=2*Math.PI;C-M>2*Math.PI&&(M=0,C=2*Math.PI);let P=(C-M)/f.curveStepCount,_=[];for(let E=M;E<=C;E+=P)_.push([x+k*Math.cos(E),b+S*Math.sin(E)]);return _.push([x+k*Math.cos(C),b+S*Math.sin(C)]),_.push([x,b]),fe([_],f)})(r,e,l,n,a,s,o));return o.stroke!==ee&&i.push(h),this._d("arc",i,o)}curve(r,e){let l=this._o(e),n=[],a=kt(r,l);if(l.fill&&l.fill!==ee)if(l.fillStyle==="solid"){let s=kt(r,Object.assign(Object.assign({},l),{disableMultiStroke:!0,roughness:l.roughness?l.roughness+l.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],d=r;if(d.length){let t=typeof d[0][0]=="number"?[d]:d;for(let o of t)o.length<3?s.push(...o):o.length===3?s.push(...at(At([o[0],o[0],o[1],o[2]]),10,(1+l.roughness)/2)):s.push(...at(At(o),10,(1+l.roughness)/2))}s.length&&n.push(fe([s],l))}return l.stroke!==ee&&n.push(a),this._d("curve",n,l)}polygon(r,e){let l=this._o(e),n=[],a=Re(r,!0,l);return l.fill&&(l.fillStyle==="solid"?n.push(Ke([r],l)):n.push(fe([r],l))),l.stroke!==ee&&n.push(a),this._d("polygon",n,l)}path(r,e){let l=this._o(e),n=[];if(!r)return this._d("path",n,l);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=l.fill&&l.fill!=="transparent"&&l.fill!==ee,s=l.stroke!==ee,d=!!(l.simplification&&l.simplification<1),t=(function(i,h,c){let g=bt(xt(Ye(i))),u=[],p=[],y=[0,0],m=[],f=()=>{m.length>=4&&p.push(...at(m,h)),m=[]},x=()=>{f(),p.length&&(u.push(p),p=[])};for(let{key:k,data:S}of g)switch(k){case"M":x(),y=[S[0],S[1]],p.push(y);break;case"L":f(),p.push([S[0],S[1]]);break;case"C":if(!m.length){let M=p.length?p[p.length-1]:y;m.push([M[0],M[1]])}m.push([S[0],S[1]]),m.push([S[2],S[3]]),m.push([S[4],S[5]]);break;case"Z":f(),p.push([y[0],y[1]])}if(x(),!c)return u;let b=[];for(let k of u){let S=xl(k,c);S.length&&b.push(S)}return b})(r,1,d?4-4*(l.simplification||1):(1+l.roughness)/2),o=vt(r,l);if(a)if(l.fillStyle==="solid")if(t.length===1){let i=vt(r,Object.assign(Object.assign({},l),{disableMultiStroke:!0,roughness:l.roughness?l.roughness+l.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else n.push(Ke(t,l));else n.push(fe(t,l));return s&&(d?t.forEach((i=>{n.push(Re(i,!1,l))})):n.push(o)),this._d("path",n,l)}opsToPath(r,e){let l="";for(let n of r.ops){let a=typeof e=="number"&&e>=0?n.data.map((s=>+s.toFixed(e))):n.data;switch(n.op){case"move":l+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":l+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":l+=`L${a[0]} ${a[1]} `}}return l.trim()}toPaths(r){let e=r.sets||[],l=r.options||this.defaultOptions,n=[];for(let a of e){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:l.stroke,strokeWidth:l.strokeWidth,fill:ee};break;case"fillPath":s={d:this.opsToPath(a),stroke:ee,strokeWidth:0,fill:l.fill||ee};break;case"fillSketch":s=this.fillSketch(a,l)}s&&n.push(s)}return n}fillSketch(r,e){let l=e.fillWeight;return l<0&&(l=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||ee,strokeWidth:l,fill:ee}}_mergedShape(r){return r.filter(((e,l)=>l===0||e.op!=="move"))}},bl=class{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new je(e)}draw(r){let e=r.sets||[],l=r.options||this.getDefaultOptions(),n=this.ctx,a=r.options.fixedDecimalPlaceDigits;for(let s of e)switch(s.type){case"path":n.save(),n.strokeStyle=l.stroke==="none"?"transparent":l.stroke,n.lineWidth=l.strokeWidth,l.strokeLineDash&&n.setLineDash(l.strokeLineDash),l.strokeLineDashOffset&&(n.lineDashOffset=l.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=l.fill||"";let d=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,d),n.restore();break}case"fillSketch":this.fillSketch(n,s,l)}}fillSketch(r,e,l){let n=l.fillWeight;n<0&&(n=l.strokeWidth/2),r.save(),l.fillLineDash&&r.setLineDash(l.fillLineDash),l.fillLineDashOffset&&(r.lineDashOffset=l.fillLineDashOffset),r.strokeStyle=l.fill||"",r.lineWidth=n,this._drawToContext(r,e,l.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,l,n="nonzero"){r.beginPath();for(let a of e.ops){let s=typeof l=="number"&&l>=0?a.data.map((d=>+d.toFixed(l))):a.data;switch(a.op){case"move":r.moveTo(s[0],s[1]);break;case"bcurveTo":r.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":r.lineTo(s[0],s[1])}}e.type==="fillPath"?r.fill(n):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,l,n,a){let s=this.gen.line(r,e,l,n,a);return this.draw(s),s}rectangle(r,e,l,n,a){let s=this.gen.rectangle(r,e,l,n,a);return this.draw(s),s}ellipse(r,e,l,n,a){let s=this.gen.ellipse(r,e,l,n,a);return this.draw(s),s}circle(r,e,l,n){let a=this.gen.circle(r,e,l,n);return this.draw(a),a}linearPath(r,e){let l=this.gen.linearPath(r,e);return this.draw(l),l}polygon(r,e){let l=this.gen.polygon(r,e);return this.draw(l),l}arc(r,e,l,n,a,s,d=!1,t){let o=this.gen.arc(r,e,l,n,a,s,d,t);return this.draw(o),o}curve(r,e){let l=this.gen.curve(r,e);return this.draw(l),l}path(r,e){let l=this.gen.path(r,e);return this.draw(l),l}},He="http://www.w3.org/2000/svg",wl=class{constructor(r,e){this.svg=r,this.gen=new je(e)}draw(r){let e=r.sets||[],l=r.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(He,"g"),s=r.options.fixedDecimalPlaceDigits;for(let d of e){let t=null;switch(d.type){case"path":t=n.createElementNS(He,"path"),t.setAttribute("d",this.opsToPath(d,s)),t.setAttribute("stroke",l.stroke),t.setAttribute("stroke-width",l.strokeWidth+""),t.setAttribute("fill","none"),l.strokeLineDash&&t.setAttribute("stroke-dasharray",l.strokeLineDash.join(" ").trim()),l.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${l.strokeLineDashOffset}`);break;case"fillPath":t=n.createElementNS(He,"path"),t.setAttribute("d",this.opsToPath(d,s)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",l.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(n,d,l)}t&&a.appendChild(t)}return a}fillSketch(r,e,l){let n=l.fillWeight;n<0&&(n=l.strokeWidth/2);let a=r.createElementNS(He,"path");return a.setAttribute("d",this.opsToPath(e,l.fixedDecimalPlaceDigits)),a.setAttribute("stroke",l.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),l.fillLineDash&&a.setAttribute("stroke-dasharray",l.fillLineDash.join(" ").trim()),l.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${l.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,l,n,a){let s=this.gen.line(r,e,l,n,a);return this.draw(s)}rectangle(r,e,l,n,a){let s=this.gen.rectangle(r,e,l,n,a);return this.draw(s)}ellipse(r,e,l,n,a){let s=this.gen.ellipse(r,e,l,n,a);return this.draw(s)}circle(r,e,l,n){let a=this.gen.circle(r,e,l,n);return this.draw(a)}linearPath(r,e){let l=this.gen.linearPath(r,e);return this.draw(l)}polygon(r,e){let l=this.gen.polygon(r,e);return this.draw(l)}arc(r,e,l,n,a,s,d=!1,t){let o=this.gen.arc(r,e,l,n,a,s,d,t);return this.draw(o)}curve(r,e){let l=this.gen.curve(r,e);return this.draw(l)}path(r,e){let l=this.gen.path(r,e);return this.draw(l)}},A={canvas:(r,e)=>new bl(r,e),svg:(r,e)=>new wl(r,e),generator:r=>new je(r),newSeed:()=>je.newSeed()},z=w(async(r,e,l)=>{var c,g;let n,a=e.useHtmlLabels||Y((c=Z())==null?void 0:c.htmlLabels);n=l||"node default";let s=r.insert("g").attr("class",n).attr("id",e.domId||e.id),d=s.insert("g").attr("class","label").attr("style",U(e.labelStyle)),t;t=e.label===void 0?"":typeof e.label=="string"?e.label:e.label[0];let o=await pe(d,Ge(we(t),Z()),{useHtmlLabels:a,width:e.width||((g=Z().flowchart)==null?void 0:g.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),i=o.getBBox(),h=((e==null?void 0:e.padding)??0)/2;if(a){let u=o.children[0],p=Q(o),y=u.getElementsByTagName("img");if(y){let m=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(f=>new Promise(x=>{function b(){if(f.style.display="flex",f.style.flexDirection="column",m){let[k=al.fontSize]=el(Z().fontSize?Z().fontSize:window.getComputedStyle(document.body).fontSize),S=k*5+"px";f.style.minWidth=S,f.style.maxWidth=S}else f.style.width="100%";x(f)}w(b,"setupImage"),setTimeout(()=>{f.complete&&b()}),f.addEventListener("error",b),f.addEventListener("load",b)})))}i=u.getBoundingClientRect(),p.attr("width",i.width),p.attr("height",i.height)}return a?d.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):d.attr("transform","translate(0, "+-i.height/2+")"),e.centerLabel&&d.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:s,bbox:i,halfPadding:h,label:d}},"labelHelper"),lt=w(async(r,e,l)=>{var o,i,h,c,g,u;let n=l.useHtmlLabels||Y((i=(o=Z())==null?void 0:o.flowchart)==null?void 0:i.htmlLabels),a=r.insert("g").attr("class","label").attr("style",l.labelStyle||""),s=await pe(a,Ge(we(e),Z()),{useHtmlLabels:n,width:l.width||((c=(h=Z())==null?void 0:h.flowchart)==null?void 0:c.wrappingWidth),style:l.labelStyle,addSvgBackground:!!l.icon||!!l.img}),d=s.getBBox(),t=l.padding/2;if(Y((u=(g=Z())==null?void 0:g.flowchart)==null?void 0:u.htmlLabels)){let p=s.children[0],y=Q(s);d=p.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}return n?a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):a.attr("transform","translate(0, "+-d.height/2+")"),l.centerLabel&&a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:r,bbox:d,halfPadding:t,label:a}},"insertLabel"),T=w((r,e)=>{let l=e.node().getBBox();r.width=l.width,r.height=l.height},"updateNodeBounds"),j=w((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function q(r){let e=r.map((l,n)=>`${n===0?"M":"L"}${l.x},${l.y}`);return e.push("Z"),e.join(" ")}w(q,"createPathFromPoints");function ce(r,e,l,n,a,s){let d=[],t=l-r,o=n-e,i=t/s,h=2*Math.PI/i,c=e+o/2;for(let g=0;g<=50;g++){let u=r+g/50*t,p=c+a*Math.sin(h*(u-r));d.push({x:u,y:p})}return d}w(ce,"generateFullSineWavePoints");function ve(r,e,l,n,a,s){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;i<n;i++){let h=t+i*o,c=r+l*Math.cos(h),g=e+l*Math.sin(h);d.push({x:-c,y:-g})}return d}w(ve,"generateCirclePoints");var me=w((r,e)=>{var l=r.x,n=r.y,a=e.x-l,s=e.y-n,d=r.width/2,t=r.height/2,o,i;return Math.abs(s)*d>Math.abs(a)*t?(s<0&&(t=-t),o=s===0?0:t*a/s,i=t):(a<0&&(d=-d),o=d,i=a===0?0:d*s/a),{x:l+o,y:n+i}},"intersectRect");function Lt(r,e){e&&r.attr("style",e)}w(Lt,"applyStyle");async function Nt(r){let e=Q(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),l=e.append("xhtml:div"),n=Z(),a=r.label;r.label&&yt(r.label)&&(a=await tl(r.label.replace(ll.lineBreakRegex,`
|
|
2
2
|
`),n));let s='<span class="'+(r.isNode?"nodeLabel":"edgeLabel")+'" '+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+a+"</span>";return l.html(Ge(s,n)),Lt(l,r.labelStyle),l.style("display","inline-block"),l.style("padding-right","1px"),l.style("white-space","nowrap"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}w(Nt,"addHtmlLabel");var ze=w(async(r,e,l,n)=>{let a=r||"";if(typeof a=="object"&&(a=a[0]),Y(Z().flowchart.htmlLabels))return a=a.replace(/\\n|\n/g,"<br />"),V.info("vertexText"+a),await Nt({isNode:n,label:we(a).replace(/fa[blrs]?:fa-[\w-]+/g,s=>`<i class='${s.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")});{let s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));let d=[];d=typeof a=="string"?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];for(let t of d){let o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),l?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=t.trim(),s.appendChild(o)}return s}},"createLabel"),ge=w((r,e,l,n,a)=>["M",r+a,e,"H",r+l-a,"A",a,a,0,0,1,r+l,e+a,"V",e+n-a,"A",a,a,0,0,1,r+l-a,e+n,"H",r+a,"A",a,a,0,0,1,r,e+n-a,"V",e+a,"A",a,a,0,0,1,r+a,e,"Z"].join(" "),"createRoundedRectPathD"),Tt=w(async(r,e)=>{V.info("Creating subgraph rect for ",e.id,e);let l=Z(),{themeVariables:n,handDrawnSeed:a}=l,{clusterBkg:s,clusterBorder:d}=n,{labelStyles:t,nodeStyles:o,borderStyles:i,backgroundStyles:h}=R(e),c=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),g=Y(l.flowchart.htmlLabels),u=c.insert("g").attr("class","cluster-label "),p=await pe(u,e.label,{style:e.labelStyle,useHtmlLabels:g,isNode:!0}),y=p.getBBox();if(Y(l.flowchart.htmlLabels)){let C=p.children[0],P=Q(p);y=C.getBoundingClientRect(),P.attr("width",y.width),P.attr("height",y.height)}let m=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;let f=e.height,x=e.x-m/2,b=e.y-f/2;V.trace("Data ",e,JSON.stringify(e));let k;if(e.look==="handDrawn"){let C=A.svg(c),P=N(e,{roughness:.7,fill:s,stroke:d,fillWeight:3,seed:a}),_=C.path(ge(x,b,m,f,0),P);k=c.insert(()=>(V.debug("Rough node insert CXC",_),_),":first-child"),k.select("path:nth-child(2)").attr("style",i.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=c.insert("rect",":first-child"),k.attr("style",o).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",m).attr("height",f);let{subGraphTitleTopMargin:S}=ft(l);if(u.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+S})`),t){let C=u.select("span");C&&C.attr("style",t)}let M=k.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=y.height-e.padding/2,e.intersect=function(C){return me(e,C)},{cluster:c,labelBBox:y}},"rect"),Sl={rect:Tt,squareRect:Tt,roundedWithTitle:w(async(r,e)=>{let l=Z(),{themeVariables:n,handDrawnSeed:a}=l,{altBackground:s,compositeBackground:d,compositeTitleBackground:t,nodeBorder:o}=n,i=r.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),h=i.insert("g",":first-child"),c=i.insert("g").attr("class","cluster-label"),g=i.append("rect"),u=c.node().appendChild(await ze(e.label,e.labelStyle,void 0,!0)),p=u.getBBox();if(Y(l.flowchart.htmlLabels)){let P=u.children[0],_=Q(u);p=P.getBoundingClientRect(),_.attr("width",p.width),_.attr("height",p.height)}let y=0*e.padding,m=y/2,f=(e.width<=p.width+e.padding?p.width+e.padding:e.width)+y;e.width<=p.width+e.padding?e.diff=(f-e.width)/2-e.padding:e.diff=-e.padding;let x=e.height+y,b=e.height+y-p.height-6,k=e.x-f/2,S=e.y-x/2;e.width=f;let M=e.y-e.height/2-m+p.height+2,C;if(e.look==="handDrawn"){let P=e.cssClasses.includes("statediagram-cluster-alt"),_=A.svg(i),E=e.rx||e.ry?_.path(ge(k,S,f,x,10),{roughness:.7,fill:t,fillStyle:"solid",stroke:o,seed:a}):_.rectangle(k,S,f,x,{seed:a});C=i.insert(()=>E,":first-child");let I=_.rectangle(k,M,f,b,{fill:P?s:d,fillStyle:P?"hachure":"solid",stroke:o,seed:a});C=i.insert(()=>E,":first-child"),g=i.insert(()=>I)}else C=h.insert("rect",":first-child"),C.attr("class","outer").attr("x",k).attr("y",S).attr("width",f).attr("height",x).attr("data-look",e.look),g.attr("class","inner").attr("x",k).attr("y",M).attr("width",f).attr("height",b);return c.attr("transform",`translate(${e.x-p.width/2}, ${S+1-(Y(l.flowchart.htmlLabels)?0:3)})`),e.height=C.node().getBBox().height,e.offsetX=0,e.offsetY=p.height-e.padding/2,e.labelBBox=p,e.intersect=function(P){return me(e,P)},{cluster:i,labelBBox:p}},"roundedWithTitle"),noteGroup:w((r,e)=>{let l=r.insert("g").attr("class","note-cluster").attr("id",e.id),n=l.insert("rect",":first-child"),a=0*e.padding,s=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-s).attr("y",e.y-e.height/2-s).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let d=n.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return me(e,t)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),divider:w((r,e)=>{let{themeVariables:l,handDrawnSeed:n}=Z(),{nodeBorder:a}=l,s=r.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),d=s.insert("g",":first-child"),t=0*e.padding,o=e.width+t;e.diff=-e.padding;let i=e.height+t,h=e.x-o/2,c=e.y-i/2;e.width=o;let g;if(e.look==="handDrawn"){let u=A.svg(s).rectangle(h,c,o,i,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});g=s.insert(()=>u,":first-child")}else g=d.insert("rect",":first-child"),g.attr("class","divider").attr("x",h).attr("y",c).attr("width",o).attr("height",i).attr("data-look",e.look);return e.height=g.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(u){return me(e,u)},{cluster:s,labelBBox:{}}},"divider"),kanbanSection:w(async(r,e)=>{V.info("Creating subgraph rect for ",e.id,e);let l=Z(),{themeVariables:n,handDrawnSeed:a}=l,{clusterBkg:s,clusterBorder:d}=n,{labelStyles:t,nodeStyles:o,borderStyles:i,backgroundStyles:h}=R(e),c=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),g=Y(l.flowchart.htmlLabels),u=c.insert("g").attr("class","cluster-label "),p=await pe(u,e.label,{style:e.labelStyle,useHtmlLabels:g,isNode:!0,width:e.width}),y=p.getBBox();if(Y(l.flowchart.htmlLabels)){let C=p.children[0],P=Q(p);y=C.getBoundingClientRect(),P.attr("width",y.width),P.attr("height",y.height)}let m=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;let f=e.height,x=e.x-m/2,b=e.y-f/2;V.trace("Data ",e,JSON.stringify(e));let k;if(e.look==="handDrawn"){let C=A.svg(c),P=N(e,{roughness:.7,fill:s,stroke:d,fillWeight:4,seed:a}),_=C.path(ge(x,b,m,f,e.rx),P);k=c.insert(()=>(V.debug("Rough node insert CXC",_),_),":first-child"),k.select("path:nth-child(2)").attr("style",i.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=c.insert("rect",":first-child"),k.attr("style",o).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",m).attr("height",f);let{subGraphTitleTopMargin:S}=ft(l);if(u.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+S})`),t){let C=u.select("span");C&&C.attr("style",t)}let M=k.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=y.height-e.padding/2,e.intersect=function(C){return me(e,C)},{cluster:c,labelBBox:y}},"kanbanSection")},Rt=new Map,kl=w(async(r,e)=>{let l=await Sl[e.shape||"rect"](r,e);return Rt.set(e.id,l),l},"insertCluster"),$l=w(()=>{Rt=new Map},"clear");function _t(r,e){return r.intersect(e)}w(_t,"intersectNode");var Ml=_t;function Ot(r,e,l,n){var a=r.x,s=r.y,d=a-n.x,t=s-n.y,o=Math.sqrt(e*e*t*t+l*l*d*d),i=Math.abs(e*l*d/o);n.x<a&&(i=-i);var h=Math.abs(e*l*t/o);return n.y<s&&(h=-h),{x:a+i,y:s+h}}w(Ot,"intersectEllipse");var It=Ot;function Et(r,e,l){return It(r,e,e,l)}w(Et,"intersectCircle");var vl=Et;function Wt(r,e,l,n){{let a=e.y-r.y,s=r.x-e.x,d=e.x*r.y-r.x*e.y,t=a*l.x+s*l.y+d,o=a*n.x+s*n.y+d,i=1e-6;if(t!==0&&o!==0&&rt(t,o))return;let h=n.y-l.y,c=l.x-n.x,g=n.x*l.y-l.x*n.y,u=h*r.x+c*r.y+g,p=h*e.x+c*e.y+g;if(Math.abs(u)<i&&Math.abs(p)<i&&rt(u,p))return;let y=a*c-h*s;if(y===0)return;let m=Math.abs(y/2),f=s*g-c*d,x=f<0?(f-m)/y:(f+m)/y;return f=h*d-a*g,{x,y:f<0?(f-m)/y:(f+m)/y}}}w(Wt,"intersectLine");function rt(r,e){return r*e>0}w(rt,"sameSign");var Dl=Wt;function jt(r,e,l){let n=r.x,a=r.y,s=[],d=1/0,t=1/0;typeof e.forEach=="function"?e.forEach(function(h){d=Math.min(d,h.x),t=Math.min(t,h.y)}):(d=Math.min(d,e.x),t=Math.min(t,e.y));let o=n-r.width/2-d,i=a-r.height/2-t;for(let h=0;h<e.length;h++){let c=e[h],g=e[h<e.length-1?h+1:0],u=Dl(r,l,{x:o+c.x,y:i+c.y},{x:o+g.x,y:i+g.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(h,c){let g=h.x-l.x,u=h.y-l.y,p=Math.sqrt(g*g+u*u),y=c.x-l.x,m=c.y-l.y,f=Math.sqrt(y*y+m*m);return p<f?-1:p===f?0:1}),s[0]):r}w(jt,"intersectPolygon");var B={node:Ml,circle:vl,ellipse:It,polygon:jt,rect:me};function Ht(r,e){let{labelStyles:l}=R(e);e.labelStyle=l;let n=j(e),a=n;n||(a="anchor");let s=r.insert("g").attr("class",a).attr("id",e.domId||e.id),{cssStyles:d}=e,t=A.svg(s),o=N(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(o.roughness=0);let i=t.circle(0,0,2,o),h=s.insert(()=>i,":first-child");return h.attr("class","anchor").attr("style",U(d)),T(e,h),e.intersect=function(c){return V.info("Circle intersect",e,1,c),B.circle(e,1,c)},s}w(Ht,"anchor");function st(r,e,l,n,a,s,d){let t=(r+l)/2,o=(e+n)/2,i=Math.atan2(n-e,l-r),h=(l-r)/2,c=(n-e)/2,g=h/a,u=c/s,p=Math.sqrt(g**2+u**2);if(p>1)throw Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-p**2),m=t+y*s*Math.sin(i)*(d?-1:1),f=o-y*a*Math.cos(i)*(d?-1:1),x=Math.atan2((e-f)/s,(r-m)/a),b=Math.atan2((n-f)/s,(l-m)/a)-x;d&&b<0&&(b+=2*Math.PI),!d&&b>0&&(b-=2*Math.PI);let k=[];for(let S=0;S<20;S++){let M=x+S/19*b,C=m+a*Math.cos(M),P=f+s*Math.sin(M);k.push({x:C,y:P})}return k}w(st,"generateArcPoints");async function zt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.width+e.padding+20,t=s.height+e.padding,o=t/2,i=o/(2.5+t/50),{cssStyles:h}=e,c=[{x:d/2,y:-t/2},{x:-d/2,y:-t/2},...st(-d/2,-t/2,-d/2,t/2,i,o,!1),{x:d/2,y:t/2},...st(d/2,t/2,d/2,-t/2,i,o,!0)],g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=q(c),y=g.path(p,u),m=a.insert(()=>y,":first-child");return m.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(${i/2}, 0)`),T(e,m),e.intersect=function(f){return B.polygon(e,c,f)},a}w(zt,"bowTieRect");function ue(r,e,l,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+l/2+")")}w(ue,"insertPolygonShape");async function qt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.height+e.padding,t=s.width+e.padding+12,o=t,i=-d,h=[{x:12,y:i},{x:o,y:i},{x:o,y:0},{x:0,y:0},{x:0,y:i+12},{x:12,y:i}],c,{cssStyles:g}=e;if(e.look==="handDrawn"){let u=A.svg(a),p=N(e,{}),y=q(h),m=u.path(y,p);c=a.insert(()=>m,":first-child").attr("transform",`translate(${-t/2}, ${d/2})`),g&&c.attr("style",g)}else c=ue(a,t,d,h);return n&&c.attr("style",n),T(e,c),e.intersect=function(u){return B.polygon(e,h,u)},a}w(qt,"card");function Vt(r,e){let{nodeStyles:l}=R(e);e.label="";let n=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(28,e.width??0),d=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],t=A.svg(n),o=N(e,{});e.look!=="handDrawn"&&(o.roughness=0,o.fillStyle="solid");let i=q(d),h=t.path(i,o),c=n.insert(()=>h,":first-child");return a&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",a),l&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",l),e.width=28,e.height=28,e.intersect=function(g){return B.polygon(e,d,g)},n}w(Vt,"choice");async function it(r,e,l){let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n;let{shapeSvg:s,bbox:d,halfPadding:t}=await z(r,e,j(e)),o=(l==null?void 0:l.padding)??t,i=d.width/2+o,h,{cssStyles:c}=e;if(e.look==="handDrawn"){let g=A.svg(s),u=N(e,{}),p=g.circle(0,0,i*2,u);h=s.insert(()=>p,":first-child"),h.attr("class","basic label-container").attr("style",U(c))}else h=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",i).attr("cx",0).attr("cy",0);return T(e,h),e.calcIntersect=function(g,u){let p=g.width/2;return B.circle(g,p,u)},e.intersect=function(g){return V.info("Circle intersect",e,i,g),B.circle(e,i,g)},s}w(it,"circle");function Ft(r){let e=Math.cos(Math.PI/4),l=Math.sin(Math.PI/4),n=r*2,a={x:n/2*e,y:n/2*l},s={x:-(n/2)*e,y:n/2*l},d={x:-(n/2)*e,y:-(n/2)*l},t={x:n/2*e,y:-(n/2)*l};return`M ${s.x},${s.y} L ${t.x},${t.y}
|
|
3
3
|
M ${a.x},${a.y} L ${d.x},${d.y}`}w(Ft,"createLine");function Gt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l,e.label="";let a=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),s=Math.max(30,(e==null?void 0:e.width)??0),{cssStyles:d}=e,t=A.svg(a),o=N(e,{});e.look!=="handDrawn"&&(o.roughness=0,o.fillStyle="solid");let i=t.circle(0,0,s*2,o),h=Ft(s),c=t.path(h,o),g=a.insert(()=>i,":first-child");return g.insert(()=>c),d&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),T(e,g),e.intersect=function(u){return V.info("crossedCircle intersect",e,{radius:s,point:u}),B.circle(e,s,u)},a}w(Gt,"crossedCircle");function ie(r,e,l,n=100,a=0,s=180){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;i<n;i++){let h=t+i*o,c=r+l*Math.cos(h),g=e+l*Math.sin(h);d.push({x:-c,y:-g})}return d}w(ie,"generateCirclePoints");async function Zt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+(e.padding??0),o=s.height+(e.padding??0),i=Math.max(5,o*.1),{cssStyles:h}=e,c=[...ie(t/2,-o/2,i,30,-90,0),{x:-t/2-i,y:i},...ie(t/2+i*2,-i,i,20,-180,-270),...ie(t/2+i*2,i,i,20,-90,-180),{x:-t/2-i,y:-o/2},...ie(t/2,o/2,i,20,0,90)],g=[{x:t/2,y:-o/2-i},{x:-t/2,y:-o/2-i},...ie(t/2,-o/2,i,20,-90,0),{x:-t/2-i,y:-i},...ie(t/2+t*.1,-i,i,20,-180,-270),...ie(t/2+t*.1,i,i,20,-90,-180),{x:-t/2-i,y:o/2},...ie(t/2,o/2,i,20,0,90),{x:-t/2,y:o/2+i},{x:t/2,y:o/2+i}],u=A.svg(a),p=N(e,{fill:"none"});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=q(c).replace("Z",""),m=u.path(y,p),f=q(g),x=u.path(f,{...p}),b=a.insert("g",":first-child");return b.insert(()=>x,":first-child").attr("stroke-opacity",0),b.insert(()=>m,":first-child"),b.attr("class","text"),h&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${i}, 0)`),d.attr("transform",`translate(${-t/2+i-(s.x-(s.left??0))},${-o/2+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,b),e.intersect=function(k){return B.polygon(e,g,k)},a}w(Zt,"curlyBraceLeft");function ne(r,e,l,n=100,a=0,s=180){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;i<n;i++){let h=t+i*o,c=r+l*Math.cos(h),g=e+l*Math.sin(h);d.push({x:c,y:g})}return d}w(ne,"generateCirclePoints");async function Xt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+(e.padding??0),o=s.height+(e.padding??0),i=Math.max(5,o*.1),{cssStyles:h}=e,c=[...ne(t/2,-o/2,i,20,-90,0),{x:t/2+i,y:-i},...ne(t/2+i*2,-i,i,20,-180,-270),...ne(t/2+i*2,i,i,20,-90,-180),{x:t/2+i,y:o/2},...ne(t/2,o/2,i,20,0,90)],g=[{x:-t/2,y:-o/2-i},{x:t/2,y:-o/2-i},...ne(t/2,-o/2,i,20,-90,0),{x:t/2+i,y:-i},...ne(t/2+i*2,-i,i,20,-180,-270),...ne(t/2+i*2,i,i,20,-90,-180),{x:t/2+i,y:o/2},...ne(t/2,o/2,i,20,0,90),{x:t/2,y:o/2+i},{x:-t/2,y:o/2+i}],u=A.svg(a),p=N(e,{fill:"none"});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=q(c).replace("Z",""),m=u.path(y,p),f=q(g),x=u.path(f,{...p}),b=a.insert("g",":first-child");return b.insert(()=>x,":first-child").attr("stroke-opacity",0),b.insert(()=>m,":first-child"),b.attr("class","text"),h&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${-i}, 0)`),d.attr("transform",`translate(${-t/2+(e.padding??0)/2-(s.x-(s.left??0))},${-o/2+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,b),e.intersect=function(k){return B.polygon(e,g,k)},a}w(Xt,"curlyBraceRight");function J(r,e,l,n=100,a=0,s=180){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;i<n;i++){let h=t+i*o,c=r+l*Math.cos(h),g=e+l*Math.sin(h);d.push({x:-c,y:-g})}return d}w(J,"generateCirclePoints");async function Qt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+(e.padding??0),o=s.height+(e.padding??0),i=Math.max(5,o*.1),{cssStyles:h}=e,c=[...J(t/2,-o/2,i,30,-90,0),{x:-t/2-i,y:i},...J(t/2+i*2,-i,i,20,-180,-270),...J(t/2+i*2,i,i,20,-90,-180),{x:-t/2-i,y:-o/2},...J(t/2,o/2,i,20,0,90)],g=[...J(-t/2+i+i/2,-o/2,i,20,-90,-180),{x:t/2-i/2,y:i},...J(-t/2-i/2,-i,i,20,0,90),...J(-t/2-i/2,i,i,20,-90,0),{x:t/2-i/2,y:-i},...J(-t/2+i+i/2,o/2,i,30,-180,-270)],u=[{x:t/2,y:-o/2-i},{x:-t/2,y:-o/2-i},...J(t/2,-o/2,i,20,-90,0),{x:-t/2-i,y:-i},...J(t/2+i*2,-i,i,20,-180,-270),...J(t/2+i*2,i,i,20,-90,-180),{x:-t/2-i,y:o/2},...J(t/2,o/2,i,20,0,90),{x:-t/2,y:o/2+i},{x:t/2-i-i/2,y:o/2+i},...J(-t/2+i+i/2,-o/2,i,20,-90,-180),{x:t/2-i/2,y:i},...J(-t/2-i/2,-i,i,20,0,90),...J(-t/2-i/2,i,i,20,-90,0),{x:t/2-i/2,y:-i},...J(-t/2+i+i/2,o/2,i,30,-180,-270)],p=A.svg(a),y=N(e,{fill:"none"});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=q(c).replace("Z",""),f=p.path(m,y),x=q(g).replace("Z",""),b=p.path(x,y),k=q(u),S=p.path(k,{...y}),M=a.insert("g",":first-child");return M.insert(()=>S,":first-child").attr("stroke-opacity",0),M.insert(()=>f,":first-child"),M.insert(()=>b,":first-child"),M.attr("class","text"),h&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",n),M.attr("transform",`translate(${i-i/4}, 0)`),d.attr("transform",`translate(${-t/2+(e.padding??0)/2-(s.x-(s.left??0))},${-o/2+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,M),e.intersect=function(C){return B.polygon(e,u,C)},a}w(Qt,"curlyBraces");async function Jt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(80,(s.width+(e.padding??0)*2)*1.25,(e==null?void 0:e.width)??0),t=Math.max(20,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=t/2,{cssStyles:i}=e,h=A.svg(a),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=d,u=t,p=g-o,y=u/4,m=[{x:p,y:0},{x:y,y:0},{x:0,y:u/2},{x:y,y:u},{x:p,y:u},...ve(-p,-u/2,o,50,270,90)],f=q(m),x=h.path(f,c),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),b.attr("transform",`translate(${-d/2}, ${-t/2})`),T(e,b),e.intersect=function(k){return B.polygon(e,m,k)},a}w(Jt,"curvedTrapezoid");var Cl=w((r,e,l,n,a,s)=>[`M${r},${e+s}`,`a${a},${s} 0,0,0 ${l},0`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),Pl=w((r,e,l,n,a,s)=>[`M${r},${e+s}`,`M${r+l},${e+s}`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),Bl=w((r,e,l,n,a,s)=>[`M${r-l/2},${-n/2}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createInnerCylinderPathD");async function Yt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+e.padding,e.width??0),o=t/2,i=o/(2.5+t/50),h=Math.max(s.height+i+e.padding,e.height??0),c,{cssStyles:g}=e;if(e.look==="handDrawn"){let u=A.svg(a),p=Pl(0,0,t,h,o,i),y=Bl(0,i,t,h,o,i),m=u.path(p,N(e,{})),f=u.path(y,N(e,{fill:"none"}));c=a.insert(()=>f,":first-child"),c=a.insert(()=>m,":first-child"),c.attr("class","basic label-container"),g&&c.attr("style",g)}else{let u=Cl(0,0,t,h,o,i);c=a.insert("path",":first-child").attr("d",u).attr("class","basic label-container").attr("style",U(g)).attr("style",n)}return c.attr("label-offset-y",i),c.attr("transform",`translate(${-t/2}, ${-(h/2+i)})`),T(e,c),d.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(u){let p=B.rect(e,u),y=p.x-(e.x??0);if(o!=0&&(Math.abs(y)<(e.width??0)/2||Math.abs(y)==(e.width??0)/2&&Math.abs(p.y-(e.y??0))>(e.height??0)/2-i)){let m=i*i*(1-y*y/(o*o));m>0&&(m=Math.sqrt(m)),m=i-m,u.y-(e.y??0)>0&&(m=-m),p.y+=m}return p},a}w(Yt,"cylinder");async function Ut(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+e.padding,o=s.height+e.padding,i=o*.2,h=-t/2,c=-o/2-i/2,{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=[{x:h,y:c+i},{x:-h,y:c+i},{x:-h,y:-c},{x:h,y:-c},{x:h,y:c},{x:-h,y:c},{x:-h,y:c+i}],m=u.polygon(y.map(x=>[x.x,x.y]),p),f=a.insert(()=>m,":first-child");return f.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),d.attr("transform",`translate(${h+(e.padding??0)/2-(s.x-(s.left??0))}, ${c+i+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.rect(e,x)},a}w(Ut,"dividedRectangle");async function Kt(r,e){var c,g;let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,halfPadding:d}=await z(r,e,j(e)),t=s.width/2+d+5,o=s.width/2+d,i,{cssStyles:h}=e;if(e.look==="handDrawn"){let u=A.svg(a),p=N(e,{roughness:.2,strokeWidth:2.5}),y=N(e,{roughness:.2,strokeWidth:1.5}),m=u.circle(0,0,t*2,p),f=u.circle(0,0,o*2,y);i=a.insert("g",":first-child"),i.attr("class",U(e.cssClasses)).attr("style",U(h)),(c=i.node())==null||c.appendChild(m),(g=i.node())==null||g.appendChild(f)}else{i=a.insert("g",":first-child");let u=i.insert("circle",":first-child"),p=i.insert("circle");i.attr("class","basic label-container").attr("style",n),u.attr("class","outer-circle").attr("style",n).attr("r",t).attr("cx",0).attr("cy",0),p.attr("class","inner-circle").attr("style",n).attr("r",o).attr("cx",0).attr("cy",0)}return T(e,i),e.intersect=function(u){return V.info("DoubleCircle intersect",e,t,u),B.circle(e,t,u)},a}w(Kt,"doublecircle");function ea(r,e,{config:{themeVariables:l}}){let{labelStyles:n,nodeStyles:a}=R(e);e.label="",e.labelStyle=n;let s=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:d}=e,t=A.svg(s),{nodeBorder:o}=l,i=N(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(i.roughness=0);let h=t.circle(0,0,14,i),c=s.insert(()=>h,":first-child");return c.selectAll("path").attr("style",`fill: ${o} !important;`),d&&d.length>0&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",d),a&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",a),T(e,c),e.intersect=function(g){return V.info("filledCircle intersect",e,{radius:7,point:g}),B.circle(e,7,g)},s}w(ea,"filledCircle");async function ta(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+(e.padding??0),o=t+s.height,i=t+s.height,h=[{x:0,y:-o},{x:i,y:-o},{x:i/2,y:0}],{cssStyles:c}=e,g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=q(h),y=g.path(p,u),m=a.insert(()=>y,":first-child").attr("transform",`translate(${-o/2}, ${o/2})`);return c&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),n&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),e.width=t,e.height=o,T(e,m),d.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-o/2+(e.padding??0)/2+(s.y-(s.top??0))})`),e.intersect=function(f){return V.info("Triangle intersect",e,h,f),B.polygon(e,h,f)},a}w(ta,"flippedTriangle");function aa(r,e,{dir:l,config:{state:n,themeVariables:a}}){let{nodeStyles:s}=R(e);e.label="";let d=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:t}=e,o=Math.max(70,(e==null?void 0:e.width)??0),i=Math.max(10,(e==null?void 0:e.height)??0);l==="LR"&&(o=Math.max(10,(e==null?void 0:e.width)??0),i=Math.max(70,(e==null?void 0:e.height)??0));let h=-1*o/2,c=-1*i/2,g=A.svg(d),u=N(e,{stroke:a.lineColor,fill:a.lineColor});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=g.rectangle(h,c,o,i,u),y=d.insert(()=>p,":first-child");t&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",t),s&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",s),T(e,y);let m=(n==null?void 0:n.padding)??0;return e.width&&e.height&&(e.width+=m/2||0,e.height+=m/2||0),e.intersect=function(f){return B.rect(e,f)},d}w(aa,"forkJoin");async function la(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(80,s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(50,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=t/2,{cssStyles:i}=e,h=A.svg(a),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=[{x:-d/2,y:-t/2},{x:d/2-o,y:-t/2},...ve(-d/2+o,0,o,50,90,270),{x:d/2-o,y:t/2},{x:-d/2,y:t/2}],u=q(g),p=h.path(u,c),y=a.insert(()=>p,":first-child");return y.attr("class","basic label-container"),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),n&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),T(e,y),e.intersect=function(m){return V.info("Pill intersect",e,{radius:o,point:m}),B.polygon(e,g,m)},a}w(la,"halfRoundedRectangle");async function ra(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.height+(e.padding??0),t=s.width+(e.padding??0)*2.5,{cssStyles:o}=e,i=A.svg(a),h=N(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let c=t/2,g=c/6;c+=g;let u=d/2,p=u/2,y=c-p,m=[{x:-y,y:-u},{x:0,y:-u},{x:y,y:-u},{x:c,y:0},{x:y,y:u},{x:0,y:u},{x:-y,y:u},{x:-c,y:0}],f=q(m),x=i.path(f,h),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),o&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),e.width=t,e.height=d,T(e,b),e.intersect=function(k){return B.polygon(e,m,k)},a}w(ra,"hexagon");async function sa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.label="",e.labelStyle=l;let{shapeSvg:a}=await z(r,e,j(e)),s=Math.max(30,(e==null?void 0:e.width)??0),d=Math.max(30,(e==null?void 0:e.height)??0),{cssStyles:t}=e,o=A.svg(a),i=N(e,{});e.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let h=[{x:0,y:0},{x:s,y:0},{x:0,y:d},{x:s,y:d}],c=q(h),g=o.path(c,i),u=a.insert(()=>g,":first-child");return u.attr("class","basic label-container"),t&&e.look!=="handDrawn"&&u.selectChildren("path").attr("style",t),n&&e.look!=="handDrawn"&&u.selectChildren("path").attr("style",n),u.attr("transform",`translate(${-s/2}, ${-d/2})`),T(e,u),e.intersect=function(p){return V.info("Pill intersect",e,{points:h}),B.polygon(e,h,p)},a}w(sa,"hourglass");async function ia(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,label:c}=await z(r,e,"icon-shape default"),g=e.pos==="t",u=t,p=t,{nodeBorder:y}=l,{stylesMap:m}=Ae(e),f=-p/2,x=-u/2,b=e.label?8:0,k=A.svg(i),S=N(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let M=k.rectangle(f,x,p,u,S),C=Math.max(p,h.width),P=u+h.height+b,_=k.rectangle(-C/2,-P/2,C,P,{...S,fill:"transparent",stroke:"none"}),E=i.insert(()=>M,":first-child"),I=i.insert(()=>_);if(e.icon){let L=i.append("g");L.html(`<g>${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}</g>`);let v=L.node().getBBox(),$=v.width,D=v.height,O=v.x,W=v.y;L.attr("transform",`translate(${-$/2-O},${g?h.height/2+b/2-D/2-W:-h.height/2-b/2-D/2-W})`),L.attr("style",`color: ${m.get("stroke")??y};`)}return c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-P/2:P/2-h.height})`),E.attr("transform",`translate(0,${g?h.height/2+b/2:-h.height/2-b/2})`),T(e,I),e.intersect=function(L){if(V.info("iconSquare intersect",e,L),!e.label)return B.rect(e,L);let v=e.x??0,$=e.y??0,D=e.height??0,O=[];return O=g?[{x:v-h.width/2,y:$-D/2},{x:v+h.width/2,y:$-D/2},{x:v+h.width/2,y:$-D/2+h.height+b},{x:v+p/2,y:$-D/2+h.height+b},{x:v+p/2,y:$+D/2},{x:v-p/2,y:$+D/2},{x:v-p/2,y:$-D/2+h.height+b},{x:v-h.width/2,y:$-D/2+h.height+b}]:[{x:v-p/2,y:$-D/2},{x:v+p/2,y:$-D/2},{x:v+p/2,y:$-D/2+u},{x:v+h.width/2,y:$-D/2+u},{x:v+h.width/2/2,y:$+D/2},{x:v-h.width/2,y:$+D/2},{x:v-h.width/2,y:$-D/2+u},{x:v-p/2,y:$-D/2+u}],B.polygon(e,O,L)},i}w(ia,"icon");async function na(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,label:c}=await z(r,e,"icon-shape default"),g=e.label?8:0,u=e.pos==="t",{nodeBorder:p,mainBkg:y}=l,{stylesMap:m}=Ae(e),f=A.svg(i),x=N(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid"),x.stroke=m.get("fill")??y;let b=i.append("g");e.icon&&b.html(`<g>${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}</g>`);let k=b.node().getBBox(),S=k.width,M=k.height,C=k.x,P=k.y,_=Math.max(S,M)*Math.SQRT2+40,E=f.circle(0,0,_,x),I=Math.max(_,h.width),L=_+h.height+g,v=f.rectangle(-I/2,-L/2,I,L,{...x,fill:"transparent",stroke:"none"}),$=i.insert(()=>E,":first-child"),D=i.insert(()=>v);return b.attr("transform",`translate(${-S/2-C},${u?h.height/2+g/2-M/2-P:-h.height/2-g/2-M/2-P})`),b.attr("style",`color: ${m.get("stroke")??p};`),c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${u?-L/2:L/2-h.height})`),$.attr("transform",`translate(0,${u?h.height/2+g/2:-h.height/2-g/2})`),T(e,D),e.intersect=function(O){return V.info("iconSquare intersect",e,O),B.rect(e,O)},i}w(na,"iconCircle");async function ha(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,halfPadding:c,label:g}=await z(r,e,"icon-shape default"),u=e.pos==="t",p=t+c*2,y=t+c*2,{nodeBorder:m,mainBkg:f}=l,{stylesMap:x}=Ae(e),b=-y/2,k=-p/2,S=e.label?8:0,M=A.svg(i),C=N(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid"),C.stroke=x.get("fill")??f;let P=M.path(ge(b,k,y,p,5),C),_=Math.max(y,h.width),E=p+h.height+S,I=M.rectangle(-_/2,-E/2,_,E,{...C,fill:"transparent",stroke:"none"}),L=i.insert(()=>P,":first-child").attr("class","icon-shape2"),v=i.insert(()=>I);if(e.icon){let $=i.append("g");$.html(`<g>${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}</g>`);let D=$.node().getBBox(),O=D.width,W=D.height,X=D.x,te=D.y;$.attr("transform",`translate(${-O/2-X},${u?h.height/2+S/2-W/2-te:-h.height/2-S/2-W/2-te})`),$.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${u?-E/2:E/2-h.height})`),L.attr("transform",`translate(0,${u?h.height/2+S/2:-h.height/2-S/2})`),T(e,v),e.intersect=function($){if(V.info("iconSquare intersect",e,$),!e.label)return B.rect(e,$);let D=e.x??0,O=e.y??0,W=e.height??0,X=[];return X=u?[{x:D-h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2+h.height+S},{x:D+y/2,y:O-W/2+h.height+S},{x:D+y/2,y:O+W/2},{x:D-y/2,y:O+W/2},{x:D-y/2,y:O-W/2+h.height+S},{x:D-h.width/2,y:O-W/2+h.height+S}]:[{x:D-y/2,y:O-W/2},{x:D+y/2,y:O-W/2},{x:D+y/2,y:O-W/2+p},{x:D+h.width/2,y:O-W/2+p},{x:D+h.width/2/2,y:O+W/2},{x:D-h.width/2,y:O+W/2},{x:D-h.width/2,y:O-W/2+p},{x:D-y/2,y:O-W/2+p}],B.polygon(e,X,$)},i}w(ha,"iconRounded");async function oa(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,halfPadding:c,label:g}=await z(r,e,"icon-shape default"),u=e.pos==="t",p=t+c*2,y=t+c*2,{nodeBorder:m,mainBkg:f}=l,{stylesMap:x}=Ae(e),b=-y/2,k=-p/2,S=e.label?8:0,M=A.svg(i),C=N(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid"),C.stroke=x.get("fill")??f;let P=M.path(ge(b,k,y,p,.1),C),_=Math.max(y,h.width),E=p+h.height+S,I=M.rectangle(-_/2,-E/2,_,E,{...C,fill:"transparent",stroke:"none"}),L=i.insert(()=>P,":first-child"),v=i.insert(()=>I);if(e.icon){let $=i.append("g");$.html(`<g>${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}</g>`);let D=$.node().getBBox(),O=D.width,W=D.height,X=D.x,te=D.y;$.attr("transform",`translate(${-O/2-X},${u?h.height/2+S/2-W/2-te:-h.height/2-S/2-W/2-te})`),$.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${u?-E/2:E/2-h.height})`),L.attr("transform",`translate(0,${u?h.height/2+S/2:-h.height/2-S/2})`),T(e,v),e.intersect=function($){if(V.info("iconSquare intersect",e,$),!e.label)return B.rect(e,$);let D=e.x??0,O=e.y??0,W=e.height??0,X=[];return X=u?[{x:D-h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2+h.height+S},{x:D+y/2,y:O-W/2+h.height+S},{x:D+y/2,y:O+W/2},{x:D-y/2,y:O+W/2},{x:D-y/2,y:O-W/2+h.height+S},{x:D-h.width/2,y:O-W/2+h.height+S}]:[{x:D-y/2,y:O-W/2},{x:D+y/2,y:O-W/2},{x:D+y/2,y:O-W/2+p},{x:D+h.width/2,y:O-W/2+p},{x:D+h.width/2/2,y:O+W/2},{x:D-h.width/2,y:O+W/2},{x:D-h.width/2,y:O-W/2+p},{x:D-y/2,y:O-W/2+p}],B.polygon(e,X,$)},i}w(oa,"iconSquare");async function da(r,e,{config:{flowchart:l}}){let n=new Image;n.src=(e==null?void 0:e.img)??"",await n.decode();let a=Number(n.naturalWidth.toString().replace("px","")),s=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/s;let{labelStyles:d}=R(e);e.labelStyle=d;let t=l==null?void 0:l.wrappingWidth;e.defaultWidth=l==null?void 0:l.wrappingWidth;let o=Math.max(e.label?t??0:0,(e==null?void 0:e.assetWidth)??a),i=e.constraint==="on"&&(e!=null&&e.assetHeight)?e.assetHeight*e.imageAspectRatio:o,h=e.constraint==="on"?i/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??s;e.width=Math.max(i,t??0);let{shapeSvg:c,bbox:g,label:u}=await z(r,e,"image-shape default"),p=e.pos==="t",y=-i/2,m=-h/2,f=e.label?8:0,x=A.svg(c),b=N(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=x.rectangle(y,m,i,h,b),S=Math.max(i,g.width),M=h+g.height+f,C=x.rectangle(-S/2,-M/2,S,M,{...b,fill:"none",stroke:"none"}),P=c.insert(()=>k,":first-child"),_=c.insert(()=>C);if(e.img){let E=c.append("image");E.attr("href",e.img),E.attr("width",i),E.attr("height",h),E.attr("preserveAspectRatio","none"),E.attr("transform",`translate(${-i/2},${p?M/2-h:-M/2})`)}return u.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${p?-h/2-g.height/2-f/2:h/2-g.height/2+f/2})`),P.attr("transform",`translate(0,${p?g.height/2+f/2:-g.height/2-f/2})`),T(e,_),e.intersect=function(E){if(V.info("iconSquare intersect",e,E),!e.label)return B.rect(e,E);let I=e.x??0,L=e.y??0,v=e.height??0,$=[];return $=p?[{x:I-g.width/2,y:L-v/2},{x:I+g.width/2,y:L-v/2},{x:I+g.width/2,y:L-v/2+g.height+f},{x:I+i/2,y:L-v/2+g.height+f},{x:I+i/2,y:L+v/2},{x:I-i/2,y:L+v/2},{x:I-i/2,y:L-v/2+g.height+f},{x:I-g.width/2,y:L-v/2+g.height+f}]:[{x:I-i/2,y:L-v/2},{x:I+i/2,y:L-v/2},{x:I+i/2,y:L-v/2+h},{x:I+g.width/2,y:L-v/2+h},{x:I+g.width/2/2,y:L+v/2},{x:I-g.width/2,y:L+v/2},{x:I-g.width/2,y:L-v/2+h},{x:I-i/2,y:L-v/2+h}],B.polygon(e,$,E)},c}w(da,"imageSquare");async function ca(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=[{x:0,y:0},{x:d,y:0},{x:d+3*t/6,y:-t},{x:-3*t/6,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(ca,"inv_trapezoid");async function qe(r,e,l){let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n;let{shapeSvg:s,bbox:d}=await z(r,e,j(e)),t=Math.max(d.width+l.labelPaddingX*2,(e==null?void 0:e.width)||0),o=Math.max(d.height+l.labelPaddingY*2,(e==null?void 0:e.height)||0),i=-t/2,h=-o/2,c,{rx:g,ry:u}=e,{cssStyles:p}=e;if(l!=null&&l.rx&&l.ry&&(g=l.rx,u=l.ry),e.look==="handDrawn"){let y=A.svg(s),m=N(e,{}),f=g||u?y.path(ge(i,h,t,o,g||0),m):y.rectangle(i,h,t,o,m);c=s.insert(()=>f,":first-child"),c.attr("class","basic label-container").attr("style",U(p))}else c=s.insert("rect",":first-child"),c.attr("class","basic label-container").attr("style",a).attr("rx",U(g)).attr("ry",U(u)).attr("x",i).attr("y",h).attr("width",t).attr("height",o);return T(e,c),e.calcIntersect=function(y,m){return B.rect(y,m)},e.intersect=function(y){return B.rect(e,y)},s}w(qe,"drawRect");async function ga(r,e){let{shapeSvg:l,bbox:n,label:a}=await z(r,e,"label"),s=l.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),l.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),T(e,s),e.intersect=function(d){return B.rect(e,d)},l}w(ga,"labelRect");async function ua(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),o=[{x:0,y:0},{x:d+3*t/6,y:0},{x:d,y:-t},{x:-(3*t)/6,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(ua,"lean_left");async function pa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),o=[{x:-3*t/6,y:0},{x:d,y:0},{x:d+3*t/6,y:-t},{x:0,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(pa,"lean_right");function ya(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.label="",e.labelStyle=l;let a=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,d=Math.max(35,(e==null?void 0:e.width)??0),t=Math.max(35,(e==null?void 0:e.height)??0),o=[{x:d,y:0},{x:0,y:t+7/2},{x:d-14,y:t+7/2},{x:0,y:2*t},{x:d,y:t-7/2},{x:14,y:t-7/2}],i=A.svg(a),h=N(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let c=q(o),g=i.path(c,h),u=a.insert(()=>g,":first-child");return s&&e.look!=="handDrawn"&&u.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&u.selectAll("path").attr("style",n),u.attr("transform",`translate(-${d/2},${-t})`),T(e,u),e.intersect=function(p){return V.info("lightningBolt intersect",e,p),B.polygon(e,o,p)},a}w(ya,"lightningBolt");var Al=w((r,e,l,n,a,s,d)=>[`M${r},${e+s}`,`a${a},${s} 0,0,0 ${l},0`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`,`M${r},${e+s+d}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createCylinderPathD"),Ll=w((r,e,l,n,a,s,d)=>[`M${r},${e+s}`,`M${r+l},${e+s}`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`,`M${r},${e+s+d}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createOuterCylinderPathD"),Nl=w((r,e,l,n,a,s)=>[`M${r-l/2},${-n/2}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createInnerCylinderPathD");async function fa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0),e.width??0),o=t/2,i=o/(2.5+t/50),h=Math.max(s.height+i+(e.padding??0),e.height??0),c=h*.1,g,{cssStyles:u}=e;if(e.look==="handDrawn"){let p=A.svg(a),y=Ll(0,0,t,h,o,i,c),m=Nl(0,i,t,h,o,i),f=N(e,{}),x=p.path(y,f),b=p.path(m,f);a.insert(()=>b,":first-child").attr("class","line"),g=a.insert(()=>x,":first-child"),g.attr("class","basic label-container"),u&&g.attr("style",u)}else{let p=Al(0,0,t,h,o,i,c);g=a.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",U(u)).attr("style",n)}return g.attr("label-offset-y",i),g.attr("transform",`translate(${-t/2}, ${-(h/2+i)})`),T(e,g),d.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+i-(s.y-(s.top??0))})`),e.intersect=function(p){let y=B.rect(e,p),m=y.x-(e.x??0);if(o!=0&&(Math.abs(m)<(e.width??0)/2||Math.abs(m)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-i)){let f=i*i*(1-m*m/(o*o));f>0&&(f=Math.sqrt(f)),f=i-f,p.y-(e.y??0)>0&&(f=-f),y.y+=f}return y},a}w(fa,"linedCylinder");async function ma(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/4,h=o+i,{cssStyles:c}=e,g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=[{x:-t/2-t/2*.1,y:-h/2},{x:-t/2-t/2*.1,y:h/2},...ce(-t/2-t/2*.1,h/2,t/2+t/2*.1,h/2,i,.8),{x:t/2+t/2*.1,y:-h/2},{x:-t/2-t/2*.1,y:-h/2},{x:-t/2,y:-h/2},{x:-t/2,y:h/2*1.1},{x:-t/2,y:-h/2}],y=g.polygon(p.map(f=>[f.x,f.y]),u),m=a.insert(()=>y,":first-child");return m.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-t/2+(e.padding??0)+t/2*.1/2-(s.x-(s.left??0))},${-o/2+(e.padding??0)-i/2-(s.y-(s.top??0))})`),T(e,m),e.intersect=function(f){return B.polygon(e,p,f)},a}w(ma,"linedWaveEdgedRect");async function xa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,{cssStyles:c}=e,g=A.svg(a),u=N(e,{}),p=[{x:i-5,y:h+5},{x:i-5,y:h+o+5},{x:i+t-5,y:h+o+5},{x:i+t-5,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h+o-5},{x:i+t+5,y:h+o-5},{x:i+t+5,y:h-5},{x:i+5,y:h-5},{x:i+5,y:h},{x:i,y:h},{x:i,y:h+5}],y=[{x:i,y:h+5},{x:i+t-5,y:h+5},{x:i+t-5,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h},{x:i,y:h}];e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=q(p),f=g.path(m,u),x=q(y),b=g.path(x,{...u,fill:"none"}),k=a.insert(()=>b,":first-child");return k.insert(()=>f,":first-child"),k.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(s.width/2)-5-(s.x-(s.left??0))}, ${-(s.height/2)+5-(s.y-(s.top??0))})`),T(e,k),e.intersect=function(S){return B.polygon(e,p,S)},a}w(xa,"multiRect");async function ba(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/4,h=o+i,c=-t/2,g=-h/2,{cssStyles:u}=e,p=ce(c-5,g+h+5,c+t-5,g+h+5,i,.8),y=p==null?void 0:p[p.length-1],m=[{x:c-5,y:g+5},{x:c-5,y:g+h+5},...p,{x:c+t-5,y:y.y-5},{x:c+t,y:y.y-5},{x:c+t,y:y.y-10},{x:c+t+5,y:y.y-10},{x:c+t+5,y:g-5},{x:c+5,y:g-5},{x:c+5,y:g},{x:c,y:g},{x:c,y:g+5}],f=[{x:c,y:g+5},{x:c+t-5,y:g+5},{x:c+t-5,y:y.y-5},{x:c+t,y:y.y-5},{x:c+t,y:g},{x:c,y:g}],x=A.svg(a),b=N(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=q(m),S=x.path(k,b),M=q(f),C=x.path(M,b),P=a.insert(()=>S,":first-child");return P.insert(()=>C),P.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-(s.width/2)-5-(s.x-(s.left??0))}, ${-(s.height/2)+5-i/2-(s.y-(s.top??0))})`),T(e,P),e.intersect=function(_){return B.polygon(e,m,_)},a}w(ba,"multiWaveEdgedRectangle");async function wa(r,e,{config:{themeVariables:l}}){var f;let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n,e.useHtmlLabels||((f=Se().flowchart)==null?void 0:f.htmlLabels)!==!1||(e.centerLabel=!0);let{shapeSvg:s,bbox:d,label:t}=await z(r,e,j(e)),o=Math.max(d.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),i=Math.max(d.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-o/2,c=-i/2,{cssStyles:g}=e,u=A.svg(s),p=N(e,{fill:l.noteBkgColor,stroke:l.noteBorderColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=u.rectangle(h,c,o,i,p),m=s.insert(()=>y,":first-child");return m.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",g),a&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",a),t.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),T(e,m),e.intersect=function(x){return B.rect(e,x)},s}w(wa,"note");var Tl=w((r,e,l)=>[`M${r+l/2},${e}`,`L${r+l},${e-l/2}`,`L${r+l/2},${e-l}`,`L${r},${e-l/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Sa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.width+e.padding+(s.height+e.padding),t=.5,o=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=Tl(0,0,d),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2+t}, ${d/2})`),h&&i.attr("style",h)}else i=ue(a,d,d,o),i.attr("transform",`translate(${-d/2+t}, ${d/2})`);return n&&i.attr("style",n),T(e,i),e.calcIntersect=function(c,g){let u=c.width,p=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],y=B.polygon(c,p,g);return{x:y.x-.5,y:y.y-.5}},e.intersect=function(c){return this.calcIntersect(e,c)},a}w(Sa,"question");async function ka(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,c=h/2,g=[{x:i+c,y:h},{x:i,y:0},{x:i+c,y:-h},{x:-i,y:-h},{x:-i,y:h}],{cssStyles:u}=e,p=A.svg(a),y=N(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=q(g),f=p.path(m,y),x=a.insert(()=>f,":first-child");return x.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${-c/2},0)`),d.attr("transform",`translate(${-c/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(e,x),e.intersect=function(b){return B.polygon(e,g,b)},a}w(ka,"rect_left_inv_arrow");async function $a(r,e){var P,_;let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let a;a=e.cssClasses?"node "+e.cssClasses:"node default";let s=r.insert("g").attr("class",a).attr("id",e.domId||e.id),d=s.insert("g"),t=s.insert("g").attr("class","label").attr("style",n),o=e.description,i=e.label,h=t.node().appendChild(await ze(i,e.labelStyle,!0,!0)),c={width:0,height:0};if(Y((_=(P=Z())==null?void 0:P.flowchart)==null?void 0:_.htmlLabels)){let E=h.children[0],I=Q(h);c=E.getBoundingClientRect(),I.attr("width",c.width),I.attr("height",c.height)}V.info("Text 2",o);let g=o||[],u=h.getBBox(),p=t.node().appendChild(await ze(g.join?g.join("<br/>"):g,e.labelStyle,!0,!0)),y=p.children[0],m=Q(p);c=y.getBoundingClientRect(),m.attr("width",c.width),m.attr("height",c.height);let f=(e.padding||0)/2;Q(p).attr("transform","translate( "+(c.width>u.width?0:(u.width-c.width)/2)+", "+(u.height+f+5)+")"),Q(h).attr("transform","translate( "+(c.width<u.width?0:-(u.width-c.width)/2)+", 0)"),c=t.node().getBBox(),t.attr("transform","translate("+-c.width/2+", "+(-c.height/2-f+3)+")");let x=c.width+(e.padding||0),b=c.height+(e.padding||0),k=-c.width/2-f,S=-c.height/2-f,M,C;if(e.look==="handDrawn"){let E=A.svg(s),I=N(e,{}),L=E.path(ge(k,S,x,b,e.rx||0),I),v=E.line(-c.width/2-f,-c.height/2-f+u.height+f,c.width/2+f,-c.height/2-f+u.height+f,I);C=s.insert(()=>(V.debug("Rough node insert CXC",L),v),":first-child"),M=s.insert(()=>(V.debug("Rough node insert CXC",L),L),":first-child")}else M=d.insert("rect",":first-child"),C=d.insert("line"),M.attr("class","outer title-state").attr("style",n).attr("x",-c.width/2-f).attr("y",-c.height/2-f).attr("width",c.width+(e.padding||0)).attr("height",c.height+(e.padding||0)),C.attr("class","divider").attr("x1",-c.width/2-f).attr("x2",c.width/2+f).attr("y1",-c.height/2-f+u.height+f).attr("y2",-c.height/2-f+u.height+f);return T(e,M),e.intersect=function(E){return B.rect(e,E)},s}w($a,"rectWithTitle");function De(r,e,l,n,a,s,d){let t=(r+l)/2,o=(e+n)/2,i=Math.atan2(n-e,l-r),h=(l-r)/2,c=(n-e)/2,g=h/a,u=c/s,p=Math.sqrt(g**2+u**2);if(p>1)throw Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-p**2),m=t+y*s*Math.sin(i)*(d?-1:1),f=o-y*a*Math.cos(i)*(d?-1:1),x=Math.atan2((e-f)/s,(r-m)/a),b=Math.atan2((n-f)/s,(l-m)/a)-x;d&&b<0&&(b+=2*Math.PI),!d&&b>0&&(b-=2*Math.PI);let k=[];for(let S=0;S<20;S++){let M=x+S/19*b,C=m+a*Math.cos(M),P=f+s*Math.sin(M);k.push({x:C,y:P})}return k}w(De,"generateArcPoints");async function Ma(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=(e==null?void 0:e.padding)??0,t=(e==null?void 0:e.padding)??0,o=(e!=null&&e.width?e==null?void 0:e.width:s.width)+d*2,i=(e!=null&&e.height?e==null?void 0:e.height:s.height)+t*2,h=e.radius||5,c=e.taper||5,{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.stroke&&(p.stroke=e.stroke),e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=[{x:-o/2+c,y:-i/2},{x:o/2-c,y:-i/2},...De(o/2-c,-i/2,o/2,-i/2+c,h,h,!0),{x:o/2,y:-i/2+c},{x:o/2,y:i/2-c},...De(o/2,i/2-c,o/2-c,i/2,h,h,!0),{x:o/2-c,y:i/2},{x:-o/2+c,y:i/2},...De(-o/2+c,i/2,-o/2,i/2-c,h,h,!0),{x:-o/2,y:i/2-c},{x:-o/2,y:-i/2+c},...De(-o/2,-i/2+c,-o/2+c,-i/2,h,h,!0)],m=q(y),f=u.path(m,p),x=a.insert(()=>f,":first-child");return x.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),T(e,x),e.intersect=function(b){return B.polygon(e,y,b)},a}w(Ma,"roundedRect");async function va(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=(e==null?void 0:e.padding)??0,o=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),i=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-s.width/2-t,c=-s.height/2-t,{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=[{x:h,y:c},{x:h+o+8,y:c},{x:h+o+8,y:c+i},{x:h-8,y:c+i},{x:h-8,y:c},{x:h,y:c},{x:h,y:c+i}],m=u.polygon(y.map(x=>[x.x,x.y]),p),f=a.insert(()=>m,":first-child");return f.attr("class","basic label-container").attr("style",U(g)),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),g&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),d.attr("transform",`translate(${-o/2+4+(e.padding??0)-(s.x-(s.left??0))},${-i/2+(e.padding??0)-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.rect(e,x)},a}w(va,"shadedProcess");async function Da(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,{cssStyles:c}=e,g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=[{x:i,y:h},{x:i,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h-o/2}],y=q(p),m=g.path(y,u),f=a.insert(()=>m,":first-child");return f.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&f.selectChildren("path").attr("style",c),n&&e.look!=="handDrawn"&&f.selectChildren("path").attr("style",n),f.attr("transform",`translate(0, ${o/4})`),d.attr("transform",`translate(${-t/2+(e.padding??0)-(s.x-(s.left??0))}, ${-o/4+(e.padding??0)-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.polygon(e,p,x)},a}w(Da,"slopedRect");async function Ca(r,e){return qe(r,e,{rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??((e==null?void 0:e.padding)||0)*2,labelPaddingY:((e==null?void 0:e.padding)||0)*1})}w(Ca,"squareRect");async function Pa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.height+e.padding,t=s.width+d/4+e.padding,o=d/2,{cssStyles:i}=e,h=A.svg(a),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=[{x:-t/2+o,y:-d/2},{x:t/2-o,y:-d/2},...ve(-t/2+o,0,o,50,90,270),{x:t/2-o,y:d/2},...ve(t/2-o,0,o,50,270,450)],u=q(g),p=h.path(u,c),y=a.insert(()=>p,":first-child");return y.attr("class","basic label-container outer-path"),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),n&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),T(e,y),e.intersect=function(m){return B.polygon(e,g,m)},a}w(Pa,"stadium");async function Ba(r,e){return qe(r,e,{rx:5,ry:5,classes:"flowchart-node"})}w(Ba,"state");function Aa(r,e,{config:{themeVariables:l}}){let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n;let{cssStyles:s}=e,{lineColor:d,stateBorder:t,nodeBorder:o}=l,i=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),h=A.svg(i),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=h.circle(0,0,14,{...c,stroke:d,strokeWidth:2}),u=t??o,p=h.circle(0,0,5,{...c,fill:u,stroke:u,strokeWidth:2,fillStyle:"solid"}),y=i.insert(()=>g,":first-child");return y.insert(()=>p),s&&y.selectAll("path").attr("style",s),a&&y.selectAll("path").attr("style",a),T(e,y),e.intersect=function(m){return B.circle(e,7,m)},i}w(Aa,"stateEnd");function La(r,e,{config:{themeVariables:l}}){let{lineColor:n}=l,a=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),s;if(e.look==="handDrawn"){let d=A.svg(a).circle(0,0,14,rl(n));s=a.insert(()=>d),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return T(e,s),e.intersect=function(d){return B.circle(e,7,d)},a}w(La,"stateStart");async function Na(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=((e==null?void 0:e.padding)||0)/2,t=s.width+e.padding,o=s.height+e.padding,i=-s.width/2-d,h=-s.height/2-d,c=[{x:0,y:0},{x:t,y:0},{x:t,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:t+8,y:0},{x:t+8,y:-o},{x:-8,y:-o},{x:-8,y:0}];if(e.look==="handDrawn"){let g=A.svg(a),u=N(e,{}),p=g.rectangle(i-8,h,t+16,o,u),y=g.line(i,h,i,h+o,u),m=g.line(i+t,h,i+t,h+o,u);a.insert(()=>y,":first-child"),a.insert(()=>m,":first-child");let f=a.insert(()=>p,":first-child"),{cssStyles:x}=e;f.attr("class","basic label-container").attr("style",U(x)),T(e,f)}else{let g=ue(a,t,o,c);n&&g.attr("style",n),T(e,g)}return e.intersect=function(g){return B.polygon(e,c,g)},a}w(Na,"subroutine");async function Ta(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=-d/2,i=-t/2,h=.2*t,c=.2*t,{cssStyles:g}=e,u=A.svg(a),p=N(e,{}),y=[{x:o-h/2,y:i},{x:o+d+h/2,y:i},{x:o+d+h/2,y:i+t},{x:o-h/2,y:i+t}],m=[{x:o+d-h/2,y:i+t},{x:o+d+h/2,y:i+t},{x:o+d+h/2,y:i+t-c}];e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let f=q(y),x=u.path(f,p),b=q(m),k=u.path(b,{...p,fillStyle:"solid"}),S=a.insert(()=>k,":first-child");return S.insert(()=>x,":first-child"),S.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),T(e,S),e.intersect=function(M){return B.polygon(e,y,M)},a}w(Ta,"taggedRect");async function Ra(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/4,h=.2*t,c=.2*o,g=o+i,{cssStyles:u}=e,p=A.svg(a),y=N(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=[{x:-t/2-t/2*.1,y:g/2},...ce(-t/2-t/2*.1,g/2,t/2+t/2*.1,g/2,i,.8),{x:t/2+t/2*.1,y:-g/2},{x:-t/2-t/2*.1,y:-g/2}],f=-t/2+t/2*.1,x=-g/2-c*.4,b=[{x:f+t-h,y:(x+o)*1.4},{x:f+t,y:x+o-c},{x:f+t,y:(x+o)*.9},...ce(f+t,(x+o)*1.3,f+t-h,(x+o)*1.5,-o*.03,.5)],k=q(m),S=p.path(k,y),M=q(b),C=p.path(M,{...y,fillStyle:"solid"}),P=a.insert(()=>C,":first-child");return P.insert(()=>S,":first-child"),P.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-t/2+(e.padding??0)-(s.x-(s.left??0))},${-o/2+(e.padding??0)-i/2-(s.y-(s.top??0))})`),T(e,P),e.intersect=function(_){return B.polygon(e,m,_)},a}w(Ra,"taggedWaveEdgedRectangle");async function _a(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+e.padding,(e==null?void 0:e.width)||0),t=Math.max(s.height+e.padding,(e==null?void 0:e.height)||0),o=-d/2,i=-t/2,h=a.insert("rect",":first-child");return h.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",o).attr("y",i).attr("width",d).attr("height",t),T(e,h),e.intersect=function(c){return B.rect(e,c)},a}w(_a,"text");var Rl=w((r,e,l,n,a,s)=>`M${r},${e}
|
|
4
4
|
a${a},${s} 0,0,1 0,${-n}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-6UL2VRFP-
|
|
2
|
-
import{t as n}from"./preload-helper-BW0IMuFq.js";import{d as _}from"./chunk-S3R3BYOJ-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-6UL2VRFP-BMUVLJmR.js","./dist-BA8xhrl2.js","./chunk-LvLJmgfZ.js","./chunk-JA3XYJ7Z-DlG5XxD_.js","./src-faGJHwXX.js","./src-lcGySDV2.js","./timer-BEJidwwG.js","./chunk-S3R3BYOJ-CAG3u58l.js","./step-D7xg1Moj.js","./math-B-ZqhQTL.js","./chunk-ABZYJK2D-B1_MYIJC.js","./preload-helper-BW0IMuFq.js","./purify.es-N-2faAGj.js","./merge-BBX6ug-N.js","./_Uint8Array-BGESiCQL.js","./_baseFor-Duhs3RiJ.js","./memoize-DN0TMY36.js","./marked.esm-CHnOtnr3.js","./dagre-B0xEvXH8.js","./graphlib-Dtxn1kuc.js","./_getTag-BWqNuuwU.js","./_baseIsEqual-Cz9Tt_-E.js","./reduce-NgiHP_CR.js","./_arrayReduce-bZBYsK-u.js","./_baseEach-BH6a1vAB.js","./get-CyLJYAfP.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./hasIn-DydgU7lx.js","./_baseProperty-DuoFhI7N.js","./_baseUniq-CsutM-S0.js","./_baseFlatten-CLPh0yMf.js","./isEmpty-DIxUV1UR.js","./min-BgkyNW2f.js","./_baseMap-DCtSqKLi.js","./sortBy-Bdnw8bdS.js","./pick-DeQioq0G.js","./_baseSet-6FYvpjrm.js","./flatten-Buk63LQO.js","./range-sshwVRcP.js","./toInteger-CDcO32Gx.js","./now-6sUe0ZdD.js","./_hasUnicode-zBEpxwYe.js","./isString-CqoLqJdS.js","./clone-o2k1NhhT.js","./chunk-ATLVNIR6-0QlrKyOY.js","./chunk-CVBHYZKI-B6tT645I.js","./chunk-HN2XXSSU-xW6J7MXn.js","./chunk-JZLCHNYA-CflvMvb-.js","./chunk-QXUST7PY-DS-Qo1sM.js","./line-x4bpd_8D.js","./path-DvTahePH.js","./array-CC7vZNGO.js","./cose-bilkent-S5V4N54A-gby0fxw7.js","./cytoscape.esm-CiNp3hmz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as n}from"./preload-helper-BW0IMuFq.js";import{d as _}from"./chunk-S3R3BYOJ-CAG3u58l.js";import{n as e,r as s}from"./src-faGJHwXX.js";import{s as d,y as u,__tla as h}from"./chunk-ABZYJK2D-B1_MYIJC.js";import{a as y,i as f,s as p}from"./chunk-JZLCHNYA-CflvMvb-.js";import{a as c,i as L,n as w,r as E}from"./chunk-QXUST7PY-DS-Qo1sM.js";let o,m,g,b=Promise.all([(()=>{try{return h}catch{}})()]).then(async()=>{let i,t;i={common:d,getConfig:u,insertCluster:f,insertEdge:w,insertEdgeLabel:E,insertMarkers:L,insertNode:y,interpolateToCurve:_,labelHelper:p,log:s,positionEdgeLabel:c},t={},o=e(r=>{for(let a of r)t[a.name]=a},"registerLayoutLoaders"),e(()=>{o([{name:"dagre",loader:e(async()=>await n(()=>import("./dagre-6UL2VRFP-BMUVLJmR.js").then(async r=>(await r.__tla,r)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url),"loader")},{name:"cose-bilkent",loader:e(async()=>await n(()=>import("./cose-bilkent-S5V4N54A-gby0fxw7.js").then(async r=>(await r.__tla,r)),__vite__mapDeps([53,54,4,2,5,6]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders")(),m=e(async(r,a)=>{if(!(r.layoutAlgorithm in t))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let l=t[r.layoutAlgorithm];return(await l.loader()).render(r,a,i,{algorithm:l.algorithm})},"render"),g=e((r="",{fallback:a="dagre"}={})=>{if(r in t)return r;if(a in t)return s.warn(`Layout algorithm ${r} is not registered. Using ${a} as fallback.`),a;throw Error(`Both layout algorithms ${r} and ${a} are not registered.`)},"getRegisteredLayoutAlgorithm")});export{b as __tla,o as n,m as r,g as t};
|