@marimo-team/islands 0.25.3-dev99 → 0.26.1-dev0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-Dhf5EGs5.js → ConnectedDataExplorerComponent-DtwVgVpX.js} +190 -214
- package/dist/ErrorBoundary-BAPXZkp8.js +213 -0
- package/dist/{ImageComparisonComponent-uU8FSKZE.js → ImageComparisonComponent-CoiwlCwG.js} +20 -20
- package/dist/{Plot-DdYOe1UK.js → Plot-BHJLG4xm.js} +2474 -3107
- package/dist/_baseSet-Bd5zh2yg.js +327 -0
- package/dist/{abnfDiagram-VCTEODGH-Di400kYu.js → abnfDiagram-VCTEODGH-BbZOIueZ.js} +5 -5
- package/dist/{any-language-editor-k2B8YI3Y.js → any-language-editor-yG-YmLaK.js} +9 -9
- package/dist/{apl-GEW9-ZP1.js → apl-stFrI2NB.js} +1 -1
- package/dist/{arc-7ra3iNdN.js → arc-4W6H62B5.js} +1 -1
- package/dist/architecture-7GRP2DOG-GlkXha5_.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-BdTJcsNJ.js → architectureDiagram-5GKGNRK7-qjLjxapm.js} +48 -64
- package/dist/{arrays-R6JsImiT.js → arrays-DoQ-AILx.js} +7 -27
- package/dist/{asciiarmor-BWNxzkG7.js → asciiarmor-DHwFuaIC.js} +1 -1
- package/dist/{asn1-Bcn2QutK.js → asn1-KIH4fwAq.js} +1 -1
- package/dist/assertNever-DywGMo-S.js +507 -0
- package/dist/assets/__vite-browser-external-DZv_7F5P.js +1 -0
- package/dist/assets/worker-cHYZNFD4.js +171 -0
- package/dist/{blockDiagram-I7D4REHJ-Cg25UrxT.js → blockDiagram-I7D4REHJ-BoCyD5KO.js} +28 -39
- package/dist/{brainfuck-BQCYDheZ.js → brainfuck-UPAij4U9.js} +1 -1
- package/dist/{button-BxB3RDjN.js → button-qQhINE7z.js} +63 -63
- package/dist/{c4Diagram-7LVT6UL2-BxFgrnNV.js → c4Diagram-7LVT6UL2-DmcTtm4p.js} +8 -8
- package/dist/{capabilities-BgR0osfN.js → capabilities-DKqMqBzm.js} +2 -2
- package/dist/{channel-CPObtJXj.js → channel-B9eaiezW.js} +1 -1
- package/dist/{chat-ui-BIgPxfPP.js → chat-ui-D5YPIONI.js} +3110 -2917
- package/dist/{check-P35dc2dH.js → check-jchHMCfs.js} +1 -1
- package/dist/{chunk-4HAMMTFA-D4eFPyFh.js → chunk-4HAMMTFA-qKgadZwy.js} +6 -6
- package/dist/{chunk-75Z2AOVW-D7gxIs2Q.js → chunk-75Z2AOVW-76L6My3P.js} +4 -4
- package/dist/{chunk-YOKDWASO-DKplTrBY.js → chunk-7TTQLYRW-DBSfUUe5.js} +6253 -5835
- package/dist/{chunk-DU6HZSFF-BwiyaNpg.js → chunk-DU6HZSFF-4SDIhUTY.js} +14 -22
- package/dist/{chunk-F27PBJKO-ufseIn5y.js → chunk-F27PBJKO-COH2t-FO.js} +3 -3
- package/dist/{chunk-FOHPRMQF-BpYR8RqP.js → chunk-FOHPRMQF-ezmr_yWy.js} +49 -58
- package/dist/{chunk-GMAD6QVW-BhaJx0X3.js → chunk-GMAD6QVW-BJGF8QZL.js} +16 -75
- package/dist/{chunk-GVQU2GXP-Cwbt-lF0.js → chunk-GVQU2GXP-BkolpSXU.js} +3 -3
- package/dist/{chunk-IMKFNOWR-mtD7aJBw.js → chunk-IMKFNOWR-BzDY1_I7.js} +8 -8
- package/dist/{chunk-L3NEJ4N5-n-zgIVSy.js → chunk-L3NEJ4N5-B-BFQp9t.js} +6 -6
- package/dist/{chunk-OSK3NFVY-DXa-Cxbn.js → chunk-OSK3NFVY-BzfZ4VBG.js} +8 -8
- package/dist/{chunk-P2QGCYS3-B_Zd3-X0.js → chunk-P2QGCYS3-DJApLVdt.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-hYOXbYH_.js → chunk-POPQ4Y6H-BFSZel4w.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CQw5qATZ.js → chunk-PWAF6VOD-CRu_RGP2.js} +2 -2
- package/dist/{chunk-SHT3W25Y-DybB1ShH.js → chunk-SHT3W25Y-DbHsMKdo.js} +10 -10
- package/dist/{chunk-SVP7TREG-DNhhdCex.js → chunk-SVP7TREG-CtwnwAE6.js} +3 -3
- package/dist/{chunk-TICWLB2K-NhAQhlDf.js → chunk-TICWLB2K-C5Z5QMbO.js} +10 -10
- package/dist/{chunk-XXDRQBXY-Dnl5VBqG.js → chunk-XXDRQBXY-BM-YIt-_.js} +1 -1
- package/dist/classDiagram-ZZMXUADV-B8E5Hn78.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-DeGsK9bT.js +30 -0
- package/dist/{clike-CxK9W55Z.js → clike-xU8sCVU1.js} +2 -6
- package/dist/{clojure-Dzcvwpxk.js → clojure-psoSEo36.js} +1 -1
- package/dist/{cmake-DYr-71zp.js → cmake-DDHBwlE7.js} +1 -1
- package/dist/{cobol-DC3g37Kq.js → cobol-C4qjDcIq.js} +1 -1
- package/dist/code-visibility-Ebrgx-u3.js +130 -0
- package/dist/{coffeescript-C-eFwH5N.js → coffeescript-D6UgrGgo.js} +1 -1
- package/dist/{common-iaqaS3Sy.js → common-Capdc2h_.js} +10975 -10314
- package/dist/{commonlisp-CyaNXrJR.js → commonlisp-B0ChVjnu.js} +1 -1
- package/dist/{compiler-runtime-CldRdSsv.js → compiler-runtime-C5KHtL5D.js} +3 -3
- package/dist/{toDate-DKH0_kMo.js → config-qTaTHnpE.js} +96 -180
- package/dist/{copy-icon-CPoxUG7G.js → copy-icon-BI7vZHEW.js} +46 -41
- package/dist/{cose-bilkent-JH36ORCC-_LyRKVqm.js → cose-bilkent-JH36ORCC-B_Oz4vMP.js} +58 -71
- package/dist/createReducer-DdSLRfBT.js +67 -0
- package/dist/{crystal-ih5ax5tQ.js → crystal-DZsc9Ue0.js} +1 -1
- package/dist/{css-CN_wP7_R.js → css-DkYRnQ9U.js} +1 -1
- package/dist/{cubic-OaEBhQPK.js → cubic-CA80xY_e.js} +6 -7
- package/dist/cynefin-OW5HDTMX-0-HehVvH.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-CX22wa7c.js → cynefinDiagram-5FMLGOSQ-NDedRwsw.js} +5 -5
- package/dist/{cypher-CqGRcmZo.js → cypher-CpWPqgvy.js} +1 -1
- package/dist/{cytoscape.esm-jJhXJpLB.js → cytoscape.esm-BbeMznK5.js} +411 -512
- package/dist/{d-Cj0sOW2z.js → d-Bx2ggfYO.js} +1 -1
- package/dist/{dagre-BGSfXNEb.js → dagre-CpjuekF1.js} +550 -700
- package/dist/{dagre-GXQ25YYZ-Df6Pp-cl.js → dagre-GXQ25YYZ-De0sSZO7.js} +14 -16
- package/dist/{data-grid-overlay-editor-C_cWoUm0.js → data-grid-overlay-editor-CErEC4xn.js} +8 -8
- package/dist/{data-grid-types-0PJ-9N5n.js → data-grid-types-DIX_pCco.js} +2 -2
- package/dist/{debounce-C3jyATpc.js → debounce-DrhhziJv.js} +2 -2
- package/dist/{diagram-S7CK7UJ4-CctU9kVx.js → diagram-S7CK7UJ4-wBtVl61y.js} +7 -15
- package/dist/{diagram-UQ7AKVKN-FVHjCF9j.js → diagram-UQ7AKVKN-CKWE3c1T.js} +5 -5
- package/dist/{diagram-VSXAHHWV-BJWcVVJY.js → diagram-VSXAHHWV-LXjisZoM.js} +6 -6
- package/dist/{diagram-VX7I27RA-BSDbwFFv.js → diagram-VX7I27RA-D2Ac5198.js} +7 -7
- package/dist/{diagram-Z3DM3KII-BX8kW7Nc.js → diagram-Z3DM3KII-CYaFOQcI.js} +5 -5
- package/dist/{dialog-C1PcpCqX.js → dialog-Ic6dh09m.js} +25 -25
- package/dist/{diff-B_hUkiat.js → diff-DNXaJS8v.js} +1 -1
- package/dist/{dist-Bvs24R_E.js → dist-B1qu3Bez.js} +55 -54
- package/dist/{dist-D-wwqlzJ.js → dist-BEcpQbZa.js} +78 -77
- package/dist/{dist-CrSP_H1M.js → dist-BMz__bo5.js} +317 -317
- package/dist/{dist-Cg7gzw-a.js → dist-BagHbFqG.js} +70 -69
- package/dist/{dist-C8fAKSH1.js → dist-BdUitvVW.js} +65 -64
- package/dist/{dist-BuaRHxOc.js → dist-BfrgytDR.js} +45 -44
- package/dist/{dist-CSJ0MDRw.js → dist-BozTF_gH.js} +56 -55
- package/dist/{dist-DiDibOYr.js → dist-BreKIQqQ.js} +149 -148
- package/dist/{dist-CN8zI-XC.js → dist-BsE4gQHj.js} +555 -555
- package/dist/{dist-F8Ep36rk.js → dist-BunZKA_9.js} +60 -59
- package/dist/dist-BvZpdAuG.js +850 -0
- package/dist/{dist-DUAh96QY.js → dist-CB9MzCXv.js} +1 -1
- package/dist/{dist-BK4Oj99o.js → dist-CDVvitRS.js} +18 -17
- package/dist/{dist-CN_BeG2I.js → dist-CEomphG1.js} +59 -58
- package/dist/{dist-BMQf5zIS.js → dist-ChcBm3jk.js} +166 -165
- package/dist/{dist-Lm-D-Vr6.js → dist-CiSkXlAO.js} +3 -3
- package/dist/{dist-D6d86eNJ.js → dist-Cshl6jBw.js} +46 -45
- package/dist/{dist-DBtSl3sf.js → dist-D1D56-GS.js} +54 -56
- package/dist/{dist-DoE4XJBC.js → dist-D92tYjLc.js} +9845 -10688
- package/dist/{dist-OR1OnN-y.js → dist-D95Cd4xm.js} +53 -52
- package/dist/{dist-BorMD-uX.js → dist-DNkrY12t.js} +94 -93
- package/dist/{dist-BLfKmR-l.js → dist-DneeBk3K.js} +18 -17
- package/dist/{dist-diIx5qJW.js → dist-DpYpG8Yc.js} +37 -36
- package/dist/{dist-CkTTIdBe.js → dist-MggMo7OR.js} +243 -243
- package/dist/{dist-PXYI_yuP.js → dist-ObeTgSmf.js} +27 -26
- package/dist/{dist-CLdpGQVr.js → dist-OmeAz0fR.js} +114 -116
- package/dist/{dist-CSbh1PNP.js → dist-TGSwzj8a.js} +26 -25
- package/dist/dropdown-menu-Dhv4fcNl.js +5982 -0
- package/dist/{dtd-B8FGSWWe.js → dtd-D1YZQCVT.js} +1 -1
- package/dist/duckdb-keywords-CdzX4o33.js +3 -0
- package/dist/{dylan-DbIBYIrw.js → dylan-CxbG-PUm.js} +2 -2
- package/dist/{ebnfDiagram-PWID7BFC-DtapdLet.js → ebnfDiagram-PWID7BFC-Ds7f42dj.js} +5 -5
- package/dist/{ecl-DBmkdWAd.js → ecl-DIXH6vul.js} +1 -1
- package/dist/{eiffel-CcWSDDzK.js → eiffel-D0de-eQr.js} +1 -1
- package/dist/{elm-MC-b8a6C.js → elm-DrQrn4VD.js} +1 -1
- package/dist/{erDiagram-RLTQ6QDP-BAru9jHt.js → erDiagram-RLTQ6QDP-b58Sz2Mc.js} +14 -14
- package/dist/{erlang-AdO1-xtV.js → erlang-2KpKpfC7.js} +1 -1
- package/dist/{error-banner-Sl2FlSJ4.js → error-banner-CJVLr5_a.js} +147 -147
- package/dist/error-entries-BKlEsuk4.js +3255 -0
- package/dist/{esm-D2gTsXEV.js → esm-B9n0caHs.js} +643 -644
- package/dist/{esm-AMFssoNp.js → esm-Bwp_FHP0.js} +331 -331
- package/dist/{esm-G4Fhsgng.js → esm-DQtHTnHn.js} +640 -660
- package/dist/eventmodeling-NTZA5JFV-DoBvB4Lj.js +2 -0
- package/dist/{factor-Ys-13HOP.js → factor-Bwu3ZGOk.js} +1 -1
- package/dist/feedback-button-Bxokl7c-.js +370 -0
- package/dist/flowDiagram-HODETNUW-BH9U7VZK.js +15 -0
- package/dist/{formats-V8ifA0Bk.js → formats-BLNFWWhV.js} +9 -9
- package/dist/{forth-DiMuIXFe.js → forth-DYatDpr6.js} +2 -3
- package/dist/{fortran-hkrF2eM4.js → fortran-n8mcQPkL.js} +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js → ganttDiagram-EL5Y4UJY-YzTghq1V.js} +17 -17
- package/dist/{gas-DlhqN9k8.js → gas-BUZOHBVw.js} +1 -1
- package/dist/{gherkin-0SlhEZ3t.js → gherkin-CrSjX26K.js} +1 -1
- package/dist/gitGraph-4MIJSDKK-Ch7kj-d2.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5nSIzdE.js → gitGraphDiagram-WWUBYQGX-CK66dT35.js} +4 -4
- package/dist/{glide-data-editor-BtpcH-zL.js → glide-data-editor-DkbmoSoO.js} +6717 -2965
- package/dist/{glide-utils-Bt8_pBa2.js → glide-utils-Cn2_NadX.js} +109 -78
- package/dist/{globals-BJP2vdQ8.js → globals-BZH2TwVV.js} +3 -3
- package/dist/{graphlib-BmY_CCV9.js → graphlib-nlwT3Wvy.js} +177 -220
- package/dist/{groovy-YhcTMyvX.js → groovy-IgGNjeU9.js} +1 -1
- package/dist/hasIn-C20JsQ2m.js +28 -0
- package/dist/{haskell-CodLxrtT.js → haskell-Bs1k3a9s.js} +1 -1
- package/dist/{haxe-CiRWNFkH.js → haxe-CQ8Yb3XF.js} +1 -1
- package/dist/highlighted-body-JLMTFACH-yt0ZZn80.js +42 -0
- package/dist/{error-entries-TAO6kEhF.js → html-to-image-CNM0ZSFD.js} +26321 -26406
- package/dist/{idl-DZgBq75I.js → idl-DjnxoAWx.js} +1 -1
- package/dist/info-A6RAGUB7-DCz_Egh9.js +2 -0
- package/dist/{infoDiagram-27XIBGKW-B1hmUggC.js → infoDiagram-27XIBGKW-xbjwrcNi.js} +4 -4
- package/dist/isArrayLikeObject-B-HXCsex.js +626 -0
- package/dist/isEmpty-CdX7MTE1.js +14 -0
- package/dist/{ishikawaDiagram-5VMMS53U-DUeT3t-d.js → ishikawaDiagram-5VMMS53U-DKtukhGS.js} +5 -7
- package/dist/{javascript-BfNytHiM.js → javascript-BQtCoAFy.js} +2 -2
- package/dist/{journeyDiagram-3NMN7TZE-BaLqn-dZ.js → journeyDiagram-3NMN7TZE-CYXsL3IE.js} +4 -4
- package/dist/{jsx-runtime-3BD1kT0s.js → jsx-runtime-D8btoEHk.js} +2 -2
- package/dist/{julia--tLIAG7q.js → julia-BfgtHJE5.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-DEUnNNgc.js → kanban-definition-UXKFOSKX-BEhlkZBb.js} +10 -10
- package/dist/{katex-BIdZGsyO.js → katex-wAapZGrX.js} +793 -724
- package/dist/linear-TJTTbHM9.js +203 -0
- package/dist/{livescript-CVPfYnY_.js → livescript-gIdRPKtg.js} +1 -1
- package/dist/{loader-Bm8cy3e8.js → loader-Bin_dutt.js} +12 -12
- package/dist/lru-0OWJJMrW.js +41 -0
- package/dist/{lua-4Fa-T-qq.js → lua-CxFpWvnv.js} +2 -2
- package/dist/main.js +11758 -9367
- package/dist/{mathematica-CtYAy6GG.js → mathematica-QSveeEoW.js} +1 -1
- package/dist/{mbox-D0w9Ah1C.js → mbox-2JtaCPNT.js} +1 -1
- package/dist/{mermaid-B0fXpsNP.js → mermaid-D1CZDNoB.js} +1195 -1182
- package/dist/mermaid-WFAXDIZX-DHB2z13u.js +1 -0
- package/dist/{mermaid-parser.core-DxuSfYwJ.js → mermaid-parser.core-DtOnl7m4.js} +19 -25
- package/dist/{mhchem-CdWPJK6g.js → mhchem-CX8M7Ktl.js} +1 -1
- package/dist/{micromark-factory-space-DGxAzmw8.js → micromark-factory-space-C5soVmaM.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-CPexlhDQ.js → mindmap-definition-YA3MSWOX-DQcnJPcV.js} +13 -13
- package/dist/{mirc-De9aSAZM.js → mirc-BqD6ade4.js} +1 -1
- package/dist/{mllike-BbugeaY_.js → mllike-CT0hgEOO.js} +1 -1
- package/dist/{modelica-BjJwWw1F.js → modelica-DKKebcvq.js} +1 -1
- package/dist/{mscgen-DwiRH5ma.js → mscgen-BJCCsWjR.js} +1 -1
- package/dist/{mumps--plbDM9o.js → mumps-DVQAXZkU.js} +1 -1
- package/dist/{nginx-C4Df7REc.js → nginx-AP4LH2NN.js} +1 -1
- package/dist/{node-sql-parser-BiZOJ-FS.js → node-sql-parser-C9dndbfr.js} +7184 -7195
- package/dist/{now-jM8-M7IR.js → now-BKZCLE5P.js} +12 -13
- package/dist/{nsis-fiiOqLc3.js → nsis-Cah9xkdT.js} +1 -1
- package/dist/{ntriples-jV77I4k8.js → ntriples-CQoaLOV6.js} +2 -2
- package/dist/{number-overlay-editor-CTy6GMzT.js → number-overlay-editor-CkRxchEC.js} +17 -22
- package/dist/{octave-Cztd01tF.js → octave-CeDj2bTn.js} +1 -1
- package/dist/{once-eG8Vmvjd.js → once-NnpX_HnX.js} +1 -1
- package/dist/{oz-Bl8o3BDl.js → oz-BksQrg3k.js} +1 -1
- package/dist/packet-AYTQ26CC-DEMHgLPq.js +2 -0
- package/dist/{pascal-BO5JqysR.js → pascal-BKL17mpl.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CMpp1OOQ.js → pegDiagram-XKGWAZYB-BFQuPYfI.js} +5 -5
- package/dist/pencil-DVYzq-iR.js +10 -0
- package/dist/{perl-Drlh9s6m.js → perl-CacqJ-Ss.js} +1 -1
- package/dist/pick-DgpAbcwP.js +35 -0
- package/dist/pie-WAS4IAKB-DMjTEeHd.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-DlMWg5t1.js → pieDiagram-E7YTZNPT-l7aqNrem.js} +7 -7
- package/dist/{pig-BWGR8wZw.js → pig-CXSGZ_K9.js} +1 -1
- package/dist/{powershell-DT99xlz_.js → powershell-DY_yIxBM.js} +3 -6
- package/dist/precisionRound-DMIVQrt2.js +97 -0
- package/dist/{process-output-DD-oSvZk.js → process-output-DthYR2Te.js} +19 -30
- package/dist/{properties-Q-rkxld0.js → properties-Om0IDE07.js} +1 -1
- package/dist/{protobuf-DKyWZbs7.js → protobuf-B8nxxb4Q.js} +1 -1
- package/dist/{pug-42ZJUbEC.js → pug-lkUBPvVS.js} +3 -7
- package/dist/{puppet-B4UozHhh.js → puppet-DMkXsi4d.js} +1 -1
- package/dist/purify.es-DmnrIjg4.js +877 -0
- package/dist/{python-DREjAV__.js → python-JQVycMgr.js} +1 -1
- package/dist/{q-Bi63IpBO.js → q-DqE__nNB.js} +1 -1
- package/dist/{quadrantDiagram-AXDQQJYC-Blrm7V7_.js → quadrantDiagram-AXDQQJYC-nGFBFig7.js} +3 -3
- package/dist/{r-DSwXWKMR.js → r-Cbliap7Q.js} +1 -1
- package/dist/radar-RG4KPBEZ-9PwdCvai.js +2 -0
- package/dist/railroad-74A4TZTK-8N9kF5jl.js +2 -0
- package/dist/railroad-abnf-HS5TGJTU-Sg6YmzlR.js +2 -0
- package/dist/railroad-ebnf-LZEXJU2U-CYwp2Oee.js +2 -0
- package/dist/railroad-peg-WCYAUIDC-BfDkAuQ3.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-DBJfseeO.js → railroadDiagram-O6MQD6OU-6R3C1lwQ.js} +5 -5
- package/dist/{react-sHtZdjeP.js → react-Bgs_wQh3.js} +3 -3
- package/dist/{react-dom-DUmH0GXv.js → react-dom-DdqGVp5N.js} +5 -5
- package/dist/{react-vega-C4T9Rb_w.js → react-vega-CGgQEf0O.js} +13800 -17236
- package/dist/{requirementDiagram-BXWQKSXE-BC7V639r.js → requirementDiagram-BXWQKSXE-DdWYu8fn.js} +13 -13
- package/dist/{reveal-component-C7puatnn.js → reveal-component-YJ4y0XIg.js} +1003 -1117
- package/dist/{rolldown-runtime-Cb76FRpK.js → rolldown-runtime-BPCzCO3I.js} +1 -1
- package/dist/{rpm-DPb1DeKM.js → rpm-DmT_LNpE.js} +1 -1
- package/dist/{ruby-U7fZA4DP.js → ruby-BHVZTtLW.js} +1 -1
- package/dist/{sankeyDiagram-P5KCCOFB-ELvOcnZH.js → sankeyDiagram-P5KCCOFB-CrOfyc2n.js} +2 -2
- package/dist/{sas-CLk1JpTn.js → sas-CrG5N1he.js} +1 -1
- package/dist/{scheme-CT-2k2Tl.js → scheme-BHUnz-IB.js} +1 -1
- package/dist/select-CDUxhHZg.js +1198 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-CgesU6F-.js → sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js} +6 -6
- package/dist/{shell-BLO7fcsk.js → shell-C5IBmRU5.js} +1 -1
- package/dist/{sieve-nG3C7WNH.js → sieve-BzCnt_E6.js} +2 -2
- package/dist/{sizeCapture-INFHLROL-Dx5SpkQF.js → sizeCapture-INFHLROL-DBeZ20mI.js} +1 -1
- package/dist/{smalltalk-BROcZybA.js → smalltalk-DQFAQul3.js} +1 -1
- package/dist/{solr-mVltHNc5.js → solr-BiapYPCk.js} +1 -1
- package/dist/{sparql-Cv1Ksr4v.js → sparql-BcUKO1is.js} +1 -1
- package/dist/{spec-CcT0slVc.js → spec-ZAt4P01J.js} +84 -57
- package/dist/{src-CA_m4ONl.js → src-D5uZaZib.js} +8 -14
- package/dist/{stateDiagram-D77RDMKH-lH_BUhs3.js → stateDiagram-D77RDMKH-BGnTUhFJ.js} +18 -18
- package/dist/stateDiagram-v2-MP3YSRHH-DsJbmDf1.js +30 -0
- package/dist/static-state-C4bAlKTU.js +68 -0
- package/dist/{stex-Btf3omL8.js → stex-CQ_aCGTF.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{stylus-Dt4VvLXL.js → stylus-D4gHF5lg.js} +1 -1
- package/dist/{swift-DHsn_CVI.js → swift-CnvIBnbt.js} +1 -1
- package/dist/{swimlanes-42K2YHIH-Cuf9B9kE.js → swimlanes-42K2YHIH-Bd4Bzh9r.js} +37 -59
- package/dist/swimlanesDiagram-VR7AAH4N-BlY12Jf6.js +30 -0
- package/dist/{swiper-component-DfhRvAFi.js → swiper-component-DTdNB9wg.js} +45 -78
- package/dist/{tcl-CV0OLBOl.js → tcl-DkOjjZYO.js} +1 -1
- package/dist/{textile-D320oKVM.js → textile-DgzBVSEW.js} +1 -1
- package/dist/{tiki-BF2aDPlB.js → tiki-MighF8A_.js} +1 -1
- package/dist/{time-BaMbJs4z.js → time-BlOl70lB.js} +19 -19
- package/dist/{timeline-definition-24CTP7MA-yzzw4TF4.js → timeline-definition-24CTP7MA-m0LanyCH.js} +5 -5
- package/dist/toast-U3NpO2x3.js +491 -0
- package/dist/{toml-CaUN7UHo.js → toml-B0B7UAba.js} +1 -1
- package/dist/{tooltip-CKO1pHJo.js → tooltip-UzJukb3F.js} +336 -312
- package/dist/treeView-Q6P3EWNA-BQywp0E1.js +2 -0
- package/dist/treemap-WGGIJYW6-P2ZJnldw.js +2 -0
- package/dist/{troff-DQUFcClZ.js → troff-B4IRX71y.js} +1 -1
- package/dist/{ttcn-CQL1duJS.js → ttcn-B4tpvdJD.js} +1 -1
- package/dist/{ttcn-cfg-BMmEFJPu.js → ttcn-cfg-pfE-1FV8.js} +1 -1
- package/dist/{turtle-C3esgsRr.js → turtle-Bc97ufp6.js} +1 -1
- package/dist/use-restore-focus-DaTVz6S6.js +7672 -0
- package/dist/{use-vega-container-remeasure-Bz4PZMtt.js → use-vega-container-remeasure-BrUpWQfF.js} +4 -8
- package/dist/{useAsyncData-D0mLJstx.js → useAsyncData-P5-Oovhq.js} +7 -7
- package/dist/{useDateFormatter-c_yJtkAe.js → useDateFormatter-LQNtoXyh.js} +5 -5
- package/dist/useDeepCompareMemoize-CmNbQ9TT.js +53 -0
- package/dist/useEvent-BoN7U38T.js +19 -0
- package/dist/{useIframeCapabilities-BkdeVdXC.js → useIframeCapabilities-HTZiVlGV.js} +2 -2
- package/dist/useLifecycle-DTMczKkf.js +112 -0
- package/dist/{vb-RK1eDXRl.js → vb-C5kpOY_q.js} +1 -1
- package/dist/{vbscript-BCOeM0de.js → vbscript-Ck0hgOg5.js} +1 -1
- package/dist/{vega-component-DgytCKrL.js → vega-component-ZTdbCcwI.js} +221 -227
- package/dist/{vega-embed-container--LYZqguO.js → vega-embed-container-DgpACsCB.js} +7 -7
- package/dist/{vega-loader.browser-B9Pz0EGP.js → vega-loader.browser-Co9gYE8Z.js} +637 -294
- package/dist/{velocity-CZKOFbOI.js → velocity-2Doc6dgJ.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-eJOrTqqC.js → vennDiagram-4TSXK5OY-BJ7vqDmn.js} +4 -4
- package/dist/{verilog-DqQTzVn8.js → verilog-CmZmYe4R.js} +2 -2
- package/dist/{vhdl-vQr2bfmi.js → vhdl-esMnUHZm.js} +1 -1
- package/dist/wardley-WFR3VGLG-CIBJ6O2G.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-TILPvee6.js → wardleyDiagram-VM6X3IG4-D5kWacsn.js} +5 -5
- package/dist/{webidl-DzX7N40e.js → webidl-G_RlXG7G.js} +1 -1
- package/dist/{xquery-Cw_Q_hGR.js → xquery-IUQpMoMl.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DUPvRwwJ.js → xychartDiagram-S5SC5T6Z-gr15Ws_z.js} +8 -8
- package/dist/{yacas-DiC4jJBE.js → yacas-ObL0t2h9.js} +1 -1
- package/dist/{z80-CUOQDEJO.js → z80-jyuJhy0k.js} +1 -1
- package/package.json +38 -42
- package/src/__mocks__/document.tsx +64 -0
- package/src/__mocks__/executions.ts +301 -0
- package/src/__mocks__/notebook.ts +39 -46
- package/src/__mocks__/partial.ts +26 -0
- package/src/__mocks__/requests.ts +2 -8
- package/src/__tests__/CellStatus.test.tsx +25 -26
- package/src/__tests__/fixtures/pair-config.ts +1 -1
- package/src/__tests__/main.test.tsx +24 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +17 -58
- package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +11 -11
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/__tests__/ai-utils.test.ts +8 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/app-config/__tests__/add-model-discovery.test.tsx +255 -0
- package/src/components/app-config/__tests__/model-discovery.test.tsx +183 -0
- package/src/components/app-config/__tests__/state.test.tsx +50 -0
- package/src/components/app-config/ai-config.tsx +200 -187
- package/src/components/app-config/app-config-button.tsx +6 -5
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/app-config/common.tsx +7 -9
- package/src/components/app-config/data-form.tsx +113 -116
- package/src/components/app-config/get-dirty-values.ts +4 -4
- package/src/components/app-config/mcp-config.tsx +30 -53
- package/src/components/app-config/model-discovery.tsx +157 -0
- package/src/components/app-config/model-provider-config.ts +25 -0
- package/src/components/app-config/state.ts +2 -0
- package/src/components/app-config/user-config-form.css +91 -0
- package/src/components/app-config/user-config-form.tsx +278 -350
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
- package/src/components/chat/__tests__/chat-display.test.tsx +196 -0
- package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +141 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +94 -1
- package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
- package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
- package/src/components/chat/__tests__/pending-chat-prompt.test.tsx +568 -0
- package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
- package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
- package/src/components/chat/__tests__/useFileState.test.tsx +176 -15
- package/src/components/chat/__tests__/user-message.test.tsx +27 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/agent-panel.tsx +6 -3
- package/src/components/chat/acp/blocks.tsx +11 -10
- package/src/components/chat/acp/common.tsx +4 -5
- package/src/components/chat/acp/model-selector.tsx +1 -1
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/chat/agent-activity.tsx +132 -0
- package/src/components/chat/capabilities-popover.tsx +2 -11
- package/src/components/chat/chat-components.tsx +10 -6
- package/src/components/chat/chat-display.tsx +131 -57
- package/src/components/chat/chat-history-popover.tsx +6 -1
- package/src/components/chat/chat-markdown.tsx +15 -0
- package/src/components/chat/chat-panel.tsx +422 -358
- package/src/components/chat/chat-typography.css +108 -0
- package/src/components/chat/chat-utils.ts +168 -61
- package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
- package/src/components/chat/notebook-access-selector.tsx +100 -0
- package/src/components/chat/notebook-context.ts +80 -0
- package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
- package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
- package/src/components/chat/tool-call/shared.ts +6 -0
- package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
- package/src/components/chat/tool-call/tool-labels.ts +172 -0
- package/src/components/chat/tool-call/tool-result.tsx +1 -1
- package/src/components/chat/tool-call/tool-step.tsx +145 -0
- package/src/components/chat/turn-timing.ts +73 -0
- package/src/components/chat/use-assistant-turn.ts +65 -0
- package/src/components/chat/use-chat-generation.ts +20 -0
- package/src/components/chat/user-message.tsx +154 -0
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/TableTopBar.tsx +2 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +42 -27
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -6
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +5 -5
- package/src/components/data-table/column-formatting/types.ts +1 -2
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/data-table/data-table.tsx +10 -0
- package/src/components/data-table/pagination.tsx +44 -33
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +2 -2
- package/src/components/datasources/__tests__/column-preview.test.tsx +41 -11
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +334 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +51 -1
- package/src/components/datasources/__tests__/utils.test.ts +117 -7
- package/src/components/datasources/column-preview.tsx +9 -10
- package/src/components/datasources/datasources.tsx +22 -22
- package/src/components/datasources/utils.ts +41 -27
- package/src/components/dependency-graph/__tests__/elements.test.ts +20 -11
- package/src/components/dependency-graph/custom-node.tsx +1 -1
- package/src/components/dependency-graph/dependency-graph-tree.tsx +23 -9
- package/src/components/dependency-graph/elements.ts +34 -44
- package/src/components/dependency-graph/minimap-content.tsx +15 -20
- package/src/components/dependency-graph/panels.tsx +2 -1
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/Output.tsx +5 -4
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +39 -32
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +11 -16
- package/src/components/editor/__tests__/output-persistence.test.tsx +33 -32
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +70 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +21 -40
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +40 -14
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +6 -24
- package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +132 -0
- package/src/components/editor/actions/__tests__/useSetOutputsExpanded.test.ts +8 -9
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/pair-with-agent-commands.ts +10 -7
- package/src/components/editor/actions/pair-with-agent-modal.tsx +15 -18
- package/src/components/editor/actions/pair-with-agent.tsx +16 -39
- package/src/components/editor/actions/useCellActionButton.tsx +47 -35
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +25 -29
- package/src/components/editor/actions/useRestartKernel.tsx +0 -5
- package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
- package/src/components/editor/actions/useSetOutputsExpanded.ts +24 -24
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/ai/completion-handlers.tsx +0 -37
- package/src/components/editor/ai/prompt-input.tsx +189 -0
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
- package/src/components/editor/alerts/connection-notice.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/boundary/ErrorBoundary.tsx +6 -2
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +5 -1
- package/src/components/editor/cell/CellStatus.tsx +47 -57
- package/src/components/editor/cell/CreateCellButton.tsx +7 -11
- package/src/components/editor/cell/DeleteButton.tsx +4 -4
- package/src/components/editor/cell/ReusableDefinitionBadge.tsx +62 -0
- package/src/components/editor/cell/RunButton.tsx +18 -8
- package/src/components/editor/cell/StagedAICell.tsx +52 -137
- package/src/components/editor/cell/StopButton.tsx +7 -7
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +149 -0
- package/src/components/editor/cell/cell-actions.tsx +12 -1
- package/src/components/editor/cell/cell-context-menu.tsx +24 -4
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +38 -1
- package/src/components/editor/cell/code/cell-editor.tsx +66 -169
- package/src/components/editor/cell/code/language-toggle.tsx +6 -4
- package/src/components/editor/cell/collapse.tsx +16 -6
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +70 -59
- package/src/components/editor/cell/useSplitCell.tsx +10 -6
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
- package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
- package/src/components/editor/chrome/types.ts +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +8 -10
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +97 -0
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +230 -59
- package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +91 -74
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +5 -5
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -17
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -2
- package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +143 -82
- package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
- package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +2 -2
- package/src/components/editor/connections/components.tsx +4 -9
- package/src/components/editor/controls/Controls.tsx +9 -6
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +106 -79
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/errors/send-error-report-button.tsx +3 -6
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/file-explorer.tsx +38 -10
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- package/src/components/editor/header/__tests__/filename-form.test.tsx +1 -4
- package/src/components/editor/header/__tests__/status.test.tsx +5 -3
- package/src/components/editor/header/app-header.tsx +1 -1
- package/src/components/editor/header/filename-form.tsx +1 -1
- package/src/components/editor/header/status.tsx +44 -22
- package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/links/cell-link.tsx +21 -11
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +109 -85
- package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
- package/src/components/editor/navigation/clipboard.ts +17 -14
- package/src/components/editor/navigation/focus-utils.ts +23 -4
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
- package/src/components/editor/navigation/navigation.ts +74 -72
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-cell.tsx +143 -256
- package/src/components/editor/output/MarimoErrorOutput.tsx +41 -4
- package/src/components/editor/output/MarimoTracebackOutput.tsx +17 -15
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/VideoOutput.tsx +6 -0
- package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +126 -49
- package/src/components/editor/output/console/ConsoleOutput.tsx +34 -26
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +162 -102
- package/src/components/editor/output/console/process-output.ts +4 -2
- package/src/components/editor/package-alert.tsx +8 -3
- package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
- package/src/components/editor/renderers/cell-array.tsx +38 -103
- package/src/components/editor/renderers/cells-renderer.tsx +2 -3
- package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +69 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +30 -28
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -4
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/editor/renderers/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +47 -4
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +9 -1
- package/src/components/editor/renderers/vertical-layout/utils.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +20 -46
- package/src/components/editor/stdin-blocking-alert.tsx +19 -16
- package/src/components/icons/__tests__/copy-icon.test.tsx +63 -0
- package/src/components/icons/copy-icon.tsx +9 -2
- package/src/components/markdown/__tests__/markdown-renderer.test.tsx +32 -2
- package/src/components/markdown/markdown-renderer.tsx +43 -28
- package/src/components/mcp/mcp-status-indicator.tsx +18 -14
- package/src/components/pages/edit-page.tsx +18 -17
- package/src/components/scratchpad/scratchpad.test.tsx +89 -0
- package/src/components/scratchpad/scratchpad.tsx +54 -37
- package/src/components/scratchpad/state.ts +7 -0
- package/src/components/slides/__tests__/cell-output-block.test.tsx +8 -9
- package/src/components/slides/__tests__/minimap-actions.test.tsx +25 -32
- package/src/components/slides/__tests__/minimap.test.ts +38 -19
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +3 -2
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
- package/src/components/slides/minimap.tsx +21 -14
- package/src/components/slides/reveal-component.tsx +68 -34
- package/src/components/slides/reveal-slides.css +5 -4
- package/src/components/slides/slide-cell-view.tsx +36 -41
- package/src/components/slides/slide-scroll-hint.tsx +3 -1
- package/src/components/slides/slide.tsx +4 -5
- package/src/components/sort/SortableCellsProvider.tsx +8 -25
- package/src/components/static-html/__tests__/static-banner.test.tsx +1 -1
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing-spec.ts +11 -1
- package/src/components/tracing/tracing.tsx +48 -40
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/__tests__/fullscreen.test.tsx +99 -2
- package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
- package/src/components/ui/__tests__/select.test.tsx +80 -0
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/components/ui/fullscreen.tsx +43 -3
- package/src/components/ui/range-slider.tsx +22 -9
- package/src/components/ui/select.tsx +17 -15
- package/src/components/ui/slider.tsx +6 -2
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/variables/__tests__/variables-table.test.tsx +75 -0
- package/src/components/variables/variables-table.tsx +18 -10
- package/src/core/MarimoApp.tsx +3 -1
- package/src/core/ai/__tests__/attachments.test.ts +153 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +90 -609
- package/src/core/ai/attachments.ts +80 -0
- package/src/core/ai/context/__tests__/registry.test.ts +7 -11
- package/src/core/ai/context/context.ts +2 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +116 -52
- package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
- package/src/core/ai/context/providers/__tests__/error.test.ts +76 -219
- package/src/core/ai/context/providers/cell-output.ts +17 -20
- package/src/core/ai/context/providers/cell.ts +54 -0
- package/src/core/ai/staged-cells.ts +56 -323
- package/src/core/ai/state.ts +3 -0
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +47 -93
- package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
- package/src/core/ai/tools/base.ts +18 -15
- package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
- package/src/core/ai/tools/registry.ts +13 -10
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/actions.test.ts +623 -35
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/arrange.test.ts +432 -0
- package/src/core/cells/__tests__/cell.test.ts +56 -308
- package/src/core/cells/__tests__/cells.test.ts +327 -3808
- package/src/core/cells/__tests__/clear-outputs.test.ts +156 -0
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +86 -2
- package/src/core/cells/__tests__/document.test.ts +158 -0
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/flush-document.test.ts +42 -0
- package/src/core/cells/__tests__/harness.ts +113 -0
- package/src/core/cells/__tests__/layout.test.ts +186 -0
- package/src/core/cells/__tests__/logs.test.ts +18 -42
- package/src/core/cells/__tests__/notebook-outline.test.ts +72 -57
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
- package/src/core/cells/__tests__/runs.test.ts +127 -430
- package/src/core/cells/__tests__/session.test.ts +560 -336
- package/src/core/cells/__tests__/utils.test.ts +166 -338
- package/src/core/cells/actions.ts +738 -6
- package/src/core/cells/add-missing-import.ts +48 -47
- package/src/core/cells/arrange.ts +529 -0
- package/src/core/cells/cell.ts +36 -225
- package/src/core/cells/cells.ts +245 -1549
- package/src/core/cells/collapseConsoleOutputs.tsx +71 -40
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/command-console.ts +46 -0
- package/src/core/cells/document.ts +167 -0
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/execution-console.ts +236 -0
- package/src/core/cells/focus.ts +20 -14
- package/src/core/cells/layout.ts +228 -0
- package/src/core/cells/logs.ts +10 -2
- package/src/core/cells/outputs.ts +14 -30
- package/src/core/cells/pending-delete-service.ts +6 -8
- package/src/core/cells/reusable-definition.ts +25 -0
- package/src/core/cells/runs.ts +70 -118
- package/src/core/cells/scrollCellIntoView.ts +6 -0
- package/src/core/cells/session.ts +176 -101
- package/src/core/cells/types.ts +32 -64
- package/src/core/cells/useAnswerPrompt.ts +29 -0
- package/src/core/cells/utils.ts +113 -102
- package/src/core/codemirror/__tests__/format.test.ts +4 -36
- package/src/core/codemirror/__tests__/setup.test.ts +66 -33
- package/src/core/codemirror/ai/__tests__/resources.test.ts +113 -0
- package/src/core/codemirror/ai/resources.ts +1 -1
- package/src/core/codemirror/cells/__tests__/debugger-state.test.ts +0 -20
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +2 -6
- package/src/core/codemirror/cells/debugger-state.ts +7 -11
- package/src/core/codemirror/cells/extensions.ts +18 -30
- package/src/core/codemirror/cells/state.ts +2 -6
- package/src/core/codemirror/cm.ts +5 -1
- package/src/core/codemirror/config/types.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +4 -0
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +13 -12
- package/src/core/codemirror/copilot/extension.ts +0 -26
- package/src/core/codemirror/copilot/getCodes.ts +3 -3
- package/src/core/codemirror/format.ts +6 -23
- package/src/core/codemirror/keymaps/vim.ts +2 -2
- package/src/core/codemirror/language/__tests__/extension.test.ts +9 -7
- package/src/core/codemirror/language/__tests__/markdown.test.ts +7 -7
- package/src/core/codemirror/language/__tests__/sql-literals.test.ts +588 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +123 -28
- package/src/core/codemirror/language/__tests__/utils.test.ts +194 -19
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +52 -35
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +16 -10
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +31 -14
- package/src/core/codemirror/language/languages/sql/completion-context.ts +197 -0
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +109 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +21 -28
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/lsp/utils.ts +1 -1
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +75 -0
- package/src/core/codemirror/placeholder/extensions.ts +80 -19
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +195 -17
- package/src/core/config/config-schema.ts +138 -20
- package/src/core/config/config.ts +69 -20
- package/src/core/config/feature-flag.tsx +0 -2
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +1 -1
- package/src/core/documentation/doc-lookup.ts +1 -1
- package/src/core/dom/__tests__/outline.test.ts +23 -0
- package/src/core/dom/outline.ts +4 -1
- package/src/core/edit-app.tsx +28 -38
- package/src/core/errors/__tests__/error-entries.test.ts +74 -1
- package/src/core/errors/error-entries.ts +28 -16
- package/src/core/executions/__tests__/atoms.test.ts +218 -0
- package/src/core/executions/__tests__/freshness.test.ts +503 -0
- package/src/core/executions/__tests__/hooks.test.tsx +198 -0
- package/src/core/executions/__tests__/input.test.ts +86 -0
- package/src/core/executions/__tests__/interrupt.test.ts +206 -0
- package/src/core/executions/__tests__/output-lifecycle.test.ts +260 -0
- package/src/core/executions/__tests__/output.test.ts +336 -0
- package/src/core/executions/__tests__/run.test.ts +396 -0
- package/src/core/executions/__tests__/select.test.ts +409 -0
- package/src/core/executions/atoms.ts +399 -0
- package/src/core/executions/freshness.ts +174 -0
- package/src/core/executions/hooks.ts +119 -0
- package/src/core/executions/index.ts +58 -0
- package/src/core/executions/input.ts +56 -0
- package/src/core/executions/interrupt.ts +49 -0
- package/src/core/executions/output.ts +337 -0
- package/src/core/executions/run.ts +107 -0
- package/src/core/executions/select.ts +271 -0
- package/src/core/export/__tests__/hooks.test.ts +18 -34
- package/src/core/export/hooks.ts +8 -10
- package/src/core/export/layout.ts +2 -2
- package/src/core/hotkeys/hotkeys.ts +2 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
- package/src/core/islands/__tests__/bridge.test.ts +163 -65
- package/src/core/islands/__tests__/iframe-resizer.test.ts +91 -0
- package/src/core/islands/__tests__/main.test.ts +17 -0
- package/src/core/islands/bootstrap.ts +70 -65
- package/src/core/islands/bridge.ts +156 -54
- package/src/core/islands/components/IslandControls.tsx +15 -7
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +36 -51
- package/src/core/islands/components/__tests__/web-components.test.tsx +76 -15
- package/src/core/islands/components/output-wrapper.tsx +19 -24
- package/src/core/islands/components/web-components.tsx +12 -1
- package/src/core/islands/iframe-resizer.ts +38 -0
- package/src/core/islands/main.ts +3 -0
- package/src/core/islands/stubs/slide-cell-view.tsx +2 -5
- package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
- package/src/core/islands/worker/controller.ts +4 -10
- package/src/core/islands/worker/worker.tsx +84 -52
- package/src/core/kernel/__tests__/handlers.test.ts +7 -159
- package/src/core/kernel/handlers.ts +12 -141
- package/src/core/kernel/messages.ts +0 -1
- package/src/core/kernel/state.ts +0 -15
- package/src/core/lifecycle/render-policy.ts +16 -27
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/network/__tests__/ai.test.ts +41 -0
- package/src/core/network/__tests__/connection.test.ts +1 -1
- package/src/core/network/__tests__/requests-network.test.ts +0 -16
- package/src/core/network/__tests__/requests-toasting.test.tsx +7 -7
- package/src/core/network/ai.ts +12 -0
- package/src/core/network/connection-notice.ts +1 -1
- package/src/core/network/connection.ts +1 -6
- package/src/core/network/requests-network.ts +10 -64
- package/src/core/network/requests-static.ts +2 -11
- package/src/core/network/requests-toasting.tsx +3 -57
- package/src/core/network/resolve.ts +1 -5
- package/src/core/network/types.ts +7 -22
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/attachments.ts +38 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +768 -0
- package/src/core/{document → notebook/document}/__tests__/draft.test.ts +71 -31
- package/src/core/{document → notebook/document}/__tests__/fixtures.ts +2 -2
- package/src/core/notebook/document/__tests__/hooks.test.tsx +392 -0
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/notebook/document/__tests__/model.test.ts +252 -0
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +259 -0
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +44 -0
- package/src/core/notebook/document/__tests__/scenarios.test.ts +279 -0
- package/src/core/{document/__tests__/model.test.ts → notebook/document/__tests__/state.test.ts} +48 -24
- package/src/core/notebook/document/__tests__/submission.test.ts +204 -0
- package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
- package/src/core/notebook/document/__tests__/test-host.ts +223 -0
- package/src/core/notebook/document/__tests__/test-notebook.ts +162 -0
- package/src/core/notebook/document/__tests__/user.ts +62 -0
- package/src/core/notebook/document/codemirror.ts +216 -0
- package/src/core/{document → notebook/document}/draft.ts +53 -30
- package/src/core/notebook/document/hooks.tsx +123 -0
- package/src/core/notebook/document/index.ts +25 -0
- package/src/core/notebook/document/model.ts +105 -0
- package/src/core/notebook/document/select.ts +41 -0
- package/src/core/{document/model.ts → notebook/document/state.ts} +77 -71
- package/src/core/notebook/document/sync.ts +378 -0
- package/src/core/notebook/index.ts +19 -0
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/notebook/replica/AGENTS.md +11 -0
- package/src/core/{host → notebook/replica}/__tests__/document.test.ts +13 -8
- package/src/core/notebook/replica/__tests__/executions.test.ts +272 -0
- package/src/core/notebook/replica/__tests__/fixtures.ts +103 -0
- package/src/core/{host/__tests__/notebook-client.test.ts → notebook/replica/__tests__/replica.test.ts} +268 -25
- package/src/core/notebook/replica/__tests__/results.test.ts +232 -0
- package/src/core/notebook/replica/__tests__/runtime.test.ts +77 -0
- package/src/core/notebook/replica/backend.ts +21 -0
- package/src/core/{host → notebook/replica}/connection.ts +1 -5
- package/src/core/notebook/replica/execution-state.ts +43 -0
- package/src/core/notebook/replica/index.ts +31 -0
- package/src/core/notebook/replica/replica.ts +569 -0
- package/src/core/notebook/replica/resources/analysis.ts +9 -0
- package/src/core/{host → notebook/replica}/resources/document.ts +1 -1
- package/src/core/notebook/replica/resources/executions.ts +348 -0
- package/src/core/notebook/replica/resources/results.ts +66 -0
- package/src/core/notebook/replica/resources/runtime.ts +14 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
- package/src/core/packages/useSandboxController.ts +1 -1
- package/src/core/run-app.tsx +49 -52
- package/src/core/runtime/__tests__/adapter.test.ts +4 -4
- package/src/core/runtime/__tests__/createWsUrl.test.ts +5 -17
- package/src/core/runtime/__tests__/runtime.test.ts +68 -141
- package/src/core/runtime/adapter.ts +6 -13
- package/src/core/runtime/config.ts +4 -24
- package/src/core/runtime/runtime.ts +11 -16
- package/src/core/runtime/types.ts +0 -5
- package/src/core/saving/__tests__/document.test.tsx +113 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
- package/src/core/saving/__tests__/useSaveNotebook.test.tsx +69 -0
- package/src/core/saving/document.ts +33 -0
- package/src/core/saving/filename.ts +1 -1
- package/src/core/saving/save-component.tsx +68 -60
- package/src/core/saving/state.ts +42 -37
- package/src/core/saving/useAutoSave.ts +17 -53
- package/src/core/session/__tests__/backend.test.ts +244 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +187 -0
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +1552 -0
- package/src/core/session/active-notebook.ts +35 -0
- package/src/core/session/backend.ts +125 -0
- package/src/core/{websocket → session}/connection-utils.ts +2 -14
- package/src/core/session/embedded.ts +7 -0
- package/src/core/{websocket → session}/types.ts +2 -2
- package/src/core/session/useNotebookReplica.ts +91 -0
- package/src/core/{websocket → session}/useNotebookSession.tsx +178 -106
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/core/static/virtual-file-tracker.ts +41 -10
- package/src/core/{websocket → transports}/__tests__/connection-state.test.ts +1 -1
- package/src/core/{websocket/transports/__tests__/notebook.test.ts → transports/__tests__/server.test.ts} +29 -119
- package/src/core/transports/__tests__/static.test.ts +357 -0
- package/src/core/transports/__tests__/wasm.test.ts +166 -0
- package/src/core/{websocket → transports}/connection-state.ts +9 -6
- package/src/core/{websocket/transports/notebook.ts → transports/server.ts} +15 -76
- package/src/core/transports/static.ts +188 -0
- package/src/core/transports/wasm.ts +95 -0
- package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
- package/src/core/vscode/vscode-bindings.ts +14 -2
- package/src/core/wasm/PyodideLoader.tsx +2 -1
- package/src/core/wasm/__tests__/PyodideLoader.test.tsx +100 -0
- package/src/core/wasm/__tests__/bridge.test.ts +346 -64
- package/src/core/wasm/__tests__/worker.test.ts +191 -0
- package/src/core/wasm/bridge.ts +167 -85
- package/src/core/wasm/errors.ts +8 -0
- package/src/core/wasm/rpc.ts +15 -3
- package/src/core/wasm/worker/bootstrap.ts +54 -50
- package/src/core/wasm/worker/save-worker.ts +9 -10
- package/src/core/wasm/worker/types.ts +32 -19
- package/src/core/wasm/worker/worker.ts +126 -72
- package/src/css/app/Cell.css +7 -36
- package/src/css/app/codemirror.css +1 -32
- package/src/css/common.css +1 -1
- package/src/css/globals.css +67 -24
- package/src/css/katex.min.css +1 -1
- package/src/hooks/useDebounce.ts +1 -2
- package/src/hooks/useEventListener.ts +1 -2
- package/src/mount.tsx +22 -19
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/core/RenderHTML.tsx +3 -5
- package/src/plugins/core/__test__/PluginSlot.test.tsx +202 -0
- package/src/plugins/core/__test__/RenderHTML-copy.test.tsx +60 -0
- package/src/plugins/core/__test__/registerReactComponent.test.ts +45 -0
- package/src/plugins/core/__test__/sanitize.test.ts +35 -0
- package/src/plugins/core/registerReactComponent.tsx +28 -28
- package/src/plugins/core/sanitize-html.ts +8 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +60 -28
- package/src/plugins/impl/DataTablePlugin.tsx +55 -22
- package/src/plugins/impl/RangeSliderPlugin.tsx +17 -2
- package/src/plugins/impl/SliderPlugin.tsx +35 -3
- package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +190 -10
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +270 -0
- package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +40 -0
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +151 -0
- package/src/plugins/impl/anywidget/model.ts +3 -1
- package/src/plugins/impl/anywidget/registry.ts +18 -14
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +5 -5
- package/src/plugins/impl/common/error-banner.tsx +5 -3
- package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +42 -0
- package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +52 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +278 -7
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +116 -0
- package/src/plugins/impl/data-editor/column-types.ts +55 -0
- package/src/plugins/impl/data-editor/editor-state.ts +18 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +97 -18
- package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
- package/src/plugins/impl/data-editor/glide-utils.ts +36 -37
- package/src/plugins/impl/data-editor/types.ts +5 -0
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
- package/src/plugins/impl/data-explorer/functions/types.ts +1 -5
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
- package/src/plugins/impl/data-frames/panel.tsx +44 -16
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/plugins/layout/AccordionPlugin.tsx +2 -1
- package/src/plugins/layout/DownloadPlugin.tsx +7 -11
- package/src/plugins/layout/LazyPlugin.tsx +7 -4
- package/src/plugins/layout/TexPlugin.tsx +0 -1
- package/src/plugins/layout/__test__/DownloadPlugin.test.tsx +205 -0
- package/src/plugins/layout/__test__/mermaid.test.tsx +256 -0
- package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
- package/src/plugins/layout/__tests__/LazyPlugin.test.tsx +98 -0
- package/src/plugins/layout/mermaid/mermaid.tsx +63 -17
- package/src/stories/cell-status.stories.tsx +29 -24
- package/src/stories/cell.stories.tsx +72 -57
- package/src/stories/data-table.stories.tsx +31 -0
- package/src/stories/editor.stories.tsx +4 -1
- package/src/stories/layout/vertical/one-column.stories.tsx +60 -60
- package/src/stories/runtime-story.tsx +23 -17
- package/src/stories/theme.stories.tsx +4 -2
- package/src/theme/__tests__/islands-theme.test.tsx +276 -0
- package/src/theme/namespace.tsx +4 -3
- package/src/theme/useTheme.ts +71 -41
- package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +127 -1
- package/src/utils/__tests__/download.test.tsx +183 -23
- package/src/utils/__tests__/numbers.test.ts +57 -0
- package/src/utils/arrays.ts +1 -2
- package/src/utils/createReducer.ts +115 -79
- package/src/utils/download.ts +67 -6
- package/src/utils/errors.ts +0 -7
- package/src/utils/maps.ts +0 -3
- package/src/utils/numbers.ts +59 -9
- package/src/utils/objects.ts +1 -2
- package/src/utils/python-poet/poet.ts +12 -2
- package/src/utils/time.ts +10 -0
- package/src/utils/tracer.ts +9 -5
- package/dist/ErrorBoundary-D9enmz8P.js +0 -200
- package/dist/_baseMerge-BiGRwuqv.js +0 -165
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +0 -3
- package/dist/assets/__vite-browser-external-35VXYmnw.js +0 -1
- package/dist/assets/worker-Dq8y-WM5.js +0 -114
- package/dist/classDiagram-ZZMXUADV-GTL0l5xS.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BWrM2ruI.js +0 -30
- package/dist/code-visibility-Bvoq03vz.js +0 -138
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +0 -3
- package/dist/dropdown-menu-B_7xD2X4.js +0 -4686
- package/dist/duckdb-keywords-BGArYVVK.js +0 -3
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +0 -3
- package/dist/feedback-button-DqvOnyXT.js +0 -379
- package/dist/flowDiagram-HODETNUW-CjaeFeea.js +0 -16
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +0 -3
- package/dist/hasIn-o2Us0uVx.js +0 -132
- package/dist/highlighted-body-KPVGNVTW-3Ziwfz-V.js +0 -38
- package/dist/html-to-image-CWdayGZU.js +0 -3251
- package/dist/info-A6RAGUB7-DKoayiHY.js +0 -3
- package/dist/isArrayLikeObject-BZl-15ir.js +0 -450
- package/dist/isEmpty-BSZ1LaUo.js +0 -35
- package/dist/isSymbol-kQcfYbNX.js +0 -8
- package/dist/label-BRnUC0NX.js +0 -281
- package/dist/linear-DWERh7eI.js +0 -252
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +0 -2
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +0 -3
- package/dist/pick-CJeoxYOS.js +0 -51
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +0 -3
- package/dist/precisionRound-DhAzeRcm.js +0 -49
- package/dist/purify.es-DMv5zIkJ.js +0 -866
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +0 -3
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +0 -3
- package/dist/select-B0LRDH0g.js +0 -1344
- package/dist/semaphore-89jsoHtS.js +0 -44
- package/dist/stateDiagram-v2-MP3YSRHH-8LL6FrBe.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-BoMMtOPh.js +0 -30
- package/dist/toast-CFWpihJU.js +0 -1830
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +0 -3
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +0 -3
- package/dist/use-restore-focus-DBCITLeF.js +0 -6369
- package/dist/useDeepCompareMemoize-BpPWi3G3.js +0 -11
- package/dist/useLifecycle-Dum8WSXq.js +0 -169
- package/dist/useTheme-CfeaVw5D.js +0 -904
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +0 -3
- package/src/components/chat/reasoning-accordion.tsx +0 -61
- package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
- package/src/components/chat/tool-call/tool-history-row.tsx +0 -174
- package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
- package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
- package/src/components/editor/ai/staged-cell-submission.ts +0 -46
- package/src/components/editor/alerts/connecting-alert.tsx +0 -27
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +0 -61
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -64
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +0 -50
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +0 -65
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
- package/src/components/icons/loading-ellipsis.tsx +0 -46
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
- package/src/core/ai/tools/run-cells-tool.ts +0 -303
- package/src/core/attachments/state.ts +0 -18
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -1325
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
- package/src/core/codemirror/rtc/extension.ts +0 -453
- package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +0 -52
- package/src/core/codemirror/rtc/loro/awareness.ts +0 -531
- package/src/core/codemirror/rtc/loro/colors.ts +0 -38
- package/src/core/codemirror/rtc/loro/sync.ts +0 -168
- package/src/core/document/__tests__/submission.test.ts +0 -334
- package/src/core/host/AGENTS.md +0 -16
- package/src/core/host/__tests__/fixtures.ts +0 -41
- package/src/core/host/notebook-client.ts +0 -259
- package/src/core/network/__tests__/requests-lazy.test.ts +0 -334
- package/src/core/network/requests-lazy.ts +0 -226
- package/src/core/rtc/state.ts +0 -34
- package/src/core/wasm/worker/message-buffer.ts +0 -33
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -223
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -606
- package/src/core/websocket/state.ts +0 -7
- package/src/core/websocket/useNotebookClient.ts +0 -89
- package/src/utils/__tests__/id-tree.test.ts +0 -2145
- package/src/utils/id-tree.tsx +0 -1134
- /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
- /package/src/core/{host → notebook/replica}/__tests__/attachments.test.ts +0 -0
- /package/src/core/{host → notebook/replica}/resources/attachments.ts +0 -0
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { a as e, r as t } from "./rolldown-runtime-
|
|
2
|
-
import { g as n } from "./button-
|
|
3
|
-
import { t as r } from "./react-
|
|
4
|
-
import { t as i } from "./compiler-runtime-
|
|
5
|
-
import { t as a } from "./jsx-runtime-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as l } from "./
|
|
10
|
-
import { t as u } from "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { n as T } from "./
|
|
14
|
-
import {
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { n as
|
|
21
|
-
import {
|
|
1
|
+
import { a as e, r as t } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
|
+
import { g as n } from "./button-qQhINE7z.js";
|
|
3
|
+
import { t as r } from "./react-Bgs_wQh3.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
+
import { t as a } from "./jsx-runtime-D8btoEHk.js";
|
|
6
|
+
import { d as o } from "./use-restore-focus-DaTVz6S6.js";
|
|
7
|
+
import { n as s } from "./error-banner-CJVLr5_a.js";
|
|
8
|
+
import { t as c } from "./graphlib-nlwT3Wvy.js";
|
|
9
|
+
import { t as l } from "./purify.es-DmnrIjg4.js";
|
|
10
|
+
import { t as u } from "./lru-0OWJJMrW.js";
|
|
11
|
+
import { t as d } from "./useAsyncData-P5-Oovhq.js";
|
|
12
|
+
import { S as f, a as p, d as m, f as h, g, h as _, i as v, o as y, v as b, x, y as S } from "./chunk-75Z2AOVW-76L6My3P.js";
|
|
13
|
+
import { n as C, r as w, t as T } from "./src-D5uZaZib.js";
|
|
14
|
+
import { n as E } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
15
|
+
import { C as D, E as O, I as k, L as ee, N as A, P as j, Q as te, S as M, T as N, V as P, W as F, X as I, Z as L, _ as R, b as z, c as ne, g as re, l as ie, m as ae, n as oe, p as se, q as ce, r as le, s as ue, t as de, u as fe, x as B } from "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
16
|
+
import "./chunk-P2QGCYS3-DJApLVdt.js";
|
|
17
|
+
import { r as pe } from "./chunk-PWAF6VOD-CRu_RGP2.js";
|
|
18
|
+
import { i as me } from "./chunk-GMAD6QVW-BJGF8QZL.js";
|
|
19
|
+
import { a as he } from "./chunk-4HAMMTFA-qKgadZwy.js";
|
|
20
|
+
import { i as ge, n as _e, r as ve, t as ye } from "./chunk-GVQU2GXP-BkolpSXU.js";
|
|
21
|
+
import { n as be, t as xe } from "./chunk-L3NEJ4N5-B-BFQp9t.js";
|
|
22
|
+
import { a as Se, c as Ce, i as we, l as Te, n as Ee, r as De, s as Oe, t as ke } from "./chunk-OSK3NFVY-BzfZ4VBG.js";
|
|
22
23
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CLGD4ZFX.mjs
|
|
23
|
-
var
|
|
24
|
-
let { securityLevel: t } =
|
|
24
|
+
var Ae = i(), je = /* @__PURE__ */ E((e) => {
|
|
25
|
+
let { securityLevel: t } = B(), n = T("body");
|
|
25
26
|
if (t === "sandbox") {
|
|
26
|
-
let t =
|
|
27
|
-
n =
|
|
27
|
+
let t = T(`#i${e}`).node()?.contentDocument ?? document;
|
|
28
|
+
n = T(t.body);
|
|
28
29
|
}
|
|
29
30
|
return n.select(`#${e}`);
|
|
30
31
|
}, "selectSvgElement");
|
|
31
32
|
//#endregion
|
|
32
33
|
//#region ../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
|
|
33
|
-
function
|
|
34
|
+
function Me(e) {
|
|
34
35
|
let t = e?.constructor;
|
|
35
36
|
return e === (typeof t == "function" ? t.prototype : Object.prototype);
|
|
36
37
|
}
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region ../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
39
|
-
function
|
|
40
|
+
function Ne(e) {
|
|
40
41
|
if (e == null) return !0;
|
|
41
|
-
if (
|
|
42
|
+
if (x(e)) return typeof e.splice != "function" && typeof e != "string" && !f(e) && !b(e) && !S(e) ? !1 : e.length === 0;
|
|
42
43
|
if (typeof e == "object" || typeof e == "function") {
|
|
43
44
|
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
44
45
|
let t = Object.keys(e);
|
|
45
|
-
return
|
|
46
|
+
return Me(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
|
|
46
47
|
}
|
|
47
48
|
return !0;
|
|
48
49
|
}
|
|
49
50
|
//#endregion
|
|
50
51
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2E4U76K2.mjs
|
|
51
|
-
function
|
|
52
|
+
function Pe(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
52
53
|
let n = e.insert("g").attr("class", "root");
|
|
53
54
|
return {
|
|
54
55
|
clusters: n.insert("g").attr("class", "clusters"),
|
|
@@ -58,10 +59,10 @@ function Ne(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
|
58
59
|
rootGroups: n
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
async function
|
|
62
|
+
E(Pe, "createLayoutElementGroups");
|
|
63
|
+
async function Fe(e, t) {
|
|
63
64
|
if (t.label) {
|
|
64
|
-
let { shapeSvg: n, bbox: r } = await
|
|
65
|
+
let { shapeSvg: n, bbox: r } = await he(e, t);
|
|
65
66
|
t.labelBBox = {
|
|
66
67
|
width: r.width,
|
|
67
68
|
height: r.height
|
|
@@ -71,25 +72,25 @@ async function Pe(e, t) {
|
|
|
71
72
|
height: 0
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
-
async function
|
|
76
|
-
let r = await
|
|
75
|
+
E(Fe, "measureGroupLabel");
|
|
76
|
+
async function Ie(e, t, n) {
|
|
77
|
+
let r = await ve(e, t, n), i = r.node()?.getBBox() ?? {
|
|
77
78
|
width: 0,
|
|
78
79
|
height: 0
|
|
79
80
|
};
|
|
80
81
|
return t.width = i.width, t.height = i.height, r;
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
async function
|
|
84
|
-
let n = new
|
|
83
|
+
E(Ie, "insertMeasuredNode");
|
|
84
|
+
async function Le(e, t) {
|
|
85
|
+
let n = new c({
|
|
85
86
|
multigraph: !0,
|
|
86
87
|
compound: !0
|
|
87
|
-
}), r = [...t.edges], i =
|
|
88
|
+
}), r = [...t.edges], i = B(), a = Pe(e), { edgeLabels: o, nodes: s } = a, l = /* @__PURE__ */ new Map(), u = e.node() != null;
|
|
88
89
|
await Promise.all(t.nodes.map(async (e) => {
|
|
89
|
-
if (e.isGroup) u && await
|
|
90
|
+
if (e.isGroup) u && await Fe(s, e), n.setNode(e.id, { ...e });
|
|
90
91
|
else {
|
|
91
92
|
if (u) {
|
|
92
|
-
let t = await
|
|
93
|
+
let t = await Ie(s, e, {
|
|
93
94
|
config: i,
|
|
94
95
|
dir: e.dir
|
|
95
96
|
});
|
|
@@ -98,9 +99,9 @@ async function Ie(e, t) {
|
|
|
98
99
|
n.setNode(e.id, { ...e });
|
|
99
100
|
}
|
|
100
101
|
}));
|
|
101
|
-
for (let e of r) u &&
|
|
102
|
+
for (let e of r) u && De(e) && await Se(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
102
103
|
if (globalThis.mermaidCaptureSizes) {
|
|
103
|
-
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-
|
|
104
|
+
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-DBeZ20mI.js");
|
|
104
105
|
n(e, t);
|
|
105
106
|
}
|
|
106
107
|
return {
|
|
@@ -109,42 +110,42 @@ async function Ie(e, t) {
|
|
|
109
110
|
nodeElements: l
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
-
var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(),
|
|
114
|
-
H.clear(),
|
|
115
|
-
}, "clear"),
|
|
113
|
+
E(Le, "createGraphWithElements");
|
|
114
|
+
var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ E(() => {
|
|
115
|
+
H.clear(), Re.clear(), V.clear();
|
|
116
|
+
}, "clear"), Be = /* @__PURE__ */ E((e, t) => {
|
|
116
117
|
let n = H.get(t) || [];
|
|
117
|
-
return
|
|
118
|
-
}, "isDescendant"),
|
|
118
|
+
return C.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
119
|
+
}, "isDescendant"), Ve = /* @__PURE__ */ E((e, t) => {
|
|
119
120
|
let n = H.get(t) || [];
|
|
120
|
-
return
|
|
121
|
-
}, "edgeInCluster"),
|
|
122
|
-
|
|
121
|
+
return C.info("Descendants of ", t, " is ", n), C.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || Be(e.v, t) || Be(e.w, t) || n.includes(e.w) : (C.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
122
|
+
}, "edgeInCluster"), He = /* @__PURE__ */ E((e, t, n, r) => {
|
|
123
|
+
C.debug("Copying children of ", e, "root", r, "data", t.node(e), r);
|
|
123
124
|
let i = t.children(e) || [];
|
|
124
|
-
e !== r && i.push(e),
|
|
125
|
-
if (t.children(i).length > 0)
|
|
125
|
+
e !== r && i.push(e), C.debug("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
|
|
126
|
+
if (t.children(i).length > 0) He(i, t, n, r);
|
|
126
127
|
else {
|
|
127
128
|
let a = t.node(i);
|
|
128
|
-
|
|
129
|
+
C.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, a), r !== t.parent(i) && (C.debug("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (C.debug("Setting parent", i, e), n.setParent(i, e)) : (C.info("In copy ", e, "root", r, "data", t.node(e), r), C.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
|
|
129
130
|
let o = t.edges(i);
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
C.debug("Copying Edges", o), o.forEach((i) => {
|
|
132
|
+
C.info("Edge", i);
|
|
132
133
|
let a = t.edge(i.v, i.w, i.name);
|
|
133
|
-
|
|
134
|
+
C.info("Edge data", a, r);
|
|
134
135
|
try {
|
|
135
|
-
|
|
136
|
+
Ve(i, r) ? (C.info("Copying as ", i.v, i.w, a, i.name), n.setEdge(i.v, i.w, a, i.name), C.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : C.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
|
|
136
137
|
} catch (e) {
|
|
137
|
-
|
|
138
|
+
C.error(e);
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
+
C.debug("Removing node", i), t.removeNode(i);
|
|
142
143
|
});
|
|
143
|
-
}, "copy"),
|
|
144
|
+
}, "copy"), Ue = /* @__PURE__ */ E((e, t) => {
|
|
144
145
|
let n = t.children(e), r = [...n];
|
|
145
|
-
for (let i of n)
|
|
146
|
+
for (let i of n) Re.set(i, e), r = [...r, ...Ue(i, t)];
|
|
146
147
|
return r;
|
|
147
|
-
}, "extractDescendants"),
|
|
148
|
+
}, "extractDescendants"), We = /* @__PURE__ */ E((e, t, n) => {
|
|
148
149
|
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
149
150
|
v: e.v === t ? n : e.v,
|
|
150
151
|
w: e.w === t ? t : e.w
|
|
@@ -153,62 +154,61 @@ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PUR
|
|
|
153
154
|
w: e.w
|
|
154
155
|
}));
|
|
155
156
|
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
156
|
-
}, "findCommonEdges"),
|
|
157
|
+
}, "findCommonEdges"), Ge = /* @__PURE__ */ E((e, t, n) => {
|
|
157
158
|
let r = t.children(e);
|
|
158
|
-
if (
|
|
159
|
+
if (C.trace("Searching children of id ", e, r), r.length < 1) return e;
|
|
159
160
|
let i;
|
|
160
161
|
for (let e of r) {
|
|
161
|
-
let r =
|
|
162
|
+
let r = Ge(e, t, n), a = We(t, n, r);
|
|
162
163
|
if (r) {
|
|
163
164
|
if (a.length > 0) i = r;
|
|
164
165
|
else return r;
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
return i;
|
|
168
|
-
}, "findNonClusterChild"),
|
|
169
|
-
if (!e || t > 10)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
let r = Ze(e, t, e.parent(n));
|
|
190
|
-
r && (V.get(t).id = r);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
e.edges().forEach(function(t) {
|
|
194
|
-
let n = e.edge(t);
|
|
195
|
-
S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
196
|
-
let r = t.v, i = t.w;
|
|
197
|
-
if (S.debug("Fix XXX", V, "ids:", t.v, t.w, "Translating: ", V.get(t.v), " --- ", V.get(t.w)), V.get(t.v) || V.get(t.w)) {
|
|
198
|
-
if (S.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), r = Ge(t.v), i = Ge(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
|
|
199
|
-
let i = e.parent(r);
|
|
200
|
-
V.get(i).externalConnections = !0, n.fromCluster = t.v;
|
|
201
|
-
}
|
|
202
|
-
if (i !== t.w) {
|
|
203
|
-
let r = e.parent(i);
|
|
204
|
-
V.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
169
|
+
}, "findNonClusterChild"), Ke = /* @__PURE__ */ E((e) => !V.has(e) || !V.get(e).externalConnections ? e : V.has(e) ? V.get(e).id : e, "getAnchorId"), qe = /* @__PURE__ */ E((e, t) => {
|
|
170
|
+
if (!e || t > 10) C.debug("Opting out, no graph ");
|
|
171
|
+
else {
|
|
172
|
+
C.debug("Opting in, graph "), e.nodes().forEach(function(t) {
|
|
173
|
+
e.children(t).length > 0 && (C.debug("Cluster identified", t, " Replacement id in edges: ", Ge(t, e, t)), H.set(t, Ue(t, e)), V.set(t, {
|
|
174
|
+
id: Ge(t, e, t),
|
|
175
|
+
clusterData: e.node(t)
|
|
176
|
+
}));
|
|
177
|
+
}), e.nodes().forEach(function(t) {
|
|
178
|
+
let n = e.children(t), r = e.edges();
|
|
179
|
+
n.length > 0 ? (C.debug("Cluster identified", t, H), r.forEach((e) => {
|
|
180
|
+
Be(e.v, t) ^ Be(e.w, t) && (C.debug("Edge: ", e, " leaves cluster ", t), C.debug("Descendants of XXX ", t, ": ", H.get(t)), V.get(t).externalConnections = !0);
|
|
181
|
+
})) : C.debug("Not a cluster ", t, H);
|
|
182
|
+
});
|
|
183
|
+
for (let t of V.keys()) {
|
|
184
|
+
let n = V.get(t).id, r = e.parent(n);
|
|
185
|
+
r !== t && V.has(r) && !V.get(r).externalConnections && (V.get(t).id = r);
|
|
186
|
+
let i = e.edges().some((e) => e.v === t);
|
|
187
|
+
if (n && V.get(t)?.externalConnections && i && Ze(e, n, t)) {
|
|
188
|
+
let r = Qe(e, t, e.parent(n));
|
|
189
|
+
r && (V.get(t).id = r);
|
|
205
190
|
}
|
|
206
|
-
S.debug("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
|
|
207
191
|
}
|
|
208
|
-
|
|
209
|
-
|
|
192
|
+
e.edges().forEach(function(t) {
|
|
193
|
+
let n = e.edge(t);
|
|
194
|
+
C.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), C.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
195
|
+
let r = t.v, i = t.w;
|
|
196
|
+
if (C.debug("Fix XXX", V, "ids:", t.v, t.w, "Translating: ", V.get(t.v), " --- ", V.get(t.w)), V.get(t.v) || V.get(t.w)) {
|
|
197
|
+
if (C.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), r = Ke(t.v), i = Ke(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
|
|
198
|
+
let i = e.parent(r);
|
|
199
|
+
V.get(i).externalConnections = !0, n.fromCluster = t.v;
|
|
200
|
+
}
|
|
201
|
+
if (i !== t.w) {
|
|
202
|
+
let r = e.parent(i);
|
|
203
|
+
V.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
204
|
+
}
|
|
205
|
+
C.debug("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
|
|
206
|
+
}
|
|
207
|
+
}), Je(e, 0), C.trace(V);
|
|
208
|
+
}
|
|
209
|
+
}, "adjustClustersAndEdges"), Je = /* @__PURE__ */ E((e, t) => {
|
|
210
210
|
if (t > 10) {
|
|
211
|
-
|
|
211
|
+
C.error("Bailing out");
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
214
|
let n = e.nodes(), r = !1;
|
|
@@ -216,49 +216,48 @@ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PUR
|
|
|
216
216
|
let n = e.children(t);
|
|
217
217
|
r ||= n.length > 0;
|
|
218
218
|
}
|
|
219
|
-
if (!r)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
S.debug(" Now next level", r, n), n?.clusterNode && qe(n.graph, t + 1);
|
|
219
|
+
if (!r) C.debug("Done, no node has children", e.nodes());
|
|
220
|
+
else {
|
|
221
|
+
C.debug("Nodes = ", n, t);
|
|
222
|
+
for (let r of n) if (C.debug("Extracting node", r, V, V.has(r) && !V.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !V.has(r)) C.debug("Not a cluster", r, t);
|
|
223
|
+
else if (!V.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
224
|
+
C.debug("Cluster without external connections, without a parent and with children", r, t);
|
|
225
|
+
let n = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
226
|
+
V.get(r)?.clusterData?.dir && (n = V.get(r).clusterData.dir, C.debug("Fixing dir", V.get(r).clusterData.dir, n));
|
|
227
|
+
let i = new c({
|
|
228
|
+
multigraph: !0,
|
|
229
|
+
compound: !0
|
|
230
|
+
}).setGraph({
|
|
231
|
+
rankdir: n,
|
|
232
|
+
nodesep: 50,
|
|
233
|
+
ranksep: 50,
|
|
234
|
+
marginx: 8,
|
|
235
|
+
marginy: 8
|
|
236
|
+
}).setDefaultEdgeLabel(function() {
|
|
237
|
+
return {};
|
|
238
|
+
});
|
|
239
|
+
He(r, e, i, r), e.setNode(r, {
|
|
240
|
+
clusterNode: !0,
|
|
241
|
+
id: r,
|
|
242
|
+
clusterData: V.get(r).clusterData,
|
|
243
|
+
label: V.get(r).label,
|
|
244
|
+
graph: i
|
|
245
|
+
});
|
|
246
|
+
} else C.debug("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !V.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), C.debug(V);
|
|
247
|
+
n = e.nodes(), C.debug("New list of nodes", n);
|
|
248
|
+
for (let r of n) {
|
|
249
|
+
let n = e.node(r);
|
|
250
|
+
C.debug(" Now next level", r, n), n?.clusterNode && Je(n.graph, t + 1);
|
|
251
|
+
}
|
|
253
252
|
}
|
|
254
|
-
}, "extractor"),
|
|
253
|
+
}, "extractor"), Ye = /* @__PURE__ */ E((e, t) => {
|
|
255
254
|
if (t.length === 0) return [];
|
|
256
255
|
let n = Object.assign([], t);
|
|
257
256
|
return t.forEach((t) => {
|
|
258
|
-
let r =
|
|
257
|
+
let r = Ye(e, e.children(t));
|
|
259
258
|
n = [...n, ...r];
|
|
260
259
|
}), n;
|
|
261
|
-
}, "sorter"),
|
|
260
|
+
}, "sorter"), Xe = /* @__PURE__ */ E((e) => Ye(e, e.children()), "sortNodesByHierarchy"), Ze = /* @__PURE__ */ E((e, t, n) => {
|
|
262
261
|
let r = e.parent(t);
|
|
263
262
|
for (; r && r !== n;) {
|
|
264
263
|
let t = V.get(r);
|
|
@@ -266,20 +265,20 @@ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), Le = /* @__PUR
|
|
|
266
265
|
r = e.parent(r);
|
|
267
266
|
}
|
|
268
267
|
return !1;
|
|
269
|
-
}, "isNodeInExtractableCluster"),
|
|
268
|
+
}, "isNodeInExtractableCluster"), Qe = /* @__PURE__ */ E((e, t, n) => {
|
|
270
269
|
let r = e.children(t) ?? [];
|
|
271
270
|
for (let i of r) {
|
|
272
|
-
if (i === n ||
|
|
273
|
-
let r =
|
|
274
|
-
if (r && !
|
|
271
|
+
if (i === n || Be(i, n)) continue;
|
|
272
|
+
let r = Ge(i, e, t);
|
|
273
|
+
if (r && !Ze(e, r, t)) return r;
|
|
275
274
|
}
|
|
276
275
|
return null;
|
|
277
276
|
}, "findSafeAnchorNode");
|
|
278
|
-
function
|
|
279
|
-
let o = t ??
|
|
280
|
-
return /* @__PURE__ */
|
|
277
|
+
function $e({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout: r, afterPaint: i, paintOptions: a }) {
|
|
278
|
+
let o = t ?? tt;
|
|
279
|
+
return /* @__PURE__ */ E(async function(t, s, c, l) {
|
|
281
280
|
let u = s.select("g");
|
|
282
|
-
(c?.insertMarkers ??
|
|
281
|
+
(c?.insertMarkers ?? Oe)(u, t.markers, t.type, t.diagramId), et();
|
|
283
282
|
let d = {
|
|
284
283
|
element: u,
|
|
285
284
|
helpers: c,
|
|
@@ -290,122 +289,122 @@ function Qe({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout:
|
|
|
290
289
|
...d,
|
|
291
290
|
measure: f
|
|
292
291
|
};
|
|
293
|
-
r ? await r(t, m, p) : await
|
|
292
|
+
r ? await r(t, m, p) : await nt(t, m, a), await i?.(t, m, p);
|
|
294
293
|
}, "render");
|
|
295
294
|
}
|
|
296
|
-
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
E($e, "createCommonLayoutRenderer");
|
|
296
|
+
function et() {
|
|
297
|
+
ye(), ke(), xe(), ze();
|
|
299
298
|
}
|
|
300
|
-
|
|
301
|
-
async function
|
|
302
|
-
return await
|
|
299
|
+
E(et, "clearLayoutRenderState");
|
|
300
|
+
async function tt(e, { element: t }) {
|
|
301
|
+
return await Le(t, e);
|
|
303
302
|
}
|
|
304
|
-
|
|
305
|
-
async function
|
|
303
|
+
E(tt, "defaultMeasureLayout");
|
|
304
|
+
async function nt(e, t, n = {}) {
|
|
306
305
|
let { measure: r } = t, { groups: i } = r;
|
|
307
|
-
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await
|
|
308
|
-
let a =
|
|
309
|
-
for (let r of e.edges)
|
|
306
|
+
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await rt(i, r, t, n);
|
|
307
|
+
let a = at(e.nodes);
|
|
308
|
+
for (let r of e.edges) ot(r, n) || await st(i, r, a, e, n, t);
|
|
310
309
|
}
|
|
311
|
-
|
|
312
|
-
async function
|
|
313
|
-
t.clusterNode ?
|
|
310
|
+
E(nt, "paintLayoutData");
|
|
311
|
+
async function rt(e, t, n, r) {
|
|
312
|
+
t.clusterNode ? ge(t) : it(t, n, r) ? await be(e.clusters, t) : ge(t);
|
|
314
313
|
}
|
|
315
|
-
|
|
316
|
-
function
|
|
314
|
+
E(rt, "paintLayoutNode");
|
|
315
|
+
function it(e, t, n) {
|
|
317
316
|
return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
|
|
318
317
|
}
|
|
319
|
-
|
|
320
|
-
function
|
|
318
|
+
E(it, "shouldPaintAsCluster");
|
|
319
|
+
function at(e) {
|
|
321
320
|
let t = /* @__PURE__ */ new Map();
|
|
322
321
|
for (let n of e) n?.id && t.set(n.id, n);
|
|
323
322
|
return t;
|
|
324
323
|
}
|
|
325
|
-
|
|
326
|
-
function
|
|
324
|
+
E(at, "buildNodeLookup");
|
|
325
|
+
function ot(e, t) {
|
|
327
326
|
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
328
327
|
}
|
|
329
|
-
|
|
330
|
-
async function
|
|
331
|
-
let o =
|
|
332
|
-
|
|
328
|
+
E(ot, "shouldSkipPaintEdge");
|
|
329
|
+
async function st(e, t, n, r, i, a) {
|
|
330
|
+
let o = we(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, ct(t.start, t, n, a, i), ct(t.end, t, n, a, i), r.diagramId, lt(t, i));
|
|
331
|
+
De(t) && (Ee.has(t.id) || await Se(e.edgeLabels, t), ut(t, o));
|
|
333
332
|
}
|
|
334
|
-
|
|
335
|
-
function
|
|
333
|
+
E(st, "paintLayoutEdge");
|
|
334
|
+
function ct(e, t, n, r, i) {
|
|
336
335
|
return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
|
|
337
336
|
}
|
|
338
|
-
|
|
339
|
-
function
|
|
337
|
+
E(ct, "getRenderedNode");
|
|
338
|
+
function lt(e, t) {
|
|
340
339
|
return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
|
|
341
340
|
}
|
|
342
|
-
|
|
343
|
-
function
|
|
344
|
-
let n = t?.updatedPath ?? t?.originalPath, r = z(), { subGraphTitleTotalMargin: i } =
|
|
341
|
+
E(lt, "shouldSkipIntersect");
|
|
342
|
+
function ut(e, t) {
|
|
343
|
+
let n = t?.updatedPath ?? t?.originalPath, r = z(), { subGraphTitleTotalMargin: i } = _e({ flowchart: r.flowchart ?? {} });
|
|
345
344
|
if (e.label) {
|
|
346
|
-
let r =
|
|
345
|
+
let r = Ee.get(e.id), a = e.x, o = e.y;
|
|
347
346
|
if (n) {
|
|
348
|
-
let r =
|
|
349
|
-
|
|
347
|
+
let r = g.calcLabelPosition(n);
|
|
348
|
+
C.debug("Moving label " + e.label + " from (", a, ",", o, ") to (", r.x, ",", r.y, ") abc88"), t?.updatedPath && (a = r.x, o = r.y);
|
|
350
349
|
}
|
|
351
350
|
r.attr("transform", `translate(${a}, ${o + i / 2})`);
|
|
352
351
|
}
|
|
353
352
|
if (e?.startLabelLeft) {
|
|
354
|
-
let t =
|
|
353
|
+
let t = Te.get(e.id).startLeft, r = e?.x, i = e?.y;
|
|
355
354
|
if (n) {
|
|
356
|
-
let t =
|
|
355
|
+
let t = g.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
|
|
357
356
|
r = t.x, i = t.y;
|
|
358
357
|
}
|
|
359
358
|
t.attr("transform", `translate(${r}, ${i})`);
|
|
360
359
|
}
|
|
361
360
|
if (e.startLabelRight) {
|
|
362
|
-
let t =
|
|
361
|
+
let t = Te.get(e.id).startRight, r = e.x, i = e.y;
|
|
363
362
|
if (n) {
|
|
364
|
-
let t =
|
|
363
|
+
let t = g.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
|
|
365
364
|
r = t.x, i = t.y;
|
|
366
365
|
}
|
|
367
366
|
t.attr("transform", `translate(${r}, ${i})`);
|
|
368
367
|
}
|
|
369
368
|
if (e.endLabelLeft) {
|
|
370
|
-
let t =
|
|
369
|
+
let t = Te.get(e.id).endLeft, r = e.x, i = e.y;
|
|
371
370
|
if (n) {
|
|
372
|
-
let t =
|
|
371
|
+
let t = g.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
|
|
373
372
|
r = t.x, i = t.y;
|
|
374
373
|
}
|
|
375
374
|
t.attr("transform", `translate(${r}, ${i})`);
|
|
376
375
|
}
|
|
377
376
|
if (e.endLabelRight) {
|
|
378
|
-
let t =
|
|
377
|
+
let t = Te.get(e.id).endRight, r = e.x, i = e.y;
|
|
379
378
|
if (n) {
|
|
380
|
-
let t =
|
|
379
|
+
let t = g.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
|
|
381
380
|
r = t.x, i = t.y;
|
|
382
381
|
}
|
|
383
382
|
t.attr("transform", `translate(${r}, ${i})`);
|
|
384
383
|
}
|
|
385
384
|
}
|
|
386
|
-
|
|
385
|
+
E(ut, "positionRenderedEdgeLabel");
|
|
387
386
|
//#endregion
|
|
388
387
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
|
|
389
|
-
function
|
|
388
|
+
function dt(e) {
|
|
390
389
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
391
390
|
}
|
|
392
|
-
|
|
393
|
-
var U = {},
|
|
391
|
+
E(dt, "getDefaultExportFromCjs");
|
|
392
|
+
var U = {}, ft = {}, W = {}, pt;
|
|
394
393
|
function G() {
|
|
395
|
-
if (
|
|
396
|
-
|
|
394
|
+
if (pt) return W;
|
|
395
|
+
pt = 1;
|
|
397
396
|
function e(e) {
|
|
398
397
|
return e == null;
|
|
399
398
|
}
|
|
400
|
-
|
|
399
|
+
E(e, "isNothing");
|
|
401
400
|
function t(e) {
|
|
402
401
|
return typeof e == "object" && !!e;
|
|
403
402
|
}
|
|
404
|
-
|
|
403
|
+
E(t, "isObject");
|
|
405
404
|
function n(t) {
|
|
406
405
|
return Array.isArray(t) ? t : e(t) ? [] : [t];
|
|
407
406
|
}
|
|
408
|
-
|
|
407
|
+
E(n, "toArray");
|
|
409
408
|
function r(e, t) {
|
|
410
409
|
if (t) {
|
|
411
410
|
let n = Object.keys(t);
|
|
@@ -416,40 +415,40 @@ function G() {
|
|
|
416
415
|
}
|
|
417
416
|
return e;
|
|
418
417
|
}
|
|
419
|
-
|
|
418
|
+
E(r, "extend");
|
|
420
419
|
function i(e, t) {
|
|
421
420
|
let n = "";
|
|
422
421
|
for (let r = 0; r < t; r += 1) n += e;
|
|
423
422
|
return n;
|
|
424
423
|
}
|
|
425
|
-
|
|
424
|
+
E(i, "repeat");
|
|
426
425
|
function a(e) {
|
|
427
426
|
return e === 0 && 1 / e == -Infinity;
|
|
428
427
|
}
|
|
429
|
-
return
|
|
428
|
+
return E(a, "isNegativeZero"), W.isNothing = e, W.isObject = t, W.toArray = n, W.repeat = i, W.isNegativeZero = a, W.extend = r, W;
|
|
430
429
|
}
|
|
431
|
-
|
|
432
|
-
var
|
|
433
|
-
function
|
|
434
|
-
if (
|
|
435
|
-
|
|
430
|
+
E(G, "requireCommon");
|
|
431
|
+
var mt, ht;
|
|
432
|
+
function gt() {
|
|
433
|
+
if (ht) return mt;
|
|
434
|
+
ht = 1;
|
|
436
435
|
function e(e, t) {
|
|
437
436
|
let n = "", r = e.reason || "(unknown reason)";
|
|
438
437
|
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
439
438
|
}
|
|
440
|
-
|
|
439
|
+
E(e, "formatError");
|
|
441
440
|
function t(t, n) {
|
|
442
441
|
Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = n, this.message = e(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
443
442
|
}
|
|
444
|
-
return
|
|
443
|
+
return E(t, "YAMLException2"), t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t.prototype.toString = /* @__PURE__ */ E(function(t) {
|
|
445
444
|
return this.name + ": " + e(this, t);
|
|
446
|
-
}, "toString"),
|
|
445
|
+
}, "toString"), mt = t, mt;
|
|
447
446
|
}
|
|
448
|
-
|
|
449
|
-
var
|
|
450
|
-
function
|
|
451
|
-
if (
|
|
452
|
-
|
|
447
|
+
E(gt, "requireException");
|
|
448
|
+
var _t, vt;
|
|
449
|
+
function yt() {
|
|
450
|
+
if (vt) return _t;
|
|
451
|
+
vt = 1;
|
|
453
452
|
let e = G();
|
|
454
453
|
function t(e, t, n, r, i) {
|
|
455
454
|
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
@@ -458,11 +457,11 @@ function vt() {
|
|
|
458
457
|
pos: r - t + a.length
|
|
459
458
|
};
|
|
460
459
|
}
|
|
461
|
-
|
|
460
|
+
E(t, "getLine");
|
|
462
461
|
function n(t, n) {
|
|
463
462
|
return e.repeat(" ", n - t.length) + t;
|
|
464
463
|
}
|
|
465
|
-
|
|
464
|
+
E(n, "padStart");
|
|
466
465
|
function r(r, i) {
|
|
467
466
|
if (i = Object.create(i || null), !r.buffer) return null;
|
|
468
467
|
i.maxLength || (i.maxLength = 79), typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
|
|
@@ -482,14 +481,14 @@ function vt() {
|
|
|
482
481
|
}
|
|
483
482
|
return u.replace(/\n$/, "");
|
|
484
483
|
}
|
|
485
|
-
return
|
|
484
|
+
return E(r, "makeSnippet"), _t = r, _t;
|
|
486
485
|
}
|
|
487
|
-
|
|
488
|
-
var
|
|
486
|
+
E(yt, "requireSnippet");
|
|
487
|
+
var bt, xt;
|
|
489
488
|
function K() {
|
|
490
|
-
if (
|
|
491
|
-
|
|
492
|
-
let e =
|
|
489
|
+
if (xt) return bt;
|
|
490
|
+
xt = 1;
|
|
491
|
+
let e = gt(), t = [
|
|
493
492
|
"kind",
|
|
494
493
|
"multi",
|
|
495
494
|
"resolve",
|
|
@@ -513,7 +512,7 @@ function K() {
|
|
|
513
512
|
});
|
|
514
513
|
}), t;
|
|
515
514
|
}
|
|
516
|
-
|
|
515
|
+
E(r, "compileStyleAliases");
|
|
517
516
|
function i(i, a) {
|
|
518
517
|
if (a ||= {}, Object.keys(a).forEach(function(n) {
|
|
519
518
|
if (t.indexOf(n) === -1) throw new e("Unknown option \"" + n + "\" is met in definition of \"" + i + "\" YAML type.");
|
|
@@ -523,14 +522,14 @@ function K() {
|
|
|
523
522
|
return e;
|
|
524
523
|
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = r(a.styleAliases || null), n.indexOf(this.kind) === -1) throw new e("Unknown kind \"" + this.kind + "\" is specified for \"" + i + "\" YAML type.");
|
|
525
524
|
}
|
|
526
|
-
return
|
|
525
|
+
return E(i, "Type2"), bt = i, bt;
|
|
527
526
|
}
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
function
|
|
531
|
-
if (
|
|
532
|
-
|
|
533
|
-
let e =
|
|
527
|
+
E(K, "requireType");
|
|
528
|
+
var St, Ct;
|
|
529
|
+
function wt() {
|
|
530
|
+
if (Ct) return St;
|
|
531
|
+
Ct = 1;
|
|
532
|
+
let e = gt(), t = K();
|
|
534
533
|
function n(e, t) {
|
|
535
534
|
let n = [];
|
|
536
535
|
return e[t].forEach(function(e) {
|
|
@@ -540,7 +539,7 @@ function Ct() {
|
|
|
540
539
|
}), n[t] = e;
|
|
541
540
|
}), n;
|
|
542
541
|
}
|
|
543
|
-
|
|
542
|
+
E(n, "compileList");
|
|
544
543
|
function r() {
|
|
545
544
|
let e = {
|
|
546
545
|
scalar: {},
|
|
@@ -557,15 +556,15 @@ function Ct() {
|
|
|
557
556
|
function t(t) {
|
|
558
557
|
t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
|
|
559
558
|
}
|
|
560
|
-
|
|
559
|
+
E(t, "collectType");
|
|
561
560
|
for (let e = 0, n = arguments.length; e < n; e += 1) arguments[e].forEach(t);
|
|
562
561
|
return e;
|
|
563
562
|
}
|
|
564
|
-
|
|
563
|
+
E(r, "compileMap");
|
|
565
564
|
function i(e) {
|
|
566
565
|
return this.extend(e);
|
|
567
566
|
}
|
|
568
|
-
return
|
|
567
|
+
return E(i, "Schema2"), i.prototype.extend = /* @__PURE__ */ E(function(a) {
|
|
569
568
|
let o = [], s = [];
|
|
570
569
|
if (a instanceof t) s.push(a);
|
|
571
570
|
else if (Array.isArray(a)) s = s.concat(a);
|
|
@@ -580,147 +579,147 @@ function Ct() {
|
|
|
580
579
|
});
|
|
581
580
|
let c = Object.create(i.prototype);
|
|
582
581
|
return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = n(c, "implicit"), c.compiledExplicit = n(c, "explicit"), c.compiledTypeMap = r(c.compiledImplicit, c.compiledExplicit), c;
|
|
583
|
-
}, "extend"),
|
|
582
|
+
}, "extend"), St = i, St;
|
|
584
583
|
}
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return
|
|
584
|
+
E(wt, "requireSchema");
|
|
585
|
+
var Tt, Et;
|
|
586
|
+
function Dt() {
|
|
587
|
+
return Et || (Et = 1, Tt = new (K())("tag:yaml.org,2002:str", {
|
|
589
588
|
kind: "scalar",
|
|
590
|
-
construct: /* @__PURE__ */
|
|
589
|
+
construct: /* @__PURE__ */ E(function(e) {
|
|
591
590
|
return e === null ? "" : e;
|
|
592
591
|
}, "construct")
|
|
593
|
-
}),
|
|
592
|
+
})), Tt;
|
|
594
593
|
}
|
|
595
|
-
|
|
596
|
-
var
|
|
597
|
-
function
|
|
598
|
-
return
|
|
594
|
+
E(Dt, "requireStr");
|
|
595
|
+
var Ot, kt;
|
|
596
|
+
function At() {
|
|
597
|
+
return kt || (kt = 1, Ot = new (K())("tag:yaml.org,2002:seq", {
|
|
599
598
|
kind: "sequence",
|
|
600
|
-
construct: /* @__PURE__ */
|
|
599
|
+
construct: /* @__PURE__ */ E(function(e) {
|
|
601
600
|
return e === null ? [] : e;
|
|
602
601
|
}, "construct")
|
|
603
|
-
}),
|
|
602
|
+
})), Ot;
|
|
604
603
|
}
|
|
605
|
-
|
|
606
|
-
var
|
|
607
|
-
function
|
|
608
|
-
return
|
|
604
|
+
E(At, "requireSeq");
|
|
605
|
+
var jt, Mt;
|
|
606
|
+
function Nt() {
|
|
607
|
+
return Mt || (Mt = 1, jt = new (K())("tag:yaml.org,2002:map", {
|
|
609
608
|
kind: "mapping",
|
|
610
|
-
construct: /* @__PURE__ */
|
|
609
|
+
construct: /* @__PURE__ */ E(function(e) {
|
|
611
610
|
return e === null ? {} : e;
|
|
612
611
|
}, "construct")
|
|
613
|
-
}),
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
var
|
|
617
|
-
function
|
|
618
|
-
return
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
] }),
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
var
|
|
626
|
-
function
|
|
627
|
-
if (
|
|
628
|
-
|
|
612
|
+
})), jt;
|
|
613
|
+
}
|
|
614
|
+
E(Nt, "requireMap");
|
|
615
|
+
var Pt, Ft;
|
|
616
|
+
function It() {
|
|
617
|
+
return Ft || (Ft = 1, Pt = new (wt())({ explicit: [
|
|
618
|
+
Dt(),
|
|
619
|
+
At(),
|
|
620
|
+
Nt()
|
|
621
|
+
] })), Pt;
|
|
622
|
+
}
|
|
623
|
+
E(It, "requireFailsafe");
|
|
624
|
+
var Lt, Rt;
|
|
625
|
+
function zt() {
|
|
626
|
+
if (Rt) return Lt;
|
|
627
|
+
Rt = 1;
|
|
629
628
|
let e = K();
|
|
630
629
|
function t(e) {
|
|
631
630
|
if (e === null) return !0;
|
|
632
631
|
let t = e.length;
|
|
633
632
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
634
633
|
}
|
|
635
|
-
|
|
634
|
+
E(t, "resolveYamlNull");
|
|
636
635
|
function n() {
|
|
637
636
|
return null;
|
|
638
637
|
}
|
|
639
|
-
|
|
638
|
+
E(n, "constructYamlNull");
|
|
640
639
|
function r(e) {
|
|
641
640
|
return e === null;
|
|
642
641
|
}
|
|
643
|
-
return
|
|
642
|
+
return E(r, "isNull"), Lt = new e("tag:yaml.org,2002:null", {
|
|
644
643
|
kind: "scalar",
|
|
645
644
|
resolve: t,
|
|
646
645
|
construct: n,
|
|
647
646
|
predicate: r,
|
|
648
647
|
represent: {
|
|
649
|
-
canonical: /* @__PURE__ */
|
|
648
|
+
canonical: /* @__PURE__ */ E(function() {
|
|
650
649
|
return "~";
|
|
651
650
|
}, "canonical"),
|
|
652
|
-
lowercase: /* @__PURE__ */
|
|
651
|
+
lowercase: /* @__PURE__ */ E(function() {
|
|
653
652
|
return "null";
|
|
654
653
|
}, "lowercase"),
|
|
655
|
-
uppercase: /* @__PURE__ */
|
|
654
|
+
uppercase: /* @__PURE__ */ E(function() {
|
|
656
655
|
return "NULL";
|
|
657
656
|
}, "uppercase"),
|
|
658
|
-
camelcase: /* @__PURE__ */
|
|
657
|
+
camelcase: /* @__PURE__ */ E(function() {
|
|
659
658
|
return "Null";
|
|
660
659
|
}, "camelcase"),
|
|
661
|
-
empty: /* @__PURE__ */
|
|
660
|
+
empty: /* @__PURE__ */ E(function() {
|
|
662
661
|
return "";
|
|
663
662
|
}, "empty")
|
|
664
663
|
},
|
|
665
664
|
defaultStyle: "lowercase"
|
|
666
|
-
}),
|
|
665
|
+
}), Lt;
|
|
667
666
|
}
|
|
668
|
-
|
|
669
|
-
var
|
|
670
|
-
function
|
|
671
|
-
if (
|
|
672
|
-
|
|
667
|
+
E(zt, "require_null");
|
|
668
|
+
var Bt, Vt;
|
|
669
|
+
function Ht() {
|
|
670
|
+
if (Vt) return Bt;
|
|
671
|
+
Vt = 1;
|
|
673
672
|
let e = K();
|
|
674
673
|
function t(e) {
|
|
675
674
|
if (e === null) return !1;
|
|
676
675
|
let t = e.length;
|
|
677
676
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
678
677
|
}
|
|
679
|
-
|
|
678
|
+
E(t, "resolveYamlBoolean");
|
|
680
679
|
function n(e) {
|
|
681
680
|
return e === "true" || e === "True" || e === "TRUE";
|
|
682
681
|
}
|
|
683
|
-
|
|
682
|
+
E(n, "constructYamlBoolean");
|
|
684
683
|
function r(e) {
|
|
685
684
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
686
685
|
}
|
|
687
|
-
return
|
|
686
|
+
return E(r, "isBoolean"), Bt = new e("tag:yaml.org,2002:bool", {
|
|
688
687
|
kind: "scalar",
|
|
689
688
|
resolve: t,
|
|
690
689
|
construct: n,
|
|
691
690
|
predicate: r,
|
|
692
691
|
represent: {
|
|
693
|
-
lowercase: /* @__PURE__ */
|
|
692
|
+
lowercase: /* @__PURE__ */ E(function(e) {
|
|
694
693
|
return e ? "true" : "false";
|
|
695
694
|
}, "lowercase"),
|
|
696
|
-
uppercase: /* @__PURE__ */
|
|
695
|
+
uppercase: /* @__PURE__ */ E(function(e) {
|
|
697
696
|
return e ? "TRUE" : "FALSE";
|
|
698
697
|
}, "uppercase"),
|
|
699
|
-
camelcase: /* @__PURE__ */
|
|
698
|
+
camelcase: /* @__PURE__ */ E(function(e) {
|
|
700
699
|
return e ? "True" : "False";
|
|
701
700
|
}, "camelcase")
|
|
702
701
|
},
|
|
703
702
|
defaultStyle: "lowercase"
|
|
704
|
-
}),
|
|
703
|
+
}), Bt;
|
|
705
704
|
}
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
function
|
|
709
|
-
if (
|
|
710
|
-
|
|
705
|
+
E(Ht, "requireBool");
|
|
706
|
+
var Ut, Wt;
|
|
707
|
+
function Gt() {
|
|
708
|
+
if (Wt) return Ut;
|
|
709
|
+
Wt = 1;
|
|
711
710
|
let e = G(), t = K();
|
|
712
711
|
function n(e) {
|
|
713
712
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
714
713
|
}
|
|
715
|
-
|
|
714
|
+
E(n, "isHexCode");
|
|
716
715
|
function r(e) {
|
|
717
716
|
return e >= 48 && e <= 55;
|
|
718
717
|
}
|
|
719
|
-
|
|
718
|
+
E(r, "isOctCode");
|
|
720
719
|
function i(e) {
|
|
721
720
|
return e >= 48 && e <= 57;
|
|
722
721
|
}
|
|
723
|
-
|
|
722
|
+
E(i, "isDecCode");
|
|
724
723
|
function a(e) {
|
|
725
724
|
if (e === null) return !1;
|
|
726
725
|
let t = e.length, a = 0, s = !1;
|
|
@@ -756,7 +755,7 @@ function Wt() {
|
|
|
756
755
|
}
|
|
757
756
|
return s ? isFinite(o(e)) : !1;
|
|
758
757
|
}
|
|
759
|
-
|
|
758
|
+
E(a, "resolveYamlInteger");
|
|
760
759
|
function o(e) {
|
|
761
760
|
let t = e, n = 1, r = t[0];
|
|
762
761
|
if ((r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
@@ -767,30 +766,30 @@ function Wt() {
|
|
|
767
766
|
}
|
|
768
767
|
return n * parseInt(t, 10);
|
|
769
768
|
}
|
|
770
|
-
|
|
769
|
+
E(o, "parseYamlInteger");
|
|
771
770
|
function s(e) {
|
|
772
771
|
return o(e);
|
|
773
772
|
}
|
|
774
|
-
|
|
773
|
+
E(s, "constructYamlInteger");
|
|
775
774
|
function c(t) {
|
|
776
775
|
return Object.prototype.toString.call(t) === "[object Number]" && t % 1 == 0 && !e.isNegativeZero(t);
|
|
777
776
|
}
|
|
778
|
-
return
|
|
777
|
+
return E(c, "isInteger"), Ut = new t("tag:yaml.org,2002:int", {
|
|
779
778
|
kind: "scalar",
|
|
780
779
|
resolve: a,
|
|
781
780
|
construct: s,
|
|
782
781
|
predicate: c,
|
|
783
782
|
represent: {
|
|
784
|
-
binary: /* @__PURE__ */
|
|
783
|
+
binary: /* @__PURE__ */ E(function(e) {
|
|
785
784
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
786
785
|
}, "binary"),
|
|
787
|
-
octal: /* @__PURE__ */
|
|
786
|
+
octal: /* @__PURE__ */ E(function(e) {
|
|
788
787
|
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
789
788
|
}, "octal"),
|
|
790
|
-
decimal: /* @__PURE__ */
|
|
789
|
+
decimal: /* @__PURE__ */ E(function(e) {
|
|
791
790
|
return e.toString(10);
|
|
792
791
|
}, "decimal"),
|
|
793
|
-
hexadecimal: /* @__PURE__ */
|
|
792
|
+
hexadecimal: /* @__PURE__ */ E(function(e) {
|
|
794
793
|
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
795
794
|
}, "hexadecimal")
|
|
796
795
|
},
|
|
@@ -801,23 +800,23 @@ function Wt() {
|
|
|
801
800
|
decimal: [10, "dec"],
|
|
802
801
|
hexadecimal: [16, "hex"]
|
|
803
802
|
}
|
|
804
|
-
}),
|
|
803
|
+
}), Ut;
|
|
805
804
|
}
|
|
806
|
-
|
|
807
|
-
var
|
|
808
|
-
function
|
|
809
|
-
if (
|
|
810
|
-
|
|
805
|
+
E(Gt, "requireInt");
|
|
806
|
+
var Kt, qt;
|
|
807
|
+
function Jt() {
|
|
808
|
+
if (qt) return Kt;
|
|
809
|
+
qt = 1;
|
|
811
810
|
let e = G(), t = K(), n = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), r = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
812
811
|
function i(e) {
|
|
813
812
|
return e === null || !n.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : r.test(e);
|
|
814
813
|
}
|
|
815
|
-
|
|
814
|
+
E(i, "resolveYamlFloat");
|
|
816
815
|
function a(e) {
|
|
817
816
|
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
818
817
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
819
818
|
}
|
|
820
|
-
|
|
819
|
+
E(a, "constructYamlFloat");
|
|
821
820
|
let o = /^[-+]?[0-9]+e/;
|
|
822
821
|
function s(t, n) {
|
|
823
822
|
if (isNaN(t)) switch (n) {
|
|
@@ -839,44 +838,44 @@ function qt() {
|
|
|
839
838
|
let r = t.toString(10);
|
|
840
839
|
return o.test(r) ? r.replace("e", ".e") : r;
|
|
841
840
|
}
|
|
842
|
-
|
|
841
|
+
E(s, "representYamlFloat");
|
|
843
842
|
function c(t) {
|
|
844
843
|
return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 != 0 || e.isNegativeZero(t));
|
|
845
844
|
}
|
|
846
|
-
return
|
|
845
|
+
return E(c, "isFloat"), Kt = new t("tag:yaml.org,2002:float", {
|
|
847
846
|
kind: "scalar",
|
|
848
847
|
resolve: i,
|
|
849
848
|
construct: a,
|
|
850
849
|
predicate: c,
|
|
851
850
|
represent: s,
|
|
852
851
|
defaultStyle: "lowercase"
|
|
853
|
-
}),
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
function
|
|
858
|
-
return
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
] }),
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
var
|
|
867
|
-
function
|
|
868
|
-
return
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
var
|
|
872
|
-
function
|
|
873
|
-
if (
|
|
874
|
-
|
|
852
|
+
}), Kt;
|
|
853
|
+
}
|
|
854
|
+
E(Jt, "requireFloat");
|
|
855
|
+
var Yt, Xt;
|
|
856
|
+
function Zt() {
|
|
857
|
+
return Xt || (Xt = 1, Yt = It().extend({ implicit: [
|
|
858
|
+
zt(),
|
|
859
|
+
Ht(),
|
|
860
|
+
Gt(),
|
|
861
|
+
Jt()
|
|
862
|
+
] })), Yt;
|
|
863
|
+
}
|
|
864
|
+
E(Zt, "requireJson");
|
|
865
|
+
var Qt, $t;
|
|
866
|
+
function en() {
|
|
867
|
+
return $t || ($t = 1, Qt = Zt()), Qt;
|
|
868
|
+
}
|
|
869
|
+
E(en, "requireCore");
|
|
870
|
+
var tn, nn;
|
|
871
|
+
function rn() {
|
|
872
|
+
if (nn) return tn;
|
|
873
|
+
nn = 1;
|
|
875
874
|
let e = K(), t = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
876
875
|
function r(e) {
|
|
877
876
|
return e === null ? !1 : t.exec(e) !== null || n.exec(e) !== null;
|
|
878
877
|
}
|
|
879
|
-
|
|
878
|
+
E(r, "resolveYamlTimestamp");
|
|
880
879
|
function i(e) {
|
|
881
880
|
let r = 0, i = null, a = t.exec(e);
|
|
882
881
|
if (a === null && (a = n.exec(e)), a === null) throw Error("Date resolve error");
|
|
@@ -894,37 +893,37 @@ function nn() {
|
|
|
894
893
|
let f = new Date(Date.UTC(o, s, c, l, u, d, r));
|
|
895
894
|
return i && f.setTime(f.getTime() - i), f;
|
|
896
895
|
}
|
|
897
|
-
|
|
896
|
+
E(i, "constructYamlTimestamp");
|
|
898
897
|
function a(e) {
|
|
899
898
|
return e.toISOString();
|
|
900
899
|
}
|
|
901
|
-
return
|
|
900
|
+
return E(a, "representYamlTimestamp"), tn = new e("tag:yaml.org,2002:timestamp", {
|
|
902
901
|
kind: "scalar",
|
|
903
902
|
resolve: r,
|
|
904
903
|
construct: i,
|
|
905
904
|
instanceOf: Date,
|
|
906
905
|
represent: a
|
|
907
|
-
}),
|
|
906
|
+
}), tn;
|
|
908
907
|
}
|
|
909
|
-
|
|
910
|
-
var
|
|
911
|
-
function
|
|
912
|
-
if (
|
|
913
|
-
|
|
908
|
+
E(rn, "requireTimestamp");
|
|
909
|
+
var an, on;
|
|
910
|
+
function sn() {
|
|
911
|
+
if (on) return an;
|
|
912
|
+
on = 1;
|
|
914
913
|
let e = K();
|
|
915
914
|
function t(e) {
|
|
916
915
|
return e === "<<" || e === null;
|
|
917
916
|
}
|
|
918
|
-
return
|
|
917
|
+
return E(t, "resolveYamlMerge"), an = new e("tag:yaml.org,2002:merge", {
|
|
919
918
|
kind: "scalar",
|
|
920
919
|
resolve: t
|
|
921
|
-
}),
|
|
920
|
+
}), an;
|
|
922
921
|
}
|
|
923
|
-
|
|
924
|
-
var
|
|
925
|
-
function
|
|
926
|
-
if (
|
|
927
|
-
|
|
922
|
+
E(sn, "requireMerge");
|
|
923
|
+
var cn, ln;
|
|
924
|
+
function un() {
|
|
925
|
+
if (ln) return cn;
|
|
926
|
+
ln = 1;
|
|
928
927
|
let e = K();
|
|
929
928
|
function t(e) {
|
|
930
929
|
if (e === null) return !1;
|
|
@@ -938,37 +937,37 @@ function ln() {
|
|
|
938
937
|
}
|
|
939
938
|
return t % 8 == 0;
|
|
940
939
|
}
|
|
941
|
-
|
|
940
|
+
E(t, "resolveYamlBinary");
|
|
942
941
|
function n(e) {
|
|
943
942
|
let t = e.replace(/[\r\n=]/g, ""), n = t.length, r = 0, i = [];
|
|
944
943
|
for (let e = 0; e < n; e++) e % 4 == 0 && e && (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)), r = r << 6 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(t.charAt(e));
|
|
945
944
|
let a = n % 4 * 6;
|
|
946
945
|
return a === 0 ? (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)) : a === 18 ? (i.push(r >> 10 & 255), i.push(r >> 2 & 255)) : a === 12 && i.push(r >> 4 & 255), new Uint8Array(i);
|
|
947
946
|
}
|
|
948
|
-
|
|
947
|
+
E(n, "constructYamlBinary");
|
|
949
948
|
function r(e) {
|
|
950
949
|
let t = "", n = 0, r = e.length, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
951
950
|
for (let a = 0; a < r; a++) a % 3 == 0 && a && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[a];
|
|
952
951
|
let a = r % 3;
|
|
953
952
|
return a === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : a === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : a === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
|
|
954
953
|
}
|
|
955
|
-
|
|
954
|
+
E(r, "representYamlBinary");
|
|
956
955
|
function i(e) {
|
|
957
956
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
958
957
|
}
|
|
959
|
-
return
|
|
958
|
+
return E(i, "isBinary"), cn = new e("tag:yaml.org,2002:binary", {
|
|
960
959
|
kind: "scalar",
|
|
961
960
|
resolve: t,
|
|
962
961
|
construct: n,
|
|
963
962
|
predicate: i,
|
|
964
963
|
represent: r
|
|
965
|
-
}),
|
|
964
|
+
}), cn;
|
|
966
965
|
}
|
|
967
|
-
|
|
968
|
-
var
|
|
969
|
-
function
|
|
970
|
-
if (
|
|
971
|
-
|
|
966
|
+
E(un, "requireBinary");
|
|
967
|
+
var dn, fn;
|
|
968
|
+
function pn() {
|
|
969
|
+
if (fn) return dn;
|
|
970
|
+
fn = 1;
|
|
972
971
|
let e = K(), t = Object.prototype.hasOwnProperty, n = Object.prototype.toString;
|
|
973
972
|
function r(e) {
|
|
974
973
|
if (e === null) return !0;
|
|
@@ -987,21 +986,21 @@ function fn() {
|
|
|
987
986
|
}
|
|
988
987
|
return !0;
|
|
989
988
|
}
|
|
990
|
-
|
|
989
|
+
E(r, "resolveYamlOmap");
|
|
991
990
|
function i(e) {
|
|
992
991
|
return e === null ? [] : e;
|
|
993
992
|
}
|
|
994
|
-
return
|
|
993
|
+
return E(i, "constructYamlOmap"), dn = new e("tag:yaml.org,2002:omap", {
|
|
995
994
|
kind: "sequence",
|
|
996
995
|
resolve: r,
|
|
997
996
|
construct: i
|
|
998
|
-
}),
|
|
997
|
+
}), dn;
|
|
999
998
|
}
|
|
1000
|
-
|
|
1001
|
-
var
|
|
1002
|
-
function
|
|
1003
|
-
if (
|
|
1004
|
-
|
|
999
|
+
E(pn, "requireOmap");
|
|
1000
|
+
var mn, hn;
|
|
1001
|
+
function gn() {
|
|
1002
|
+
if (hn) return mn;
|
|
1003
|
+
hn = 1;
|
|
1005
1004
|
let e = K(), t = Object.prototype.toString;
|
|
1006
1005
|
function n(e) {
|
|
1007
1006
|
if (e === null) return !0;
|
|
@@ -1015,7 +1014,7 @@ function hn() {
|
|
|
1015
1014
|
}
|
|
1016
1015
|
return !0;
|
|
1017
1016
|
}
|
|
1018
|
-
|
|
1017
|
+
E(n, "resolveYamlPairs");
|
|
1019
1018
|
function r(e) {
|
|
1020
1019
|
if (e === null) return [];
|
|
1021
1020
|
let t = e, n = Array(t.length);
|
|
@@ -1025,17 +1024,17 @@ function hn() {
|
|
|
1025
1024
|
}
|
|
1026
1025
|
return n;
|
|
1027
1026
|
}
|
|
1028
|
-
return
|
|
1027
|
+
return E(r, "constructYamlPairs"), mn = new e("tag:yaml.org,2002:pairs", {
|
|
1029
1028
|
kind: "sequence",
|
|
1030
1029
|
resolve: n,
|
|
1031
1030
|
construct: r
|
|
1032
|
-
}),
|
|
1031
|
+
}), mn;
|
|
1033
1032
|
}
|
|
1034
|
-
|
|
1035
|
-
var
|
|
1036
|
-
function
|
|
1037
|
-
if (
|
|
1038
|
-
|
|
1033
|
+
E(gn, "requirePairs");
|
|
1034
|
+
var _n, vn;
|
|
1035
|
+
function yn() {
|
|
1036
|
+
if (vn) return _n;
|
|
1037
|
+
vn = 1;
|
|
1039
1038
|
let e = K(), t = Object.prototype.hasOwnProperty;
|
|
1040
1039
|
function n(e) {
|
|
1041
1040
|
if (e === null) return !0;
|
|
@@ -1043,69 +1042,69 @@ function vn() {
|
|
|
1043
1042
|
for (let e in n) if (t.call(n, e) && n[e] !== null) return !1;
|
|
1044
1043
|
return !0;
|
|
1045
1044
|
}
|
|
1046
|
-
|
|
1045
|
+
E(n, "resolveYamlSet");
|
|
1047
1046
|
function r(e) {
|
|
1048
1047
|
return e === null ? {} : e;
|
|
1049
1048
|
}
|
|
1050
|
-
return
|
|
1049
|
+
return E(r, "constructYamlSet"), _n = new e("tag:yaml.org,2002:set", {
|
|
1051
1050
|
kind: "mapping",
|
|
1052
1051
|
resolve: n,
|
|
1053
1052
|
construct: r
|
|
1054
|
-
}),
|
|
1053
|
+
}), _n;
|
|
1055
1054
|
}
|
|
1056
|
-
|
|
1057
|
-
var
|
|
1058
|
-
function
|
|
1059
|
-
return
|
|
1060
|
-
implicit: [
|
|
1055
|
+
E(yn, "requireSet");
|
|
1056
|
+
var bn, xn;
|
|
1057
|
+
function Sn() {
|
|
1058
|
+
return xn || (xn = 1, bn = en().extend({
|
|
1059
|
+
implicit: [rn(), sn()],
|
|
1061
1060
|
explicit: [
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1061
|
+
un(),
|
|
1062
|
+
pn(),
|
|
1063
|
+
gn(),
|
|
1064
|
+
yn()
|
|
1066
1065
|
]
|
|
1067
|
-
}),
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
var
|
|
1071
|
-
function
|
|
1072
|
-
if (
|
|
1073
|
-
|
|
1074
|
-
let e = G(), t =
|
|
1066
|
+
})), bn;
|
|
1067
|
+
}
|
|
1068
|
+
E(Sn, "require_default");
|
|
1069
|
+
var Cn;
|
|
1070
|
+
function wn() {
|
|
1071
|
+
if (Cn) return ft;
|
|
1072
|
+
Cn = 1;
|
|
1073
|
+
let e = G(), t = gt(), n = yt(), r = Sn(), i = Object.prototype.hasOwnProperty, a = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o = /[\x85\u2028\u2029]/, s = /[,\[\]{}]/, c = /^(?:!|!!|![0-9A-Za-z-]+!)$/, l = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
1075
1074
|
function u(e) {
|
|
1076
1075
|
return Object.prototype.toString.call(e);
|
|
1077
1076
|
}
|
|
1078
|
-
|
|
1077
|
+
E(u, "_class");
|
|
1079
1078
|
function d(e) {
|
|
1080
1079
|
return e === 10 || e === 13;
|
|
1081
1080
|
}
|
|
1082
|
-
|
|
1081
|
+
E(d, "isEol");
|
|
1083
1082
|
function f(e) {
|
|
1084
1083
|
return e === 9 || e === 32;
|
|
1085
1084
|
}
|
|
1086
|
-
|
|
1085
|
+
E(f, "isWhiteSpace");
|
|
1087
1086
|
function p(e) {
|
|
1088
1087
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1089
1088
|
}
|
|
1090
|
-
|
|
1089
|
+
E(p, "isWsOrEol");
|
|
1091
1090
|
function m(e) {
|
|
1092
1091
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1093
1092
|
}
|
|
1094
|
-
|
|
1093
|
+
E(m, "isFlowIndicator");
|
|
1095
1094
|
function h(e) {
|
|
1096
1095
|
if (e >= 48 && e <= 57) return e - 48;
|
|
1097
1096
|
let t = e | 32;
|
|
1098
1097
|
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
1099
1098
|
}
|
|
1100
|
-
|
|
1099
|
+
E(h, "fromHexCode");
|
|
1101
1100
|
function g(e) {
|
|
1102
1101
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1103
1102
|
}
|
|
1104
|
-
|
|
1103
|
+
E(g, "escapedHexLen");
|
|
1105
1104
|
function _(e) {
|
|
1106
1105
|
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
1107
1106
|
}
|
|
1108
|
-
|
|
1107
|
+
E(_, "fromDecimalCode");
|
|
1109
1108
|
function v(e) {
|
|
1110
1109
|
switch (e) {
|
|
1111
1110
|
case 48: return "\0";
|
|
@@ -1129,11 +1128,11 @@ function Cn() {
|
|
|
1129
1128
|
default: return "";
|
|
1130
1129
|
}
|
|
1131
1130
|
}
|
|
1132
|
-
|
|
1131
|
+
E(v, "simpleEscapeSequence");
|
|
1133
1132
|
function y(e) {
|
|
1134
1133
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1135
1134
|
}
|
|
1136
|
-
|
|
1135
|
+
E(y, "charFromCodepoint");
|
|
1137
1136
|
function b(e, t, n) {
|
|
1138
1137
|
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
1139
1138
|
configurable: !0,
|
|
@@ -1142,13 +1141,13 @@ function Cn() {
|
|
|
1142
1141
|
value: n
|
|
1143
1142
|
}) : e[t] = n;
|
|
1144
1143
|
}
|
|
1145
|
-
|
|
1144
|
+
E(b, "setProperty");
|
|
1146
1145
|
let x = Array(256), S = Array(256);
|
|
1147
1146
|
for (let e = 0; e < 256; e++) x[e] = +!!v(e), S[e] = v(e);
|
|
1148
1147
|
function C(e, t) {
|
|
1149
1148
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || r, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : 100, this.maxTotalMergeKeys = typeof t.maxTotalMergeKeys == "number" ? t.maxTotalMergeKeys : 1e4, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
|
|
1150
1149
|
}
|
|
1151
|
-
|
|
1150
|
+
E(C, "State");
|
|
1152
1151
|
function w(e, r) {
|
|
1153
1152
|
let i = {
|
|
1154
1153
|
name: e.filename,
|
|
@@ -1159,15 +1158,15 @@ function Cn() {
|
|
|
1159
1158
|
};
|
|
1160
1159
|
return i.snippet = n(i), new t(r, i);
|
|
1161
1160
|
}
|
|
1162
|
-
|
|
1163
|
-
function
|
|
1161
|
+
E(w, "generateError");
|
|
1162
|
+
function T(e, t) {
|
|
1164
1163
|
throw w(e, t);
|
|
1165
1164
|
}
|
|
1166
|
-
T
|
|
1165
|
+
E(T, "throwError");
|
|
1167
1166
|
function D(e, t) {
|
|
1168
1167
|
e.onWarning && e.onWarning.call(null, w(e, t));
|
|
1169
1168
|
}
|
|
1170
|
-
|
|
1169
|
+
E(D, "throwWarning");
|
|
1171
1170
|
function O(e, t, n) {
|
|
1172
1171
|
let r = e.anchorMapTransactions;
|
|
1173
1172
|
if (r.length !== 0) {
|
|
@@ -1179,12 +1178,12 @@ function Cn() {
|
|
|
1179
1178
|
}
|
|
1180
1179
|
e.anchorMap[t] = n;
|
|
1181
1180
|
}
|
|
1182
|
-
|
|
1181
|
+
E(O, "storeAnchor");
|
|
1183
1182
|
function k(e) {
|
|
1184
1183
|
e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
1185
1184
|
}
|
|
1186
|
-
|
|
1187
|
-
function
|
|
1185
|
+
E(k, "beginAnchorTransaction");
|
|
1186
|
+
function ee(e) {
|
|
1188
1187
|
let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
|
|
1189
1188
|
if (n.length === 0) return;
|
|
1190
1189
|
let r = n[n.length - 1], a = Object.keys(t);
|
|
@@ -1193,16 +1192,16 @@ function Cn() {
|
|
|
1193
1192
|
i.call(r, n) || (r[n] = t[n]);
|
|
1194
1193
|
}
|
|
1195
1194
|
}
|
|
1196
|
-
|
|
1197
|
-
function
|
|
1195
|
+
E(ee, "commitAnchorTransaction");
|
|
1196
|
+
function A(e) {
|
|
1198
1197
|
let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
|
|
1199
1198
|
for (let r = n.length - 1; r >= 0; --r) {
|
|
1200
1199
|
let i = t[n[r]];
|
|
1201
1200
|
i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
|
|
1202
1201
|
}
|
|
1203
1202
|
}
|
|
1204
|
-
|
|
1205
|
-
function
|
|
1203
|
+
E(A, "rollbackAnchorTransaction");
|
|
1204
|
+
function j(e) {
|
|
1206
1205
|
return {
|
|
1207
1206
|
position: e.position,
|
|
1208
1207
|
line: e.line,
|
|
@@ -1215,92 +1214,92 @@ function Cn() {
|
|
|
1215
1214
|
result: e.result
|
|
1216
1215
|
};
|
|
1217
1216
|
}
|
|
1218
|
-
|
|
1219
|
-
function
|
|
1217
|
+
E(j, "snapshotState");
|
|
1218
|
+
function te(e, t) {
|
|
1220
1219
|
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
|
|
1221
1220
|
}
|
|
1222
|
-
|
|
1223
|
-
let
|
|
1224
|
-
YAML: /* @__PURE__ */
|
|
1225
|
-
e.version !== null &&
|
|
1221
|
+
E(te, "restoreState");
|
|
1222
|
+
let M = {
|
|
1223
|
+
YAML: /* @__PURE__ */ E(function(e, t, n) {
|
|
1224
|
+
e.version !== null && T(e, "duplication of %YAML directive"), n.length !== 1 && T(e, "YAML directive accepts exactly one argument");
|
|
1226
1225
|
let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
|
|
1227
|
-
r === null &&
|
|
1226
|
+
r === null && T(e, "ill-formed argument of the YAML directive");
|
|
1228
1227
|
let i = parseInt(r[1], 10), a = parseInt(r[2], 10);
|
|
1229
|
-
i !== 1 &&
|
|
1228
|
+
i !== 1 && T(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && D(e, "unsupported YAML version of the document");
|
|
1230
1229
|
}, "handleYamlDirective"),
|
|
1231
|
-
TAG: /* @__PURE__ */
|
|
1230
|
+
TAG: /* @__PURE__ */ E(function(e, t, n) {
|
|
1232
1231
|
let r;
|
|
1233
|
-
n.length !== 2 &&
|
|
1232
|
+
n.length !== 2 && T(e, "TAG directive accepts exactly two arguments");
|
|
1234
1233
|
let a = n[0];
|
|
1235
|
-
r = n[1], c.test(a) ||
|
|
1234
|
+
r = n[1], c.test(a) || T(e, "ill-formed tag handle (first argument) of the TAG directive"), i.call(e.tagMap, a) && T(e, "there is a previously declared suffix for \"" + a + "\" tag handle"), l.test(r) || T(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1236
1235
|
try {
|
|
1237
1236
|
r = decodeURIComponent(r);
|
|
1238
1237
|
} catch {
|
|
1239
|
-
|
|
1238
|
+
T(e, "tag prefix is malformed: " + r);
|
|
1240
1239
|
}
|
|
1241
1240
|
e.tagMap[a] = r;
|
|
1242
1241
|
}, "handleTagDirective")
|
|
1243
1242
|
};
|
|
1244
|
-
function
|
|
1243
|
+
function N(e, t, n, r) {
|
|
1245
1244
|
if (t < n) {
|
|
1246
1245
|
let i = e.input.slice(t, n);
|
|
1247
1246
|
if (r) for (let t = 0, n = i.length; t < n; t += 1) {
|
|
1248
1247
|
let n = i.charCodeAt(t);
|
|
1249
|
-
n === 9 || n >= 32 && n <= 1114111 ||
|
|
1248
|
+
n === 9 || n >= 32 && n <= 1114111 || T(e, "expected valid JSON character");
|
|
1250
1249
|
}
|
|
1251
|
-
else a.test(i) &&
|
|
1250
|
+
else a.test(i) && T(e, "the stream contains non-printable characters");
|
|
1252
1251
|
e.result += i;
|
|
1253
1252
|
}
|
|
1254
1253
|
}
|
|
1255
|
-
|
|
1256
|
-
function
|
|
1257
|
-
e.isObject(r) ||
|
|
1254
|
+
E(N, "captureSegment");
|
|
1255
|
+
function P(t, n, r, a) {
|
|
1256
|
+
e.isObject(r) || T(t, "cannot merge mappings; the provided source object is unacceptable");
|
|
1258
1257
|
let o = Object.keys(r);
|
|
1259
1258
|
for (let e = 0, s = o.length; e < s; e += 1) {
|
|
1260
1259
|
let s = o[e];
|
|
1261
|
-
t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys &&
|
|
1260
|
+
t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && T(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), i.call(n, s) || (b(n, s, r[s]), a[s] = !0);
|
|
1262
1261
|
}
|
|
1263
1262
|
}
|
|
1264
|
-
|
|
1265
|
-
function
|
|
1263
|
+
E(P, "mergeMappings");
|
|
1264
|
+
function F(e, t, n, r, a, o, s, c, l) {
|
|
1266
1265
|
if (Array.isArray(a)) {
|
|
1267
1266
|
a = Array.prototype.slice.call(a);
|
|
1268
|
-
for (let t = 0, n = a.length; t < n; t += 1) Array.isArray(a[t]) &&
|
|
1267
|
+
for (let t = 0, n = a.length; t < n; t += 1) Array.isArray(a[t]) && T(e, "nested arrays are not supported inside keys"), typeof a == "object" && u(a[t]) === "[object Object]" && (a[t] = "[object Object]");
|
|
1269
1268
|
}
|
|
1270
1269
|
if (typeof a == "object" && u(a) === "[object Object]" && (a = "[object Object]"), a = String(a), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
|
|
1271
|
-
if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1)
|
|
1272
|
-
else
|
|
1273
|
-
} else !e.json && !i.call(n, a) && i.call(t, a) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position,
|
|
1270
|
+
if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) P(e, t, o[r], n);
|
|
1271
|
+
else P(e, t, o, n);
|
|
1272
|
+
} else !e.json && !i.call(n, a) && i.call(t, a) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, T(e, "duplicated mapping key")), b(t, a, o), delete n[a];
|
|
1274
1273
|
return t;
|
|
1275
1274
|
}
|
|
1276
|
-
|
|
1277
|
-
function
|
|
1275
|
+
E(F, "storeMappingPair");
|
|
1276
|
+
function I(e) {
|
|
1278
1277
|
let t = e.input.charCodeAt(e.position);
|
|
1279
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1278
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1280
1279
|
}
|
|
1281
|
-
|
|
1282
|
-
function
|
|
1280
|
+
E(I, "readLineBreak");
|
|
1281
|
+
function L(e, t, n) {
|
|
1283
1282
|
let r = 0, i = e.input.charCodeAt(e.position);
|
|
1284
1283
|
for (; i !== 0;) {
|
|
1285
1284
|
for (; f(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1286
1285
|
if (t && i === 35) do
|
|
1287
1286
|
i = e.input.charCodeAt(++e.position);
|
|
1288
1287
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1289
|
-
if (d(i)) for (
|
|
1288
|
+
if (d(i)) for (I(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1290
1289
|
else break;
|
|
1291
1290
|
}
|
|
1292
1291
|
return n !== -1 && r !== 0 && e.lineIndent < n && D(e, "deficient indentation"), r;
|
|
1293
1292
|
}
|
|
1294
|
-
|
|
1295
|
-
function
|
|
1293
|
+
E(L, "skipSeparationSpace");
|
|
1294
|
+
function R(e) {
|
|
1296
1295
|
let t = e.position, n = e.input.charCodeAt(t);
|
|
1297
1296
|
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || p(n)));
|
|
1298
1297
|
}
|
|
1299
|
-
|
|
1300
|
-
function
|
|
1298
|
+
E(R, "testDocumentSeparator");
|
|
1299
|
+
function z(t, n) {
|
|
1301
1300
|
n === 1 ? t.result += " " : n > 1 && (t.result += e.repeat("\n", n - 1));
|
|
1302
1301
|
}
|
|
1303
|
-
|
|
1302
|
+
E(z, "writeFoldedLines");
|
|
1304
1303
|
function ne(e, t, n) {
|
|
1305
1304
|
let r, i, a, o, s, c, l = e.kind, u = e.result, h = e.input.charCodeAt(e.position);
|
|
1306
1305
|
if (p(h) || m(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96) return !1;
|
|
@@ -1314,66 +1313,66 @@ function Cn() {
|
|
|
1314
1313
|
if (p(t) || n && m(t)) break;
|
|
1315
1314
|
} else if (h === 35) {
|
|
1316
1315
|
if (p(e.input.charCodeAt(e.position - 1))) break;
|
|
1317
|
-
} else if (e.position === e.lineStart &&
|
|
1316
|
+
} else if (e.position === e.lineStart && R(e) || n && m(h)) break;
|
|
1318
1317
|
else if (d(h)) {
|
|
1319
|
-
if (o = e.line, s = e.lineStart, c = e.lineIndent,
|
|
1318
|
+
if (o = e.line, s = e.lineStart, c = e.lineIndent, L(e, !1, -1), e.lineIndent >= t) {
|
|
1320
1319
|
a = !0, h = e.input.charCodeAt(e.position);
|
|
1321
1320
|
continue;
|
|
1322
1321
|
}
|
|
1323
1322
|
e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
|
|
1324
1323
|
break;
|
|
1325
1324
|
}
|
|
1326
|
-
a &&= (
|
|
1325
|
+
a &&= (N(e, r, i, !1), z(e, e.line - o), r = i = e.position, !1), f(h) || (i = e.position + 1), h = e.input.charCodeAt(++e.position);
|
|
1327
1326
|
}
|
|
1328
|
-
return
|
|
1327
|
+
return N(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
|
|
1329
1328
|
}
|
|
1330
|
-
|
|
1329
|
+
E(ne, "readPlainScalar");
|
|
1331
1330
|
function re(e, t) {
|
|
1332
1331
|
let n, r, i = e.input.charCodeAt(e.position);
|
|
1333
1332
|
if (i !== 39) return !1;
|
|
1334
1333
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
|
|
1335
|
-
if (
|
|
1334
|
+
if (N(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
|
|
1336
1335
|
else return !0;
|
|
1337
|
-
} else d(i) ? (
|
|
1338
|
-
|
|
1336
|
+
} else d(i) ? (N(e, n, r, !0), z(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && R(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, f(i) || (r = e.position));
|
|
1337
|
+
T(e, "unexpected end of the stream within a single quoted scalar");
|
|
1339
1338
|
}
|
|
1340
|
-
|
|
1339
|
+
E(re, "readSingleQuotedScalar");
|
|
1341
1340
|
function ie(e, t) {
|
|
1342
1341
|
let n, r, i, a = e.input.charCodeAt(e.position);
|
|
1343
1342
|
if (a !== 34) return !1;
|
|
1344
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return
|
|
1343
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return N(e, n, e.position, !0), e.position++, !0;
|
|
1345
1344
|
else if (a === 92) {
|
|
1346
|
-
if (
|
|
1345
|
+
if (N(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), d(a)) L(e, !1, t);
|
|
1347
1346
|
else if (a < 256 && x[a]) e.result += S[a], e.position++;
|
|
1348
1347
|
else if ((i = g(a)) > 0) {
|
|
1349
1348
|
let t = i, n = 0;
|
|
1350
|
-
for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = h(a)) >= 0 ? n = (n << 4) + i :
|
|
1349
|
+
for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = h(a)) >= 0 ? n = (n << 4) + i : T(e, "expected hexadecimal character");
|
|
1351
1350
|
e.result += y(n), e.position++;
|
|
1352
|
-
} else
|
|
1351
|
+
} else T(e, "unknown escape sequence");
|
|
1353
1352
|
n = r = e.position;
|
|
1354
|
-
} else d(a) ? (
|
|
1355
|
-
|
|
1353
|
+
} else d(a) ? (N(e, n, r, !0), z(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && R(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, f(a) || (r = e.position));
|
|
1354
|
+
T(e, "unexpected end of the stream within a double quoted scalar");
|
|
1356
1355
|
}
|
|
1357
|
-
|
|
1356
|
+
E(ie, "readDoubleQuotedScalar");
|
|
1358
1357
|
function ae(e, t) {
|
|
1359
1358
|
let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
1360
1359
|
if (v === 91) l = 93, f = !1, s = [];
|
|
1361
1360
|
else if (v === 123) l = 125, f = !0, s = {};
|
|
1362
1361
|
else return !1;
|
|
1363
1362
|
for (e.anchor !== null && O(e, e.anchor, s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
1364
|
-
if (
|
|
1365
|
-
n ? v === 44 &&
|
|
1363
|
+
if (L(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
1364
|
+
n ? v === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && p(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, L(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, B(e, t, 1, !1, !0), g = e.tag, h = e.result, L(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), L(e, !0, t), B(e, t, 1, !1, !0), _ = e.result), f ? F(e, s, m, g, h, _, r, i, a) : u ? s.push(F(e, null, m, g, h, _, r, i, a)) : s.push(h), L(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1366
1365
|
}
|
|
1367
|
-
|
|
1366
|
+
T(e, "unexpected end of the stream within a flow collection");
|
|
1368
1367
|
}
|
|
1369
|
-
|
|
1368
|
+
E(ae, "readFlowCollection");
|
|
1370
1369
|
function oe(t, n) {
|
|
1371
1370
|
let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, p = t.input.charCodeAt(t.position);
|
|
1372
1371
|
if (p === 124) r = !1;
|
|
1373
1372
|
else if (p === 62) r = !0;
|
|
1374
1373
|
else return !1;
|
|
1375
|
-
for (t.kind = "scalar", t.result = ""; p !== 0;) if (p = t.input.charCodeAt(++t.position), p === 43 || p === 45) i === 1 ? i = p === 43 ? 3 : 2 :
|
|
1376
|
-
else if ((u = _(p)) >= 0) u === 0 ?
|
|
1374
|
+
for (t.kind = "scalar", t.result = ""; p !== 0;) if (p = t.input.charCodeAt(++t.position), p === 43 || p === 45) i === 1 ? i = p === 43 ? 3 : 2 : T(t, "repeat of a chomping mode identifier");
|
|
1375
|
+
else if ((u = _(p)) >= 0) u === 0 ? T(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? T(t, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
|
|
1377
1376
|
else break;
|
|
1378
1377
|
if (f(p)) {
|
|
1379
1378
|
do
|
|
@@ -1384,134 +1383,134 @@ function Cn() {
|
|
|
1384
1383
|
while (!d(p) && p !== 0);
|
|
1385
1384
|
}
|
|
1386
1385
|
for (; p !== 0;) {
|
|
1387
|
-
for (
|
|
1386
|
+
for (I(t), t.lineIndent = 0, p = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && p === 32;) t.lineIndent++, p = t.input.charCodeAt(++t.position);
|
|
1388
1387
|
if (!o && t.lineIndent > s && (s = t.lineIndent), d(p)) {
|
|
1389
1388
|
c++;
|
|
1390
1389
|
continue;
|
|
1391
1390
|
}
|
|
1392
|
-
if (!o && s === 0 &&
|
|
1391
|
+
if (!o && s === 0 && T(t, "missing indentation for block scalar"), t.lineIndent < s) {
|
|
1393
1392
|
i === 3 ? t.result += e.repeat("\n", a ? 1 + c : c) : i === 1 && a && (t.result += "\n");
|
|
1394
1393
|
break;
|
|
1395
1394
|
}
|
|
1396
1395
|
r ? f(p) ? (l = !0, t.result += e.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, t.result += e.repeat("\n", c + 1)) : c === 0 ? a && (t.result += " ") : t.result += e.repeat("\n", c) : t.result += e.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
|
|
1397
1396
|
let n = t.position;
|
|
1398
1397
|
for (; !d(p) && p !== 0;) p = t.input.charCodeAt(++t.position);
|
|
1399
|
-
|
|
1398
|
+
N(t, n, t.position, !1);
|
|
1400
1399
|
}
|
|
1401
1400
|
return !0;
|
|
1402
1401
|
}
|
|
1403
|
-
|
|
1402
|
+
E(oe, "readBlockScalar");
|
|
1404
1403
|
function se(e, t) {
|
|
1405
1404
|
let n = e.tag, r = e.anchor, i = [], a = !1;
|
|
1406
1405
|
if (e.firstTabInLine !== -1) return !1;
|
|
1407
1406
|
e.anchor !== null && O(e, e.anchor, i);
|
|
1408
1407
|
let o = e.input.charCodeAt(e.position);
|
|
1409
|
-
for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1410
|
-
if (a = !0, e.position++,
|
|
1408
|
+
for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), o === 45 && p(e.input.charCodeAt(e.position + 1)));) {
|
|
1409
|
+
if (a = !0, e.position++, L(e, !0, -1) && e.lineIndent <= t) {
|
|
1411
1410
|
i.push(null), o = e.input.charCodeAt(e.position);
|
|
1412
1411
|
continue;
|
|
1413
1412
|
}
|
|
1414
1413
|
let n = e.line;
|
|
1415
|
-
if (B(e, t, 3, !1, !0), i.push(e.result),
|
|
1414
|
+
if (B(e, t, 3, !1, !0), i.push(e.result), L(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) T(e, "bad indentation of a sequence entry");
|
|
1416
1415
|
else if (e.lineIndent < t) break;
|
|
1417
1416
|
}
|
|
1418
1417
|
return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1419
1418
|
}
|
|
1420
|
-
|
|
1419
|
+
E(se, "readBlockSequence");
|
|
1421
1420
|
function ce(e, t, n) {
|
|
1422
1421
|
let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, m = null, h = null, g = !1, _ = !1;
|
|
1423
1422
|
if (e.firstTabInLine !== -1) return !1;
|
|
1424
1423
|
e.anchor !== null && O(e, e.anchor, l);
|
|
1425
1424
|
let v = e.input.charCodeAt(e.position);
|
|
1426
1425
|
for (; v !== 0;) {
|
|
1427
|
-
!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1426
|
+
!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation"));
|
|
1428
1427
|
let y = e.input.charCodeAt(e.position + 1), b = e.line;
|
|
1429
|
-
if ((v === 63 || v === 58) && p(y)) v === 63 ? (g && (
|
|
1428
|
+
if ((v === 63 || v === 58) && p(y)) v === 63 ? (g && (F(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
|
|
1430
1429
|
else {
|
|
1431
1430
|
if (i = e.line, a = e.lineStart, o = e.position, !B(e, n, 2, !1, !0)) break;
|
|
1432
1431
|
if (e.line === b) {
|
|
1433
1432
|
for (v = e.input.charCodeAt(e.position); f(v);) v = e.input.charCodeAt(++e.position);
|
|
1434
|
-
if (v === 58) v = e.input.charCodeAt(++e.position), p(v) ||
|
|
1435
|
-
else if (_)
|
|
1433
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), p(v) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (F(e, l, u, d, m, null, i, a, o), d = m = h = null), _ = !0, g = !1, r = !1, d = e.tag, m = e.result;
|
|
1434
|
+
else if (_) T(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1436
1435
|
else return e.tag = s, e.anchor = c, !0;
|
|
1437
|
-
} else if (_)
|
|
1436
|
+
} else if (_) T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1438
1437
|
else return e.tag = s, e.anchor = c, !0;
|
|
1439
1438
|
}
|
|
1440
|
-
if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? m = e.result : h = e.result), g || (
|
|
1439
|
+
if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? m = e.result : h = e.result), g || (F(e, l, u, d, m, h, i, a, o), d = m = h = null), L(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) T(e, "bad indentation of a mapping entry");
|
|
1441
1440
|
else if (e.lineIndent < t) break;
|
|
1442
1441
|
}
|
|
1443
|
-
return g &&
|
|
1442
|
+
return g && F(e, l, u, d, m, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
|
|
1444
1443
|
}
|
|
1445
|
-
|
|
1444
|
+
E(ce, "readBlockMapping");
|
|
1446
1445
|
function le(e) {
|
|
1447
1446
|
let t = !1, n = !1, r, a, o = e.input.charCodeAt(e.position);
|
|
1448
1447
|
if (o !== 33) return !1;
|
|
1449
|
-
e.tag !== null &&
|
|
1448
|
+
e.tag !== null && T(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
|
|
1450
1449
|
let u = e.position;
|
|
1451
1450
|
if (t) {
|
|
1452
1451
|
do
|
|
1453
1452
|
o = e.input.charCodeAt(++e.position);
|
|
1454
1453
|
while (o !== 0 && o !== 62);
|
|
1455
|
-
e.position < e.length ? (a = e.input.slice(u, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
1454
|
+
e.position < e.length ? (a = e.input.slice(u, e.position), o = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
|
|
1456
1455
|
} else {
|
|
1457
|
-
for (; o !== 0 && !p(o);) o === 33 && (n ?
|
|
1458
|
-
a = e.input.slice(u, e.position), s.test(a) &&
|
|
1456
|
+
for (; o !== 0 && !p(o);) o === 33 && (n ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(u - 1, e.position + 1), c.test(r) || T(e, "named tag handle cannot contain such characters"), n = !0, u = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1457
|
+
a = e.input.slice(u, e.position), s.test(a) && T(e, "tag suffix cannot contain flow indicator characters");
|
|
1459
1458
|
}
|
|
1460
|
-
a && !l.test(a) &&
|
|
1459
|
+
a && !l.test(a) && T(e, "tag name cannot contain such characters: " + a);
|
|
1461
1460
|
try {
|
|
1462
1461
|
a = decodeURIComponent(a);
|
|
1463
1462
|
} catch {
|
|
1464
|
-
|
|
1463
|
+
T(e, "tag name is malformed: " + a);
|
|
1465
1464
|
}
|
|
1466
|
-
return t ? e.tag = a : i.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a :
|
|
1465
|
+
return t ? e.tag = a : i.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a : T(e, "undeclared tag handle \"" + r + "\""), !0;
|
|
1467
1466
|
}
|
|
1468
|
-
|
|
1467
|
+
E(le, "readTagProperty");
|
|
1469
1468
|
function ue(e) {
|
|
1470
1469
|
let t = e.input.charCodeAt(e.position);
|
|
1471
1470
|
if (t !== 38) return !1;
|
|
1472
|
-
e.anchor !== null &&
|
|
1471
|
+
e.anchor !== null && T(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
|
|
1473
1472
|
let n = e.position;
|
|
1474
1473
|
for (; t !== 0 && !p(t) && !m(t);) t = e.input.charCodeAt(++e.position);
|
|
1475
|
-
return e.position === n &&
|
|
1474
|
+
return e.position === n && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1476
1475
|
}
|
|
1477
|
-
|
|
1476
|
+
E(ue, "readAnchorProperty");
|
|
1478
1477
|
function de(e) {
|
|
1479
1478
|
let t = e.input.charCodeAt(e.position);
|
|
1480
1479
|
if (t !== 42) return !1;
|
|
1481
1480
|
t = e.input.charCodeAt(++e.position);
|
|
1482
1481
|
let n = e.position;
|
|
1483
1482
|
for (; t !== 0 && !p(t) && !m(t);) t = e.input.charCodeAt(++e.position);
|
|
1484
|
-
e.position === n &&
|
|
1483
|
+
e.position === n && T(e, "name of an alias node must contain at least one character");
|
|
1485
1484
|
let r = e.input.slice(n, e.position);
|
|
1486
|
-
return i.call(e.anchorMap, r) ||
|
|
1485
|
+
return i.call(e.anchorMap, r) || T(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], L(e, !0, -1), !0;
|
|
1487
1486
|
}
|
|
1488
|
-
|
|
1487
|
+
E(de, "readAlias");
|
|
1489
1488
|
function fe(e, t, n, r) {
|
|
1490
|
-
let i =
|
|
1491
|
-
return k(e),
|
|
1489
|
+
let i = j(e);
|
|
1490
|
+
return k(e), te(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ce(e, n, r) && e.kind === "mapping" ? (ee(e), !0) : (A(e), te(e, i), !1);
|
|
1492
1491
|
}
|
|
1493
|
-
|
|
1492
|
+
E(fe, "tryReadBlockMappingFromProperty");
|
|
1494
1493
|
function B(e, t, n, r, a) {
|
|
1495
1494
|
let o, s, c = 1, l = !1, u = !1, d = null, f, p, m;
|
|
1496
|
-
e.depth >= e.maxDepth &&
|
|
1495
|
+
e.depth >= e.maxDepth && T(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
|
|
1497
1496
|
let h = o = s = n === 4 || n === 3;
|
|
1498
|
-
if (r &&
|
|
1499
|
-
let n = e.input.charCodeAt(e.position), r =
|
|
1497
|
+
if (r && L(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
|
|
1498
|
+
let n = e.input.charCodeAt(e.position), r = j(e);
|
|
1500
1499
|
if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !le(e) && !ue(e)) break;
|
|
1501
|
-
d === null && (d = r),
|
|
1500
|
+
d === null && (d = r), L(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
1502
1501
|
}
|
|
1503
1502
|
if (s &&= l || a, c === 1 || n === 4) {
|
|
1504
1503
|
if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
|
|
1505
1504
|
if (s && (se(e, m) || ce(e, m, p)) || ae(e, p)) u = !0;
|
|
1506
1505
|
else {
|
|
1507
1506
|
let t = e.input.charCodeAt(e.position);
|
|
1508
|
-
d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) &&
|
|
1507
|
+
d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : ne(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
|
|
1509
1508
|
}
|
|
1510
1509
|
} else c === 0 && (u = s && se(e, m));
|
|
1511
1510
|
}
|
|
1512
1511
|
if (e.tag === null) e.anchor !== null && O(e, e.anchor, e.result);
|
|
1513
1512
|
else if (e.tag === "?") {
|
|
1514
|
-
e.result !== null && e.kind !== "scalar" &&
|
|
1513
|
+
e.result !== null && e.kind !== "scalar" && T(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
|
|
1515
1514
|
for (let t = 0, n = e.implicitTypes.length; t < n; t += 1) if (f = e.implicitTypes[t], f.resolve(e.result)) {
|
|
1516
1515
|
e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && O(e, e.anchor, e.result);
|
|
1517
1516
|
break;
|
|
@@ -1526,19 +1525,19 @@ function Cn() {
|
|
|
1526
1525
|
break;
|
|
1527
1526
|
}
|
|
1528
1527
|
}
|
|
1529
|
-
f ||
|
|
1528
|
+
f || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && O(e, e.anchor, e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1530
1529
|
}
|
|
1531
1530
|
return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
|
|
1532
1531
|
}
|
|
1533
|
-
|
|
1532
|
+
E(B, "composeNode");
|
|
1534
1533
|
function pe(e) {
|
|
1535
1534
|
let t = e.position, n = !1, r;
|
|
1536
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1535
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (L(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
|
|
1537
1536
|
n = !0, r = e.input.charCodeAt(++e.position);
|
|
1538
1537
|
let t = e.position;
|
|
1539
1538
|
for (; r !== 0 && !p(r);) r = e.input.charCodeAt(++e.position);
|
|
1540
1539
|
let a = e.input.slice(t, e.position), o = [];
|
|
1541
|
-
for (a.length < 1 &&
|
|
1540
|
+
for (a.length < 1 && T(e, "directive name must not be less than one character in length"); r !== 0;) {
|
|
1542
1541
|
for (; f(r);) r = e.input.charCodeAt(++e.position);
|
|
1543
1542
|
if (r === 35) {
|
|
1544
1543
|
do
|
|
@@ -1550,30 +1549,26 @@ function Cn() {
|
|
|
1550
1549
|
for (t = e.position; r !== 0 && !p(r);) r = e.input.charCodeAt(++e.position);
|
|
1551
1550
|
o.push(e.input.slice(t, e.position));
|
|
1552
1551
|
}
|
|
1553
|
-
r !== 0 &&
|
|
1552
|
+
r !== 0 && I(e), i.call(M, a) ? M[a](e, a, o) : D(e, "unknown document directive \"" + a + "\"");
|
|
1554
1553
|
}
|
|
1555
|
-
|
|
1556
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3, R(e, !0, -1));
|
|
1557
|
-
return;
|
|
1558
|
-
}
|
|
1559
|
-
e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
|
|
1554
|
+
L(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, L(e, !0, -1)) : n && T(e, "directives end mark is expected"), B(e, e.lineIndent - 1, 4, !1, !0), L(e, !0, -1), e.checkLineBreaks && o.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && R(e) ? e.input.charCodeAt(e.position) === 46 && (e.position += 3, L(e, !0, -1)) : e.position < e.length - 1 && T(e, "end of the stream or a document separator is expected");
|
|
1560
1555
|
}
|
|
1561
|
-
|
|
1556
|
+
E(pe, "readDocument");
|
|
1562
1557
|
function me(e, t) {
|
|
1563
1558
|
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1564
1559
|
let n = new C(e, t), r = e.indexOf("\0");
|
|
1565
|
-
for (r !== -1 && (n.position = r,
|
|
1560
|
+
for (r !== -1 && (n.position = r, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
1566
1561
|
for (; n.position < n.length - 1;) pe(n);
|
|
1567
1562
|
return n.documents;
|
|
1568
1563
|
}
|
|
1569
|
-
|
|
1564
|
+
E(me, "loadDocuments");
|
|
1570
1565
|
function he(e, t, n) {
|
|
1571
1566
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
1572
1567
|
let r = me(e, n);
|
|
1573
1568
|
if (typeof t != "function") return r;
|
|
1574
1569
|
for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
|
|
1575
1570
|
}
|
|
1576
|
-
|
|
1571
|
+
E(he, "loadAll2");
|
|
1577
1572
|
function ge(e, n) {
|
|
1578
1573
|
let r = me(e, n);
|
|
1579
1574
|
if (r.length !== 0) {
|
|
@@ -1581,14 +1576,14 @@ function Cn() {
|
|
|
1581
1576
|
throw new t("expected a single document in the stream, but found more");
|
|
1582
1577
|
}
|
|
1583
1578
|
}
|
|
1584
|
-
return
|
|
1579
|
+
return E(ge, "load2"), ft.loadAll = he, ft.load = ge, ft;
|
|
1585
1580
|
}
|
|
1586
|
-
|
|
1587
|
-
var
|
|
1588
|
-
function
|
|
1589
|
-
if (
|
|
1590
|
-
|
|
1591
|
-
let e = G(), t =
|
|
1581
|
+
E(wn, "requireLoader");
|
|
1582
|
+
var Tn = {}, En;
|
|
1583
|
+
function Dn() {
|
|
1584
|
+
if (En) return Tn;
|
|
1585
|
+
En = 1;
|
|
1586
|
+
let e = G(), t = gt(), n = Sn(), r = Object.prototype.toString, i = Object.prototype.hasOwnProperty, a = 65279, o = {};
|
|
1592
1587
|
o[0] = "\\0", o[7] = "\\a", o[8] = "\\b", o[9] = "\\t", o[10] = "\\n", o[11] = "\\v", o[12] = "\\f", o[13] = "\\r", o[27] = "\\e", o[34] = "\\\"", o[92] = "\\\\", o[133] = "\\N", o[160] = "\\_", o[8232] = "\\L", o[8233] = "\\P";
|
|
1593
1588
|
let s = [
|
|
1594
1589
|
"y",
|
|
@@ -1619,7 +1614,7 @@ function En() {
|
|
|
1619
1614
|
}
|
|
1620
1615
|
return n;
|
|
1621
1616
|
}
|
|
1622
|
-
|
|
1617
|
+
E(l, "compileStyleMap");
|
|
1623
1618
|
function u(n) {
|
|
1624
1619
|
let r, i, a = n.toString(16).toUpperCase();
|
|
1625
1620
|
if (n <= 255) r = "x", i = 2;
|
|
@@ -1628,11 +1623,11 @@ function En() {
|
|
|
1628
1623
|
else throw new t("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1629
1624
|
return "\\" + r + e.repeat("0", i - a.length) + a;
|
|
1630
1625
|
}
|
|
1631
|
-
|
|
1626
|
+
E(u, "encodeHex");
|
|
1632
1627
|
function d(t) {
|
|
1633
1628
|
this.schema = t.schema || n, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = e.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = l(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === "\"" ? 2 : 1, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1634
1629
|
}
|
|
1635
|
-
|
|
1630
|
+
E(d, "State");
|
|
1636
1631
|
function f(t, n) {
|
|
1637
1632
|
let r = e.repeat(" ", n), i = 0, a = "", o = t.length;
|
|
1638
1633
|
for (; i < o;) {
|
|
@@ -1641,50 +1636,50 @@ function En() {
|
|
|
1641
1636
|
}
|
|
1642
1637
|
return a;
|
|
1643
1638
|
}
|
|
1644
|
-
|
|
1639
|
+
E(f, "indentString");
|
|
1645
1640
|
function p(t, n) {
|
|
1646
1641
|
return "\n" + e.repeat(" ", t.indent * n);
|
|
1647
1642
|
}
|
|
1648
|
-
|
|
1643
|
+
E(p, "generateNextLine");
|
|
1649
1644
|
function m(e, t) {
|
|
1650
1645
|
for (let n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
|
|
1651
1646
|
return !1;
|
|
1652
1647
|
}
|
|
1653
|
-
|
|
1648
|
+
E(m, "testImplicitResolving");
|
|
1654
1649
|
function h(e) {
|
|
1655
1650
|
return e === 32 || e === 9;
|
|
1656
1651
|
}
|
|
1657
|
-
|
|
1652
|
+
E(h, "isWhitespace");
|
|
1658
1653
|
function g(e) {
|
|
1659
1654
|
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== a || e >= 65536 && e <= 1114111;
|
|
1660
1655
|
}
|
|
1661
|
-
|
|
1656
|
+
E(g, "isPrintable");
|
|
1662
1657
|
function _(e) {
|
|
1663
1658
|
return g(e) && e !== a && e !== 13 && e !== 10;
|
|
1664
1659
|
}
|
|
1665
|
-
|
|
1660
|
+
E(_, "isNsCharOrWhitespace");
|
|
1666
1661
|
function v(e, t, n) {
|
|
1667
1662
|
let r = _(e), i = r && !h(e);
|
|
1668
1663
|
return (n ? r : r && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125) && e !== 35 && !(t === 58 && !i) || _(t) && !h(t) && e === 35 || t === 58 && i;
|
|
1669
1664
|
}
|
|
1670
|
-
|
|
1665
|
+
E(v, "isPlainSafe");
|
|
1671
1666
|
function y(e) {
|
|
1672
1667
|
return g(e) && e !== a && !h(e) && e !== 45 && e !== 63 && e !== 58 && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125 && e !== 35 && e !== 38 && e !== 42 && e !== 33 && e !== 124 && e !== 61 && e !== 62 && e !== 39 && e !== 34 && e !== 37 && e !== 64 && e !== 96;
|
|
1673
1668
|
}
|
|
1674
|
-
|
|
1669
|
+
E(y, "isPlainSafeFirst");
|
|
1675
1670
|
function b(e) {
|
|
1676
1671
|
return !h(e) && e !== 58;
|
|
1677
1672
|
}
|
|
1678
|
-
|
|
1673
|
+
E(b, "isPlainSafeLast");
|
|
1679
1674
|
function x(e, t) {
|
|
1680
1675
|
let n = e.charCodeAt(t), r;
|
|
1681
1676
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
1682
1677
|
}
|
|
1683
|
-
|
|
1678
|
+
E(x, "codePointAt");
|
|
1684
1679
|
function S(e) {
|
|
1685
1680
|
return /^\n* /.test(e);
|
|
1686
1681
|
}
|
|
1687
|
-
|
|
1682
|
+
E(S, "needIndentIndicator");
|
|
1688
1683
|
function C(e, t, n, r, i, a, o, s) {
|
|
1689
1684
|
let c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = y(x(e, 0)) && b(x(e, e.length - 1));
|
|
1690
1685
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
@@ -1701,7 +1696,7 @@ function En() {
|
|
|
1701
1696
|
}
|
|
1702
1697
|
return !d && !f ? h && !o && !i(e) ? 1 : a === 2 ? 5 : 2 : n > 9 && S(e) ? 5 : o ? a === 2 ? 5 : 2 : f ? 4 : 3;
|
|
1703
1698
|
}
|
|
1704
|
-
|
|
1699
|
+
E(C, "chooseScalarStyle");
|
|
1705
1700
|
function w(e, n, r, i, a) {
|
|
1706
1701
|
e.dump = (function() {
|
|
1707
1702
|
if (n.length === 0) return e.quotingType === 2 ? "\"\"" : "''";
|
|
@@ -1710,26 +1705,26 @@ function En() {
|
|
|
1710
1705
|
function d(t) {
|
|
1711
1706
|
return m(e, t);
|
|
1712
1707
|
}
|
|
1713
|
-
switch (
|
|
1708
|
+
switch (E(d, "testAmbiguity"), C(n, u, e.indent, l, d, e.quotingType, e.forceQuotes && !i, a)) {
|
|
1714
1709
|
case 1: return n;
|
|
1715
1710
|
case 2: return "'" + n.replace(/'/g, "''") + "'";
|
|
1716
|
-
case 3: return "|" +
|
|
1717
|
-
case 4: return ">" +
|
|
1718
|
-
case 5: return "\"" +
|
|
1711
|
+
case 3: return "|" + T(n, e.indent) + D(f(n, o));
|
|
1712
|
+
case 4: return ">" + T(n, e.indent) + D(f(O(n, l), o));
|
|
1713
|
+
case 5: return "\"" + ee(n) + "\"";
|
|
1719
1714
|
default: throw new t("impossible error: invalid scalar style");
|
|
1720
1715
|
}
|
|
1721
1716
|
})();
|
|
1722
1717
|
}
|
|
1723
|
-
|
|
1724
|
-
function
|
|
1718
|
+
E(w, "writeScalar");
|
|
1719
|
+
function T(e, t) {
|
|
1725
1720
|
let n = S(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
1726
1721
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
1727
1722
|
}
|
|
1728
|
-
T
|
|
1723
|
+
E(T, "blockHeader");
|
|
1729
1724
|
function D(e) {
|
|
1730
1725
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1731
1726
|
}
|
|
1732
|
-
|
|
1727
|
+
E(D, "dropEndingNewline");
|
|
1733
1728
|
function O(e, t) {
|
|
1734
1729
|
let n = /(\n+)([^\n]*)/g, r = (function() {
|
|
1735
1730
|
let r = e.indexOf("\n");
|
|
@@ -1741,15 +1736,15 @@ function En() {
|
|
|
1741
1736
|
}
|
|
1742
1737
|
return r;
|
|
1743
1738
|
}
|
|
1744
|
-
|
|
1739
|
+
E(O, "foldString");
|
|
1745
1740
|
function k(e, t) {
|
|
1746
1741
|
if (e === "" || e[0] === " ") return e;
|
|
1747
1742
|
let n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1748
1743
|
for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
1749
1744
|
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
1750
1745
|
}
|
|
1751
|
-
|
|
1752
|
-
function
|
|
1746
|
+
E(k, "foldLine");
|
|
1747
|
+
function ee(e) {
|
|
1753
1748
|
let t = "", n = 0;
|
|
1754
1749
|
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
1755
1750
|
n = x(e, r);
|
|
@@ -1758,37 +1753,37 @@ function En() {
|
|
|
1758
1753
|
}
|
|
1759
1754
|
return t;
|
|
1760
1755
|
}
|
|
1761
|
-
|
|
1762
|
-
function
|
|
1756
|
+
E(ee, "escapeString");
|
|
1757
|
+
function A(e, t, n) {
|
|
1763
1758
|
let r = "", i = e.tag;
|
|
1764
1759
|
for (let i = 0, a = n.length; i < a; i += 1) {
|
|
1765
1760
|
let a = n[i];
|
|
1766
|
-
e.replacer && (a = e.replacer.call(n, String(i), a)), (
|
|
1761
|
+
e.replacer && (a = e.replacer.call(n, String(i), a)), (P(e, t, a, !1, !1) || a === void 0 && P(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
1767
1762
|
}
|
|
1768
1763
|
e.tag = i, e.dump = "[" + r + "]";
|
|
1769
1764
|
}
|
|
1770
|
-
|
|
1771
|
-
function
|
|
1765
|
+
E(A, "writeFlowSequence");
|
|
1766
|
+
function j(e, t, n, r) {
|
|
1772
1767
|
let i = "", a = e.tag;
|
|
1773
1768
|
for (let a = 0, o = n.length; a < o; a += 1) {
|
|
1774
1769
|
let o = n[a];
|
|
1775
|
-
e.replacer && (o = e.replacer.call(n, String(a), o)), (
|
|
1770
|
+
e.replacer && (o = e.replacer.call(n, String(a), o)), (P(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && P(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += p(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
|
|
1776
1771
|
}
|
|
1777
1772
|
e.tag = a, e.dump = i || "[]";
|
|
1778
1773
|
}
|
|
1779
|
-
|
|
1780
|
-
function
|
|
1774
|
+
E(j, "writeBlockSequence");
|
|
1775
|
+
function te(e, t, n) {
|
|
1781
1776
|
let r = "", i = e.tag, a = Object.keys(n);
|
|
1782
1777
|
for (let i = 0, o = a.length; i < o; i += 1) {
|
|
1783
1778
|
let o = "";
|
|
1784
1779
|
r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
|
|
1785
1780
|
let s = a[i], c = n[s];
|
|
1786
|
-
e.replacer && (c = e.replacer.call(n, s, c)),
|
|
1781
|
+
e.replacer && (c = e.replacer.call(n, s, c)), P(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), P(e, t, c, !1, !1) && (o += e.dump, r += o));
|
|
1787
1782
|
}
|
|
1788
1783
|
e.tag = i, e.dump = "{" + r + "}";
|
|
1789
1784
|
}
|
|
1790
|
-
|
|
1791
|
-
function
|
|
1785
|
+
E(te, "writeFlowMapping");
|
|
1786
|
+
function M(e, n, r, i) {
|
|
1792
1787
|
let a = "", o = e.tag, s = Object.keys(r);
|
|
1793
1788
|
if (e.sortKeys === !0) s.sort();
|
|
1794
1789
|
else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
|
|
@@ -1797,14 +1792,14 @@ function En() {
|
|
|
1797
1792
|
let o = "";
|
|
1798
1793
|
(!i || a !== "") && (o += p(e, n));
|
|
1799
1794
|
let c = s[t], l = r[c];
|
|
1800
|
-
if (e.replacer && (l = e.replacer.call(r, c, l)), !
|
|
1795
|
+
if (e.replacer && (l = e.replacer.call(r, c, l)), !P(e, n + 1, c, !0, !0, !0)) continue;
|
|
1801
1796
|
let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
|
|
1802
|
-
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += p(e, n)),
|
|
1797
|
+
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += p(e, n)), P(e, n + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
|
|
1803
1798
|
}
|
|
1804
1799
|
e.tag = o, e.dump = a || "{}";
|
|
1805
1800
|
}
|
|
1806
|
-
|
|
1807
|
-
function
|
|
1801
|
+
E(M, "writeBlockMapping");
|
|
1802
|
+
function N(e, n, a) {
|
|
1808
1803
|
let o = a ? e.explicitTypes : e.implicitTypes;
|
|
1809
1804
|
for (let s = 0, c = o.length; s < c; s += 1) {
|
|
1810
1805
|
let c = o[s];
|
|
@@ -1821,16 +1816,16 @@ function En() {
|
|
|
1821
1816
|
}
|
|
1822
1817
|
return !1;
|
|
1823
1818
|
}
|
|
1824
|
-
|
|
1825
|
-
function
|
|
1826
|
-
e.tag = null, e.dump = i,
|
|
1819
|
+
E(N, "detectType");
|
|
1820
|
+
function P(e, n, i, a, o, s, c) {
|
|
1821
|
+
e.tag = null, e.dump = i, N(e, i, !1) || N(e, i, !0);
|
|
1827
1822
|
let l = r.call(e.dump), u = a;
|
|
1828
1823
|
a &&= e.flowLevel < 0 || e.flowLevel > n;
|
|
1829
1824
|
let d = l === "[object Object]" || l === "[object Array]", f, p;
|
|
1830
1825
|
if (d && (f = e.duplicates.indexOf(i), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
|
|
1831
1826
|
else {
|
|
1832
|
-
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (
|
|
1833
|
-
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && n > 0 ?
|
|
1827
|
+
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (M(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (te(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1828
|
+
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && n > 0 ? j(e, n - 1, e.dump, o) : j(e, n, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (A(e, n, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1834
1829
|
else if (l === "[object String]") e.tag !== "?" && w(e, e.dump, n, s, u);
|
|
1835
1830
|
else if (l === "[object Undefined]") return !1;
|
|
1836
1831
|
else {
|
|
@@ -1844,137 +1839,137 @@ function En() {
|
|
|
1844
1839
|
}
|
|
1845
1840
|
return !0;
|
|
1846
1841
|
}
|
|
1847
|
-
|
|
1848
|
-
function
|
|
1842
|
+
E(P, "writeNode");
|
|
1843
|
+
function F(e, t) {
|
|
1849
1844
|
let n = [], r = [];
|
|
1850
|
-
|
|
1845
|
+
I(e, n, r);
|
|
1851
1846
|
let i = r.length;
|
|
1852
1847
|
for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
|
|
1853
1848
|
t.usedDuplicates = Array(i);
|
|
1854
1849
|
}
|
|
1855
|
-
|
|
1856
|
-
function
|
|
1850
|
+
E(F, "getDuplicateReferences");
|
|
1851
|
+
function I(e, t, n) {
|
|
1857
1852
|
if (typeof e == "object" && e) {
|
|
1858
1853
|
let r = t.indexOf(e);
|
|
1859
1854
|
if (r !== -1) n.indexOf(r) === -1 && n.push(r);
|
|
1860
|
-
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1)
|
|
1855
|
+
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) I(e[r], t, n);
|
|
1861
1856
|
else {
|
|
1862
1857
|
let r = Object.keys(e);
|
|
1863
|
-
for (let i = 0, a = r.length; i < a; i += 1)
|
|
1858
|
+
for (let i = 0, a = r.length; i < a; i += 1) I(e[r[i]], t, n);
|
|
1864
1859
|
}
|
|
1865
1860
|
}
|
|
1866
1861
|
}
|
|
1867
|
-
|
|
1868
|
-
function
|
|
1862
|
+
E(I, "inspectNode");
|
|
1863
|
+
function L(e, t) {
|
|
1869
1864
|
t ||= {};
|
|
1870
1865
|
let n = new d(t);
|
|
1871
|
-
n.noRefs ||
|
|
1866
|
+
n.noRefs || F(e, n);
|
|
1872
1867
|
let r = e;
|
|
1873
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
1868
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), P(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
1874
1869
|
}
|
|
1875
|
-
return
|
|
1870
|
+
return E(L, "dump2"), Tn.dump = L, Tn;
|
|
1876
1871
|
}
|
|
1877
|
-
|
|
1878
|
-
var
|
|
1879
|
-
function
|
|
1880
|
-
if (
|
|
1881
|
-
|
|
1882
|
-
let e =
|
|
1872
|
+
E(Dn, "requireDumper");
|
|
1873
|
+
var On;
|
|
1874
|
+
function kn() {
|
|
1875
|
+
if (On) return U;
|
|
1876
|
+
On = 1;
|
|
1877
|
+
let e = wn(), t = Dn();
|
|
1883
1878
|
function n(e, t) {
|
|
1884
1879
|
return function() {
|
|
1885
1880
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1886
1881
|
};
|
|
1887
1882
|
}
|
|
1888
|
-
return
|
|
1889
|
-
binary:
|
|
1890
|
-
float:
|
|
1891
|
-
map:
|
|
1892
|
-
null:
|
|
1893
|
-
pairs:
|
|
1894
|
-
set:
|
|
1895
|
-
timestamp:
|
|
1896
|
-
bool:
|
|
1897
|
-
int:
|
|
1898
|
-
merge:
|
|
1899
|
-
omap:
|
|
1900
|
-
seq:
|
|
1901
|
-
str:
|
|
1883
|
+
return E(n, "renamed"), U.Type = K(), U.Schema = wt(), U.FAILSAFE_SCHEMA = It(), U.JSON_SCHEMA = Zt(), U.CORE_SCHEMA = en(), U.DEFAULT_SCHEMA = Sn(), U.load = e.load, U.loadAll = e.loadAll, U.dump = t.dump, U.YAMLException = gt(), U.types = {
|
|
1884
|
+
binary: un(),
|
|
1885
|
+
float: Jt(),
|
|
1886
|
+
map: Nt(),
|
|
1887
|
+
null: zt(),
|
|
1888
|
+
pairs: gn(),
|
|
1889
|
+
set: yn(),
|
|
1890
|
+
timestamp: rn(),
|
|
1891
|
+
bool: Ht(),
|
|
1892
|
+
int: Gt(),
|
|
1893
|
+
merge: sn(),
|
|
1894
|
+
omap: pn(),
|
|
1895
|
+
seq: At(),
|
|
1896
|
+
str: Dt()
|
|
1902
1897
|
}, U.safeLoad = n("safeLoad", "load"), U.safeLoadAll = n("safeLoadAll", "loadAll"), U.safeDump = n("safeDump", "dump"), U;
|
|
1903
1898
|
}
|
|
1904
|
-
|
|
1905
|
-
var { Type:
|
|
1906
|
-
common:
|
|
1899
|
+
E(kn, "requireJsYaml");
|
|
1900
|
+
var { Type: An, Schema: jn, FAILSAFE_SCHEMA: Mn, JSON_SCHEMA: Nn, CORE_SCHEMA: Pn, DEFAULT_SCHEMA: Fn, load: In, loadAll: Ln, dump: Rn, YAMLException: zn, types: Bn, safeLoad: Vn, safeLoadAll: Hn, safeDump: Un } = /* @__PURE__ */ dt(kn()), Wn = {
|
|
1901
|
+
common: ue,
|
|
1907
1902
|
getConfig: z,
|
|
1908
|
-
insertCluster:
|
|
1909
|
-
insertEdge:
|
|
1910
|
-
insertEdgeLabel:
|
|
1911
|
-
insertMarkers:
|
|
1912
|
-
insertNode:
|
|
1913
|
-
interpolateToCurve:
|
|
1914
|
-
labelHelper:
|
|
1915
|
-
log:
|
|
1916
|
-
positionEdgeLabel:
|
|
1917
|
-
},
|
|
1918
|
-
for (let t of e)
|
|
1903
|
+
insertCluster: be,
|
|
1904
|
+
insertEdge: we,
|
|
1905
|
+
insertEdgeLabel: Se,
|
|
1906
|
+
insertMarkers: Oe,
|
|
1907
|
+
insertNode: ve,
|
|
1908
|
+
interpolateToCurve: m,
|
|
1909
|
+
labelHelper: he,
|
|
1910
|
+
log: C,
|
|
1911
|
+
positionEdgeLabel: Ce
|
|
1912
|
+
}, Gn = {}, Kn = /* @__PURE__ */ E((e) => {
|
|
1913
|
+
for (let t of e) Gn[t.name] = t;
|
|
1919
1914
|
}, "registerLayoutLoaders");
|
|
1920
|
-
(/* @__PURE__ */
|
|
1921
|
-
|
|
1915
|
+
(/* @__PURE__ */ E(() => {
|
|
1916
|
+
Kn([
|
|
1922
1917
|
{
|
|
1923
1918
|
name: "dagre",
|
|
1924
|
-
loader: /* @__PURE__ */
|
|
1919
|
+
loader: /* @__PURE__ */ E(async () => await import("./dagre-GXQ25YYZ-De0sSZO7.js"), "loader")
|
|
1925
1920
|
},
|
|
1926
1921
|
{
|
|
1927
1922
|
name: "swimlane",
|
|
1928
|
-
loader: /* @__PURE__ */
|
|
1923
|
+
loader: /* @__PURE__ */ E(async () => await import("./swimlanes-42K2YHIH-Bd4Bzh9r.js"), "loader")
|
|
1929
1924
|
},
|
|
1930
1925
|
{
|
|
1931
1926
|
name: "cose-bilkent",
|
|
1932
|
-
loader: /* @__PURE__ */
|
|
1927
|
+
loader: /* @__PURE__ */ E(async () => await import("./cose-bilkent-JH36ORCC-B_Oz4vMP.js"), "loader")
|
|
1933
1928
|
}
|
|
1934
1929
|
]);
|
|
1935
1930
|
}, "registerDefaultLayoutLoaders"))();
|
|
1936
|
-
var
|
|
1937
|
-
if (!(e.layoutAlgorithm in
|
|
1931
|
+
var qn = /* @__PURE__ */ E(async (e, t) => {
|
|
1932
|
+
if (!(e.layoutAlgorithm in Gn)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
1938
1933
|
if (e.diagramId) for (let t of e.nodes) {
|
|
1939
1934
|
let n = t.domId || t.id;
|
|
1940
1935
|
t.domId = `${e.diagramId}-${n}`;
|
|
1941
1936
|
}
|
|
1942
|
-
let n =
|
|
1937
|
+
let n = Gn[e.layoutAlgorithm], r = await n.loader(), { theme: i, themeVariables: a } = e.config, { useGradient: o, gradientStart: s, gradientStop: c } = a, l = t.attr("id");
|
|
1943
1938
|
if (t.append("defs").append("filter").attr("id", `${l}-drop-shadow`).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), t.append("defs").append("filter").attr("id", `${l}-drop-shadow-small`).attr("height", "150%").attr("width", "150%").append("feDropShadow").attr("dx", "2").attr("dy", "2").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), o) {
|
|
1944
1939
|
let e = t.append("linearGradient").attr("id", t.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
1945
1940
|
e.append("svg:stop").attr("offset", "0%").attr("stop-color", s).attr("stop-opacity", 1), e.append("svg:stop").attr("offset", "100%").attr("stop-color", c).attr("stop-opacity", 1);
|
|
1946
1941
|
}
|
|
1947
|
-
return r.render(e, t,
|
|
1948
|
-
}, "render"),
|
|
1949
|
-
if (e in
|
|
1950
|
-
if (t in
|
|
1942
|
+
return r.render(e, t, Wn, { algorithm: n.algorithm });
|
|
1943
|
+
}, "render"), Jn = /* @__PURE__ */ E((e = "", { fallback: t = "dagre" } = {}) => {
|
|
1944
|
+
if (e in Gn) return e;
|
|
1945
|
+
if (t in Gn) return C.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
|
|
1951
1946
|
throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
|
|
1952
|
-
}, "getRegisteredLayoutAlgorithm"),
|
|
1953
|
-
function
|
|
1947
|
+
}, "getRegisteredLayoutAlgorithm"), Yn = "comm", Xn = "rule", Zn = "decl", Qn = "@import", $n = "@namespace", er = "@keyframes", tr = "@layer", nr = Math.abs, rr = String.fromCharCode;
|
|
1948
|
+
function ir(e) {
|
|
1954
1949
|
return e.trim();
|
|
1955
1950
|
}
|
|
1956
|
-
function
|
|
1951
|
+
function ar(e, t, n) {
|
|
1957
1952
|
return e.replace(t, n);
|
|
1958
1953
|
}
|
|
1959
|
-
function
|
|
1954
|
+
function or(e, t) {
|
|
1960
1955
|
return e.charCodeAt(t) | 0;
|
|
1961
1956
|
}
|
|
1962
|
-
function
|
|
1957
|
+
function sr(e, t, n) {
|
|
1963
1958
|
return e.slice(t, n);
|
|
1964
1959
|
}
|
|
1965
1960
|
function q(e) {
|
|
1966
1961
|
return e.length;
|
|
1967
1962
|
}
|
|
1968
|
-
function
|
|
1963
|
+
function cr(e) {
|
|
1969
1964
|
return e.length;
|
|
1970
1965
|
}
|
|
1971
|
-
function
|
|
1966
|
+
function lr(e, t) {
|
|
1972
1967
|
return t.push(e), e;
|
|
1973
1968
|
}
|
|
1974
1969
|
//#endregion
|
|
1975
1970
|
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Tokenizer.js
|
|
1976
|
-
var
|
|
1977
|
-
function
|
|
1971
|
+
var ur = 1, dr = 1, fr = 0, J = 0, Y = 0, pr = "";
|
|
1972
|
+
function mr(e, t, n, r, i, a, o, s) {
|
|
1978
1973
|
return {
|
|
1979
1974
|
value: e,
|
|
1980
1975
|
root: t,
|
|
@@ -1982,32 +1977,32 @@ function pr(e, t, n, r, i, a, o, s) {
|
|
|
1982
1977
|
type: r,
|
|
1983
1978
|
props: i,
|
|
1984
1979
|
children: a,
|
|
1985
|
-
line:
|
|
1986
|
-
column:
|
|
1980
|
+
line: ur,
|
|
1981
|
+
column: dr,
|
|
1987
1982
|
length: o,
|
|
1988
1983
|
return: "",
|
|
1989
1984
|
siblings: s
|
|
1990
1985
|
};
|
|
1991
1986
|
}
|
|
1992
|
-
function
|
|
1987
|
+
function hr() {
|
|
1993
1988
|
return Y;
|
|
1994
1989
|
}
|
|
1995
|
-
function
|
|
1996
|
-
return Y = J > 0 ?
|
|
1990
|
+
function gr() {
|
|
1991
|
+
return Y = J > 0 ? or(pr, --J) : 0, dr--, Y === 10 && (dr = 1, ur--), Y;
|
|
1997
1992
|
}
|
|
1998
1993
|
function X() {
|
|
1999
|
-
return Y = J <
|
|
1994
|
+
return Y = J < fr ? or(pr, J++) : 0, dr++, Y === 10 && (dr = 1, ur++), Y;
|
|
2000
1995
|
}
|
|
2001
1996
|
function Z() {
|
|
2002
|
-
return
|
|
1997
|
+
return or(pr, J);
|
|
2003
1998
|
}
|
|
2004
|
-
function
|
|
1999
|
+
function _r() {
|
|
2005
2000
|
return J;
|
|
2006
2001
|
}
|
|
2007
|
-
function
|
|
2008
|
-
return
|
|
2002
|
+
function vr(e, t) {
|
|
2003
|
+
return sr(pr, e, t);
|
|
2009
2004
|
}
|
|
2010
|
-
function
|
|
2005
|
+
function yr(e) {
|
|
2011
2006
|
switch (e) {
|
|
2012
2007
|
case 0:
|
|
2013
2008
|
case 9:
|
|
@@ -2034,54 +2029,54 @@ function vr(e) {
|
|
|
2034
2029
|
}
|
|
2035
2030
|
return 0;
|
|
2036
2031
|
}
|
|
2037
|
-
function yr(e) {
|
|
2038
|
-
return lr = ur = 1, dr = q(fr = e), J = 0, [];
|
|
2039
|
-
}
|
|
2040
2032
|
function br(e) {
|
|
2041
|
-
return fr =
|
|
2033
|
+
return ur = dr = 1, fr = q(pr = e), J = 0, [];
|
|
2042
2034
|
}
|
|
2043
2035
|
function xr(e) {
|
|
2044
|
-
return
|
|
2036
|
+
return pr = "", e;
|
|
2045
2037
|
}
|
|
2046
2038
|
function Sr(e) {
|
|
2039
|
+
return ir(vr(J - 1, Tr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2040
|
+
}
|
|
2041
|
+
function Cr(e) {
|
|
2047
2042
|
for (; (Y = Z()) && Y < 33;) X();
|
|
2048
|
-
return
|
|
2043
|
+
return yr(e) > 2 || yr(Y) > 3 ? "" : " ";
|
|
2049
2044
|
}
|
|
2050
|
-
function
|
|
2045
|
+
function wr(e, t) {
|
|
2051
2046
|
for (; --t && X() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97););
|
|
2052
|
-
return
|
|
2047
|
+
return vr(e, _r() + (t < 6 && Z() == 32 && X() == 32));
|
|
2053
2048
|
}
|
|
2054
|
-
function
|
|
2049
|
+
function Tr(e) {
|
|
2055
2050
|
for (; X();) switch (Y) {
|
|
2056
2051
|
case e: return J;
|
|
2057
2052
|
case 34:
|
|
2058
2053
|
case 39:
|
|
2059
|
-
e !== 34 && e !== 39 &&
|
|
2054
|
+
e !== 34 && e !== 39 && Tr(Y);
|
|
2060
2055
|
break;
|
|
2061
2056
|
case 40:
|
|
2062
|
-
e === 41 &&
|
|
2057
|
+
e === 41 && Tr(e);
|
|
2063
2058
|
break;
|
|
2064
2059
|
case 92: X();
|
|
2065
2060
|
}
|
|
2066
2061
|
return J;
|
|
2067
2062
|
}
|
|
2068
|
-
function
|
|
2063
|
+
function Er(e, t) {
|
|
2069
2064
|
for (; X() && e + Y !== 57 && (e + Y !== 84 || Z() !== 47););
|
|
2070
|
-
return "/*" +
|
|
2065
|
+
return "/*" + vr(t, J - 1) + "*" + rr(e === 47 ? e : X());
|
|
2071
2066
|
}
|
|
2072
|
-
function
|
|
2073
|
-
for (; !
|
|
2074
|
-
return
|
|
2067
|
+
function Dr(e) {
|
|
2068
|
+
for (; !yr(Z());) X();
|
|
2069
|
+
return vr(e, J);
|
|
2075
2070
|
}
|
|
2076
2071
|
//#endregion
|
|
2077
2072
|
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Parser.js
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2073
|
+
function Or(e) {
|
|
2074
|
+
return xr(kr("", null, null, null, [""], e = br(e), 0, [0], e));
|
|
2080
2075
|
}
|
|
2081
|
-
function
|
|
2076
|
+
function kr(e, t, n, r, i, a, o, s, c) {
|
|
2082
2077
|
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = X()) {
|
|
2083
2078
|
case 40:
|
|
2084
|
-
m != 108 &&
|
|
2079
|
+
m != 108 && or(w, d - 1) == 58 ? (v++, w += "(") : w += Sr(y);
|
|
2085
2080
|
break;
|
|
2086
2081
|
case 41:
|
|
2087
2082
|
v--, w += ")";
|
|
@@ -2089,26 +2084,26 @@ function Or(e, t, n, r, i, a, o, s, c) {
|
|
|
2089
2084
|
case 34:
|
|
2090
2085
|
case 39:
|
|
2091
2086
|
case 91:
|
|
2092
|
-
w +=
|
|
2087
|
+
w += Sr(y);
|
|
2093
2088
|
break;
|
|
2094
2089
|
case 9:
|
|
2095
2090
|
case 10:
|
|
2096
2091
|
case 13:
|
|
2097
2092
|
case 32:
|
|
2098
2093
|
if (v > 0) {
|
|
2099
|
-
w +=
|
|
2094
|
+
w += rr(y);
|
|
2100
2095
|
break;
|
|
2101
2096
|
}
|
|
2102
|
-
w +=
|
|
2097
|
+
w += Cr(m);
|
|
2103
2098
|
break;
|
|
2104
2099
|
case 92:
|
|
2105
|
-
w +=
|
|
2100
|
+
w += wr(_r() - 1, 7);
|
|
2106
2101
|
continue;
|
|
2107
2102
|
case 47:
|
|
2108
2103
|
switch (Z()) {
|
|
2109
2104
|
case 42:
|
|
2110
2105
|
case 47:
|
|
2111
|
-
|
|
2106
|
+
lr(jr(Er(X(), _r()), t, n, c), c), (yr(m || 1) == 5 || yr(Z() || 1) == 5) && q(w) && sr(w, -1, void 0) !== " " && (w += " ");
|
|
2112
2107
|
break;
|
|
2113
2108
|
default: w += "/";
|
|
2114
2109
|
}
|
|
@@ -2118,28 +2113,28 @@ function Or(e, t, n, r, i, a, o, s, c) {
|
|
|
2118
2113
|
case 59:
|
|
2119
2114
|
case 0:
|
|
2120
2115
|
if (v > 0 && y) {
|
|
2121
|
-
w +=
|
|
2116
|
+
w += rr(y);
|
|
2122
2117
|
break;
|
|
2123
2118
|
}
|
|
2124
2119
|
switch (y) {
|
|
2125
2120
|
case 0:
|
|
2126
2121
|
case 125: g = 0;
|
|
2127
2122
|
case 59 + u:
|
|
2128
|
-
_ == -1 && (w =
|
|
2123
|
+
_ == -1 && (w = ar(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && lr(p > 32 ? Mr(w + ";", r, n, d - 1, c) : Mr(ar(w, " ", "") + ";", r, n, d - 2, c), c);
|
|
2129
2124
|
break;
|
|
2130
2125
|
case 59: w += ";";
|
|
2131
|
-
default: if (
|
|
2132
|
-
if (u === 0)
|
|
2126
|
+
default: if (lr(C = Ar(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
|
|
2127
|
+
if (u === 0) kr(w, t, C, C, x, a, d, s, S);
|
|
2133
2128
|
else {
|
|
2134
2129
|
switch (f) {
|
|
2135
|
-
case 99: if (
|
|
2136
|
-
case 108: if (
|
|
2130
|
+
case 99: if (or(w, 3) === 110) break;
|
|
2131
|
+
case 108: if (or(w, 2) === 97) break;
|
|
2137
2132
|
default: u = 0;
|
|
2138
2133
|
case 100:
|
|
2139
2134
|
case 109:
|
|
2140
2135
|
case 115:
|
|
2141
2136
|
}
|
|
2142
|
-
u ?
|
|
2137
|
+
u ? kr(e, C, C, r && lr(Ar(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : kr(w, C, C, C, [""], S, 0, s, S);
|
|
2143
2138
|
}
|
|
2144
2139
|
}
|
|
2145
2140
|
}
|
|
@@ -2149,9 +2144,9 @@ function Or(e, t, n, r, i, a, o, s, c) {
|
|
|
2149
2144
|
default:
|
|
2150
2145
|
if (h < 1) {
|
|
2151
2146
|
if (y == 123) --h;
|
|
2152
|
-
else if (y == 125 && h++ == 0 &&
|
|
2147
|
+
else if (y == 125 && h++ == 0 && gr() == 125) continue;
|
|
2153
2148
|
}
|
|
2154
|
-
switch (w +=
|
|
2149
|
+
switch (w += rr(y), y * h) {
|
|
2155
2150
|
case 38:
|
|
2156
2151
|
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
2157
2152
|
break;
|
|
@@ -2160,45 +2155,45 @@ function Or(e, t, n, r, i, a, o, s, c) {
|
|
|
2160
2155
|
s[l++] = (q(w) - 1) * _, _ = 1;
|
|
2161
2156
|
break;
|
|
2162
2157
|
case 64:
|
|
2163
|
-
Z() === 45 && (w +=
|
|
2158
|
+
Z() === 45 && (w += Sr(X())), f = Z(), u = d = q(b = w += Dr(_r())), y++;
|
|
2164
2159
|
break;
|
|
2165
2160
|
case 45: m === 45 && q(w) == 2 && (h = 0);
|
|
2166
2161
|
}
|
|
2167
2162
|
}
|
|
2168
2163
|
return a;
|
|
2169
2164
|
}
|
|
2170
|
-
function
|
|
2171
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m =
|
|
2172
|
-
return
|
|
2165
|
+
function Ar(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
2166
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = cr(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = sr(e, f + 1, f = nr(g = o[h])), b = e; v < m; ++v) (b = ir(g > 0 ? p[v] + " " + y : ar(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
2167
|
+
return mr(e, t, n, i === 0 ? Xn : s, c, l, u, d);
|
|
2173
2168
|
}
|
|
2174
|
-
function
|
|
2175
|
-
return
|
|
2169
|
+
function jr(e, t, n, r) {
|
|
2170
|
+
return mr(e, t, n, Yn, rr(hr()), sr(e, 2, -2), 0, r);
|
|
2176
2171
|
}
|
|
2177
|
-
function
|
|
2178
|
-
return
|
|
2172
|
+
function Mr(e, t, n, r, i) {
|
|
2173
|
+
return mr(e, t, n, Zn, sr(e, 0, r), sr(e, r + 1, -1), r, i);
|
|
2179
2174
|
}
|
|
2180
2175
|
//#endregion
|
|
2181
2176
|
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Serializer.js
|
|
2182
|
-
function
|
|
2177
|
+
function Nr(e, t) {
|
|
2183
2178
|
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
2184
2179
|
return n;
|
|
2185
2180
|
}
|
|
2186
|
-
function
|
|
2181
|
+
function Pr(e, t, n, r) {
|
|
2187
2182
|
switch (e.type) {
|
|
2188
|
-
case
|
|
2189
|
-
case Zn:
|
|
2183
|
+
case tr: if (e.children.length) break;
|
|
2190
2184
|
case Qn:
|
|
2191
|
-
case
|
|
2192
|
-
case
|
|
2193
|
-
case
|
|
2194
|
-
case
|
|
2185
|
+
case $n:
|
|
2186
|
+
case Zn: return e.return = e.return || e.value;
|
|
2187
|
+
case Yn: return "";
|
|
2188
|
+
case er: return e.return = e.value + "{" + Nr(e.children, r) + "}";
|
|
2189
|
+
case Xn: if (!q(e.value = e.props.join(","))) return "";
|
|
2195
2190
|
}
|
|
2196
|
-
return q(n =
|
|
2191
|
+
return q(n = Nr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
2197
2192
|
}
|
|
2198
2193
|
//#endregion
|
|
2199
2194
|
//#region ../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Middleware.js
|
|
2200
|
-
function
|
|
2201
|
-
var t =
|
|
2195
|
+
function Fr(e) {
|
|
2196
|
+
var t = cr(e);
|
|
2202
2197
|
return function(n, r, i, a) {
|
|
2203
2198
|
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
2204
2199
|
return o;
|
|
@@ -2206,429 +2201,429 @@ function Pr(e) {
|
|
|
2206
2201
|
}
|
|
2207
2202
|
//#endregion
|
|
2208
2203
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/mermaid.core.mjs
|
|
2209
|
-
var
|
|
2210
|
-
id:
|
|
2211
|
-
detector: /* @__PURE__ */
|
|
2212
|
-
loader: /* @__PURE__ */
|
|
2213
|
-
let { diagram: e } = await import("./c4Diagram-7LVT6UL2-
|
|
2204
|
+
var Ir = "c4", Lr = {
|
|
2205
|
+
id: Ir,
|
|
2206
|
+
detector: /* @__PURE__ */ E((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
2207
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2208
|
+
let { diagram: e } = await import("./c4Diagram-7LVT6UL2-DmcTtm4p.js");
|
|
2214
2209
|
return {
|
|
2215
|
-
id:
|
|
2210
|
+
id: Ir,
|
|
2216
2211
|
diagram: e
|
|
2217
2212
|
};
|
|
2218
2213
|
}, "loader")
|
|
2219
|
-
},
|
|
2220
|
-
id:
|
|
2221
|
-
detector: /* @__PURE__ */
|
|
2222
|
-
loader: /* @__PURE__ */
|
|
2223
|
-
let { diagram: e } = await import("./flowDiagram-HODETNUW-
|
|
2214
|
+
}, Rr = "flowchart", zr = {
|
|
2215
|
+
id: Rr,
|
|
2216
|
+
detector: /* @__PURE__ */ E((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
|
|
2217
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2218
|
+
let { diagram: e } = await import("./flowDiagram-HODETNUW-BH9U7VZK.js");
|
|
2224
2219
|
return {
|
|
2225
|
-
id:
|
|
2220
|
+
id: Rr,
|
|
2226
2221
|
diagram: e
|
|
2227
2222
|
};
|
|
2228
2223
|
}, "loader")
|
|
2229
|
-
},
|
|
2230
|
-
id:
|
|
2231
|
-
detector: /* @__PURE__ */
|
|
2232
|
-
loader: /* @__PURE__ */
|
|
2233
|
-
let { diagram: e } = await import("./flowDiagram-HODETNUW-
|
|
2224
|
+
}, Br = "flowchart-v2", Vr = {
|
|
2225
|
+
id: Br,
|
|
2226
|
+
detector: /* @__PURE__ */ E((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
|
|
2227
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2228
|
+
let { diagram: e } = await import("./flowDiagram-HODETNUW-BH9U7VZK.js");
|
|
2234
2229
|
return {
|
|
2235
|
-
id:
|
|
2230
|
+
id: Br,
|
|
2236
2231
|
diagram: e
|
|
2237
2232
|
};
|
|
2238
2233
|
}, "loader")
|
|
2239
|
-
},
|
|
2240
|
-
id:
|
|
2241
|
-
detector: /* @__PURE__ */
|
|
2242
|
-
loader: /* @__PURE__ */
|
|
2243
|
-
let { diagram: e } = await import("./swimlanesDiagram-VR7AAH4N-
|
|
2234
|
+
}, Hr = "swimlane", Ur = {
|
|
2235
|
+
id: Hr,
|
|
2236
|
+
detector: /* @__PURE__ */ E((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
|
|
2237
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2238
|
+
let { diagram: e } = await import("./swimlanesDiagram-VR7AAH4N-BlY12Jf6.js");
|
|
2244
2239
|
return {
|
|
2245
|
-
id:
|
|
2240
|
+
id: Hr,
|
|
2246
2241
|
diagram: e
|
|
2247
2242
|
};
|
|
2248
2243
|
}, "loader")
|
|
2249
|
-
},
|
|
2250
|
-
id:
|
|
2251
|
-
detector: /* @__PURE__ */
|
|
2252
|
-
loader: /* @__PURE__ */
|
|
2253
|
-
let { diagram: e } = await import("./erDiagram-RLTQ6QDP-
|
|
2244
|
+
}, Wr = "er", Gr = {
|
|
2245
|
+
id: Wr,
|
|
2246
|
+
detector: /* @__PURE__ */ E((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
2247
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2248
|
+
let { diagram: e } = await import("./erDiagram-RLTQ6QDP-b58Sz2Mc.js");
|
|
2254
2249
|
return {
|
|
2255
|
-
id:
|
|
2250
|
+
id: Wr,
|
|
2256
2251
|
diagram: e
|
|
2257
2252
|
};
|
|
2258
2253
|
}, "loader")
|
|
2259
|
-
},
|
|
2260
|
-
id:
|
|
2261
|
-
detector: /* @__PURE__ */
|
|
2262
|
-
loader: /* @__PURE__ */
|
|
2263
|
-
let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-
|
|
2254
|
+
}, Kr = "gitGraph", qr = {
|
|
2255
|
+
id: Kr,
|
|
2256
|
+
detector: /* @__PURE__ */ E((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
2257
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2258
|
+
let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-CK66dT35.js");
|
|
2264
2259
|
return {
|
|
2265
|
-
id:
|
|
2260
|
+
id: Kr,
|
|
2266
2261
|
diagram: e
|
|
2267
2262
|
};
|
|
2268
2263
|
}, "loader")
|
|
2269
|
-
},
|
|
2270
|
-
id:
|
|
2271
|
-
detector: /* @__PURE__ */
|
|
2272
|
-
loader: /* @__PURE__ */
|
|
2273
|
-
let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-
|
|
2264
|
+
}, Jr = "gantt", Yr = {
|
|
2265
|
+
id: Jr,
|
|
2266
|
+
detector: /* @__PURE__ */ E((e) => /^\s*gantt/.test(e), "detector"),
|
|
2267
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2268
|
+
let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-YzTghq1V.js");
|
|
2274
2269
|
return {
|
|
2275
|
-
id:
|
|
2270
|
+
id: Jr,
|
|
2276
2271
|
diagram: e
|
|
2277
2272
|
};
|
|
2278
2273
|
}, "loader")
|
|
2279
|
-
},
|
|
2280
|
-
id:
|
|
2281
|
-
detector: /* @__PURE__ */
|
|
2282
|
-
loader: /* @__PURE__ */
|
|
2283
|
-
let { diagram: e } = await import("./infoDiagram-27XIBGKW-
|
|
2274
|
+
}, Xr = "info", Zr = {
|
|
2275
|
+
id: Xr,
|
|
2276
|
+
detector: /* @__PURE__ */ E((e) => /^\s*info/.test(e), "detector"),
|
|
2277
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2278
|
+
let { diagram: e } = await import("./infoDiagram-27XIBGKW-xbjwrcNi.js");
|
|
2284
2279
|
return {
|
|
2285
|
-
id:
|
|
2280
|
+
id: Xr,
|
|
2286
2281
|
diagram: e
|
|
2287
2282
|
};
|
|
2288
2283
|
}, "loader")
|
|
2289
|
-
},
|
|
2290
|
-
id:
|
|
2291
|
-
detector: /* @__PURE__ */
|
|
2292
|
-
loader: /* @__PURE__ */
|
|
2293
|
-
let { diagram: e } = await import("./pieDiagram-E7YTZNPT-
|
|
2284
|
+
}, Qr = "pie", $r = {
|
|
2285
|
+
id: Qr,
|
|
2286
|
+
detector: /* @__PURE__ */ E((e) => /^\s*pie/.test(e), "detector"),
|
|
2287
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2288
|
+
let { diagram: e } = await import("./pieDiagram-E7YTZNPT-l7aqNrem.js");
|
|
2294
2289
|
return {
|
|
2295
|
-
id:
|
|
2290
|
+
id: Qr,
|
|
2296
2291
|
diagram: e
|
|
2297
2292
|
};
|
|
2298
2293
|
}, "loader")
|
|
2299
|
-
},
|
|
2300
|
-
id:
|
|
2301
|
-
detector: /* @__PURE__ */
|
|
2302
|
-
loader: /* @__PURE__ */
|
|
2303
|
-
let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-
|
|
2294
|
+
}, ei = "quadrantChart", ti = {
|
|
2295
|
+
id: ei,
|
|
2296
|
+
detector: /* @__PURE__ */ E((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
2297
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2298
|
+
let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-nGFBFig7.js");
|
|
2304
2299
|
return {
|
|
2305
|
-
id:
|
|
2300
|
+
id: ei,
|
|
2306
2301
|
diagram: e
|
|
2307
2302
|
};
|
|
2308
2303
|
}, "loader")
|
|
2309
|
-
},
|
|
2310
|
-
id:
|
|
2311
|
-
detector: /* @__PURE__ */
|
|
2312
|
-
loader: /* @__PURE__ */
|
|
2313
|
-
let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-
|
|
2304
|
+
}, ni = "xychart", ri = {
|
|
2305
|
+
id: ni,
|
|
2306
|
+
detector: /* @__PURE__ */ E((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
2307
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2308
|
+
let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-gr15Ws_z.js");
|
|
2314
2309
|
return {
|
|
2315
|
-
id:
|
|
2310
|
+
id: ni,
|
|
2316
2311
|
diagram: e
|
|
2317
2312
|
};
|
|
2318
2313
|
}, "loader")
|
|
2319
|
-
},
|
|
2320
|
-
id:
|
|
2321
|
-
detector: /* @__PURE__ */
|
|
2322
|
-
loader: /* @__PURE__ */
|
|
2323
|
-
let { diagram: e } = await import("./requirementDiagram-BXWQKSXE-
|
|
2314
|
+
}, ii = "requirement", ai = {
|
|
2315
|
+
id: ii,
|
|
2316
|
+
detector: /* @__PURE__ */ E((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
2317
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2318
|
+
let { diagram: e } = await import("./requirementDiagram-BXWQKSXE-DdWYu8fn.js");
|
|
2324
2319
|
return {
|
|
2325
|
-
id:
|
|
2320
|
+
id: ii,
|
|
2326
2321
|
diagram: e
|
|
2327
2322
|
};
|
|
2328
2323
|
}, "loader")
|
|
2329
|
-
},
|
|
2330
|
-
id:
|
|
2331
|
-
detector: /* @__PURE__ */
|
|
2332
|
-
loader: /* @__PURE__ */
|
|
2333
|
-
let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-
|
|
2324
|
+
}, oi = "sequence", si = {
|
|
2325
|
+
id: oi,
|
|
2326
|
+
detector: /* @__PURE__ */ E((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
2327
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2328
|
+
let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js");
|
|
2334
2329
|
return {
|
|
2335
|
-
id:
|
|
2330
|
+
id: oi,
|
|
2336
2331
|
diagram: e
|
|
2337
2332
|
};
|
|
2338
2333
|
}, "loader")
|
|
2339
|
-
},
|
|
2340
|
-
id:
|
|
2341
|
-
detector: /* @__PURE__ */
|
|
2342
|
-
loader: /* @__PURE__ */
|
|
2343
|
-
let { diagram: e } = await import("./classDiagram-ZZMXUADV-
|
|
2334
|
+
}, ci = "class", li = {
|
|
2335
|
+
id: ci,
|
|
2336
|
+
detector: /* @__PURE__ */ E((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
|
|
2337
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2338
|
+
let { diagram: e } = await import("./classDiagram-ZZMXUADV-B8E5Hn78.js");
|
|
2344
2339
|
return {
|
|
2345
|
-
id:
|
|
2340
|
+
id: ci,
|
|
2346
2341
|
diagram: e
|
|
2347
2342
|
};
|
|
2348
2343
|
}, "loader")
|
|
2349
|
-
},
|
|
2350
|
-
id:
|
|
2351
|
-
detector: /* @__PURE__ */
|
|
2352
|
-
loader: /* @__PURE__ */
|
|
2353
|
-
let { diagram: e } = await import("./classDiagram-v2-VYDZK3BY-
|
|
2344
|
+
}, ui = "classDiagram", di = {
|
|
2345
|
+
id: ui,
|
|
2346
|
+
detector: /* @__PURE__ */ E((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
|
|
2347
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2348
|
+
let { diagram: e } = await import("./classDiagram-v2-VYDZK3BY-DeGsK9bT.js");
|
|
2354
2349
|
return {
|
|
2355
|
-
id:
|
|
2350
|
+
id: ui,
|
|
2356
2351
|
diagram: e
|
|
2357
2352
|
};
|
|
2358
2353
|
}, "loader")
|
|
2359
|
-
},
|
|
2360
|
-
id:
|
|
2361
|
-
detector: /* @__PURE__ */
|
|
2362
|
-
loader: /* @__PURE__ */
|
|
2363
|
-
let { diagram: e } = await import("./stateDiagram-D77RDMKH-
|
|
2354
|
+
}, fi = "state", pi = {
|
|
2355
|
+
id: fi,
|
|
2356
|
+
detector: /* @__PURE__ */ E((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
|
|
2357
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2358
|
+
let { diagram: e } = await import("./stateDiagram-D77RDMKH-BGnTUhFJ.js");
|
|
2364
2359
|
return {
|
|
2365
|
-
id:
|
|
2360
|
+
id: fi,
|
|
2366
2361
|
diagram: e
|
|
2367
2362
|
};
|
|
2368
2363
|
}, "loader")
|
|
2369
|
-
},
|
|
2370
|
-
id:
|
|
2371
|
-
detector: /* @__PURE__ */
|
|
2372
|
-
loader: /* @__PURE__ */
|
|
2373
|
-
let { diagram: e } = await import("./stateDiagram-v2-MP3YSRHH-
|
|
2364
|
+
}, mi = "stateDiagram", hi = {
|
|
2365
|
+
id: mi,
|
|
2366
|
+
detector: /* @__PURE__ */ E((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
2367
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2368
|
+
let { diagram: e } = await import("./stateDiagram-v2-MP3YSRHH-DsJbmDf1.js");
|
|
2374
2369
|
return {
|
|
2375
|
-
id:
|
|
2370
|
+
id: mi,
|
|
2376
2371
|
diagram: e
|
|
2377
2372
|
};
|
|
2378
2373
|
}, "loader")
|
|
2379
|
-
},
|
|
2380
|
-
id:
|
|
2381
|
-
detector: /* @__PURE__ */
|
|
2382
|
-
loader: /* @__PURE__ */
|
|
2383
|
-
let { diagram: e } = await import("./journeyDiagram-3NMN7TZE-
|
|
2374
|
+
}, gi = "journey", _i = {
|
|
2375
|
+
id: gi,
|
|
2376
|
+
detector: /* @__PURE__ */ E((e) => /^\s*journey/.test(e), "detector"),
|
|
2377
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2378
|
+
let { diagram: e } = await import("./journeyDiagram-3NMN7TZE-CYXsL3IE.js");
|
|
2384
2379
|
return {
|
|
2385
|
-
id:
|
|
2380
|
+
id: gi,
|
|
2386
2381
|
diagram: e
|
|
2387
2382
|
};
|
|
2388
2383
|
}, "loader")
|
|
2389
|
-
},
|
|
2390
|
-
|
|
2391
|
-
let r =
|
|
2392
|
-
r.attr("viewBox", "0 0 2412 512"),
|
|
2393
|
-
}, "draw") },
|
|
2384
|
+
}, vi = { draw: /* @__PURE__ */ E((e, t, n) => {
|
|
2385
|
+
C.debug("rendering svg for syntax error\n");
|
|
2386
|
+
let r = je(t), i = r.append("g");
|
|
2387
|
+
r.attr("viewBox", "0 0 2412 512"), ne(r, 100, 512, !0), i.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), i.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), i.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), i.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), i.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), i.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
|
|
2388
|
+
}, "draw") }, yi = vi, bi = {
|
|
2394
2389
|
db: {},
|
|
2395
|
-
renderer:
|
|
2396
|
-
parser: { parse: /* @__PURE__ */
|
|
2397
|
-
},
|
|
2398
|
-
id:
|
|
2399
|
-
detector: /* @__PURE__ */
|
|
2400
|
-
loader: /* @__PURE__ */
|
|
2401
|
-
let { diagram: e } = await import("./flowDiagram-HODETNUW-
|
|
2390
|
+
renderer: vi,
|
|
2391
|
+
parser: { parse: /* @__PURE__ */ E(() => {}, "parse") }
|
|
2392
|
+
}, xi = "flowchart-elk", Si = {
|
|
2393
|
+
id: xi,
|
|
2394
|
+
detector: /* @__PURE__ */ E((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
|
|
2395
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2396
|
+
let { diagram: e } = await import("./flowDiagram-HODETNUW-BH9U7VZK.js");
|
|
2402
2397
|
return {
|
|
2403
|
-
id:
|
|
2398
|
+
id: xi,
|
|
2404
2399
|
diagram: e
|
|
2405
2400
|
};
|
|
2406
2401
|
}, "loader")
|
|
2407
|
-
},
|
|
2408
|
-
id:
|
|
2409
|
-
detector: /* @__PURE__ */
|
|
2410
|
-
loader: /* @__PURE__ */
|
|
2411
|
-
let { diagram: e } = await import("./timeline-definition-24CTP7MA-
|
|
2402
|
+
}, Ci = "timeline", wi = {
|
|
2403
|
+
id: Ci,
|
|
2404
|
+
detector: /* @__PURE__ */ E((e) => /^\s*timeline/.test(e), "detector"),
|
|
2405
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2406
|
+
let { diagram: e } = await import("./timeline-definition-24CTP7MA-m0LanyCH.js");
|
|
2412
2407
|
return {
|
|
2413
|
-
id:
|
|
2408
|
+
id: Ci,
|
|
2414
2409
|
diagram: e
|
|
2415
2410
|
};
|
|
2416
2411
|
}, "loader")
|
|
2417
|
-
},
|
|
2418
|
-
id:
|
|
2419
|
-
detector: /* @__PURE__ */
|
|
2420
|
-
loader: /* @__PURE__ */
|
|
2421
|
-
let { diagram: e } = await import("./mindmap-definition-YA3MSWOX-
|
|
2412
|
+
}, Ti = "mindmap", Ei = {
|
|
2413
|
+
id: Ti,
|
|
2414
|
+
detector: /* @__PURE__ */ E((e) => /^\s*mindmap/.test(e), "detector"),
|
|
2415
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2416
|
+
let { diagram: e } = await import("./mindmap-definition-YA3MSWOX-DQcnJPcV.js");
|
|
2422
2417
|
return {
|
|
2423
|
-
id:
|
|
2418
|
+
id: Ti,
|
|
2424
2419
|
diagram: e
|
|
2425
2420
|
};
|
|
2426
2421
|
}, "loader")
|
|
2427
|
-
},
|
|
2428
|
-
id:
|
|
2429
|
-
detector: /* @__PURE__ */
|
|
2430
|
-
loader: /* @__PURE__ */
|
|
2431
|
-
let { diagram: e } = await import("./kanban-definition-UXKFOSKX-
|
|
2422
|
+
}, Di = "kanban", Oi = {
|
|
2423
|
+
id: Di,
|
|
2424
|
+
detector: /* @__PURE__ */ E((e) => /^\s*kanban/.test(e), "detector"),
|
|
2425
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2426
|
+
let { diagram: e } = await import("./kanban-definition-UXKFOSKX-BEhlkZBb.js");
|
|
2432
2427
|
return {
|
|
2433
|
-
id:
|
|
2428
|
+
id: Di,
|
|
2434
2429
|
diagram: e
|
|
2435
2430
|
};
|
|
2436
2431
|
}, "loader")
|
|
2437
|
-
},
|
|
2438
|
-
id:
|
|
2439
|
-
detector: /* @__PURE__ */
|
|
2440
|
-
loader: /* @__PURE__ */
|
|
2441
|
-
let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-
|
|
2432
|
+
}, ki = "sankey", Ai = {
|
|
2433
|
+
id: ki,
|
|
2434
|
+
detector: /* @__PURE__ */ E((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
2435
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2436
|
+
let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-CrOfyc2n.js");
|
|
2442
2437
|
return {
|
|
2443
|
-
id:
|
|
2438
|
+
id: ki,
|
|
2444
2439
|
diagram: e
|
|
2445
2440
|
};
|
|
2446
2441
|
}, "loader")
|
|
2447
|
-
},
|
|
2448
|
-
id:
|
|
2449
|
-
detector: /* @__PURE__ */
|
|
2450
|
-
loader: /* @__PURE__ */
|
|
2451
|
-
let { diagram: e } = await import("./diagram-Z3DM3KII-
|
|
2442
|
+
}, ji = "packet", Mi = {
|
|
2443
|
+
id: ji,
|
|
2444
|
+
detector: /* @__PURE__ */ E((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
2445
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2446
|
+
let { diagram: e } = await import("./diagram-Z3DM3KII-CYaFOQcI.js");
|
|
2452
2447
|
return {
|
|
2453
|
-
id:
|
|
2448
|
+
id: ji,
|
|
2454
2449
|
diagram: e
|
|
2455
2450
|
};
|
|
2456
2451
|
}, "loader")
|
|
2457
|
-
},
|
|
2458
|
-
id:
|
|
2459
|
-
detector: /* @__PURE__ */
|
|
2460
|
-
loader: /* @__PURE__ */
|
|
2461
|
-
let { diagram: e } = await import("./diagram-UQ7AKVKN-
|
|
2452
|
+
}, Ni = "radar", Pi = {
|
|
2453
|
+
id: Ni,
|
|
2454
|
+
detector: /* @__PURE__ */ E((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
2455
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2456
|
+
let { diagram: e } = await import("./diagram-UQ7AKVKN-CKWE3c1T.js");
|
|
2462
2457
|
return {
|
|
2463
|
-
id:
|
|
2458
|
+
id: Ni,
|
|
2464
2459
|
diagram: e
|
|
2465
2460
|
};
|
|
2466
2461
|
}, "loader")
|
|
2467
|
-
},
|
|
2468
|
-
id:
|
|
2469
|
-
detector: /* @__PURE__ */
|
|
2470
|
-
loader: /* @__PURE__ */
|
|
2471
|
-
let { diagram: e } = await import("./blockDiagram-I7D4REHJ-
|
|
2462
|
+
}, Fi = "block", Ii = {
|
|
2463
|
+
id: Fi,
|
|
2464
|
+
detector: /* @__PURE__ */ E((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
2465
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2466
|
+
let { diagram: e } = await import("./blockDiagram-I7D4REHJ-BoCyD5KO.js");
|
|
2472
2467
|
return {
|
|
2473
|
-
id:
|
|
2468
|
+
id: Fi,
|
|
2474
2469
|
diagram: e
|
|
2475
2470
|
};
|
|
2476
2471
|
}, "loader")
|
|
2477
|
-
},
|
|
2478
|
-
id:
|
|
2479
|
-
detector: /* @__PURE__ */
|
|
2480
|
-
loader: /* @__PURE__ */
|
|
2481
|
-
let { diagram: e } = await import("./diagram-S7CK7UJ4-
|
|
2472
|
+
}, Li = "treeView", Ri = {
|
|
2473
|
+
id: Li,
|
|
2474
|
+
detector: /* @__PURE__ */ E((e) => /^\s*treeView-beta/.test(e), "detector"),
|
|
2475
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2476
|
+
let { diagram: e } = await import("./diagram-S7CK7UJ4-wBtVl61y.js");
|
|
2482
2477
|
return {
|
|
2483
|
-
id:
|
|
2478
|
+
id: Li,
|
|
2484
2479
|
diagram: e
|
|
2485
2480
|
};
|
|
2486
2481
|
}, "loader")
|
|
2487
|
-
},
|
|
2488
|
-
id:
|
|
2489
|
-
detector: /* @__PURE__ */
|
|
2490
|
-
loader: /* @__PURE__ */
|
|
2491
|
-
let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-
|
|
2482
|
+
}, zi = "architecture", Bi = {
|
|
2483
|
+
id: zi,
|
|
2484
|
+
detector: /* @__PURE__ */ E((e) => /^\s*architecture/.test(e), "detector"),
|
|
2485
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2486
|
+
let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-qjLjxapm.js");
|
|
2492
2487
|
return {
|
|
2493
|
-
id:
|
|
2488
|
+
id: zi,
|
|
2494
2489
|
diagram: e
|
|
2495
2490
|
};
|
|
2496
2491
|
}, "loader")
|
|
2497
|
-
},
|
|
2498
|
-
id:
|
|
2499
|
-
detector: /* @__PURE__ */
|
|
2500
|
-
loader: /* @__PURE__ */
|
|
2501
|
-
let { diagram: e } = await import("./diagram-VSXAHHWV-
|
|
2492
|
+
}, Vi = "eventmodeling", Hi = {
|
|
2493
|
+
id: Vi,
|
|
2494
|
+
detector: /* @__PURE__ */ E((e) => /^\s*eventmodeling/.test(e), "detector"),
|
|
2495
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2496
|
+
let { diagram: e } = await import("./diagram-VSXAHHWV-LXjisZoM.js");
|
|
2502
2497
|
return {
|
|
2503
|
-
id:
|
|
2498
|
+
id: Vi,
|
|
2504
2499
|
diagram: e
|
|
2505
2500
|
};
|
|
2506
2501
|
}, "loader")
|
|
2507
|
-
},
|
|
2508
|
-
id:
|
|
2509
|
-
detector: /* @__PURE__ */
|
|
2510
|
-
loader: /* @__PURE__ */
|
|
2511
|
-
let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-
|
|
2502
|
+
}, Ui = "ishikawa", Wi = {
|
|
2503
|
+
id: Ui,
|
|
2504
|
+
detector: /* @__PURE__ */ E((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
|
|
2505
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2506
|
+
let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-DKtukhGS.js");
|
|
2512
2507
|
return {
|
|
2513
|
-
id:
|
|
2508
|
+
id: Ui,
|
|
2514
2509
|
diagram: e
|
|
2515
2510
|
};
|
|
2516
2511
|
}, "loader")
|
|
2517
|
-
},
|
|
2518
|
-
id:
|
|
2519
|
-
detector: /* @__PURE__ */
|
|
2520
|
-
loader: /* @__PURE__ */
|
|
2521
|
-
let { diagram: e } = await import("./vennDiagram-4TSXK5OY-
|
|
2512
|
+
}, Gi = "venn", Ki = {
|
|
2513
|
+
id: Gi,
|
|
2514
|
+
detector: /* @__PURE__ */ E((e) => /^\s*venn-beta/.test(e), "detector"),
|
|
2515
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2516
|
+
let { diagram: e } = await import("./vennDiagram-4TSXK5OY-BJ7vqDmn.js");
|
|
2522
2517
|
return {
|
|
2523
|
-
id:
|
|
2518
|
+
id: Gi,
|
|
2524
2519
|
diagram: e
|
|
2525
2520
|
};
|
|
2526
2521
|
}, "loader")
|
|
2527
|
-
},
|
|
2528
|
-
id:
|
|
2529
|
-
detector: /* @__PURE__ */
|
|
2530
|
-
loader: /* @__PURE__ */
|
|
2531
|
-
let { diagram: e } = await import("./diagram-VX7I27RA-
|
|
2522
|
+
}, qi = "treemap", Ji = {
|
|
2523
|
+
id: qi,
|
|
2524
|
+
detector: /* @__PURE__ */ E((e) => /^\s*treemap/.test(e), "detector"),
|
|
2525
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2526
|
+
let { diagram: e } = await import("./diagram-VX7I27RA-D2Ac5198.js");
|
|
2532
2527
|
return {
|
|
2533
|
-
id:
|
|
2528
|
+
id: qi,
|
|
2534
2529
|
diagram: e
|
|
2535
2530
|
};
|
|
2536
2531
|
}, "loader")
|
|
2537
|
-
},
|
|
2538
|
-
id:
|
|
2539
|
-
detector: /* @__PURE__ */
|
|
2540
|
-
loader: /* @__PURE__ */
|
|
2541
|
-
let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-
|
|
2532
|
+
}, Yi = "wardley", Xi = {
|
|
2533
|
+
id: Yi,
|
|
2534
|
+
detector: /* @__PURE__ */ E((e) => /^\s*wardley-beta/i.test(e), "detector"),
|
|
2535
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2536
|
+
let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-D5kWacsn.js");
|
|
2542
2537
|
return {
|
|
2543
|
-
id:
|
|
2538
|
+
id: Yi,
|
|
2544
2539
|
diagram: e
|
|
2545
2540
|
};
|
|
2546
2541
|
}, "loader")
|
|
2547
|
-
},
|
|
2548
|
-
id:
|
|
2549
|
-
detector: /* @__PURE__ */
|
|
2550
|
-
loader: /* @__PURE__ */
|
|
2551
|
-
let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-
|
|
2542
|
+
}, Zi = "cynefin", Qi = {
|
|
2543
|
+
id: Zi,
|
|
2544
|
+
detector: /* @__PURE__ */ E((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
|
|
2545
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2546
|
+
let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-NDedRwsw.js");
|
|
2552
2547
|
return {
|
|
2553
|
-
id:
|
|
2548
|
+
id: Zi,
|
|
2554
2549
|
diagram: e
|
|
2555
2550
|
};
|
|
2556
2551
|
}, "loader")
|
|
2557
|
-
},
|
|
2558
|
-
id:
|
|
2559
|
-
detector: /* @__PURE__ */
|
|
2560
|
-
loader: /* @__PURE__ */
|
|
2561
|
-
let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-
|
|
2552
|
+
}, $i = "railroad", ea = {
|
|
2553
|
+
id: $i,
|
|
2554
|
+
detector: /* @__PURE__ */ E((e) => /^\s*railroad-beta/i.test(e), "detector"),
|
|
2555
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2556
|
+
let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-6R3C1lwQ.js");
|
|
2562
2557
|
return {
|
|
2563
|
-
id:
|
|
2558
|
+
id: $i,
|
|
2564
2559
|
diagram: e
|
|
2565
2560
|
};
|
|
2566
2561
|
}, "loader")
|
|
2567
|
-
},
|
|
2568
|
-
id:
|
|
2569
|
-
detector: /* @__PURE__ */
|
|
2570
|
-
loader: /* @__PURE__ */
|
|
2571
|
-
let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-
|
|
2562
|
+
}, ta = "railroadEbnf", na = {
|
|
2563
|
+
id: ta,
|
|
2564
|
+
detector: /* @__PURE__ */ E((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
|
|
2565
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2566
|
+
let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-Ds7f42dj.js");
|
|
2572
2567
|
return {
|
|
2573
|
-
id:
|
|
2568
|
+
id: ta,
|
|
2574
2569
|
diagram: e
|
|
2575
2570
|
};
|
|
2576
2571
|
}, "loader")
|
|
2577
|
-
},
|
|
2578
|
-
id:
|
|
2579
|
-
detector: /* @__PURE__ */
|
|
2580
|
-
loader: /* @__PURE__ */
|
|
2581
|
-
let { diagram: e } = await import("./abnfDiagram-VCTEODGH-
|
|
2572
|
+
}, ra = "railroadAbnf", ia = {
|
|
2573
|
+
id: ra,
|
|
2574
|
+
detector: /* @__PURE__ */ E((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
|
|
2575
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2576
|
+
let { diagram: e } = await import("./abnfDiagram-VCTEODGH-BbZOIueZ.js");
|
|
2582
2577
|
return {
|
|
2583
|
-
id:
|
|
2578
|
+
id: ra,
|
|
2584
2579
|
diagram: e
|
|
2585
2580
|
};
|
|
2586
2581
|
}, "loader")
|
|
2587
|
-
},
|
|
2588
|
-
id:
|
|
2589
|
-
detector: /* @__PURE__ */
|
|
2590
|
-
loader: /* @__PURE__ */
|
|
2591
|
-
let { diagram: e } = await import("./pegDiagram-XKGWAZYB-
|
|
2582
|
+
}, aa = "railroadPeg", oa = {
|
|
2583
|
+
id: aa,
|
|
2584
|
+
detector: /* @__PURE__ */ E((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
|
|
2585
|
+
loader: /* @__PURE__ */ E(async () => {
|
|
2586
|
+
let { diagram: e } = await import("./pegDiagram-XKGWAZYB-BFQuPYfI.js");
|
|
2592
2587
|
return {
|
|
2593
|
-
id:
|
|
2588
|
+
id: aa,
|
|
2594
2589
|
diagram: e
|
|
2595
2590
|
};
|
|
2596
2591
|
}, "loader")
|
|
2597
|
-
},
|
|
2598
|
-
|
|
2599
|
-
db: { clear: /* @__PURE__ */
|
|
2592
|
+
}, sa = !1, ca = /* @__PURE__ */ E(() => {
|
|
2593
|
+
sa || (sa = !0, A("error", bi, (e) => e.toLowerCase().trim() === "error"), A("---", {
|
|
2594
|
+
db: { clear: /* @__PURE__ */ E(() => {}, "clear") },
|
|
2600
2595
|
styles: {},
|
|
2601
|
-
renderer: { draw: /* @__PURE__ */
|
|
2602
|
-
parser: { parse: /* @__PURE__ */
|
|
2596
|
+
renderer: { draw: /* @__PURE__ */ E(() => {}, "draw") },
|
|
2597
|
+
parser: { parse: /* @__PURE__ */ E(() => {
|
|
2603
2598
|
throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
|
|
2604
2599
|
}, "parse") },
|
|
2605
|
-
init: /* @__PURE__ */
|
|
2606
|
-
}, (e) => e.toLowerCase().trimStart().startsWith("---")), j(
|
|
2607
|
-
}, "addDiagrams"),
|
|
2608
|
-
|
|
2609
|
-
let e = (await Promise.allSettled(Object.entries(
|
|
2600
|
+
init: /* @__PURE__ */ E(() => null, "init")
|
|
2601
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), j(Si, Ei, Bi), j(Lr, Oi, di, li, Gr, Yr, Zr, $r, ai, si, Ur, Vr, zr, wi, qr, hi, pi, _i, ti, Ai, Mi, ri, Ii, Hi, Ri, Pi, Wi, Ji, ea, na, ia, oa, Ki, Xi, Qi));
|
|
2602
|
+
}, "addDiagrams"), la = /* @__PURE__ */ E(async () => {
|
|
2603
|
+
C.debug("Loading registered diagrams");
|
|
2604
|
+
let e = (await Promise.allSettled(Object.entries(ae).map(async ([e, { detector: t, loader: n }]) => {
|
|
2610
2605
|
if (n) try {
|
|
2611
|
-
|
|
2606
|
+
M(e);
|
|
2612
2607
|
} catch {
|
|
2613
2608
|
try {
|
|
2614
2609
|
let { diagram: e, id: r } = await n();
|
|
2615
2610
|
A(r, e, t);
|
|
2616
2611
|
} catch (t) {
|
|
2617
|
-
throw
|
|
2612
|
+
throw C.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete ae[e], t;
|
|
2618
2613
|
}
|
|
2619
2614
|
}
|
|
2620
2615
|
}))).filter((e) => e.status === "rejected");
|
|
2621
2616
|
if (e.length > 0) {
|
|
2622
|
-
|
|
2623
|
-
for (let t of e)
|
|
2617
|
+
C.error(`Failed to load ${e.length} external diagrams`);
|
|
2618
|
+
for (let t of e) C.error(t);
|
|
2624
2619
|
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
2625
2620
|
}
|
|
2626
|
-
}, "loadRegisteredDiagrams"),
|
|
2627
|
-
function
|
|
2628
|
-
e.attr("role",
|
|
2621
|
+
}, "loadRegisteredDiagrams"), ua = "graphics-document document";
|
|
2622
|
+
function da(e, t) {
|
|
2623
|
+
e.attr("role", ua), t !== "" && e.attr("aria-roledescription", t);
|
|
2629
2624
|
}
|
|
2630
|
-
|
|
2631
|
-
function
|
|
2625
|
+
E(da, "setA11yDiagramInfo");
|
|
2626
|
+
function fa(e, t, n, r) {
|
|
2632
2627
|
if (e.insert !== void 0) {
|
|
2633
2628
|
if (n) {
|
|
2634
2629
|
let t = `chart-desc-${r}`;
|
|
@@ -2640,26 +2635,26 @@ function da(e, t, n, r) {
|
|
|
2640
2635
|
}
|
|
2641
2636
|
}
|
|
2642
2637
|
}
|
|
2643
|
-
|
|
2644
|
-
var
|
|
2638
|
+
E(fa, "addSVGa11yTitleDescription");
|
|
2639
|
+
var pa = class e {
|
|
2645
2640
|
constructor(e, t, n, r, i) {
|
|
2646
2641
|
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
2647
2642
|
}
|
|
2648
2643
|
static {
|
|
2649
|
-
|
|
2644
|
+
E(this, "Diagram");
|
|
2650
2645
|
}
|
|
2651
2646
|
static async fromText(t, n = {}) {
|
|
2652
|
-
let r = z(), i =
|
|
2653
|
-
t =
|
|
2647
|
+
let r = z(), i = se(t, r);
|
|
2648
|
+
t = y(t) + "\n";
|
|
2654
2649
|
try {
|
|
2655
|
-
|
|
2650
|
+
M(i);
|
|
2656
2651
|
} catch {
|
|
2657
|
-
let e =
|
|
2658
|
-
if (!e) throw new
|
|
2652
|
+
let e = D(i);
|
|
2653
|
+
if (!e) throw new de(`Diagram ${i} not found.`);
|
|
2659
2654
|
let { id: t, diagram: n } = await e();
|
|
2660
2655
|
A(t, n);
|
|
2661
2656
|
}
|
|
2662
|
-
let { db: a, parser: o, renderer: s, init: c } =
|
|
2657
|
+
let { db: a, parser: o, renderer: s, init: c } = M(i);
|
|
2663
2658
|
return o.parser && (o.parser.yy = a), a.clear?.(), c?.(r), n.title && a.setDiagramTitle?.(n.title), await o.parse(t), new e(i, t, a, o, s);
|
|
2664
2659
|
}
|
|
2665
2660
|
async render(e, t) {
|
|
@@ -2671,18 +2666,18 @@ var fa = class e {
|
|
|
2671
2666
|
getType() {
|
|
2672
2667
|
return this.type;
|
|
2673
2668
|
}
|
|
2674
|
-
},
|
|
2675
|
-
|
|
2669
|
+
}, ma = [], ha = /* @__PURE__ */ E(() => {
|
|
2670
|
+
ma.forEach((e) => {
|
|
2676
2671
|
e();
|
|
2677
|
-
}),
|
|
2678
|
-
}, "attachFunctions"),
|
|
2679
|
-
function
|
|
2672
|
+
}), ma = [];
|
|
2673
|
+
}, "attachFunctions"), ga = /* @__PURE__ */ E((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
2674
|
+
function _a(e) {
|
|
2680
2675
|
let t = e.match(R);
|
|
2681
2676
|
if (!t) return {
|
|
2682
2677
|
text: e,
|
|
2683
2678
|
metadata: {}
|
|
2684
2679
|
};
|
|
2685
|
-
let n = t[1], r =
|
|
2680
|
+
let n = t[1], r = In(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: Nn }) ?? {};
|
|
2686
2681
|
r = typeof r == "object" && !Array.isArray(r) ? r : {};
|
|
2687
2682
|
let i = {};
|
|
2688
2683
|
return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
|
|
@@ -2690,47 +2685,47 @@ function ga(e) {
|
|
|
2690
2685
|
metadata: i
|
|
2691
2686
|
};
|
|
2692
2687
|
}
|
|
2693
|
-
|
|
2694
|
-
var
|
|
2695
|
-
let { text: t, metadata: n } =
|
|
2688
|
+
E(_a, "extractFrontMatter");
|
|
2689
|
+
var va = /* @__PURE__ */ E((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ya = /* @__PURE__ */ E((e) => {
|
|
2690
|
+
let { text: t, metadata: n } = _a(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
2696
2691
|
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
2697
2692
|
title: i,
|
|
2698
2693
|
config: a,
|
|
2699
2694
|
text: t
|
|
2700
2695
|
};
|
|
2701
|
-
}, "processFrontmatter"),
|
|
2702
|
-
let t =
|
|
2696
|
+
}, "processFrontmatter"), ba = /* @__PURE__ */ E((e) => {
|
|
2697
|
+
let t = g.detectInit(e) ?? {}, n = g.detectDirective(e, "wrap");
|
|
2703
2698
|
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
2704
|
-
text:
|
|
2699
|
+
text: _(e),
|
|
2705
2700
|
directive: t
|
|
2706
2701
|
};
|
|
2707
2702
|
}, "processDirectives");
|
|
2708
|
-
function
|
|
2709
|
-
let t = va(
|
|
2710
|
-
return e =
|
|
2703
|
+
function xa(e) {
|
|
2704
|
+
let t = ya(va(e)), n = ba(t.text), r = v(t.config, n.directive);
|
|
2705
|
+
return e = ga(n.text), {
|
|
2711
2706
|
code: e,
|
|
2712
2707
|
title: t.title,
|
|
2713
2708
|
config: r
|
|
2714
2709
|
};
|
|
2715
2710
|
}
|
|
2716
|
-
|
|
2717
|
-
function
|
|
2711
|
+
E(xa, "preprocessDiagram");
|
|
2712
|
+
function Sa(e) {
|
|
2718
2713
|
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
2719
2714
|
return btoa(n);
|
|
2720
2715
|
}
|
|
2721
|
-
|
|
2722
|
-
var
|
|
2723
|
-
function
|
|
2724
|
-
let t =
|
|
2725
|
-
return
|
|
2716
|
+
E(Sa, "toBase64");
|
|
2717
|
+
var Ca = 5e4, wa = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Ta = "sandbox", Ea = "loose", Da = "http://www.w3.org/2000/svg", Oa = "http://www.w3.org/1999/xlink", ka = "http://www.w3.org/1999/xhtml", Aa = "100%", ja = "100%", Ma = "border:0;margin:0;", Na = "margin:0", Pa = "allow-top-navigation-by-user-activation allow-popups", Fa = "The \"iframe\" tag is not supported by your browser.", Ia = ["foreignobject"], La = ["dominant-baseline"];
|
|
2718
|
+
function Ra(e) {
|
|
2719
|
+
let t = xa(e);
|
|
2720
|
+
return k(), oe(t.config ?? {}), t;
|
|
2726
2721
|
}
|
|
2727
|
-
|
|
2728
|
-
async function
|
|
2729
|
-
|
|
2722
|
+
E(Ra, "processAndSetConfigs");
|
|
2723
|
+
async function za(e, t) {
|
|
2724
|
+
ca();
|
|
2730
2725
|
try {
|
|
2731
|
-
let { code: t, config: n } =
|
|
2726
|
+
let { code: t, config: n } = Ra(e);
|
|
2732
2727
|
return {
|
|
2733
|
-
diagramType: (await
|
|
2728
|
+
diagramType: (await Za(t)).type,
|
|
2734
2729
|
config: n
|
|
2735
2730
|
};
|
|
2736
2731
|
} catch (e) {
|
|
@@ -2738,11 +2733,11 @@ async function Ra(e, t) {
|
|
|
2738
2733
|
throw e;
|
|
2739
2734
|
}
|
|
2740
2735
|
}
|
|
2741
|
-
|
|
2742
|
-
var
|
|
2736
|
+
E(za, "parse");
|
|
2737
|
+
var Ba = /* @__PURE__ */ E((e, t, n = []) => `.${e} ${t} ${ee(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Va = /* @__PURE__ */ E((e, t = /* @__PURE__ */ new Map()) => {
|
|
2743
2738
|
let n = new CSSStyleSheet();
|
|
2744
2739
|
if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
|
|
2745
|
-
let r =
|
|
2740
|
+
let r = N(e) ? ["> *", "span"] : [
|
|
2746
2741
|
"rect",
|
|
2747
2742
|
"polygon",
|
|
2748
2743
|
"ellipse",
|
|
@@ -2750,28 +2745,28 @@ var za = /* @__PURE__ */ T((e, t, n = []) => `.${e} ${t} ${k(`{ ${n.join(" !impo
|
|
|
2750
2745
|
"path"
|
|
2751
2746
|
];
|
|
2752
2747
|
t.forEach((e) => {
|
|
2753
|
-
|
|
2754
|
-
n.insertRule(
|
|
2755
|
-
}),
|
|
2748
|
+
Ne(e.styles) || r.forEach((t) => {
|
|
2749
|
+
n.insertRule(Ba(e.id, t, e.styles), n.cssRules.length);
|
|
2750
|
+
}), Ne(e.textStyles) || n.insertRule(Ba(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
|
|
2756
2751
|
});
|
|
2757
2752
|
}
|
|
2758
2753
|
let r = "";
|
|
2759
2754
|
if (e.themeCSS !== void 0) {
|
|
2760
2755
|
if (typeof n.replaceSync == "function") {
|
|
2761
2756
|
let t = new CSSStyleSheet();
|
|
2762
|
-
t.replaceSync(e.themeCSS), r =
|
|
2757
|
+
t.replaceSync(e.themeCSS), r = ie(t) + "\n";
|
|
2763
2758
|
} else r += `${e.themeCSS}
|
|
2764
2759
|
`;
|
|
2765
2760
|
}
|
|
2766
|
-
return r +
|
|
2767
|
-
}, "createCssStyles"),
|
|
2761
|
+
return r + ie(n);
|
|
2762
|
+
}, "createCssStyles"), Ha = /* @__PURE__ */ E((e, t) => Nr(Or(`${e}{${t}}`), Fr([/* @__PURE__ */ E(function(t, n, r, i) {
|
|
2768
2763
|
if (t.type === "rule" && Array.isArray(t.props)) {
|
|
2769
2764
|
if (t.parent && t.parent.type === "@keyframes") return;
|
|
2770
2765
|
t.props = t.props.map((n) => n === e && Array.isArray(t.children) && t.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
|
|
2771
2766
|
"font-family",
|
|
2772
2767
|
"font-size",
|
|
2773
2768
|
"fill"
|
|
2774
|
-
])).has(e.props))
|
|
2769
|
+
])).has(e.props)) ? n : !n.startsWith(`${e} `) && !n.startsWith(`${e}>`) || n.startsWith(`${e} ||`) ? `${e} ${n}` : n);
|
|
2775
2770
|
} else t.type.startsWith("@") && ([
|
|
2776
2771
|
"@media",
|
|
2777
2772
|
"@supports",
|
|
@@ -2780,125 +2775,125 @@ var za = /* @__PURE__ */ T((e, t, n = []) => `.${e} ${t} ${k(`{ ${n.join(" !impo
|
|
|
2780
2775
|
"@container",
|
|
2781
2776
|
"@starting-style",
|
|
2782
2777
|
"@keyframes"
|
|
2783
|
-
].includes(t.type) || (
|
|
2784
|
-
}, "addNamespace"),
|
|
2785
|
-
let i =
|
|
2786
|
-
return
|
|
2778
|
+
].includes(t.type) || (C.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = Yn));
|
|
2779
|
+
}, "addNamespace"), Pr])), "compileCSS"), Ua = /* @__PURE__ */ E((e, t, n, r) => {
|
|
2780
|
+
let i = Va(e, n);
|
|
2781
|
+
return Ha(r, I(t, i, {
|
|
2787
2782
|
...e.themeVariables,
|
|
2788
2783
|
theme: e.theme,
|
|
2789
2784
|
look: e.look
|
|
2790
2785
|
}, r));
|
|
2791
|
-
}, "createUserStyles"),
|
|
2786
|
+
}, "createUserStyles"), Wa = /* @__PURE__ */ E((e = "", t, n) => {
|
|
2792
2787
|
let r = e;
|
|
2793
|
-
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r =
|
|
2794
|
-
}, "cleanUpSvgCode"),
|
|
2795
|
-
${
|
|
2796
|
-
</iframe>`, "putIntoIFrame"),
|
|
2788
|
+
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = p(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
2789
|
+
}, "cleanUpSvgCode"), Ga = /* @__PURE__ */ E((e = "", t) => `<iframe style="width:${Aa};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : ja};${Ma}" src="data:text/html;charset=UTF-8;base64,${Sa(`<body style="${Na}">${e}</body>`)}" sandbox="${Pa}">
|
|
2790
|
+
${Fa}
|
|
2791
|
+
</iframe>`, "putIntoIFrame"), Ka = /* @__PURE__ */ E((e, t, n, r, i) => {
|
|
2797
2792
|
let a = e.append("div");
|
|
2798
2793
|
a.attr("id", n), r && a.attr("style", r);
|
|
2799
|
-
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns",
|
|
2794
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Da);
|
|
2800
2795
|
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
2801
2796
|
}, "appendDivSvgG");
|
|
2802
|
-
function
|
|
2797
|
+
function qa(e, t) {
|
|
2803
2798
|
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
2804
2799
|
}
|
|
2805
|
-
|
|
2806
|
-
var
|
|
2800
|
+
E(qa, "sandboxedIframe");
|
|
2801
|
+
var Ja = /* @__PURE__ */ E((e, t, n, r) => {
|
|
2807
2802
|
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
2808
|
-
}, "removeExistingElements"),
|
|
2809
|
-
|
|
2810
|
-
let r =
|
|
2803
|
+
}, "removeExistingElements"), Ya = /* @__PURE__ */ E(async function(e, t, n) {
|
|
2804
|
+
ca();
|
|
2805
|
+
let r = Ra(t);
|
|
2811
2806
|
t = r.code;
|
|
2812
2807
|
let i = z();
|
|
2813
|
-
|
|
2814
|
-
let a = `#${e}`, o = "i" + e, s = "#" + o, c = "d" + e,
|
|
2815
|
-
let e =
|
|
2808
|
+
C.debug(i), t.length > (i?.maxTextSize ?? Ca) && (t = wa);
|
|
2809
|
+
let a = `#${e}`, o = "i" + e, s = "#" + o, c = "d" + e, u = "#" + c, d = /* @__PURE__ */ E(() => {
|
|
2810
|
+
let e = T(p ? s : u).node();
|
|
2816
2811
|
e && "remove" in e && e.remove();
|
|
2817
|
-
}, "removeTempElements"), f =
|
|
2812
|
+
}, "removeTempElements"), f = T(document.body), p = i.securityLevel === Ta, m = i.securityLevel === Ea, h = i.fontFamily;
|
|
2818
2813
|
if (n !== void 0) {
|
|
2819
2814
|
if (n && (n.innerHTML = ""), p) {
|
|
2820
|
-
let e =
|
|
2821
|
-
f =
|
|
2822
|
-
} else f =
|
|
2823
|
-
|
|
2815
|
+
let e = qa(T(n), o);
|
|
2816
|
+
f = T(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
|
|
2817
|
+
} else f = T(n);
|
|
2818
|
+
Ka(f, e, c, `font-family: ${h}`, Oa);
|
|
2824
2819
|
} else {
|
|
2825
|
-
if (
|
|
2826
|
-
let e =
|
|
2827
|
-
f =
|
|
2828
|
-
} else f =
|
|
2829
|
-
|
|
2820
|
+
if (Ja(document, e, c, o), p) {
|
|
2821
|
+
let e = qa(T(document.body), o);
|
|
2822
|
+
f = T(e.nodes()[0].contentDocument.body), f.node().style.margin = "0";
|
|
2823
|
+
} else f = T("body");
|
|
2824
|
+
Ka(f, e, c);
|
|
2830
2825
|
}
|
|
2831
2826
|
let g, _;
|
|
2832
2827
|
try {
|
|
2833
|
-
g = await
|
|
2828
|
+
g = await pa.fromText(t, { title: r.title });
|
|
2834
2829
|
} catch (e) {
|
|
2835
2830
|
if (i.suppressErrorRendering) throw d(), e;
|
|
2836
|
-
g = await
|
|
2831
|
+
g = await pa.fromText("error"), _ = e;
|
|
2837
2832
|
}
|
|
2838
|
-
let v = f.select(
|
|
2839
|
-
D.innerHTML =
|
|
2833
|
+
let v = f.select(u).node(), y = g.type, b = v.firstChild, x = b.firstChild, S = g.renderer.getClasses?.(t, g), w = Ua(i, y, S, a), D = document.createElement("style");
|
|
2834
|
+
D.innerHTML = w, b.insertBefore(D, x);
|
|
2840
2835
|
try {
|
|
2841
2836
|
await g.renderer.draw(t, e, "11.17.2", g);
|
|
2842
2837
|
} catch (n) {
|
|
2843
|
-
throw i.suppressErrorRendering ? d() :
|
|
2844
|
-
}
|
|
2845
|
-
let O = f.select(`${
|
|
2846
|
-
|
|
2847
|
-
let
|
|
2848
|
-
f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",
|
|
2849
|
-
let t = f.select(
|
|
2850
|
-
if (
|
|
2851
|
-
let e = f.select(
|
|
2852
|
-
t =
|
|
2853
|
-
} else m || (t =
|
|
2854
|
-
ADD_TAGS:
|
|
2855
|
-
ADD_ATTR:
|
|
2838
|
+
throw i.suppressErrorRendering ? d() : yi.draw(t, e, "11.17.2"), n;
|
|
2839
|
+
}
|
|
2840
|
+
let O = f.select(`${u} svg`), k = g.db.getAccTitle?.(), ee = g.db.getAccDescription?.();
|
|
2841
|
+
Qa(y, O, k, ee);
|
|
2842
|
+
let A = (/* @__PURE__ */ E(() => {
|
|
2843
|
+
f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", ka);
|
|
2844
|
+
let t = f.select(u).node().innerHTML;
|
|
2845
|
+
if (C.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), t = Wa(t, p, re(i.arrowMarkerAbsolute)), p) {
|
|
2846
|
+
let e = f.select(u + " svg").node();
|
|
2847
|
+
t = Ga(t, e);
|
|
2848
|
+
} else m || (t = l.sanitize(t, {
|
|
2849
|
+
ADD_TAGS: Ia,
|
|
2850
|
+
ADD_ATTR: La,
|
|
2856
2851
|
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
2857
2852
|
}));
|
|
2858
|
-
return
|
|
2853
|
+
return ha(), t;
|
|
2859
2854
|
}, "serializeSvg"))();
|
|
2860
2855
|
if (_) throw _;
|
|
2861
2856
|
return d(), {
|
|
2862
2857
|
diagramType: y,
|
|
2863
|
-
svg:
|
|
2858
|
+
svg: A,
|
|
2864
2859
|
bindFunctions: g.db.bindFunctions
|
|
2865
2860
|
};
|
|
2866
2861
|
}, "render");
|
|
2867
|
-
function
|
|
2868
|
-
let t =
|
|
2862
|
+
function Xa(e = {}) {
|
|
2863
|
+
let t = le({}, e);
|
|
2869
2864
|
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), P(t), t?.theme && t.theme in L ? t.themeVariables = L[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = L.default.getThemeVariables(t.themeVariables));
|
|
2870
|
-
let n = typeof t == "object" ?
|
|
2871
|
-
|
|
2865
|
+
let n = typeof t == "object" ? ce(t) : O();
|
|
2866
|
+
w(n.logLevel), ca();
|
|
2872
2867
|
}
|
|
2873
|
-
|
|
2874
|
-
var
|
|
2875
|
-
let { code: n } =
|
|
2876
|
-
return
|
|
2868
|
+
E(Xa, "initialize");
|
|
2869
|
+
var Za = /* @__PURE__ */ E((e, t = {}) => {
|
|
2870
|
+
let { code: n } = xa(e);
|
|
2871
|
+
return pa.fromText(n, t);
|
|
2877
2872
|
}, "getDiagramFromText");
|
|
2878
|
-
function
|
|
2879
|
-
|
|
2873
|
+
function Qa(e, t, n, r) {
|
|
2874
|
+
da(t, e), fa(t, n, r, t.attr("id"));
|
|
2880
2875
|
}
|
|
2881
|
-
|
|
2876
|
+
E(Qa, "addA11yInfo");
|
|
2882
2877
|
var Q = Object.freeze({
|
|
2883
|
-
render:
|
|
2884
|
-
parse:
|
|
2885
|
-
getDiagramFromText:
|
|
2886
|
-
initialize:
|
|
2878
|
+
render: Ya,
|
|
2879
|
+
parse: za,
|
|
2880
|
+
getDiagramFromText: Za,
|
|
2881
|
+
initialize: Xa,
|
|
2887
2882
|
getConfig: z,
|
|
2888
2883
|
setConfig: F,
|
|
2889
|
-
getSiteConfig:
|
|
2890
|
-
updateSiteConfig:
|
|
2891
|
-
reset: /* @__PURE__ */
|
|
2892
|
-
|
|
2884
|
+
getSiteConfig: O,
|
|
2885
|
+
updateSiteConfig: te,
|
|
2886
|
+
reset: /* @__PURE__ */ E(() => {
|
|
2887
|
+
k();
|
|
2893
2888
|
}, "reset"),
|
|
2894
|
-
globalReset: /* @__PURE__ */
|
|
2895
|
-
|
|
2889
|
+
globalReset: /* @__PURE__ */ E(() => {
|
|
2890
|
+
k(fe);
|
|
2896
2891
|
}, "globalReset"),
|
|
2897
|
-
defaultConfig:
|
|
2892
|
+
defaultConfig: fe
|
|
2898
2893
|
});
|
|
2899
|
-
|
|
2900
|
-
var
|
|
2901
|
-
|
|
2894
|
+
w(z().logLevel), k(z());
|
|
2895
|
+
var $a = /* @__PURE__ */ E((e, t, n) => {
|
|
2896
|
+
C.warn(e), h(e) ? (n && n(e.str, e.hash), t.push({
|
|
2902
2897
|
...e,
|
|
2903
2898
|
message: e.str,
|
|
2904
2899
|
error: e
|
|
@@ -2908,103 +2903,103 @@ var Qa = /* @__PURE__ */ T((e, t, n) => {
|
|
|
2908
2903
|
hash: e.name,
|
|
2909
2904
|
error: e
|
|
2910
2905
|
}));
|
|
2911
|
-
}, "handleError"),
|
|
2906
|
+
}, "handleError"), eo = /* @__PURE__ */ E(async function(e = { querySelector: ".mermaid" }) {
|
|
2912
2907
|
try {
|
|
2913
|
-
await
|
|
2908
|
+
await to(e);
|
|
2914
2909
|
} catch (t) {
|
|
2915
|
-
if (
|
|
2910
|
+
if (h(t) && C.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw C.error("Use the suppressErrors option to suppress these errors"), t;
|
|
2916
2911
|
}
|
|
2917
|
-
}, "run"),
|
|
2912
|
+
}, "run"), to = /* @__PURE__ */ E(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
|
|
2918
2913
|
let r = Q.getConfig();
|
|
2919
|
-
|
|
2914
|
+
C.debug(`${e ? "" : "No "}Callback function found`);
|
|
2920
2915
|
let i;
|
|
2921
2916
|
if (n) i = n;
|
|
2922
2917
|
else if (t) i = document.querySelectorAll(t);
|
|
2923
2918
|
else throw Error("Nodes and querySelector are both undefined");
|
|
2924
|
-
|
|
2925
|
-
let a = new
|
|
2919
|
+
C.debug(`Found ${i.length} diagrams`), r?.startOnLoad !== void 0 && (C.debug("Start On Load: " + r?.startOnLoad), Q.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
|
|
2920
|
+
let a = new g.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), o, s = [];
|
|
2926
2921
|
for (let t of Array.from(i)) {
|
|
2927
|
-
if (
|
|
2922
|
+
if (C.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
2928
2923
|
t.setAttribute("data-processed", "true");
|
|
2929
2924
|
let n = `mermaid-${a.next()}`;
|
|
2930
|
-
o = t.innerHTML, o =
|
|
2931
|
-
let r =
|
|
2932
|
-
r &&
|
|
2925
|
+
o = t.innerHTML, o = me(g.entityDecode(o)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
2926
|
+
let r = g.detectInit(o);
|
|
2927
|
+
r && C.debug("Detected early reinit: ", r);
|
|
2933
2928
|
try {
|
|
2934
|
-
let { svg: r, bindFunctions: i } = await
|
|
2929
|
+
let { svg: r, bindFunctions: i } = await fo(n, o, t);
|
|
2935
2930
|
t.innerHTML = r, e && await e(n), i && i(t);
|
|
2936
2931
|
} catch (e) {
|
|
2937
|
-
|
|
2932
|
+
$a(e, s, $.parseError);
|
|
2938
2933
|
}
|
|
2939
2934
|
}
|
|
2940
2935
|
if (s.length > 0) throw s[0];
|
|
2941
|
-
}, "runThrowsErrors"),
|
|
2936
|
+
}, "runThrowsErrors"), no = /* @__PURE__ */ E(function(e) {
|
|
2942
2937
|
Q.initialize(e);
|
|
2943
|
-
}, "initialize"),
|
|
2944
|
-
|
|
2938
|
+
}, "initialize"), ro = /* @__PURE__ */ E(async function(e, t, n) {
|
|
2939
|
+
C.warn("mermaid.init is deprecated. Please use run instead."), e && no(e);
|
|
2945
2940
|
let r = {
|
|
2946
2941
|
postRenderCallback: n,
|
|
2947
2942
|
querySelector: ".mermaid"
|
|
2948
2943
|
};
|
|
2949
|
-
typeof t == "string" ? r.querySelector = t : t && (r.nodes = t instanceof HTMLElement ? [t] : t), await
|
|
2950
|
-
}, "init"),
|
|
2951
|
-
|
|
2952
|
-
}, "registerExternalDiagrams"),
|
|
2944
|
+
typeof t == "string" ? r.querySelector = t : t && (r.nodes = t instanceof HTMLElement ? [t] : t), await eo(r);
|
|
2945
|
+
}, "init"), io = /* @__PURE__ */ E(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
2946
|
+
ca(), j(...e), t === !1 && await la();
|
|
2947
|
+
}, "registerExternalDiagrams"), ao = /* @__PURE__ */ E(function() {
|
|
2953
2948
|
if ($.startOnLoad) {
|
|
2954
2949
|
let { startOnLoad: e } = Q.getConfig();
|
|
2955
|
-
e && $.run().catch((e) =>
|
|
2950
|
+
e && $.run().catch((e) => C.error("Mermaid failed to initialize", e));
|
|
2956
2951
|
}
|
|
2957
2952
|
}, "contentLoaded");
|
|
2958
|
-
typeof document < "u" && window.addEventListener("load",
|
|
2959
|
-
var
|
|
2953
|
+
typeof document < "u" && window.addEventListener("load", ao, !1);
|
|
2954
|
+
var oo = /* @__PURE__ */ E(function(e) {
|
|
2960
2955
|
$.parseError = e;
|
|
2961
|
-
}, "setParseErrorHandler"),
|
|
2962
|
-
if (!
|
|
2963
|
-
for (
|
|
2964
|
-
let e =
|
|
2956
|
+
}, "setParseErrorHandler"), so = [], co = !1, lo = /* @__PURE__ */ E(async () => {
|
|
2957
|
+
if (!co) {
|
|
2958
|
+
for (co = !0; so.length > 0;) {
|
|
2959
|
+
let e = so.shift();
|
|
2965
2960
|
if (e) try {
|
|
2966
2961
|
await e();
|
|
2967
2962
|
} catch (e) {
|
|
2968
|
-
|
|
2963
|
+
C.error("Error executing queue", e);
|
|
2969
2964
|
}
|
|
2970
2965
|
}
|
|
2971
|
-
|
|
2966
|
+
co = !1;
|
|
2972
2967
|
}
|
|
2973
|
-
}, "executeQueue"),
|
|
2974
|
-
let i = /* @__PURE__ */
|
|
2968
|
+
}, "executeQueue"), uo = /* @__PURE__ */ E(async (e, t) => new Promise((n, r) => {
|
|
2969
|
+
let i = /* @__PURE__ */ E(() => new Promise((i, a) => {
|
|
2975
2970
|
Q.parse(e, t).then((e) => {
|
|
2976
2971
|
i(e), n(e);
|
|
2977
2972
|
}, (e) => {
|
|
2978
|
-
|
|
2973
|
+
C.error("Error parsing", e), $.parseError?.(e), a(e), r(e);
|
|
2979
2974
|
});
|
|
2980
2975
|
}), "performCall");
|
|
2981
|
-
|
|
2982
|
-
}), "parse"),
|
|
2983
|
-
let a = /* @__PURE__ */
|
|
2976
|
+
so.push(i), lo().catch(r);
|
|
2977
|
+
}), "parse"), fo = /* @__PURE__ */ E((e, t, n) => new Promise((r, i) => {
|
|
2978
|
+
let a = /* @__PURE__ */ E(() => new Promise((a, o) => {
|
|
2984
2979
|
Q.render(e, t, n).then((e) => {
|
|
2985
2980
|
a(e), r(e);
|
|
2986
2981
|
}, (e) => {
|
|
2987
|
-
|
|
2982
|
+
C.error("Error parsing", e), $.parseError?.(e), o(e), i(e);
|
|
2988
2983
|
});
|
|
2989
2984
|
}), "performCall");
|
|
2990
|
-
|
|
2985
|
+
so.push(a), lo().catch(i);
|
|
2991
2986
|
}), "render"), $ = {
|
|
2992
2987
|
startOnLoad: !0,
|
|
2993
2988
|
mermaidAPI: Q,
|
|
2994
|
-
parse:
|
|
2995
|
-
render:
|
|
2996
|
-
init:
|
|
2997
|
-
run:
|
|
2998
|
-
registerExternalDiagrams:
|
|
2999
|
-
registerLayoutLoaders:
|
|
3000
|
-
initialize:
|
|
2989
|
+
parse: uo,
|
|
2990
|
+
render: fo,
|
|
2991
|
+
init: ro,
|
|
2992
|
+
run: eo,
|
|
2993
|
+
registerExternalDiagrams: io,
|
|
2994
|
+
registerLayoutLoaders: Kn,
|
|
2995
|
+
initialize: no,
|
|
3001
2996
|
parseError: void 0,
|
|
3002
|
-
contentLoaded:
|
|
3003
|
-
setParseErrorHandler:
|
|
3004
|
-
detectType:
|
|
3005
|
-
registerIconPacks:
|
|
3006
|
-
getRegisteredDiagramsMetadata: /* @__PURE__ */
|
|
3007
|
-
},
|
|
2997
|
+
contentLoaded: ao,
|
|
2998
|
+
setParseErrorHandler: oo,
|
|
2999
|
+
detectType: se,
|
|
3000
|
+
registerIconPacks: pe,
|
|
3001
|
+
getRegisteredDiagramsMetadata: /* @__PURE__ */ E(() => Object.keys(ae).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
3002
|
+
}, po = $, mo = /* @__PURE__ */ t({ default: () => So }), ho = /* @__PURE__ */ e(r(), 1), go = a(), _o = {
|
|
3008
3003
|
startOnLoad: !0,
|
|
3009
3004
|
theme: "forest",
|
|
3010
3005
|
logLevel: "fatal",
|
|
@@ -3042,43 +3037,61 @@ var ao = /* @__PURE__ */ T(function(e) {
|
|
|
3042
3037
|
numberSectionStyles: 4,
|
|
3043
3038
|
axisFormat: "%Y-%m-%d"
|
|
3044
3039
|
}
|
|
3045
|
-
};
|
|
3046
|
-
function
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3040
|
+
}, vo = new u(64), yo = Promise.resolve();
|
|
3041
|
+
function bo(e, t) {
|
|
3042
|
+
let r = JSON.stringify([e, t]), i = vo.get(r);
|
|
3043
|
+
if (i) return i;
|
|
3044
|
+
let a = `mermaid-${xo()}`, o = () => {
|
|
3045
|
+
vo.get(r) === s && vo.delete(r);
|
|
3046
|
+
}, s = yo.then(async () => {
|
|
3047
|
+
try {
|
|
3048
|
+
await document.fonts?.ready, po.initialize(t);
|
|
3049
|
+
let { svg: n, diagramType: r } = await po.render(a, e);
|
|
3050
|
+
return r === "gantt" && o(), {
|
|
3051
|
+
svg: n,
|
|
3052
|
+
renderId: a
|
|
3053
|
+
};
|
|
3054
|
+
} catch (e) {
|
|
3055
|
+
throw o(), n.warn("Failed to render mermaid diagram", e), e;
|
|
3056
|
+
} finally {
|
|
3057
|
+
document.getElementById(a)?.remove(), document.getElementById(`d${a}`)?.remove(), document.getElementById(`i${a}`)?.remove();
|
|
3058
|
+
}
|
|
3056
3059
|
});
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
let
|
|
3064
|
-
t[
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3060
|
+
return vo.set(r, s), yo = s.catch(() => void 0), s;
|
|
3061
|
+
}
|
|
3062
|
+
function xo() {
|
|
3063
|
+
return Array.from({ length: 12 }, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("");
|
|
3064
|
+
}
|
|
3065
|
+
var So = (e) => {
|
|
3066
|
+
let t = (0, Ae.c)(13), { diagram: n, theme: r, themeVariables: i } = e, [a] = (0, ho.useState)(Co), c = o().theme === "dark", l = r ?? (c ? "dark" : "forest"), u;
|
|
3067
|
+
t[0] === n ? u = t[1] : (u = n.trim(), t[0] = n, t[1] = u);
|
|
3068
|
+
let f = u, p, m;
|
|
3069
|
+
t[2] !== c || t[3] !== a || t[4] !== l || t[5] !== i || t[6] !== f ? (p = async () => {
|
|
3070
|
+
let e = await bo(f, {
|
|
3071
|
+
..._o,
|
|
3072
|
+
theme: l,
|
|
3073
|
+
themeVariables: i,
|
|
3074
|
+
darkMode: c
|
|
3075
|
+
});
|
|
3076
|
+
return e.svg.replaceAll(e.renderId, a);
|
|
3077
|
+
}, m = [
|
|
3078
|
+
f,
|
|
3079
|
+
a,
|
|
3080
|
+
c,
|
|
3081
|
+
l,
|
|
3082
|
+
i
|
|
3083
|
+
], t[2] = c, t[3] = a, t[4] = l, t[5] = i, t[6] = f, t[7] = p, t[8] = m) : (p = t[7], m = t[8]);
|
|
3084
|
+
let { data: h, error: g } = d(p, m);
|
|
3085
|
+
if (g) {
|
|
3073
3086
|
let e;
|
|
3074
|
-
return t[
|
|
3087
|
+
return t[9] === g ? e = t[10] : (e = /* @__PURE__ */ (0, go.jsx)(s, { error: g }), t[9] = g, t[10] = e), e;
|
|
3075
3088
|
}
|
|
3076
|
-
if (!
|
|
3077
|
-
let
|
|
3078
|
-
return t[
|
|
3089
|
+
if (!h) return null;
|
|
3090
|
+
let _;
|
|
3091
|
+
return t[11] === h ? _ = t[12] : (_ = /* @__PURE__ */ (0, go.jsx)("div", { dangerouslySetInnerHTML: { __html: h } }), t[11] = h, t[12] = _), _;
|
|
3079
3092
|
};
|
|
3080
|
-
function
|
|
3081
|
-
return
|
|
3093
|
+
function Co() {
|
|
3094
|
+
return `mermaid-${xo()}`;
|
|
3082
3095
|
}
|
|
3083
3096
|
//#endregion
|
|
3084
|
-
export {
|
|
3097
|
+
export { In as a, $e as c, Ie as d, So as default, Xe as f, Nn as i, Pe as l, Jn as n, qe as o, je as p, qn as r, V as s, mo as t, Ge as u };
|