@tickernelz/paperclip-pro-ui 2026.925.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/announcement-preview.svg +11 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/AgentAvatar-BR1Z_L_Z.js +1 -0
- package/dist/assets/AgentIdentity-BgihkjQU.js +1 -0
- package/dist/assets/Agents.production-BsKiBknO.js +2 -0
- package/dist/assets/CompanyActivity.production-Bp4gxpq3.js +1 -0
- package/dist/assets/CompanyExport-BvUhFYBr.js +4 -0
- package/dist/assets/CompanySkills.production-htb9HH0N.js +10 -0
- package/dist/assets/Costs.production-CzulNW6Y.js +1 -0
- package/dist/assets/EmptyState-DOb3I5aU.js +1 -0
- package/dist/assets/MarkdownBody-AdwNLx7A.js +16 -0
- package/dist/assets/MarkdownEditor-B3NYD32f.js +85 -0
- package/dist/assets/OrgChart.production-DbBigpMZ.js +1 -0
- package/dist/assets/PageSkeleton-C-C3Xlc_.js +1 -0
- package/dist/assets/RoutineDetail.production-DJn3YZiR.js +1 -0
- package/dist/assets/RoutineRunVariablesDialog-BkLLbP3a.js +5 -0
- package/dist/assets/Routines.production-BBDkh1yN.js +1 -0
- package/dist/assets/SidebarContext-9UFQ2Pex.js +1 -0
- package/dist/assets/StatusIcon-DMDp_WJw.js +1 -0
- package/dist/assets/abnfDiagram-VCTEODGH-wiE_K2ku.js +1 -0
- package/dist/assets/agents-DrLpWAcm.js +1 -0
- package/dist/assets/apl-MHzTCvfx.js +1 -0
- package/dist/assets/arc-BQ55EiX2.js +1 -0
- package/dist/assets/architecture-7GRP2DOG-B-bRgmfI.js +1 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-BkhBoP5_.js +36 -0
- package/dist/assets/array-CL5Tisss.js +1 -0
- package/dist/assets/asciiarmor-DFLNSgns.js +1 -0
- package/dist/assets/asn1-CfPVWRYE.js +1 -0
- package/dist/assets/asterisk-CJ4OeA7Y.js +1 -0
- package/dist/assets/badge-BLr1M3ne.js +1 -0
- package/dist/assets/blockDiagram-I7D4REHJ-fyVn7r-9.js +129 -0
- package/dist/assets/bot-CET4VfU-.js +1 -0
- package/dist/assets/brainfuck-NEHkmXMc.js +1 -0
- package/dist/assets/button-DCI8NFig.js +1 -0
- package/dist/assets/c4Diagram-7LVT6UL2-BqC3qTZS.js +38 -0
- package/dist/assets/card-BD8MkPAL.js +1 -0
- package/dist/assets/channel-0B5iAV5A.js +1 -0
- package/dist/assets/character-CguPM7IG.js +1 -0
- package/dist/assets/check-C6myARng.js +1 -0
- package/dist/assets/checkbox-CmYq-YMP.js +1 -0
- package/dist/assets/chevron-down-D2wNtbQf.js +1 -0
- package/dist/assets/chevron-right-CU6xIk8W.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-CkPHWFj-.js +1 -0
- package/dist/assets/chunk-4HAMMTFA-CGGd_Pxz.js +62 -0
- package/dist/assets/chunk-5VM5RSS4-2H3r6wq0.js +15 -0
- package/dist/assets/chunk-75Z2AOVW-BaPl5WA6.js +2 -0
- package/dist/assets/chunk-DU6HZSFF-2P5iNHqg.js +127 -0
- package/dist/assets/chunk-F27PBJKO-Ci7GmRgM.js +1 -0
- package/dist/assets/chunk-FOHPRMQF-7Ogwfo6e.js +153 -0
- package/dist/assets/chunk-GMAD6QVW-BfvaaEBW.js +70 -0
- package/dist/assets/chunk-GVQU2GXP-Cwp_Wpj2.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-BjXu-u1C.js +231 -0
- package/dist/assets/chunk-JWPE2WC7--HEGjv3t.js +1 -0
- package/dist/assets/chunk-L3NEJ4N5-JUd1UqX1.js +1 -0
- package/dist/assets/chunk-OSK3NFVY-DlrxddG-.js +10 -0
- package/dist/assets/chunk-P2QGCYS3-CjqEi3mx.js +1 -0
- package/dist/assets/chunk-POPQ4Y6H-BytmIqFc.js +1 -0
- package/dist/assets/chunk-PWAF6VOD-CR3rNBNB.js +1 -0
- package/dist/assets/chunk-SHT3W25Y-B1Klag0Z.js +168 -0
- package/dist/assets/chunk-SVP7TREG-A4BO1_5v.js +88 -0
- package/dist/assets/chunk-TICWLB2K-B4lRXha0.js +206 -0
- package/dist/assets/chunk-XXDRQBXY-BhrH-9FX.js +1 -0
- package/dist/assets/chunk-Y2CYZVJY-OvsAdhaO.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +1 -0
- package/dist/assets/clike-CIx9nZSv.js +1 -0
- package/dist/assets/clipboard-BZT4l65i.js +1 -0
- package/dist/assets/clojure-DFaIEz5O.js +1 -0
- package/dist/assets/cmake-koz-qBlo.js +1 -0
- package/dist/assets/cobol-Bo8Zw9gB.js +1 -0
- package/dist/assets/coffeescript-CXYzYf-Y.js +1 -0
- package/dist/assets/commonlisp-C4OOCwkD.js +1 -0
- package/dist/assets/company-members-C1IoXITE.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-ShY6JvWh.js +1 -0
- package/dist/assets/createLucideIcon-D-iIM3hK.js +92 -0
- package/dist/assets/crystal-BlJXQDvy.js +1 -0
- package/dist/assets/css-DEZwfVpY.js +1 -0
- package/dist/assets/cynefin-OW5HDTMX-SmJ8tLYh.js +1 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js +62 -0
- package/dist/assets/cypher-z2oFsVv2.js +1 -0
- package/dist/assets/cytoscape.esm-B68Piqei.js +321 -0
- package/dist/assets/d-Dkt6y7AQ.js +1 -0
- package/dist/assets/dagre-Bnei_7lW.js +1 -0
- package/dist/assets/dagre-GXQ25YYZ-C1bu-Sbk.js +4 -0
- package/dist/assets/defaultLocale-C2Bpu8Ih.js +1 -0
- package/dist/assets/definition-qmfin__X.js +1 -0
- package/dist/assets/diagram-S7CK7UJ4-D0cqRe3j.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-DdEgR6LR.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-B_APewr5.js +3 -0
- package/dist/assets/diagram-VX7I27RA-B2quR8-z.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-BpQRCt5N.js +24 -0
- package/dist/assets/diff-C60bAYOU.js +1 -0
- package/dist/assets/dist-B0TRtKS8.js +1 -0
- package/dist/assets/dist-B3Uu-urE.js +1 -0
- package/dist/assets/dist-BRrJTSwu.js +1 -0
- package/dist/assets/dist-BX-OCtve.js +7 -0
- package/dist/assets/dist-BXoB5t8y.js +1 -0
- package/dist/assets/dist-BeN6V24C.js +1 -0
- package/dist/assets/dist-Bs8B1orN.js +1 -0
- package/dist/assets/dist-BuzarGBs.js +1 -0
- package/dist/assets/dist-C2jegCUe.js +2 -0
- package/dist/assets/dist-C8CoeHVO.js +6 -0
- package/dist/assets/dist-CBo4NvFW.js +1 -0
- package/dist/assets/dist-CSbL7rtN.js +1 -0
- package/dist/assets/dist-CWrRKmYk.js +1 -0
- package/dist/assets/dist-CXeuJs-w.js +1 -0
- package/dist/assets/dist-Cc3Bt6H4.js +1 -0
- package/dist/assets/dist-Cj4C2HPs.js +1 -0
- package/dist/assets/dist-DCJXgQu0.js +13 -0
- package/dist/assets/dist-DKJ0FdKS.js +1 -0
- package/dist/assets/dist-DZgNtG8a.js +1 -0
- package/dist/assets/dist-DoBOMP6Y.js +1 -0
- package/dist/assets/dist-DpmnjHX9.js +1 -0
- package/dist/assets/dist-DsLYqWnM.js +1 -0
- package/dist/assets/dist-DyyIM2uF.js +3 -0
- package/dist/assets/dist-YH7EZ8d1.js +1 -0
- package/dist/assets/dist-oQmcCiSD.js +1 -0
- package/dist/assets/dist-sLIQSVjm.js +13 -0
- package/dist/assets/dist-xQwUswee.js +1 -0
- package/dist/assets/dockerfile-BttNdtK0.js +1 -0
- package/dist/assets/dtd-CCVZU5Da.js +1 -0
- package/dist/assets/dylan-3pmV5wzs.js +1 -0
- package/dist/assets/ebnf-bm-I2WIh.js +1 -0
- package/dist/assets/ebnfDiagram-PWID7BFC-C9x73jSZ.js +1 -0
- package/dist/assets/ecl-BIv3PrZb.js +1 -0
- package/dist/assets/eiffel-DuLnr4-r.js +1 -0
- package/dist/assets/elm-njbaCU-L.js +1 -0
- package/dist/assets/environments-Cd-g_MmN.js +1 -0
- package/dist/assets/erDiagram-RLTQ6QDP-Dkp7z94L.js +99 -0
- package/dist/assets/erlang-CuhOC2I8.js +1 -0
- package/dist/assets/eventmodeling-NTZA5JFV-CCSRuDgA.js +1 -0
- package/dist/assets/external-link-BKz-OKDG.js +1 -0
- package/dist/assets/factor-CM3-9V3b.js +1 -0
- package/dist/assets/fcl-nWsMJ92o.js +1 -0
- package/dist/assets/file-text-DXa-cUrm.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +1 -0
- package/dist/assets/forth-BQ9HrCVY.js +1 -0
- package/dist/assets/fortran-DHJe28ev.js +1 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-CJs7mNJX.js +292 -0
- package/dist/assets/gas-ByO0qYMr.js +1 -0
- package/dist/assets/gherkin-CwOmHL5K.js +1 -0
- package/dist/assets/gitGraph-4MIJSDKK-SUTvd_QT.js +1 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-ByeD7NPE.js +106 -0
- package/dist/assets/graphlib-DHhK3saS.js +1 -0
- package/dist/assets/groovy-ByXGF8cx.js +1 -0
- package/dist/assets/haskell-CHSpCNOy.js +1 -0
- package/dist/assets/haxe-P2jh68ck.js +1 -0
- package/dist/assets/health-Dc13TJNg.js +1 -0
- package/dist/assets/heartbeats-CY77VTM_.js +1 -0
- package/dist/assets/http-0jwMmfWP.js +1 -0
- package/dist/assets/idl-DTVVj6r5.js +1 -0
- package/dist/assets/index-CWuperHN.css +1 -0
- package/dist/assets/index-ZrmXLuMX.js +733 -0
- package/dist/assets/info-A6RAGUB7-DP8pqSDg.js +1 -0
- package/dist/assets/infoDiagram-27XIBGKW-B6sR9qVK.js +2 -0
- package/dist/assets/init-BXPE0p7i.js +1 -0
- package/dist/assets/input-BkGpMopE.js +1 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-HFQ3gYGN.js +70 -0
- package/dist/assets/javascript-Cblpdx44.js +1 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-BtoNErTz.js +139 -0
- package/dist/assets/julia-KVJvUu_F.js +1 -0
- package/dist/assets/kanban-definition-UXKFOSKX-Y55yoRj4.js +89 -0
- package/dist/assets/katex-Du_FPwxl.js +257 -0
- package/dist/assets/label-C-aWneNy.js +5 -0
- package/dist/assets/line-CJEZO7lL.js +1 -0
- package/dist/assets/linear-s0r5e4qh.js +1 -0
- package/dist/assets/livescript-DSHsJPcD.js +1 -0
- package/dist/assets/loader-circle-DwlcG9aS.js +1 -0
- package/dist/assets/lua-Vher-70I.js +1 -0
- package/dist/assets/mathematica-CE9SaVsW.js +1 -0
- package/dist/assets/mbox-JGl1Fgvq.js +1 -0
- package/dist/assets/mention-chips-pBjlxGok.js +17 -0
- package/dist/assets/mermaid-parser.core-CHJSk6z0.js +7 -0
- package/dist/assets/mermaid.core-G_BSi0G0.js +42 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-BnlANYwV.js +96 -0
- package/dist/assets/mirc-BGWbO906.js +1 -0
- package/dist/assets/mllike-DuNQsEw8.js +1 -0
- package/dist/assets/model-DL5biheO.js +1 -0
- package/dist/assets/modelica-5XCgKQt8.js +1 -0
- package/dist/assets/mscgen-mVFg19ri.js +1 -0
- package/dist/assets/mumps-C7oS353s.js +1 -0
- package/dist/assets/nginx-DXVlpyCz.js +1 -0
- package/dist/assets/nsis-KFC6hioG.js +1 -0
- package/dist/assets/ntriples-5ckCopnn.js +1 -0
- package/dist/assets/octagon-alert-CTp78pR9.js +1 -0
- package/dist/assets/octave-D1J2QQNt.js +1 -0
- package/dist/assets/ordinal-BJyFM1v8.js +1 -0
- package/dist/assets/oz-CPsllMDD.js +1 -0
- package/dist/assets/packet-AYTQ26CC-DHxu-C4z.js +1 -0
- package/dist/assets/pascal-B-I6JP0Y.js +1 -0
- package/dist/assets/path-D6mommQw.js +1 -0
- package/dist/assets/pegDiagram-XKGWAZYB-CHhCzuLt.js +1 -0
- package/dist/assets/perl-CI8WIWBi.js +1 -0
- package/dist/assets/pie-WAS4IAKB-CP_gIBKD.js +1 -0
- package/dist/assets/pieDiagram-E7YTZNPT-CEGI1j0Q.js +39 -0
- package/dist/assets/pig-FQI0W3S3.js +1 -0
- package/dist/assets/powershell-BAu6x78A.js +1 -0
- package/dist/assets/preload-helper-CceJXRIF.js +1 -0
- package/dist/assets/prod-COP_vZWu.js +495 -0
- package/dist/assets/properties-BKTTDgau.js +1 -0
- package/dist/assets/protobuf-UWh8gh_j.js +1 -0
- package/dist/assets/pug-C20tNwmy.js +1 -0
- package/dist/assets/puppet-BAHVzCkO.js +1 -0
- package/dist/assets/python-C2DOnsac.js +1 -0
- package/dist/assets/q-Cooe-Nh8.js +1 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-BfVC-A1t.js +7 -0
- package/dist/assets/r-CktBKya9.js +1 -0
- package/dist/assets/radar-RG4KPBEZ-DbvKbV6l.js +1 -0
- package/dist/assets/railroad-74A4TZTK-BPHjMWIu.js +1 -0
- package/dist/assets/railroad-abnf-HS5TGJTU-DKY8xCGL.js +1 -0
- package/dist/assets/railroad-ebnf-LZEXJU2U-DK75GN4x.js +1 -0
- package/dist/assets/railroad-peg-WCYAUIDC-0bHp9JB9.js +1 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-Bwh6snZb.js +1 -0
- package/dist/assets/requirementDiagram-BXWQKSXE-NEvTOdsw.js +84 -0
- package/dist/assets/rolldown-runtime-ZpX3ckPj.js +1 -0
- package/dist/assets/rotate-ccw-BhopZISX.js +1 -0
- package/dist/assets/rough.esm-DnC5Tr1g.js +1 -0
- package/dist/assets/router-BxwR1PwE.js +15 -0
- package/dist/assets/rpm-Csj9nLHl.js +1 -0
- package/dist/assets/ruby-bGx9eo-K.js +1 -0
- package/dist/assets/runtime-IAg0vdY9.js +4137 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-AvKb1lr-.js +40 -0
- package/dist/assets/sas-Drou_EQ9.js +1 -0
- package/dist/assets/save-D5KpMLil.js +1 -0
- package/dist/assets/scheme-DcjG9bAf.js +1 -0
- package/dist/assets/select-BqqjvKLd.js +1 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-BP0QZnHN.js +162 -0
- package/dist/assets/sheet-Z4n6AEBA.js +1 -0
- package/dist/assets/shell-BSKClwid.js +1 -0
- package/dist/assets/sieve-CcvsXPZo.js +1 -0
- package/dist/assets/simple-mode-B79cVo-x.js +1 -0
- package/dist/assets/sizeCapture-INFHLROL-XURNLuv_.js +1 -0
- package/dist/assets/skeleton-BxD7FB8M.js +1 -0
- package/dist/assets/smalltalk-Cmg-4mjQ.js +1 -0
- package/dist/assets/solr-Dj8ahEwG.js +1 -0
- package/dist/assets/sparql-LAJYmgfk.js +1 -0
- package/dist/assets/spreadsheet-B8doD_pL.js +1 -0
- package/dist/assets/sql-C3kWxFGw.js +1 -0
- package/dist/assets/src-Bssc388C.js +1 -0
- package/dist/assets/stateDiagram-D77RDMKH-Ce0Wj7yz.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +1 -0
- package/dist/assets/stex-CW6K5Nmu.js +1 -0
- package/dist/assets/stylus-BS-Ienrc.js +1 -0
- package/dist/assets/swift-BD82LMDK.js +1 -0
- package/dist/assets/swimlanes-42K2YHIH-CX7zPtNU.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +8 -0
- package/dist/assets/tabs-Dqn3cNzC.js +1 -0
- package/dist/assets/tcl-RZa1cqc-.js +1 -0
- package/dist/assets/textile-C-BY_OGF.js +1 -0
- package/dist/assets/tiddlywiki-C9bm_Oju.js +1 -0
- package/dist/assets/tiki-DJOT-rFT.js +1 -0
- package/dist/assets/timeline-definition-24CTP7MA-Bw21rjHm.js +120 -0
- package/dist/assets/toml-Civ2fTsu.js +1 -0
- package/dist/assets/treeView-Q6P3EWNA-CzxfDhvq.js +1 -0
- package/dist/assets/treemap-WGGIJYW6-DNWYF4zd.js +1 -0
- package/dist/assets/triangle-alert-DOta-xfM.js +1 -0
- package/dist/assets/troff-Lns35Xcq.js +1 -0
- package/dist/assets/ttcn-7vlxVTUK.js +1 -0
- package/dist/assets/ttcn-cfg-B8qhhp6o.js +1 -0
- package/dist/assets/turtle-DTIS1YQ7.js +1 -0
- package/dist/assets/use-adapter-capabilities-0-4PhK9y.js +1 -0
- package/dist/assets/useHiddenSettings-D9d6LOsg.js +1 -0
- package/dist/assets/vb-BO8UacKu.js +1 -0
- package/dist/assets/vbscript-DWLru3lT.js +1 -0
- package/dist/assets/velocity-BIIn-Nl2.js +1 -0
- package/dist/assets/vennDiagram-4TSXK5OY-BuncstTm.js +34 -0
- package/dist/assets/verilog-BVYlmXGg.js +1 -0
- package/dist/assets/vhdl-Cn8cC8Yb.js +1 -0
- package/dist/assets/wardley-WFR3VGLG-C18JBEVS.js +1 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-DOHY7xcd.js +78 -0
- package/dist/assets/webidl-ChvzbZ5-.js +1 -0
- package/dist/assets/xquery-BKN7qEbU.js +1 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-qOWxoNte.js +7 -0
- package/dist/assets/yacas-BG9ha7tU.js +1 -0
- package/dist/assets/z80-CB2cGLew.js +1 -0
- package/dist/assets/zap-gf6Ev631.js +41 -0
- package/dist/brands/adapters/LICENSE +21 -0
- package/dist/brands/adapters/README.md +7 -0
- package/dist/brands/adapters/cursor-dark.svg +1 -0
- package/dist/brands/adapters/cursor.svg +1 -0
- package/dist/brands/adapters/gemini-color.svg +1 -0
- package/dist/brands/adapters/grok-dark.svg +1 -0
- package/dist/brands/adapters/grok.svg +1 -0
- package/dist/brands/adapters/hermesagent-dark.svg +1 -0
- package/dist/brands/adapters/hermesagent.svg +1 -0
- package/dist/brands/adapters/kimi-color-light.svg +1 -0
- package/dist/brands/adapters/kimi-color.svg +1 -0
- package/dist/brands/adapters/pi-dark.svg +1 -0
- package/dist/brands/adapters/pi.svg +1 -0
- package/dist/brands/apps/LOBE-LICENSE +21 -0
- package/dist/brands/apps/agentmail-dark.svg +16 -0
- package/dist/brands/apps/agentmail.svg +17 -0
- package/dist/brands/apps/airtable.svg +1 -0
- package/dist/brands/apps/anthropic-dark.svg +1 -0
- package/dist/brands/apps/anthropic.svg +1 -0
- package/dist/brands/apps/api-key-generic.svg +1 -0
- package/dist/brands/apps/arcade.png +0 -0
- package/dist/brands/apps/asana.svg +12 -0
- package/dist/brands/apps/beehiiv.png +0 -0
- package/dist/brands/apps/bitly.svg +1 -0
- package/dist/brands/apps/box.svg +1 -0
- package/dist/brands/apps/brex-dark.svg +1 -0
- package/dist/brands/apps/brex.svg +1 -0
- package/dist/brands/apps/candid.png +0 -0
- package/dist/brands/apps/clickhouse-dark.svg +1 -0
- package/dist/brands/apps/clickhouse.svg +1 -0
- package/dist/brands/apps/cloudflare.svg +1 -0
- package/dist/brands/apps/cloudinary-dark.svg +1 -0
- package/dist/brands/apps/cloudinary.svg +3 -0
- package/dist/brands/apps/coda.svg +1 -0
- package/dist/brands/apps/composio-dark.svg +11 -0
- package/dist/brands/apps/composio.svg +16 -0
- package/dist/brands/apps/context7-dark.svg +8 -0
- package/dist/brands/apps/context7.svg +8 -0
- package/dist/brands/apps/discord-dark.svg +1 -0
- package/dist/brands/apps/discord.svg +1 -0
- package/dist/brands/apps/egnyte.svg +1 -0
- package/dist/brands/apps/embat.svg +1 -0
- package/dist/brands/apps/executor.png +0 -0
- package/dist/brands/apps/fireflies.svg +76 -0
- package/dist/brands/apps/github-dark.svg +10 -0
- package/dist/brands/apps/github.svg +10 -0
- package/dist/brands/apps/gmail.svg +1 -0
- package/dist/brands/apps/google-calendar.svg +1 -0
- package/dist/brands/apps/google-chat.svg +1 -0
- package/dist/brands/apps/google-docs.svg +1 -0
- package/dist/brands/apps/google-drive.svg +1 -0
- package/dist/brands/apps/google-people.svg +1 -0
- package/dist/brands/apps/google-sheets.svg +1 -0
- package/dist/brands/apps/google-slides.svg +1 -0
- package/dist/brands/apps/google-workspace-search.svg +1 -0
- package/dist/brands/apps/hugging-face.svg +8 -0
- package/dist/brands/apps/imessage-photon.png +0 -0
- package/dist/brands/apps/jam-dev-dark.svg +1 -0
- package/dist/brands/apps/jam-dev.svg +1 -0
- package/dist/brands/apps/jira-dark.svg +1 -0
- package/dist/brands/apps/jira.svg +4 -0
- package/dist/brands/apps/kernel.svg +3 -0
- package/dist/brands/apps/linear-dark.svg +5 -0
- package/dist/brands/apps/linear.svg +5 -0
- package/dist/brands/apps/local-falcon.png +0 -0
- package/dist/brands/apps/make-dark.svg +1 -0
- package/dist/brands/apps/make.svg +1 -0
- package/dist/brands/apps/manifest.json +496 -0
- package/dist/brands/apps/manufact-dark.svg +6 -0
- package/dist/brands/apps/manufact.svg +5 -0
- package/dist/brands/apps/mem0.svg +1 -0
- package/dist/brands/apps/microsoft-teams.svg +68 -0
- package/dist/brands/apps/miro-dark.svg +1 -0
- package/dist/brands/apps/miro.svg +4 -0
- package/dist/brands/apps/mixpanel-dark.svg +1 -0
- package/dist/brands/apps/mixpanel.svg +1 -0
- package/dist/brands/apps/netlify-dark.svg +1 -0
- package/dist/brands/apps/netlify.svg +16 -0
- package/dist/brands/apps/notion-dark.svg +1 -0
- package/dist/brands/apps/notion.svg +1 -0
- package/dist/brands/apps/oauth-generic.svg +1 -0
- package/dist/brands/apps/openai-dark.svg +1 -0
- package/dist/brands/apps/openai.svg +1 -0
- package/dist/brands/apps/openrouter-dark.svg +3 -0
- package/dist/brands/apps/openrouter.svg +3 -0
- package/dist/brands/apps/oreilly.svg +1 -0
- package/dist/brands/apps/pagerduty.svg +4 -0
- package/dist/brands/apps/planetscale-dark.svg +1 -0
- package/dist/brands/apps/planetscale.svg +1 -0
- package/dist/brands/apps/posthog-dark.svg +1 -0
- package/dist/brands/apps/posthog.svg +1 -0
- package/dist/brands/apps/postman.svg +1 -0
- package/dist/brands/apps/railway-dark.svg +1 -0
- package/dist/brands/apps/railway.svg +1 -0
- package/dist/brands/apps/razorpay-dark.svg +1 -0
- package/dist/brands/apps/razorpay.svg +1 -0
- package/dist/brands/apps/resend-dark.svg +1 -0
- package/dist/brands/apps/resend.svg +1 -0
- package/dist/brands/apps/sanity-dark.svg +1 -0
- package/dist/brands/apps/sanity.svg +1 -0
- package/dist/brands/apps/sentry-dark.svg +1 -0
- package/dist/brands/apps/sentry.svg +1 -0
- package/dist/brands/apps/shopify.svg +24 -0
- package/dist/brands/apps/similarweb-dark.svg +1 -0
- package/dist/brands/apps/similarweb.svg +1 -0
- package/dist/brands/apps/slack.png +0 -0
- package/dist/brands/apps/slack.svg +17 -0
- package/dist/brands/apps/stripe.svg +11 -0
- package/dist/brands/apps/supabase.svg +15 -0
- package/dist/brands/apps/telegram.svg +12 -0
- package/dist/brands/apps/ticket-tailor-dark.svg +1 -0
- package/dist/brands/apps/ticket-tailor.svg +1 -0
- package/dist/brands/apps/ticktick.svg +1 -0
- package/dist/brands/apps/todoist.svg +1 -0
- package/dist/brands/apps/vercel-dark.svg +1 -0
- package/dist/brands/apps/vercel.svg +1 -0
- package/dist/brands/apps/webflow.svg +1 -0
- package/dist/brands/apps/wix-dark.svg +12 -0
- package/dist/brands/apps/wix.svg +12 -0
- package/dist/brands/apps/xai-dark.svg +1 -0
- package/dist/brands/apps/xai.svg +1 -0
- package/dist/brands/apps/xero.svg +1 -0
- package/dist/brands/apps/youcom-dark.svg +13 -0
- package/dist/brands/apps/youcom.svg +13 -0
- package/dist/brands/apps/zapier.svg +1 -0
- package/dist/brands/claude-color.svg +17 -0
- package/dist/brands/codex-color.svg +17 -0
- package/dist/brands/opencode-logo-dark-square.svg +18 -0
- package/dist/brands/opencode-logo-light-square.svg +18 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +9 -0
- package/dist/fonts/InterVariable-Italic.woff2 +0 -0
- package/dist/fonts/InterVariable.woff2 +0 -0
- package/dist/fonts/NOTICE.md +17 -0
- package/dist/index.html +97 -0
- package/dist/paperclip-thinking.svg +17 -0
- package/dist/site.webmanifest +30 -0
- package/dist/sw.js +85 -0
- package/dist/worktree-favicon-16x16.png +0 -0
- package/dist/worktree-favicon-32x32.png +0 -0
- package/dist/worktree-favicon.ico +0 -0
- package/dist/worktree-favicon.svg +9 -0
- package/package.json +22 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var Xe=Object.defineProperty;var u=(r,e)=>Xe(r,"name",{value:e,configurable:!0});import{i as ye,t as ve}from"./rolldown-runtime-ZpX3ckPj.js";import{n as m}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as $e,p as A}from"./src-Bssc388C.js";import{A as Te,F as Ke,b as Ve,s as Ye,z as Se}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{a as he}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{n as Je,t as et}from"./chunk-PWAF6VOD-CR3rNBNB.js";var tt=ve(((r,e)=>{(function(n){"use strict";var s=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function t(){var c=this;c.reads=[],c.writes=[],c.raf=s.bind(n)}u(t,"FastDom"),t.prototype={constructor:t,runTasks:u(function(c){for(var p;p=c.shift();)p()},"runTasks"),measure:u(function(c,p){var h=p?c.bind(p):c;return this.reads.push(h),a(this),h},"measure"),mutate:u(function(c,p){var h=p?c.bind(p):c;return this.writes.push(h),a(this),h},"mutate"),clear:u(function(c){return l(this.reads,c)||l(this.writes,c)},"clear"),extend:u(function(c){if(typeof c!="object")throw new Error("expected object");var p=Object.create(this);return o(p,c),p.fastdom=this,p.initialize&&p.initialize(),p},"extend"),catch:null};function a(c){c.scheduled||(c.scheduled=!0,c.raf(i.bind(null,c)))}u(a,"scheduleFlush");function i(c){var p=c.writes,h=c.reads,f;try{h.length,c.runTasks(h),p.length,c.runTasks(p)}catch(k){f=k}if(c.scheduled=!1,(h.length||p.length)&&a(c),f)if(f.message,c.catch)c.catch(f);else throw f}u(i,"flush");function l(c,p){var h=c.indexOf(p);return!!~h&&!!c.splice(h,1)}u(l,"remove");function o(c,p){for(var h in p)p.hasOwnProperty(h)&&(c[h]=p[h])}u(o,"mixin");var g=n.fastdom=n.fastdom||new t;typeof define=="function"?define(function(){return g}):typeof e=="object"&&(e.exports=g)})(typeof window<"u"?window:typeof r<"u"?r:globalThis)})),rt=ve(((r,e)=>{(function(){var n={initialize:u(function(){this._tasks=new Map},"initialize"),mutate:u(function(t,a){return s(this,"mutate",t,a)},"mutate"),measure:u(function(t,a){return s(this,"measure",t,a)},"measure"),clear:u(function(t){var a=this._tasks,i=a.get(t);this.fastdom.clear(i),a.delete(t)},"clear")};function s(t,a,i,l){var o=t._tasks,g=t.fastdom,c,p=new Promise(function(h,f){c=g[a](function(){o.delete(p);try{h(l?i.call(l):i())}catch(k){f(k)}},l)});return o.set(p,c),p}u(s,"create"),(typeof define)[0]=="f"?define(function(){return n}):(typeof e)[0]=="o"?e.exports=n:window.fastdomPromised=n})()})),nt=ye(tt(),1),st=ye(rt(),1);function V(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}u(V,"L");var S=V();function Re(r){S=r}u(Re,"G");var P={exec:u(()=>null,"exec")};function d(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:u((t,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(b.caret,"$1"),n=n.replace(t,i),s},"replace"),getRegex:u(()=>new RegExp(n,e),"getRegex")};return s}u(d,"d");var it=(()=>{try{return!0}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:u(r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),"headingBeginRegex"),htmlBeginRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},at=/^(?:[ \t]*(?:\n|$))+/,lt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ot=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ct=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=d(ze).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=d(ze).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),J=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ht=/^[^\n]+/,ee=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ut=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ee).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),j="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",te).replace("tag",j).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue=d(J).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex(),re={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ue).getRegex(),code:lt,def:ut,fences:ot,heading:ct,hr:I,html:ft,lheading:Ae,list:gt,newline:at,paragraph:ue,table:P,text:ht},ge=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex(),dt={...re,lheading:pt,table:ge,paragraph:d(J).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ge).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex()},kt={...re,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",te).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(J).replace("hr",I).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_e=/^( {2,}|\\)\n(?!\s*$)/,bt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,ne=/[\s\p{P}\p{S}]/u,Le=/[^\s\p{P}\p{S}]/u,wt=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ne).getRegex(),Ee=/(?!~)[\p{P}\p{S}]/u,yt=/(?!~)[\s\p{P}\p{S}]/u,vt=/(?:[^\s\p{P}\p{S}]|~)/u,$t=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",it?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Pe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Tt=d(Pe,"u").replace(/punct/g,F).getRegex(),St=d(Pe,"u").replace(/punct/g,Ee).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Rt=d(Ie,"gu").replace(/notPunctSpace/g,Le).replace(/punctSpace/g,ne).replace(/punct/g,F).getRegex(),zt=d(Ie,"gu").replace(/notPunctSpace/g,vt).replace(/punctSpace/g,yt).replace(/punct/g,Ee).getRegex(),At=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Le).replace(/punctSpace/g,ne).replace(/punct/g,F).getRegex(),_t=d(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),Lt=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Et=d(te).replace("(?:-->|$)","-->").getRegex(),Pt=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Et).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,It=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",C).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Be=d(/^!?\[(label)\]\[(ref)\]/).replace("label",C).replace("ref",ee).getRegex(),Ce=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",ee).getRegex(),Bt=d("reflink|nolink(?!\\()","g").replace("reflink",Be).replace("nolink",Ce).getRegex(),fe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,se={_backpedal:P,anyPunctuation:_t,autolink:Lt,blockSkip:$t,br:_e,code:mt,del:P,emStrongLDelim:Tt,emStrongRDelimAst:Rt,emStrongRDelimUnd:At,escape:xt,link:It,nolink:Ce,punctuation:wt,reflink:Be,reflinkSearch:Bt,tag:Pt,text:bt,url:P},Ct={...se,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",C).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C).getRegex()},N={...se,emStrongRDelimAst:zt,emStrongLDelim:St,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fe).getRegex()},Mt={...N,br:d(_e).replace("{2,}","*").getRegex(),text:d(N.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},B={normal:re,gfm:dt,pedantic:kt},_={normal:se,gfm:N,breaks:Mt,pedantic:Ct},qt={"&":"&","<":"<",">":">",'"':""","'":"'"},de=u(r=>qt[r],"ge");function $(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,de)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,de);return r}u($,"w");function ke(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}u(ke,"J");function xe(r,e){let n=r.replace(b.findPipe,(t,a,i)=>{let l=!1,o=a;for(;--o>=0&&i[o]==="\\";)l=!l;return l?"|":" |"}).split(b.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(b.slashPipe,"|");return n}u(xe,"V");function L(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s;){let a=r.charAt(s-t-1);if(a===e&&!n)t++;else if(a!==e&&n)t++;else break}return r.slice(0,s-t)}u(L,"z");function Ot(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])n++;else if(r[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}u(Ot,"fe");function me(r,e,n,s,t){let a=e.href,i=e.title||null,l=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,o}u(me,"me");function jt(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
|
|
3
|
+
`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=t.length?a.slice(t.length):a}).join(`
|
|
4
|
+
`)}u(jt,"Ye");var M=class{static{u(this,"y")}options;rules;lexer;constructor(r){this.options=r||S}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:L(n,`
|
|
5
|
+
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],s=jt(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=L(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:L(e[0],`
|
|
6
|
+
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=L(e[0],`
|
|
7
|
+
`).split(`
|
|
8
|
+
`),s="",t="",a=[];for(;n.length>0;){let i=!1,l=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))l.push(n[o]),i=!0;else if(!i)l.push(n[o]);else break;n=n.slice(o);let g=l.join(`
|
|
9
|
+
`),c=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
11
|
+
${g}`:g,t=t?`${t}
|
|
12
|
+
${c}`:c;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=p,n.length===0)break;let h=a.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let f=h,k=f.raw+`
|
|
13
|
+
`+n.join(`
|
|
14
|
+
`),w=this.blockquote(k);a[a.length-1]=w,s=s.substring(0,s.length-f.raw.length)+w.raw,t=t.substring(0,t.length-f.text.length)+w.text;break}else if(h?.type==="list"){let f=h,k=f.raw+`
|
|
15
|
+
`+n.join(`
|
|
16
|
+
`),w=this.list(k);a[a.length-1]=w,s=s.substring(0,s.length-h.raw.length)+w.raw,t=t.substring(0,t.length-f.raw.length)+w.raw,n=k.substring(a.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:a,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),s=n.length>1,t={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;r;){let o=!1,g="",c="";if(!(e=a.exec(r))||this.rules.block.hr.test(r))break;g=e[0],r=r.substring(g.length);let p=e[2].split(`
|
|
18
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,D=>" ".repeat(3*D.length)),h=r.split(`
|
|
19
|
+
`,1)[0],f=!p.trim(),k=0;if(this.options.pedantic?(k=2,c=p.trimStart()):f?k=e[1].length+1:(k=e[2].search(this.rules.other.nonSpaceChar),k=k>4?1:k,c=p.slice(k),k+=e[1].length),f&&this.rules.other.blankLine.test(h)&&(g+=h+`
|
|
20
|
+
`,r=r.substring(h.length+1),o=!0),!o){let D=this.rules.other.nextBulletRegex(k),oe=this.rules.other.hrRegex(k),ce=this.rules.other.fencesBeginRegex(k),pe=this.rules.other.headingBeginRegex(k),Ue=this.rules.other.htmlBeginRegex(k);for(;r;){let H=r.split(`
|
|
21
|
+
`,1)[0],z;if(h=H,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),z=h):z=h.replace(this.rules.other.tabCharGlobal," "),ce.test(h)||pe.test(h)||Ue.test(h)||D.test(h)||oe.test(h))break;if(z.search(this.rules.other.nonSpaceChar)>=k||!h.trim())c+=`
|
|
22
|
+
`+z.slice(k);else{if(f||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ce.test(p)||pe.test(p)||oe.test(p))break;c+=`
|
|
23
|
+
`+h}!f&&!h.trim()&&(f=!0),g+=H+`
|
|
24
|
+
`,r=r.substring(H.length+1),p=z.slice(k)}}t.loose||(i?t.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(i=!0));let w=null,le;this.options.gfm&&(w=this.rules.other.listIsTask.exec(c),w&&(le=w[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:g,task:!!w,checked:le,loose:!1,text:c,tokens:[]}),t.raw+=g}let l=t.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o=0;o<t.items.length;o++)if(this.lexer.state.top=!1,t.items[o].tokens=this.lexer.blockTokens(t.items[o].text,[]),!t.loose){let g=t.items[o].tokens.filter(c=>c.type==="space");t.loose=g.length>0&&g.some(c=>this.rules.other.anyLine.test(c.raw))}if(t.loose)for(let o=0;o<t.items.length;o++)t.items[o].loose=!0;return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=xe(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
+
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?a.align.push("right"):this.rules.other.tableAlignCenter.test(i)?a.align.push("center"):this.rules.other.tableAlignLeft.test(i)?a.align.push("left"):a.align.push(null);for(let i=0;i<n.length;i++)a.header.push({text:n[i],tokens:this.lexer.inline(n[i]),header:!0,align:a.align[i]});for(let i of t)a.rows.push(xe(i,a.header.length).map((l,o)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[o]})));return a}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
|
|
26
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=L(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Ot(e[2],"()");if(a===-2)return;if(a>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,i).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),me(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let s=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return me(n,s,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,i,l=t,o=0,g=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,e=e.slice(-1*r.length+t);(s=g.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(i=[...a].length,s[3]||s[4]){l+=i;continue}else if((s[5]||s[6])&&t%3&&!((t+i)%3)){o+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+o);let c=[...s[0]][0].length,p=r.slice(0,t+s.index+c+i);if(Math.min(t,i)%2){let f=p.slice(1,-1);return{type:"em",raw:p,text:f,tokens:this.lexer.inlineTokens(f)}}let h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},y=class G{static{u(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new M,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:b,block:B.normal,inline:_.normal};this.options.pedantic?(n.block=B.pedantic,n.inline=_.pedantic):this.options.gfm&&(n.block=B.gfm,this.options.breaks?n.inline=_.breaks:n.inline=_.gfm),this.tokenizer.rules=n}static get rules(){return{block:B,inline:_}}static lex(e,n){return new G(n).lex(e)}static lexInline(e,n){return new G(n).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(i=>(t=i.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let i=n.at(-1);t.raw.length===1&&i!==void 0?i.raw+=`
|
|
28
|
+
`:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
29
|
+
`)?"":`
|
|
30
|
+
`)+t.raw,i.text+=`
|
|
31
|
+
`+t.text,this.inlineQueue.at(-1).src=i.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
32
|
+
`)?"":`
|
|
33
|
+
`)+t.raw,i.text+=`
|
|
34
|
+
`+t.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let i=1/0,l=e.slice(1),o;this.options.extensions.startBlock.forEach(g=>{o=g.call({lexer:this},l),typeof o=="number"&&o>=0&&(i=Math.min(i,o))}),i<1/0&&i>=0&&(a=e.substring(0,i+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let i=n.at(-1);s&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
|
|
35
|
+
`)?"":`
|
|
36
|
+
`)+t.raw,i.text+=`
|
|
37
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(t),s=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let i=n.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
38
|
+
`)?"":`
|
|
39
|
+
`)+t.raw,i.text+=`
|
|
40
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(t);continue}if(e){let i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(i)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=t[2]?t[2].length:0,s=s.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let i=!1,l="";for(;e;){i||(l=""),i=!1;let o;if(this.options.extensions?.inline?.some(c=>(o=c.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let c=n.at(-1);o.type==="text"&&c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,s,l)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let g=e;if(this.options.extensions?.startInline){let c=1/0,p=e.slice(1),h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},p),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(g=e.substring(0,c+1))}if(o=this.tokenizer.inlineText(g)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(l=o.raw.slice(-1)),i=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):n.push(o);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(c)}}return n}},q=class{static{u(this,"P")}options;parser;constructor(r){this.options=r||S}space(r){return""}code({text:r,lang:e,escaped:n}){let s=(e||"").match(b.notSpaceStart)?.[0],t=r.replace(b.endingNewline,"")+`
|
|
41
|
+
`;return s?'<pre><code class="language-'+$(s)+'">'+(n?t:$(t,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(n?t:$(t,!0))+`</code></pre>
|
|
43
|
+
`}blockquote({tokens:r}){return`<blockquote>
|
|
44
|
+
${this.parser.parse(r)}</blockquote>
|
|
45
|
+
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
|
|
46
|
+
`}hr(r){return`<hr>
|
|
47
|
+
`}list(r){let e=r.ordered,n=r.start,s="";for(let i=0;i<r.items.length;i++){let l=r.items[i];s+=this.listitem(l)}let t=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+t+a+`>
|
|
48
|
+
`+s+"</"+t+`>
|
|
49
|
+
`}listitem(r){let e="";if(r.task){let n=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=n+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=n+" "+$(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>
|
|
50
|
+
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
51
|
+
`}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let s="";for(let t=0;t<r.rows.length;t++){let a=r.rows[t];n="";for(let i=0;i<a.length;i++)n+=this.tablecell(a[i]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
52
|
+
<thead>
|
|
53
|
+
`+e+`</thead>
|
|
54
|
+
`+s+`</table>
|
|
55
|
+
`}tablerow({text:r}){return`<tr>
|
|
56
|
+
${r}</tr>
|
|
57
|
+
`}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
|
|
58
|
+
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${$(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let s=this.parser.parseInline(n),t=ke(r);if(t===null)return s;r=t;let a='<a href="'+r+'"';return e&&(a+=' title="'+$(e)+'"'),a+=">"+s+"</a>",a}image({href:r,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let t=ke(r);if(t===null)return $(n);r=t;let a=`<img src="${r}" alt="${n}"`;return e&&(a+=` title="${$(e)}"`),a+=">",a}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:$(r.text)}},ie=class{static{u(this,"$")}strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},v=class Q{static{u(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ie}static parse(e,n){return new Q(n).parse(e)}static parseInline(e,n){return new Q(n).parseInline(e)}parse(e,n=!0){let s="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let l=a,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=o||"";continue}}let i=a;switch(i.type){case"space":s+=this.renderer.space(i);continue;case"hr":s+=this.renderer.hr(i);continue;case"heading":s+=this.renderer.heading(i);continue;case"code":s+=this.renderer.code(i);continue;case"table":s+=this.renderer.table(i);continue;case"blockquote":s+=this.renderer.blockquote(i);continue;case"list":s+=this.renderer.list(i);continue;case"html":s+=this.renderer.html(i);continue;case"def":s+=this.renderer.def(i);continue;case"paragraph":s+=this.renderer.paragraph(i);continue;case"text":{let l=i,o=this.renderer.text(l);for(;t+1<e.length&&e[t+1].type==="text";)l=e[++t],o+=`
|
|
59
|
+
`+this.renderer.text(l);n?s+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):s+=o;continue}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return"";throw new Error(l)}}}return s}parseInline(e,n=this.renderer){let s="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=l||"";continue}}let i=a;switch(i.type){case"escape":s+=n.text(i);break;case"html":s+=n.html(i);break;case"link":s+=n.link(i);break;case"image":s+=n.image(i);break;case"strong":s+=n.strong(i);break;case"em":s+=n.em(i);break;case"codespan":s+=n.codespan(i);break;case"br":s+=n.br(i);break;case"del":s+=n.del(i);break;case"text":s+=n.text(i);break;default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return"";throw new Error(l)}}}return s}},E=class{static{u(this,"S")}options;block;constructor(r){this.options=r||S}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?y.lex:y.lexInline}provideParser(){return this.block?v.parse:v.parseInline}},Ft=class{static{u(this,"B")}defaults=V();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=v;Renderer=q;TextRenderer=ie;Lexer=y;Tokenizer=M;Hooks=E;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let s of r)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let a of t.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let i of a)n=n.concat(this.walkTokens(i.tokens,e));break}case"list":{let t=s;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let i=t[a].flat(1/0);n=n.concat(this.walkTokens(i,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...i){let l=t.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),n.renderer){let t=this.defaults.renderer||new q(this.defaults);for(let a in n.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],o=t[i];t[i]=(...g)=>{let c=l.apply(t,g);return c===!1&&(c=o.apply(t,g)),c||""}}s.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new M(this.defaults);for(let a in n.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],o=t[i];t[i]=(...g)=>{let c=l.apply(t,g);return c===!1&&(c=o.apply(t,g)),c}}s.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new E;for(let a in n.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],o=t[i];E.passThroughHooks.has(a)?t[i]=g=>{if(this.defaults.async&&E.passThroughHooksRespectAsync.has(a))return(async()=>{let p=await l.call(t,g);return o.call(t,p)})();let c=l.call(t,g);return o.call(t,c)}:t[i]=(...g)=>{if(this.defaults.async)return(async()=>{let p=await l.apply(t,g);return p===!1&&(p=await o.apply(t,g)),p})();let c=l.apply(t,g);return c===!1&&(c=o.apply(t,g)),c}}s.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),t&&(l=l.concat(t.call(this,i))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return y.lex(r,e??this.defaults)}parser(r,e){return v.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let s={...n},t={...this.defaults,...s},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let i=t.hooks?await t.hooks.preprocess(e):e,l=await(t.hooks?await t.hooks.provideLexer():r?y.lex:y.lexInline)(i,t),o=t.hooks?await t.hooks.processAllTokens(l):l;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let g=await(t.hooks?await t.hooks.provideParser():r?v.parse:v.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(g):g})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let i=(t.hooks?t.hooks.provideLexer():r?y.lex:y.lexInline)(e,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let l=(t.hooks?t.hooks.provideParser():r?v.parse:v.parseInline)(i,t);return t.hooks&&(l=t.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(r,e){return n=>{if(n.message+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+$(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},T=new Ft;function x(r,e){return T.parse(r,e)}u(x,"k");x.options=x.setOptions=function(r){return T.setOptions(r),x.defaults=T.defaults,Re(x.defaults),x};x.getDefaults=V;x.defaults=S;x.use=function(...r){return T.use(...r),x.defaults=T.defaults,Re(x.defaults),x};x.walkTokens=function(r,e){return T.walkTokens(r,e)};x.parseInline=T.parseInline;x.Parser=v;x.parser=v.parse;x.Renderer=q;x.TextRenderer=ie;x.Lexer=y;x.lexer=y.lex;x.Tokenizer=M;x.Hooks=E;x.parse=x;var er=x.options,tr=x.setOptions,rr=x.use,nr=x.walkTokens,sr=x.parseInline,ir=v.parse,ar=y.lex;function Wt(r){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var s=Array.from(typeof r=="string"?[r]:r);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var t=s.reduce(function(l,o){var g=o.match(/\n([\t ]+|(?!\s).)/g);return g?l.concat(g.map(function(c){var p,h;return(h=(p=c.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):l},[]);if(t.length){var a=new RegExp(`
|
|
61
|
+
[ ]{`.concat(Math.min.apply(Math,t),"}"),"g");s=s.map(function(l){return l.replace(a,`
|
|
62
|
+
`)})}s[0]=s[0].replace(/^\r?\n/,"");var i=s[0];return e.forEach(function(l,o){var g=i.match(/(?:^|\n)( *)$/),c=g?g[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
63
|
+
`)&&(p=String(l).split(`
|
|
64
|
+
`).map(function(h,f){return f===0?h:"".concat(c).concat(h)}).join(`
|
|
65
|
+
`)),i+=p+s[o+1]}),i}u(Wt,"dedent");var U=typeof performance<"u"&&typeof performance.now=="function",R=m(()=>U?performance.now():0,"now"),be="🧜 ",Zt="Mermaid render",Dt="Mermaid",Ht={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},lr=class{static{u(this,"Profiler")}constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{m(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(r))}tickSync(r,e){if(!this.enabled)return e();const n=R();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(R()-n)}}async tick(r,e){if(!this.enabled)return e();const n=R();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(R()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const r=this.roots.at(-1),e=this.runLabel??r?.name;return r&&(this.records.push({label:e??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(r,e)),this.runLabel=void 0,r}begin(r){if(!this.enabled)return;const e={name:r,start:R(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(e):this.roots.push(e),this.stack.push(e),U&&typeof performance.mark=="function")try{performance.mark(`${be}${r} ▶`)}catch{}}end(){if(!this.enabled)return;const r=this.stack.pop();if(!r)return;const e=R();if(r.duration=e-r.start,U&&typeof performance.measure=="function")try{performance.measure(`${be}${r.name}`,{start:r.start,end:e,detail:{devtools:{dataType:"track-entry",track:Zt,trackGroup:Dt,color:Ht[r.name]??"primary",tooltipText:`${r.name} — ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,e){if(!this.enabled)return e();this.begin(r);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),e){if(!r)return;const n=r.duration,s=e&&e!==r.name?`${r.name} [${e}]`:r.name,t=["ms % phase"],a=m((l,o)=>{const g=" ".repeat(o),c=l.duration.toFixed(1).padStart(8),p=n>0?`${(l.duration/n*100).toFixed(0).padStart(3)}%`:" -";t.push(`${c} ${p} ${g}${l.name}`);for(const h of l.children)a(h,o+1);if(l.children.length>0){const h=l.children.reduce((k,w)=>k+w.duration,0),f=l.duration-h;if(f>.5){const k=f.toFixed(1).padStart(8);t.push(`${k} ${g} (self)`)}}},"walk");a(r,0);const i=Object.keys(this.buckets);if(i.length>0){t.push("—— buckets (summed) ——");for(const l of i)t.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var Nt=nt.default.extend({raf(r){typeof queueMicrotask=="function"?queueMicrotask(r):setTimeout(r,0)}}).extend(st.default);function Me(r,{markdownAutoWrap:e}){const n=r.replace(/<br\/>/g,`
|
|
66
|
+
`).replace(/\n{2,}/g,`
|
|
67
|
+
`);return Wt(n)}u(Me,"preprocessMarkdown");m(Me,"preprocessMarkdown");function qe(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(n=>({content:n,type:"normal"}))??[])}u(qe,"nonMarkdownToLines");m(qe,"nonMarkdownToLines");function Oe(r,e={}){const n=Me(r,e),s=x.lexer(n),t=[[]];let a=0;function i(l,o="normal"){l.type==="text"?l.text.split(`
|
|
68
|
+
`).forEach((g,c)=>{c!==0&&(a++,t.push([])),g.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&t[a].push({content:p,type:o})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(g=>{i(g,l.type)}):l.type==="html"&&t[a].push({content:l.text,type:"normal"})}return u(i,"processNode"),m(i,"processNode"),s.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(o=>{i(o)}):l.type==="html"?t[a].push({content:l.text,type:"normal"}):t[a].push({content:l.raw,type:"normal"})}),t}u(Oe,"markdownToLines");m(Oe,"markdownToLines");function je(r){return r?`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`:""}u(je,"nonMarkdownToHTML");m(je,"nonMarkdownToHTML");function Fe(r,{markdownAutoWrap:e}={}){const n=x.lexer(r);function s(t){return t.type==="text"?e===!1?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>"):t.type==="strong"?`<strong>${t.tokens?.map(s).join("")}</strong>`:t.type==="em"?`<em>${t.tokens?.map(s).join("")}</em>`:t.type==="paragraph"?`<p>${t.tokens?.map(s).join("")}</p>`:t.type==="space"?"":t.type==="html"?`${t.text}`:t.type==="escape"?t.text:($e.warn(`Unsupported markdown: ${t.type}`),t.raw)}return u(s,"output"),m(s,"output"),n.map(s).join("")}u(Fe,"markdownToHTML");m(Fe,"markdownToHTML");function We(r){return Intl.Segmenter?[...new Intl.Segmenter().segment(r)].map(e=>e.segment):[...r]}u(We,"splitTextToChars");m(We,"splitTextToChars");function Ze(r,e){return ae(r,[],We(e.content),e.type)}u(Ze,"splitWordToFitWidth");m(Ze,"splitWordToFitWidth");function ae(r,e,n,s){if(n.length===0)return[{content:e.join(""),type:s},{content:"",type:s}];const[t,...a]=n,i=[...e,t];return r([{content:i.join(""),type:s}])?ae(r,i,a,s):(e.length===0&&t&&(e.push(t),n.shift()),[{content:e.join(""),type:s},{content:n.join(""),type:s}])}u(ae,"splitWordToFitWidthRecursion");m(ae,"splitWordToFitWidthRecursion");function De(r,e){if(r.some(({content:n})=>n.includes(`
|
|
69
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return O(r,e)}u(De,"splitLineToFitWidth");m(De,"splitLineToFitWidth");function O(r,e,n=[],s=[]){if(r.length===0)return s.length>0&&n.push(s),n.length>0?n:[];let t="";r[0].content===" "&&(t=" ",r.shift());const a=r.shift()??{content:" ",type:"normal"},i=[...s];if(t!==""&&i.push({content:t,type:"normal"}),i.push(a),e(i))return O(r,e,n,i);if(s.length>0)n.push(s),r.unshift(a);else if(a.content){const[l,o]=Ze(e,a);n.push([l]),o.content&&r.unshift(o)}return O(r,e,n)}u(O,"splitLineToFitWidthRecursion");m(O,"splitLineToFitWidthRecursion");function X(r,e){e&&r.attr("style",e)}u(X,"applyStyle");m(X,"applyStyle");var we=16384;async function He(r,e,n,s,t=!1,a=Ve()){const i=r.append("foreignObject");i.attr("width",`${Math.min(10*n,we)}px`),i.attr("height",`${Math.min(10*n,we)}px`);const l=i.append("xhtml:div"),o=Te(e.label)?await Ke(e.label.replace(Ye.lineBreakRegex,`
|
|
70
|
+
`),a):Se(e.label,a),g=e.isNode?"nodeLabel":"edgeLabel",c=l.append("span");return c.html(o),X(c,e.labelStyle),c.attr("class",`${g} ${s}`),X(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),n!==Number.POSITIVE_INFINITY&&(l.style("max-width",n+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),t&&l.attr("class","labelBkg"),(await Nt.measure(()=>l.node().getBoundingClientRect())).width===n&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px")),i.node()}u(He,"addHtmlSpan");m(He,"addHtmlSpan");function W(r,e,n,s=!1){const t=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em");return s&&t.attr("text-anchor","middle"),t}u(W,"createTspan");m(W,"createTspan");function Ne(r,e,n){const s=r.append("text"),t=W(s,1,e);Z(t,n);const a=t.node().getComputedTextLength();return s.remove(),a}u(Ne,"computeWidthOfText");m(Ne,"computeWidthOfText");function Gt(r,e,n){const s=r.append("text"),t=W(s,1,e);Z(t,[{content:n,type:"normal"}]);const a=t.node()?.getBoundingClientRect();return a&&s.remove(),a}u(Gt,"computeDimensionOfText");m(Gt,"computeDimensionOfText");function Ge(r,e,n,s=!1,t=!1){const i=e.append("g"),l=i.insert("rect").attr("class","background").attr("style","stroke: none"),o=i.append("text").attr("y","-10.1");t&&o.attr("text-anchor","middle");let g=0;for(const c of n){const p=m(f=>Ne(i,1.1,f)<=r,"checkWidth"),h=p(c)?[c]:De(c,p);for(const f of h)Z(W(o,g,1.1,t),f),g++}if(s){const c=o.node().getBBox(),p=2;return l.attr("x",c.x-p).attr("y",c.y-p).attr("width",c.width+4).attr("height",c.height+4),i.node()}else return o.node()}u(Ge,"createFormattedText");m(Ge,"createFormattedText");function K(r){return r.replace(/&(amp|lt|gt);/g,(e,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}u(K,"decodeHTMLEntities");m(K,"decodeHTMLEntities");function Z(r,e){r.text(""),e.forEach((n,s)=>{const t=r.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");s===0?t.text(K(n.content)):t.text(" "+K(n.content))})}u(Z,"updateTextContentAndStyles");m(Z,"updateTextContentAndStyles");async function Qe(r,e={}){const n=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,a,i)=>(n.push((async()=>{const l=`${a}:${i}`;return await Je(l)?await et(l,void 0,{class:"label-icon"}):`<i class='${Se(t,e).replace(":"," ")}'></i>`})()),t));const s=await Promise.all(n);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}u(Qe,"replaceIconSubstring");m(Qe,"replaceIconSubstring");var or=m(async(r,e="",{style:n="",isTitle:s=!1,classes:t="",useHtmlLabels:a=!0,markdown:i=!0,isNode:l=!0,width:o=200,addSvgBackground:g=!1}={},c)=>{if($e.debug("XYZ createText",e,n,s,t,a,l,"addSvgBackground: ",g),a){const p=i?Fe(e,c):je(e),h=await Qe(he(p),c),f=e.replace(/\\\\/g,"\\");return await He(r,{isNode:l,label:Te(e)?f:h,labelStyle:n.replace("fill:","color:")},o,t,g,c)}else{const p=he(e.replace(/<br\s*\/?>/g,"<br/>")),h=Ge(o,r,i?Oe(p.replace("<br>","<br/>"),c):qe(p),e?g:!1,!l);if(l){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const f=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");A(h).attr("style",f)}else{const f=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");A(h).select("rect").attr("style",f.replace(/background:/g,"fill:"));const k=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");A(h).select("text").attr("style",k)}return s?A(h).selectAll("tspan.text-outer-tspan").classed("title-row",!0):A(h).selectAll("tspan.text-outer-tspan").classed("row",!0),h}},"createText");export{Wt as i,or as n,Nt as r,Gt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var c=(a,t)=>f(a,"name",{value:t,configurable:!0});import{n as i}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-Bssc388C.js";import{u as g}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{o as n}from"./chunk-4HAMMTFA-CGGd_Pxz.js";var w=i(({flowchart:a})=>{const t=a?.subGraphTitleMargin?.top??0,s=a?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:s,subGraphTitleTotalMargin:t+s}},"getSubGraphTitleMargins"),l=new Map;async function u(a,t,s){let r,e;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const p=t.shape?n[t.shape]:void 0;if(!p)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let h;s.config.securityLevel==="sandbox"?h="_top":t.linkTarget&&(h=t.linkTarget||"_blank"),r=a.insert("svg:a").attr("xlink:href",t.link).attr("target",h??null),e=await p(r,t,s)}else e=await p(a,t,s),r=e;return r.attr("data-look",g(t.look)),t.tooltip&&e.attr("title",t.tooltip),l.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}c(u,"insertNode");i(u,"insertNode");var x=i((a,t)=>{l.set(t.id,a)},"setNodeElem"),M=i(()=>{l.clear()},"clear"),N=i(a=>{const t=l.get(a.id);o.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const s=8,r=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+r-a.width/2)+", "+(a.y-a.height/2-s)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),r},"positionNode");export{x as a,N as i,w as n,u as r,M as t};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
var se=Object.defineProperty;var _=(t,e)=>se(t,"name",{value:e,configurable:!0});import{n as u}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as b,p as kt}from"./src-Bssc388C.js";import{$ as ie,H as re,K as ae,U as ne,a as oe,s as j,v as le,w as ce,x as P,y as he}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{g as ue,s as de}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{t as fe}from"./chunk-F27PBJKO-Ci7GmRgM.js";import{t as pe}from"./chunk-XXDRQBXY-BhrH-9FX.js";import{t as Se}from"./chunk-POPQ4Y6H-BytmIqFc.js";import{d as ye}from"./mermaid.core-G_BSi0G0.js";var At=(function(){var t=u(function(a,f,l,p){for(l=l||{},p=a.length;p--;l[a[p]]=f);return l},"o"),e=[1,2],r=[1,3],s=[1,4],h=[2,4],c=[1,9],y=[1,11],T=[1,16],n=[1,17],g=[1,18],C=[1,19],A=[1,33],x=[1,20],$=[1,21],d=[1,22],D=[1,23],N=[1,24],w=[1,26],Y=[1,27],v=[1,28],B=[1,29],st=[1,30],it=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],H=[1,34],S=[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],ct=[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],It=[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],Tt={trace:u(_(function(){},"trace"),"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(f,l,p,m,E,i,V){var o=i.length-1;switch(E){case 3:return m.setRootDoc(i[o]),i[o];case 4:this.$=[];break;case 5:i[o]!="nl"&&(i[o-1].push(i[o]),this.$=i[o-1]);break;case 6:case 7:this.$=i[o];break;case 8:this.$="nl";break;case 12:this.$=i[o];break;case 13:const ut=i[o-1];ut.description=m.trimColon(i[o]),this.$=ut;break;case 14:this.$={stmt:"relation",state1:i[o-2],state2:i[o]};break;case 15:const dt=m.trimColon(i[o]);this.$={stmt:"relation",state1:i[o-3],state2:i[o-1],description:dt};break;case 19:this.$={stmt:"state",id:i[o-3],type:"default",description:"",doc:i[o-1]};break;case 20:var M=i[o],z=i[o-2].trim();if(i[o].match(":")){var q=i[o].split(":");M=q[0],z=[z,q[1]]}this.$={stmt:"state",id:M,type:"default",description:z};break;case 21:this.$={stmt:"state",id:i[o-3],type:"default",description:i[o-5],doc:i[o-1]};break;case 22:this.$={stmt:"state",id:i[o],type:"fork"};break;case 23:this.$={stmt:"state",id:i[o],type:"join"};break;case 24:this.$={stmt:"state",id:i[o],type:"choice"};break;case 25:this.$={stmt:"state",id:m.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[o-1].trim(),note:{position:i[o-2].trim(),text:i[o].trim()}};break;case 29:this.$=i[o].trim(),m.setAccTitle(this.$);break;case 30:case 31:this.$=i[o].trim(),m.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[o-3],url:i[o-2],tooltip:i[o-1]};break;case 33:this.$={stmt:"click",id:i[o-3],url:i[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[o-1].trim(),classes:i[o].trim()};break;case 36:this.$={stmt:"style",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 37:this.$={stmt:"applyClass",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 38:m.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:m.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:m.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:m.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[o].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[o-2].trim(),classes:[i[o].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[o-2].trim(),classes:[i[o].trim()],type:"default",description:""}}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:r,6:s},{1:[3]},{3:5,4:e,5:r,6:s},{3:6,4:e,5:r,6:s},t([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],h,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:y,8:8,9:10,10:12,11:13,12:14,13:15,16:T,17:n,19:g,22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:T,17:n,19:g,22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:A,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:A,57:H},t(S,[2,17]),t(It,h,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[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]},t(S,[2,14],{14:[1,71]}),{4:c,5:y,8:8,9:10,10:12,11:13,12:14,13:15,16:T,17:n,19:g,21:[1,72],22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(S,[2,15]),t(S,[2,19]),t(It,h,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:y,8:8,9:10,10:12,11:13,12:14,13:15,16:T,17:n,19:g,21:[1,81],22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(_(function(f,l){if(l.recoverable)this.trace(f);else{var p=new Error(f);throw p.hash=l,p}},"parseError"),"parseError"),parse:u(_(function(f){var l=this,p=[0],m=[],E=[null],i=[],V=this.table,o="",M=0,z=0,q=0,ut=2,dt=1,Zt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(W.yy[mt]=this.yy[mt]);k.setInput(f,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Et=k.yylloc;i.push(Et);var te=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(R){p.length=p.length-2*R,E.length=E.length-R,i.length=i.length-R}_(ee,"popStack"),u(ee,"popStack");function wt(){var R=m.pop()||k.lex()||dt;return typeof R!="number"&&(R instanceof Array&&(m=R,R=m.pop()),R=l.symbols_[R]||R),R}_(wt,"lex"),u(wt,"lex");for(var L,_t,U,O,bt,K={},ft,F,Nt,pt;;){if(U=p[p.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=wt()),O=V[U]&&V[U][L]),typeof O>"u"||!O.length||!O[0]){var Dt="";pt=[];for(ft in V[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?Dt="Parse error on line "+(M+1)+`:
|
|
2
|
+
`+k.showPosition()+`
|
|
3
|
+
Expecting `+pt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Dt="Parse error on line "+(M+1)+": Unexpected "+(L==dt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Dt,{text:k.match,token:this.terminals_[L]||L,line:k.yylineno,loc:Et,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(O[0]){case 1:p.push(L),E.push(k.yytext),i.push(k.yylloc),p.push(O[1]),L=null,_t?(L=_t,_t=null):(z=k.yyleng,o=k.yytext,M=k.yylineno,Et=k.yylloc,q>0&&q--);break;case 2:if(F=this.productions_[O[1]][1],K.$=E[E.length-F],K._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},te&&(K._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(K,[o,z,M,W.yy,O[1],E,i].concat(Zt)),typeof bt<"u")return bt;F&&(p=p.slice(0,-1*F*2),E=E.slice(0,-1*F),i=i.slice(0,-1*F)),p.push(this.productions_[O[1]][0]),E.push(K.$),i.push(K._$),Nt=V[p[p.length-2]][p[p.length-1]],p.push(Nt);break;case 3:return!0}}return!0},"parse"),"parse")};Tt.lexer=(function(){return{EOF:1,parseError:u(_(function(f,l){if(this.yy.parser)this.yy.parser.parseError(f,l);else throw new Error(f)},"parseError"),"parseError"),setInput:u(function(a,f){return this.yy=f||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 f=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var p=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),l.length-1&&(this.yylineno-=l.length-1);var m=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-f]),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
|
+
`+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(),f=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
5
|
+
`+f+"^"},"showPosition"),test_match:u(function(a,f){var l,p,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],l=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var E in m)this[E]=m[E];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,f,l,p;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),E=0;E<m.length;E++)if(l=this._input.match(this.rules[m[E]]),l&&(!f||l[0].length>f[0].length)){if(f=l,p=E,this.options.backtrack_lexer){if(a=this.test_match(l,m[E]),a!==!1)return a;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(a=this.test_match(f,m[p]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(_(function(){var f=this.next();return f||this.lex()},"lex"),"lex"),begin:u(_(function(f){this.conditionStack.push(f)},"begin"),"begin"),popState:u(_(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:u(_(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:u(_(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),"topState"),pushState:u(_(function(f){this.begin(f)},"pushState"),"pushState"),stateStackSize:u(_(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:u(_(function(f,l,p,m){function E(){const i=l.yytext.indexOf("%%");if(i===0)return!1;if(i>0){const V=l.yytext.slice(0,i),o=l.yytext.slice(i);o&&f.lexer.unput(o),l.yytext=V}return!0}switch(_(E,"processId"),u(E,"processId"),p){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 33:return this.pushState("SCALE"),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),l.yytext=l.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),l.yytext=l.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),l.yytext=l.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),l.yytext=l.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),l.yytext=l.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),l.yytext=l.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:return E()?(this.popState(),"ID"):void 0;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+l.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin("NOTE"),29;case 59:return this.popState(),this.pushState("NOTE_ID"),59;case 60:return this.popState(),this.pushState("NOTE_ID"),60;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:break;case 64:return"NOTE_TEXT";case 65:return E()?(this.popState(),"ID"):void 0;case 66:return E()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 67:return this.popState(),l.yytext=l.yytext.substr(2).trim(),31;case 68:return this.popState(),l.yytext=l.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return E()?24:void 0;case 74:return l.yytext=l.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function ht(){this.yy={}}return _(ht,"Parser"),u(ht,"Parser"),ht.prototype=Tt,Tt.Parser=ht,new ht})();At.parser=At;var Ue=At,ge="TB",Gt="TB",Ot="dir",J="state",X="root",xt="relation",Te="classDef",me="style",Ee="applyClass",tt="default",Vt="divider",Mt="fill:none",Wt="fill: #333",Ut="c",jt="markdown",Ht="normal",vt="rect",Ct="rectWithTitle",_e="stateStart",be="stateEnd",Rt="divider",$t="roundedWithTitle",De="note",ke="noteGroup",et="statediagram",ve=`${et}-state`,zt="transition",Ce="note",Ae=`${zt} note-edge`,xe=`${et}-${Ce}`,Le=`${et}-cluster`,Ie=`${et}-cluster-alt`,Kt="parent",Xt="note",we="state",Lt="----",Ne=`${Lt}${Xt}`,Pt=`${Lt}${Kt}`,Jt=u((t,e=Gt)=>{if(!t.doc)return e;let r=e;for(const s of t.doc)s.stmt==="dir"&&(r=s.value);return r},"getDir"),je={getClasses:u(function(t,e){return e.db.getClasses()},"getClasses"),draw:u(async function(t,e,r,s){b.info("REF0:"),b.info("Drawing state diagram (v2)",e);const{securityLevel:h,state:c,layout:y}=P();s.db.extract(s.db.getRootDocV2());const T=s.db.getData(),n=pe(e,h);T.type=s.type,T.layoutAlgorithm=y,T.nodeSpacing=c?.nodeSpacing||50,T.rankSpacing=c?.rankSpacing||50,P().look==="neo"?T.markers=["barbNeo"]:T.markers=["barb"],T.diagramId=e,await ye(T,n);const g=8;try{(typeof s.db.getLinks=="function"?s.db.getLinks():new Map).forEach((C,A)=>{const x=typeof A=="string"?A:typeof A?.id=="string"?A.id:"",$=T.nodes.find(v=>v.id===x);if(!x){b.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(A));return}const d=n.node()?.querySelectorAll("g.node, g.rough-node");let D;if(d?.forEach(v=>{const B=v.textContent?.trim();(v.id===$?.domId||B===x)&&(D=v)}),!D){b.warn("⚠️ Could not find node matching text:",x);return}const N=D.parentNode;if(!N){b.warn("⚠️ Node has no parent, cannot wrap:",x);return}const w=document.createElementNS("http://www.w3.org/2000/svg","a"),Y=C.url.replace(/^"+|"+$/g,"");if(w.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",Y),w.setAttribute("target","_blank"),C.tooltip){const v=C.tooltip.replace(/^"+|"+$/g,"");w.setAttribute("title",v),D.setAttribute("title",v)}N.replaceChild(w,D),w.appendChild(D),b.info("🔗 Wrapped node in <a> tag for:",x,C.url)})}catch(C){b.error("❌ Error injecting clickable links:",C)}ue.insertTitle(n,"statediagramTitleText",c?.titleTopMargin??25,s.db.getDiagramTitle()),Se(n,g,et,c?.useMaxWidth??!0)},"draw"),getDir:Jt},yt=new Map,G=0;function gt(t="",e=0,r="",s=Lt){return`${we}-${t}${r!==null&&r.length>0?`${s}${r}`:""}-${e}`}_(gt,"stateDomId");u(gt,"stateDomId");var Oe=u((t,e,r,s,h,c,y,T)=>{b.trace("items",e),e.forEach(n=>{switch(n.stmt){case J:Z(t,n,r,s,h,c,y,T);break;case tt:Z(t,n,r,s,h,c,y,T);break;case xt:{Z(t,n.state1,r,s,h,c,y,T),Z(t,n.state2,r,s,h,c,y,T);const g=y==="neo",C={id:"edge"+G,start:n.state1.id,end:n.state2.id,arrowhead:"normal",arrowTypeEnd:g?"arrow_barb_neo":"arrow_barb",style:Mt,labelStyle:"",label:j.sanitizeText(n.description??"",P()),arrowheadStyle:Wt,labelpos:Ut,labelType:jt,thickness:Ht,classes:zt,look:y};h.push(C),G++}}})},"setupDoc"),Bt=u((t,e=Gt)=>{let r=e;if(t.doc)for(const s of t.doc)s.stmt==="dir"&&(r=s.value);return r},"getDir");function Q(t,e,r){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(h=>{const c=r.get(h);c&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...c.styles])}));const s=t.find(h=>h.id===e.id);s?Object.assign(s,e):t.push(e)}_(Q,"insertOrUpdateNode");u(Q,"insertOrUpdateNode");function qt(t){return t?.classes?.join(" ")??""}_(qt,"getClassesFromDbInfo");u(qt,"getClassesFromDbInfo");function Qt(t){return t?.styles??[]}_(Qt,"getStylesFromDbInfo");u(Qt,"getStylesFromDbInfo");var Z=u((t,e,r,s,h,c,y,T)=>{const n=e.id,g=r.get(n),C=qt(g),A=Qt(g),x=P();if(b.info("dataFetcher parsedItem",e,g,A),n!=="root"){let $=vt;e.start===!0?$=_e:e.start===!1&&($=be),e.type!==tt&&($=e.type),yt.get(n)||yt.set(n,{id:n,shape:$,description:j.sanitizeText(n,x),cssClasses:`${C} ${ve}`,cssStyles:A});const d=yt.get(n);e.description&&(Array.isArray(d.description)?(d.shape=Ct,d.description.push(e.description)):d.description?.length&&d.description.length>0?(d.shape=Ct,d.description===n?d.description=[e.description]:d.description=[d.description,e.description]):(d.shape=vt,d.description=e.description),d.description=j.sanitizeTextOrArray(d.description,x)),d.description?.length===1&&d.shape===Ct&&(d.type==="group"?d.shape=$t:d.shape=vt),!d.type&&e.doc&&(b.info("Setting cluster for XCX",n,Bt(e)),d.type="group",d.isGroup=!0,d.dir=Bt(e),d.shape=e.type===Vt?Rt:$t,d.cssClasses=`${d.cssClasses} ${Le} ${c?Ie:""}`);const D={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:n,dir:d.dir,domId:gt(n,G),type:d.type,isGroup:d.type==="group",padding:8,rx:10,ry:10,look:y,labelType:"markdown"};if(D.shape===Rt&&(D.label=""),t&&t.id!=="root"&&(b.trace("Setting node ",n," to be child of its parent ",t.id),D.parentId=t.id),D.centerLabel=!0,e.note){const N={labelStyle:"",shape:De,label:e.note.text,labelType:"markdown",cssClasses:xe,cssStyles:[],cssCompiledStyles:[],id:n+Ne+"-"+G,domId:gt(n,G,Xt),type:d.type,isGroup:d.type==="group",padding:x.flowchart?.padding,look:y,position:e.note.position},w=n+Pt,Y={labelStyle:"",shape:ke,label:e.note.text,cssClasses:d.cssClasses,cssStyles:[],id:n+Pt,domId:gt(n,G,Kt),type:"group",isGroup:!0,padding:16,look:y,position:e.note.position};G++,Y.id=w,N.parentId=w,Q(s,Y,T),Q(s,N,T),Q(s,D,T);let v=n,B=N.id;e.note.position==="left of"&&(v=N.id,B=n),h.push({id:v+"-"+B,start:v,end:B,arrowhead:"none",arrowTypeEnd:"",style:Mt,labelStyle:"",classes:Ae,arrowheadStyle:Wt,labelpos:Ut,labelType:jt,thickness:Ht,look:y})}else Q(s,D,T)}e.doc&&(b.trace("Adding nodes children "),Oe(e,e.doc,r,s,h,!c,y,T))},"dataFetcher"),Re=u(()=>{yt.clear(),G=0},"reset"),I={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Yt=u(()=>new Map,"newClassesList"),Ft=u(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),St=u(t=>JSON.parse(JSON.stringify(t)),"clone"),He=class{static{_(this,"StateDB")}constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Yt(),this.documents={root:Ft()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=he,this.setAccTitle=ne,this.getAccDescription=le,this.setAccDescription=re,this.setDiagramTitle=ae,this.getDiagramTitle=ce,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{u(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const s of Array.isArray(t)?t:t.doc)switch(s.stmt){case J:this.addState(s.id.trim(),s.type,s.doc,s.description,s.note);break;case xt:this.addRelation(s.state1,s.state2,s.description);break;case Te:this.addStyleClass(s.id.trim(),s.classes);break;case me:this.handleStyleDef(s);break;case Ee:this.setCssClass(s.id.trim(),s.styleClass);break;case"click":this.addLink(s.id,s.url,s.tooltip)}const e=this.getStates(),r=P();Re(),Z(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,r.look,this.classes);for(const s of this.nodes)if(Array.isArray(s.label)){if(s.description=s.label.slice(1),s.isGroup&&s.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);s.label=s.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),r=t.styleClass.split(",");for(const s of e){let h=this.getState(s);if(!h){const c=s.trim();this.addState(c),h=this.getState(c)}h&&(h.styles=r.map(c=>c.replace(/;/g,"")?.trim()))}}setRootDoc(t){b.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,r){if(e.stmt===xt){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===J&&(e.id===I.START_NODE?(e.id=t.id+(r?"_start":"_end"),e.start=r):e.id=e.id.trim()),e.stmt!==X&&e.stmt!==J||!e.doc)return;const s=[];let h=[];for(const c of e.doc)if(c.type===Vt){const y=St(c);y.doc=St(h),s.push(y),h=[]}else h.push(c);if(s.length>0&&h.length>0){const c={stmt:J,id:de(),type:"divider",doc:St(h)};s.push(St(c)),e.doc=s}e.doc.forEach(c=>this.docTranslator(e,c,!0))}getRootDocV2(){return this.docTranslator({id:X,stmt:X},{id:X,stmt:X,doc:this.rootDoc},!0),{id:X,doc:this.rootDoc}}addState(t,e=tt,r=void 0,s=void 0,h=void 0,c=void 0,y=void 0,T=void 0){const n=t?.trim();if(!this.currentDocument.states.has(n))b.info("Adding state ",n,s),this.currentDocument.states.set(n,{stmt:J,id:n,descriptions:[],type:e,doc:r,note:h,classes:[],styles:[],textStyles:[]});else{const g=this.currentDocument.states.get(n);if(!g)throw new Error(`State not found: ${n}`);g.doc||(g.doc=r),g.type||(g.type=e)}if(s&&(b.info("Setting state description",n,s),(Array.isArray(s)?s:[s]).forEach(g=>this.addDescription(n,g.trim()))),h){const g=this.currentDocument.states.get(n);if(!g)throw new Error(`State not found: ${n}`);g.note=h,g.note.text=j.sanitizeText(g.note.text,P())}c&&(b.info("Setting state classes",n,c),(Array.isArray(c)?c:[c]).forEach(g=>this.setCssClass(n,g.trim()))),y&&(b.info("Setting state styles",n,y),(Array.isArray(y)?y:[y]).forEach(g=>this.setStyle(n,g.trim()))),T&&(b.info("Setting state styles",n,y),(Array.isArray(T)?T:[T]).forEach(g=>this.setTextStyle(n,g.trim())))}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Ft()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Yt(),t||(this.links=new Map,oe())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){b.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,r){this.links.set(t,{url:e,tooltip:r}),b.warn("Adding link",t,e,r)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===I.START_NODE?(this.startEndCount++,`${I.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=tt){return t===I.START_NODE?I.START_TYPE:e}endIdIfNeeded(t=""){return t===I.END_NODE?(this.startEndCount++,`${I.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=tt){return t===I.END_NODE?I.END_TYPE:e}addRelationObjs(t,e,r=""){const s=this.startIdIfNeeded(t.id.trim()),h=this.startTypeIfNeeded(t.id.trim(),t.type),c=this.startIdIfNeeded(e.id.trim()),y=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(s,h,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(c,y,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:s,id2:c,relationTitle:j.sanitizeText(r,P())})}addRelation(t,e,r){if(typeof t=="object"&&typeof e=="object")this.addRelationObjs(t,e,r);else if(typeof t=="string"&&typeof e=="string"){const s=this.startIdIfNeeded(t.trim()),h=this.startTypeIfNeeded(t),c=this.endIdIfNeeded(e.trim()),y=this.endTypeIfNeeded(e);this.addState(s,h),this.addState(c,y),this.currentDocument.relations.push({id1:s,id2:c,relationTitle:r?j.sanitizeText(r,P()):void 0})}}addDescription(t,e){const r=this.currentDocument.states.get(t),s=e.startsWith(":")?e.replace(":","").trim():e;r?.descriptions?.push(j.sanitizeText(s,P()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const r=this.classes.get(t);e&&r&&e.split(I.STYLECLASS_SEP).forEach(s=>{const h=s.replace(/([^;]*);/,"$1").trim();if(RegExp(I.COLOR_KEYWORD).exec(s)){const c=h.replace(I.FILL_KEYWORD,I.BG_FILL).replace(I.COLOR_KEYWORD,I.FILL_KEYWORD);r.textStyles.push(c)}r.styles.push(h)})}getClasses(){return this.classes}setupToolTips(t){const e=fe();kt(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",r=>{const s=kt(r.currentTarget),h=s.attr("title");if(h===null)return;const c=r.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+c.left+(c.right-c.left)/2+"px").style("top",window.scrollY+c.bottom+"px"),e.html(ie.sanitize(h)),s.classed("hover",!0)}).on("mouseout",r=>{e.transition().duration(500).style("opacity",0),kt(r.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(r=>{let s=this.getState(r);if(!s){const h=r.trim();this.addState(h),s=this.getState(h)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===Ot)}getDirection(){return this.getDirectionStatement()?.value??ge}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:Ot,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=P();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Jt(this.getRootDocV2())}}getConfig(){return P().state}},ze=u(t=>`
|
|
7
|
+
defs [id$="-barbEnd"] {
|
|
8
|
+
fill: ${t.transitionColor};
|
|
9
|
+
stroke: ${t.transitionColor};
|
|
10
|
+
}
|
|
11
|
+
g.stateGroup text {
|
|
12
|
+
fill: ${t.nodeBorder};
|
|
13
|
+
stroke: none;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
}
|
|
16
|
+
g.stateGroup text {
|
|
17
|
+
fill: ${t.textColor};
|
|
18
|
+
stroke: none;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
g.stateGroup .state-title {
|
|
23
|
+
font-weight: bolder;
|
|
24
|
+
fill: ${t.stateLabelColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
g.stateGroup rect {
|
|
28
|
+
fill: ${t.mainBkg};
|
|
29
|
+
stroke: ${t.nodeBorder};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
g.stateGroup line {
|
|
33
|
+
stroke: ${t.lineColor};
|
|
34
|
+
stroke-width: ${t.strokeWidth||1};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.transition {
|
|
38
|
+
stroke: ${t.transitionColor};
|
|
39
|
+
stroke-width: ${t.strokeWidth||1};
|
|
40
|
+
fill: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stateGroup .composit {
|
|
44
|
+
fill: ${t.background};
|
|
45
|
+
border-bottom: 1px
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.stateGroup .alt-composit {
|
|
49
|
+
fill: #e0e0e0;
|
|
50
|
+
border-bottom: 1px
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.state-note {
|
|
54
|
+
stroke: ${t.noteBorderColor};
|
|
55
|
+
fill: ${t.noteBkgColor};
|
|
56
|
+
|
|
57
|
+
text {
|
|
58
|
+
fill: ${t.noteTextColor};
|
|
59
|
+
stroke: none;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.stateLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${t.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgeLabel .label rect {
|
|
72
|
+
fill: ${t.labelBackgroundColor};
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${t.edgeLabelBackground};
|
|
77
|
+
p {
|
|
78
|
+
background-color: ${t.edgeLabelBackground};
|
|
79
|
+
}
|
|
80
|
+
rect {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
background-color: ${t.edgeLabelBackground};
|
|
83
|
+
fill: ${t.edgeLabelBackground};
|
|
84
|
+
}
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
.edgeLabel .label text {
|
|
88
|
+
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
89
|
+
}
|
|
90
|
+
.label div .edgeLabel {
|
|
91
|
+
color: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.stateLabel text {
|
|
95
|
+
fill: ${t.stateLabelColor};
|
|
96
|
+
font-size: 10px;
|
|
97
|
+
font-weight: bold;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.node circle.state-start {
|
|
101
|
+
fill: ${t.specialStateColor};
|
|
102
|
+
stroke: ${t.specialStateColor};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.node .fork-join {
|
|
106
|
+
fill: ${t.specialStateColor};
|
|
107
|
+
stroke: ${t.specialStateColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.node circle.state-end {
|
|
111
|
+
fill: ${t.innerEndBackground};
|
|
112
|
+
stroke: ${t.background};
|
|
113
|
+
stroke-width: 1.5
|
|
114
|
+
}
|
|
115
|
+
.end-state-inner {
|
|
116
|
+
fill: ${t.compositeBackground||t.background};
|
|
117
|
+
// stroke: ${t.background};
|
|
118
|
+
stroke-width: 1.5
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.node rect {
|
|
122
|
+
fill: ${t.stateBkg||t.mainBkg};
|
|
123
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
124
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
125
|
+
}
|
|
126
|
+
.node polygon {
|
|
127
|
+
fill: ${t.mainBkg};
|
|
128
|
+
stroke: ${t.stateBorder||t.nodeBorder};;
|
|
129
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
130
|
+
}
|
|
131
|
+
[id$="-barbEnd"] {
|
|
132
|
+
fill: ${t.lineColor};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.statediagram-cluster rect {
|
|
136
|
+
fill: ${t.compositeTitleBackground};
|
|
137
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
138
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.cluster-label, .nodeLabel {
|
|
142
|
+
color: ${t.stateLabelColor};
|
|
143
|
+
// line-height: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.statediagram-cluster rect.outer {
|
|
147
|
+
rx: 5px;
|
|
148
|
+
ry: 5px;
|
|
149
|
+
}
|
|
150
|
+
.statediagram-state .divider {
|
|
151
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.statediagram-state .title-state {
|
|
155
|
+
rx: 5px;
|
|
156
|
+
ry: 5px;
|
|
157
|
+
}
|
|
158
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
159
|
+
fill: ${t.compositeBackground||t.background};
|
|
160
|
+
}
|
|
161
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
162
|
+
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.statediagram-cluster .inner {
|
|
166
|
+
rx:0;
|
|
167
|
+
ry:0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.statediagram-state rect.basic {
|
|
171
|
+
rx: 5px;
|
|
172
|
+
ry: 5px;
|
|
173
|
+
}
|
|
174
|
+
.statediagram-state rect.divider {
|
|
175
|
+
stroke-dasharray: 10,10;
|
|
176
|
+
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.note-edge {
|
|
180
|
+
stroke-dasharray: 5;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.statediagram-note rect {
|
|
184
|
+
fill: ${t.noteBkgColor};
|
|
185
|
+
stroke: ${t.noteBorderColor};
|
|
186
|
+
stroke-width: 1px;
|
|
187
|
+
rx: 0;
|
|
188
|
+
ry: 0;
|
|
189
|
+
}
|
|
190
|
+
.statediagram-note rect {
|
|
191
|
+
fill: ${t.noteBkgColor};
|
|
192
|
+
stroke: ${t.noteBorderColor};
|
|
193
|
+
stroke-width: 1px;
|
|
194
|
+
rx: 0;
|
|
195
|
+
ry: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.statediagram-note text {
|
|
199
|
+
fill: ${t.noteTextColor};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.statediagram-note .nodeLabel {
|
|
203
|
+
color: ${t.noteTextColor};
|
|
204
|
+
}
|
|
205
|
+
.statediagram .edgeLabel {
|
|
206
|
+
color: red; // ${t.noteTextColor};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
210
|
+
fill: ${t.lineColor};
|
|
211
|
+
stroke: ${t.lineColor};
|
|
212
|
+
stroke-width: ${t.strokeWidth||1};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.statediagramTitleText {
|
|
216
|
+
text-anchor: middle;
|
|
217
|
+
font-size: 18px;
|
|
218
|
+
fill: ${t.textColor};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
222
|
+
fill: ${t.mainBkg};
|
|
223
|
+
stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
|
|
224
|
+
stroke-width: ${t.strokeWidth??1};
|
|
225
|
+
}
|
|
226
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
227
|
+
rx: ${t.radius}px;
|
|
228
|
+
ry: ${t.radius}px;
|
|
229
|
+
filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
|
|
230
|
+
}
|
|
231
|
+
`,"getStyles");export{ze as i,Ue as n,je as r,He as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var i=(c,e)=>t(c,"name",{value:e,configurable:!0});import{n as o}from"./chunk-Y2CYZVJY-OvsAdhaO.js";function l(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(l,"populateCommonDb");o(l,"populateCommonDb");export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as N}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as $,p as V}from"./src-Bssc388C.js";import{T as X,g as rt,x as G}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{n as A}from"./chunk-GMAD6QVW-BfvaaEBW.js";import{a as Y,i as F}from"./chunk-P2QGCYS3-CjqEi3mx.js";import{t as H}from"./rough.esm-DnC5Tr1g.js";import{n as z,r as j,t as Q}from"./chunk-4HAMMTFA-CGGd_Pxz.js";import{n as U}from"./chunk-GVQU2GXP-Cwp_Wpj2.js";var it=N(async(k,t)=>{const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{clusterBkg:u,clusterBorder:v}=S,n=v,{labelStyles:m,nodeStyles:o,borderStyles:T,backgroundStyles:g}=F(t),h=k.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),c=rt(l.flowchart.htmlLabels),a=t.direction==="LR",r=h.insert("g").attr("class","cluster-label swimlane-label"),b=await A(r,t.label,{style:t.labelStyle,useHtmlLabels:c,isNode:!0,width:t.width});let s=b.getBBox();if(c){const B=b.children[0],D=V(b);s=B.getBoundingClientRect(),D.attr("width",s.width),D.attr("height",s.height)}const y=t.padding??0,w=t.width<=s.width+y?s.width+y:t.width;t.width<=s.width+y?t.diff=(w-t.width)/2-y:t.diff=-y;const i=t.height,f=t.y-i/2,R=t.y+i/2,e=t.x-w/2,p=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:f+i/3,x=a?4:0,W=s.height+2*x;let C,M;if(a){const B=Math.max(W,s.height+2*x),D=e+B,L=Math.max(0,w-B);if(t.look==="handDrawn"){const _=H.svg(h),P=Y(t,{roughness:.7,fill:u,stroke:n,fillWeight:3,seed:d}),E=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),J=_.rectangle(e,f,B,i,P);C=h.insert(()=>J,":first-child");const q=_.rectangle(D,f,L,i,E);M=h.insert(()=>q,":first-child"),C.select("path:nth-child(2)").attr("style",T.join(";")),C.select("path").attr("style",g.join(";").replace("fill","stroke"))}else C=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),C.attr("class","swimlane-title").attr("style",o).attr("x",e).attr("y",f).attr("width",B).attr("height",i).attr("fill",u).attr("stroke",n),M.attr("class","swimlane-body").attr("style",o).attr("x",D).attr("y",f).attr("width",L).attr("height",i).attr("fill","none").attr("stroke",n);const I=e+B/2,O=t.y;r.attr("transform",`translate(${I}, ${O}) rotate(-90) translate(${-s.width/2}, ${-s.height/2})`)}else{const B=Math.max(0,p-f),D=Math.min(W,B),L=f+D,I=Math.max(0,R-L),O=t.x-w/2;if(t.look==="handDrawn"){const E=H.svg(h),J=Y(t,{roughness:.7,fill:u,stroke:n,fillWeight:3,seed:d}),q=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),tt=E.rectangle(O,f,w,D,J);C=h.insert(()=>tt,":first-child");const st=E.rectangle(O,L,w,I,q);M=h.insert(()=>st,":first-child"),C.select("path:nth-child(2)").attr("style",T.join(";")),C.select("path").attr("style",g.join(";").replace("fill","stroke"))}else C=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),C.attr("class","swimlane-title").attr("style",o).attr("x",O).attr("y",f).attr("width",w).attr("height",D).attr("fill",u).attr("stroke",n),M.attr("class","swimlane-body").attr("style",o).attr("x",O).attr("y",L).attr("width",w).attr("height",I).attr("fill","none").attr("stroke",n);const _=t.x-s.width/2,P=f+(D-s.height)/2;r.attr("transform",`translate(${_}, ${P})`)}if($.trace("Swimlane data ",t,JSON.stringify(t)),m){const B=r.select("span");B&&B.attr("style",m)}return t.offsetX=0,t.width=w,t.height=i,t.offsetY=s.height-y/2,t.intersect=function(B){return j(t,B)},{cluster:h,labelBBox:s}},"swimlane"),K=N(async(k,t)=>{$.info("Creating subgraph rect for ",t.id,t);const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{clusterBkg:u,clusterBorder:v}=S,{labelStyles:n,nodeStyles:m,borderStyles:o,backgroundStyles:T}=F(t),g=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),c=g.insert("g").attr("class","cluster-label ");let a;t.labelType==="markdown"?a=await A(c,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):a=await Q(c,t.label,t.labelStyle||"",!1,!0);let r=a.getBBox();if(X(l)){const e=a.children[0],p=V(a);r=e.getBoundingClientRect(),p.attr("width",r.width),p.attr("height",r.height)}const b=t.width<=r.width+t.padding?r.width+t.padding:t.width;t.width<=r.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const s=t.height,y=t.x-b/2,w=t.y-s/2;$.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){const e=H.svg(g),p=Y(t,{roughness:.7,fill:u,stroke:v,fillWeight:3,seed:d}),x=e.path(z(y,w,b,s,0),p);i=g.insert(()=>($.debug("Rough node insert CXC",x),x),":first-child"),i.select("path:nth-child(2)").attr("style",o.join(";")),i.select("path").attr("style",T.join(";").replace("fill","stroke"))}else i=g.insert("rect",":first-child"),i.attr("style",m).attr("rx",t.rx).attr("ry",t.ry).attr("x",y).attr("y",w).attr("width",b).attr("height",s);const{subGraphTitleTopMargin:f}=U(l);if(c.attr("transform",`translate(${t.x-r.width/2}, ${t.y-t.height/2+f})`),n){const e=c.select("span");e&&e.attr("style",n)}const R=i.node().getBBox();return t.offsetX=0,t.width=R.width,t.height=R.height,t.offsetY=r.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:g,labelBBox:r}},"rect"),et={rect:K,squareRect:K,roundedWithTitle:N(async(k,t)=>{const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{altBackground:u,compositeBackground:v,compositeTitleBackground:n,nodeBorder:m}=S,o=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),T=o.insert("g",":first-child"),g=o.insert("g").attr("class","cluster-label");let h=o.append("rect");const c=await Q(g,t.label,t.labelStyle,void 0,!0);let a=c.getBBox();if(X(l)){const p=c.children[0],x=V(c);a=p.getBoundingClientRect(),x.attr("width",a.width),x.attr("height",a.height)}const r=0*t.padding,b=r/2,s=(t.width<=a.width+t.padding?a.width+t.padding:t.width)+r;t.width<=a.width+t.padding?t.diff=(s-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height+r,w=t.height+r-a.height-6,i=t.x-s/2,f=t.y-y/2;t.width=s;const R=t.y-t.height/2-b+a.height+2;let e;if(t.look==="handDrawn"){const p=t.cssClasses.includes("statediagram-cluster-alt"),x=H.svg(o),W=t.rx||t.ry?x.path(z(i,f,s,y,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:m,seed:d}):x.rectangle(i,f,s,y,{seed:d});e=o.insert(()=>W,":first-child");const C=x.rectangle(i,R,s,w,{fill:p?u:v,fillStyle:p?"hachure":"solid",stroke:m,seed:d});e=o.insert(()=>W,":first-child"),h=o.insert(()=>C)}else e=T.insert("rect",":first-child"),e.attr("class","outer").attr("x",i).attr("y",f).attr("width",s).attr("height",y).attr("data-look",t.look),h.attr("class","inner").attr("x",i).attr("y",R).attr("width",s).attr("height",w);return g.attr("transform",`translate(${t.x-a.width/2}, ${f+1-(X(l)?0:3)})`),t.height=e.node().getBBox().height,t.offsetX=0,t.offsetY=a.height-t.padding/2,t.labelBBox=a,t.intersect=function(p){return j(t,p)},{cluster:o,labelBBox:a}},"roundedWithTitle"),noteGroup:N((k,t)=>{const l=k.insert("g").attr("class","note-cluster").attr("id",t.domId),S=l.insert("rect",":first-child"),d=0*t.padding,u=d/2;S.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-u).attr("y",t.y-t.height/2-u).attr("width",t.width+d).attr("height",t.height+d).attr("fill","none");const v=S.node().getBBox();return t.width=v.width,t.height=v.height,t.intersect=function(n){return j(t,n)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),divider:N((k,t)=>{const{themeVariables:l,handDrawnSeed:S}=G(),{nodeBorder:d}=l,u=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),v=u.insert("g",":first-child"),n=0*t.padding,m=t.width+n;t.diff=-t.padding;const o=t.height+n,T=t.x-m/2,g=t.y-o/2;t.width=m;let h;if(t.look==="handDrawn"){const c=H.svg(u).rectangle(T,g,m,o,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:d,seed:S});h=u.insert(()=>c,":first-child")}else{h=v.insert("rect",":first-child");let c="outer";t.look,c="divider",h.attr("class",c).attr("x",T).attr("y",g).attr("width",m).attr("height",o).attr("data-look",t.look)}return t.height=h.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(c){return j(t,c)},{cluster:u,labelBBox:{}}},"divider"),kanbanSection:N(async(k,t)=>{$.info("Creating subgraph rect for ",t.id,t);const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{clusterBkg:u,clusterBorder:v}=S,{labelStyles:n,nodeStyles:m,borderStyles:o,backgroundStyles:T}=F(t),g=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),c=g.insert("g").attr("class","cluster-label "),a=await A(c,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width});let r=a.getBBox();if(X(l)){const e=a.children[0],p=V(a);r=e.getBoundingClientRect(),p.attr("width",r.width),p.attr("height",r.height)}const b=t.width<=r.width+t.padding?r.width+t.padding:t.width;t.width<=r.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const s=t.height,y=t.x-b/2,w=t.y-s/2;$.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){const e=H.svg(g),p=Y(t,{roughness:.7,fill:u,stroke:v,fillWeight:4,seed:d}),x=e.path(z(y,w,b,s,t.rx),p);i=g.insert(()=>($.debug("Rough node insert CXC",x),x),":first-child"),i.select("path:nth-child(2)").attr("style",o.join(";")),i.select("path").attr("style",T.join(";").replace("fill","stroke"))}else i=g.insert("rect",":first-child"),i.attr("style",m).attr("rx",t.rx).attr("ry",t.ry).attr("x",y).attr("y",w).attr("width",b).attr("height",s);const{subGraphTitleTopMargin:f}=U(l);if(c.attr("transform",`translate(${t.x-r.width/2}, ${t.y-t.height/2+f})`),n){const e=c.select("span");e&&e.attr("style",n)}const R=i.node().getBBox();return t.offsetX=0,t.width=R.width,t.height=R.height,t.offsetY=r.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:g,labelBBox:r}},"kanbanSection"),swimlane:it},Z=new Map,dt=N(async(k,t)=>{const l=await et[t.shape||"rect"](k,t);return Z.set(t.id,l),l},"insertCluster"),ut=N(()=>{Z=new Map},"clear");export{dt as n,ut as t};
|