ranui 0.3.1-alpha.1 → 0.4.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/README.zh-CN.md +3 -3
- package/dist/Temml-3BKyDWY9.js +4 -0
- package/dist/Temml-B3J22Yln.cjs +1 -0
- package/dist/{abnfDiagram-VRR7QNED-CTsqwzwi.js → abnfDiagram-VRR7QNED-C21Pc9Db.js} +4 -4
- package/dist/abnfDiagram-VRR7QNED-Do5oGbAb.cjs +1 -0
- package/dist/add-user-Dk1LIZtp.cjs +6 -0
- package/dist/add-user-WnpaBGEK.js +15 -0
- package/dist/arc-ByizYZ13.cjs +1 -0
- package/dist/{arc-DRPGof21.js → arc-DJJx8BhF.js} +1 -1
- package/dist/arc-DOGcyb-0.js +9 -0
- package/dist/architecture-TIHT7OUA-BJNZJd9x.cjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-8mjyXr-w.js → architectureDiagram-ZJ3FMSHR-Dt0W9V1f.js} +7 -7
- package/dist/{architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs → architectureDiagram-ZJ3FMSHR-WH22GUwo.cjs} +2 -2
- package/dist/{arrow-down-Bi5kqUrX.js → arrow-down-DrjnnTe1.js} +4 -2
- package/dist/arrow-down-Dt-KyDFE.cjs +5 -0
- package/dist/{blockDiagram-677ZJIJ3-3F79MOSt.js → blockDiagram-677ZJIJ3-Cb0N9R3M.js} +8 -8
- package/dist/book-8PpGdTqf.cjs +1 -0
- package/dist/book-CkgJlJ4n.js +10 -0
- package/dist/build/config.d.ts +11 -2
- package/dist/builder-BjRti6oP.cjs +1 -0
- package/dist/builder.js +40 -40
- package/dist/{button-Dw6YKyNd.js → button-DFBA474n.js} +14 -12
- package/dist/button.js +1 -1
- package/dist/{c4Diagram-LMCZKHZV-Cxn_gqu_.js → c4Diagram-LMCZKHZV-CFLtikIe.js} +5 -5
- package/dist/{card-BHN9Xp4S.js → card-Cfkb7dIm.js} +13 -13
- package/dist/card.js +1 -1
- package/dist/{channel-k5-UxdcV.js → channel-B9hm3LKF.js} +1 -1
- package/dist/check-63MT_RxH.cjs +1 -0
- package/dist/check-circle-Cbsw_Ffd.cjs +1 -0
- package/dist/check-circle-Dpkv0_9Z.js +10 -0
- package/dist/check-circle-fill-DVVjVyV6.cjs +1 -0
- package/dist/check-circle-fill-eBwMoYEo.js +10 -0
- package/dist/{checkbox-O_J_n1_W.js → checkbox-CeVzf_ff.js} +15 -14
- package/dist/checkbox.js +1 -1
- package/dist/{chunk-32BRIVSS-jAuAwMVV.js → chunk-32BRIVSS-DhXCFCbM.js} +3 -3
- package/dist/{chunk-52WLFC77-wpL7en7e.js → chunk-52WLFC77-CLS2Long.js} +8 -8
- package/dist/chunk-5FCAYU7R-M2ohMDGf.cjs +1 -0
- package/dist/chunk-5HE753X5-DkUtBcPF.cjs +1 -0
- package/dist/chunk-5JV3BV7I-BAn3GEjF.cjs +1 -0
- package/dist/chunk-5TONJI2A-Bk0HPVuY.cjs +2 -0
- package/dist/chunk-BIQX33UG-CaI4JSOY.cjs +1 -0
- package/dist/{chunk-C7G6YPKG-CA-DNpvI.js → chunk-C7G6YPKG-CuJexLt7.js} +1 -1
- package/dist/chunk-CQNSW5MT-DHm86rAm.cjs +1 -0
- package/dist/chunk-CYSBUYHQ-8HNynFK-.cjs +1 -0
- package/dist/chunk-EMLP6XTP-DESFjGc5.cjs +1 -0
- package/dist/{chunk-EX3LRPZG-BCmf0iDq.js → chunk-EX3LRPZG-C-g2gFWb.js} +7 -7
- package/dist/{chunk-FWX5IMBZ-DZ5VYvm5.js → chunk-FWX5IMBZ-Cpx1Lg-4.js} +8 -8
- package/dist/{chunk-HOUHSVGY-DRQcQeMT.js → chunk-HOUHSVGY-DpvP0Kt0.js} +2 -2
- package/dist/{chunk-ICXQ74PX-DR8rL-xF.js → chunk-ICXQ74PX-DPZfA3a8.js} +3 -3
- package/dist/chunk-JG7HCLWE-DJPVQhqh.cjs +2 -0
- package/dist/{chunk-MOJQB5TN-BC46HDyu.js → chunk-MOJQB5TN-BWgg4qSh.js} +3 -3
- package/dist/chunk-MOZMSUNE-BiirTonv.cjs +1 -0
- package/dist/{chunk-OGEWGWER-BV51ll2w.js → chunk-OGEWGWER-CYsD5SNd.js} +2 -2
- package/dist/chunk-OSBZ3O6U-BDLnzsCC.cjs +1 -0
- package/dist/{chunk-PUDLZKDR-NdMR0Ft5.js → chunk-PUDLZKDR-Dw2BOPG-.js} +9 -9
- package/dist/{chunk-Q4XR5HBZ-3BHjjc9u.js → chunk-Q4XR5HBZ-D_n2NzvL.js} +4 -4
- package/dist/chunk-QBLGF6JB-DgQIhta2.cjs +1 -0
- package/dist/chunk-R7FJI6CG-BjmGc1OU.cjs +1 -0
- package/dist/{chunk-RYQCIY6F-BER2T9t0.js → chunk-RYQCIY6F-CIHQ94xS.js} +1 -1
- package/dist/chunk-U6XO7XAA-Cxdku9z7.cjs +2 -0
- package/dist/{chunk-V7JOEXUC-Cr_hr02u.js → chunk-V7JOEXUC-DNMlt0_E.js} +7 -7
- package/dist/{chunk-VAUOI2AC-izt0o4id.js → chunk-VAUOI2AC-CrgGIUR-.js} +2 -2
- package/dist/{chunk-VR4S4FIN-CJi5okl4.js → chunk-VR4S4FIN-DQsfbArk.js} +2 -2
- package/dist/{chunk-WYO6CB5R-DDHkKowO.js → chunk-WYO6CB5R-DyGmS3I6.js} +1 -1
- package/dist/{chunk-XXDRQBXY-BB1i_53q.js → chunk-XXDRQBXY-BeVLa_G2.js} +1 -1
- package/dist/chunk-YOTPTUD7-BCQ2zMB7.cjs +1 -0
- package/dist/{chunk-ZGVPDNZ5-6uMbTJXy.js → chunk-ZGVPDNZ5-DlEsNy2g.js} +7 -7
- package/dist/circle-DgoPsPmL.cjs +1 -0
- package/dist/circle-fold-CZf63cE1.js +9 -0
- package/dist/circle-fold-DGHgTbNx.cjs +1 -0
- package/dist/circle-line-DDD6hHbp.cjs +1 -0
- package/dist/circle-line-vsuTmqx8.js +9 -0
- package/dist/circle-rotate-B7JrnjYG.cjs +1 -0
- package/dist/circle-rotate-DDC3CKzB.js +9 -0
- package/dist/circle-spin-CIMhAYj5.cjs +1 -0
- package/dist/circle-spin-Djuwx9eN.js +9 -0
- package/dist/circle-turn-D1Z-dXF8.cjs +1 -0
- package/dist/circle-turn-DtYjq4Ky.js +9 -0
- package/dist/classDiagram-OUVF2IWQ-CkQt8O2B.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-CkQt8O2B.js +30 -0
- package/dist/close-CDF9aHTU.js +10 -0
- package/dist/close-Ck_jxN7T.cjs +1 -0
- package/dist/close-circle-B3lBlRHE.cjs +1 -0
- package/dist/close-circle-DZZJhaf-.js +10 -0
- package/dist/close-circle-fill-Ds9W-XNo.cjs +1 -0
- package/dist/close-circle-fill-OiY9CVOv.js +10 -0
- package/dist/colorpicker-C8vbgSta.js +250 -0
- package/dist/colorpicker.js +1 -1
- package/dist/components/icon/index.d.ts +7 -0
- package/dist/components/loading/index.d.ts +6 -29
- package/dist/components/loading/types.d.ts +11 -0
- package/dist/components/loading/variants/arc/index.d.ts +6 -0
- package/dist/components/loading/variants/circle/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-fold/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-line/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-rotate/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-spin/index.d.ts +6 -0
- package/dist/components/loading/variants/circle-turn/index.d.ts +6 -0
- package/dist/components/loading/variants/cube/index.d.ts +6 -0
- package/dist/components/loading/variants/cube-dim/index.d.ts +6 -0
- package/dist/components/loading/variants/cube-fold/index.d.ts +6 -0
- package/dist/components/loading/variants/cube-grid/index.d.ts +6 -0
- package/dist/components/loading/variants/dot/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-bar/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-circle/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-line/index.d.ts +6 -0
- package/dist/components/loading/variants/dot-pulse/index.d.ts +6 -0
- package/dist/components/loading/variants/double-bounce/index.d.ts +6 -0
- package/dist/components/loading/variants/drop/index.d.ts +6 -0
- package/dist/components/loading/variants/line/index.d.ts +6 -0
- package/dist/components/loading/variants/line-scale/index.d.ts +6 -0
- package/dist/components/loading/variants/pacman/index.d.ts +6 -0
- package/dist/components/loading/variants/pulse/index.d.ts +6 -0
- package/dist/components/loading/variants/rotate/index.d.ts +6 -0
- package/dist/components/loading/variants/scale-out/index.d.ts +6 -0
- package/dist/components/loading/variants/solar/index.d.ts +6 -0
- package/dist/components/loading/variants/square/index.d.ts +6 -0
- package/dist/components/loading/variants/stretch/index.d.ts +6 -0
- package/dist/components/loading/variants/text/index.d.ts +6 -0
- package/dist/components/loading/variants/triple-bounce/index.d.ts +6 -0
- package/dist/components/math/index.d.ts +37 -1
- package/dist/components/player/index.d.ts +0 -1
- package/dist/components/popover/index.d.ts +5 -5
- package/dist/components/select/index.d.ts +23 -0
- package/dist/{content-YOKzMoc7.js → content-WyCTQEb9.js} +7 -7
- package/dist/content.js +1 -1
- package/dist/copy-CMAYGCsm.cjs +1 -0
- package/dist/{cose-bilkent-JH36ORCC-DTwvJlGw.js → cose-bilkent-JH36ORCC-DCMxiO2H.js} +2 -2
- package/dist/cube-BHbuhZjD.cjs +1 -0
- package/dist/cube-BJr0a40o.js +9 -0
- package/dist/cube-dim-FDQVX9Sb.js +9 -0
- package/dist/cube-dim-JK8OwqXU.cjs +1 -0
- package/dist/cube-fold-68Pk6igJ.js +9 -0
- package/dist/cube-fold-DMmWEicy.cjs +1 -0
- package/dist/cube-grid-C5ONBtr1.cjs +1 -0
- package/dist/cube-grid-DTgwN5o-.js +9 -0
- package/dist/cynefin-VYW2F7L2-Yeua0tAa.cjs +1 -0
- package/dist/{cynefinDiagram-TSTJHNR4-Bjt4QTVh.js → cynefinDiagram-TSTJHNR4-B6dEjVBJ.js} +4 -4
- package/dist/{cynefinDiagram-TSTJHNR4-ISDORSxO.cjs → cynefinDiagram-TSTJHNR4-CAx-94I7.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-Dfku86Az.js → dagre-VKFMJZFB-CkNsP9vI.js} +10 -10
- package/dist/{diagram-FQU43EPY-BvQ5jmVn.js → diagram-FQU43EPY-Cefzg0En.js} +3 -3
- package/dist/{diagram-FQU43EPY-BAiRt5eL.cjs → diagram-FQU43EPY-Cn7-Jxoj.cjs} +2 -2
- package/dist/{diagram-G47NLZAW-DT2BBA0T.js → diagram-G47NLZAW-BsDJqCJu.js} +6 -6
- package/dist/{diagram-G47NLZAW-DGnmEa8u.cjs → diagram-G47NLZAW-Clm1JIiF.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-DxgkStA3.cjs → diagram-NH7WQ7WH-BQWzEBKY.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-W7jg4Vh8.js → diagram-NH7WQ7WH-DEGzjxf4.js} +4 -4
- package/dist/{diagram-OA4YK3LP-DkvFII73.cjs → diagram-OA4YK3LP-B90IV5Q-.cjs} +3 -3
- package/dist/{diagram-OA4YK3LP-jU--aqQl.js → diagram-OA4YK3LP-BZUB0lzT.js} +5 -5
- package/dist/{diagram-WEI45ONY-XvzRFmmY.cjs → diagram-WEI45ONY-B-8IP8vK.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-C_Qhf4ny.js → diagram-WEI45ONY-BURO1A6S.js} +4 -4
- package/dist/{dist-C0Fwsvsq.js → dist-9Ly83Lo6.js} +1 -1
- package/dist/dot-D8taMWFZ.cjs +1 -0
- package/dist/dot-bar-CXBmT1RL.js +9 -0
- package/dist/dot-bar-Ddbyx-0a.cjs +1 -0
- package/dist/dot-circle-DksscvAR.js +9 -0
- package/dist/dot-circle-DxoSLiz7.cjs +1 -0
- package/dist/dot-line-8Z2hpBOL.js +9 -0
- package/dist/dot-line-CKcmWaBb.cjs +1 -0
- package/dist/dot-pulse-BC7xaifX.js +9 -0
- package/dist/dot-pulse-DVwedcib.cjs +1 -0
- package/dist/double-bounce-BVGrEHLy.js +9 -0
- package/dist/double-bounce-Cxp3i6ip.cjs +1 -0
- package/dist/download-DiDwbZL3.cjs +1 -0
- package/dist/drop-CTufsC6T.js +9 -0
- package/dist/drop-DU-RgWR1.js +16 -0
- package/dist/drop-_Iz47Fmh.cjs +7 -0
- package/dist/drop-q8qufm5t.cjs +1 -0
- package/dist/{dropdown-CzGAVWYC.js → dropdown-B2Sk5gQF.js} +22 -21
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-B5ZJxr_W.cjs +1 -0
- package/dist/{ebnfDiagram-CCIWWBDH-Gnr20Oc1.js → ebnfDiagram-CCIWWBDH-B6Gh-zq6.js} +4 -4
- package/dist/{erDiagram-Q63AITRT-D0Hh9b-W.js → erDiagram-Q63AITRT-B1iQoGRH.js} +13 -13
- package/dist/eventmodeling-45OFAUF4-_fgxNekW.cjs +1 -0
- package/dist/eye-BoGpexya.cjs +4 -0
- package/dist/eye-close-DdWDFgn0.cjs +4 -0
- package/dist/eye-close-pVr4NTjX.js +13 -0
- package/dist/eye-j7jzy-2Y.js +13 -0
- package/dist/factory-Ce9hR27Y.js +653 -0
- package/dist/flowDiagram-23GEKE2U-BxyRR3qT.js +19 -0
- package/dist/{form-B8afuJlF.js → form-C0-UiXLj.js} +9 -9
- package/dist/form.js +1 -1
- package/dist/fullscreen-0HIdaZda.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-B40Eabk0.js → ganttDiagram-NO4QXBWP-BE1v5yrp.js} +6 -6
- package/dist/gitGraph-TEB2WS4Q-BlIs9PSc.cjs +1 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-BUJNSssA.js → gitGraphDiagram-IHSO6WYX-BVRc2mkM.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-DW06165m.cjs → gitGraphDiagram-IHSO6WYX-DODKoP1i.cjs} +1 -1
- package/dist/github-BjP57_Xw.js +11 -0
- package/dist/github-_spzUZUJ.cjs +2 -0
- package/dist/{glass-BniIptBE.js → glass-TzHfgesD.js} +6 -6
- package/dist/glass.js +1 -1
- package/dist/globe-0D8896Sf.js +15 -0
- package/dist/globe-DOwlStJB.cjs +6 -0
- package/dist/home-C2_ARWjR.cjs +1 -0
- package/dist/home-COHVdQmi.js +10 -0
- package/dist/i18n-B3HBw6rL.js +1 -0
- package/dist/i18n-Cf5TtRb4-BeflTU82.js +175 -0
- package/dist/i18n.js +3 -2
- package/dist/icon-BoaQYEij.js +318 -0
- package/dist/icon.js +1 -1
- package/dist/icons.js +91 -3
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +235 -2
- package/dist/iife/content.iife.js +1 -1
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -1
- package/dist/iife/icon.iife.js +238 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +238 -1
- package/dist/iife/link.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +332 -260
- package/dist/iife/mermaid.iife.js +489 -252
- package/dist/iife/message.iife.js +238 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +243 -10
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +235 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/iife/theme-switch.iife.js +1 -1
- package/dist/{image-CqoQfJoV.js → image-CNpdv9k_.js} +8 -8
- package/dist/image.js +1 -1
- package/dist/index.cjs +26 -263
- package/dist/index.d.ts +9 -0
- package/dist/index.iife.js +617 -781
- package/dist/index.js +88 -87
- package/dist/info-DKCQHKI2-Chhdpnw0.cjs +1 -0
- package/dist/info-circle-Ciy6yKz-.js +14 -0
- package/dist/info-circle-fill-ChhhmoCU.cjs +1 -0
- package/dist/info-circle-fill-D5WjbRhd.js +10 -0
- package/dist/info-circle-xp0NNK4i.cjs +5 -0
- package/dist/infoDiagram-FWYZ7A6U-D_0rNuCQ.cjs +2 -0
- package/dist/{infoDiagram-FWYZ7A6U-Dc0m9qAx.js → infoDiagram-FWYZ7A6U-Z_GyAL7u.js} +3 -3
- package/dist/input-_iNjylVC.js +195 -0
- package/dist/input.js +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-DuFtHOmf.js → ishikawaDiagram-FXEZZL3T-l087wv0C.js} +4 -4
- package/dist/issue-DF89eLmN.js +11 -0
- package/dist/issue-jx2d2kOG.cjs +2 -0
- package/dist/{journeyDiagram-5HDEW3XC-Bshelnhq.js → journeyDiagram-5HDEW3XC-DmNilMKR.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-Dogv2paU.js → kanban-definition-HUTT4EX6-CmUdDowM.js} +9 -9
- package/dist/latinmodernmath-BNPh95x3.cjs +1 -0
- package/dist/latinmodernmath-BnpcbCAh.js +4 -0
- package/dist/line-Bhz15vpy.js +9 -0
- package/dist/{line-BIPmUVxO.js → line-CteEpfCu.js} +1 -1
- package/dist/line-qgqu6ngc.cjs +1 -0
- package/dist/line-scale-CtMO8YfX.js +9 -0
- package/dist/line-scale-Dr9ILV5d.cjs +1 -0
- package/dist/{linear-B2AM4ZBe.js → linear-C8AjwHWi.js} +1 -1
- package/dist/{link-BCrmHvXP.js → link-CmMSKe18.js} +9 -9
- package/dist/link.js +1 -1
- package/dist/loading-DHQDAkef.js +116 -0
- package/dist/loading-_bxcEaz0.js +10 -0
- package/dist/loading-fDM8Celd.cjs +1 -0
- package/dist/loading-scene-DTIgBHY7.cjs +53 -0
- package/dist/loading-scene-nEgp25AV.js +62 -0
- package/dist/loading.js +1 -1
- package/dist/lock-DSKjvWfl.cjs +4 -0
- package/dist/lock-Dw1hWtdP.js +13 -0
- package/dist/math-DobANAnr.js +223 -0
- package/dist/math.js +1 -1
- package/dist/menu-DQpdpBLB.js +11 -0
- package/dist/menu-DdHtbEk4.cjs +2 -0
- package/dist/{mermaid-C1oQyPE3.js → mermaid-CwMPhttK.js} +11 -11
- package/dist/mermaid-parser.core-BgDzuhyE.cjs +3 -0
- package/dist/{mermaid.core-B2d5lQW2.js → mermaid.core-do05yX9X.js} +49 -49
- package/dist/{mermaid.core-a1hgpWfs.cjs → mermaid.core-r_D7CSaj.cjs} +2 -2
- package/dist/mermaid.js +1 -1
- package/dist/message-BFv9-X-4.js +10 -0
- package/dist/{message-CNdmbeLf.js → message-CT-at-dX.js} +24 -21
- package/dist/message-DHzOpb1d.cjs +1 -0
- package/dist/message.js +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-f7s5ZePP.js → mindmap-definition-LN4V7U3C-Mj5HCDww.js} +12 -12
- package/dist/modal-COzuPRoz.cjs +2 -0
- package/dist/{modal-gRagDkTb.js → modal-DkFW7_It.js} +12 -12
- package/dist/modal.js +1 -1
- package/dist/more-l0-w-c99.js +11 -0
- package/dist/more-tqkE9a7G.cjs +2 -0
- package/dist/packet-7NZHBO7P-BIgRfmDy.cjs +1 -0
- package/dist/pacman-C7_BcAl5.cjs +1 -0
- package/dist/pacman-DSIM9KGC.js +9 -0
- package/dist/pegDiagram-2B236MQR-CTcfU4SV.cjs +1 -0
- package/dist/{pegDiagram-2B236MQR-B-Xeh55J.js → pegDiagram-2B236MQR-Crdw8nmA.js} +4 -4
- package/dist/pie-RZYD4A2V-BJEu4CoQ.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-CVSE95zc.js → pieDiagram-ENE6RG2P-9GNsaY-6.js} +6 -6
- package/dist/{pieDiagram-ENE6RG2P-BkSiP4iu.cjs → pieDiagram-ENE6RG2P-D1QD_sOE.cjs} +2 -2
- package/dist/{player-BkkmkqR4.js → player-Dhv_QP4a.js} +112 -113
- package/dist/player.js +1 -1
- package/dist/plugins/load-svg.d.ts +16 -3
- package/dist/plus-C91b38f6.js +11 -0
- package/dist/plus-DjDn222b.cjs +2 -0
- package/dist/{popover-BZKSLe3D.js → popover-DR5ua2_I.js} +17 -15
- package/dist/popover.js +1 -1
- package/dist/power-off-CM1fKRrr.js +10 -0
- package/dist/power-off-C_Akq2D-.cjs +1 -0
- package/dist/preview-ByPt3tw_.cjs +1 -0
- package/dist/preview-CAEhg4Xl.js +10 -0
- package/dist/{progress-vk40tuhm.js → progress-BRIBVXqD.js} +13 -12
- package/dist/progress.js +1 -1
- package/dist/pulse-DNmbppj-.js +9 -0
- package/dist/pulse-QISsDmFE.cjs +1 -0
- package/dist/{quadrantDiagram-ABIIQ3AL-TJ8FmqES.js → quadrantDiagram-ABIIQ3AL-rDltxRrQ.js} +3 -3
- package/dist/{radar-Bg0cexzU.js → radar-B9eKnRw8.js} +12 -10
- package/dist/radar-I7S5WNFK-DYV5_m9_.cjs +1 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-6oFUgWYG.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-DY3xJn9p.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-DljDdad3.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-DNRdpVaC.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-0lS5wYI7.js → railroadDiagram-RFXS5EU6-B6b0YncQ.js} +4 -4
- package/dist/railroadDiagram-RFXS5EU6-DCqD-VXV.cjs +1 -0
- package/dist/refresh-CjGodz5_.cjs +1 -0
- package/dist/{requirementDiagram-TGXJPOKE-viCQLyJd.js → requirementDiagram-TGXJPOKE-BVEkrDX1.js} +12 -12
- package/dist/rolldown-runtime-DkpYurw3.js +25 -0
- package/dist/rotate-BX5qIRKZ.js +9 -0
- package/dist/rotate-VMR047YI.cjs +1 -0
- package/dist/{route-CGwS0cd_.js → route-C9sC9d8P.js} +10 -11
- package/dist/route.js +1 -1
- package/dist/{router-BK6DEkcN.js → router-CID9Dasr.js} +11 -11
- package/dist/router.js +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CV6_AuMF.js → sankeyDiagram-HTMAVEWB-C_G-oWGd.js} +2 -2
- package/dist/scale-out-DqffQsuL.js +9 -0
- package/dist/scale-out-aZu3503p.cjs +1 -0
- package/dist/{scratch-ClF1awGi.js → scratch-y8Op8fTo.js} +8 -8
- package/dist/scratch.js +1 -1
- package/dist/search-Bci4TKOK.js +11 -0
- package/dist/search-DewMt8lt.cjs +2 -0
- package/dist/{section-BL0V7Kjf.js → section-cgPwzwLR.js} +10 -10
- package/dist/section.js +1 -1
- package/dist/{select-DRKYa3W2.js → select-Bqo_7nRL.js} +52 -46
- package/dist/select.js +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-B9WNesh2.js → sequenceDiagram-DBY2YBRQ-B8lP53eo.js} +5 -5
- package/dist/setting-BlJhorAQ.cjs +1 -0
- package/dist/setting-RhW6oH2c.js +10 -0
- package/dist/{skeleton-D7JIbROq.js → skeleton-wq2ybbYv.js} +9 -9
- package/dist/skeleton.js +1 -1
- package/dist/solar-BPmDmWLU.js +9 -0
- package/dist/solar-DaoF834l.cjs +1 -0
- package/dist/sort-CZTjWeHC.cjs +7 -0
- package/dist/sort-tAqAKb3x.js +16 -0
- package/dist/sprite-DHG11_c7.cjs +138 -0
- package/dist/sprite-ICuni2rO.js +147 -0
- package/dist/square-DKQ0d_O6.js +9 -0
- package/dist/square-DiBkWYAH.cjs +1 -0
- package/dist/{src-DtRLxcYO.js → src-CM-0IT-N.js} +1 -1
- package/dist/ssg.js +1 -1
- package/dist/ssr-stream.js +1 -1
- package/dist/{ssr-DSGwPtEd.js → ssr-vZNJHtYm.js} +5 -5
- package/dist/ssr.js +1 -1
- package/dist/{stateDiagram-2N3HPSRC-DxH4BMSh.js → stateDiagram-2N3HPSRC-DzG4g-Br.js} +15 -15
- package/dist/stateDiagram-v2-6OUMAXLB-tbh4Ib6Z.js +30 -0
- package/dist/stretch-BXJ4labN.js +9 -0
- package/dist/stretch-LP22YEA3.cjs +1 -0
- package/dist/{swimlanes-5IMT3BWC-DcADNGpg.js → swimlanes-5IMT3BWC-CQpI-vXu.js} +10 -10
- package/dist/swimlanesDiagram-G3AALYLV-C_mEClzT.js +31 -0
- package/dist/{tab-DFVtDJb2.js → tab-DMUILL_2.js} +12 -12
- package/dist/tab.js +1 -1
- package/dist/{tabpane-C3qZGN-D.js → tabpane-R8Kyn9jv.js} +11 -11
- package/dist/tabpane.js +1 -1
- package/dist/team-DshvOQrF.cjs +1 -0
- package/dist/team-oJOYGlHy.js +10 -0
- package/dist/temml-DKTWcsY9.js +9934 -0
- package/dist/temml-qMLYhcAb.cjs +96 -0
- package/dist/test/e2e/helpers.d.ts +32 -0
- package/dist/test/unit/select-ssr-upgrade.test.d.ts +1 -0
- package/dist/text-8gI5TFOa.js +17 -0
- package/dist/text-C_XRjuGr.cjs +1 -0
- package/dist/theme-DAG2-N5e.js +52 -0
- package/dist/{theme-switch-BXNH5uPD.js → theme-switch-D3MpVw-R.js} +16 -17
- package/dist/theme-switch.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timeline-definition-FHXFAJF6-C80VjPLh.js → timeline-definition-FHXFAJF6-JZu2t9NH.js} +5 -5
- package/dist/treeView-QDETBFTQ-JVYSN7d-.cjs +1 -0
- package/dist/treemap-6X3UGDF4-ChqvozdN.cjs +1 -0
- package/dist/triple-bounce-CMwTsw-f.js +9 -0
- package/dist/triple-bounce-CNjk5imb.cjs +1 -0
- package/dist/typings.d.ts +9 -0
- package/dist/unlock-B6Kz8QUC.cjs +4 -0
- package/dist/unlock-DMG2IKZP.js +13 -0
- package/dist/user-BvjpVTOP.js +10 -0
- package/dist/user-CNTRFuXZ.cjs +1 -0
- package/dist/utils/builder/escape.d.ts +6 -1
- package/dist/utils/dom.d.ts +2 -15
- package/dist/utils/i18n/index.d.ts +2 -69
- package/dist/utils/i18n.js +5 -87
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/style.d.ts +7 -5
- package/dist/utils-DqjNwwjC.js +48 -0
- package/dist/utils-nntJky78.js +646 -0
- package/dist/{vennDiagram-L72KCM5P-BYHB7OW8.js → vennDiagram-L72KCM5P-DM6fQj7p.js} +4 -4
- package/dist/wardley-OPB4EBWU-BI6su3co.cjs +1 -0
- package/dist/{wardleyDiagram-EHGQE667--ubmCaWM.js → wardleyDiagram-EHGQE667-CzH0l2vj.js} +4 -4
- package/dist/{wardleyDiagram-EHGQE667-K6ckkRZS.cjs → wardleyDiagram-EHGQE667-ZMxVQw17.cjs} +2 -2
- package/dist/warning-circle-2Ni7fSPp.js +10 -0
- package/dist/warning-circle-CxDUN_Pg.cjs +1 -0
- package/dist/warning-circle-fill-CNmn_n74.js +10 -0
- package/dist/warning-circle-fill-CRKQ8eDt.cjs +1 -0
- package/dist/without-content-BCQsfG1Q.cjs +1 -0
- package/dist/without-content-C7ATBu1N.js +10 -0
- package/dist/{xychartDiagram-FW5EYKEG-DLqWcTPt.js → xychartDiagram-FW5EYKEG-GL1uK3EN.js} +8 -8
- package/dist/zoom-in-BLTVwnRI.cjs +1 -0
- package/dist/zoom-out-BIXvVAC9.cjs +1 -0
- package/docs/COMPONENTS.md +5 -5
- package/package.json +119 -35
- package/typings.d.ts +9 -0
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +0 -1
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +0 -1
- package/dist/builtin-1lUEp_ro.js +0 -416
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +0 -30
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +0 -30
- package/dist/colorpicker-CKA4xN-g.js +0 -314
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +0 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +0 -1
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +0 -1
- package/dist/factory-ZNhcQ4tf.js +0 -482
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +0 -19
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +0 -1
- package/dist/icon-GZrfSeon.js +0 -256
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +0 -1
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +0 -2
- package/dist/input-ZY2Wumze.js +0 -195
- package/dist/katex-es-BTpuCxxV.cjs +0 -261
- package/dist/katex-es-CKRwcaiU.js +0 -23682
- package/dist/loading-M6gWxLbm.js +0 -206
- package/dist/math-8E-45Y8e.js +0 -52
- package/dist/mermaid-parser.core-DYumW1vq.cjs +0 -6
- package/dist/mocks-CMGoftIc.js +0 -179
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +0 -1
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +0 -1
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +0 -1
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +0 -1
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +0 -1
- package/dist/rolldown-runtime-9ZSF5uba.js +0 -16
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +0 -30
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +0 -31
- package/dist/test/unit/colorpicker.color.utils.test.d.ts +0 -1
- package/dist/test/unit/utils.math.test.d.ts +0 -1
- package/dist/test/unit/utils.tween.test.d.ts +0 -1
- package/dist/theme-kOWZbKCq.js +0 -70
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +0 -1
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +0 -1
- package/dist/utils/color.d.ts +0 -52
- package/dist/utils/image.d.ts +0 -39
- package/dist/utils/math.d.ts +0 -26
- package/dist/utils/tween.d.ts +0 -21
- package/dist/utils-D1iZnChu.js +0 -614
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +0 -1
- package/dist/warning-circle-fill-Cz0qu7AH.js +0 -23
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { _ as i, i as s } from "./factory-Ce9hR27Y.js";
|
|
2
|
+
import { t as h } from "./events-C59wGdni.js";
|
|
3
|
+
import { a as p, n as u } from "./ssr-vZNJHtYm.js";
|
|
4
|
+
import { a as n, i as m, n as b, o as f, r as o, t as g } from "./utils-DqjNwwjC.js";
|
|
5
|
+
import "./icon-BoaQYEij.js";
|
|
6
|
+
var w = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-math-display, block);color:var(--ran-math-color, var(--ran-color-text, inherit));position:var(--ran-math-position, relative)}:host([display="inline"]){display:var(--ran-math-inline-display, inline-block)}.ran-math{position:relative;text-align:var(--ran-math-align, center)}:host([display="inline"]) .ran-math{text-align:initial}.ran-math-error{margin:0;padding:var(--ran-math-error-padding, 8px 12px);color:var(--ran-math-error-color, var(--ran-color-danger, #e5484d));background:var(--ran-math-error-background, var(--ran-gray-alpha-100, rgba(0, 0, 0, .04)));border-radius:var(--ran-radius-sm, 6px);font-family:var(--ran-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-size:13px;line-height:1.5;white-space:pre-wrap;word-break:break-word;text-align:left}.ran-math-toolbar{position:absolute;top:var(--ran-math-toolbar-top, 6px);right:var(--ran-math-toolbar-right, 6px);display:none;gap:var(--ran-math-toolbar-gap, 4px);padding:4px;border-radius:var(--ran-radius-md, 8px);background:var(--ran-math-toolbar-background, var(--ran-color-bg-elevated, #fff));box-shadow:var(--ran-math-toolbar-shadow, var(--ran-shadow-menu, 0 2px 8px rgba(0, 0, 0, .12)));opacity:0;transition:opacity .15s ease;pointer-events:none}.ran-math.has-controls .ran-math-toolbar{display:flex}.ran-math:hover .ran-math-toolbar,.ran-math-toolbar:focus-within{opacity:1;pointer-events:auto}.ran-math-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--ran-math-button-size, 28px);height:var(--ran-math-button-size, 28px);padding:0;border:none;border-radius:var(--ran-radius-sm, 6px);background:transparent;color:var(--ran-math-button-color, var(--ran-color-text-secondary, #666));cursor:pointer}.ran-math-btn:hover{background:var(--ran-math-button-hover-background, var(--ran-color-bg-muted, rgba(0, 0, 0, .06)));color:var(--ran-math-button-hover-color, var(--ran-color-text, #222))}.ran-math-btn:focus-visible{outline:var(--ran-math-button-focus-outline, 2px solid var(--ran-color-primary, #1890ff));outline-offset:1px}.ran-math-menu{position:absolute;top:var(--ran-math-menu-top, 40px);right:var(--ran-math-toolbar-right, 6px);display:flex;flex-direction:column;min-width:132px;padding:4px;border-radius:var(--ran-radius-md, 8px);background:var(--ran-math-toolbar-background, var(--ran-color-bg-elevated, #fff));box-shadow:var(--ran-math-toolbar-shadow, var(--ran-shadow-menu, 0 2px 8px rgba(0, 0, 0, .12)));z-index:1;text-align:left}.ran-math-menu-item{padding:6px 10px;border:none;border-radius:var(--ran-radius-sm, 6px);background:transparent;color:var(--ran-math-menu-item-color, var(--ran-color-text, #222));text-align:left;font-size:13px;cursor:pointer}.ran-math-menu-item:hover{background:var(--ran-math-button-hover-background, var(--ran-color-bg-muted, rgba(0, 0, 0, .06)))}@media(prefers-reduced-motion:reduce){.ran-math-toolbar{transition:none}}', v = `math{font-family:"Latin Modern Math","Cambria Math",STIXTwoMath-Regular,NotoSansMath-Regular,math;font-style:normal;font-weight:400;line-height:normal;font-size-adjust:none;text-indent:0;text-transform:none;letter-spacing:normal;word-wrap:normal;direction:ltr;font-feature-settings:"dtls" off}math *{border-color:currentColor}math.tml-display{display:block;width:100%}*.mathcal{font-feature-settings:"ss01"}math .mathscr{font-family:Temml}mo.tml-prime{font-family:Temml}mfrac>:nth-child(2),msqrt,mover>:first-child{math-shift:compact}.menclose{display:inline-block;position:relative;padding:.5ex 0ex}.tml-cancelto{display:inline-block;position:absolute;top:0;left:0;padding:.5ex 0ex;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='black' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%25' y1='100%25' stroke='black' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='black' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%25' y1='100%25' stroke='black' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-position:0 0;mask-position:0 0}@supports (-moz-appearance: none){.tml-vec{transform:scale(.75)}.ff-narrow{width:0em}.ff-nudge-left{margin-left:-.2em}.ff-squash mtd{display:block;height:0}}@supports (not (-moz-appearance: none)){mo.tml-prime{font-family:Temml}.tml-sml-pad{padding-left:.05em}.tml-med-pad{padding-left:.1em}.tml-lrg-pad{padding-left:.15em}}@supports (-webkit-backdrop-filter: blur(1px)){.wbk-acc{transform:translateY(.431em)}.wbk-sml{transform:translate(.07em)}.wbk-sml-acc{transform:translate(.07em,.431em)}.wbk-sml-vec{transform:scale(.75) translate(.07em)}.wbk-med{transform:translate(.14em)}.wbk-med-acc{transform:translate(.14em,.431em)}.wbk-med-vec{transform:scale(.75) translate(.14em)}.wbk-lrg{transform:translate(.21em)}.wbk-lrg-acc{transform:translate(.21em,.431em)}.wbk-lrg-vec{transform:scale(.75) translate(.21em)}}menclose{-webkit-print-color-adjust:exact;print-color-adjust:exact}.tml-right{text-align:right}.tml-left{text-align:left}.tml-shift-left{margin-left:-200%}@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)){.chr-sml{transform:translate(.07em)}.chr-sml-vec{transform:scale(.75) translate(.07em)}.chr-med{transform:translate(.14em)}.chr-med-vec{transform:scale(.75) translate(.14em)}.chr-lrg{transform:translate(.21em)}.chr-lrg-vec{transform:scale(.75) translate(.21em)}.tml-shift-left{margin-left:-100%}menclose{position:relative;padding:.5ex 0ex}.tml-overline{padding:.1em 0 0;border-top:.065em solid}.tml-underline{padding:0 0 .1em;border-bottom:.065em solid}.tml-cancel{display:inline-block;position:absolute;left:.5px;bottom:0;width:100%;height:100%;background-color:currentColor}.upstrike{clip-path:polygon(.05em 100%,0em calc(100% - .05em),calc(100% - .05em) 0em,100% .05em)}.downstrike{clip-path:polygon(0em .05em,.05em 0em,100% calc(100% - .05em),calc(100% - .05em) 100%)}.sout{clip-path:polygon(0em calc(55% + .0333em),0em calc(55% - .0333em),100% calc(55% - .0333em),100% calc(55% + .0333em))}.tml-xcancel{clip-path:polygon(.05em 0em,0em .05em,calc(50% - .05em) 50%,0em calc(100% - .05em),.05em 100%,50% calc(50% + .05em),calc(100% - .05em) 100%,100% calc(100% - .05em),calc(50% + .05em) 50%,100% .05em,calc(100% - .05em) 0%,50% calc(50% - .05em))}.longdiv-top{border-top:.067em solid;padding:.1em .2em .2em .433em}.longdiv-arc{position:absolute;top:0;bottom:.1em;left:-.4em;width:.7em;border:.067em solid;transform:translateY(-.067em);border-radius:70%;clip-path:inset(0 0 0 .4em);box-sizing:border-box}.menclose{display:inline-block;text-align:left;position:relative}.phasor-bottom{border-bottom:.067em solid;padding:.2em .2em .1em .6em}.phasor-angle{display:inline-block;position:absolute;left:.5px;bottom:-.04em;height:100%;aspect-ratio:.5;background-color:currentColor;clip-path:polygon(.05em 100%,0em calc(100% - .05em),calc(100% - .05em) 0em,100% .05em)}.tml-fbox{padding:3pt;border:1px solid}.circle-pad{padding:.267em}.textcircle{position:absolute;inset:0;border:.067em solid;border-radius:50%}.actuarial{padding:.03889em .03889em 0;border-width:.08em .08em 0em 0em;border-style:solid;margin-right:.03889em}.tml-crooked-2{transform:scale(2,1.1)}.tml-crooked-3{transform:scale(3,1.3)}.tml-crooked-4{transform:scale(4,1.4)}.tml-right{text-align:-webkit-right}.tml-left{text-align:-webkit-left}}.special-fraction{font-family:STIX TWO,Times New Roman,Times,Tinos,serif}math{display:inline-flex;flex-wrap:wrap;align-items:baseline}math>mrow{padding:.5ex 0ex}mtable.tml-jot mtd{padding-top:.7ex;padding-bottom:.7ex}mtable.tml-small mtd{padding-top:.35ex;padding-bottom:.35ex}@-moz-document url-prefix(){math{display:inline}math>mrow{padding:0}mtd,mtable.tml-small mtd{padding-top:0;padding-bottom:0}mtable.tml-jot mtd{padding-top:.2ex;padding-bottom:0ex}}.tml-eqn:before{counter-increment:tmlEqnNo;content:"(" counter(tmlEqnNo) ")"}:host{counter-reset:tmlEqnNo}`, c = "ran-math-fonts", d = !1, x = async () => {
|
|
7
|
+
if (typeof document > "u" || d) return;
|
|
8
|
+
d = !0;
|
|
9
|
+
const [{ default: t }, { default: e }] = await Promise.all([import("./latinmodernmath-BnpcbCAh.js"), import("./Temml-3BKyDWY9.js")]);
|
|
10
|
+
if (document.getElementById(c)) return;
|
|
11
|
+
const a = document.createElement("style");
|
|
12
|
+
a.id = c, a.textContent = `@font-face{font-family:'Latin Modern Math';src:url(${t}) format('woff2');font-weight:normal;font-style:normal;font-display:swap;}@font-face{font-family:'Temml';src:url(${e}) format('woff2');font-weight:normal;font-style:normal;font-display:swap;}`, (document.head || document.documentElement).appendChild(a);
|
|
13
|
+
}, y = class extends u {
|
|
14
|
+
_events = new h();
|
|
15
|
+
_shadowDom;
|
|
16
|
+
_wrap;
|
|
17
|
+
contain;
|
|
18
|
+
_toolbar;
|
|
19
|
+
_copyResetTimer;
|
|
20
|
+
_downloadMenu;
|
|
21
|
+
static get observedAttributes() {
|
|
22
|
+
return [
|
|
23
|
+
"latex",
|
|
24
|
+
"display",
|
|
25
|
+
"font",
|
|
26
|
+
"macros",
|
|
27
|
+
"wrap",
|
|
28
|
+
"copy",
|
|
29
|
+
"download",
|
|
30
|
+
"sheet"
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
constructor() {
|
|
34
|
+
super(), this._shadowDom = b(this, `${w}
|
|
35
|
+
${v}`), this._wrap = g(this._shadowDom, ".ran-math", () => s().class("ran-math").part("math").children(s().class("ran-math-render").part("render"), s().class("ran-math-toolbar").part("toolbar")).build()), this.contain = this._wrap.querySelector(".ran-math-render"), this._toolbar = this._wrap.querySelector(".ran-math-toolbar");
|
|
36
|
+
}
|
|
37
|
+
get latex() {
|
|
38
|
+
const t = o(this, "latex");
|
|
39
|
+
if (t) try {
|
|
40
|
+
return decodeURIComponent(t);
|
|
41
|
+
} catch {
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
return (this.textContent || "").trim();
|
|
45
|
+
}
|
|
46
|
+
set latex(t) {
|
|
47
|
+
n(this, "latex", encodeURIComponent(t));
|
|
48
|
+
}
|
|
49
|
+
get display() {
|
|
50
|
+
return o(this, "display") || "block";
|
|
51
|
+
}
|
|
52
|
+
set display(t) {
|
|
53
|
+
n(this, "display", t);
|
|
54
|
+
}
|
|
55
|
+
get font() {
|
|
56
|
+
return o(this, "font");
|
|
57
|
+
}
|
|
58
|
+
set font(t) {
|
|
59
|
+
n(this, "font", t);
|
|
60
|
+
}
|
|
61
|
+
get macros() {
|
|
62
|
+
const t = o(this, "macros");
|
|
63
|
+
if (t)
|
|
64
|
+
try {
|
|
65
|
+
const e = JSON.parse(t);
|
|
66
|
+
return e && typeof e == "object" ? e : void 0;
|
|
67
|
+
} catch {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
set macros(t) {
|
|
72
|
+
n(this, "macros", typeof t == "string" ? t : t ? JSON.stringify(t) : null);
|
|
73
|
+
}
|
|
74
|
+
get wrap() {
|
|
75
|
+
const t = o(this, "wrap");
|
|
76
|
+
return t === "none" || t === "tex" || t === "=" ? t : void 0;
|
|
77
|
+
}
|
|
78
|
+
set wrap(t) {
|
|
79
|
+
n(this, "wrap", t);
|
|
80
|
+
}
|
|
81
|
+
get copyable() {
|
|
82
|
+
return this.hasAttribute("copy");
|
|
83
|
+
}
|
|
84
|
+
set copyable(t) {
|
|
85
|
+
m(this, "copy", t);
|
|
86
|
+
}
|
|
87
|
+
get copyTarget() {
|
|
88
|
+
return o(this, "copy") === "mathml" ? "mathml" : "source";
|
|
89
|
+
}
|
|
90
|
+
get downloadable() {
|
|
91
|
+
return this.hasAttribute("download");
|
|
92
|
+
}
|
|
93
|
+
set downloadable(t) {
|
|
94
|
+
m(this, "download", t);
|
|
95
|
+
}
|
|
96
|
+
get sheet() {
|
|
97
|
+
return o(this, "sheet");
|
|
98
|
+
}
|
|
99
|
+
set sheet(t) {
|
|
100
|
+
n(this, "sheet", t);
|
|
101
|
+
}
|
|
102
|
+
label(t, e) {
|
|
103
|
+
return o(this, `label-${t}`) || e;
|
|
104
|
+
}
|
|
105
|
+
emit(t, e) {
|
|
106
|
+
this.dispatchEvent(new CustomEvent(t, {
|
|
107
|
+
detail: e,
|
|
108
|
+
bubbles: !0,
|
|
109
|
+
composed: !0
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
handlerExternalCss = () => {
|
|
113
|
+
f(this, this._shadowDom, "sheet", null, this.sheet);
|
|
114
|
+
};
|
|
115
|
+
showError(t) {
|
|
116
|
+
this.contain.innerHTML = "";
|
|
117
|
+
const e = i("pre").class("ran-math-error").part("error").build();
|
|
118
|
+
e.textContent = t, this.contain.appendChild(e), this._toolbar.innerHTML = "", this._wrap.classList.remove("has-controls"), this.emit("error", { message: t });
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
const t = this.latex;
|
|
122
|
+
if (!t) {
|
|
123
|
+
this.contain.innerHTML = "", this._toolbar.innerHTML = "", this._wrap.classList.remove("has-controls");
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this.font !== "system" && x().catch(() => {
|
|
127
|
+
}), import("./temml-DKTWcsY9.js").then(({ default: e }) => {
|
|
128
|
+
try {
|
|
129
|
+
const a = {
|
|
130
|
+
displayMode: this.display !== "inline",
|
|
131
|
+
throwOnError: !0,
|
|
132
|
+
annotate: !0
|
|
133
|
+
}, r = this.macros;
|
|
134
|
+
r && (a.macros = r);
|
|
135
|
+
const l = this.wrap;
|
|
136
|
+
l && (a.wrap = l), this.contain.innerHTML = e.renderToString(t, a), this.buildToolbar(), this.emit("render", { ok: !0 });
|
|
137
|
+
} catch (a) {
|
|
138
|
+
this.showError(String(a?.message || a));
|
|
139
|
+
}
|
|
140
|
+
}).catch((e) => this.showError(e.message));
|
|
141
|
+
}
|
|
142
|
+
iconButton(t, e, a) {
|
|
143
|
+
const r = i("button").class("ran-math-btn").part("button").attr("type", "button").attr("aria-label", e).attr("title", e).children(i("r-icon").attr("name", t).attr("size", "16").attr("color", "currentColor")).build();
|
|
144
|
+
return this._events.on(r, "click", a), r;
|
|
145
|
+
}
|
|
146
|
+
buildToolbar() {
|
|
147
|
+
this.closeDownloadMenu(), this._toolbar.innerHTML = "";
|
|
148
|
+
const t = [];
|
|
149
|
+
if (this.copyable) {
|
|
150
|
+
const e = this.copyTarget === "mathml" ? "Copy MathML" : "Copy LaTeX";
|
|
151
|
+
t.push(this.iconButton("copy", this.label("copy", e), this.copyContent));
|
|
152
|
+
}
|
|
153
|
+
this.downloadable && t.push(this.iconButton("download", this.label("download", "Download"), this.onDownload)), t.forEach((e) => this._toolbar.appendChild(e)), this._wrap.classList.toggle("has-controls", t.length > 0);
|
|
154
|
+
}
|
|
155
|
+
currentMathML() {
|
|
156
|
+
const t = this.contain.querySelector("math");
|
|
157
|
+
return t ? t.outerHTML : "";
|
|
158
|
+
}
|
|
159
|
+
copyContent = () => {
|
|
160
|
+
const t = this.copyTarget, e = t === "mathml" ? this.currentMathML() : this.latex;
|
|
161
|
+
!e || !navigator.clipboard || navigator.clipboard.writeText(e).then(() => {
|
|
162
|
+
this.emit("copied", { kind: t });
|
|
163
|
+
const a = this._toolbar.querySelector('r-icon[name="copy"]');
|
|
164
|
+
a && (a.setAttribute("name", "check"), window.clearTimeout(this._copyResetTimer), this._copyResetTimer = window.setTimeout(() => a.setAttribute("name", "copy"), 1200));
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
downloadFormats() {
|
|
168
|
+
const t = o(this, "download").trim();
|
|
169
|
+
return (t ? t.split(/\s+/) : ["source", "mathml"]).filter((e) => e === "source" || e === "mathml");
|
|
170
|
+
}
|
|
171
|
+
onDownload = () => {
|
|
172
|
+
const t = this.downloadFormats();
|
|
173
|
+
t.length <= 1 ? this.triggerDownload(t[0] || "mathml") : this.toggleDownloadMenu();
|
|
174
|
+
};
|
|
175
|
+
triggerDownload(t) {
|
|
176
|
+
t === "source" ? this.downloadSource() : this.downloadMathML();
|
|
177
|
+
}
|
|
178
|
+
saveBlob(t, e) {
|
|
179
|
+
const a = URL.createObjectURL(t), r = document.createElement("a");
|
|
180
|
+
r.href = a, r.download = e, r.click(), URL.revokeObjectURL(a);
|
|
181
|
+
}
|
|
182
|
+
downloadSource() {
|
|
183
|
+
const t = this.latex;
|
|
184
|
+
t && (this.saveBlob(new Blob([t], { type: "application/x-tex;charset=utf-8" }), "formula.tex"), this.emit("download", { format: "source" }));
|
|
185
|
+
}
|
|
186
|
+
downloadMathML() {
|
|
187
|
+
const t = this.currentMathML();
|
|
188
|
+
t && (this.saveBlob(new Blob([`<?xml version="1.0" encoding="UTF-8"?>
|
|
189
|
+
${t}`], { type: "application/mathml+xml;charset=utf-8" }), "formula.mml"), this.emit("download", { format: "mathml" }));
|
|
190
|
+
}
|
|
191
|
+
toggleDownloadMenu() {
|
|
192
|
+
if (this._downloadMenu) {
|
|
193
|
+
this.closeDownloadMenu();
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const t = s().class("ran-math-menu").part("menu").build(), e = {
|
|
197
|
+
source: this.label("download-source", "Source (.tex)"),
|
|
198
|
+
mathml: this.label("download-mathml", "MathML (.mml)")
|
|
199
|
+
};
|
|
200
|
+
this.downloadFormats().forEach((a) => {
|
|
201
|
+
const r = i("button").class("ran-math-menu-item").attr("type", "button").build();
|
|
202
|
+
r.textContent = e[a] || a, this._events.on(r, "click", () => {
|
|
203
|
+
this.triggerDownload(a), this.closeDownloadMenu();
|
|
204
|
+
}), t.appendChild(r);
|
|
205
|
+
}), this._wrap.appendChild(t), this._downloadMenu = t;
|
|
206
|
+
}
|
|
207
|
+
closeDownloadMenu = () => {
|
|
208
|
+
this._downloadMenu?.remove(), this._downloadMenu = void 0;
|
|
209
|
+
};
|
|
210
|
+
connectedCallback() {
|
|
211
|
+
this.handlerExternalCss(), this.render(), this._events.on(this._wrap, "mouseleave", this.closeDownloadMenu);
|
|
212
|
+
}
|
|
213
|
+
disconnectedCallback() {
|
|
214
|
+
this._events.abort(), window.clearTimeout(this._copyResetTimer), this.closeDownloadMenu();
|
|
215
|
+
}
|
|
216
|
+
attributeChangedCallback(t, e, a) {
|
|
217
|
+
e !== a && (t === "latex" || t === "display" || t === "font" || t === "macros" || t === "wrap" ? this.render() : t === "copy" || t === "download" ? this.buildToolbar() : t === "sheet" && this.handlerExternalCss());
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
p("r-math", y);
|
|
221
|
+
export {
|
|
222
|
+
y as t
|
|
223
|
+
};
|
package/dist/math.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as t } from "./rolldown-runtime-DkpYurw3.js";
|
|
2
|
+
var s = /* @__PURE__ */ t({ default: () => e }), e = {
|
|
3
|
+
success: !0,
|
|
4
|
+
_identification: !0,
|
|
5
|
+
data: `<svg t="1738854981595" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3846" width="200" height="200"><path d="M128 170.666667h768v85.333333H128V170.666667z m0 298.666666h768v85.333334H128v-85.333334z m0 298.666667h768v85.333333H128v-85.333333z" p-id="3847" fill="currentColor"></path></svg>
|
|
6
|
+
`
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
s as n,
|
|
10
|
+
e as t
|
|
11
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t=require("./rolldown-runtime-CAnuVJ4g.cjs");var r=t.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:`<svg t="1738854981595" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3846" width="200" height="200"><path d="M128 170.666667h768v85.333333H128V170.666667z m0 298.666666h768v85.333334H128v-85.333334z m0 298.666667h768v85.333333H128v-85.333333z" p-id="3847" fill="currentColor"></path></svg>
|
|
2
|
+
`};Object.defineProperty(exports,"menu_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"menu_exports",{enumerable:!0,get:function(){return r}});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import "./icon-
|
|
6
|
-
var O = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:block}.ran-mermaid{position:relative;padding:var(--ran-mermaid-padding, 0)}.ran-mermaid-diagram{display:flex;justify-content:center;overflow-x:auto}.ran-mermaid-diagram svg{max-width:100%;height:auto}.ran-mermaid-toolbar{position:absolute;top:var(--ran-mermaid-toolbar-top, 8px);right:var(--ran-mermaid-toolbar-right, 8px);display:none;gap:var(--ran-mermaid-toolbar-gap, 4px);padding:4px;border-radius:var(--ran-radius-md, 8px);background:var(--ran-mermaid-toolbar-background, var(--ran-color-bg-elevated, #fff));box-shadow:var(--ran-mermaid-toolbar-shadow, var(--ran-shadow-menu, 0 2px 8px rgba(0, 0, 0, .12)));opacity:0;transition:opacity .15s ease;pointer-events:none}.ran-mermaid.has-controls .ran-mermaid-toolbar{display:flex}.ran-mermaid:hover .ran-mermaid-toolbar,.ran-mermaid-toolbar:focus-within{opacity:1;pointer-events:auto}.ran-mermaid-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--ran-mermaid-button-size, 28px);height:var(--ran-mermaid-button-size, 28px);padding:0;border:none;border-radius:var(--ran-radius-sm, 6px);background:transparent;color:var(--ran-mermaid-button-color, var(--ran-color-text-secondary, #666));cursor:pointer}.ran-mermaid-btn:hover{background:var(--ran-mermaid-button-hover-background, var(--ran-color-bg-muted, rgba(0, 0, 0, .06)));color:var(--ran-mermaid-button-hover-color, var(--ran-color-text, #222))}.ran-mermaid-btn:focus-visible{outline:var(--ran-mermaid-button-focus-outline, 2px solid var(--ran-color-primary, #1890ff));outline-offset:1px}.ran-mermaid-menu{position:absolute;top:var(--ran-mermaid-menu-top, 44px);right:var(--ran-mermaid-toolbar-right, 8px);display:flex;flex-direction:column;min-width:132px;padding:4px;border-radius:var(--ran-radius-md, 8px);background:var(--ran-mermaid-toolbar-background, var(--ran-color-bg-elevated, #fff));box-shadow:var(--ran-mermaid-toolbar-shadow, var(--ran-shadow-menu, 0 2px 8px rgba(0, 0, 0, .12)));z-index:1}.ran-mermaid-menu-item{padding:6px 10px;border:none;border-radius:var(--ran-radius-sm, 6px);background:transparent;color:var(--ran-mermaid-menu-item-color, var(--ran-color-text, #222));text-align:left;font-size:13px;cursor:pointer}.ran-mermaid-menu-item:hover{background:var(--ran-mermaid-button-hover-background, var(--ran-color-bg-muted, rgba(0, 0, 0, .06)))}.ran-mermaid-error{margin:0;padding:12px;color:var(--ran-mermaid-error-color, #c0392b);white-space:pre-wrap;font-size:13px}", U = 0, j = class extends
|
|
7
|
-
_events = new
|
|
1
|
+
import { _ as h, i as d } from "./factory-Ce9hR27Y.js";
|
|
2
|
+
import { t as T } from "./events-C59wGdni.js";
|
|
3
|
+
import { a as R, n as D } from "./ssr-vZNJHtYm.js";
|
|
4
|
+
import { a as x, i as y, n as A, o as z, r as b, t as B } from "./utils-DqjNwwjC.js";
|
|
5
|
+
import "./icon-BoaQYEij.js";
|
|
6
|
+
var O = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:block}.ran-mermaid{position:relative;padding:var(--ran-mermaid-padding, 0)}.ran-mermaid-diagram{display:flex;justify-content:center;overflow-x:auto}.ran-mermaid-diagram svg{max-width:100%;height:auto}.ran-mermaid-toolbar{position:absolute;top:var(--ran-mermaid-toolbar-top, 8px);right:var(--ran-mermaid-toolbar-right, 8px);display:none;gap:var(--ran-mermaid-toolbar-gap, 4px);padding:4px;border-radius:var(--ran-radius-md, 8px);background:var(--ran-mermaid-toolbar-background, var(--ran-color-bg-elevated, #fff));box-shadow:var(--ran-mermaid-toolbar-shadow, var(--ran-shadow-menu, 0 2px 8px rgba(0, 0, 0, .12)));opacity:0;transition:opacity .15s ease;pointer-events:none}.ran-mermaid.has-controls .ran-mermaid-toolbar{display:flex}.ran-mermaid:hover .ran-mermaid-toolbar,.ran-mermaid-toolbar:focus-within{opacity:1;pointer-events:auto}.ran-mermaid-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--ran-mermaid-button-size, 28px);height:var(--ran-mermaid-button-size, 28px);padding:0;border:none;border-radius:var(--ran-radius-sm, 6px);background:transparent;color:var(--ran-mermaid-button-color, var(--ran-color-text-secondary, #666));cursor:pointer}.ran-mermaid-btn:hover{background:var(--ran-mermaid-button-hover-background, var(--ran-color-bg-muted, rgba(0, 0, 0, .06)));color:var(--ran-mermaid-button-hover-color, var(--ran-color-text, #222))}.ran-mermaid-btn:focus-visible{outline:var(--ran-mermaid-button-focus-outline, 2px solid var(--ran-color-primary, #1890ff));outline-offset:1px}.ran-mermaid-menu{position:absolute;top:var(--ran-mermaid-menu-top, 44px);right:var(--ran-mermaid-toolbar-right, 8px);display:flex;flex-direction:column;min-width:132px;padding:4px;border-radius:var(--ran-radius-md, 8px);background:var(--ran-mermaid-toolbar-background, var(--ran-color-bg-elevated, #fff));box-shadow:var(--ran-mermaid-toolbar-shadow, var(--ran-shadow-menu, 0 2px 8px rgba(0, 0, 0, .12)));z-index:1}.ran-mermaid-menu-item{padding:6px 10px;border:none;border-radius:var(--ran-radius-sm, 6px);background:transparent;color:var(--ran-mermaid-menu-item-color, var(--ran-color-text, #222));text-align:left;font-size:13px;cursor:pointer}.ran-mermaid-menu-item:hover{background:var(--ran-mermaid-button-hover-background, var(--ran-color-bg-muted, rgba(0, 0, 0, .06)))}.ran-mermaid-error{margin:0;padding:12px;color:var(--ran-mermaid-error-color, #c0392b);white-space:pre-wrap;font-size:13px}", U = 0, j = class extends D {
|
|
7
|
+
_events = new T();
|
|
8
8
|
_shadowDom;
|
|
9
9
|
_wrap;
|
|
10
10
|
_diagram;
|
|
@@ -24,7 +24,7 @@ var O = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
24
24
|
];
|
|
25
25
|
}
|
|
26
26
|
constructor() {
|
|
27
|
-
super(), this._shadowDom =
|
|
27
|
+
super(), this._shadowDom = A(this, O), this._wrap = B(this._shadowDom, ".ran-mermaid", () => d().class("ran-mermaid").part("mermaid").children(d().class("ran-mermaid-diagram").part("diagram"), d().class("ran-mermaid-toolbar").part("toolbar")).build()), this._diagram = this._wrap.querySelector(".ran-mermaid-diagram"), this._toolbar = this._wrap.querySelector(".ran-mermaid-toolbar");
|
|
28
28
|
}
|
|
29
29
|
get code() {
|
|
30
30
|
const e = b(this, "code");
|
|
@@ -81,13 +81,13 @@ var O = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
81
81
|
}));
|
|
82
82
|
}
|
|
83
83
|
handlerExternalCss = () => {
|
|
84
|
-
|
|
84
|
+
z(this, this._shadowDom, "sheet", null, this.sheet);
|
|
85
85
|
};
|
|
86
86
|
render() {
|
|
87
87
|
const e = this.code;
|
|
88
88
|
if (!e) return;
|
|
89
89
|
const t = `ran-mermaid-${U++}`;
|
|
90
|
-
import("./mermaid.core-
|
|
90
|
+
import("./mermaid.core-do05yX9X.js").then(async ({ default: a }) => {
|
|
91
91
|
a.initialize({
|
|
92
92
|
startOnLoad: !1,
|
|
93
93
|
securityLevel: "loose",
|
|
@@ -255,7 +255,7 @@ ${t}`], { type: "image/svg+xml;charset=utf-8" }), "diagram.svg"), this.emit("dow
|
|
|
255
255
|
t !== a && (e === "code" || e === "theme" ? this.render() : e === "copy" || e === "download" || e === "fullscreen" ? this.buildToolbar() : e === "sheet" && this.handlerExternalCss());
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
|
-
|
|
258
|
+
R("r-mermaid", j);
|
|
259
259
|
export {
|
|
260
260
|
j as t
|
|
261
261
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const a=require("./chunk-KEIR6QF5-C4fcHpY0.cjs");require("./chunk-MOZMSUNE-BiirTonv.cjs");require("./chunk-OSBZ3O6U-BDLnzsCC.cjs");require("./chunk-5JV3BV7I-BAn3GEjF.cjs");require("./chunk-CYSBUYHQ-8HNynFK-.cjs");require("./chunk-BIQX33UG-CaI4JSOY.cjs");require("./chunk-EMLP6XTP-DESFjGc5.cjs");require("./chunk-YOTPTUD7-BCQ2zMB7.cjs");require("./chunk-QBLGF6JB-DgQIhta2.cjs");require("./chunk-5TONJI2A-Bk0HPVuY.cjs");require("./chunk-5HE753X5-DkUtBcPF.cjs");require("./chunk-U6XO7XAA-Cxdku9z7.cjs");require("./chunk-JG7HCLWE-DJPVQhqh.cjs");require("./chunk-CQNSW5MT-DHm86rAm.cjs");require("./chunk-R7FJI6CG-BjmGc1OU.cjs");require("./chunk-5FCAYU7R-M2ohMDGf.cjs");var i={},o={info:a.__name(async()=>{const{createInfoServices:e}=await Promise.resolve().then(()=>require("./info-DKCQHKI2-Chhdpnw0.cjs"));i.info=e().Info.parser.LangiumParser},"info"),packet:a.__name(async()=>{const{createPacketServices:e}=await Promise.resolve().then(()=>require("./packet-7NZHBO7P-BIgRfmDy.cjs"));i.packet=e().Packet.parser.LangiumParser},"packet"),pie:a.__name(async()=>{const{createPieServices:e}=await Promise.resolve().then(()=>require("./pie-RZYD4A2V-BJEu4CoQ.cjs"));i.pie=e().Pie.parser.LangiumParser},"pie"),treeView:a.__name(async()=>{const{createTreeViewServices:e}=await Promise.resolve().then(()=>require("./treeView-QDETBFTQ-JVYSN7d-.cjs"));i.treeView=e().TreeView.parser.LangiumParser},"treeView"),architecture:a.__name(async()=>{const{createArchitectureServices:e}=await Promise.resolve().then(()=>require("./architecture-TIHT7OUA-BJNZJd9x.cjs"));i.architecture=e().Architecture.parser.LangiumParser},"architecture"),gitGraph:a.__name(async()=>{const{createGitGraphServices:e}=await Promise.resolve().then(()=>require("./gitGraph-TEB2WS4Q-BlIs9PSc.cjs"));i.gitGraph=e().GitGraph.parser.LangiumParser},"gitGraph"),eventmodeling:a.__name(async()=>{const{createEventModelingServices:e}=await Promise.resolve().then(()=>require("./eventmodeling-45OFAUF4-_fgxNekW.cjs"));i.eventmodeling=e().EventModel.parser.LangiumParser},"eventmodeling"),radar:a.__name(async()=>{const{createRadarServices:e}=await Promise.resolve().then(()=>require("./radar-I7S5WNFK-DYV5_m9_.cjs"));i.radar=e().Radar.parser.LangiumParser},"radar"),railroad:a.__name(async()=>{const{createRailroadServices:e}=await Promise.resolve().then(()=>require("./railroad-3IZDKUUU-6oFUgWYG.cjs"));i.railroad=e().Railroad.parser.LangiumParser},"railroad"),railroadEbnf:a.__name(async()=>{const{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>require("./railroad-ebnf-EBAXGLYW-DljDdad3.cjs"));i.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},"railroadEbnf"),railroadAbnf:a.__name(async()=>{const{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>require("./railroad-abnf-AHOZXSZD-DY3xJn9p.cjs"));i.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},"railroadAbnf"),railroadPeg:a.__name(async()=>{const{createRailroadPegServices:e}=await Promise.resolve().then(()=>require("./railroad-peg-LSFZ7HO6-DNRdpVaC.cjs"));i.railroadPeg=e().RailroadPeg.parser.LangiumParser},"railroadPeg"),treemap:a.__name(async()=>{const{createTreemapServices:e}=await Promise.resolve().then(()=>require("./treemap-6X3UGDF4-ChqvozdN.cjs"));i.treemap=e().Treemap.parser.LangiumParser},"treemap"),wardley:a.__name(async()=>{const{createWardleyServices:e}=await Promise.resolve().then(()=>require("./wardley-OPB4EBWU-BI6su3co.cjs"));i.wardley=e().Wardley.parser.LangiumParser},"wardley"),cynefin:a.__name(async()=>{const{createCynefinServices:e}=await Promise.resolve().then(()=>require("./cynefin-VYW2F7L2-Yeua0tAa.cjs"));i.cynefin=e().Cynefin.parser.LangiumParser},"cynefin")};async function t(e,s){const n=o[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();const r=i[e].parse(s);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);return r.value}a.__name(t,"parse");var c=class extends Error{constructor(e){const s=e.lexerErrors.map(r=>`Lexer error on line ${r.line!==void 0&&!isNaN(r.line)?r.line:"?"}, column ${r.column!==void 0&&!isNaN(r.column)?r.column:"?"}: ${r.message}`).join(`
|
|
2
|
+
`),n=e.parserErrors.map(r=>`Parse error on line ${r.token.startLine!==void 0&&!isNaN(r.token.startLine)?r.token.startLine:"?"}, column ${r.token.startColumn!==void 0&&!isNaN(r.token.startColumn)?r.token.startColumn:"?"}: ${r.message}`).join(`
|
|
3
|
+
`);super(`Parsing failed: ${s} ${n}`),this.result=e}static{a.__name(this,"MermaidParseError")}};Object.defineProperty(exports,"MermaidParseError",{enumerable:!0,get:function(){return c}});Object.defineProperty(exports,"parse",{enumerable:!0,get:function(){return t}});
|